@revengai/sdk 3.81.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 (245) hide show
  1. package/README.md +28 -0
  2. package/dist/apis/AnalysesBulkActionsApi.d.ts +2 -2
  3. package/dist/apis/AnalysesBulkActionsApi.js +2 -38
  4. package/dist/apis/AnalysesBulkActionsApi.js.map +1 -1
  5. package/dist/apis/AnalysesCommentsApi.d.ts +4 -4
  6. package/dist/apis/AnalysesCommentsApi.js +4 -76
  7. package/dist/apis/AnalysesCommentsApi.js.map +1 -1
  8. package/dist/apis/AnalysesCoreApi.d.ts +10 -10
  9. package/dist/apis/AnalysesCoreApi.js +10 -190
  10. package/dist/apis/AnalysesCoreApi.js.map +1 -1
  11. package/dist/apis/AuthenticationUsersApi.d.ts +1 -1
  12. package/dist/apis/AuthenticationUsersApi.js +1 -19
  13. package/dist/apis/AuthenticationUsersApi.js.map +1 -1
  14. package/dist/apis/BinariesApi.d.ts +8 -8
  15. package/dist/apis/BinariesApi.js +8 -152
  16. package/dist/apis/BinariesApi.js.map +1 -1
  17. package/dist/apis/FirmwareApi.d.ts +1 -1
  18. package/dist/apis/FirmwareApi.js +1 -19
  19. package/dist/apis/FirmwareApi.js.map +1 -1
  20. package/dist/apis/FunctionsAIDecompilationApi.d.ts +35 -4
  21. package/dist/apis/FunctionsAIDecompilationApi.js +1389 -306
  22. package/dist/apis/FunctionsAIDecompilationApi.js.map +1 -1
  23. package/dist/apis/ReportsApi.d.ts +15 -0
  24. package/dist/apis/ReportsApi.js +400 -0
  25. package/dist/apis/ReportsApi.js.map +1 -0
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +2 -1
  28. package/dist/index.js.map +1 -1
  29. package/dist/models/AiDecompilationRating.d.ts +2 -1
  30. package/dist/models/AiDecompilationRating.js +1 -0
  31. package/dist/models/AiDecompilationRating.js.map +1 -1
  32. package/dist/models/AiDecompilationTaskStatus.d.ts +2 -1
  33. package/dist/models/AiDecompilationTaskStatus.js +1 -0
  34. package/dist/models/AiDecompilationTaskStatus.js.map +1 -1
  35. package/dist/models/AnalysisScope.d.ts +2 -1
  36. package/dist/models/AnalysisScope.js +1 -0
  37. package/dist/models/AnalysisScope.js.map +1 -1
  38. package/dist/models/AnalysisUpdateRequest.d.ts +2 -1
  39. package/dist/models/AnalysisUpdateRequest.js +1 -0
  40. package/dist/models/AnalysisUpdateRequest.js.map +1 -1
  41. package/dist/models/AppApiRestV2AgentSchemaCapability.d.ts +2 -1
  42. package/dist/models/AppApiRestV2AgentSchemaCapability.js +1 -0
  43. package/dist/models/AppApiRestV2AgentSchemaCapability.js.map +1 -1
  44. package/dist/models/AppApiRestV2AnalysesEnumsOrderBy.d.ts +2 -1
  45. package/dist/models/AppApiRestV2AnalysesEnumsOrderBy.js +1 -0
  46. package/dist/models/AppApiRestV2AnalysesEnumsOrderBy.js.map +1 -1
  47. package/dist/models/AppApiRestV2CollectionsEnumsOrderBy.d.ts +2 -1
  48. package/dist/models/AppApiRestV2CollectionsEnumsOrderBy.js +1 -0
  49. package/dist/models/AppApiRestV2CollectionsEnumsOrderBy.js.map +1 -1
  50. package/dist/models/BinariesTaskStatus.d.ts +2 -1
  51. package/dist/models/BinariesTaskStatus.js +1 -0
  52. package/dist/models/BinariesTaskStatus.js.map +1 -1
  53. package/dist/models/BinaryTaskStatus.d.ts +2 -1
  54. package/dist/models/BinaryTaskStatus.js +1 -0
  55. package/dist/models/BinaryTaskStatus.js.map +1 -1
  56. package/dist/models/CollectionScope.d.ts +2 -1
  57. package/dist/models/CollectionScope.js +1 -0
  58. package/dist/models/CollectionScope.js.map +1 -1
  59. package/dist/models/CommentsData.d.ts +29 -0
  60. package/dist/models/CommentsData.js +42 -0
  61. package/dist/models/CommentsData.js.map +1 -0
  62. package/dist/models/CreateAIDecompOutputBody.d.ts +21 -0
  63. package/dist/models/CreateAIDecompOutputBody.js +29 -0
  64. package/dist/models/CreateAIDecompOutputBody.js.map +1 -0
  65. package/dist/models/DecompilationData.d.ts +30 -0
  66. package/dist/models/DecompilationData.js +44 -0
  67. package/dist/models/DecompilationData.js.map +1 -0
  68. package/dist/models/DynamicExecutionStatus.d.ts +2 -1
  69. package/dist/models/DynamicExecutionStatus.js +1 -0
  70. package/dist/models/DynamicExecutionStatus.js.map +1 -1
  71. package/dist/models/ErrorBody.d.ts +3 -1
  72. package/dist/models/ErrorBody.js +2 -0
  73. package/dist/models/ErrorBody.js.map +1 -1
  74. package/dist/models/EventCONTEXTCOMPACTED.d.ts +2 -1
  75. package/dist/models/EventCONTEXTCOMPACTED.js +1 -0
  76. package/dist/models/EventCONTEXTCOMPACTED.js.map +1 -1
  77. package/dist/models/EventRUNCANCELLED.d.ts +2 -1
  78. package/dist/models/EventRUNCANCELLED.js +1 -0
  79. package/dist/models/EventRUNCANCELLED.js.map +1 -1
  80. package/dist/models/EventRUNERROR.d.ts +2 -1
  81. package/dist/models/EventRUNERROR.js +1 -0
  82. package/dist/models/EventRUNERROR.js.map +1 -1
  83. package/dist/models/EventRUNFINISHED.d.ts +2 -1
  84. package/dist/models/EventRUNFINISHED.js +1 -0
  85. package/dist/models/EventRUNFINISHED.js.map +1 -1
  86. package/dist/models/EventRUNSTARTED.d.ts +2 -1
  87. package/dist/models/EventRUNSTARTED.js +1 -0
  88. package/dist/models/EventRUNSTARTED.js.map +1 -1
  89. package/dist/models/EventSTEPFINISHED.d.ts +2 -1
  90. package/dist/models/EventSTEPFINISHED.js +1 -0
  91. package/dist/models/EventSTEPFINISHED.js.map +1 -1
  92. package/dist/models/EventSTEPSTARTED.d.ts +2 -1
  93. package/dist/models/EventSTEPSTARTED.js +1 -0
  94. package/dist/models/EventSTEPSTARTED.js.map +1 -1
  95. package/dist/models/EventTEXTMESSAGECONTENT.d.ts +2 -1
  96. package/dist/models/EventTEXTMESSAGECONTENT.js +1 -0
  97. package/dist/models/EventTEXTMESSAGECONTENT.js.map +1 -1
  98. package/dist/models/EventTEXTMESSAGEEND.d.ts +2 -1
  99. package/dist/models/EventTEXTMESSAGEEND.js +1 -0
  100. package/dist/models/EventTEXTMESSAGEEND.js.map +1 -1
  101. package/dist/models/EventTEXTMESSAGESTART.d.ts +2 -1
  102. package/dist/models/EventTEXTMESSAGESTART.js +1 -0
  103. package/dist/models/EventTEXTMESSAGESTART.js.map +1 -1
  104. package/dist/models/EventTITLEUPDATED.d.ts +2 -1
  105. package/dist/models/EventTITLEUPDATED.js +1 -0
  106. package/dist/models/EventTITLEUPDATED.js.map +1 -1
  107. package/dist/models/EventTOOLCALLARGSDELTA.d.ts +2 -1
  108. package/dist/models/EventTOOLCALLARGSDELTA.js +1 -0
  109. package/dist/models/EventTOOLCALLARGSDELTA.js.map +1 -1
  110. package/dist/models/EventTOOLCALLEND.d.ts +2 -1
  111. package/dist/models/EventTOOLCALLEND.js +1 -0
  112. package/dist/models/EventTOOLCALLEND.js.map +1 -1
  113. package/dist/models/EventTOOLCALLRESULT.d.ts +2 -1
  114. package/dist/models/EventTOOLCALLRESULT.js +1 -0
  115. package/dist/models/EventTOOLCALLRESULT.js.map +1 -1
  116. package/dist/models/EventTOOLCALLSTART.d.ts +2 -1
  117. package/dist/models/EventTOOLCALLSTART.js +1 -0
  118. package/dist/models/EventTOOLCALLSTART.js.map +1 -1
  119. package/dist/models/EventTOOLCONFIRMATIONREQUIRED.d.ts +2 -1
  120. package/dist/models/EventTOOLCONFIRMATIONREQUIRED.js +1 -0
  121. package/dist/models/EventTOOLCONFIRMATIONREQUIRED.js.map +1 -1
  122. package/dist/models/FileFormat.d.ts +2 -1
  123. package/dist/models/FileFormat.js +1 -0
  124. package/dist/models/FileFormat.js.map +1 -1
  125. package/dist/models/Filters.d.ts +2 -1
  126. package/dist/models/Filters.js +1 -0
  127. package/dist/models/Filters.js.map +1 -1
  128. package/dist/models/FunctionListItem.d.ts +3 -1
  129. package/dist/models/FunctionListItem.js +2 -0
  130. package/dist/models/FunctionListItem.js.map +1 -1
  131. package/dist/models/FunctionMatchingFilters.d.ts +2 -1
  132. package/dist/models/FunctionMatchingFilters.js +1 -0
  133. package/dist/models/FunctionMatchingFilters.js.map +1 -1
  134. package/dist/models/FunctionSourceType.d.ts +3 -1
  135. package/dist/models/FunctionSourceType.js +2 -0
  136. package/dist/models/FunctionSourceType.js.map +1 -1
  137. package/dist/models/FunctionTaskStatus.d.ts +2 -1
  138. package/dist/models/FunctionTaskStatus.js +1 -0
  139. package/dist/models/FunctionTaskStatus.js.map +1 -1
  140. package/dist/models/GeneratePDFOutputBody.d.ts +22 -0
  141. package/dist/models/GeneratePDFOutputBody.js +35 -0
  142. package/dist/models/GeneratePDFOutputBody.js.map +1 -0
  143. package/dist/models/GetMeResponse.d.ts +2 -1
  144. package/dist/models/GetMeResponse.js +1 -0
  145. package/dist/models/GetMeResponse.js.map +1 -1
  146. package/dist/models/IOC.d.ts +2 -1
  147. package/dist/models/IOC.js +1 -0
  148. package/dist/models/IOC.js.map +1 -1
  149. package/dist/models/ISA.d.ts +2 -1
  150. package/dist/models/ISA.js +1 -0
  151. package/dist/models/ISA.js.map +1 -1
  152. package/dist/models/InlineComment.d.ts +21 -0
  153. package/dist/models/InlineComment.js +29 -0
  154. package/dist/models/InlineComment.js.map +1 -0
  155. package/dist/models/ModelName.d.ts +2 -1
  156. package/dist/models/ModelName.js +1 -0
  157. package/dist/models/ModelName.js.map +1 -1
  158. package/dist/models/NameSourceType.d.ts +3 -1
  159. package/dist/models/NameSourceType.js +2 -0
  160. package/dist/models/NameSourceType.js.map +1 -1
  161. package/dist/models/NumericAddr.d.ts +20 -0
  162. package/dist/models/NumericAddr.js +23 -0
  163. package/dist/models/NumericAddr.js.map +1 -0
  164. package/dist/models/ObjectSerializer.d.ts +14 -0
  165. package/dist/models/ObjectSerializer.js +48 -0
  166. package/dist/models/ObjectSerializer.js.map +1 -1
  167. package/dist/models/Order.d.ts +2 -1
  168. package/dist/models/Order.js +1 -0
  169. package/dist/models/Order.js.map +1 -1
  170. package/dist/models/Platform.d.ts +2 -1
  171. package/dist/models/Platform.js +1 -0
  172. package/dist/models/Platform.js.map +1 -1
  173. package/dist/models/ProgressMessage.d.ts +29 -0
  174. package/dist/models/ProgressMessage.js +48 -0
  175. package/dist/models/ProgressMessage.js.map +1 -0
  176. package/dist/models/RegenerateOutputBody.d.ts +21 -0
  177. package/dist/models/RegenerateOutputBody.js +29 -0
  178. package/dist/models/RegenerateOutputBody.js.map +1 -0
  179. package/dist/models/RegenerateTarget.d.ts +2 -1
  180. package/dist/models/RegenerateTarget.js +1 -0
  181. package/dist/models/RegenerateTarget.js.map +1 -1
  182. package/dist/models/ReplacementValue.d.ts +20 -0
  183. package/dist/models/ReplacementValue.js +23 -0
  184. package/dist/models/ReplacementValue.js.map +1 -0
  185. package/dist/models/ReportAnalysisResponse.d.ts +2 -1
  186. package/dist/models/ReportAnalysisResponse.js +1 -0
  187. package/dist/models/ReportAnalysisResponse.js.map +1 -1
  188. package/dist/models/SandboxStartMethod.d.ts +2 -1
  189. package/dist/models/SandboxStartMethod.js +1 -0
  190. package/dist/models/SandboxStartMethod.js.map +1 -1
  191. package/dist/models/SandboxTimeout.d.ts +2 -1
  192. package/dist/models/SandboxTimeout.js +1 -0
  193. package/dist/models/SandboxTimeout.js.map +1 -1
  194. package/dist/models/StatusInput.d.ts +2 -1
  195. package/dist/models/StatusInput.js +1 -0
  196. package/dist/models/StatusInput.js.map +1 -1
  197. package/dist/models/StringSource.d.ts +2 -1
  198. package/dist/models/StringSource.js +1 -0
  199. package/dist/models/StringSource.js.map +1 -1
  200. package/dist/models/SummaryData.d.ts +29 -0
  201. package/dist/models/SummaryData.js +48 -0
  202. package/dist/models/SummaryData.js.map +1 -0
  203. package/dist/models/TaskStatus.d.ts +2 -1
  204. package/dist/models/TaskStatus.js +1 -0
  205. package/dist/models/TaskStatus.js.map +1 -1
  206. package/dist/models/TokenisedData.d.ts +33 -0
  207. package/dist/models/TokenisedData.js +56 -0
  208. package/dist/models/TokenisedData.js.map +1 -0
  209. package/dist/models/TriageFunctionResponse.d.ts +2 -1
  210. package/dist/models/TriageFunctionResponse.js +1 -0
  211. package/dist/models/TriageFunctionResponse.js.map +1 -1
  212. package/dist/models/UploadFileType.d.ts +2 -1
  213. package/dist/models/UploadFileType.js +1 -0
  214. package/dist/models/UploadFileType.js.map +1 -1
  215. package/dist/models/UpsertOverridesData.d.ts +23 -0
  216. package/dist/models/UpsertOverridesData.js +29 -0
  217. package/dist/models/UpsertOverridesData.js.map +1 -0
  218. package/dist/models/UpsertOverridesInputBody.d.ts +23 -0
  219. package/dist/models/UpsertOverridesInputBody.js +29 -0
  220. package/dist/models/UpsertOverridesInputBody.js.map +1 -0
  221. package/dist/models/Vulnerability.d.ts +2 -1
  222. package/dist/models/Vulnerability.js +1 -0
  223. package/dist/models/Vulnerability.js.map +1 -1
  224. package/dist/models/WorkflowProgress.d.ts +34 -0
  225. package/dist/models/WorkflowProgress.js +62 -0
  226. package/dist/models/WorkflowProgress.js.map +1 -0
  227. package/dist/models/Workspace.d.ts +2 -1
  228. package/dist/models/Workspace.js +1 -0
  229. package/dist/models/Workspace.js.map +1 -1
  230. package/dist/models/all.d.ts +14 -0
  231. package/dist/models/all.js +14 -0
  232. package/dist/models/all.js.map +1 -1
  233. package/dist/tests/enum-unknown-default.test.d.ts +1 -0
  234. package/dist/tests/enum-unknown-default.test.js +47 -0
  235. package/dist/tests/enum-unknown-default.test.js.map +1 -0
  236. package/dist/types/ObjectParamAPI.d.ts +90 -180
  237. package/dist/types/ObjectParamAPI.js +154 -62
  238. package/dist/types/ObjectParamAPI.js.map +1 -1
  239. package/dist/types/ObservableAPI.d.ts +105 -60
  240. package/dist/types/ObservableAPI.js +665 -263
  241. package/dist/types/ObservableAPI.js.map +1 -1
  242. package/dist/types/PromiseAPI.d.ts +103 -60
  243. package/dist/types/PromiseAPI.js +270 -122
  244. package/dist/types/PromiseAPI.js.map +1 -1
  245. package/package.json +1 -1
