@revengai/sdk 3.63.0 → 3.66.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 (75) hide show
  1. package/README.md +0 -25
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.js +1 -4
  4. package/dist/index.js.map +1 -1
  5. package/dist/models/FunctionBlocksResponse.d.ts +1 -1
  6. package/dist/models/ObjectSerializer.d.ts +0 -15
  7. package/dist/models/ObjectSerializer.js +0 -41
  8. package/dist/models/ObjectSerializer.js.map +1 -1
  9. package/dist/models/all.d.ts +0 -15
  10. package/dist/models/all.js +0 -15
  11. package/dist/models/all.js.map +1 -1
  12. package/dist/types/ObjectParamAPI.d.ts +0 -102
  13. package/dist/types/ObjectParamAPI.js +28 -112
  14. package/dist/types/ObjectParamAPI.js.map +1 -1
  15. package/dist/types/ObservableAPI.d.ts +0 -47
  16. package/dist/types/ObservableAPI.js +273 -583
  17. package/dist/types/ObservableAPI.js.map +1 -1
  18. package/dist/types/PromiseAPI.d.ts +0 -41
  19. package/dist/types/PromiseAPI.js +28 -152
  20. package/dist/types/PromiseAPI.js.map +1 -1
  21. package/package.json +1 -1
  22. package/dist/apis/AnalysesSecurityChecksApi.d.ts +0 -16
  23. package/dist/apis/AnalysesSecurityChecksApi.js +0 -320
  24. package/dist/apis/AnalysesSecurityChecksApi.js.map +0 -1
  25. package/dist/apis/FunctionsBlockCommentsApi.d.ts +0 -16
  26. package/dist/apis/FunctionsBlockCommentsApi.js +0 -308
  27. package/dist/apis/FunctionsBlockCommentsApi.js.map +0 -1
  28. package/dist/apis/FunctionsDecompilationApi.d.ts +0 -20
  29. package/dist/apis/FunctionsDecompilationApi.js +0 -517
  30. package/dist/apis/FunctionsDecompilationApi.js.map +0 -1
  31. package/dist/models/BaseResponseBlockCommentsGenerationForFunctionResponse.d.ts +0 -27
  32. package/dist/models/BaseResponseBlockCommentsGenerationForFunctionResponse.js +0 -47
  33. package/dist/models/BaseResponseBlockCommentsGenerationForFunctionResponse.js.map +0 -1
  34. package/dist/models/BaseResponseBlockCommentsOverviewGenerationResponse.d.ts +0 -26
  35. package/dist/models/BaseResponseBlockCommentsOverviewGenerationResponse.js +0 -47
  36. package/dist/models/BaseResponseBlockCommentsOverviewGenerationResponse.js.map +0 -1
  37. package/dist/models/BaseResponseCheckSecurityChecksTaskResponse.d.ts +0 -27
  38. package/dist/models/BaseResponseCheckSecurityChecksTaskResponse.js +0 -47
  39. package/dist/models/BaseResponseCheckSecurityChecksTaskResponse.js.map +0 -1
  40. package/dist/models/BaseResponseQueuedSecurityChecksTaskResponse.d.ts +0 -27
  41. package/dist/models/BaseResponseQueuedSecurityChecksTaskResponse.js +0 -47
  42. package/dist/models/BaseResponseQueuedSecurityChecksTaskResponse.js.map +0 -1
  43. package/dist/models/BaseResponseSecurityChecksResponse.d.ts +0 -27
  44. package/dist/models/BaseResponseSecurityChecksResponse.js +0 -47
  45. package/dist/models/BaseResponseSecurityChecksResponse.js.map +0 -1
  46. package/dist/models/BinaryTaskStatus.d.ts +0 -7
  47. package/dist/models/BinaryTaskStatus.js +0 -12
  48. package/dist/models/BinaryTaskStatus.js.map +0 -1
  49. package/dist/models/Block.d.ts +0 -20
  50. package/dist/models/Block.js +0 -23
  51. package/dist/models/Block.js.map +0 -1
  52. package/dist/models/BlockCommentsGenerationForFunctionResponse.d.ts +0 -20
  53. package/dist/models/BlockCommentsGenerationForFunctionResponse.js +0 -23
  54. package/dist/models/BlockCommentsGenerationForFunctionResponse.js.map +0 -1
  55. package/dist/models/CheckSecurityChecksTaskResponse.d.ts +0 -21
  56. package/dist/models/CheckSecurityChecksTaskResponse.js +0 -23
  57. package/dist/models/CheckSecurityChecksTaskResponse.js.map +0 -1
  58. package/dist/models/ConfidenceType.d.ts +0 -7
  59. package/dist/models/ConfidenceType.js +0 -12
  60. package/dist/models/ConfidenceType.js.map +0 -1
  61. package/dist/models/QueuedSecurityChecksTaskResponse.d.ts +0 -20
  62. package/dist/models/QueuedSecurityChecksTaskResponse.js +0 -23
  63. package/dist/models/QueuedSecurityChecksTaskResponse.js.map +0 -1
  64. package/dist/models/SecurityChecksResponse.d.ts +0 -23
  65. package/dist/models/SecurityChecksResponse.js +0 -35
  66. package/dist/models/SecurityChecksResponse.js.map +0 -1
  67. package/dist/models/SecurityChecksResult.d.ts +0 -30
  68. package/dist/models/SecurityChecksResult.js +0 -65
  69. package/dist/models/SecurityChecksResult.js.map +0 -1
  70. package/dist/models/SeverityType.d.ts +0 -8
  71. package/dist/models/SeverityType.js +0 -13
  72. package/dist/models/SeverityType.js.map +0 -1
  73. package/dist/models/VulnerabilityType.d.ts +0 -8
  74. package/dist/models/VulnerabilityType.js +0 -13
  75. package/dist/models/VulnerabilityType.js.map +0 -1
