edge-impulse-api 1.66.26 → 1.66.28

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.
Files changed (69) hide show
  1. package/build/library/sdk/api/adminApi.js +166 -83
  2. package/build/library/sdk/api/adminApi.js.map +1 -1
  3. package/build/library/sdk/api/authApi.js +4 -2
  4. package/build/library/sdk/api/authApi.js.map +1 -1
  5. package/build/library/sdk/api/cDNApi.js +2 -1
  6. package/build/library/sdk/api/cDNApi.js.map +1 -1
  7. package/build/library/sdk/api/canaryApi.js +2 -1
  8. package/build/library/sdk/api/canaryApi.js.map +1 -1
  9. package/build/library/sdk/api/classifyApi.js +20 -10
  10. package/build/library/sdk/api/classifyApi.js.map +1 -1
  11. package/build/library/sdk/api/dSPApi.js +38 -19
  12. package/build/library/sdk/api/dSPApi.js.map +1 -1
  13. package/build/library/sdk/api/deploymentApi.js +22 -11
  14. package/build/library/sdk/api/deploymentApi.js.map +1 -1
  15. package/build/library/sdk/api/devicesApi.js +24 -12
  16. package/build/library/sdk/api/devicesApi.js.map +1 -1
  17. package/build/library/sdk/api/emailVerificationApi.js +8 -4
  18. package/build/library/sdk/api/emailVerificationApi.js.map +1 -1
  19. package/build/library/sdk/api/exportApi.js +2 -1
  20. package/build/library/sdk/api/exportApi.js.map +1 -1
  21. package/build/library/sdk/api/featureFlagsApi.js +2 -1
  22. package/build/library/sdk/api/featureFlagsApi.js.map +1 -1
  23. package/build/library/sdk/api/healthApi.js +4 -2
  24. package/build/library/sdk/api/healthApi.js.map +1 -1
  25. package/build/library/sdk/api/impulseApi.js +30 -15
  26. package/build/library/sdk/api/impulseApi.js.map +1 -1
  27. package/build/library/sdk/api/jobsApi.js +86 -43
  28. package/build/library/sdk/api/jobsApi.js.map +1 -1
  29. package/build/library/sdk/api/learnApi.js +46 -23
  30. package/build/library/sdk/api/learnApi.js.map +1 -1
  31. package/build/library/sdk/api/loginApi.js +2 -1
  32. package/build/library/sdk/api/loginApi.js.map +1 -1
  33. package/build/library/sdk/api/metricsApi.js +6 -3
  34. package/build/library/sdk/api/metricsApi.js.map +1 -1
  35. package/build/library/sdk/api/optimizationApi.js +34 -17
  36. package/build/library/sdk/api/optimizationApi.js.map +1 -1
  37. package/build/library/sdk/api/organizationBlocksApi.js +60 -30
  38. package/build/library/sdk/api/organizationBlocksApi.js.map +1 -1
  39. package/build/library/sdk/api/organizationCreateProjectApi.js +26 -13
  40. package/build/library/sdk/api/organizationCreateProjectApi.js.map +1 -1
  41. package/build/library/sdk/api/organizationDataApi.js +78 -39
  42. package/build/library/sdk/api/organizationDataApi.js.map +1 -1
  43. package/build/library/sdk/api/organizationDataCampaignsApi.js +24 -12
  44. package/build/library/sdk/api/organizationDataCampaignsApi.js.map +1 -1
  45. package/build/library/sdk/api/organizationJobsApi.js +16 -8
  46. package/build/library/sdk/api/organizationJobsApi.js.map +1 -1
  47. package/build/library/sdk/api/organizationPipelinesApi.js +16 -8
  48. package/build/library/sdk/api/organizationPipelinesApi.js.map +1 -1
  49. package/build/library/sdk/api/organizationPortalsApi.js +14 -7
  50. package/build/library/sdk/api/organizationPortalsApi.js.map +1 -1
  51. package/build/library/sdk/api/organizationsApi.js +156 -78
  52. package/build/library/sdk/api/organizationsApi.js.map +1 -1
  53. package/build/library/sdk/api/performanceCalibrationApi.js +22 -11
  54. package/build/library/sdk/api/performanceCalibrationApi.js.map +1 -1
  55. package/build/library/sdk/api/projectsApi.js +110 -55
  56. package/build/library/sdk/api/projectsApi.js.map +1 -1
  57. package/build/library/sdk/api/rawDataApi.js +112 -56
  58. package/build/library/sdk/api/rawDataApi.js.map +1 -1
  59. package/build/library/sdk/api/themesApi.js +12 -6
  60. package/build/library/sdk/api/themesApi.js.map +1 -1
  61. package/build/library/sdk/api/thirdPartyAuthApi.js +14 -7
  62. package/build/library/sdk/api/thirdPartyAuthApi.js.map +1 -1
  63. package/build/library/sdk/api/uploadPortalApi.js +14 -7
  64. package/build/library/sdk/api/uploadPortalApi.js.map +1 -1
  65. package/build/library/sdk/api/userApi.js +96 -48
  66. package/build/library/sdk/api/userApi.js.map +1 -1
  67. package/build/library/sdk/api/whitelabelsApi.js +16 -8
  68. package/build/library/sdk/api/whitelabelsApi.js.map +1 -1
  69. package/package.json +1 -1
@@ -132,14 +132,15 @@ class AdminApi {
132
132
  }
133
133
  else {
134
134
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
135
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
136
135
  if (typeof body.success === 'boolean' && !body.success) {
136
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
137
137
  reject(new Error(body.error || errString));
138
138
  }
139
139
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
140
140
  resolve(body);
141
141
  }
142
142
  else {
143
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
143
144
  reject(errString);
144
145
  }
145
146
  }
@@ -211,14 +212,15 @@ class AdminApi {
211
212
  }
212
213
  else {
213
214
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
214
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
215
215
  if (typeof body.success === 'boolean' && !body.success) {
216
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
216
217
  reject(new Error(body.error || errString));
217
218
  }
218
219
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
219
220
  resolve(body);
220
221
  }
