@revengai/sdk 3.82.0 → 3.82.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.
Files changed (227) hide show
  1. package/README.md +28 -0
  2. package/dist/apis/FunctionsAIDecompilationApi.d.ts +31 -0
  3. package/dist/apis/FunctionsAIDecompilationApi.js +1319 -164
  4. package/dist/apis/FunctionsAIDecompilationApi.js.map +1 -1
  5. package/dist/apis/ReportsApi.d.ts +15 -0
  6. package/dist/apis/ReportsApi.js +400 -0
  7. package/dist/apis/ReportsApi.js.map +1 -0
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.js +2 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/models/AiDecompilationRating.d.ts +2 -1
  12. package/dist/models/AiDecompilationRating.js +1 -0
  13. package/dist/models/AiDecompilationRating.js.map +1 -1
  14. package/dist/models/AiDecompilationTaskStatus.d.ts +2 -1
  15. package/dist/models/AiDecompilationTaskStatus.js +1 -0
  16. package/dist/models/AiDecompilationTaskStatus.js.map +1 -1
  17. package/dist/models/AnalysisScope.d.ts +2 -1
  18. package/dist/models/AnalysisScope.js +1 -0
  19. package/dist/models/AnalysisScope.js.map +1 -1
  20. package/dist/models/AnalysisUpdateRequest.d.ts +2 -1
  21. package/dist/models/AnalysisUpdateRequest.js +1 -0
  22. package/dist/models/AnalysisUpdateRequest.js.map +1 -1
  23. package/dist/models/AppApiRestV2AgentSchemaCapability.d.ts +2 -1
  24. package/dist/models/AppApiRestV2AgentSchemaCapability.js +1 -0
  25. package/dist/models/AppApiRestV2AgentSchemaCapability.js.map +1 -1
  26. package/dist/models/AppApiRestV2AnalysesEnumsOrderBy.d.ts +2 -1
  27. package/dist/models/AppApiRestV2AnalysesEnumsOrderBy.js +1 -0
  28. package/dist/models/AppApiRestV2AnalysesEnumsOrderBy.js.map +1 -1
  29. package/dist/models/AppApiRestV2CollectionsEnumsOrderBy.d.ts +2 -1
  30. package/dist/models/AppApiRestV2CollectionsEnumsOrderBy.js +1 -0
  31. package/dist/models/AppApiRestV2CollectionsEnumsOrderBy.js.map +1 -1
  32. package/dist/models/BinariesTaskStatus.d.ts +2 -1
  33. package/dist/models/BinariesTaskStatus.js +1 -0
  34. package/dist/models/BinariesTaskStatus.js.map +1 -1
  35. package/dist/models/BinaryTaskStatus.d.ts +2 -1
  36. package/dist/models/BinaryTaskStatus.js +1 -0
  37. package/dist/models/BinaryTaskStatus.js.map +1 -1
  38. package/dist/models/CollectionScope.d.ts +2 -1
  39. package/dist/models/CollectionScope.js +1 -0
  40. package/dist/models/CollectionScope.js.map +1 -1
  41. package/dist/models/CommentsData.d.ts +29 -0
  42. package/dist/models/CommentsData.js +42 -0
  43. package/dist/models/CommentsData.js.map +1 -0
  44. package/dist/models/CreateAIDecompOutputBody.d.ts +21 -0
  45. package/dist/models/CreateAIDecompOutputBody.js +29 -0
  46. package/dist/models/CreateAIDecompOutputBody.js.map +1 -0
  47. package/dist/models/DecompilationData.d.ts +30 -0
  48. package/dist/models/DecompilationData.js +44 -0
  49. package/dist/models/DecompilationData.js.map +1 -0
  50. package/dist/models/DynamicExecutionStatus.d.ts +2 -1
  51. package/dist/models/DynamicExecutionStatus.js +1 -0
  52. package/dist/models/DynamicExecutionStatus.js.map +1 -1
  53. package/dist/models/ErrorBody.d.ts +3 -1
  54. package/dist/models/ErrorBody.js +2 -0
  55. package/dist/models/ErrorBody.js.map +1 -1
  56. package/dist/models/EventCONTEXTCOMPACTED.d.ts +2 -1
  57. package/dist/models/EventCONTEXTCOMPACTED.js +1 -0
  58. package/dist/models/EventCONTEXTCOMPACTED.js.map +1 -1
  59. package/dist/models/EventRUNCANCELLED.d.ts +2 -1
  60. package/dist/models/EventRUNCANCELLED.js +1 -0
  61. package/dist/models/EventRUNCANCELLED.js.map +1 -1
  62. package/dist/models/EventRUNERROR.d.ts +2 -1
  63. package/dist/models/EventRUNERROR.js +1 -0
  64. package/dist/models/EventRUNERROR.js.map +1 -1
  65. package/dist/models/EventRUNFINISHED.d.ts +2 -1
  66. package/dist/models/EventRUNFINISHED.js +1 -0
  67. package/dist/models/EventRUNFINISHED.js.map +1 -1
  68. package/dist/models/EventRUNSTARTED.d.ts +2 -1
  69. package/dist/models/EventRUNSTARTED.js +1 -0
  70. package/dist/models/EventRUNSTARTED.js.map +1 -1
  71. package/dist/models/EventSTEPFINISHED.d.ts +2 -1
  72. package/dist/models/EventSTEPFINISHED.js +1 -0
  73. package/dist/models/EventSTEPFINISHED.js.map +1 -1
  74. package/dist/models/EventSTEPSTARTED.d.ts +2 -1
  75. package/dist/models/EventSTEPSTARTED.js +1 -0
  76. package/dist/models/EventSTEPSTARTED.js.map +1 -1
  77. package/dist/models/EventTEXTMESSAGECONTENT.d.ts +2 -1
  78. package/dist/models/EventTEXTMESSAGECONTENT.js +1 -0
  79. package/dist/models/EventTEXTMESSAGECONTENT.js.map +1 -1
  80. package/dist/models/EventTEXTMESSAGEEND.d.ts +2 -1
  81. package/dist/models/EventTEXTMESSAGEEND.js +1 -0
  82. package/dist/models/EventTEXTMESSAGEEND.js.map +1 -1
  83. package/dist/models/EventTEXTMESSAGESTART.d.ts +2 -1
  84. package/dist/models/EventTEXTMESSAGESTART.js +1 -0
  85. package/dist/models/EventTEXTMESSAGESTART.js.map +1 -1
  86. package/dist/models/EventTITLEUPDATED.d.ts +2 -1
  87. package/dist/models/EventTITLEUPDATED.js +1 -0
  88. package/dist/models/EventTITLEUPDATED.js.map +1 -1
  89. package/dist/models/EventTOOLCALLARGSDELTA.d.ts +2 -1
  90. package/dist/models/EventTOOLCALLARGSDELTA.js +1 -0
  91. package/dist/models/EventTOOLCALLARGSDELTA.js.map +1 -1
  92. package/dist/models/EventTOOLCALLEND.d.ts +2 -1
  93. package/dist/models/EventTOOLCALLEND.js +1 -0
  94. package/dist/models/EventTOOLCALLEND.js.map +1 -1
  95. package/dist/models/EventTOOLCALLRESULT.d.ts +2 -1
  96. package/dist/models/EventTOOLCALLRESULT.js +1 -0
  97. package/dist/models/EventTOOLCALLRESULT.js.map +1 -1
  98. package/dist/models/EventTOOLCALLSTART.d.ts +2 -1
  99. package/dist/models/EventTOOLCALLSTART.js +1 -0
  100. package/dist/models/EventTOOLCALLSTART.js.map +1 -1
  101. package/dist/models/EventTOOLCONFIRMATIONREQUIRED.d.ts +2 -1
  102. package/dist/models/EventTOOLCONFIRMATIONREQUIRED.js +1 -0
  103. package/dist/models/EventTOOLCONFIRMATIONREQUIRED.js.map +1 -1
  104. package/dist/models/FileFormat.d.ts +2 -1
  105. package/dist/models/FileFormat.js +1 -0
  106. package/dist/models/FileFormat.js.map +1 -1
  107. package/dist/models/Filters.d.ts +2 -1
  108. package/dist/models/Filters.js +1 -0
  109. package/dist/models/Filters.js.map +1 -1
  110. package/dist/models/FunctionListItem.d.ts +2 -1
  111. package/dist/models/FunctionListItem.js +1 -0
  112. package/dist/models/FunctionListItem.js.map +1 -1
  113. package/dist/models/FunctionMatchingFilters.d.ts +2 -1
  114. package/dist/models/FunctionMatchingFilters.js +1 -0
  115. package/dist/models/FunctionMatchingFilters.js.map +1 -1
  116. package/dist/models/FunctionSourceType.d.ts +3 -1
  117. package/dist/models/FunctionSourceType.js +2 -0
  118. package/dist/models/FunctionSourceType.js.map +1 -1
  119. package/dist/models/FunctionTaskStatus.d.ts +2 -1
  120. package/dist/models/FunctionTaskStatus.js +1 -0
  121. package/dist/models/FunctionTaskStatus.js.map +1 -1
  122. package/dist/models/GeneratePDFOutputBody.d.ts +22 -0
  123. package/dist/models/GeneratePDFOutputBody.js +35 -0
  124. package/dist/models/GeneratePDFOutputBody.js.map +1 -0
  125. package/dist/models/GetMeResponse.d.ts +2 -1
  126. package/dist/models/GetMeResponse.js +1 -0
  127. package/dist/models/GetMeResponse.js.map +1 -1
  128. package/dist/models/IOC.d.ts +2 -1
  129. package/dist/models/IOC.js +1 -0
  130. package/dist/models/IOC.js.map +1 -1
  131. package/dist/models/ISA.d.ts +2 -1
  132. package/dist/models/ISA.js +1 -0
  133. package/dist/models/ISA.js.map +1 -1
  134. package/dist/models/InlineComment.d.ts +21 -0
  135. package/dist/models/InlineComment.js +29 -0
  136. package/dist/models/InlineComment.js.map +1 -0
  137. package/dist/models/ModelName.d.ts +2 -1
  138. package/dist/models/ModelName.js +1 -0
  139. package/dist/models/ModelName.js.map +1 -1
  140. package/dist/models/NameSourceType.d.ts +2 -1
  141. package/dist/models/NameSourceType.js +1 -0
  142. package/dist/models/NameSourceType.js.map +1 -1
  143. package/dist/models/NumericAddr.d.ts +20 -0
  144. package/dist/models/NumericAddr.js +23 -0
  145. package/dist/models/NumericAddr.js.map +1 -0
  146. package/dist/models/ObjectSerializer.d.ts +14 -0
  147. package/dist/models/ObjectSerializer.js +48 -0
  148. package/dist/models/ObjectSerializer.js.map +1 -1
  149. package/dist/models/Order.d.ts +2 -1
  150. package/dist/models/Order.js +1 -0
  151. package/dist/models/Order.js.map +1 -1
  152. package/dist/models/Platform.d.ts +2 -1
  153. package/dist/models/Platform.js +1 -0
  154. package/dist/models/Platform.js.map +1 -1
  155. package/dist/models/ProgressMessage.d.ts +29 -0
  156. package/dist/models/ProgressMessage.js +48 -0
  157. package/dist/models/ProgressMessage.js.map +1 -0
  158. package/dist/models/RegenerateOutputBody.d.ts +21 -0
  159. package/dist/models/RegenerateOutputBody.js +29 -0
  160. package/dist/models/RegenerateOutputBody.js.map +1 -0
  161. package/dist/models/RegenerateTarget.d.ts +2 -1
  162. package/dist/models/RegenerateTarget.js +1 -0
  163. package/dist/models/RegenerateTarget.js.map +1 -1
  164. package/dist/models/ReplacementValue.d.ts +20 -0
  165. package/dist/models/ReplacementValue.js +23 -0
  166. package/dist/models/ReplacementValue.js.map +1 -0
  167. package/dist/models/ReportAnalysisResponse.d.ts +2 -1
  168. package/dist/models/ReportAnalysisResponse.js +1 -0
  169. package/dist/models/ReportAnalysisResponse.js.map +1 -1
  170. package/dist/models/SandboxStartMethod.d.ts +2 -1
  171. package/dist/models/SandboxStartMethod.js +1 -0
  172. package/dist/models/SandboxStartMethod.js.map +1 -1
  173. package/dist/models/SandboxTimeout.d.ts +2 -1
  174. package/dist/models/SandboxTimeout.js +1 -0
  175. package/dist/models/SandboxTimeout.js.map +1 -1
  176. package/dist/models/StatusInput.d.ts +2 -1
  177. package/dist/models/StatusInput.js +1 -0
  178. package/dist/models/StatusInput.js.map +1 -1
  179. package/dist/models/StringSource.d.ts +2 -1
  180. package/dist/models/StringSource.js +1 -0
  181. package/dist/models/StringSource.js.map +1 -1
  182. package/dist/models/SummaryData.d.ts +29 -0
  183. package/dist/models/SummaryData.js +48 -0
  184. package/dist/models/SummaryData.js.map +1 -0
  185. package/dist/models/TaskStatus.d.ts +2 -1
  186. package/dist/models/TaskStatus.js +1 -0
  187. package/dist/models/TaskStatus.js.map +1 -1
  188. package/dist/models/TokenisedData.d.ts +33 -0
  189. package/dist/models/TokenisedData.js +56 -0
  190. package/dist/models/TokenisedData.js.map +1 -0
  191. package/dist/models/TriageFunctionResponse.d.ts +2 -1
  192. package/dist/models/TriageFunctionResponse.js +1 -0
  193. package/dist/models/TriageFunctionResponse.js.map +1 -1
  194. package/dist/models/UploadFileType.d.ts +2 -1
  195. package/dist/models/UploadFileType.js +1 -0
  196. package/dist/models/UploadFileType.js.map +1 -1
  197. package/dist/models/UpsertOverridesData.d.ts +23 -0
  198. package/dist/models/UpsertOverridesData.js +29 -0
  199. package/dist/models/UpsertOverridesData.js.map +1 -0
  200. package/dist/models/UpsertOverridesInputBody.d.ts +23 -0
  201. package/dist/models/UpsertOverridesInputBody.js +29 -0
  202. package/dist/models/UpsertOverridesInputBody.js.map +1 -0
  203. package/dist/models/Vulnerability.d.ts +2 -1
  204. package/dist/models/Vulnerability.js +1 -0
  205. package/dist/models/Vulnerability.js.map +1 -1
  206. package/dist/models/WorkflowProgress.d.ts +34 -0
  207. package/dist/models/WorkflowProgress.js +62 -0
  208. package/dist/models/WorkflowProgress.js.map +1 -0
  209. package/dist/models/Workspace.d.ts +2 -1
  210. package/dist/models/Workspace.js +1 -0
  211. package/dist/models/Workspace.js.map +1 -1
  212. package/dist/models/all.d.ts +14 -0
  213. package/dist/models/all.js +14 -0
  214. package/dist/models/all.js.map +1 -1
  215. package/dist/tests/enum-unknown-default.test.d.ts +1 -0
  216. package/dist/tests/enum-unknown-default.test.js +47 -0
  217. package/dist/tests/enum-unknown-default.test.js.map +1 -0
  218. package/dist/types/ObjectParamAPI.d.ts +90 -0
  219. package/dist/types/ObjectParamAPI.js +94 -2
  220. package/dist/types/ObjectParamAPI.js.map +1 -1
  221. package/dist/types/ObservableAPI.d.ts +45 -0
  222. package/dist/types/ObservableAPI.js +553 -151
  223. package/dist/types/ObservableAPI.js.map +1 -1
  224. package/dist/types/PromiseAPI.d.ts +43 -0
  225. package/dist/types/PromiseAPI.js +150 -2
  226. package/dist/types/PromiseAPI.js.map +1 -1
  227. package/package.json +1 -1