@@ -62,7 +62,46 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
62
62
  function FunctionsAIDecompilationApiRequestFactory() {
63
63
  return _super !== null && _super.apply(this, arguments) || this;
64
64
  }
65
- FunctionsAIDecompilationApiRequestFactory.prototype.createAiDecompilationComment = function (functionId, functionCommentCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _options) {
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
+ };
104
+ FunctionsAIDecompilationApiRequestFactory.prototype.createAiDecompilationComment = function (functionId, functionCommentCreateRequest, _options) {
66
105
  var _a;
67
106
  return __awaiter(this, void 0, void 0, function () {
68
107
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -80,24 +119,6 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
80
119
  .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
81
120
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
82
121
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
83
- if (endpointUrl !== undefined) {
84
- requestContext.setQueryParam("endpoint_url", ObjectSerializer_1.ObjectSerializer.serialize(endpointUrl, "string", ""));
85
- }
86
- if (localCacheDir !== undefined) {
87
- requestContext.setQueryParam("local_cache_dir", ObjectSerializer_1.ObjectSerializer.serialize(localCacheDir, "string", ""));
88
- }
89
- if (localCacheMaxSizeMb !== undefined) {
90
- requestContext.setQueryParam("local_cache_max_size_mb", ObjectSerializer_1.ObjectSerializer.serialize(localCacheMaxSizeMb, "number", ""));
91
- }
92
- if (customerSamplesBucket !== undefined) {
93
- requestContext.setQueryParam("customer_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(customerSamplesBucket, "string", ""));
94
- }
95
- if (firmwareSamplesBucket !== undefined) {
96
- requestContext.setQueryParam("firmware_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(firmwareSamplesBucket, "string", ""));
97
- }
98
- if (maxRetryAttempts !== undefined) {
99
- requestContext.setQueryParam("max_retry_attempts", ObjectSerializer_1.ObjectSerializer.serialize(maxRetryAttempts, "number", ""));
100
- }
101
122
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
102
123
  "application/json"
103
124
  ]);
@@ -155,7 +176,7 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
155
176
  });
156
177
  });
