mezon-js-protobuf 1.4.4 → 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;
|
|
@@ -616,6 +616,8 @@ export interface ChannelCreatedEvent {
|
|
|
616
616
|
channel_id: string;
|
|
617
617
|
/** channel label */
|
|
618
618
|
channel_label: string;
|
|
619
|
+
/** channel type */
|
|
620
|
+
channel_type: number | undefined;
|
|
619
621
|
}
|
|
620
622
|
export interface ChannelDeletedEvent {
|
|
621
623
|
/** clan id */
|
|
@@ -1098,6 +1100,7 @@ export declare const Envelope: {
|
|
|
1098
1100
|
parrent_id?: string | undefined;
|
|
1099
1101
|
channel_id?: string | undefined;
|
|
1100
1102
|
channel_label?: string | undefined;
|
|
1103
|
+
channel_type?: number | undefined;
|
|
1101
1104
|
} | undefined;
|
|
1102
1105
|
channel_deleted_event?: {
|
|
1103
1106
|
clan_id?: string | undefined;
|
|
@@ -2233,6 +2236,7 @@ export declare const Envelope: {
|
|
|
2233
2236
|
parrent_id?: string | undefined;
|
|
2234
2237
|
channel_id?: string | undefined;
|
|
2235
2238
|
channel_label?: string | undefined;
|
|
2239
|
+
channel_type?: number | undefined;
|
|
2236
2240
|
} & {
|
|
2237
2241
|
clan_id?: string | undefined;
|
|
2238
2242
|
category_id?: string | undefined;
|
|
@@ -2240,6 +2244,7 @@ export declare const Envelope: {
|
|
|
2240
2244
|
parrent_id?: string | undefined;
|
|
2241
2245
|
channel_id?: string | undefined;
|
|
2242
2246
|
channel_label?: string | undefined;
|
|
2247
|
+
channel_type?: number | undefined;
|
|
2243
2248
|
} & { [K_88 in Exclude<keyof I["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
2244
2249
|
channel_deleted_event?: ({
|
|
2245
2250
|
clan_id?: string | undefined;
|
|
@@ -2665,6 +2670,7 @@ export declare const Envelope: {
|
|
|
2665
2670
|
parrent_id?: string | undefined;
|
|
2666
2671
|
channel_id?: string | undefined;
|
|
2667
2672
|
channel_label?: string | undefined;
|
|
2673
|
+
channel_type?: number | undefined;
|
|
2668
2674
|
} | undefined;
|
|
2669
2675
|
channel_deleted_event?: {
|
|
2670
2676
|
clan_id?: string | undefined;
|
|
@@ -3800,6 +3806,7 @@ export declare const Envelope: {
|
|
|
3800
3806
|
parrent_id?: string | undefined;
|
|
3801
3807
|
channel_id?: string | undefined;
|
|
3802
3808
|
channel_label?: string | undefined;
|
|
3809
|
+
channel_type?: number | undefined;
|
|
3803
3810
|
} & {
|
|
3804
3811
|
clan_id?: string | undefined;
|
|
3805
3812
|
category_id?: string | undefined;
|
|
@@ -3807,6 +3814,7 @@ export declare const Envelope: {
|
|
|
3807
3814
|
parrent_id?: string | undefined;
|
|
3808
3815
|
channel_id?: string | undefined;
|
|
3809
3816
|
channel_label?: string | undefined;
|
|
3817
|
+
channel_type?: number | undefined;
|
|
3810
3818
|
} & { [K_179 in Exclude<keyof I_1["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
3811
3819
|
channel_deleted_event?: ({
|
|
3812
3820
|
clan_id?: string | undefined;
|
|
@@ -6261,6 +6269,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
6261
6269
|
parrent_id?: string | undefined;
|
|
6262
6270
|
channel_id?: string | undefined;
|
|
6263
6271
|
channel_label?: string | undefined;
|
|
6272
|
+
channel_type?: number | undefined;
|
|
6264
6273
|
} & {
|
|
6265
6274
|
clan_id?: string | undefined;
|
|
6266
6275
|
category_id?: string | undefined;
|
|
@@ -6268,6 +6277,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
6268
6277
|
parrent_id?: string | undefined;
|
|
6269
6278
|
channel_id?: string | undefined;
|
|
6270
6279
|
channel_label?: string | undefined;
|
|
6280
|
+
channel_type?: number | undefined;
|
|
6271
6281
|
} & { [K in Exclude<keyof I, keyof ChannelCreatedEvent>]: never; }>(base?: I | undefined): ChannelCreatedEvent;
|
|
6272
6282
|
fromPartial<I_1 extends {
|
|
6273
6283
|
clan_id?: string | undefined;
|
|
@@ -6276,6 +6286,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
6276
6286
|
parrent_id?: string | undefined;
|
|
6277
6287
|
channel_id?: string | undefined;
|
|
6278
6288
|
channel_label?: string | undefined;
|
|
6289
|
+
channel_type?: number | undefined;
|
|
6279
6290
|
} & {
|
|
6280
6291
|
clan_id?: string | undefined;
|
|
6281
6292
|
category_id?: string | undefined;
|
|
@@ -6283,6 +6294,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
6283
6294
|
parrent_id?: string | undefined;
|
|
6284
6295
|
channel_id?: string | undefined;
|
|
6285
6296
|
channel_label?: string | undefined;
|
|
6297
|
+
channel_type?: number | undefined;
|
|
6286
6298
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelCreatedEvent>]: never; }>(object: I_1): ChannelCreatedEvent;
|
|
6287
6299
|
};
|
|
6288
6300
|
export declare const 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()) {
|
|
@@ -6341,6 +6349,9 @@ var ChannelCreatedEvent = {
|
|
|
6341
6349
|
if (message.channel_label !== "") {
|
|
6342
6350
|
writer.uint32(50).string(message.channel_label);
|
|
6343
6351
|
}
|
|
6352
|
+
if (message.channel_type !== void 0) {
|
|
6353
|
+
Int32Value.encode({ value: message.channel_type }, writer.uint32(58).fork()).ldelim();
|
|
6354
|
+
}
|
|
6344
6355
|
return writer;
|
|
6345
6356
|
},
|
|
6346
6357
|
decode(input, length) {
|
|
@@ -6368,6 +6379,9 @@ var ChannelCreatedEvent = {
|
|
|
6368
6379
|
case 6:
|
|
6369
6380
|
message.channel_label = reader.string();
|
|
6370
6381
|
break;
|
|
6382
|
+
case 7:
|
|
6383
|
+
message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
|
|
6384
|
+
break;
|
|
6371
6385
|
default:
|
|
6372
6386
|
reader.skipType(tag & 7);
|
|
6373
6387
|
break;
|
|
@@ -6382,7 +6396,8 @@ var ChannelCreatedEvent = {
|
|
|
6382
6396
|
creator_id: isSet4(object.creator_id) ? String(object.creator_id) : "",
|
|
6383
6397
|
parrent_id: isSet4(object.parrent_id) ? String(object.parrent_id) : "",
|
|
6384
6398
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6385
|
-
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
|
|
6386
6401
|
};
|
|
6387
6402
|
},
|
|
6388
6403
|
toJSON(message) {
|
|
@@ -6393,13 +6408,14 @@ var ChannelCreatedEvent = {
|
|
|
6393
6408
|
message.parrent_id !== void 0 && (obj.parrent_id = message.parrent_id);
|
|
6394
6409
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6395
6410
|
message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
|
|
6411
|
+
message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
|
|
6396
6412
|
return obj;
|
|
6397
6413
|
},
|
|
6398
6414
|
create(base) {
|
|
6399
6415
|
return ChannelCreatedEvent.fromPartial(base != null ? base : {});
|
|
6400
6416
|
},
|
|
6401
6417
|
fromPartial(object) {
|
|
6402
|
-
var _a, _b, _c, _d, _e, _f;
|
|
6418
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6403
6419
|
const message = createBaseChannelCreatedEvent();
|
|
6404
6420
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6405
6421
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -6407,6 +6423,7 @@ var ChannelCreatedEvent = {
|
|
|
6407
6423
|
message.parrent_id = (_d = object.parrent_id) != null ? _d : "";
|
|
6408
6424
|
message.channel_id = (_e = object.channel_id) != null ? _e : "";
|
|
6409
6425
|
message.channel_label = (_f = object.channel_label) != null ? _f : "";
|
|
6426
|
+
message.channel_type = (_g = object.channel_type) != null ? _g : void 0;
|
|
6410
6427
|
return message;
|
|
6411
6428
|
}
|
|
6412
6429
|
};
|
|
@@ -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()) {
|
|
@@ -6328,6 +6336,9 @@ var ChannelCreatedEvent = {
|
|
|
6328
6336
|
if (message.channel_label !== "") {
|
|
6329
6337
|
writer.uint32(50).string(message.channel_label);
|
|
6330
6338
|
}
|
|
6339
|
+
if (message.channel_type !== void 0) {
|
|
6340
|
+
Int32Value.encode({ value: message.channel_type }, writer.uint32(58).fork()).ldelim();
|
|
6341
|
+
}
|
|
6331
6342
|
return writer;
|
|
6332
6343
|
},
|
|
6333
6344
|
decode(input, length) {
|
|
@@ -6355,6 +6366,9 @@ var ChannelCreatedEvent = {
|
|
|
6355
6366
|
case 6:
|
|
6356
6367
|
message.channel_label = reader.string();
|
|
6357
6368
|
break;
|
|
6369
|
+
case 7:
|
|
6370
|
+
message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
|
|
6371
|
+
break;
|
|
6358
6372
|
default:
|
|
6359
6373
|
reader.skipType(tag & 7);
|
|
6360
6374
|
break;
|
|
@@ -6369,7 +6383,8 @@ var ChannelCreatedEvent = {
|
|
|
6369
6383
|
creator_id: isSet4(object.creator_id) ? String(object.creator_id) : "",
|
|
6370
6384
|
parrent_id: isSet4(object.parrent_id) ? String(object.parrent_id) : "",
|
|
6371
6385
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6372
|
-
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
|
|
6373
6388
|
};
|
|
6374
6389
|
},
|
|
6375
6390
|
toJSON(message) {
|
|
@@ -6380,13 +6395,14 @@ var ChannelCreatedEvent = {
|
|
|
6380
6395
|
message.parrent_id !== void 0 && (obj.parrent_id = message.parrent_id);
|
|
6381
6396
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6382
6397
|
message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
|
|
6398
|
+
message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
|
|
6383
6399
|
return obj;
|
|
6384
6400
|
},
|
|
6385
6401
|
create(base) {
|
|
6386
6402
|
return ChannelCreatedEvent.fromPartial(base != null ? base : {});
|
|
6387
6403
|
},
|
|
6388
6404
|
fromPartial(object) {
|
|
6389
|
-
var _a, _b, _c, _d, _e, _f;
|
|
6405
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6390
6406
|
const message = createBaseChannelCreatedEvent();
|
|
6391
6407
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6392
6408
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -6394,6 +6410,7 @@ var ChannelCreatedEvent = {
|
|
|
6394
6410
|
message.parrent_id = (_d = object.parrent_id) != null ? _d : "";
|
|
6395
6411
|
message.channel_id = (_e = object.channel_id) != null ? _e : "";
|
|
6396
6412
|
message.channel_label = (_f = object.channel_label) != null ? _f : "";
|
|
6413
|
+
message.channel_type = (_g = object.channel_type) != null ? _g : void 0;
|
|
6397
6414
|
return message;
|
|
6398
6415
|
}
|
|
6399
6416
|
};
|
package/package.json
CHANGED
package/rtapi/realtime.ts
CHANGED
|
@@ -824,6 +824,8 @@ export interface ChannelCreatedEvent {
|
|
|
824
824
|
channel_id: string;
|
|
825
825
|
/** channel label */
|
|
826
826
|
channel_label: string;
|
|
827
|
+
/** channel type */
|
|
828
|
+
channel_type: number | undefined;
|
|
827
829
|
}
|
|
828
830
|
|
|
829
831
|
export interface ChannelDeletedEvent {
|
|
@@ -5387,7 +5389,15 @@ export const VoiceJoinedEvent = {
|
|
|
5387
5389
|
};
|
|
5388
5390
|
|
|
5389
5391
|
function createBaseChannelCreatedEvent(): ChannelCreatedEvent {
|
|
5390
|
-
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
|
+
};
|
|
5391
5401
|
}
|
|
5392
5402
|
|
|
5393
5403
|
export const ChannelCreatedEvent = {
|
|
@@ -5410,6 +5420,9 @@ export const ChannelCreatedEvent = {
|
|
|
5410
5420
|
if (message.channel_label !== "") {
|
|
5411
5421
|
writer.uint32(50).string(message.channel_label);
|
|
5412
5422
|
}
|
|
5423
|
+
if (message.channel_type !== undefined) {
|
|
5424
|
+
Int32Value.encode({ value: message.channel_type! }, writer.uint32(58).fork()).ldelim();
|
|
5425
|
+
}
|
|
5413
5426
|
return writer;
|
|
5414
5427
|
},
|
|
5415
5428
|
|
|
@@ -5438,6 +5451,9 @@ export const ChannelCreatedEvent = {
|
|
|
5438
5451
|
case 6:
|
|
5439
5452
|
message.channel_label = reader.string();
|
|
5440
5453
|
break;
|
|
5454
|
+
case 7:
|
|
5455
|
+
message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
|
|
5456
|
+
break;
|
|
5441
5457
|
default:
|
|
5442
5458
|
reader.skipType(tag & 7);
|
|
5443
5459
|
break;
|
|
@@ -5454,6 +5470,7 @@ export const ChannelCreatedEvent = {
|
|
|
5454
5470
|
parrent_id: isSet(object.parrent_id) ? String(object.parrent_id) : "",
|
|
5455
5471
|
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
5456
5472
|
channel_label: isSet(object.channel_label) ? String(object.channel_label) : "",
|
|
5473
|
+
channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
|
|
5457
5474
|
};
|
|
5458
5475
|
},
|
|
5459
5476
|
|
|
@@ -5465,6 +5482,7 @@ export const ChannelCreatedEvent = {
|
|
|
5465
5482
|
message.parrent_id !== undefined && (obj.parrent_id = message.parrent_id);
|
|
5466
5483
|
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
5467
5484
|
message.channel_label !== undefined && (obj.channel_label = message.channel_label);
|
|
5485
|
+
message.channel_type !== undefined && (obj.channel_type = message.channel_type);
|
|
5468
5486
|
return obj;
|
|
5469
5487
|
},
|
|
5470
5488
|
|
|
@@ -5480,6 +5498,7 @@ export const ChannelCreatedEvent = {
|
|
|
5480
5498
|
message.parrent_id = object.parrent_id ?? "";
|
|
5481
5499
|
message.channel_id = object.channel_id ?? "";
|
|
5482
5500
|
message.channel_label = object.channel_label ?? "";
|
|
5501
|
+
message.channel_type = object.channel_type ?? undefined;
|
|
5483
5502
|
return message;
|
|
5484
5503
|
},
|
|
5485
5504
|
};
|