mezon-sdk 2.7.75 → 2.7.76
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/dist/cjs/api/api.d.ts +598 -279
- package/dist/cjs/api/api.js +535 -405
- package/dist/cjs/api/api.js.map +1 -1
- package/dist/cjs/rtapi/realtime.d.ts +396 -237
- package/dist/cjs/rtapi/realtime.js +129 -1
- package/dist/cjs/rtapi/realtime.js.map +1 -1
- package/dist/esm/api/api.d.ts +598 -279
- package/dist/esm/api/api.js +508 -375
- package/dist/esm/api/api.js.map +1 -1
- package/dist/esm/rtapi/realtime.d.ts +396 -237
- package/dist/esm/rtapi/realtime.js +127 -0
- package/dist/esm/rtapi/realtime.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/esm/api/api.js
CHANGED
|
@@ -310,6 +310,7 @@ function createBaseAccount() {
|
|
|
310
310
|
disable_time: undefined,
|
|
311
311
|
logo: "",
|
|
312
312
|
splash_screen: "",
|
|
313
|
+
encrypt_private_key: "",
|
|
313
314
|
};
|
|
314
315
|
}
|
|
315
316
|
export const Account = {
|
|
@@ -341,6 +342,9 @@ export const Account = {
|
|
|
341
342
|
if (message.splash_screen !== "") {
|
|
342
343
|
writer.uint32(74).string(message.splash_screen);
|
|
343
344
|
}
|
|
345
|
+
if (message.encrypt_private_key !== "") {
|
|
346
|
+
writer.uint32(82).string(message.encrypt_private_key);
|
|
347
|
+
}
|
|
344
348
|
return writer;
|
|
345
349
|
},
|
|
346
350
|
decode(input, length) {
|
|
@@ -404,6 +408,12 @@ export const Account = {
|
|
|
404
408
|
}
|
|
405
409
|
message.splash_screen = reader.string();
|
|
406
410
|
continue;
|
|
411
|
+
case 10:
|
|
412
|
+
if (tag !== 82) {
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
message.encrypt_private_key = reader.string();
|
|
416
|
+
continue;
|
|
407
417
|
}
|
|
408
418
|
if ((tag & 7) === 4 || tag === 0) {
|
|
409
419
|
break;
|
|
@@ -425,6 +435,7 @@ export const Account = {
|
|
|
425
435
|
disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
|
|
426
436
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
427
437
|
splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
438
|
+
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
428
439
|
};
|
|
429
440
|
},
|
|
430
441
|
toJSON(message) {
|
|
@@ -456,6 +467,9 @@ export const Account = {
|
|
|
456
467
|
if (message.splash_screen !== "") {
|
|
457
468
|
obj.splash_screen = message.splash_screen;
|
|
458
469
|
}
|
|
470
|
+
if (message.encrypt_private_key !== "") {
|
|
471
|
+
obj.encrypt_private_key = message.encrypt_private_key;
|
|
472
|
+
}
|
|
459
473
|
return obj;
|
|
460
474
|
},
|
|
461
475
|
create(base) {
|
|
@@ -472,6 +486,7 @@ export const Account = {
|
|
|
472
486
|
message.disable_time = object.disable_time ?? undefined;
|
|
473
487
|
message.logo = object.logo ?? "";
|
|
474
488
|
message.splash_screen = object.splash_screen ?? "";
|
|
489
|
+
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
475
490
|
return message;
|
|
476
491
|
},
|
|
477
492
|
};
|
|
@@ -6478,6 +6493,8 @@ function createBaseChannelAttachment() {
|
|
|
6478
6493
|
uploader: "",
|
|
6479
6494
|
create_time: undefined,
|
|
6480
6495
|
message_id: "",
|
|
6496
|
+
width: 0,
|
|
6497
|
+
height: 0,
|
|
6481
6498
|
};
|
|
6482
6499
|
}
|
|
6483
6500
|
export const ChannelAttachment = {
|
|
@@ -6506,6 +6523,12 @@ export const ChannelAttachment = {
|
|
|
6506
6523
|
if (message.message_id !== "") {
|
|
6507
6524
|
writer.uint32(66).string(message.message_id);
|
|
6508
6525
|
}
|
|
6526
|
+
if (message.width !== 0) {
|
|
6527
|
+
writer.uint32(72).int32(message.width);
|
|
6528
|
+
}
|
|
6529
|
+
if (message.height !== 0) {
|
|
6530
|
+
writer.uint32(80).int32(message.height);
|
|
6531
|
+
}
|
|
6509
6532
|
return writer;
|
|
6510
6533
|
},
|
|
6511
6534
|
decode(input, length) {
|
|
@@ -6563,6 +6586,18 @@ export const ChannelAttachment = {
|
|
|
6563
6586
|
}
|
|
6564
6587
|
message.message_id = reader.string();
|
|
6565
6588
|
continue;
|
|
6589
|
+
case 9:
|
|
6590
|
+
if (tag !== 72) {
|
|
6591
|
+
break;
|
|
6592
|
+
}
|
|
6593
|
+
message.width = reader.int32();
|
|
6594
|
+
continue;
|
|
6595
|
+
case 10:
|
|
6596
|
+
if (tag !== 80) {
|
|
6597
|
+
break;
|
|
6598
|
+
}
|
|
6599
|
+
message.height = reader.int32();
|
|
6600
|
+
continue;
|
|
6566
6601
|
}
|
|
6567
6602
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6568
6603
|
break;
|
|
@@ -6581,6 +6616,8 @@ export const ChannelAttachment = {
|
|
|
6581
6616
|
uploader: isSet(object.uploader) ? globalThis.String(object.uploader) : "",
|
|
6582
6617
|
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
6583
6618
|
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
6619
|
+
width: isSet(object.width) ? globalThis.Number(object.width) : 0,
|
|
6620
|
+
height: isSet(object.height) ? globalThis.Number(object.height) : 0,
|
|
6584
6621
|
};
|
|
6585
6622
|
},
|
|
6586
6623
|
toJSON(message) {
|
|
@@ -6609,6 +6646,12 @@ export const ChannelAttachment = {
|
|
|
6609
6646
|
if (message.message_id !== "") {
|
|
6610
6647
|
obj.message_id = message.message_id;
|
|
6611
6648
|
}
|
|
6649
|
+
if (message.width !== 0) {
|
|
6650
|
+
obj.width = Math.round(message.width);
|
|
6651
|
+
}
|
|
6652
|
+
if (message.height !== 0) {
|
|
6653
|
+
obj.height = Math.round(message.height);
|
|
6654
|
+
}
|
|
6612
6655
|
return obj;
|
|
6613
6656
|
},
|
|
6614
6657
|
create(base) {
|
|
@@ -6624,6 +6667,8 @@ export const ChannelAttachment = {
|
|
|
6624
6667
|
message.uploader = object.uploader ?? "";
|
|
6625
6668
|
message.create_time = object.create_time ?? undefined;
|
|
6626
6669
|
message.message_id = object.message_id ?? "";
|
|
6670
|
+
message.width = object.width ?? 0;
|
|
6671
|
+
message.height = object.height ?? 0;
|
|
6627
6672
|
return message;
|
|
6628
6673
|
},
|
|
6629
6674
|
};
|
|
@@ -8844,6 +8889,7 @@ function createBaseUpdateAccountRequest() {
|
|
|
8844
8889
|
dob: undefined,
|
|
8845
8890
|
logo: "",
|
|
8846
8891
|
splash_screen: "",
|
|
8892
|
+
encrypt_private_key: "",
|
|
8847
8893
|
};
|
|
8848
8894
|
}
|
|
8849
8895
|
export const UpdateAccountRequest = {
|
|
@@ -8878,6 +8924,9 @@ export const UpdateAccountRequest = {
|
|
|
8878
8924
|
if (message.splash_screen !== "") {
|
|
8879
8925
|
writer.uint32(82).string(message.splash_screen);
|
|
8880
8926
|
}
|
|
8927
|
+
if (message.encrypt_private_key !== "") {
|
|
8928
|
+
writer.uint32(90).string(message.encrypt_private_key);
|
|
8929
|
+
}
|
|
8881
8930
|
return writer;
|
|
8882
8931
|
},
|
|
8883
8932
|
decode(input, length) {
|
|
@@ -8947,6 +8996,12 @@ export const UpdateAccountRequest = {
|
|
|
8947
8996
|
}
|
|
8948
8997
|
message.splash_screen = reader.string();
|
|
8949
8998
|
continue;
|
|
8999
|
+
case 11:
|
|
9000
|
+
if (tag !== 90) {
|
|
9001
|
+
break;
|
|
9002
|
+
}
|
|
9003
|
+
message.encrypt_private_key = reader.string();
|
|
9004
|
+
continue;
|
|
8950
9005
|
}
|
|
8951
9006
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8952
9007
|
break;
|
|
@@ -8967,6 +9022,7 @@ export const UpdateAccountRequest = {
|
|
|
8967
9022
|
dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
|
|
8968
9023
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
8969
9024
|
splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
9025
|
+
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
8970
9026
|
};
|
|
8971
9027
|
},
|
|
8972
9028
|
toJSON(message) {
|
|
@@ -9001,6 +9057,9 @@ export const UpdateAccountRequest = {
|
|
|
9001
9057
|
if (message.splash_screen !== "") {
|
|
9002
9058
|
obj.splash_screen = message.splash_screen;
|
|
9003
9059
|
}
|
|
9060
|
+
if (message.encrypt_private_key !== "") {
|
|
9061
|
+
obj.encrypt_private_key = message.encrypt_private_key;
|
|
9062
|
+
}
|
|
9004
9063
|
return obj;
|
|
9005
9064
|
},
|
|
9006
9065
|
create(base) {
|
|
@@ -9018,6 +9077,7 @@ export const UpdateAccountRequest = {
|
|
|
9018
9077
|
message.dob = object.dob ?? undefined;
|
|
9019
9078
|
message.logo = object.logo ?? "";
|
|
9020
9079
|
message.splash_screen = object.splash_screen ?? "";
|
|
9080
|
+
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
9021
9081
|
return message;
|
|
9022
9082
|
},
|
|
9023
9083
|
};
|
|
@@ -11586,7 +11646,7 @@ export const CreateCategoryDescRequest = {
|
|
|
11586
11646
|
},
|
|
11587
11647
|
};
|
|
11588
11648
|
function createBaseDeleteCategoryDescRequest() {
|
|
11589
|
-
return { category_id: "", clan_id: "" };
|
|
11649
|
+
return { category_id: "", clan_id: "", category_label: "" };
|
|
11590
11650
|
}
|
|
11591
11651
|
export const DeleteCategoryDescRequest = {
|
|
11592
11652
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11596,6 +11656,9 @@ export const DeleteCategoryDescRequest = {
|
|
|
11596
11656
|
if (message.clan_id !== "") {
|
|
11597
11657
|
writer.uint32(18).string(message.clan_id);
|
|
11598
11658
|
}
|
|
11659
|
+
if (message.category_label !== "") {
|
|
11660
|
+
writer.uint32(26).string(message.category_label);
|
|
11661
|
+
}
|
|
11599
11662
|
return writer;
|
|
11600
11663
|
},
|
|
11601
11664
|
decode(input, length) {
|
|
@@ -11617,6 +11680,12 @@ export const DeleteCategoryDescRequest = {
|
|
|
11617
11680
|
}
|
|
11618
11681
|
message.clan_id = reader.string();
|
|
11619
11682
|
continue;
|
|
11683
|
+
case 3:
|
|
11684
|
+
if (tag !== 26) {
|
|
11685
|
+
break;
|
|
11686
|
+
}
|
|
11687
|
+
message.category_label = reader.string();
|
|
11688
|
+
continue;
|
|
11620
11689
|
}
|
|
11621
11690
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11622
11691
|
break;
|
|
@@ -11629,6 +11698,7 @@ export const DeleteCategoryDescRequest = {
|
|
|
11629
11698
|
return {
|
|
11630
11699
|
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
11631
11700
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
11701
|
+
category_label: isSet(object.category_label) ? globalThis.String(object.category_label) : "",
|
|
11632
11702
|
};
|
|
11633
11703
|
},
|
|
11634
11704
|
toJSON(message) {
|
|
@@ -11639,6 +11709,9 @@ export const DeleteCategoryDescRequest = {
|
|
|
11639
11709
|
if (message.clan_id !== "") {
|
|
11640
11710
|
obj.clan_id = message.clan_id;
|
|
11641
11711
|
}
|
|
11712
|
+
if (message.category_label !== "") {
|
|
11713
|
+
obj.category_label = message.category_label;
|
|
11714
|
+
}
|
|
11642
11715
|
return obj;
|
|
11643
11716
|
},
|
|
11644
11717
|
create(base) {
|
|
@@ -11648,6 +11721,7 @@ export const DeleteCategoryDescRequest = {
|
|
|
11648
11721
|
const message = createBaseDeleteCategoryDescRequest();
|
|
11649
11722
|
message.category_id = object.category_id ?? "";
|
|
11650
11723
|
message.clan_id = object.clan_id ?? "";
|
|
11724
|
+
message.category_label = object.category_label ?? "";
|
|
11651
11725
|
return message;
|
|
11652
11726
|
},
|
|
11653
11727
|
};
|
|
@@ -11795,6 +11869,7 @@ function createBaseChannelMessageHeader() {
|
|
|
11795
11869
|
referece: "",
|
|
11796
11870
|
mention: "",
|
|
11797
11871
|
reaction: "",
|
|
11872
|
+
repliers: [],
|
|
11798
11873
|
};
|
|
11799
11874
|
}
|
|
11800
11875
|
export const ChannelMessageHeader = {
|
|
@@ -11823,6 +11898,9 @@ export const ChannelMessageHeader = {
|
|
|
11823
11898
|
if (message.reaction !== "") {
|
|
11824
11899
|
writer.uint32(66).string(message.reaction);
|
|
11825
11900
|
}
|
|
11901
|
+
for (const v of message.repliers) {
|
|
11902
|
+
writer.uint32(74).string(v);
|
|
11903
|
+
}
|
|
11826
11904
|
return writer;
|
|
11827
11905
|
},
|
|
11828
11906
|
decode(input, length) {
|
|
@@ -11880,6 +11958,12 @@ export const ChannelMessageHeader = {
|
|
|
11880
11958
|
}
|
|
11881
11959
|
message.reaction = reader.string();
|
|
11882
11960
|
continue;
|
|
11961
|
+
case 9:
|
|
11962
|
+
if (tag !== 74) {
|
|
11963
|
+
break;
|
|
11964
|
+
}
|
|
11965
|
+
message.repliers.push(reader.string());
|
|
11966
|
+
continue;
|
|
11883
11967
|
}
|
|
11884
11968
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11885
11969
|
break;
|
|
@@ -11898,6 +11982,7 @@ export const ChannelMessageHeader = {
|
|
|
11898
11982
|
referece: isSet(object.referece) ? globalThis.String(object.referece) : "",
|
|
11899
11983
|
mention: isSet(object.mention) ? globalThis.String(object.mention) : "",
|
|
11900
11984
|
reaction: isSet(object.reaction) ? globalThis.String(object.reaction) : "",
|
|
11985
|
+
repliers: globalThis.Array.isArray(object?.repliers) ? object.repliers.map((e) => globalThis.String(e)) : [],
|
|
11901
11986
|
};
|
|
11902
11987
|
},
|
|
11903
11988
|
toJSON(message) {
|
|
@@ -11926,6 +12011,9 @@ export const ChannelMessageHeader = {
|
|
|
11926
12011
|
if (message.reaction !== "") {
|
|
11927
12012
|
obj.reaction = message.reaction;
|
|
11928
12013
|
}
|
|
12014
|
+
if (message.repliers?.length) {
|
|
12015
|
+
obj.repliers = message.repliers;
|
|
12016
|
+
}
|
|
11929
12017
|
return obj;
|
|
11930
12018
|
},
|
|
11931
12019
|
create(base) {
|
|
@@ -11941,6 +12029,7 @@ export const ChannelMessageHeader = {
|
|
|
11941
12029
|
message.referece = object.referece ?? "";
|
|
11942
12030
|
message.mention = object.mention ?? "";
|
|
11943
12031
|
message.reaction = object.reaction ?? "";
|
|
12032
|
+
message.repliers = object.repliers?.map((e) => e) || [];
|
|
11944
12033
|
return message;
|
|
11945
12034
|
},
|
|
11946
12035
|
};
|
|
@@ -13837,13 +13926,16 @@ function createBaseEventManagement() {
|
|
|
13837
13926
|
start_event: 0,
|
|
13838
13927
|
creator_id: "",
|
|
13839
13928
|
clan_id: "",
|
|
13840
|
-
|
|
13929
|
+
channel_voice_id: "",
|
|
13841
13930
|
address: "",
|
|
13842
13931
|
start_time: undefined,
|
|
13843
13932
|
end_time: undefined,
|
|
13844
13933
|
user_ids: [],
|
|
13845
13934
|
create_time: undefined,
|
|
13846
13935
|
max_permission: 0,
|
|
13936
|
+
channel_id: "",
|
|
13937
|
+
event_status: 0,
|
|
13938
|
+
repeat_type: 0,
|
|
13847
13939
|
};
|
|
13848
13940
|
}
|
|
13849
13941
|
export const EventManagement = {
|
|
@@ -13872,8 +13964,8 @@ export const EventManagement = {
|
|
|
13872
13964
|
if (message.clan_id !== "") {
|
|
13873
13965
|
writer.uint32(66).string(message.clan_id);
|
|
13874
13966
|
}
|
|
13875
|
-
if (message.
|
|
13876
|
-
writer.uint32(74).string(message.
|
|
13967
|
+
if (message.channel_voice_id !== "") {
|
|
13968
|
+
writer.uint32(74).string(message.channel_voice_id);
|
|
13877
13969
|
}
|
|
13878
13970
|
if (message.address !== "") {
|
|
13879
13971
|
writer.uint32(82).string(message.address);
|
|
@@ -13893,6 +13985,15 @@ export const EventManagement = {
|
|
|
13893
13985
|
if (message.max_permission !== 0) {
|
|
13894
13986
|
writer.uint32(120).int32(message.max_permission);
|
|
13895
13987
|
}
|
|
13988
|
+
if (message.channel_id !== "") {
|
|
13989
|
+
writer.uint32(130).string(message.channel_id);
|
|
13990
|
+
}
|
|
13991
|
+
if (message.event_status !== 0) {
|
|
13992
|
+
writer.uint32(136).int32(message.event_status);
|
|
13993
|
+
}
|
|
13994
|
+
if (message.repeat_type !== 0) {
|
|
13995
|
+
writer.uint32(144).int32(message.repeat_type);
|
|
13996
|
+
}
|
|
13896
13997
|
return writer;
|
|
13897
13998
|
},
|
|
13898
13999
|
decode(input, length) {
|
|
@@ -13954,7 +14055,7 @@ export const EventManagement = {
|
|
|
13954
14055
|
if (tag !== 74) {
|
|
13955
14056
|
break;
|
|
13956
14057
|
}
|
|
13957
|
-
message.
|
|
14058
|
+
message.channel_voice_id = reader.string();
|
|
13958
14059
|
continue;
|
|
13959
14060
|
case 10:
|
|
13960
14061
|
if (tag !== 82) {
|
|
@@ -13992,6 +14093,24 @@ export const EventManagement = {
|
|
|
13992
14093
|
}
|
|
13993
14094
|
message.max_permission = reader.int32();
|
|
13994
14095
|
continue;
|
|
14096
|
+
case 16:
|
|
14097
|
+
if (tag !== 130) {
|
|
14098
|
+
break;
|
|
14099
|
+
}
|
|
14100
|
+
message.channel_id = reader.string();
|
|
14101
|
+
continue;
|
|
14102
|
+
case 17:
|
|
14103
|
+
if (tag !== 136) {
|
|
14104
|
+
break;
|
|
14105
|
+
}
|
|
14106
|
+
message.event_status = reader.int32();
|
|
14107
|
+
continue;
|
|
14108
|
+
case 18:
|
|
14109
|
+
if (tag !== 144) {
|
|
14110
|
+
break;
|
|
14111
|
+
}
|
|
14112
|
+
message.repeat_type = reader.int32();
|
|
14113
|
+
continue;
|
|
13995
14114
|
}
|
|
13996
14115
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13997
14116
|
break;
|
|
@@ -14010,13 +14129,16 @@ export const EventManagement = {
|
|
|
14010
14129
|
start_event: isSet(object.start_event) ? globalThis.Number(object.start_event) : 0,
|
|
14011
14130
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
14012
14131
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
14013
|
-
|
|
14132
|
+
channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
|
|
14014
14133
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
14015
14134
|
start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
|
|
14016
14135
|
end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
|
|
14017
14136
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
14018
14137
|
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
14019
14138
|
max_permission: isSet(object.max_permission) ? globalThis.Number(object.max_permission) : 0,
|
|
14139
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
14140
|
+
event_status: isSet(object.event_status) ? globalThis.Number(object.event_status) : 0,
|
|
14141
|
+
repeat_type: isSet(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
|
|
14020
14142
|
};
|
|
14021
14143
|
},
|
|
14022
14144
|
toJSON(message) {
|
|
@@ -14045,8 +14167,8 @@ export const EventManagement = {
|
|
|
14045
14167
|
if (message.clan_id !== "") {
|
|
14046
14168
|
obj.clan_id = message.clan_id;
|
|
14047
14169
|
}
|
|
14048
|
-
if (message.
|
|
14049
|
-
obj.
|
|
14170
|
+
if (message.channel_voice_id !== "") {
|
|
14171
|
+
obj.channel_voice_id = message.channel_voice_id;
|
|
14050
14172
|
}
|
|
14051
14173
|
if (message.address !== "") {
|
|
14052
14174
|
obj.address = message.address;
|
|
@@ -14066,6 +14188,15 @@ export const EventManagement = {
|
|
|
14066
14188
|
if (message.max_permission !== 0) {
|
|
14067
14189
|
obj.max_permission = Math.round(message.max_permission);
|
|
14068
14190
|
}
|
|
14191
|
+
if (message.channel_id !== "") {
|
|
14192
|
+
obj.channel_id = message.channel_id;
|
|
14193
|
+
}
|
|
14194
|
+
if (message.event_status !== 0) {
|
|
14195
|
+
obj.event_status = Math.round(message.event_status);
|
|
14196
|
+
}
|
|
14197
|
+
if (message.repeat_type !== 0) {
|
|
14198
|
+
obj.repeat_type = Math.round(message.repeat_type);
|
|
14199
|
+
}
|
|
14069
14200
|
return obj;
|
|
14070
14201
|
},
|
|
14071
14202
|
create(base) {
|
|
@@ -14081,13 +14212,16 @@ export const EventManagement = {
|
|
|
14081
14212
|
message.start_event = object.start_event ?? 0;
|
|
14082
14213
|
message.creator_id = object.creator_id ?? "";
|
|
14083
14214
|
message.clan_id = object.clan_id ?? "";
|
|
14084
|
-
message.
|
|
14215
|
+
message.channel_voice_id = object.channel_voice_id ?? "";
|
|
14085
14216
|
message.address = object.address ?? "";
|
|
14086
14217
|
message.start_time = object.start_time ?? undefined;
|
|
14087
14218
|
message.end_time = object.end_time ?? undefined;
|
|
14088
14219
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
14089
14220
|
message.create_time = object.create_time ?? undefined;
|
|
14090
14221
|
message.max_permission = object.max_permission ?? 0;
|
|
14222
|
+
message.channel_id = object.channel_id ?? "";
|
|
14223
|
+
message.event_status = object.event_status ?? 0;
|
|
14224
|
+
message.repeat_type = object.repeat_type ?? 0;
|
|
14091
14225
|
return message;
|
|
14092
14226
|
},
|
|
14093
14227
|
};
|
|
@@ -16798,12 +16932,16 @@ function createBaseCreateEventRequest() {
|
|
|
16798
16932
|
logo: "",
|
|
16799
16933
|
description: "",
|
|
16800
16934
|
clan_id: "",
|
|
16801
|
-
|
|
16935
|
+
channel_voice_id: "",
|
|
16802
16936
|
address: "",
|
|
16803
16937
|
start_time: undefined,
|
|
16804
16938
|
end_time: undefined,
|
|
16805
16939
|
event_id: "",
|
|
16806
|
-
event_status:
|
|
16940
|
+
event_status: 0,
|
|
16941
|
+
channel_id: "",
|
|
16942
|
+
action: 0,
|
|
16943
|
+
repeat_type: 0,
|
|
16944
|
+
creator_id: "",
|
|
16807
16945
|
};
|
|
16808
16946
|
}
|
|
16809
16947
|
export const CreateEventRequest = {
|
|
@@ -16820,8 +16958,8 @@ export const CreateEventRequest = {
|
|
|
16820
16958
|
if (message.clan_id !== "") {
|
|
16821
16959
|
writer.uint32(34).string(message.clan_id);
|
|
16822
16960
|
}
|
|
16823
|
-
if (message.
|
|
16824
|
-
writer.uint32(42).string(message.
|
|
16961
|
+
if (message.channel_voice_id !== "") {
|
|
16962
|
+
writer.uint32(42).string(message.channel_voice_id);
|
|
16825
16963
|
}
|
|
16826
16964
|
if (message.address !== "") {
|
|
16827
16965
|
writer.uint32(50).string(message.address);
|
|
@@ -16835,8 +16973,20 @@ export const CreateEventRequest = {
|
|
|
16835
16973
|
if (message.event_id !== "") {
|
|
16836
16974
|
writer.uint32(74).string(message.event_id);
|
|
16837
16975
|
}
|
|
16838
|
-
if (message.event_status !==
|
|
16839
|
-
writer.uint32(
|
|
16976
|
+
if (message.event_status !== 0) {
|
|
16977
|
+
writer.uint32(80).int32(message.event_status);
|
|
16978
|
+
}
|
|
16979
|
+
if (message.channel_id !== "") {
|
|
16980
|
+
writer.uint32(90).string(message.channel_id);
|
|
16981
|
+
}
|
|
16982
|
+
if (message.action !== 0) {
|
|
16983
|
+
writer.uint32(96).int32(message.action);
|
|
16984
|
+
}
|
|
16985
|
+
if (message.repeat_type !== 0) {
|
|
16986
|
+
writer.uint32(104).int32(message.repeat_type);
|
|
16987
|
+
}
|
|
16988
|
+
if (message.creator_id !== "") {
|
|
16989
|
+
writer.uint32(114).string(message.creator_id);
|
|
16840
16990
|
}
|
|
16841
16991
|
return writer;
|
|
16842
16992
|
},
|
|
@@ -16875,7 +17025,7 @@ export const CreateEventRequest = {
|
|
|
16875
17025
|
if (tag !== 42) {
|
|
16876
17026
|
break;
|
|
16877
17027
|
}
|
|
16878
|
-
message.
|
|
17028
|
+
message.channel_voice_id = reader.string();
|
|
16879
17029
|
continue;
|
|
16880
17030
|
case 6:
|
|
16881
17031
|
if (tag !== 50) {
|
|
@@ -16902,10 +17052,34 @@ export const CreateEventRequest = {
|
|
|
16902
17052
|
message.event_id = reader.string();
|
|
16903
17053
|
continue;
|
|
16904
17054
|
case 10:
|
|
16905
|
-
if (tag !==
|
|
17055
|
+
if (tag !== 80) {
|
|
17056
|
+
break;
|
|
17057
|
+
}
|
|
17058
|
+
message.event_status = reader.int32();
|
|
17059
|
+
continue;
|
|
17060
|
+
case 11:
|
|
17061
|
+
if (tag !== 90) {
|
|
17062
|
+
break;
|
|
17063
|
+
}
|
|
17064
|
+
message.channel_id = reader.string();
|
|
17065
|
+
continue;
|
|
17066
|
+
case 12:
|
|
17067
|
+
if (tag !== 96) {
|
|
17068
|
+
break;
|
|
17069
|
+
}
|
|
17070
|
+
message.action = reader.int32();
|
|
17071
|
+
continue;
|
|
17072
|
+
case 13:
|
|
17073
|
+
if (tag !== 104) {
|
|
17074
|
+
break;
|
|
17075
|
+
}
|
|
17076
|
+
message.repeat_type = reader.int32();
|
|
17077
|
+
continue;
|
|
17078
|
+
case 14:
|
|
17079
|
+
if (tag !== 114) {
|
|
16906
17080
|
break;
|
|
16907
17081
|
}
|
|
16908
|
-
message.
|
|
17082
|
+
message.creator_id = reader.string();
|
|
16909
17083
|
continue;
|
|
16910
17084
|
}
|
|
16911
17085
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -16921,12 +17095,16 @@ export const CreateEventRequest = {
|
|
|
16921
17095
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
16922
17096
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
16923
17097
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
16924
|
-
|
|
17098
|
+
channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
|
|
16925
17099
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
16926
17100
|
start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
|
|
16927
17101
|
end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
|
|
16928
17102
|
event_id: isSet(object.event_id) ? globalThis.String(object.event_id) : "",
|
|
16929
|
-
event_status: isSet(object.event_status) ? globalThis.
|
|
17103
|
+
event_status: isSet(object.event_status) ? globalThis.Number(object.event_status) : 0,
|
|
17104
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
17105
|
+
action: isSet(object.action) ? globalThis.Number(object.action) : 0,
|
|
17106
|
+
repeat_type: isSet(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
|
|
17107
|
+
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
16930
17108
|
};
|
|
16931
17109
|
},
|
|
16932
17110
|
toJSON(message) {
|
|
@@ -16943,8 +17121,8 @@ export const CreateEventRequest = {
|
|
|
16943
17121
|
if (message.clan_id !== "") {
|
|
16944
17122
|
obj.clan_id = message.clan_id;
|
|
16945
17123
|
}
|
|
16946
|
-
if (message.
|
|
16947
|
-
obj.
|
|
17124
|
+
if (message.channel_voice_id !== "") {
|
|
17125
|
+
obj.channel_voice_id = message.channel_voice_id;
|
|
16948
17126
|
}
|
|
16949
17127
|
if (message.address !== "") {
|
|
16950
17128
|
obj.address = message.address;
|
|
@@ -16958,8 +17136,20 @@ export const CreateEventRequest = {
|
|
|
16958
17136
|
if (message.event_id !== "") {
|
|
16959
17137
|
obj.event_id = message.event_id;
|
|
16960
17138
|
}
|
|
16961
|
-
if (message.event_status !==
|
|
16962
|
-
obj.event_status = message.event_status;
|
|
17139
|
+
if (message.event_status !== 0) {
|
|
17140
|
+
obj.event_status = Math.round(message.event_status);
|
|
17141
|
+
}
|
|
17142
|
+
if (message.channel_id !== "") {
|
|
17143
|
+
obj.channel_id = message.channel_id;
|
|
17144
|
+
}
|
|
17145
|
+
if (message.action !== 0) {
|
|
17146
|
+
obj.action = Math.round(message.action);
|
|
17147
|
+
}
|
|
17148
|
+
if (message.repeat_type !== 0) {
|
|
17149
|
+
obj.repeat_type = Math.round(message.repeat_type);
|
|
17150
|
+
}
|
|
17151
|
+
if (message.creator_id !== "") {
|
|
17152
|
+
obj.creator_id = message.creator_id;
|
|
16963
17153
|
}
|
|
16964
17154
|
return obj;
|
|
16965
17155
|
},
|
|
@@ -16972,12 +17162,16 @@ export const CreateEventRequest = {
|
|
|
16972
17162
|
message.logo = object.logo ?? "";
|
|
16973
17163
|
message.description = object.description ?? "";
|
|
16974
17164
|
message.clan_id = object.clan_id ?? "";
|
|
16975
|
-
message.
|
|
17165
|
+
message.channel_voice_id = object.channel_voice_id ?? "";
|
|
16976
17166
|
message.address = object.address ?? "";
|
|
16977
17167
|
message.start_time = object.start_time ?? undefined;
|
|
16978
17168
|
message.end_time = object.end_time ?? undefined;
|
|
16979
17169
|
message.event_id = object.event_id ?? "";
|
|
16980
|
-
message.event_status = object.event_status ??
|
|
17170
|
+
message.event_status = object.event_status ?? 0;
|
|
17171
|
+
message.channel_id = object.channel_id ?? "";
|
|
17172
|
+
message.action = object.action ?? 0;
|
|
17173
|
+
message.repeat_type = object.repeat_type ?? 0;
|
|
17174
|
+
message.creator_id = object.creator_id ?? "";
|
|
16981
17175
|
return message;
|
|
16982
17176
|
},
|
|
16983
17177
|
};
|
|
@@ -16993,6 +17187,9 @@ function createBaseUpdateEventRequest() {
|
|
|
16993
17187
|
end_time: undefined,
|
|
16994
17188
|
clan_id: "",
|
|
16995
17189
|
creator_id: "",
|
|
17190
|
+
channel_voice_id: "",
|
|
17191
|
+
channel_id_old: "",
|
|
17192
|
+
repeat_type: 0,
|
|
16996
17193
|
};
|
|
16997
17194
|
}
|
|
16998
17195
|
export const UpdateEventRequest = {
|
|
@@ -17027,6 +17224,15 @@ export const UpdateEventRequest = {
|
|
|
17027
17224
|
if (message.creator_id !== "") {
|
|
17028
17225
|
writer.uint32(82).string(message.creator_id);
|
|
17029
17226
|
}
|
|
17227
|
+
if (message.channel_voice_id !== "") {
|
|
17228
|
+
writer.uint32(90).string(message.channel_voice_id);
|
|
17229
|
+
}
|
|
17230
|
+
if (message.channel_id_old !== "") {
|
|
17231
|
+
writer.uint32(98).string(message.channel_id_old);
|
|
17232
|
+
}
|
|
17233
|
+
if (message.repeat_type !== 0) {
|
|
17234
|
+
writer.uint32(104).int32(message.repeat_type);
|
|
17235
|
+
}
|
|
17030
17236
|
return writer;
|
|
17031
17237
|
},
|
|
17032
17238
|
decode(input, length) {
|
|
@@ -17096,6 +17302,24 @@ export const UpdateEventRequest = {
|
|
|
17096
17302
|
}
|
|
17097
17303
|
message.creator_id = reader.string();
|
|
17098
17304
|
continue;
|
|
17305
|
+
case 11:
|
|
17306
|
+
if (tag !== 90) {
|
|
17307
|
+
break;
|
|
17308
|
+
}
|
|
17309
|
+
message.channel_voice_id = reader.string();
|
|
17310
|
+
continue;
|
|
17311
|
+
case 12:
|
|
17312
|
+
if (tag !== 98) {
|
|
17313
|
+
break;
|
|
17314
|
+
}
|
|
17315
|
+
message.channel_id_old = reader.string();
|
|
17316
|
+
continue;
|
|
17317
|
+
case 13:
|
|
17318
|
+
if (tag !== 104) {
|
|
17319
|
+
break;
|
|
17320
|
+
}
|
|
17321
|
+
message.repeat_type = reader.int32();
|
|
17322
|
+
continue;
|
|
17099
17323
|
}
|
|
17100
17324
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17101
17325
|
break;
|
|
@@ -17116,6 +17340,9 @@ export const UpdateEventRequest = {
|
|
|
17116
17340
|
end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
|
|
17117
17341
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
17118
17342
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
17343
|
+
channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
|
|
17344
|
+
channel_id_old: isSet(object.channel_id_old) ? globalThis.String(object.channel_id_old) : "",
|
|
17345
|
+
repeat_type: isSet(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
|
|
17119
17346
|
};
|
|
17120
17347
|
},
|
|
17121
17348
|
toJSON(message) {
|
|
@@ -17150,6 +17377,15 @@ export const UpdateEventRequest = {
|
|
|
17150
17377
|
if (message.creator_id !== "") {
|
|
17151
17378
|
obj.creator_id = message.creator_id;
|
|
17152
17379
|
}
|
|
17380
|
+
if (message.channel_voice_id !== "") {
|
|
17381
|
+
obj.channel_voice_id = message.channel_voice_id;
|
|
17382
|
+
}
|
|
17383
|
+
if (message.channel_id_old !== "") {
|
|
17384
|
+
obj.channel_id_old = message.channel_id_old;
|
|
17385
|
+
}
|
|
17386
|
+
if (message.repeat_type !== 0) {
|
|
17387
|
+
obj.repeat_type = Math.round(message.repeat_type);
|
|
17388
|
+
}
|
|
17153
17389
|
return obj;
|
|
17154
17390
|
},
|
|
17155
17391
|
create(base) {
|
|
@@ -17167,11 +17403,14 @@ export const UpdateEventRequest = {
|
|
|
17167
17403
|
message.end_time = object.end_time ?? undefined;
|
|
17168
17404
|
message.clan_id = object.clan_id ?? "";
|
|
17169
17405
|
message.creator_id = object.creator_id ?? "";
|
|
17406
|
+
message.channel_voice_id = object.channel_voice_id ?? "";
|
|
17407
|
+
message.channel_id_old = object.channel_id_old ?? "";
|
|
17408
|
+
message.repeat_type = object.repeat_type ?? 0;
|
|
17170
17409
|
return message;
|
|
17171
17410
|
},
|
|
17172
17411
|
};
|
|
17173
17412
|
function createBaseDeleteRoleRequest() {
|
|
17174
|
-
return { role_id: "", channel_id: "", clan_id: "" };
|
|
17413
|
+
return { role_id: "", channel_id: "", clan_id: "", role_label: "" };
|
|
17175
17414
|
}
|
|
17176
17415
|
export const DeleteRoleRequest = {
|
|
17177
17416
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -17184,6 +17423,9 @@ export const DeleteRoleRequest = {
|
|
|
17184
17423
|
if (message.clan_id !== "") {
|
|
17185
17424
|
writer.uint32(26).string(message.clan_id);
|
|
17186
17425
|
}
|
|
17426
|
+
if (message.role_label !== "") {
|
|
17427
|
+
writer.uint32(34).string(message.role_label);
|
|
17428
|
+
}
|
|
17187
17429
|
return writer;
|
|
17188
17430
|
},
|
|
17189
17431
|
decode(input, length) {
|
|
@@ -17211,6 +17453,12 @@ export const DeleteRoleRequest = {
|
|
|
17211
17453
|
}
|
|
17212
17454
|
message.clan_id = reader.string();
|
|
17213
17455
|
continue;
|
|
17456
|
+
case 4:
|
|
17457
|
+
if (tag !== 34) {
|
|
17458
|
+
break;
|
|
17459
|
+
}
|
|
17460
|
+
message.role_label = reader.string();
|
|
17461
|
+
continue;
|
|
17214
17462
|
}
|
|
17215
17463
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17216
17464
|
break;
|
|
@@ -17224,6 +17472,7 @@ export const DeleteRoleRequest = {
|
|
|
17224
17472
|
role_id: isSet(object.role_id) ? globalThis.String(object.role_id) : "",
|
|
17225
17473
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
17226
17474
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
17475
|
+
role_label: isSet(object.role_label) ? globalThis.String(object.role_label) : "",
|
|
17227
17476
|
};
|
|
17228
17477
|
},
|
|
17229
17478
|
toJSON(message) {
|
|
@@ -17237,6 +17486,9 @@ export const DeleteRoleRequest = {
|
|
|
17237
17486
|
if (message.clan_id !== "") {
|
|
17238
17487
|
obj.clan_id = message.clan_id;
|
|
17239
17488
|
}
|
|
17489
|
+
if (message.role_label !== "") {
|
|
17490
|
+
obj.role_label = message.role_label;
|
|
17491
|
+
}
|
|
17240
17492
|
return obj;
|
|
17241
17493
|
},
|
|
17242
17494
|
create(base) {
|
|
@@ -17247,11 +17499,12 @@ export const DeleteRoleRequest = {
|
|
|
17247
17499
|
message.role_id = object.role_id ?? "";
|
|
17248
17500
|
message.channel_id = object.channel_id ?? "";
|
|
17249
17501
|
message.clan_id = object.clan_id ?? "";
|
|
17502
|
+
message.role_label = object.role_label ?? "";
|
|
17250
17503
|
return message;
|
|
17251
17504
|
},
|
|
17252
17505
|
};
|
|
17253
17506
|
function createBaseDeleteEventRequest() {
|
|
17254
|
-
return { event_id: "", clan_id: "", creator_id: "" };
|
|
17507
|
+
return { event_id: "", clan_id: "", creator_id: "", event_label: "", channel_id: "" };
|
|
17255
17508
|
}
|
|
17256
17509
|
export const DeleteEventRequest = {
|
|
17257
17510
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -17264,6 +17517,12 @@ export const DeleteEventRequest = {
|
|
|
17264
17517
|
if (message.creator_id !== "") {
|
|
17265
17518
|
writer.uint32(26).string(message.creator_id);
|
|
17266
17519
|
}
|
|
17520
|
+
if (message.event_label !== "") {
|
|
17521
|
+
writer.uint32(34).string(message.event_label);
|
|
17522
|
+
}
|
|
17523
|
+
if (message.channel_id !== "") {
|
|
17524
|
+
writer.uint32(42).string(message.channel_id);
|
|
17525
|
+
}
|
|
17267
17526
|
return writer;
|
|
17268
17527
|
},
|
|
17269
17528
|
decode(input, length) {
|
|
@@ -17291,6 +17550,18 @@ export const DeleteEventRequest = {
|
|
|
17291
17550
|
}
|
|
17292
17551
|
message.creator_id = reader.string();
|
|
17293
17552
|
continue;
|
|
17553
|
+
case 4:
|
|
17554
|
+
if (tag !== 34) {
|
|
17555
|
+
break;
|
|
17556
|
+
}
|
|
17557
|
+
message.event_label = reader.string();
|
|
17558
|
+
continue;
|
|
17559
|
+
case 5:
|
|
17560
|
+
if (tag !== 42) {
|
|
17561
|
+
break;
|
|
17562
|
+
}
|
|
17563
|
+
message.channel_id = reader.string();
|
|
17564
|
+
continue;
|
|
17294
17565
|
}
|
|
17295
17566
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17296
17567
|
break;
|
|
@@ -17304,6 +17575,8 @@ export const DeleteEventRequest = {
|
|
|
17304
17575
|
event_id: isSet(object.event_id) ? globalThis.String(object.event_id) : "",
|
|
17305
17576
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
17306
17577
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
17578
|
+
event_label: isSet(object.event_label) ? globalThis.String(object.event_label) : "",
|
|
17579
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
17307
17580
|
};
|
|
17308
17581
|
},
|
|
17309
17582
|
toJSON(message) {
|
|
@@ -17317,6 +17590,12 @@ export const DeleteEventRequest = {
|
|
|
17317
17590
|
if (message.creator_id !== "") {
|
|
17318
17591
|
obj.creator_id = message.creator_id;
|
|
17319
17592
|
}
|
|
17593
|
+
if (message.event_label !== "") {
|
|
17594
|
+
obj.event_label = message.event_label;
|
|
17595
|
+
}
|
|
17596
|
+
if (message.channel_id !== "") {
|
|
17597
|
+
obj.channel_id = message.channel_id;
|
|
17598
|
+
}
|
|
17320
17599
|
return obj;
|
|
17321
17600
|
},
|
|
17322
17601
|
create(base) {
|
|
@@ -17327,6 +17606,8 @@ export const DeleteEventRequest = {
|
|
|
17327
17606
|
message.event_id = object.event_id ?? "";
|
|
17328
17607
|
message.clan_id = object.clan_id ?? "";
|
|
17329
17608
|
message.creator_id = object.creator_id ?? "";
|
|
17609
|
+
message.event_label = object.event_label ?? "";
|
|
17610
|
+
message.channel_id = object.channel_id ?? "";
|
|
17330
17611
|
return message;
|
|
17331
17612
|
},
|
|
17332
17613
|
};
|
|
@@ -17573,7 +17854,7 @@ export const UpdateRoleRequest = {
|
|
|
17573
17854
|
},
|
|
17574
17855
|
};
|
|
17575
17856
|
function createBaseUpdateRoleChannelRequest() {
|
|
17576
|
-
return { role_id: "", permission_update: [], max_permission_id: "", channel_id: "", user_id: "" };
|
|
17857
|
+
return { role_id: "", permission_update: [], max_permission_id: "", channel_id: "", user_id: "", role_label: "" };
|
|
17577
17858
|
}
|
|
17578
17859
|
export const UpdateRoleChannelRequest = {
|
|
17579
17860
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -17592,6 +17873,9 @@ export const UpdateRoleChannelRequest = {
|
|
|
17592
17873
|
if (message.user_id !== "") {
|
|
17593
17874
|
writer.uint32(42).string(message.user_id);
|
|
17594
17875
|
}
|
|
17876
|
+
if (message.role_label !== "") {
|
|
17877
|
+
writer.uint32(50).string(message.role_label);
|
|
17878
|
+
}
|
|
17595
17879
|
return writer;
|
|
17596
17880
|
},
|
|
17597
17881
|
decode(input, length) {
|
|
@@ -17631,6 +17915,12 @@ export const UpdateRoleChannelRequest = {
|
|
|
17631
17915
|
}
|
|
17632
17916
|
message.user_id = reader.string();
|
|
17633
17917
|
continue;
|
|
17918
|
+
case 6:
|
|
17919
|
+
if (tag !== 50) {
|
|
17920
|
+
break;
|
|
17921
|
+
}
|
|
17922
|
+
message.role_label = reader.string();
|
|
17923
|
+
continue;
|
|
17634
17924
|
}
|
|
17635
17925
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17636
17926
|
break;
|
|
@@ -17648,6 +17938,7 @@ export const UpdateRoleChannelRequest = {
|
|
|
17648
17938
|
max_permission_id: isSet(object.max_permission_id) ? globalThis.String(object.max_permission_id) : "",
|
|
17649
17939
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
17650
17940
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
17941
|
+
role_label: isSet(object.role_label) ? globalThis.String(object.role_label) : "",
|
|
17651
17942
|
};
|
|
17652
17943
|
},
|
|
17653
17944
|
toJSON(message) {
|
|
@@ -17667,6 +17958,9 @@ export const UpdateRoleChannelRequest = {
|
|
|
17667
17958
|
if (message.user_id !== "") {
|
|
17668
17959
|
obj.user_id = message.user_id;
|
|
17669
17960
|
}
|
|
17961
|
+
if (message.role_label !== "") {
|
|
17962
|
+
obj.role_label = message.role_label;
|
|
17963
|
+
}
|
|
17670
17964
|
return obj;
|
|
17671
17965
|
},
|
|
17672
17966
|
create(base) {
|
|
@@ -17679,6 +17973,7 @@ export const UpdateRoleChannelRequest = {
|
|
|
17679
17973
|
message.max_permission_id = object.max_permission_id ?? "";
|
|
17680
17974
|
message.channel_id = object.channel_id ?? "";
|
|
17681
17975
|
message.user_id = object.user_id ?? "";
|
|
17976
|
+
message.role_label = object.role_label ?? "";
|
|
17682
17977
|
return message;
|
|
17683
17978
|
},
|
|
17684
17979
|
};
|
|
@@ -19564,7 +19859,7 @@ export const ClanEmojiGetByClanIdRequest = {
|
|
|
19564
19859
|
},
|
|
19565
19860
|
};
|
|
19566
19861
|
function createBaseClanEmojiDeleteRequest() {
|
|
19567
|
-
return { id: "", clan_id: "" };
|
|
19862
|
+
return { id: "", clan_id: "", emoji_label: "" };
|
|
19568
19863
|
}
|
|
19569
19864
|
export const ClanEmojiDeleteRequest = {
|
|
19570
19865
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -19574,6 +19869,9 @@ export const ClanEmojiDeleteRequest = {
|
|
|
19574
19869
|
if (message.clan_id !== "") {
|
|
19575
19870
|
writer.uint32(18).string(message.clan_id);
|
|
19576
19871
|
}
|
|
19872
|
+
if (message.emoji_label !== "") {
|
|
19873
|
+
writer.uint32(26).string(message.emoji_label);
|
|
19874
|
+
}
|
|
19577
19875
|
return writer;
|
|
19578
19876
|
},
|
|
19579
19877
|
decode(input, length) {
|
|
@@ -19595,6 +19893,12 @@ export const ClanEmojiDeleteRequest = {
|
|
|
19595
19893
|
}
|
|
19596
19894
|
message.clan_id = reader.string();
|
|
19597
19895
|
continue;
|
|
19896
|
+
case 3:
|
|
19897
|
+
if (tag !== 26) {
|
|
19898
|
+
break;
|
|
19899
|
+
}
|
|
19900
|
+
message.emoji_label = reader.string();
|
|
19901
|
+
continue;
|
|
19598
19902
|
}
|
|
19599
19903
|
if ((tag & 7) === 4 || tag === 0) {
|
|
19600
19904
|
break;
|
|
@@ -19607,6 +19911,7 @@ export const ClanEmojiDeleteRequest = {
|
|
|
19607
19911
|
return {
|
|
19608
19912
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
19609
19913
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
19914
|
+
emoji_label: isSet(object.emoji_label) ? globalThis.String(object.emoji_label) : "",
|
|
19610
19915
|
};
|
|
19611
19916
|
},
|
|
19612
19917
|
toJSON(message) {
|
|
@@ -19617,6 +19922,9 @@ export const ClanEmojiDeleteRequest = {
|
|
|
19617
19922
|
if (message.clan_id !== "") {
|
|
19618
19923
|
obj.clan_id = message.clan_id;
|
|
19619
19924
|
}
|
|
19925
|
+
if (message.emoji_label !== "") {
|
|
19926
|
+
obj.emoji_label = message.emoji_label;
|
|
19927
|
+
}
|
|
19620
19928
|
return obj;
|
|
19621
19929
|
},
|
|
19622
19930
|
create(base) {
|
|
@@ -19626,6 +19934,7 @@ export const ClanEmojiDeleteRequest = {
|
|
|
19626
19934
|
const message = createBaseClanEmojiDeleteRequest();
|
|
19627
19935
|
message.id = object.id ?? "";
|
|
19628
19936
|
message.clan_id = object.clan_id ?? "";
|
|
19937
|
+
message.emoji_label = object.emoji_label ?? "";
|
|
19629
19938
|
return message;
|
|
19630
19939
|
},
|
|
19631
19940
|
};
|
|
@@ -20888,7 +21197,7 @@ export const ClanStickerUpdateByIdRequest = {
|
|
|
20888
21197
|
},
|
|
20889
21198
|
};
|
|
20890
21199
|
function createBaseClanStickerDeleteRequest() {
|
|
20891
|
-
return { id: "", clan_id: "" };
|
|
21200
|
+
return { id: "", clan_id: "", sticker_label: "" };
|
|
20892
21201
|
}
|
|
20893
21202
|
export const ClanStickerDeleteRequest = {
|
|
20894
21203
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -20898,6 +21207,9 @@ export const ClanStickerDeleteRequest = {
|
|
|
20898
21207
|
if (message.clan_id !== "") {
|
|
20899
21208
|
writer.uint32(18).string(message.clan_id);
|
|
20900
21209
|
}
|
|
21210
|
+
if (message.sticker_label !== "") {
|
|
21211
|
+
writer.uint32(26).string(message.sticker_label);
|
|
21212
|
+
}
|
|
20901
21213
|
return writer;
|
|
20902
21214
|
},
|
|
20903
21215
|
decode(input, length) {
|
|
@@ -20919,6 +21231,12 @@ export const ClanStickerDeleteRequest = {
|
|
|
20919
21231
|
}
|
|
20920
21232
|
message.clan_id = reader.string();
|
|
20921
21233
|
continue;
|
|
21234
|
+
case 3:
|
|
21235
|
+
if (tag !== 26) {
|
|
21236
|
+
break;
|
|
21237
|
+
}
|
|
21238
|
+
message.sticker_label = reader.string();
|
|
21239
|
+
continue;
|
|
20922
21240
|
}
|
|
20923
21241
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20924
21242
|
break;
|
|
@@ -20931,6 +21249,7 @@ export const ClanStickerDeleteRequest = {
|
|
|
20931
21249
|
return {
|
|
20932
21250
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
20933
21251
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
21252
|
+
sticker_label: isSet(object.sticker_label) ? globalThis.String(object.sticker_label) : "",
|
|
20934
21253
|
};
|
|
20935
21254
|
},
|
|
20936
21255
|
toJSON(message) {
|
|
@@ -20941,6 +21260,9 @@ export const ClanStickerDeleteRequest = {
|
|
|
20941
21260
|
if (message.clan_id !== "") {
|
|
20942
21261
|
obj.clan_id = message.clan_id;
|
|
20943
21262
|
}
|
|
21263
|
+
if (message.sticker_label !== "") {
|
|
21264
|
+
obj.sticker_label = message.sticker_label;
|
|
21265
|
+
}
|
|
20944
21266
|
return obj;
|
|
20945
21267
|
},
|
|
20946
21268
|
create(base) {
|
|
@@ -20950,6 +21272,7 @@ export const ClanStickerDeleteRequest = {
|
|
|
20950
21272
|
const message = createBaseClanStickerDeleteRequest();
|
|
20951
21273
|
message.id = object.id ?? "";
|
|
20952
21274
|
message.clan_id = object.clan_id ?? "";
|
|
21275
|
+
message.sticker_label = object.sticker_label ?? "";
|
|
20953
21276
|
return message;
|
|
20954
21277
|
},
|
|
20955
21278
|
};
|
|
@@ -22121,6 +22444,7 @@ function createBaseSystemMessage() {
|
|
|
22121
22444
|
welcome_sticker: "",
|
|
22122
22445
|
boost_message: "",
|
|
22123
22446
|
setup_tips: "",
|
|
22447
|
+
hide_audit_log: "",
|
|
22124
22448
|
};
|
|
22125
22449
|
}
|
|
22126
22450
|
export const SystemMessage = {
|
|
@@ -22146,6 +22470,9 @@ export const SystemMessage = {
|
|
|
22146
22470
|
if (message.setup_tips !== "") {
|
|
22147
22471
|
writer.uint32(58).string(message.setup_tips);
|
|
22148
22472
|
}
|
|
22473
|
+
if (message.hide_audit_log !== "") {
|
|
22474
|
+
writer.uint32(66).string(message.hide_audit_log);
|
|
22475
|
+
}
|
|
22149
22476
|
return writer;
|
|
22150
22477
|
},
|
|
22151
22478
|
decode(input, length) {
|
|
@@ -22197,6 +22524,12 @@ export const SystemMessage = {
|
|
|
22197
22524
|
}
|
|
22198
22525
|
message.setup_tips = reader.string();
|
|
22199
22526
|
continue;
|
|
22527
|
+
case 8:
|
|
22528
|
+
if (tag !== 66) {
|
|
22529
|
+
break;
|
|
22530
|
+
}
|
|
22531
|
+
message.hide_audit_log = reader.string();
|
|
22532
|
+
continue;
|
|
22200
22533
|
}
|
|
22201
22534
|
if ((tag & 7) === 4 || tag === 0) {
|
|
22202
22535
|
break;
|
|
@@ -22214,6 +22547,7 @@ export const SystemMessage = {
|
|
|
22214
22547
|
welcome_sticker: isSet(object.welcome_sticker) ? globalThis.String(object.welcome_sticker) : "",
|
|
22215
22548
|
boost_message: isSet(object.boost_message) ? globalThis.String(object.boost_message) : "",
|
|
22216
22549
|
setup_tips: isSet(object.setup_tips) ? globalThis.String(object.setup_tips) : "",
|
|
22550
|
+
hide_audit_log: isSet(object.hide_audit_log) ? globalThis.String(object.hide_audit_log) : "",
|
|
22217
22551
|
};
|
|
22218
22552
|
},
|
|
22219
22553
|
toJSON(message) {
|
|
@@ -22239,6 +22573,9 @@ export const SystemMessage = {
|
|
|
22239
22573
|
if (message.setup_tips !== "") {
|
|
22240
22574
|
obj.setup_tips = message.setup_tips;
|
|
22241
22575
|
}
|
|
22576
|
+
if (message.hide_audit_log !== "") {
|
|
22577
|
+
obj.hide_audit_log = message.hide_audit_log;
|
|
22578
|
+
}
|
|
22242
22579
|
return obj;
|
|
22243
22580
|
},
|
|
22244
22581
|
create(base) {
|
|
@@ -22253,6 +22590,7 @@ export const SystemMessage = {
|
|
|
22253
22590
|
message.welcome_sticker = object.welcome_sticker ?? "";
|
|
22254
22591
|
message.boost_message = object.boost_message ?? "";
|
|
22255
22592
|
message.setup_tips = object.setup_tips ?? "";
|
|
22593
|
+
message.hide_audit_log = object.hide_audit_log ?? "";
|
|
22256
22594
|
return message;
|
|
22257
22595
|
},
|
|
22258
22596
|
};
|
|
@@ -22311,7 +22649,15 @@ export const SystemMessagesList = {
|
|
|
22311
22649
|
},
|
|
22312
22650
|
};
|
|
22313
22651
|
function createBaseSystemMessageRequest() {
|
|
22314
|
-
return {
|
|
22652
|
+
return {
|
|
22653
|
+
clan_id: "",
|
|
22654
|
+
channel_id: "",
|
|
22655
|
+
welcome_random: "",
|
|
22656
|
+
welcome_sticker: "",
|
|
22657
|
+
boost_message: "",
|
|
22658
|
+
setup_tips: "",
|
|
22659
|
+
hide_audit_log: "",
|
|
22660
|
+
};
|
|
22315
22661
|
}
|
|
22316
22662
|
export const SystemMessageRequest = {
|
|
22317
22663
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -22333,6 +22679,9 @@ export const SystemMessageRequest = {
|
|
|
22333
22679
|
if (message.setup_tips !== "") {
|
|
22334
22680
|
writer.uint32(50).string(message.setup_tips);
|
|
22335
22681
|
}
|
|
22682
|
+
if (message.hide_audit_log !== "") {
|
|
22683
|
+
writer.uint32(58).string(message.hide_audit_log);
|
|
22684
|
+
}
|
|
22336
22685
|
return writer;
|
|
22337
22686
|
},
|
|
22338
22687
|
decode(input, length) {
|
|
@@ -22378,6 +22727,12 @@ export const SystemMessageRequest = {
|
|
|
22378
22727
|
}
|
|
22379
22728
|
message.setup_tips = reader.string();
|
|
22380
22729
|
continue;
|
|
22730
|
+
case 7:
|
|
22731
|
+
if (tag !== 58) {
|
|
22732
|
+
break;
|
|
22733
|
+
}
|
|
22734
|
+
message.hide_audit_log = reader.string();
|
|
22735
|
+
continue;
|
|
22381
22736
|
}
|
|
22382
22737
|
if ((tag & 7) === 4 || tag === 0) {
|
|
22383
22738
|
break;
|
|
@@ -22394,6 +22749,7 @@ export const SystemMessageRequest = {
|
|
|
22394
22749
|
welcome_sticker: isSet(object.welcome_sticker) ? globalThis.String(object.welcome_sticker) : "",
|
|
22395
22750
|
boost_message: isSet(object.boost_message) ? globalThis.String(object.boost_message) : "",
|
|
22396
22751
|
setup_tips: isSet(object.setup_tips) ? globalThis.String(object.setup_tips) : "",
|
|
22752
|
+
hide_audit_log: isSet(object.hide_audit_log) ? globalThis.String(object.hide_audit_log) : "",
|
|
22397
22753
|
};
|
|
22398
22754
|
},
|
|
22399
22755
|
toJSON(message) {
|
|
@@ -22416,6 +22772,9 @@ export const SystemMessageRequest = {
|
|
|
22416
22772
|
if (message.setup_tips !== "") {
|
|
22417
22773
|
obj.setup_tips = message.setup_tips;
|
|
22418
22774
|
}
|
|
22775
|
+
if (message.hide_audit_log !== "") {
|
|
22776
|
+
obj.hide_audit_log = message.hide_audit_log;
|
|
22777
|
+
}
|
|
22419
22778
|
return obj;
|
|
22420
22779
|
},
|
|
22421
22780
|
create(base) {
|
|
@@ -22429,6 +22788,7 @@ export const SystemMessageRequest = {
|
|
|
22429
22788
|
message.welcome_sticker = object.welcome_sticker ?? "";
|
|
22430
22789
|
message.boost_message = object.boost_message ?? "";
|
|
22431
22790
|
message.setup_tips = object.setup_tips ?? "";
|
|
22791
|
+
message.hide_audit_log = object.hide_audit_log ?? "";
|
|
22432
22792
|
return message;
|
|
22433
22793
|
},
|
|
22434
22794
|
};
|
|
@@ -22583,62 +22943,33 @@ export const DeleteCategoryOrderRequest = {
|
|
|
22583
22943
|
},
|
|
22584
22944
|
};
|
|
22585
22945
|
function createBaseStreamHttpCallbackRequest() {
|
|
22586
|
-
return {
|
|
22587
|
-
action: "",
|
|
22588
|
-
client_id: "",
|
|
22589
|
-
ip: "",
|
|
22590
|
-
vhost: "",
|
|
22591
|
-
app: "",
|
|
22592
|
-
stream: "",
|
|
22593
|
-
param: undefined,
|
|
22594
|
-
server_id: "",
|
|
22595
|
-
stream_url: "",
|
|
22596
|
-
stream_id: "",
|
|
22597
|
-
page_url: undefined,
|
|
22598
|
-
tcUrl: undefined,
|
|
22599
|
-
service_id: undefined,
|
|
22600
|
-
};
|
|
22946
|
+
return { id: "", client_id: "", clan_id: "", channel_id: "", user_id: "", action: 0, is_publisher: false, token: "" };
|
|
22601
22947
|
}
|
|
22602
22948
|
export const StreamHttpCallbackRequest = {
|
|
22603
22949
|
encode(message, writer = _m0.Writer.create()) {
|
|
22604
|
-
if (message.
|
|
22605
|
-
writer.uint32(10).string(message.
|
|
22950
|
+
if (message.id !== "") {
|
|
22951
|
+
writer.uint32(10).string(message.id);
|
|
22606
22952
|
}
|
|
22607
22953
|
if (message.client_id !== "") {
|
|
22608
22954
|
writer.uint32(18).string(message.client_id);
|
|
22609
22955
|
}
|
|
22610
|
-
if (message.
|
|
22611
|
-
writer.uint32(26).string(message.
|
|
22612
|
-
}
|
|
22613
|
-
if (message.vhost !== "") {
|
|
22614
|
-
writer.uint32(34).string(message.vhost);
|
|
22615
|
-
}
|
|
22616
|
-
if (message.app !== "") {
|
|
22617
|
-
writer.uint32(42).string(message.app);
|
|
22956
|
+
if (message.clan_id !== "") {
|
|
22957
|
+
writer.uint32(26).string(message.clan_id);
|
|
22618
22958
|
}
|
|
22619
|
-
if (message.
|
|
22620
|
-
writer.uint32(
|
|
22959
|
+
if (message.channel_id !== "") {
|
|
22960
|
+
writer.uint32(34).string(message.channel_id);
|
|
22621
22961
|
}
|
|
22622
|
-
if (message.
|
|
22623
|
-
|
|
22962
|
+
if (message.user_id !== "") {
|
|
22963
|
+
writer.uint32(42).string(message.user_id);
|
|
22624
22964
|
}
|
|
22625
|
-
if (message.
|
|
22626
|
-
writer.uint32(
|
|
22965
|
+
if (message.action !== 0) {
|
|
22966
|
+
writer.uint32(48).int32(message.action);
|
|
22627
22967
|
}
|
|
22628
|
-
if (message.
|
|
22629
|
-
writer.uint32(
|
|
22968
|
+
if (message.is_publisher !== false) {
|
|
22969
|
+
writer.uint32(56).bool(message.is_publisher);
|
|
22630
22970
|
}
|
|
22631
|
-
if (message.
|
|
22632
|
-
writer.uint32(
|
|
22633
|
-
}
|
|
22634
|
-
if (message.page_url !== undefined) {
|
|
22635
|
-
StringValue.encode({ value: message.page_url }, writer.uint32(90).fork()).ldelim();
|
|
22636
|
-
}
|
|
22637
|
-
if (message.tcUrl !== undefined) {
|
|
22638
|
-
StringValue.encode({ value: message.tcUrl }, writer.uint32(98).fork()).ldelim();
|
|
22639
|
-
}
|
|
22640
|
-
if (message.service_id !== undefined) {
|
|
22641
|
-
StringValue.encode({ value: message.service_id }, writer.uint32(106).fork()).ldelim();
|
|
22971
|
+
if (message.token !== "") {
|
|
22972
|
+
writer.uint32(66).string(message.token);
|
|
22642
22973
|
}
|
|
22643
22974
|
return writer;
|
|
22644
22975
|
},
|
|
@@ -22653,7 +22984,7 @@ export const StreamHttpCallbackRequest = {
|
|
|
22653
22984
|
if (tag !== 10) {
|
|
22654
22985
|
break;
|
|
22655
22986
|
}
|
|
22656
|
-
message.
|
|
22987
|
+
message.id = reader.string();
|
|
22657
22988
|
continue;
|
|
22658
22989
|
case 2:
|
|
22659
22990
|
if (tag !== 18) {
|
|
@@ -22665,67 +22996,37 @@ export const StreamHttpCallbackRequest = {
|
|
|
22665
22996
|
if (tag !== 26) {
|
|
22666
22997
|
break;
|
|
22667
22998
|
}
|
|
22668
|
-
message.
|
|
22999
|
+
message.clan_id = reader.string();
|
|
22669
23000
|
continue;
|
|
22670
23001
|
case 4:
|
|
22671
23002
|
if (tag !== 34) {
|
|
22672
23003
|
break;
|
|
22673
23004
|
}
|
|
22674
|
-
message.
|
|
23005
|
+
message.channel_id = reader.string();
|
|
22675
23006
|
continue;
|
|
22676
23007
|
case 5:
|
|
22677
23008
|
if (tag !== 42) {
|
|
22678
23009
|
break;
|
|
22679
23010
|
}
|
|
22680
|
-
message.
|
|
23011
|
+
message.user_id = reader.string();
|
|
22681
23012
|
continue;
|
|
22682
23013
|
case 6:
|
|
22683
|
-
if (tag !==
|
|
23014
|
+
if (tag !== 48) {
|
|
22684
23015
|
break;
|
|
22685
23016
|
}
|
|
22686
|
-
message.
|
|
23017
|
+
message.action = reader.int32();
|
|
22687
23018
|
continue;
|
|
22688
23019
|
case 7:
|
|
22689
|
-
if (tag !==
|
|
23020
|
+
if (tag !== 56) {
|
|
22690
23021
|
break;
|
|
22691
23022
|
}
|
|
22692
|
-
message.
|
|
23023
|
+
message.is_publisher = reader.bool();
|
|
22693
23024
|
continue;
|
|
22694
23025
|
case 8:
|
|
22695
23026
|
if (tag !== 66) {
|
|
22696
23027
|
break;
|
|
22697
23028
|
}
|
|
22698
|
-
message.
|
|
22699
|
-
continue;
|
|
22700
|
-
case 9:
|
|
22701
|
-
if (tag !== 74) {
|
|
22702
|
-
break;
|
|
22703
|
-
}
|
|
22704
|
-
message.stream_url = reader.string();
|
|
22705
|
-
continue;
|
|
22706
|
-
case 10:
|
|
22707
|
-
if (tag !== 82) {
|
|
22708
|
-
break;
|
|
22709
|
-
}
|
|
22710
|
-
message.stream_id = reader.string();
|
|
22711
|
-
continue;
|
|
22712
|
-
case 11:
|
|
22713
|
-
if (tag !== 90) {
|
|
22714
|
-
break;
|
|
22715
|
-
}
|
|
22716
|
-
message.page_url = StringValue.decode(reader, reader.uint32()).value;
|
|
22717
|
-
continue;
|
|
22718
|
-
case 12:
|
|
22719
|
-
if (tag !== 98) {
|
|
22720
|
-
break;
|
|
22721
|
-
}
|
|
22722
|
-
message.tcUrl = StringValue.decode(reader, reader.uint32()).value;
|
|
22723
|
-
continue;
|
|
22724
|
-
case 13:
|
|
22725
|
-
if (tag !== 106) {
|
|
22726
|
-
break;
|
|
22727
|
-
}
|
|
22728
|
-
message.service_id = StringValue.decode(reader, reader.uint32()).value;
|
|
23029
|
+
message.token = reader.string();
|
|
22729
23030
|
continue;
|
|
22730
23031
|
}
|
|
22731
23032
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -22737,61 +23038,41 @@ export const StreamHttpCallbackRequest = {
|
|
|
22737
23038
|
},
|
|
22738
23039
|
fromJSON(object) {
|
|
22739
23040
|
return {
|
|
22740
|
-
|
|
23041
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
22741
23042
|
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
22742
|
-
|
|
22743
|
-
|
|
22744
|
-
|
|
22745
|
-
|
|
22746
|
-
|
|
22747
|
-
|
|
22748
|
-
stream_url: isSet(object.stream_url) ? globalThis.String(object.stream_url) : "",
|
|
22749
|
-
stream_id: isSet(object.stream_id) ? globalThis.String(object.stream_id) : "",
|
|
22750
|
-
page_url: isSet(object.page_url) ? String(object.page_url) : undefined,
|
|
22751
|
-
tcUrl: isSet(object.tcUrl) ? String(object.tcUrl) : undefined,
|
|
22752
|
-
service_id: isSet(object.service_id) ? String(object.service_id) : undefined,
|
|
23043
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
23044
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
23045
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
23046
|
+
action: isSet(object.action) ? globalThis.Number(object.action) : 0,
|
|
23047
|
+
is_publisher: isSet(object.is_publisher) ? globalThis.Boolean(object.is_publisher) : false,
|
|
23048
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
22753
23049
|
};
|
|
22754
23050
|
},
|
|
22755
23051
|
toJSON(message) {
|
|
22756
23052
|
const obj = {};
|
|
22757
|
-
if (message.
|
|
22758
|
-
obj.
|
|
23053
|
+
if (message.id !== "") {
|
|
23054
|
+
obj.id = message.id;
|
|
22759
23055
|
}
|
|
22760
23056
|
if (message.client_id !== "") {
|
|
22761
23057
|
obj.client_id = message.client_id;
|
|
22762
23058
|
}
|
|
22763
|
-
if (message.
|
|
22764
|
-
obj.
|
|
22765
|
-
}
|
|
22766
|
-
if (message.vhost !== "") {
|
|
22767
|
-
obj.vhost = message.vhost;
|
|
22768
|
-
}
|
|
22769
|
-
if (message.app !== "") {
|
|
22770
|
-
obj.app = message.app;
|
|
22771
|
-
}
|
|
22772
|
-
if (message.stream !== "") {
|
|
22773
|
-
obj.stream = message.stream;
|
|
22774
|
-
}
|
|
22775
|
-
if (message.param !== undefined) {
|
|
22776
|
-
obj.param = message.param;
|
|
22777
|
-
}
|
|
22778
|
-
if (message.server_id !== "") {
|
|
22779
|
-
obj.server_id = message.server_id;
|
|
23059
|
+
if (message.clan_id !== "") {
|
|
23060
|
+
obj.clan_id = message.clan_id;
|
|
22780
23061
|
}
|
|
22781
|
-
if (message.
|
|
22782
|
-
obj.
|
|
23062
|
+
if (message.channel_id !== "") {
|
|
23063
|
+
obj.channel_id = message.channel_id;
|
|
22783
23064
|
}
|
|
22784
|
-
if (message.
|
|
22785
|
-
obj.
|
|
23065
|
+
if (message.user_id !== "") {
|
|
23066
|
+
obj.user_id = message.user_id;
|
|
22786
23067
|
}
|
|
22787
|
-
if (message.
|
|
22788
|
-
obj.
|
|
23068
|
+
if (message.action !== 0) {
|
|
23069
|
+
obj.action = Math.round(message.action);
|
|
22789
23070
|
}
|
|
22790
|
-
if (message.
|
|
22791
|
-
obj.
|
|
23071
|
+
if (message.is_publisher !== false) {
|
|
23072
|
+
obj.is_publisher = message.is_publisher;
|
|
22792
23073
|
}
|
|
22793
|
-
if (message.
|
|
22794
|
-
obj.
|
|
23074
|
+
if (message.token !== "") {
|
|
23075
|
+
obj.token = message.token;
|
|
22795
23076
|
}
|
|
22796
23077
|
return obj;
|
|
22797
23078
|
},
|
|
@@ -22800,19 +23081,14 @@ export const StreamHttpCallbackRequest = {
|
|
|
22800
23081
|
},
|
|
22801
23082
|
fromPartial(object) {
|
|
22802
23083
|
const message = createBaseStreamHttpCallbackRequest();
|
|
22803
|
-
message.
|
|
23084
|
+
message.id = object.id ?? "";
|
|
22804
23085
|
message.client_id = object.client_id ?? "";
|
|
22805
|
-
message.
|
|
22806
|
-
message.
|
|
22807
|
-
message.
|
|
22808
|
-
message.
|
|
22809
|
-
message.
|
|
22810
|
-
message.
|
|
22811
|
-
message.stream_url = object.stream_url ?? "";
|
|
22812
|
-
message.stream_id = object.stream_id ?? "";
|
|
22813
|
-
message.page_url = object.page_url ?? undefined;
|
|
22814
|
-
message.tcUrl = object.tcUrl ?? undefined;
|
|
22815
|
-
message.service_id = object.service_id ?? undefined;
|
|
23086
|
+
message.clan_id = object.clan_id ?? "";
|
|
23087
|
+
message.channel_id = object.channel_id ?? "";
|
|
23088
|
+
message.user_id = object.user_id ?? "";
|
|
23089
|
+
message.action = object.action ?? 0;
|
|
23090
|
+
message.is_publisher = object.is_publisher ?? false;
|
|
23091
|
+
message.token = object.token ?? "";
|
|
22816
23092
|
return message;
|
|
22817
23093
|
},
|
|
22818
23094
|
};
|
|
@@ -23177,204 +23453,6 @@ export const RegisterStreamingChannelResponse = {
|
|
|
23177
23453
|
return message;
|
|
23178
23454
|
},
|
|
23179
23455
|
};
|
|
23180
|
-
function createBaseListStreamingChannelsRequest() {
|
|
23181
|
-
return { clan_id: "" };
|
|
23182
|
-
}
|
|
23183
|
-
export const ListStreamingChannelsRequest = {
|
|
23184
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
23185
|
-
if (message.clan_id !== "") {
|
|
23186
|
-
writer.uint32(10).string(message.clan_id);
|
|
23187
|
-
}
|
|
23188
|
-
return writer;
|
|
23189
|
-
},
|
|
23190
|
-
decode(input, length) {
|
|
23191
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
23192
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23193
|
-
const message = createBaseListStreamingChannelsRequest();
|
|
23194
|
-
while (reader.pos < end) {
|
|
23195
|
-
const tag = reader.uint32();
|
|
23196
|
-
switch (tag >>> 3) {
|
|
23197
|
-
case 1:
|
|
23198
|
-
if (tag !== 10) {
|
|
23199
|
-
break;
|
|
23200
|
-
}
|
|
23201
|
-
message.clan_id = reader.string();
|
|
23202
|
-
continue;
|
|
23203
|
-
}
|
|
23204
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
23205
|
-
break;
|
|
23206
|
-
}
|
|
23207
|
-
reader.skipType(tag & 7);
|
|
23208
|
-
}
|
|
23209
|
-
return message;
|
|
23210
|
-
},
|
|
23211
|
-
fromJSON(object) {
|
|
23212
|
-
return { clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "" };
|
|
23213
|
-
},
|
|
23214
|
-
toJSON(message) {
|
|
23215
|
-
const obj = {};
|
|
23216
|
-
if (message.clan_id !== "") {
|
|
23217
|
-
obj.clan_id = message.clan_id;
|
|
23218
|
-
}
|
|
23219
|
-
return obj;
|
|
23220
|
-
},
|
|
23221
|
-
create(base) {
|
|
23222
|
-
return ListStreamingChannelsRequest.fromPartial(base ?? {});
|
|
23223
|
-
},
|
|
23224
|
-
fromPartial(object) {
|
|
23225
|
-
const message = createBaseListStreamingChannelsRequest();
|
|
23226
|
-
message.clan_id = object.clan_id ?? "";
|
|
23227
|
-
return message;
|
|
23228
|
-
},
|
|
23229
|
-
};
|
|
23230
|
-
function createBaseListStreamingChannelsResponse() {
|
|
23231
|
-
return { streaming_channels: [] };
|
|
23232
|
-
}
|
|
23233
|
-
export const ListStreamingChannelsResponse = {
|
|
23234
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
23235
|
-
for (const v of message.streaming_channels) {
|
|
23236
|
-
StreamingChannelResponse.encode(v, writer.uint32(10).fork()).ldelim();
|
|
23237
|
-
}
|
|
23238
|
-
return writer;
|
|
23239
|
-
},
|
|
23240
|
-
decode(input, length) {
|
|
23241
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
23242
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23243
|
-
const message = createBaseListStreamingChannelsResponse();
|
|
23244
|
-
while (reader.pos < end) {
|
|
23245
|
-
const tag = reader.uint32();
|
|
23246
|
-
switch (tag >>> 3) {
|
|
23247
|
-
case 1:
|
|
23248
|
-
if (tag !== 10) {
|
|
23249
|
-
break;
|
|
23250
|
-
}
|
|
23251
|
-
message.streaming_channels.push(StreamingChannelResponse.decode(reader, reader.uint32()));
|
|
23252
|
-
continue;
|
|
23253
|
-
}
|
|
23254
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
23255
|
-
break;
|
|
23256
|
-
}
|
|
23257
|
-
reader.skipType(tag & 7);
|
|
23258
|
-
}
|
|
23259
|
-
return message;
|
|
23260
|
-
},
|
|
23261
|
-
fromJSON(object) {
|
|
23262
|
-
return {
|
|
23263
|
-
streaming_channels: globalThis.Array.isArray(object?.streaming_channels)
|
|
23264
|
-
? object.streaming_channels.map((e) => StreamingChannelResponse.fromJSON(e))
|
|
23265
|
-
: [],
|
|
23266
|
-
};
|
|
23267
|
-
},
|
|
23268
|
-
toJSON(message) {
|
|
23269
|
-
const obj = {};
|
|
23270
|
-
if (message.streaming_channels?.length) {
|
|
23271
|
-
obj.streaming_channels = message.streaming_channels.map((e) => StreamingChannelResponse.toJSON(e));
|
|
23272
|
-
}
|
|
23273
|
-
return obj;
|
|
23274
|
-
},
|
|
23275
|
-
create(base) {
|
|
23276
|
-
return ListStreamingChannelsResponse.fromPartial(base ?? {});
|
|
23277
|
-
},
|
|
23278
|
-
fromPartial(object) {
|
|
23279
|
-
const message = createBaseListStreamingChannelsResponse();
|
|
23280
|
-
message.streaming_channels = object.streaming_channels?.map((e) => StreamingChannelResponse.fromPartial(e)) || [];
|
|
23281
|
-
return message;
|
|
23282
|
-
},
|
|
23283
|
-
};
|
|
23284
|
-
function createBaseStreamingChannelResponse() {
|
|
23285
|
-
return { clan_id: "", channel_id: "", streaming_url: "", is_streaming: false };
|
|
23286
|
-
}
|
|
23287
|
-
export const StreamingChannelResponse = {
|
|
23288
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
23289
|
-
if (message.clan_id !== "") {
|
|
23290
|
-
writer.uint32(10).string(message.clan_id);
|
|
23291
|
-
}
|
|
23292
|
-
if (message.channel_id !== "") {
|
|
23293
|
-
writer.uint32(18).string(message.channel_id);
|
|
23294
|
-
}
|
|
23295
|
-
if (message.streaming_url !== "") {
|
|
23296
|
-
writer.uint32(26).string(message.streaming_url);
|
|
23297
|
-
}
|
|
23298
|
-
if (message.is_streaming !== false) {
|
|
23299
|
-
writer.uint32(32).bool(message.is_streaming);
|
|
23300
|
-
}
|
|
23301
|
-
return writer;
|
|
23302
|
-
},
|
|
23303
|
-
decode(input, length) {
|
|
23304
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
23305
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23306
|
-
const message = createBaseStreamingChannelResponse();
|
|
23307
|
-
while (reader.pos < end) {
|
|
23308
|
-
const tag = reader.uint32();
|
|
23309
|
-
switch (tag >>> 3) {
|
|
23310
|
-
case 1:
|
|
23311
|
-
if (tag !== 10) {
|
|
23312
|
-
break;
|
|
23313
|
-
}
|
|
23314
|
-
message.clan_id = reader.string();
|
|
23315
|
-
continue;
|
|
23316
|
-
case 2:
|
|
23317
|
-
if (tag !== 18) {
|
|
23318
|
-
break;
|
|
23319
|
-
}
|
|
23320
|
-
message.channel_id = reader.string();
|
|
23321
|
-
continue;
|
|
23322
|
-
case 3:
|
|
23323
|
-
if (tag !== 26) {
|
|
23324
|
-
break;
|
|
23325
|
-
}
|
|
23326
|
-
message.streaming_url = reader.string();
|
|
23327
|
-
continue;
|
|
23328
|
-
case 4:
|
|
23329
|
-
if (tag !== 32) {
|
|
23330
|
-
break;
|
|
23331
|
-
}
|
|
23332
|
-
message.is_streaming = reader.bool();
|
|
23333
|
-
continue;
|
|
23334
|
-
}
|
|
23335
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
23336
|
-
break;
|
|
23337
|
-
}
|
|
23338
|
-
reader.skipType(tag & 7);
|
|
23339
|
-
}
|
|
23340
|
-
return message;
|
|
23341
|
-
},
|
|
23342
|
-
fromJSON(object) {
|
|
23343
|
-
return {
|
|
23344
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
23345
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
23346
|
-
streaming_url: isSet(object.streaming_url) ? globalThis.String(object.streaming_url) : "",
|
|
23347
|
-
is_streaming: isSet(object.is_streaming) ? globalThis.Boolean(object.is_streaming) : false,
|
|
23348
|
-
};
|
|
23349
|
-
},
|
|
23350
|
-
toJSON(message) {
|
|
23351
|
-
const obj = {};
|
|
23352
|
-
if (message.clan_id !== "") {
|
|
23353
|
-
obj.clan_id = message.clan_id;
|
|
23354
|
-
}
|
|
23355
|
-
if (message.channel_id !== "") {
|
|
23356
|
-
obj.channel_id = message.channel_id;
|
|
23357
|
-
}
|
|
23358
|
-
if (message.streaming_url !== "") {
|
|
23359
|
-
obj.streaming_url = message.streaming_url;
|
|
23360
|
-
}
|
|
23361
|
-
if (message.is_streaming !== false) {
|
|
23362
|
-
obj.is_streaming = message.is_streaming;
|
|
23363
|
-
}
|
|
23364
|
-
return obj;
|
|
23365
|
-
},
|
|
23366
|
-
create(base) {
|
|
23367
|
-
return StreamingChannelResponse.fromPartial(base ?? {});
|
|
23368
|
-
},
|
|
23369
|
-
fromPartial(object) {
|
|
23370
|
-
const message = createBaseStreamingChannelResponse();
|
|
23371
|
-
message.clan_id = object.clan_id ?? "";
|
|
23372
|
-
message.channel_id = object.channel_id ?? "";
|
|
23373
|
-
message.streaming_url = object.streaming_url ?? "";
|
|
23374
|
-
message.is_streaming = object.is_streaming ?? false;
|
|
23375
|
-
return message;
|
|
23376
|
-
},
|
|
23377
|
-
};
|
|
23378
23456
|
function createBaseGiveCoffeeEvent() {
|
|
23379
23457
|
return { sender_id: "", receiver_id: "", token_count: 0, message_ref_id: "", channel_id: "", clan_id: "" };
|
|
23380
23458
|
}
|
|
@@ -27378,7 +27456,15 @@ export const ListAuditLogRequest = {
|
|
|
27378
27456
|
},
|
|
27379
27457
|
};
|
|
27380
27458
|
function createBaseTokenSentEvent() {
|
|
27381
|
-
return {
|
|
27459
|
+
return {
|
|
27460
|
+
sender_id: "",
|
|
27461
|
+
sender_name: "",
|
|
27462
|
+
receiver_id: "",
|
|
27463
|
+
amount: 0,
|
|
27464
|
+
note: "",
|
|
27465
|
+
extra_attribute: "",
|
|
27466
|
+
transaction_id: "",
|
|
27467
|
+
};
|
|
27382
27468
|
}
|
|
27383
27469
|
export const TokenSentEvent = {
|
|
27384
27470
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -27397,6 +27483,12 @@ export const TokenSentEvent = {
|
|
|
27397
27483
|
if (message.note !== "") {
|
|
27398
27484
|
writer.uint32(42).string(message.note);
|
|
27399
27485
|
}
|
|
27486
|
+
if (message.extra_attribute !== "") {
|
|
27487
|
+
writer.uint32(50).string(message.extra_attribute);
|
|
27488
|
+
}
|
|
27489
|
+
if (message.transaction_id !== "") {
|
|
27490
|
+
writer.uint32(58).string(message.transaction_id);
|
|
27491
|
+
}
|
|
27400
27492
|
return writer;
|
|
27401
27493
|
},
|
|
27402
27494
|
decode(input, length) {
|
|
@@ -27436,6 +27528,18 @@ export const TokenSentEvent = {
|
|
|
27436
27528
|
}
|
|
27437
27529
|
message.note = reader.string();
|
|
27438
27530
|
continue;
|
|
27531
|
+
case 6:
|
|
27532
|
+
if (tag !== 50) {
|
|
27533
|
+
break;
|
|
27534
|
+
}
|
|
27535
|
+
message.extra_attribute = reader.string();
|
|
27536
|
+
continue;
|
|
27537
|
+
case 7:
|
|
27538
|
+
if (tag !== 58) {
|
|
27539
|
+
break;
|
|
27540
|
+
}
|
|
27541
|
+
message.transaction_id = reader.string();
|
|
27542
|
+
continue;
|
|
27439
27543
|
}
|
|
27440
27544
|
if ((tag & 7) === 4 || tag === 0) {
|
|
27441
27545
|
break;
|
|
@@ -27451,6 +27555,8 @@ export const TokenSentEvent = {
|
|
|
27451
27555
|
receiver_id: isSet(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
|
|
27452
27556
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
27453
27557
|
note: isSet(object.note) ? globalThis.String(object.note) : "",
|
|
27558
|
+
extra_attribute: isSet(object.extra_attribute) ? globalThis.String(object.extra_attribute) : "",
|
|
27559
|
+
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
27454
27560
|
};
|
|
27455
27561
|
},
|
|
27456
27562
|
toJSON(message) {
|
|
@@ -27470,6 +27576,12 @@ export const TokenSentEvent = {
|
|
|
27470
27576
|
if (message.note !== "") {
|
|
27471
27577
|
obj.note = message.note;
|
|
27472
27578
|
}
|
|
27579
|
+
if (message.extra_attribute !== "") {
|
|
27580
|
+
obj.extra_attribute = message.extra_attribute;
|
|
27581
|
+
}
|
|
27582
|
+
if (message.transaction_id !== "") {
|
|
27583
|
+
obj.transaction_id = message.transaction_id;
|
|
27584
|
+
}
|
|
27473
27585
|
return obj;
|
|
27474
27586
|
},
|
|
27475
27587
|
create(base) {
|
|
@@ -27482,6 +27594,8 @@ export const TokenSentEvent = {
|
|
|
27482
27594
|
message.receiver_id = object.receiver_id ?? "";
|
|
27483
27595
|
message.amount = object.amount ?? 0;
|
|
27484
27596
|
message.note = object.note ?? "";
|
|
27597
|
+
message.extra_attribute = object.extra_attribute ?? "";
|
|
27598
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
27485
27599
|
return message;
|
|
27486
27600
|
},
|
|
27487
27601
|
};
|
|
@@ -30061,6 +30175,7 @@ function createBaseSdTopic() {
|
|
|
30061
30175
|
create_time: undefined,
|
|
30062
30176
|
update_time: undefined,
|
|
30063
30177
|
message: undefined,
|
|
30178
|
+
last_sent_message: undefined,
|
|
30064
30179
|
};
|
|
30065
30180
|
}
|
|
30066
30181
|
export const SdTopic = {
|
|
@@ -30092,6 +30207,9 @@ export const SdTopic = {
|
|
|
30092
30207
|
if (message.message !== undefined) {
|
|
30093
30208
|
ChannelMessage.encode(message.message, writer.uint32(74).fork()).ldelim();
|
|
30094
30209
|
}
|
|
30210
|
+
if (message.last_sent_message !== undefined) {
|
|
30211
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(82).fork()).ldelim();
|
|
30212
|
+
}
|
|
30095
30213
|
return writer;
|
|
30096
30214
|
},
|
|
30097
30215
|
decode(input, length) {
|
|
@@ -30155,6 +30273,12 @@ export const SdTopic = {
|
|
|
30155
30273
|
}
|
|
30156
30274
|
message.message = ChannelMessage.decode(reader, reader.uint32());
|
|
30157
30275
|
continue;
|
|
30276
|
+
case 10:
|
|
30277
|
+
if (tag !== 82) {
|
|
30278
|
+
break;
|
|
30279
|
+
}
|
|
30280
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
30281
|
+
continue;
|
|
30158
30282
|
}
|
|
30159
30283
|
if ((tag & 7) === 4 || tag === 0) {
|
|
30160
30284
|
break;
|
|
@@ -30174,6 +30298,9 @@ export const SdTopic = {
|
|
|
30174
30298
|
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
30175
30299
|
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
30176
30300
|
message: isSet(object.message) ? ChannelMessage.fromJSON(object.message) : undefined,
|
|
30301
|
+
last_sent_message: isSet(object.last_sent_message)
|
|
30302
|
+
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
30303
|
+
: undefined,
|
|
30177
30304
|
};
|
|
30178
30305
|
},
|
|
30179
30306
|
toJSON(message) {
|
|
@@ -30205,6 +30332,9 @@ export const SdTopic = {
|
|
|
30205
30332
|
if (message.message !== undefined) {
|
|
30206
30333
|
obj.message = ChannelMessage.toJSON(message.message);
|
|
30207
30334
|
}
|
|
30335
|
+
if (message.last_sent_message !== undefined) {
|
|
30336
|
+
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
30337
|
+
}
|
|
30208
30338
|
return obj;
|
|
30209
30339
|
},
|
|
30210
30340
|
create(base) {
|
|
@@ -30223,6 +30353,9 @@ export const SdTopic = {
|
|
|
30223
30353
|
message.message = (object.message !== undefined && object.message !== null)
|
|
30224
30354
|
? ChannelMessage.fromPartial(object.message)
|
|
30225
30355
|
: undefined;
|
|
30356
|
+
message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
|
|
30357
|
+
? ChannelMessageHeader.fromPartial(object.last_sent_message)
|
|
30358
|
+
: undefined;
|
|
30226
30359
|
return message;
|
|
30227
30360
|
},
|
|
30228
30361
|
};
|
|
@@ -30373,12 +30506,12 @@ export const SdTopicList = {
|
|
|
30373
30506
|
},
|
|
30374
30507
|
};
|
|
30375
30508
|
function createBaseListSdTopicRequest() {
|
|
30376
|
-
return {
|
|
30509
|
+
return { clan_id: "", limit: 0 };
|
|
30377
30510
|
}
|
|
30378
30511
|
export const ListSdTopicRequest = {
|
|
30379
30512
|
encode(message, writer = _m0.Writer.create()) {
|
|
30380
|
-
if (message.
|
|
30381
|
-
writer.uint32(10).string(message.
|
|
30513
|
+
if (message.clan_id !== "") {
|
|
30514
|
+
writer.uint32(10).string(message.clan_id);
|
|
30382
30515
|
}
|
|
30383
30516
|
if (message.limit !== 0) {
|
|
30384
30517
|
writer.uint32(16).int32(message.limit);
|
|
@@ -30396,7 +30529,7 @@ export const ListSdTopicRequest = {
|
|
|
30396
30529
|
if (tag !== 10) {
|
|
30397
30530
|
break;
|
|
30398
30531
|
}
|
|
30399
|
-
message.
|
|
30532
|
+
message.clan_id = reader.string();
|
|
30400
30533
|
continue;
|
|
30401
30534
|
case 2:
|
|
30402
30535
|
if (tag !== 16) {
|
|
@@ -30414,14 +30547,14 @@ export const ListSdTopicRequest = {
|
|
|
30414
30547
|
},
|
|
30415
30548
|
fromJSON(object) {
|
|
30416
30549
|
return {
|
|
30417
|
-
|
|
30550
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
30418
30551
|
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
30419
30552
|
};
|
|
30420
30553
|
},
|
|
30421
30554
|
toJSON(message) {
|
|
30422
30555
|
const obj = {};
|
|
30423
|
-
if (message.
|
|
30424
|
-
obj.
|
|
30556
|
+
if (message.clan_id !== "") {
|
|
30557
|
+
obj.clan_id = message.clan_id;
|
|
30425
30558
|
}
|
|
30426
30559
|
if (message.limit !== 0) {
|
|
30427
30560
|
obj.limit = Math.round(message.limit);
|
|
@@ -30433,7 +30566,7 @@ export const ListSdTopicRequest = {
|
|
|
30433
30566
|
},
|
|
30434
30567
|
fromPartial(object) {
|
|
30435
30568
|
const message = createBaseListSdTopicRequest();
|
|
30436
|
-
message.
|
|
30569
|
+
message.clan_id = object.clan_id ?? "";
|
|
30437
30570
|
message.limit = object.limit ?? 0;
|
|
30438
30571
|
return message;
|
|
30439
30572
|
},
|