221
222
  else {
223
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
222
224
  reject(errString);
223
225
  }
224
226
  }
@@ -290,14 +292,15 @@ class AdminApi {
290
292
  }
291
293
  else {
292
294
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
293
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
294
295
  if (typeof body.success === 'boolean' && !body.success) {
296
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
295
297
  reject(new Error(body.error || errString));
296
298
  }
297
299
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
298
300
  resolve(body);
299
301
  }
300
302
  else {
303
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
301
304
  reject(errString);
302
305
  }
303
306
  }
@@ -369,14 +372,15 @@ class AdminApi {
369
372
  }
370
373
  else {
371
374
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
372
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
373
375
  if (typeof body.success === 'boolean' && !body.success) {
376
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
374
377
  reject(new Error(body.error || errString));
375
378
  }
376
379
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
377
380
  resolve(body);
378
381
  }
379
382
  else {
383
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
380
384
  reject(errString);
381
385
  }
382
386
  }
@@ -442,14 +446,15 @@ class AdminApi {
442
446
  }
443
447
  else {
444
448
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
445
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
446
449
  if (typeof body.success === 'boolean' && !body.success) {
450
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
447
451
  reject(new Error(body.error || errString));
448
452
  }
449
453
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
450
454
  resolve(body);
451
455
  }
452
456
  else {
457
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
453
458
  reject(errString);
454
459
  }
455
460
  }
@@ -525,14 +530,15 @@ class AdminApi {
525
530
  }
526
531
  else {
527
532
  body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
528
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
529
533
  if (typeof body.success === 'boolean' && !body.success) {
534
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
530
535
  reject(new Error(body.error || errString));
531
536
  }
532
537
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
533
538
  resolve(body);
534
539
  }
535
540
  else {
541
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
536
542
  reject(errString);
537
543
  }
538
544
  }
@@ -598,14 +604,15 @@ class AdminApi {
598
604
  }
599
605
  else {
600
606
  body = models_1.ObjectSerializer.deserialize(body, "CreateOrganizationResponse");
601
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
602
607
  if (typeof body.success === 'boolean' && !body.success) {
608
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
603
609
  reject(new Error(body.error || errString));
604
610
  }
605
611
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
606
612
  resolve(body);
607
613
  }
608
614
  else {
615
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
609
616
  reject(errString);
610
617
  }
611
618
  }
@@ -677,14 +684,15 @@ class AdminApi {
677
684
  }
678
685
  else {
679
686
  body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
680
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
681
687
  if (typeof body.success === 'boolean' && !body.success) {
688
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
682
689
  reject(new Error(body.error || errString));
683
690
  }
684
691
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
685
692
  resolve(body);
686
693
  }
687
694
  else {
695
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
688
696
  reject(errString);
689
697
  }
690
698
  }
@@ -756,14 +764,15 @@ class AdminApi {
756
764
  }
757
765
  else {
758
766
  body = models_1.ObjectSerializer.deserialize(body, "CreateProjectResponse");
759
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
760
767
  if (typeof body.success === 'boolean' && !body.success) {
768
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
761
769
  reject(new Error(body.error || errString));
762
770
  }
763
771
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
764
772
  resolve(body);
765
773
  }
766
774
  else {
775
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
767
776
  reject(errString);
768
777
  }
769
778
  }
@@ -845,14 +854,15 @@ class AdminApi {
845
854
  }
846
855
  else {
847
856
  body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
848
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
849
857
  if (typeof body.success === 'boolean' && !body.success) {
858
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
850
859
  reject(new Error(body.error || errString));
851
860
  }
852
861
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
853
862
  resolve(body);
854
863
  }
855
864
  else {
865
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
856
866
  reject(errString);
857
867
  }
858
868
  }
@@ -918,14 +928,15 @@ class AdminApi {
918
928
  }
919
929
  else {
920
930
  body = models_1.ObjectSerializer.deserialize(body, "CreateProjectResponse");
921
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
922
931
  if (typeof body.success === 'boolean' && !body.success) {
932
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
923
933
  reject(new Error(body.error || errString));
924
934
  }
925
935
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
926
936
  resolve(body);
927
937
  }
928
938
  else {
939
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
929
940
  reject(errString);
930
941
  }
931
942
  }
@@ -991,14 +1002,15 @@ class AdminApi {
991
1002
  }
992
1003
  else {
993
1004
  body = models_1.ObjectSerializer.deserialize(body, "EntityCreatedResponse");
994
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
995
1005
  if (typeof body.success === 'boolean' && !body.success) {
1006
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
996
1007
  reject(new Error(body.error || errString));
997
1008
  }
998
1009
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
999
1010
  resolve(body);
1000
1011
  }
1001
1012
  else {
1013
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1002
1014
  reject(errString);
1003
1015
  }
1004
1016
  }
@@ -1064,14 +1076,15 @@ class AdminApi {
1064
1076
  }
1065
1077
  else {
1066
1078
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
1067
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1068
1079
  if (typeof body.success === 'boolean' && !body.success) {
1080
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1069
1081
  reject(new Error(body.error || errString));
1070
1082
  }
1071
1083
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1072
1084
  resolve(body);
1073
1085
  }
1074
1086
  else {
1087
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1075
1088
  reject(errString);
1076
1089
  }
1077
1090
  }
@@ -1137,14 +1150,15 @@ class AdminApi {
1137
1150
  }
1138
1151
  else {
1139
1152
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
1140
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1141
1153
  if (typeof body.success === 'boolean' && !body.success) {
1154
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1142
1155
  reject(new Error(body.error || errString));
1143
1156
  }
1144
1157
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1145
1158
  resolve(body);
1146
1159
  }
1147
1160
  else {
1161
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1148
1162
  reject(errString);
1149
1163
  }
1150
1164
  }
@@ -1214,14 +1228,15 @@ class AdminApi {
1214
1228
  }
