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
@@ -138,14 +138,15 @@ class ProjectsApi {
138
138
  }
139
139
  else {
140
140
  body = models_1.ObjectSerializer.deserialize(body, "EntityCreatedResponse");
141
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
142
141
  if (typeof body.success === 'boolean' && !body.success) {
142
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
143
143
  reject(new Error(body.error || errString));
144
144
  }
145
145
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
146
146
  resolve(body);
147
147
  }
148
148
  else {
149
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
149
150
  reject(errString);
150
151
  }
151
152
  }
@@ -217,14 +218,15 @@ class ProjectsApi {
217
218
  }
218
219
  else {
219
220
  body = models_1.ObjectSerializer.deserialize(body, "AddApiKeyResponse");
220
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
221
221
  if (typeof body.success === 'boolean' && !body.success) {
222
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
222
223
  reject(new Error(body.error || errString));
223
224
  }
224
225
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
225
226
  resolve(body);
226
227
  }
227
228
  else {
229
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
228
230
  reject(errString);
229
231
  }
230
232
  }
@@ -296,14 +298,15 @@ class ProjectsApi {
296
298
  }
297
299
  else {
298
300
  body = models_1.ObjectSerializer.deserialize(body, "EntityCreatedResponse");
299
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
300
301
  if (typeof body.success === 'boolean' && !body.success) {
302
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
301
303
  reject(new Error(body.error || errString));
302
304
  }
303
305
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
304
306
  resolve(body);
305
307
  }
306
308
  else {
309
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
307
310
  reject(errString);
308
311
  }
309
312
  }
@@ -375,14 +378,15 @@ class ProjectsApi {
375
378
  }
376
379
  else {
377
380
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
378
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
379
381
  if (typeof body.success === 'boolean' && !body.success) {
382
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
380
383
  reject(new Error(body.error || errString));
381
384
  }
382
385
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
383
386
  resolve(body);
384
387
  }
385
388
  else {
389
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
386
390
  reject(errString);
387
391
  }
388
392
  }
@@ -448,14 +452,15 @@ class ProjectsApi {
448
452
  }
449
453
  else {
450
454
  body = models_1.ObjectSerializer.deserialize(body, "EntityCreatedResponse");
451
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
452
455
  if (typeof body.success === 'boolean' && !body.success) {
456
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
453
457
  reject(new Error(body.error || errString));
454
458
  }
455
459
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
456
460
  resolve(body);
457
461
  }
458
462
  else {
463
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
459
464
  reject(errString);
460
465
  }
461
466
  }
@@ -521,14 +526,15 @@ class ProjectsApi {
521
526
  }
522
527
  else {
523
528
  body = models_1.ObjectSerializer.deserialize(body, "CreateProjectResponse");
524
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
525
529
  if (typeof body.success === 'boolean' && !body.success) {
530
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
526
531
  reject(new Error(body.error || errString));
527
532
  }
528
533
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
529
534
  resolve(body);
530
535
  }
531
536
  else {
537
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
532
538
  reject(errString);
533
539
  }
534
540
  }
@@ -600,14 +606,15 @@ class ProjectsApi {
600
606
  }
601
607
  else {
602
608
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
603
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
604
609
  if (typeof body.success === 'boolean' && !body.success) {
610
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
605
611
  reject(new Error(body.error || errString));
606
612
  }
607
613
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
608
614
  resolve(body);
609
615
  }
610
616
  else {
617
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
611
618
  reject(errString);
612
619
  }
613
620
  }
@@ -673,14 +680,15 @@ class ProjectsApi {
673
680
  }
674
681
  else {
675
682
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
676
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
677
683
  if (typeof body.success === 'boolean' && !body.success) {
684
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
678
685
  reject(new Error(body.error || errString));
679
686
  }
680
687
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
681
688
  resolve(body);
682
689
  }
683
690
  else {
691
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
684
692
  reject(errString);
685
693
  }
686
694
  }
@@ -752,14 +760,15 @@ class ProjectsApi {
752
760
  }
753
761
  else {
754
762
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
755
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
756
763
  if (typeof body.success === 'boolean' && !body.success) {
764
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
757
765
  reject(new Error(body.error || errString));
758
766
  }
759
767
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
760
768
  resolve(body);
761
769
  }