157
178
  };
158
- FunctionsAIDecompilationApiRequestFactory.prototype.deleteAiDecompilationComment = function (commentId, functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _options) {
179
+ FunctionsAIDecompilationApiRequestFactory.prototype.deleteAiDecompilationComment = function (commentId, functionId, _options) {
159
180
  var _a;
160
181
  return __awaiter(this, void 0, void 0, function () {
161
182
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -174,24 +195,39 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
174
195
  .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
175
196
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
176
197
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
177
- if (endpointUrl !== undefined) {
178
- requestContext.setQueryParam("endpoint_url", ObjectSerializer_1.ObjectSerializer.serialize(endpointUrl, "string", ""));
179
- }
180
- if (localCacheDir !== undefined) {
181
- requestContext.setQueryParam("local_cache_dir", ObjectSerializer_1.ObjectSerializer.serialize(localCacheDir, "string", ""));
182
- }
183
- if (localCacheMaxSizeMb !== undefined) {
184
- requestContext.setQueryParam("local_cache_max_size_mb", ObjectSerializer_1.ObjectSerializer.serialize(localCacheMaxSizeMb, "number", ""));
185
- }
186
- if (customerSamplesBucket !== undefined) {
187
- requestContext.setQueryParam("customer_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(customerSamplesBucket, "string", ""));
188
- }
189
- if (firmwareSamplesBucket !== undefined) {
190
- requestContext.setQueryParam("firmware_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(firmwareSamplesBucket, "string", ""));
191
- }
192
- if (maxRetryAttempts !== undefined) {
193
- requestContext.setQueryParam("max_retry_attempts", ObjectSerializer_1.ObjectSerializer.serialize(maxRetryAttempts, "number", ""));
198
+ authMethod = _config.authMethods["APIKey"];
199
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
200
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
201
+ case 1:
202
+ _b.sent();
203
+ _b.label = 2;
204
+ case 2:
205
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
206
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
207
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
208
+ case 3:
209
+ _b.sent();
210
+ _b.label = 4;
211
+ case 4: return [2, requestContext];
212
+ }
213
+ });
214
+ });
215
+ };
216
+ 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");
194
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");
195
231
  authMethod = _config.authMethods["APIKey"];
196
232
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
197
233
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -210,7 +246,7 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
210
246
  });