1215
1229
  else {
1216
1230
  body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
1217
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1218
1231
  if (typeof body.success === 'boolean' && !body.success) {
1232
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1219
1233
  reject(new Error(body.error || errString));
1220
1234
  }
1221
1235
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1222
1236
  resolve(body);
1223
1237
  }
1224
1238
  else {
1239
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1225
1240
  reject(errString);
1226
1241
  }
1227
1242
  }
@@ -1293,14 +1308,15 @@ class AdminApi {
1293
1308
  }
1294
1309
  else {
1295
1310
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
1296
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1297
1311
  if (typeof body.success === 'boolean' && !body.success) {
1312
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1298
1313
  reject(new Error(body.error || errString));
1299
1314
  }
1300
1315
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1301
1316
  resolve(body);
1302
1317
  }
1303
1318
  else {
1319
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1304
1320
  reject(errString);
1305
1321
  }
1306
1322
  }
@@ -1372,14 +1388,15 @@ class AdminApi {
1372
1388
  }
1373
1389
  else {
1374
1390
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
1375
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1376
1391
  if (typeof body.success === 'boolean' && !body.success) {
1392
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1377
1393
  reject(new Error(body.error || errString));
1378
1394
  }
1379
1395
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1380
1396
  resolve(body);
1381
1397
  }
1382
1398
  else {
1399
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1383
1400
  reject(errString);
1384
1401
  }
1385
1402
  }
@@ -1449,14 +1466,15 @@ class AdminApi {
1449
1466
  }
1450
1467
  else {
1451
1468
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
1452
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1453
1469
  if (typeof body.success === 'boolean' && !body.success) {
1470
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1454
1471
  reject(new Error(body.error || errString));
1455
1472
  }
1456
1473
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1457
1474
  resolve(body);
1458
1475
  }
1459
1476
  else {
1477
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1460
1478
  reject(errString);
1461
1479
  }
1462
1480
  }
@@ -1522,14 +1540,15 @@ class AdminApi {
1522
1540
  }
1523
1541
  else {
1524
1542
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
1525
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1526
1543
  if (typeof body.success === 'boolean' && !body.success) {
1544
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1527
1545
  reject(new Error(body.error || errString));
1528
1546
  }
1529
1547
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1530
1548
  resolve(body);
1531
1549
  }
1532
1550
  else {
1551
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1533
1552
  reject(errString);
1534
1553
  }
1535
1554
  }
@@ -1595,14 +1614,15 @@ class AdminApi {
1595
1614
  }
1596
1615
  else {
1597
1616
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
1598
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1599
1617
  if (typeof body.success === 'boolean' && !body.success) {
1618
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1600
1619
  reject(new Error(body.error || errString));
1601
1620
  }
1602
1621
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1603
1622
  resolve(body);
1604
1623
  }
1605
1624
  else {
1625
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1606
1626
  reject(errString);
1607
1627
  }
1608
1628
  }
@@ -1668,14 +1688,15 @@ class AdminApi {
1668
1688
  }
1669
1689
  else {
1670
1690
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
1671
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1672
1691
  if (typeof body.success === 'boolean' && !body.success) {
1692
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1673
1693
  reject(new Error(body.error || errString));
1674
1694
  }
1675
1695
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1676
1696
  resolve(body);
1677
1697
  }
1678
1698
  else {
1699
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1679
1700
  reject(errString);
1680
1701
  }
1681
1702
  }
@@ -1749,14 +1770,15 @@ class AdminApi {
1749
1770
  }
1750
1771
  else {
1751
1772
  body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
1752
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1753
1773
  if (typeof body.success === 'boolean' && !body.success) {
1774
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1754
1775
  reject(new Error(body.error || errString));
1755
1776
  }
1756
1777
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1757
1778
  resolve(body);
1758
1779
  }
1759
1780
  else {
1781
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1760
1782
  reject(errString);
1761
1783
  }
1762
1784
  }
@@ -1822,14 +1844,15 @@ class AdminApi {
1822
1844
  }
1823
1845
  else {
1824
1846
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
1825
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1826
1847
  if (typeof body.success === 'boolean' && !body.success) {
1848
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1827
1849
  reject(new Error(body.error || errString));
1828
1850
  }
1829
1851
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1830
1852
  resolve(body);
1831
1853
  }
1832
1854
  else {
1855
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1833
1856
  reject(errString);
1834
1857
  }
1835
1858
  }
@@ -1886,14 +1909,15 @@ class AdminApi {
1886
1909
  reject(error);
1887
1910
  }
1888
1911
  else {
1889
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1890
1912
  if (typeof body.success === 'boolean' && !body.success) {
1913
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1891
1914
  reject(new Error(body.error || errString));
1892
1915
  }
1893
1916
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1894
1917
  resolve(body);
1895
1918
  }
1896
1919
  else {
1920
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1897
1921
  reject(errString);
1898
1922
  }
1899
1923
  }
@@ -1956,14 +1980,15 @@ class AdminApi {
1956
1980
  reject(error);
1957
1981
  }
1958
1982
  else {
1959
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1960
1983
  if (typeof body.success === 'boolean' && !body.success) {
1984
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1961
1985
  reject(new Error(body.error || errString));
1962
1986
  }
1963
1987
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1964
1988
  resolve(body);
1965
1989
  }
1966
1990
  else {
1991
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1967
1992
  reject(errString);
1968
1993
  }
1969
1994
  }
@@ -2023,14 +2048,15 @@ class AdminApi {
2023
2048
  }
2024
2049
  else {
2025
2050
  body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
2026
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2027
2051
  if (typeof body.success === 'boolean' && !body.success) {
2052
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2028
2053
  reject(new Error(body.error || errString));
2029
2054
  }
2030
2055
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2031
2056
  resolve(body);
2032
2057
  }
2033
2058
  else {
2059
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2034
2060
  reject(errString);
2035
2061
  }
2036
2062
  }
@@ -2096,14 +2122,15 @@ class AdminApi {
2096
2122
  }
