mezon-js-protobuf 1.4.3 → 1.4.5
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
CHANGED
|
@@ -913,7 +913,7 @@ export interface ChannelUserList_ChannelUser {
|
|
|
913
913
|
| User
|
|
914
914
|
| undefined;
|
|
915
915
|
/** Their relationship to the role. */
|
|
916
|
-
role_id: string;
|
|
916
|
+
role_id: string[];
|
|
917
917
|
/** Id */
|
|
918
918
|
id: string;
|
|
919
919
|
/** thread id */
|
|
@@ -6801,7 +6801,7 @@ export const ChannelUserList = {
|
|
|
6801
6801
|
};
|
|
6802
6802
|
|
|
6803
6803
|
function createBaseChannelUserList_ChannelUser(): ChannelUserList_ChannelUser {
|
|
6804
|
-
return { user: undefined, role_id:
|
|
6804
|
+
return { user: undefined, role_id: [], id: "", thread_id: "" };
|
|
6805
6805
|
}
|
|
6806
6806
|
|
|
6807
6807
|
export const ChannelUserList_ChannelUser = {
|
|
@@ -6809,8 +6809,8 @@ export const ChannelUserList_ChannelUser = {
|
|
|
6809
6809
|
if (message.user !== undefined) {
|
|
6810
6810
|
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
6811
6811
|
}
|
|
6812
|
-
|
|
6813
|
-
writer.uint32(18).string(
|
|
6812
|
+
for (const v of message.role_id) {
|
|
6813
|
+
writer.uint32(18).string(v!);
|
|
6814
6814
|
}
|
|
6815
6815
|
if (message.id !== "") {
|
|
6816
6816
|
writer.uint32(26).string(message.id);
|
|
@@ -6832,7 +6832,7 @@ export const ChannelUserList_ChannelUser = {
|
|
|
6832
6832
|
message.user = User.decode(reader, reader.uint32());
|
|
6833
6833
|
break;
|
|
6834
6834
|
case 2:
|
|
6835
|
-
message.role_id
|
|
6835
|
+
message.role_id.push(reader.string());
|
|
6836
6836
|
break;
|
|
6837
6837
|
case 3:
|
|
6838
6838
|
message.id = reader.string();
|
|
@@ -6851,7 +6851,7 @@ export const ChannelUserList_ChannelUser = {
|
|
|
6851
6851
|
fromJSON(object: any): ChannelUserList_ChannelUser {
|
|
6852
6852
|
return {
|
|
6853
6853
|
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
6854
|
-
role_id:
|
|
6854
|
+
role_id: Array.isArray(object?.role_id) ? object.role_id.map((e: any) => String(e)) : [],
|
|
6855
6855
|
id: isSet(object.id) ? String(object.id) : "",
|
|
6856
6856
|
thread_id: isSet(object.thread_id) ? String(object.thread_id) : "",
|
|
6857
6857
|
};
|
|
@@ -6860,7 +6860,11 @@ export const ChannelUserList_ChannelUser = {
|
|
|
6860
6860
|
toJSON(message: ChannelUserList_ChannelUser): unknown {
|
|
6861
6861
|
const obj: any = {};
|
|
6862
6862
|
message.user !== undefined && (obj.user = message.user ? User.toJSON(message.user) : undefined);
|
|
6863
|
-
|
|
6863
|
+
if (message.role_id) {
|
|
6864
|
+
obj.role_id = message.role_id.map((e) => e);
|
|
6865
|
+
} else {
|
|
6866
|
+
obj.role_id = [];
|
|
6867
|
+
}
|
|
6864
6868
|
message.id !== undefined && (obj.id = message.id);
|
|
6865
6869
|
message.thread_id !== undefined && (obj.thread_id = message.thread_id);
|
|
6866
6870
|
return obj;
|
|
@@ -6873,7 +6877,7 @@ export const ChannelUserList_ChannelUser = {
|
|
|
6873
6877
|
fromPartial<I extends Exact<DeepPartial<ChannelUserList_ChannelUser>, I>>(object: I): ChannelUserList_ChannelUser {
|
|
6874
6878
|
const message = createBaseChannelUserList_ChannelUser();
|
|
6875
6879
|
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
6876
|
-
message.role_id = object.role_id
|
|
6880
|
+
message.role_id = object.role_id?.map((e) => e) || [];
|
|
6877
6881
|
message.id = object.id ?? "";
|
|
6878
6882
|
message.thread_id = object.thread_id ?? "";
|
|
6879
6883
|
return message;
|
|
@@ -629,7 +629,7 @@ export interface ChannelUserList_ChannelUser {
|
|
|
629
629
|
/** User. */
|
|
630
630
|
user: User | undefined;
|
|
631
631
|
/** Their relationship to the role. */
|
|
632
|
-
role_id: string;
|
|
632
|
+
role_id: string[];
|
|
633
633
|
/** Id */
|
|
634
634
|
id: string;
|
|
635
635
|
/** thread id */
|
|
@@ -4794,7 +4794,7 @@ export declare const ChannelUserList: {
|
|
|
4794
4794
|
update_time?: Date | undefined;
|
|
4795
4795
|
apple_id?: string | undefined;
|
|
4796
4796
|
} | undefined;
|
|
4797
|
-
role_id?: string | undefined;
|
|
4797
|
+
role_id?: string[] | undefined;
|
|
4798
4798
|
id?: string | undefined;
|
|
4799
4799
|
thread_id?: string | undefined;
|
|
4800
4800
|
}[] | undefined;
|
|
@@ -4821,7 +4821,7 @@ export declare const ChannelUserList: {
|
|
|
4821
4821
|
update_time?: Date | undefined;
|
|
4822
4822
|
apple_id?: string | undefined;
|
|
4823
4823
|
} | undefined;
|
|
4824
|
-
role_id?: string | undefined;
|
|
4824
|
+
role_id?: string[] | undefined;
|
|
4825
4825
|
id?: string | undefined;
|
|
4826
4826
|
thread_id?: string | undefined;
|
|
4827
4827
|
}[] & ({
|
|
@@ -4844,7 +4844,7 @@ export declare const ChannelUserList: {
|
|
|
4844
4844
|
update_time?: Date | undefined;
|
|
4845
4845
|
apple_id?: string | undefined;
|
|
4846
4846
|
} | undefined;
|
|
4847
|
-
role_id?: string | undefined;
|
|
4847
|
+
role_id?: string[] | undefined;
|
|
4848
4848
|
id?: string | undefined;
|
|
4849
4849
|
thread_id?: string | undefined;
|
|
4850
4850
|
} & {
|
|
@@ -4885,10 +4885,10 @@ export declare const ChannelUserList: {
|
|
|
4885
4885
|
update_time?: Date | undefined;
|
|
4886
4886
|
apple_id?: string | undefined;
|
|
4887
4887
|
} & { [K in Exclude<keyof I["channel_users"][number]["user"], keyof User>]: never; }) | undefined;
|
|
4888
|
-
role_id?: string | undefined;
|
|
4888
|
+
role_id?: (string[] & string[] & { [K_1 in Exclude<keyof I["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
|
|
4889
4889
|
id?: string | undefined;
|
|
4890
4890
|
thread_id?: string | undefined;
|
|
4891
|
-
} & { [
|
|
4891
|
+
} & { [K_2 in Exclude<keyof I["channel_users"][number], keyof ChannelUserList_ChannelUser>]: never; })[] & { [K_3 in Exclude<keyof I["channel_users"], keyof {
|
|
4892
4892
|
user?: {
|
|
4893
4893
|
id?: string | undefined;
|
|
4894
4894
|
username?: string | undefined;
|
|
@@ -4908,13 +4908,13 @@ export declare const ChannelUserList: {
|
|
|
4908
4908
|
update_time?: Date | undefined;
|
|
4909
4909
|
apple_id?: string | undefined;
|
|
4910
4910
|
} | undefined;
|
|
4911
|
-
role_id?: string | undefined;
|
|
4911
|
+
role_id?: string[] | undefined;
|
|
4912
4912
|
id?: string | undefined;
|
|
4913
4913
|
thread_id?: string | undefined;
|
|
4914
4914
|
}[]>]: never; }) | undefined;
|
|
4915
4915
|
cursor?: string | undefined;
|
|
4916
4916
|
channel_id?: string | undefined;
|
|
4917
|
-
} & { [
|
|
4917
|
+
} & { [K_4 in Exclude<keyof I, keyof ChannelUserList>]: never; }>(base?: I | undefined): ChannelUserList;
|
|
4918
4918
|
fromPartial<I_1 extends {
|
|
4919
4919
|
channel_users?: {
|
|
4920
4920
|
user?: {
|
|
@@ -4936,7 +4936,7 @@ export declare const ChannelUserList: {
|
|
|
4936
4936
|
update_time?: Date | undefined;
|
|
4937
4937
|
apple_id?: string | undefined;
|
|
4938
4938
|
} | undefined;
|
|
4939
|
-
role_id?: string | undefined;
|
|
4939
|
+
role_id?: string[] | undefined;
|
|
4940
4940
|
id?: string | undefined;
|
|
4941
4941
|
thread_id?: string | undefined;
|
|
4942
4942
|
}[] | undefined;
|
|
@@ -4963,7 +4963,7 @@ export declare const ChannelUserList: {
|
|
|
4963
4963
|
update_time?: Date | undefined;
|
|
4964
4964
|
apple_id?: string | undefined;
|
|
4965
4965
|
} | undefined;
|
|
4966
|
-
role_id?: string | undefined;
|
|
4966
|
+
role_id?: string[] | undefined;
|
|
4967
4967
|
id?: string | undefined;
|
|
4968
4968
|
thread_id?: string | undefined;
|
|
4969
4969
|
}[] & ({
|
|
@@ -4986,7 +4986,7 @@ export declare const ChannelUserList: {
|
|
|
4986
4986
|
update_time?: Date | undefined;
|
|
4987
4987
|
apple_id?: string | undefined;
|
|
4988
4988
|
} | undefined;
|
|
4989
|
-
role_id?: string | undefined;
|
|
4989
|
+
role_id?: string[] | undefined;
|
|
4990
4990
|
id?: string | undefined;
|
|
4991
4991
|
thread_id?: string | undefined;
|
|
4992
4992
|
} & {
|
|
@@ -5026,11 +5026,11 @@ export declare const ChannelUserList: {
|
|
|
5026
5026
|
create_time?: Date | undefined;
|
|
5027
5027
|
update_time?: Date | undefined;
|
|
5028
5028
|
apple_id?: string | undefined;
|
|
5029
|
-
} & { [
|
|
5030
|
-
role_id?: string | undefined;
|
|
5029
|
+
} & { [K_5 in Exclude<keyof I_1["channel_users"][number]["user"], keyof User>]: never; }) | undefined;
|
|
5030
|
+
role_id?: (string[] & string[] & { [K_6 in Exclude<keyof I_1["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
|
|
5031
5031
|
id?: string | undefined;
|
|
5032
5032
|
thread_id?: string | undefined;
|
|
5033
|
-
} & { [
|
|
5033
|
+
} & { [K_7 in Exclude<keyof I_1["channel_users"][number], keyof ChannelUserList_ChannelUser>]: never; })[] & { [K_8 in Exclude<keyof I_1["channel_users"], keyof {
|
|
5034
5034
|
user?: {
|
|
5035
5035
|
id?: string | undefined;
|
|
5036
5036
|
username?: string | undefined;
|
|
@@ -5050,13 +5050,13 @@ export declare const ChannelUserList: {
|
|
|
5050
5050
|
update_time?: Date | undefined;
|
|
5051
5051
|
apple_id?: string | undefined;
|
|
5052
5052
|
} | undefined;
|
|
5053
|
-
role_id?: string | undefined;
|
|
5053
|
+
role_id?: string[] | undefined;
|
|
5054
5054
|
id?: string | undefined;
|
|
5055
5055
|
thread_id?: string | undefined;
|
|
5056
5056
|
}[]>]: never; }) | undefined;
|
|
5057
5057
|
cursor?: string | undefined;
|
|
5058
5058
|
channel_id?: string | undefined;
|
|
5059
|
-
} & { [
|
|
5059
|
+
} & { [K_9 in Exclude<keyof I_1, keyof ChannelUserList>]: never; }>(object: I_1): ChannelUserList;
|
|
5060
5060
|
};
|
|
5061
5061
|
export declare const ChannelUserList_ChannelUser: {
|
|
5062
5062
|
encode(message: ChannelUserList_ChannelUser, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -5083,7 +5083,7 @@ export declare const ChannelUserList_ChannelUser: {
|
|
|
5083
5083
|
update_time?: Date | undefined;
|
|
5084
5084
|
apple_id?: string | undefined;
|
|
5085
5085
|
} | undefined;
|
|
5086
|
-
role_id?: string | undefined;
|
|
5086
|
+
role_id?: string[] | undefined;
|
|
5087
5087
|
id?: string | undefined;
|
|
5088
5088
|
thread_id?: string | undefined;
|
|
5089
5089
|
} & {
|
|
@@ -5124,10 +5124,10 @@ export declare const ChannelUserList_ChannelUser: {
|
|
|
5124
5124
|
update_time?: Date | undefined;
|
|
5125
5125
|
apple_id?: string | undefined;
|
|
5126
5126
|
} & { [K in Exclude<keyof I["user"], keyof User>]: never; }) | undefined;
|
|
5127
|
-
role_id?: string | undefined;
|
|
5127
|
+
role_id?: (string[] & string[] & { [K_1 in Exclude<keyof I["role_id"], keyof string[]>]: never; }) | undefined;
|
|
5128
5128
|
id?: string | undefined;
|
|
5129
5129
|
thread_id?: string | undefined;
|
|
5130
|
-
} & { [
|
|
5130
|
+
} & { [K_2 in Exclude<keyof I, keyof ChannelUserList_ChannelUser>]: never; }>(base?: I | undefined): ChannelUserList_ChannelUser;
|
|
5131
5131
|
fromPartial<I_1 extends {
|
|
5132
5132
|
user?: {
|
|
5133
5133
|
id?: string | undefined;
|
|
@@ -5148,7 +5148,7 @@ export declare const ChannelUserList_ChannelUser: {
|
|
|
5148
5148
|
update_time?: Date | undefined;
|
|
5149
5149
|
apple_id?: string | undefined;
|
|
5150
5150
|
} | undefined;
|
|
5151
|
-
role_id?: string | undefined;
|
|
5151
|
+
role_id?: string[] | undefined;
|
|
5152
5152
|
id?: string | undefined;
|
|
5153
5153
|
thread_id?: string | undefined;
|
|
5154
5154
|
} & {
|
|
@@ -5188,11 +5188,11 @@ export declare const ChannelUserList_ChannelUser: {
|
|
|
5188
5188
|
create_time?: Date | undefined;
|
|
5189
5189
|
update_time?: Date | undefined;
|
|
5190
5190
|
apple_id?: string | undefined;
|
|
5191
|
-
} & { [
|
|
5192
|
-
role_id?: string | undefined;
|
|
5191
|
+
} & { [K_3 in Exclude<keyof I_1["user"], keyof User>]: never; }) | undefined;
|
|
5192
|
+
role_id?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["role_id"], keyof string[]>]: never; }) | undefined;
|
|
5193
5193
|
id?: string | undefined;
|
|
5194
5194
|
thread_id?: string | undefined;
|
|
5195
|
-
} & { [
|
|
5195
|
+
} & { [K_5 in Exclude<keyof I_1, keyof ChannelUserList_ChannelUser>]: never; }>(object: I_1): ChannelUserList_ChannelUser;
|
|
5196
5196
|
};
|
|
5197
5197
|
export declare const VoiceChannelUser: {
|
|
5198
5198
|
encode(message: VoiceChannelUser, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -610,16 +610,22 @@ export interface ChannelCreatedEvent {
|
|
|
610
610
|
category_id: string;
|
|
611
611
|
/** creator */
|
|
612
612
|
creator_id: string;
|
|
613
|
+
/** parrent id */
|
|
614
|
+
parrent_id: string;
|
|
613
615
|
/** channel id */
|
|
614
616
|
channel_id: string;
|
|
615
617
|
/** channel label */
|
|
616
618
|
channel_label: string;
|
|
619
|
+
/** channel type */
|
|
620
|
+
channel_type: number | undefined;
|
|
617
621
|
}
|
|
618
622
|
export interface ChannelDeletedEvent {
|
|
619
623
|
/** clan id */
|
|
620
624
|
clan_id: string;
|
|
621
625
|
/** category */
|
|
622
626
|
category_id: string;
|
|
627
|
+
/** parrent id */
|
|
628
|
+
parrent_id: string;
|
|
623
629
|
/** channel id */
|
|
624
630
|
channel_id: string;
|
|
625
631
|
/** deletor */
|
|
@@ -1091,12 +1097,15 @@ export declare const Envelope: {
|
|
|
1091
1097
|
clan_id?: string | undefined;
|
|
1092
1098
|
category_id?: string | undefined;
|
|
1093
1099
|
creator_id?: string | undefined;
|
|
1100
|
+
parrent_id?: string | undefined;
|
|
1094
1101
|
channel_id?: string | undefined;
|
|
1095
1102
|
channel_label?: string | undefined;
|
|
1103
|
+
channel_type?: number | undefined;
|
|
1096
1104
|
} | undefined;
|
|
1097
1105
|
channel_deleted_event?: {
|
|
1098
1106
|
clan_id?: string | undefined;
|
|
1099
1107
|
category_id?: string | undefined;
|
|
1108
|
+
parrent_id?: string | undefined;
|
|
1100
1109
|
channel_id?: string | undefined;
|
|
1101
1110
|
deletor?: string | undefined;
|
|
1102
1111
|
} | undefined;
|
|
@@ -2224,23 +2233,29 @@ export declare const Envelope: {
|
|
|
2224
2233
|
clan_id?: string | undefined;
|
|
2225
2234
|
category_id?: string | undefined;
|
|
2226
2235
|
creator_id?: string | undefined;
|
|
2236
|
+
parrent_id?: string | undefined;
|
|
2227
2237
|
channel_id?: string | undefined;
|
|
2228
2238
|
channel_label?: string | undefined;
|
|
2239
|
+
channel_type?: number | undefined;
|
|
2229
2240
|
} & {
|
|
2230
2241
|
clan_id?: string | undefined;
|
|
2231
2242
|
category_id?: string | undefined;
|
|
2232
2243
|
creator_id?: string | undefined;
|
|
2244
|
+
parrent_id?: string | undefined;
|
|
2233
2245
|
channel_id?: string | undefined;
|
|
2234
2246
|
channel_label?: string | undefined;
|
|
2247
|
+
channel_type?: number | undefined;
|
|
2235
2248
|
} & { [K_88 in Exclude<keyof I["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
2236
2249
|
channel_deleted_event?: ({
|
|
2237
2250
|
clan_id?: string | undefined;
|
|
2238
2251
|
category_id?: string | undefined;
|
|
2252
|
+
parrent_id?: string | undefined;
|
|
2239
2253
|
channel_id?: string | undefined;
|
|
2240
2254
|
deletor?: string | undefined;
|
|
2241
2255
|
} & {
|
|
2242
2256
|
clan_id?: string | undefined;
|
|
2243
2257
|
category_id?: string | undefined;
|
|
2258
|
+
parrent_id?: string | undefined;
|
|
2244
2259
|
channel_id?: string | undefined;
|
|
2245
2260
|
deletor?: string | undefined;
|
|
2246
2261
|
} & { [K_89 in Exclude<keyof I["channel_deleted_event"], keyof ChannelDeletedEvent>]: never; }) | undefined;
|
|
@@ -2652,12 +2667,15 @@ export declare const Envelope: {
|
|
|
2652
2667
|
clan_id?: string | undefined;
|
|
2653
2668
|
category_id?: string | undefined;
|
|
2654
2669
|
creator_id?: string | undefined;
|
|
2670
|
+
parrent_id?: string | undefined;
|
|
2655
2671
|
channel_id?: string | undefined;
|
|
2656
2672
|
channel_label?: string | undefined;
|
|
2673
|
+
channel_type?: number | undefined;
|
|
2657
2674
|
} | undefined;
|
|
2658
2675
|
channel_deleted_event?: {
|
|
2659
2676
|
clan_id?: string | undefined;
|
|
2660
2677
|
category_id?: string | undefined;
|
|
2678
|
+
parrent_id?: string | undefined;
|
|
2661
2679
|
channel_id?: string | undefined;
|
|
2662
2680
|
deletor?: string | undefined;
|
|
2663
2681
|
} | undefined;
|
|
@@ -3785,23 +3803,29 @@ export declare const Envelope: {
|
|
|
3785
3803
|
clan_id?: string | undefined;
|
|
3786
3804
|
category_id?: string | undefined;
|
|
3787
3805
|
creator_id?: string | undefined;
|
|
3806
|
+
parrent_id?: string | undefined;
|
|
3788
3807
|
channel_id?: string | undefined;
|
|
3789
3808
|
channel_label?: string | undefined;
|
|
3809
|
+
channel_type?: number | undefined;
|
|
3790
3810
|
} & {
|
|
3791
3811
|
clan_id?: string | undefined;
|
|
3792
3812
|
category_id?: string | undefined;
|
|
3793
3813
|
creator_id?: string | undefined;
|
|
3814
|
+
parrent_id?: string | undefined;
|
|
3794
3815
|
channel_id?: string | undefined;
|
|
3795
3816
|
channel_label?: string | undefined;
|
|
3817
|
+
channel_type?: number | undefined;
|
|
3796
3818
|
} & { [K_179 in Exclude<keyof I_1["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
3797
3819
|
channel_deleted_event?: ({
|
|
3798
3820
|
clan_id?: string | undefined;
|
|
3799
3821
|
category_id?: string | undefined;
|
|
3822
|
+
parrent_id?: string | undefined;
|
|
3800
3823
|
channel_id?: string | undefined;
|
|
3801
3824
|
deletor?: string | undefined;
|
|
3802
3825
|
} & {
|
|
3803
3826
|
clan_id?: string | undefined;
|
|
3804
3827
|
category_id?: string | undefined;
|
|
3828
|
+
parrent_id?: string | undefined;
|
|
3805
3829
|
channel_id?: string | undefined;
|
|
3806
3830
|
deletor?: string | undefined;
|
|
3807
3831
|
} & { [K_180 in Exclude<keyof I_1["channel_deleted_event"], keyof ChannelDeletedEvent>]: never; }) | undefined;
|
|
@@ -6242,27 +6266,35 @@ export declare const ChannelCreatedEvent: {
|
|
|
6242
6266
|
clan_id?: string | undefined;
|
|
6243
6267
|
category_id?: string | undefined;
|
|
6244
6268
|
creator_id?: string | undefined;
|
|
6269
|
+
parrent_id?: string | undefined;
|
|
6245
6270
|
channel_id?: string | undefined;
|
|
6246
6271
|
channel_label?: string | undefined;
|
|
6272
|
+
channel_type?: number | undefined;
|
|
6247
6273
|
} & {
|
|
6248
6274
|
clan_id?: string | undefined;
|
|
6249
6275
|
category_id?: string | undefined;
|
|
6250
6276
|
creator_id?: string | undefined;
|
|
6277
|
+
parrent_id?: string | undefined;
|
|
6251
6278
|
channel_id?: string | undefined;
|
|
6252
6279
|
channel_label?: string | undefined;
|
|
6280
|
+
channel_type?: number | undefined;
|
|
6253
6281
|
} & { [K in Exclude<keyof I, keyof ChannelCreatedEvent>]: never; }>(base?: I | undefined): ChannelCreatedEvent;
|
|
6254
6282
|
fromPartial<I_1 extends {
|
|
6255
6283
|
clan_id?: string | undefined;
|
|
6256
6284
|
category_id?: string | undefined;
|
|
6257
6285
|
creator_id?: string | undefined;
|
|
6286
|
+
parrent_id?: string | undefined;
|
|
6258
6287
|
channel_id?: string | undefined;
|
|
6259
6288
|
channel_label?: string | undefined;
|
|
6289
|
+
channel_type?: number | undefined;
|
|
6260
6290
|
} & {
|
|
6261
6291
|
clan_id?: string | undefined;
|
|
6262
6292
|
category_id?: string | undefined;
|
|
6263
6293
|
creator_id?: string | undefined;
|
|
6294
|
+
parrent_id?: string | undefined;
|
|
6264
6295
|
channel_id?: string | undefined;
|
|
6265
6296
|
channel_label?: string | undefined;
|
|
6297
|
+
channel_type?: number | undefined;
|
|
6266
6298
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelCreatedEvent>]: never; }>(object: I_1): ChannelCreatedEvent;
|
|
6267
6299
|
};
|
|
6268
6300
|
export declare const ChannelDeletedEvent: {
|
|
@@ -6273,22 +6305,26 @@ export declare const ChannelDeletedEvent: {
|
|
|
6273
6305
|
create<I extends {
|
|
6274
6306
|
clan_id?: string | undefined;
|
|
6275
6307
|
category_id?: string | undefined;
|
|
6308
|
+
parrent_id?: string | undefined;
|
|
6276
6309
|
channel_id?: string | undefined;
|
|
6277
6310
|
deletor?: string | undefined;
|
|
6278
6311
|
} & {
|
|
6279
6312
|
clan_id?: string | undefined;
|
|
6280
6313
|
category_id?: string | undefined;
|
|
6314
|
+
parrent_id?: string | undefined;
|
|
6281
6315
|
channel_id?: string | undefined;
|
|
6282
6316
|
deletor?: string | undefined;
|
|
6283
6317
|
} & { [K in Exclude<keyof I, keyof ChannelDeletedEvent>]: never; }>(base?: I | undefined): ChannelDeletedEvent;
|
|
6284
6318
|
fromPartial<I_1 extends {
|
|
6285
6319
|
clan_id?: string | undefined;
|
|
6286
6320
|
category_id?: string | undefined;
|
|
6321
|
+
parrent_id?: string | undefined;
|
|
6287
6322
|
channel_id?: string | undefined;
|
|
6288
6323
|
deletor?: string | undefined;
|
|
6289
6324
|
} & {
|
|
6290
6325
|
clan_id?: string | undefined;
|
|
6291
6326
|
category_id?: string | undefined;
|
|
6327
|
+
parrent_id?: string | undefined;
|
|
6292
6328
|
channel_id?: string | undefined;
|
|
6293
6329
|
deletor?: string | undefined;
|
|
6294
6330
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelDeletedEvent>]: never; }>(object: I_1): ChannelDeletedEvent;
|
|
@@ -6319,7 +6319,15 @@ var VoiceJoinedEvent = {
|
|
|
6319
6319
|
}
|
|
6320
6320
|
};
|
|
6321
6321
|
function createBaseChannelCreatedEvent() {
|
|
6322
|
-
return {
|
|
6322
|
+
return {
|
|
6323
|
+
clan_id: "",
|
|
6324
|
+
category_id: "",
|
|
6325
|
+
creator_id: "",
|
|
6326
|
+
parrent_id: "",
|
|
6327
|
+
channel_id: "",
|
|
6328
|
+
channel_label: "",
|
|
6329
|
+
channel_type: void 0
|
|
6330
|
+
};
|
|
6323
6331
|
}
|
|
6324
6332
|
var ChannelCreatedEvent = {
|
|
6325
6333
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -6332,11 +6340,17 @@ var ChannelCreatedEvent = {
|
|
|
6332
6340
|
if (message.creator_id !== "") {
|
|
6333
6341
|
writer.uint32(26).string(message.creator_id);
|
|
6334
6342
|
}
|
|
6343
|
+
if (message.parrent_id !== "") {
|
|
6344
|
+
writer.uint32(34).string(message.parrent_id);
|
|
6345
|
+
}
|
|
6335
6346
|
if (message.channel_id !== "") {
|
|
6336
|
-
writer.uint32(
|
|
6347
|
+
writer.uint32(42).string(message.channel_id);
|
|
6337
6348
|
}
|
|
6338
6349
|
if (message.channel_label !== "") {
|
|
6339
|
-
writer.uint32(
|
|
6350
|
+
writer.uint32(50).string(message.channel_label);
|
|
6351
|
+
}
|
|
6352
|
+
if (message.channel_type !== void 0) {
|
|
6353
|
+
Int32Value.encode({ value: message.channel_type }, writer.uint32(58).fork()).ldelim();
|
|
6340
6354
|
}
|
|
6341
6355
|
return writer;
|
|
6342
6356
|
},
|
|
@@ -6357,11 +6371,17 @@ var ChannelCreatedEvent = {
|
|
|
6357
6371
|
message.creator_id = reader.string();
|
|
6358
6372
|
break;
|
|
6359
6373
|
case 4:
|
|
6360
|
-
message.
|
|
6374
|
+
message.parrent_id = reader.string();
|
|
6361
6375
|
break;
|
|
6362
6376
|
case 5:
|
|
6377
|
+
message.channel_id = reader.string();
|
|
6378
|
+
break;
|
|
6379
|
+
case 6:
|
|
6363
6380
|
message.channel_label = reader.string();
|
|
6364
6381
|
break;
|
|
6382
|
+
case 7:
|
|
6383
|
+
message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
|
|
6384
|
+
break;
|
|
6365
6385
|
default:
|
|
6366
6386
|
reader.skipType(tag & 7);
|
|
6367
6387
|
break;
|
|
@@ -6374,8 +6394,10 @@ var ChannelCreatedEvent = {
|
|
|
6374
6394
|
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
6375
6395
|
category_id: isSet4(object.category_id) ? String(object.category_id) : "",
|
|
6376
6396
|
creator_id: isSet4(object.creator_id) ? String(object.creator_id) : "",
|
|
6397
|
+
parrent_id: isSet4(object.parrent_id) ? String(object.parrent_id) : "",
|
|
6377
6398
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6378
|
-
channel_label: isSet4(object.channel_label) ? String(object.channel_label) : ""
|
|
6399
|
+
channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
|
|
6400
|
+
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0
|
|
6379
6401
|
};
|
|
6380
6402
|
},
|
|
6381
6403
|
toJSON(message) {
|
|
@@ -6383,26 +6405,30 @@ var ChannelCreatedEvent = {
|
|
|
6383
6405
|
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
6384
6406
|
message.category_id !== void 0 && (obj.category_id = message.category_id);
|
|
6385
6407
|
message.creator_id !== void 0 && (obj.creator_id = message.creator_id);
|
|
6408
|
+
message.parrent_id !== void 0 && (obj.parrent_id = message.parrent_id);
|
|
6386
6409
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6387
6410
|
message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
|
|
6411
|
+
message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
|
|
6388
6412
|
return obj;
|
|
6389
6413
|
},
|
|
6390
6414
|
create(base) {
|
|
6391
6415
|
return ChannelCreatedEvent.fromPartial(base != null ? base : {});
|
|
6392
6416
|
},
|
|
6393
6417
|
fromPartial(object) {
|
|
6394
|
-
var _a, _b, _c, _d, _e;
|
|
6418
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6395
6419
|
const message = createBaseChannelCreatedEvent();
|
|
6396
6420
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6397
6421
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
6398
6422
|
message.creator_id = (_c = object.creator_id) != null ? _c : "";
|
|
6399
|
-
message.
|
|
6400
|
-
message.
|
|
6423
|
+
message.parrent_id = (_d = object.parrent_id) != null ? _d : "";
|
|
6424
|
+
message.channel_id = (_e = object.channel_id) != null ? _e : "";
|
|
6425
|
+
message.channel_label = (_f = object.channel_label) != null ? _f : "";
|
|
6426
|
+
message.channel_type = (_g = object.channel_type) != null ? _g : void 0;
|
|
6401
6427
|
return message;
|
|
6402
6428
|
}
|
|
6403
6429
|
};
|
|
6404
6430
|
function createBaseChannelDeletedEvent() {
|
|
6405
|
-
return { clan_id: "", category_id: "", channel_id: "", deletor: "" };
|
|
6431
|
+
return { clan_id: "", category_id: "", parrent_id: "", channel_id: "", deletor: "" };
|
|
6406
6432
|
}
|
|
6407
6433
|
var ChannelDeletedEvent = {
|
|
6408
6434
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -6412,11 +6438,14 @@ var ChannelDeletedEvent = {
|
|
|
6412
6438
|
if (message.category_id !== "") {
|
|
6413
6439
|
writer.uint32(18).string(message.category_id);
|
|
6414
6440
|
}
|
|
6441
|
+
if (message.parrent_id !== "") {
|
|
6442
|
+
writer.uint32(26).string(message.parrent_id);
|
|
6443
|
+
}
|
|
6415
6444
|
if (message.channel_id !== "") {
|
|
6416
|
-
writer.uint32(
|
|
6445
|
+
writer.uint32(34).string(message.channel_id);
|
|
6417
6446
|
}
|
|
6418
6447
|
if (message.deletor !== "") {
|
|
6419
|
-
writer.uint32(
|
|
6448
|
+
writer.uint32(42).string(message.deletor);
|
|
6420
6449
|
}
|
|
6421
6450
|
return writer;
|
|
6422
6451
|
},
|
|
@@ -6434,9 +6463,12 @@ var ChannelDeletedEvent = {
|
|
|
6434
6463
|
message.category_id = reader.string();
|
|
6435
6464
|
break;
|
|
6436
6465
|
case 3:
|
|
6437
|
-
message.
|
|
6466
|
+
message.parrent_id = reader.string();
|
|
6438
6467
|
break;
|
|
6439
6468
|
case 4:
|
|
6469
|
+
message.channel_id = reader.string();
|
|
6470
|
+
break;
|
|
6471
|
+
case 5:
|
|
6440
6472
|
message.deletor = reader.string();
|
|
6441
6473
|
break;
|
|
6442
6474
|
default:
|
|
@@ -6450,6 +6482,7 @@ var ChannelDeletedEvent = {
|
|
|
6450
6482
|
return {
|
|
6451
6483
|
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
6452
6484
|
category_id: isSet4(object.category_id) ? String(object.category_id) : "",
|
|
6485
|
+
parrent_id: isSet4(object.parrent_id) ? String(object.parrent_id) : "",
|
|
6453
6486
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6454
6487
|
deletor: isSet4(object.deletor) ? String(object.deletor) : ""
|
|
6455
6488
|
};
|
|
@@ -6458,6 +6491,7 @@ var ChannelDeletedEvent = {
|
|
|
6458
6491
|
const obj = {};
|
|
6459
6492
|
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
6460
6493
|
message.category_id !== void 0 && (obj.category_id = message.category_id);
|
|
6494
|
+
message.parrent_id !== void 0 && (obj.parrent_id = message.parrent_id);
|
|
6461
6495
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6462
6496
|
message.deletor !== void 0 && (obj.deletor = message.deletor);
|
|
6463
6497
|
return obj;
|
|
@@ -6466,12 +6500,13 @@ var ChannelDeletedEvent = {
|
|
|
6466
6500
|
return ChannelDeletedEvent.fromPartial(base != null ? base : {});
|
|
6467
6501
|
},
|
|
6468
6502
|
fromPartial(object) {
|
|
6469
|
-
var _a, _b, _c, _d;
|
|
6503
|
+
var _a, _b, _c, _d, _e;
|
|
6470
6504
|
const message = createBaseChannelDeletedEvent();
|
|
6471
6505
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6472
6506
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
6473
|
-
message.
|
|
6474
|
-
message.
|
|
6507
|
+
message.parrent_id = (_c = object.parrent_id) != null ? _c : "";
|
|
6508
|
+
message.channel_id = (_d = object.channel_id) != null ? _d : "";
|
|
6509
|
+
message.deletor = (_e = object.deletor) != null ? _e : "";
|
|
6475
6510
|
return message;
|
|
6476
6511
|
}
|
|
6477
6512
|
};
|
|
@@ -6306,7 +6306,15 @@ var VoiceJoinedEvent = {
|
|
|
6306
6306
|
}
|
|
6307
6307
|
};
|
|
6308
6308
|
function createBaseChannelCreatedEvent() {
|
|
6309
|
-
return {
|
|
6309
|
+
return {
|
|
6310
|
+
clan_id: "",
|
|
6311
|
+
category_id: "",
|
|
6312
|
+
creator_id: "",
|
|
6313
|
+
parrent_id: "",
|
|
6314
|
+
channel_id: "",
|
|
6315
|
+
channel_label: "",
|
|
6316
|
+
channel_type: void 0
|
|
6317
|
+
};
|
|
6310
6318
|
}
|
|
6311
6319
|
var ChannelCreatedEvent = {
|
|
6312
6320
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -6319,11 +6327,17 @@ var ChannelCreatedEvent = {
|
|
|
6319
6327
|
if (message.creator_id !== "") {
|
|
6320
6328
|
writer.uint32(26).string(message.creator_id);
|
|
6321
6329
|
}
|
|
6330
|
+
if (message.parrent_id !== "") {
|
|
6331
|
+
writer.uint32(34).string(message.parrent_id);
|
|
6332
|
+
}
|
|
6322
6333
|
if (message.channel_id !== "") {
|
|
6323
|
-
writer.uint32(
|
|
6334
|
+
writer.uint32(42).string(message.channel_id);
|
|
6324
6335
|
}
|
|
6325
6336
|
if (message.channel_label !== "") {
|
|
6326
|
-
writer.uint32(
|
|
6337
|
+
writer.uint32(50).string(message.channel_label);
|
|
6338
|
+
}
|
|
6339
|
+
if (message.channel_type !== void 0) {
|
|
6340
|
+
Int32Value.encode({ value: message.channel_type }, writer.uint32(58).fork()).ldelim();
|
|
6327
6341
|
}
|
|
6328
6342
|
return writer;
|
|
6329
6343
|
},
|
|
@@ -6344,11 +6358,17 @@ var ChannelCreatedEvent = {
|
|
|
6344
6358
|
message.creator_id = reader.string();
|
|
6345
6359
|
break;
|
|
6346
6360
|
case 4:
|
|
6347
|
-
message.
|
|
6361
|
+
message.parrent_id = reader.string();
|
|
6348
6362
|
break;
|
|
6349
6363
|
case 5:
|
|
6364
|
+
message.channel_id = reader.string();
|
|
6365
|
+
break;
|
|
6366
|
+
case 6:
|
|
6350
6367
|
message.channel_label = reader.string();
|
|
6351
6368
|
break;
|
|
6369
|
+
case 7:
|
|
6370
|
+
message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
|
|
6371
|
+
break;
|
|
6352
6372
|
default:
|
|
6353
6373
|
reader.skipType(tag & 7);
|
|
6354
6374
|
break;
|
|
@@ -6361,8 +6381,10 @@ var ChannelCreatedEvent = {
|
|
|
6361
6381
|
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
6362
6382
|
category_id: isSet4(object.category_id) ? String(object.category_id) : "",
|
|
6363
6383
|
creator_id: isSet4(object.creator_id) ? String(object.creator_id) : "",
|
|
6384
|
+
parrent_id: isSet4(object.parrent_id) ? String(object.parrent_id) : "",
|
|
6364
6385
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6365
|
-
channel_label: isSet4(object.channel_label) ? String(object.channel_label) : ""
|
|
6386
|
+
channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
|
|
6387
|
+
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0
|
|
6366
6388
|
};
|
|
6367
6389
|
},
|
|
6368
6390
|
toJSON(message) {
|
|
@@ -6370,26 +6392,30 @@ var ChannelCreatedEvent = {
|
|
|
6370
6392
|
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
6371
6393
|
message.category_id !== void 0 && (obj.category_id = message.category_id);
|
|
6372
6394
|
message.creator_id !== void 0 && (obj.creator_id = message.creator_id);
|
|
6395
|
+
message.parrent_id !== void 0 && (obj.parrent_id = message.parrent_id);
|
|
6373
6396
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6374
6397
|
message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
|
|
6398
|
+
message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
|
|
6375
6399
|
return obj;
|
|
6376
6400
|
},
|
|
6377
6401
|
create(base) {
|
|
6378
6402
|
return ChannelCreatedEvent.fromPartial(base != null ? base : {});
|
|
6379
6403
|
},
|
|
6380
6404
|
fromPartial(object) {
|
|
6381
|
-
var _a, _b, _c, _d, _e;
|
|
6405
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6382
6406
|
const message = createBaseChannelCreatedEvent();
|
|
6383
6407
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6384
6408
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
6385
6409
|
message.creator_id = (_c = object.creator_id) != null ? _c : "";
|
|
6386
|
-
message.
|
|
6387
|
-
message.
|
|
6410
|
+
message.parrent_id = (_d = object.parrent_id) != null ? _d : "";
|
|
6411
|
+
message.channel_id = (_e = object.channel_id) != null ? _e : "";
|
|
6412
|
+
message.channel_label = (_f = object.channel_label) != null ? _f : "";
|
|
6413
|
+
message.channel_type = (_g = object.channel_type) != null ? _g : void 0;
|
|
6388
6414
|
return message;
|
|
6389
6415
|
}
|
|
6390
6416
|
};
|
|
6391
6417
|
function createBaseChannelDeletedEvent() {
|
|
6392
|
-
return { clan_id: "", category_id: "", channel_id: "", deletor: "" };
|
|
6418
|
+
return { clan_id: "", category_id: "", parrent_id: "", channel_id: "", deletor: "" };
|
|
6393
6419
|
}
|
|
6394
6420
|
var ChannelDeletedEvent = {
|
|
6395
6421
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -6399,11 +6425,14 @@ var ChannelDeletedEvent = {
|
|
|
6399
6425
|
if (message.category_id !== "") {
|
|
6400
6426
|
writer.uint32(18).string(message.category_id);
|
|
6401
6427
|
}
|
|
6428
|
+
if (message.parrent_id !== "") {
|
|
6429
|
+
writer.uint32(26).string(message.parrent_id);
|
|
6430
|
+
}
|
|
6402
6431
|
if (message.channel_id !== "") {
|
|
6403
|
-
writer.uint32(
|
|
6432
|
+
writer.uint32(34).string(message.channel_id);
|
|
6404
6433
|
}
|
|
6405
6434
|
if (message.deletor !== "") {
|
|
6406
|
-
writer.uint32(
|
|
6435
|
+
writer.uint32(42).string(message.deletor);
|
|
6407
6436
|
}
|
|
6408
6437
|
return writer;
|
|
6409
6438
|
},
|
|
@@ -6421,9 +6450,12 @@ var ChannelDeletedEvent = {
|
|
|
6421
6450
|
message.category_id = reader.string();
|
|
6422
6451
|
break;
|
|
6423
6452
|
case 3:
|
|
6424
|
-
message.
|
|
6453
|
+
message.parrent_id = reader.string();
|
|
6425
6454
|
break;
|
|
6426
6455
|
case 4:
|
|
6456
|
+
message.channel_id = reader.string();
|
|
6457
|
+
break;
|
|
6458
|
+
case 5:
|
|
6427
6459
|
message.deletor = reader.string();
|
|
6428
6460
|
break;
|
|
6429
6461
|
default:
|
|
@@ -6437,6 +6469,7 @@ var ChannelDeletedEvent = {
|
|
|
6437
6469
|
return {
|
|
6438
6470
|
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
6439
6471
|
category_id: isSet4(object.category_id) ? String(object.category_id) : "",
|
|
6472
|
+
parrent_id: isSet4(object.parrent_id) ? String(object.parrent_id) : "",
|
|
6440
6473
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6441
6474
|
deletor: isSet4(object.deletor) ? String(object.deletor) : ""
|
|
6442
6475
|
};
|
|
@@ -6445,6 +6478,7 @@ var ChannelDeletedEvent = {
|
|
|
6445
6478
|
const obj = {};
|
|
6446
6479
|
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
6447
6480
|
message.category_id !== void 0 && (obj.category_id = message.category_id);
|
|
6481
|
+
message.parrent_id !== void 0 && (obj.parrent_id = message.parrent_id);
|
|
6448
6482
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6449
6483
|
message.deletor !== void 0 && (obj.deletor = message.deletor);
|
|
6450
6484
|
return obj;
|
|
@@ -6453,12 +6487,13 @@ var ChannelDeletedEvent = {
|
|
|
6453
6487
|
return ChannelDeletedEvent.fromPartial(base != null ? base : {});
|
|
6454
6488
|
},
|
|
6455
6489
|
fromPartial(object) {
|
|
6456
|
-
var _a, _b, _c, _d;
|
|
6490
|
+
var _a, _b, _c, _d, _e;
|
|
6457
6491
|
const message = createBaseChannelDeletedEvent();
|
|
6458
6492
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6459
6493
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
6460
|
-
message.
|
|
6461
|
-
message.
|
|
6494
|
+
message.parrent_id = (_c = object.parrent_id) != null ? _c : "";
|
|
6495
|
+
message.channel_id = (_d = object.channel_id) != null ? _d : "";
|
|
6496
|
+
message.deletor = (_e = object.deletor) != null ? _e : "";
|
|
6462
6497
|
return message;
|
|
6463
6498
|
}
|
|
6464
6499
|
};
|
package/package.json
CHANGED
package/rtapi/realtime.ts
CHANGED
|
@@ -818,10 +818,14 @@ export interface ChannelCreatedEvent {
|
|
|
818
818
|
category_id: string;
|
|
819
819
|
/** creator */
|
|
820
820
|
creator_id: string;
|
|
821
|
+
/** parrent id */
|
|
822
|
+
parrent_id: string;
|
|
821
823
|
/** channel id */
|
|
822
824
|
channel_id: string;
|
|
823
825
|
/** channel label */
|
|
824
826
|
channel_label: string;
|
|
827
|
+
/** channel type */
|
|
828
|
+
channel_type: number | undefined;
|
|
825
829
|
}
|
|
826
830
|
|
|
827
831
|
export interface ChannelDeletedEvent {
|
|
@@ -829,6 +833,8 @@ export interface ChannelDeletedEvent {
|
|
|
829
833
|
clan_id: string;
|
|
830
834
|
/** category */
|
|
831
835
|
category_id: string;
|
|
836
|
+
/** parrent id */
|
|
837
|
+
parrent_id: string;
|
|
832
838
|
/** channel id */
|
|
833
839
|
channel_id: string;
|
|
834
840
|
/** deletor */
|
|
@@ -5383,7 +5389,15 @@ export const VoiceJoinedEvent = {
|
|
|
5383
5389
|
};
|
|
5384
5390
|
|
|
5385
5391
|
function createBaseChannelCreatedEvent(): ChannelCreatedEvent {
|
|
5386
|
-
return {
|
|
5392
|
+
return {
|
|
5393
|
+
clan_id: "",
|
|
5394
|
+
category_id: "",
|
|
5395
|
+
creator_id: "",
|
|
5396
|
+
parrent_id: "",
|
|
5397
|
+
channel_id: "",
|
|
5398
|
+
channel_label: "",
|
|
5399
|
+
channel_type: undefined,
|
|
5400
|
+
};
|
|
5387
5401
|
}
|
|
5388
5402
|
|
|
5389
5403
|
export const ChannelCreatedEvent = {
|
|
@@ -5397,11 +5411,17 @@ export const ChannelCreatedEvent = {
|
|
|
5397
5411
|
if (message.creator_id !== "") {
|
|
5398
5412
|
writer.uint32(26).string(message.creator_id);
|
|
5399
5413
|
}
|
|
5414
|
+
if (message.parrent_id !== "") {
|
|
5415
|
+
writer.uint32(34).string(message.parrent_id);
|
|
5416
|
+
}
|
|
5400
5417
|
if (message.channel_id !== "") {
|
|
5401
|
-
writer.uint32(
|
|
5418
|
+
writer.uint32(42).string(message.channel_id);
|
|
5402
5419
|
}
|
|
5403
5420
|
if (message.channel_label !== "") {
|
|
5404
|
-
writer.uint32(
|
|
5421
|
+
writer.uint32(50).string(message.channel_label);
|
|
5422
|
+
}
|
|
5423
|
+
if (message.channel_type !== undefined) {
|
|
5424
|
+
Int32Value.encode({ value: message.channel_type! }, writer.uint32(58).fork()).ldelim();
|
|
5405
5425
|
}
|
|
5406
5426
|
return writer;
|
|
5407
5427
|
},
|
|
@@ -5423,11 +5443,17 @@ export const ChannelCreatedEvent = {
|
|
|
5423
5443
|
message.creator_id = reader.string();
|
|
5424
5444
|
break;
|
|
5425
5445
|
case 4:
|
|
5426
|
-
message.
|
|
5446
|
+
message.parrent_id = reader.string();
|
|
5427
5447
|
break;
|
|
5428
5448
|
case 5:
|
|
5449
|
+
message.channel_id = reader.string();
|
|
5450
|
+
break;
|
|
5451
|
+
case 6:
|
|
5429
5452
|
message.channel_label = reader.string();
|
|
5430
5453
|
break;
|
|
5454
|
+
case 7:
|
|
5455
|
+
message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
|
|
5456
|
+
break;
|
|
5431
5457
|
default:
|
|
5432
5458
|
reader.skipType(tag & 7);
|
|
5433
5459
|
break;
|
|
@@ -5441,8 +5467,10 @@ export const ChannelCreatedEvent = {
|
|
|
5441
5467
|
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
5442
5468
|
category_id: isSet(object.category_id) ? String(object.category_id) : "",
|
|
5443
5469
|
creator_id: isSet(object.creator_id) ? String(object.creator_id) : "",
|
|
5470
|
+
parrent_id: isSet(object.parrent_id) ? String(object.parrent_id) : "",
|
|
5444
5471
|
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
5445
5472
|
channel_label: isSet(object.channel_label) ? String(object.channel_label) : "",
|
|
5473
|
+
channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
|
|
5446
5474
|
};
|
|
5447
5475
|
},
|
|
5448
5476
|
|
|
@@ -5451,8 +5479,10 @@ export const ChannelCreatedEvent = {
|
|
|
5451
5479
|
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
5452
5480
|
message.category_id !== undefined && (obj.category_id = message.category_id);
|
|
5453
5481
|
message.creator_id !== undefined && (obj.creator_id = message.creator_id);
|
|
5482
|
+
message.parrent_id !== undefined && (obj.parrent_id = message.parrent_id);
|
|
5454
5483
|
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
5455
5484
|
message.channel_label !== undefined && (obj.channel_label = message.channel_label);
|
|
5485
|
+
message.channel_type !== undefined && (obj.channel_type = message.channel_type);
|
|
5456
5486
|
return obj;
|
|
5457
5487
|
},
|
|
5458
5488
|
|
|
@@ -5465,14 +5495,16 @@ export const ChannelCreatedEvent = {
|
|
|
5465
5495
|
message.clan_id = object.clan_id ?? "";
|
|
5466
5496
|
message.category_id = object.category_id ?? "";
|
|
5467
5497
|
message.creator_id = object.creator_id ?? "";
|
|
5498
|
+
message.parrent_id = object.parrent_id ?? "";
|
|
5468
5499
|
message.channel_id = object.channel_id ?? "";
|
|
5469
5500
|
message.channel_label = object.channel_label ?? "";
|
|
5501
|
+
message.channel_type = object.channel_type ?? undefined;
|
|
5470
5502
|
return message;
|
|
5471
5503
|
},
|
|
5472
5504
|
};
|
|
5473
5505
|
|
|
5474
5506
|
function createBaseChannelDeletedEvent(): ChannelDeletedEvent {
|
|
5475
|
-
return { clan_id: "", category_id: "", channel_id: "", deletor: "" };
|
|
5507
|
+
return { clan_id: "", category_id: "", parrent_id: "", channel_id: "", deletor: "" };
|
|
5476
5508
|
}
|
|
5477
5509
|
|
|
5478
5510
|
export const ChannelDeletedEvent = {
|
|
@@ -5483,11 +5515,14 @@ export const ChannelDeletedEvent = {
|
|
|
5483
5515
|
if (message.category_id !== "") {
|
|
5484
5516
|
writer.uint32(18).string(message.category_id);
|
|
5485
5517
|
}
|
|
5518
|
+
if (message.parrent_id !== "") {
|
|
5519
|
+
writer.uint32(26).string(message.parrent_id);
|
|
5520
|
+
}
|
|
5486
5521
|
if (message.channel_id !== "") {
|
|
5487
|
-
writer.uint32(
|
|
5522
|
+
writer.uint32(34).string(message.channel_id);
|
|
5488
5523
|
}
|
|
5489
5524
|
if (message.deletor !== "") {
|
|
5490
|
-
writer.uint32(
|
|
5525
|
+
writer.uint32(42).string(message.deletor);
|
|
5491
5526
|
}
|
|
5492
5527
|
return writer;
|
|
5493
5528
|
},
|
|
@@ -5506,9 +5541,12 @@ export const ChannelDeletedEvent = {
|
|
|
5506
5541
|
message.category_id = reader.string();
|
|
5507
5542
|
break;
|
|
5508
5543
|
case 3:
|
|
5509
|
-
message.
|
|
5544
|
+
message.parrent_id = reader.string();
|
|
5510
5545
|
break;
|
|
5511
5546
|
case 4:
|
|
5547
|
+
message.channel_id = reader.string();
|
|
5548
|
+
break;
|
|
5549
|
+
case 5:
|
|
5512
5550
|
message.deletor = reader.string();
|
|
5513
5551
|
break;
|
|
5514
5552
|
default:
|
|
@@ -5523,6 +5561,7 @@ export const ChannelDeletedEvent = {
|
|
|
5523
5561
|
return {
|
|
5524
5562
|
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
5525
5563
|
category_id: isSet(object.category_id) ? String(object.category_id) : "",
|
|
5564
|
+
parrent_id: isSet(object.parrent_id) ? String(object.parrent_id) : "",
|
|
5526
5565
|
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
5527
5566
|
deletor: isSet(object.deletor) ? String(object.deletor) : "",
|
|
5528
5567
|
};
|
|
@@ -5532,6 +5571,7 @@ export const ChannelDeletedEvent = {
|
|
|
5532
5571
|
const obj: any = {};
|
|
5533
5572
|
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
5534
5573
|
message.category_id !== undefined && (obj.category_id = message.category_id);
|
|
5574
|
+
message.parrent_id !== undefined && (obj.parrent_id = message.parrent_id);
|
|
5535
5575
|
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
5536
5576
|
message.deletor !== undefined && (obj.deletor = message.deletor);
|
|
5537
5577
|
return obj;
|
|
@@ -5545,6 +5585,7 @@ export const ChannelDeletedEvent = {
|
|
|
5545
5585
|
const message = createBaseChannelDeletedEvent();
|
|
5546
5586
|
message.clan_id = object.clan_id ?? "";
|
|
5547
5587
|
message.category_id = object.category_id ?? "";
|
|
5588
|
+
message.parrent_id = object.parrent_id ?? "";
|
|
5548
5589
|
message.channel_id = object.channel_id ?? "";
|
|
5549
5590
|
message.deletor = object.deletor ?? "";
|
|
5550
5591
|
return message;
|