211
247
  });
212
248
  };
213
- FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationComments = function (functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _options) {
249
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationComments = function (functionId, _options) {
214
250
  var _a;
215
251
  return __awaiter(this, void 0, void 0, function () {
216
252
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -225,24 +261,6 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
225
261
  .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
226
262
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
227
263
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
228
- if (endpointUrl !== undefined) {
229
- requestContext.setQueryParam("endpoint_url", ObjectSerializer_1.ObjectSerializer.serialize(endpointUrl, "string", ""));
230
- }
231
- if (localCacheDir !== undefined) {
232
- requestContext.setQueryParam("local_cache_dir", ObjectSerializer_1.ObjectSerializer.serialize(localCacheDir, "string", ""));
233
- }
234
- if (localCacheMaxSizeMb !== undefined) {
235
- requestContext.setQueryParam("local_cache_max_size_mb", ObjectSerializer_1.ObjectSerializer.serialize(localCacheMaxSizeMb, "number", ""));
236
- }
237
- if (customerSamplesBucket !== undefined) {
238
- requestContext.setQueryParam("customer_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(customerSamplesBucket, "string", ""));
239
- }
240
- if (firmwareSamplesBucket !== undefined) {
241
- requestContext.setQueryParam("firmware_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(firmwareSamplesBucket, "string", ""));
242
- }
243
- if (maxRetryAttempts !== undefined) {
244
- requestContext.setQueryParam("max_retry_attempts", ObjectSerializer_1.ObjectSerializer.serialize(maxRetryAttempts, "number", ""));
245
- }
246
264
  authMethod = _config.authMethods["APIKey"];
247
265
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
248
266
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -261,7 +279,7 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
261
279
  });
262
280
  });
263
281
  };
264
- FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationRating = function (functionId, _options) {
282
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationInlineComments = function (functionId, _options) {
265
283
  var _a;
266
284
  return __awaiter(this, void 0, void 0, function () {
267
285
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -270,9 +288,9 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
270
288
  case 0:
271
289
  _config = _options || this.configuration;
272
290
  if (functionId === null || functionId === undefined) {
273
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationRating", "functionId");
291
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationInlineComments", "functionId");
274
292
  }
275
- localVarPath = '/v2/functions/{function_id}/ai-decompilation/rating'
293
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/inline-comments'
276
294
  .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
277
295
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
278
296
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
@@ -294,34 +312,21 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
294
312
  });
295
313
  });
296
314
  };