@@ -62,6 +62,45 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
62
62
  function FunctionsAIDecompilationApiRequestFactory() {
63
63
  return _super !== null && _super.apply(this, arguments) || this;
64
64
  }
65
+ FunctionsAIDecompilationApiRequestFactory.prototype.createAiDecompilation = function (functionId, contextAware, temperature, _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 (functionId === null || functionId === undefined) {
74
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "createAiDecompilation", "functionId");
75
+ }
76
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation'
77
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
78
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
79
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
80
+ if (contextAware !== undefined) {
81
+ requestContext.setQueryParam("context_aware", ObjectSerializer_1.ObjectSerializer.serialize(contextAware, "boolean", ""));
82
+ }
83
+ if (temperature !== undefined) {
84
+ requestContext.setQueryParam("temperature", ObjectSerializer_1.ObjectSerializer.serialize(temperature, "number", "double"));
85
+ }
86
+ authMethod = _config.authMethods["APIKey"];
87
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
88
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
89
+ case 1:
90
+ _b.sent();
91
+ _b.label = 2;
92
+ case 2:
93
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
94
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
95
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
96
+ case 3:
97
+ _b.sent();
98
+ _b.label = 4;
99
+ case 4: return [2, requestContext];
100
+ }
101
+ });
102
+ });
103
+ };
65
104
  FunctionsAIDecompilationApiRequestFactory.prototype.createAiDecompilationComment = function (functionId, functionCommentCreateRequest, _options) {
66
105
  var _a;
67
106
  return __awaiter(this, void 0, void 0, function () {
@@ -174,6 +213,39 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
174
213
  });
175
214
  });
