mezon-js-protobuf 1.8.25 → 1.8.26
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.
|
@@ -436,6 +436,8 @@ export interface ChannelMessageUpdate {
|
|
|
436
436
|
topic_id: string;
|
|
437
437
|
/** update message topic */
|
|
438
438
|
is_update_msg_topic: boolean;
|
|
439
|
+
/** old mentions */
|
|
440
|
+
old_mentions: string;
|
|
439
441
|
}
|
|
440
442
|
/** Remove a message previously sent to a realtime channel. */
|
|
441
443
|
export interface ChannelMessageRemove {
|
|
@@ -1388,6 +1390,7 @@ export declare const Envelope: {
|
|
|
1388
1390
|
hide_editted?: boolean | undefined;
|
|
1389
1391
|
topic_id?: string | undefined;
|
|
1390
1392
|
is_update_msg_topic?: boolean | undefined;
|
|
1393
|
+
old_mentions?: string | undefined;
|
|
1391
1394
|
} | undefined;
|
|
1392
1395
|
channel_message_remove?: {
|
|
1393
1396
|
clan_id?: string | undefined;
|
|
@@ -3597,6 +3600,7 @@ export declare const Envelope: {
|
|
|
3597
3600
|
hide_editted?: boolean | undefined;
|
|
3598
3601
|
topic_id?: string | undefined;
|
|
3599
3602
|
is_update_msg_topic?: boolean | undefined;
|
|
3603
|
+
old_mentions?: string | undefined;
|
|
3600
3604
|
} & {
|
|
3601
3605
|
clan_id?: string | undefined;
|
|
3602
3606
|
channel_id?: string | undefined;
|
|
@@ -3677,6 +3681,7 @@ export declare const Envelope: {
|
|
|
3677
3681
|
hide_editted?: boolean | undefined;
|
|
3678
3682
|
topic_id?: string | undefined;
|
|
3679
3683
|
is_update_msg_topic?: boolean | undefined;
|
|
3684
|
+
old_mentions?: string | undefined;
|
|
3680
3685
|
} & { [K_20 in Exclude<keyof I["channel_message_update"], keyof ChannelMessageUpdate>]: never; }) | undefined;
|
|
3681
3686
|
channel_message_remove?: ({
|
|
3682
3687
|
clan_id?: string | undefined;
|
|
@@ -11225,6 +11230,7 @@ export declare const Envelope: {
|
|
|
11225
11230
|
hide_editted?: boolean | undefined;
|
|
11226
11231
|
topic_id?: string | undefined;
|
|
11227
11232
|
is_update_msg_topic?: boolean | undefined;
|
|
11233
|
+
old_mentions?: string | undefined;
|
|
11228
11234
|
} | undefined;
|
|
11229
11235
|
channel_message_remove?: {
|
|
11230
11236
|
clan_id?: string | undefined;
|
|
@@ -13434,6 +13440,7 @@ export declare const Envelope: {
|
|
|
13434
13440
|
hide_editted?: boolean | undefined;
|
|
13435
13441
|
topic_id?: string | undefined;
|
|
13436
13442
|
is_update_msg_topic?: boolean | undefined;
|
|
13443
|
+
old_mentions?: string | undefined;
|
|
13437
13444
|
} & {
|
|
13438
13445
|
clan_id?: string | undefined;
|
|
13439
13446
|
channel_id?: string | undefined;
|
|
@@ -13514,6 +13521,7 @@ export declare const Envelope: {
|
|
|
13514
13521
|
hide_editted?: boolean | undefined;
|
|
13515
13522
|
topic_id?: string | undefined;
|
|
13516
13523
|
is_update_msg_topic?: boolean | undefined;
|
|
13524
|
+
old_mentions?: string | undefined;
|
|
13517
13525
|
} & { [K_413 in Exclude<keyof I_1["channel_message_update"], keyof ChannelMessageUpdate>]: never; }) | undefined;
|
|
13518
13526
|
channel_message_remove?: ({
|
|
13519
13527
|
clan_id?: string | undefined;
|
|
@@ -23078,6 +23086,7 @@ export declare const ChannelMessageUpdate: {
|
|
|
23078
23086
|
hide_editted?: boolean | undefined;
|
|
23079
23087
|
topic_id?: string | undefined;
|
|
23080
23088
|
is_update_msg_topic?: boolean | undefined;
|
|
23089
|
+
old_mentions?: string | undefined;
|
|
23081
23090
|
} & {
|
|
23082
23091
|
clan_id?: string | undefined;
|
|
23083
23092
|
channel_id?: string | undefined;
|
|
@@ -23158,6 +23167,7 @@ export declare const ChannelMessageUpdate: {
|
|
|
23158
23167
|
hide_editted?: boolean | undefined;
|
|
23159
23168
|
topic_id?: string | undefined;
|
|
23160
23169
|
is_update_msg_topic?: boolean | undefined;
|
|
23170
|
+
old_mentions?: string | undefined;
|
|
23161
23171
|
} & { [K_4 in Exclude<keyof I, keyof ChannelMessageUpdate>]: never; }>(base?: I | undefined): ChannelMessageUpdate;
|
|
23162
23172
|
fromPartial<I_1 extends {
|
|
23163
23173
|
clan_id?: string | undefined;
|
|
@@ -23188,6 +23198,7 @@ export declare const ChannelMessageUpdate: {
|
|
|
23188
23198
|
hide_editted?: boolean | undefined;
|
|
23189
23199
|
topic_id?: string | undefined;
|
|
23190
23200
|
is_update_msg_topic?: boolean | undefined;
|
|
23201
|
+
old_mentions?: string | undefined;
|
|
23191
23202
|
} & {
|
|
23192
23203
|
clan_id?: string | undefined;
|
|
23193
23204
|
channel_id?: string | undefined;
|
|
@@ -23268,6 +23279,7 @@ export declare const ChannelMessageUpdate: {
|
|
|
23268
23279
|
hide_editted?: boolean | undefined;
|
|
23269
23280
|
topic_id?: string | undefined;
|
|
23270
23281
|
is_update_msg_topic?: boolean | undefined;
|
|
23282
|
+
old_mentions?: string | undefined;
|
|
23271
23283
|
} & { [K_9 in Exclude<keyof I_1, keyof ChannelMessageUpdate>]: never; }>(object: I_1): ChannelMessageUpdate;
|
|
23272
23284
|
};
|
|
23273
23285
|
export declare const ChannelMessageRemove: {
|
|
@@ -17154,7 +17154,8 @@ function createBaseChannelMessageUpdate() {
|
|
|
17154
17154
|
is_public: false,
|
|
17155
17155
|
hide_editted: false,
|
|
17156
17156
|
topic_id: "",
|
|
17157
|
-
is_update_msg_topic: false
|
|
17157
|
+
is_update_msg_topic: false,
|
|
17158
|
+
old_mentions: ""
|
|
17158
17159
|
};
|
|
17159
17160
|
}
|
|
17160
17161
|
var ChannelMessageUpdate = {
|
|
@@ -17192,6 +17193,9 @@ var ChannelMessageUpdate = {
|
|
|
17192
17193
|
if (message.is_update_msg_topic !== false) {
|
|
17193
17194
|
writer.uint32(88).bool(message.is_update_msg_topic);
|
|
17194
17195
|
}
|
|
17196
|
+
if (message.old_mentions !== "") {
|
|
17197
|
+
writer.uint32(98).string(message.old_mentions);
|
|
17198
|
+
}
|
|
17195
17199
|
return writer;
|
|
17196
17200
|
},
|
|
17197
17201
|
decode(input, length) {
|
|
@@ -17267,6 +17271,12 @@ var ChannelMessageUpdate = {
|
|
|
17267
17271
|
}
|
|
17268
17272
|
message.is_update_msg_topic = reader.bool();
|
|
17269
17273
|
continue;
|
|
17274
|
+
case 12:
|
|
17275
|
+
if (tag !== 98) {
|
|
17276
|
+
break;
|
|
17277
|
+
}
|
|
17278
|
+
message.old_mentions = reader.string();
|
|
17279
|
+
continue;
|
|
17270
17280
|
}
|
|
17271
17281
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17272
17282
|
break;
|
|
@@ -17287,7 +17297,8 @@ var ChannelMessageUpdate = {
|
|
|
17287
17297
|
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
17288
17298
|
hide_editted: isSet4(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
|
|
17289
17299
|
topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
17290
|
-
is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false
|
|
17300
|
+
is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
|
|
17301
|
+
old_mentions: isSet4(object.old_mentions) ? globalThis.String(object.old_mentions) : ""
|
|
17291
17302
|
};
|
|
17292
17303
|
},
|
|
17293
17304
|
toJSON(message) {
|
|
@@ -17326,13 +17337,16 @@ var ChannelMessageUpdate = {
|
|
|
17326
17337
|
if (message.is_update_msg_topic !== false) {
|
|
17327
17338
|
obj.is_update_msg_topic = message.is_update_msg_topic;
|
|
17328
17339
|
}
|
|
17340
|
+
if (message.old_mentions !== "") {
|
|
17341
|
+
obj.old_mentions = message.old_mentions;
|
|
17342
|
+
}
|
|
17329
17343
|
return obj;
|
|
17330
17344
|
},
|
|
17331
17345
|
create(base) {
|
|
17332
17346
|
return ChannelMessageUpdate.fromPartial(base != null ? base : {});
|
|
17333
17347
|
},
|
|
17334
17348
|
fromPartial(object) {
|
|
17335
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
17349
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
17336
17350
|
const message = createBaseChannelMessageUpdate();
|
|
17337
17351
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
17338
17352
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
@@ -17345,6 +17359,7 @@ var ChannelMessageUpdate = {
|
|
|
17345
17359
|
message.hide_editted = (_i = object.hide_editted) != null ? _i : false;
|
|
17346
17360
|
message.topic_id = (_j = object.topic_id) != null ? _j : "";
|
|
17347
17361
|
message.is_update_msg_topic = (_k = object.is_update_msg_topic) != null ? _k : false;
|
|
17362
|
+
message.old_mentions = (_l = object.old_mentions) != null ? _l : "";
|
|
17348
17363
|
return message;
|
|
17349
17364
|
}
|
|
17350
17365
|
};
|
|
@@ -17141,7 +17141,8 @@ function createBaseChannelMessageUpdate() {
|
|
|
17141
17141
|
is_public: false,
|
|
17142
17142
|
hide_editted: false,
|
|
17143
17143
|
topic_id: "",
|
|
17144
|
-
is_update_msg_topic: false
|
|
17144
|
+
is_update_msg_topic: false,
|
|
17145
|
+
old_mentions: ""
|
|
17145
17146
|
};
|
|
17146
17147
|
}
|
|
17147
17148
|
var ChannelMessageUpdate = {
|
|
@@ -17179,6 +17180,9 @@ var ChannelMessageUpdate = {
|
|
|
17179
17180
|
if (message.is_update_msg_topic !== false) {
|
|
17180
17181
|
writer.uint32(88).bool(message.is_update_msg_topic);
|
|
17181
17182
|
}
|
|
17183
|
+
if (message.old_mentions !== "") {
|
|
17184
|
+
writer.uint32(98).string(message.old_mentions);
|
|
17185
|
+
}
|
|
17182
17186
|
return writer;
|
|
17183
17187
|
},
|
|
17184
17188
|
decode(input, length) {
|
|
@@ -17254,6 +17258,12 @@ var ChannelMessageUpdate = {
|
|
|
17254
17258
|
}
|
|
17255
17259
|
message.is_update_msg_topic = reader.bool();
|
|
17256
17260
|
continue;
|
|
17261
|
+
case 12:
|
|
17262
|
+
if (tag !== 98) {
|
|
17263
|
+
break;
|
|
17264
|
+
}
|
|
17265
|
+
message.old_mentions = reader.string();
|
|
17266
|
+
continue;
|
|
17257
17267
|
}
|
|
17258
17268
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17259
17269
|
break;
|
|
@@ -17274,7 +17284,8 @@ var ChannelMessageUpdate = {
|
|
|
17274
17284
|
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
17275
17285
|
hide_editted: isSet4(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
|
|
17276
17286
|
topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
17277
|
-
is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false
|
|
17287
|
+
is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
|
|
17288
|
+
old_mentions: isSet4(object.old_mentions) ? globalThis.String(object.old_mentions) : ""
|
|
17278
17289
|
};
|
|
17279
17290
|
},
|
|
17280
17291
|
toJSON(message) {
|
|
@@ -17313,13 +17324,16 @@ var ChannelMessageUpdate = {
|
|
|
17313
17324
|
if (message.is_update_msg_topic !== false) {
|
|
17314
17325
|
obj.is_update_msg_topic = message.is_update_msg_topic;
|
|
17315
17326
|
}
|
|
17327
|
+
if (message.old_mentions !== "") {
|
|
17328
|
+
obj.old_mentions = message.old_mentions;
|
|
17329
|
+
}
|
|
17316
17330
|
return obj;
|
|
17317
17331
|
},
|
|
17318
17332
|
create(base) {
|
|
17319
17333
|
return ChannelMessageUpdate.fromPartial(base != null ? base : {});
|
|
17320
17334
|
},
|
|
17321
17335
|
fromPartial(object) {
|
|
17322
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
17336
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
17323
17337
|
const message = createBaseChannelMessageUpdate();
|
|
17324
17338
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
17325
17339
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
@@ -17332,6 +17346,7 @@ var ChannelMessageUpdate = {
|
|
|
17332
17346
|
message.hide_editted = (_i = object.hide_editted) != null ? _i : false;
|
|
17333
17347
|
message.topic_id = (_j = object.topic_id) != null ? _j : "";
|
|
17334
17348
|
message.is_update_msg_topic = (_k = object.is_update_msg_topic) != null ? _k : false;
|
|
17349
|
+
message.old_mentions = (_l = object.old_mentions) != null ? _l : "";
|
|
17335
17350
|
return message;
|
|
17336
17351
|
}
|
|
17337
17352
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.26",
|
|
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
|
@@ -725,6 +725,8 @@ export interface ChannelMessageUpdate {
|
|
|
725
725
|
topic_id: string;
|
|
726
726
|
/** update message topic */
|
|
727
727
|
is_update_msg_topic: boolean;
|
|
728
|
+
/** old mentions */
|
|
729
|
+
old_mentions: string;
|
|
728
730
|
}
|
|
729
731
|
|
|
730
732
|
/** Remove a message previously sent to a realtime channel. */
|
|
@@ -5909,6 +5911,7 @@ function createBaseChannelMessageUpdate(): ChannelMessageUpdate {
|
|
|
5909
5911
|
hide_editted: false,
|
|
5910
5912
|
topic_id: "",
|
|
5911
5913
|
is_update_msg_topic: false,
|
|
5914
|
+
old_mentions: "",
|
|
5912
5915
|
};
|
|
5913
5916
|
}
|
|
5914
5917
|
|
|
@@ -5947,6 +5950,9 @@ export const ChannelMessageUpdate = {
|
|
|
5947
5950
|
if (message.is_update_msg_topic !== false) {
|
|
5948
5951
|
writer.uint32(88).bool(message.is_update_msg_topic);
|
|
5949
5952
|
}
|
|
5953
|
+
if (message.old_mentions !== "") {
|
|
5954
|
+
writer.uint32(98).string(message.old_mentions);
|
|
5955
|
+
}
|
|
5950
5956
|
return writer;
|
|
5951
5957
|
},
|
|
5952
5958
|
|
|
@@ -6034,6 +6040,13 @@ export const ChannelMessageUpdate = {
|
|
|
6034
6040
|
|
|
6035
6041
|
message.is_update_msg_topic = reader.bool();
|
|
6036
6042
|
continue;
|
|
6043
|
+
case 12:
|
|
6044
|
+
if (tag !== 98) {
|
|
6045
|
+
break;
|
|
6046
|
+
}
|
|
6047
|
+
|
|
6048
|
+
message.old_mentions = reader.string();
|
|
6049
|
+
continue;
|
|
6037
6050
|
}
|
|
6038
6051
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6039
6052
|
break;
|
|
@@ -6060,6 +6073,7 @@ export const ChannelMessageUpdate = {
|
|
|
6060
6073
|
hide_editted: isSet(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
|
|
6061
6074
|
topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
6062
6075
|
is_update_msg_topic: isSet(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
|
|
6076
|
+
old_mentions: isSet(object.old_mentions) ? globalThis.String(object.old_mentions) : "",
|
|
6063
6077
|
};
|
|
6064
6078
|
},
|
|
6065
6079
|
|
|
@@ -6098,6 +6112,9 @@ export const ChannelMessageUpdate = {
|
|
|
6098
6112
|
if (message.is_update_msg_topic !== false) {
|
|
6099
6113
|
obj.is_update_msg_topic = message.is_update_msg_topic;
|
|
6100
6114
|
}
|
|
6115
|
+
if (message.old_mentions !== "") {
|
|
6116
|
+
obj.old_mentions = message.old_mentions;
|
|
6117
|
+
}
|
|
6101
6118
|
return obj;
|
|
6102
6119
|
},
|
|
6103
6120
|
|
|
@@ -6117,6 +6134,7 @@ export const ChannelMessageUpdate = {
|
|
|
6117
6134
|
message.hide_editted = object.hide_editted ?? false;
|
|
6118
6135
|
message.topic_id = object.topic_id ?? "";
|
|
6119
6136
|
message.is_update_msg_topic = object.is_update_msg_topic ?? false;
|
|
6137
|
+
message.old_mentions = object.old_mentions ?? "";
|
|
6120
6138
|
return message;
|
|
6121
6139
|
},
|
|
6122
6140
|
};
|