mezon-js-protobuf 1.4.82 → 1.4.84
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 +67 -176
- package/dist/mezon-js-protobuf/api/api.d.ts +47 -85
- package/dist/mezon-js-protobuf/google/protobuf/timestamp.d.ts +2 -10
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +101 -64
- package/dist/mezon-js-protobuf.cjs.js +57 -2
- package/dist/mezon-js-protobuf.esm.mjs +57 -2
- package/google/protobuf/timestamp.ts +212 -220
- package/package.json +1 -1
- package/rtapi/realtime.ts +5807 -5731
package/api/api.ts
CHANGED
|
@@ -1021,7 +1021,7 @@ export interface ClanUserList_ClanUser {
|
|
|
1021
1021
|
| string
|
|
1022
1022
|
| undefined;
|
|
1023
1023
|
/** from the `nick_name` field in the `clan_desc_profile` table. */
|
|
1024
|
-
|
|
1024
|
+
clan_nick: string;
|
|
1025
1025
|
}
|
|
1026
1026
|
|
|
1027
1027
|
/** Import Facebook friends into the current user's account. */
|
|
@@ -2516,24 +2516,6 @@ export interface SearchMessageResponse {
|
|
|
2516
2516
|
total: number;
|
|
2517
2517
|
}
|
|
2518
2518
|
|
|
2519
|
-
export interface CreateWebhookRequest {
|
|
2520
|
-
/** Hook name */
|
|
2521
|
-
hook_name: string;
|
|
2522
|
-
/** Channel ID */
|
|
2523
|
-
channel_id: string;
|
|
2524
|
-
/** Clan ID */
|
|
2525
|
-
clan_id: string;
|
|
2526
|
-
}
|
|
2527
|
-
|
|
2528
|
-
export interface WebhookResponse {
|
|
2529
|
-
/** Hook name */
|
|
2530
|
-
hook_name: string;
|
|
2531
|
-
/** Channel ID */
|
|
2532
|
-
channel_id: string;
|
|
2533
|
-
/** hook url */
|
|
2534
|
-
hook_url: string;
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
2519
|
export interface ClanEmojiList {
|
|
2538
2520
|
emoji_list: ClanEmojiListResponse[];
|
|
2539
2521
|
}
|
|
@@ -2565,6 +2547,7 @@ export interface ClanEmojiCreateRequest {
|
|
|
2565
2547
|
source: string;
|
|
2566
2548
|
shortname: string;
|
|
2567
2549
|
category: string;
|
|
2550
|
+
id: string;
|
|
2568
2551
|
}
|
|
2569
2552
|
|
|
2570
2553
|
export interface ClanEmojiGetByClanIdRequest {
|
|
@@ -2573,6 +2556,7 @@ export interface ClanEmojiGetByClanIdRequest {
|
|
|
2573
2556
|
|
|
2574
2557
|
export interface ClanEmojiDeleteRequest {
|
|
2575
2558
|
id: string;
|
|
2559
|
+
clanId: string;
|
|
2576
2560
|
}
|
|
2577
2561
|
|
|
2578
2562
|
export interface ClanEmojiUpdateRequest {
|
|
@@ -2629,6 +2613,7 @@ export interface WebhookDeleteRequestById {
|
|
|
2629
2613
|
|
|
2630
2614
|
export interface WebhookListRequest {
|
|
2631
2615
|
channel_id: string;
|
|
2616
|
+
clan_id: string;
|
|
2632
2617
|
}
|
|
2633
2618
|
|
|
2634
2619
|
export interface WebhookListResponse {
|
|
@@ -2665,6 +2650,8 @@ export interface ClanStickerAddRequest {
|
|
|
2665
2650
|
shortname: string;
|
|
2666
2651
|
category: string;
|
|
2667
2652
|
clan_id: number;
|
|
2653
|
+
/** UNIQUE include type number */
|
|
2654
|
+
id: string;
|
|
2668
2655
|
}
|
|
2669
2656
|
|
|
2670
2657
|
export interface ClanStickerListByClanIdRequest {
|
|
@@ -2684,6 +2671,7 @@ export interface ClanStickerUpdateByIdRequest {
|
|
|
2684
2671
|
|
|
2685
2672
|
export interface ClanStickerDeleteRequest {
|
|
2686
2673
|
id: number;
|
|
2674
|
+
clanId: string;
|
|
2687
2675
|
}
|
|
2688
2676
|
|
|
2689
2677
|
export interface ChangeChannelCategoryRequest {
|
|
@@ -8115,7 +8103,7 @@ export const ClanUserList = {
|
|
|
8115
8103
|
};
|
|
8116
8104
|
|
|
8117
8105
|
function createBaseClanUserList_ClanUser(): ClanUserList_ClanUser {
|
|
8118
|
-
return { user: undefined, role_id: undefined,
|
|
8106
|
+
return { user: undefined, role_id: undefined, clan_nick: "" };
|
|
8119
8107
|
}
|
|
8120
8108
|
|
|
8121
8109
|
export const ClanUserList_ClanUser = {
|
|
@@ -8126,8 +8114,8 @@ export const ClanUserList_ClanUser = {
|
|
|
8126
8114
|
if (message.role_id !== undefined) {
|
|
8127
8115
|
StringValue.encode({ value: message.role_id! }, writer.uint32(18).fork()).ldelim();
|
|
8128
8116
|
}
|
|
8129
|
-
if (message.
|
|
8130
|
-
writer.uint32(26).string(message.
|
|
8117
|
+
if (message.clan_nick !== "") {
|
|
8118
|
+
writer.uint32(26).string(message.clan_nick);
|
|
8131
8119
|
}
|
|
8132
8120
|
return writer;
|
|
8133
8121
|
},
|
|
@@ -8146,7 +8134,7 @@ export const ClanUserList_ClanUser = {
|
|
|
8146
8134
|
message.role_id = StringValue.decode(reader, reader.uint32()).value;
|
|
8147
8135
|
break;
|
|
8148
8136
|
case 3:
|
|
8149
|
-
message.
|
|
8137
|
+
message.clan_nick = reader.string();
|
|
8150
8138
|
break;
|
|
8151
8139
|
default:
|
|
8152
8140
|
reader.skipType(tag & 7);
|
|
@@ -8160,7 +8148,7 @@ export const ClanUserList_ClanUser = {
|
|
|
8160
8148
|
return {
|
|
8161
8149
|
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
8162
8150
|
role_id: isSet(object.role_id) ? String(object.role_id) : undefined,
|
|
8163
|
-
|
|
8151
|
+
clan_nick: isSet(object.clan_nick) ? String(object.clan_nick) : "",
|
|
8164
8152
|
};
|
|
8165
8153
|
},
|
|
8166
8154
|
|
|
@@ -8168,7 +8156,7 @@ export const ClanUserList_ClanUser = {
|
|
|
8168
8156
|
const obj: any = {};
|
|
8169
8157
|
message.user !== undefined && (obj.user = message.user ? User.toJSON(message.user) : undefined);
|
|
8170
8158
|
message.role_id !== undefined && (obj.role_id = message.role_id);
|
|
8171
|
-
message.
|
|
8159
|
+
message.clan_nick !== undefined && (obj.clan_nick = message.clan_nick);
|
|
8172
8160
|
return obj;
|
|
8173
8161
|
},
|
|
8174
8162
|
|
|
@@ -8180,7 +8168,7 @@ export const ClanUserList_ClanUser = {
|
|
|
8180
8168
|
const message = createBaseClanUserList_ClanUser();
|
|
8181
8169
|
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
8182
8170
|
message.role_id = object.role_id ?? undefined;
|
|
8183
|
-
message.
|
|
8171
|
+
message.clan_nick = object.clan_nick ?? "";
|
|
8184
8172
|
return message;
|
|
8185
8173
|
},
|
|
8186
8174
|
};
|
|
@@ -18201,148 +18189,6 @@ export const SearchMessageResponse = {
|
|
|
18201
18189
|
},
|
|
18202
18190
|
};
|
|
18203
18191
|
|
|
18204
|
-
function createBaseCreateWebhookRequest(): CreateWebhookRequest {
|
|
18205
|
-
return { hook_name: "", channel_id: "", clan_id: "" };
|
|
18206
|
-
}
|
|
18207
|
-
|
|
18208
|
-
export const CreateWebhookRequest = {
|
|
18209
|
-
encode(message: CreateWebhookRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
18210
|
-
if (message.hook_name !== "") {
|
|
18211
|
-
writer.uint32(10).string(message.hook_name);
|
|
18212
|
-
}
|
|
18213
|
-
if (message.channel_id !== "") {
|
|
18214
|
-
writer.uint32(18).string(message.channel_id);
|
|
18215
|
-
}
|
|
18216
|
-
if (message.clan_id !== "") {
|
|
18217
|
-
writer.uint32(26).string(message.clan_id);
|
|
18218
|
-
}
|
|
18219
|
-
return writer;
|
|
18220
|
-
},
|
|
18221
|
-
|
|
18222
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CreateWebhookRequest {
|
|
18223
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
18224
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
18225
|
-
const message = createBaseCreateWebhookRequest();
|
|
18226
|
-
while (reader.pos < end) {
|
|
18227
|
-
const tag = reader.uint32();
|
|
18228
|
-
switch (tag >>> 3) {
|
|
18229
|
-
case 1:
|
|
18230
|
-
message.hook_name = reader.string();
|
|
18231
|
-
break;
|
|
18232
|
-
case 2:
|
|
18233
|
-
message.channel_id = reader.string();
|
|
18234
|
-
break;
|
|
18235
|
-
case 3:
|
|
18236
|
-
message.clan_id = reader.string();
|
|
18237
|
-
break;
|
|
18238
|
-
default:
|
|
18239
|
-
reader.skipType(tag & 7);
|
|
18240
|
-
break;
|
|
18241
|
-
}
|
|
18242
|
-
}
|
|
18243
|
-
return message;
|
|
18244
|
-
},
|
|
18245
|
-
|
|
18246
|
-
fromJSON(object: any): CreateWebhookRequest {
|
|
18247
|
-
return {
|
|
18248
|
-
hook_name: isSet(object.hook_name) ? String(object.hook_name) : "",
|
|
18249
|
-
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
18250
|
-
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
18251
|
-
};
|
|
18252
|
-
},
|
|
18253
|
-
|
|
18254
|
-
toJSON(message: CreateWebhookRequest): unknown {
|
|
18255
|
-
const obj: any = {};
|
|
18256
|
-
message.hook_name !== undefined && (obj.hook_name = message.hook_name);
|
|
18257
|
-
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
18258
|
-
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
18259
|
-
return obj;
|
|
18260
|
-
},
|
|
18261
|
-
|
|
18262
|
-
create<I extends Exact<DeepPartial<CreateWebhookRequest>, I>>(base?: I): CreateWebhookRequest {
|
|
18263
|
-
return CreateWebhookRequest.fromPartial(base ?? {});
|
|
18264
|
-
},
|
|
18265
|
-
|
|
18266
|
-
fromPartial<I extends Exact<DeepPartial<CreateWebhookRequest>, I>>(object: I): CreateWebhookRequest {
|
|
18267
|
-
const message = createBaseCreateWebhookRequest();
|
|
18268
|
-
message.hook_name = object.hook_name ?? "";
|
|
18269
|
-
message.channel_id = object.channel_id ?? "";
|
|
18270
|
-
message.clan_id = object.clan_id ?? "";
|
|
18271
|
-
return message;
|
|
18272
|
-
},
|
|
18273
|
-
};
|
|
18274
|
-
|
|
18275
|
-
function createBaseWebhookResponse(): WebhookResponse {
|
|
18276
|
-
return { hook_name: "", channel_id: "", hook_url: "" };
|
|
18277
|
-
}
|
|
18278
|
-
|
|
18279
|
-
export const WebhookResponse = {
|
|
18280
|
-
encode(message: WebhookResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
18281
|
-
if (message.hook_name !== "") {
|
|
18282
|
-
writer.uint32(10).string(message.hook_name);
|
|
18283
|
-
}
|
|
18284
|
-
if (message.channel_id !== "") {
|
|
18285
|
-
writer.uint32(18).string(message.channel_id);
|
|
18286
|
-
}
|
|
18287
|
-
if (message.hook_url !== "") {
|
|
18288
|
-
writer.uint32(26).string(message.hook_url);
|
|
18289
|
-
}
|
|
18290
|
-
return writer;
|
|
18291
|
-
},
|
|
18292
|
-
|
|
18293
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): WebhookResponse {
|
|
18294
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
18295
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
18296
|
-
const message = createBaseWebhookResponse();
|
|
18297
|
-
while (reader.pos < end) {
|
|
18298
|
-
const tag = reader.uint32();
|
|
18299
|
-
switch (tag >>> 3) {
|
|
18300
|
-
case 1:
|
|
18301
|
-
message.hook_name = reader.string();
|
|
18302
|
-
break;
|
|
18303
|
-
case 2:
|
|
18304
|
-
message.channel_id = reader.string();
|
|
18305
|
-
break;
|
|
18306
|
-
case 3:
|
|
18307
|
-
message.hook_url = reader.string();
|
|
18308
|
-
break;
|
|
18309
|
-
default:
|
|
18310
|
-
reader.skipType(tag & 7);
|
|
18311
|
-
break;
|
|
18312
|
-
}
|
|
18313
|
-
}
|
|
18314
|
-
return message;
|
|
18315
|
-
},
|
|
18316
|
-
|
|
18317
|
-
fromJSON(object: any): WebhookResponse {
|
|
18318
|
-
return {
|
|
18319
|
-
hook_name: isSet(object.hook_name) ? String(object.hook_name) : "",
|
|
18320
|
-
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
18321
|
-
hook_url: isSet(object.hook_url) ? String(object.hook_url) : "",
|
|
18322
|
-
};
|
|
18323
|
-
},
|
|
18324
|
-
|
|
18325
|
-
toJSON(message: WebhookResponse): unknown {
|
|
18326
|
-
const obj: any = {};
|
|
18327
|
-
message.hook_name !== undefined && (obj.hook_name = message.hook_name);
|
|
18328
|
-
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
18329
|
-
message.hook_url !== undefined && (obj.hook_url = message.hook_url);
|
|
18330
|
-
return obj;
|
|
18331
|
-
},
|
|
18332
|
-
|
|
18333
|
-
create<I extends Exact<DeepPartial<WebhookResponse>, I>>(base?: I): WebhookResponse {
|
|
18334
|
-
return WebhookResponse.fromPartial(base ?? {});
|
|
18335
|
-
},
|
|
18336
|
-
|
|
18337
|
-
fromPartial<I extends Exact<DeepPartial<WebhookResponse>, I>>(object: I): WebhookResponse {
|
|
18338
|
-
const message = createBaseWebhookResponse();
|
|
18339
|
-
message.hook_name = object.hook_name ?? "";
|
|
18340
|
-
message.channel_id = object.channel_id ?? "";
|
|
18341
|
-
message.hook_url = object.hook_url ?? "";
|
|
18342
|
-
return message;
|
|
18343
|
-
},
|
|
18344
|
-
};
|
|
18345
|
-
|
|
18346
18192
|
function createBaseClanEmojiList(): ClanEmojiList {
|
|
18347
18193
|
return { emoji_list: [] };
|
|
18348
18194
|
}
|
|
@@ -18591,7 +18437,7 @@ export const RegistrationEmailRequest_VarsEntry = {
|
|
|
18591
18437
|
};
|
|
18592
18438
|
|
|
18593
18439
|
function createBaseClanEmojiCreateRequest(): ClanEmojiCreateRequest {
|
|
18594
|
-
return { clan_id: "", source: "", shortname: "", category: "" };
|
|
18440
|
+
return { clan_id: "", source: "", shortname: "", category: "", id: "" };
|
|
18595
18441
|
}
|
|
18596
18442
|
|
|
18597
18443
|
export const ClanEmojiCreateRequest = {
|
|
@@ -18608,6 +18454,9 @@ export const ClanEmojiCreateRequest = {
|
|
|
18608
18454
|
if (message.category !== "") {
|
|
18609
18455
|
writer.uint32(34).string(message.category);
|
|
18610
18456
|
}
|
|
18457
|
+
if (message.id !== "") {
|
|
18458
|
+
writer.uint32(42).string(message.id);
|
|
18459
|
+
}
|
|
18611
18460
|
return writer;
|
|
18612
18461
|
},
|
|
18613
18462
|
|
|
@@ -18630,6 +18479,9 @@ export const ClanEmojiCreateRequest = {
|
|
|
18630
18479
|
case 4:
|
|
18631
18480
|
message.category = reader.string();
|
|
18632
18481
|
break;
|
|
18482
|
+
case 5:
|
|
18483
|
+
message.id = reader.string();
|
|
18484
|
+
break;
|
|
18633
18485
|
default:
|
|
18634
18486
|
reader.skipType(tag & 7);
|
|
18635
18487
|
break;
|
|
@@ -18644,6 +18496,7 @@ export const ClanEmojiCreateRequest = {
|
|
|
18644
18496
|
source: isSet(object.source) ? String(object.source) : "",
|
|
18645
18497
|
shortname: isSet(object.shortname) ? String(object.shortname) : "",
|
|
18646
18498
|
category: isSet(object.category) ? String(object.category) : "",
|
|
18499
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
18647
18500
|
};
|
|
18648
18501
|
},
|
|
18649
18502
|
|
|
@@ -18653,6 +18506,7 @@ export const ClanEmojiCreateRequest = {
|
|
|
18653
18506
|
message.source !== undefined && (obj.source = message.source);
|
|
18654
18507
|
message.shortname !== undefined && (obj.shortname = message.shortname);
|
|
18655
18508
|
message.category !== undefined && (obj.category = message.category);
|
|
18509
|
+
message.id !== undefined && (obj.id = message.id);
|
|
18656
18510
|
return obj;
|
|
18657
18511
|
},
|
|
18658
18512
|
|
|
@@ -18666,6 +18520,7 @@ export const ClanEmojiCreateRequest = {
|
|
|
18666
18520
|
message.source = object.source ?? "";
|
|
18667
18521
|
message.shortname = object.shortname ?? "";
|
|
18668
18522
|
message.category = object.category ?? "";
|
|
18523
|
+
message.id = object.id ?? "";
|
|
18669
18524
|
return message;
|
|
18670
18525
|
},
|
|
18671
18526
|
};
|
|
@@ -18722,7 +18577,7 @@ export const ClanEmojiGetByClanIdRequest = {
|
|
|
18722
18577
|
};
|
|
18723
18578
|
|
|
18724
18579
|
function createBaseClanEmojiDeleteRequest(): ClanEmojiDeleteRequest {
|
|
18725
|
-
return { id: "" };
|
|
18580
|
+
return { id: "", clanId: "" };
|
|
18726
18581
|
}
|
|
18727
18582
|
|
|
18728
18583
|
export const ClanEmojiDeleteRequest = {
|
|
@@ -18730,6 +18585,9 @@ export const ClanEmojiDeleteRequest = {
|
|
|
18730
18585
|
if (message.id !== "") {
|
|
18731
18586
|
writer.uint32(10).string(message.id);
|
|
18732
18587
|
}
|
|
18588
|
+
if (message.clanId !== "") {
|
|
18589
|
+
writer.uint32(18).string(message.clanId);
|
|
18590
|
+
}
|
|
18733
18591
|
return writer;
|
|
18734
18592
|
},
|
|
18735
18593
|
|
|
@@ -18743,6 +18601,9 @@ export const ClanEmojiDeleteRequest = {
|
|
|
18743
18601
|
case 1:
|
|
18744
18602
|
message.id = reader.string();
|
|
18745
18603
|
break;
|
|
18604
|
+
case 2:
|
|
18605
|
+
message.clanId = reader.string();
|
|
18606
|
+
break;
|
|
18746
18607
|
default:
|
|
18747
18608
|
reader.skipType(tag & 7);
|
|
18748
18609
|
break;
|
|
@@ -18752,12 +18613,13 @@ export const ClanEmojiDeleteRequest = {
|
|
|
18752
18613
|
},
|
|
18753
18614
|
|
|
18754
18615
|
fromJSON(object: any): ClanEmojiDeleteRequest {
|
|
18755
|
-
return { id: isSet(object.id) ? String(object.id) : "" };
|
|
18616
|
+
return { id: isSet(object.id) ? String(object.id) : "", clanId: isSet(object.clanId) ? String(object.clanId) : "" };
|
|
18756
18617
|
},
|
|
18757
18618
|
|
|
18758
18619
|
toJSON(message: ClanEmojiDeleteRequest): unknown {
|
|
18759
18620
|
const obj: any = {};
|
|
18760
18621
|
message.id !== undefined && (obj.id = message.id);
|
|
18622
|
+
message.clanId !== undefined && (obj.clanId = message.clanId);
|
|
18761
18623
|
return obj;
|
|
18762
18624
|
},
|
|
18763
18625
|
|
|
@@ -18768,6 +18630,7 @@ export const ClanEmojiDeleteRequest = {
|
|
|
18768
18630
|
fromPartial<I extends Exact<DeepPartial<ClanEmojiDeleteRequest>, I>>(object: I): ClanEmojiDeleteRequest {
|
|
18769
18631
|
const message = createBaseClanEmojiDeleteRequest();
|
|
18770
18632
|
message.id = object.id ?? "";
|
|
18633
|
+
message.clanId = object.clanId ?? "";
|
|
18771
18634
|
return message;
|
|
18772
18635
|
},
|
|
18773
18636
|
};
|
|
@@ -19330,7 +19193,7 @@ export const WebhookDeleteRequestById = {
|
|
|
19330
19193
|
};
|
|
19331
19194
|
|
|
19332
19195
|
function createBaseWebhookListRequest(): WebhookListRequest {
|
|
19333
|
-
return { channel_id: "" };
|
|
19196
|
+
return { channel_id: "", clan_id: "" };
|
|
19334
19197
|
}
|
|
19335
19198
|
|
|
19336
19199
|
export const WebhookListRequest = {
|
|
@@ -19338,6 +19201,9 @@ export const WebhookListRequest = {
|
|
|
19338
19201
|
if (message.channel_id !== "") {
|
|
19339
19202
|
writer.uint32(10).string(message.channel_id);
|
|
19340
19203
|
}
|
|
19204
|
+
if (message.clan_id !== "") {
|
|
19205
|
+
writer.uint32(18).string(message.clan_id);
|
|
19206
|
+
}
|
|
19341
19207
|
return writer;
|
|
19342
19208
|
},
|
|
19343
19209
|
|
|
@@ -19351,6 +19217,9 @@ export const WebhookListRequest = {
|
|
|
19351
19217
|
case 1:
|
|
19352
19218
|
message.channel_id = reader.string();
|
|
19353
19219
|
break;
|
|
19220
|
+
case 2:
|
|
19221
|
+
message.clan_id = reader.string();
|
|
19222
|
+
break;
|
|
19354
19223
|
default:
|
|
19355
19224
|
reader.skipType(tag & 7);
|
|
19356
19225
|
break;
|
|
@@ -19360,12 +19229,16 @@ export const WebhookListRequest = {
|
|
|
19360
19229
|
},
|
|
19361
19230
|
|
|
19362
19231
|
fromJSON(object: any): WebhookListRequest {
|
|
19363
|
-
return {
|
|
19232
|
+
return {
|
|
19233
|
+
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
19234
|
+
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
19235
|
+
};
|
|
19364
19236
|
},
|
|
19365
19237
|
|
|
19366
19238
|
toJSON(message: WebhookListRequest): unknown {
|
|
19367
19239
|
const obj: any = {};
|
|
19368
19240
|
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
19241
|
+
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
19369
19242
|
return obj;
|
|
19370
19243
|
},
|
|
19371
19244
|
|
|
@@ -19376,6 +19249,7 @@ export const WebhookListRequest = {
|
|
|
19376
19249
|
fromPartial<I extends Exact<DeepPartial<WebhookListRequest>, I>>(object: I): WebhookListRequest {
|
|
19377
19250
|
const message = createBaseWebhookListRequest();
|
|
19378
19251
|
message.channel_id = object.channel_id ?? "";
|
|
19252
|
+
message.clan_id = object.clan_id ?? "";
|
|
19379
19253
|
return message;
|
|
19380
19254
|
},
|
|
19381
19255
|
};
|
|
@@ -19729,7 +19603,7 @@ export const ClanSticker = {
|
|
|
19729
19603
|
};
|
|
19730
19604
|
|
|
19731
19605
|
function createBaseClanStickerAddRequest(): ClanStickerAddRequest {
|
|
19732
|
-
return { source: "", shortname: "", category: "", clan_id: 0 };
|
|
19606
|
+
return { source: "", shortname: "", category: "", clan_id: 0, id: "" };
|
|
19733
19607
|
}
|
|
19734
19608
|
|
|
19735
19609
|
export const ClanStickerAddRequest = {
|
|
@@ -19746,6 +19620,9 @@ export const ClanStickerAddRequest = {
|
|
|
19746
19620
|
if (message.clan_id !== 0) {
|
|
19747
19621
|
writer.uint32(32).int64(message.clan_id);
|
|
19748
19622
|
}
|
|
19623
|
+
if (message.id !== "") {
|
|
19624
|
+
writer.uint32(42).string(message.id);
|
|
19625
|
+
}
|
|
19749
19626
|
return writer;
|
|
19750
19627
|
},
|
|
19751
19628
|
|
|
@@ -19768,6 +19645,9 @@ export const ClanStickerAddRequest = {
|
|
|
19768
19645
|
case 4:
|
|
19769
19646
|
message.clan_id = longToNumber(reader.int64() as Long);
|
|
19770
19647
|
break;
|
|
19648
|
+
case 5:
|
|
19649
|
+
message.id = reader.string();
|
|
19650
|
+
break;
|
|
19771
19651
|
default:
|
|
19772
19652
|
reader.skipType(tag & 7);
|
|
19773
19653
|
break;
|
|
@@ -19782,6 +19662,7 @@ export const ClanStickerAddRequest = {
|
|
|
19782
19662
|
shortname: isSet(object.shortname) ? String(object.shortname) : "",
|
|
19783
19663
|
category: isSet(object.category) ? String(object.category) : "",
|
|
19784
19664
|
clan_id: isSet(object.clan_id) ? Number(object.clan_id) : 0,
|
|
19665
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
19785
19666
|
};
|
|
19786
19667
|
},
|
|
19787
19668
|
|
|
@@ -19791,6 +19672,7 @@ export const ClanStickerAddRequest = {
|
|
|
19791
19672
|
message.shortname !== undefined && (obj.shortname = message.shortname);
|
|
19792
19673
|
message.category !== undefined && (obj.category = message.category);
|
|
19793
19674
|
message.clan_id !== undefined && (obj.clan_id = Math.round(message.clan_id));
|
|
19675
|
+
message.id !== undefined && (obj.id = message.id);
|
|
19794
19676
|
return obj;
|
|
19795
19677
|
},
|
|
19796
19678
|
|
|
@@ -19804,6 +19686,7 @@ export const ClanStickerAddRequest = {
|
|
|
19804
19686
|
message.shortname = object.shortname ?? "";
|
|
19805
19687
|
message.category = object.category ?? "";
|
|
19806
19688
|
message.clan_id = object.clan_id ?? 0;
|
|
19689
|
+
message.id = object.id ?? "";
|
|
19807
19690
|
return message;
|
|
19808
19691
|
},
|
|
19809
19692
|
};
|
|
@@ -20001,7 +19884,7 @@ export const ClanStickerUpdateByIdRequest = {
|
|
|
20001
19884
|
};
|
|
20002
19885
|
|
|
20003
19886
|
function createBaseClanStickerDeleteRequest(): ClanStickerDeleteRequest {
|
|
20004
|
-
return { id: 0 };
|
|
19887
|
+
return { id: 0, clanId: "" };
|
|
20005
19888
|
}
|
|
20006
19889
|
|
|
20007
19890
|
export const ClanStickerDeleteRequest = {
|
|
@@ -20009,6 +19892,9 @@ export const ClanStickerDeleteRequest = {
|
|
|
20009
19892
|
if (message.id !== 0) {
|
|
20010
19893
|
writer.uint32(8).int64(message.id);
|
|
20011
19894
|
}
|
|
19895
|
+
if (message.clanId !== "") {
|
|
19896
|
+
writer.uint32(18).string(message.clanId);
|
|
19897
|
+
}
|
|
20012
19898
|
return writer;
|
|
20013
19899
|
},
|
|
20014
19900
|
|
|
@@ -20022,6 +19908,9 @@ export const ClanStickerDeleteRequest = {
|
|
|
20022
19908
|
case 1:
|
|
20023
19909
|
message.id = longToNumber(reader.int64() as Long);
|
|
20024
19910
|
break;
|
|
19911
|
+
case 2:
|
|
19912
|
+
message.clanId = reader.string();
|
|
19913
|
+
break;
|
|
20025
19914
|
default:
|
|
20026
19915
|
reader.skipType(tag & 7);
|
|
20027
19916
|
break;
|
|
@@ -20031,12 +19920,13 @@ export const ClanStickerDeleteRequest = {
|
|
|
20031
19920
|
},
|
|
20032
19921
|
|
|
20033
19922
|
fromJSON(object: any): ClanStickerDeleteRequest {
|
|
20034
|
-
return { id: isSet(object.id) ? Number(object.id) : 0 };
|
|
19923
|
+
return { id: isSet(object.id) ? Number(object.id) : 0, clanId: isSet(object.clanId) ? String(object.clanId) : "" };
|
|
20035
19924
|
},
|
|
20036
19925
|
|
|
20037
19926
|
toJSON(message: ClanStickerDeleteRequest): unknown {
|
|
20038
19927
|
const obj: any = {};
|
|
20039
19928
|
message.id !== undefined && (obj.id = Math.round(message.id));
|
|
19929
|
+
message.clanId !== undefined && (obj.clanId = message.clanId);
|
|
20040
19930
|
return obj;
|
|
20041
19931
|
},
|
|
20042
19932
|
|
|
@@ -20047,6 +19937,7 @@ export const ClanStickerDeleteRequest = {
|
|
|
20047
19937
|
fromPartial<I extends Exact<DeepPartial<ClanStickerDeleteRequest>, I>>(object: I): ClanStickerDeleteRequest {
|
|
20048
19938
|
const message = createBaseClanStickerDeleteRequest();
|
|
20049
19939
|
message.id = object.id ?? 0;
|
|
19940
|
+
message.clanId = object.clanId ?? "";
|
|
20050
19941
|
return message;
|
|
20051
19942
|
},
|
|
20052
19943
|
};
|