@revengai/sdk 3.113.0 → 3.116.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +2 -17
  2. package/dist/apis/AnalysesCoreApi.d.ts +1 -1
  3. package/dist/apis/AnalysesCoreApi.js +4 -1
  4. package/dist/apis/AnalysesCoreApi.js.map +1 -1
  5. package/dist/apis/FunctionsCoreApi.d.ts +0 -18
  6. package/dist/apis/FunctionsCoreApi.js +0 -524
  7. package/dist/apis/FunctionsCoreApi.js.map +1 -1
  8. package/dist/models/DynamicExecutionStatusResponse.d.ts +9 -1
  9. package/dist/models/DynamicExecutionStatusResponse.js +11 -2
  10. package/dist/models/DynamicExecutionStatusResponse.js.map +1 -1
  11. package/dist/models/{FunctionMatchingFilters.d.ts → EventTOOLCALLPROGRESS.d.ts} +8 -10
  12. package/dist/models/EventTOOLCALLPROGRESS.js +46 -0
  13. package/dist/models/EventTOOLCALLPROGRESS.js.map +1 -0
  14. package/dist/models/GetAnalysisStringsStatusOutputBody.d.ts +9 -1
  15. package/dist/models/GetAnalysisStringsStatusOutputBody.js +11 -2
  16. package/dist/models/GetAnalysisStringsStatusOutputBody.js.map +1 -1
  17. package/dist/models/ObjectSerializer.d.ts +2 -11
  18. package/dist/models/ObjectSerializer.js +9 -34
  19. package/dist/models/ObjectSerializer.js.map +1 -1
  20. package/dist/models/{AiUnstripRequest.d.ts → SseEventToolCallProgressData.d.ts} +5 -2
  21. package/dist/models/SseEventToolCallProgressData.js +41 -0
  22. package/dist/models/SseEventToolCallProgressData.js.map +1 -0
  23. package/dist/models/StreamEvents200ResponseInner.d.ts +2 -1
  24. package/dist/models/StreamEvents200ResponseInner.js.map +1 -1
  25. package/dist/models/all.d.ts +2 -11
  26. package/dist/models/all.js +2 -11
  27. package/dist/models/all.js.map +1 -1
  28. package/dist/types/ObjectParamAPI.d.ts +1 -39
  29. package/dist/types/ObjectParamAPI.js +2 -38
  30. package/dist/types/ObjectParamAPI.js.map +1 -1
  31. package/dist/types/ObservableAPI.d.ts +2 -20
  32. package/dist/types/ObservableAPI.js +198 -366
  33. package/dist/types/ObservableAPI.js.map +1 -1
  34. package/dist/types/PromiseAPI.d.ts +2 -20
  35. package/dist/types/PromiseAPI.js +4 -64
  36. package/dist/types/PromiseAPI.js.map +1 -1
  37. package/package.json +1 -1
  38. package/dist/models/AiUnstripRequest.js +0 -23
  39. package/dist/models/AiUnstripRequest.js.map +0 -1
  40. package/dist/models/AnalysisFunctionMatchingRequest.d.ts +0 -28
  41. package/dist/models/AnalysisFunctionMatchingRequest.js +0 -65
  42. package/dist/models/AnalysisFunctionMatchingRequest.js.map +0 -1
  43. package/dist/models/AutoUnstripRequest.d.ts +0 -26
  44. package/dist/models/AutoUnstripRequest.js +0 -59
  45. package/dist/models/AutoUnstripRequest.js.map +0 -1
  46. package/dist/models/AutoUnstripResponse.d.ts +0 -26
  47. package/dist/models/AutoUnstripResponse.js +0 -53
  48. package/dist/models/AutoUnstripResponse.js.map +0 -1
  49. package/dist/models/FunctionMatchingFilters.js +0 -54
  50. package/dist/models/FunctionMatchingFilters.js.map +0 -1
  51. package/dist/models/FunctionMatchingRequest.d.ts +0 -30
  52. package/dist/models/FunctionMatchingRequest.js +0 -77
  53. package/dist/models/FunctionMatchingRequest.js.map +0 -1
  54. package/dist/models/FunctionMatchingResponse.d.ts +0 -30
  55. package/dist/models/FunctionMatchingResponse.js +0 -77
  56. package/dist/models/FunctionMatchingResponse.js.map +0 -1
  57. package/dist/models/MatchedFunctionSuggestion.d.ts +0 -23
  58. package/dist/models/MatchedFunctionSuggestion.js +0 -41
  59. package/dist/models/MatchedFunctionSuggestion.js.map +0 -1
  60. package/dist/models/V2FunctionMatch.d.ts +0 -24
  61. package/dist/models/V2FunctionMatch.js +0 -35
  62. package/dist/models/V2FunctionMatch.js.map +0 -1
  63. package/dist/models/V2MatchedFunction.d.ts +0 -30
  64. package/dist/models/V2MatchedFunction.js +0 -83
  65. package/dist/models/V2MatchedFunction.js.map +0 -1
  66. package/dist/models/V2NameConfidence.d.ts +0 -21
  67. package/dist/models/V2NameConfidence.js +0 -29
  68. package/dist/models/V2NameConfidence.js.map +0 -1
