mezon-js-protobuf 1.6.44 → 1.6.46
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 +549 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +265 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +84 -32
- package/dist/mezon-js-protobuf.cjs.js +117 -73
- package/dist/mezon-js-protobuf.esm.mjs +117 -73
- package/package.json +1 -1
- package/rtapi/realtime.ts +138 -27
package/api/api.ts
CHANGED
|
@@ -3456,6 +3456,7 @@ export interface AuditLog {
|
|
|
3456
3456
|
entity_id: string;
|
|
3457
3457
|
details: string;
|
|
3458
3458
|
time_log: Date | undefined;
|
|
3459
|
+
channel_id: string;
|
|
3459
3460
|
}
|
|
3460
3461
|
|
|
3461
3462
|
export interface ListAuditLog {
|
|
@@ -3779,6 +3780,39 @@ export interface WalletLedgerListReq {
|
|
|
3779
3780
|
transaction_id: string;
|
|
3780
3781
|
}
|
|
3781
3782
|
|
|
3783
|
+
export interface SdTopic {
|
|
3784
|
+
id: string;
|
|
3785
|
+
creator_id: string;
|
|
3786
|
+
message_id: string;
|
|
3787
|
+
clan_id: string;
|
|
3788
|
+
channel_id: string;
|
|
3789
|
+
status: number;
|
|
3790
|
+
create_time: Date | undefined;
|
|
3791
|
+
update_time: Date | undefined;
|
|
3792
|
+
}
|
|
3793
|
+
|
|
3794
|
+
export interface SdTopicRequest {
|
|
3795
|
+
message_id: string;
|
|
3796
|
+
clan_id: string;
|
|
3797
|
+
channel_id: string;
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
export interface SdTopicList {
|
|
3801
|
+
count: number;
|
|
3802
|
+
topics: SdTopic[];
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
export interface ListSdTopicRequest {
|
|
3806
|
+
channel_id: string;
|
|
3807
|
+
limit: number;
|
|
3808
|
+
}
|
|
3809
|
+
|
|
3810
|
+
export interface DeleteSdTopicRequest {
|
|
3811
|
+
channel_id: string;
|
|
3812
|
+
id: string;
|
|
3813
|
+
clan_id: string;
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3782
3816
|
function createBaseAccount(): Account {
|
|
3783
3817
|
return {
|
|
3784
3818
|
user: undefined,
|
|
@@ -33261,6 +33295,7 @@ function createBaseAuditLog(): AuditLog {
|
|
|
33261
33295
|
entity_id: "",
|
|
33262
33296
|
details: "",
|
|
33263
33297
|
time_log: undefined,
|
|
33298
|
+
channel_id: "",
|
|
33264
33299
|
};
|
|
33265
33300
|
}
|
|
33266
33301
|
|
|
@@ -33290,6 +33325,9 @@ export const AuditLog = {
|
|
|
33290
33325
|
if (message.time_log !== undefined) {
|
|
33291
33326
|
Timestamp.encode(toTimestamp(message.time_log), writer.uint32(66).fork()).ldelim();
|
|
33292
33327
|
}
|
|
33328
|
+
if (message.channel_id !== "") {
|
|
33329
|
+
writer.uint32(74).string(message.channel_id);
|
|
33330
|
+
}
|
|
33293
33331
|
return writer;
|
|
33294
33332
|
},
|
|
33295
33333
|
|
|
@@ -33356,6 +33394,13 @@ export const AuditLog = {
|
|
|
33356
33394
|
|
|
33357
33395
|
message.time_log = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
33358
33396
|
continue;
|
|
33397
|
+
case 9:
|
|
33398
|
+
if (tag !== 74) {
|
|
33399
|
+
break;
|
|
33400
|
+
}
|
|
33401
|
+
|
|
33402
|
+
message.channel_id = reader.string();
|
|
33403
|
+
continue;
|
|
33359
33404
|
}
|
|
33360
33405
|
if ((tag & 7) === 4 || tag === 0) {
|
|
33361
33406
|
break;
|
|
@@ -33375,6 +33420,7 @@ export const AuditLog = {
|
|
|
33375
33420
|
entity_id: isSet(object.entity_id) ? globalThis.String(object.entity_id) : "",
|
|
33376
33421
|
details: isSet(object.details) ? globalThis.String(object.details) : "",
|
|
33377
33422
|
time_log: isSet(object.time_log) ? fromJsonTimestamp(object.time_log) : undefined,
|
|
33423
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
33378
33424
|
};
|
|
33379
33425
|
},
|
|
33380
33426
|
|
|
@@ -33404,6 +33450,9 @@ export const AuditLog = {
|
|
|
33404
33450
|
if (message.time_log !== undefined) {
|
|
33405
33451
|
obj.time_log = message.time_log.toISOString();
|
|
33406
33452
|
}
|
|
33453
|
+
if (message.channel_id !== "") {
|
|
33454
|
+
obj.channel_id = message.channel_id;
|
|
33455
|
+
}
|
|
33407
33456
|
return obj;
|
|
33408
33457
|
},
|
|
33409
33458
|
|
|
@@ -33420,6 +33469,7 @@ export const AuditLog = {
|
|
|
33420
33469
|
message.entity_id = object.entity_id ?? "";
|
|
33421
33470
|
message.details = object.details ?? "";
|
|
33422
33471
|
message.time_log = object.time_log ?? undefined;
|
|
33472
|
+
message.channel_id = object.channel_id ?? "";
|
|
33423
33473
|
return message;
|
|
33424
33474
|
},
|
|
33425
33475
|
};
|
|
@@ -36606,6 +36656,505 @@ export const WalletLedgerListReq = {
|
|
|
36606
36656
|
},
|
|
36607
36657
|
};
|
|
36608
36658
|
|
|
36659
|
+
function createBaseSdTopic(): SdTopic {
|
|
36660
|
+
return {
|
|
36661
|
+
id: "",
|
|
36662
|
+
creator_id: "",
|
|
36663
|
+
message_id: "",
|
|
36664
|
+
clan_id: "",
|
|
36665
|
+
channel_id: "",
|
|
36666
|
+
status: 0,
|
|
36667
|
+
create_time: undefined,
|
|
36668
|
+
update_time: undefined,
|
|
36669
|
+
};
|
|
36670
|
+
}
|
|
36671
|
+
|
|
36672
|
+
export const SdTopic = {
|
|
36673
|
+
encode(message: SdTopic, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36674
|
+
if (message.id !== "") {
|
|
36675
|
+
writer.uint32(10).string(message.id);
|
|
36676
|
+
}
|
|
36677
|
+
if (message.creator_id !== "") {
|
|
36678
|
+
writer.uint32(18).string(message.creator_id);
|
|
36679
|
+
}
|
|
36680
|
+
if (message.message_id !== "") {
|
|
36681
|
+
writer.uint32(26).string(message.message_id);
|
|
36682
|
+
}
|
|
36683
|
+
if (message.clan_id !== "") {
|
|
36684
|
+
writer.uint32(34).string(message.clan_id);
|
|
36685
|
+
}
|
|
36686
|
+
if (message.channel_id !== "") {
|
|
36687
|
+
writer.uint32(42).string(message.channel_id);
|
|
36688
|
+
}
|
|
36689
|
+
if (message.status !== 0) {
|
|
36690
|
+
writer.uint32(48).int32(message.status);
|
|
36691
|
+
}
|
|
36692
|
+
if (message.create_time !== undefined) {
|
|
36693
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(58).fork()).ldelim();
|
|
36694
|
+
}
|
|
36695
|
+
if (message.update_time !== undefined) {
|
|
36696
|
+
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(66).fork()).ldelim();
|
|
36697
|
+
}
|
|
36698
|
+
return writer;
|
|
36699
|
+
},
|
|
36700
|
+
|
|
36701
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopic {
|
|
36702
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36703
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36704
|
+
const message = createBaseSdTopic();
|
|
36705
|
+
while (reader.pos < end) {
|
|
36706
|
+
const tag = reader.uint32();
|
|
36707
|
+
switch (tag >>> 3) {
|
|
36708
|
+
case 1:
|
|
36709
|
+
if (tag !== 10) {
|
|
36710
|
+
break;
|
|
36711
|
+
}
|
|
36712
|
+
|
|
36713
|
+
message.id = reader.string();
|
|
36714
|
+
continue;
|
|
36715
|
+
case 2:
|
|
36716
|
+
if (tag !== 18) {
|
|
36717
|
+
break;
|
|
36718
|
+
}
|
|
36719
|
+
|
|
36720
|
+
message.creator_id = reader.string();
|
|
36721
|
+
continue;
|
|
36722
|
+
case 3:
|
|
36723
|
+
if (tag !== 26) {
|
|
36724
|
+
break;
|
|
36725
|
+
}
|
|
36726
|
+
|
|
36727
|
+
message.message_id = reader.string();
|
|
36728
|
+
continue;
|
|
36729
|
+
case 4:
|
|
36730
|
+
if (tag !== 34) {
|
|
36731
|
+
break;
|
|
36732
|
+
}
|
|
36733
|
+
|
|
36734
|
+
message.clan_id = reader.string();
|
|
36735
|
+
continue;
|
|
36736
|
+
case 5:
|
|
36737
|
+
if (tag !== 42) {
|
|
36738
|
+
break;
|
|
36739
|
+
}
|
|
36740
|
+
|
|
36741
|
+
message.channel_id = reader.string();
|
|
36742
|
+
continue;
|
|
36743
|
+
case 6:
|
|
36744
|
+
if (tag !== 48) {
|
|
36745
|
+
break;
|
|
36746
|
+
}
|
|
36747
|
+
|
|
36748
|
+
message.status = reader.int32();
|
|
36749
|
+
continue;
|
|
36750
|
+
case 7:
|
|
36751
|
+
if (tag !== 58) {
|
|
36752
|
+
break;
|
|
36753
|
+
}
|
|
36754
|
+
|
|
36755
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
36756
|
+
continue;
|
|
36757
|
+
case 8:
|
|
36758
|
+
if (tag !== 66) {
|
|
36759
|
+
break;
|
|
36760
|
+
}
|
|
36761
|
+
|
|
36762
|
+
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
36763
|
+
continue;
|
|
36764
|
+
}
|
|
36765
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36766
|
+
break;
|
|
36767
|
+
}
|
|
36768
|
+
reader.skipType(tag & 7);
|
|
36769
|
+
}
|
|
36770
|
+
return message;
|
|
36771
|
+
},
|
|
36772
|
+
|
|
36773
|
+
fromJSON(object: any): SdTopic {
|
|
36774
|
+
return {
|
|
36775
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
36776
|
+
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
36777
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
36778
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
36779
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
36780
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
36781
|
+
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
36782
|
+
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
36783
|
+
};
|
|
36784
|
+
},
|
|
36785
|
+
|
|
36786
|
+
toJSON(message: SdTopic): unknown {
|
|
36787
|
+
const obj: any = {};
|
|
36788
|
+
if (message.id !== "") {
|
|
36789
|
+
obj.id = message.id;
|
|
36790
|
+
}
|
|
36791
|
+
if (message.creator_id !== "") {
|
|
36792
|
+
obj.creator_id = message.creator_id;
|
|
36793
|
+
}
|
|
36794
|
+
if (message.message_id !== "") {
|
|
36795
|
+
obj.message_id = message.message_id;
|
|
36796
|
+
}
|
|
36797
|
+
if (message.clan_id !== "") {
|
|
36798
|
+
obj.clan_id = message.clan_id;
|
|
36799
|
+
}
|
|
36800
|
+
if (message.channel_id !== "") {
|
|
36801
|
+
obj.channel_id = message.channel_id;
|
|
36802
|
+
}
|
|
36803
|
+
if (message.status !== 0) {
|
|
36804
|
+
obj.status = Math.round(message.status);
|
|
36805
|
+
}
|
|
36806
|
+
if (message.create_time !== undefined) {
|
|
36807
|
+
obj.create_time = message.create_time.toISOString();
|
|
36808
|
+
}
|
|
36809
|
+
if (message.update_time !== undefined) {
|
|
36810
|
+
obj.update_time = message.update_time.toISOString();
|
|
36811
|
+
}
|
|
36812
|
+
return obj;
|
|
36813
|
+
},
|
|
36814
|
+
|
|
36815
|
+
create<I extends Exact<DeepPartial<SdTopic>, I>>(base?: I): SdTopic {
|
|
36816
|
+
return SdTopic.fromPartial(base ?? ({} as any));
|
|
36817
|
+
},
|
|
36818
|
+
fromPartial<I extends Exact<DeepPartial<SdTopic>, I>>(object: I): SdTopic {
|
|
36819
|
+
const message = createBaseSdTopic();
|
|
36820
|
+
message.id = object.id ?? "";
|
|
36821
|
+
message.creator_id = object.creator_id ?? "";
|
|
36822
|
+
message.message_id = object.message_id ?? "";
|
|
36823
|
+
message.clan_id = object.clan_id ?? "";
|
|
36824
|
+
message.channel_id = object.channel_id ?? "";
|
|
36825
|
+
message.status = object.status ?? 0;
|
|
36826
|
+
message.create_time = object.create_time ?? undefined;
|
|
36827
|
+
message.update_time = object.update_time ?? undefined;
|
|
36828
|
+
return message;
|
|
36829
|
+
},
|
|
36830
|
+
};
|
|
36831
|
+
|
|
36832
|
+
function createBaseSdTopicRequest(): SdTopicRequest {
|
|
36833
|
+
return { message_id: "", clan_id: "", channel_id: "" };
|
|
36834
|
+
}
|
|
36835
|
+
|
|
36836
|
+
export const SdTopicRequest = {
|
|
36837
|
+
encode(message: SdTopicRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36838
|
+
if (message.message_id !== "") {
|
|
36839
|
+
writer.uint32(10).string(message.message_id);
|
|
36840
|
+
}
|
|
36841
|
+
if (message.clan_id !== "") {
|
|
36842
|
+
writer.uint32(18).string(message.clan_id);
|
|
36843
|
+
}
|
|
36844
|
+
if (message.channel_id !== "") {
|
|
36845
|
+
writer.uint32(26).string(message.channel_id);
|
|
36846
|
+
}
|
|
36847
|
+
return writer;
|
|
36848
|
+
},
|
|
36849
|
+
|
|
36850
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicRequest {
|
|
36851
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36852
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36853
|
+
const message = createBaseSdTopicRequest();
|
|
36854
|
+
while (reader.pos < end) {
|
|
36855
|
+
const tag = reader.uint32();
|
|
36856
|
+
switch (tag >>> 3) {
|
|
36857
|
+
case 1:
|
|
36858
|
+
if (tag !== 10) {
|
|
36859
|
+
break;
|
|
36860
|
+
}
|
|
36861
|
+
|
|
36862
|
+
message.message_id = reader.string();
|
|
36863
|
+
continue;
|
|
36864
|
+
case 2:
|
|
36865
|
+
if (tag !== 18) {
|
|
36866
|
+
break;
|
|
36867
|
+
}
|
|
36868
|
+
|
|
36869
|
+
message.clan_id = reader.string();
|
|
36870
|
+
continue;
|
|
36871
|
+
case 3:
|
|
36872
|
+
if (tag !== 26) {
|
|
36873
|
+
break;
|
|
36874
|
+
}
|
|
36875
|
+
|
|
36876
|
+
message.channel_id = reader.string();
|
|
36877
|
+
continue;
|
|
36878
|
+
}
|
|
36879
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36880
|
+
break;
|
|
36881
|
+
}
|
|
36882
|
+
reader.skipType(tag & 7);
|
|
36883
|
+
}
|
|
36884
|
+
return message;
|
|
36885
|
+
},
|
|
36886
|
+
|
|
36887
|
+
fromJSON(object: any): SdTopicRequest {
|
|
36888
|
+
return {
|
|
36889
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
36890
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
36891
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
36892
|
+
};
|
|
36893
|
+
},
|
|
36894
|
+
|
|
36895
|
+
toJSON(message: SdTopicRequest): unknown {
|
|
36896
|
+
const obj: any = {};
|
|
36897
|
+
if (message.message_id !== "") {
|
|
36898
|
+
obj.message_id = message.message_id;
|
|
36899
|
+
}
|
|
36900
|
+
if (message.clan_id !== "") {
|
|
36901
|
+
obj.clan_id = message.clan_id;
|
|
36902
|
+
}
|
|
36903
|
+
if (message.channel_id !== "") {
|
|
36904
|
+
obj.channel_id = message.channel_id;
|
|
36905
|
+
}
|
|
36906
|
+
return obj;
|
|
36907
|
+
},
|
|
36908
|
+
|
|
36909
|
+
create<I extends Exact<DeepPartial<SdTopicRequest>, I>>(base?: I): SdTopicRequest {
|
|
36910
|
+
return SdTopicRequest.fromPartial(base ?? ({} as any));
|
|
36911
|
+
},
|
|
36912
|
+
fromPartial<I extends Exact<DeepPartial<SdTopicRequest>, I>>(object: I): SdTopicRequest {
|
|
36913
|
+
const message = createBaseSdTopicRequest();
|
|
36914
|
+
message.message_id = object.message_id ?? "";
|
|
36915
|
+
message.clan_id = object.clan_id ?? "";
|
|
36916
|
+
message.channel_id = object.channel_id ?? "";
|
|
36917
|
+
return message;
|
|
36918
|
+
},
|
|
36919
|
+
};
|
|
36920
|
+
|
|
36921
|
+
function createBaseSdTopicList(): SdTopicList {
|
|
36922
|
+
return { count: 0, topics: [] };
|
|
36923
|
+
}
|
|
36924
|
+
|
|
36925
|
+
export const SdTopicList = {
|
|
36926
|
+
encode(message: SdTopicList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36927
|
+
if (message.count !== 0) {
|
|
36928
|
+
writer.uint32(8).int32(message.count);
|
|
36929
|
+
}
|
|
36930
|
+
for (const v of message.topics) {
|
|
36931
|
+
SdTopic.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
36932
|
+
}
|
|
36933
|
+
return writer;
|
|
36934
|
+
},
|
|
36935
|
+
|
|
36936
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicList {
|
|
36937
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36938
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36939
|
+
const message = createBaseSdTopicList();
|
|
36940
|
+
while (reader.pos < end) {
|
|
36941
|
+
const tag = reader.uint32();
|
|
36942
|
+
switch (tag >>> 3) {
|
|
36943
|
+
case 1:
|
|
36944
|
+
if (tag !== 8) {
|
|
36945
|
+
break;
|
|
36946
|
+
}
|
|
36947
|
+
|
|
36948
|
+
message.count = reader.int32();
|
|
36949
|
+
continue;
|
|
36950
|
+
case 2:
|
|
36951
|
+
if (tag !== 18) {
|
|
36952
|
+
break;
|
|
36953
|
+
}
|
|
36954
|
+
|
|
36955
|
+
message.topics.push(SdTopic.decode(reader, reader.uint32()));
|
|
36956
|
+
continue;
|
|
36957
|
+
}
|
|
36958
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36959
|
+
break;
|
|
36960
|
+
}
|
|
36961
|
+
reader.skipType(tag & 7);
|
|
36962
|
+
}
|
|
36963
|
+
return message;
|
|
36964
|
+
},
|
|
36965
|
+
|
|
36966
|
+
fromJSON(object: any): SdTopicList {
|
|
36967
|
+
return {
|
|
36968
|
+
count: isSet(object.count) ? globalThis.Number(object.count) : 0,
|
|
36969
|
+
topics: globalThis.Array.isArray(object?.topics) ? object.topics.map((e: any) => SdTopic.fromJSON(e)) : [],
|
|
36970
|
+
};
|
|
36971
|
+
},
|
|
36972
|
+
|
|
36973
|
+
toJSON(message: SdTopicList): unknown {
|
|
36974
|
+
const obj: any = {};
|
|
36975
|
+
if (message.count !== 0) {
|
|
36976
|
+
obj.count = Math.round(message.count);
|
|
36977
|
+
}
|
|
36978
|
+
if (message.topics?.length) {
|
|
36979
|
+
obj.topics = message.topics.map((e) => SdTopic.toJSON(e));
|
|
36980
|
+
}
|
|
36981
|
+
return obj;
|
|
36982
|
+
},
|
|
36983
|
+
|
|
36984
|
+
create<I extends Exact<DeepPartial<SdTopicList>, I>>(base?: I): SdTopicList {
|
|
36985
|
+
return SdTopicList.fromPartial(base ?? ({} as any));
|
|
36986
|
+
},
|
|
36987
|
+
fromPartial<I extends Exact<DeepPartial<SdTopicList>, I>>(object: I): SdTopicList {
|
|
36988
|
+
const message = createBaseSdTopicList();
|
|
36989
|
+
message.count = object.count ?? 0;
|
|
36990
|
+
message.topics = object.topics?.map((e) => SdTopic.fromPartial(e)) || [];
|
|
36991
|
+
return message;
|
|
36992
|
+
},
|
|
36993
|
+
};
|
|
36994
|
+
|
|
36995
|
+
function createBaseListSdTopicRequest(): ListSdTopicRequest {
|
|
36996
|
+
return { channel_id: "", limit: 0 };
|
|
36997
|
+
}
|
|
36998
|
+
|
|
36999
|
+
export const ListSdTopicRequest = {
|
|
37000
|
+
encode(message: ListSdTopicRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37001
|
+
if (message.channel_id !== "") {
|
|
37002
|
+
writer.uint32(10).string(message.channel_id);
|
|
37003
|
+
}
|
|
37004
|
+
if (message.limit !== 0) {
|
|
37005
|
+
writer.uint32(16).int32(message.limit);
|
|
37006
|
+
}
|
|
37007
|
+
return writer;
|
|
37008
|
+
},
|
|
37009
|
+
|
|
37010
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListSdTopicRequest {
|
|
37011
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37012
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37013
|
+
const message = createBaseListSdTopicRequest();
|
|
37014
|
+
while (reader.pos < end) {
|
|
37015
|
+
const tag = reader.uint32();
|
|
37016
|
+
switch (tag >>> 3) {
|
|
37017
|
+
case 1:
|
|
37018
|
+
if (tag !== 10) {
|
|
37019
|
+
break;
|
|
37020
|
+
}
|
|
37021
|
+
|
|
37022
|
+
message.channel_id = reader.string();
|
|
37023
|
+
continue;
|
|
37024
|
+
case 2:
|
|
37025
|
+
if (tag !== 16) {
|
|
37026
|
+
break;
|
|
37027
|
+
}
|
|
37028
|
+
|
|
37029
|
+
message.limit = reader.int32();
|
|
37030
|
+
continue;
|
|
37031
|
+
}
|
|
37032
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37033
|
+
break;
|
|
37034
|
+
}
|
|
37035
|
+
reader.skipType(tag & 7);
|
|
37036
|
+
}
|
|
37037
|
+
return message;
|
|
37038
|
+
},
|
|
37039
|
+
|
|
37040
|
+
fromJSON(object: any): ListSdTopicRequest {
|
|
37041
|
+
return {
|
|
37042
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
37043
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
37044
|
+
};
|
|
37045
|
+
},
|
|
37046
|
+
|
|
37047
|
+
toJSON(message: ListSdTopicRequest): unknown {
|
|
37048
|
+
const obj: any = {};
|
|
37049
|
+
if (message.channel_id !== "") {
|
|
37050
|
+
obj.channel_id = message.channel_id;
|
|
37051
|
+
}
|
|
37052
|
+
if (message.limit !== 0) {
|
|
37053
|
+
obj.limit = Math.round(message.limit);
|
|
37054
|
+
}
|
|
37055
|
+
return obj;
|
|
37056
|
+
},
|
|
37057
|
+
|
|
37058
|
+
create<I extends Exact<DeepPartial<ListSdTopicRequest>, I>>(base?: I): ListSdTopicRequest {
|
|
37059
|
+
return ListSdTopicRequest.fromPartial(base ?? ({} as any));
|
|
37060
|
+
},
|
|
37061
|
+
fromPartial<I extends Exact<DeepPartial<ListSdTopicRequest>, I>>(object: I): ListSdTopicRequest {
|
|
37062
|
+
const message = createBaseListSdTopicRequest();
|
|
37063
|
+
message.channel_id = object.channel_id ?? "";
|
|
37064
|
+
message.limit = object.limit ?? 0;
|
|
37065
|
+
return message;
|
|
37066
|
+
},
|
|
37067
|
+
};
|
|
37068
|
+
|
|
37069
|
+
function createBaseDeleteSdTopicRequest(): DeleteSdTopicRequest {
|
|
37070
|
+
return { channel_id: "", id: "", clan_id: "" };
|
|
37071
|
+
}
|
|
37072
|
+
|
|
37073
|
+
export const DeleteSdTopicRequest = {
|
|
37074
|
+
encode(message: DeleteSdTopicRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37075
|
+
if (message.channel_id !== "") {
|
|
37076
|
+
writer.uint32(10).string(message.channel_id);
|
|
37077
|
+
}
|
|
37078
|
+
if (message.id !== "") {
|
|
37079
|
+
writer.uint32(18).string(message.id);
|
|
37080
|
+
}
|
|
37081
|
+
if (message.clan_id !== "") {
|
|
37082
|
+
writer.uint32(26).string(message.clan_id);
|
|
37083
|
+
}
|
|
37084
|
+
return writer;
|
|
37085
|
+
},
|
|
37086
|
+
|
|
37087
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DeleteSdTopicRequest {
|
|
37088
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37089
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37090
|
+
const message = createBaseDeleteSdTopicRequest();
|
|
37091
|
+
while (reader.pos < end) {
|
|
37092
|
+
const tag = reader.uint32();
|
|
37093
|
+
switch (tag >>> 3) {
|
|
37094
|
+
case 1:
|
|
37095
|
+
if (tag !== 10) {
|
|
37096
|
+
break;
|
|
37097
|
+
}
|
|
37098
|
+
|
|
37099
|
+
message.channel_id = reader.string();
|
|
37100
|
+
continue;
|
|
37101
|
+
case 2:
|
|
37102
|
+
if (tag !== 18) {
|
|
37103
|
+
break;
|
|
37104
|
+
}
|
|
37105
|
+
|
|
37106
|
+
message.id = reader.string();
|
|
37107
|
+
continue;
|
|
37108
|
+
case 3:
|
|
37109
|
+
if (tag !== 26) {
|
|
37110
|
+
break;
|
|
37111
|
+
}
|
|
37112
|
+
|
|
37113
|
+
message.clan_id = reader.string();
|
|
37114
|
+
continue;
|
|
37115
|
+
}
|
|
37116
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37117
|
+
break;
|
|
37118
|
+
}
|
|
37119
|
+
reader.skipType(tag & 7);
|
|
37120
|
+
}
|
|
37121
|
+
return message;
|
|
37122
|
+
},
|
|
37123
|
+
|
|
37124
|
+
fromJSON(object: any): DeleteSdTopicRequest {
|
|
37125
|
+
return {
|
|
37126
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
37127
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
37128
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
37129
|
+
};
|
|
37130
|
+
},
|
|
37131
|
+
|
|
37132
|
+
toJSON(message: DeleteSdTopicRequest): unknown {
|
|
37133
|
+
const obj: any = {};
|
|
37134
|
+
if (message.channel_id !== "") {
|
|
37135
|
+
obj.channel_id = message.channel_id;
|
|
37136
|
+
}
|
|
37137
|
+
if (message.id !== "") {
|
|
37138
|
+
obj.id = message.id;
|
|
37139
|
+
}
|
|
37140
|
+
if (message.clan_id !== "") {
|
|
37141
|
+
obj.clan_id = message.clan_id;
|
|
37142
|
+
}
|
|
37143
|
+
return obj;
|
|
37144
|
+
},
|
|
37145
|
+
|
|
37146
|
+
create<I extends Exact<DeepPartial<DeleteSdTopicRequest>, I>>(base?: I): DeleteSdTopicRequest {
|
|
37147
|
+
return DeleteSdTopicRequest.fromPartial(base ?? ({} as any));
|
|
37148
|
+
},
|
|
37149
|
+
fromPartial<I extends Exact<DeepPartial<DeleteSdTopicRequest>, I>>(object: I): DeleteSdTopicRequest {
|
|
37150
|
+
const message = createBaseDeleteSdTopicRequest();
|
|
37151
|
+
message.channel_id = object.channel_id ?? "";
|
|
37152
|
+
message.id = object.id ?? "";
|
|
37153
|
+
message.clan_id = object.clan_id ?? "";
|
|
37154
|
+
return message;
|
|
37155
|
+
},
|
|
37156
|
+
};
|
|
37157
|
+
|
|
36609
37158
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
36610
37159
|
if ((globalThis as any).Buffer) {
|
|
36611
37160
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|