@revengai/sdk 3.107.0 → 3.113.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 (83) hide show
  1. package/README.md +21 -0
  2. package/dist/apis/AnalysesCoreApi.d.ts +8 -2
  3. package/dist/apis/AnalysesCoreApi.js +313 -46
  4. package/dist/apis/AnalysesCoreApi.js.map +1 -1
  5. package/dist/apis/FunctionsCoreApi.d.ts +15 -2
  6. package/dist/apis/FunctionsCoreApi.js +459 -8
  7. package/dist/apis/FunctionsCoreApi.js.map +1 -1
  8. package/dist/models/AnalysisRecordBody.d.ts +41 -0
  9. package/dist/models/AnalysisRecordBody.js +114 -0
  10. package/dist/models/AnalysisRecordBody.js.map +1 -0
  11. package/dist/models/AnalysisTagBody.d.ts +22 -0
  12. package/dist/models/AnalysisTagBody.js +35 -0
  13. package/dist/models/AnalysisTagBody.js.map +1 -0
  14. package/dist/models/ArchiveContentEntry.d.ts +22 -0
  15. package/dist/models/ArchiveContentEntry.js +35 -0
  16. package/dist/models/ArchiveContentEntry.js.map +1 -0
  17. package/dist/models/AutoUnstripStatusOutputBody.d.ts +28 -0
  18. package/dist/models/AutoUnstripStatusOutputBody.js +32 -0
  19. package/dist/models/AutoUnstripStatusOutputBody.js.map +1 -0
  20. package/dist/models/BatchBinaryMatchResult.d.ts +1 -0
  21. package/dist/models/BatchBinaryMatchResult.js +6 -0
  22. package/dist/models/BatchBinaryMatchResult.js.map +1 -1
  23. package/dist/models/CanonicalName.d.ts +21 -0
  24. package/dist/models/CanonicalName.js +29 -0
  25. package/dist/models/CanonicalName.js.map +1 -0
  26. package/dist/models/CanonicalizeNamesInputBody.d.ts +20 -0
  27. package/dist/models/CanonicalizeNamesInputBody.js +23 -0
  28. package/dist/models/CanonicalizeNamesInputBody.js.map +1 -0
  29. package/dist/models/CanonicalizeNamesOutputBody.d.ts +21 -0
  30. package/dist/models/CanonicalizeNamesOutputBody.js +23 -0
  31. package/dist/models/CanonicalizeNamesOutputBody.js.map +1 -0
  32. package/dist/models/ImportedFunctionCallerEntry.d.ts +23 -0
  33. package/dist/models/ImportedFunctionCallerEntry.js +41 -0
  34. package/dist/models/ImportedFunctionCallerEntry.js.map +1 -0
  35. package/dist/models/ImportedFunctionDetailOutputBody.d.ts +29 -0
  36. package/dist/models/ImportedFunctionDetailOutputBody.js +71 -0
  37. package/dist/models/ImportedFunctionDetailOutputBody.js.map +1 -0
  38. package/dist/models/ImportedFunctionEntry.d.ts +27 -0
  39. package/dist/models/ImportedFunctionEntry.js +65 -0
  40. package/dist/models/ImportedFunctionEntry.js.map +1 -0
  41. package/dist/models/IndirectCallSite.d.ts +24 -0
  42. package/dist/models/IndirectCallSite.js +47 -0
  43. package/dist/models/IndirectCallSite.js.map +1 -0
  44. package/dist/models/IndirectCallSitesOutputBody.d.ts +22 -0
  45. package/dist/models/IndirectCallSitesOutputBody.js +29 -0
  46. package/dist/models/IndirectCallSitesOutputBody.js.map +1 -0
  47. package/dist/models/ListAnalysesOutputBody.d.ts +23 -0
  48. package/dist/models/ListAnalysesOutputBody.js +35 -0
  49. package/dist/models/ListAnalysesOutputBody.js.map +1 -0
  50. package/dist/models/ListArchiveContentsOutputBody.d.ts +25 -0
  51. package/dist/models/ListArchiveContentsOutputBody.js +47 -0
  52. package/dist/models/ListArchiveContentsOutputBody.js.map +1 -0
  53. package/dist/models/ListImportedFunctionsOutputBody.d.ts +22 -0
  54. package/dist/models/ListImportedFunctionsOutputBody.js +29 -0
  55. package/dist/models/ListImportedFunctionsOutputBody.js.map +1 -0
  56. package/dist/models/ObjectSerializer.d.ts +15 -0
  57. package/dist/models/ObjectSerializer.js +47 -0
  58. package/dist/models/ObjectSerializer.js.map +1 -1
  59. package/dist/models/StartMatchingForAnalysisInputBody.d.ts +1 -0
  60. package/dist/models/StartMatchingForAnalysisInputBody.js +6 -0
  61. package/dist/models/StartMatchingForAnalysisInputBody.js.map +1 -1
  62. package/dist/models/StartMatchingForFunctionsInputBody.d.ts +1 -0
  63. package/dist/models/StartMatchingForFunctionsInputBody.js +6 -0
  64. package/dist/models/StartMatchingForFunctionsInputBody.js.map +1 -1
  65. package/dist/models/StartMatchingOutputBody.d.ts +1 -0
  66. package/dist/models/StartMatchingOutputBody.js +6 -0
  67. package/dist/models/StartMatchingOutputBody.js.map +1 -1
  68. package/dist/models/TriggerDynamicExecutionInputBody.d.ts +3 -0
  69. package/dist/models/TriggerDynamicExecutionInputBody.js +18 -0
  70. package/dist/models/TriggerDynamicExecutionInputBody.js.map +1 -1
  71. package/dist/models/all.d.ts +15 -0
  72. package/dist/models/all.js +15 -0
  73. package/dist/models/all.js.map +1 -1
  74. package/dist/types/ObjectParamAPI.d.ts +59 -6
  75. package/dist/types/ObjectParamAPI.js +50 -8
  76. package/dist/types/ObjectParamAPI.js.map +1 -1
  77. package/dist/types/ObservableAPI.d.ts +27 -8
  78. package/dist/types/ObservableAPI.js +673 -505
  79. package/dist/types/ObservableAPI.js.map +1 -1
  80. package/dist/types/PromiseAPI.d.ts +27 -8
  81. package/dist/types/PromiseAPI.js +76 -16
  82. package/dist/types/PromiseAPI.js.map +1 -1
  83. package/package.json +1 -1