297
- FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationTaskResult = function (functionId, summarise, generateInlineComments, forceRegenerate, _options) {
315
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationInlineCommentsStatus = function (functionId, _options) {
298
316
  var _a;
299
317
  return __awaiter(this, void 0, void 0, function () {
300
- var _config, localVarPath, requestContext, serializedParams, _i, serializedParams_1, serializedParam, authMethod, defaultAuth;
318
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
301
319
  return __generator(this, function (_b) {
302
320
  switch (_b.label) {
303
321
  case 0:
304
322
  _config = _options || this.configuration;
305
323
  if (functionId === null || functionId === undefined) {
306
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationTaskResult", "functionId");
324
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationInlineCommentsStatus", "functionId");
307
325
  }
308
- localVarPath = '/v2/functions/{function_id}/ai-decompilation'
326
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/inline-comments/status'
309
327
  .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
310
328
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
311
329
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
312
- if (summarise !== undefined) {
313
- requestContext.setQueryParam("summarise", ObjectSerializer_1.ObjectSerializer.serialize(summarise, "boolean", ""));
314
- }
315
- if (generateInlineComments !== undefined) {
316
- requestContext.setQueryParam("generate_inline_comments", ObjectSerializer_1.ObjectSerializer.serialize(generateInlineComments, "boolean", ""));
317
- }
318
- if (forceRegenerate !== undefined) {
319
- serializedParams = ObjectSerializer_1.ObjectSerializer.serialize(forceRegenerate, "Array<RegenerateTarget>", "");
320
- for (_i = 0, serializedParams_1 = serializedParams; _i < serializedParams_1.length; _i++) {
321
- serializedParam = serializedParams_1[_i];
322
- requestContext.appendQueryParam("force_regenerate", serializedParam);
323
- }
324
- }
325
330
  authMethod = _config.authMethods["APIKey"];
326
331
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
327
332
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -340,7 +345,7 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
340
345
  });
341
346
  });
342
347
  };
343
- FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationTaskStatus = function (functionId, _options) {
348
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationRating = function (functionId, _options) {
344
349
  var _a;
345
350
  return __awaiter(this, void 0, void 0, function () {
346
351
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -349,9 +354,9 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
349
354
  case 0:
350
355
  _config = _options || this.configuration;
351
356
  if (functionId === null || functionId === undefined) {
352
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationTaskStatus", "functionId");
357
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationRating", "functionId");
353
358
  }
354
- localVarPath = '/v2/functions/{function_id}/ai-decompilation/status'
359
+ localVarPath = '/v2/functions/{function_id}/ai-decompilation/rating'
355
360
  .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
356
361
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
357
362
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
@@ -373,52 +378,21 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
373
378
  });
374
379
  });
375
380
  };
376
- FunctionsAIDecompilationApiRequestFactory.prototype.updateAiDecompilationComment = function (commentId, functionId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _options) {
381
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationStatus = function (functionId, _options) {
377
382
  var _a;
378
383
  return __awaiter(this, void 0, void 0, function () {
379
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
384
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
380
385
  return __generator(this, function (_b) {
381
386
  switch (_b.label) {
382
387
  case 0:
383
388
  _config = _options || this.configuration;
384
- if (commentId === null || commentId === undefined) {
385
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "commentId");
386
- }
387
389
  if (functionId === null || functionId === undefined) {
388
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "functionId");
389
- }
390
- if (commentUpdateRequest === null || commentUpdateRequest === undefined) {
391
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "updateAiDecompilationComment", "commentUpdateRequest");
390
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationStatus", "functionId");
392
391
  }
393
- localVarPath = '/v2/functions/{function_id}/ai-decompilation/comments/{comment_id}'
394
- .replace('{' + 'comment_id' + '}', encodeURIComponent(String(commentId)))
392
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/status'
395
393
  .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
396
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
394
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
397
395
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
398
- if (endpointUrl !== undefined) {
399
- requestContext.setQueryParam("endpoint_url", ObjectSerializer_1.ObjectSerializer.serialize(endpointUrl, "string", ""));
400
- }
401
- if (localCacheDir !== undefined) {
402
- requestContext.setQueryParam("local_cache_dir", ObjectSerializer_1.ObjectSerializer.serialize(localCacheDir, "string", ""));
403
- }
404
- if (localCacheMaxSizeMb !== undefined) {
405
- requestContext.setQueryParam("local_cache_max_size_mb", ObjectSerializer_1.ObjectSerializer.serialize(localCacheMaxSizeMb, "number", ""));
406
- }
407
- if (customerSamplesBucket !== undefined) {
408
- requestContext.setQueryParam("customer_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(customerSamplesBucket, "string", ""));
409
- }
410
- if (firmwareSamplesBucket !== undefined) {
411
- requestContext.setQueryParam("firmware_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(firmwareSamplesBucket, "string", ""));
412
- }
413
- if (maxRetryAttempts !== undefined) {
414
- requestContext.setQueryParam("max_retry_attempts", ObjectSerializer_1.ObjectSerializer.serialize(maxRetryAttempts, "number", ""));
415
- }
416
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
417
- "application/json"
418
- ]);
419
- requestContext.setHeaderParam("Content-Type", contentType);
420
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(commentUpdateRequest, "CommentUpdateRequest", ""), contentType);
421
- requestContext.setBody(serializedBody);
422
396
  authMethod = _config.authMethods["APIKey"];
423
397
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
424
398
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -437,30 +411,21 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
437
411
  });
438
412
  });
439
413
  };
440
- FunctionsAIDecompilationApiRequestFactory.prototype.upsertAiDecompilationRating = function (functionId, upsertAiDecomplationRatingRequest, _options) {
414
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationSummary = function (functionId, _options) {
441
415
  var _a;
442
416
  return __awaiter(this, void 0, void 0, function () {
443
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
417
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
444
418
  return __generator(this, function (_b) {
445
419
  switch (_b.label) {
446
420
  case 0:
447
421
  _config = _options || this.configuration;
448
422
  if (functionId === null || functionId === undefined) {
449
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "upsertAiDecompilationRating", "functionId");
450
- }
451
- if (upsertAiDecomplationRatingRequest === null || upsertAiDecomplationRatingRequest === undefined) {
452
- throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "upsertAiDecompilationRating", "upsertAiDecomplationRatingRequest");
423
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationSummary", "functionId");
453
424
  }
454
- localVarPath = '/v2/functions/{function_id}/ai-decompilation/rating'
425
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/summary'
455
426
  .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
456
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
427
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
457
428
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
458
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
459
- "application/json"
460
- ]);
461
- requestContext.setHeaderParam("Content-Type", contentType);
462
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(upsertAiDecomplationRatingRequest, "UpsertAiDecomplationRatingRequest", ""), contentType);
463
- requestContext.setBody(serializedBody);
464
429
  authMethod = _config.authMethods["APIKey"];
465
430
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
466
431
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -479,146 +444,1123 @@ var FunctionsAIDecompilationApiRequestFactory = (function (_super) {
479
444
  });
480
445
  });
