mezon-js-protobuf 1.5.74 → 1.5.75
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 +689 -2
- package/dist/mezon-js-protobuf/api/api.d.ts +401 -0
- package/google/protobuf/struct.ts +554 -554
- package/google/protobuf/timestamp.ts +223 -223
- package/google/protobuf/wrappers.ts +670 -670
- package/package.json +1 -1
- package/rtapi/realtime.ts +2 -2
package/api/api.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.
|
|
4
|
-
// protoc v5.
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc v5.28.2
|
|
5
5
|
// source: api/api.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -2461,6 +2461,55 @@ export interface RegistrationEmailRequest_VarsEntry {
|
|
|
2461
2461
|
value: string;
|
|
2462
2462
|
}
|
|
2463
2463
|
|
|
2464
|
+
export interface ClanEmoji {
|
|
2465
|
+
id: string;
|
|
2466
|
+
/** src url */
|
|
2467
|
+
src: string;
|
|
2468
|
+
/** shortname */
|
|
2469
|
+
shortname: string;
|
|
2470
|
+
/** category */
|
|
2471
|
+
category: string;
|
|
2472
|
+
/** creator id */
|
|
2473
|
+
creator_id: string;
|
|
2474
|
+
/** clan_id */
|
|
2475
|
+
clan_id: string;
|
|
2476
|
+
/** clan logo */
|
|
2477
|
+
logo: string;
|
|
2478
|
+
/** clan name */
|
|
2479
|
+
clan_name: string;
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
export interface EmojiListedResponse {
|
|
2483
|
+
emoji_list: ClanEmoji[];
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
export interface StickerListedResponse {
|
|
2487
|
+
stickers: ClanSticker[];
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
export interface ClanSticker {
|
|
2491
|
+
id: string;
|
|
2492
|
+
source: string;
|
|
2493
|
+
shortname: string;
|
|
2494
|
+
category: string;
|
|
2495
|
+
creator_id: string;
|
|
2496
|
+
create_time: Date | undefined;
|
|
2497
|
+
clan_id: string;
|
|
2498
|
+
logo: string;
|
|
2499
|
+
clan_name: string;
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
export interface AllUsersAddChannelRequest {
|
|
2503
|
+
channel_id: string;
|
|
2504
|
+
limit: number | undefined;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
export interface AllUsersAddChannelResponse {
|
|
2508
|
+
channel_id: string;
|
|
2509
|
+
user_ids: string[];
|
|
2510
|
+
limit: number | undefined;
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2464
2513
|
export interface ClanEmojiCreateRequest {
|
|
2465
2514
|
clan_id: string;
|
|
2466
2515
|
source: string;
|
|
@@ -22065,6 +22114,644 @@ export const RegistrationEmailRequest_VarsEntry = {
|
|
|
22065
22114
|
},
|
|
22066
22115
|
};
|
|
22067
22116
|
|
|
22117
|
+
function createBaseClanEmoji(): ClanEmoji {
|
|
22118
|
+
return { id: "", src: "", shortname: "", category: "", creator_id: "", clan_id: "", logo: "", clan_name: "" };
|
|
22119
|
+
}
|
|
22120
|
+
|
|
22121
|
+
export const ClanEmoji = {
|
|
22122
|
+
encode(message: ClanEmoji, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
22123
|
+
if (message.id !== "") {
|
|
22124
|
+
writer.uint32(10).string(message.id);
|
|
22125
|
+
}
|
|
22126
|
+
if (message.src !== "") {
|
|
22127
|
+
writer.uint32(18).string(message.src);
|
|
22128
|
+
}
|
|
22129
|
+
if (message.shortname !== "") {
|
|
22130
|
+
writer.uint32(26).string(message.shortname);
|
|
22131
|
+
}
|
|
22132
|
+
if (message.category !== "") {
|
|
22133
|
+
writer.uint32(34).string(message.category);
|
|
22134
|
+
}
|
|
22135
|
+
if (message.creator_id !== "") {
|
|
22136
|
+
writer.uint32(42).string(message.creator_id);
|
|
22137
|
+
}
|
|
22138
|
+
if (message.clan_id !== "") {
|
|
22139
|
+
writer.uint32(50).string(message.clan_id);
|
|
22140
|
+
}
|
|
22141
|
+
if (message.logo !== "") {
|
|
22142
|
+
writer.uint32(58).string(message.logo);
|
|
22143
|
+
}
|
|
22144
|
+
if (message.clan_name !== "") {
|
|
22145
|
+
writer.uint32(66).string(message.clan_name);
|
|
22146
|
+
}
|
|
22147
|
+
return writer;
|
|
22148
|
+
},
|
|
22149
|
+
|
|
22150
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmoji {
|
|
22151
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
22152
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22153
|
+
const message = createBaseClanEmoji();
|
|
22154
|
+
while (reader.pos < end) {
|
|
22155
|
+
const tag = reader.uint32();
|
|
22156
|
+
switch (tag >>> 3) {
|
|
22157
|
+
case 1:
|
|
22158
|
+
if (tag !== 10) {
|
|
22159
|
+
break;
|
|
22160
|
+
}
|
|
22161
|
+
|
|
22162
|
+
message.id = reader.string();
|
|
22163
|
+
continue;
|
|
22164
|
+
case 2:
|
|
22165
|
+
if (tag !== 18) {
|
|
22166
|
+
break;
|
|
22167
|
+
}
|
|
22168
|
+
|
|
22169
|
+
message.src = reader.string();
|
|
22170
|
+
continue;
|
|
22171
|
+
case 3:
|
|
22172
|
+
if (tag !== 26) {
|
|
22173
|
+
break;
|
|
22174
|
+
}
|
|
22175
|
+
|
|
22176
|
+
message.shortname = reader.string();
|
|
22177
|
+
continue;
|
|
22178
|
+
case 4:
|
|
22179
|
+
if (tag !== 34) {
|
|
22180
|
+
break;
|
|
22181
|
+
}
|
|
22182
|
+
|
|
22183
|
+
message.category = reader.string();
|
|
22184
|
+
continue;
|
|
22185
|
+
case 5:
|
|
22186
|
+
if (tag !== 42) {
|
|
22187
|
+
break;
|
|
22188
|
+
}
|
|
22189
|
+
|
|
22190
|
+
message.creator_id = reader.string();
|
|
22191
|
+
continue;
|
|
22192
|
+
case 6:
|
|
22193
|
+
if (tag !== 50) {
|
|
22194
|
+
break;
|
|
22195
|
+
}
|
|
22196
|
+
|
|
22197
|
+
message.clan_id = reader.string();
|
|
22198
|
+
continue;
|
|
22199
|
+
case 7:
|
|
22200
|
+
if (tag !== 58) {
|
|
22201
|
+
break;
|
|
22202
|
+
}
|
|
22203
|
+
|
|
22204
|
+
message.logo = reader.string();
|
|
22205
|
+
continue;
|
|
22206
|
+
case 8:
|
|
22207
|
+
if (tag !== 66) {
|
|
22208
|
+
break;
|
|
22209
|
+
}
|
|
22210
|
+
|
|
22211
|
+
message.clan_name = reader.string();
|
|
22212
|
+
continue;
|
|
22213
|
+
}
|
|
22214
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
22215
|
+
break;
|
|
22216
|
+
}
|
|
22217
|
+
reader.skipType(tag & 7);
|
|
22218
|
+
}
|
|
22219
|
+
return message;
|
|
22220
|
+
},
|
|
22221
|
+
|
|
22222
|
+
fromJSON(object: any): ClanEmoji {
|
|
22223
|
+
return {
|
|
22224
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
22225
|
+
src: isSet(object.src) ? globalThis.String(object.src) : "",
|
|
22226
|
+
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
22227
|
+
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
22228
|
+
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
22229
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
22230
|
+
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
22231
|
+
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
22232
|
+
};
|
|
22233
|
+
},
|
|
22234
|
+
|
|
22235
|
+
toJSON(message: ClanEmoji): unknown {
|
|
22236
|
+
const obj: any = {};
|
|
22237
|
+
if (message.id !== "") {
|
|
22238
|
+
obj.id = message.id;
|
|
22239
|
+
}
|
|
22240
|
+
if (message.src !== "") {
|
|
22241
|
+
obj.src = message.src;
|
|
22242
|
+
}
|
|
22243
|
+
if (message.shortname !== "") {
|
|
22244
|
+
obj.shortname = message.shortname;
|
|
22245
|
+
}
|
|
22246
|
+
if (message.category !== "") {
|
|
22247
|
+
obj.category = message.category;
|
|
22248
|
+
}
|
|
22249
|
+
if (message.creator_id !== "") {
|
|
22250
|
+
obj.creator_id = message.creator_id;
|
|
22251
|
+
}
|
|
22252
|
+
if (message.clan_id !== "") {
|
|
22253
|
+
obj.clan_id = message.clan_id;
|
|
22254
|
+
}
|
|
22255
|
+
if (message.logo !== "") {
|
|
22256
|
+
obj.logo = message.logo;
|
|
22257
|
+
}
|
|
22258
|
+
if (message.clan_name !== "") {
|
|
22259
|
+
obj.clan_name = message.clan_name;
|
|
22260
|
+
}
|
|
22261
|
+
return obj;
|
|
22262
|
+
},
|
|
22263
|
+
|
|
22264
|
+
create<I extends Exact<DeepPartial<ClanEmoji>, I>>(base?: I): ClanEmoji {
|
|
22265
|
+
return ClanEmoji.fromPartial(base ?? ({} as any));
|
|
22266
|
+
},
|
|
22267
|
+
fromPartial<I extends Exact<DeepPartial<ClanEmoji>, I>>(object: I): ClanEmoji {
|
|
22268
|
+
const message = createBaseClanEmoji();
|
|
22269
|
+
message.id = object.id ?? "";
|
|
22270
|
+
message.src = object.src ?? "";
|
|
22271
|
+
message.shortname = object.shortname ?? "";
|
|
22272
|
+
message.category = object.category ?? "";
|
|
22273
|
+
message.creator_id = object.creator_id ?? "";
|
|
22274
|
+
message.clan_id = object.clan_id ?? "";
|
|
22275
|
+
message.logo = object.logo ?? "";
|
|
22276
|
+
message.clan_name = object.clan_name ?? "";
|
|
22277
|
+
return message;
|
|
22278
|
+
},
|
|
22279
|
+
};
|
|
22280
|
+
|
|
22281
|
+
function createBaseEmojiListedResponse(): EmojiListedResponse {
|
|
22282
|
+
return { emoji_list: [] };
|
|
22283
|
+
}
|
|
22284
|
+
|
|
22285
|
+
export const EmojiListedResponse = {
|
|
22286
|
+
encode(message: EmojiListedResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
22287
|
+
for (const v of message.emoji_list) {
|
|
22288
|
+
ClanEmoji.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
22289
|
+
}
|
|
22290
|
+
return writer;
|
|
22291
|
+
},
|
|
22292
|
+
|
|
22293
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EmojiListedResponse {
|
|
22294
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
22295
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22296
|
+
const message = createBaseEmojiListedResponse();
|
|
22297
|
+
while (reader.pos < end) {
|
|
22298
|
+
const tag = reader.uint32();
|
|
22299
|
+
switch (tag >>> 3) {
|
|
22300
|
+
case 1:
|
|
22301
|
+
if (tag !== 10) {
|
|
22302
|
+
break;
|
|
22303
|
+
}
|
|
22304
|
+
|
|
22305
|
+
message.emoji_list.push(ClanEmoji.decode(reader, reader.uint32()));
|
|
22306
|
+
continue;
|
|
22307
|
+
}
|
|
22308
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
22309
|
+
break;
|
|
22310
|
+
}
|
|
22311
|
+
reader.skipType(tag & 7);
|
|
22312
|
+
}
|
|
22313
|
+
return message;
|
|
22314
|
+
},
|
|
22315
|
+
|
|
22316
|
+
fromJSON(object: any): EmojiListedResponse {
|
|
22317
|
+
return {
|
|
22318
|
+
emoji_list: globalThis.Array.isArray(object?.emoji_list)
|
|
22319
|
+
? object.emoji_list.map((e: any) => ClanEmoji.fromJSON(e))
|
|
22320
|
+
: [],
|
|
22321
|
+
};
|
|
22322
|
+
},
|
|
22323
|
+
|
|
22324
|
+
toJSON(message: EmojiListedResponse): unknown {
|
|
22325
|
+
const obj: any = {};
|
|
22326
|
+
if (message.emoji_list?.length) {
|
|
22327
|
+
obj.emoji_list = message.emoji_list.map((e) => ClanEmoji.toJSON(e));
|
|
22328
|
+
}
|
|
22329
|
+
return obj;
|
|
22330
|
+
},
|
|
22331
|
+
|
|
22332
|
+
create<I extends Exact<DeepPartial<EmojiListedResponse>, I>>(base?: I): EmojiListedResponse {
|
|
22333
|
+
return EmojiListedResponse.fromPartial(base ?? ({} as any));
|
|
22334
|
+
},
|
|
22335
|
+
fromPartial<I extends Exact<DeepPartial<EmojiListedResponse>, I>>(object: I): EmojiListedResponse {
|
|
22336
|
+
const message = createBaseEmojiListedResponse();
|
|
22337
|
+
message.emoji_list = object.emoji_list?.map((e) => ClanEmoji.fromPartial(e)) || [];
|
|
22338
|
+
return message;
|
|
22339
|
+
},
|
|
22340
|
+
};
|
|
22341
|
+
|
|
22342
|
+
function createBaseStickerListedResponse(): StickerListedResponse {
|
|
22343
|
+
return { stickers: [] };
|
|
22344
|
+
}
|
|
22345
|
+
|
|
22346
|
+
export const StickerListedResponse = {
|
|
22347
|
+
encode(message: StickerListedResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
22348
|
+
for (const v of message.stickers) {
|
|
22349
|
+
ClanSticker.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
22350
|
+
}
|
|
22351
|
+
return writer;
|
|
22352
|
+
},
|
|
22353
|
+
|
|
22354
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StickerListedResponse {
|
|
22355
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
22356
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22357
|
+
const message = createBaseStickerListedResponse();
|
|
22358
|
+
while (reader.pos < end) {
|
|
22359
|
+
const tag = reader.uint32();
|
|
22360
|
+
switch (tag >>> 3) {
|
|
22361
|
+
case 1:
|
|
22362
|
+
if (tag !== 10) {
|
|
22363
|
+
break;
|
|
22364
|
+
}
|
|
22365
|
+
|
|
22366
|
+
message.stickers.push(ClanSticker.decode(reader, reader.uint32()));
|
|
22367
|
+
continue;
|
|
22368
|
+
}
|
|
22369
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
22370
|
+
break;
|
|
22371
|
+
}
|
|
22372
|
+
reader.skipType(tag & 7);
|
|
22373
|
+
}
|
|
22374
|
+
return message;
|
|
22375
|
+
},
|
|
22376
|
+
|
|
22377
|
+
fromJSON(object: any): StickerListedResponse {
|
|
22378
|
+
return {
|
|
22379
|
+
stickers: globalThis.Array.isArray(object?.stickers)
|
|
22380
|
+
? object.stickers.map((e: any) => ClanSticker.fromJSON(e))
|
|
22381
|
+
: [],
|
|
22382
|
+
};
|
|
22383
|
+
},
|
|
22384
|
+
|
|
22385
|
+
toJSON(message: StickerListedResponse): unknown {
|
|
22386
|
+
const obj: any = {};
|
|
22387
|
+
if (message.stickers?.length) {
|
|
22388
|
+
obj.stickers = message.stickers.map((e) => ClanSticker.toJSON(e));
|
|
22389
|
+
}
|
|
22390
|
+
return obj;
|
|
22391
|
+
},
|
|
22392
|
+
|
|
22393
|
+
create<I extends Exact<DeepPartial<StickerListedResponse>, I>>(base?: I): StickerListedResponse {
|
|
22394
|
+
return StickerListedResponse.fromPartial(base ?? ({} as any));
|
|
22395
|
+
},
|
|
22396
|
+
fromPartial<I extends Exact<DeepPartial<StickerListedResponse>, I>>(object: I): StickerListedResponse {
|
|
22397
|
+
const message = createBaseStickerListedResponse();
|
|
22398
|
+
message.stickers = object.stickers?.map((e) => ClanSticker.fromPartial(e)) || [];
|
|
22399
|
+
return message;
|
|
22400
|
+
},
|
|
22401
|
+
};
|
|
22402
|
+
|
|
22403
|
+
function createBaseClanSticker(): ClanSticker {
|
|
22404
|
+
return {
|
|
22405
|
+
id: "",
|
|
22406
|
+
source: "",
|
|
22407
|
+
shortname: "",
|
|
22408
|
+
category: "",
|
|
22409
|
+
creator_id: "",
|
|
22410
|
+
create_time: undefined,
|
|
22411
|
+
clan_id: "",
|
|
22412
|
+
logo: "",
|
|
22413
|
+
clan_name: "",
|
|
22414
|
+
};
|
|
22415
|
+
}
|
|
22416
|
+
|
|
22417
|
+
export const ClanSticker = {
|
|
22418
|
+
encode(message: ClanSticker, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
22419
|
+
if (message.id !== "") {
|
|
22420
|
+
writer.uint32(10).string(message.id);
|
|
22421
|
+
}
|
|
22422
|
+
if (message.source !== "") {
|
|
22423
|
+
writer.uint32(18).string(message.source);
|
|
22424
|
+
}
|
|
22425
|
+
if (message.shortname !== "") {
|
|
22426
|
+
writer.uint32(26).string(message.shortname);
|
|
22427
|
+
}
|
|
22428
|
+
if (message.category !== "") {
|
|
22429
|
+
writer.uint32(34).string(message.category);
|
|
22430
|
+
}
|
|
22431
|
+
if (message.creator_id !== "") {
|
|
22432
|
+
writer.uint32(42).string(message.creator_id);
|
|
22433
|
+
}
|
|
22434
|
+
if (message.create_time !== undefined) {
|
|
22435
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(50).fork()).ldelim();
|
|
22436
|
+
}
|
|
22437
|
+
if (message.clan_id !== "") {
|
|
22438
|
+
writer.uint32(58).string(message.clan_id);
|
|
22439
|
+
}
|
|
22440
|
+
if (message.logo !== "") {
|
|
22441
|
+
writer.uint32(66).string(message.logo);
|
|
22442
|
+
}
|
|
22443
|
+
if (message.clan_name !== "") {
|
|
22444
|
+
writer.uint32(74).string(message.clan_name);
|
|
22445
|
+
}
|
|
22446
|
+
return writer;
|
|
22447
|
+
},
|
|
22448
|
+
|
|
22449
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ClanSticker {
|
|
22450
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
22451
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22452
|
+
const message = createBaseClanSticker();
|
|
22453
|
+
while (reader.pos < end) {
|
|
22454
|
+
const tag = reader.uint32();
|
|
22455
|
+
switch (tag >>> 3) {
|
|
22456
|
+
case 1:
|
|
22457
|
+
if (tag !== 10) {
|
|
22458
|
+
break;
|
|
22459
|
+
}
|
|
22460
|
+
|
|
22461
|
+
message.id = reader.string();
|
|
22462
|
+
continue;
|
|
22463
|
+
case 2:
|
|
22464
|
+
if (tag !== 18) {
|
|
22465
|
+
break;
|
|
22466
|
+
}
|
|
22467
|
+
|
|
22468
|
+
message.source = reader.string();
|
|
22469
|
+
continue;
|
|
22470
|
+
case 3:
|
|
22471
|
+
if (tag !== 26) {
|
|
22472
|
+
break;
|
|
22473
|
+
}
|
|
22474
|
+
|
|
22475
|
+
message.shortname = reader.string();
|
|
22476
|
+
continue;
|
|
22477
|
+
case 4:
|
|
22478
|
+
if (tag !== 34) {
|
|
22479
|
+
break;
|
|
22480
|
+
}
|
|
22481
|
+
|
|
22482
|
+
message.category = reader.string();
|
|
22483
|
+
continue;
|
|
22484
|
+
case 5:
|
|
22485
|
+
if (tag !== 42) {
|
|
22486
|
+
break;
|
|
22487
|
+
}
|
|
22488
|
+
|
|
22489
|
+
message.creator_id = reader.string();
|
|
22490
|
+
continue;
|
|
22491
|
+
case 6:
|
|
22492
|
+
if (tag !== 50) {
|
|
22493
|
+
break;
|
|
22494
|
+
}
|
|
22495
|
+
|
|
22496
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
22497
|
+
continue;
|
|
22498
|
+
case 7:
|
|
22499
|
+
if (tag !== 58) {
|
|
22500
|
+
break;
|
|
22501
|
+
}
|
|
22502
|
+
|
|
22503
|
+
message.clan_id = reader.string();
|
|
22504
|
+
continue;
|
|
22505
|
+
case 8:
|
|
22506
|
+
if (tag !== 66) {
|
|
22507
|
+
break;
|
|
22508
|
+
}
|
|
22509
|
+
|
|
22510
|
+
message.logo = reader.string();
|
|
22511
|
+
continue;
|
|
22512
|
+
case 9:
|
|
22513
|
+
if (tag !== 74) {
|
|
22514
|
+
break;
|
|
22515
|
+
}
|
|
22516
|
+
|
|
22517
|
+
message.clan_name = reader.string();
|
|
22518
|
+
continue;
|
|
22519
|
+
}
|
|
22520
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
22521
|
+
break;
|
|
22522
|
+
}
|
|
22523
|
+
reader.skipType(tag & 7);
|
|
22524
|
+
}
|
|
22525
|
+
return message;
|
|
22526
|
+
},
|
|
22527
|
+
|
|
22528
|
+
fromJSON(object: any): ClanSticker {
|
|
22529
|
+
return {
|
|
22530
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
22531
|
+
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
22532
|
+
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
22533
|
+
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
22534
|
+
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
22535
|
+
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
22536
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
22537
|
+
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
22538
|
+
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
22539
|
+
};
|
|
22540
|
+
},
|
|
22541
|
+
|
|
22542
|
+
toJSON(message: ClanSticker): unknown {
|
|
22543
|
+
const obj: any = {};
|
|
22544
|
+
if (message.id !== "") {
|
|
22545
|
+
obj.id = message.id;
|
|
22546
|
+
}
|
|
22547
|
+
if (message.source !== "") {
|
|
22548
|
+
obj.source = message.source;
|
|
22549
|
+
}
|
|
22550
|
+
if (message.shortname !== "") {
|
|
22551
|
+
obj.shortname = message.shortname;
|
|
22552
|
+
}
|
|
22553
|
+
if (message.category !== "") {
|
|
22554
|
+
obj.category = message.category;
|
|
22555
|
+
}
|
|
22556
|
+
if (message.creator_id !== "") {
|
|
22557
|
+
obj.creator_id = message.creator_id;
|
|
22558
|
+
}
|
|
22559
|
+
if (message.create_time !== undefined) {
|
|
22560
|
+
obj.create_time = message.create_time.toISOString();
|
|
22561
|
+
}
|
|
22562
|
+
if (message.clan_id !== "") {
|
|
22563
|
+
obj.clan_id = message.clan_id;
|
|
22564
|
+
}
|
|
22565
|
+
if (message.logo !== "") {
|
|
22566
|
+
obj.logo = message.logo;
|
|
22567
|
+
}
|
|
22568
|
+
if (message.clan_name !== "") {
|
|
22569
|
+
obj.clan_name = message.clan_name;
|
|
22570
|
+
}
|
|
22571
|
+
return obj;
|
|
22572
|
+
},
|
|
22573
|
+
|
|
22574
|
+
create<I extends Exact<DeepPartial<ClanSticker>, I>>(base?: I): ClanSticker {
|
|
22575
|
+
return ClanSticker.fromPartial(base ?? ({} as any));
|
|
22576
|
+
},
|
|
22577
|
+
fromPartial<I extends Exact<DeepPartial<ClanSticker>, I>>(object: I): ClanSticker {
|
|
22578
|
+
const message = createBaseClanSticker();
|
|
22579
|
+
message.id = object.id ?? "";
|
|
22580
|
+
message.source = object.source ?? "";
|
|
22581
|
+
message.shortname = object.shortname ?? "";
|
|
22582
|
+
message.category = object.category ?? "";
|
|
22583
|
+
message.creator_id = object.creator_id ?? "";
|
|
22584
|
+
message.create_time = object.create_time ?? undefined;
|
|
22585
|
+
message.clan_id = object.clan_id ?? "";
|
|
22586
|
+
message.logo = object.logo ?? "";
|
|
22587
|
+
message.clan_name = object.clan_name ?? "";
|
|
22588
|
+
return message;
|
|
22589
|
+
},
|
|
22590
|
+
};
|
|
22591
|
+
|
|
22592
|
+
function createBaseAllUsersAddChannelRequest(): AllUsersAddChannelRequest {
|
|
22593
|
+
return { channel_id: "", limit: undefined };
|
|
22594
|
+
}
|
|
22595
|
+
|
|
22596
|
+
export const AllUsersAddChannelRequest = {
|
|
22597
|
+
encode(message: AllUsersAddChannelRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
22598
|
+
if (message.channel_id !== "") {
|
|
22599
|
+
writer.uint32(10).string(message.channel_id);
|
|
22600
|
+
}
|
|
22601
|
+
if (message.limit !== undefined) {
|
|
22602
|
+
Int32Value.encode({ value: message.limit! }, writer.uint32(18).fork()).ldelim();
|
|
22603
|
+
}
|
|
22604
|
+
return writer;
|
|
22605
|
+
},
|
|
22606
|
+
|
|
22607
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AllUsersAddChannelRequest {
|
|
22608
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
22609
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22610
|
+
const message = createBaseAllUsersAddChannelRequest();
|
|
22611
|
+
while (reader.pos < end) {
|
|
22612
|
+
const tag = reader.uint32();
|
|
22613
|
+
switch (tag >>> 3) {
|
|
22614
|
+
case 1:
|
|
22615
|
+
if (tag !== 10) {
|
|
22616
|
+
break;
|
|
22617
|
+
}
|
|
22618
|
+
|
|
22619
|
+
message.channel_id = reader.string();
|
|
22620
|
+
continue;
|
|
22621
|
+
case 2:
|
|
22622
|
+
if (tag !== 18) {
|
|
22623
|
+
break;
|
|
22624
|
+
}
|
|
22625
|
+
|
|
22626
|
+
message.limit = Int32Value.decode(reader, reader.uint32()).value;
|
|
22627
|
+
continue;
|
|
22628
|
+
}
|
|
22629
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
22630
|
+
break;
|
|
22631
|
+
}
|
|
22632
|
+
reader.skipType(tag & 7);
|
|
22633
|
+
}
|
|
22634
|
+
return message;
|
|
22635
|
+
},
|
|
22636
|
+
|
|
22637
|
+
fromJSON(object: any): AllUsersAddChannelRequest {
|
|
22638
|
+
return {
|
|
22639
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
22640
|
+
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
22641
|
+
};
|
|
22642
|
+
},
|
|
22643
|
+
|
|
22644
|
+
toJSON(message: AllUsersAddChannelRequest): unknown {
|
|
22645
|
+
const obj: any = {};
|
|
22646
|
+
if (message.channel_id !== "") {
|
|
22647
|
+
obj.channel_id = message.channel_id;
|
|
22648
|
+
}
|
|
22649
|
+
if (message.limit !== undefined) {
|
|
22650
|
+
obj.limit = message.limit;
|
|
22651
|
+
}
|
|
22652
|
+
return obj;
|
|
22653
|
+
},
|
|
22654
|
+
|
|
22655
|
+
create<I extends Exact<DeepPartial<AllUsersAddChannelRequest>, I>>(base?: I): AllUsersAddChannelRequest {
|
|
22656
|
+
return AllUsersAddChannelRequest.fromPartial(base ?? ({} as any));
|
|
22657
|
+
},
|
|
22658
|
+
fromPartial<I extends Exact<DeepPartial<AllUsersAddChannelRequest>, I>>(object: I): AllUsersAddChannelRequest {
|
|
22659
|
+
const message = createBaseAllUsersAddChannelRequest();
|
|
22660
|
+
message.channel_id = object.channel_id ?? "";
|
|
22661
|
+
message.limit = object.limit ?? undefined;
|
|
22662
|
+
return message;
|
|
22663
|
+
},
|
|
22664
|
+
};
|
|
22665
|
+
|
|
22666
|
+
function createBaseAllUsersAddChannelResponse(): AllUsersAddChannelResponse {
|
|
22667
|
+
return { channel_id: "", user_ids: [], limit: undefined };
|
|
22668
|
+
}
|
|
22669
|
+
|
|
22670
|
+
export const AllUsersAddChannelResponse = {
|
|
22671
|
+
encode(message: AllUsersAddChannelResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
22672
|
+
if (message.channel_id !== "") {
|
|
22673
|
+
writer.uint32(10).string(message.channel_id);
|
|
22674
|
+
}
|
|
22675
|
+
for (const v of message.user_ids) {
|
|
22676
|
+
writer.uint32(18).string(v!);
|
|
22677
|
+
}
|
|
22678
|
+
if (message.limit !== undefined) {
|
|
22679
|
+
Int32Value.encode({ value: message.limit! }, writer.uint32(26).fork()).ldelim();
|
|
22680
|
+
}
|
|
22681
|
+
return writer;
|
|
22682
|
+
},
|
|
22683
|
+
|
|
22684
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AllUsersAddChannelResponse {
|
|
22685
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
22686
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22687
|
+
const message = createBaseAllUsersAddChannelResponse();
|
|
22688
|
+
while (reader.pos < end) {
|
|
22689
|
+
const tag = reader.uint32();
|
|
22690
|
+
switch (tag >>> 3) {
|
|
22691
|
+
case 1:
|
|
22692
|
+
if (tag !== 10) {
|
|
22693
|
+
break;
|
|
22694
|
+
}
|
|
22695
|
+
|
|
22696
|
+
message.channel_id = reader.string();
|
|
22697
|
+
continue;
|
|
22698
|
+
case 2:
|
|
22699
|
+
if (tag !== 18) {
|
|
22700
|
+
break;
|
|
22701
|
+
}
|
|
22702
|
+
|
|
22703
|
+
message.user_ids.push(reader.string());
|
|
22704
|
+
continue;
|
|
22705
|
+
case 3:
|
|
22706
|
+
if (tag !== 26) {
|
|
22707
|
+
break;
|
|
22708
|
+
}
|
|
22709
|
+
|
|
22710
|
+
message.limit = Int32Value.decode(reader, reader.uint32()).value;
|
|
22711
|
+
continue;
|
|
22712
|
+
}
|
|
22713
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
22714
|
+
break;
|
|
22715
|
+
}
|
|
22716
|
+
reader.skipType(tag & 7);
|
|
22717
|
+
}
|
|
22718
|
+
return message;
|
|
22719
|
+
},
|
|
22720
|
+
|
|
22721
|
+
fromJSON(object: any): AllUsersAddChannelResponse {
|
|
22722
|
+
return {
|
|
22723
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
22724
|
+
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
22725
|
+
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
22726
|
+
};
|
|
22727
|
+
},
|
|
22728
|
+
|
|
22729
|
+
toJSON(message: AllUsersAddChannelResponse): unknown {
|
|
22730
|
+
const obj: any = {};
|
|
22731
|
+
if (message.channel_id !== "") {
|
|
22732
|
+
obj.channel_id = message.channel_id;
|
|
22733
|
+
}
|
|
22734
|
+
if (message.user_ids?.length) {
|
|
22735
|
+
obj.user_ids = message.user_ids;
|
|
22736
|
+
}
|
|
22737
|
+
if (message.limit !== undefined) {
|
|
22738
|
+
obj.limit = message.limit;
|
|
22739
|
+
}
|
|
22740
|
+
return obj;
|
|
22741
|
+
},
|
|
22742
|
+
|
|
22743
|
+
create<I extends Exact<DeepPartial<AllUsersAddChannelResponse>, I>>(base?: I): AllUsersAddChannelResponse {
|
|
22744
|
+
return AllUsersAddChannelResponse.fromPartial(base ?? ({} as any));
|
|
22745
|
+
},
|
|
22746
|
+
fromPartial<I extends Exact<DeepPartial<AllUsersAddChannelResponse>, I>>(object: I): AllUsersAddChannelResponse {
|
|
22747
|
+
const message = createBaseAllUsersAddChannelResponse();
|
|
22748
|
+
message.channel_id = object.channel_id ?? "";
|
|
22749
|
+
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
22750
|
+
message.limit = object.limit ?? undefined;
|
|
22751
|
+
return message;
|
|
22752
|
+
},
|
|
22753
|
+
};
|
|
22754
|
+
|
|
22068
22755
|
function createBaseClanEmojiCreateRequest(): ClanEmojiCreateRequest {
|
|
22069
22756
|
return { clan_id: "", source: "", shortname: "", category: "", id: "" };
|
|
22070
22757
|
}
|