@@ -896,6 +896,46 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
896
896
  });
897
897
  });
898
898
  };
899
+ FunctionsCoreApiRequestFactory.prototype.getFunctionIndirectCallSites = function (functionId, _options) {
900
+ var _a;
901
+ return __awaiter(this, void 0, void 0, function () {
902
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
903
+ return __generator(this, function (_b) {
904
+ switch (_b.label) {
905
+ case 0:
906
+ _config = _options || this.configuration;
907
+ if (functionId === null || functionId === undefined) {
908
+ throw new baseapi_1.RequiredError("FunctionsCoreApi", "getFunctionIndirectCallSites", "functionId");
909
+ }
910
+ localVarPath = '/v3/functions/{function_id}/indirect-call-sites'
911
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
912
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
913
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
914
+ authMethod = _config.authMethods["APIKey"];
915
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
916
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
917
+ case 1:
918
+ _b.sent();
919
+ _b.label = 2;
920
+ case 2:
921
+ authMethod = _config.authMethods["bearerAuth"];
922
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
923
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
924
+ case 3:
925
+ _b.sent();
926
+ _b.label = 4;
927
+ case 4:
928
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
929
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
930
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
931
+ case 5:
932
+ _b.sent();
933
+ _b.label = 6;
934
+ case 6: return [2, requestContext];
935
+ }
936
+ });
937
+ });
938
+ };
899
939
  FunctionsCoreApiRequestFactory.prototype.getFunctionStrings = function (functionId, page, pageSize, search, _options) {
900
940
  var _a;
901
941
  return __awaiter(this, void 0, void 0, function () {
@@ -1036,7 +1076,7 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
1036
1076
  });
1037
1077
  });
1038
1078
  };