176
215
  };
216
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilation = function (functionId, _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", "getAiDecompilation", "functionId");
226
+ }
227
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation'
228
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
229
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
230
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
231
+ authMethod = _config.authMethods["APIKey"];
232
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
233
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
234
+ case 1:
235
+ _b.sent();
236
+ _b.label = 2;
237
+ case 2:
238
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
239
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
240
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
241
+ case 3:
242
+ _b.sent();
243
+ _b.label = 4;
244
+ case 4: return [2, requestContext];
245
+ }
246
+ });
247
+ });
248
+ };
177
249
  FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationComments = function (functionId, _options) {
178
250
  var _a;
179
251
  return __awaiter(this, void 0, void 0, function () {
@@ -207,6 +279,72 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
207
279
  });
208
280
  });
209
281
  };
282
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationInlineComments = function (functionId, _options) {
283
+ var _a;
284
+ return __awaiter(this, void 0, void 0, function () {
285
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
286
+ return __generator(this, function (_b) {
287
+ switch (_b.label) {
288
+ case 0:
289
+ _config = _options || this.configuration;
290
+ if (functionId === null || functionId === undefined) {
291
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationInlineComments", "functionId");
292
+ }
293
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/inline-comments'
294
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
295
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
296
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
297
+ authMethod = _config.authMethods["APIKey"];
298
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
299
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
300
+ case 1:
301
+ _b.sent();
302
+ _b.label = 2;
303
+ case 2:
304
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
305
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
306
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
307
+ case 3:
308
+ _b.sent();
309
+ _b.label = 4;
310
+ case 4: return [2, requestContext];
311
+ }
312
+ });
313
+ });
314
+ };
315
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationInlineCommentsStatus = function (functionId, _options) {
316
+ var _a;
317
+ return __awaiter(this, void 0, void 0, function () {
318
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
319
+ return __generator(this, function (_b) {
320
+ switch (_b.label) {
321
+ case 0:
322
+ _config = _options || this.configuration;
323
+ if (functionId === null || functionId === undefined) {
324
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationInlineCommentsStatus", "functionId");
325
+ }
326
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/inline-comments/status'
327
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
328
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
329
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
330
+ authMethod = _config.authMethods["APIKey"];
331
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
332
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
333
+ case 1:
334
+ _b.sent();
335
+ _b.label = 2;
336
+ case 2:
337
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
338
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
339
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
340
+ case 3:
341
+ _b.sent();
342
+ _b.label = 4;
343
+ case 4: return [2, requestContext];
344
+ }
345
+ });
346
+ });
347
+ };
210
348
  FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationRating = function (functionId, _options) {
211
349
  var _a;
212
350
  return __awaiter(this, void 0, void 0, function () {
@@ -240,6 +378,105 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
240
378
  });
241
379
  });
242
380
  };
381
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationStatus = function (functionId, _options) {
382
+ var _a;
383
+ return __awaiter(this, void 0, void 0, function () {
384
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
385
+ return __generator(this, function (_b) {
386
+ switch (_b.label) {
387
+ case 0:
388
+ _config = _options || this.configuration;
389
+ if (functionId === null || functionId === undefined) {
390
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationStatus", "functionId");
391
+ }
392
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/status'
393
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
394
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
395
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
396
+ authMethod = _config.authMethods["APIKey"];
397
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
398
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
399
+ case 1:
400
+ _b.sent();
401
+ _b.label = 2;
402
+ case 2:
403
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
404
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
405
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
406
+ case 3:
407
+ _b.sent();
408
+ _b.label = 4;
409
+ case 4: return [2, requestContext];
410
+ }
411
+ });
412
+ });
413
+ };
414
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationSummary = function (functionId, _options) {
415
+ var _a;
416
+ return __awaiter(this, void 0, void 0, function () {
417
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
418
+ return __generator(this, function (_b) {
419
+ switch (_b.label) {
420
+ case 0:
421
+ _config = _options || this.configuration;
422
+ if (functionId === null || functionId === undefined) {
423
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationSummary", "functionId");
424
+ }
425
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/summary'
426
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
427
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
428
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
429
+ authMethod = _config.authMethods["APIKey"];
430
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
431
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
432
+ case 1:
433
+ _b.sent();
434
+ _b.label = 2;
435
+ case 2:
436
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
437
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
438
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
439
+ case 3:
440
+ _b.sent();
441
+ _b.label = 4;
442
+ case 4: return [2, requestContext];
443
+ }
444
+ });
445
+ });
446
+ };
447
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationSummaryStatus = function (functionId, _options) {
448
+ var _a;
449
+ return __awaiter(this, void 0, void 0, function () {
450
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
451
+ return __generator(this, function (_b) {
452
+ switch (_b.label) {
453
+ case 0:
454
+ _config = _options || this.configuration;
455
+ if (functionId === null || functionId === undefined) {
456
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationSummaryStatus", "functionId");
457
+ }
458
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/summary/status'
459
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
460
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
461
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
462
+ authMethod = _config.authMethods["APIKey"];
463
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
464
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
465
+ case 1:
466
+ _b.sent();
467
+ _b.label = 2;
468
+ case 2:
469
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
470
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
471
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
472
+ case 3:
473
+ _b.sent();
474
+ _b.label = 4;
475
+ case 4: return [2, requestContext];
476
+ }
477
+ });
478
+ });
479
+ };
243
480
  FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationTaskResult = function (functionId, summarise, generateInlineComments, forceRegenerate, _options) {
244
481
  var _a;
245
482
  return __awaiter(this, void 0, void 0, function () {
@@ -319,34 +556,21 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
319
556
  });
320
557
  });
321
558
  };
322
- FunctionsAIDecompilationApiRequestFactory.prototype.updateAiDecompilationComment = function (commentId, functionId, commentUpdateRequest, _options) {
559
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationTokenised = function (functionId, _options) {
323
560
  var _a;
324
561
  return __awaiter(this, void 0, void 0, function () {
325
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
562
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
326
563
  return __generator(this, function (_b) {
327
564
  switch (_b.label) {
328
565
  case 0:
329
566
  _config = _options || this.configuration;
330
- if (commentId === null || commentId === undefined) {
331
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "commentId");
332
- }
333
567
  if (functionId === null || functionId === undefined) {
334
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "functionId");
335
- }
336
- if (commentUpdateRequest === null || commentUpdateRequest === undefined) {
337
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "commentUpdateRequest");
568
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationTokenised", "functionId");
338
569
  }
339
- localVarPath = '/v2/functions/{function_id}/ai-decompilation/comments/{comment_id}'
340
- .replace('{' + 'comment_id' + '}', encodeURIComponent(String(commentId)))
570
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/tokenised'
341
571
  .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
342
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
572
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
343
573
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
344
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
345
- "application/json"
346
- ]);
347
- requestContext.setHeaderParam("Content-Type", contentType);
348
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(commentUpdateRequest, "CommentUpdateRequest", ""), contentType);
349
- requestContext.setBody(serializedBody);
350
574
  authMethod = _config.authMethods["APIKey"];
351
575
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
352
576
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -365,30 +589,21 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
365
589
  });