2097
2123
  else {
2098
2124
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
2099
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2100
2125
  if (typeof body.success === 'boolean' && !body.success) {
2126
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2101
2127
  reject(new Error(body.error || errString));
2102
2128
  }
2103
2129
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2104
2130
  resolve(body);
2105
2131
  }
2106
2132
  else {
2133
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2107
2134
  reject(errString);
2108
2135
  }
2109
2136
  }
@@ -2171,14 +2198,15 @@ class AdminApi {
2171
2198
  }
2172
2199
  else {
2173
2200
  body = models_1.ObjectSerializer.deserialize(body, "FindUserResponse");
2174
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2175
2201
  if (typeof body.success === 'boolean' && !body.success) {
2202
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2176
2203
  reject(new Error(body.error || errString));
2177
2204
  }
2178
2205
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2179
2206
  resolve(body);
2180
2207
  }
2181
2208
  else {
2209
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2182
2210
  reject(errString);
2183
2211
  }
2184
2212
  }
@@ -2238,14 +2266,15 @@ class AdminApi {
2238
2266
  }
2239
2267
  else {
2240
2268
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserIdsResponse");
2241
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2242
2269
  if (typeof body.success === 'boolean' && !body.success) {
2270
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2243
2271
  reject(new Error(body.error || errString));
2244
2272
  }
2245
2273
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2246
2274
  resolve(body);
2247
2275
  }
2248
2276
  else {
2277
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2249
2278
  reject(errString);
2250
2279
  }
2251
2280
  }
@@ -2305,14 +2334,15 @@ class AdminApi {
2305
2334
  }
2306
2335
  else {
2307
2336
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserIdsResponse");
2308
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2309
2337
  if (typeof body.success === 'boolean' && !body.success) {
2338
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2310
2339
  reject(new Error(body.error || errString));
2311
2340
  }
2312
2341
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2313
2342
  resolve(body);
2314
2343
  }
2315
2344
  else {
2345
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2316
2346
  reject(errString);
2317
2347
  }
2318
2348
  }
@@ -2378,14 +2408,15 @@ class AdminApi {
2378
2408
  }
2379
2409
  else {
2380
2410
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetDataMigrationResponse");
2381
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2382
2411
  if (typeof body.success === 'boolean' && !body.success) {
2412
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2383
2413
  reject(new Error(body.error || errString));
2384
2414
  }
2385
2415
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2386
2416
  resolve(body);
2387
2417
  }
2388
2418
  else {
2419
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2389
2420
  reject(errString);
2390
2421
  }
2391
2422
  }
@@ -2445,14 +2476,15 @@ class AdminApi {
2445
2476
  }
2446
2477
  else {
2447
2478
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetDataMigrationsResponse");
2448
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2449
2479
  if (typeof body.success === 'boolean' && !body.success) {
2480
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2450
2481
  reject(new Error(body.error || errString));
2451
2482
  }
2452
2483
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2453
2484
  resolve(body);
2454
2485
  }
2455
2486
  else {
2487
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2456
2488
  reject(errString);
2457
2489
  }
2458
2490
  }
@@ -2512,14 +2544,15 @@ class AdminApi {
2512
2544
  }
2513
2545
  else {
2514
2546
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetDisallowedEmailDomainsResponse");
2515
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2516
2547
  if (typeof body.success === 'boolean' && !body.success) {
2548
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2517
2549
  reject(new Error(body.error || errString));
2518
2550
  }
2519
2551
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2520
2552
  resolve(body);
2521
2553
  }
2522
2554
  else {
2555
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2523
2556
  reject(errString);
2524
2557
  }
2525
2558
  }
@@ -2585,14 +2618,15 @@ class AdminApi {
2585
2618
  }
2586
2619
  else {
2587
2620
  body = models_1.ObjectSerializer.deserialize(body, "GetEmailVerificationCodeResponse");
2588
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2589
2621
  if (typeof body.success === 'boolean' && !body.success) {
2622
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2590
2623
  reject(new Error(body.error || errString));
2591
2624
  }
2592
2625
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2593
2626
  resolve(body);
2594
2627
  }
2595
2628
  else {
2629
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2596
2630
  reject(errString);
2597
2631
  }
2598
2632
  }
@@ -2652,14 +2686,15 @@ class AdminApi {
2652
2686
  }
2653
2687
  else {
2654
2688
  body = models_1.ObjectSerializer.deserialize(body, "GetFeatureFlagsResponse");
2655
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2656
2689
  if (typeof body.success === 'boolean' && !body.success) {
2690
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2657
2691
  reject(new Error(body.error || errString));
2658
2692
  }
2659
2693
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2660
2694
  resolve(body);
2661
2695
  }
2662
2696
  else {
2697
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2663
2698
  reject(errString);
2664
2699
  }
2665
2700
  }
@@ -2737,14 +2772,15 @@ class AdminApi {
2737
2772
  }
2738
2773
  else {
2739
2774
  body = models_1.ObjectSerializer.deserialize(body, "JobDetailsResponse");
2740
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2741
2775
  if (typeof body.success === 'boolean' && !body.success) {
2776
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2742
2777
  reject(new Error(body.error || errString));
2743
2778
  }
2744
2779
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2745
2780
  resolve(body);
2746
2781
  }
2747
2782
  else {
2783
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2748
2784
  reject(errString);
2749
2785
  }
2750
2786
  }
@@ -2834,14 +2870,15 @@ class AdminApi {
2834
2870
  }
2835
2871
  else {
2836
2872
  body = models_1.ObjectSerializer.deserialize(body, "JobLogsResponse");
2837
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2838
2873
  if (typeof body.success === 'boolean' && !body.success) {
2874
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2839
2875
  reject(new Error(body.error || errString));
2840
2876
  }
2841
2877
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2842
2878
  resolve(body);
2843
2879
  }
2844
2880
  else {
2881
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2845
2882
  reject(errString);
2846
2883
  }
2847
2884
  }
@@ -2915,14 +2952,15 @@ class AdminApi {
2915
2952
  }
