mezon-js-protobuf 1.7.20 → 1.7.22
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 +51 -16
- package/dist/mezon-js-protobuf/api/api.d.ts +30 -8
- package/dist/mezon-js-protobuf/google/protobuf/struct.d.ts +1 -1
- package/dist/mezon-js-protobuf/google/protobuf/timestamp.d.ts +1 -1
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +245 -153
- package/dist/mezon-js-protobuf.cjs.js +130 -5
- package/dist/mezon-js-protobuf.esm.mjs +130 -5
- package/google/protobuf/struct.ts +2 -2
- package/google/protobuf/timestamp.ts +2 -2
- package/google/protobuf/wrappers.ts +1 -1
- package/package.json +1 -1
- package/rtapi/realtime.ts +138 -3
|
@@ -3719,7 +3719,8 @@ function createBaseNotification() {
|
|
|
3719
3719
|
channel_type: 0,
|
|
3720
3720
|
avatar_url: "",
|
|
3721
3721
|
channel: void 0,
|
|
3722
|
-
topic_id: ""
|
|
3722
|
+
topic_id: "",
|
|
3723
|
+
category: 0
|
|
3723
3724
|
};
|
|
3724
3725
|
}
|
|
3725
3726
|
var Notification = {
|
|
@@ -3763,6 +3764,9 @@ var Notification = {
|
|
|
3763
3764
|
if (message.topic_id !== "") {
|
|
3764
3765
|
writer.uint32(106).string(message.topic_id);
|
|
3765
3766
|
}
|
|
3767
|
+
if (message.category !== 0) {
|
|
3768
|
+
writer.uint32(112).int32(message.category);
|
|
3769
|
+
}
|
|
3766
3770
|
return writer;
|
|
3767
3771
|
},
|
|
3768
3772
|
decode(input, length) {
|
|
@@ -3850,6 +3854,12 @@ var Notification = {
|
|
|
3850
3854
|
}
|
|
3851
3855
|
message.topic_id = reader.string();
|
|
3852
3856
|
continue;
|
|
3857
|
+
case 14:
|
|
3858
|
+
if (tag !== 112) {
|
|
3859
|
+
break;
|
|
3860
|
+
}
|
|
3861
|
+
message.category = reader.int32();
|
|
3862
|
+
continue;
|
|
3853
3863
|
}
|
|
3854
3864
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3855
3865
|
break;
|
|
@@ -3872,7 +3882,8 @@ var Notification = {
|
|
|
3872
3882
|
channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
3873
3883
|
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
3874
3884
|
channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0,
|
|
3875
|
-
topic_id: isSet3(object.topic_id) ? globalThis.String(object.topic_id) : ""
|
|
3885
|
+
topic_id: isSet3(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
3886
|
+
category: isSet3(object.category) ? globalThis.Number(object.category) : 0
|
|
3876
3887
|
};
|
|
3877
3888
|
},
|
|
3878
3889
|
toJSON(message) {
|
|
@@ -3916,13 +3927,16 @@ var Notification = {
|
|
|
3916
3927
|
if (message.topic_id !== "") {
|
|
3917
3928
|
obj.topic_id = message.topic_id;
|
|
3918
3929
|
}
|
|
3930
|
+
if (message.category !== 0) {
|
|
3931
|
+
obj.category = Math.round(message.category);
|
|
3932
|
+
}
|
|
3919
3933
|
return obj;
|
|
3920
3934
|
},
|
|
3921
3935
|
create(base) {
|
|
3922
3936
|
return Notification.fromPartial(base != null ? base : {});
|
|
3923
3937
|
},
|
|
3924
3938
|
fromPartial(object) {
|
|
3925
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
3939
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
3926
3940
|
const message = createBaseNotification();
|
|
3927
3941
|
message.id = (_a = object.id) != null ? _a : "";
|
|
3928
3942
|
message.subject = (_b = object.subject) != null ? _b : "";
|
|
@@ -3937,6 +3951,7 @@ var Notification = {
|
|
|
3937
3951
|
message.avatar_url = (_k = object.avatar_url) != null ? _k : "";
|
|
3938
3952
|
message.channel = object.channel !== void 0 && object.channel !== null ? ChannelDescription.fromPartial(object.channel) : void 0;
|
|
3939
3953
|
message.topic_id = (_l = object.topic_id) != null ? _l : "";
|
|
3954
|
+
message.category = (_m = object.category) != null ? _m : 0;
|
|
3940
3955
|
return message;
|
|
3941
3956
|
}
|
|
3942
3957
|
};
|
|
@@ -6573,7 +6588,8 @@ function createBaseEnvelope() {
|
|
|
6573
6588
|
webhook_event: void 0,
|
|
6574
6589
|
noti_user_channel: void 0,
|
|
6575
6590
|
join_channel_app_data: void 0,
|
|
6576
|
-
canvas_event: void 0
|
|
6591
|
+
canvas_event: void 0,
|
|
6592
|
+
unpin_message_event: void 0
|
|
6577
6593
|
};
|
|
6578
6594
|
}
|
|
6579
6595
|
var Envelope = {
|
|
@@ -6800,6 +6816,9 @@ var Envelope = {
|
|
|
6800
6816
|
if (message.canvas_event !== void 0) {
|
|
6801
6817
|
ChannelCanvas.encode(message.canvas_event, writer.uint32(594).fork()).ldelim();
|
|
6802
6818
|
}
|
|
6819
|
+
if (message.unpin_message_event !== void 0) {
|
|
6820
|
+
UnpinMessageEvent.encode(message.unpin_message_event, writer.uint32(602).fork()).ldelim();
|
|
6821
|
+
}
|
|
6803
6822
|
return writer;
|
|
6804
6823
|
},
|
|
6805
6824
|
decode(input, length) {
|
|
@@ -7253,6 +7272,12 @@ var Envelope = {
|
|
|
7253
7272
|
}
|
|
7254
7273
|
message.canvas_event = ChannelCanvas.decode(reader, reader.uint32());
|
|
7255
7274
|
continue;
|
|
7275
|
+
case 75:
|
|
7276
|
+
if (tag !== 602) {
|
|
7277
|
+
break;
|
|
7278
|
+
}
|
|
7279
|
+
message.unpin_message_event = UnpinMessageEvent.decode(reader, reader.uint32());
|
|
7280
|
+
continue;
|
|
7256
7281
|
}
|
|
7257
7282
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7258
7283
|
break;
|
|
@@ -7336,7 +7361,8 @@ var Envelope = {
|
|
|
7336
7361
|
webhook_event: isSet4(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : void 0,
|
|
7337
7362
|
noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0,
|
|
7338
7363
|
join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0,
|
|
7339
|
-
canvas_event: isSet4(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : void 0
|
|
7364
|
+
canvas_event: isSet4(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : void 0,
|
|
7365
|
+
unpin_message_event: isSet4(object.unpin_message_event) ? UnpinMessageEvent.fromJSON(object.unpin_message_event) : void 0
|
|
7340
7366
|
};
|
|
7341
7367
|
},
|
|
7342
7368
|
toJSON(message) {
|
|
@@ -7563,6 +7589,9 @@ var Envelope = {
|
|
|
7563
7589
|
if (message.canvas_event !== void 0) {
|
|
7564
7590
|
obj.canvas_event = ChannelCanvas.toJSON(message.canvas_event);
|
|
7565
7591
|
}
|
|
7592
|
+
if (message.unpin_message_event !== void 0) {
|
|
7593
|
+
obj.unpin_message_event = UnpinMessageEvent.toJSON(message.unpin_message_event);
|
|
7594
|
+
}
|
|
7566
7595
|
return obj;
|
|
7567
7596
|
},
|
|
7568
7597
|
create(base) {
|
|
@@ -7645,6 +7674,7 @@ var Envelope = {
|
|
|
7645
7674
|
message.noti_user_channel = object.noti_user_channel !== void 0 && object.noti_user_channel !== null ? NotificationUserChannel.fromPartial(object.noti_user_channel) : void 0;
|
|
7646
7675
|
message.join_channel_app_data = object.join_channel_app_data !== void 0 && object.join_channel_app_data !== null ? JoinChannelAppData.fromPartial(object.join_channel_app_data) : void 0;
|
|
7647
7676
|
message.canvas_event = object.canvas_event !== void 0 && object.canvas_event !== null ? ChannelCanvas.fromPartial(object.canvas_event) : void 0;
|
|
7677
|
+
message.unpin_message_event = object.unpin_message_event !== void 0 && object.unpin_message_event !== null ? UnpinMessageEvent.fromPartial(object.unpin_message_event) : void 0;
|
|
7648
7678
|
return message;
|
|
7649
7679
|
}
|
|
7650
7680
|
};
|
|
@@ -15211,6 +15241,101 @@ var JoinChannelAppData = {
|
|
|
15211
15241
|
return message;
|
|
15212
15242
|
}
|
|
15213
15243
|
};
|
|
15244
|
+
function createBaseUnpinMessageEvent() {
|
|
15245
|
+
return { id: "", message_id: "", channel_id: "", clan_id: "" };
|
|
15246
|
+
}
|
|
15247
|
+
var UnpinMessageEvent = {
|
|
15248
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
15249
|
+
if (message.id !== "") {
|
|
15250
|
+
writer.uint32(10).string(message.id);
|
|
15251
|
+
}
|
|
15252
|
+
if (message.message_id !== "") {
|
|
15253
|
+
writer.uint32(18).string(message.message_id);
|
|
15254
|
+
}
|
|
15255
|
+
if (message.channel_id !== "") {
|
|
15256
|
+
writer.uint32(26).string(message.channel_id);
|
|
15257
|
+
}
|
|
15258
|
+
if (message.clan_id !== "") {
|
|
15259
|
+
writer.uint32(34).string(message.clan_id);
|
|
15260
|
+
}
|
|
15261
|
+
return writer;
|
|
15262
|
+
},
|
|
15263
|
+
decode(input, length) {
|
|
15264
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
15265
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
15266
|
+
const message = createBaseUnpinMessageEvent();
|
|
15267
|
+
while (reader.pos < end) {
|
|
15268
|
+
const tag = reader.uint32();
|
|
15269
|
+
switch (tag >>> 3) {
|
|
15270
|
+
case 1:
|
|
15271
|
+
if (tag !== 10) {
|
|
15272
|
+
break;
|
|
15273
|
+
}
|
|
15274
|
+
message.id = reader.string();
|
|
15275
|
+
continue;
|
|
15276
|
+
case 2:
|
|
15277
|
+
if (tag !== 18) {
|
|
15278
|
+
break;
|
|
15279
|
+
}
|
|
15280
|
+
message.message_id = reader.string();
|
|
15281
|
+
continue;
|
|
15282
|
+
case 3:
|
|
15283
|
+
if (tag !== 26) {
|
|
15284
|
+
break;
|
|
15285
|
+
}
|
|
15286
|
+
message.channel_id = reader.string();
|
|
15287
|
+
continue;
|
|
15288
|
+
case 4:
|
|
15289
|
+
if (tag !== 34) {
|
|
15290
|
+
break;
|
|
15291
|
+
}
|
|
15292
|
+
message.clan_id = reader.string();
|
|
15293
|
+
continue;
|
|
15294
|
+
}
|
|
15295
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15296
|
+
break;
|
|
15297
|
+
}
|
|
15298
|
+
reader.skipType(tag & 7);
|
|
15299
|
+
}
|
|
15300
|
+
return message;
|
|
15301
|
+
},
|
|
15302
|
+
fromJSON(object) {
|
|
15303
|
+
return {
|
|
15304
|
+
id: isSet4(object.id) ? globalThis.String(object.id) : "",
|
|
15305
|
+
message_id: isSet4(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
15306
|
+
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
15307
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
15308
|
+
};
|
|
15309
|
+
},
|
|
15310
|
+
toJSON(message) {
|
|
15311
|
+
const obj = {};
|
|
15312
|
+
if (message.id !== "") {
|
|
15313
|
+
obj.id = message.id;
|
|
15314
|
+
}
|
|
15315
|
+
if (message.message_id !== "") {
|
|
15316
|
+
obj.message_id = message.message_id;
|
|
15317
|
+
}
|
|
15318
|
+
if (message.channel_id !== "") {
|
|
15319
|
+
obj.channel_id = message.channel_id;
|
|
15320
|
+
}
|
|
15321
|
+
if (message.clan_id !== "") {
|
|
15322
|
+
obj.clan_id = message.clan_id;
|
|
15323
|
+
}
|
|
15324
|
+
return obj;
|
|
15325
|
+
},
|
|
15326
|
+
create(base) {
|
|
15327
|
+
return UnpinMessageEvent.fromPartial(base != null ? base : {});
|
|
15328
|
+
},
|
|
15329
|
+
fromPartial(object) {
|
|
15330
|
+
var _a, _b, _c, _d;
|
|
15331
|
+
const message = createBaseUnpinMessageEvent();
|
|
15332
|
+
message.id = (_a = object.id) != null ? _a : "";
|
|
15333
|
+
message.message_id = (_b = object.message_id) != null ? _b : "";
|
|
15334
|
+
message.channel_id = (_c = object.channel_id) != null ? _c : "";
|
|
15335
|
+
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
15336
|
+
return message;
|
|
15337
|
+
}
|
|
15338
|
+
};
|
|
15214
15339
|
function toTimestamp2(date) {
|
|
15215
15340
|
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
15216
15341
|
const nanos = date.getTime() % 1e3 * 1e6;
|
|
@@ -3706,7 +3706,8 @@ function createBaseNotification() {
|
|
|
3706
3706
|
channel_type: 0,
|
|
3707
3707
|
avatar_url: "",
|
|
3708
3708
|
channel: void 0,
|
|
3709
|
-
topic_id: ""
|
|
3709
|
+
topic_id: "",
|
|
3710
|
+
category: 0
|
|
3710
3711
|
};
|
|
3711
3712
|
}
|
|
3712
3713
|
var Notification = {
|
|
@@ -3750,6 +3751,9 @@ var Notification = {
|
|
|
3750
3751
|
if (message.topic_id !== "") {
|
|
3751
3752
|
writer.uint32(106).string(message.topic_id);
|
|
3752
3753
|
}
|
|
3754
|
+
if (message.category !== 0) {
|
|
3755
|
+
writer.uint32(112).int32(message.category);
|
|
3756
|
+
}
|
|
3753
3757
|
return writer;
|
|
3754
3758
|
},
|
|
3755
3759
|
decode(input, length) {
|
|
@@ -3837,6 +3841,12 @@ var Notification = {
|
|
|
3837
3841
|
}
|
|
3838
3842
|
message.topic_id = reader.string();
|
|
3839
3843
|
continue;
|
|
3844
|
+
case 14:
|
|
3845
|
+
if (tag !== 112) {
|
|
3846
|
+
break;
|
|
3847
|
+
}
|
|
3848
|
+
message.category = reader.int32();
|
|
3849
|
+
continue;
|
|
3840
3850
|
}
|
|
3841
3851
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3842
3852
|
break;
|
|
@@ -3859,7 +3869,8 @@ var Notification = {
|
|
|
3859
3869
|
channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
3860
3870
|
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
3861
3871
|
channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0,
|
|
3862
|
-
topic_id: isSet3(object.topic_id) ? globalThis.String(object.topic_id) : ""
|
|
3872
|
+
topic_id: isSet3(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
3873
|
+
category: isSet3(object.category) ? globalThis.Number(object.category) : 0
|
|
3863
3874
|
};
|
|
3864
3875
|
},
|
|
3865
3876
|
toJSON(message) {
|
|
@@ -3903,13 +3914,16 @@ var Notification = {
|
|
|
3903
3914
|
if (message.topic_id !== "") {
|
|
3904
3915
|
obj.topic_id = message.topic_id;
|
|
3905
3916
|
}
|
|
3917
|
+
if (message.category !== 0) {
|
|
3918
|
+
obj.category = Math.round(message.category);
|
|
3919
|
+
}
|
|
3906
3920
|
return obj;
|
|
3907
3921
|
},
|
|
3908
3922
|
create(base) {
|
|
3909
3923
|
return Notification.fromPartial(base != null ? base : {});
|
|
3910
3924
|
},
|
|
3911
3925
|
fromPartial(object) {
|
|
3912
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
3926
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
3913
3927
|
const message = createBaseNotification();
|
|
3914
3928
|
message.id = (_a = object.id) != null ? _a : "";
|
|
3915
3929
|
message.subject = (_b = object.subject) != null ? _b : "";
|
|
@@ -3924,6 +3938,7 @@ var Notification = {
|
|
|
3924
3938
|
message.avatar_url = (_k = object.avatar_url) != null ? _k : "";
|
|
3925
3939
|
message.channel = object.channel !== void 0 && object.channel !== null ? ChannelDescription.fromPartial(object.channel) : void 0;
|
|
3926
3940
|
message.topic_id = (_l = object.topic_id) != null ? _l : "";
|
|
3941
|
+
message.category = (_m = object.category) != null ? _m : 0;
|
|
3927
3942
|
return message;
|
|
3928
3943
|
}
|
|
3929
3944
|
};
|
|
@@ -6560,7 +6575,8 @@ function createBaseEnvelope() {
|
|
|
6560
6575
|
webhook_event: void 0,
|
|
6561
6576
|
noti_user_channel: void 0,
|
|
6562
6577
|
join_channel_app_data: void 0,
|
|
6563
|
-
canvas_event: void 0
|
|
6578
|
+
canvas_event: void 0,
|
|
6579
|
+
unpin_message_event: void 0
|
|
6564
6580
|
};
|
|
6565
6581
|
}
|
|
6566
6582
|
var Envelope = {
|
|
@@ -6787,6 +6803,9 @@ var Envelope = {
|
|
|
6787
6803
|
if (message.canvas_event !== void 0) {
|
|
6788
6804
|
ChannelCanvas.encode(message.canvas_event, writer.uint32(594).fork()).ldelim();
|
|
6789
6805
|
}
|
|
6806
|
+
if (message.unpin_message_event !== void 0) {
|
|
6807
|
+
UnpinMessageEvent.encode(message.unpin_message_event, writer.uint32(602).fork()).ldelim();
|
|
6808
|
+
}
|
|
6790
6809
|
return writer;
|
|
6791
6810
|
},
|
|
6792
6811
|
decode(input, length) {
|
|
@@ -7240,6 +7259,12 @@ var Envelope = {
|
|
|
7240
7259
|
}
|
|
7241
7260
|
message.canvas_event = ChannelCanvas.decode(reader, reader.uint32());
|
|
7242
7261
|
continue;
|
|
7262
|
+
case 75:
|
|
7263
|
+
if (tag !== 602) {
|
|
7264
|
+
break;
|
|
7265
|
+
}
|
|
7266
|
+
message.unpin_message_event = UnpinMessageEvent.decode(reader, reader.uint32());
|
|
7267
|
+
continue;
|
|
7243
7268
|
}
|
|
7244
7269
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7245
7270
|
break;
|
|
@@ -7323,7 +7348,8 @@ var Envelope = {
|
|
|
7323
7348
|
webhook_event: isSet4(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : void 0,
|
|
7324
7349
|
noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0,
|
|
7325
7350
|
join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0,
|
|
7326
|
-
canvas_event: isSet4(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : void 0
|
|
7351
|
+
canvas_event: isSet4(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : void 0,
|
|
7352
|
+
unpin_message_event: isSet4(object.unpin_message_event) ? UnpinMessageEvent.fromJSON(object.unpin_message_event) : void 0
|
|
7327
7353
|
};
|
|
7328
7354
|
},
|
|
7329
7355
|
toJSON(message) {
|
|
@@ -7550,6 +7576,9 @@ var Envelope = {
|
|
|
7550
7576
|
if (message.canvas_event !== void 0) {
|
|
7551
7577
|
obj.canvas_event = ChannelCanvas.toJSON(message.canvas_event);
|
|
7552
7578
|
}
|
|
7579
|
+
if (message.unpin_message_event !== void 0) {
|
|
7580
|
+
obj.unpin_message_event = UnpinMessageEvent.toJSON(message.unpin_message_event);
|
|
7581
|
+
}
|
|
7553
7582
|
return obj;
|
|
7554
7583
|
},
|
|
7555
7584
|
create(base) {
|
|
@@ -7632,6 +7661,7 @@ var Envelope = {
|
|
|
7632
7661
|
message.noti_user_channel = object.noti_user_channel !== void 0 && object.noti_user_channel !== null ? NotificationUserChannel.fromPartial(object.noti_user_channel) : void 0;
|
|
7633
7662
|
message.join_channel_app_data = object.join_channel_app_data !== void 0 && object.join_channel_app_data !== null ? JoinChannelAppData.fromPartial(object.join_channel_app_data) : void 0;
|
|
7634
7663
|
message.canvas_event = object.canvas_event !== void 0 && object.canvas_event !== null ? ChannelCanvas.fromPartial(object.canvas_event) : void 0;
|
|
7664
|
+
message.unpin_message_event = object.unpin_message_event !== void 0 && object.unpin_message_event !== null ? UnpinMessageEvent.fromPartial(object.unpin_message_event) : void 0;
|
|
7635
7665
|
return message;
|
|
7636
7666
|
}
|
|
7637
7667
|
};
|
|
@@ -15198,6 +15228,101 @@ var JoinChannelAppData = {
|
|
|
15198
15228
|
return message;
|
|
15199
15229
|
}
|
|
15200
15230
|
};
|
|
15231
|
+
function createBaseUnpinMessageEvent() {
|
|
15232
|
+
return { id: "", message_id: "", channel_id: "", clan_id: "" };
|
|
15233
|
+
}
|
|
15234
|
+
var UnpinMessageEvent = {
|
|
15235
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
15236
|
+
if (message.id !== "") {
|
|
15237
|
+
writer.uint32(10).string(message.id);
|
|
15238
|
+
}
|
|
15239
|
+
if (message.message_id !== "") {
|
|
15240
|
+
writer.uint32(18).string(message.message_id);
|
|
15241
|
+
}
|
|
15242
|
+
if (message.channel_id !== "") {
|
|
15243
|
+
writer.uint32(26).string(message.channel_id);
|
|
15244
|
+
}
|
|
15245
|
+
if (message.clan_id !== "") {
|
|
15246
|
+
writer.uint32(34).string(message.clan_id);
|
|
15247
|
+
}
|
|
15248
|
+
return writer;
|
|
15249
|
+
},
|
|
15250
|
+
decode(input, length) {
|
|
15251
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
15252
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
15253
|
+
const message = createBaseUnpinMessageEvent();
|
|
15254
|
+
while (reader.pos < end) {
|
|
15255
|
+
const tag = reader.uint32();
|
|
15256
|
+
switch (tag >>> 3) {
|
|
15257
|
+
case 1:
|
|
15258
|
+
if (tag !== 10) {
|
|
15259
|
+
break;
|
|
15260
|
+
}
|
|
15261
|
+
message.id = reader.string();
|
|
15262
|
+
continue;
|
|
15263
|
+
case 2:
|
|
15264
|
+
if (tag !== 18) {
|
|
15265
|
+
break;
|
|
15266
|
+
}
|
|
15267
|
+
message.message_id = reader.string();
|
|
15268
|
+
continue;
|
|
15269
|
+
case 3:
|
|
15270
|
+
if (tag !== 26) {
|
|
15271
|
+
break;
|
|
15272
|
+
}
|
|
15273
|
+
message.channel_id = reader.string();
|
|
15274
|
+
continue;
|
|
15275
|
+
case 4:
|
|
15276
|
+
if (tag !== 34) {
|
|
15277
|
+
break;
|
|
15278
|
+
}
|
|
15279
|
+
message.clan_id = reader.string();
|
|
15280
|
+
continue;
|
|
15281
|
+
}
|
|
15282
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15283
|
+
break;
|
|
15284
|
+
}
|
|
15285
|
+
reader.skipType(tag & 7);
|
|
15286
|
+
}
|
|
15287
|
+
return message;
|
|
15288
|
+
},
|
|
15289
|
+
fromJSON(object) {
|
|
15290
|
+
return {
|
|
15291
|
+
id: isSet4(object.id) ? globalThis.String(object.id) : "",
|
|
15292
|
+
message_id: isSet4(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
15293
|
+
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
15294
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
15295
|
+
};
|
|
15296
|
+
},
|
|
15297
|
+
toJSON(message) {
|
|
15298
|
+
const obj = {};
|
|
15299
|
+
if (message.id !== "") {
|
|
15300
|
+
obj.id = message.id;
|
|
15301
|
+
}
|
|
15302
|
+
if (message.message_id !== "") {
|
|
15303
|
+
obj.message_id = message.message_id;
|
|
15304
|
+
}
|
|
15305
|
+
if (message.channel_id !== "") {
|
|
15306
|
+
obj.channel_id = message.channel_id;
|
|
15307
|
+
}
|
|
15308
|
+
if (message.clan_id !== "") {
|
|
15309
|
+
obj.clan_id = message.clan_id;
|
|
15310
|
+
}
|
|
15311
|
+
return obj;
|
|
15312
|
+
},
|
|
15313
|
+
create(base) {
|
|
15314
|
+
return UnpinMessageEvent.fromPartial(base != null ? base : {});
|
|
15315
|
+
},
|
|
15316
|
+
fromPartial(object) {
|
|
15317
|
+
var _a, _b, _c, _d;
|
|
15318
|
+
const message = createBaseUnpinMessageEvent();
|
|
15319
|
+
message.id = (_a = object.id) != null ? _a : "";
|
|
15320
|
+
message.message_id = (_b = object.message_id) != null ? _b : "";
|
|
15321
|
+
message.channel_id = (_c = object.channel_id) != null ? _c : "";
|
|
15322
|
+
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
15323
|
+
return message;
|
|
15324
|
+
}
|
|
15325
|
+
};
|
|
15201
15326
|
function toTimestamp2(date) {
|
|
15202
15327
|
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
15203
15328
|
const nanos = date.getTime() % 1e3 * 1e6;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
3
|
// protoc-gen-ts_proto v1.181.2
|
|
4
|
-
// protoc
|
|
4
|
+
// protoc v5.28.3
|
|
5
5
|
// source: google/protobuf/struct.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -13,7 +13,7 @@ export const protobufPackage = "google.protobuf";
|
|
|
13
13
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
14
14
|
* `Value` type union.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
17
17
|
*/
|
|
18
18
|
export enum NullValue {
|
|
19
19
|
/** NULL_VALUE - Null value. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
3
|
// protoc-gen-ts_proto v1.181.2
|
|
4
|
-
// protoc
|
|
4
|
+
// protoc v5.28.3
|
|
5
5
|
// source: google/protobuf/timestamp.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -98,7 +98,7 @@ export const protobufPackage = "google.protobuf";
|
|
|
98
98
|
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
99
99
|
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
100
100
|
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
101
|
-
* http://
|
|
101
|
+
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
102
102
|
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
103
103
|
*/
|
|
104
104
|
export interface Timestamp {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.22",
|
|
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",
|