mezon-js-protobuf 1.8.18 → 1.8.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/api.ts
CHANGED
|
@@ -2729,6 +2729,8 @@ export interface UpdateAppRequest {
|
|
|
2729
2729
|
about: string;
|
|
2730
2730
|
/** App url. */
|
|
2731
2731
|
app_url: string;
|
|
2732
|
+
/** need update or not */
|
|
2733
|
+
is_shadow: string;
|
|
2732
2734
|
}
|
|
2733
2735
|
|
|
2734
2736
|
/** The identifier for an app. */
|
|
@@ -25979,6 +25981,7 @@ function createBaseUpdateAppRequest(): UpdateAppRequest {
|
|
|
25979
25981
|
token: undefined,
|
|
25980
25982
|
about: "",
|
|
25981
25983
|
app_url: "",
|
|
25984
|
+
is_shadow: "",
|
|
25982
25985
|
};
|
|
25983
25986
|
}
|
|
25984
25987
|
|
|
@@ -26005,6 +26008,9 @@ export const UpdateAppRequest = {
|
|
|
26005
26008
|
if (message.app_url !== "") {
|
|
26006
26009
|
writer.uint32(58).string(message.app_url);
|
|
26007
26010
|
}
|
|
26011
|
+
if (message.is_shadow !== "") {
|
|
26012
|
+
writer.uint32(74).string(message.is_shadow);
|
|
26013
|
+
}
|
|
26008
26014
|
return writer;
|
|
26009
26015
|
},
|
|
26010
26016
|
|
|
@@ -26064,6 +26070,13 @@ export const UpdateAppRequest = {
|
|
|
26064
26070
|
|
|
26065
26071
|
message.app_url = reader.string();
|
|
26066
26072
|
continue;
|
|
26073
|
+
case 9:
|
|
26074
|
+
if (tag !== 74) {
|
|
26075
|
+
break;
|
|
26076
|
+
}
|
|
26077
|
+
|
|
26078
|
+
message.is_shadow = reader.string();
|
|
26079
|
+
continue;
|
|
26067
26080
|
}
|
|
26068
26081
|
if ((tag & 7) === 4 || tag === 0) {
|
|
26069
26082
|
break;
|
|
@@ -26082,6 +26095,7 @@ export const UpdateAppRequest = {
|
|
|
26082
26095
|
token: isSet(object.token) ? String(object.token) : undefined,
|
|
26083
26096
|
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
26084
26097
|
app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
26098
|
+
is_shadow: isSet(object.is_shadow) ? globalThis.String(object.is_shadow) : "",
|
|
26085
26099
|
};
|
|
26086
26100
|
},
|
|
26087
26101
|
|
|
@@ -26108,6 +26122,9 @@ export const UpdateAppRequest = {
|
|
|
26108
26122
|
if (message.app_url !== "") {
|
|
26109
26123
|
obj.app_url = message.app_url;
|
|
26110
26124
|
}
|
|
26125
|
+
if (message.is_shadow !== "") {
|
|
26126
|
+
obj.is_shadow = message.is_shadow;
|
|
26127
|
+
}
|
|
26111
26128
|
return obj;
|
|
26112
26129
|
},
|
|
26113
26130
|
|
|
@@ -26123,6 +26140,7 @@ export const UpdateAppRequest = {
|
|
|
26123
26140
|
message.token = object.token ?? undefined;
|
|
26124
26141
|
message.about = object.about ?? "";
|
|
26125
26142
|
message.app_url = object.app_url ?? "";
|
|
26143
|
+
message.is_shadow = object.is_shadow ?? "";
|
|
26126
26144
|
return message;
|
|
26127
26145
|
},
|
|
26128
26146
|
};
|
|
@@ -2156,6 +2156,8 @@ export interface UpdateAppRequest {
|
|
|
2156
2156
|
about: string;
|
|
2157
2157
|
/** App url. */
|
|
2158
2158
|
app_url: string;
|
|
2159
|
+
/** need update or not */
|
|
2160
|
+
is_shadow: string;
|
|
2159
2161
|
}
|
|
2160
2162
|
/** The identifier for an app. */
|
|
2161
2163
|
export interface AppId {
|
|
@@ -17176,6 +17178,7 @@ export declare const UpdateAppRequest: {
|
|
|
17176
17178
|
token?: string | undefined;
|
|
17177
17179
|
about?: string | undefined;
|
|
17178
17180
|
app_url?: string | undefined;
|
|
17181
|
+
is_shadow?: string | undefined;
|
|
17179
17182
|
} & {
|
|
17180
17183
|
id?: string | undefined;
|
|
17181
17184
|
appname?: string | undefined;
|
|
@@ -17184,6 +17187,7 @@ export declare const UpdateAppRequest: {
|
|
|
17184
17187
|
token?: string | undefined;
|
|
17185
17188
|
about?: string | undefined;
|
|
17186
17189
|
app_url?: string | undefined;
|
|
17190
|
+
is_shadow?: string | undefined;
|
|
17187
17191
|
} & { [K in Exclude<keyof I, keyof UpdateAppRequest>]: never; }>(base?: I | undefined): UpdateAppRequest;
|
|
17188
17192
|
fromPartial<I_1 extends {
|
|
17189
17193
|
id?: string | undefined;
|
|
@@ -17193,6 +17197,7 @@ export declare const UpdateAppRequest: {
|
|
|
17193
17197
|
token?: string | undefined;
|
|
17194
17198
|
about?: string | undefined;
|
|
17195
17199
|
app_url?: string | undefined;
|
|
17200
|
+
is_shadow?: string | undefined;
|
|
17196
17201
|
} & {
|
|
17197
17202
|
id?: string | undefined;
|
|
17198
17203
|
appname?: string | undefined;
|
|
@@ -17201,6 +17206,7 @@ export declare const UpdateAppRequest: {
|
|
|
17201
17206
|
token?: string | undefined;
|
|
17202
17207
|
about?: string | undefined;
|
|
17203
17208
|
app_url?: string | undefined;
|
|
17209
|
+
is_shadow?: string | undefined;
|
|
17204
17210
|
} & { [K_1 in Exclude<keyof I_1, keyof UpdateAppRequest>]: never; }>(object: I_1): UpdateAppRequest;
|
|
17205
17211
|
};
|
|
17206
17212
|
export declare const AppId: {
|
|
@@ -556,6 +556,18 @@ export interface LastPinMessageEvent {
|
|
|
556
556
|
operation: number;
|
|
557
557
|
/** is public */
|
|
558
558
|
is_public: boolean;
|
|
559
|
+
/** avatar */
|
|
560
|
+
message_sender_avatar: string;
|
|
561
|
+
/** message sender id */
|
|
562
|
+
message_sender_id: string;
|
|
563
|
+
/** message sender username */
|
|
564
|
+
message_sender_username: string;
|
|
565
|
+
/** message content */
|
|
566
|
+
message_content: string;
|
|
567
|
+
/** attachment */
|
|
568
|
+
message_attachment: string;
|
|
569
|
+
/** create time */
|
|
570
|
+
message_created_time: string;
|
|
559
571
|
}
|
|
560
572
|
/** Last seen message by user */
|
|
561
573
|
export interface LastSeenMessageEvent {
|
|
@@ -1675,6 +1687,12 @@ export declare const Envelope: {
|
|
|
1675
1687
|
timestamp_seconds?: number | undefined;
|
|
1676
1688
|
operation?: number | undefined;
|
|
1677
1689
|
is_public?: boolean | undefined;
|
|
1690
|
+
message_sender_avatar?: string | undefined;
|
|
1691
|
+
message_sender_id?: string | undefined;
|
|
1692
|
+
message_sender_username?: string | undefined;
|
|
1693
|
+
message_content?: string | undefined;
|
|
1694
|
+
message_attachment?: string | undefined;
|
|
1695
|
+
message_created_time?: string | undefined;
|
|
1678
1696
|
} | undefined;
|
|
1679
1697
|
custom_status_event?: {
|
|
1680
1698
|
clan_id?: string | undefined;
|
|
@@ -4645,6 +4663,12 @@ export declare const Envelope: {
|
|
|
4645
4663
|
timestamp_seconds?: number | undefined;
|
|
4646
4664
|
operation?: number | undefined;
|
|
4647
4665
|
is_public?: boolean | undefined;
|
|
4666
|
+
message_sender_avatar?: string | undefined;
|
|
4667
|
+
message_sender_id?: string | undefined;
|
|
4668
|
+
message_sender_username?: string | undefined;
|
|
4669
|
+
message_content?: string | undefined;
|
|
4670
|
+
message_attachment?: string | undefined;
|
|
4671
|
+
message_created_time?: string | undefined;
|
|
4648
4672
|
} & {
|
|
4649
4673
|
clan_id?: string | undefined;
|
|
4650
4674
|
channel_id?: string | undefined;
|
|
@@ -4654,6 +4678,12 @@ export declare const Envelope: {
|
|
|
4654
4678
|
timestamp_seconds?: number | undefined;
|
|
4655
4679
|
operation?: number | undefined;
|
|
4656
4680
|
is_public?: boolean | undefined;
|
|
4681
|
+
message_sender_avatar?: string | undefined;
|
|
4682
|
+
message_sender_id?: string | undefined;
|
|
4683
|
+
message_sender_username?: string | undefined;
|
|
4684
|
+
message_content?: string | undefined;
|
|
4685
|
+
message_attachment?: string | undefined;
|
|
4686
|
+
message_created_time?: string | undefined;
|
|
4657
4687
|
} & { [K_80 in Exclude<keyof I["last_pin_message_event"], keyof LastPinMessageEvent>]: never; }) | undefined;
|
|
4658
4688
|
custom_status_event?: ({
|
|
4659
4689
|
clan_id?: string | undefined;
|
|
@@ -11198,6 +11228,12 @@ export declare const Envelope: {
|
|
|
11198
11228
|
timestamp_seconds?: number | undefined;
|
|
11199
11229
|
operation?: number | undefined;
|
|
11200
11230
|
is_public?: boolean | undefined;
|
|
11231
|
+
message_sender_avatar?: string | undefined;
|
|
11232
|
+
message_sender_id?: string | undefined;
|
|
11233
|
+
message_sender_username?: string | undefined;
|
|
11234
|
+
message_content?: string | undefined;
|
|
11235
|
+
message_attachment?: string | undefined;
|
|
11236
|
+
message_created_time?: string | undefined;
|
|
11201
11237
|
} | undefined;
|
|
11202
11238
|
custom_status_event?: {
|
|
11203
11239
|
clan_id?: string | undefined;
|
|
@@ -14168,6 +14204,12 @@ export declare const Envelope: {
|
|
|
14168
14204
|
timestamp_seconds?: number | undefined;
|
|
14169
14205
|
operation?: number | undefined;
|
|
14170
14206
|
is_public?: boolean | undefined;
|
|
14207
|
+
message_sender_avatar?: string | undefined;
|
|
14208
|
+
message_sender_id?: string | undefined;
|
|
14209
|
+
message_sender_username?: string | undefined;
|
|
14210
|
+
message_content?: string | undefined;
|
|
14211
|
+
message_attachment?: string | undefined;
|
|
14212
|
+
message_created_time?: string | undefined;
|
|
14171
14213
|
} & {
|
|
14172
14214
|
clan_id?: string | undefined;
|
|
14173
14215
|
channel_id?: string | undefined;
|
|
@@ -14177,6 +14219,12 @@ export declare const Envelope: {
|
|
|
14177
14219
|
timestamp_seconds?: number | undefined;
|
|
14178
14220
|
operation?: number | undefined;
|
|
14179
14221
|
is_public?: boolean | undefined;
|
|
14222
|
+
message_sender_avatar?: string | undefined;
|
|
14223
|
+
message_sender_id?: string | undefined;
|
|
14224
|
+
message_sender_username?: string | undefined;
|
|
14225
|
+
message_content?: string | undefined;
|
|
14226
|
+
message_attachment?: string | undefined;
|
|
14227
|
+
message_created_time?: string | undefined;
|
|
14180
14228
|
} & { [K_463 in Exclude<keyof I_1["last_pin_message_event"], keyof LastPinMessageEvent>]: never; }) | undefined;
|
|
14181
14229
|
custom_status_event?: ({
|
|
14182
14230
|
clan_id?: string | undefined;
|
|
@@ -23656,6 +23704,12 @@ export declare const LastPinMessageEvent: {
|
|
|
23656
23704
|
timestamp_seconds?: number | undefined;
|
|
23657
23705
|
operation?: number | undefined;
|
|
23658
23706
|
is_public?: boolean | undefined;
|
|
23707
|
+
message_sender_avatar?: string | undefined;
|
|
23708
|
+
message_sender_id?: string | undefined;
|
|
23709
|
+
message_sender_username?: string | undefined;
|
|
23710
|
+
message_content?: string | undefined;
|
|
23711
|
+
message_attachment?: string | undefined;
|
|
23712
|
+
message_created_time?: string | undefined;
|
|
23659
23713
|
} & {
|
|
23660
23714
|
clan_id?: string | undefined;
|
|
23661
23715
|
channel_id?: string | undefined;
|
|
@@ -23665,6 +23719,12 @@ export declare const LastPinMessageEvent: {
|
|
|
23665
23719
|
timestamp_seconds?: number | undefined;
|
|
23666
23720
|
operation?: number | undefined;
|
|
23667
23721
|
is_public?: boolean | undefined;
|
|
23722
|
+
message_sender_avatar?: string | undefined;
|
|
23723
|
+
message_sender_id?: string | undefined;
|
|
23724
|
+
message_sender_username?: string | undefined;
|
|
23725
|
+
message_content?: string | undefined;
|
|
23726
|
+
message_attachment?: string | undefined;
|
|
23727
|
+
message_created_time?: string | undefined;
|
|
23668
23728
|
} & { [K in Exclude<keyof I, keyof LastPinMessageEvent>]: never; }>(base?: I | undefined): LastPinMessageEvent;
|
|
23669
23729
|
fromPartial<I_1 extends {
|
|
23670
23730
|
clan_id?: string | undefined;
|
|
@@ -23675,6 +23735,12 @@ export declare const LastPinMessageEvent: {
|
|
|
23675
23735
|
timestamp_seconds?: number | undefined;
|
|
23676
23736
|
operation?: number | undefined;
|
|
23677
23737
|
is_public?: boolean | undefined;
|
|
23738
|
+
message_sender_avatar?: string | undefined;
|
|
23739
|
+
message_sender_id?: string | undefined;
|
|
23740
|
+
message_sender_username?: string | undefined;
|
|
23741
|
+
message_content?: string | undefined;
|
|
23742
|
+
message_attachment?: string | undefined;
|
|
23743
|
+
message_created_time?: string | undefined;
|
|
23678
23744
|
} & {
|
|
23679
23745
|
clan_id?: string | undefined;
|
|
23680
23746
|
channel_id?: string | undefined;
|
|
@@ -23684,6 +23750,12 @@ export declare const LastPinMessageEvent: {
|
|
|
23684
23750
|
timestamp_seconds?: number | undefined;
|
|
23685
23751
|
operation?: number | undefined;
|
|
23686
23752
|
is_public?: boolean | undefined;
|
|
23753
|
+
message_sender_avatar?: string | undefined;
|
|
23754
|
+
message_sender_id?: string | undefined;
|
|
23755
|
+
message_sender_username?: string | undefined;
|
|
23756
|
+
message_content?: string | undefined;
|
|
23757
|
+
message_attachment?: string | undefined;
|
|
23758
|
+
message_created_time?: string | undefined;
|
|
23687
23759
|
} & { [K_1 in Exclude<keyof I_1, keyof LastPinMessageEvent>]: never; }>(object: I_1): LastPinMessageEvent;
|
|
23688
23760
|
};
|
|
23689
23761
|
export declare const LastSeenMessageEvent: {
|
|
@@ -18085,7 +18085,13 @@ function createBaseLastPinMessageEvent() {
|
|
|
18085
18085
|
user_id: "",
|
|
18086
18086
|
timestamp_seconds: 0,
|
|
18087
18087
|
operation: 0,
|
|
18088
|
-
is_public: false
|
|
18088
|
+
is_public: false,
|
|
18089
|
+
message_sender_avatar: "",
|
|
18090
|
+
message_sender_id: "",
|
|
18091
|
+
message_sender_username: "",
|
|
18092
|
+
message_content: "",
|
|
18093
|
+
message_attachment: "",
|
|
18094
|
+
message_created_time: ""
|
|
18089
18095
|
};
|
|
18090
18096
|
}
|
|
18091
18097
|
var LastPinMessageEvent = {
|
|
@@ -18114,6 +18120,24 @@ var LastPinMessageEvent = {
|
|
|
18114
18120
|
if (message.is_public !== false) {
|
|
18115
18121
|
writer.uint32(64).bool(message.is_public);
|
|
18116
18122
|
}
|
|
18123
|
+
if (message.message_sender_avatar !== "") {
|
|
18124
|
+
writer.uint32(74).string(message.message_sender_avatar);
|
|
18125
|
+
}
|
|
18126
|
+
if (message.message_sender_id !== "") {
|
|
18127
|
+
writer.uint32(82).string(message.message_sender_id);
|
|
18128
|
+
}
|
|
18129
|
+
if (message.message_sender_username !== "") {
|
|
18130
|
+
writer.uint32(90).string(message.message_sender_username);
|
|
18131
|
+
}
|
|
18132
|
+
if (message.message_content !== "") {
|
|
18133
|
+
writer.uint32(98).string(message.message_content);
|
|
18134
|
+
}
|
|
18135
|
+
if (message.message_attachment !== "") {
|
|
18136
|
+
writer.uint32(106).string(message.message_attachment);
|
|
18137
|
+
}
|
|
18138
|
+
if (message.message_created_time !== "") {
|
|
18139
|
+
writer.uint32(114).string(message.message_created_time);
|
|
18140
|
+
}
|
|
18117
18141
|
return writer;
|
|
18118
18142
|
},
|
|
18119
18143
|
decode(input, length) {
|
|
@@ -18171,6 +18195,42 @@ var LastPinMessageEvent = {
|
|
|
18171
18195
|
}
|
|
18172
18196
|
message.is_public = reader.bool();
|
|
18173
18197
|
continue;
|
|
18198
|
+
case 9:
|
|
18199
|
+
if (tag !== 74) {
|
|
18200
|
+
break;
|
|
18201
|
+
}
|
|
18202
|
+
message.message_sender_avatar = reader.string();
|
|
18203
|
+
continue;
|
|
18204
|
+
case 10:
|
|
18205
|
+
if (tag !== 82) {
|
|
18206
|
+
break;
|
|
18207
|
+
}
|
|
18208
|
+
message.message_sender_id = reader.string();
|
|
18209
|
+
continue;
|
|
18210
|
+
case 11:
|
|
18211
|
+
if (tag !== 90) {
|
|
18212
|
+
break;
|
|
18213
|
+
}
|
|
18214
|
+
message.message_sender_username = reader.string();
|
|
18215
|
+
continue;
|
|
18216
|
+
case 12:
|
|
18217
|
+
if (tag !== 98) {
|
|
18218
|
+
break;
|
|
18219
|
+
}
|
|
18220
|
+
message.message_content = reader.string();
|
|
18221
|
+
continue;
|
|
18222
|
+
case 13:
|
|
18223
|
+
if (tag !== 106) {
|
|
18224
|
+
break;
|
|
18225
|
+
}
|
|
18226
|
+
message.message_attachment = reader.string();
|
|
18227
|
+
continue;
|
|
18228
|
+
case 14:
|
|
18229
|
+
if (tag !== 114) {
|
|
18230
|
+
break;
|
|
18231
|
+
}
|
|
18232
|
+
message.message_created_time = reader.string();
|
|
18233
|
+
continue;
|
|
18174
18234
|
}
|
|
18175
18235
|
if ((tag & 7) === 4 || tag === 0) {
|
|
18176
18236
|
break;
|
|
@@ -18188,7 +18248,13 @@ var LastPinMessageEvent = {
|
|
|
18188
18248
|
user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
18189
18249
|
timestamp_seconds: isSet4(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
|
|
18190
18250
|
operation: isSet4(object.operation) ? globalThis.Number(object.operation) : 0,
|
|
18191
|
-
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false
|
|
18251
|
+
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
18252
|
+
message_sender_avatar: isSet4(object.message_sender_avatar) ? globalThis.String(object.message_sender_avatar) : "",
|
|
18253
|
+
message_sender_id: isSet4(object.message_sender_id) ? globalThis.String(object.message_sender_id) : "",
|
|
18254
|
+
message_sender_username: isSet4(object.message_sender_username) ? globalThis.String(object.message_sender_username) : "",
|
|
18255
|
+
message_content: isSet4(object.message_content) ? globalThis.String(object.message_content) : "",
|
|
18256
|
+
message_attachment: isSet4(object.message_attachment) ? globalThis.String(object.message_attachment) : "",
|
|
18257
|
+
message_created_time: isSet4(object.message_created_time) ? globalThis.String(object.message_created_time) : ""
|
|
18192
18258
|
};
|
|
18193
18259
|
},
|
|
18194
18260
|
toJSON(message) {
|
|
@@ -18217,13 +18283,31 @@ var LastPinMessageEvent = {
|
|
|
18217
18283
|
if (message.is_public !== false) {
|
|
18218
18284
|
obj.is_public = message.is_public;
|
|
18219
18285
|
}
|
|
18286
|
+
if (message.message_sender_avatar !== "") {
|
|
18287
|
+
obj.message_sender_avatar = message.message_sender_avatar;
|
|
18288
|
+
}
|
|
18289
|
+
if (message.message_sender_id !== "") {
|
|
18290
|
+
obj.message_sender_id = message.message_sender_id;
|
|
18291
|
+
}
|
|
18292
|
+
if (message.message_sender_username !== "") {
|
|
18293
|
+
obj.message_sender_username = message.message_sender_username;
|
|
18294
|
+
}
|
|
18295
|
+
if (message.message_content !== "") {
|
|
18296
|
+
obj.message_content = message.message_content;
|
|
18297
|
+
}
|
|
18298
|
+
if (message.message_attachment !== "") {
|
|
18299
|
+
obj.message_attachment = message.message_attachment;
|
|
18300
|
+
}
|
|
18301
|
+
if (message.message_created_time !== "") {
|
|
18302
|
+
obj.message_created_time = message.message_created_time;
|
|
18303
|
+
}
|
|
18220
18304
|
return obj;
|
|
18221
18305
|
},
|
|
18222
18306
|
create(base) {
|
|
18223
18307
|
return LastPinMessageEvent.fromPartial(base != null ? base : {});
|
|
18224
18308
|
},
|
|
18225
18309
|
fromPartial(object) {
|
|
18226
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18310
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
18227
18311
|
const message = createBaseLastPinMessageEvent();
|
|
18228
18312
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
18229
18313
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
@@ -18233,6 +18317,12 @@ var LastPinMessageEvent = {
|
|
|
18233
18317
|
message.timestamp_seconds = (_f = object.timestamp_seconds) != null ? _f : 0;
|
|
18234
18318
|
message.operation = (_g = object.operation) != null ? _g : 0;
|
|
18235
18319
|
message.is_public = (_h = object.is_public) != null ? _h : false;
|
|
18320
|
+
message.message_sender_avatar = (_i = object.message_sender_avatar) != null ? _i : "";
|
|
18321
|
+
message.message_sender_id = (_j = object.message_sender_id) != null ? _j : "";
|
|
18322
|
+
message.message_sender_username = (_k = object.message_sender_username) != null ? _k : "";
|
|
18323
|
+
message.message_content = (_l = object.message_content) != null ? _l : "";
|
|
18324
|
+
message.message_attachment = (_m = object.message_attachment) != null ? _m : "";
|
|
18325
|
+
message.message_created_time = (_n = object.message_created_time) != null ? _n : "";
|
|
18236
18326
|
return message;
|
|
18237
18327
|
}
|
|
18238
18328
|
};
|
|
@@ -18072,7 +18072,13 @@ function createBaseLastPinMessageEvent() {
|
|
|
18072
18072
|
user_id: "",
|
|
18073
18073
|
timestamp_seconds: 0,
|
|
18074
18074
|
operation: 0,
|
|
18075
|
-
is_public: false
|
|
18075
|
+
is_public: false,
|
|
18076
|
+
message_sender_avatar: "",
|
|
18077
|
+
message_sender_id: "",
|
|
18078
|
+
message_sender_username: "",
|
|
18079
|
+
message_content: "",
|
|
18080
|
+
message_attachment: "",
|
|
18081
|
+
message_created_time: ""
|
|
18076
18082
|
};
|
|
18077
18083
|
}
|
|
18078
18084
|
var LastPinMessageEvent = {
|
|
@@ -18101,6 +18107,24 @@ var LastPinMessageEvent = {
|
|
|
18101
18107
|
if (message.is_public !== false) {
|
|
18102
18108
|
writer.uint32(64).bool(message.is_public);
|
|
18103
18109
|
}
|
|
18110
|
+
if (message.message_sender_avatar !== "") {
|
|
18111
|
+
writer.uint32(74).string(message.message_sender_avatar);
|
|
18112
|
+
}
|
|
18113
|
+
if (message.message_sender_id !== "") {
|
|
18114
|
+
writer.uint32(82).string(message.message_sender_id);
|
|
18115
|
+
}
|
|
18116
|
+
if (message.message_sender_username !== "") {
|
|
18117
|
+
writer.uint32(90).string(message.message_sender_username);
|
|
18118
|
+
}
|
|
18119
|
+
if (message.message_content !== "") {
|
|
18120
|
+
writer.uint32(98).string(message.message_content);
|
|
18121
|
+
}
|
|
18122
|
+
if (message.message_attachment !== "") {
|
|
18123
|
+
writer.uint32(106).string(message.message_attachment);
|
|
18124
|
+
}
|
|
18125
|
+
if (message.message_created_time !== "") {
|
|
18126
|
+
writer.uint32(114).string(message.message_created_time);
|
|
18127
|
+
}
|
|
18104
18128
|
return writer;
|
|
18105
18129
|
},
|
|
18106
18130
|
decode(input, length) {
|
|
@@ -18158,6 +18182,42 @@ var LastPinMessageEvent = {
|
|
|
18158
18182
|
}
|
|
18159
18183
|
message.is_public = reader.bool();
|
|
18160
18184
|
continue;
|
|
18185
|
+
case 9:
|
|
18186
|
+
if (tag !== 74) {
|
|
18187
|
+
break;
|
|
18188
|
+
}
|
|
18189
|
+
message.message_sender_avatar = reader.string();
|
|
18190
|
+
continue;
|
|
18191
|
+
case 10:
|
|
18192
|
+
if (tag !== 82) {
|
|
18193
|
+
break;
|
|
18194
|
+
}
|
|
18195
|
+
message.message_sender_id = reader.string();
|
|
18196
|
+
continue;
|
|
18197
|
+
case 11:
|
|
18198
|
+
if (tag !== 90) {
|
|
18199
|
+
break;
|
|
18200
|
+
}
|
|
18201
|
+
message.message_sender_username = reader.string();
|
|
18202
|
+
continue;
|
|
18203
|
+
case 12:
|
|
18204
|
+
if (tag !== 98) {
|
|
18205
|
+
break;
|
|
18206
|
+
}
|
|
18207
|
+
message.message_content = reader.string();
|
|
18208
|
+
continue;
|
|
18209
|
+
case 13:
|
|
18210
|
+
if (tag !== 106) {
|
|
18211
|
+
break;
|
|
18212
|
+
}
|
|
18213
|
+
message.message_attachment = reader.string();
|
|
18214
|
+
continue;
|
|
18215
|
+
case 14:
|
|
18216
|
+
if (tag !== 114) {
|
|
18217
|
+
break;
|
|
18218
|
+
}
|
|
18219
|
+
message.message_created_time = reader.string();
|
|
18220
|
+
continue;
|
|
18161
18221
|
}
|
|
18162
18222
|
if ((tag & 7) === 4 || tag === 0) {
|
|
18163
18223
|
break;
|
|
@@ -18175,7 +18235,13 @@ var LastPinMessageEvent = {
|
|
|
18175
18235
|
user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
18176
18236
|
timestamp_seconds: isSet4(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
|
|
18177
18237
|
operation: isSet4(object.operation) ? globalThis.Number(object.operation) : 0,
|
|
18178
|
-
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false
|
|
18238
|
+
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
18239
|
+
message_sender_avatar: isSet4(object.message_sender_avatar) ? globalThis.String(object.message_sender_avatar) : "",
|
|
18240
|
+
message_sender_id: isSet4(object.message_sender_id) ? globalThis.String(object.message_sender_id) : "",
|
|
18241
|
+
message_sender_username: isSet4(object.message_sender_username) ? globalThis.String(object.message_sender_username) : "",
|
|
18242
|
+
message_content: isSet4(object.message_content) ? globalThis.String(object.message_content) : "",
|
|
18243
|
+
message_attachment: isSet4(object.message_attachment) ? globalThis.String(object.message_attachment) : "",
|
|
18244
|
+
message_created_time: isSet4(object.message_created_time) ? globalThis.String(object.message_created_time) : ""
|
|
18179
18245
|
};
|
|
18180
18246
|
},
|
|
18181
18247
|
toJSON(message) {
|
|
@@ -18204,13 +18270,31 @@ var LastPinMessageEvent = {
|
|
|
18204
18270
|
if (message.is_public !== false) {
|
|
18205
18271
|
obj.is_public = message.is_public;
|
|
18206
18272
|
}
|
|
18273
|
+
if (message.message_sender_avatar !== "") {
|
|
18274
|
+
obj.message_sender_avatar = message.message_sender_avatar;
|
|
18275
|
+
}
|
|
18276
|
+
if (message.message_sender_id !== "") {
|
|
18277
|
+
obj.message_sender_id = message.message_sender_id;
|
|
18278
|
+
}
|
|
18279
|
+
if (message.message_sender_username !== "") {
|
|
18280
|
+
obj.message_sender_username = message.message_sender_username;
|
|
18281
|
+
}
|
|
18282
|
+
if (message.message_content !== "") {
|
|
18283
|
+
obj.message_content = message.message_content;
|
|
18284
|
+
}
|
|
18285
|
+
if (message.message_attachment !== "") {
|
|
18286
|
+
obj.message_attachment = message.message_attachment;
|
|
18287
|
+
}
|
|
18288
|
+
if (message.message_created_time !== "") {
|
|
18289
|
+
obj.message_created_time = message.message_created_time;
|
|
18290
|
+
}
|
|
18207
18291
|
return obj;
|
|
18208
18292
|
},
|
|
18209
18293
|
create(base) {
|
|
18210
18294
|
return LastPinMessageEvent.fromPartial(base != null ? base : {});
|
|
18211
18295
|
},
|
|
18212
18296
|
fromPartial(object) {
|
|
18213
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18297
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
18214
18298
|
const message = createBaseLastPinMessageEvent();
|
|
18215
18299
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
18216
18300
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
@@ -18220,6 +18304,12 @@ var LastPinMessageEvent = {
|
|
|
18220
18304
|
message.timestamp_seconds = (_f = object.timestamp_seconds) != null ? _f : 0;
|
|
18221
18305
|
message.operation = (_g = object.operation) != null ? _g : 0;
|
|
18222
18306
|
message.is_public = (_h = object.is_public) != null ? _h : false;
|
|
18307
|
+
message.message_sender_avatar = (_i = object.message_sender_avatar) != null ? _i : "";
|
|
18308
|
+
message.message_sender_id = (_j = object.message_sender_id) != null ? _j : "";
|
|
18309
|
+
message.message_sender_username = (_k = object.message_sender_username) != null ? _k : "";
|
|
18310
|
+
message.message_content = (_l = object.message_content) != null ? _l : "";
|
|
18311
|
+
message.message_attachment = (_m = object.message_attachment) != null ? _m : "";
|
|
18312
|
+
message.message_created_time = (_n = object.message_created_time) != null ? _n : "";
|
|
18223
18313
|
return message;
|
|
18224
18314
|
}
|
|
18225
18315
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.19",
|
|
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
|
@@ -909,6 +909,18 @@ export interface LastPinMessageEvent {
|
|
|
909
909
|
operation: number;
|
|
910
910
|
/** is public */
|
|
911
911
|
is_public: boolean;
|
|
912
|
+
/** avatar */
|
|
913
|
+
message_sender_avatar: string;
|
|
914
|
+
/** message sender id */
|
|
915
|
+
message_sender_id: string;
|
|
916
|
+
/** message sender username */
|
|
917
|
+
message_sender_username: string;
|
|
918
|
+
/** message content */
|
|
919
|
+
message_content: string;
|
|
920
|
+
/** attachment */
|
|
921
|
+
message_attachment: string;
|
|
922
|
+
/** create time */
|
|
923
|
+
message_created_time: string;
|
|
912
924
|
}
|
|
913
925
|
|
|
914
926
|
/** Last seen message by user */
|
|
@@ -6951,6 +6963,12 @@ function createBaseLastPinMessageEvent(): LastPinMessageEvent {
|
|
|
6951
6963
|
timestamp_seconds: 0,
|
|
6952
6964
|
operation: 0,
|
|
6953
6965
|
is_public: false,
|
|
6966
|
+
message_sender_avatar: "",
|
|
6967
|
+
message_sender_id: "",
|
|
6968
|
+
message_sender_username: "",
|
|
6969
|
+
message_content: "",
|
|
6970
|
+
message_attachment: "",
|
|
6971
|
+
message_created_time: "",
|
|
6954
6972
|
};
|
|
6955
6973
|
}
|
|
6956
6974
|
|
|
@@ -6980,6 +6998,24 @@ export const LastPinMessageEvent = {
|
|
|
6980
6998
|
if (message.is_public !== false) {
|
|
6981
6999
|
writer.uint32(64).bool(message.is_public);
|
|
6982
7000
|
}
|
|
7001
|
+
if (message.message_sender_avatar !== "") {
|
|
7002
|
+
writer.uint32(74).string(message.message_sender_avatar);
|
|
7003
|
+
}
|
|
7004
|
+
if (message.message_sender_id !== "") {
|
|
7005
|
+
writer.uint32(82).string(message.message_sender_id);
|
|
7006
|
+
}
|
|
7007
|
+
if (message.message_sender_username !== "") {
|
|
7008
|
+
writer.uint32(90).string(message.message_sender_username);
|
|
7009
|
+
}
|
|
7010
|
+
if (message.message_content !== "") {
|
|
7011
|
+
writer.uint32(98).string(message.message_content);
|
|
7012
|
+
}
|
|
7013
|
+
if (message.message_attachment !== "") {
|
|
7014
|
+
writer.uint32(106).string(message.message_attachment);
|
|
7015
|
+
}
|
|
7016
|
+
if (message.message_created_time !== "") {
|
|
7017
|
+
writer.uint32(114).string(message.message_created_time);
|
|
7018
|
+
}
|
|
6983
7019
|
return writer;
|
|
6984
7020
|
},
|
|
6985
7021
|
|
|
@@ -7046,6 +7082,48 @@ export const LastPinMessageEvent = {
|
|
|
7046
7082
|
|
|
7047
7083
|
message.is_public = reader.bool();
|
|
7048
7084
|
continue;
|
|
7085
|
+
case 9:
|
|
7086
|
+
if (tag !== 74) {
|
|
7087
|
+
break;
|
|
7088
|
+
}
|
|
7089
|
+
|
|
7090
|
+
message.message_sender_avatar = reader.string();
|
|
7091
|
+
continue;
|
|
7092
|
+
case 10:
|
|
7093
|
+
if (tag !== 82) {
|
|
7094
|
+
break;
|
|
7095
|
+
}
|
|
7096
|
+
|
|
7097
|
+
message.message_sender_id = reader.string();
|
|
7098
|
+
continue;
|
|
7099
|
+
case 11:
|
|
7100
|
+
if (tag !== 90) {
|
|
7101
|
+
break;
|
|
7102
|
+
}
|
|
7103
|
+
|
|
7104
|
+
message.message_sender_username = reader.string();
|
|
7105
|
+
continue;
|
|
7106
|
+
case 12:
|
|
7107
|
+
if (tag !== 98) {
|
|
7108
|
+
break;
|
|
7109
|
+
}
|
|
7110
|
+
|
|
7111
|
+
message.message_content = reader.string();
|
|
7112
|
+
continue;
|
|
7113
|
+
case 13:
|
|
7114
|
+
if (tag !== 106) {
|
|
7115
|
+
break;
|
|
7116
|
+
}
|
|
7117
|
+
|
|
7118
|
+
message.message_attachment = reader.string();
|
|
7119
|
+
continue;
|
|
7120
|
+
case 14:
|
|
7121
|
+
if (tag !== 114) {
|
|
7122
|
+
break;
|
|
7123
|
+
}
|
|
7124
|
+
|
|
7125
|
+
message.message_created_time = reader.string();
|
|
7126
|
+
continue;
|
|
7049
7127
|
}
|
|
7050
7128
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7051
7129
|
break;
|
|
@@ -7065,6 +7143,14 @@ export const LastPinMessageEvent = {
|
|
|
7065
7143
|
timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
|
|
7066
7144
|
operation: isSet(object.operation) ? globalThis.Number(object.operation) : 0,
|
|
7067
7145
|
is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
7146
|
+
message_sender_avatar: isSet(object.message_sender_avatar) ? globalThis.String(object.message_sender_avatar) : "",
|
|
7147
|
+
message_sender_id: isSet(object.message_sender_id) ? globalThis.String(object.message_sender_id) : "",
|
|
7148
|
+
message_sender_username: isSet(object.message_sender_username)
|
|
7149
|
+
? globalThis.String(object.message_sender_username)
|
|
7150
|
+
: "",
|
|
7151
|
+
message_content: isSet(object.message_content) ? globalThis.String(object.message_content) : "",
|
|
7152
|
+
message_attachment: isSet(object.message_attachment) ? globalThis.String(object.message_attachment) : "",
|
|
7153
|
+
message_created_time: isSet(object.message_created_time) ? globalThis.String(object.message_created_time) : "",
|
|
7068
7154
|
};
|
|
7069
7155
|
},
|
|
7070
7156
|
|
|
@@ -7094,6 +7180,24 @@ export const LastPinMessageEvent = {
|
|
|
7094
7180
|
if (message.is_public !== false) {
|
|
7095
7181
|
obj.is_public = message.is_public;
|
|
7096
7182
|
}
|
|
7183
|
+
if (message.message_sender_avatar !== "") {
|
|
7184
|
+
obj.message_sender_avatar = message.message_sender_avatar;
|
|
7185
|
+
}
|
|
7186
|
+
if (message.message_sender_id !== "") {
|
|
7187
|
+
obj.message_sender_id = message.message_sender_id;
|
|
7188
|
+
}
|
|
7189
|
+
if (message.message_sender_username !== "") {
|
|
7190
|
+
obj.message_sender_username = message.message_sender_username;
|
|
7191
|
+
}
|
|
7192
|
+
if (message.message_content !== "") {
|
|
7193
|
+
obj.message_content = message.message_content;
|
|
7194
|
+
}
|
|
7195
|
+
if (message.message_attachment !== "") {
|
|
7196
|
+
obj.message_attachment = message.message_attachment;
|
|
7197
|
+
}
|
|
7198
|
+
if (message.message_created_time !== "") {
|
|
7199
|
+
obj.message_created_time = message.message_created_time;
|
|
7200
|
+
}
|
|
7097
7201
|
return obj;
|
|
7098
7202
|
},
|
|
7099
7203
|
|
|
@@ -7110,6 +7214,12 @@ export const LastPinMessageEvent = {
|
|
|
7110
7214
|
message.timestamp_seconds = object.timestamp_seconds ?? 0;
|
|
7111
7215
|
message.operation = object.operation ?? 0;
|
|
7112
7216
|
message.is_public = object.is_public ?? false;
|
|
7217
|
+
message.message_sender_avatar = object.message_sender_avatar ?? "";
|
|
7218
|
+
message.message_sender_id = object.message_sender_id ?? "";
|
|
7219
|
+
message.message_sender_username = object.message_sender_username ?? "";
|
|
7220
|
+
message.message_content = object.message_content ?? "";
|
|
7221
|
+
message.message_attachment = object.message_attachment ?? "";
|
|
7222
|
+
message.message_created_time = object.message_created_time ?? "";
|
|
7113
7223
|
return message;
|
|
7114
7224
|
},
|
|
7115
7225
|
};
|