366
590
  });
367
591
  };
368
- FunctionsAIDecompilationApiRequestFactory.prototype.upsertAiDecompilationRating = function (functionId, upsertAiDecomplationRatingRequest, _options) {
592
+ FunctionsAIDecompilationApiRequestFactory.prototype.regenerateAiDecompilationInlineComments = function (functionId, _options) {
369
593
  var _a;
370
594
  return __awaiter(this, void 0, void 0, function () {
371
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
595
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
372
596
  return __generator(this, function (_b) {
373
597
  switch (_b.label) {
374
598
  case 0:
375
599
  _config = _options || this.configuration;
376
600
  if (functionId === null || functionId === undefined) {
377
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "upsertAiDecompilationRating", "functionId");
601
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "regenerateAiDecompilationInlineComments", "functionId");
378
602
  }
379
- if (upsertAiDecomplationRatingRequest === null || upsertAiDecomplationRatingRequest === undefined) {
380
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "upsertAiDecompilationRating", "upsertAiDecomplationRatingRequest");
381
- }
382
- localVarPath = '/v2/functions/{function_id}/ai-decompilation/rating'
603
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/inline-comments'
383
604
  .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
384
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
605
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
385
606
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
386
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
387
- "application/json"
388
- ]);
389
- requestContext.setHeaderParam("Content-Type", contentType);
390
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(upsertAiDecomplationRatingRequest, "UpsertAiDecomplationRatingRequest", ""), contentType);
391
- requestContext.setBody(serializedBody);
392
607
  authMethod = _config.authMethods["APIKey"];
393
608
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
394
609
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -407,13 +622,254 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
407
622
  });
408
623
  });
409
624
  };
