@revengai/sdk 3.107.0 → 3.110.0

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 (56) hide show
  1. package/README.md +8 -0
  2. package/dist/apis/AnalysesCoreApi.d.ts +2 -2
  3. package/dist/apis/AnalysesCoreApi.js +70 -46
  4. package/dist/apis/AnalysesCoreApi.js.map +1 -1
  5. package/dist/apis/FunctionsCoreApi.d.ts +8 -2
  6. package/dist/apis/FunctionsCoreApi.js +236 -8
  7. package/dist/apis/FunctionsCoreApi.js.map +1 -1
  8. package/dist/models/ArchiveContentEntry.d.ts +22 -0
  9. package/dist/models/ArchiveContentEntry.js +35 -0
  10. package/dist/models/ArchiveContentEntry.js.map +1 -0
  11. package/dist/models/BatchBinaryMatchResult.d.ts +1 -0
  12. package/dist/models/BatchBinaryMatchResult.js +6 -0
  13. package/dist/models/BatchBinaryMatchResult.js.map +1 -1
  14. package/dist/models/ImportedFunctionCallerEntry.d.ts +23 -0
  15. package/dist/models/ImportedFunctionCallerEntry.js +41 -0
  16. package/dist/models/ImportedFunctionCallerEntry.js.map +1 -0
  17. package/dist/models/ImportedFunctionDetailOutputBody.d.ts +29 -0
  18. package/dist/models/ImportedFunctionDetailOutputBody.js +71 -0
  19. package/dist/models/ImportedFunctionDetailOutputBody.js.map +1 -0
  20. package/dist/models/ImportedFunctionEntry.d.ts +27 -0
  21. package/dist/models/ImportedFunctionEntry.js +65 -0
  22. package/dist/models/ImportedFunctionEntry.js.map +1 -0
  23. package/dist/models/ListArchiveContentsOutputBody.d.ts +25 -0
  24. package/dist/models/ListArchiveContentsOutputBody.js +47 -0
  25. package/dist/models/ListArchiveContentsOutputBody.js.map +1 -0
  26. package/dist/models/ListImportedFunctionsOutputBody.d.ts +22 -0
  27. package/dist/models/ListImportedFunctionsOutputBody.js +29 -0
  28. package/dist/models/ListImportedFunctionsOutputBody.js.map +1 -0
  29. package/dist/models/ObjectSerializer.d.ts +6 -0
  30. package/dist/models/ObjectSerializer.js +18 -0
  31. package/dist/models/ObjectSerializer.js.map +1 -1
  32. package/dist/models/StartMatchingForAnalysisInputBody.d.ts +1 -0
  33. package/dist/models/StartMatchingForAnalysisInputBody.js +6 -0
  34. package/dist/models/StartMatchingForAnalysisInputBody.js.map +1 -1
  35. package/dist/models/StartMatchingForFunctionsInputBody.d.ts +1 -0
  36. package/dist/models/StartMatchingForFunctionsInputBody.js +6 -0
  37. package/dist/models/StartMatchingForFunctionsInputBody.js.map +1 -1
  38. package/dist/models/StartMatchingOutputBody.d.ts +1 -0
  39. package/dist/models/StartMatchingOutputBody.js +6 -0
  40. package/dist/models/StartMatchingOutputBody.js.map +1 -1
  41. package/dist/models/TriggerDynamicExecutionInputBody.d.ts +3 -0
  42. package/dist/models/TriggerDynamicExecutionInputBody.js +18 -0
  43. package/dist/models/TriggerDynamicExecutionInputBody.js.map +1 -1
  44. package/dist/models/all.d.ts +6 -0
  45. package/dist/models/all.js +6 -0
  46. package/dist/models/all.js.map +1 -1
  47. package/dist/types/ObjectParamAPI.d.ts +25 -6
  48. package/dist/types/ObjectParamAPI.js +24 -8
  49. package/dist/types/ObjectParamAPI.js.map +1 -1
  50. package/dist/types/ObservableAPI.d.ts +14 -8
  51. package/dist/types/ObservableAPI.js +186 -130
  52. package/dist/types/ObservableAPI.js.map +1 -1
  53. package/dist/types/PromiseAPI.d.ts +14 -8
  54. package/dist/types/PromiseAPI.js +36 -16
  55. package/dist/types/PromiseAPI.js.map +1 -1
  56. package/package.json +1 -1