481
446
  };
482
- return FunctionsAIDecompilationApiRequestFactory;
483
- }(baseapi_1.BaseAPIRequestFactory));
484
- exports.FunctionsAIDecompilationApiRequestFactory = FunctionsAIDecompilationApiRequestFactory;
485
- var FunctionsAIDecompilationApiResponseProcessor = (function () {
486
- function FunctionsAIDecompilationApiResponseProcessor() {
487
- }
488
- FunctionsAIDecompilationApiResponseProcessor.prototype.createAiDecompilationCommentWithHttpInfo = function (response) {
447
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationSummaryStatus = function (functionId, _options) {
448
+ var _a;
489
449
  return __awaiter(this, void 0, void 0, function () {
490
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
491
- return __generator(this, function (_u) {
492
- switch (_u.label) {
450
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
451
+ return __generator(this, function (_b) {
452
+ switch (_b.label) {
493
453
  case 0:
494
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
495
- if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
496
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
497
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
498
- return [4, response.body.text()];
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))];
499
465
  case 1:
500
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
501
- "BaseResponseCommentResponse", ""]);
502
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
466
+ _b.sent();
467
+ _b.label = 2;
503
468
  case 2:
504
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
505
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
506
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
507
- return [4, response.body.text()];
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))];
508
472
  case 3:
509
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
510
- "BaseResponse", ""]);
511
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
512
- case 4:
513
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 6];
514
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
515
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
516
- return [4, response.body.text()];
517
- case 5:
518
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
519
- "BaseResponse", ""]);
520
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
521
- case 6:
522
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
523
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
524
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
525
- return [4, response.body.text()];
526
- case 7:
527
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
528
- "BaseResponseCommentResponse", ""]);
529
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
530
- case 8:
531
- _s = exception_1.ApiException.bind;
532
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
533
- return [4, response.getBodyAsAny()];
534
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
473
+ _b.sent();
474
+ _b.label = 4;
475
+ case 4: return [2, requestContext];
535
476
  }
536
477
  });
537
478
  });
538
479
  };
539
- FunctionsAIDecompilationApiResponseProcessor.prototype.createAiDecompilationTaskWithHttpInfo = function (response) {
480
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationTaskResult = function (functionId, summarise, generateInlineComments, forceRegenerate, _options) {
481
+ var _a;
540
482
  return __awaiter(this, void 0, void 0, function () {
541
- 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;
542
- return __generator(this, function (_6) {
543
- switch (_6.label) {
483
+ var _config, localVarPath, requestContext, serializedParams, _i, serializedParams_1, serializedParam, authMethod, defaultAuth;
484
+ return __generator(this, function (_b) {
485
+ switch (_b.label) {
544
486
  case 0:
545
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
546
- if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
547
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
548
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
549
- return [4, response.body.text()];
487
+ _config = _options || this.configuration;
488
+ if (functionId === null || functionId === undefined) {
489
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationTaskResult", "functionId");
490
+ }
491
+ localVarPath = '/v2/functions/{function_id}/ai-decompilation'
492
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
493
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
494
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
495
+ if (summarise !== undefined) {
496
+ requestContext.setQueryParam("summarise", ObjectSerializer_1.ObjectSerializer.serialize(summarise, "boolean", ""));
497
+ }
498
+ if (generateInlineComments !== undefined) {
499
+ requestContext.setQueryParam("generate_inline_comments", ObjectSerializer_1.ObjectSerializer.serialize(generateInlineComments, "boolean", ""));
500
+ }
501
+ if (forceRegenerate !== undefined) {
502
+ serializedParams = ObjectSerializer_1.ObjectSerializer.serialize(forceRegenerate, "Array<RegenerateTarget>", "");
503
+ for (_i = 0, serializedParams_1 = serializedParams; _i < serializedParams_1.length; _i++) {
504
+ serializedParam = serializedParams_1[_i];
505
+ requestContext.appendQueryParam("force_regenerate", serializedParam);
506
+ }
507
+ }
508
+ authMethod = _config.authMethods["APIKey"];
509
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
510
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
550
511
  case 1:
551
- body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
552
- "BaseResponse", ""]);
553
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
512
+ _b.sent();
513
+ _b.label = 2;
514
+ case 2:
515
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
516
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
517
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
518
+ case 3:
519
+ _b.sent();
520
+ _b.label = 4;
521
+ case 4: return [2, requestContext];
522
+ }
523
+ });
524
+ });
525
+ };
526
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationTaskStatus = function (functionId, _options) {
527
+ var _a;
528
+ return __awaiter(this, void 0, void 0, function () {
529
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
530
+ return __generator(this, function (_b) {
531
+ switch (_b.label) {
532
+ case 0:
533
+ _config = _options || this.configuration;
534
+ if (functionId === null || functionId === undefined) {
535
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationTaskStatus", "functionId");
536
+ }
537
+ localVarPath = '/v2/functions/{function_id}/ai-decompilation/status'
538
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
539
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
540
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
541
+ authMethod = _config.authMethods["APIKey"];
542
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
543
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
544
+ case 1:
545
+ _b.sent();
546
+ _b.label = 2;
547
+ case 2:
548
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
549
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
550
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
551
+ case 3:
552
+ _b.sent();
553
+ _b.label = 4;
554
+ case 4: return [2, requestContext];
555
+ }
556
+ });
557
+ });
558
+ };
559
+ FunctionsAIDecompilationApiRequestFactory.prototype.getAiDecompilationTokenised = function (functionId, _options) {
560
+ var _a;
561
+ return __awaiter(this, void 0, void 0, function () {
562
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
563
+ return __generator(this, function (_b) {
564
+ switch (_b.label) {
565
+ case 0:
566
+ _config = _options || this.configuration;
567
+ if (functionId === null || functionId === undefined) {
568
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "getAiDecompilationTokenised", "functionId");
569
+ }
570
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/tokenised'
571
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
572
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
573
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
574
+ authMethod = _config.authMethods["APIKey"];
575
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
576
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
577
+ case 1:
578
+ _b.sent();
579
+ _b.label = 2;
580
+ case 2:
581
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
582
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
583
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
584
+ case 3:
585
+ _b.sent();
586
+ _b.label = 4;
587
+ case 4: return [2, requestContext];
588
+ }
589
+ });
590
+ });
591
+ };
592
+ FunctionsAIDecompilationApiRequestFactory.prototype.regenerateAiDecompilationInlineComments = function (functionId, _options) {
593
+ var _a;
594
+ return __awaiter(this, void 0, void 0, function () {
595
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
596
+ return __generator(this, function (_b) {
597
+ switch (_b.label) {
598
+ case 0:
599
+ _config = _options || this.configuration;
600
+ if (functionId === null || functionId === undefined) {
601
+ throw new baseapi_1.RequiredError("FunctionsAIDecompilationApi", "regenerateAiDecompilationInlineComments", "functionId");
602
+ }
603
+ localVarPath = '/v3/functions/{function_id}/ai-decompilation/inline-comments'
604
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
605
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
606
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
607
+ authMethod = _config.authMethods["APIKey"];
608
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
609
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
610
+ case 1:
611
+ _b.sent();
612
+ _b.label = 2;
613
+ case 2:
614
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
615
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
616
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
617
+ case 3:
618
+ _b.sent();
619
+ _b.label = 4;
620
+ case 4: return [2, requestContext];
621
+ }
622
+ });
623
+ });
624
+ };
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) {
873
+ return __awaiter(this, void 0, void 0, function () {
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;
875
+ return __generator(this, function (_u) {
876
+ switch (_u.label) {
877
+ case 0:
878
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
879
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
880
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
881
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
882
+ return [4, response.body.text()];
883
+ case 1:
884
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
885
+ "BaseResponseCommentResponse", ""]);
886
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
887
+ case 2:
888
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
889
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
890
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
891
+ return [4, response.body.text()];
892
+ case 3:
893
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
894
+ "BaseResponse", ""]);
895
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
896
+ case 4:
897
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 6];
898
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
899
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
900
+ return [4, response.body.text()];
901
+ case 5:
902
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
903
+ "BaseResponse", ""]);
904
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
905
+ case 6:
906
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
907
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
908
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
909
+ return [4, response.body.text()];
910
+ case 7:
911
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
912
+ "BaseResponseCommentResponse", ""]);
913
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
914
+ case 8:
915
+ _s = exception_1.ApiException.bind;
916
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
917
+ return [4, response.getBodyAsAny()];
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])))();
1486
+ }
1487
+ });
1488
+ });
1489
+ };
1490
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationSummaryStatusWithHttpInfo = function (response) {
1491
+ return __awaiter(this, void 0, void 0, function () {
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) {
1495
+ case 0:
1496
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1497
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1498
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1499
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1500
+ return [4, response.body.text()];
1501
+ case 1:
1502
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1503
+ "WorkflowProgress", ""]);
1504
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
554
1505
  case 2:
555
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1506
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
556
1507
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
557
1508
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
558
1509
  return [4, response.body.text()];
559
1510
  case 3:
560
- body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
561
- "BaseResponse", ""]);
562
- 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);
563
1514
  case 4:
564
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
1515
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
565
1516
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
566
1517
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
567
1518
  return [4, response.body.text()];
568
1519
  case 5:
569
- body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
570
- "BaseResponse", ""]);
571
- 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);
572
1523
  case 6:
573
- if (!(0, util_1.isCodeInRange)("402", response.httpStatusCode)) return [3, 8];
1524
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
574
1525
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
575
1526
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
576
1527
  return [4, response.body.text()];
577
1528
  case 7:
578
- body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
579
- "BaseResponse", ""]);
580
- 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);
581
1532
  case 8:
582
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
1533
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
583
1534
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
584
1535
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
585
1536
  return [4, response.body.text()];
586
1537
  case 9:
587
- body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
588
- "BaseResponse", ""]);
589
- 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);
590
1541
  case 10:
591
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 12];
1542
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
592
1543
  _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
593
1544
  _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
594
1545
  return [4, response.body.text()];
595
1546
  case 11:
596
- body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
597
- "BaseResponse", ""]);
598
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
599
- case 12:
600
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
601
- _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
602
- _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
603
- return [4, response.body.text()];
604
- case 13:
605
- body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
606
- "BaseResponse", ""]);
1547
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1548
+ "WorkflowProgress", ""]);
607
1549
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
608
- case 14:
609
- _4 = exception_1.ApiException.bind;
610
- _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!"];
611
1553
  return [4, response.getBodyAsAny()];
612
- 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])))();
613
1555
  }
614
1556
  });
615
1557
  });
616
1558
  };
617
- FunctionsAIDecompilationApiResponseProcessor.prototype.deleteAiDecompilationCommentWithHttpInfo = function (response) {
1559
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTaskResultWithHttpInfo = function (response) {
618
1560
  return __awaiter(this, void 0, void 0, function () {
619
- 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;
620
- return __generator(this, function (_y) {
621
- 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) {
622
1564
  case 0:
623
1565
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
624
1566
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -626,8 +1568,8 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
626
1568
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
627
1569
  return [4, response.body.text()];
628
1570
  case 1:
629
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
630
- "BaseResponseBool", ""]);
1571
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1572
+ "BaseResponseGetAiDecompilationTask", ""]);
631
1573
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
632
1574
  case 2:
633
1575
  if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
@@ -635,7 +1577,7 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
635
1577
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
636
1578
  return [4, response.body.text()];
637
1579
  case 3:
638
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1580
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
639
1581
  "BaseResponse", ""]);
640
1582
  throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
641
1583
  case 4:
@@ -644,37 +1586,28 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
644
1586
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
645
1587
  return [4, response.body.text()];
646
1588
  case 5:
647
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1589
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
648
1590
  "BaseResponse", ""]);
649
- 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);
650
1592
  case 6:
651
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 8];
1593
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
652
1594
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
653
1595
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
654
1596
  return [4, response.body.text()];
655
1597
  case 7:
656
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
657
- "BaseResponse", ""]);
658
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
659
- case 8:
660
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
661
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
662
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
663
- return [4, response.body.text()];
664
- case 9:
665
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
666
- "BaseResponseBool", ""]);
1598
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1599
+ "BaseResponseGetAiDecompilationTask", ""]);
667
1600
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
668
- case 10:
669
- _w = exception_1.ApiException.bind;
670
- _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!"];
671
1604
  return [4, response.getBodyAsAny()];