@@ -1,320 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- exports.AnalysesSecurityChecksApiResponseProcessor = exports.AnalysesSecurityChecksApiRequestFactory = void 0;
55
- var baseapi_1 = require("./baseapi");
56
- var http_1 = require("../http/http");
57
- var ObjectSerializer_1 = require("../models/ObjectSerializer");
58
- var exception_1 = require("./exception");
59
- var util_1 = require("../util");
60
- var AnalysesSecurityChecksApiRequestFactory = (function (_super) {
61
- __extends(AnalysesSecurityChecksApiRequestFactory, _super);
62
- function AnalysesSecurityChecksApiRequestFactory() {
63
- return _super !== null && _super.apply(this, arguments) || this;
64
- }
65
- AnalysesSecurityChecksApiRequestFactory.prototype.createScurityChecksTask = function (analysisId, _options) {
66
- var _a;
67
- return __awaiter(this, void 0, void 0, function () {
68
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
69
- return __generator(this, function (_b) {
70
- switch (_b.label) {
71
- case 0:
72
- _config = _options || this.configuration;
73
- if (analysisId === null || analysisId === undefined) {
74
- throw new baseapi_1.RequiredError("AnalysesSecurityChecksApi", "createScurityChecksTask", "analysisId");
75
- }
76
- localVarPath = '/v2/analyses/{analysis_id}/security-checks'
77
- .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
78
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
79
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
80
- authMethod = _config.authMethods["APIKey"];
81
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
82
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
83
- case 1:
84
- _b.sent();
85
- _b.label = 2;
86
- case 2:
87
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
88
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
89
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
90
- case 3:
91
- _b.sent();
92
- _b.label = 4;
93
- case 4: return [2, requestContext];
94
- }
95
- });
96
- });
97
- };
98
- AnalysesSecurityChecksApiRequestFactory.prototype.getSecurityChecks = function (analysisId, page, pageSize, _options) {
99
- var _a;
100
- return __awaiter(this, void 0, void 0, function () {
101
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
102
- return __generator(this, function (_b) {
103
- switch (_b.label) {
104
- case 0:
105
- _config = _options || this.configuration;
106
- if (analysisId === null || analysisId === undefined) {
107
- throw new baseapi_1.RequiredError("AnalysesSecurityChecksApi", "getSecurityChecks", "analysisId");
108
- }
109
- if (page === null || page === undefined) {
110
- throw new baseapi_1.RequiredError("AnalysesSecurityChecksApi", "getSecurityChecks", "page");
111
- }
112
- if (pageSize === null || pageSize === undefined) {
113
- throw new baseapi_1.RequiredError("AnalysesSecurityChecksApi", "getSecurityChecks", "pageSize");
114
- }
115
- localVarPath = '/v2/analyses/{analysis_id}/security-checks'
116
- .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
117
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
118
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
119
- if (page !== undefined) {
120
- requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
121
- }
122
- if (pageSize !== undefined) {
123
- requestContext.setQueryParam("page_size", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", ""));
124
- }
125
- authMethod = _config.authMethods["APIKey"];
126
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
127
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
128
- case 1:
129
- _b.sent();
130
- _b.label = 2;
131
- case 2:
132
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
133
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
134
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
135
- case 3:
136
- _b.sent();
137
- _b.label = 4;
138
- case 4: return [2, requestContext];
139
- }
140
- });
141
- });
142
- };
143
- AnalysesSecurityChecksApiRequestFactory.prototype.getSecurityChecksTaskStatus = function (analysisId, _options) {
144
- var _a;
145
- return __awaiter(this, void 0, void 0, function () {
146
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
147
- return __generator(this, function (_b) {
148
- switch (_b.label) {
149
- case 0:
150
- _config = _options || this.configuration;
151
- if (analysisId === null || analysisId === undefined) {
152
- throw new baseapi_1.RequiredError("AnalysesSecurityChecksApi", "getSecurityChecksTaskStatus", "analysisId");
153
- }
154
- localVarPath = '/v2/analyses/{analysis_id}/security-checks/status'
155
- .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
156
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
157
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
158
- authMethod = _config.authMethods["APIKey"];
159
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
160
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
161
- case 1:
162
- _b.sent();
163
- _b.label = 2;
164
- case 2:
165
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
166
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
167
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
168
- case 3:
169
- _b.sent();
170
- _b.label = 4;
171
- case 4: return [2, requestContext];
172
- }
173
- });
174
- });
175
- };
176
- return AnalysesSecurityChecksApiRequestFactory;
177
- }(baseapi_1.BaseAPIRequestFactory));
178
- exports.AnalysesSecurityChecksApiRequestFactory = AnalysesSecurityChecksApiRequestFactory;
179
- var AnalysesSecurityChecksApiResponseProcessor = (function () {
180
- function AnalysesSecurityChecksApiResponseProcessor() {
181
- }
182
- AnalysesSecurityChecksApiResponseProcessor.prototype.createScurityChecksTaskWithHttpInfo = function (response) {
183
- return __awaiter(this, void 0, void 0, function () {
184
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
185
- return __generator(this, function (_u) {
186
- switch (_u.label) {
187
- case 0:
188
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
189
- if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
190
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
191
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
192
- return [4, response.body.text()];
193
- case 1:
194
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
195
- "QueuedSecurityChecksTaskResponse", ""]);
196
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
197
- case 2:
198
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
199
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
200
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
201
- return [4, response.body.text()];
202
- case 3:
203
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
204
- "BaseResponse", ""]);
205
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
206
- case 4:
207
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
208
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
209
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
210
- return [4, response.body.text()];
211
- case 5:
212
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
213
- "ErrorModel", ""]);
214
- throw new exception_1.ApiException(response.httpStatusCode, "Security checks already extracted or queued", body, response.headers);
215
- case 6:
216
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
217
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
218
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
219
- return [4, response.body.text()];
220
- case 7:
221
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
222
- "QueuedSecurityChecksTaskResponse", ""]);
223
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
224
- case 8:
225
- _s = exception_1.ApiException.bind;
226
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
227
- return [4, response.getBodyAsAny()];
228
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
229
- }
230
- });
231
- });
232
- };
233
- AnalysesSecurityChecksApiResponseProcessor.prototype.getSecurityChecksWithHttpInfo = function (response) {
234
- return __awaiter(this, void 0, void 0, function () {
235
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
236
- return __generator(this, function (_q) {
237
- switch (_q.label) {
238
- case 0:
239
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
240
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
241
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
242
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
243
- return [4, response.body.text()];
244
- case 1:
245
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
246
- "BaseResponseSecurityChecksResponse", ""]);
247
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
248
- case 2:
249
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
250
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
251
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
252
- return [4, response.body.text()];
253
- case 3:
254
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
255
- "BaseResponse", ""]);
256
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
257
- case 4:
258
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
259
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
260
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
261
- return [4, response.body.text()];
262
- case 5:
263
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
264
- "BaseResponseSecurityChecksResponse", ""]);
265
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
266
- case 6:
267
- _o = exception_1.ApiException.bind;
268
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
269
- return [4, response.getBodyAsAny()];
270
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
271
- }
272
- });
273
- });
274
- };
275
- AnalysesSecurityChecksApiResponseProcessor.prototype.getSecurityChecksTaskStatusWithHttpInfo = function (response) {
276
- return __awaiter(this, void 0, void 0, function () {
277
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
278
- return __generator(this, function (_q) {
279
- switch (_q.label) {
280
- case 0:
281
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
282
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
283
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
284
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
285
- return [4, response.body.text()];
286
- case 1:
287
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
288
- "CheckSecurityChecksTaskResponse", ""]);
289
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
290
- case 2:
291
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
292
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
293
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
294
- return [4, response.body.text()];
295
- case 3:
296
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
297
- "BaseResponse", ""]);
298
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
299
- case 4:
300
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
301
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
302
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
303
- return [4, response.body.text()];
304
- case 5:
305
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
306
- "CheckSecurityChecksTaskResponse", ""]);
307
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
308
- case 6:
309
- _o = exception_1.ApiException.bind;
310
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
311
- return [4, response.getBodyAsAny()];
312
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
313
- }
314
- });
315
- });
316
- };
317
- return AnalysesSecurityChecksApiResponseProcessor;
318
- }());
319
- exports.AnalysesSecurityChecksApiResponseProcessor = AnalysesSecurityChecksApiResponseProcessor;
320
- //# sourceMappingURL=AnalysesSecurityChecksApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnalysesSecurityChecksApi.js","sourceRoot":"","sources":["../../apis/AnalysesSecurityChecksApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAAmF;AAEnF,qCAA6F;AAC7F,+DAA4D;AAC5D,yCAAyC;AACzC,gCAAsD;AAatD;IAA6D,2DAAqB;IAAlF;;IA0IA,CAAC;IApIgB,yEAAuB,GAApC,UAAqC,UAAkB,EAAE,QAAwB;;;;;;;wBACzE,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;wBAG7C,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;4BACjD,MAA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 +0,0 @@
1
- import { BaseAPIRequestFactory } from './baseapi';
2
- import { Configuration } from '../configuration';
3
- import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
4
- import { BaseResponseBlockCommentsGenerationForFunctionResponse } from '../models/BaseResponseBlockCommentsGenerationForFunctionResponse';
5
- import { BaseResponseBlockCommentsOverviewGenerationResponse } from '../models/BaseResponseBlockCommentsOverviewGenerationResponse';
6
- import { Block } from '../models/Block';
7
- export declare class FunctionsBlockCommentsApiRequestFactory extends BaseAPIRequestFactory {
8
- generateBlockCommentsForBlockInFunction(functionId: number, block: Block, _options?: Configuration): Promise<RequestContext>;
9
- generateBlockCommentsForFunction(functionId: number, _options?: Configuration): Promise<RequestContext>;
10
- generateOverviewCommentForFunction(functionId: number, _options?: Configuration): Promise<RequestContext>;
11
- }
12
- export declare class FunctionsBlockCommentsApiResponseProcessor {
13
- generateBlockCommentsForBlockInFunctionWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseBlockCommentsGenerationForFunctionResponse>>;
14
- generateBlockCommentsForFunctionWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseBlockCommentsGenerationForFunctionResponse>>;
15
- generateOverviewCommentForFunctionWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseBlockCommentsOverviewGenerationResponse>>;
16
- }