@@ -3,10 +3,6 @@ import { Configuration } from '../configuration';
3
3
  import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
4
4
  import { AddCalleeInputBody } from '../models/AddCalleeInputBody';
5
5
  import { AddUserStringToFunctionInputBody } from '../models/AddUserStringToFunctionInputBody';
6
- import { AiUnstripRequest } from '../models/AiUnstripRequest';
7
- import { AnalysisFunctionMatchingRequest } from '../models/AnalysisFunctionMatchingRequest';
8
- import { AutoUnstripRequest } from '../models/AutoUnstripRequest';
9
- import { AutoUnstripResponse } from '../models/AutoUnstripResponse';
10
6
  import { BaseResponseAnalysisStringsResponse } from '../models/BaseResponseAnalysisStringsResponse';
11
7
  import { BaseResponseAnalysisStringsStatusResponse } from '../models/BaseResponseAnalysisStringsStatusResponse';
12
8
  import { BaseResponseCalleesCallerFunctionsResponse } from '../models/BaseResponseCalleesCallerFunctionsResponse';
@@ -21,8 +17,6 @@ import { CanonicalizeNamesOutputBody } from '../models/CanonicalizeNamesOutputBo
21
17
  import { CapabilitiesOutputBody } from '../models/CapabilitiesOutputBody';
22
18
  import { DisassemblyOutputBody } from '../models/DisassemblyOutputBody';
23
19
  import { FunctionDetailsOutputBody } from '../models/FunctionDetailsOutputBody';
24
- import { FunctionMatchingRequest } from '../models/FunctionMatchingRequest';
25
- import { FunctionMatchingResponse } from '../models/FunctionMatchingResponse';
26
20
  import { GetMatchesOutputBody } from '../models/GetMatchesOutputBody';
27
21
  import { GetMatchesStatusOutputBody } from '../models/GetMatchesStatusOutputBody';
28
22
  import { ImportedFunctionDetailOutputBody } from '../models/ImportedFunctionDetailOutputBody';
@@ -35,12 +29,6 @@ import { StartMatchingOutputBody } from '../models/StartMatchingOutputBody';
35
29
  export declare class FunctionsCoreApiRequestFactory extends BaseAPIRequestFactory {
36
30
  addFunctionCallee(functionId: number, addCalleeInputBody: AddCalleeInputBody, _options?: Configuration): Promise<RequestContext>;
37
31
  addUserStringToFunction(functionId: number, addUserStringToFunctionInputBody: AddUserStringToFunctionInputBody, _options?: Configuration): Promise<RequestContext>;
38
- aiUnstrip(analysisId: number, aiUnstripRequest: AiUnstripRequest, _options?: Configuration): Promise<RequestContext>;
39
- analysisFunctionMatching(analysisId: number, analysisFunctionMatchingRequest: AnalysisFunctionMatchingRequest, _options?: Configuration): Promise<RequestContext>;
40
- autoUnstrip(analysisId: number, autoUnstripRequest: AutoUnstripRequest, _options?: Configuration): Promise<RequestContext>;
41
- batchFunctionMatching(functionMatchingRequest: FunctionMatchingRequest, _options?: Configuration): Promise<RequestContext>;
42
- cancelAiUnstrip(analysisId: number, _options?: Configuration): Promise<RequestContext>;
43
- cancelAutoUnstrip(analysisId: number, _options?: Configuration): Promise<RequestContext>;
44
32
  getAnalysisStrings(analysisId: number, page?: number, pageSize?: number, search?: string, functionSearch?: string, orderBy?: 'length' | 'value', sortOrder?: 'ASC' | 'DESC', _options?: Configuration): Promise<RequestContext>;
45
33
  getAnalysisStringsStatus(analysisId: number, _options?: Configuration): Promise<RequestContext>;
46
34
  getFunctionBlocks(functionId: number, _options?: Configuration): Promise<RequestContext>;
@@ -71,12 +59,6 @@ export declare class FunctionsCoreApiResponseProcessor {
71
59
  addUserStringToFunctionWithHttpInfo(response: ResponseContext): Promise<HttpInfo<{
72
60
  [key: string]: any;
73
61
  }>>;
74
- aiUnstripWithHttpInfo(response: ResponseContext): Promise<HttpInfo<AutoUnstripResponse>>;
75
- analysisFunctionMatchingWithHttpInfo(response: ResponseContext): Promise<HttpInfo<FunctionMatchingResponse>>;
76
- autoUnstripWithHttpInfo(response: ResponseContext): Promise<HttpInfo<AutoUnstripResponse>>;
77
- batchFunctionMatchingWithHttpInfo(response: ResponseContext): Promise<HttpInfo<FunctionMatchingResponse>>;
78
- cancelAiUnstripWithHttpInfo(response: ResponseContext): Promise<HttpInfo<AutoUnstripResponse>>;
79
- cancelAutoUnstripWithHttpInfo(response: ResponseContext): Promise<HttpInfo<AutoUnstripResponse>>;
80
62
  getAnalysisStringsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseAnalysisStringsResponse>>;
81
63
  getAnalysisStringsStatusWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseAnalysisStringsStatusResponse>>;
82
64
  getFunctionBlocksWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseFunctionBlocksResponse>>;
@@ -160,278 +160,6 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
160
160
  });