1039
- FunctionsCoreApiRequestFactory.prototype.getFunctionsMatches = function (functionIds, _options) {
1079
+ FunctionsCoreApiRequestFactory.prototype.getFunctionsMatches = function (matchId, functionIds, _options) {
1040
1080
  var _a;
1041
1081
  return __awaiter(this, void 0, void 0, function () {
1042
1082
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -1044,12 +1084,12 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
1044
1084
  switch (_b.label) {
1045
1085
  case 0:
1046
1086
  _config = _options || this.configuration;
1047
- if (functionIds === null || functionIds === undefined) {
1048
- throw new baseapi_1.RequiredError("FunctionsCoreApi", "getFunctionsMatches", "functionIds");
1049
- }
1050
1087
  localVarPath = '/v3/functions/matches';
1051
1088
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1052
1089
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1090
+ if (matchId !== undefined) {
1091
+ requestContext.setQueryParam("match_id", ObjectSerializer_1.ObjectSerializer.serialize(matchId, "string", ""));
1092
+ }
1053
1093
  if (functionIds !== undefined) {
1054
1094
  requestContext.setQueryParam("function_ids", ObjectSerializer_1.ObjectSerializer.serialize(functionIds, "Array<number>", "int64"));
1055
1095
  }
@@ -1078,7 +1118,7 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
1078
1118
  });
1079
1119
  });
1080
1120
  };
1081
- FunctionsCoreApiRequestFactory.prototype.getFunctionsMatchingStatus = function (functionIds, _options) {
1121
+ FunctionsCoreApiRequestFactory.prototype.getFunctionsMatchingStatus = function (matchId, functionIds, _options) {
1082
1122
  var _a;
1083
1123
  return __awaiter(this, void 0, void 0, function () {
1084
1124
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -1086,12 +1126,12 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
1086
1126
  switch (_b.label) {
1087
1127
  case 0:
1088
1128
  _config = _options || this.configuration;
1089
- if (functionIds === null || functionIds === undefined) {
1090
- throw new baseapi_1.RequiredError("FunctionsCoreApi", "getFunctionsMatchingStatus", "functionIds");
1091
- }
1092
1129
  localVarPath = '/v3/functions/matches/status';
1093
1130
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1094
1131
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1132
+ if (matchId !== undefined) {
1133
+ requestContext.setQueryParam("match_id", ObjectSerializer_1.ObjectSerializer.serialize(matchId, "string", ""));
1134
+ }
1095
1135
  if (functionIds !== undefined) {
1096
1136
  requestContext.setQueryParam("function_ids", ObjectSerializer_1.ObjectSerializer.serialize(functionIds, "Array<number>", "int64"));
1097
1137
  }
@@ -1120,6 +1160,50 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
1120
1160
  });
1121
1161
  });
1122
1162
  };
1163
+ FunctionsCoreApiRequestFactory.prototype.getImportedFunction = function (analysisId, importedFunctionId, _options) {
1164
+ var _a;
1165
+ return __awaiter(this, void 0, void 0, function () {
1166
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
1167
+ return __generator(this, function (_b) {
1168
+ switch (_b.label) {
1169
+ case 0:
1170
+ _config = _options || this.configuration;
1171
+ if (analysisId === null || analysisId === undefined) {
1172
+ throw new baseapi_1.RequiredError("FunctionsCoreApi", "getImportedFunction", "analysisId");
1173
+ }
1174
+ if (importedFunctionId === null || importedFunctionId === undefined) {
1175
+ throw new baseapi_1.RequiredError("FunctionsCoreApi", "getImportedFunction", "importedFunctionId");
1176
+ }
1177
+ localVarPath = '/v3/analyses/{analysis_id}/imported-functions/{imported_function_id}'
1178
+ .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)))
1179
+ .replace('{' + 'imported_function_id' + '}', encodeURIComponent(String(importedFunctionId)));
1180
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1181
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1182
+ authMethod = _config.authMethods["APIKey"];
1183
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1184
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1185
+ case 1:
1186
+ _b.sent();
1187
+ _b.label = 2;
1188
+ case 2:
1189
+ authMethod = _config.authMethods["bearerAuth"];
1190
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
1191
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1192
+ case 3:
1193
+ _b.sent();
1194
+ _b.label = 4;
1195
+ case 4:
1196
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1197
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
1198
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1199
+ case 5:
1200
+ _b.sent();
1201
+ _b.label = 6;
1202
+ case 6: return [2, requestContext];
1203
+ }
1204
+ });
1205
+ });
1206
+ };
1123
1207
  FunctionsCoreApiRequestFactory.prototype.listAnalysisFunctions = function (analysisId, offset, limit, _options) {
1124
1208
  var _a;
1125
1209
  return __awaiter(this, void 0, void 0, function () {
@@ -1166,6 +1250,52 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
1166
1250
  });
1167
1251
  });