762
770
  else {
771
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
763
772
  reject(errString);
764
773
  }
765
774
  }
@@ -825,14 +834,15 @@ class ProjectsApi {
825
834
  }
826
835
  else {
827
836
  body = models_1.ObjectSerializer.deserialize(body, "Buffer");
828
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
829
837
  if (typeof body.success === 'boolean' && !body.success) {
838
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
830
839
  reject(new Error(body.error || errString));
831
840
  }
832
841
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
833
842
  resolve(body);
834
843
  }
835
844
  else {
845
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
836
846
  reject(errString);
837
847
  }
838
848
  }
@@ -898,14 +908,15 @@ class ProjectsApi {
898
908
  }
899
909
  else {
900
910
  body = models_1.ObjectSerializer.deserialize(body, "Buffer");
901
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
902
911
  if (typeof body.success === 'boolean' && !body.success) {
912
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
903
913
  reject(new Error(body.error || errString));
904
914
  }
905
915
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
906
916
  resolve(body);
907
917
  }
908
918
  else {
919
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
909
920
  reject(errString);
910
921
  }
911
922
  }
@@ -977,14 +988,15 @@ class ProjectsApi {
977
988
  }
978
989
  else {
979
990
  body = models_1.ObjectSerializer.deserialize(body, "GetAIActionResponse");
980
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
981
991
  if (typeof body.success === 'boolean' && !body.success) {
992
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
982
993
  reject(new Error(body.error || errString));
983
994
  }
984
995
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
985
996
  resolve(body);
986
997
  }
987
998
  else {
999
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
988
1000
  reject(errString);
989
1001
  }
990
1002
  }
@@ -1050,14 +1062,15 @@ class ProjectsApi {
1050
1062
  }
1051
1063
  else {
1052
1064
  body = models_1.ObjectSerializer.deserialize(body, "GetCsvWizardUploadedFileInfo");
1053
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1054
1065
  if (typeof body.success === 'boolean' && !body.success) {
1066
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1055
1067
  reject(new Error(body.error || errString));
1056
1068
  }
1057
1069
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1058
1070
  resolve(body);
1059
1071
  }
1060
1072
  else {
1073
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1061
1074
  reject(errString);
1062
1075
  }
1063
1076
  }
@@ -1127,14 +1140,15 @@ class ProjectsApi {
1127
1140
  }
1128
1141
  else {
1129
1142
  body = models_1.ObjectSerializer.deserialize(body, "GetModelVariantsResponse");
1130
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1131
1143
  if (typeof body.success === 'boolean' && !body.success) {
1144
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1132
1145
  reject(new Error(body.error || errString));
1133
1146
  }
1134
1147
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1135
1148
  resolve(body);
1136
1149
  }
1137
1150
  else {
1151
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1138
1152
  reject(errString);
1139
1153
  }
1140
1154
  }
@@ -1200,14 +1214,15 @@ class ProjectsApi {
1200
1214
  }
1201
1215
  else {
1202
1216
  body = models_1.ObjectSerializer.deserialize(body, "GetAIActionResponse");
1203
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1204
1217
  if (typeof body.success === 'boolean' && !body.success) {
1218
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1205
1219
  reject(new Error(body.error || errString));
1206
1220
  }
1207
1221
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1208
1222
  resolve(body);
1209
1223
  }
1210
1224
  else {
1225
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1211
1226
  reject(errString);
1212
1227
  }
1213
1228
  }
@@ -1281,14 +1296,15 @@ class ProjectsApi {
1281
1296
  }
1282
1297
  else {
1283
1298
  body = models_1.ObjectSerializer.deserialize(body, "ProjectDataAxesSummaryResponse");
1284
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1285
1299
  if (typeof body.success === 'boolean' && !body.success) {
1300
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1286
1301
  reject(new Error(body.error || errString));
1287
1302
  }
1288
1303
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1289
1304
  resolve(body);
1290
1305
  }
1291
1306
  else {
1307
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1292
1308
  reject(errString);
1293
1309
  }
1294
1310
  }
