mezon-js-protobuf 1.6.55 → 1.6.56
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 +2 -2
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +12 -0
- package/dist/mezon-js-protobuf.cjs.js +17 -3
- package/dist/mezon-js-protobuf.esm.mjs +17 -3
- package/google/protobuf/struct.ts +554 -554
- package/google/protobuf/timestamp.ts +223 -223
- package/google/protobuf/wrappers.ts +670 -670
- package/package.json +1 -1
- package/rtapi/realtime.ts +20 -3
package/api/api.ts
CHANGED
|
@@ -362,6 +362,8 @@ export interface ChannelMessageRemove {
|
|
|
362
362
|
mode: number;
|
|
363
363
|
/** is public */
|
|
364
364
|
is_public: boolean;
|
|
365
|
+
/** has_attachments. */
|
|
366
|
+
has_attachment: boolean;
|
|
365
367
|
}
|
|
366
368
|
/** A set of joins and leaves on a particular channel. */
|
|
367
369
|
export interface ChannelPresenceEvent {
|
|
@@ -1151,6 +1153,7 @@ export declare const Envelope: {
|
|
|
1151
1153
|
message_id?: string | undefined;
|
|
1152
1154
|
mode?: number | undefined;
|
|
1153
1155
|
is_public?: boolean | undefined;
|
|
1156
|
+
has_attachment?: boolean | undefined;
|
|
1154
1157
|
} | undefined;
|
|
1155
1158
|
channel_presence_event?: {
|
|
1156
1159
|
channel_id?: string | undefined;
|
|
@@ -2230,12 +2233,14 @@ export declare const Envelope: {
|
|
|
2230
2233
|
message_id?: string | undefined;
|
|
2231
2234
|
mode?: number | undefined;
|
|
2232
2235
|
is_public?: boolean | undefined;
|
|
2236
|
+
has_attachment?: boolean | undefined;
|
|
2233
2237
|
} & {
|
|
2234
2238
|
clan_id?: string | undefined;
|
|
2235
2239
|
channel_id?: string | undefined;
|
|
2236
2240
|
message_id?: string | undefined;
|
|
2237
2241
|
mode?: number | undefined;
|
|
2238
2242
|
is_public?: boolean | undefined;
|
|
2243
|
+
has_attachment?: boolean | undefined;
|
|
2239
2244
|
} & { [K_21 in Exclude<keyof I["channel_message_remove"], keyof ChannelMessageRemove>]: never; }) | undefined;
|
|
2240
2245
|
channel_presence_event?: ({
|
|
2241
2246
|
channel_id?: string | undefined;
|
|
@@ -4139,6 +4144,7 @@ export declare const Envelope: {
|
|
|
4139
4144
|
message_id?: string | undefined;
|
|
4140
4145
|
mode?: number | undefined;
|
|
4141
4146
|
is_public?: boolean | undefined;
|
|
4147
|
+
has_attachment?: boolean | undefined;
|
|
4142
4148
|
} | undefined;
|
|
4143
4149
|
channel_presence_event?: {
|
|
4144
4150
|
channel_id?: string | undefined;
|
|
@@ -5218,12 +5224,14 @@ export declare const Envelope: {
|
|
|
5218
5224
|
message_id?: string | undefined;
|
|
5219
5225
|
mode?: number | undefined;
|
|
5220
5226
|
is_public?: boolean | undefined;
|
|
5227
|
+
has_attachment?: boolean | undefined;
|
|
5221
5228
|
} & {
|
|
5222
5229
|
clan_id?: string | undefined;
|
|
5223
5230
|
channel_id?: string | undefined;
|
|
5224
5231
|
message_id?: string | undefined;
|
|
5225
5232
|
mode?: number | undefined;
|
|
5226
5233
|
is_public?: boolean | undefined;
|
|
5234
|
+
has_attachment?: boolean | undefined;
|
|
5227
5235
|
} & { [K_169 in Exclude<keyof I_1["channel_message_remove"], keyof ChannelMessageRemove>]: never; }) | undefined;
|
|
5228
5236
|
channel_presence_event?: ({
|
|
5229
5237
|
channel_id?: string | undefined;
|
|
@@ -8247,12 +8255,14 @@ export declare const ChannelMessageRemove: {
|
|
|
8247
8255
|
message_id?: string | undefined;
|
|
8248
8256
|
mode?: number | undefined;
|
|
8249
8257
|
is_public?: boolean | undefined;
|
|
8258
|
+
has_attachment?: boolean | undefined;
|
|
8250
8259
|
} & {
|
|
8251
8260
|
clan_id?: string | undefined;
|
|
8252
8261
|
channel_id?: string | undefined;
|
|
8253
8262
|
message_id?: string | undefined;
|
|
8254
8263
|
mode?: number | undefined;
|
|
8255
8264
|
is_public?: boolean | undefined;
|
|
8265
|
+
has_attachment?: boolean | undefined;
|
|
8256
8266
|
} & { [K in Exclude<keyof I, keyof ChannelMessageRemove>]: never; }>(base?: I | undefined): ChannelMessageRemove;
|
|
8257
8267
|
fromPartial<I_1 extends {
|
|
8258
8268
|
clan_id?: string | undefined;
|
|
@@ -8260,12 +8270,14 @@ export declare const ChannelMessageRemove: {
|
|
|
8260
8270
|
message_id?: string | undefined;
|
|
8261
8271
|
mode?: number | undefined;
|
|
8262
8272
|
is_public?: boolean | undefined;
|
|
8273
|
+
has_attachment?: boolean | undefined;
|
|
8263
8274
|
} & {
|
|
8264
8275
|
clan_id?: string | undefined;
|
|
8265
8276
|
channel_id?: string | undefined;
|
|
8266
8277
|
message_id?: string | undefined;
|
|
8267
8278
|
mode?: number | undefined;
|
|
8268
8279
|
is_public?: boolean | undefined;
|
|
8280
|
+
has_attachment?: boolean | undefined;
|
|
8269
8281
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelMessageRemove>]: never; }>(object: I_1): ChannelMessageRemove;
|
|
8270
8282
|
};
|
|
8271
8283
|
export declare const ChannelPresenceEvent: {
|
|
@@ -8436,7 +8436,7 @@ var ChannelMessageUpdate = {
|
|
|
8436
8436
|
}
|
|
8437
8437
|
};
|
|
8438
8438
|
function createBaseChannelMessageRemove() {
|
|
8439
|
-
return { clan_id: "", channel_id: "", message_id: "", mode: 0, is_public: false };
|
|
8439
|
+
return { clan_id: "", channel_id: "", message_id: "", mode: 0, is_public: false, has_attachment: false };
|
|
8440
8440
|
}
|
|
8441
8441
|
var ChannelMessageRemove = {
|
|
8442
8442
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -8455,6 +8455,9 @@ var ChannelMessageRemove = {
|
|
|
8455
8455
|
if (message.is_public !== false) {
|
|
8456
8456
|
writer.uint32(40).bool(message.is_public);
|
|
8457
8457
|
}
|
|
8458
|
+
if (message.has_attachment !== false) {
|
|
8459
|
+
writer.uint32(48).bool(message.has_attachment);
|
|
8460
|
+
}
|
|
8458
8461
|
return writer;
|
|
8459
8462
|
},
|
|
8460
8463
|
decode(input, length) {
|
|
@@ -8494,6 +8497,12 @@ var ChannelMessageRemove = {
|
|
|
8494
8497
|
}
|
|
8495
8498
|
message.is_public = reader.bool();
|
|
8496
8499
|
continue;
|
|
8500
|
+
case 6:
|
|
8501
|
+
if (tag !== 48) {
|
|
8502
|
+
break;
|
|
8503
|
+
}
|
|
8504
|
+
message.has_attachment = reader.bool();
|
|
8505
|
+
continue;
|
|
8497
8506
|
}
|
|
8498
8507
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8499
8508
|
break;
|
|
@@ -8508,7 +8517,8 @@ var ChannelMessageRemove = {
|
|
|
8508
8517
|
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
8509
8518
|
message_id: isSet4(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
8510
8519
|
mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
|
|
8511
|
-
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false
|
|
8520
|
+
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
8521
|
+
has_attachment: isSet4(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false
|
|
8512
8522
|
};
|
|
8513
8523
|
},
|
|
8514
8524
|
toJSON(message) {
|
|
@@ -8528,19 +8538,23 @@ var ChannelMessageRemove = {
|
|
|
8528
8538
|
if (message.is_public !== false) {
|
|
8529
8539
|
obj.is_public = message.is_public;
|
|
8530
8540
|
}
|
|
8541
|
+
if (message.has_attachment !== false) {
|
|
8542
|
+
obj.has_attachment = message.has_attachment;
|
|
8543
|
+
}
|
|
8531
8544
|
return obj;
|
|
8532
8545
|
},
|
|
8533
8546
|
create(base) {
|
|
8534
8547
|
return ChannelMessageRemove.fromPartial(base != null ? base : {});
|
|
8535
8548
|
},
|
|
8536
8549
|
fromPartial(object) {
|
|
8537
|
-
var _a, _b, _c, _d, _e;
|
|
8550
|
+
var _a, _b, _c, _d, _e, _f;
|
|
8538
8551
|
const message = createBaseChannelMessageRemove();
|
|
8539
8552
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
8540
8553
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
8541
8554
|
message.message_id = (_c = object.message_id) != null ? _c : "";
|
|
8542
8555
|
message.mode = (_d = object.mode) != null ? _d : 0;
|
|
8543
8556
|
message.is_public = (_e = object.is_public) != null ? _e : false;
|
|
8557
|
+
message.has_attachment = (_f = object.has_attachment) != null ? _f : false;
|
|
8544
8558
|
return message;
|
|
8545
8559
|
}
|
|
8546
8560
|
};
|
|
@@ -8423,7 +8423,7 @@ var ChannelMessageUpdate = {
|
|
|
8423
8423
|
}
|
|
8424
8424
|
};
|
|
8425
8425
|
function createBaseChannelMessageRemove() {
|
|
8426
|
-
return { clan_id: "", channel_id: "", message_id: "", mode: 0, is_public: false };
|
|
8426
|
+
return { clan_id: "", channel_id: "", message_id: "", mode: 0, is_public: false, has_attachment: false };
|
|
8427
8427
|
}
|
|
8428
8428
|
var ChannelMessageRemove = {
|
|
8429
8429
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -8442,6 +8442,9 @@ var ChannelMessageRemove = {
|
|
|
8442
8442
|
if (message.is_public !== false) {
|
|
8443
8443
|
writer.uint32(40).bool(message.is_public);
|
|
8444
8444
|
}
|
|
8445
|
+
if (message.has_attachment !== false) {
|
|
8446
|
+
writer.uint32(48).bool(message.has_attachment);
|
|
8447
|
+
}
|
|
8445
8448
|
return writer;
|
|
8446
8449
|
},
|
|
8447
8450
|
decode(input, length) {
|
|
@@ -8481,6 +8484,12 @@ var ChannelMessageRemove = {
|
|
|
8481
8484
|
}
|
|
8482
8485
|
message.is_public = reader.bool();
|
|
8483
8486
|
continue;
|
|
8487
|
+
case 6:
|
|
8488
|
+
if (tag !== 48) {
|
|
8489
|
+
break;
|
|
8490
|
+
}
|
|
8491
|
+
message.has_attachment = reader.bool();
|
|
8492
|
+
continue;
|
|
8484
8493
|
}
|
|
8485
8494
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8486
8495
|
break;
|
|
@@ -8495,7 +8504,8 @@ var ChannelMessageRemove = {
|
|
|
8495
8504
|
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
8496
8505
|
message_id: isSet4(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
8497
8506
|
mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
|
|
8498
|
-
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false
|
|
8507
|
+
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
8508
|
+
has_attachment: isSet4(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false
|
|
8499
8509
|
};
|
|
8500
8510
|
},
|
|
8501
8511
|
toJSON(message) {
|
|
@@ -8515,19 +8525,23 @@ var ChannelMessageRemove = {
|
|
|
8515
8525
|
if (message.is_public !== false) {
|
|
8516
8526
|
obj.is_public = message.is_public;
|
|
8517
8527
|
}
|
|
8528
|
+
if (message.has_attachment !== false) {
|
|
8529
|
+
obj.has_attachment = message.has_attachment;
|
|
8530
|
+
}
|
|
8518
8531
|
return obj;
|
|
8519
8532
|
},
|
|
8520
8533
|
create(base) {
|
|
8521
8534
|
return ChannelMessageRemove.fromPartial(base != null ? base : {});
|
|
8522
8535
|
},
|
|
8523
8536
|
fromPartial(object) {
|
|
8524
|
-
var _a, _b, _c, _d, _e;
|
|
8537
|
+
var _a, _b, _c, _d, _e, _f;
|
|
8525
8538
|
const message = createBaseChannelMessageRemove();
|
|
8526
8539
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
8527
8540
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
8528
8541
|
message.message_id = (_c = object.message_id) != null ? _c : "";
|
|
8529
8542
|
message.mode = (_d = object.mode) != null ? _d : 0;
|
|
8530
8543
|
message.is_public = (_e = object.is_public) != null ? _e : false;
|
|
8544
|
+
message.has_attachment = (_f = object.has_attachment) != null ? _f : false;
|
|
8531
8545
|
return message;
|
|
8532
8546
|
}
|
|
8533
8547
|
};
|