1168
1252
  };
1253
+ FunctionsCoreApiRequestFactory.prototype.listImportedFunctions = function (analysisId, offset, limit, _options) {
1254
+ var _a;
1255
+ return __awaiter(this, void 0, void 0, function () {
1256
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
1257
+ return __generator(this, function (_b) {
1258
+ switch (_b.label) {
1259
+ case 0:
1260
+ _config = _options || this.configuration;
1261
+ if (analysisId === null || analysisId === undefined) {
1262
+ throw new baseapi_1.RequiredError("FunctionsCoreApi", "listImportedFunctions", "analysisId");
1263
+ }
1264
+ localVarPath = '/v3/analyses/{analysis_id}/imported-functions'
1265
+ .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
1266
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1267
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1268
+ if (offset !== undefined) {
1269
+ requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", "int64"));
1270
+ }
1271
+ if (limit !== undefined) {
1272
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", "int64"));
1273
+ }
1274
+ authMethod = _config.authMethods["APIKey"];
1275
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1276
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1277
+ case 1:
1278
+ _b.sent();
1279
+ _b.label = 2;
1280
+ case 2:
1281
+ authMethod = _config.authMethods["bearerAuth"];
1282
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
1283
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1284
+ case 3:
1285
+ _b.sent();
1286
+ _b.label = 4;
1287
+ case 4:
1288
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1289
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
1290
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1291
+ case 5:
1292
+ _b.sent();
1293
+ _b.label = 6;
1294
+ case 6: return [2, requestContext];
1295
+ }
1296
+ });
1297
+ });
1298
+ };
1169
1299
  FunctionsCoreApiRequestFactory.prototype.startFunctionsMatching = function (startMatchingForFunctionsInputBody, _options) {
1170
1300
  var _a;
1171
1301
  return __awaiter(this, void 0, void 0, function () {
@@ -1211,6 +1341,51 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
1211
1341
  });
1212
1342
  });
1213
1343
  };
1344
+ FunctionsCoreApiRequestFactory.prototype.v3CanonicalizeFunctionNames = function (canonicalizeNamesInputBody, _options) {
1345
+ var _a;
1346
+ return __awaiter(this, void 0, void 0, function () {
1347
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1348
+ return __generator(this, function (_b) {
1349
+ switch (_b.label) {
1350
+ case 0:
1351
+ _config = _options || this.configuration;
1352
+ if (canonicalizeNamesInputBody === null || canonicalizeNamesInputBody === undefined) {
1353
+ throw new baseapi_1.RequiredError("FunctionsCoreApi", "v3CanonicalizeFunctionNames", "canonicalizeNamesInputBody");
1354
+ }
1355
+ localVarPath = '/v3/functions/canonical-names';
1356
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1357
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1358
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1359
+ "application/json"
1360
+ ]);
1361
+ requestContext.setHeaderParam("Content-Type", contentType);
1362
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(canonicalizeNamesInputBody, "CanonicalizeNamesInputBody", ""), contentType);
1363
+ requestContext.setBody(serializedBody);
1364
+ authMethod = _config.authMethods["APIKey"];
1365
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1366
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1367
+ case 1:
1368
+ _b.sent();
1369
+ _b.label = 2;
1370
+ case 2:
1371
+ authMethod = _config.authMethods["bearerAuth"];
1372
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
1373
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1374
+ case 3:
1375
+ _b.sent();
1376
+ _b.label = 4;
1377
+ case 4:
1378
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1379
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
1380
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1381
+ case 5:
1382
+ _b.sent();
1383
+ _b.label = 6;
1384
+ case 6: return [2, requestContext];
1385
+ }
1386
+ });
1387
+ });
1388
+ };
1214
1389
  return FunctionsCoreApiRequestFactory;
1215
1390
  }(baseapi_1.BaseAPIRequestFactory));
1216
1391
  exports.FunctionsCoreApiRequestFactory = FunctionsCoreApiRequestFactory;
@@ -2204,6 +2379,75 @@ var FunctionsCoreApiResponseProcessor = (function () {
2204
2379
  });
2205
2380
  });
2206
2381
  };