@@ -1358,14 +1374,15 @@ class ProjectsApi {
1358
1374
  }
1359
1375
  else {
1360
1376
  body = models_1.ObjectSerializer.deserialize(body, "ProjectInfoResponse");
1361
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1362
1377
  if (typeof body.success === 'boolean' && !body.success) {
1378
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1363
1379
  reject(new Error(body.error || errString));
1364
1380
  }
1365
1381
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1366
1382
  resolve(body);
1367
1383
  }
1368
1384
  else {
1385
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1369
1386
  reject(errString);
1370
1387
  }
1371
1388
  }
@@ -1431,14 +1448,15 @@ class ProjectsApi {
1431
1448
  }
1432
1449
  else {
1433
1450
  body = models_1.ObjectSerializer.deserialize(body, "ProjectInfoSummaryResponse");
1434
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1435
1451
  if (typeof body.success === 'boolean' && !body.success) {
1452
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1436
1453
  reject(new Error(body.error || errString));
1437
1454
  }
1438
1455
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1439
1456
  resolve(body);
1440
1457
  }
1441
1458
  else {
1459
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1442
1460
  reject(errString);
1443
1461
  }
1444
1462
  }
@@ -1504,14 +1522,15 @@ class ProjectsApi {
1504
1522
  }
1505
1523
  else {
1506
1524
  body = models_1.ObjectSerializer.deserialize(body, "LastModificationDateResponse");
1507
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1508
1525
  if (typeof body.success === 'boolean' && !body.success) {
1526
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1509
1527
  reject(new Error(body.error || errString));
1510
1528
  }
1511
1529
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1512
1530
  resolve(body);
1513
1531
  }
1514
1532
  else {
1533
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1515
1534
  reject(errString);
1516
1535
  }
1517
1536
  }
@@ -1577,14 +1596,15 @@ class ProjectsApi {
1577
1596
  }
1578
1597
  else {
1579
1598
  body = models_1.ObjectSerializer.deserialize(body, "ProjectDataIntervalResponse");
1580
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1581
1599
  if (typeof body.success === 'boolean' && !body.success) {
1600
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1582
1601
  reject(new Error(body.error || errString));
1583
1602
  }
1584
1603
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1585
1604
  resolve(body);
1586
1605
  }
1587
1606
  else {
1607
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1588
1608
  reject(errString);
1589
1609
  }
1590
1610
  }
@@ -1658,14 +1678,15 @@ class ProjectsApi {
1658
1678
  }
1659
1679
  else {
1660
1680
  body = models_1.ObjectSerializer.deserialize(body, "ProjectTrainingDataSummaryResponse");
1661
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1662
1681
  if (typeof body.success === 'boolean' && !body.success) {
1682
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1663
1683
  reject(new Error(body.error || errString));
1664
1684
  }
1665
1685
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1666
1686
  resolve(body);
1667
1687
  }
1668
1688
  else {
1689
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1669
1690
  reject(errString);
1670
1691
  }
1671
1692
  }
@@ -1731,14 +1752,15 @@ class ProjectsApi {
1731
1752
  }
1732
1753
  else {
1733
1754
  body = models_1.ObjectSerializer.deserialize(body, "SocketTokenResponse");
1734
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1735
1755
  if (typeof body.success === 'boolean' && !body.success) {
1756
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1736
1757
  reject(new Error(body.error || errString));
1737
1758
  }
1738
1759
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1739
1760
  resolve(body);
1740
1761
  }
1741
1762
  else {
1763
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1742
1764
  reject(errString);
1743
1765
  }
1744
1766
  }
@@ -1804,14 +1826,15 @@ class ProjectsApi {
1804
1826
  }
1805
1827
  else {
1806
1828
  body = models_1.ObjectSerializer.deserialize(body, "GetSyntheticDataConfigResponse");
1807
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1808
1829
  if (typeof body.success === 'boolean' && !body.success) {
1830
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1809
1831
  reject(new Error(body.error || errString));
1810
1832
  }
1811
1833
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1812
1834
  resolve(body);
1813
1835
  }
1814
1836
  else {
1837
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1815
1838
  reject(errString);
1816
1839
  }
1817
1840
  }