2916
2953
  else {
2917
2954
  body = models_1.ObjectSerializer.deserialize(body, "JobMetricsResponse");
2918
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2919
2955
  if (typeof body.success === 'boolean' && !body.success) {
2956
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2920
2957
  reject(new Error(body.error || errString));
2921
2958
  }
2922
2959
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2923
2960
  resolve(body);
2924
2961
  }
2925
2962
  else {
2963
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2926
2964
  reject(errString);
2927
2965
  }
2928
2966
  }
@@ -2982,14 +3020,15 @@ class AdminApi {
2982
3020
  }
2983
3021
  else {
2984
3022
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetMetricsResponse");
2985
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2986
3023
  if (typeof body.success === 'boolean' && !body.success) {
3024
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2987
3025
  reject(new Error(body.error || errString));
2988
3026
  }
2989
3027
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2990
3028
  resolve(body);
2991
3029
  }
2992
3030
  else {
3031
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2993
3032
  reject(errString);
2994
3033
  }
2995
3034
  }
@@ -3055,14 +3094,15 @@ class AdminApi {
3055
3094
  }
3056
3095
  else {
3057
3096
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetReportResponse");
3058
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3059
3097
  if (typeof body.success === 'boolean' && !body.success) {
3098
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3060
3099
  reject(new Error(body.error || errString));
3061
3100
  }
3062
3101
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3063
3102
  resolve(body);
3064
3103
  }
3065
3104
  else {
3105
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3066
3106
  reject(errString);
3067
3107
  }
3068
3108
  }
@@ -3130,14 +3170,15 @@ class AdminApi {
3130
3170
  }
3131
3171
  else {
3132
3172
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetReportsResponse");
3133
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3134
3173
  if (typeof body.success === 'boolean' && !body.success) {
3174
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3135
3175
  reject(new Error(body.error || errString));
3136
3176
  }
3137
3177
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3138
3178
  resolve(body);
3139
3179
  }
3140
3180
  else {
3181
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3141
3182
  reject(errString);
3142
3183
  }
3143
3184
  }
@@ -3219,14 +3260,15 @@ class AdminApi {
3219
3260
  }
3220
3261
  else {
3221
3262
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationComputeTimeUsageResponse");
3222
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3223
3263
  if (typeof body.success === 'boolean' && !body.success) {
3264
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3224
3265
  reject(new Error(body.error || errString));
3225
3266
  }
3226
3267
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3227
3268
  resolve(body);
3228
3269
  }
3229
3270
  else {
3271
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3230
3272
  reject(errString);
3231
3273
  }
3232
3274
  }
@@ -3298,14 +3340,15 @@ class AdminApi {
3298
3340
  }
3299
3341
  else {
3300
3342
  body = models_1.ObjectSerializer.deserialize(body, "GetOrganizationDataExportResponse");
3301
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3302
3343
  if (typeof body.success === 'boolean' && !body.success) {
3344
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3303
3345
  reject(new Error(body.error || errString));
3304
3346
  }
3305
3347
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3306
3348
  resolve(body);
3307
3349
  }
3308
3350
  else {
3351
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3309
3352
  reject(errString);
3310
3353
  }
3311
3354
  }
@@ -3379,14 +3422,15 @@ class AdminApi {
3379
3422
  }
3380
3423
  else {
3381
3424
  body = models_1.ObjectSerializer.deserialize(body, "GetOrganizationDataExportsResponse");
3382
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3383
3425
  if (typeof body.success === 'boolean' && !body.success) {
3426
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3384
3427
  reject(new Error(body.error || errString));
3385
3428
  }
3386
3429
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3387
3430
  resolve(body);
3388
3431
  }
3389
3432
  else {
3433
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3390
3434
  reject(errString);
3391
3435
  }
3392
3436
  }
@@ -3456,14 +3500,15 @@ class AdminApi {
3456
3500
  }
3457
3501
  else {
3458
3502
  body = models_1.ObjectSerializer.deserialize(body, "AdminOrganizationInfoResponse");
3459
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3460
3503
  if (typeof body.success === 'boolean' && !body.success) {
3504
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3461
3505
  reject(new Error(body.error || errString));
3462
3506
  }
3463
3507
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3464
3508
  resolve(body);
3465
3509
  }
3466
3510
  else {
3511
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3467
3512
  reject(errString);
3468
3513
  }
3469
3514
  }
@@ -3537,14 +3582,15 @@ class AdminApi {
3537
3582
  }
3538
3583
  else {
3539
3584
  body = models_1.ObjectSerializer.deserialize(body, "ListJobsResponse");
3540
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3541
3585
  if (typeof body.success === 'boolean' && !body.success) {
3586
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3542
3587
  reject(new Error(body.error || errString));
3543
3588
  }
3544
3589
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3545
3590
  resolve(body);
3546
3591
  }
3547
3592
  else {
3593
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3548
3594
  reject(errString);
3549
3595
  }
3550
3596
  }
@@ -3616,14 +3662,15 @@ class AdminApi {
3616
3662
  }
3617
3663
  else {
3618
3664
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetReportResponse");
3619
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3620
3665
  if (typeof body.success === 'boolean' && !body.success) {
3666
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3621
3667
  reject(new Error(body.error || errString));
3622
3668
  }
3623
3669
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3624
3670
  resolve(body);
3625
3671
  }
3626
3672
  else {
3673
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3627
3674
  reject(errString);
3628
3675
  }
3629
3676
  }
@@ -3697,14 +3744,15 @@ class AdminApi {
3697
3744
  }
3698
3745
  else {
3699
3746
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetReportsResponse");
3700
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3701
3747
  if (typeof body.success === 'boolean' && !body.success) {
3748
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3702
3749
  reject(new Error(body.error || errString));
3703
3750
  }
3704
3751
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3705
3752
  resolve(body);
3706
3753
  }
3707
3754
  else {
3755
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3708
3756
  reject(errString);
3709
3757
  }
3710
3758
  }
@@ -3792,14 +3840,15 @@ class AdminApi {
3792
3840
  }