2382
+ FunctionsCoreApiResponseProcessor.prototype.getFunctionIndirectCallSitesWithHttpInfo = function (response) {
2383
+ return __awaiter(this, void 0, void 0, function () {
2384
+ 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;
2385
+ return __generator(this, function (_2) {
2386
+ switch (_2.label) {
2387
+ case 0:
2388
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2389
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2390
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2391
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2392
+ return [4, response.body.text()];
2393
+ case 1:
2394
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
2395
+ "IndirectCallSitesOutputBody", ""]);
2396
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2397
+ case 2:
2398
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
2399
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2400
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2401
+ return [4, response.body.text()];
2402
+ case 3:
2403
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
2404
+ "APIError", ""]);
2405
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
2406
+ case 4:
2407
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2408
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2409
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2410
+ return [4, response.body.text()];
2411
+ case 5:
2412
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
2413
+ "APIError", ""]);
2414
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
2415
+ case 6:
2416
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
2417
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2418
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2419
+ return [4, response.body.text()];
2420
+ case 7:
2421
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
2422
+ "APIError", ""]);
2423
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
2424
+ case 8:
2425
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
2426
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2427
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2428
+ return [4, response.body.text()];
2429
+ case 9:
2430
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
2431
+ "APIError", ""]);
2432
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
2433
+ case 10:
2434
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
2435
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
2436
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
2437
+ return [4, response.body.text()];
2438
+ case 11:
2439
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
2440
+ "IndirectCallSitesOutputBody", ""]);
2441
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2442
+ case 12:
2443
+ _0 = exception_1.ApiException.bind;
2444
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2445
+ return [4, response.getBodyAsAny()];
2446
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
2447
+ }
2448
+ });
2449
+ });
2450
+ };
2207
2451
  FunctionsCoreApiResponseProcessor.prototype.getFunctionStringsWithHttpInfo = function (response) {
2208
2452
  return __awaiter(this, void 0, void 0, function () {
2209
2453
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
@@ -2549,6 +2793,75 @@ var FunctionsCoreApiResponseProcessor = (function () {
2549
2793
  });
2550
2794
  });
2551
2795
  };
2796
+ FunctionsCoreApiResponseProcessor.prototype.getImportedFunctionWithHttpInfo = function (response) {
2797
+ return __awaiter(this, void 0, void 0, function () {
2798
+ 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;
2799
+ return __generator(this, function (_2) {
2800
+ switch (_2.label) {
2801
+ case 0:
2802
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2803
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2804
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2805
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2806
+ return [4, response.body.text()];
2807
+ case 1:
2808
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
2809
+ "ImportedFunctionDetailOutputBody", ""]);
2810
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2811
+ case 2:
2812
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
2813
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2814
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2815
+ return [4, response.body.text()];
2816
+ case 3:
2817
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
2818
+ "APIError", ""]);
2819
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
2820
+ case 4:
2821
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2822
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2823
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2824
+ return [4, response.body.text()];
2825
+ case 5:
2826
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
2827
+ "APIError", ""]);
2828
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
2829
+ case 6:
2830
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
2831
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2832
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2833
+ return [4, response.body.text()];
2834
+ case 7:
2835
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
2836
+ "APIError", ""]);
2837
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
2838
+ case 8:
2839
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
2840
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2841
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2842
+ return [4, response.body.text()];
2843
+ case 9:
2844
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
2845
+ "APIError", ""]);
2846
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
2847
+ case 10:
2848
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
2849
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
2850
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
2851
+ return [4, response.body.text()];
2852
+ case 11:
2853
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
2854
+ "ImportedFunctionDetailOutputBody", ""]);
2855
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2856
+ case 12:
2857
+ _0 = exception_1.ApiException.bind;
2858
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2859
+ return [4, response.getBodyAsAny()];
2860
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
2861
+ }
2862
+ });
2863
+ });
2864
+ };
2552
2865
  FunctionsCoreApiResponseProcessor.prototype.listAnalysisFunctionsWithHttpInfo = function (response) {
2553
2866
  return __awaiter(this, void 0, void 0, function () {
2554
2867
  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;
@@ -2618,6 +2931,75 @@ var FunctionsCoreApiResponseProcessor = (function () {
2618
2931
  });
2619
2932
  });
2620
2933
  };