@@ -1877,14 +1900,15 @@ class ProjectsApi {
1877
1900
  }
1878
1901
  else {
1879
1902
  body = models_1.ObjectSerializer.deserialize(body, "GetTargetConstraintsResponse");
1880
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1881
1903
  if (typeof body.success === 'boolean' && !body.success) {
1904
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1882
1905
  reject(new Error(body.error || errString));
1883
1906
  }
1884
1907
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1885
1908
  resolve(body);
1886
1909
  }
1887
1910
  else {
1911
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1888
1912
  reject(errString);
1889
1913
  }
1890
1914
  }
@@ -1950,14 +1974,15 @@ class ProjectsApi {
1950
1974
  }
1951
1975
  else {
1952
1976
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
1953
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1954
1977
  if (typeof body.success === 'boolean' && !body.success) {
1978
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1955
1979
  reject(new Error(body.error || errString));
1956
1980
  }
1957
1981
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1958
1982
  resolve(body);
1959
1983
  }
1960
1984
  else {
1985
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
1961
1986
  reject(errString);
1962
1987
  }
1963
1988
  }
@@ -2023,14 +2048,15 @@ class ProjectsApi {
2023
2048
  }
2024
2049
  else {
2025
2050
  body = models_1.ObjectSerializer.deserialize(body, "ListAIActionsResponse");
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 ProjectsApi {
2096
2122
  }
2097
2123
  else {
2098
2124
  body = models_1.ObjectSerializer.deserialize(body, "DevelopmentBoardsResponse");
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
  }
@@ -2169,14 +2196,15 @@ class ProjectsApi {
2169
2196
  }
2170
2197
  else {
2171
2198
  body = models_1.ObjectSerializer.deserialize(body, "DevelopmentKeysResponse");
2172
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2173
2199
  if (typeof body.success === 'boolean' && !body.success) {
2200
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2174
2201
  reject(new Error(body.error || errString));
2175
2202
  }
2176
2203
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2177
2204
  resolve(body);
2178
2205
  }
2179
2206
  else {
2207
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2180
2208
  reject(errString);
2181
2209
  }
2182
2210
  }
@@ -2246,14 +2274,15 @@ class ProjectsApi {
2246
2274
  }
2247
2275
  else {
2248
2276
  body = models_1.ObjectSerializer.deserialize(body, "ProjectDownloadsResponse");
2249
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2250
2277
  if (typeof body.success === 'boolean' && !body.success) {
2278
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2251
2279
  reject(new Error(body.error || errString));
2252
2280
  }
2253
2281
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2254
2282
  resolve(body);
2255
2283
  }
2256
2284
  else {
2285
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2257
2286
  reject(errString);
2258
2287
  }
2259
2288
  }
@@ -2319,14 +2348,15 @@ class ProjectsApi {
2319
2348
  }
2320
2349
  else {
2321
2350
  body = models_1.ObjectSerializer.deserialize(body, "ListEmailResponse");
2322
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2323
2351
  if (typeof body.success === 'boolean' && !body.success) {
2352
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2324
2353
  reject(new Error(body.error || errString));
2325
2354
  }
2326
2355
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2327
2356
  resolve(body);
2328
2357
  }
2329
2358
  else {
2359
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2330
2360
  reject(errString);
2331
2361
  }
2332
2362
  }
@@ -2392,14 +2422,15 @@ class ProjectsApi {
2392
2422
  }
2393
2423
  else {
2394
2424
  body = models_1.ObjectSerializer.deserialize(body, "ListApiKeysResponse");
2395
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2396
2425
  if (typeof body.success === 'boolean' && !body.success) {
2426
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2397
2427
  reject(new Error(body.error || errString));
2398
2428
  }
2399
2429
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2400
2430
  resolve(body);
2401
2431
  }
2402
2432
  else {
2433
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2403
2434
  reject(errString);
2404
2435
  }
2405
2436
  }
@@ -2465,14 +2496,15 @@ class ProjectsApi {
2465
2496
  }
2466
2497
  else {
2467
2498
  body = models_1.ObjectSerializer.deserialize(body, "ListHmacKeysResponse");
2468
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2469
2499
  if (typeof body.success === 'boolean' && !body.success) {
2500
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2470
2501
  reject(new Error(body.error || errString));
2471
2502
  }
2472
2503
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2473
2504
  resolve(body);
2474
2505
  }