3793
3841
  else {
3794
3842
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationsResponse");
3795
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3796
3843
  if (typeof body.success === 'boolean' && !body.success) {
3844
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3797
3845
  reject(new Error(body.error || errString));
3798
3846
  }
3799
3847
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3800
3848
  resolve(body);
3801
3849
  }
3802
3850
  else {
3851
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3803
3852
  reject(errString);
3804
3853
  }
3805
3854
  }
@@ -3865,14 +3914,15 @@ class AdminApi {
3865
3914
  }
3866
3915
  else {
3867
3916
  body = models_1.ObjectSerializer.deserialize(body, "AdminProjectInfoResponse");
3868
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3869
3917
  if (typeof body.success === 'boolean' && !body.success) {
3918
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3870
3919
  reject(new Error(body.error || errString));
3871
3920
  }
3872
3921
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3873
3922
  resolve(body);
3874
3923
  }
3875
3924
  else {
3925
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3876
3926
  reject(errString);
3877
3927
  }
3878
3928
  }
@@ -3946,14 +3996,15 @@ class AdminApi {
3946
3996
  }
3947
3997
  else {
3948
3998
  body = models_1.ObjectSerializer.deserialize(body, "ListJobsResponse");
3949
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3950
3999
  if (typeof body.success === 'boolean' && !body.success) {
4000
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3951
4001
  reject(new Error(body.error || errString));
3952
4002
  }
3953
4003
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3954
4004
  resolve(body);
3955
4005
  }
3956
4006
  else {
4007
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3957
4008
  reject(errString);
3958
4009
  }
3959
4010
  }
@@ -4037,14 +4088,15 @@ class AdminApi {
4037
4088
  }
4038
4089
  else {
4039
4090
  body = models_1.ObjectSerializer.deserialize(body, "AdminListProjectsResponse");
4040
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4041
4091
  if (typeof body.success === 'boolean' && !body.success) {
4092
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4042
4093
  reject(new Error(body.error || errString));
4043
4094
  }
4044
4095
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4045
4096
  resolve(body);
4046
4097
  }
4047
4098
  else {
4099
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4048
4100
  reject(errString);
4049
4101
  }
4050
4102
  }
@@ -4110,14 +4162,15 @@ class AdminApi {
4110
4162
  }
4111
4163
  else {
4112
4164
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetSSODomainIdPsResponse");
4113
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4114
4165
  if (typeof body.success === 'boolean' && !body.success) {
4166
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4115
4167
  reject(new Error(body.error || errString));
4116
4168
  }
4117
4169
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4118
4170
  resolve(body);
4119
4171
  }
4120
4172
  else {
4173
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4121
4174
  reject(errString);
4122
4175
  }
4123
4176
  }
@@ -4177,14 +4230,15 @@ class AdminApi {
4177
4230
  }
4178
4231
  else {
4179
4232
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetSSOSettingsResponse");
4180
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4181
4233
  if (typeof body.success === 'boolean' && !body.success) {
4234
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4182
4235
  reject(new Error(body.error || errString));
4183
4236
  }
4184
4237
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4185
4238
  resolve(body);
4186
4239
  }
4187
4240
  else {
4241
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4188
4242
  reject(errString);
4189
4243
  }
4190
4244
  }
@@ -4244,14 +4298,15 @@ class AdminApi {
4244
4298
  }
4245
4299
  else {
4246
4300
  body = models_1.ObjectSerializer.deserialize(body, "GetStudioConfigResponse");
4247
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4248
4301
  if (typeof body.success === 'boolean' && !body.success) {
4302
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4249
4303
  reject(new Error(body.error || errString));
4250
4304
  }
4251
4305
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4252
4306
  resolve(body);
4253
4307
  }
4254
4308
  else {
4309
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4255
4310
  reject(errString);
4256
4311
  }
4257
4312
  }
@@ -4331,14 +4386,15 @@ class AdminApi {
4331
4386
  }
4332
4387
  else {
4333
4388
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetTrashBinResponse");
4334
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4335
4389
  if (typeof body.success === 'boolean' && !body.success) {
4390
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4336
4391
  reject(new Error(body.error || errString));
4337
4392
  }
4338
4393
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4339
4394
  resolve(body);
4340
4395
  }
4341
4396
  else {
4397
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4342
4398
  reject(errString);
4343
4399
  }
4344
4400
  }
@@ -4495,14 +4551,15 @@ class AdminApi {
4495
4551
  }
4496
4552
  else {
4497
4553
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetTrialResponse");
4498
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4499
4554
  if (typeof body.success === 'boolean' && !body.success) {
4555
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4500
4556
  reject(new Error(body.error || errString));
4501
4557
  }
4502
4558
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4503
4559
  resolve(body);
4504
4560
  }
4505
4561
  else {
4562
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4506
4563
  reject(errString);
4507
4564
  }
4508
4565
  }
@@ -4568,14 +4625,15 @@ class AdminApi {
4568
4625
  }
4569
4626
  else {
4570
4627
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserResponse");
4571
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4572
4628
  if (typeof body.success === 'boolean' && !body.success) {
4629
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4573
4630
  reject(new Error(body.error || errString));
4574
4631
  }
4575
4632
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4576
4633
  resolve(body);
4577
4634
  }
4578
4635
  else {
4636
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4579
4637
  reject(errString);
4580
4638
  }
4581
4639
  }
@@ -4649,14 +4707,15 @@ class AdminApi {
4649
4707
  }
4650
4708
  else {
4651
4709
  body = models_1.ObjectSerializer.deserialize(body, "ListJobsResponse");
4652
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4653
4710
  if (typeof body.success === 'boolean' && !body.success) {
4711
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4654
4712
  reject(new Error(body.error || errString));
4655
4713
  }
4656
4714
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4657
4715
  resolve(body);
4658
4716
  }
4659
4717
  else {
4718
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4660
4719
  reject(errString);
4661
4720
  }
4662
4721
  }
@@ -4722,14 +4781,15 @@ class AdminApi {
4722
4781
  }
