mezon-js 2.13.74 → 2.13.76
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 +657 -24
- package/api.gen.ts +49 -35
- package/dist/api/api.d.ts +311 -2
- package/dist/mezon-js.cjs.js +67 -53
- package/dist/mezon-js.esm.mjs +67 -53
- package/package.json +1 -1
package/dist/mezon-js.cjs.js
CHANGED
|
@@ -3585,7 +3585,7 @@ function createBaseChannelMessage() {
|
|
|
3585
3585
|
clan_id: "",
|
|
3586
3586
|
channel_id: "",
|
|
3587
3587
|
message_id: "",
|
|
3588
|
-
code:
|
|
3588
|
+
code: 0,
|
|
3589
3589
|
sender_id: "",
|
|
3590
3590
|
username: "",
|
|
3591
3591
|
avatar: "",
|
|
@@ -3622,8 +3622,8 @@ var ChannelMessage = {
|
|
|
3622
3622
|
if (message.message_id !== "") {
|
|
3623
3623
|
writer.uint32(26).string(message.message_id);
|
|
3624
3624
|
}
|
|
3625
|
-
if (message.code !==
|
|
3626
|
-
|
|
3625
|
+
if (message.code !== 0) {
|
|
3626
|
+
writer.uint32(32).int32(message.code);
|
|
3627
3627
|
}
|
|
3628
3628
|
if (message.sender_id !== "") {
|
|
3629
3629
|
writer.uint32(42).string(message.sender_id);
|
|
@@ -3722,10 +3722,10 @@ var ChannelMessage = {
|
|
|
3722
3722
|
message.message_id = reader.string();
|
|
3723
3723
|
continue;
|
|
3724
3724
|
case 4:
|
|
3725
|
-
if (tag !==
|
|
3725
|
+
if (tag !== 32) {
|
|
3726
3726
|
break;
|
|
3727
3727
|
}
|
|
3728
|
-
message.code =
|
|
3728
|
+
message.code = reader.int32();
|
|
3729
3729
|
continue;
|
|
3730
3730
|
case 5:
|
|
3731
3731
|
if (tag !== 42) {
|
|
@@ -3878,7 +3878,7 @@ var ChannelMessage = {
|
|
|
3878
3878
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
3879
3879
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3880
3880
|
message_id: isSet3(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
3881
|
-
code: isSet3(object.code) ? Number(object.code) :
|
|
3881
|
+
code: isSet3(object.code) ? globalThis.Number(object.code) : 0,
|
|
3882
3882
|
sender_id: isSet3(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
3883
3883
|
username: isSet3(object.username) ? globalThis.String(object.username) : "",
|
|
3884
3884
|
avatar: isSet3(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
@@ -3915,8 +3915,8 @@ var ChannelMessage = {
|
|
|
3915
3915
|
if (message.message_id !== "") {
|
|
3916
3916
|
obj.message_id = message.message_id;
|
|
3917
3917
|
}
|
|
3918
|
-
if (message.code !==
|
|
3919
|
-
obj.code = message.code;
|
|
3918
|
+
if (message.code !== 0) {
|
|
3919
|
+
obj.code = Math.round(message.code);
|
|
3920
3920
|
}
|
|
3921
3921
|
if (message.sender_id !== "") {
|
|
3922
3922
|
obj.sender_id = message.sender_id;
|
|
@@ -3998,7 +3998,7 @@ var ChannelMessage = {
|
|
|
3998
3998
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
3999
3999
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
4000
4000
|
message.message_id = (_c = object.message_id) != null ? _c : "";
|
|
4001
|
-
message.code = (_d = object.code) != null ? _d :
|
|
4001
|
+
message.code = (_d = object.code) != null ? _d : 0;
|
|
4002
4002
|
message.sender_id = (_e = object.sender_id) != null ? _e : "";
|
|
4003
4003
|
message.username = (_f = object.username) != null ? _f : "";
|
|
4004
4004
|
message.avatar = (_g = object.avatar) != null ? _g : "";
|
|
@@ -6859,7 +6859,7 @@ function createBaseChannelDescription() {
|
|
|
6859
6859
|
channel_id: "",
|
|
6860
6860
|
category_id: "",
|
|
6861
6861
|
category_name: "",
|
|
6862
|
-
type:
|
|
6862
|
+
type: 0,
|
|
6863
6863
|
creator_id: "",
|
|
6864
6864
|
channel_label: "",
|
|
6865
6865
|
channel_private: 0,
|
|
@@ -6904,8 +6904,8 @@ var ChannelDescription = {
|
|
|
6904
6904
|
if (message.category_name !== "") {
|
|
6905
6905
|
writer.uint32(42).string(message.category_name);
|
|
6906
6906
|
}
|
|
6907
|
-
if (message.type !==
|
|
6908
|
-
|
|
6907
|
+
if (message.type !== 0) {
|
|
6908
|
+
writer.uint32(48).int32(message.type);
|
|
6909
6909
|
}
|
|
6910
6910
|
if (message.creator_id !== "") {
|
|
6911
6911
|
writer.uint32(58).string(message.creator_id);
|
|
@@ -7024,10 +7024,10 @@ var ChannelDescription = {
|
|
|
7024
7024
|
message.category_name = reader.string();
|
|
7025
7025
|
continue;
|
|
7026
7026
|
case 6:
|
|
7027
|
-
if (tag !==
|
|
7027
|
+
if (tag !== 48) {
|
|
7028
7028
|
break;
|
|
7029
7029
|
}
|
|
7030
|
-
message.type =
|
|
7030
|
+
message.type = reader.int32();
|
|
7031
7031
|
continue;
|
|
7032
7032
|
case 7:
|
|
7033
7033
|
if (tag !== 58) {
|
|
@@ -7201,7 +7201,7 @@ var ChannelDescription = {
|
|
|
7201
7201
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7202
7202
|
category_id: isSet3(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
7203
7203
|
category_name: isSet3(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
7204
|
-
type: isSet3(object.type) ? Number(object.type) :
|
|
7204
|
+
type: isSet3(object.type) ? globalThis.Number(object.type) : 0,
|
|
7205
7205
|
creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
7206
7206
|
channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
7207
7207
|
channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
@@ -7247,8 +7247,8 @@ var ChannelDescription = {
|
|
|
7247
7247
|
if (message.category_name !== "") {
|
|
7248
7248
|
obj.category_name = message.category_name;
|
|
7249
7249
|
}
|
|
7250
|
-
if (message.type !==
|
|
7251
|
-
obj.type = message.type;
|
|
7250
|
+
if (message.type !== 0) {
|
|
7251
|
+
obj.type = Math.round(message.type);
|
|
7252
7252
|
}
|
|
7253
7253
|
if (message.creator_id !== "") {
|
|
7254
7254
|
obj.creator_id = message.creator_id;
|
|
@@ -7338,7 +7338,7 @@ var ChannelDescription = {
|
|
|
7338
7338
|
message.channel_id = (_c = object.channel_id) != null ? _c : "";
|
|
7339
7339
|
message.category_id = (_d = object.category_id) != null ? _d : "";
|
|
7340
7340
|
message.category_name = (_e = object.category_name) != null ? _e : "";
|
|
7341
|
-
message.type = (_f = object.type) != null ? _f :
|
|
7341
|
+
message.type = (_f = object.type) != null ? _f : 0;
|
|
7342
7342
|
message.creator_id = (_g = object.creator_id) != null ? _g : "";
|
|
7343
7343
|
message.channel_label = (_h = object.channel_label) != null ? _h : "";
|
|
7344
7344
|
message.channel_private = (_i = object.channel_private) != null ? _i : 0;
|
|
@@ -15193,18 +15193,20 @@ var MezonApi = class {
|
|
|
15193
15193
|
if (basicAuthUsername) {
|
|
15194
15194
|
fetchOptions.headers["Authorization"] = "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
|
|
15195
15195
|
}
|
|
15196
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15196
15197
|
return Promise.race([
|
|
15197
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15198
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15198
15199
|
if (response.status == 204) {
|
|
15199
|
-
return
|
|
15200
|
+
return {};
|
|
15200
15201
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15201
|
-
|
|
15202
|
+
const buffer = yield response.arrayBuffer();
|
|
15203
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15202
15204
|
} else {
|
|
15203
15205
|
throw response;
|
|
15204
15206
|
}
|
|
15205
|
-
}),
|
|
15207
|
+
})),
|
|
15206
15208
|
new Promise(
|
|
15207
|
-
(_, reject) => setTimeout(reject
|
|
15209
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15208
15210
|
)
|
|
15209
15211
|
]);
|
|
15210
15212
|
}
|
|
@@ -15342,18 +15344,20 @@ var MezonApi = class {
|
|
|
15342
15344
|
if (basicAuthUsername) {
|
|
15343
15345
|
fetchOptions.headers["Authorization"] = "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
|
|
15344
15346
|
}
|
|
15347
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15345
15348
|
return Promise.race([
|
|
15346
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15349
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15347
15350
|
if (response.status == 204) {
|
|
15348
|
-
return
|
|
15351
|
+
return {};
|
|
15349
15352
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15350
|
-
|
|
15353
|
+
const buffer = yield response.arrayBuffer();
|
|
15354
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15351
15355
|
} else {
|
|
15352
15356
|
throw response;
|
|
15353
15357
|
}
|
|
15354
|
-
}),
|
|
15358
|
+
})),
|
|
15355
15359
|
new Promise(
|
|
15356
|
-
(_, reject) => setTimeout(reject
|
|
15360
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15357
15361
|
)
|
|
15358
15362
|
]);
|
|
15359
15363
|
}
|
|
@@ -15374,18 +15378,20 @@ var MezonApi = class {
|
|
|
15374
15378
|
if (basicAuthUsername) {
|
|
15375
15379
|
fetchOptions.headers["Authorization"] = "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
|
|
15376
15380
|
}
|
|
15381
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15377
15382
|
return Promise.race([
|
|
15378
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15383
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15379
15384
|
if (response.status == 204) {
|
|
15380
|
-
return
|
|
15385
|
+
return {};
|
|
15381
15386
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15382
|
-
|
|
15387
|
+
const buffer = yield response.arrayBuffer();
|
|
15388
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15383
15389
|
} else {
|
|
15384
15390
|
throw response;
|
|
15385
15391
|
}
|
|
15386
|
-
}),
|
|
15392
|
+
})),
|
|
15387
15393
|
new Promise(
|
|
15388
|
-
(_, reject) => setTimeout(reject
|
|
15394
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15389
15395
|
)
|
|
15390
15396
|
]);
|
|
15391
15397
|
}
|
|
@@ -15463,18 +15469,20 @@ var MezonApi = class {
|
|
|
15463
15469
|
if (bearerToken) {
|
|
15464
15470
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
15465
15471
|
}
|
|
15472
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15466
15473
|
return Promise.race([
|
|
15467
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15474
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15468
15475
|
if (response.status == 204) {
|
|
15469
|
-
return
|
|
15476
|
+
return {};
|
|
15470
15477
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15471
|
-
|
|
15478
|
+
const buffer = yield response.arrayBuffer();
|
|
15479
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15472
15480
|
} else {
|
|
15473
15481
|
throw response;
|
|
15474
15482
|
}
|
|
15475
|
-
}),
|
|
15483
|
+
})),
|
|
15476
15484
|
new Promise(
|
|
15477
|
-
(_, reject) => setTimeout(reject
|
|
15485
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15478
15486
|
)
|
|
15479
15487
|
]);
|
|
15480
15488
|
}
|
|
@@ -15492,18 +15500,20 @@ var MezonApi = class {
|
|
|
15492
15500
|
if (basicAuthUsername) {
|
|
15493
15501
|
fetchOptions.headers["Authorization"] = "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
|
|
15494
15502
|
}
|
|
15503
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15495
15504
|
return Promise.race([
|
|
15496
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15505
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15497
15506
|
if (response.status == 204) {
|
|
15498
|
-
return
|
|
15507
|
+
return {};
|
|
15499
15508
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15500
|
-
|
|
15509
|
+
const buffer = yield response.arrayBuffer();
|
|
15510
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15501
15511
|
} else {
|
|
15502
15512
|
throw response;
|
|
15503
15513
|
}
|
|
15504
|
-
}),
|
|
15514
|
+
})),
|
|
15505
15515
|
new Promise(
|
|
15506
|
-
(_, reject) => setTimeout(reject
|
|
15516
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15507
15517
|
)
|
|
15508
15518
|
]);
|
|
15509
15519
|
}
|
|
@@ -15523,18 +15533,20 @@ var MezonApi = class {
|
|
|
15523
15533
|
if (bearerToken) {
|
|
15524
15534
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
15525
15535
|
}
|
|
15536
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15526
15537
|
return Promise.race([
|
|
15527
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15538
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15528
15539
|
if (response.status == 204) {
|
|
15529
|
-
return
|
|
15540
|
+
return {};
|
|
15530
15541
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15531
|
-
|
|
15542
|
+
const buffer = yield response.arrayBuffer();
|
|
15543
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15532
15544
|
} else {
|
|
15533
15545
|
throw response;
|
|
15534
15546
|
}
|
|
15535
|
-
}),
|
|
15547
|
+
})),
|
|
15536
15548
|
new Promise(
|
|
15537
|
-
(_, reject) => setTimeout(reject
|
|
15549
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15538
15550
|
)
|
|
15539
15551
|
]);
|
|
15540
15552
|
}
|
|
@@ -21467,18 +21479,20 @@ var MezonApi = class {
|
|
|
21467
21479
|
if (bearerToken) {
|
|
21468
21480
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
21469
21481
|
}
|
|
21482
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
21470
21483
|
return Promise.race([
|
|
21471
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
21484
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
21472
21485
|
if (response.status == 204) {
|
|
21473
|
-
return
|
|
21486
|
+
return {};
|
|
21474
21487
|
} else if (response.status >= 200 && response.status < 300) {
|
|
21475
|
-
|
|
21488
|
+
const buffer = yield response.arrayBuffer();
|
|
21489
|
+
return Session.decode(new Uint8Array(buffer));
|
|
21476
21490
|
} else {
|
|
21477
21491
|
throw response;
|
|
21478
21492
|
}
|
|
21479
|
-
}),
|
|
21493
|
+
})),
|
|
21480
21494
|
new Promise(
|
|
21481
|
-
(_, reject) => setTimeout(reject
|
|
21495
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
21482
21496
|
)
|
|
21483
21497
|
]);
|
|
21484
21498
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -3560,7 +3560,7 @@ function createBaseChannelMessage() {
|
|
|
3560
3560
|
clan_id: "",
|
|
3561
3561
|
channel_id: "",
|
|
3562
3562
|
message_id: "",
|
|
3563
|
-
code:
|
|
3563
|
+
code: 0,
|
|
3564
3564
|
sender_id: "",
|
|
3565
3565
|
username: "",
|
|
3566
3566
|
avatar: "",
|
|
@@ -3597,8 +3597,8 @@ var ChannelMessage = {
|
|
|
3597
3597
|
if (message.message_id !== "") {
|
|
3598
3598
|
writer.uint32(26).string(message.message_id);
|
|
3599
3599
|
}
|
|
3600
|
-
if (message.code !==
|
|
3601
|
-
|
|
3600
|
+
if (message.code !== 0) {
|
|
3601
|
+
writer.uint32(32).int32(message.code);
|
|
3602
3602
|
}
|
|
3603
3603
|
if (message.sender_id !== "") {
|
|
3604
3604
|
writer.uint32(42).string(message.sender_id);
|
|
@@ -3697,10 +3697,10 @@ var ChannelMessage = {
|
|
|
3697
3697
|
message.message_id = reader.string();
|
|
3698
3698
|
continue;
|
|
3699
3699
|
case 4:
|
|
3700
|
-
if (tag !==
|
|
3700
|
+
if (tag !== 32) {
|
|
3701
3701
|
break;
|
|
3702
3702
|
}
|
|
3703
|
-
message.code =
|
|
3703
|
+
message.code = reader.int32();
|
|
3704
3704
|
continue;
|
|
3705
3705
|
case 5:
|
|
3706
3706
|
if (tag !== 42) {
|
|
@@ -3853,7 +3853,7 @@ var ChannelMessage = {
|
|
|
3853
3853
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
3854
3854
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3855
3855
|
message_id: isSet3(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
3856
|
-
code: isSet3(object.code) ? Number(object.code) :
|
|
3856
|
+
code: isSet3(object.code) ? globalThis.Number(object.code) : 0,
|
|
3857
3857
|
sender_id: isSet3(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
3858
3858
|
username: isSet3(object.username) ? globalThis.String(object.username) : "",
|
|
3859
3859
|
avatar: isSet3(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
@@ -3890,8 +3890,8 @@ var ChannelMessage = {
|
|
|
3890
3890
|
if (message.message_id !== "") {
|
|
3891
3891
|
obj.message_id = message.message_id;
|
|
3892
3892
|
}
|
|
3893
|
-
if (message.code !==
|
|
3894
|
-
obj.code = message.code;
|
|
3893
|
+
if (message.code !== 0) {
|
|
3894
|
+
obj.code = Math.round(message.code);
|
|
3895
3895
|
}
|
|
3896
3896
|
if (message.sender_id !== "") {
|
|
3897
3897
|
obj.sender_id = message.sender_id;
|
|
@@ -3973,7 +3973,7 @@ var ChannelMessage = {
|
|
|
3973
3973
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
3974
3974
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
3975
3975
|
message.message_id = (_c = object.message_id) != null ? _c : "";
|
|
3976
|
-
message.code = (_d = object.code) != null ? _d :
|
|
3976
|
+
message.code = (_d = object.code) != null ? _d : 0;
|
|
3977
3977
|
message.sender_id = (_e = object.sender_id) != null ? _e : "";
|
|
3978
3978
|
message.username = (_f = object.username) != null ? _f : "";
|
|
3979
3979
|
message.avatar = (_g = object.avatar) != null ? _g : "";
|
|
@@ -6834,7 +6834,7 @@ function createBaseChannelDescription() {
|
|
|
6834
6834
|
channel_id: "",
|
|
6835
6835
|
category_id: "",
|
|
6836
6836
|
category_name: "",
|
|
6837
|
-
type:
|
|
6837
|
+
type: 0,
|
|
6838
6838
|
creator_id: "",
|
|
6839
6839
|
channel_label: "",
|
|
6840
6840
|
channel_private: 0,
|
|
@@ -6879,8 +6879,8 @@ var ChannelDescription = {
|
|
|
6879
6879
|
if (message.category_name !== "") {
|
|
6880
6880
|
writer.uint32(42).string(message.category_name);
|
|
6881
6881
|
}
|
|
6882
|
-
if (message.type !==
|
|
6883
|
-
|
|
6882
|
+
if (message.type !== 0) {
|
|
6883
|
+
writer.uint32(48).int32(message.type);
|
|
6884
6884
|
}
|
|
6885
6885
|
if (message.creator_id !== "") {
|
|
6886
6886
|
writer.uint32(58).string(message.creator_id);
|
|
@@ -6999,10 +6999,10 @@ var ChannelDescription = {
|
|
|
6999
6999
|
message.category_name = reader.string();
|
|
7000
7000
|
continue;
|
|
7001
7001
|
case 6:
|
|
7002
|
-
if (tag !==
|
|
7002
|
+
if (tag !== 48) {
|
|
7003
7003
|
break;
|
|
7004
7004
|
}
|
|
7005
|
-
message.type =
|
|
7005
|
+
message.type = reader.int32();
|
|
7006
7006
|
continue;
|
|
7007
7007
|
case 7:
|
|
7008
7008
|
if (tag !== 58) {
|
|
@@ -7176,7 +7176,7 @@ var ChannelDescription = {
|
|
|
7176
7176
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7177
7177
|
category_id: isSet3(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
7178
7178
|
category_name: isSet3(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
7179
|
-
type: isSet3(object.type) ? Number(object.type) :
|
|
7179
|
+
type: isSet3(object.type) ? globalThis.Number(object.type) : 0,
|
|
7180
7180
|
creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
7181
7181
|
channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
7182
7182
|
channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
@@ -7222,8 +7222,8 @@ var ChannelDescription = {
|
|
|
7222
7222
|
if (message.category_name !== "") {
|
|
7223
7223
|
obj.category_name = message.category_name;
|
|
7224
7224
|
}
|
|
7225
|
-
if (message.type !==
|
|
7226
|
-
obj.type = message.type;
|
|
7225
|
+
if (message.type !== 0) {
|
|
7226
|
+
obj.type = Math.round(message.type);
|
|
7227
7227
|
}
|
|
7228
7228
|
if (message.creator_id !== "") {
|
|
7229
7229
|
obj.creator_id = message.creator_id;
|
|
@@ -7313,7 +7313,7 @@ var ChannelDescription = {
|
|
|
7313
7313
|
message.channel_id = (_c = object.channel_id) != null ? _c : "";
|
|
7314
7314
|
message.category_id = (_d = object.category_id) != null ? _d : "";
|
|
7315
7315
|
message.category_name = (_e = object.category_name) != null ? _e : "";
|
|
7316
|
-
message.type = (_f = object.type) != null ? _f :
|
|
7316
|
+
message.type = (_f = object.type) != null ? _f : 0;
|
|
7317
7317
|
message.creator_id = (_g = object.creator_id) != null ? _g : "";
|
|
7318
7318
|
message.channel_label = (_h = object.channel_label) != null ? _h : "";
|
|
7319
7319
|
message.channel_private = (_i = object.channel_private) != null ? _i : 0;
|
|
@@ -15168,18 +15168,20 @@ var MezonApi = class {
|
|
|
15168
15168
|
if (basicAuthUsername) {
|
|
15169
15169
|
fetchOptions.headers["Authorization"] = "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
|
|
15170
15170
|
}
|
|
15171
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15171
15172
|
return Promise.race([
|
|
15172
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15173
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15173
15174
|
if (response.status == 204) {
|
|
15174
|
-
return
|
|
15175
|
+
return {};
|
|
15175
15176
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15176
|
-
|
|
15177
|
+
const buffer = yield response.arrayBuffer();
|
|
15178
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15177
15179
|
} else {
|
|
15178
15180
|
throw response;
|
|
15179
15181
|
}
|
|
15180
|
-
}),
|
|
15182
|
+
})),
|
|
15181
15183
|
new Promise(
|
|
15182
|
-
(_, reject) => setTimeout(reject
|
|
15184
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15183
15185
|
)
|
|
15184
15186
|
]);
|
|
15185
15187
|
}
|
|
@@ -15317,18 +15319,20 @@ var MezonApi = class {
|
|
|
15317
15319
|
if (basicAuthUsername) {
|
|
15318
15320
|
fetchOptions.headers["Authorization"] = "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
|
|
15319
15321
|
}
|
|
15322
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15320
15323
|
return Promise.race([
|
|
15321
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15324
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15322
15325
|
if (response.status == 204) {
|
|
15323
|
-
return
|
|
15326
|
+
return {};
|
|
15324
15327
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15325
|
-
|
|
15328
|
+
const buffer = yield response.arrayBuffer();
|
|
15329
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15326
15330
|
} else {
|
|
15327
15331
|
throw response;
|
|
15328
15332
|
}
|
|
15329
|
-
}),
|
|
15333
|
+
})),
|
|
15330
15334
|
new Promise(
|
|
15331
|
-
(_, reject) => setTimeout(reject
|
|
15335
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15332
15336
|
)
|
|
15333
15337
|
]);
|
|
15334
15338
|
}
|
|
@@ -15349,18 +15353,20 @@ var MezonApi = class {
|
|
|
15349
15353
|
if (basicAuthUsername) {
|
|
15350
15354
|
fetchOptions.headers["Authorization"] = "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
|
|
15351
15355
|
}
|
|
15356
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15352
15357
|
return Promise.race([
|
|
15353
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15358
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15354
15359
|
if (response.status == 204) {
|
|
15355
|
-
return
|
|
15360
|
+
return {};
|
|
15356
15361
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15357
|
-
|
|
15362
|
+
const buffer = yield response.arrayBuffer();
|
|
15363
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15358
15364
|
} else {
|
|
15359
15365
|
throw response;
|
|
15360
15366
|
}
|
|
15361
|
-
}),
|
|
15367
|
+
})),
|
|
15362
15368
|
new Promise(
|
|
15363
|
-
(_, reject) => setTimeout(reject
|
|
15369
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15364
15370
|
)
|
|
15365
15371
|
]);
|
|
15366
15372
|
}
|
|
@@ -15438,18 +15444,20 @@ var MezonApi = class {
|
|
|
15438
15444
|
if (bearerToken) {
|
|
15439
15445
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
15440
15446
|
}
|
|
15447
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15441
15448
|
return Promise.race([
|
|
15442
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15449
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15443
15450
|
if (response.status == 204) {
|
|
15444
|
-
return
|
|
15451
|
+
return {};
|
|
15445
15452
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15446
|
-
|
|
15453
|
+
const buffer = yield response.arrayBuffer();
|
|
15454
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15447
15455
|
} else {
|
|
15448
15456
|
throw response;
|
|
15449
15457
|
}
|
|
15450
|
-
}),
|
|
15458
|
+
})),
|
|
15451
15459
|
new Promise(
|
|
15452
|
-
(_, reject) => setTimeout(reject
|
|
15460
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15453
15461
|
)
|
|
15454
15462
|
]);
|
|
15455
15463
|
}
|
|
@@ -15467,18 +15475,20 @@ var MezonApi = class {
|
|
|
15467
15475
|
if (basicAuthUsername) {
|
|
15468
15476
|
fetchOptions.headers["Authorization"] = "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
|
|
15469
15477
|
}
|
|
15478
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15470
15479
|
return Promise.race([
|
|
15471
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15480
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15472
15481
|
if (response.status == 204) {
|
|
15473
|
-
return
|
|
15482
|
+
return {};
|
|
15474
15483
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15475
|
-
|
|
15484
|
+
const buffer = yield response.arrayBuffer();
|
|
15485
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15476
15486
|
} else {
|
|
15477
15487
|
throw response;
|
|
15478
15488
|
}
|
|
15479
|
-
}),
|
|
15489
|
+
})),
|
|
15480
15490
|
new Promise(
|
|
15481
|
-
(_, reject) => setTimeout(reject
|
|
15491
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15482
15492
|
)
|
|
15483
15493
|
]);
|
|
15484
15494
|
}
|
|
@@ -15498,18 +15508,20 @@ var MezonApi = class {
|
|
|
15498
15508
|
if (bearerToken) {
|
|
15499
15509
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
15500
15510
|
}
|
|
15511
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
15501
15512
|
return Promise.race([
|
|
15502
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
15513
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
15503
15514
|
if (response.status == 204) {
|
|
15504
|
-
return
|
|
15515
|
+
return {};
|
|
15505
15516
|
} else if (response.status >= 200 && response.status < 300) {
|
|
15506
|
-
|
|
15517
|
+
const buffer = yield response.arrayBuffer();
|
|
15518
|
+
return Session.decode(new Uint8Array(buffer));
|
|
15507
15519
|
} else {
|
|
15508
15520
|
throw response;
|
|
15509
15521
|
}
|
|
15510
|
-
}),
|
|
15522
|
+
})),
|
|
15511
15523
|
new Promise(
|
|
15512
|
-
(_, reject) => setTimeout(reject
|
|
15524
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
15513
15525
|
)
|
|
15514
15526
|
]);
|
|
15515
15527
|
}
|
|
@@ -21442,18 +21454,20 @@ var MezonApi = class {
|
|
|
21442
21454
|
if (bearerToken) {
|
|
21443
21455
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
21444
21456
|
}
|
|
21457
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
21445
21458
|
return Promise.race([
|
|
21446
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
21459
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
21447
21460
|
if (response.status == 204) {
|
|
21448
|
-
return
|
|
21461
|
+
return {};
|
|
21449
21462
|
} else if (response.status >= 200 && response.status < 300) {
|
|
21450
|
-
|
|
21463
|
+
const buffer = yield response.arrayBuffer();
|
|
21464
|
+
return Session.decode(new Uint8Array(buffer));
|
|
21451
21465
|
} else {
|
|
21452
21466
|
throw response;
|
|
21453
21467
|
}
|
|
21454
|
-
}),
|
|
21468
|
+
})),
|
|
21455
21469
|
new Promise(
|
|
21456
|
-
(_, reject) => setTimeout(reject
|
|
21470
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
21457
21471
|
)
|
|
21458
21472
|
]);
|
|
21459
21473
|
}
|