2475
2506
  else {
2507
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2476
2508
  reject(errString);
2477
2509
  }
2478
2510
  }
@@ -2532,14 +2564,15 @@ class ProjectsApi {
2532
2564
  }
2533
2565
  else {
2534
2566
  body = models_1.ObjectSerializer.deserialize(body, "ListProjectsResponse");
2535
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2536
2567
  if (typeof body.success === 'boolean' && !body.success) {
2568
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2537
2569
  reject(new Error(body.error || errString));
2538
2570
  }
2539
2571
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2540
2572
  resolve(body);
2541
2573
  }
2542
2574
  else {
2575
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2543
2576
  reject(errString);
2544
2577
  }
2545
2578
  }
@@ -2596,14 +2629,15 @@ class ProjectsApi {
2596
2629
  }
2597
2630
  else {
2598
2631
  body = models_1.ObjectSerializer.deserialize(body, "ListPublicProjectTypesResponse");
2599
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2600
2632
  if (typeof body.success === 'boolean' && !body.success) {
2633
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2601
2634
  reject(new Error(body.error || errString));
2602
2635
  }
2603
2636
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2604
2637
  resolve(body);
2605
2638
  }
2606
2639
  else {
2640
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2607
2641
  reject(errString);
2608
2642
  }
2609
2643
  }
@@ -2680,14 +2714,15 @@ class ProjectsApi {
2680
2714
  }
2681
2715
  else {
2682
2716
  body = models_1.ObjectSerializer.deserialize(body, "ListPublicProjectsResponse");
2683
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2684
2717
  if (typeof body.success === 'boolean' && !body.success) {
2718
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2685
2719
  reject(new Error(body.error || errString));
2686
2720
  }
2687
2721
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2688
2722
  resolve(body);
2689
2723
  }
2690
2724
  else {
2725
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2691
2726
  reject(errString);
2692
2727
  }
2693
2728
  }
@@ -2750,14 +2785,15 @@ class ProjectsApi {
2750
2785
  }
2751
2786
  else {
2752
2787
  body = models_1.ObjectSerializer.deserialize(body, "ListPublicVersionsResponse");
2753
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2754
2788
  if (typeof body.success === 'boolean' && !body.success) {
2789
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2755
2790
  reject(new Error(body.error || errString));
2756
2791
  }
2757
2792
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2758
2793
  resolve(body);
2759
2794
  }
2760
2795
  else {
2796
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2761
2797
  reject(errString);
2762
2798
  }
2763
2799
  }
@@ -2823,14 +2859,15 @@ class ProjectsApi {
2823
2859
  }
2824
2860
  else {
2825
2861
  body = models_1.ObjectSerializer.deserialize(body, "ListVersionsResponse");
2826
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2827
2862
  if (typeof body.success === 'boolean' && !body.success) {
2863
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2828
2864
  reject(new Error(body.error || errString));
2829
2865
  }
2830
2866
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2831
2867
  resolve(body);
2832
2868
  }
2833
2869
  else {
2870
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2834
2871
  reject(errString);
2835
2872
  }
2836
2873
  }
@@ -2902,14 +2939,15 @@ class ProjectsApi {
2902
2939
  }
2903
2940
  else {
2904
2941
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
2905
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2906
2942
  if (typeof body.success === 'boolean' && !body.success) {
2943
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2907
2944
  reject(new Error(body.error || errString));
2908
2945
  }
2909
2946
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2910
2947
  resolve(body);
2911
2948
  }
2912
2949
  else {
2950
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2913
2951
  reject(errString);
2914
2952
  }
2915
2953
  }
@@ -2987,14 +3025,15 @@ class ProjectsApi {
2987
3025
  }
2988
3026
  else {
2989
3027
  body = models_1.ObjectSerializer.deserialize(body, "ListSamplesResponse");
2990
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2991
3028
  if (typeof body.success === 'boolean' && !body.success) {
3029
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2992
3030
  reject(new Error(body.error || errString));
2993
3031
  }
2994
3032
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2995
3033
  resolve(body);
2996
3034
  }