4723
4782
  else {
4724
4783
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserMetricsResponse");
4725
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4726
4784
  if (typeof body.success === 'boolean' && !body.success) {
4785
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4727
4786
  reject(new Error(body.error || errString));
4728
4787
  }
4729
4788
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4730
4789
  resolve(body);
4731
4790
  }
4732
4791
  else {
4792
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4733
4793
  reject(errString);
4734
4794
  }
4735
4795
  }
@@ -4821,14 +4881,15 @@ class AdminApi {
4821
4881
  }
4822
4882
  else {
4823
4883
  body = models_1.ObjectSerializer.deserialize(body, "AdminGetUsersResponse");
4824
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4825
4884
  if (typeof body.success === 'boolean' && !body.success) {
4885
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4826
4886
  reject(new Error(body.error || errString));
4827
4887
  }
4828
4888
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4829
4889
  resolve(body);
4830
4890
  }
4831
4891
  else {
4892
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4832
4893
  reject(errString);
4833
4894
  }
4834
4895
  }
@@ -4894,14 +4955,15 @@ class AdminApi {
4894
4955
  }
4895
4956
  else {
4896
4957
  body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
4897
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4898
4958
  if (typeof body.success === 'boolean' && !body.success) {
4959
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4899
4960
  reject(new Error(body.error || errString));
4900
4961
  }
4901
4962
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4902
4963
  resolve(body);
4903
4964
  }
4904
4965
  else {
4966
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4905
4967
  reject(errString);
4906
4968
  }
4907
4969
  }
@@ -4983,14 +5045,15 @@ class AdminApi {
4983
5045
  }
4984
5046
  else {
4985
5047
  body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
4986
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4987
5048
  if (typeof body.success === 'boolean' && !body.success) {
5049
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4988
5050
  reject(new Error(body.error || errString));
4989
5051
  }
4990
5052
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4991
5053
  resolve(body);
4992
5054
  }
4993
5055
  else {
5056
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4994
5057
  reject(errString);
4995
5058
  }
4996
5059
  }
@@ -5056,14 +5119,15 @@ class AdminApi {
5056
5119
  }
5057
5120
  else {
5058
5121
  body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
5059
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5060
5122
  if (typeof body.success === 'boolean' && !body.success) {
5123
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5061
5124
  reject(new Error(body.error || errString));
5062
5125
  }
5063
5126
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5064
5127
  resolve(body);
5065
5128
  }
5066
5129
  else {
5130
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5067
5131
  reject(errString);
5068
5132
  }
5069
5133
  }
@@ -5145,14 +5209,15 @@ class AdminApi {
5145
5209
  }
5146
5210
  else {
5147
5211
  body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
5148
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5149
5212
  if (typeof body.success === 'boolean' && !body.success) {
5213
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5150
5214
  reject(new Error(body.error || errString));
5151
5215
  }
5152
5216
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5153
5217
  resolve(body);
5154
5218
  }
5155
5219
  else {
5220
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5156
5221
  reject(errString);
5157
5222
  }
5158
5223
  }
@@ -5218,14 +5283,15 @@ class AdminApi {
5218
5283
  }
5219
5284
  else {
5220
5285
  body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
5221
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5222
5286
  if (typeof body.success === 'boolean' && !body.success) {
5287
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5223
5288
  reject(new Error(body.error || errString));
5224
5289
  }
5225
5290
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5226
5291
  resolve(body);
5227
5292
  }
5228
5293
  else {
5294
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5229
5295
  reject(errString);
5230
5296
  }
5231
5297
  }
@@ -5307,14 +5373,15 @@ class AdminApi {
5307
5373
  }
5308
5374
  else {
5309
5375
  body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
5310
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5311
5376
  if (typeof body.success === 'boolean' && !body.success) {
5377
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5312
5378
  reject(new Error(body.error || errString));
5313
5379
  }
5314
5380
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5315
5381
  resolve(body);
5316
5382
  }
5317
5383
  else {
5384
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5318
5385
  reject(errString);
5319
5386
  }
5320
5387
  }
@@ -5380,14 +5447,15 @@ class AdminApi {
5380
5447
  }
5381
5448
  else {
5382
5449
  body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
5383
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5384
5450
  if (typeof body.success === 'boolean' && !body.success) {
5451
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5385
5452
  reject(new Error(body.error || errString));
5386
5453
  }
5387
5454
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5388
5455
  resolve(body);
5389
5456
  }
5390
5457
  else {
5458
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5391
5459
  reject(errString);
5392
5460
  }
5393
5461
  }
@@ -5453,14 +5521,15 @@ class AdminApi {
5453
5521
  }
5454
5522
  else {
5455
5523
  body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
5456
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5457
5524
  if (typeof body.success === 'boolean' && !body.success) {
5525
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5458
5526
  reject(new Error(body.error || errString));
5459
5527
  }
5460
5528
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5461
5529
  resolve(body);
5462
5530
  }
5463
5531
  else {
5532
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5464
5533
  reject(errString);
5465
5534
  }
5466
5535
  }
@@ -5526,14 +5595,15 @@ class AdminApi {
5526
5595
  }
5527
5596
  else {
5528
5597
  body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
5529
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5530
5598
  if (typeof body.success === 'boolean' && !body.success) {
5599
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5531
5600
  reject(new Error(body.error || errString));
5532
5601
  }
5533
5602
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5534
5603
  resolve(body);
5535
5604
  }
5536
5605
  else {
5606
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5537
5607
  reject(errString);
5538
5608
  }
5539
5609
  }
@@ -5605,14 +5675,15 @@ class AdminApi {
5605
5675
  }
5606
5676
  else {
5607
5677
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
5608
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5609
5678
  if (typeof body.success === 'boolean' && !body.success) {
5679
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5610
5680
  reject(new Error(body.error || errString));
5611
5681
  }
5612
5682
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5613
5683
  resolve(body);
5614
5684
  }
5615
5685
  else {
5686
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5616
5687
  reject(errString);
5617
5688
  }