161
161
  });
162
162
  };
163
- FunctionsCoreApiRequestFactory.prototype.aiUnstrip = function (analysisId, aiUnstripRequest, _options) {
164
- var _a;
165
- return __awaiter(this, void 0, void 0, function () {
166
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
167
- return __generator(this, function (_b) {
168
- switch (_b.label) {
169
- case 0:
170
- _config = _options || this.configuration;
171
- if (analysisId === null || analysisId === undefined) {
172
- throw new baseapi_1.RequiredError("FunctionsCoreApi", "aiUnstrip", "analysisId");
173
- }
174
- if (aiUnstripRequest === null || aiUnstripRequest === undefined) {
175
- throw new baseapi_1.RequiredError("FunctionsCoreApi", "aiUnstrip", "aiUnstripRequest");
176
- }
177
- localVarPath = '/v2/analyses/{analysis_id}/functions/ai-unstrip'
178
- .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
179
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
180
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
181
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
182
- "application/json"
183
- ]);
184
- requestContext.setHeaderParam("Content-Type", contentType);
185
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(aiUnstripRequest, "AiUnstripRequest", ""), contentType);
186
- requestContext.setBody(serializedBody);
187
- authMethod = _config.authMethods["APIKey"];
188
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
189
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
190
- case 1:
191
- _b.sent();
192
- _b.label = 2;
193
- case 2:
194
- authMethod = _config.authMethods["bearerAuth"];
195
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
196
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
197
- case 3:
198
- _b.sent();
199
- _b.label = 4;
200
- case 4:
201
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
202
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
203
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
204
- case 5:
205
- _b.sent();
206
- _b.label = 6;
207
- case 6: return [2, requestContext];
208
- }
209
- });
210
- });
211
- };
212
- FunctionsCoreApiRequestFactory.prototype.analysisFunctionMatching = function (analysisId, analysisFunctionMatchingRequest, _options) {
213
- var _a;
214
- return __awaiter(this, void 0, void 0, function () {
215
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
216
- return __generator(this, function (_b) {
217
- switch (_b.label) {
218
- case 0:
219
- _config = _options || this.configuration;
220
- if (analysisId === null || analysisId === undefined) {
221
- throw new baseapi_1.RequiredError("FunctionsCoreApi", "analysisFunctionMatching", "analysisId");
222
- }
223
- if (analysisFunctionMatchingRequest === null || analysisFunctionMatchingRequest === undefined) {
224
- throw new baseapi_1.RequiredError("FunctionsCoreApi", "analysisFunctionMatching", "analysisFunctionMatchingRequest");
225
- }
226
- localVarPath = '/v2/analyses/{analysis_id}/functions/matches'
227
- .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
228
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
229
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
230
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
231
- "application/json"
232
- ]);
233
- requestContext.setHeaderParam("Content-Type", contentType);
234
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(analysisFunctionMatchingRequest, "AnalysisFunctionMatchingRequest", ""), contentType);
235
- requestContext.setBody(serializedBody);
236
- authMethod = _config.authMethods["APIKey"];
237
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
238
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
239
- case 1:
240
- _b.sent();
241
- _b.label = 2;
242
- case 2:
243
- authMethod = _config.authMethods["bearerAuth"];
244
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
245
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
246
- case 3:
247
- _b.sent();
248
- _b.label = 4;
249
- case 4:
250
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
251
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
252
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
253
- case 5:
254
- _b.sent();
255
- _b.label = 6;
256
- case 6: return [2, requestContext];
257
- }
258
- });
259
- });
260
- };
261
- FunctionsCoreApiRequestFactory.prototype.autoUnstrip = function (analysisId, autoUnstripRequest, _options) {
262
- var _a;
263
- return __awaiter(this, void 0, void 0, function () {
264
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
265
- return __generator(this, function (_b) {
266
- switch (_b.label) {
267
- case 0:
268
- _config = _options || this.configuration;
269
- if (analysisId === null || analysisId === undefined) {
270
- throw new baseapi_1.RequiredError("FunctionsCoreApi", "autoUnstrip", "analysisId");
271
- }
272
- if (autoUnstripRequest === null || autoUnstripRequest === undefined) {
273
- throw new baseapi_1.RequiredError("FunctionsCoreApi", "autoUnstrip", "autoUnstripRequest");
274
- }
275
- localVarPath = '/v2/analyses/{analysis_id}/functions/auto-unstrip'
276
- .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
277
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
278
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
279
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
280
- "application/json"
281
- ]);
282
- requestContext.setHeaderParam("Content-Type", contentType);
283
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(autoUnstripRequest, "AutoUnstripRequest", ""), contentType);
284
- requestContext.setBody(serializedBody);
285
- authMethod = _config.authMethods["APIKey"];
286
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
287
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
288
- case 1:
289
- _b.sent();
290
- _b.label = 2;
291
- case 2:
292
- authMethod = _config.authMethods["bearerAuth"];
293
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
294
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
295
- case 3:
296
- _b.sent();
297
- _b.label = 4;
298
- case 4:
299
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
300
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
301
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
302
- case 5:
303
- _b.sent();
304
- _b.label = 6;
305
- case 6: return [2, requestContext];
306
- }
307
- });
308
- });
309
- };
310
- FunctionsCoreApiRequestFactory.prototype.batchFunctionMatching = function (functionMatchingRequest, _options) {
311
- var _a;
312
- return __awaiter(this, void 0, void 0, function () {
313
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
314
- return __generator(this, function (_b) {
315
- switch (_b.label) {
316
- case 0:
317
- _config = _options || this.configuration;
318
- if (functionMatchingRequest === null || functionMatchingRequest === undefined) {
319
- throw new baseapi_1.RequiredError("FunctionsCoreApi", "batchFunctionMatching", "functionMatchingRequest");
320
- }
321
- localVarPath = '/v2/functions/matches';
322
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
323
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
324
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
325
- "application/json"
326
- ]);
327
- requestContext.setHeaderParam("Content-Type", contentType);
328
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(functionMatchingRequest, "FunctionMatchingRequest", ""), contentType);
329
- requestContext.setBody(serializedBody);
330
- authMethod = _config.authMethods["APIKey"];
331
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
332
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
333
- case 1:
334
- _b.sent();
335
- _b.label = 2;
336
- case 2:
337
- authMethod = _config.authMethods["bearerAuth"];
338
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
339
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
340
- case 3:
341
- _b.sent();
342
- _b.label = 4;
343
- case 4:
344
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
345
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
346
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
347
- case 5:
348
- _b.sent();
349
- _b.label = 6;
350
- case 6: return [2, requestContext];
351
- }
352
- });
353
- });
354
- };
355
- FunctionsCoreApiRequestFactory.prototype.cancelAiUnstrip = function (analysisId, _options) {
356
- var _a;
357
- return __awaiter(this, void 0, void 0, function () {
358
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
359
- return __generator(this, function (_b) {
360
- switch (_b.label) {
361
- case 0:
362
- _config = _options || this.configuration;
363
- if (analysisId === null || analysisId === undefined) {
364
- throw new baseapi_1.RequiredError("FunctionsCoreApi", "cancelAiUnstrip", "analysisId");
365
- }
366
- localVarPath = '/v2/analyses/{analysis_id}/functions/ai-unstrip/cancel'
367
- .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
368
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
369
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
370
- authMethod = _config.authMethods["APIKey"];
371
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
372
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
373
- case 1:
374
- _b.sent();
375
- _b.label = 2;
376
- case 2:
377
- authMethod = _config.authMethods["bearerAuth"];
378
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
379
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
380
- case 3:
381
- _b.sent();
382
- _b.label = 4;
383
- case 4:
384
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
385
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
386
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
387
- case 5:
388
- _b.sent();
389
- _b.label = 6;
390
- case 6: return [2, requestContext];
391
- }
392
- });
393
- });
394
- };
395
- FunctionsCoreApiRequestFactory.prototype.cancelAutoUnstrip = function (analysisId, _options) {
396
- var _a;
397
- return __awaiter(this, void 0, void 0, function () {
398
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
399
- return __generator(this, function (_b) {
400
- switch (_b.label) {
401
- case 0:
402
- _config = _options || this.configuration;
403
- if (analysisId === null || analysisId === undefined) {
404
- throw new baseapi_1.RequiredError("FunctionsCoreApi", "cancelAutoUnstrip", "analysisId");
405
- }
406
- localVarPath = '/v2/analyses/{analysis_id}/functions/unstrip/cancel'
407
- .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
408
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
409
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
410
- authMethod = _config.authMethods["APIKey"];
411
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
412
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
413
- case 1:
414
- _b.sent();
415
- _b.label = 2;
416
- case 2:
417
- authMethod = _config.authMethods["bearerAuth"];
418
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
419
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
420
- case 3:
421
- _b.sent();
422
- _b.label = 4;
423
- case 4:
424
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
425
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
426
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
427
- case 5:
428
- _b.sent();
429
- _b.label = 6;
430
- case 6: return [2, requestContext];
431
- }
432
- });
433
- });
434
- };
435
163
  FunctionsCoreApiRequestFactory.prototype.getAnalysisStrings = function (analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder, _options) {
436
164
  var _a;
437
165
  return __awaiter(this, void 0, void 0, function () {
@@ -1539,258 +1267,6 @@ var FunctionsCoreApiResponseProcessor = (function () {
1539
1267
  });
1540
1268
  });
1541
1269
  };