2997
3035
  else {
3036
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
2998
3037
  reject(errString);
2999
3038
  }
3000
3039
  }
@@ -3066,14 +3105,15 @@ class ProjectsApi {
3066
3105
  }
3067
3106
  else {
3068
3107
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3069
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3070
3108
  if (typeof body.success === 'boolean' && !body.success) {
3109
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3071
3110
  reject(new Error(body.error || errString));
3072
3111
  }
3073
3112
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3074
3113
  resolve(body);
3075
3114
  }
3076
3115
  else {
3116
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3077
3117
  reject(errString);
3078
3118
  }
3079
3119
  }
@@ -3145,14 +3185,15 @@ class ProjectsApi {
3145
3185
  }
3146
3186
  else {
3147
3187
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3148
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3149
3188
  if (typeof body.success === 'boolean' && !body.success) {
3189
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3150
3190
  reject(new Error(body.error || errString));
3151
3191
  }
3152
3192
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3153
3193
  resolve(body);
3154
3194
  }
3155
3195
  else {
3196
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3156
3197
  reject(errString);
3157
3198
  }
3158
3199
  }
@@ -3224,14 +3265,15 @@ class ProjectsApi {
3224
3265
  }
3225
3266
  else {
3226
3267
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3227
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3228
3268
  if (typeof body.success === 'boolean' && !body.success) {
3269
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3229
3270
  reject(new Error(body.error || errString));
3230
3271
  }
3231
3272
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3232
3273
  resolve(body);
3233
3274
  }
3234
3275
  else {
3276
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3235
3277
  reject(errString);
3236
3278
  }
3237
3279
  }
@@ -3303,14 +3345,15 @@ class ProjectsApi {
3303
3345
  }
3304
3346
  else {
3305
3347
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3306
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3307
3348
  if (typeof body.success === 'boolean' && !body.success) {
3349
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3308
3350
  reject(new Error(body.error || errString));
3309
3351
  }
3310
3352
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3311
3353
  resolve(body);
3312
3354
  }
3313
3355
  else {
3356
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3314
3357
  reject(errString);
3315
3358
  }
3316
3359
  }
@@ -3382,14 +3425,15 @@ class ProjectsApi {
3382
3425
  }
3383
3426
  else {
3384
3427
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3385
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3386
3428
  if (typeof body.success === 'boolean' && !body.success) {
3429
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3387
3430
  reject(new Error(body.error || errString));
3388
3431
  }
3389
3432
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3390
3433
  resolve(body);
3391
3434
  }
3392
3435
  else {
3436
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3393
3437
  reject(errString);
3394
3438
  }
3395
3439
  }
@@ -3461,14 +3505,15 @@ class ProjectsApi {
3461
3505
  }
3462
3506
  else {
3463
3507
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3464
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3465
3508
  if (typeof body.success === 'boolean' && !body.success) {
3509
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3466
3510
  reject(new Error(body.error || errString));
3467
3511
  }
3468
3512
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3469
3513
  resolve(body);
3470
3514
  }
3471
3515
  else {
3516
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3472
3517
  reject(errString);
3473
3518
  }
3474
3519
  }
@@ -3540,14 +3585,15 @@ class ProjectsApi {
3540
3585
  }
3541
3586
  else {
3542
3587
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3543
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3544
3588
  if (typeof body.success === 'boolean' && !body.success) {
3589
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3545
3590
  reject(new Error(body.error || errString));
3546
3591
  }
3547
3592
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3548
3593
  resolve(body);
3549
3594
  }
3550
3595
  else {
3596
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3551
3597
  reject(errString);
3552
3598
  }
3553
3599
  }
@@ -3619,14 +3665,15 @@ class ProjectsApi {
3619
3665
  }
3620
3666
  else {
3621
3667
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3622
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3623
3668
  if (typeof body.success === 'boolean' && !body.success) {
3669
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3624
3670
  reject(new Error(body.error || errString));
3625
3671
  }
3626
3672
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3627
3673
  resolve(body);
3628
3674
  }
3629
3675
  else {
3676
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3630
3677
  reject(errString);
3631
3678
  }
