mezon-js-protobuf 1.8.88 → 1.8.89
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 +117 -129
- package/dist/mezon-js/api/api.d.ts +235 -235
- package/dist/mezon-js/utils.d.ts +1 -1
- package/dist/mezon-js-protobuf/api/api.d.ts +235 -235
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +479 -479
- package/dist/mezon-js-protobuf.cjs.js +288 -210
- package/dist/mezon-js-protobuf.esm.mjs +288 -210
- package/package.json +1 -1
- package/rtapi/realtime.ts +304 -181
package/rtapi/realtime.ts
CHANGED
|
@@ -1049,13 +1049,13 @@ export interface MessageTypingEvent {
|
|
|
1049
1049
|
/** Voice Joined event */
|
|
1050
1050
|
export interface VoiceLeavedEvent {
|
|
1051
1051
|
/** id voice */
|
|
1052
|
-
id:
|
|
1052
|
+
id: string;
|
|
1053
1053
|
/** The unique identifier of the chat clan. */
|
|
1054
1054
|
clan_id: bigint;
|
|
1055
1055
|
/** voice channel name */
|
|
1056
|
-
voice_channel_id:
|
|
1056
|
+
voice_channel_id: bigint;
|
|
1057
1057
|
/** voice user_id */
|
|
1058
|
-
voice_user_id:
|
|
1058
|
+
voice_user_id: bigint;
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
1061
|
/** Voice Joined event */
|
|
@@ -1065,7 +1065,7 @@ export interface VoiceJoinedEvent {
|
|
|
1065
1065
|
/** The channel name */
|
|
1066
1066
|
clan_name: string;
|
|
1067
1067
|
/** id voice */
|
|
1068
|
-
id:
|
|
1068
|
+
id: string;
|
|
1069
1069
|
/** voice participant */
|
|
1070
1070
|
participant: string;
|
|
1071
1071
|
/** user id */
|
|
@@ -1073,7 +1073,7 @@ export interface VoiceJoinedEvent {
|
|
|
1073
1073
|
/** voice channel label */
|
|
1074
1074
|
voice_channel_label: string;
|
|
1075
1075
|
/** voice channel id */
|
|
1076
|
-
voice_channel_id:
|
|
1076
|
+
voice_channel_id: bigint;
|
|
1077
1077
|
/** last screenshot */
|
|
1078
1078
|
last_screenshot: string;
|
|
1079
1079
|
}
|
|
@@ -1081,11 +1081,11 @@ export interface VoiceJoinedEvent {
|
|
|
1081
1081
|
/** Voice start event */
|
|
1082
1082
|
export interface VoiceStartedEvent {
|
|
1083
1083
|
/** id voice */
|
|
1084
|
-
id:
|
|
1084
|
+
id: string;
|
|
1085
1085
|
/** The unique identifier of the chat clan. */
|
|
1086
1086
|
clan_id: bigint;
|
|
1087
1087
|
/** voice channel name */
|
|
1088
|
-
voice_channel_id:
|
|
1088
|
+
voice_channel_id: bigint;
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
1091
|
/** Voice start event */
|
|
@@ -1125,7 +1125,7 @@ export interface StreamingJoinedEvent {
|
|
|
1125
1125
|
/** streaming channel label */
|
|
1126
1126
|
streaming_channel_label: string;
|
|
1127
1127
|
/** streaming channel id */
|
|
1128
|
-
streaming_channel_id:
|
|
1128
|
+
streaming_channel_id: bigint;
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
1131
|
/** Streaming start event */
|
|
@@ -1192,10 +1192,10 @@ export interface RoleEvent {
|
|
|
1192
1192
|
role: Role | undefined;
|
|
1193
1193
|
status: number;
|
|
1194
1194
|
user_id: bigint;
|
|
1195
|
-
user_add_ids:
|
|
1196
|
-
user_remove_ids:
|
|
1197
|
-
active_permission_ids:
|
|
1198
|
-
remove_permission_ids:
|
|
1195
|
+
user_add_ids: bigint[];
|
|
1196
|
+
user_remove_ids: bigint[];
|
|
1197
|
+
active_permission_ids: bigint[];
|
|
1198
|
+
remove_permission_ids: bigint[];
|
|
1199
1199
|
}
|
|
1200
1200
|
|
|
1201
1201
|
export interface ChannelDeletedEvent {
|
|
@@ -1215,7 +1215,7 @@ export interface ClanDeletedEvent {
|
|
|
1215
1215
|
/** clan id */
|
|
1216
1216
|
clan_id: bigint;
|
|
1217
1217
|
/** deletor */
|
|
1218
|
-
deletor:
|
|
1218
|
+
deletor: bigint;
|
|
1219
1219
|
}
|
|
1220
1220
|
|
|
1221
1221
|
export interface StickerCreateEvent {
|
|
@@ -1440,7 +1440,7 @@ export interface ClanUpdatedEvent {
|
|
|
1440
1440
|
/** is onboarding */
|
|
1441
1441
|
is_onboarding: boolean;
|
|
1442
1442
|
/** welcome channel id */
|
|
1443
|
-
welcome_channel_id:
|
|
1443
|
+
welcome_channel_id: bigint;
|
|
1444
1444
|
/** onboarding_banner. */
|
|
1445
1445
|
onboarding_banner: string;
|
|
1446
1446
|
/** community banner */
|
|
@@ -1509,7 +1509,7 @@ export interface UserProfileRedis {
|
|
|
1509
1509
|
/** FCM token */
|
|
1510
1510
|
fcm_tokens: FCMTokens[];
|
|
1511
1511
|
/** clans */
|
|
1512
|
-
joined_clans:
|
|
1512
|
+
joined_clans: bigint[];
|
|
1513
1513
|
/** app token */
|
|
1514
1514
|
app_token: string;
|
|
1515
1515
|
/** create time */
|
|
@@ -1753,8 +1753,8 @@ export interface MeetParticipantEvent {
|
|
|
1753
1753
|
|
|
1754
1754
|
export interface TransferOwnershipEvent {
|
|
1755
1755
|
clan_id: bigint;
|
|
1756
|
-
prev_owner:
|
|
1757
|
-
curr_owner:
|
|
1756
|
+
prev_owner: bigint;
|
|
1757
|
+
curr_owner: bigint;
|
|
1758
1758
|
}
|
|
1759
1759
|
|
|
1760
1760
|
export interface ActiveArchivedThread {
|
|
@@ -1772,8 +1772,8 @@ export interface FcmDataPayload {
|
|
|
1772
1772
|
receiver_id: bigint;
|
|
1773
1773
|
title: string;
|
|
1774
1774
|
body: Uint8Array;
|
|
1775
|
-
user_role_ids:
|
|
1776
|
-
user_sent_ids:
|
|
1775
|
+
user_role_ids: bigint[];
|
|
1776
|
+
user_sent_ids: bigint[];
|
|
1777
1777
|
priority: number;
|
|
1778
1778
|
message: ChannelMessage | undefined;
|
|
1779
1779
|
is_e2ee: boolean;
|
|
@@ -8744,16 +8744,13 @@ export const MessageTypingEvent = {
|
|
|
8744
8744
|
};
|
|
8745
8745
|
|
|
8746
8746
|
function createBaseVoiceLeavedEvent(): VoiceLeavedEvent {
|
|
8747
|
-
return { id:
|
|
8747
|
+
return { id: "", clan_id: 0n, voice_channel_id: 0n, voice_user_id: 0n };
|
|
8748
8748
|
}
|
|
8749
8749
|
|
|
8750
8750
|
export const VoiceLeavedEvent = {
|
|
8751
8751
|
encode(message: VoiceLeavedEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
8752
|
-
if (message.id !==
|
|
8753
|
-
|
|
8754
|
-
throw new globalThis.Error("value provided for field message.id of type int64 too large");
|
|
8755
|
-
}
|
|
8756
|
-
writer.uint32(8).int64(message.id.toString());
|
|
8752
|
+
if (message.id !== "") {
|
|
8753
|
+
writer.uint32(10).string(message.id);
|
|
8757
8754
|
}
|
|
8758
8755
|
if (message.clan_id !== 0n) {
|
|
8759
8756
|
if (BigInt.asIntN(64, message.clan_id) !== message.clan_id) {
|
|
@@ -8761,11 +8758,17 @@ export const VoiceLeavedEvent = {
|
|
|
8761
8758
|
}
|
|
8762
8759
|
writer.uint32(16).int64(message.clan_id.toString());
|
|
8763
8760
|
}
|
|
8764
|
-
if (message.voice_channel_id !==
|
|
8765
|
-
|
|
8761
|
+
if (message.voice_channel_id !== 0n) {
|
|
8762
|
+
if (BigInt.asIntN(64, message.voice_channel_id) !== message.voice_channel_id) {
|
|
8763
|
+
throw new globalThis.Error("value provided for field message.voice_channel_id of type int64 too large");
|
|
8764
|
+
}
|
|
8765
|
+
writer.uint32(24).int64(message.voice_channel_id.toString());
|
|
8766
8766
|
}
|
|
8767
|
-
if (message.voice_user_id !==
|
|
8768
|
-
|
|
8767
|
+
if (message.voice_user_id !== 0n) {
|
|
8768
|
+
if (BigInt.asIntN(64, message.voice_user_id) !== message.voice_user_id) {
|
|
8769
|
+
throw new globalThis.Error("value provided for field message.voice_user_id of type int64 too large");
|
|
8770
|
+
}
|
|
8771
|
+
writer.uint32(32).int64(message.voice_user_id.toString());
|
|
8769
8772
|
}
|
|
8770
8773
|
return writer;
|
|
8771
8774
|
},
|
|
@@ -8778,11 +8781,11 @@ export const VoiceLeavedEvent = {
|
|
|
8778
8781
|
const tag = reader.uint32();
|
|
8779
8782
|
switch (tag >>> 3) {
|
|
8780
8783
|
case 1:
|
|
8781
|
-
if (tag !==
|
|
8784
|
+
if (tag !== 10) {
|
|
8782
8785
|
break;
|
|
8783
8786
|
}
|
|
8784
8787
|
|
|
8785
|
-
message.id =
|
|
8788
|
+
message.id = reader.string();
|
|
8786
8789
|
continue;
|
|
8787
8790
|
case 2:
|
|
8788
8791
|
if (tag !== 16) {
|
|
@@ -8792,18 +8795,18 @@ export const VoiceLeavedEvent = {
|
|
|
8792
8795
|
message.clan_id = longToBigint(reader.int64() as Long);
|
|
8793
8796
|
continue;
|
|
8794
8797
|
case 3:
|
|
8795
|
-
if (tag !==
|
|
8798
|
+
if (tag !== 24) {
|
|
8796
8799
|
break;
|
|
8797
8800
|
}
|
|
8798
8801
|
|
|
8799
|
-
message.voice_channel_id = reader.
|
|
8802
|
+
message.voice_channel_id = longToBigint(reader.int64() as Long);
|
|
8800
8803
|
continue;
|
|
8801
8804
|
case 4:
|
|
8802
|
-
if (tag !==
|
|
8805
|
+
if (tag !== 32) {
|
|
8803
8806
|
break;
|
|
8804
8807
|
}
|
|
8805
8808
|
|
|
8806
|
-
message.voice_user_id = reader.
|
|
8809
|
+
message.voice_user_id = longToBigint(reader.int64() as Long);
|
|
8807
8810
|
continue;
|
|
8808
8811
|
}
|
|
8809
8812
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -8816,26 +8819,26 @@ export const VoiceLeavedEvent = {
|
|
|
8816
8819
|
|
|
8817
8820
|
fromJSON(object: any): VoiceLeavedEvent {
|
|
8818
8821
|
return {
|
|
8819
|
-
id: isSet(object.id) ?
|
|
8822
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
8820
8823
|
clan_id: isSet(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
8821
|
-
voice_channel_id: isSet(object.voice_channel_id) ?
|
|
8822
|
-
voice_user_id: isSet(object.voice_user_id) ?
|
|
8824
|
+
voice_channel_id: isSet(object.voice_channel_id) ? BigInt(object.voice_channel_id) : 0n,
|
|
8825
|
+
voice_user_id: isSet(object.voice_user_id) ? BigInt(object.voice_user_id) : 0n,
|
|
8823
8826
|
};
|
|
8824
8827
|
},
|
|
8825
8828
|
|
|
8826
8829
|
toJSON(message: VoiceLeavedEvent): unknown {
|
|
8827
8830
|
const obj: any = {};
|
|
8828
|
-
if (message.id !==
|
|
8829
|
-
obj.id = message.id
|
|
8831
|
+
if (message.id !== "") {
|
|
8832
|
+
obj.id = message.id;
|
|
8830
8833
|
}
|
|
8831
8834
|
if (message.clan_id !== 0n) {
|
|
8832
8835
|
obj.clan_id = message.clan_id.toString();
|
|
8833
8836
|
}
|
|
8834
|
-
if (message.voice_channel_id !==
|
|
8835
|
-
obj.voice_channel_id = message.voice_channel_id;
|
|
8837
|
+
if (message.voice_channel_id !== 0n) {
|
|
8838
|
+
obj.voice_channel_id = message.voice_channel_id.toString();
|
|
8836
8839
|
}
|
|
8837
|
-
if (message.voice_user_id !==
|
|
8838
|
-
obj.voice_user_id = message.voice_user_id;
|
|
8840
|
+
if (message.voice_user_id !== 0n) {
|
|
8841
|
+
obj.voice_user_id = message.voice_user_id.toString();
|
|
8839
8842
|
}
|
|
8840
8843
|
return obj;
|
|
8841
8844
|
},
|
|
@@ -8845,10 +8848,10 @@ export const VoiceLeavedEvent = {
|
|
|
8845
8848
|
},
|
|
8846
8849
|
fromPartial<I extends Exact<DeepPartial<VoiceLeavedEvent>, I>>(object: I): VoiceLeavedEvent {
|
|
8847
8850
|
const message = createBaseVoiceLeavedEvent();
|
|
8848
|
-
message.id = object.id ??
|
|
8851
|
+
message.id = object.id ?? "";
|
|
8849
8852
|
message.clan_id = object.clan_id ?? 0n;
|
|
8850
|
-
message.voice_channel_id = object.voice_channel_id ??
|
|
8851
|
-
message.voice_user_id = object.voice_user_id ??
|
|
8853
|
+
message.voice_channel_id = object.voice_channel_id ?? 0n;
|
|
8854
|
+
message.voice_user_id = object.voice_user_id ?? 0n;
|
|
8852
8855
|
return message;
|
|
8853
8856
|
},
|
|
8854
8857
|
};
|
|
@@ -8857,11 +8860,11 @@ function createBaseVoiceJoinedEvent(): VoiceJoinedEvent {
|
|
|
8857
8860
|
return {
|
|
8858
8861
|
clan_id: 0n,
|
|
8859
8862
|
clan_name: "",
|
|
8860
|
-
id:
|
|
8863
|
+
id: "",
|
|
8861
8864
|
participant: "",
|
|
8862
8865
|
user_id: 0n,
|
|
8863
8866
|
voice_channel_label: "",
|
|
8864
|
-
voice_channel_id:
|
|
8867
|
+
voice_channel_id: 0n,
|
|
8865
8868
|
last_screenshot: "",
|
|
8866
8869
|
};
|
|
8867
8870
|
}
|
|
@@ -8877,11 +8880,8 @@ export const VoiceJoinedEvent = {
|
|
|
8877
8880
|
if (message.clan_name !== "") {
|
|
8878
8881
|
writer.uint32(18).string(message.clan_name);
|
|
8879
8882
|
}
|
|
8880
|
-
if (message.id !==
|
|
8881
|
-
|
|
8882
|
-
throw new globalThis.Error("value provided for field message.id of type int64 too large");
|
|
8883
|
-
}
|
|
8884
|
-
writer.uint32(24).int64(message.id.toString());
|
|
8883
|
+
if (message.id !== "") {
|
|
8884
|
+
writer.uint32(26).string(message.id);
|
|
8885
8885
|
}
|
|
8886
8886
|
if (message.participant !== "") {
|
|
8887
8887
|
writer.uint32(34).string(message.participant);
|
|
@@ -8895,8 +8895,11 @@ export const VoiceJoinedEvent = {
|
|
|
8895
8895
|
if (message.voice_channel_label !== "") {
|
|
8896
8896
|
writer.uint32(50).string(message.voice_channel_label);
|
|
8897
8897
|
}
|
|
8898
|
-
if (message.voice_channel_id !==
|
|
8899
|
-
|
|
8898
|
+
if (message.voice_channel_id !== 0n) {
|
|
8899
|
+
if (BigInt.asIntN(64, message.voice_channel_id) !== message.voice_channel_id) {
|
|
8900
|
+
throw new globalThis.Error("value provided for field message.voice_channel_id of type int64 too large");
|
|
8901
|
+
}
|
|
8902
|
+
writer.uint32(56).int64(message.voice_channel_id.toString());
|
|
8900
8903
|
}
|
|
8901
8904
|
if (message.last_screenshot !== "") {
|
|
8902
8905
|
writer.uint32(66).string(message.last_screenshot);
|
|
@@ -8926,11 +8929,11 @@ export const VoiceJoinedEvent = {
|
|
|
8926
8929
|
message.clan_name = reader.string();
|
|
8927
8930
|
continue;
|
|
8928
8931
|
case 3:
|
|
8929
|
-
if (tag !==
|
|
8932
|
+
if (tag !== 26) {
|
|
8930
8933
|
break;
|
|
8931
8934
|
}
|
|
8932
8935
|
|
|
8933
|
-
message.id =
|
|
8936
|
+
message.id = reader.string();
|
|
8934
8937
|
continue;
|
|
8935
8938
|
case 4:
|
|
8936
8939
|
if (tag !== 34) {
|
|
@@ -8954,11 +8957,11 @@ export const VoiceJoinedEvent = {
|
|
|
8954
8957
|
message.voice_channel_label = reader.string();
|
|
8955
8958
|
continue;
|
|
8956
8959
|
case 7:
|
|
8957
|
-
if (tag !==
|
|
8960
|
+
if (tag !== 56) {
|
|
8958
8961
|
break;
|
|
8959
8962
|
}
|
|
8960
8963
|
|
|
8961
|
-
message.voice_channel_id = reader.
|
|
8964
|
+
message.voice_channel_id = longToBigint(reader.int64() as Long);
|
|
8962
8965
|
continue;
|
|
8963
8966
|
case 8:
|
|
8964
8967
|
if (tag !== 66) {
|
|
@@ -8980,11 +8983,11 @@ export const VoiceJoinedEvent = {
|
|
|
8980
8983
|
return {
|
|
8981
8984
|
clan_id: isSet(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
8982
8985
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
8983
|
-
id: isSet(object.id) ?
|
|
8986
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
8984
8987
|
participant: isSet(object.participant) ? globalThis.String(object.participant) : "",
|
|
8985
8988
|
user_id: isSet(object.user_id) ? BigInt(object.user_id) : 0n,
|
|
8986
8989
|
voice_channel_label: isSet(object.voice_channel_label) ? globalThis.String(object.voice_channel_label) : "",
|
|
8987
|
-
voice_channel_id: isSet(object.voice_channel_id) ?
|
|
8990
|
+
voice_channel_id: isSet(object.voice_channel_id) ? BigInt(object.voice_channel_id) : 0n,
|
|
8988
8991
|
last_screenshot: isSet(object.last_screenshot) ? globalThis.String(object.last_screenshot) : "",
|
|
8989
8992
|
};
|
|
8990
8993
|
},
|
|
@@ -8997,8 +9000,8 @@ export const VoiceJoinedEvent = {
|
|
|
8997
9000
|
if (message.clan_name !== "") {
|
|
8998
9001
|
obj.clan_name = message.clan_name;
|
|
8999
9002
|
}
|
|
9000
|
-
if (message.id !==
|
|
9001
|
-
obj.id = message.id
|
|
9003
|
+
if (message.id !== "") {
|
|
9004
|
+
obj.id = message.id;
|
|
9002
9005
|
}
|
|
9003
9006
|
if (message.participant !== "") {
|
|
9004
9007
|
obj.participant = message.participant;
|
|
@@ -9009,8 +9012,8 @@ export const VoiceJoinedEvent = {
|
|
|
9009
9012
|
if (message.voice_channel_label !== "") {
|
|
9010
9013
|
obj.voice_channel_label = message.voice_channel_label;
|
|
9011
9014
|
}
|
|
9012
|
-
if (message.voice_channel_id !==
|
|
9013
|
-
obj.voice_channel_id = message.voice_channel_id;
|
|
9015
|
+
if (message.voice_channel_id !== 0n) {
|
|
9016
|
+
obj.voice_channel_id = message.voice_channel_id.toString();
|
|
9014
9017
|
}
|
|
9015
9018
|
if (message.last_screenshot !== "") {
|
|
9016
9019
|
obj.last_screenshot = message.last_screenshot;
|
|
@@ -9025,27 +9028,24 @@ export const VoiceJoinedEvent = {
|
|
|
9025
9028
|
const message = createBaseVoiceJoinedEvent();
|
|
9026
9029
|
message.clan_id = object.clan_id ?? 0n;
|
|
9027
9030
|
message.clan_name = object.clan_name ?? "";
|
|
9028
|
-
message.id = object.id ??
|
|
9031
|
+
message.id = object.id ?? "";
|
|
9029
9032
|
message.participant = object.participant ?? "";
|
|
9030
9033
|
message.user_id = object.user_id ?? 0n;
|
|
9031
9034
|
message.voice_channel_label = object.voice_channel_label ?? "";
|
|
9032
|
-
message.voice_channel_id = object.voice_channel_id ??
|
|
9035
|
+
message.voice_channel_id = object.voice_channel_id ?? 0n;
|
|
9033
9036
|
message.last_screenshot = object.last_screenshot ?? "";
|
|
9034
9037
|
return message;
|
|
9035
9038
|
},
|
|
9036
9039
|
};
|
|
9037
9040
|
|
|
9038
9041
|
function createBaseVoiceStartedEvent(): VoiceStartedEvent {
|
|
9039
|
-
return { id:
|
|
9042
|
+
return { id: "", clan_id: 0n, voice_channel_id: 0n };
|
|
9040
9043
|
}
|
|
9041
9044
|
|
|
9042
9045
|
export const VoiceStartedEvent = {
|
|
9043
9046
|
encode(message: VoiceStartedEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
9044
|
-
if (message.id !==
|
|
9045
|
-
|
|
9046
|
-
throw new globalThis.Error("value provided for field message.id of type int64 too large");
|
|
9047
|
-
}
|
|
9048
|
-
writer.uint32(8).int64(message.id.toString());
|
|
9047
|
+
if (message.id !== "") {
|
|
9048
|
+
writer.uint32(10).string(message.id);
|
|
9049
9049
|
}
|
|
9050
9050
|
if (message.clan_id !== 0n) {
|
|
9051
9051
|
if (BigInt.asIntN(64, message.clan_id) !== message.clan_id) {
|
|
@@ -9053,8 +9053,11 @@ export const VoiceStartedEvent = {
|
|
|
9053
9053
|
}
|
|
9054
9054
|
writer.uint32(16).int64(message.clan_id.toString());
|
|
9055
9055
|
}
|
|
9056
|
-
if (message.voice_channel_id !==
|
|
9057
|
-
|
|
9056
|
+
if (message.voice_channel_id !== 0n) {
|
|
9057
|
+
if (BigInt.asIntN(64, message.voice_channel_id) !== message.voice_channel_id) {
|
|
9058
|
+
throw new globalThis.Error("value provided for field message.voice_channel_id of type int64 too large");
|
|
9059
|
+
}
|
|
9060
|
+
writer.uint32(24).int64(message.voice_channel_id.toString());
|
|
9058
9061
|
}
|
|
9059
9062
|
return writer;
|
|
9060
9063
|
},
|
|
@@ -9067,11 +9070,11 @@ export const VoiceStartedEvent = {
|
|
|
9067
9070
|
const tag = reader.uint32();
|
|
9068
9071
|
switch (tag >>> 3) {
|
|
9069
9072
|
case 1:
|
|
9070
|
-
if (tag !==
|
|
9073
|
+
if (tag !== 10) {
|
|
9071
9074
|
break;
|
|
9072
9075
|
}
|
|
9073
9076
|
|
|
9074
|
-
message.id =
|
|
9077
|
+
message.id = reader.string();
|
|
9075
9078
|
continue;
|
|
9076
9079
|
case 2:
|
|
9077
9080
|
if (tag !== 16) {
|
|
@@ -9081,11 +9084,11 @@ export const VoiceStartedEvent = {
|
|
|
9081
9084
|
message.clan_id = longToBigint(reader.int64() as Long);
|
|
9082
9085
|
continue;
|
|
9083
9086
|
case 3:
|
|
9084
|
-
if (tag !==
|
|
9087
|
+
if (tag !== 24) {
|
|
9085
9088
|
break;
|
|
9086
9089
|
}
|
|
9087
9090
|
|
|
9088
|
-
message.voice_channel_id = reader.
|
|
9091
|
+
message.voice_channel_id = longToBigint(reader.int64() as Long);
|
|
9089
9092
|
continue;
|
|
9090
9093
|
}
|
|
9091
9094
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9098,22 +9101,22 @@ export const VoiceStartedEvent = {
|
|
|
9098
9101
|
|
|
9099
9102
|
fromJSON(object: any): VoiceStartedEvent {
|
|
9100
9103
|
return {
|
|
9101
|
-
id: isSet(object.id) ?
|
|
9104
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
9102
9105
|
clan_id: isSet(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
9103
|
-
voice_channel_id: isSet(object.voice_channel_id) ?
|
|
9106
|
+
voice_channel_id: isSet(object.voice_channel_id) ? BigInt(object.voice_channel_id) : 0n,
|
|
9104
9107
|
};
|
|
9105
9108
|
},
|
|
9106
9109
|
|
|
9107
9110
|
toJSON(message: VoiceStartedEvent): unknown {
|
|
9108
9111
|
const obj: any = {};
|
|
9109
|
-
if (message.id !==
|
|
9110
|
-
obj.id = message.id
|
|
9112
|
+
if (message.id !== "") {
|
|
9113
|
+
obj.id = message.id;
|
|
9111
9114
|
}
|
|
9112
9115
|
if (message.clan_id !== 0n) {
|
|
9113
9116
|
obj.clan_id = message.clan_id.toString();
|
|
9114
9117
|
}
|
|
9115
|
-
if (message.voice_channel_id !==
|
|
9116
|
-
obj.voice_channel_id = message.voice_channel_id;
|
|
9118
|
+
if (message.voice_channel_id !== 0n) {
|
|
9119
|
+
obj.voice_channel_id = message.voice_channel_id.toString();
|
|
9117
9120
|
}
|
|
9118
9121
|
return obj;
|
|
9119
9122
|
},
|
|
@@ -9123,9 +9126,9 @@ export const VoiceStartedEvent = {
|
|
|
9123
9126
|
},
|
|
9124
9127
|
fromPartial<I extends Exact<DeepPartial<VoiceStartedEvent>, I>>(object: I): VoiceStartedEvent {
|
|
9125
9128
|
const message = createBaseVoiceStartedEvent();
|
|
9126
|
-
message.id = object.id ??
|
|
9129
|
+
message.id = object.id ?? "";
|
|
9127
9130
|
message.clan_id = object.clan_id ?? 0n;
|
|
9128
|
-
message.voice_channel_id = object.voice_channel_id ??
|
|
9131
|
+
message.voice_channel_id = object.voice_channel_id ?? 0n;
|
|
9129
9132
|
return message;
|
|
9130
9133
|
},
|
|
9131
9134
|
};
|
|
@@ -9343,7 +9346,7 @@ function createBaseStreamingJoinedEvent(): StreamingJoinedEvent {
|
|
|
9343
9346
|
participant: "",
|
|
9344
9347
|
user_id: 0n,
|
|
9345
9348
|
streaming_channel_label: "",
|
|
9346
|
-
streaming_channel_id:
|
|
9349
|
+
streaming_channel_id: 0n,
|
|
9347
9350
|
};
|
|
9348
9351
|
}
|
|
9349
9352
|
|
|
@@ -9376,8 +9379,11 @@ export const StreamingJoinedEvent = {
|
|
|
9376
9379
|
if (message.streaming_channel_label !== "") {
|
|
9377
9380
|
writer.uint32(50).string(message.streaming_channel_label);
|
|
9378
9381
|
}
|
|
9379
|
-
if (message.streaming_channel_id !==
|
|
9380
|
-
|
|
9382
|
+
if (message.streaming_channel_id !== 0n) {
|
|
9383
|
+
if (BigInt.asIntN(64, message.streaming_channel_id) !== message.streaming_channel_id) {
|
|
9384
|
+
throw new globalThis.Error("value provided for field message.streaming_channel_id of type int64 too large");
|
|
9385
|
+
}
|
|
9386
|
+
writer.uint32(56).int64(message.streaming_channel_id.toString());
|
|
9381
9387
|
}
|
|
9382
9388
|
return writer;
|
|
9383
9389
|
},
|
|
@@ -9432,11 +9438,11 @@ export const StreamingJoinedEvent = {
|
|
|
9432
9438
|
message.streaming_channel_label = reader.string();
|
|
9433
9439
|
continue;
|
|
9434
9440
|
case 7:
|
|
9435
|
-
if (tag !==
|
|
9441
|
+
if (tag !== 56) {
|
|
9436
9442
|
break;
|
|
9437
9443
|
}
|
|
9438
9444
|
|
|
9439
|
-
message.streaming_channel_id = reader.
|
|
9445
|
+
message.streaming_channel_id = longToBigint(reader.int64() as Long);
|
|
9440
9446
|
continue;
|
|
9441
9447
|
}
|
|
9442
9448
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9457,7 +9463,7 @@ export const StreamingJoinedEvent = {
|
|
|
9457
9463
|
streaming_channel_label: isSet(object.streaming_channel_label)
|
|
9458
9464
|
? globalThis.String(object.streaming_channel_label)
|
|
9459
9465
|
: "",
|
|
9460
|
-
streaming_channel_id: isSet(object.streaming_channel_id) ?
|
|
9466
|
+
streaming_channel_id: isSet(object.streaming_channel_id) ? BigInt(object.streaming_channel_id) : 0n,
|
|
9461
9467
|
};
|
|
9462
9468
|
},
|
|
9463
9469
|
|
|
@@ -9481,8 +9487,8 @@ export const StreamingJoinedEvent = {
|
|
|
9481
9487
|
if (message.streaming_channel_label !== "") {
|
|
9482
9488
|
obj.streaming_channel_label = message.streaming_channel_label;
|
|
9483
9489
|
}
|
|
9484
|
-
if (message.streaming_channel_id !==
|
|
9485
|
-
obj.streaming_channel_id = message.streaming_channel_id;
|
|
9490
|
+
if (message.streaming_channel_id !== 0n) {
|
|
9491
|
+
obj.streaming_channel_id = message.streaming_channel_id.toString();
|
|
9486
9492
|
}
|
|
9487
9493
|
return obj;
|
|
9488
9494
|
},
|
|
@@ -9498,7 +9504,7 @@ export const StreamingJoinedEvent = {
|
|
|
9498
9504
|
message.participant = object.participant ?? "";
|
|
9499
9505
|
message.user_id = object.user_id ?? 0n;
|
|
9500
9506
|
message.streaming_channel_label = object.streaming_channel_label ?? "";
|
|
9501
|
-
message.streaming_channel_id = object.streaming_channel_id ??
|
|
9507
|
+
message.streaming_channel_id = object.streaming_channel_id ?? 0n;
|
|
9502
9508
|
return message;
|
|
9503
9509
|
},
|
|
9504
9510
|
};
|
|
@@ -10102,18 +10108,38 @@ export const RoleEvent = {
|
|
|
10102
10108
|
}
|
|
10103
10109
|
writer.uint32(24).int64(message.user_id.toString());
|
|
10104
10110
|
}
|
|
10111
|
+
writer.uint32(34).fork();
|
|
10105
10112
|
for (const v of message.user_add_ids) {
|
|
10106
|
-
|
|
10113
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
10114
|
+
throw new globalThis.Error("a value provided in array field user_add_ids of type int64 is too large");
|
|
10115
|
+
}
|
|
10116
|
+
writer.int64(v.toString());
|
|
10107
10117
|
}
|
|
10118
|
+
writer.ldelim();
|
|
10119
|
+
writer.uint32(42).fork();
|
|
10108
10120
|
for (const v of message.user_remove_ids) {
|
|
10109
|
-
|
|
10121
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
10122
|
+
throw new globalThis.Error("a value provided in array field user_remove_ids of type int64 is too large");
|
|
10123
|
+
}
|
|
10124
|
+
writer.int64(v.toString());
|
|
10110
10125
|
}
|
|
10126
|
+
writer.ldelim();
|
|
10127
|
+
writer.uint32(50).fork();
|
|
10111
10128
|
for (const v of message.active_permission_ids) {
|
|
10112
|
-
|
|
10129
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
10130
|
+
throw new globalThis.Error("a value provided in array field active_permission_ids of type int64 is too large");
|
|
10131
|
+
}
|
|
10132
|
+
writer.int64(v.toString());
|
|
10113
10133
|
}
|
|
10134
|
+
writer.ldelim();
|
|
10135
|
+
writer.uint32(58).fork();
|
|
10114
10136
|
for (const v of message.remove_permission_ids) {
|
|
10115
|
-
|
|
10137
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
10138
|
+
throw new globalThis.Error("a value provided in array field remove_permission_ids of type int64 is too large");
|
|
10139
|
+
}
|
|
10140
|
+
writer.int64(v.toString());
|
|
10116
10141
|
}
|
|
10142
|
+
writer.ldelim();
|
|
10117
10143
|
return writer;
|
|
10118
10144
|
},
|
|
10119
10145
|
|
|
@@ -10146,33 +10172,73 @@ export const RoleEvent = {
|
|
|
10146
10172
|
message.user_id = longToBigint(reader.int64() as Long);
|
|
10147
10173
|
continue;
|
|
10148
10174
|
case 4:
|
|
10149
|
-
if (tag
|
|
10150
|
-
|
|
10175
|
+
if (tag === 32) {
|
|
10176
|
+
message.user_add_ids.push(longToBigint(reader.int64() as Long));
|
|
10177
|
+
|
|
10178
|
+
continue;
|
|
10151
10179
|
}
|
|
10152
10180
|
|
|
10153
|
-
|
|
10154
|
-
|
|
10181
|
+
if (tag === 34) {
|
|
10182
|
+
const end2 = reader.uint32() + reader.pos;
|
|
10183
|
+
while (reader.pos < end2) {
|
|
10184
|
+
message.user_add_ids.push(longToBigint(reader.int64() as Long));
|
|
10185
|
+
}
|
|
10186
|
+
|
|
10187
|
+
continue;
|
|
10188
|
+
}
|
|
10189
|
+
|
|
10190
|
+
break;
|
|
10155
10191
|
case 5:
|
|
10156
|
-
if (tag
|
|
10157
|
-
|
|
10192
|
+
if (tag === 40) {
|
|
10193
|
+
message.user_remove_ids.push(longToBigint(reader.int64() as Long));
|
|
10194
|
+
|
|
10195
|
+
continue;
|
|
10158
10196
|
}
|
|
10159
10197
|
|
|
10160
|
-
|
|
10161
|
-
|
|
10198
|
+
if (tag === 42) {
|
|
10199
|
+
const end2 = reader.uint32() + reader.pos;
|
|
10200
|
+
while (reader.pos < end2) {
|
|
10201
|
+
message.user_remove_ids.push(longToBigint(reader.int64() as Long));
|
|
10202
|
+
}
|
|
10203
|
+
|
|
10204
|
+
continue;
|
|
10205
|
+
}
|
|
10206
|
+
|
|
10207
|
+
break;
|
|
10162
10208
|
case 6:
|
|
10163
|
-
if (tag
|
|
10164
|
-
|
|
10209
|
+
if (tag === 48) {
|
|
10210
|
+
message.active_permission_ids.push(longToBigint(reader.int64() as Long));
|
|
10211
|
+
|
|
10212
|
+
continue;
|
|
10165
10213
|
}
|
|
10166
10214
|
|
|
10167
|
-
|
|
10168
|
-
|
|
10215
|
+
if (tag === 50) {
|
|
10216
|
+
const end2 = reader.uint32() + reader.pos;
|
|
10217
|
+
while (reader.pos < end2) {
|
|
10218
|
+
message.active_permission_ids.push(longToBigint(reader.int64() as Long));
|
|
10219
|
+
}
|
|
10220
|
+
|
|
10221
|
+
continue;
|
|
10222
|
+
}
|
|
10223
|
+
|
|
10224
|
+
break;
|
|
10169
10225
|
case 7:
|
|
10170
|
-
if (tag
|
|
10171
|
-
|
|
10226
|
+
if (tag === 56) {
|
|
10227
|
+
message.remove_permission_ids.push(longToBigint(reader.int64() as Long));
|
|
10228
|
+
|
|
10229
|
+
continue;
|
|
10172
10230
|
}
|
|
10173
10231
|
|
|
10174
|
-
|
|
10175
|
-
|
|
10232
|
+
if (tag === 58) {
|
|
10233
|
+
const end2 = reader.uint32() + reader.pos;
|
|
10234
|
+
while (reader.pos < end2) {
|
|
10235
|
+
message.remove_permission_ids.push(longToBigint(reader.int64() as Long));
|
|
10236
|
+
}
|
|
10237
|
+
|
|
10238
|
+
continue;
|
|
10239
|
+
}
|
|
10240
|
+
|
|
10241
|
+
break;
|
|
10176
10242
|
}
|
|
10177
10243
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10178
10244
|
break;
|
|
@@ -10188,16 +10254,16 @@ export const RoleEvent = {
|
|
|
10188
10254
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
10189
10255
|
user_id: isSet(object.user_id) ? BigInt(object.user_id) : 0n,
|
|
10190
10256
|
user_add_ids: globalThis.Array.isArray(object?.user_add_ids)
|
|
10191
|
-
? object.user_add_ids.map((e: any) =>
|
|
10257
|
+
? object.user_add_ids.map((e: any) => BigInt(e))
|
|
10192
10258
|
: [],
|
|
10193
10259
|
user_remove_ids: globalThis.Array.isArray(object?.user_remove_ids)
|
|
10194
|
-
? object.user_remove_ids.map((e: any) =>
|
|
10260
|
+
? object.user_remove_ids.map((e: any) => BigInt(e))
|
|
10195
10261
|
: [],
|
|
10196
10262
|
active_permission_ids: globalThis.Array.isArray(object?.active_permission_ids)
|
|
10197
|
-
? object.active_permission_ids.map((e: any) =>
|
|
10263
|
+
? object.active_permission_ids.map((e: any) => BigInt(e))
|
|
10198
10264
|
: [],
|
|
10199
10265
|
remove_permission_ids: globalThis.Array.isArray(object?.remove_permission_ids)
|
|
10200
|
-
? object.remove_permission_ids.map((e: any) =>
|
|
10266
|
+
? object.remove_permission_ids.map((e: any) => BigInt(e))
|
|
10201
10267
|
: [],
|
|
10202
10268
|
};
|
|
10203
10269
|
},
|
|
@@ -10214,16 +10280,16 @@ export const RoleEvent = {
|
|
|
10214
10280
|
obj.user_id = message.user_id.toString();
|
|
10215
10281
|
}
|
|
10216
10282
|
if (message.user_add_ids?.length) {
|
|
10217
|
-
obj.user_add_ids = message.user_add_ids;
|
|
10283
|
+
obj.user_add_ids = message.user_add_ids.map((e) => e.toString());
|
|
10218
10284
|
}
|
|
10219
10285
|
if (message.user_remove_ids?.length) {
|
|
10220
|
-
obj.user_remove_ids = message.user_remove_ids;
|
|
10286
|
+
obj.user_remove_ids = message.user_remove_ids.map((e) => e.toString());
|
|
10221
10287
|
}
|
|
10222
10288
|
if (message.active_permission_ids?.length) {
|
|
10223
|
-
obj.active_permission_ids = message.active_permission_ids;
|
|
10289
|
+
obj.active_permission_ids = message.active_permission_ids.map((e) => e.toString());
|
|
10224
10290
|
}
|
|
10225
10291
|
if (message.remove_permission_ids?.length) {
|
|
10226
|
-
obj.remove_permission_ids = message.remove_permission_ids;
|
|
10292
|
+
obj.remove_permission_ids = message.remove_permission_ids.map((e) => e.toString());
|
|
10227
10293
|
}
|
|
10228
10294
|
return obj;
|
|
10229
10295
|
},
|
|
@@ -10376,7 +10442,7 @@ export const ChannelDeletedEvent = {
|
|
|
10376
10442
|
};
|
|
10377
10443
|
|
|
10378
10444
|
function createBaseClanDeletedEvent(): ClanDeletedEvent {
|
|
10379
|
-
return { clan_id: 0n, deletor:
|
|
10445
|
+
return { clan_id: 0n, deletor: 0n };
|
|
10380
10446
|
}
|
|
10381
10447
|
|
|
10382
10448
|
export const ClanDeletedEvent = {
|
|
@@ -10387,8 +10453,11 @@ export const ClanDeletedEvent = {
|
|
|
10387
10453
|
}
|
|
10388
10454
|
writer.uint32(8).int64(message.clan_id.toString());
|
|
10389
10455
|
}
|
|
10390
|
-
if (message.deletor !==
|
|
10391
|
-
|
|
10456
|
+
if (message.deletor !== 0n) {
|
|
10457
|
+
if (BigInt.asIntN(64, message.deletor) !== message.deletor) {
|
|
10458
|
+
throw new globalThis.Error("value provided for field message.deletor of type int64 too large");
|
|
10459
|
+
}
|
|
10460
|
+
writer.uint32(16).int64(message.deletor.toString());
|
|
10392
10461
|
}
|
|
10393
10462
|
return writer;
|
|
10394
10463
|
},
|
|
@@ -10408,11 +10477,11 @@ export const ClanDeletedEvent = {
|
|
|
10408
10477
|
message.clan_id = longToBigint(reader.int64() as Long);
|
|
10409
10478
|
continue;
|
|
10410
10479
|
case 2:
|
|
10411
|
-
if (tag !==
|
|
10480
|
+
if (tag !== 16) {
|
|
10412
10481
|
break;
|
|
10413
10482
|
}
|
|
10414
10483
|
|
|
10415
|
-
message.deletor = reader.
|
|
10484
|
+
message.deletor = longToBigint(reader.int64() as Long);
|
|
10416
10485
|
continue;
|
|
10417
10486
|
}
|
|
10418
10487
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -10426,7 +10495,7 @@ export const ClanDeletedEvent = {
|
|
|
10426
10495
|
fromJSON(object: any): ClanDeletedEvent {
|
|
10427
10496
|
return {
|
|
10428
10497
|
clan_id: isSet(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
10429
|
-
deletor: isSet(object.deletor) ?
|
|
10498
|
+
deletor: isSet(object.deletor) ? BigInt(object.deletor) : 0n,
|
|
10430
10499
|
};
|
|
10431
10500
|
},
|
|
10432
10501
|
|
|
@@ -10435,8 +10504,8 @@ export const ClanDeletedEvent = {
|
|
|
10435
10504
|
if (message.clan_id !== 0n) {
|
|
10436
10505
|
obj.clan_id = message.clan_id.toString();
|
|
10437
10506
|
}
|
|
10438
|
-
if (message.deletor !==
|
|
10439
|
-
obj.deletor = message.deletor;
|
|
10507
|
+
if (message.deletor !== 0n) {
|
|
10508
|
+
obj.deletor = message.deletor.toString();
|
|
10440
10509
|
}
|
|
10441
10510
|
return obj;
|
|
10442
10511
|
},
|
|
@@ -10447,7 +10516,7 @@ export const ClanDeletedEvent = {
|
|
|
10447
10516
|
fromPartial<I extends Exact<DeepPartial<ClanDeletedEvent>, I>>(object: I): ClanDeletedEvent {
|
|
10448
10517
|
const message = createBaseClanDeletedEvent();
|
|
10449
10518
|
message.clan_id = object.clan_id ?? 0n;
|
|
10450
|
-
message.deletor = object.deletor ??
|
|
10519
|
+
message.deletor = object.deletor ?? 0n;
|
|
10451
10520
|
return message;
|
|
10452
10521
|
},
|
|
10453
10522
|
};
|
|
@@ -12355,7 +12424,7 @@ function createBaseClanUpdatedEvent(): ClanUpdatedEvent {
|
|
|
12355
12424
|
banner: "",
|
|
12356
12425
|
status: 0,
|
|
12357
12426
|
is_onboarding: false,
|
|
12358
|
-
welcome_channel_id:
|
|
12427
|
+
welcome_channel_id: 0n,
|
|
12359
12428
|
onboarding_banner: "",
|
|
12360
12429
|
community_banner: "",
|
|
12361
12430
|
is_community: false,
|
|
@@ -12388,8 +12457,11 @@ export const ClanUpdatedEvent = {
|
|
|
12388
12457
|
if (message.is_onboarding !== false) {
|
|
12389
12458
|
writer.uint32(48).bool(message.is_onboarding);
|
|
12390
12459
|
}
|
|
12391
|
-
if (message.welcome_channel_id !==
|
|
12392
|
-
|
|
12460
|
+
if (message.welcome_channel_id !== 0n) {
|
|
12461
|
+
if (BigInt.asIntN(64, message.welcome_channel_id) !== message.welcome_channel_id) {
|
|
12462
|
+
throw new globalThis.Error("value provided for field message.welcome_channel_id of type int64 too large");
|
|
12463
|
+
}
|
|
12464
|
+
writer.uint32(56).int64(message.welcome_channel_id.toString());
|
|
12393
12465
|
}
|
|
12394
12466
|
if (message.onboarding_banner !== "") {
|
|
12395
12467
|
writer.uint32(66).string(message.onboarding_banner);
|
|
@@ -12462,11 +12534,11 @@ export const ClanUpdatedEvent = {
|
|
|
12462
12534
|
message.is_onboarding = reader.bool();
|
|
12463
12535
|
continue;
|
|
12464
12536
|
case 7:
|
|
12465
|
-
if (tag !==
|
|
12537
|
+
if (tag !== 56) {
|
|
12466
12538
|
break;
|
|
12467
12539
|
}
|
|
12468
12540
|
|
|
12469
|
-
message.welcome_channel_id = reader.
|
|
12541
|
+
message.welcome_channel_id = longToBigint(reader.int64() as Long);
|
|
12470
12542
|
continue;
|
|
12471
12543
|
case 8:
|
|
12472
12544
|
if (tag !== 66) {
|
|
@@ -12527,7 +12599,7 @@ export const ClanUpdatedEvent = {
|
|
|
12527
12599
|
banner: isSet(object.banner) ? globalThis.String(object.banner) : "",
|
|
12528
12600
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
12529
12601
|
is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
12530
|
-
welcome_channel_id: isSet(object.welcome_channel_id) ?
|
|
12602
|
+
welcome_channel_id: isSet(object.welcome_channel_id) ? BigInt(object.welcome_channel_id) : 0n,
|
|
12531
12603
|
onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
12532
12604
|
community_banner: isSet(object.community_banner) ? globalThis.String(object.community_banner) : "",
|
|
12533
12605
|
is_community: isSet(object.is_community) ? globalThis.Boolean(object.is_community) : false,
|
|
@@ -12557,8 +12629,8 @@ export const ClanUpdatedEvent = {
|
|
|
12557
12629
|
if (message.is_onboarding !== false) {
|
|
12558
12630
|
obj.is_onboarding = message.is_onboarding;
|
|
12559
12631
|
}
|
|
12560
|
-
if (message.welcome_channel_id !==
|
|
12561
|
-
obj.welcome_channel_id = message.welcome_channel_id;
|
|
12632
|
+
if (message.welcome_channel_id !== 0n) {
|
|
12633
|
+
obj.welcome_channel_id = message.welcome_channel_id.toString();
|
|
12562
12634
|
}
|
|
12563
12635
|
if (message.onboarding_banner !== "") {
|
|
12564
12636
|
obj.onboarding_banner = message.onboarding_banner;
|
|
@@ -12592,7 +12664,7 @@ export const ClanUpdatedEvent = {
|
|
|
12592
12664
|
message.banner = object.banner ?? "";
|
|
12593
12665
|
message.status = object.status ?? 0;
|
|
12594
12666
|
message.is_onboarding = object.is_onboarding ?? false;
|
|
12595
|
-
message.welcome_channel_id = object.welcome_channel_id ??
|
|
12667
|
+
message.welcome_channel_id = object.welcome_channel_id ?? 0n;
|
|
12596
12668
|
message.onboarding_banner = object.onboarding_banner ?? "";
|
|
12597
12669
|
message.community_banner = object.community_banner ?? "";
|
|
12598
12670
|
message.is_community = object.is_community ?? false;
|
|
@@ -13001,9 +13073,14 @@ export const UserProfileRedis = {
|
|
|
13001
13073
|
for (const v of message.fcm_tokens) {
|
|
13002
13074
|
FCMTokens.encode(v!, writer.uint32(66).fork()).ldelim();
|
|
13003
13075
|
}
|
|
13076
|
+
writer.uint32(74).fork();
|
|
13004
13077
|
for (const v of message.joined_clans) {
|
|
13005
|
-
|
|
13078
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
13079
|
+
throw new globalThis.Error("a value provided in array field joined_clans of type int64 is too large");
|
|
13080
|
+
}
|
|
13081
|
+
writer.int64(v.toString());
|
|
13006
13082
|
}
|
|
13083
|
+
writer.ldelim();
|
|
13007
13084
|
if (message.app_token !== "") {
|
|
13008
13085
|
writer.uint32(82).string(message.app_token);
|
|
13009
13086
|
}
|
|
@@ -13086,12 +13163,22 @@ export const UserProfileRedis = {
|
|
|
13086
13163
|
message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
|
|
13087
13164
|
continue;
|
|
13088
13165
|
case 9:
|
|
13089
|
-
if (tag
|
|
13090
|
-
|
|
13166
|
+
if (tag === 72) {
|
|
13167
|
+
message.joined_clans.push(longToBigint(reader.int64() as Long));
|
|
13168
|
+
|
|
13169
|
+
continue;
|
|
13091
13170
|
}
|
|
13092
13171
|
|
|
13093
|
-
|
|
13094
|
-
|
|
13172
|
+
if (tag === 74) {
|
|
13173
|
+
const end2 = reader.uint32() + reader.pos;
|
|
13174
|
+
while (reader.pos < end2) {
|
|
13175
|
+
message.joined_clans.push(longToBigint(reader.int64() as Long));
|
|
13176
|
+
}
|
|
13177
|
+
|
|
13178
|
+
continue;
|
|
13179
|
+
}
|
|
13180
|
+
|
|
13181
|
+
break;
|
|
13095
13182
|
case 10:
|
|
13096
13183
|
if (tag !== 82) {
|
|
13097
13184
|
break;
|
|
@@ -13149,7 +13236,7 @@ export const UserProfileRedis = {
|
|
|
13149
13236
|
? object.fcm_tokens.map((e: any) => FCMTokens.fromJSON(e))
|
|
13150
13237
|
: [],
|
|
13151
13238
|
joined_clans: globalThis.Array.isArray(object?.joined_clans)
|
|
13152
|
-
? object.joined_clans.map((e: any) =>
|
|
13239
|
+
? object.joined_clans.map((e: any) => BigInt(e))
|
|
13153
13240
|
: [],
|
|
13154
13241
|
app_token: isSet(object.app_token) ? globalThis.String(object.app_token) : "",
|
|
13155
13242
|
create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
@@ -13186,7 +13273,7 @@ export const UserProfileRedis = {
|
|
|
13186
13273
|
obj.fcm_tokens = message.fcm_tokens.map((e) => FCMTokens.toJSON(e));
|
|
13187
13274
|
}
|
|
13188
13275
|
if (message.joined_clans?.length) {
|
|
13189
|
-
obj.joined_clans = message.joined_clans;
|
|
13276
|
+
obj.joined_clans = message.joined_clans.map((e) => e.toString());
|
|
13190
13277
|
}
|
|
13191
13278
|
if (message.app_token !== "") {
|
|
13192
13279
|
obj.app_token = message.app_token;
|
|
@@ -16791,7 +16878,7 @@ export const MeetParticipantEvent = {
|
|
|
16791
16878
|
};
|
|
16792
16879
|
|
|
16793
16880
|
function createBaseTransferOwnershipEvent(): TransferOwnershipEvent {
|
|
16794
|
-
return { clan_id: 0n, prev_owner:
|
|
16881
|
+
return { clan_id: 0n, prev_owner: 0n, curr_owner: 0n };
|
|
16795
16882
|
}
|
|
16796
16883
|
|
|
16797
16884
|
export const TransferOwnershipEvent = {
|
|
@@ -16802,11 +16889,17 @@ export const TransferOwnershipEvent = {
|
|
|
16802
16889
|
}
|
|
16803
16890
|
writer.uint32(8).int64(message.clan_id.toString());
|
|
16804
16891
|
}
|
|
16805
|
-
if (message.prev_owner !==
|
|
16806
|
-
|
|
16892
|
+
if (message.prev_owner !== 0n) {
|
|
16893
|
+
if (BigInt.asIntN(64, message.prev_owner) !== message.prev_owner) {
|
|
16894
|
+
throw new globalThis.Error("value provided for field message.prev_owner of type int64 too large");
|
|
16895
|
+
}
|
|
16896
|
+
writer.uint32(16).int64(message.prev_owner.toString());
|
|
16807
16897
|
}
|
|
16808
|
-
if (message.curr_owner !==
|
|
16809
|
-
|
|
16898
|
+
if (message.curr_owner !== 0n) {
|
|
16899
|
+
if (BigInt.asIntN(64, message.curr_owner) !== message.curr_owner) {
|
|
16900
|
+
throw new globalThis.Error("value provided for field message.curr_owner of type int64 too large");
|
|
16901
|
+
}
|
|
16902
|
+
writer.uint32(24).int64(message.curr_owner.toString());
|
|
16810
16903
|
}
|
|
16811
16904
|
return writer;
|
|
16812
16905
|
},
|
|
@@ -16826,18 +16919,18 @@ export const TransferOwnershipEvent = {
|
|
|
16826
16919
|
message.clan_id = longToBigint(reader.int64() as Long);
|
|
16827
16920
|
continue;
|
|
16828
16921
|
case 2:
|
|
16829
|
-
if (tag !==
|
|
16922
|
+
if (tag !== 16) {
|
|
16830
16923
|
break;
|
|
16831
16924
|
}
|
|
16832
16925
|
|
|
16833
|
-
message.prev_owner = reader.
|
|
16926
|
+
message.prev_owner = longToBigint(reader.int64() as Long);
|
|
16834
16927
|
continue;
|
|
16835
16928
|
case 3:
|
|
16836
|
-
if (tag !==
|
|
16929
|
+
if (tag !== 24) {
|
|
16837
16930
|
break;
|
|
16838
16931
|
}
|
|
16839
16932
|
|
|
16840
|
-
message.curr_owner = reader.
|
|
16933
|
+
message.curr_owner = longToBigint(reader.int64() as Long);
|
|
16841
16934
|
continue;
|
|
16842
16935
|
}
|
|
16843
16936
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -16851,8 +16944,8 @@ export const TransferOwnershipEvent = {
|
|
|
16851
16944
|
fromJSON(object: any): TransferOwnershipEvent {
|
|
16852
16945
|
return {
|
|
16853
16946
|
clan_id: isSet(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
16854
|
-
prev_owner: isSet(object.prev_owner) ?
|
|
16855
|
-
curr_owner: isSet(object.curr_owner) ?
|
|
16947
|
+
prev_owner: isSet(object.prev_owner) ? BigInt(object.prev_owner) : 0n,
|
|
16948
|
+
curr_owner: isSet(object.curr_owner) ? BigInt(object.curr_owner) : 0n,
|
|
16856
16949
|
};
|
|
16857
16950
|
},
|
|
16858
16951
|
|
|
@@ -16861,11 +16954,11 @@ export const TransferOwnershipEvent = {
|
|
|
16861
16954
|
if (message.clan_id !== 0n) {
|
|
16862
16955
|
obj.clan_id = message.clan_id.toString();
|
|
16863
16956
|
}
|
|
16864
|
-
if (message.prev_owner !==
|
|
16865
|
-
obj.prev_owner = message.prev_owner;
|
|
16957
|
+
if (message.prev_owner !== 0n) {
|
|
16958
|
+
obj.prev_owner = message.prev_owner.toString();
|
|
16866
16959
|
}
|
|
16867
|
-
if (message.curr_owner !==
|
|
16868
|
-
obj.curr_owner = message.curr_owner;
|
|
16960
|
+
if (message.curr_owner !== 0n) {
|
|
16961
|
+
obj.curr_owner = message.curr_owner.toString();
|
|
16869
16962
|
}
|
|
16870
16963
|
return obj;
|
|
16871
16964
|
},
|
|
@@ -16876,8 +16969,8 @@ export const TransferOwnershipEvent = {
|
|
|
16876
16969
|
fromPartial<I extends Exact<DeepPartial<TransferOwnershipEvent>, I>>(object: I): TransferOwnershipEvent {
|
|
16877
16970
|
const message = createBaseTransferOwnershipEvent();
|
|
16878
16971
|
message.clan_id = object.clan_id ?? 0n;
|
|
16879
|
-
message.prev_owner = object.prev_owner ??
|
|
16880
|
-
message.curr_owner = object.curr_owner ??
|
|
16972
|
+
message.prev_owner = object.prev_owner ?? 0n;
|
|
16973
|
+
message.curr_owner = object.curr_owner ?? 0n;
|
|
16881
16974
|
return message;
|
|
16882
16975
|
},
|
|
16883
16976
|
};
|
|
@@ -17075,12 +17168,22 @@ export const FcmDataPayload = {
|
|
|
17075
17168
|
if (message.body.length !== 0) {
|
|
17076
17169
|
writer.uint32(34).bytes(message.body);
|
|
17077
17170
|
}
|
|
17171
|
+
writer.uint32(42).fork();
|
|
17078
17172
|
for (const v of message.user_role_ids) {
|
|
17079
|
-
|
|
17173
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
17174
|
+
throw new globalThis.Error("a value provided in array field user_role_ids of type int64 is too large");
|
|
17175
|
+
}
|
|
17176
|
+
writer.int64(v.toString());
|
|
17080
17177
|
}
|
|
17178
|
+
writer.ldelim();
|
|
17179
|
+
writer.uint32(50).fork();
|
|
17081
17180
|
for (const v of message.user_sent_ids) {
|
|
17082
|
-
|
|
17181
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
17182
|
+
throw new globalThis.Error("a value provided in array field user_sent_ids of type int64 is too large");
|
|
17183
|
+
}
|
|
17184
|
+
writer.int64(v.toString());
|
|
17083
17185
|
}
|
|
17186
|
+
writer.ldelim();
|
|
17084
17187
|
if (message.priority !== 0) {
|
|
17085
17188
|
writer.uint32(56).int32(message.priority);
|
|
17086
17189
|
}
|
|
@@ -17144,19 +17247,39 @@ export const FcmDataPayload = {
|
|
|
17144
17247
|
message.body = reader.bytes();
|
|
17145
17248
|
continue;
|
|
17146
17249
|
case 5:
|
|
17147
|
-
if (tag
|
|
17148
|
-
|
|
17250
|
+
if (tag === 40) {
|
|
17251
|
+
message.user_role_ids.push(longToBigint(reader.int64() as Long));
|
|
17252
|
+
|
|
17253
|
+
continue;
|
|
17149
17254
|
}
|
|
17150
17255
|
|
|
17151
|
-
|
|
17152
|
-
|
|
17256
|
+
if (tag === 42) {
|
|
17257
|
+
const end2 = reader.uint32() + reader.pos;
|
|
17258
|
+
while (reader.pos < end2) {
|
|
17259
|
+
message.user_role_ids.push(longToBigint(reader.int64() as Long));
|
|
17260
|
+
}
|
|
17261
|
+
|
|
17262
|
+
continue;
|
|
17263
|
+
}
|
|
17264
|
+
|
|
17265
|
+
break;
|
|
17153
17266
|
case 6:
|
|
17154
|
-
if (tag
|
|
17155
|
-
|
|
17267
|
+
if (tag === 48) {
|
|
17268
|
+
message.user_sent_ids.push(longToBigint(reader.int64() as Long));
|
|
17269
|
+
|
|
17270
|
+
continue;
|
|
17156
17271
|
}
|
|
17157
17272
|
|
|
17158
|
-
|
|
17159
|
-
|
|
17273
|
+
if (tag === 50) {
|
|
17274
|
+
const end2 = reader.uint32() + reader.pos;
|
|
17275
|
+
while (reader.pos < end2) {
|
|
17276
|
+
message.user_sent_ids.push(longToBigint(reader.int64() as Long));
|
|
17277
|
+
}
|
|
17278
|
+
|
|
17279
|
+
continue;
|
|
17280
|
+
}
|
|
17281
|
+
|
|
17282
|
+
break;
|
|
17160
17283
|
case 7:
|
|
17161
17284
|
if (tag !== 56) {
|
|
17162
17285
|
break;
|
|
@@ -17229,10 +17352,10 @@ export const FcmDataPayload = {
|
|
|
17229
17352
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
17230
17353
|
body: isSet(object.body) ? bytesFromBase64(object.body) : new Uint8Array(0),
|
|
17231
17354
|
user_role_ids: globalThis.Array.isArray(object?.user_role_ids)
|
|
17232
|
-
? object.user_role_ids.map((e: any) =>
|
|
17355
|
+
? object.user_role_ids.map((e: any) => BigInt(e))
|
|
17233
17356
|
: [],
|
|
17234
17357
|
user_sent_ids: globalThis.Array.isArray(object?.user_sent_ids)
|
|
17235
|
-
? object.user_sent_ids.map((e: any) =>
|
|
17358
|
+
? object.user_sent_ids.map((e: any) => BigInt(e))
|
|
17236
17359
|
: [],
|
|
17237
17360
|
priority: isSet(object.priority) ? globalThis.Number(object.priority) : 0,
|
|
17238
17361
|
message: isSet(object.message) ? ChannelMessage.fromJSON(object.message) : undefined,
|
|
@@ -17266,10 +17389,10 @@ export const FcmDataPayload = {
|
|
|
17266
17389
|
obj.body = base64FromBytes(message.body);
|
|
17267
17390
|
}
|
|
17268
17391
|
if (message.user_role_ids?.length) {
|
|
17269
|
-
obj.user_role_ids = message.user_role_ids;
|
|
17392
|
+
obj.user_role_ids = message.user_role_ids.map((e) => e.toString());
|
|
17270
17393
|
}
|
|
17271
17394
|
if (message.user_sent_ids?.length) {
|
|
17272
|
-
obj.user_sent_ids = message.user_sent_ids;
|
|
17395
|
+
obj.user_sent_ids = message.user_sent_ids.map((e) => e.toString());
|
|
17273
17396
|
}
|
|
17274
17397
|
if (message.priority !== 0) {
|
|
17275
17398
|
obj.priority = Math.round(message.priority);
|