672
- 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])))();
673
1606
  }
674
1607
  });
675
1608
  });
676
1609
  };
677
- FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationCommentsWithHttpInfo = function (response) {
1610
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTaskStatusWithHttpInfo = function (response) {
678
1611
  return __awaiter(this, void 0, void 0, function () {
679
1612
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
680
1613
  return __generator(this, function (_q) {
@@ -687,7 +1620,7 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
687
1620
  return [4, response.body.text()];
688
1621
  case 1:
689
1622
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
690
- "BaseResponseListCommentResponse", ""]);
1623
+ "BaseResponseFunctionTaskResponse", ""]);
691
1624
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
692
1625
  case 2:
693
1626
  if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
@@ -705,7 +1638,7 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
705
1638
  return [4, response.body.text()];
706
1639
  case 5:
707
1640
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
708
- "BaseResponseListCommentResponse", ""]);
1641
+ "BaseResponseFunctionTaskResponse", ""]);
709
1642
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
710
1643
  case 6:
711
1644
  _o = exception_1.ApiException.bind;
@@ -716,11 +1649,11 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
716
1649
  });
717
1650
  });
718
1651
  };
719
- FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationRatingWithHttpInfo = function (response) {
1652
+ FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTokenisedWithHttpInfo = function (response) {
720
1653
  return __awaiter(this, void 0, void 0, function () {
721
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
722
- return __generator(this, function (_q) {
723
- 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) {
724
1657
  case 0:
725
1658
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
726
1659
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -728,125 +1661,197 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
728
1661
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
729
1662
  return [4, response.body.text()];
730
1663
  case 1:
731
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
732
- "BaseResponseUnionGetAiDecompilationRatingResponseNoneType", ""]);
1664
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1665
+ "TokenisedData", ""]);
733
1666
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
734
1667
  case 2:
735
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1668
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
736
1669
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
737
1670
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
738
1671
  return [4, response.body.text()];
739
1672
  case 3:
740
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
741
- "BaseResponse", ""]);
742
- 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);
743
1676
  case 4:
744
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1677
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
745
1678
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
746
1679
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
747
1680
  return [4, response.body.text()];
748
1681
  case 5:
749
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
750
- "BaseResponseUnionGetAiDecompilationRatingResponseNoneType", ""]);
751
- 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);
752
1685
  case 6:
753
- _o = exception_1.ApiException.bind;
754
- _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!"];
755
1715
  return [4, response.getBodyAsAny()];
756
- 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])))();
757
1717
  }
758
1718
  });
759
1719
  });
760
1720
  };
761
- FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTaskResultWithHttpInfo = function (response) {
1721
+ FunctionsAIDecompilationApiResponseProcessor.prototype.regenerateAiDecompilationInlineCommentsWithHttpInfo = function (response) {
762
1722
  return __awaiter(this, void 0, void 0, function () {
763
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
764
- return __generator(this, function (_u) {
765
- 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) {
766
1726
  case 0:
767
1727
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
768
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1728
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
769
1729
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
770
1730
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
771
1731
  return [4, response.body.text()];
772
1732
  case 1:
773
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
774
- "BaseResponseGetAiDecompilationTask", ""]);
1733
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1734
+ "RegenerateOutputBody", ""]);
775
1735
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
776
1736
  case 2:
777
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1737
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
778
1738
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
779
1739
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
780
1740
  return [4, response.body.text()];
781
1741
  case 3:
782
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
783
- "BaseResponse", ""]);
784
- 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);
785
1745
  case 4:
786
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
1746
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
787
1747
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
788
1748
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
789
1749
  return [4, response.body.text()];
790
1750
  case 5:
791
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
792
- "BaseResponse", ""]);
793
- 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);
794
1754
  case 6:
795
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1755
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
796
1756
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
797
1757
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
798
1758
  return [4, response.body.text()];
799
1759
  case 7:
800
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
801
- "BaseResponseGetAiDecompilationTask", ""]);
802
- 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);
803
1763
  case 8:
804
- _s = exception_1.ApiException.bind;
805
- _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!"];
806
1784
  return [4, response.getBodyAsAny()];
807
- 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])))();
808
1786
  }
809
1787
  });
810
1788
  });
811
1789
  };
812
- FunctionsAIDecompilationApiResponseProcessor.prototype.getAiDecompilationTaskStatusWithHttpInfo = function (response) {
1790
+ FunctionsAIDecompilationApiResponseProcessor.prototype.regenerateAiDecompilationSummaryWithHttpInfo = function (response) {
813
1791
  return __awaiter(this, void 0, void 0, function () {
814
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
815
- return __generator(this, function (_q) {
816
- 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) {
817
1795
  case 0:
818
1796
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
819
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1797
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
820
1798
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
821
1799
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
822
1800
  return [4, response.body.text()];
823
1801
  case 1:
824
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
825
- "BaseResponseFunctionTaskResponse", ""]);
1802
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1803
+ "RegenerateOutputBody", ""]);
826
1804
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
827
1805
  case 2:
828
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1806
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
829
1807
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
830
1808
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
831
1809
  return [4, response.body.text()];
832
1810
  case 3:
833
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
834
- "BaseResponse", ""]);
835
- 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);
836
1814
  case 4:
837
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1815
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
838
1816
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
839
1817
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
840
1818
  return [4, response.body.text()];
841
1819
  case 5:
842
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
843
- "BaseResponseFunctionTaskResponse", ""]);
844
- 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);
845
1823
  case 6:
846
- _o = exception_1.ApiException.bind;
847
- _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!"];
848
1853
  return [4, response.getBodyAsAny()];
849
- 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])))();
850
1855
  }
851
1856
  });
852
1857
  });
@@ -911,6 +1916,84 @@ var FunctionsAIDecompilationApiResponseProcessor = (function () {
911
1916
  });
912
1917
  });
913
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
+ };
914
1997
  FunctionsAIDecompilationApiResponseProcessor.prototype.upsertAiDecompilationRatingWithHttpInfo = function (response) {
915
1998
  return __awaiter(this, void 0, void 0, function () {
916
1999
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;