2934
+ FunctionsCoreApiResponseProcessor.prototype.listImportedFunctionsWithHttpInfo = function (response) {
2935
+ return __awaiter(this, void 0, void 0, function () {
2936
+ 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;
2937
+ return __generator(this, function (_2) {
2938
+ switch (_2.label) {
2939
+ case 0:
2940
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2941
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2942
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2943
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2944
+ return [4, response.body.text()];
2945
+ case 1:
2946
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
2947
+ "ListImportedFunctionsOutputBody", ""]);
2948
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2949
+ case 2:
2950
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
2951
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2952
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2953
+ return [4, response.body.text()];
2954
+ case 3:
2955
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
2956
+ "APIError", ""]);
2957
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
2958
+ case 4:
2959
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2960
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2961
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2962
+ return [4, response.body.text()];
2963
+ case 5:
2964
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
2965
+ "APIError", ""]);
2966
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
2967
+ case 6:
2968
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
2969
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2970
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2971
+ return [4, response.body.text()];
2972
+ case 7:
2973
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
2974
+ "APIError", ""]);
2975
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
2976
+ case 8:
2977
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
2978
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2979
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2980
+ return [4, response.body.text()];
2981
+ case 9:
2982
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
2983
+ "APIError", ""]);
2984
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
2985
+ case 10:
2986
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
2987
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
2988
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
2989
+ return [4, response.body.text()];
2990
+ case 11:
2991
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
2992
+ "ListImportedFunctionsOutputBody", ""]);
2993
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2994
+ case 12:
2995
+ _0 = exception_1.ApiException.bind;
2996
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2997
+ return [4, response.getBodyAsAny()];
2998
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
2999
+ }
3000
+ });
3001
+ });
3002
+ };
2621
3003
  FunctionsCoreApiResponseProcessor.prototype.startFunctionsMatchingWithHttpInfo = function (response) {
2622
3004
  return __awaiter(this, void 0, void 0, function () {
2623
3005
  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;
@@ -2696,6 +3078,75 @@ var FunctionsCoreApiResponseProcessor = (function () {
2696
3078
  });
2697
3079
  });
2698
3080
  };
3081
+ FunctionsCoreApiResponseProcessor.prototype.v3CanonicalizeFunctionNamesWithHttpInfo = function (response) {
3082
+ return __awaiter(this, void 0, void 0, function () {
3083
+ 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;
3084
+ return __generator(this, function (_2) {
3085
+ switch (_2.label) {
3086
+ case 0:
3087
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3088
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
3089
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3090
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3091
+ return [4, response.body.text()];
3092
+ case 1:
3093
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
3094
+ "CanonicalizeNamesOutputBody", ""]);
3095
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
3096
+ case 2:
3097
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
3098
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
3099
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3100
+ return [4, response.body.text()];
3101
+ case 3:
3102
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
3103
+ "APIError", ""]);
3104
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
3105
+ case 4:
3106
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
3107
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3108
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3109
+ return [4, response.body.text()];
3110
+ case 5:
3111
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
3112
+ "APIError", ""]);
3113
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
3114
+ case 6:
3115
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 8];
3116
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3117
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3118
+ return [4, response.body.text()];
3119
+ case 7:
3120
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
3121
+ "APIError", ""]);
3122
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
3123
+ case 8:
3124
+ if (!(0, util_1.isCodeInRange)("503", response.httpStatusCode)) return [3, 10];
3125
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3126
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3127
+ return [4, response.body.text()];
3128
+ case 9:
3129
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
3130
+ "APIError", ""]);
3131
+ throw new exception_1.ApiException(response.httpStatusCode, "Service Unavailable", body, response.headers);
3132
+ case 10:
3133
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
3134
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
3135
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
3136
+ return [4, response.body.text()];
3137
+ case 11:
3138
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
3139
+ "CanonicalizeNamesOutputBody", ""]);
3140
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
3141
+ case 12:
3142
+ _0 = exception_1.ApiException.bind;
3143
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3144
+ return [4, response.getBodyAsAny()];
3145
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
3146
+ }
3147
+ });
3148
+ });
3149
+ };
2699
3150
  return FunctionsCoreApiResponseProcessor;
2700
3151
  }());
2701
3152
  exports.FunctionsCoreApiResponseProcessor = FunctionsCoreApiResponseProcessor;