mezon-js-protobuf 1.6.85 → 1.6.86
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 +34 -34
- package/dist/mezon-js-protobuf/api/api.d.ts +23 -23
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +0 -178
- package/package.json +1 -1
- package/rtapi/realtime.ts +0 -530
package/api/api.ts
CHANGED
|
@@ -3773,7 +3773,7 @@ export interface UpdateOnboardingStepRequest {
|
|
|
3773
3773
|
}
|
|
3774
3774
|
|
|
3775
3775
|
/** A list of users belonging to a channel, along with their role. */
|
|
3776
|
-
export interface
|
|
3776
|
+
export interface SFUChannelUser {
|
|
3777
3777
|
/** user join id */
|
|
3778
3778
|
id: string;
|
|
3779
3779
|
/** user for a channel. */
|
|
@@ -3785,9 +3785,9 @@ export interface PTTChannelUser {
|
|
|
3785
3785
|
}
|
|
3786
3786
|
|
|
3787
3787
|
/** A list of users belonging to a channel, along with their role. */
|
|
3788
|
-
export interface
|
|
3788
|
+
export interface SFUChannelUserList {
|
|
3789
3789
|
/** list of ptt channel user */
|
|
3790
|
-
|
|
3790
|
+
sfu_channel_users: SFUChannelUser[];
|
|
3791
3791
|
}
|
|
3792
3792
|
|
|
3793
3793
|
export interface WalletLedger {
|
|
@@ -36447,12 +36447,12 @@ export const UpdateOnboardingStepRequest = {
|
|
|
36447
36447
|
},
|
|
36448
36448
|
};
|
|
36449
36449
|
|
|
36450
|
-
function
|
|
36450
|
+
function createBaseSFUChannelUser(): SFUChannelUser {
|
|
36451
36451
|
return { id: "", user_id: "", channel_id: "", participant: "" };
|
|
36452
36452
|
}
|
|
36453
36453
|
|
|
36454
|
-
export const
|
|
36455
|
-
encode(message:
|
|
36454
|
+
export const SFUChannelUser = {
|
|
36455
|
+
encode(message: SFUChannelUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36456
36456
|
if (message.id !== "") {
|
|
36457
36457
|
writer.uint32(10).string(message.id);
|
|
36458
36458
|
}
|
|
@@ -36468,10 +36468,10 @@ export const PTTChannelUser = {
|
|
|
36468
36468
|
return writer;
|
|
36469
36469
|
},
|
|
36470
36470
|
|
|
36471
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
36471
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SFUChannelUser {
|
|
36472
36472
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36473
36473
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36474
|
-
const message =
|
|
36474
|
+
const message = createBaseSFUChannelUser();
|
|
36475
36475
|
while (reader.pos < end) {
|
|
36476
36476
|
const tag = reader.uint32();
|
|
36477
36477
|
switch (tag >>> 3) {
|
|
@@ -36512,7 +36512,7 @@ export const PTTChannelUser = {
|
|
|
36512
36512
|
return message;
|
|
36513
36513
|
},
|
|
36514
36514
|
|
|
36515
|
-
fromJSON(object: any):
|
|
36515
|
+
fromJSON(object: any): SFUChannelUser {
|
|
36516
36516
|
return {
|
|
36517
36517
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
36518
36518
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
@@ -36521,7 +36521,7 @@ export const PTTChannelUser = {
|
|
|
36521
36521
|
};
|
|
36522
36522
|
},
|
|
36523
36523
|
|
|
36524
|
-
toJSON(message:
|
|
36524
|
+
toJSON(message: SFUChannelUser): unknown {
|
|
36525
36525
|
const obj: any = {};
|
|
36526
36526
|
if (message.id !== "") {
|
|
36527
36527
|
obj.id = message.id;
|
|
@@ -36538,11 +36538,11 @@ export const PTTChannelUser = {
|
|
|
36538
36538
|
return obj;
|
|
36539
36539
|
},
|
|
36540
36540
|
|
|
36541
|
-
create<I extends Exact<DeepPartial<
|
|
36542
|
-
return
|
|
36541
|
+
create<I extends Exact<DeepPartial<SFUChannelUser>, I>>(base?: I): SFUChannelUser {
|
|
36542
|
+
return SFUChannelUser.fromPartial(base ?? ({} as any));
|
|
36543
36543
|
},
|
|
36544
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
36545
|
-
const message =
|
|
36544
|
+
fromPartial<I extends Exact<DeepPartial<SFUChannelUser>, I>>(object: I): SFUChannelUser {
|
|
36545
|
+
const message = createBaseSFUChannelUser();
|
|
36546
36546
|
message.id = object.id ?? "";
|
|
36547
36547
|
message.user_id = object.user_id ?? "";
|
|
36548
36548
|
message.channel_id = object.channel_id ?? "";
|
|
@@ -36551,22 +36551,22 @@ export const PTTChannelUser = {
|
|
|
36551
36551
|
},
|
|
36552
36552
|
};
|
|
36553
36553
|
|
|
36554
|
-
function
|
|
36555
|
-
return {
|
|
36554
|
+
function createBaseSFUChannelUserList(): SFUChannelUserList {
|
|
36555
|
+
return { sfu_channel_users: [] };
|
|
36556
36556
|
}
|
|
36557
36557
|
|
|
36558
|
-
export const
|
|
36559
|
-
encode(message:
|
|
36560
|
-
for (const v of message.
|
|
36561
|
-
|
|
36558
|
+
export const SFUChannelUserList = {
|
|
36559
|
+
encode(message: SFUChannelUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36560
|
+
for (const v of message.sfu_channel_users) {
|
|
36561
|
+
SFUChannelUser.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
36562
36562
|
}
|
|
36563
36563
|
return writer;
|
|
36564
36564
|
},
|
|
36565
36565
|
|
|
36566
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
36566
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SFUChannelUserList {
|
|
36567
36567
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36568
36568
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36569
|
-
const message =
|
|
36569
|
+
const message = createBaseSFUChannelUserList();
|
|
36570
36570
|
while (reader.pos < end) {
|
|
36571
36571
|
const tag = reader.uint32();
|
|
36572
36572
|
switch (tag >>> 3) {
|
|
@@ -36575,7 +36575,7 @@ export const PTTChannelUserList = {
|
|
|
36575
36575
|
break;
|
|
36576
36576
|
}
|
|
36577
36577
|
|
|
36578
|
-
message.
|
|
36578
|
+
message.sfu_channel_users.push(SFUChannelUser.decode(reader, reader.uint32()));
|
|
36579
36579
|
continue;
|
|
36580
36580
|
}
|
|
36581
36581
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -36586,28 +36586,28 @@ export const PTTChannelUserList = {
|
|
|
36586
36586
|
return message;
|
|
36587
36587
|
},
|
|
36588
36588
|
|
|
36589
|
-
fromJSON(object: any):
|
|
36589
|
+
fromJSON(object: any): SFUChannelUserList {
|
|
36590
36590
|
return {
|
|
36591
|
-
|
|
36592
|
-
? object.
|
|
36591
|
+
sfu_channel_users: globalThis.Array.isArray(object?.sfu_channel_users)
|
|
36592
|
+
? object.sfu_channel_users.map((e: any) => SFUChannelUser.fromJSON(e))
|
|
36593
36593
|
: [],
|
|
36594
36594
|
};
|
|
36595
36595
|
},
|
|
36596
36596
|
|
|
36597
|
-
toJSON(message:
|
|
36597
|
+
toJSON(message: SFUChannelUserList): unknown {
|
|
36598
36598
|
const obj: any = {};
|
|
36599
|
-
if (message.
|
|
36600
|
-
obj.
|
|
36599
|
+
if (message.sfu_channel_users?.length) {
|
|
36600
|
+
obj.sfu_channel_users = message.sfu_channel_users.map((e) => SFUChannelUser.toJSON(e));
|
|
36601
36601
|
}
|
|
36602
36602
|
return obj;
|
|
36603
36603
|
},
|
|
36604
36604
|
|
|
36605
|
-
create<I extends Exact<DeepPartial<
|
|
36606
|
-
return
|
|
36605
|
+
create<I extends Exact<DeepPartial<SFUChannelUserList>, I>>(base?: I): SFUChannelUserList {
|
|
36606
|
+
return SFUChannelUserList.fromPartial(base ?? ({} as any));
|
|
36607
36607
|
},
|
|
36608
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
36609
|
-
const message =
|
|
36610
|
-
message.
|
|
36608
|
+
fromPartial<I extends Exact<DeepPartial<SFUChannelUserList>, I>>(object: I): SFUChannelUserList {
|
|
36609
|
+
const message = createBaseSFUChannelUserList();
|
|
36610
|
+
message.sfu_channel_users = object.sfu_channel_users?.map((e) => SFUChannelUser.fromPartial(e)) || [];
|
|
36611
36611
|
return message;
|
|
36612
36612
|
},
|
|
36613
36613
|
};
|
|
@@ -3035,7 +3035,7 @@ export interface UpdateOnboardingStepRequest {
|
|
|
3035
3035
|
onboarding_step: number | undefined;
|
|
3036
3036
|
}
|
|
3037
3037
|
/** A list of users belonging to a channel, along with their role. */
|
|
3038
|
-
export interface
|
|
3038
|
+
export interface SFUChannelUser {
|
|
3039
3039
|
/** user join id */
|
|
3040
3040
|
id: string;
|
|
3041
3041
|
/** user for a channel. */
|
|
@@ -3046,9 +3046,9 @@ export interface PTTChannelUser {
|
|
|
3046
3046
|
participant: string;
|
|
3047
3047
|
}
|
|
3048
3048
|
/** A list of users belonging to a channel, along with their role. */
|
|
3049
|
-
export interface
|
|
3049
|
+
export interface SFUChannelUserList {
|
|
3050
3050
|
/** list of ptt channel user */
|
|
3051
|
-
|
|
3051
|
+
sfu_channel_users: SFUChannelUser[];
|
|
3052
3052
|
}
|
|
3053
3053
|
export interface WalletLedger {
|
|
3054
3054
|
/** change set id */
|
|
@@ -21059,11 +21059,11 @@ export declare const UpdateOnboardingStepRequest: {
|
|
|
21059
21059
|
onboarding_step?: number | undefined;
|
|
21060
21060
|
} & { [K_1 in Exclude<keyof I_1, keyof UpdateOnboardingStepRequest>]: never; }>(object: I_1): UpdateOnboardingStepRequest;
|
|
21061
21061
|
};
|
|
21062
|
-
export declare const
|
|
21063
|
-
encode(message:
|
|
21064
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
21065
|
-
fromJSON(object: any):
|
|
21066
|
-
toJSON(message:
|
|
21062
|
+
export declare const SFUChannelUser: {
|
|
21063
|
+
encode(message: SFUChannelUser, writer?: _m0.Writer): _m0.Writer;
|
|
21064
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SFUChannelUser;
|
|
21065
|
+
fromJSON(object: any): SFUChannelUser;
|
|
21066
|
+
toJSON(message: SFUChannelUser): unknown;
|
|
21067
21067
|
create<I extends {
|
|
21068
21068
|
id?: string | undefined;
|
|
21069
21069
|
user_id?: string | undefined;
|
|
@@ -21074,7 +21074,7 @@ export declare const PTTChannelUser: {
|
|
|
21074
21074
|
user_id?: string | undefined;
|
|
21075
21075
|
channel_id?: string | undefined;
|
|
21076
21076
|
participant?: string | undefined;
|
|
21077
|
-
} & { [K in Exclude<keyof I, keyof
|
|
21077
|
+
} & { [K in Exclude<keyof I, keyof SFUChannelUser>]: never; }>(base?: I | undefined): SFUChannelUser;
|
|
21078
21078
|
fromPartial<I_1 extends {
|
|
21079
21079
|
id?: string | undefined;
|
|
21080
21080
|
user_id?: string | undefined;
|
|
@@ -21085,22 +21085,22 @@ export declare const PTTChannelUser: {
|
|
|
21085
21085
|
user_id?: string | undefined;
|
|
21086
21086
|
channel_id?: string | undefined;
|
|
21087
21087
|
participant?: string | undefined;
|
|
21088
|
-
} & { [K_1 in Exclude<keyof I_1, keyof
|
|
21088
|
+
} & { [K_1 in Exclude<keyof I_1, keyof SFUChannelUser>]: never; }>(object: I_1): SFUChannelUser;
|
|
21089
21089
|
};
|
|
21090
|
-
export declare const
|
|
21091
|
-
encode(message:
|
|
21092
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
21093
|
-
fromJSON(object: any):
|
|
21094
|
-
toJSON(message:
|
|
21090
|
+
export declare const SFUChannelUserList: {
|
|
21091
|
+
encode(message: SFUChannelUserList, writer?: _m0.Writer): _m0.Writer;
|
|
21092
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SFUChannelUserList;
|
|
21093
|
+
fromJSON(object: any): SFUChannelUserList;
|
|
21094
|
+
toJSON(message: SFUChannelUserList): unknown;
|
|
21095
21095
|
create<I extends {
|
|
21096
|
-
|
|
21096
|
+
sfu_channel_users?: {
|
|
21097
21097
|
id?: string | undefined;
|
|
21098
21098
|
user_id?: string | undefined;
|
|
21099
21099
|
channel_id?: string | undefined;
|
|
21100
21100
|
participant?: string | undefined;
|
|
21101
21101
|
}[] | undefined;
|
|
21102
21102
|
} & {
|
|
21103
|
-
|
|
21103
|
+
sfu_channel_users?: ({
|
|
21104
21104
|
id?: string | undefined;
|
|
21105
21105
|
user_id?: string | undefined;
|
|
21106
21106
|
channel_id?: string | undefined;
|
|
@@ -21115,22 +21115,22 @@ export declare const PTTChannelUserList: {
|
|
|
21115
21115
|
user_id?: string | undefined;
|
|
21116
21116
|
channel_id?: string | undefined;
|
|
21117
21117
|
participant?: string | undefined;
|
|
21118
|
-
} & { [K in Exclude<keyof I["
|
|
21118
|
+
} & { [K in Exclude<keyof I["sfu_channel_users"][number], keyof SFUChannelUser>]: never; })[] & { [K_1 in Exclude<keyof I["sfu_channel_users"], keyof {
|
|
21119
21119
|
id?: string | undefined;
|
|
21120
21120
|
user_id?: string | undefined;
|
|
21121
21121
|
channel_id?: string | undefined;
|
|
21122
21122
|
participant?: string | undefined;
|
|
21123
21123
|
}[]>]: never; }) | undefined;
|
|
21124
|
-
} & { [K_2 in Exclude<keyof I, "
|
|
21124
|
+
} & { [K_2 in Exclude<keyof I, "sfu_channel_users">]: never; }>(base?: I | undefined): SFUChannelUserList;
|
|
21125
21125
|
fromPartial<I_1 extends {
|
|
21126
|
-
|
|
21126
|
+
sfu_channel_users?: {
|
|
21127
21127
|
id?: string | undefined;
|
|
21128
21128
|
user_id?: string | undefined;
|
|
21129
21129
|
channel_id?: string | undefined;
|
|
21130
21130
|
participant?: string | undefined;
|
|
21131
21131
|
}[] | undefined;
|
|
21132
21132
|
} & {
|
|
21133
|
-
|
|
21133
|
+
sfu_channel_users?: ({
|
|
21134
21134
|
id?: string | undefined;
|
|
21135
21135
|
user_id?: string | undefined;
|
|
21136
21136
|
channel_id?: string | undefined;
|
|
@@ -21145,13 +21145,13 @@ export declare const PTTChannelUserList: {
|
|
|
21145
21145
|
user_id?: string | undefined;
|
|
21146
21146
|
channel_id?: string | undefined;
|
|
21147
21147
|
participant?: string | undefined;
|
|
21148
|
-
} & { [K_3 in Exclude<keyof I_1["
|
|
21148
|
+
} & { [K_3 in Exclude<keyof I_1["sfu_channel_users"][number], keyof SFUChannelUser>]: never; })[] & { [K_4 in Exclude<keyof I_1["sfu_channel_users"], keyof {
|
|
21149
21149
|
id?: string | undefined;
|
|
21150
21150
|
user_id?: string | undefined;
|
|
21151
21151
|
channel_id?: string | undefined;
|
|
21152
21152
|
participant?: string | undefined;
|
|
21153
21153
|
}[]>]: never; }) | undefined;
|
|
21154
|
-
} & { [K_5 in Exclude<keyof I_1, "
|
|
21154
|
+
} & { [K_5 in Exclude<keyof I_1, "sfu_channel_users">]: never; }>(object: I_1): SFUChannelUserList;
|
|
21155
21155
|
};
|
|
21156
21156
|
export declare const WalletLedger: {
|
|
21157
21157
|
encode(message: WalletLedger, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -946,28 +946,6 @@ export interface UnmuteEvent {
|
|
|
946
946
|
/** clan id */
|
|
947
947
|
clan_id: string;
|
|
948
948
|
}
|
|
949
|
-
export interface JoinPTTChannel {
|
|
950
|
-
/** channel id */
|
|
951
|
-
channel_id: string;
|
|
952
|
-
/** type offer, answer or candidate */
|
|
953
|
-
data_type: number;
|
|
954
|
-
/** offer */
|
|
955
|
-
json_data: string;
|
|
956
|
-
/** user id */
|
|
957
|
-
user_id: string;
|
|
958
|
-
/** clan id */
|
|
959
|
-
clan_id: string;
|
|
960
|
-
}
|
|
961
|
-
export interface TalkPTTChannel {
|
|
962
|
-
/** user id */
|
|
963
|
-
user_id: string;
|
|
964
|
-
/** clan id */
|
|
965
|
-
clan_id: string;
|
|
966
|
-
/** channel id */
|
|
967
|
-
channel_id: string;
|
|
968
|
-
/** is talk */
|
|
969
|
-
is_talk: boolean;
|
|
970
|
-
}
|
|
971
949
|
export interface ListActivity {
|
|
972
950
|
acts: UserActivity[];
|
|
973
951
|
}
|
|
@@ -979,34 +957,6 @@ export interface DropdownBoxSelected {
|
|
|
979
957
|
user_id: string;
|
|
980
958
|
values: string[];
|
|
981
959
|
}
|
|
982
|
-
/** PTT Joined event */
|
|
983
|
-
export interface PTTLeavedEvent {
|
|
984
|
-
/** id */
|
|
985
|
-
id: string;
|
|
986
|
-
/** The unique identifier of the chat clan. */
|
|
987
|
-
clan_id: string;
|
|
988
|
-
/** channel id */
|
|
989
|
-
channel_id: string;
|
|
990
|
-
/** user_id */
|
|
991
|
-
user_id: string;
|
|
992
|
-
}
|
|
993
|
-
/** PTT Joined event */
|
|
994
|
-
export interface PTTJoinedEvent {
|
|
995
|
-
/** The unique identifier of the chat clan. */
|
|
996
|
-
clan_id: string;
|
|
997
|
-
/** The clan_name */
|
|
998
|
-
clan_name: string;
|
|
999
|
-
/** id */
|
|
1000
|
-
id: string;
|
|
1001
|
-
/** ptt participant */
|
|
1002
|
-
participant: string;
|
|
1003
|
-
/** user id */
|
|
1004
|
-
user_id: string;
|
|
1005
|
-
/** channel label */
|
|
1006
|
-
channel_label: string;
|
|
1007
|
-
/** channel id */
|
|
1008
|
-
channel_id: string;
|
|
1009
|
-
}
|
|
1010
960
|
export interface SdTopicEvent {
|
|
1011
961
|
id: string;
|
|
1012
962
|
clan_id: string;
|
|
@@ -12066,66 +12016,6 @@ export declare const UnmuteEvent: {
|
|
|
12066
12016
|
clan_id?: string | undefined;
|
|
12067
12017
|
} & { [K_1 in Exclude<keyof I_1, keyof UnmuteEvent>]: never; }>(object: I_1): UnmuteEvent;
|
|
12068
12018
|
};
|
|
12069
|
-
export declare const JoinPTTChannel: {
|
|
12070
|
-
encode(message: JoinPTTChannel, writer?: _m0.Writer): _m0.Writer;
|
|
12071
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): JoinPTTChannel;
|
|
12072
|
-
fromJSON(object: any): JoinPTTChannel;
|
|
12073
|
-
toJSON(message: JoinPTTChannel): unknown;
|
|
12074
|
-
create<I extends {
|
|
12075
|
-
channel_id?: string | undefined;
|
|
12076
|
-
data_type?: number | undefined;
|
|
12077
|
-
json_data?: string | undefined;
|
|
12078
|
-
user_id?: string | undefined;
|
|
12079
|
-
clan_id?: string | undefined;
|
|
12080
|
-
} & {
|
|
12081
|
-
channel_id?: string | undefined;
|
|
12082
|
-
data_type?: number | undefined;
|
|
12083
|
-
json_data?: string | undefined;
|
|
12084
|
-
user_id?: string | undefined;
|
|
12085
|
-
clan_id?: string | undefined;
|
|
12086
|
-
} & { [K in Exclude<keyof I, keyof JoinPTTChannel>]: never; }>(base?: I | undefined): JoinPTTChannel;
|
|
12087
|
-
fromPartial<I_1 extends {
|
|
12088
|
-
channel_id?: string | undefined;
|
|
12089
|
-
data_type?: number | undefined;
|
|
12090
|
-
json_data?: string | undefined;
|
|
12091
|
-
user_id?: string | undefined;
|
|
12092
|
-
clan_id?: string | undefined;
|
|
12093
|
-
} & {
|
|
12094
|
-
channel_id?: string | undefined;
|
|
12095
|
-
data_type?: number | undefined;
|
|
12096
|
-
json_data?: string | undefined;
|
|
12097
|
-
user_id?: string | undefined;
|
|
12098
|
-
clan_id?: string | undefined;
|
|
12099
|
-
} & { [K_1 in Exclude<keyof I_1, keyof JoinPTTChannel>]: never; }>(object: I_1): JoinPTTChannel;
|
|
12100
|
-
};
|
|
12101
|
-
export declare const TalkPTTChannel: {
|
|
12102
|
-
encode(message: TalkPTTChannel, writer?: _m0.Writer): _m0.Writer;
|
|
12103
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): TalkPTTChannel;
|
|
12104
|
-
fromJSON(object: any): TalkPTTChannel;
|
|
12105
|
-
toJSON(message: TalkPTTChannel): unknown;
|
|
12106
|
-
create<I extends {
|
|
12107
|
-
user_id?: string | undefined;
|
|
12108
|
-
clan_id?: string | undefined;
|
|
12109
|
-
channel_id?: string | undefined;
|
|
12110
|
-
is_talk?: boolean | undefined;
|
|
12111
|
-
} & {
|
|
12112
|
-
user_id?: string | undefined;
|
|
12113
|
-
clan_id?: string | undefined;
|
|
12114
|
-
channel_id?: string | undefined;
|
|
12115
|
-
is_talk?: boolean | undefined;
|
|
12116
|
-
} & { [K in Exclude<keyof I, keyof TalkPTTChannel>]: never; }>(base?: I | undefined): TalkPTTChannel;
|
|
12117
|
-
fromPartial<I_1 extends {
|
|
12118
|
-
user_id?: string | undefined;
|
|
12119
|
-
clan_id?: string | undefined;
|
|
12120
|
-
channel_id?: string | undefined;
|
|
12121
|
-
is_talk?: boolean | undefined;
|
|
12122
|
-
} & {
|
|
12123
|
-
user_id?: string | undefined;
|
|
12124
|
-
clan_id?: string | undefined;
|
|
12125
|
-
channel_id?: string | undefined;
|
|
12126
|
-
is_talk?: boolean | undefined;
|
|
12127
|
-
} & { [K_1 in Exclude<keyof I_1, keyof TalkPTTChannel>]: never; }>(object: I_1): TalkPTTChannel;
|
|
12128
|
-
};
|
|
12129
12019
|
export declare const ListActivity: {
|
|
12130
12020
|
encode(message: ListActivity, writer?: _m0.Writer): _m0.Writer;
|
|
12131
12021
|
decode(input: _m0.Reader | Uint8Array, length?: number): ListActivity;
|
|
@@ -12268,74 +12158,6 @@ export declare const DropdownBoxSelected: {
|
|
|
12268
12158
|
values?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["values"], keyof string[]>]: never; }) | undefined;
|
|
12269
12159
|
} & { [K_3 in Exclude<keyof I_1, keyof DropdownBoxSelected>]: never; }>(object: I_1): DropdownBoxSelected;
|
|
12270
12160
|
};
|
|
12271
|
-
export declare const PTTLeavedEvent: {
|
|
12272
|
-
encode(message: PTTLeavedEvent, writer?: _m0.Writer): _m0.Writer;
|
|
12273
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PTTLeavedEvent;
|
|
12274
|
-
fromJSON(object: any): PTTLeavedEvent;
|
|
12275
|
-
toJSON(message: PTTLeavedEvent): unknown;
|
|
12276
|
-
create<I extends {
|
|
12277
|
-
id?: string | undefined;
|
|
12278
|
-
clan_id?: string | undefined;
|
|
12279
|
-
channel_id?: string | undefined;
|
|
12280
|
-
user_id?: string | undefined;
|
|
12281
|
-
} & {
|
|
12282
|
-
id?: string | undefined;
|
|
12283
|
-
clan_id?: string | undefined;
|
|
12284
|
-
channel_id?: string | undefined;
|
|
12285
|
-
user_id?: string | undefined;
|
|
12286
|
-
} & { [K in Exclude<keyof I, keyof PTTLeavedEvent>]: never; }>(base?: I | undefined): PTTLeavedEvent;
|
|
12287
|
-
fromPartial<I_1 extends {
|
|
12288
|
-
id?: string | undefined;
|
|
12289
|
-
clan_id?: string | undefined;
|
|
12290
|
-
channel_id?: string | undefined;
|
|
12291
|
-
user_id?: string | undefined;
|
|
12292
|
-
} & {
|
|
12293
|
-
id?: string | undefined;
|
|
12294
|
-
clan_id?: string | undefined;
|
|
12295
|
-
channel_id?: string | undefined;
|
|
12296
|
-
user_id?: string | undefined;
|
|
12297
|
-
} & { [K_1 in Exclude<keyof I_1, keyof PTTLeavedEvent>]: never; }>(object: I_1): PTTLeavedEvent;
|
|
12298
|
-
};
|
|
12299
|
-
export declare const PTTJoinedEvent: {
|
|
12300
|
-
encode(message: PTTJoinedEvent, writer?: _m0.Writer): _m0.Writer;
|
|
12301
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PTTJoinedEvent;
|
|
12302
|
-
fromJSON(object: any): PTTJoinedEvent;
|
|
12303
|
-
toJSON(message: PTTJoinedEvent): unknown;
|
|
12304
|
-
create<I extends {
|
|
12305
|
-
clan_id?: string | undefined;
|
|
12306
|
-
clan_name?: string | undefined;
|
|
12307
|
-
id?: string | undefined;
|
|
12308
|
-
participant?: string | undefined;
|
|
12309
|
-
user_id?: string | undefined;
|
|
12310
|
-
channel_label?: string | undefined;
|
|
12311
|
-
channel_id?: string | undefined;
|
|
12312
|
-
} & {
|
|
12313
|
-
clan_id?: string | undefined;
|
|
12314
|
-
clan_name?: string | undefined;
|
|
12315
|
-
id?: string | undefined;
|
|
12316
|
-
participant?: string | undefined;
|
|
12317
|
-
user_id?: string | undefined;
|
|
12318
|
-
channel_label?: string | undefined;
|
|
12319
|
-
channel_id?: string | undefined;
|
|
12320
|
-
} & { [K in Exclude<keyof I, keyof PTTJoinedEvent>]: never; }>(base?: I | undefined): PTTJoinedEvent;
|
|
12321
|
-
fromPartial<I_1 extends {
|
|
12322
|
-
clan_id?: string | undefined;
|
|
12323
|
-
clan_name?: string | undefined;
|
|
12324
|
-
id?: string | undefined;
|
|
12325
|
-
participant?: string | undefined;
|
|
12326
|
-
user_id?: string | undefined;
|
|
12327
|
-
channel_label?: string | undefined;
|
|
12328
|
-
channel_id?: string | undefined;
|
|
12329
|
-
} & {
|
|
12330
|
-
clan_id?: string | undefined;
|
|
12331
|
-
clan_name?: string | undefined;
|
|
12332
|
-
id?: string | undefined;
|
|
12333
|
-
participant?: string | undefined;
|
|
12334
|
-
user_id?: string | undefined;
|
|
12335
|
-
channel_label?: string | undefined;
|
|
12336
|
-
channel_id?: string | undefined;
|
|
12337
|
-
} & { [K_1 in Exclude<keyof I_1, keyof PTTJoinedEvent>]: never; }>(object: I_1): PTTJoinedEvent;
|
|
12338
|
-
};
|
|
12339
12161
|
export declare const SdTopicEvent: {
|
|
12340
12162
|
encode(message: SdTopicEvent, writer?: _m0.Writer): _m0.Writer;
|
|
12341
12163
|
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicEvent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.86",
|
|
4
4
|
"description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
|
|
5
5
|
"main": "dist/mezon-js-protobuf.cjs.js",
|
|
6
6
|
"module": "dist/mezon-js-protobuf.esm.mjs",
|
package/rtapi/realtime.ts
CHANGED
|
@@ -1259,30 +1259,6 @@ export interface UnmuteEvent {
|
|
|
1259
1259
|
clan_id: string;
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
|
-
export interface JoinPTTChannel {
|
|
1263
|
-
/** channel id */
|
|
1264
|
-
channel_id: string;
|
|
1265
|
-
/** type offer, answer or candidate */
|
|
1266
|
-
data_type: number;
|
|
1267
|
-
/** offer */
|
|
1268
|
-
json_data: string;
|
|
1269
|
-
/** user id */
|
|
1270
|
-
user_id: string;
|
|
1271
|
-
/** clan id */
|
|
1272
|
-
clan_id: string;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
export interface TalkPTTChannel {
|
|
1276
|
-
/** user id */
|
|
1277
|
-
user_id: string;
|
|
1278
|
-
/** clan id */
|
|
1279
|
-
clan_id: string;
|
|
1280
|
-
/** channel id */
|
|
1281
|
-
channel_id: string;
|
|
1282
|
-
/** is talk */
|
|
1283
|
-
is_talk: boolean;
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
1262
|
export interface ListActivity {
|
|
1287
1263
|
acts: UserActivity[];
|
|
1288
1264
|
}
|
|
@@ -1296,36 +1272,6 @@ export interface DropdownBoxSelected {
|
|
|
1296
1272
|
values: string[];
|
|
1297
1273
|
}
|
|
1298
1274
|
|
|
1299
|
-
/** PTT Joined event */
|
|
1300
|
-
export interface PTTLeavedEvent {
|
|
1301
|
-
/** id */
|
|
1302
|
-
id: string;
|
|
1303
|
-
/** The unique identifier of the chat clan. */
|
|
1304
|
-
clan_id: string;
|
|
1305
|
-
/** channel id */
|
|
1306
|
-
channel_id: string;
|
|
1307
|
-
/** user_id */
|
|
1308
|
-
user_id: string;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
/** PTT Joined event */
|
|
1312
|
-
export interface PTTJoinedEvent {
|
|
1313
|
-
/** The unique identifier of the chat clan. */
|
|
1314
|
-
clan_id: string;
|
|
1315
|
-
/** The clan_name */
|
|
1316
|
-
clan_name: string;
|
|
1317
|
-
/** id */
|
|
1318
|
-
id: string;
|
|
1319
|
-
/** ptt participant */
|
|
1320
|
-
participant: string;
|
|
1321
|
-
/** user id */
|
|
1322
|
-
user_id: string;
|
|
1323
|
-
/** channel label */
|
|
1324
|
-
channel_label: string;
|
|
1325
|
-
/** channel id */
|
|
1326
|
-
channel_id: string;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
1275
|
export interface SdTopicEvent {
|
|
1330
1276
|
id: string;
|
|
1331
1277
|
clan_id: string;
|
|
@@ -10848,229 +10794,6 @@ export const UnmuteEvent = {
|
|
|
10848
10794
|
},
|
|
10849
10795
|
};
|
|
10850
10796
|
|
|
10851
|
-
function createBaseJoinPTTChannel(): JoinPTTChannel {
|
|
10852
|
-
return { channel_id: "", data_type: 0, json_data: "", user_id: "", clan_id: "" };
|
|
10853
|
-
}
|
|
10854
|
-
|
|
10855
|
-
export const JoinPTTChannel = {
|
|
10856
|
-
encode(message: JoinPTTChannel, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
10857
|
-
if (message.channel_id !== "") {
|
|
10858
|
-
writer.uint32(10).string(message.channel_id);
|
|
10859
|
-
}
|
|
10860
|
-
if (message.data_type !== 0) {
|
|
10861
|
-
writer.uint32(16).int32(message.data_type);
|
|
10862
|
-
}
|
|
10863
|
-
if (message.json_data !== "") {
|
|
10864
|
-
writer.uint32(26).string(message.json_data);
|
|
10865
|
-
}
|
|
10866
|
-
if (message.user_id !== "") {
|
|
10867
|
-
writer.uint32(34).string(message.user_id);
|
|
10868
|
-
}
|
|
10869
|
-
if (message.clan_id !== "") {
|
|
10870
|
-
writer.uint32(42).string(message.clan_id);
|
|
10871
|
-
}
|
|
10872
|
-
return writer;
|
|
10873
|
-
},
|
|
10874
|
-
|
|
10875
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): JoinPTTChannel {
|
|
10876
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
10877
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10878
|
-
const message = createBaseJoinPTTChannel();
|
|
10879
|
-
while (reader.pos < end) {
|
|
10880
|
-
const tag = reader.uint32();
|
|
10881
|
-
switch (tag >>> 3) {
|
|
10882
|
-
case 1:
|
|
10883
|
-
if (tag !== 10) {
|
|
10884
|
-
break;
|
|
10885
|
-
}
|
|
10886
|
-
|
|
10887
|
-
message.channel_id = reader.string();
|
|
10888
|
-
continue;
|
|
10889
|
-
case 2:
|
|
10890
|
-
if (tag !== 16) {
|
|
10891
|
-
break;
|
|
10892
|
-
}
|
|
10893
|
-
|
|
10894
|
-
message.data_type = reader.int32();
|
|
10895
|
-
continue;
|
|
10896
|
-
case 3:
|
|
10897
|
-
if (tag !== 26) {
|
|
10898
|
-
break;
|
|
10899
|
-
}
|
|
10900
|
-
|
|
10901
|
-
message.json_data = reader.string();
|
|
10902
|
-
continue;
|
|
10903
|
-
case 4:
|
|
10904
|
-
if (tag !== 34) {
|
|
10905
|
-
break;
|
|
10906
|
-
}
|
|
10907
|
-
|
|
10908
|
-
message.user_id = reader.string();
|
|
10909
|
-
continue;
|
|
10910
|
-
case 5:
|
|
10911
|
-
if (tag !== 42) {
|
|
10912
|
-
break;
|
|
10913
|
-
}
|
|
10914
|
-
|
|
10915
|
-
message.clan_id = reader.string();
|
|
10916
|
-
continue;
|
|
10917
|
-
}
|
|
10918
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
10919
|
-
break;
|
|
10920
|
-
}
|
|
10921
|
-
reader.skipType(tag & 7);
|
|
10922
|
-
}
|
|
10923
|
-
return message;
|
|
10924
|
-
},
|
|
10925
|
-
|
|
10926
|
-
fromJSON(object: any): JoinPTTChannel {
|
|
10927
|
-
return {
|
|
10928
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
10929
|
-
data_type: isSet(object.data_type) ? globalThis.Number(object.data_type) : 0,
|
|
10930
|
-
json_data: isSet(object.json_data) ? globalThis.String(object.json_data) : "",
|
|
10931
|
-
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
10932
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
10933
|
-
};
|
|
10934
|
-
},
|
|
10935
|
-
|
|
10936
|
-
toJSON(message: JoinPTTChannel): unknown {
|
|
10937
|
-
const obj: any = {};
|
|
10938
|
-
if (message.channel_id !== "") {
|
|
10939
|
-
obj.channel_id = message.channel_id;
|
|
10940
|
-
}
|
|
10941
|
-
if (message.data_type !== 0) {
|
|
10942
|
-
obj.data_type = Math.round(message.data_type);
|
|
10943
|
-
}
|
|
10944
|
-
if (message.json_data !== "") {
|
|
10945
|
-
obj.json_data = message.json_data;
|
|
10946
|
-
}
|
|
10947
|
-
if (message.user_id !== "") {
|
|
10948
|
-
obj.user_id = message.user_id;
|
|
10949
|
-
}
|
|
10950
|
-
if (message.clan_id !== "") {
|
|
10951
|
-
obj.clan_id = message.clan_id;
|
|
10952
|
-
}
|
|
10953
|
-
return obj;
|
|
10954
|
-
},
|
|
10955
|
-
|
|
10956
|
-
create<I extends Exact<DeepPartial<JoinPTTChannel>, I>>(base?: I): JoinPTTChannel {
|
|
10957
|
-
return JoinPTTChannel.fromPartial(base ?? ({} as any));
|
|
10958
|
-
},
|
|
10959
|
-
fromPartial<I extends Exact<DeepPartial<JoinPTTChannel>, I>>(object: I): JoinPTTChannel {
|
|
10960
|
-
const message = createBaseJoinPTTChannel();
|
|
10961
|
-
message.channel_id = object.channel_id ?? "";
|
|
10962
|
-
message.data_type = object.data_type ?? 0;
|
|
10963
|
-
message.json_data = object.json_data ?? "";
|
|
10964
|
-
message.user_id = object.user_id ?? "";
|
|
10965
|
-
message.clan_id = object.clan_id ?? "";
|
|
10966
|
-
return message;
|
|
10967
|
-
},
|
|
10968
|
-
};
|
|
10969
|
-
|
|
10970
|
-
function createBaseTalkPTTChannel(): TalkPTTChannel {
|
|
10971
|
-
return { user_id: "", clan_id: "", channel_id: "", is_talk: false };
|
|
10972
|
-
}
|
|
10973
|
-
|
|
10974
|
-
export const TalkPTTChannel = {
|
|
10975
|
-
encode(message: TalkPTTChannel, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
10976
|
-
if (message.user_id !== "") {
|
|
10977
|
-
writer.uint32(10).string(message.user_id);
|
|
10978
|
-
}
|
|
10979
|
-
if (message.clan_id !== "") {
|
|
10980
|
-
writer.uint32(18).string(message.clan_id);
|
|
10981
|
-
}
|
|
10982
|
-
if (message.channel_id !== "") {
|
|
10983
|
-
writer.uint32(26).string(message.channel_id);
|
|
10984
|
-
}
|
|
10985
|
-
if (message.is_talk !== false) {
|
|
10986
|
-
writer.uint32(32).bool(message.is_talk);
|
|
10987
|
-
}
|
|
10988
|
-
return writer;
|
|
10989
|
-
},
|
|
10990
|
-
|
|
10991
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): TalkPTTChannel {
|
|
10992
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
10993
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10994
|
-
const message = createBaseTalkPTTChannel();
|
|
10995
|
-
while (reader.pos < end) {
|
|
10996
|
-
const tag = reader.uint32();
|
|
10997
|
-
switch (tag >>> 3) {
|
|
10998
|
-
case 1:
|
|
10999
|
-
if (tag !== 10) {
|
|
11000
|
-
break;
|
|
11001
|
-
}
|
|
11002
|
-
|
|
11003
|
-
message.user_id = reader.string();
|
|
11004
|
-
continue;
|
|
11005
|
-
case 2:
|
|
11006
|
-
if (tag !== 18) {
|
|
11007
|
-
break;
|
|
11008
|
-
}
|
|
11009
|
-
|
|
11010
|
-
message.clan_id = reader.string();
|
|
11011
|
-
continue;
|
|
11012
|
-
case 3:
|
|
11013
|
-
if (tag !== 26) {
|
|
11014
|
-
break;
|
|
11015
|
-
}
|
|
11016
|
-
|
|
11017
|
-
message.channel_id = reader.string();
|
|
11018
|
-
continue;
|
|
11019
|
-
case 4:
|
|
11020
|
-
if (tag !== 32) {
|
|
11021
|
-
break;
|
|
11022
|
-
}
|
|
11023
|
-
|
|
11024
|
-
message.is_talk = reader.bool();
|
|
11025
|
-
continue;
|
|
11026
|
-
}
|
|
11027
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
11028
|
-
break;
|
|
11029
|
-
}
|
|
11030
|
-
reader.skipType(tag & 7);
|
|
11031
|
-
}
|
|
11032
|
-
return message;
|
|
11033
|
-
},
|
|
11034
|
-
|
|
11035
|
-
fromJSON(object: any): TalkPTTChannel {
|
|
11036
|
-
return {
|
|
11037
|
-
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
11038
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
11039
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
11040
|
-
is_talk: isSet(object.is_talk) ? globalThis.Boolean(object.is_talk) : false,
|
|
11041
|
-
};
|
|
11042
|
-
},
|
|
11043
|
-
|
|
11044
|
-
toJSON(message: TalkPTTChannel): unknown {
|
|
11045
|
-
const obj: any = {};
|
|
11046
|
-
if (message.user_id !== "") {
|
|
11047
|
-
obj.user_id = message.user_id;
|
|
11048
|
-
}
|
|
11049
|
-
if (message.clan_id !== "") {
|
|
11050
|
-
obj.clan_id = message.clan_id;
|
|
11051
|
-
}
|
|
11052
|
-
if (message.channel_id !== "") {
|
|
11053
|
-
obj.channel_id = message.channel_id;
|
|
11054
|
-
}
|
|
11055
|
-
if (message.is_talk !== false) {
|
|
11056
|
-
obj.is_talk = message.is_talk;
|
|
11057
|
-
}
|
|
11058
|
-
return obj;
|
|
11059
|
-
},
|
|
11060
|
-
|
|
11061
|
-
create<I extends Exact<DeepPartial<TalkPTTChannel>, I>>(base?: I): TalkPTTChannel {
|
|
11062
|
-
return TalkPTTChannel.fromPartial(base ?? ({} as any));
|
|
11063
|
-
},
|
|
11064
|
-
fromPartial<I extends Exact<DeepPartial<TalkPTTChannel>, I>>(object: I): TalkPTTChannel {
|
|
11065
|
-
const message = createBaseTalkPTTChannel();
|
|
11066
|
-
message.user_id = object.user_id ?? "";
|
|
11067
|
-
message.clan_id = object.clan_id ?? "";
|
|
11068
|
-
message.channel_id = object.channel_id ?? "";
|
|
11069
|
-
message.is_talk = object.is_talk ?? false;
|
|
11070
|
-
return message;
|
|
11071
|
-
},
|
|
11072
|
-
};
|
|
11073
|
-
|
|
11074
10797
|
function createBaseListActivity(): ListActivity {
|
|
11075
10798
|
return { acts: [] };
|
|
11076
10799
|
}
|
|
@@ -11264,259 +10987,6 @@ export const DropdownBoxSelected = {
|
|
|
11264
10987
|
},
|
|
11265
10988
|
};
|
|
11266
10989
|
|
|
11267
|
-
function createBasePTTLeavedEvent(): PTTLeavedEvent {
|
|
11268
|
-
return { id: "", clan_id: "", channel_id: "", user_id: "" };
|
|
11269
|
-
}
|
|
11270
|
-
|
|
11271
|
-
export const PTTLeavedEvent = {
|
|
11272
|
-
encode(message: PTTLeavedEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
11273
|
-
if (message.id !== "") {
|
|
11274
|
-
writer.uint32(10).string(message.id);
|
|
11275
|
-
}
|
|
11276
|
-
if (message.clan_id !== "") {
|
|
11277
|
-
writer.uint32(18).string(message.clan_id);
|
|
11278
|
-
}
|
|
11279
|
-
if (message.channel_id !== "") {
|
|
11280
|
-
writer.uint32(26).string(message.channel_id);
|
|
11281
|
-
}
|
|
11282
|
-
if (message.user_id !== "") {
|
|
11283
|
-
writer.uint32(34).string(message.user_id);
|
|
11284
|
-
}
|
|
11285
|
-
return writer;
|
|
11286
|
-
},
|
|
11287
|
-
|
|
11288
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PTTLeavedEvent {
|
|
11289
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11290
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11291
|
-
const message = createBasePTTLeavedEvent();
|
|
11292
|
-
while (reader.pos < end) {
|
|
11293
|
-
const tag = reader.uint32();
|
|
11294
|
-
switch (tag >>> 3) {
|
|
11295
|
-
case 1:
|
|
11296
|
-
if (tag !== 10) {
|
|
11297
|
-
break;
|
|
11298
|
-
}
|
|
11299
|
-
|
|
11300
|
-
message.id = reader.string();
|
|
11301
|
-
continue;
|
|
11302
|
-
case 2:
|
|
11303
|
-
if (tag !== 18) {
|
|
11304
|
-
break;
|
|
11305
|
-
}
|
|
11306
|
-
|
|
11307
|
-
message.clan_id = reader.string();
|
|
11308
|
-
continue;
|
|
11309
|
-
case 3:
|
|
11310
|
-
if (tag !== 26) {
|
|
11311
|
-
break;
|
|
11312
|
-
}
|
|
11313
|
-
|
|
11314
|
-
message.channel_id = reader.string();
|
|
11315
|
-
continue;
|
|
11316
|
-
case 4:
|
|
11317
|
-
if (tag !== 34) {
|
|
11318
|
-
break;
|
|
11319
|
-
}
|
|
11320
|
-
|
|
11321
|
-
message.user_id = reader.string();
|
|
11322
|
-
continue;
|
|
11323
|
-
}
|
|
11324
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
11325
|
-
break;
|
|
11326
|
-
}
|
|
11327
|
-
reader.skipType(tag & 7);
|
|
11328
|
-
}
|
|
11329
|
-
return message;
|
|
11330
|
-
},
|
|
11331
|
-
|
|
11332
|
-
fromJSON(object: any): PTTLeavedEvent {
|
|
11333
|
-
return {
|
|
11334
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
11335
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
11336
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
11337
|
-
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
11338
|
-
};
|
|
11339
|
-
},
|
|
11340
|
-
|
|
11341
|
-
toJSON(message: PTTLeavedEvent): unknown {
|
|
11342
|
-
const obj: any = {};
|
|
11343
|
-
if (message.id !== "") {
|
|
11344
|
-
obj.id = message.id;
|
|
11345
|
-
}
|
|
11346
|
-
if (message.clan_id !== "") {
|
|
11347
|
-
obj.clan_id = message.clan_id;
|
|
11348
|
-
}
|
|
11349
|
-
if (message.channel_id !== "") {
|
|
11350
|
-
obj.channel_id = message.channel_id;
|
|
11351
|
-
}
|
|
11352
|
-
if (message.user_id !== "") {
|
|
11353
|
-
obj.user_id = message.user_id;
|
|
11354
|
-
}
|
|
11355
|
-
return obj;
|
|
11356
|
-
},
|
|
11357
|
-
|
|
11358
|
-
create<I extends Exact<DeepPartial<PTTLeavedEvent>, I>>(base?: I): PTTLeavedEvent {
|
|
11359
|
-
return PTTLeavedEvent.fromPartial(base ?? ({} as any));
|
|
11360
|
-
},
|
|
11361
|
-
fromPartial<I extends Exact<DeepPartial<PTTLeavedEvent>, I>>(object: I): PTTLeavedEvent {
|
|
11362
|
-
const message = createBasePTTLeavedEvent();
|
|
11363
|
-
message.id = object.id ?? "";
|
|
11364
|
-
message.clan_id = object.clan_id ?? "";
|
|
11365
|
-
message.channel_id = object.channel_id ?? "";
|
|
11366
|
-
message.user_id = object.user_id ?? "";
|
|
11367
|
-
return message;
|
|
11368
|
-
},
|
|
11369
|
-
};
|
|
11370
|
-
|
|
11371
|
-
function createBasePTTJoinedEvent(): PTTJoinedEvent {
|
|
11372
|
-
return { clan_id: "", clan_name: "", id: "", participant: "", user_id: "", channel_label: "", channel_id: "" };
|
|
11373
|
-
}
|
|
11374
|
-
|
|
11375
|
-
export const PTTJoinedEvent = {
|
|
11376
|
-
encode(message: PTTJoinedEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
11377
|
-
if (message.clan_id !== "") {
|
|
11378
|
-
writer.uint32(10).string(message.clan_id);
|
|
11379
|
-
}
|
|
11380
|
-
if (message.clan_name !== "") {
|
|
11381
|
-
writer.uint32(18).string(message.clan_name);
|
|
11382
|
-
}
|
|
11383
|
-
if (message.id !== "") {
|
|
11384
|
-
writer.uint32(26).string(message.id);
|
|
11385
|
-
}
|
|
11386
|
-
if (message.participant !== "") {
|
|
11387
|
-
writer.uint32(34).string(message.participant);
|
|
11388
|
-
}
|
|
11389
|
-
if (message.user_id !== "") {
|
|
11390
|
-
writer.uint32(42).string(message.user_id);
|
|
11391
|
-
}
|
|
11392
|
-
if (message.channel_label !== "") {
|
|
11393
|
-
writer.uint32(50).string(message.channel_label);
|
|
11394
|
-
}
|
|
11395
|
-
if (message.channel_id !== "") {
|
|
11396
|
-
writer.uint32(58).string(message.channel_id);
|
|
11397
|
-
}
|
|
11398
|
-
return writer;
|
|
11399
|
-
},
|
|
11400
|
-
|
|
11401
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PTTJoinedEvent {
|
|
11402
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11403
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11404
|
-
const message = createBasePTTJoinedEvent();
|
|
11405
|
-
while (reader.pos < end) {
|
|
11406
|
-
const tag = reader.uint32();
|
|
11407
|
-
switch (tag >>> 3) {
|
|
11408
|
-
case 1:
|
|
11409
|
-
if (tag !== 10) {
|
|
11410
|
-
break;
|
|
11411
|
-
}
|
|
11412
|
-
|
|
11413
|
-
message.clan_id = reader.string();
|
|
11414
|
-
continue;
|
|
11415
|
-
case 2:
|
|
11416
|
-
if (tag !== 18) {
|
|
11417
|
-
break;
|
|
11418
|
-
}
|
|
11419
|
-
|
|
11420
|
-
message.clan_name = reader.string();
|
|
11421
|
-
continue;
|
|
11422
|
-
case 3:
|
|
11423
|
-
if (tag !== 26) {
|
|
11424
|
-
break;
|
|
11425
|
-
}
|
|
11426
|
-
|
|
11427
|
-
message.id = reader.string();
|
|
11428
|
-
continue;
|
|
11429
|
-
case 4:
|
|
11430
|
-
if (tag !== 34) {
|
|
11431
|
-
break;
|
|
11432
|
-
}
|
|
11433
|
-
|
|
11434
|
-
message.participant = reader.string();
|
|
11435
|
-
continue;
|
|
11436
|
-
case 5:
|
|
11437
|
-
if (tag !== 42) {
|
|
11438
|
-
break;
|
|
11439
|
-
}
|
|
11440
|
-
|
|
11441
|
-
message.user_id = reader.string();
|
|
11442
|
-
continue;
|
|
11443
|
-
case 6:
|
|
11444
|
-
if (tag !== 50) {
|
|
11445
|
-
break;
|
|
11446
|
-
}
|
|
11447
|
-
|
|
11448
|
-
message.channel_label = reader.string();
|
|
11449
|
-
continue;
|
|
11450
|
-
case 7:
|
|
11451
|
-
if (tag !== 58) {
|
|
11452
|
-
break;
|
|
11453
|
-
}
|
|
11454
|
-
|
|
11455
|
-
message.channel_id = reader.string();
|
|
11456
|
-
continue;
|
|
11457
|
-
}
|
|
11458
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
11459
|
-
break;
|
|
11460
|
-
}
|
|
11461
|
-
reader.skipType(tag & 7);
|
|
11462
|
-
}
|
|
11463
|
-
return message;
|
|
11464
|
-
},
|
|
11465
|
-
|
|
11466
|
-
fromJSON(object: any): PTTJoinedEvent {
|
|
11467
|
-
return {
|
|
11468
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
11469
|
-
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
11470
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
11471
|
-
participant: isSet(object.participant) ? globalThis.String(object.participant) : "",
|
|
11472
|
-
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
11473
|
-
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
11474
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
11475
|
-
};
|
|
11476
|
-
},
|
|
11477
|
-
|
|
11478
|
-
toJSON(message: PTTJoinedEvent): unknown {
|
|
11479
|
-
const obj: any = {};
|
|
11480
|
-
if (message.clan_id !== "") {
|
|
11481
|
-
obj.clan_id = message.clan_id;
|
|
11482
|
-
}
|
|
11483
|
-
if (message.clan_name !== "") {
|
|
11484
|
-
obj.clan_name = message.clan_name;
|
|
11485
|
-
}
|
|
11486
|
-
if (message.id !== "") {
|
|
11487
|
-
obj.id = message.id;
|
|
11488
|
-
}
|
|
11489
|
-
if (message.participant !== "") {
|
|
11490
|
-
obj.participant = message.participant;
|
|
11491
|
-
}
|
|
11492
|
-
if (message.user_id !== "") {
|
|
11493
|
-
obj.user_id = message.user_id;
|
|
11494
|
-
}
|
|
11495
|
-
if (message.channel_label !== "") {
|
|
11496
|
-
obj.channel_label = message.channel_label;
|
|
11497
|
-
}
|
|
11498
|
-
if (message.channel_id !== "") {
|
|
11499
|
-
obj.channel_id = message.channel_id;
|
|
11500
|
-
}
|
|
11501
|
-
return obj;
|
|
11502
|
-
},
|
|
11503
|
-
|
|
11504
|
-
create<I extends Exact<DeepPartial<PTTJoinedEvent>, I>>(base?: I): PTTJoinedEvent {
|
|
11505
|
-
return PTTJoinedEvent.fromPartial(base ?? ({} as any));
|
|
11506
|
-
},
|
|
11507
|
-
fromPartial<I extends Exact<DeepPartial<PTTJoinedEvent>, I>>(object: I): PTTJoinedEvent {
|
|
11508
|
-
const message = createBasePTTJoinedEvent();
|
|
11509
|
-
message.clan_id = object.clan_id ?? "";
|
|
11510
|
-
message.clan_name = object.clan_name ?? "";
|
|
11511
|
-
message.id = object.id ?? "";
|
|
11512
|
-
message.participant = object.participant ?? "";
|
|
11513
|
-
message.user_id = object.user_id ?? "";
|
|
11514
|
-
message.channel_label = object.channel_label ?? "";
|
|
11515
|
-
message.channel_id = object.channel_id ?? "";
|
|
11516
|
-
return message;
|
|
11517
|
-
},
|
|
11518
|
-
};
|
|
11519
|
-
|
|
11520
10990
|
function createBaseSdTopicEvent(): SdTopicEvent {
|
|
11521
10991
|
return { id: "", clan_id: "", channel_id: "", message_id: "" };
|
|
11522
10992
|
}
|