3632
3679
  }
@@ -3698,14 +3745,15 @@ class ProjectsApi {
3698
3745
  }
3699
3746
  else {
3700
3747
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3701
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3702
3748
  if (typeof body.success === 'boolean' && !body.success) {
3749
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3703
3750
  reject(new Error(body.error || errString));
3704
3751
  }
3705
3752
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3706
3753
  resolve(body);
3707
3754
  }
3708
3755
  else {
3756
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3709
3757
  reject(errString);
3710
3758
  }
3711
3759
  }
@@ -3777,14 +3825,15 @@ class ProjectsApi {
3777
3825
  }
3778
3826
  else {
3779
3827
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3780
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3781
3828
  if (typeof body.success === 'boolean' && !body.success) {
3829
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3782
3830
  reject(new Error(body.error || errString));
3783
3831
  }
3784
3832
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3785
3833
  resolve(body);
3786
3834
  }
3787
3835
  else {
3836
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3788
3837
  reject(errString);
3789
3838
  }
3790
3839
  }
@@ -3862,14 +3911,15 @@ class ProjectsApi {
3862
3911
  }
3863
3912
  else {
3864
3913
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3865
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3866
3914
  if (typeof body.success === 'boolean' && !body.success) {
3915
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3867
3916
  reject(new Error(body.error || errString));
3868
3917
  }
3869
3918
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3870
3919
  resolve(body);
3871
3920
  }
3872
3921
  else {
3922
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3873
3923
  reject(errString);
3874
3924
  }
3875
3925
  }
@@ -3941,14 +3991,15 @@ class ProjectsApi {
3941
3991
  }
3942
3992
  else {
3943
3993
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
3944
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3945
3994
  if (typeof body.success === 'boolean' && !body.success) {
3995
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3946
3996
  reject(new Error(body.error || errString));
3947
3997
  }
3948
3998
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3949
3999
  resolve(body);
3950
4000
  }
3951
4001
  else {
4002
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
3952
4003
  reject(errString);
3953
4004
  }
3954
4005
  }
@@ -4020,14 +4071,15 @@ class ProjectsApi {
4020
4071
  }
4021
4072
  else {
4022
4073
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
4023
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4024
4074
  if (typeof body.success === 'boolean' && !body.success) {
4075
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4025
4076
  reject(new Error(body.error || errString));
4026
4077
  }
4027
4078
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4028
4079
  resolve(body);
4029
4080
  }
4030
4081
  else {
4082
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4031
4083
  reject(errString);
4032
4084
  }
4033
4085
  }
@@ -4105,14 +4157,15 @@ class ProjectsApi {
4105
4157
  }
4106
4158
  else {
4107
4159
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
4108
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4109
4160
  if (typeof body.success === 'boolean' && !body.success) {
4161
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4110
4162
  reject(new Error(body.error || errString));
4111
4163
  }
4112
4164
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4113
4165
  resolve(body);
4114
4166
  }
4115
4167
  else {
4168
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4116
4169
  reject(errString);
4117
4170
  }
4118
4171
  }
@@ -4187,14 +4240,15 @@ class ProjectsApi {
4187
4240
  }
4188
4241
  else {
4189
4242
  body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
4190
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4191
4243
  if (typeof body.success === 'boolean' && !body.success) {
4244
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4192
4245
  reject(new Error(body.error || errString));
4193
4246
  }
4194
4247
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4195
4248
  resolve(body);
4196
4249
  }
4197
4250
  else {
4251
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4198
4252
  reject(errString);
4199
4253
  }
4200
4254
  }
@@ -4269,14 +4323,15 @@ class ProjectsApi {
4269
4323
  }
4270
4324
  else {
4271
4325
  body = models_1.ObjectSerializer.deserialize(body, "UploadReadmeImageResponse");
4272
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4273
4326
  if (typeof body.success === 'boolean' && !body.success) {
4327
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4274
4328
  reject(new Error(body.error || errString));
4275
4329
  }
4276
4330
  else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4277
4331
  resolve(body);
4278
4332
  }
4279
4333
  else {
4334
+ const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
4280
4335
  reject(errString);
4281
4336
  }
4282
4337
  }