5618
5689
  }
@@ -5684,14 +5755,15 @@ class AdminApi {
5684
5755
  }
5685
5756
  else {
5686
5757
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
5687
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5688
5758
  if (typeof body.success === 'boolean' && !body.success) {
5759
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5689
5760
  reject(new Error(body.error || errString));
5690
5761
  }
5691
5762
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5692
5763
  resolve(body);
5693
5764
  }
5694
5765
  else {
5766
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5695
5767
  reject(errString);
5696
5768
  }
5697
5769
  }
@@ -5757,14 +5829,15 @@ class AdminApi {
5757
5829
  }
5758
5830
  else {
5759
5831
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
5760
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5761
5832
  if (typeof body.success === 'boolean' && !body.success) {
5833
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5762
5834
  reject(new Error(body.error || errString));
5763
5835
  }
5764
5836
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5765
5837
  resolve(body);
5766
5838
  }
5767
5839
  else {
5840
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5768
5841
  reject(errString);
5769
5842
  }
5770
5843
  }
@@ -5830,14 +5903,15 @@ class AdminApi {
5830
5903
  }
5831
5904
  else {
5832
5905
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
5833
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5834
5906
  if (typeof body.success === 'boolean' && !body.success) {
5907
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5835
5908
  reject(new Error(body.error || errString));
5836
5909
  }
5837
5910
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5838
5911
  resolve(body);
5839
5912
  }
5840
5913
  else {
5914
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5841
5915
  reject(errString);
5842
5916
  }
5843
5917
  }
@@ -5909,14 +5983,15 @@ class AdminApi {
5909
5983
  }
5910
5984
  else {
5911
5985
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
5912
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5913
5986
  if (typeof body.success === 'boolean' && !body.success) {
5987
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5914
5988
  reject(new Error(body.error || errString));
5915
5989
  }
5916
5990
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5917
5991
  resolve(body);
5918
5992
  }
5919
5993
  else {
5994
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5920
5995
  reject(errString);
5921
5996
  }
5922
5997
  }
@@ -5988,14 +6063,15 @@ class AdminApi {
5988
6063
  }
5989
6064
  else {
5990
6065
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
5991
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5992
6066
  if (typeof body.success === 'boolean' && !body.success) {
6067
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5993
6068
  reject(new Error(body.error || errString));
5994
6069
  }
5995
6070
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5996
6071
  resolve(body);
5997
6072
  }
5998
6073
  else {
6074
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
5999
6075
  reject(errString);
6000
6076
  }
6001
6077
  }
@@ -6067,14 +6143,15 @@ class AdminApi {
6067
6143
  }
6068
6144
  else {
6069
6145
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
6070
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6071
6146
  if (typeof body.success === 'boolean' && !body.success) {
6147
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6072
6148
  reject(new Error(body.error || errString));
6073
6149
  }
6074
6150
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6075
6151
  resolve(body);
6076
6152
  }
6077
6153
  else {
6154
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6078
6155
  reject(errString);
6079
6156
  }
6080
6157
  }
@@ -6152,14 +6229,15 @@ class AdminApi {
6152
6229
  }
6153
6230
  else {
6154
6231
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
6155
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6156
6232
  if (typeof body.success === 'boolean' && !body.success) {
6233
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6157
6234
  reject(new Error(body.error || errString));
6158
6235
  }
6159
6236
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6160
6237
  resolve(body);
6161
6238
  }
6162
6239
  else {
6240
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6163
6241
  reject(errString);
6164
6242
  }
6165
6243
  }
@@ -6231,14 +6309,15 @@ class AdminApi {
6231
6309
  }
6232
6310
  else {
6233
6311
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
6234
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6235
6312
  if (typeof body.success === 'boolean' && !body.success) {
6313
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6236
6314
  reject(new Error(body.error || errString));
6237
6315
  }
6238
6316
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6239
6317
  resolve(body);
6240
6318
  }
6241
6319
  else {
6320
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6242
6321
  reject(errString);
6243
6322
  }
6244
6323
  }
@@ -6310,14 +6389,15 @@ class AdminApi {
6310
6389
  }
6311
6390
  else {
6312
6391
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
6313
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6314
6392
  if (typeof body.success === 'boolean' && !body.success) {
6393
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6315
6394
  reject(new Error(body.error || errString));
6316
6395
  }
6317
6396
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6318
6397
  resolve(body);
6319
6398
  }
6320
6399
  else {
6400
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6321
6401
  reject(errString);
6322
6402
  }
6323
6403
  }
@@ -6389,14 +6469,15 @@ class AdminApi {
6389
6469
  }
6390
6470
  else {
6391
6471
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
6392
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6393
6472
  if (typeof body.success === 'boolean' && !body.success) {
6473
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6394
6474
  reject(new Error(body.error || errString));
6395
6475
  }
6396
6476
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6397
6477
  resolve(body);
6398
6478
  }
6399
6479
  else {
6480
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6400
6481
  reject(errString);
6401
6482
  }
6402
6483
  }
@@ -6468,14 +6549,15 @@ class AdminApi {
6468
6549
  }
6469
6550
  else {
6470
6551
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
6471
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6472
6552
  if (typeof body.success === 'boolean' && !body.success) {
6553
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6473
6554
  reject(new Error(body.error || errString));
6474
6555
  }
6475
6556
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6476
6557
  resolve(body);
6477
6558
  }
6478
6559
  else {
6560
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6479
6561
  reject(errString);
6480
6562
  }
6481
6563
  }
@@ -6541,14 +6623,15 @@ class AdminApi {
6541
6623
  }
6542
6624
  else {
6543
6625
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
6544
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6545
6626
  if (typeof body.success === 'boolean' && !body.success) {
6627
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6546
6628
  reject(new Error(body.error || errString));
6547
6629
  }
6548
6630
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6549
6631
  resolve(body);
6550
6632
  }
6551
6633
  else {
6634
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
6552
6635
  reject(errString);
6553
6636
  }
6554
6637
  }