410
- return FunctionsAIDecompilationApiRequestFactory;
411
- }(baseapi_1.BaseAPIRequestFactory));
412
- exports.FunctionsAIDecompilationApiRequestFactory = FunctionsAIDecompilationApiRequestFactory;
413
- var FunctionsAIDecompilationApiResponseProcessor = (function () {
414
- function FunctionsAIDecompilationApiResponseProcessor() {
415
- }
416
- FunctionsAIDecompilationApiResponseProcessor.prototype.createAiDecompilationCommentWithHttpInfo = function (response) {
625
+ FunctionsAIDecompilationApiRequestFactory.prototype.regenerateAiDecompilationSummary = function (functionId, _options) {
626
+ var _a;
627
+ return __awaiter(this, void 0, void 0, function () {
628
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
629
+ return __generator(this, function (_b) {
630
+ switch (_b.label) {
631
+ case 0:
632
+ _config = _options || this.configuration;
633
+ if (functionId === null || functionId === undefined) {
634
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "regenerateAiDecompilationSummary", "functionId");
635
+ }
636
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/summary'
637
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
638
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
639
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
640
+ authMethod = _config.authMethods["APIKey"];
641
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
642
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
643
+ case 1:
644
+ _b.sent();
645
+ _b.label = 2;
646
+ case 2:
647
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
648
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
649
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
650
+ case 3:
651
+ _b.sent();
652
+ _b.label = 4;
653
+ case 4: return [2, requestContext];
654
+ }
655
+ });
656
+ });
657
+ };
658
+ FunctionsAIDecompilationApiRequestFactory.prototype.updateAiDecompilationComment = function (commentId, functionId, commentUpdateRequest, _options) {
659
+ var _a;
660
+ return __awaiter(this, void 0, void 0, function () {
661
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
662
+ return __generator(this, function (_b) {
663
+ switch (_b.label) {
664
+ case 0:
665
+ _config = _options || this.configuration;
666
+ if (commentId === null || commentId === undefined) {
667
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "commentId");
668
+ }
669
+ if (functionId === null || functionId === undefined) {
670
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "functionId");
671
+ }
672
+ if (commentUpdateRequest === null || commentUpdateRequest === undefined) {
673
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "commentUpdateRequest");
674
+ }
675
+ localVarPath = '/v2/functions/{function_id}/ai-decompilation/comments/{comment_id}'
676
+ .replace('{' + 'comment_id' + '}', encodeURIComponent(String(commentId)))
677
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
678
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
679
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
680
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
681
+ "application/json"
682
+ ]);
683
+ requestContext.setHeaderParam("Content-Type", contentType);
684
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(commentUpdateRequest, "CommentUpdateRequest", ""), contentType);
685
+ requestContext.setBody(serializedBody);
686
+ authMethod = _config.authMethods["APIKey"];
687
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
688
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
689
+ case 1:
690
+ _b.sent();
691
+ _b.label = 2;
692
+ case 2:
693
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
694
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
695
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
696
+ case 3:
697
+ _b.sent();
698
+ _b.label = 4;
699
+ case 4: return [2, requestContext];
700
+ }
701
+ });
702
+ });
703
+ };
704
+ FunctionsAIDecompilationApiRequestFactory.prototype.upsertAiDecompilationOverrides = function (functionId, upsertOverridesInputBody, _options) {
705
+ var _a;
706
+ return __awaiter(this, void 0, void 0, function () {
707
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
708
+ return __generator(this, function (_b) {
709
+ switch (_b.label) {
710
+ case 0:
711
+ _config = _options || this.configuration;
712
+ if (functionId === null || functionId === undefined) {
713
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "upsertAiDecompilationOverrides", "functionId");
714
+ }
715
+ if (upsertOverridesInputBody === null || upsertOverridesInputBody === undefined) {
716
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "upsertAiDecompilationOverrides", "upsertOverridesInputBody");
717
+ }
718
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/overrides'
719
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
720
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
721
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
722
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
723
+ "application/json"
724
+ ]);
725
+ requestContext.setHeaderParam("Content-Type", contentType);
726
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(upsertOverridesInputBody, "UpsertOverridesInputBody", ""), contentType);
727
+ requestContext.setBody(serializedBody);
728
+ authMethod = _config.authMethods["APIKey"];
729
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
730
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
731
+ case 1:
732
+ _b.sent();
733
+ _b.label = 2;
734
+ case 2:
735
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
736
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
737
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
738
+ case 3:
739
+ _b.sent();
740
+ _b.label = 4;
741
+ case 4: return [2, requestContext];
742
+ }
743
+ });
744
+ });
745
+ };
746
+ FunctionsAIDecompilationApiRequestFactory.prototype.upsertAiDecompilationRating = function (functionId, upsertAiDecomplationRatingRequest, _options) {
747
+ var _a;
748
+ return __awaiter(this, void 0, void 0, function () {
749
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
750
+ return __generator(this, function (_b) {
751
+ switch (_b.label) {
752
+ case 0:
753
+ _config = _options || this.configuration;
754
+ if (functionId === null || functionId === undefined) {
755
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "upsertAiDecompilationRating", "functionId");
756
+ }
757
+ if (upsertAiDecomplationRatingRequest === null || upsertAiDecomplationRatingRequest === undefined) {
758
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "upsertAiDecompilationRating", "upsertAiDecomplationRatingRequest");
759
+ }
760
+ localVarPath = '/v2/functions/{function_id}/ai-decompilation/rating'
761
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
762
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
763
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
764
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
765
+ "application/json"
766
+ ]);
767
+ requestContext.setHeaderParam("Content-Type", contentType);
768
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(upsertAiDecomplationRatingRequest, "UpsertAiDecomplationRatingRequest", ""), contentType);
769
+ requestContext.setBody(serializedBody);
770
+ authMethod = _config.authMethods["APIKey"];
771
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
772
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
773
+ case 1:
774
+ _b.sent();
775
+ _b.label = 2;
776
+ case 2:
777
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
778
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
779
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
780
+ case 3:
781
+ _b.sent();
782
+ _b.label = 4;
783
+ case 4: return [2, requestContext];
784
+ }
785
+ });
786
+ });
787
+ };
788
+ return FunctionsAIDecompilationApiRequestFactory;
789
+ }(baseapi_1.BaseAPIRequestFactory));
790
+ exports.FunctionsAIDecompilationApiRequestFactory = FunctionsAIDecompilationApiRequestFactory;
791
+ var FunctionsAIDecompilationApiResponseProcessor = (function () {
792
+ function FunctionsAIDecompilationApiResponseProcessor() {
793
+ }
794
+ FunctionsAIDecompilationApiResponseProcessor.prototype.createAiDecompilationWithHttpInfo = function (response) {
795
+ 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 (_6) {
798
+ switch (_6.label) {
799
+ case 0:
800
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
801
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
802
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
803
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
804
+ return [4, response.body.text()];
805
+ case 1:
806
+ body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
807
+ "CreateAIDecompOutputBody", ""]);
808
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
809
+ case 2:
810
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
811
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
812
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
813
+ return [4, response.body.text()];
814
+ case 3:
815
+ body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
816
+ "APIError", ""]);
817
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
818
+ case 4:
819
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
820
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
821
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
822
+ return [4, response.body.text()];
823
+ case 5:
824
+ body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
825
+ "APIError", ""]);
826
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
827
+ case 6:
828
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
829
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
830
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
831
+ return [4, response.body.text()];
832
+ case 7:
833
+ body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
834
+ "APIError", ""]);
835
+ throw new exception_1.ApiException(response.httpStatusCode, "Conflict", body, response.headers);
836
+ case 8:
837
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 10];
838
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
839
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
840
+ return [4, response.body.text()];
841
+ case 9:
842
+ body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
843
+ "APIError", ""]);
844
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
845
+ case 10:
846
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 12];
847
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
848
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
849
+ return [4, response.body.text()];
850
+ case 11:
851
+ body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
852
+ "APIError", ""]);
853
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
854
+ case 12:
855
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
856
+ _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
857
+ _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
858
+ return [4, response.body.text()];
859
+ case 13:
860
+ body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
861
+ "CreateAIDecompOutputBody", ""]);
862
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
863
+ case 14:
864
+ _4 = exception_1.ApiException.bind;
865
+ _5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
866
+ return [4, response.getBodyAsAny()];
867
+ case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
868
+ }
869
+ });
870
+ });
871
+ };
872
+ FunctionsAIDecompilationApiResponseProcessor.prototype.createAiDecompilationCommentWithHttpInfo = function (response) {
417
873
  return __awaiter(this, void 0, void 0, function () {
418
874
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
419
875
  return __generator(this, function (_u) {
@@ -459,94 +915,652 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
459
915
  _s = exception_1.ApiException.bind;
460
916
  _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
461
917
  return [4, response.getBodyAsAny()];
462
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
918
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
919
+ }
920
+ });
921
+ });
922
+ };
923
+ FunctionsAIDecompilationApiResponseProcessor.prototype.createAiDecompilationTaskWithHttpInfo = function (response) {
924
+ return __awaiter(this, void 0, void 0, function () {
925
+ 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;
926
+ return __generator(this, function (_6) {
927
+ switch (_6.label) {
928
+ case 0:
929
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
930
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
931
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
932
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
933
+ return [4, response.body.text()];
934
+ case 1:
935
+ body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
936
+ "BaseResponse", ""]);
937
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
938
+ case 2:
939
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
940
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
941
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
942
+ return [4, response.body.text()];
943
+ case 3:
944
+ body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
945
+ "BaseResponse", ""]);
946
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
947
+ case 4:
948
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
949
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
950
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
951
+ return [4, response.body.text()];
952
+ case 5:
953
+ body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
954
+ "BaseResponse", ""]);
955
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
956
+ case 6:
957
+ if (!(0, util_1.isCodeInRange)("402", response.httpStatusCode)) return [3, 8];
958
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
959
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
960
+ return [4, response.body.text()];
961
+ case 7:
962
+ body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
963
+ "BaseResponse", ""]);
964
+ throw new exception_1.ApiException(response.httpStatusCode, "Payment Required", body, response.headers);
965
+ case 8:
966
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
967
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
968
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
969
+ return [4, response.body.text()];
970
+ case 9:
971
+ body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
972
+ "BaseResponse", ""]);
973
+ throw new exception_1.ApiException(response.httpStatusCode, "Conflict", body, response.headers);
974
+ case 10:
975
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 12];
976
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
977
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
978
+ return [4, response.body.text()];
979
+ case 11:
980
+ body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
981
+ "BaseResponse", ""]);
982
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
983
+ case 12:
984
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
985
+ _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
986
+ _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
987
+ return [4, response.body.text()];
988
+ case 13:
989
+ body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
990
+ "BaseResponse", ""]);
991
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
992
+ case 14:
993
+ _4 = exception_1.ApiException.bind;
994
+ _5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
995
+ return [4, response.getBodyAsAny()];
996
+ case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
997
+ }
998
+ });
999
+ });
1000
+ };
1001
+ FunctionsAIDecompilationApiResponseProcessor.prototype.deleteAiDecompilationCommentWithHttpInfo = function (response) {
1002
+ return __awaiter(this, void 0, void 0, function () {
1003
+ 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;
1004
+ return __generator(this, function (_y) {
1005
+ switch (_y.label) {
1006
+ case 0:
1007
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1008
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1009
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1010
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1011
+ return [4, response.body.text()];
1012
+ case 1:
1013
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1014
+ "BaseResponseBool", ""]);
1015
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1016
+ case 2:
1017
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1018
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1019
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1020
+ return [4, response.body.text()];
1021
+ case 3:
1022
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1023
+ "BaseResponse", ""]);
1024
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1025
+ case 4:
1026
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
1027
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1028
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1029
+ return [4, response.body.text()];
1030
+ case 5:
1031
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1032
+ "BaseResponse", ""]);
1033
+ throw new exception_1.ApiException(response.httpStatusCode, "You can only delete your own comments", body, response.headers);
1034
+ case 6:
1035
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 8];
1036
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1037
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1038
+ return [4, response.body.text()];
1039
+ case 7:
1040
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1041
+ "BaseResponse", ""]);
1042
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
1043
+ case 8:
1044
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1045
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1046
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1047
+ return [4, response.body.text()];
1048
+ case 9:
1049
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1050
+ "BaseResponseBool", ""]);
1051
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1052
+ case 10:
1053
+ _w = exception_1.ApiException.bind;
1054
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1055
+ return [4, response.getBodyAsAny()];
1056
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1057
+ }
1058
+ });
1059
+ });
1060
+ };
1061
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationWithHttpInfo = function (response) {
1062
+ return __awaiter(this, void 0, void 0, function () {
1063
+ 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;
1064
+ return __generator(this, function (_2) {
1065
+ switch (_2.label) {
1066
+ case 0:
1067
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1068
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1069
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1070
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1071
+ return [4, response.body.text()];
1072
+ case 1:
1073
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1074
+ "DecompilationData", ""]);
1075
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1076
+ case 2:
1077
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
1078
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1079
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1080
+ return [4, response.body.text()];
1081
+ case 3:
1082
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1083
+ "APIError", ""]);
1084
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1085
+ case 4:
1086
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1087
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1088
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1089
+ return [4, response.body.text()];
1090
+ case 5:
1091
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1092
+ "APIError", ""]);
1093
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1094
+ case 6:
1095
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1096
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1097
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1098
+ return [4, response.body.text()];
1099
+ case 7:
1100
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1101
+ "APIError", ""]);
1102
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1103
+ case 8:
1104
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1105
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1106
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1107
+ return [4, response.body.text()];
1108
+ case 9:
1109
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1110
+ "APIError", ""]);
1111
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1112
+ case 10:
1113
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1114
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1115
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1116
+ return [4, response.body.text()];
1117
+ case 11:
1118
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1119
+ "DecompilationData", ""]);
1120
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1121
+ case 12:
1122
+ _0 = exception_1.ApiException.bind;
1123
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1124
+ return [4, response.getBodyAsAny()];
1125
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1126
+ }
1127
+ });
1128
+ });
1129
+ };
1130
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationCommentsWithHttpInfo = function (response) {
1131
+ return __awaiter(this, void 0, void 0, function () {
1132
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1133
+ return __generator(this, function (_q) {
1134
+ switch (_q.label) {
1135
+ case 0:
1136
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1137
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1138
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1139
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1140
+ return [4, response.body.text()];
1141
+ case 1:
1142
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1143
+ "BaseResponseListCommentResponse", ""]);
1144
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1145
+ case 2:
1146
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1147
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1148
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1149
+ return [4, response.body.text()];
1150
+ case 3:
1151
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1152
+ "BaseResponse", ""]);
1153
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1154
+ case 4:
1155
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1156
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1157
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1158
+ return [4, response.body.text()];
1159
+ case 5:
1160
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1161
+ "BaseResponseListCommentResponse", ""]);
1162
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1163
+ case 6:
1164
+ _o = exception_1.ApiException.bind;
1165
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1166
+ return [4, response.getBodyAsAny()];
1167
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1168
+ }
1169
+ });
1170
+ });
1171
+ };
1172
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationInlineCommentsWithHttpInfo = function (response) {
1173
+ return __awaiter(this, void 0, void 0, function () {
1174
+ 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;
1175
+ return __generator(this, function (_2) {
1176
+ switch (_2.label) {
1177
+ case 0:
1178
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1179
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1180
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1181
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1182
+ return [4, response.body.text()];
1183
+ case 1:
1184
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1185
+ "CommentsData", ""]);
1186
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1187
+ case 2:
1188
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
1189
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1190
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1191
+ return [4, response.body.text()];
1192
+ case 3:
1193
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1194
+ "APIError", ""]);
1195
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1196
+ case 4:
1197
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1198
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1199
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1200
+ return [4, response.body.text()];
1201
+ case 5:
1202
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1203
+ "APIError", ""]);
1204
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1205
+ case 6:
1206
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1207
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1208
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1209
+ return [4, response.body.text()];
1210
+ case 7:
1211
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1212
+ "APIError", ""]);
1213
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1214
+ case 8:
1215
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1216
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1217
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1218
+ return [4, response.body.text()];
1219
+ case 9:
1220
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1221
+ "APIError", ""]);
1222
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1223
+ case 10:
1224
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1225
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1226
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1227
+ return [4, response.body.text()];
1228
+ case 11:
1229
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1230
+ "CommentsData", ""]);
1231
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1232
+ case 12:
1233
+ _0 = exception_1.ApiException.bind;
1234
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1235
+ return [4, response.getBodyAsAny()];
1236
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1237
+ }
1238
+ });
1239
+ });
1240
+ };
1241
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationInlineCommentsStatusWithHttpInfo = function (response) {
1242
+ return __awaiter(this, void 0, void 0, function () {
1243
+ 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;
1244
+ return __generator(this, function (_2) {
1245
+ switch (_2.label) {
1246
+ case 0:
1247
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1248
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1249
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1250
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1251
+ return [4, response.body.text()];
1252
+ case 1:
1253
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1254
+ "WorkflowProgress", ""]);
1255
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1256
+ case 2:
1257
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
1258
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1259
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1260
+ return [4, response.body.text()];
1261
+ case 3:
1262
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1263
+ "APIError", ""]);
1264
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1265
+ case 4:
1266
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1267
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1268
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1269
+ return [4, response.body.text()];
1270
+ case 5:
1271
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1272
+ "APIError", ""]);
1273
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1274
+ case 6:
1275
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1276
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1277
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1278
+ return [4, response.body.text()];
1279
+ case 7:
1280
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1281
+ "APIError", ""]);
1282
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1283
+ case 8:
1284
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1285
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1286
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1287
+ return [4, response.body.text()];
1288
+ case 9:
1289
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1290
+ "APIError", ""]);
1291
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1292
+ case 10:
1293
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1294
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1295
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1296
+ return [4, response.body.text()];
1297
+ case 11:
1298
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1299
+ "WorkflowProgress", ""]);
1300
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1301
+ case 12:
1302
+ _0 = exception_1.ApiException.bind;
1303
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1304
+ return [4, response.getBodyAsAny()];
1305
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1306
+ }
1307
+ });
1308
+ });
1309
+ };
1310
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationRatingWithHttpInfo = function (response) {
1311
+ return __awaiter(this, void 0, void 0, function () {
1312
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1313
+ return __generator(this, function (_q) {
1314
+ switch (_q.label) {
1315
+ case 0:
1316
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1317
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1318
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1319
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1320
+ return [4, response.body.text()];
1321
+ case 1:
1322
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1323
+ "BaseResponseUnionGetAiDecompilationRatingResponseNoneType", ""]);
1324
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1325
+ case 2:
1326
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1327
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1328
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1329
+ return [4, response.body.text()];
1330
+ case 3:
1331
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1332
+ "BaseResponse", ""]);
1333
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1334
+ case 4:
1335
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1336
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1337
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1338
+ return [4, response.body.text()];
1339
+ case 5:
1340
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1341
+ "BaseResponseUnionGetAiDecompilationRatingResponseNoneType", ""]);
1342
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1343
+ case 6:
1344
+ _o = exception_1.ApiException.bind;
1345
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1346
+ return [4, response.getBodyAsAny()];
1347
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1348
+ }
1349
+ });
1350
+ });
1351
+ };
1352
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationStatusWithHttpInfo = function (response) {
1353
+ return __awaiter(this, void 0, void 0, function () {
1354
+ 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;
1355
+ return __generator(this, function (_2) {
1356
+ switch (_2.label) {
1357
+ case 0:
1358
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1359
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1360
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1361
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1362
+ return [4, response.body.text()];
1363
+ case 1:
1364
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1365
+ "WorkflowProgress", ""]);
1366
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1367
+ case 2:
1368
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
1369
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1370
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1371
+ return [4, response.body.text()];
1372
+ case 3:
1373
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1374
+ "APIError", ""]);
1375
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1376
+ case 4:
1377
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1378
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1379
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1380
+ return [4, response.body.text()];
1381
+ case 5:
1382
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1383
+ "APIError", ""]);
1384
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1385
+ case 6:
1386
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1387
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1388
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1389
+ return [4, response.body.text()];
1390
+ case 7:
1391
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1392
+ "APIError", ""]);
1393
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1394
+ case 8:
1395
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1396
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1397
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1398
+ return [4, response.body.text()];
1399
+ case 9:
1400
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1401
+ "APIError", ""]);
1402
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1403
+ case 10:
1404
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1405
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1406
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1407
+ return [4, response.body.text()];
1408
+ case 11:
1409
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1410
+ "WorkflowProgress", ""]);
1411
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1412
+ case 12:
1413
+ _0 = exception_1.ApiException.bind;
1414
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1415
+ return [4, response.getBodyAsAny()];
1416
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1417
+ }
1418
+ });
1419
+ });
1420
+ };
1421
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationSummaryWithHttpInfo = function (response) {
1422
+ return __awaiter(this, void 0, void 0, function () {
1423
+ 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;
1424
+ return __generator(this, function (_2) {
1425
+ switch (_2.label) {
1426
+ case 0:
1427
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1428
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1429
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1430
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1431
+ return [4, response.body.text()];
1432
+ case 1:
1433
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1434
+ "SummaryData", ""]);
1435
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1436
+ case 2:
1437
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
1438
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1439
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1440
+ return [4, response.body.text()];
1441
+ case 3:
1442
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1443
+ "APIError", ""]);
1444
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1445
+ case 4:
1446
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1447
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1448
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1449
+ return [4, response.body.text()];
1450
+ case 5:
1451
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1452
+ "APIError", ""]);
1453
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1454
+ case 6:
1455
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1456
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1457
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1458
+ return [4, response.body.text()];
1459
+ case 7:
1460
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1461
+ "APIError", ""]);
1462
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1463
+ case 8:
1464
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1465
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1466
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1467
+ return [4, response.body.text()];
1468
+ case 9:
1469
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1470
+ "APIError", ""]);
1471
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1472
+ case 10:
1473
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1474
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1475
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1476
+ return [4, response.body.text()];
1477
+ case 11:
1478
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1479
+ "SummaryData", ""]);
1480
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1481
+ case 12:
1482
+ _0 = exception_1.ApiException.bind;
1483
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1484
+ return [4, response.getBodyAsAny()];
1485
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
463
1486
  }