1542
- FunctionsCoreApiResponseProcessor.prototype.aiUnstripWithHttpInfo = function (response) {
1543
- return __awaiter(this, void 0, void 0, function () {
1544
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1545
- return __generator(this, function (_q) {
1546
- switch (_q.label) {
1547
- case 0:
1548
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1549
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1550
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1551
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1552
- return [4, response.body.text()];
1553
- case 1:
1554
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1555
- "AutoUnstripResponse", ""]);
1556
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1557
- case 2:
1558
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1559
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1560
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1561
- return [4, response.body.text()];
1562
- case 3:
1563
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1564
- "BaseResponse", ""]);
1565
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1566
- case 4:
1567
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1568
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1569
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1570
- return [4, response.body.text()];
1571
- case 5:
1572
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1573
- "AutoUnstripResponse", ""]);
1574
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1575
- case 6:
1576
- _o = exception_1.ApiException.bind;
1577
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1578
- return [4, response.getBodyAsAny()];
1579
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1580
- }
1581
- });
1582
- });
1583
- };
1584
- FunctionsCoreApiResponseProcessor.prototype.analysisFunctionMatchingWithHttpInfo = function (response) {
1585
- return __awaiter(this, void 0, void 0, function () {
1586
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1587
- return __generator(this, function (_q) {
1588
- switch (_q.label) {
1589
- case 0:
1590
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1591
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1592
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1593
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1594
- return [4, response.body.text()];
1595
- case 1:
1596
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1597
- "FunctionMatchingResponse", ""]);
1598
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1599
- case 2:
1600
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1601
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1602
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1603
- return [4, response.body.text()];
1604
- case 3:
1605
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1606
- "BaseResponse", ""]);
1607
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1608
- case 4:
1609
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1610
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1611
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1612
- return [4, response.body.text()];
1613
- case 5:
1614
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1615
- "FunctionMatchingResponse", ""]);
1616
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1617
- case 6:
1618
- _o = exception_1.ApiException.bind;
1619
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1620
- return [4, response.getBodyAsAny()];
1621
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1622
- }
1623
- });
1624
- });
1625
- };
1626
- FunctionsCoreApiResponseProcessor.prototype.autoUnstripWithHttpInfo = function (response) {
1627
- return __awaiter(this, void 0, void 0, function () {
1628
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1629
- return __generator(this, function (_q) {
1630
- switch (_q.label) {
1631
- case 0:
1632
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1633
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1634
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1635
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1636
- return [4, response.body.text()];
1637
- case 1:
1638
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1639
- "AutoUnstripResponse", ""]);
1640
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1641
- case 2:
1642
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1643
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1644
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1645
- return [4, response.body.text()];
1646
- case 3:
1647
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1648
- "BaseResponse", ""]);
1649
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1650
- case 4:
1651
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1652
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1653
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1654
- return [4, response.body.text()];
1655
- case 5:
1656
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1657
- "AutoUnstripResponse", ""]);
1658
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1659
- case 6:
1660
- _o = exception_1.ApiException.bind;
1661
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1662
- return [4, response.getBodyAsAny()];
1663
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1664
- }
1665
- });
1666
- });
1667
- };
1668
- FunctionsCoreApiResponseProcessor.prototype.batchFunctionMatchingWithHttpInfo = function (response) {
1669
- return __awaiter(this, void 0, void 0, function () {
1670
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1671
- return __generator(this, function (_q) {
1672
- switch (_q.label) {
1673
- case 0:
1674
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1675
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1676
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1677
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1678
- return [4, response.body.text()];
1679
- case 1:
1680
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1681
- "FunctionMatchingResponse", ""]);
1682
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1683
- case 2:
1684
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1685
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1686
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1687
- return [4, response.body.text()];
1688
- case 3:
1689
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1690
- "BaseResponse", ""]);
1691
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1692
- case 4:
1693
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1694
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1695
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1696
- return [4, response.body.text()];
1697
- case 5:
1698
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1699
- "FunctionMatchingResponse", ""]);
1700
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1701
- case 6:
1702
- _o = exception_1.ApiException.bind;
1703
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1704
- return [4, response.getBodyAsAny()];
1705
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1706
- }
1707
- });
1708
- });
1709
- };
1710
- FunctionsCoreApiResponseProcessor.prototype.cancelAiUnstripWithHttpInfo = function (response) {
1711
- return __awaiter(this, void 0, void 0, function () {
1712
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1713
- return __generator(this, function (_q) {
1714
- switch (_q.label) {
1715
- case 0:
1716
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1717
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1718
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1719
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1720
- return [4, response.body.text()];
1721
- case 1:
1722
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1723
- "AutoUnstripResponse", ""]);
1724
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1725
- case 2:
1726
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1727
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1728
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1729
- return [4, response.body.text()];
1730
- case 3:
1731
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1732
- "BaseResponse", ""]);
1733
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1734
- case 4:
1735
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1736
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1737
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1738
- return [4, response.body.text()];
1739
- case 5:
1740
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1741
- "AutoUnstripResponse", ""]);
1742
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1743
- case 6:
1744
- _o = exception_1.ApiException.bind;
1745
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1746
- return [4, response.getBodyAsAny()];
1747
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1748
- }
1749
- });
1750
- });
1751
- };
1752
- FunctionsCoreApiResponseProcessor.prototype.cancelAutoUnstripWithHttpInfo = function (response) {
1753
- return __awaiter(this, void 0, void 0, function () {
1754
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1755
- return __generator(this, function (_q) {
1756
- switch (_q.label) {
1757
- case 0:
1758
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1759
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1760
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1761
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1762
- return [4, response.body.text()];
1763
- case 1:
1764
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1765
- "AutoUnstripResponse", ""]);
1766
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1767
- case 2:
1768
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1769
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1770
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1771
- return [4, response.body.text()];
1772
- case 3:
1773
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1774
- "BaseResponse", ""]);
1775
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1776
- case 4:
1777
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1778
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1779
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1780
- return [4, response.body.text()];
1781
- case 5:
1782
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1783
- "AutoUnstripResponse", ""]);
1784
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1785
- case 6:
1786
- _o = exception_1.ApiException.bind;
1787
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1788
- return [4, response.getBodyAsAny()];
1789
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1790
- }
1791
- });
1792
- });
1793
- };
1794
1270
  FunctionsCoreApiResponseProcessor.prototype.getAnalysisStringsWithHttpInfo = function (response) {
1795
1271
  return __awaiter(this, void 0, void 0, function () {
1796
1272
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;