mezon-js 2.13.67 → 2.13.68
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 +40395 -0
- package/api.gen.ts +253 -180
- package/client.ts +11 -4
- package/dist/api/api.d.ts +23765 -0
- package/dist/google/protobuf/struct.d.ts +201 -0
- package/dist/google/protobuf/timestamp.d.ts +139 -0
- package/dist/google/protobuf/wrappers.d.ts +238 -0
- package/dist/mezon-js.cjs.js +3171 -209
- package/dist/mezon-js.esm.mjs +3180 -208
- package/google/protobuf/struct.ts +554 -0
- package/google/protobuf/timestamp.ts +223 -0
- package/google/protobuf/wrappers.ts +670 -0
- package/package.json +2 -1
- package/rollup.config.js +5 -1
package/api.gen.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { buildFetchOptions } from "./utils";
|
|
5
5
|
import { encode } from "js-base64";
|
|
6
|
+
import * as tsproto from "./api/api";
|
|
6
7
|
|
|
7
8
|
/** A single user-role pair. */
|
|
8
9
|
export interface ChannelUserListChannelUser {
|
|
@@ -3537,19 +3538,21 @@ export class MezonApi {
|
|
|
3537
3538
|
if (bearerToken) {
|
|
3538
3539
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3539
3540
|
}
|
|
3541
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3540
3542
|
|
|
3541
3543
|
return Promise.race([
|
|
3542
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
3544
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
3543
3545
|
if (response.status == 204) {
|
|
3544
|
-
return
|
|
3546
|
+
return {} as ApiAccount;
|
|
3545
3547
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3546
|
-
|
|
3548
|
+
const buffer = await response.arrayBuffer();
|
|
3549
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiAccount;
|
|
3547
3550
|
} else {
|
|
3548
3551
|
throw response;
|
|
3549
3552
|
}
|
|
3550
3553
|
}),
|
|
3551
|
-
new Promise((_, reject) =>
|
|
3552
|
-
setTimeout(reject
|
|
3554
|
+
new Promise<never>((_, reject) =>
|
|
3555
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3553
3556
|
),
|
|
3554
3557
|
]);
|
|
3555
3558
|
}
|
|
@@ -4919,19 +4922,21 @@ export class MezonApi {
|
|
|
4919
4922
|
if (bearerToken) {
|
|
4920
4923
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4921
4924
|
}
|
|
4925
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4922
4926
|
|
|
4923
4927
|
return Promise.race([
|
|
4924
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
4928
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
4925
4929
|
if (response.status == 204) {
|
|
4926
|
-
return
|
|
4930
|
+
return {} as ApiChannelMessageList;
|
|
4927
4931
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4928
|
-
|
|
4932
|
+
const buffer = await response.arrayBuffer();
|
|
4933
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiChannelMessageList;
|
|
4929
4934
|
} else {
|
|
4930
4935
|
throw response;
|
|
4931
4936
|
}
|
|
4932
4937
|
}),
|
|
4933
|
-
new Promise((_, reject) =>
|
|
4934
|
-
setTimeout(reject
|
|
4938
|
+
new Promise<never>((_, reject) =>
|
|
4939
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4935
4940
|
),
|
|
4936
4941
|
]);
|
|
4937
4942
|
}
|
|
@@ -5279,19 +5284,21 @@ export class MezonApi {
|
|
|
5279
5284
|
if (bearerToken) {
|
|
5280
5285
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5281
5286
|
}
|
|
5287
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5282
5288
|
|
|
5283
5289
|
return Promise.race([
|
|
5284
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5290
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
5285
5291
|
if (response.status == 204) {
|
|
5286
|
-
return
|
|
5292
|
+
return {} as ApiChannelDescList;
|
|
5287
5293
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5288
|
-
|
|
5294
|
+
const buffer = await response.arrayBuffer();
|
|
5295
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiChannelDescList;
|
|
5289
5296
|
} else {
|
|
5290
5297
|
throw response;
|
|
5291
5298
|
}
|
|
5292
5299
|
}),
|
|
5293
|
-
|
|
5294
|
-
setTimeout(reject
|
|
5300
|
+
new Promise<never>((_, reject) =>
|
|
5301
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5295
5302
|
),
|
|
5296
5303
|
]);
|
|
5297
5304
|
}
|
|
@@ -5354,19 +5361,21 @@ export class MezonApi {
|
|
|
5354
5361
|
if (bearerToken) {
|
|
5355
5362
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5356
5363
|
}
|
|
5364
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5357
5365
|
|
|
5358
5366
|
return Promise.race([
|
|
5359
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5367
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
5360
5368
|
if (response.status == 204) {
|
|
5361
|
-
return
|
|
5369
|
+
return {} as ApiAllUsersAddChannelResponse;
|
|
5362
5370
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5363
|
-
|
|
5371
|
+
const buffer = await response.arrayBuffer();
|
|
5372
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiAllUsersAddChannelResponse;
|
|
5364
5373
|
} else {
|
|
5365
5374
|
throw response;
|
|
5366
5375
|
}
|
|
5367
5376
|
}),
|
|
5368
|
-
new Promise((_, reject) =>
|
|
5369
|
-
setTimeout(reject
|
|
5377
|
+
new Promise<never>((_, reject) =>
|
|
5378
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5370
5379
|
),
|
|
5371
5380
|
]);
|
|
5372
5381
|
}
|
|
@@ -5492,19 +5501,21 @@ export class MezonApi {
|
|
|
5492
5501
|
if (bearerToken) {
|
|
5493
5502
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5494
5503
|
}
|
|
5504
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5495
5505
|
|
|
5496
5506
|
return Promise.race([
|
|
5497
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5507
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
5498
5508
|
if (response.status == 204) {
|
|
5499
|
-
return
|
|
5509
|
+
return {} as ApiChannelSettingListResponse;
|
|
5500
5510
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5501
|
-
|
|
5511
|
+
const buffer = await response.arrayBuffer();
|
|
5512
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiChannelSettingListResponse;
|
|
5502
5513
|
} else {
|
|
5503
5514
|
throw response;
|
|
5504
5515
|
}
|
|
5505
5516
|
}),
|
|
5506
|
-
new Promise((_, reject) =>
|
|
5507
|
-
setTimeout(reject
|
|
5517
|
+
new Promise<never>((_, reject) =>
|
|
5518
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5508
5519
|
),
|
|
5509
5520
|
]);
|
|
5510
5521
|
}
|
|
@@ -5536,19 +5547,21 @@ export class MezonApi {
|
|
|
5536
5547
|
if (bearerToken) {
|
|
5537
5548
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5538
5549
|
}
|
|
5550
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5539
5551
|
|
|
5540
5552
|
return Promise.race([
|
|
5541
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5553
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
5542
5554
|
if (response.status == 204) {
|
|
5543
|
-
return
|
|
5555
|
+
return {} as ApiVoiceChannelUserList;
|
|
5544
5556
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5545
|
-
|
|
5557
|
+
const buffer = await response.arrayBuffer();
|
|
5558
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiVoiceChannelUserList;
|
|
5546
5559
|
} else {
|
|
5547
5560
|
throw response;
|
|
5548
5561
|
}
|
|
5549
5562
|
}),
|
|
5550
|
-
new Promise((_, reject) =>
|
|
5551
|
-
setTimeout(reject
|
|
5563
|
+
new Promise<never>((_, reject) =>
|
|
5564
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5552
5565
|
),
|
|
5553
5566
|
]);
|
|
5554
5567
|
}
|
|
@@ -5572,19 +5585,21 @@ export class MezonApi {
|
|
|
5572
5585
|
if (bearerToken) {
|
|
5573
5586
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5574
5587
|
}
|
|
5588
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5575
5589
|
|
|
5576
5590
|
return Promise.race([
|
|
5577
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5591
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
5578
5592
|
if (response.status == 204) {
|
|
5579
|
-
return
|
|
5593
|
+
return {} as ApiListClanUnreadMsgIndicatorResponse;
|
|
5580
5594
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5581
|
-
|
|
5595
|
+
const buffer = await response.arrayBuffer();
|
|
5596
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiListClanUnreadMsgIndicatorResponse;
|
|
5582
5597
|
} else {
|
|
5583
5598
|
throw response;
|
|
5584
5599
|
}
|
|
5585
5600
|
}),
|
|
5586
|
-
new Promise((_, reject) =>
|
|
5587
|
-
setTimeout(reject
|
|
5601
|
+
new Promise<never>((_, reject) =>
|
|
5602
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5588
5603
|
),
|
|
5589
5604
|
]);
|
|
5590
5605
|
}
|
|
@@ -5610,19 +5625,21 @@ export class MezonApi {
|
|
|
5610
5625
|
if (bearerToken) {
|
|
5611
5626
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5612
5627
|
}
|
|
5628
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5613
5629
|
|
|
5614
5630
|
return Promise.race([
|
|
5615
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5631
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
5616
5632
|
if (response.status == 204) {
|
|
5617
|
-
return
|
|
5633
|
+
return {} as ApiClanDescList;
|
|
5618
5634
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5619
|
-
|
|
5635
|
+
const buffer = await response.arrayBuffer();
|
|
5636
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiClanDescList;
|
|
5620
5637
|
} else {
|
|
5621
5638
|
throw response;
|
|
5622
5639
|
}
|
|
5623
5640
|
}),
|
|
5624
|
-
new Promise((_, reject) =>
|
|
5625
|
-
setTimeout(reject
|
|
5641
|
+
new Promise<never>((_, reject) =>
|
|
5642
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5626
5643
|
),
|
|
5627
5644
|
]);
|
|
5628
5645
|
}
|
|
@@ -5941,19 +5958,21 @@ export class MezonApi {
|
|
|
5941
5958
|
if (bearerToken) {
|
|
5942
5959
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5943
5960
|
}
|
|
5961
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5944
5962
|
|
|
5945
5963
|
return Promise.race([
|
|
5946
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5964
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
5947
5965
|
if (response.status == 204) {
|
|
5948
|
-
return
|
|
5966
|
+
return {} as ApiClanUserList;
|
|
5949
5967
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5950
|
-
|
|
5968
|
+
const buffer = await response.arrayBuffer();
|
|
5969
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiClanUserList;
|
|
5951
5970
|
} else {
|
|
5952
5971
|
throw response;
|
|
5953
5972
|
}
|
|
5954
5973
|
}),
|
|
5955
|
-
new Promise((_, reject) =>
|
|
5956
|
-
setTimeout(reject
|
|
5974
|
+
new Promise<never>((_, reject) =>
|
|
5975
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5957
5976
|
),
|
|
5958
5977
|
]);
|
|
5959
5978
|
}
|
|
@@ -6389,19 +6408,21 @@ export class MezonApi {
|
|
|
6389
6408
|
if (bearerToken) {
|
|
6390
6409
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6391
6410
|
}
|
|
6411
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6392
6412
|
|
|
6393
6413
|
return Promise.race([
|
|
6394
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6414
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
6395
6415
|
if (response.status == 204) {
|
|
6396
|
-
return
|
|
6416
|
+
return {} as ApiEmojiRecentList;
|
|
6397
6417
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6398
|
-
|
|
6418
|
+
const buffer = await response.arrayBuffer();
|
|
6419
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiEmojiRecentList;
|
|
6399
6420
|
} else {
|
|
6400
6421
|
throw response;
|
|
6401
6422
|
}
|
|
6402
6423
|
}),
|
|
6403
|
-
new Promise((_, reject) =>
|
|
6404
|
-
setTimeout(reject
|
|
6424
|
+
new Promise<never>((_, reject) =>
|
|
6425
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6405
6426
|
),
|
|
6406
6427
|
]);
|
|
6407
6428
|
}
|
|
@@ -6421,19 +6442,21 @@ export class MezonApi {
|
|
|
6421
6442
|
if (bearerToken) {
|
|
6422
6443
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6423
6444
|
}
|
|
6445
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6424
6446
|
|
|
6425
6447
|
return Promise.race([
|
|
6426
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6448
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
6427
6449
|
if (response.status == 204) {
|
|
6428
|
-
return
|
|
6450
|
+
return {} as ApiEmojiListedResponse;
|
|
6429
6451
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6430
|
-
|
|
6452
|
+
const buffer = await response.arrayBuffer();
|
|
6453
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiEmojiListedResponse;
|
|
6431
6454
|
} else {
|
|
6432
6455
|
throw response;
|
|
6433
6456
|
}
|
|
6434
6457
|
}),
|
|
6435
|
-
new Promise((_, reject) =>
|
|
6436
|
-
setTimeout(reject
|
|
6458
|
+
new Promise<never>((_, reject) =>
|
|
6459
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6437
6460
|
),
|
|
6438
6461
|
]);
|
|
6439
6462
|
}
|
|
@@ -6529,19 +6552,21 @@ export class MezonApi {
|
|
|
6529
6552
|
if (bearerToken) {
|
|
6530
6553
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6531
6554
|
}
|
|
6555
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6532
6556
|
|
|
6533
6557
|
return Promise.race([
|
|
6534
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6558
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
6535
6559
|
if (response.status == 204) {
|
|
6536
|
-
return
|
|
6560
|
+
return {} as ApiEventList;
|
|
6537
6561
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6538
|
-
|
|
6562
|
+
const buffer = await response.arrayBuffer();
|
|
6563
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiEventList;
|
|
6539
6564
|
} else {
|
|
6540
6565
|
throw response;
|
|
6541
6566
|
}
|
|
6542
6567
|
}),
|
|
6543
|
-
new Promise((_, reject) =>
|
|
6544
|
-
setTimeout(reject
|
|
6568
|
+
new Promise<never>((_, reject) =>
|
|
6569
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6545
6570
|
),
|
|
6546
6571
|
]);
|
|
6547
6572
|
}
|
|
@@ -6778,19 +6803,21 @@ export class MezonApi {
|
|
|
6778
6803
|
if (bearerToken) {
|
|
6779
6804
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6780
6805
|
}
|
|
6806
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6781
6807
|
|
|
6782
6808
|
return Promise.race([
|
|
6783
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6809
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
6784
6810
|
if (response.status == 204) {
|
|
6785
|
-
return
|
|
6811
|
+
return {} as ApiFriendList;
|
|
6786
6812
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6787
|
-
|
|
6813
|
+
const buffer = await response.arrayBuffer();
|
|
6814
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiFriendList;
|
|
6788
6815
|
} else {
|
|
6789
6816
|
throw response;
|
|
6790
6817
|
}
|
|
6791
6818
|
}),
|
|
6792
|
-
new Promise((_, reject) =>
|
|
6793
|
-
setTimeout(reject
|
|
6819
|
+
new Promise<never>((_, reject) =>
|
|
6820
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6794
6821
|
),
|
|
6795
6822
|
]);
|
|
6796
6823
|
}
|
|
@@ -6919,19 +6946,21 @@ export class MezonApi {
|
|
|
6919
6946
|
if (bearerToken) {
|
|
6920
6947
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6921
6948
|
}
|
|
6949
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6922
6950
|
|
|
6923
6951
|
return Promise.race([
|
|
6924
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6952
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
6925
6953
|
if (response.status == 204) {
|
|
6926
|
-
return
|
|
6954
|
+
return {} as ApiNotificationChannelCategorySettingList;
|
|
6927
6955
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6928
|
-
|
|
6956
|
+
const buffer = await response.arrayBuffer();
|
|
6957
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiNotificationChannelCategorySettingList;
|
|
6929
6958
|
} else {
|
|
6930
6959
|
throw response;
|
|
6931
6960
|
}
|
|
6932
6961
|
}),
|
|
6933
|
-
new Promise((_, reject) =>
|
|
6934
|
-
setTimeout(reject
|
|
6962
|
+
new Promise<never>((_, reject) =>
|
|
6963
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6935
6964
|
),
|
|
6936
6965
|
]);
|
|
6937
6966
|
}
|
|
@@ -6994,19 +7023,21 @@ export class MezonApi {
|
|
|
6994
7023
|
if (bearerToken) {
|
|
6995
7024
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6996
7025
|
}
|
|
7026
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6997
7027
|
|
|
6998
7028
|
return Promise.race([
|
|
6999
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7029
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
7000
7030
|
if (response.status == 204) {
|
|
7001
|
-
return
|
|
7031
|
+
return {} as ApiNotificationUserChannel;
|
|
7002
7032
|
} else if (response.status >= 200 && response.status < 300) {
|
|
7003
|
-
|
|
7033
|
+
const buffer = await response.arrayBuffer();
|
|
7034
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiNotificationUserChannel;
|
|
7004
7035
|
} else {
|
|
7005
7036
|
throw response;
|
|
7006
7037
|
}
|
|
7007
7038
|
}),
|
|
7008
|
-
new Promise((_, reject) =>
|
|
7009
|
-
setTimeout(reject
|
|
7039
|
+
new Promise<never>((_, reject) =>
|
|
7040
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
7010
7041
|
),
|
|
7011
7042
|
]);
|
|
7012
7043
|
}
|
|
@@ -7028,19 +7059,21 @@ export class MezonApi {
|
|
|
7028
7059
|
if (bearerToken) {
|
|
7029
7060
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
7030
7061
|
}
|
|
7062
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
7031
7063
|
|
|
7032
7064
|
return Promise.race([
|
|
7033
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7065
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
7034
7066
|
if (response.status == 204) {
|
|
7035
|
-
return
|
|
7067
|
+
return {} as ApiNotificationUserChannel;
|
|
7036
7068
|
} else if (response.status >= 200 && response.status < 300) {
|
|
7037
|
-
|
|
7069
|
+
const buffer = await response.arrayBuffer();
|
|
7070
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiNotificationUserChannel;
|
|
7038
7071
|
} else {
|
|
7039
7072
|
throw response;
|
|
7040
7073
|
}
|
|
7041
7074
|
}),
|
|
7042
|
-
new Promise((_, reject) =>
|
|
7043
|
-
setTimeout(reject
|
|
7075
|
+
new Promise<never>((_, reject) =>
|
|
7076
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
7044
7077
|
),
|
|
7045
7078
|
]);
|
|
7046
7079
|
}
|
|
@@ -7062,19 +7095,21 @@ export class MezonApi {
|
|
|
7062
7095
|
if (bearerToken) {
|
|
7063
7096
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
7064
7097
|
}
|
|
7098
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
7065
7099
|
|
|
7066
7100
|
return Promise.race([
|
|
7067
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7101
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
7068
7102
|
if (response.status == 204) {
|
|
7069
|
-
return
|
|
7103
|
+
return {} as ApiNotificationSetting;
|
|
7070
7104
|
} else if (response.status >= 200 && response.status < 300) {
|
|
7071
|
-
|
|
7105
|
+
const buffer = await response.arrayBuffer();
|
|
7106
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiNotificationSetting;
|
|
7072
7107
|
} else {
|
|
7073
7108
|
throw response;
|
|
7074
7109
|
}
|
|
7075
7110
|
}),
|
|
7076
|
-
new Promise((_, reject) =>
|
|
7077
|
-
setTimeout(reject
|
|
7111
|
+
new Promise<never>((_, reject) =>
|
|
7112
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
7078
7113
|
),
|
|
7079
7114
|
]);
|
|
7080
7115
|
}
|
|
@@ -7358,19 +7393,21 @@ export class MezonApi {
|
|
|
7358
7393
|
if (bearerToken) {
|
|
7359
7394
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
7360
7395
|
}
|
|
7396
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
7361
7397
|
|
|
7362
7398
|
return Promise.race([
|
|
7363
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7399
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
7364
7400
|
if (response.status == 204) {
|
|
7365
|
-
return
|
|
7401
|
+
return {} as ApiChannelDescList;
|
|
7366
7402
|
} else if (response.status >= 200 && response.status < 300) {
|
|
7367
|
-
|
|
7403
|
+
const buffer = await response.arrayBuffer();
|
|
7404
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiChannelDescList;
|
|
7368
7405
|
} else {
|
|
7369
7406
|
throw response;
|
|
7370
7407
|
}
|
|
7371
7408
|
}),
|
|
7372
|
-
new Promise((_, reject) =>
|
|
7373
|
-
setTimeout(reject
|
|
7409
|
+
new Promise<never>((_, reject) =>
|
|
7410
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
7374
7411
|
),
|
|
7375
7412
|
]);
|
|
7376
7413
|
}
|
|
@@ -7584,19 +7621,21 @@ export class MezonApi {
|
|
|
7584
7621
|
if (bearerToken) {
|
|
7585
7622
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
7586
7623
|
}
|
|
7624
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
7587
7625
|
|
|
7588
7626
|
return Promise.race([
|
|
7589
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7627
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
7590
7628
|
if (response.status == 204) {
|
|
7591
|
-
return
|
|
7629
|
+
return {} as ApiNotificationList;
|
|
7592
7630
|
} else if (response.status >= 200 && response.status < 300) {
|
|
7593
|
-
|
|
7631
|
+
const buffer = await response.arrayBuffer();
|
|
7632
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiNotificationList;
|
|
7594
7633
|
} else {
|
|
7595
7634
|
throw response;
|
|
7596
7635
|
}
|
|
7597
7636
|
}),
|
|
7598
|
-
new Promise((_, reject) =>
|
|
7599
|
-
setTimeout(reject
|
|
7637
|
+
new Promise<never>((_, reject) =>
|
|
7638
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
7600
7639
|
),
|
|
7601
7640
|
]);
|
|
7602
7641
|
}
|
|
@@ -7952,19 +7991,21 @@ export class MezonApi {
|
|
|
7952
7991
|
if (bearerToken) {
|
|
7953
7992
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
7954
7993
|
}
|
|
7994
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
7955
7995
|
|
|
7956
7996
|
return Promise.race([
|
|
7957
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7997
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
7958
7998
|
if (response.status == 204) {
|
|
7959
|
-
return
|
|
7999
|
+
return {} as ApiPermissionList;
|
|
7960
8000
|
} else if (response.status >= 200 && response.status < 300) {
|
|
7961
|
-
|
|
8001
|
+
const buffer = await response.arrayBuffer();
|
|
8002
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiPermissionList;
|
|
7962
8003
|
} else {
|
|
7963
8004
|
throw response;
|
|
7964
8005
|
}
|
|
7965
8006
|
}),
|
|
7966
|
-
new Promise((_, reject) =>
|
|
7967
|
-
setTimeout(reject
|
|
8007
|
+
new Promise<never>((_, reject) =>
|
|
8008
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
7968
8009
|
),
|
|
7969
8010
|
]);
|
|
7970
8011
|
}
|
|
@@ -7990,19 +8031,21 @@ export class MezonApi {
|
|
|
7990
8031
|
if (bearerToken) {
|
|
7991
8032
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
7992
8033
|
}
|
|
8034
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
7993
8035
|
|
|
7994
8036
|
return Promise.race([
|
|
7995
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8037
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
7996
8038
|
if (response.status == 204) {
|
|
7997
|
-
return
|
|
8039
|
+
return {} as ApiPermissionRoleChannelListEventResponse;
|
|
7998
8040
|
} else if (response.status >= 200 && response.status < 300) {
|
|
7999
|
-
|
|
8041
|
+
const buffer = await response.arrayBuffer();
|
|
8042
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiPermissionRoleChannelListEventResponse;
|
|
8000
8043
|
} else {
|
|
8001
8044
|
throw response;
|
|
8002
8045
|
}
|
|
8003
8046
|
}),
|
|
8004
|
-
new Promise((_, reject) =>
|
|
8005
|
-
setTimeout(reject
|
|
8047
|
+
new Promise<never>((_, reject) =>
|
|
8048
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
8006
8049
|
),
|
|
8007
8050
|
]);
|
|
8008
8051
|
}
|
|
@@ -8068,19 +8111,21 @@ export class MezonApi {
|
|
|
8068
8111
|
if (bearerToken) {
|
|
8069
8112
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
8070
8113
|
}
|
|
8114
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
8071
8115
|
|
|
8072
8116
|
return Promise.race([
|
|
8073
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8117
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
8074
8118
|
if (response.status == 204) {
|
|
8075
|
-
return
|
|
8119
|
+
return {} as ApiPinMessagesList;
|
|
8076
8120
|
} else if (response.status >= 200 && response.status < 300) {
|
|
8077
|
-
|
|
8121
|
+
const buffer = await response.arrayBuffer();
|
|
8122
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiPinMessagesList;
|
|
8078
8123
|
} else {
|
|
8079
8124
|
throw response;
|
|
8080
8125
|
}
|
|
8081
8126
|
}),
|
|
8082
|
-
new Promise((_, reject) =>
|
|
8083
|
-
setTimeout(reject
|
|
8127
|
+
new Promise<never>((_, reject) =>
|
|
8128
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
8084
8129
|
),
|
|
8085
8130
|
]);
|
|
8086
8131
|
}
|
|
@@ -8382,19 +8427,21 @@ export class MezonApi {
|
|
|
8382
8427
|
if (bearerToken) {
|
|
8383
8428
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
8384
8429
|
}
|
|
8430
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
8385
8431
|
|
|
8386
8432
|
return Promise.race([
|
|
8387
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8433
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
8388
8434
|
if (response.status == 204) {
|
|
8389
|
-
return
|
|
8435
|
+
return {} as ApiRoleListEventResponse;
|
|
8390
8436
|
} else if (response.status >= 200 && response.status < 300) {
|
|
8391
|
-
|
|
8437
|
+
const buffer = await response.arrayBuffer();
|
|
8438
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiRoleListEventResponse;
|
|
8392
8439
|
} else {
|
|
8393
8440
|
throw response;
|
|
8394
8441
|
}
|
|
8395
8442
|
}),
|
|
8396
|
-
new Promise((_, reject) =>
|
|
8397
|
-
setTimeout(reject
|
|
8443
|
+
new Promise<never>((_, reject) =>
|
|
8444
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
8398
8445
|
),
|
|
8399
8446
|
]);
|
|
8400
8447
|
}
|
|
@@ -8605,19 +8652,21 @@ export class MezonApi {
|
|
|
8605
8652
|
if (bearerToken) {
|
|
8606
8653
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
8607
8654
|
}
|
|
8655
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
8608
8656
|
|
|
8609
8657
|
return Promise.race([
|
|
8610
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8658
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
8611
8659
|
if (response.status == 204) {
|
|
8612
|
-
return
|
|
8660
|
+
return {};
|
|
8613
8661
|
} else if (response.status >= 200 && response.status < 300) {
|
|
8614
|
-
|
|
8662
|
+
const buffer = await response.arrayBuffer();
|
|
8663
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiPermissionList;
|
|
8615
8664
|
} else {
|
|
8616
8665
|
throw response;
|
|
8617
8666
|
}
|
|
8618
8667
|
}),
|
|
8619
|
-
new Promise((_, reject) =>
|
|
8620
|
-
setTimeout(reject
|
|
8668
|
+
new Promise<never>((_, reject) =>
|
|
8669
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
8621
8670
|
),
|
|
8622
8671
|
]);
|
|
8623
8672
|
}
|
|
@@ -8650,19 +8699,21 @@ export class MezonApi {
|
|
|
8650
8699
|
if (bearerToken) {
|
|
8651
8700
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
8652
8701
|
}
|
|
8702
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
8653
8703
|
|
|
8654
8704
|
return Promise.race([
|
|
8655
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8705
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
8656
8706
|
if (response.status == 204) {
|
|
8657
|
-
return
|
|
8707
|
+
return {} as ApiRoleUserList;
|
|
8658
8708
|
} else if (response.status >= 200 && response.status < 300) {
|
|
8659
|
-
|
|
8709
|
+
const buffer = await response.arrayBuffer();
|
|
8710
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiRoleUserList;
|
|
8660
8711
|
} else {
|
|
8661
8712
|
throw response;
|
|
8662
8713
|
}
|
|
8663
8714
|
}),
|
|
8664
|
-
new Promise((_, reject) =>
|
|
8665
|
-
setTimeout(reject
|
|
8715
|
+
new Promise<never>((_, reject) =>
|
|
8716
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
8666
8717
|
),
|
|
8667
8718
|
]);
|
|
8668
8719
|
}
|
|
@@ -8693,19 +8744,21 @@ export class MezonApi {
|
|
|
8693
8744
|
if (bearerToken) {
|
|
8694
8745
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
8695
8746
|
}
|
|
8747
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
8696
8748
|
|
|
8697
8749
|
return Promise.race([
|
|
8698
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8750
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
8699
8751
|
if (response.status == 204) {
|
|
8700
|
-
return
|
|
8752
|
+
return {} as ApiRoleList;
|
|
8701
8753
|
} else if (response.status >= 200 && response.status < 300) {
|
|
8702
|
-
|
|
8754
|
+
const buffer = await response.arrayBuffer();
|
|
8755
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiRoleList;
|
|
8703
8756
|
} else {
|
|
8704
8757
|
throw response;
|
|
8705
8758
|
}
|
|
8706
8759
|
}),
|
|
8707
|
-
new Promise((_, reject) =>
|
|
8708
|
-
setTimeout(reject
|
|
8760
|
+
new Promise<never>((_, reject) =>
|
|
8761
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
8709
8762
|
),
|
|
8710
8763
|
]);
|
|
8711
8764
|
}
|
|
@@ -9071,19 +9124,21 @@ export class MezonApi {
|
|
|
9071
9124
|
if (bearerToken) {
|
|
9072
9125
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
9073
9126
|
}
|
|
9127
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
9074
9128
|
|
|
9075
9129
|
return Promise.race([
|
|
9076
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9130
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
9077
9131
|
if (response.status == 204) {
|
|
9078
|
-
return
|
|
9132
|
+
return {} as ApiStickerListedResponse;
|
|
9079
9133
|
} else if (response.status >= 200 && response.status < 300) {
|
|
9080
|
-
|
|
9134
|
+
const buffer = await response.arrayBuffer();
|
|
9135
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiStickerListedResponse;
|
|
9081
9136
|
} else {
|
|
9082
9137
|
throw response;
|
|
9083
9138
|
}
|
|
9084
9139
|
}),
|
|
9085
|
-
new Promise((_, reject) =>
|
|
9086
|
-
setTimeout(reject
|
|
9140
|
+
new Promise<never>((_, reject) =>
|
|
9141
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
9087
9142
|
),
|
|
9088
9143
|
]);
|
|
9089
9144
|
}
|
|
@@ -9105,19 +9160,21 @@ export class MezonApi {
|
|
|
9105
9160
|
if (bearerToken) {
|
|
9106
9161
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
9107
9162
|
}
|
|
9163
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
9108
9164
|
|
|
9109
9165
|
return Promise.race([
|
|
9110
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9166
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
9111
9167
|
if (response.status == 204) {
|
|
9112
|
-
return
|
|
9168
|
+
return {} as ApiListStreamingChannelsResponse;
|
|
9113
9169
|
} else if (response.status >= 200 && response.status < 300) {
|
|
9114
|
-
|
|
9170
|
+
const buffer = await response.arrayBuffer();
|
|
9171
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiListStreamingChannelsResponse;
|
|
9115
9172
|
} else {
|
|
9116
9173
|
throw response;
|
|
9117
9174
|
}
|
|
9118
9175
|
}),
|
|
9119
|
-
new Promise((_, reject) =>
|
|
9120
|
-
setTimeout(reject
|
|
9176
|
+
new Promise<never>((_, reject) =>
|
|
9177
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
9121
9178
|
),
|
|
9122
9179
|
]);
|
|
9123
9180
|
}
|
|
@@ -9188,19 +9245,21 @@ export class MezonApi {
|
|
|
9188
9245
|
if (bearerToken) {
|
|
9189
9246
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
9190
9247
|
}
|
|
9248
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
9191
9249
|
|
|
9192
9250
|
return Promise.race([
|
|
9193
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9251
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
9194
9252
|
if (response.status == 204) {
|
|
9195
|
-
return
|
|
9253
|
+
return {} as ApiStreamingChannelUserList;
|
|
9196
9254
|
} else if (response.status >= 200 && response.status < 300) {
|
|
9197
|
-
|
|
9255
|
+
const buffer = await response.arrayBuffer();
|
|
9256
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiStreamingChannelUserList;
|
|
9198
9257
|
} else {
|
|
9199
9258
|
throw response;
|
|
9200
9259
|
}
|
|
9201
9260
|
}),
|
|
9202
|
-
new Promise((_, reject) =>
|
|
9203
|
-
setTimeout(reject
|
|
9261
|
+
new Promise<never>((_, reject) =>
|
|
9262
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
9204
9263
|
),
|
|
9205
9264
|
]);
|
|
9206
9265
|
}
|
|
@@ -9220,19 +9279,21 @@ export class MezonApi {
|
|
|
9220
9279
|
if (bearerToken) {
|
|
9221
9280
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
9222
9281
|
}
|
|
9282
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
9223
9283
|
|
|
9224
9284
|
return Promise.race([
|
|
9225
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9285
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
9226
9286
|
if (response.status == 204) {
|
|
9227
|
-
return
|
|
9287
|
+
return {} as ApiSystemMessagesList;
|
|
9228
9288
|
} else if (response.status >= 200 && response.status < 300) {
|
|
9229
|
-
|
|
9289
|
+
const buffer = await response.arrayBuffer();
|
|
9290
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiSystemMessagesList;
|
|
9230
9291
|
} else {
|
|
9231
9292
|
throw response;
|
|
9232
9293
|
}
|
|
9233
9294
|
}),
|
|
9234
|
-
new Promise((_, reject) =>
|
|
9235
|
-
setTimeout(reject
|
|
9295
|
+
new Promise<never>((_, reject) =>
|
|
9296
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
9236
9297
|
),
|
|
9237
9298
|
]);
|
|
9238
9299
|
}
|
|
@@ -9295,19 +9356,21 @@ export class MezonApi {
|
|
|
9295
9356
|
if (bearerToken) {
|
|
9296
9357
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
9297
9358
|
}
|
|
9359
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
9298
9360
|
|
|
9299
9361
|
return Promise.race([
|
|
9300
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9362
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
9301
9363
|
if (response.status == 204) {
|
|
9302
|
-
return
|
|
9364
|
+
return {} as ApiSdTopicList;
|
|
9303
9365
|
} else if (response.status >= 200 && response.status < 300) {
|
|
9304
|
-
|
|
9366
|
+
const buffer = await response.arrayBuffer();
|
|
9367
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiSdTopicList;
|
|
9305
9368
|
} else {
|
|
9306
9369
|
throw response;
|
|
9307
9370
|
}
|
|
9308
9371
|
}),
|
|
9309
|
-
new Promise((_, reject) =>
|
|
9310
|
-
setTimeout(reject
|
|
9372
|
+
new Promise<never>((_, reject) =>
|
|
9373
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
9311
9374
|
),
|
|
9312
9375
|
]);
|
|
9313
9376
|
}
|
|
@@ -9515,19 +9578,21 @@ export class MezonApi {
|
|
|
9515
9578
|
if (bearerToken) {
|
|
9516
9579
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
9517
9580
|
}
|
|
9581
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
9518
9582
|
|
|
9519
9583
|
return Promise.race([
|
|
9520
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9584
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
9521
9585
|
if (response.status == 204) {
|
|
9522
|
-
return
|
|
9586
|
+
return {} as ApiChannelDescList;
|
|
9523
9587
|
} else if (response.status >= 200 && response.status < 300) {
|
|
9524
|
-
|
|
9588
|
+
const buffer = await response.arrayBuffer();
|
|
9589
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiChannelDescList;
|
|
9525
9590
|
} else {
|
|
9526
9591
|
throw response;
|
|
9527
9592
|
}
|
|
9528
9593
|
}),
|
|
9529
|
-
new Promise((_, reject) =>
|
|
9530
|
-
setTimeout(reject
|
|
9594
|
+
new Promise<never>((_, reject) =>
|
|
9595
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
9531
9596
|
),
|
|
9532
9597
|
]);
|
|
9533
9598
|
}
|
|
@@ -9795,19 +9860,21 @@ export class MezonApi {
|
|
|
9795
9860
|
if (bearerToken) {
|
|
9796
9861
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
9797
9862
|
}
|
|
9863
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
9798
9864
|
|
|
9799
9865
|
return Promise.race([
|
|
9800
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9866
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
9801
9867
|
if (response.status == 204) {
|
|
9802
|
-
return
|
|
9868
|
+
return {} as ApiAllUserClans;
|
|
9803
9869
|
} else if (response.status >= 200 && response.status < 300) {
|
|
9804
|
-
|
|
9870
|
+
const buffer = await response.arrayBuffer();
|
|
9871
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiAllUserClans;
|
|
9805
9872
|
} else {
|
|
9806
9873
|
throw response;
|
|
9807
9874
|
}
|
|
9808
9875
|
}),
|
|
9809
|
-
new Promise((_, reject) =>
|
|
9810
|
-
setTimeout(reject
|
|
9876
|
+
new Promise<never>((_, reject) =>
|
|
9877
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
9811
9878
|
),
|
|
9812
9879
|
]);
|
|
9813
9880
|
}
|
|
@@ -10378,19 +10445,21 @@ export class MezonApi {
|
|
|
10378
10445
|
if (bearerToken) {
|
|
10379
10446
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
10380
10447
|
}
|
|
10448
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
10381
10449
|
|
|
10382
10450
|
return Promise.race([
|
|
10383
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
10451
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
10384
10452
|
if (response.status == 204) {
|
|
10385
|
-
return
|
|
10453
|
+
return {} as ApiListOnboardingResponse;
|
|
10386
10454
|
} else if (response.status >= 200 && response.status < 300) {
|
|
10387
|
-
|
|
10455
|
+
const buffer = await response.arrayBuffer();
|
|
10456
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiListOnboardingResponse;
|
|
10388
10457
|
} else {
|
|
10389
10458
|
throw response;
|
|
10390
10459
|
}
|
|
10391
10460
|
}),
|
|
10392
|
-
new Promise((_, reject) =>
|
|
10393
|
-
setTimeout(reject
|
|
10461
|
+
new Promise<never>((_, reject) =>
|
|
10462
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
10394
10463
|
),
|
|
10395
10464
|
]);
|
|
10396
10465
|
}
|
|
@@ -10784,19 +10853,21 @@ export class MezonApi {
|
|
|
10784
10853
|
if (bearerToken) {
|
|
10785
10854
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
10786
10855
|
}
|
|
10856
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
10787
10857
|
|
|
10788
10858
|
return Promise.race([
|
|
10789
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
10859
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
10790
10860
|
if (response.status == 204) {
|
|
10791
|
-
return
|
|
10861
|
+
return {} as ApiListOnboardingStepResponse;
|
|
10792
10862
|
} else if (response.status >= 200 && response.status < 300) {
|
|
10793
|
-
|
|
10863
|
+
const buffer = await response.arrayBuffer();
|
|
10864
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiListOnboardingStepResponse;
|
|
10794
10865
|
} else {
|
|
10795
10866
|
throw response;
|
|
10796
10867
|
}
|
|
10797
10868
|
}),
|
|
10798
|
-
new Promise((_, reject) =>
|
|
10799
|
-
setTimeout(reject
|
|
10869
|
+
new Promise<never>((_, reject) =>
|
|
10870
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
10800
10871
|
),
|
|
10801
10872
|
]);
|
|
10802
10873
|
}
|
|
@@ -11455,19 +11526,21 @@ export class MezonApi {
|
|
|
11455
11526
|
if (bearerToken) {
|
|
11456
11527
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
11457
11528
|
}
|
|
11529
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
11458
11530
|
|
|
11459
11531
|
return Promise.race([
|
|
11460
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
11532
|
+
fetch(fullUrl, fetchOptions).then(async (response) => {
|
|
11461
11533
|
if (response.status == 204) {
|
|
11462
|
-
return
|
|
11534
|
+
return {} as ApiQuickMenuAccessList;
|
|
11463
11535
|
} else if (response.status >= 200 && response.status < 300) {
|
|
11464
|
-
|
|
11536
|
+
const buffer = await response.arrayBuffer();
|
|
11537
|
+
return tsproto.Account.decode(new Uint8Array(buffer)) as unknown as ApiQuickMenuAccessList;
|
|
11465
11538
|
} else {
|
|
11466
11539
|
throw response;
|
|
11467
11540
|
}
|
|
11468
11541
|
}),
|
|
11469
|
-
new Promise((_, reject) =>
|
|
11470
|
-
setTimeout(reject
|
|
11542
|
+
new Promise<never>((_, reject) =>
|
|
11543
|
+
setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
11471
11544
|
),
|
|
11472
11545
|
]);
|
|
11473
11546
|
}
|