464
1487
  });
465
1488
  });
466
1489
  };
467
- FunctionsAIDecompilationApiResponseProcessor.prototype.createAiDecompilationTaskWithHttpInfo = function (response) {
1490
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationSummaryStatusWithHttpInfo = function (response) {
468
1491
  return __awaiter(this, void 0, void 0, function () {
469
- 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;
470
- return __generator(this, function (_6) {
471
- switch (_6.label) {
1492
+ 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;
1493
+ return __generator(this, function (_2) {
1494
+ switch (_2.label) {
472
1495
  case 0:
473
1496
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
474
- if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
1497
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
475
1498
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
476
1499
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
477
1500
  return [4, response.body.text()];
478
1501
  case 1:
479
- body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
480
- "BaseResponse", ""]);
1502
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1503
+ "WorkflowProgress", ""]);
481
1504
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
482
1505
  case 2:
483
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1506
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
484
1507
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
485
1508
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
486
1509
  return [4, response.body.text()];
487
1510
  case 3:
488
- body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
489
- "BaseResponse", ""]);
490
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1511
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1512
+ "APIError", ""]);
1513
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
491
1514
  case 4:
492
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
1515
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
493
1516
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
494
1517
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
495
1518
  return [4, response.body.text()];
496
1519
  case 5:
497
- body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
498
- "BaseResponse", ""]);
499
- throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1520
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1521
+ "APIError", ""]);
1522
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
500
1523
  case 6:
501
- if (!(0, util_1.isCodeInRange)("402", response.httpStatusCode)) return [3, 8];
1524
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
502
1525
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
503
1526
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
504
1527
  return [4, response.body.text()];
505
1528
  case 7:
506
- body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
507
- "BaseResponse", ""]);
508
- throw new exception_1.ApiException(response.httpStatusCode, "Payment Required", body, response.headers);
1529
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1530
+ "APIError", ""]);
1531
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
509
1532
  case 8:
510
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
1533
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
511
1534
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
512
1535
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
513
1536
  return [4, response.body.text()];
514
1537
  case 9:
515
- body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
516
- "BaseResponse", ""]);
517
- throw new exception_1.ApiException(response.httpStatusCode, "Conflict", body, response.headers);
1538
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1539
+ "APIError", ""]);
1540
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
518
1541
  case 10:
519
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 12];
1542
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
520
1543
  _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
521
1544
  _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
522
1545
  return [4, response.body.text()];
523
1546
  case 11:
524
- body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
525
- "BaseResponse", ""]);
526
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
527
- case 12:
528
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
529
- _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
530
- _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
531
- return [4, response.body.text()];
532
- case 13:
533
- body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
534
- "BaseResponse", ""]);
1547
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1548
+ "WorkflowProgress", ""]);
535
1549
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
536
- case 14:
537
- _4 = exception_1.ApiException.bind;
538
- _5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1550
+ case 12:
1551
+ _0 = exception_1.ApiException.bind;
1552
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
539
1553
  return [4, response.getBodyAsAny()];
540
- case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
1554
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
541
1555
  }
542
1556
  });
543
1557
  });
544
1558
  };
545
- FunctionsAIDecompilationApiResponseProcessor.prototype.deleteAiDecompilationCommentWithHttpInfo = function (response) {
1559
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTaskResultWithHttpInfo = function (response) {
546
1560
  return __awaiter(this, void 0, void 0, function () {
547
- 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;
548
- return __generator(this, function (_y) {
549
- switch (_y.label) {
1561
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1562
+ return __generator(this, function (_u) {
1563
+ switch (_u.label) {
550
1564
  case 0:
551
1565
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
552
1566
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -554,8 +1568,8 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
554
1568
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
555
1569
  return [4, response.body.text()];
556
1570
  case 1:
557
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
558
- "BaseResponseBool", ""]);
1571
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1572
+ "BaseResponseGetAiDecompilationTask", ""]);
559
1573
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
560
1574
  case 2:
561
1575
  if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
@@ -563,7 +1577,7 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
563
1577
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
564
1578
  return [4, response.body.text()];
565
1579
  case 3:
566
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1580
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
567
1581
  "BaseResponse", ""]);
568
1582
  throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
569
1583
  case 4:
@@ -572,37 +1586,28 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
572
1586
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
573
1587
  return [4, response.body.text()];
574
1588
  case 5:
575
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1589
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
576
1590
  "BaseResponse", ""]);
577
- throw new exception_1.ApiException(response.httpStatusCode, "You can only delete your own comments", body, response.headers);
1591
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
578
1592
  case 6:
579
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 8];
1593
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
580
1594
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
581
1595
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
582
1596
  return [4, response.body.text()];
583
1597
  case 7:
584
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
585
- "BaseResponse", ""]);
586
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
587
- case 8:
588
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
589
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
590
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
591
- return [4, response.body.text()];
592
- case 9:
593
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
594
- "BaseResponseBool", ""]);
1598
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1599
+ "BaseResponseGetAiDecompilationTask", ""]);
595
1600
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
596
- case 10:
597
- _w = exception_1.ApiException.bind;
598
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1601
+ case 8:
1602
+ _s = exception_1.ApiException.bind;
1603
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
599
1604
  return [4, response.getBodyAsAny()];
600
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1605
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
601
1606
  }
602
1607
  });
603
1608
  });
604
1609
  };
605
- FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationCommentsWithHttpInfo = function (response) {
1610
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTaskStatusWithHttpInfo = function (response) {
606
1611
  return __awaiter(this, void 0, void 0, function () {
607
1612
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
608
1613
  return __generator(this, function (_q) {
@@ -615,7 +1620,7 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
615
1620
  return [4, response.body.text()];
616
1621
  case 1:
617
1622
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
618
- "BaseResponseListCommentResponse", ""]);
1623
+ "BaseResponseFunctionTaskResponse", ""]);
619
1624
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
620
1625
  case 2:
621
1626
  if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
@@ -633,7 +1638,7 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
633
1638
  return [4, response.body.text()];
634
1639
  case 5:
635
1640
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
636
- "BaseResponseListCommentResponse", ""]);
1641
+ "BaseResponseFunctionTaskResponse", ""]);
637
1642
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
638
1643
  case 6:
639
1644
  _o = exception_1.ApiException.bind;
@@ -644,11 +1649,11 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
644
1649
  });
645
1650
  });
646
1651
  };
647
- FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationRatingWithHttpInfo = function (response) {
1652
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTokenisedWithHttpInfo = function (response) {
648
1653
  return __awaiter(this, void 0, void 0, function () {
649
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
650
- return __generator(this, function (_q) {
651
- switch (_q.label) {
1654
+ 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;
1655
+ return __generator(this, function (_2) {
1656
+ switch (_2.label) {
652
1657
  case 0:
653
1658
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
654
1659
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -656,125 +1661,197 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
656
1661
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
657
1662
  return [4, response.body.text()];
658
1663
  case 1:
659
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
660
- "BaseResponseUnionGetAiDecompilationRatingResponseNoneType", ""]);
1664
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1665
+ "TokenisedData", ""]);
661
1666
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
662
1667
  case 2:
663
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1668
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
664
1669
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
665
1670
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
666
1671
  return [4, response.body.text()];
667
1672
  case 3:
668
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
669
- "BaseResponse", ""]);
670
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1673
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1674
+ "APIError", ""]);
1675
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
671
1676
  case 4:
672
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1677
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
673
1678
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
674
1679
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
675
1680
  return [4, response.body.text()];
676
1681
  case 5:
677
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
678
- "BaseResponseUnionGetAiDecompilationRatingResponseNoneType", ""]);
679
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1682
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1683
+ "APIError", ""]);
1684
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
680
1685
  case 6:
681
- _o = exception_1.ApiException.bind;
682
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1686
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1687
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1688
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1689
+ return [4, response.body.text()];
1690
+ case 7:
1691
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1692
+ "APIError", ""]);
1693
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1694
+ case 8:
1695
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1696
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1697
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1698
+ return [4, response.body.text()];
1699
+ case 9:
1700
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1701
+ "APIError", ""]);
1702
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1703
+ case 10:
1704
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1705
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1706
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1707
+ return [4, response.body.text()];
1708
+ case 11:
1709
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1710
+ "TokenisedData", ""]);
1711
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1712
+ case 12:
1713
+ _0 = exception_1.ApiException.bind;
1714
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
683
1715
  return [4, response.getBodyAsAny()];
684
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1716
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
685
1717
  }
686
1718
  });
687
1719
  });
688
1720
  };
689
- FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTaskResultWithHttpInfo = function (response) {
1721
+ FunctionsAIDecompilationApiResponseProcessor.prototype.regenerateAiDecompilationInlineCommentsWithHttpInfo = function (response) {
690
1722
  return __awaiter(this, void 0, void 0, function () {
691
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
692
- return __generator(this, function (_u) {
693
- switch (_u.label) {
1723
+ 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;
1724
+ return __generator(this, function (_2) {
1725
+ switch (_2.label) {
694
1726
  case 0:
695
1727
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
696
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1728
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
697
1729
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
698
1730
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
699
1731
  return [4, response.body.text()];
700
1732
  case 1:
701
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
702
- "BaseResponseGetAiDecompilationTask", ""]);
1733
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1734
+ "RegenerateOutputBody", ""]);
703
1735
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
704
1736
  case 2:
705
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1737
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
706
1738
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
707
1739
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
708
1740
  return [4, response.body.text()];
709
1741
  case 3:
710
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
711
- "BaseResponse", ""]);
712
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1742
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1743
+ "APIError", ""]);
1744
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
713
1745
  case 4:
714
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
1746
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
715
1747
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
716
1748
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
717
1749
  return [4, response.body.text()];
718
1750
  case 5:
719
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
720
- "BaseResponse", ""]);
721
- throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1751
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1752
+ "APIError", ""]);
1753
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
722
1754
  case 6:
723
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1755
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
724
1756
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
725
1757
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
726
1758
  return [4, response.body.text()];
727
1759
  case 7:
728
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
729
- "BaseResponseGetAiDecompilationTask", ""]);
730
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1760
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1761
+ "APIError", ""]);
1762
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
731
1763
  case 8:
732
- _s = exception_1.ApiException.bind;
733
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1764
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1765
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1766
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1767
+ return [4, response.body.text()];
1768
+ case 9:
1769
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1770
+ "APIError", ""]);
1771
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1772
+ case 10:
1773
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1774
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1775
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1776
+ return [4, response.body.text()];
1777
+ case 11:
1778
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1779
+ "RegenerateOutputBody", ""]);
1780
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1781
+ case 12:
1782
+ _0 = exception_1.ApiException.bind;
1783
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
734
1784
  return [4, response.getBodyAsAny()];
735
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1785
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
736
1786
  }
737
1787
  });
738
1788
  });
739
1789
  };
740
- FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTaskStatusWithHttpInfo = function (response) {
1790
+ FunctionsAIDecompilationApiResponseProcessor.prototype.regenerateAiDecompilationSummaryWithHttpInfo = function (response) {
741
1791
  return __awaiter(this, void 0, void 0, function () {
742
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
743
- return __generator(this, function (_q) {
744
- switch (_q.label) {
1792
+ 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;
1793
+ return __generator(this, function (_2) {
1794
+ switch (_2.label) {
745
1795
  case 0:
746
1796
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
747
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1797
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
748
1798
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
749
1799
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
750
1800
  return [4, response.body.text()];
751
1801
  case 1:
752
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
753
- "BaseResponseFunctionTaskResponse", ""]);
1802
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1803
+ "RegenerateOutputBody", ""]);
754
1804
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
755
1805
  case 2:
756
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1806
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
757
1807
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
758
1808
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
759
1809
  return [4, response.body.text()];
760
1810
  case 3:
761
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
762
- "BaseResponse", ""]);
763
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1811
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1812
+ "APIError", ""]);
1813
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
764
1814
  case 4:
765
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1815
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
766
1816
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
767
1817
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
768
1818
  return [4, response.body.text()];
769
1819
  case 5:
770
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
771
- "BaseResponseFunctionTaskResponse", ""]);
772
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1820
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1821
+ "APIError", ""]);
1822
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
773
1823
  case 6:
774
- _o = exception_1.ApiException.bind;
775
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1824
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1825
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1826
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1827
+ return [4, response.body.text()];
1828
+ case 7:
1829
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1830
+ "APIError", ""]);
1831
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1832
+ case 8:
1833
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1834
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1835
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1836
+ return [4, response.body.text()];
1837
+ case 9:
1838
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1839
+ "APIError", ""]);
1840
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1841
+ case 10:
1842
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1843
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1844
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1845
+ return [4, response.body.text()];
1846
+ case 11:
1847
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1848
+ "RegenerateOutputBody", ""]);
1849
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1850
+ case 12:
1851
+ _0 = exception_1.ApiException.bind;
1852
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
776
1853
  return [4, response.getBodyAsAny()];
777
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1854
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
778
1855
  }
779
1856
  });
780
1857
  });
@@ -839,6 +1916,84 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
839
1916
  });
840
1917
  });
841
1918
  };
1919
+ FunctionsAIDecompilationApiResponseProcessor.prototype.upsertAiDecompilationOverridesWithHttpInfo = function (response) {
1920
+ return __awaiter(this, void 0, void 0, function () {
1921
+ 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;
1922
+ return __generator(this, function (_6) {
1923
+ switch (_6.label) {
1924
+ case 0:
1925
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1926
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1927
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1928
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1929
+ return [4, response.body.text()];
1930
+ case 1:
1931
+ body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
1932
+ "UpsertOverridesData", ""]);
1933
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1934
+ case 2:
1935
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1936
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1937
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1938
+ return [4, response.body.text()];
1939
+ case 3:
1940
+ body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
1941
+ "APIError", ""]);
1942
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
1943
+ case 4:
1944
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
1945
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1946
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1947
+ return [4, response.body.text()];
1948
+ case 5:
1949
+ body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
1950
+ "APIError", ""]);
1951
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1952
+ case 6:
1953
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 8];
1954
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1955
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1956
+ return [4, response.body.text()];
1957
+ case 7:
1958
+ body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
1959
+ "APIError", ""]);
1960
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1961
+ case 8:
1962
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 10];
1963
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1964
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1965
+ return [4, response.body.text()];
1966
+ case 9:
1967
+ body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
1968
+ "APIError", ""]);
1969
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1970
+ case 10:
1971
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 12];
1972
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1973
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1974
+ return [4, response.body.text()];
1975
+ case 11:
1976
+ body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
1977
+ "APIError", ""]);
1978
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1979
+ case 12:
1980
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
1981
+ _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
1982
+ _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
1983
+ return [4, response.body.text()];
1984
+ case 13:
1985
+ body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
1986
+ "UpsertOverridesData", ""]);
1987
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1988
+ case 14:
1989
+ _4 = exception_1.ApiException.bind;
1990
+ _5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1991
+ return [4, response.getBodyAsAny()];
1992
+ case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
1993
+ }
1994
+ });
1995
+ });
1996
+ };
842
1997
  FunctionsAIDecompilationApiResponseProcessor.prototype.upsertAiDecompilationRatingWithHttpInfo = function (response) {
843
1998
  return __awaiter(this, void 0, void 0, function () {
844
1999
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;