mezon-js-protobuf 1.8.27 → 1.8.29
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 +249 -38
- package/dist/mezon-js-protobuf/api/api.d.ts +90 -16
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +74 -42
- package/dist/mezon-js-protobuf.cjs.js +45 -30
- package/dist/mezon-js-protobuf.esm.mjs +45 -30
- package/package.json +1 -1
|
@@ -5118,9 +5118,9 @@ function createBaseListChannelAttachmentRequest() {
|
|
|
5118
5118
|
file_type: "",
|
|
5119
5119
|
limit: void 0,
|
|
5120
5120
|
state: void 0,
|
|
5121
|
-
before:
|
|
5122
|
-
after:
|
|
5123
|
-
around:
|
|
5121
|
+
before: 0,
|
|
5122
|
+
after: 0,
|
|
5123
|
+
around: 0
|
|
5124
5124
|
};
|
|
5125
5125
|
}
|
|
5126
5126
|
var ListChannelAttachmentRequest = {
|
|
@@ -5140,14 +5140,14 @@ var ListChannelAttachmentRequest = {
|
|
|
5140
5140
|
if (message.state !== void 0) {
|
|
5141
5141
|
Int32Value.encode({ value: message.state }, writer.uint32(42).fork()).ldelim();
|
|
5142
5142
|
}
|
|
5143
|
-
if (message.before !==
|
|
5144
|
-
writer.uint32(
|
|
5143
|
+
if (message.before !== 0) {
|
|
5144
|
+
writer.uint32(48).uint32(message.before);
|
|
5145
5145
|
}
|
|
5146
|
-
if (message.after !==
|
|
5147
|
-
writer.uint32(
|
|
5146
|
+
if (message.after !== 0) {
|
|
5147
|
+
writer.uint32(56).uint32(message.after);
|
|
5148
5148
|
}
|
|
5149
|
-
if (message.around !==
|
|
5150
|
-
writer.uint32(
|
|
5149
|
+
if (message.around !== 0) {
|
|
5150
|
+
writer.uint32(64).uint32(message.around);
|
|
5151
5151
|
}
|
|
5152
5152
|
return writer;
|
|
5153
5153
|
},
|
|
@@ -5189,22 +5189,22 @@ var ListChannelAttachmentRequest = {
|
|
|
5189
5189
|
message.state = Int32Value.decode(reader, reader.uint32()).value;
|
|
5190
5190
|
continue;
|
|
5191
5191
|
case 6:
|
|
5192
|
-
if (tag !==
|
|
5192
|
+
if (tag !== 48) {
|
|
5193
5193
|
break;
|
|
5194
5194
|
}
|
|
5195
|
-
message.before = reader.
|
|
5195
|
+
message.before = reader.uint32();
|
|
5196
5196
|
continue;
|
|
5197
5197
|
case 7:
|
|
5198
|
-
if (tag !==
|
|
5198
|
+
if (tag !== 56) {
|
|
5199
5199
|
break;
|
|
5200
5200
|
}
|
|
5201
|
-
message.after = reader.
|
|
5201
|
+
message.after = reader.uint32();
|
|
5202
5202
|
continue;
|
|
5203
5203
|
case 8:
|
|
5204
|
-
if (tag !==
|
|
5204
|
+
if (tag !== 64) {
|
|
5205
5205
|
break;
|
|
5206
5206
|
}
|
|
5207
|
-
message.around = reader.
|
|
5207
|
+
message.around = reader.uint32();
|
|
5208
5208
|
continue;
|
|
5209
5209
|
}
|
|
5210
5210
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -5221,9 +5221,9 @@ var ListChannelAttachmentRequest = {
|
|
|
5221
5221
|
file_type: isSet3(object.file_type) ? globalThis.String(object.file_type) : "",
|
|
5222
5222
|
limit: isSet3(object.limit) ? Number(object.limit) : void 0,
|
|
5223
5223
|
state: isSet3(object.state) ? Number(object.state) : void 0,
|
|
5224
|
-
before: isSet3(object.before) ? globalThis.
|
|
5225
|
-
after: isSet3(object.after) ? globalThis.
|
|
5226
|
-
around: isSet3(object.around) ? globalThis.
|
|
5224
|
+
before: isSet3(object.before) ? globalThis.Number(object.before) : 0,
|
|
5225
|
+
after: isSet3(object.after) ? globalThis.Number(object.after) : 0,
|
|
5226
|
+
around: isSet3(object.around) ? globalThis.Number(object.around) : 0
|
|
5227
5227
|
};
|
|
5228
5228
|
},
|
|
5229
5229
|
toJSON(message) {
|
|
@@ -5243,14 +5243,14 @@ var ListChannelAttachmentRequest = {
|
|
|
5243
5243
|
if (message.state !== void 0) {
|
|
5244
5244
|
obj.state = message.state;
|
|
5245
5245
|
}
|
|
5246
|
-
if (message.before !==
|
|
5247
|
-
obj.before = message.before;
|
|
5246
|
+
if (message.before !== 0) {
|
|
5247
|
+
obj.before = Math.round(message.before);
|
|
5248
5248
|
}
|
|
5249
|
-
if (message.after !==
|
|
5250
|
-
obj.after = message.after;
|
|
5249
|
+
if (message.after !== 0) {
|
|
5250
|
+
obj.after = Math.round(message.after);
|
|
5251
5251
|
}
|
|
5252
|
-
if (message.around !==
|
|
5253
|
-
obj.around = message.around;
|
|
5252
|
+
if (message.around !== 0) {
|
|
5253
|
+
obj.around = Math.round(message.around);
|
|
5254
5254
|
}
|
|
5255
5255
|
return obj;
|
|
5256
5256
|
},
|
|
@@ -5265,9 +5265,9 @@ var ListChannelAttachmentRequest = {
|
|
|
5265
5265
|
message.file_type = (_c = object.file_type) != null ? _c : "";
|
|
5266
5266
|
message.limit = (_d = object.limit) != null ? _d : void 0;
|
|
5267
5267
|
message.state = (_e = object.state) != null ? _e : void 0;
|
|
5268
|
-
message.before = (_f = object.before) != null ? _f :
|
|
5269
|
-
message.after = (_g = object.after) != null ? _g :
|
|
5270
|
-
message.around = (_h = object.around) != null ? _h :
|
|
5268
|
+
message.before = (_f = object.before) != null ? _f : 0;
|
|
5269
|
+
message.after = (_g = object.after) != null ? _g : 0;
|
|
5270
|
+
message.around = (_h = object.around) != null ? _h : 0;
|
|
5271
5271
|
return message;
|
|
5272
5272
|
}
|
|
5273
5273
|
};
|
|
@@ -11302,7 +11302,8 @@ function createBaseWebhook() {
|
|
|
11302
11302
|
create_time: "",
|
|
11303
11303
|
update_time: "",
|
|
11304
11304
|
avatar: "",
|
|
11305
|
-
status: 0
|
|
11305
|
+
status: 0,
|
|
11306
|
+
clan_id: ""
|
|
11306
11307
|
};
|
|
11307
11308
|
}
|
|
11308
11309
|
var Webhook = {
|
|
@@ -11337,6 +11338,9 @@ var Webhook = {
|
|
|
11337
11338
|
if (message.status !== 0) {
|
|
11338
11339
|
writer.uint32(80).int32(message.status);
|
|
11339
11340
|
}
|
|
11341
|
+
if (message.clan_id !== "") {
|
|
11342
|
+
writer.uint32(90).string(message.clan_id);
|
|
11343
|
+
}
|
|
11340
11344
|
return writer;
|
|
11341
11345
|
},
|
|
11342
11346
|
decode(input, length) {
|
|
@@ -11406,6 +11410,12 @@ var Webhook = {
|
|
|
11406
11410
|
}
|
|
11407
11411
|
message.status = reader.int32();
|
|
11408
11412
|
continue;
|
|
11413
|
+
case 11:
|
|
11414
|
+
if (tag !== 90) {
|
|
11415
|
+
break;
|
|
11416
|
+
}
|
|
11417
|
+
message.clan_id = reader.string();
|
|
11418
|
+
continue;
|
|
11409
11419
|
}
|
|
11410
11420
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11411
11421
|
break;
|
|
@@ -11425,7 +11435,8 @@ var Webhook = {
|
|
|
11425
11435
|
create_time: isSet3(object.create_time) ? globalThis.String(object.create_time) : "",
|
|
11426
11436
|
update_time: isSet3(object.update_time) ? globalThis.String(object.update_time) : "",
|
|
11427
11437
|
avatar: isSet3(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
11428
|
-
status: isSet3(object.status) ? globalThis.Number(object.status) : 0
|
|
11438
|
+
status: isSet3(object.status) ? globalThis.Number(object.status) : 0,
|
|
11439
|
+
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
11429
11440
|
};
|
|
11430
11441
|
},
|
|
11431
11442
|
toJSON(message) {
|
|
@@ -11460,13 +11471,16 @@ var Webhook = {
|
|
|
11460
11471
|
if (message.status !== 0) {
|
|
11461
11472
|
obj.status = Math.round(message.status);
|
|
11462
11473
|
}
|
|
11474
|
+
if (message.clan_id !== "") {
|
|
11475
|
+
obj.clan_id = message.clan_id;
|
|
11476
|
+
}
|
|
11463
11477
|
return obj;
|
|
11464
11478
|
},
|
|
11465
11479
|
create(base) {
|
|
11466
11480
|
return Webhook.fromPartial(base != null ? base : {});
|
|
11467
11481
|
},
|
|
11468
11482
|
fromPartial(object) {
|
|
11469
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
11483
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
11470
11484
|
const message = createBaseWebhook();
|
|
11471
11485
|
message.id = (_a = object.id) != null ? _a : "";
|
|
11472
11486
|
message.webhook_name = (_b = object.webhook_name) != null ? _b : "";
|
|
@@ -11478,6 +11492,7 @@ var Webhook = {
|
|
|
11478
11492
|
message.update_time = (_h = object.update_time) != null ? _h : "";
|
|
11479
11493
|
message.avatar = (_i = object.avatar) != null ? _i : "";
|
|
11480
11494
|
message.status = (_j = object.status) != null ? _j : 0;
|
|
11495
|
+
message.clan_id = (_k = object.clan_id) != null ? _k : "";
|
|
11481
11496
|
return message;
|
|
11482
11497
|
}
|
|
11483
11498
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.29",
|
|
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",
|