@revengai/sdk 3.93.2 → 3.94.1
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.
- package/README.md +3 -20
- package/dist/apis/AnalysesCoreApi.d.ts +6 -0
- package/dist/apis/AnalysesCoreApi.js +195 -0
- package/dist/apis/AnalysesCoreApi.js.map +1 -1
- package/dist/apis/FunctionsAIDecompilationApi.d.ts +0 -22
- package/dist/apis/FunctionsAIDecompilationApi.js +34 -688
- package/dist/apis/FunctionsAIDecompilationApi.js.map +1 -1
- package/dist/apis/FunctionsRenamingHistoryApi.js.map +1 -1
- package/dist/models/AnalysisLogMessage.d.ts +2 -2
- package/dist/models/ApiCall.d.ts +4 -4
- package/dist/models/Artifact.d.ts +12 -12
- package/dist/models/Connection.d.ts +5 -5
- package/dist/models/ConsoleOutputEntry.d.ts +1 -1
- package/dist/models/DnsQuery.d.ts +1 -1
- package/dist/models/DrakvufFileMetadata.d.ts +5 -5
- package/dist/models/ExtractedURL.d.ts +1 -1
- package/dist/models/FileActivityEntry.d.ts +1 -1
- package/dist/models/HttpRequest.d.ts +12 -12
- package/dist/models/MemdumpEntry.d.ts +8 -8
- package/dist/models/ModuleLoadEntry.d.ts +1 -1
- package/dist/models/MutexEntry.d.ts +1 -1
- package/dist/models/ObjectSerializer.d.ts +1 -13
- package/dist/models/ObjectSerializer.js +5 -36
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/PcapBodyInfo.d.ts +4 -4
- package/dist/models/ProcessActivityEntry.d.ts +2 -2
- package/dist/models/ProcessNode.d.ts +2 -2
- package/dist/models/RegistryOperation.d.ts +1 -1
- package/dist/models/ReportEvent.d.ts +3 -3
- package/dist/models/ReportInfo.d.ts +6 -6
- package/dist/models/ReportOptions.d.ts +8 -8
- package/dist/models/ScheduledTaskEntry.d.ts +10 -10
- package/dist/models/ServiceEntry.d.ts +5 -5
- package/dist/models/StartupInfo.d.ts +5 -5
- package/dist/models/TcpCarvedFile.d.ts +4 -4
- package/dist/models/TriggerDynamicExecutionInputBody.d.ts +34 -0
- package/dist/models/TriggerDynamicExecutionInputBody.js +49 -0
- package/dist/models/TriggerDynamicExecutionInputBody.js.map +1 -0
- package/dist/models/Ttp.d.ts +2 -2
- package/dist/models/all.d.ts +1 -13
- package/dist/models/all.js +1 -13
- package/dist/models/all.js.map +1 -1
- package/dist/tests/enum-unknown-default.test.js +3 -3
- package/dist/tests/enum-unknown-default.test.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +12 -46
- package/dist/types/ObjectParamAPI.js +12 -42
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +6 -18
- package/dist/types/ObservableAPI.js +502 -642
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +6 -18
- package/dist/types/PromiseAPI.js +20 -70
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
- package/dist/models/Addr.d.ts +0 -19
- package/dist/models/Addr.js +0 -16
- package/dist/models/Addr.js.map +0 -1
- package/dist/models/AiDecompilationTaskStatus.d.ts +0 -7
- package/dist/models/AiDecompilationTaskStatus.js +0 -12
- package/dist/models/AiDecompilationTaskStatus.js.map +0 -1
- package/dist/models/BaseResponseFunctionTaskResponse.d.ts +0 -27
- package/dist/models/BaseResponseFunctionTaskResponse.js +0 -47
- package/dist/models/BaseResponseFunctionTaskResponse.js.map +0 -1
- package/dist/models/BaseResponseGetAiDecompilationTask.d.ts +0 -27
- package/dist/models/BaseResponseGetAiDecompilationTask.js +0 -47
- package/dist/models/BaseResponseGetAiDecompilationTask.js.map +0 -1
- package/dist/models/FunctionCommentCreateRequest.d.ts +0 -22
- package/dist/models/FunctionCommentCreateRequest.js +0 -29
- package/dist/models/FunctionCommentCreateRequest.js.map +0 -1
- package/dist/models/FunctionMappingFull.d.ts +0 -66
- package/dist/models/FunctionMappingFull.js +0 -101
- package/dist/models/FunctionMappingFull.js.map +0 -1
- package/dist/models/FunctionTaskResponse.d.ts +0 -22
- package/dist/models/FunctionTaskResponse.js +0 -29
- package/dist/models/FunctionTaskResponse.js.map +0 -1
- package/dist/models/FunctionTaskStatus.d.ts +0 -8
- package/dist/models/FunctionTaskStatus.js +0 -13
- package/dist/models/FunctionTaskStatus.js.map +0 -1
- package/dist/models/GetAiDecompilationTask.d.ts +0 -33
- package/dist/models/GetAiDecompilationTask.js +0 -71
- package/dist/models/GetAiDecompilationTask.js.map +0 -1
- package/dist/models/InverseFunctionMapItem.d.ts +0 -23
- package/dist/models/InverseFunctionMapItem.js +0 -35
- package/dist/models/InverseFunctionMapItem.js.map +0 -1
- package/dist/models/InverseStringMapItem.d.ts +0 -21
- package/dist/models/InverseStringMapItem.js +0 -29
- package/dist/models/InverseStringMapItem.js.map +0 -1
- package/dist/models/InverseValue.d.ts +0 -20
- package/dist/models/InverseValue.js +0 -23
- package/dist/models/InverseValue.js.map +0 -1
- package/dist/models/RegenerateTarget.d.ts +0 -5
- package/dist/models/RegenerateTarget.js +0 -10
- package/dist/models/RegenerateTarget.js.map +0 -1
|
@@ -101,118 +101,6 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
|
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
|
-
FunctionsAIDecompilationApiRequestFactory.prototype.createAiDecompilationComment = function (functionId, functionCommentCreateRequest, _options) {
|
|
105
|
-
var _a;
|
|
106
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
-
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
108
|
-
return __generator(this, function (_b) {
|
|
109
|
-
switch (_b.label) {
|
|
110
|
-
case 0:
|
|
111
|
-
_config = _options || this.configuration;
|
|
112
|
-
if (functionId === null || functionId === undefined) {
|
|
113
|
-
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "createAiDecompilationComment", "functionId");
|
|
114
|
-
}
|
|
115
|
-
if (functionCommentCreateRequest === null || functionCommentCreateRequest === undefined) {
|
|
116
|
-
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "createAiDecompilationComment", "functionCommentCreateRequest");
|
|
117
|
-
}
|
|
118
|
-
localVarPath = '/v2/functions/{function_id}/ai-decompilation/comments'
|
|
119
|
-
.replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
|
|
120
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
121
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
122
|
-
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
123
|
-
"application/json"
|
|
124
|
-
]);
|
|
125
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
126
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(functionCommentCreateRequest, "FunctionCommentCreateRequest", ""), contentType);
|
|
127
|
-
requestContext.setBody(serializedBody);
|
|
128
|
-
authMethod = _config.authMethods["APIKey"];
|
|
129
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
130
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
131
|
-
case 1:
|
|
132
|
-
_b.sent();
|
|
133
|
-
_b.label = 2;
|
|
134
|
-
case 2:
|
|
135
|
-
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
136
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
137
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
138
|
-
case 3:
|
|
139
|
-
_b.sent();
|
|
140
|
-
_b.label = 4;
|
|
141
|
-
case 4: return [2, requestContext];
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
};
|
|
146
|
-
FunctionsAIDecompilationApiRequestFactory.prototype.createAiDecompilationTask = function (functionId, _options) {
|
|
147
|
-
var _a;
|
|
148
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
149
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
150
|
-
return __generator(this, function (_b) {
|
|
151
|
-
switch (_b.label) {
|
|
152
|
-
case 0:
|
|
153
|
-
_config = _options || this.configuration;
|
|
154
|
-
if (functionId === null || functionId === undefined) {
|
|
155
|
-
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "createAiDecompilationTask", "functionId");
|
|
156
|
-
}
|
|
157
|
-
localVarPath = '/v2/functions/{function_id}/ai-decompilation'
|
|
158
|
-
.replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
|
|
159
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
160
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
161
|
-
authMethod = _config.authMethods["APIKey"];
|
|
162
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
163
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
164
|
-
case 1:
|
|
165
|
-
_b.sent();
|
|
166
|
-
_b.label = 2;
|
|
167
|
-
case 2:
|
|
168
|
-
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
169
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
170
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
171
|
-
case 3:
|
|
172
|
-
_b.sent();
|
|
173
|
-
_b.label = 4;
|
|
174
|
-
case 4: return [2, requestContext];
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
};
|
|
179
|
-
FunctionsAIDecompilationApiRequestFactory.prototype.deleteAiDecompilationComment = function (commentId, functionId, _options) {
|
|
180
|
-
var _a;
|
|
181
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
182
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
183
|
-
return __generator(this, function (_b) {
|
|
184
|
-
switch (_b.label) {
|
|
185
|
-
case 0:
|
|
186
|
-
_config = _options || this.configuration;
|
|
187
|
-
if (commentId === null || commentId === undefined) {
|
|
188
|
-
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "deleteAiDecompilationComment", "commentId");
|
|
189
|
-
}
|
|
190
|
-
if (functionId === null || functionId === undefined) {
|
|
191
|
-
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "deleteAiDecompilationComment", "functionId");
|
|
192
|
-
}
|
|
193
|
-
localVarPath = '/v2/functions/{function_id}/ai-decompilation/comments/{comment_id}'
|
|
194
|
-
.replace('{' + 'comment_id' + '}', encodeURIComponent(String(commentId)))
|
|
195
|
-
.replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
|
|
196
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
197
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
198
|
-
authMethod = _config.authMethods["APIKey"];
|
|
199
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
200
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
201
|
-
case 1:
|
|
202
|
-
_b.sent();
|
|
203
|
-
_b.label = 2;
|
|
204
|
-
case 2:
|
|
205
|
-
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
206
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
207
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
208
|
-
case 3:
|
|
209
|
-
_b.sent();
|
|
210
|
-
_b.label = 4;
|
|
211
|
-
case 4: return [2, requestContext];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
};
|
|
216
104
|
FunctionsAIDecompilationApiRequestFactory.prototype.deleteAiDecompilationInlineComment = function (functionId, line, _options) {
|
|
217
105
|
var _a;
|
|
218
106
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -283,39 +171,6 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
|
|
|
283
171
|
});
|
|
284
172
|
});
|
|
285
173
|
};
|
|
286
|
-
FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationComments = function (functionId, _options) {
|
|
287
|
-
var _a;
|
|
288
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
289
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
290
|
-
return __generator(this, function (_b) {
|
|
291
|
-
switch (_b.label) {
|
|
292
|
-
case 0:
|
|
293
|
-
_config = _options || this.configuration;
|
|
294
|
-
if (functionId === null || functionId === undefined) {
|
|
295
|
-
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationComments", "functionId");
|
|
296
|
-
}
|
|
297
|
-
localVarPath = '/v2/functions/{function_id}/ai-decompilation/comments'
|
|
298
|
-
.replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
|
|
299
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
300
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
301
|
-
authMethod = _config.authMethods["APIKey"];
|
|
302
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
303
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
304
|
-
case 1:
|
|
305
|
-
_b.sent();
|
|
306
|
-
_b.label = 2;
|
|
307
|
-
case 2:
|
|
308
|
-
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
309
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
310
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
311
|
-
case 3:
|
|
312
|
-
_b.sent();
|
|
313
|
-
_b.label = 4;
|
|
314
|
-
case 4: return [2, requestContext];
|
|
315
|
-
}
|
|
316
|
-
});
|
|
317
|
-
});
|
|
318
|
-
};
|
|
319
174
|
FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationInlineComments = function (functionId, _options) {
|
|
320
175
|
var _a;
|
|
321
176
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -514,85 +369,6 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
|
|
|
514
369
|
});
|
|
515
370
|
});
|
|
516
371
|
};
|
|
517
|
-
FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationTaskResult = function (functionId, summarise, generateInlineComments, forceRegenerate, _options) {
|
|
518
|
-
var _a;
|
|
519
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
520
|
-
var _config, localVarPath, requestContext, serializedParams, _i, serializedParams_1, serializedParam, authMethod, defaultAuth;
|
|
521
|
-
return __generator(this, function (_b) {
|
|
522
|
-
switch (_b.label) {
|
|
523
|
-
case 0:
|
|
524
|
-
_config = _options || this.configuration;
|
|
525
|
-
if (functionId === null || functionId === undefined) {
|
|
526
|
-
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationTaskResult", "functionId");
|
|
527
|
-
}
|
|
528
|
-
localVarPath = '/v2/functions/{function_id}/ai-decompilation'
|
|
529
|
-
.replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
|
|
530
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
531
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
532
|
-
if (summarise !== undefined) {
|
|
533
|
-
requestContext.setQueryParam("summarise", ObjectSerializer_1.ObjectSerializer.serialize(summarise, "boolean", ""));
|
|
534
|
-
}
|
|
535
|
-
if (generateInlineComments !== undefined) {
|
|
536
|
-
requestContext.setQueryParam("generate_inline_comments", ObjectSerializer_1.ObjectSerializer.serialize(generateInlineComments, "boolean", ""));
|
|
537
|
-
}
|
|
538
|
-
if (forceRegenerate !== undefined) {
|
|
539
|
-
serializedParams = ObjectSerializer_1.ObjectSerializer.serialize(forceRegenerate, "Array<RegenerateTarget>", "");
|
|
540
|
-
for (_i = 0, serializedParams_1 = serializedParams; _i < serializedParams_1.length; _i++) {
|
|
541
|
-
serializedParam = serializedParams_1[_i];
|
|
542
|
-
requestContext.appendQueryParam("force_regenerate", serializedParam);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
authMethod = _config.authMethods["APIKey"];
|
|
546
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
547
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
548
|
-
case 1:
|
|
549
|
-
_b.sent();
|
|
550
|
-
_b.label = 2;
|
|
551
|
-
case 2:
|
|
552
|
-
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
553
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
554
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
555
|
-
case 3:
|
|
556
|
-
_b.sent();
|
|
557
|
-
_b.label = 4;
|
|
558
|
-
case 4: return [2, requestContext];
|
|
559
|
-
}
|
|
560
|
-
});
|
|
561
|
-
});
|
|
562
|
-
};
|
|
563
|
-
FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationTaskStatus = function (functionId, _options) {
|
|
564
|
-
var _a;
|
|
565
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
566
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
567
|
-
return __generator(this, function (_b) {
|
|
568
|
-
switch (_b.label) {
|
|
569
|
-
case 0:
|
|
570
|
-
_config = _options || this.configuration;
|
|
571
|
-
if (functionId === null || functionId === undefined) {
|
|
572
|
-
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationTaskStatus", "functionId");
|
|
573
|
-
}
|
|
574
|
-
localVarPath = '/v2/functions/{function_id}/ai-decompilation/status'
|
|
575
|
-
.replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
|
|
576
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
577
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
578
|
-
authMethod = _config.authMethods["APIKey"];
|
|
579
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
580
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
581
|
-
case 1:
|
|
582
|
-
_b.sent();
|
|
583
|
-
_b.label = 2;
|
|
584
|
-
case 2:
|
|
585
|
-
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
586
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
587
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
588
|
-
case 3:
|
|
589
|
-
_b.sent();
|
|
590
|
-
_b.label = 4;
|
|
591
|
-
case 4: return [2, requestContext];
|
|
592
|
-
}
|
|
593
|
-
});
|
|
594
|
-
});
|
|
595
|
-
};
|
|
596
372
|
FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationTokenised = function (functionId, _options) {
|
|
597
373
|
var _a;
|
|
598
374
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -767,52 +543,6 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
|
|
|
767
543
|
});
|
|
768
544
|
});
|
|
769
545
|
};
|
|
770
|
-
FunctionsAIDecompilationApiRequestFactory.prototype.updateAiDecompilationComment = function (commentId, functionId, commentUpdateRequest, _options) {
|
|
771
|
-
var _a;
|
|
772
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
773
|
-
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
774
|
-
return __generator(this, function (_b) {
|
|
775
|
-
switch (_b.label) {
|
|
776
|
-
case 0:
|
|
777
|
-
_config = _options || this.configuration;
|
|
778
|
-
if (commentId === null || commentId === undefined) {
|
|
779
|
-
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "commentId");
|
|
780
|
-
}
|
|
781
|
-
if (functionId === null || functionId === undefined) {
|
|
782
|
-
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "functionId");
|
|
783
|
-
}
|
|
784
|
-
if (commentUpdateRequest === null || commentUpdateRequest === undefined) {
|
|
785
|
-
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "commentUpdateRequest");
|
|
786
|
-
}
|
|
787
|
-
localVarPath = '/v2/functions/{function_id}/ai-decompilation/comments/{comment_id}'
|
|
788
|
-
.replace('{' + 'comment_id' + '}', encodeURIComponent(String(commentId)))
|
|
789
|
-
.replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
|
|
790
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
791
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
792
|
-
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
793
|
-
"application/json"
|
|
794
|
-
]);
|
|
795
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
796
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(commentUpdateRequest, "CommentUpdateRequest", ""), contentType);
|
|
797
|
-
requestContext.setBody(serializedBody);
|
|
798
|
-
authMethod = _config.authMethods["APIKey"];
|
|
799
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
800
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
801
|
-
case 1:
|
|
802
|
-
_b.sent();
|
|
803
|
-
_b.label = 2;
|
|
804
|
-
case 2:
|
|
805
|
-
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
806
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
807
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
808
|
-
case 3:
|
|
809
|
-
_b.sent();
|
|
810
|
-
_b.label = 4;
|
|
811
|
-
case 4: return [2, requestContext];
|
|
812
|
-
}
|
|
813
|
-
});
|
|
814
|
-
});
|
|
815
|
-
};
|
|
816
546
|
FunctionsAIDecompilationApiRequestFactory.prototype.upsertAiDecompilationOverrides = function (functionId, upsertOverridesInputBody, _options) {
|
|
817
547
|
var _a;
|
|
818
548
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -915,266 +645,77 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
|
|
|
915
645
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
916
646
|
return [4, response.body.text()];
|
|
917
647
|
case 1:
|
|
918
|
-
body = _b.apply(_a, [_d.apply(_c, [_10.sent(), contentType]),
|
|
919
|
-
"CreateAIDecompOutputBody", ""]);
|
|
920
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
921
|
-
case 2:
|
|
922
|
-
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
923
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
924
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
925
|
-
return [4, response.body.text()];
|
|
926
|
-
case 3:
|
|
927
|
-
body = _f.apply(_e, [_h.apply(_g, [_10.sent(), contentType]),
|
|
928
|
-
"APIError", ""]);
|
|
929
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
930
|
-
case 4:
|
|
931
|
-
if (!(0, util_1.isCodeInRange)("402", response.httpStatusCode)) return [3, 6];
|
|
932
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
933
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
934
|
-
return [4, response.body.text()];
|
|
935
|
-
case 5:
|
|
936
|
-
body = _k.apply(_j, [_m.apply(_l, [_10.sent(), contentType]),
|
|
937
|
-
"APIError", ""]);
|
|
938
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Payment Required", body, response.headers);
|
|
939
|
-
case 6:
|
|
940
|
-
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 8];
|
|
941
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
942
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
943
|
-
return [4, response.body.text()];
|
|
944
|
-
case 7:
|
|
945
|
-
body = _p.apply(_o, [_r.apply(_q, [_10.sent(), contentType]),
|
|
946
|
-
"APIError", ""]);
|
|
947
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
948
|
-
case 8:
|
|
949
|
-
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
|
|
950
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
951
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
952
|
-
return [4, response.body.text()];
|
|
953
|
-
case 9:
|
|
954
|
-
body = _t.apply(_s, [_v.apply(_u, [_10.sent(), contentType]),
|
|
955
|
-
"APIError", ""]);
|
|
956
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Conflict", body, response.headers);
|
|
957
|
-
case 10:
|
|
958
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 12];
|
|
959
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
960
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
961
|
-
return [4, response.body.text()];
|
|
962
|
-
case 11:
|
|
963
|
-
body = _x.apply(_w, [_z.apply(_y, [_10.sent(), contentType]),
|
|
964
|
-
"APIError", ""]);
|
|
965
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
966
|
-
case 12:
|
|
967
|
-
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 14];
|
|
968
|
-
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
969
|
-
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
970
|
-
return [4, response.body.text()];
|
|
971
|
-
case 13:
|
|
972
|
-
body = _1.apply(_0, [_3.apply(_2, [_10.sent(), contentType]),
|
|
973
|
-
"APIError", ""]);
|
|
974
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
975
|
-
case 14:
|
|
976
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 16];
|
|
977
|
-
_5 = (_4 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
978
|
-
_7 = (_6 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
979
|
-
return [4, response.body.text()];
|
|
980
|
-
case 15:
|
|
981
|
-
body = _5.apply(_4, [_7.apply(_6, [_10.sent(), contentType]),
|
|
982
|
-
"CreateAIDecompOutputBody", ""]);
|
|
983
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
984
|
-
case 16:
|
|
985
|
-
_8 = exception_1.ApiException.bind;
|
|
986
|
-
_9 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
987
|
-
return [4, response.getBodyAsAny()];
|
|
988
|
-
case 17: throw new (_8.apply(exception_1.ApiException, _9.concat([_10.sent(), response.headers])))();
|
|
989
|
-
}
|
|
990
|
-
});
|
|
991
|
-
});
|
|
992
|
-
};
|
|
993
|
-
FunctionsAIDecompilationApiResponseProcessor.prototype.createAiDecompilationCommentWithHttpInfo = function (response) {
|
|
994
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
995
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
996
|
-
return __generator(this, function (_u) {
|
|
997
|
-
switch (_u.label) {
|
|
998
|
-
case 0:
|
|
999
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1000
|
-
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
1001
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1002
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1003
|
-
return [4, response.body.text()];
|
|
1004
|
-
case 1:
|
|
1005
|
-
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
1006
|
-
"BaseResponseCommentResponse", ""]);
|
|
1007
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1008
|
-
case 2:
|
|
1009
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
1010
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1011
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1012
|
-
return [4, response.body.text()];
|
|
1013
|
-
case 3:
|
|
1014
|
-
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
1015
|
-
"BaseResponse", ""]);
|
|
1016
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
|
|
1017
|
-
case 4:
|
|
1018
|
-
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 6];
|
|
1019
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1020
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1021
|
-
return [4, response.body.text()];
|
|
1022
|
-
case 5:
|
|
1023
|
-
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
1024
|
-
"BaseResponse", ""]);
|
|
1025
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
1026
|
-
case 6:
|
|
1027
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
1028
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1029
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1030
|
-
return [4, response.body.text()];
|
|
1031
|
-
case 7:
|
|
1032
|
-
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
1033
|
-
"BaseResponseCommentResponse", ""]);
|
|
1034
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1035
|
-
case 8:
|
|
1036
|
-
_s = exception_1.ApiException.bind;
|
|
1037
|
-
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1038
|
-
return [4, response.getBodyAsAny()];
|
|
1039
|
-
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
1040
|
-
}
|
|
1041
|
-
});
|
|
1042
|
-
});
|
|
1043
|
-
};
|
|
1044
|
-
FunctionsAIDecompilationApiResponseProcessor.prototype.createAiDecompilationTaskWithHttpInfo = function (response) {
|
|
1045
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1046
|
-
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;
|
|
1047
|
-
return __generator(this, function (_6) {
|
|
1048
|
-
switch (_6.label) {
|
|
1049
|
-
case 0:
|
|
1050
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1051
|
-
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
1052
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1053
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1054
|
-
return [4, response.body.text()];
|
|
1055
|
-
case 1:
|
|
1056
|
-
body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
|
|
1057
|
-
"BaseResponse", ""]);
|
|
648
|
+
body = _b.apply(_a, [_d.apply(_c, [_10.sent(), contentType]),
|
|
649
|
+
"CreateAIDecompOutputBody", ""]);
|
|
1058
650
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1059
651
|
case 2:
|
|
1060
|
-
if (!(0, util_1.isCodeInRange)("
|
|
652
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1061
653
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1062
654
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1063
655
|
return [4, response.body.text()];
|
|
1064
656
|
case 3:
|
|
1065
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1066
|
-
"
|
|
1067
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
657
|
+
body = _f.apply(_e, [_h.apply(_g, [_10.sent(), contentType]),
|
|
658
|
+
"APIError", ""]);
|
|
659
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
1068
660
|
case 4:
|
|
1069
|
-
if (!(0, util_1.isCodeInRange)("
|
|
661
|
+
if (!(0, util_1.isCodeInRange)("402", response.httpStatusCode)) return [3, 6];
|
|
1070
662
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1071
663
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1072
664
|
return [4, response.body.text()];
|
|
1073
665
|
case 5:
|
|
1074
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1075
|
-
"
|
|
1076
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
666
|
+
body = _k.apply(_j, [_m.apply(_l, [_10.sent(), contentType]),
|
|
667
|
+
"APIError", ""]);
|
|
668
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Payment Required", body, response.headers);
|
|
1077
669
|
case 6:
|
|
1078
|
-
if (!(0, util_1.isCodeInRange)("
|
|
670
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 8];
|
|
1079
671
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1080
672
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1081
673
|
return [4, response.body.text()];
|
|
1082
674
|
case 7:
|
|
1083
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
1084
|
-
"
|
|
1085
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
675
|
+
body = _p.apply(_o, [_r.apply(_q, [_10.sent(), contentType]),
|
|
676
|
+
"APIError", ""]);
|
|
677
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
1086
678
|
case 8:
|
|
1087
679
|
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
|
|
1088
680
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1089
681
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1090
682
|
return [4, response.body.text()];
|
|
1091
683
|
case 9:
|
|
1092
|
-
body = _t.apply(_s, [_v.apply(_u, [
|
|
1093
|
-
"
|
|
684
|
+
body = _t.apply(_s, [_v.apply(_u, [_10.sent(), contentType]),
|
|
685
|
+
"APIError", ""]);
|
|
1094
686
|
throw new exception_1.ApiException(response.httpStatusCode, "Conflict", body, response.headers);
|
|
1095
687
|
case 10:
|
|
1096
|
-
if (!(0, util_1.isCodeInRange)("
|
|
688
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 12];
|
|
1097
689
|
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1098
690
|
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1099
691
|
return [4, response.body.text()];
|
|
1100
692
|
case 11:
|
|
1101
|
-
body = _x.apply(_w, [_z.apply(_y, [
|
|
1102
|
-
"
|
|
1103
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
693
|
+
body = _x.apply(_w, [_z.apply(_y, [_10.sent(), contentType]),
|
|
694
|
+
"APIError", ""]);
|
|
695
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
1104
696
|
case 12:
|
|
1105
|
-
if (!(
|
|
697
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 14];
|
|
1106
698
|
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1107
699
|
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1108
700
|
return [4, response.body.text()];
|
|
1109
701
|
case 13:
|
|
1110
|
-
body = _1.apply(_0, [_3.apply(_2, [
|
|
1111
|
-
"
|
|
1112
|
-
|
|
702
|
+
body = _1.apply(_0, [_3.apply(_2, [_10.sent(), contentType]),
|
|
703
|
+
"APIError", ""]);
|
|
704
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
1113
705
|
case 14:
|
|
1114
|
-
|
|
1115
|
-
_5 =
|
|
1116
|
-
|
|
1117
|
-
case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
|
|
1118
|
-
}
|
|
1119
|
-
});
|
|
1120
|
-
});
|
|
1121
|
-
};
|
|
1122
|
-
FunctionsAIDecompilationApiResponseProcessor.prototype.deleteAiDecompilationCommentWithHttpInfo = function (response) {
|
|
1123
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1124
|
-
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, _w, _x;
|
|
1125
|
-
return __generator(this, function (_y) {
|
|
1126
|
-
switch (_y.label) {
|
|
1127
|
-
case 0:
|
|
1128
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1129
|
-
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1130
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1131
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1132
|
-
return [4, response.body.text()];
|
|
1133
|
-
case 1:
|
|
1134
|
-
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
1135
|
-
"BaseResponseBool", ""]);
|
|
1136
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1137
|
-
case 2:
|
|
1138
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
1139
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1140
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1141
|
-
return [4, response.body.text()];
|
|
1142
|
-
case 3:
|
|
1143
|
-
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
1144
|
-
"BaseResponse", ""]);
|
|
1145
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
|
|
1146
|
-
case 4:
|
|
1147
|
-
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
|
|
1148
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1149
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1150
|
-
return [4, response.body.text()];
|
|
1151
|
-
case 5:
|
|
1152
|
-
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
1153
|
-
"BaseResponse", ""]);
|
|
1154
|
-
throw new exception_1.ApiException(response.httpStatusCode, "You can only delete your own comments", body, response.headers);
|
|
1155
|
-
case 6:
|
|
1156
|
-
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 8];
|
|
1157
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1158
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1159
|
-
return [4, response.body.text()];
|
|
1160
|
-
case 7:
|
|
1161
|
-
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
1162
|
-
"BaseResponse", ""]);
|
|
1163
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
1164
|
-
case 8:
|
|
1165
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
1166
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1167
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
706
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 16];
|
|
707
|
+
_5 = (_4 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
708
|
+
_7 = (_6 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1168
709
|
return [4, response.body.text()];
|
|
1169
|
-
case
|
|
1170
|
-
body =
|
|
1171
|
-
"
|
|
710
|
+
case 15:
|
|
711
|
+
body = _5.apply(_4, [_7.apply(_6, [_10.sent(), contentType]),
|
|
712
|
+
"CreateAIDecompOutputBody", ""]);
|
|
1172
713
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1173
|
-
case
|
|
1174
|
-
|
|
1175
|
-
|
|
714
|
+
case 16:
|
|
715
|
+
_8 = exception_1.ApiException.bind;
|
|
716
|
+
_9 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1176
717
|
return [4, response.getBodyAsAny()];
|
|
1177
|
-
case
|
|
718
|
+
case 17: throw new (_8.apply(exception_1.ApiException, _9.concat([_10.sent(), response.headers])))();
|
|
1178
719
|
}
|
|
1179
720
|
});
|
|
1180
721
|
});
|
|
@@ -1317,48 +858,6 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
|
|
|
1317
858
|
});
|
|
1318
859
|
});
|
|
1319
860
|
};
|
|
1320
|
-
FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationCommentsWithHttpInfo = function (response) {
|
|
1321
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1322
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1323
|
-
return __generator(this, function (_q) {
|
|
1324
|
-
switch (_q.label) {
|
|
1325
|
-
case 0:
|
|
1326
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1327
|
-
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1328
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1329
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1330
|
-
return [4, response.body.text()];
|
|
1331
|
-
case 1:
|
|
1332
|
-
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1333
|
-
"BaseResponseListCommentResponse", ""]);
|
|
1334
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1335
|
-
case 2:
|
|
1336
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
1337
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1338
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1339
|
-
return [4, response.body.text()];
|
|
1340
|
-
case 3:
|
|
1341
|
-
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1342
|
-
"BaseResponse", ""]);
|
|
1343
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
|
|
1344
|
-
case 4:
|
|
1345
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1346
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1347
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1348
|
-
return [4, response.body.text()];
|
|
1349
|
-
case 5:
|
|
1350
|
-
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1351
|
-
"BaseResponseListCommentResponse", ""]);
|
|
1352
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1353
|
-
case 6:
|
|
1354
|
-
_o = exception_1.ApiException.bind;
|
|
1355
|
-
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1356
|
-
return [4, response.getBodyAsAny()];
|
|
1357
|
-
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1358
|
-
}
|
|
1359
|
-
});
|
|
1360
|
-
});
|
|
1361
|
-
};
|
|
1362
861
|
FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationInlineCommentsWithHttpInfo = function (response) {
|
|
1363
862
|
return __awaiter(this, void 0, void 0, function () {
|
|
1364
863
|
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;
|
|
@@ -1746,99 +1245,6 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
|
|
|
1746
1245
|
});
|
|
1747
1246
|
});
|
|
1748
1247
|
};
|
|
1749
|
-
FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTaskResultWithHttpInfo = function (response) {
|
|
1750
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1751
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1752
|
-
return __generator(this, function (_u) {
|
|
1753
|
-
switch (_u.label) {
|
|
1754
|
-
case 0:
|
|
1755
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1756
|
-
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1757
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1758
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1759
|
-
return [4, response.body.text()];
|
|
1760
|
-
case 1:
|
|
1761
|
-
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
1762
|
-
"BaseResponseGetAiDecompilationTask", ""]);
|
|
1763
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1764
|
-
case 2:
|
|
1765
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
1766
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1767
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1768
|
-
return [4, response.body.text()];
|
|
1769
|
-
case 3:
|
|
1770
|
-
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
1771
|
-
"BaseResponse", ""]);
|
|
1772
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
|
|
1773
|
-
case 4:
|
|
1774
|
-
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
|
|
1775
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1776
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1777
|
-
return [4, response.body.text()];
|
|
1778
|
-
case 5:
|
|
1779
|
-
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
1780
|
-
"BaseResponse", ""]);
|
|
1781
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
1782
|
-
case 6:
|
|
1783
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
1784
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1785
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1786
|
-
return [4, response.body.text()];
|
|
1787
|
-
case 7:
|
|
1788
|
-
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
1789
|
-
"BaseResponseGetAiDecompilationTask", ""]);
|
|
1790
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1791
|
-
case 8:
|
|
1792
|
-
_s = exception_1.ApiException.bind;
|
|
1793
|
-
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1794
|
-
return [4, response.getBodyAsAny()];
|
|
1795
|
-
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
1796
|
-
}
|
|
1797
|
-
});
|
|
1798
|
-
});
|
|
1799
|
-
};
|
|
1800
|
-
FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTaskStatusWithHttpInfo = function (response) {
|
|
1801
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1802
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1803
|
-
return __generator(this, function (_q) {
|
|
1804
|
-
switch (_q.label) {
|
|
1805
|
-
case 0:
|
|
1806
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1807
|
-
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1808
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1809
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1810
|
-
return [4, response.body.text()];
|
|
1811
|
-
case 1:
|
|
1812
|
-
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1813
|
-
"BaseResponseFunctionTaskResponse", ""]);
|
|
1814
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1815
|
-
case 2:
|
|
1816
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
1817
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1818
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1819
|
-
return [4, response.body.text()];
|
|
1820
|
-
case 3:
|
|
1821
|
-
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1822
|
-
"BaseResponse", ""]);
|
|
1823
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
|
|
1824
|
-
case 4:
|
|
1825
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1826
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1827
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1828
|
-
return [4, response.body.text()];
|
|
1829
|
-
case 5:
|
|
1830
|
-
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1831
|
-
"BaseResponseFunctionTaskResponse", ""]);
|
|
1832
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1833
|
-
case 6:
|
|
1834
|
-
_o = exception_1.ApiException.bind;
|
|
1835
|
-
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1836
|
-
return [4, response.getBodyAsAny()];
|
|
1837
|
-
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1838
|
-
}
|
|
1839
|
-
});
|
|
1840
|
-
});
|
|
1841
|
-
};
|
|
1842
1248
|
FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTokenisedWithHttpInfo = function (response) {
|
|
1843
1249
|
return __awaiter(this, void 0, void 0, function () {
|
|
1844
1250
|
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;
|
|
@@ -2157,66 +1563,6 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
|
|
|
2157
1563
|
});
|
|
2158
1564
|
});
|
|
2159
1565
|
};
|
|
2160
|
-
FunctionsAIDecompilationApiResponseProcessor.prototype.updateAiDecompilationCommentWithHttpInfo = function (response) {
|
|
2161
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2162
|
-
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, _w, _x;
|
|
2163
|
-
return __generator(this, function (_y) {
|
|
2164
|
-
switch (_y.label) {
|
|
2165
|
-
case 0:
|
|
2166
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2167
|
-
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
2168
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2169
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2170
|
-
return [4, response.body.text()];
|
|
2171
|
-
case 1:
|
|
2172
|
-
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
2173
|
-
"BaseResponseCommentResponse", ""]);
|
|
2174
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2175
|
-
case 2:
|
|
2176
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
2177
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2178
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2179
|
-
return [4, response.body.text()];
|
|
2180
|
-
case 3:
|
|
2181
|
-
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
2182
|
-
"BaseResponse", ""]);
|
|
2183
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
|
|
2184
|
-
case 4:
|
|
2185
|
-
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
|
|
2186
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2187
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2188
|
-
return [4, response.body.text()];
|
|
2189
|
-
case 5:
|
|
2190
|
-
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
2191
|
-
"BaseResponse", ""]);
|
|
2192
|
-
throw new exception_1.ApiException(response.httpStatusCode, "You can only update your own comments", body, response.headers);
|
|
2193
|
-
case 6:
|
|
2194
|
-
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 8];
|
|
2195
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2196
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2197
|
-
return [4, response.body.text()];
|
|
2198
|
-
case 7:
|
|
2199
|
-
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
2200
|
-
"BaseResponse", ""]);
|
|
2201
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
2202
|
-
case 8:
|
|
2203
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
2204
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2205
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2206
|
-
return [4, response.body.text()];
|
|
2207
|
-
case 9:
|
|
2208
|
-
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
2209
|
-
"BaseResponseCommentResponse", ""]);
|
|
2210
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2211
|
-
case 10:
|
|
2212
|
-
_w = exception_1.ApiException.bind;
|
|
2213
|
-
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2214
|
-
return [4, response.getBodyAsAny()];
|
|
2215
|
-
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
2216
|
-
}
|
|
2217
|
-
});
|
|
2218
|
-
});
|
|
2219
|
-
};
|
|
2220
1566
|
FunctionsAIDecompilationApiResponseProcessor.prototype.upsertAiDecompilationOverridesWithHttpInfo = function (response) {
|
|
2221
1567
|
return __awaiter(this, void 0, void 0, function () {
|
|
2222
1568
|
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;
|