package/README.md CHANGED
@@ -175,7 +175,9 @@ Class | Method | HTTP request | Description
175
175
  *FunctionsCoreApi* | [**getFunctionsCalleesCallers**](docs/FunctionsCoreApi.md#getFunctionsCalleesCallers) | **GET** /v3/functions/callees-callers | Get callees and callers for many functions
176
176
  *FunctionsCoreApi* | [**getFunctionsMatches**](docs/FunctionsCoreApi.md#getFunctionsMatches) | **GET** /v3/functions/matches | Get function-matching results for an explicit set of functions
177
177
  *FunctionsCoreApi* | [**getFunctionsMatchingStatus**](docs/FunctionsCoreApi.md#getFunctionsMatchingStatus) | **GET** /v3/functions/matches/status | Get function-matching status for an explicit set of functions
178
+ *FunctionsCoreApi* | [**getImportedFunction**](docs/FunctionsCoreApi.md#getImportedFunction) | **GET** /v3/analyses/{analysis_id}/imported-functions/{imported_function_id} | Get an imported function with its callers
178
179
  *FunctionsCoreApi* | [**listAnalysisFunctions**](docs/FunctionsCoreApi.md#listAnalysisFunctions) | **GET** /v3/analyses/{analysis_id}/functions | List functions in an analysis
180
+ *FunctionsCoreApi* | [**listImportedFunctions**](docs/FunctionsCoreApi.md#listImportedFunctions) | **GET** /v3/analyses/{analysis_id}/imported-functions | List imported functions in an analysis
179
181
  *FunctionsCoreApi* | [**startFunctionsMatching**](docs/FunctionsCoreApi.md#startFunctionsMatching) | **POST** /v3/functions/matches | Start function matching for an explicit set of functions
180
182
  *FunctionsDataTypesApi* | [**batchUpdateFunctionDataTypes**](docs/FunctionsDataTypesApi.md#batchUpdateFunctionDataTypes) | **PUT** /v3/analyses/{analysis_id}/functions/data-types | Batch update function data types
181
183
  *FunctionsDataTypesApi* | [**generateFunctionDataTypesForAnalysis**](docs/FunctionsDataTypesApi.md#generateFunctionDataTypesForAnalysis) | **POST** /v2/analyses/{analysis_id}/functions/data_types | Generate Function Data Types
@@ -257,6 +259,7 @@ Class | Method | HTTP request | Description
257
259
  - [AppApiRestV2FunctionsResponsesFunction](AppApiRestV2FunctionsResponsesFunction.md)
258
260
  - [AppApiRestV2FunctionsTypesFunction](AppApiRestV2FunctionsTypesFunction.md)
259
261
  - [AppApiRestV2InfoTypesCapability](AppApiRestV2InfoTypesCapability.md)
262
+ - [ArchiveContentEntry](ArchiveContentEntry.md)
260
263
  - [Argument](Argument.md)
261
264
  - [Artifact](Artifact.md)
262
265
  - [AttemptFailedEvent](AttemptFailedEvent.md)
@@ -519,6 +522,9 @@ Class | Method | HTTP request | Description
519
522
  - [ISA](ISA.md)
520
523
  - [IconModel](IconModel.md)
521
524
  - [ImportModel](ImportModel.md)
525
+ - [ImportedFunctionCallerEntry](ImportedFunctionCallerEntry.md)
526
+ - [ImportedFunctionDetailOutputBody](ImportedFunctionDetailOutputBody.md)
527
+ - [ImportedFunctionEntry](ImportedFunctionEntry.md)
522
528
  - [InlineComment](InlineComment.md)
523
529
  - [InsertAnalysisLogRequest](InsertAnalysisLogRequest.md)
524
530
  - [InviteUserInputBody](InviteUserInputBody.md)
@@ -526,11 +532,13 @@ Class | Method | HTTP request | Description
526
532
  - [ListAnalysisFunctionsDataTypesOutputBody](ListAnalysisFunctionsDataTypesOutputBody.md)
527
533
  - [ListAnalysisFunctionsOutputBody](ListAnalysisFunctionsOutputBody.md)
528
534
  - [ListAnalysisStringsOutputBody](ListAnalysisStringsOutputBody.md)
535
+ - [ListArchiveContentsOutputBody](ListArchiveContentsOutputBody.md)
529
536
  - [ListCollectionResults](ListCollectionResults.md)
530
537
  - [ListCollectionsOutputBody](ListCollectionsOutputBody.md)
531
538
  - [ListExampleAnalysesOutputBody](ListExampleAnalysesOutputBody.md)
532
539
  - [ListFunctionStringsOutputBody](ListFunctionStringsOutputBody.md)
533
540
  - [ListFunctionsDataTypesOutputBody](ListFunctionsDataTypesOutputBody.md)
541
+ - [ListImportedFunctionsOutputBody](ListImportedFunctionsOutputBody.md)
534
542
  - [ListTeamsOutputBody](ListTeamsOutputBody.md)
535
543
  - [ListUsersOutputBody](ListUsersOutputBody.md)
536
544
  - [LocationOutputBody](LocationOutputBody.md)
@@ -46,8 +46,8 @@ export declare class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory
46
46
  getAnalysisBasicInfo_1(analysisId: number, _options?: Configuration): Promise<RequestContext>;
47
47
  getAnalysisBytes(analysisId: number, page?: number, _options?: Configuration): Promise<RequestContext>;
48
48
  getAnalysisFunctionMap(analysisId: number, _options?: Configuration): Promise<RequestContext>;
49
- getAnalysisFunctionMatches(analysisId: number, _options?: Configuration): Promise<RequestContext>;
50
- getAnalysisFunctionMatchingStatus(analysisId: number, _options?: Configuration): Promise<RequestContext>;
49
+ getAnalysisFunctionMatches(analysisId: number, matchId?: string, _options?: Configuration): Promise<RequestContext>;
50
+ getAnalysisFunctionMatchingStatus(analysisId: number, matchId?: string, _options?: Configuration): Promise<RequestContext>;
51
51
  getAnalysisLogs(analysisId: number, _options?: Configuration): Promise<RequestContext>;
52
52
  getAnalysisParams(analysisId: number, _options?: Configuration): Promise<RequestContext>;
53
53
  getAnalysisStatus(analysisId: number, _options?: Configuration): Promise<RequestContext>;
@@ -360,7 +360,7 @@ var AnalysesCoreApiRequestFactory = (function (_super) {
360
360
  });
361
361
  });
362
362
  };
363
- AnalysesCoreApiRequestFactory.prototype.getAnalysisFunctionMatches = function (analysisId, _options) {
363
+ AnalysesCoreApiRequestFactory.prototype.getAnalysisFunctionMatches = function (analysisId, matchId, _options) {
364
364
  var _a;
365
365
  return __awaiter(this, void 0, void 0, function () {
366
366
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -375,6 +375,9 @@ var AnalysesCoreApiRequestFactory = (function (_super) {
375
375
  .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
376
376
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
377
377
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
378
+ if (matchId !== undefined) {
379
+ requestContext.setQueryParam("match_id", ObjectSerializer_1.ObjectSerializer.serialize(matchId, "string", ""));
380
+ }
378
381
  authMethod = _config.authMethods["APIKey"];
379
382
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
380
383
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -400,7 +403,7 @@ var AnalysesCoreApiRequestFactory = (function (_super) {
400
403
  });
401
404
  });
402
405
  };
403
- AnalysesCoreApiRequestFactory.prototype.getAnalysisFunctionMatchingStatus = function (analysisId, _options) {
406
+ AnalysesCoreApiRequestFactory.prototype.getAnalysisFunctionMatchingStatus = function (analysisId, matchId, _options) {
404
407
  var _a;
405
408
  return __awaiter(this, void 0, void 0, function () {
406
409
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -415,6 +418,9 @@ var AnalysesCoreApiRequestFactory = (function (_super) {
415
418
  .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
416
419
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
417
420
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
421
+ if (matchId !== undefined) {
422
+ requestContext.setQueryParam("match_id", ObjectSerializer_1.ObjectSerializer.serialize(matchId, "string", ""));
423
+ }
418
424
  authMethod = _config.authMethods["APIKey"];
419
425
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
420
426
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -1688,9 +1694,9 @@ var AnalysesCoreApiResponseProcessor = (function () {
1688
1694
  };
1689
1695
  AnalysesCoreApiResponseProcessor.prototype.getAnalysisFunctionMatchesWithHttpInfo = function (response) {
1690
1696
  return __awaiter(this, void 0, void 0, function () {
1691
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
1692
- return __generator(this, function (_2) {
1693
- switch (_2.label) {
1697
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, body, _0, _1, _2, _3, _4, _5;
1698
+ return __generator(this, function (_6) {
1699
+ switch (_6.label) {
1694
1700
  case 0:
1695
1701
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1696
1702
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1698,68 +1704,77 @@ var AnalysesCoreApiResponseProcessor = (function () {
1698
1704
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1699
1705
  return [4, response.body.text()];
1700
1706
  case 1:
1701
- body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1707
+ body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
1702
1708
  "GetMatchesOutputBody", ""]);
1703
1709
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1704
1710
  case 2:
1705
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
1711
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1706
1712
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1707
1713
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1708
1714
  return [4, response.body.text()];
1709
1715
  case 3:
1710
- body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1716
+ body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
1711
1717
  "APIError", ""]);
1712
- throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1718
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
1713
1719
  case 4:
1714
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1720
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
1715
1721
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1716
1722
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1717
1723
  return [4, response.body.text()];
1718
1724
  case 5:
1719
- body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1725
+ body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
1720
1726
  "APIError", ""]);
1721
- throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1727
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1722
1728
  case 6:
1723
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1729
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 8];
1724
1730
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1725
1731
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1726
1732
  return [4, response.body.text()];
1727
1733
  case 7:
1728
- body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1734
+ body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
1729
1735
  "APIError", ""]);
1730
- throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1736
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1731
1737
  case 8:
1732
- if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1738
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 10];
1733
1739
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1734
1740
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1735
1741
  return [4, response.body.text()];
1736
1742
  case 9:
1737
- body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1743
+ body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
1738
1744
  "APIError", ""]);
1739
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1745
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1740
1746
  case 10:
1741
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1747
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 12];
1742
1748
  _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1743
1749
  _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1744
1750
  return [4, response.body.text()];
1745
1751
  case 11:
1746
- body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1752
+ body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
1753
+ "APIError", ""]);
1754
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1755
+ case 12:
1756
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
1757
+ _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
1758
+ _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
1759
+ return [4, response.body.text()];
1760
+ case 13:
1761
+ body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
1747
1762
  "GetMatchesOutputBody", ""]);
1748
1763
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1749
- case 12:
1750
- _0 = exception_1.ApiException.bind;
1751
- _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1764
+ case 14:
1765
+ _4 = exception_1.ApiException.bind;
1766
+ _5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1752
1767
  return [4, response.getBodyAsAny()];
1753
- case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1768
+ case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
1754
1769
  }
1755
1770
  });
1756
1771
  });
1757
1772
  };
1758
1773
  AnalysesCoreApiResponseProcessor.prototype.getAnalysisFunctionMatchingStatusWithHttpInfo = function (response) {
1759
1774
  return __awaiter(this, void 0, void 0, function () {
1760
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
1761
- return __generator(this, function (_2) {
1762
- switch (_2.label) {
1775
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, body, _0, _1, _2, _3, _4, _5;
1776
+ return __generator(this, function (_6) {
1777
+ switch (_6.label) {
1763
1778
  case 0:
1764
1779
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1765
1780
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1767,59 +1782,68 @@ var AnalysesCoreApiResponseProcessor = (function () {
1767
1782
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1768
1783
  return [4, response.body.text()];
1769
1784
  case 1:
1770
- body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1785
+ body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
1771
1786
  "GetMatchesStatusOutputBody", ""]);
1772
1787
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1773
1788
  case 2:
1774
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
1789
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1775
1790
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1776
1791
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1777
1792
  return [4, response.body.text()];
1778
1793
  case 3:
1779
- body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1794
+ body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
1780
1795
  "APIError", ""]);
1781
- throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1796
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
1782
1797
  case 4:
1783
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1798
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
1784
1799
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1785
1800
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1786
1801
  return [4, response.body.text()];
1787
1802
  case 5:
1788
- body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1803
+ body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
1789
1804
  "APIError", ""]);
1790
- throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1805
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1791
1806
  case 6:
1792
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1807
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 8];
1793
1808
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1794
1809
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1795
1810
  return [4, response.body.text()];
1796
1811
  case 7:
1797
- body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1812
+ body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
1798
1813
  "APIError", ""]);
1799
- throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1814
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1800
1815
  case 8:
1801
- if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1816
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 10];
1802
1817
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1803
1818
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1804
1819
  return [4, response.body.text()];
1805
1820
  case 9:
1806
- body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1821
+ body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
1807
1822
  "APIError", ""]);
1808
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1823
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1809
1824
  case 10:
1810
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1825
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 12];
1811
1826
  _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1812
1827
  _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1813
1828
  return [4, response.body.text()];
1814
1829
  case 11:
1815
- body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1830
+ body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
1831
+ "APIError", ""]);
1832
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1833
+ case 12:
1834
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
1835
+ _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
1836
+ _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
1837
+ return [4, response.body.text()];
1838
+ case 13:
1839
+ body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
1816
1840
  "GetMatchesStatusOutputBody", ""]);
1817
1841
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1818
- case 12:
1819
- _0 = exception_1.ApiException.bind;
1820
- _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1842
+ case 14:
1843
+ _4 = exception_1.ApiException.bind;
1844
+ _5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1821
1845
  return [4, response.getBodyAsAny()];
1822
- case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1846
+ case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
1823
1847
  }
1824
1848
  });
1825
1849
  });