@revengai/sdk 3.84.0 → 3.85.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.
- package/README.md +7 -3
- package/dist/apis/AnalysesCoreApi.d.ts +2 -0
- package/dist/apis/AnalysesCoreApi.js +108 -0
- package/dist/apis/AnalysesCoreApi.js.map +1 -1
- package/dist/apis/FunctionsAIDecompilationApi.d.ts +5 -0
- package/dist/apis/FunctionsAIDecompilationApi.js +249 -23
- package/dist/apis/FunctionsAIDecompilationApi.js.map +1 -1
- package/dist/apis/ReportsApi.d.ts +2 -2
- package/dist/apis/ReportsApi.js +7 -15
- package/dist/apis/ReportsApi.js.map +1 -1
- package/dist/models/ErrorBody.d.ts +1 -0
- package/dist/models/ErrorBody.js +1 -0
- package/dist/models/ErrorBody.js.map +1 -1
- package/dist/models/GeneratePDFOutputBody.d.ts +0 -1
- package/dist/models/GeneratePDFOutputBody.js +0 -6
- package/dist/models/GeneratePDFOutputBody.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +1 -0
- package/dist/models/ObjectSerializer.js +3 -0
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/PatchCommentBody.d.ts +21 -0
- package/dist/models/PatchCommentBody.js +29 -0
- package/dist/models/PatchCommentBody.js.map +1 -0
- package/dist/models/all.d.ts +1 -0
- package/dist/models/all.js +1 -0
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +19 -2
- package/dist/types/ObjectParamAPI.js +22 -4
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +11 -4
- package/dist/types/ObservableAPI.js +526 -442
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +11 -4
- package/dist/types/PromiseAPI.js +38 -8
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
|
@@ -213,6 +213,43 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
|
|
|
213
213
|
});
|
|
214
214
|
});
|
|
215
215
|
};
|
|
216
|
+
FunctionsAIDecompilationApiRequestFactory.prototype.deleteAiDecompilationInlineComment = function (functionId, line, _options) {
|
|
217
|
+
var _a;
|
|
218
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
219
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
220
|
+
return __generator(this, function (_b) {
|
|
221
|
+
switch (_b.label) {
|
|
222
|
+
case 0:
|
|
223
|
+
_config = _options || this.configuration;
|
|
224
|
+
if (functionId === null || functionId === undefined) {
|
|
225
|
+
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "deleteAiDecompilationInlineComment", "functionId");
|
|
226
|
+
}
|
|
227
|
+
if (line === null || line === undefined) {
|
|
228
|
+
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "deleteAiDecompilationInlineComment", "line");
|
|
229
|
+
}
|
|
230
|
+
localVarPath = '/v3/functions/{function_id}/ai-decompilation/inline-comments/{line}'
|
|
231
|
+
.replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)))
|
|
232
|
+
.replace('{' + 'line' + '}', encodeURIComponent(String(line)));
|
|
233
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
234
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
235
|
+
authMethod = _config.authMethods["APIKey"];
|
|
236
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
237
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
238
|
+
case 1:
|
|
239
|
+
_b.sent();
|
|
240
|
+
_b.label = 2;
|
|
241
|
+
case 2:
|
|
242
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
243
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
244
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
245
|
+
case 3:
|
|
246
|
+
_b.sent();
|
|
247
|
+
_b.label = 4;
|
|
248
|
+
case 4: return [2, requestContext];
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
};
|
|
216
253
|
FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilation = function (functionId, _options) {
|
|
217
254
|
var _a;
|
|
218
255
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -589,6 +626,48 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
|
|
|
589
626
|
});
|
|
590
627
|
});
|
|
591
628
|
};
|
|
629
|
+
FunctionsAIDecompilationApiRequestFactory.prototype.patchAiDecompilationInlineComment = function (functionId, patchCommentBody, _options) {
|
|
630
|
+
var _a;
|
|
631
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
632
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
633
|
+
return __generator(this, function (_b) {
|
|
634
|
+
switch (_b.label) {
|
|
635
|
+
case 0:
|
|
636
|
+
_config = _options || this.configuration;
|
|
637
|
+
if (functionId === null || functionId === undefined) {
|
|
638
|
+
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "patchAiDecompilationInlineComment", "functionId");
|
|
639
|
+
}
|
|
640
|
+
if (patchCommentBody === null || patchCommentBody === undefined) {
|
|
641
|
+
throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "patchAiDecompilationInlineComment", "patchCommentBody");
|
|
642
|
+
}
|
|
643
|
+
localVarPath = '/v3/functions/{function_id}/ai-decompilation/inline-comments'
|
|
644
|
+
.replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
|
|
645
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
646
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
647
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
648
|
+
"application/json"
|
|
649
|
+
]);
|
|
650
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
651
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(patchCommentBody, "PatchCommentBody", ""), contentType);
|
|
652
|
+
requestContext.setBody(serializedBody);
|
|
653
|
+
authMethod = _config.authMethods["APIKey"];
|
|
654
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
655
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
656
|
+
case 1:
|
|
657
|
+
_b.sent();
|
|
658
|
+
_b.label = 2;
|
|
659
|
+
case 2:
|
|
660
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
661
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
662
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
663
|
+
case 3:
|
|
664
|
+
_b.sent();
|
|
665
|
+
_b.label = 4;
|
|
666
|
+
case 4: return [2, requestContext];
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
});
|
|
670
|
+
};
|
|
592
671
|
FunctionsAIDecompilationApiRequestFactory.prototype.regenerateAiDecompilationInlineComments = function (functionId, _options) {
|
|
593
672
|
var _a;
|
|
594
673
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -793,9 +872,9 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
|
|
|
793
872
|
}
|
|
794
873
|
FunctionsAIDecompilationApiResponseProcessor.prototype.createAiDecompilationWithHttpInfo = function (response) {
|
|
795
874
|
return __awaiter(this, void 0, void 0, function () {
|
|
796
|
-
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;
|
|
797
|
-
return __generator(this, function (
|
|
798
|
-
switch (
|
|
875
|
+
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, body, _4, _5, _6, _7, _8, _9;
|
|
876
|
+
return __generator(this, function (_10) {
|
|
877
|
+
switch (_10.label) {
|
|
799
878
|
case 0:
|
|
800
879
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
801
880
|
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
@@ -803,7 +882,7 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
|
|
|
803
882
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
804
883
|
return [4, response.body.text()];
|
|
805
884
|
case 1:
|
|
806
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
885
|
+
body = _b.apply(_a, [_d.apply(_c, [_10.sent(), contentType]),
|
|
807
886
|
"CreateAIDecompOutputBody", ""]);
|
|
808
887
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
809
888
|
case 2:
|
|
@@ -812,59 +891,68 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
|
|
|
812
891
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
813
892
|
return [4, response.body.text()];
|
|
814
893
|
case 3:
|
|
815
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
894
|
+
body = _f.apply(_e, [_h.apply(_g, [_10.sent(), contentType]),
|
|
816
895
|
"APIError", ""]);
|
|
817
896
|
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
818
897
|
case 4:
|
|
819
|
-
if (!(0, util_1.isCodeInRange)("
|
|
898
|
+
if (!(0, util_1.isCodeInRange)("402", response.httpStatusCode)) return [3, 6];
|
|
820
899
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
821
900
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
822
901
|
return [4, response.body.text()];
|
|
823
902
|
case 5:
|
|
824
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
903
|
+
body = _k.apply(_j, [_m.apply(_l, [_10.sent(), contentType]),
|
|
825
904
|
"APIError", ""]);
|
|
826
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
905
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Payment Required", body, response.headers);
|
|
827
906
|
case 6:
|
|
828
|
-
if (!(0, util_1.isCodeInRange)("
|
|
907
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 8];
|
|
829
908
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
830
909
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
831
910
|
return [4, response.body.text()];
|
|
832
911
|
case 7:
|
|
833
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
912
|
+
body = _p.apply(_o, [_r.apply(_q, [_10.sent(), contentType]),
|
|
834
913
|
"APIError", ""]);
|
|
835
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
914
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
836
915
|
case 8:
|
|
837
|
-
if (!(0, util_1.isCodeInRange)("
|
|
916
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
|
|
838
917
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
839
918
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
840
919
|
return [4, response.body.text()];
|
|
841
920
|
case 9:
|
|
842
|
-
body = _t.apply(_s, [_v.apply(_u, [
|
|
921
|
+
body = _t.apply(_s, [_v.apply(_u, [_10.sent(), contentType]),
|
|
843
922
|
"APIError", ""]);
|
|
844
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
923
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Conflict", body, response.headers);
|
|
845
924
|
case 10:
|
|
846
|
-
if (!(0, util_1.isCodeInRange)("
|
|
925
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 12];
|
|
847
926
|
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
848
927
|
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
849
928
|
return [4, response.body.text()];
|
|
850
929
|
case 11:
|
|
851
|
-
body = _x.apply(_w, [_z.apply(_y, [
|
|
930
|
+
body = _x.apply(_w, [_z.apply(_y, [_10.sent(), contentType]),
|
|
852
931
|
"APIError", ""]);
|
|
853
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
932
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
854
933
|
case 12:
|
|
855
|
-
if (!(
|
|
934
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 14];
|
|
856
935
|
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
857
936
|
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
858
937
|
return [4, response.body.text()];
|
|
859
938
|
case 13:
|
|
860
|
-
body = _1.apply(_0, [_3.apply(_2, [
|
|
939
|
+
body = _1.apply(_0, [_3.apply(_2, [_10.sent(), contentType]),
|
|
940
|
+
"APIError", ""]);
|
|
941
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
942
|
+
case 14:
|
|
943
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 16];
|
|
944
|
+
_5 = (_4 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
945
|
+
_7 = (_6 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
946
|
+
return [4, response.body.text()];
|
|
947
|
+
case 15:
|
|
948
|
+
body = _5.apply(_4, [_7.apply(_6, [_10.sent(), contentType]),
|
|
861
949
|
"CreateAIDecompOutputBody", ""]);
|
|
862
950
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
863
|
-
case
|
|
864
|
-
|
|
865
|
-
|
|
951
|
+
case 16:
|
|
952
|
+
_8 = exception_1.ApiException.bind;
|
|
953
|
+
_9 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
866
954
|
return [4, response.getBodyAsAny()];
|
|
867
|
-
case
|
|
955
|
+
case 17: throw new (_8.apply(exception_1.ApiException, _9.concat([_10.sent(), response.headers])))();
|
|
868
956
|
}
|
|
869
957
|
});
|
|
870
958
|
});
|
|
@@ -1058,6 +1146,75 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
|
|
|
1058
1146
|
});
|
|
1059
1147
|
});
|
|
1060
1148
|
};
|
|
1149
|
+
FunctionsAIDecompilationApiResponseProcessor.prototype.deleteAiDecompilationInlineCommentWithHttpInfo = function (response) {
|
|
1150
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1151
|
+
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;
|
|
1152
|
+
return __generator(this, function (_2) {
|
|
1153
|
+
switch (_2.label) {
|
|
1154
|
+
case 0:
|
|
1155
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1156
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1157
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1158
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1159
|
+
return [4, response.body.text()];
|
|
1160
|
+
case 1:
|
|
1161
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1162
|
+
"CommentsData", ""]);
|
|
1163
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1164
|
+
case 2:
|
|
1165
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
1166
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1167
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1168
|
+
return [4, response.body.text()];
|
|
1169
|
+
case 3:
|
|
1170
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1171
|
+
"APIError", ""]);
|
|
1172
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
1173
|
+
case 4:
|
|
1174
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
1175
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1176
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1177
|
+
return [4, response.body.text()];
|
|
1178
|
+
case 5:
|
|
1179
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1180
|
+
"APIError", ""]);
|
|
1181
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
1182
|
+
case 6:
|
|
1183
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
1184
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1185
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1186
|
+
return [4, response.body.text()];
|
|
1187
|
+
case 7:
|
|
1188
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1189
|
+
"APIError", ""]);
|
|
1190
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
1191
|
+
case 8:
|
|
1192
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
1193
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1194
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1195
|
+
return [4, response.body.text()];
|
|
1196
|
+
case 9:
|
|
1197
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1198
|
+
"APIError", ""]);
|
|
1199
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
1200
|
+
case 10:
|
|
1201
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
1202
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1203
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1204
|
+
return [4, response.body.text()];
|
|
1205
|
+
case 11:
|
|
1206
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1207
|
+
"CommentsData", ""]);
|
|
1208
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1209
|
+
case 12:
|
|
1210
|
+
_0 = exception_1.ApiException.bind;
|
|
1211
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1212
|
+
return [4, response.getBodyAsAny()];
|
|
1213
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1214
|
+
}
|
|
1215
|
+
});
|
|
1216
|
+
});
|
|
1217
|
+
};
|
|
1061
1218
|
FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationWithHttpInfo = function (response) {
|
|
1062
1219
|
return __awaiter(this, void 0, void 0, function () {
|
|
1063
1220
|
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;
|
|
@@ -1718,6 +1875,75 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
|
|
|
1718
1875
|
});
|
|
1719
1876
|
});
|
|
1720
1877
|
};
|
|
1878
|
+
FunctionsAIDecompilationApiResponseProcessor.prototype.patchAiDecompilationInlineCommentWithHttpInfo = function (response) {
|
|
1879
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1880
|
+
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;
|
|
1881
|
+
return __generator(this, function (_2) {
|
|
1882
|
+
switch (_2.label) {
|
|
1883
|
+
case 0:
|
|
1884
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1885
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1886
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1887
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1888
|
+
return [4, response.body.text()];
|
|
1889
|
+
case 1:
|
|
1890
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1891
|
+
"CommentsData", ""]);
|
|
1892
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1893
|
+
case 2:
|
|
1894
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
1895
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1896
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1897
|
+
return [4, response.body.text()];
|
|
1898
|
+
case 3:
|
|
1899
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1900
|
+
"APIError", ""]);
|
|
1901
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
1902
|
+
case 4:
|
|
1903
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
1904
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1905
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1906
|
+
return [4, response.body.text()];
|
|
1907
|
+
case 5:
|
|
1908
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1909
|
+
"APIError", ""]);
|
|
1910
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
1911
|
+
case 6:
|
|
1912
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
1913
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1914
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1915
|
+
return [4, response.body.text()];
|
|
1916
|
+
case 7:
|
|
1917
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1918
|
+
"APIError", ""]);
|
|
1919
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
1920
|
+
case 8:
|
|
1921
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
1922
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1923
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1924
|
+
return [4, response.body.text()];
|
|
1925
|
+
case 9:
|
|
1926
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1927
|
+
"APIError", ""]);
|
|
1928
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
1929
|
+
case 10:
|
|
1930
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
1931
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1932
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1933
|
+
return [4, response.body.text()];
|
|
1934
|
+
case 11:
|
|
1935
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1936
|
+
"CommentsData", ""]);
|
|
1937
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1938
|
+
case 12:
|
|
1939
|
+
_0 = exception_1.ApiException.bind;
|
|
1940
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1941
|
+
return [4, response.getBodyAsAny()];
|
|
1942
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1943
|
+
}
|
|
1944
|
+
});
|
|
1945
|
+
});
|
|
1946
|
+
};
|
|
1721
1947
|
FunctionsAIDecompilationApiResponseProcessor.prototype.regenerateAiDecompilationInlineCommentsWithHttpInfo = function (response) {
|
|
1722
1948
|
return __awaiter(this, void 0, void 0, function () {
|
|
1723
1949
|
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;
|