From fb4a5a8c4589b3930a1e70202fc6b776508207ea Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 14 Jul 2026 08:29:53 +0000 Subject: [PATCH] Update SDK to version v3.116.0 - Generated from OpenAPI spec version v3.116.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 17 - apis/AnalysesCoreApi.ts | 9 +- apis/FunctionsCoreApi.ts | 556 ------------------- docs/AnalysesCoreApi.md | 3 + docs/FunctionsCoreApi.md | 383 ------------- models/AiUnstripRequest.ts | 38 -- models/AnalysisFunctionMatchingRequest.ts | 109 ---- models/AutoUnstripRequest.ts | 104 ---- models/AutoUnstripResponse.ts | 75 --- models/DynamicExecutionStatusResponse.ts | 16 +- models/FunctionMatchingFilters.ts | 86 --- models/FunctionMatchingRequest.ts | 129 ----- models/FunctionMatchingResponse.ts | 102 ---- models/GetAnalysisStringsStatusOutputBody.ts | 17 +- models/MatchedFunctionSuggestion.ts | 65 --- models/ObjectSerializer.ts | 40 +- models/V2FunctionMatch.ts | 54 -- models/V2MatchedFunction.ts | 108 ---- models/V2NameConfidence.ts | 48 -- models/all.ts | 11 - package.json | 2 +- types/ObjectParamAPI.ts | 207 +------ types/ObservableAPI.ts | 231 +------- types/PromiseAPI.ts | 159 +----- 25 files changed, 66 insertions(+), 2505 deletions(-) delete mode 100644 models/AiUnstripRequest.ts delete mode 100644 models/AnalysisFunctionMatchingRequest.ts delete mode 100644 models/AutoUnstripRequest.ts delete mode 100644 models/AutoUnstripResponse.ts delete mode 100644 models/FunctionMatchingFilters.ts delete mode 100644 models/FunctionMatchingRequest.ts delete mode 100644 models/FunctionMatchingResponse.ts delete mode 100644 models/MatchedFunctionSuggestion.ts delete mode 100644 models/V2FunctionMatch.ts delete mode 100644 models/V2MatchedFunction.ts delete mode 100644 models/V2NameConfidence.ts diff --git a/.sdk-version b/.sdk-version index 4ba1813..29fc955 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.114.2 +v3.116.0 diff --git a/README.md b/README.md index 673fcfb..e040f6e 100644 --- a/README.md +++ b/README.md @@ -155,12 +155,6 @@ Class | Method | HTTP request | Description *FunctionsAIDecompilationApi* | [**upsertAiDecompilationRating**](docs/FunctionsAIDecompilationApi.md#upsertAiDecompilationRating) | **PATCH** /v2/functions/{function_id}/ai-decompilation/rating | Upsert rating for AI decompilation *FunctionsCoreApi* | [**addFunctionCallee**](docs/FunctionsCoreApi.md#addFunctionCallee) | **POST** /v3/functions/{function_id}/callees | Add a callee to a function *FunctionsCoreApi* | [**addUserStringToFunction**](docs/FunctionsCoreApi.md#addUserStringToFunction) | **POST** /v3/functions/{function_id}/user-provided-strings | Add a user-provided string to a function. -*FunctionsCoreApi* | [**aiUnstrip**](docs/FunctionsCoreApi.md#aiUnstrip) | **POST** /v2/analyses/{analysis_id}/functions/ai-unstrip | Performs matching and auto-unstrip for an analysis and its functions -*FunctionsCoreApi* | [**analysisFunctionMatching**](docs/FunctionsCoreApi.md#analysisFunctionMatching) | **POST** /v2/analyses/{analysis_id}/functions/matches | Perform matching for the functions of an analysis -*FunctionsCoreApi* | [**autoUnstrip**](docs/FunctionsCoreApi.md#autoUnstrip) | **POST** /v2/analyses/{analysis_id}/functions/auto-unstrip | Performs matching and auto-unstrip for an analysis and its functions -*FunctionsCoreApi* | [**batchFunctionMatching**](docs/FunctionsCoreApi.md#batchFunctionMatching) | **POST** /v2/functions/matches | Perform function matching for an arbitrary batch of functions, binaries or collections -*FunctionsCoreApi* | [**cancelAiUnstrip**](docs/FunctionsCoreApi.md#cancelAiUnstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/ai-unstrip/cancel | Cancels a running ai-unstrip -*FunctionsCoreApi* | [**cancelAutoUnstrip**](docs/FunctionsCoreApi.md#cancelAutoUnstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/unstrip/cancel | Cancels a running auto-unstrip *FunctionsCoreApi* | [**getAnalysisStrings**](docs/FunctionsCoreApi.md#getAnalysisStrings) | **GET** /v2/analyses/{analysis_id}/functions/strings | Get string information found in the Analysis *FunctionsCoreApi* | [**getAnalysisStringsStatus**](docs/FunctionsCoreApi.md#getAnalysisStringsStatus) | **GET** /v2/analyses/{analysis_id}/functions/strings/status | Get string processing state for the Analysis *FunctionsCoreApi* | [**getFunctionBlocks**](docs/FunctionsCoreApi.md#getFunctionBlocks) | **GET** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function @@ -226,7 +220,6 @@ Class | Method | HTTP request | Description - [AddUserStringToFunctionInputBody](AddUserStringToFunctionInputBody.md) - [AdditionalDetailsStatusResponse](AdditionalDetailsStatusResponse.md) - [AiDecompilationRating](AiDecompilationRating.md) - - [AiUnstripRequest](AiUnstripRequest.md) - [AnalysisAccessInfo](AnalysisAccessInfo.md) - [AnalysisBasicInfoOutputBody](AnalysisBasicInfoOutputBody.md) - [AnalysisBulkAddTagsRequest](AnalysisBulkAddTagsRequest.md) @@ -239,7 +232,6 @@ Class | Method | HTTP request | Description - [AnalysisDetailResponse](AnalysisDetailResponse.md) - [AnalysisFunctionEntry](AnalysisFunctionEntry.md) - [AnalysisFunctionMapping](AnalysisFunctionMapping.md) - - [AnalysisFunctionMatchingRequest](AnalysisFunctionMatchingRequest.md) - [AnalysisFunctions](AnalysisFunctions.md) - [AnalysisFunctionsList](AnalysisFunctionsList.md) - [AnalysisLogMessage](AnalysisLogMessage.md) @@ -271,8 +263,6 @@ Class | Method | HTTP request | Description - [AttemptFailedEvent](AttemptFailedEvent.md) - [AttemptStartedEvent](AttemptStartedEvent.md) - [AutoRunAgents](AutoRunAgents.md) - - [AutoUnstripRequest](AutoUnstripRequest.md) - - [AutoUnstripResponse](AutoUnstripResponse.md) - [AutoUnstripStatusOutputBody](AutoUnstripStatusOutputBody.md) - [BaseResponse](BaseResponse.md) - [BaseResponseAdditionalDetailsStatusResponse](BaseResponseAdditionalDetailsStatusResponse.md) @@ -496,9 +486,6 @@ Class | Method | HTTP request | Description - [FunctionLocalVariableResponse](FunctionLocalVariableResponse.md) - [FunctionMapping](FunctionMapping.md) - [FunctionMatch](FunctionMatch.md) - - [FunctionMatchingFilters](FunctionMatchingFilters.md) - - [FunctionMatchingRequest](FunctionMatchingRequest.md) - - [FunctionMatchingResponse](FunctionMatchingResponse.md) - [FunctionNameHistory](FunctionNameHistory.md) - [FunctionParamResponse](FunctionParamResponse.md) - [FunctionRename](FunctionRename.md) @@ -560,7 +547,6 @@ Class | Method | HTTP request | Description - [MITRETechnique](MITRETechnique.md) - [MatchFilters](MatchFilters.md) - [MatchedFunction](MatchedFunction.md) - - [MatchedFunctionSuggestion](MatchedFunctionSuggestion.md) - [MemdumpEntry](MemdumpEntry.md) - [MessageBody](MessageBody.md) - [MetaModel](MetaModel.md) @@ -719,10 +705,7 @@ Class | Method | HTTP request | Description - [V2FunctionHeader](V2FunctionHeader.md) - [V2FunctionInfo](V2FunctionInfo.md) - [V2FunctionInfoFuncDepsInner](V2FunctionInfoFuncDepsInner.md) - - [V2FunctionMatch](V2FunctionMatch.md) - [V2FunctionType](V2FunctionType.md) - - [V2MatchedFunction](V2MatchedFunction.md) - - [V2NameConfidence](V2NameConfidence.md) - [Vulnerabilities](Vulnerabilities.md) - [Vulnerability](Vulnerability.md) - [WarningEvent](WarningEvent.md) diff --git a/apis/AnalysesCoreApi.ts b/apis/AnalysesCoreApi.ts index f08ac08..ae2abe1 100644 --- a/apis/AnalysesCoreApi.ts +++ b/apis/AnalysesCoreApi.ts @@ -1392,11 +1392,12 @@ export class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory { * @param page Page number (1-indexed). * @param pageSize Number of results per page. * @param search Filter by string value (case-insensitive substring match). + * @param searchOperator How the search term matches string values. * @param functionSearch Filter by function name (case-insensitive substring match). * @param orderBy Field to order results by. * @param sortOrder Sort direction. */ - public async v3GetAnalysisStrings(analysisId: number, page?: number, pageSize?: number, search?: string, functionSearch?: string, orderBy?: 'value' | 'length', sortOrder?: 'ASC' | 'DESC', _options?: Configuration): Promise { + public async v3GetAnalysisStrings(analysisId: number, page?: number, pageSize?: number, search?: string, searchOperator?: 'CONTAINS' | 'STARTS_WITH', functionSearch?: string, orderBy?: 'value' | 'length', sortOrder?: 'ASC' | 'DESC', _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'analysisId' is not null or undefined @@ -1411,6 +1412,7 @@ export class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory { + // Path Params const localVarPath = '/v3/analyses/{analysis_id}/functions/strings' .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId))); @@ -1434,6 +1436,11 @@ export class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("search", ObjectSerializer.serialize(search, "string", "")); } + // Query Params + if (searchOperator !== undefined) { + requestContext.setQueryParam("search_operator", ObjectSerializer.serialize(searchOperator, "'CONTAINS' | 'STARTS_WITH'", "")); + } + // Query Params if (functionSearch !== undefined) { requestContext.setQueryParam("function_search", ObjectSerializer.serialize(functionSearch, "string", "")); diff --git a/apis/FunctionsCoreApi.ts b/apis/FunctionsCoreApi.ts index ea540f1..00513a1 100644 --- a/apis/FunctionsCoreApi.ts +++ b/apis/FunctionsCoreApi.ts @@ -11,10 +11,6 @@ import {SecurityAuthentication} from '../auth/auth'; import { APIError } from '../models/APIError'; import { AddCalleeInputBody } from '../models/AddCalleeInputBody'; import { AddUserStringToFunctionInputBody } from '../models/AddUserStringToFunctionInputBody'; -import { AiUnstripRequest } from '../models/AiUnstripRequest'; -import { AnalysisFunctionMatchingRequest } from '../models/AnalysisFunctionMatchingRequest'; -import { AutoUnstripRequest } from '../models/AutoUnstripRequest'; -import { AutoUnstripResponse } from '../models/AutoUnstripResponse'; import { BaseResponse } from '../models/BaseResponse'; import { BaseResponseAnalysisStringsResponse } from '../models/BaseResponseAnalysisStringsResponse'; import { BaseResponseAnalysisStringsStatusResponse } from '../models/BaseResponseAnalysisStringsStatusResponse'; @@ -30,8 +26,6 @@ import { CanonicalizeNamesOutputBody } from '../models/CanonicalizeNamesOutputBo import { CapabilitiesOutputBody } from '../models/CapabilitiesOutputBody'; import { DisassemblyOutputBody } from '../models/DisassemblyOutputBody'; import { FunctionDetailsOutputBody } from '../models/FunctionDetailsOutputBody'; -import { FunctionMatchingRequest } from '../models/FunctionMatchingRequest'; -import { FunctionMatchingResponse } from '../models/FunctionMatchingResponse'; import { GetMatchesOutputBody } from '../models/GetMatchesOutputBody'; import { GetMatchesStatusOutputBody } from '../models/GetMatchesStatusOutputBody'; import { ImportedFunctionDetailOutputBody } from '../models/ImportedFunctionDetailOutputBody'; @@ -169,340 +163,6 @@ export class FunctionsCoreApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - /** - * @deprecated - * - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function groups for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param analysisId - * @param aiUnstripRequest - */ - public async aiUnstrip(analysisId: number, aiUnstripRequest: AiUnstripRequest, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'analysisId' is not null or undefined - if (analysisId === null || analysisId === undefined) { - throw new RequiredError("FunctionsCoreApi", "aiUnstrip", "analysisId"); - } - - - // verify required parameter 'aiUnstripRequest' is not null or undefined - if (aiUnstripRequest === null || aiUnstripRequest === undefined) { - throw new RequiredError("FunctionsCoreApi", "aiUnstrip", "aiUnstripRequest"); - } - - - // Path Params - const localVarPath = '/v2/analyses/{analysis_id}/functions/ai-unstrip' - .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(aiUnstripRequest, "AiUnstripRequest", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["APIKey"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - // Apply auth methods - authMethod = _config.authMethods["bearerAuth"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * @deprecated - * - * Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids - * Perform matching for the functions of an analysis - * @param analysisId - * @param analysisFunctionMatchingRequest - */ - public async analysisFunctionMatching(analysisId: number, analysisFunctionMatchingRequest: AnalysisFunctionMatchingRequest, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'analysisId' is not null or undefined - if (analysisId === null || analysisId === undefined) { - throw new RequiredError("FunctionsCoreApi", "analysisFunctionMatching", "analysisId"); - } - - - // verify required parameter 'analysisFunctionMatchingRequest' is not null or undefined - if (analysisFunctionMatchingRequest === null || analysisFunctionMatchingRequest === undefined) { - throw new RequiredError("FunctionsCoreApi", "analysisFunctionMatching", "analysisFunctionMatchingRequest"); - } - - - // Path Params - const localVarPath = '/v2/analyses/{analysis_id}/functions/matches' - .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(analysisFunctionMatchingRequest, "AnalysisFunctionMatchingRequest", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["APIKey"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - // Apply auth methods - authMethod = _config.authMethods["bearerAuth"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * @deprecated - * - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param analysisId - * @param autoUnstripRequest - */ - public async autoUnstrip(analysisId: number, autoUnstripRequest: AutoUnstripRequest, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'analysisId' is not null or undefined - if (analysisId === null || analysisId === undefined) { - throw new RequiredError("FunctionsCoreApi", "autoUnstrip", "analysisId"); - } - - - // verify required parameter 'autoUnstripRequest' is not null or undefined - if (autoUnstripRequest === null || autoUnstripRequest === undefined) { - throw new RequiredError("FunctionsCoreApi", "autoUnstrip", "autoUnstripRequest"); - } - - - // Path Params - const localVarPath = '/v2/analyses/{analysis_id}/functions/auto-unstrip' - .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(autoUnstripRequest, "AutoUnstripRequest", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["APIKey"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - // Apply auth methods - authMethod = _config.authMethods["bearerAuth"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * @deprecated - * - * Takes in an input of functions ID\'s and settings and finds the nearest functions for each function that\'s within the system - * Perform function matching for an arbitrary batch of functions, binaries or collections - * @param functionMatchingRequest - */ - public async batchFunctionMatching(functionMatchingRequest: FunctionMatchingRequest, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'functionMatchingRequest' is not null or undefined - if (functionMatchingRequest === null || functionMatchingRequest === undefined) { - throw new RequiredError("FunctionsCoreApi", "batchFunctionMatching", "functionMatchingRequest"); - } - - - // Path Params - const localVarPath = '/v2/functions/matches'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(functionMatchingRequest, "FunctionMatchingRequest", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["APIKey"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - // Apply auth methods - authMethod = _config.authMethods["bearerAuth"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * @deprecated - * - * Takes in the analysis ID and cancels a running ai-unstrip operation - * Cancels a running ai-unstrip - * @param analysisId - */ - public async cancelAiUnstrip(analysisId: number, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'analysisId' is not null or undefined - if (analysisId === null || analysisId === undefined) { - throw new RequiredError("FunctionsCoreApi", "cancelAiUnstrip", "analysisId"); - } - - - // Path Params - const localVarPath = '/v2/analyses/{analysis_id}/functions/ai-unstrip/cancel' - .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["APIKey"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - // Apply auth methods - authMethod = _config.authMethods["bearerAuth"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * @deprecated - * - * Takes in the analysis ID and cancels a running auto-unstrip operation - * Cancels a running auto-unstrip - * @param analysisId - */ - public async cancelAutoUnstrip(analysisId: number, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'analysisId' is not null or undefined - if (analysisId === null || analysisId === undefined) { - throw new RequiredError("FunctionsCoreApi", "cancelAutoUnstrip", "analysisId"); - } - - - // Path Params - const localVarPath = '/v2/analyses/{analysis_id}/functions/unstrip/cancel' - .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["APIKey"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - // Apply auth methods - authMethod = _config.authMethods["bearerAuth"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - /** * @deprecated * @@ -1749,222 +1409,6 @@ export class FunctionsCoreApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to aiUnstrip - * @throws ApiException if the response code was not in [200, 299] - */ - public async aiUnstripWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: AutoUnstripResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AutoUnstripResponse", "" - ) as AutoUnstripResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("422", response.httpStatusCode)) { - const body: BaseResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "BaseResponse", "" - ) as BaseResponse; - throw new ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: AutoUnstripResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AutoUnstripResponse", "" - ) as AutoUnstripResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to analysisFunctionMatching - * @throws ApiException if the response code was not in [200, 299] - */ - public async analysisFunctionMatchingWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: FunctionMatchingResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "FunctionMatchingResponse", "" - ) as FunctionMatchingResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("422", response.httpStatusCode)) { - const body: BaseResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "BaseResponse", "" - ) as BaseResponse; - throw new ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: FunctionMatchingResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "FunctionMatchingResponse", "" - ) as FunctionMatchingResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to autoUnstrip - * @throws ApiException if the response code was not in [200, 299] - */ - public async autoUnstripWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: AutoUnstripResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AutoUnstripResponse", "" - ) as AutoUnstripResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("422", response.httpStatusCode)) { - const body: BaseResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "BaseResponse", "" - ) as BaseResponse; - throw new ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: AutoUnstripResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AutoUnstripResponse", "" - ) as AutoUnstripResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to batchFunctionMatching - * @throws ApiException if the response code was not in [200, 299] - */ - public async batchFunctionMatchingWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: FunctionMatchingResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "FunctionMatchingResponse", "" - ) as FunctionMatchingResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("422", response.httpStatusCode)) { - const body: BaseResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "BaseResponse", "" - ) as BaseResponse; - throw new ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: FunctionMatchingResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "FunctionMatchingResponse", "" - ) as FunctionMatchingResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to cancelAiUnstrip - * @throws ApiException if the response code was not in [200, 299] - */ - public async cancelAiUnstripWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: AutoUnstripResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AutoUnstripResponse", "" - ) as AutoUnstripResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("422", response.httpStatusCode)) { - const body: BaseResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "BaseResponse", "" - ) as BaseResponse; - throw new ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: AutoUnstripResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AutoUnstripResponse", "" - ) as AutoUnstripResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to cancelAutoUnstrip - * @throws ApiException if the response code was not in [200, 299] - */ - public async cancelAutoUnstripWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: AutoUnstripResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AutoUnstripResponse", "" - ) as AutoUnstripResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("422", response.httpStatusCode)) { - const body: BaseResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "BaseResponse", "" - ) as BaseResponse; - throw new ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: AutoUnstripResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AutoUnstripResponse", "" - ) as AutoUnstripResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects diff --git a/docs/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index 67d32fa..a72affc 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -1544,6 +1544,8 @@ const request: AnalysesCoreApiV3GetAnalysisStringsRequest = { pageSize: 100, // Filter by string value (case-insensitive substring match). (optional) search: "search_example", + // How the search term matches string values. (optional) + searchOperator: "CONTAINS", // Filter by function name (case-insensitive substring match). (optional) functionSearch: "function_search_example", // Field to order results by. (optional) @@ -1565,6 +1567,7 @@ Name | Type | Description | Notes **page** | [**number**] | Page number (1-indexed). | (optional) defaults to 1 **pageSize** | [**number**] | Number of results per page. | (optional) defaults to 100 **search** | [**string**] | Filter by string value (case-insensitive substring match). | (optional) defaults to undefined + **searchOperator** | [**'CONTAINS' | 'STARTS_WITH'**]**Array<'CONTAINS' | 'STARTS_WITH' | '11184809'>** | How the search term matches string values. | (optional) defaults to 'CONTAINS' **functionSearch** | [**string**] | Filter by function name (case-insensitive substring match). | (optional) defaults to undefined **orderBy** | [**'value' | 'length'**]**Array<'value' | 'length' | '11184809'>** | Field to order results by. | (optional) defaults to 'value' **sortOrder** | [**'ASC' | 'DESC'**]**Array<'ASC' | 'DESC' | '11184809'>** | Sort direction. | (optional) defaults to 'ASC' diff --git a/docs/FunctionsCoreApi.md b/docs/FunctionsCoreApi.md index 309caf1..7e08e09 100644 --- a/docs/FunctionsCoreApi.md +++ b/docs/FunctionsCoreApi.md @@ -6,12 +6,6 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**addFunctionCallee**](FunctionsCoreApi.md#addFunctionCallee) | **POST** /v3/functions/{function_id}/callees | Add a callee to a function [**addUserStringToFunction**](FunctionsCoreApi.md#addUserStringToFunction) | **POST** /v3/functions/{function_id}/user-provided-strings | Add a user-provided string to a function. -[**aiUnstrip**](FunctionsCoreApi.md#aiUnstrip) | **POST** /v2/analyses/{analysis_id}/functions/ai-unstrip | Performs matching and auto-unstrip for an analysis and its functions -[**analysisFunctionMatching**](FunctionsCoreApi.md#analysisFunctionMatching) | **POST** /v2/analyses/{analysis_id}/functions/matches | Perform matching for the functions of an analysis -[**autoUnstrip**](FunctionsCoreApi.md#autoUnstrip) | **POST** /v2/analyses/{analysis_id}/functions/auto-unstrip | Performs matching and auto-unstrip for an analysis and its functions -[**batchFunctionMatching**](FunctionsCoreApi.md#batchFunctionMatching) | **POST** /v2/functions/matches | Perform function matching for an arbitrary batch of functions, binaries or collections -[**cancelAiUnstrip**](FunctionsCoreApi.md#cancelAiUnstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/ai-unstrip/cancel | Cancels a running ai-unstrip -[**cancelAutoUnstrip**](FunctionsCoreApi.md#cancelAutoUnstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/unstrip/cancel | Cancels a running auto-unstrip [**getAnalysisStrings**](FunctionsCoreApi.md#getAnalysisStrings) | **GET** /v2/analyses/{analysis_id}/functions/strings | Get string information found in the Analysis [**getAnalysisStringsStatus**](FunctionsCoreApi.md#getAnalysisStringsStatus) | **GET** /v2/analyses/{analysis_id}/functions/strings/status | Get string processing state for the Analysis [**getFunctionBlocks**](FunctionsCoreApi.md#getFunctionBlocks) | **GET** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function @@ -157,383 +151,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **aiUnstrip** -> AutoUnstripResponse aiUnstrip(aiUnstripRequest) - -Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function groups for each function that\'s within the system - -### Example - - -```typescript -import { createConfiguration, FunctionsCoreApi } from '@revengai/sdk'; -import type { FunctionsCoreApiAiUnstripRequest } from '@revengai/sdk'; - -const configuration = createConfiguration(); -const apiInstance = new FunctionsCoreApi(configuration); - -const request: FunctionsCoreApiAiUnstripRequest = { - - analysisId: 1, - - aiUnstripRequest: { - apply: false, - }, -}; - -const data = await apiInstance.aiUnstrip(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **aiUnstripRequest** | **AiUnstripRequest**| | - **analysisId** | [**number**] | | defaults to undefined - - -### Return type - -**AutoUnstripResponse** - -### Authorization - -[APIKey](README.md#APIKey), [bearerAuth](README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **analysisFunctionMatching** -> FunctionMatchingResponse analysisFunctionMatching(analysisFunctionMatchingRequest) - -Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids - -### Example - - -```typescript -import { createConfiguration, FunctionsCoreApi } from '@revengai/sdk'; -import type { FunctionsCoreApiAnalysisFunctionMatchingRequest } from '@revengai/sdk'; - -const configuration = createConfiguration(); -const apiInstance = new FunctionsCoreApi(configuration); - -const request: FunctionsCoreApiAnalysisFunctionMatchingRequest = { - - analysisId: 1, - - analysisFunctionMatchingRequest: { - minSimilarity: 90, - filters: { - binaryIds: [], - collectionIds: [], - functionIds: [], - userIds: [], - debugTypes: [], - }, - resultsPerFunction: 1, - page: 1, - pageSize: 0, - statusOnly: false, - noCache: false, - useCanonicalNames: false, - }, -}; - -const data = await apiInstance.analysisFunctionMatching(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysisFunctionMatchingRequest** | **AnalysisFunctionMatchingRequest**| | - **analysisId** | [**number**] | | defaults to undefined - - -### Return type - -**FunctionMatchingResponse** - -### Authorization - -[APIKey](README.md#APIKey), [bearerAuth](README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **autoUnstrip** -> AutoUnstripResponse autoUnstrip(autoUnstripRequest) - -Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function for each function that\'s within the system - -### Example - - -```typescript -import { createConfiguration, FunctionsCoreApi } from '@revengai/sdk'; -import type { FunctionsCoreApiAutoUnstripRequest } from '@revengai/sdk'; - -const configuration = createConfiguration(); -const apiInstance = new FunctionsCoreApi(configuration); - -const request: FunctionsCoreApiAutoUnstripRequest = { - - analysisId: 1, - - autoUnstripRequest: { - minSimilarity: 90, - apply: false, - confidenceThreshold: 90, - minGroupSize: 10, - statusOnly: false, - noCache: false, - useCanonicalNames: false, - }, -}; - -const data = await apiInstance.autoUnstrip(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **autoUnstripRequest** | **AutoUnstripRequest**| | - **analysisId** | [**number**] | | defaults to undefined - - -### Return type - -**AutoUnstripResponse** - -### Authorization - -[APIKey](README.md#APIKey), [bearerAuth](README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **batchFunctionMatching** -> FunctionMatchingResponse batchFunctionMatching(functionMatchingRequest) - -Takes in an input of functions ID\'s and settings and finds the nearest functions for each function that\'s within the system - -### Example - - -```typescript -import { createConfiguration, FunctionsCoreApi } from '@revengai/sdk'; -import type { FunctionsCoreApiBatchFunctionMatchingRequest } from '@revengai/sdk'; - -const configuration = createConfiguration(); -const apiInstance = new FunctionsCoreApi(configuration); - -const request: FunctionsCoreApiBatchFunctionMatchingRequest = { - - functionMatchingRequest: { - modelId: 1, - functionIds: [ - 1, - ], - minSimilarity: 90, - filters: { - binaryIds: [], - collectionIds: [], - functionIds: [], - userIds: [], - debugTypes: [], - }, - resultsPerFunction: 1, - page: 1, - pageSize: 0, - statusOnly: false, - noCache: false, - useCanonicalNames: false, - }, -}; - -const data = await apiInstance.batchFunctionMatching(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **functionMatchingRequest** | **FunctionMatchingRequest**| | - - -### Return type - -**FunctionMatchingResponse** - -### Authorization - -[APIKey](README.md#APIKey), [bearerAuth](README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **cancelAiUnstrip** -> AutoUnstripResponse cancelAiUnstrip() - -Takes in the analysis ID and cancels a running ai-unstrip operation - -### Example - - -```typescript -import { createConfiguration, FunctionsCoreApi } from '@revengai/sdk'; -import type { FunctionsCoreApiCancelAiUnstripRequest } from '@revengai/sdk'; - -const configuration = createConfiguration(); -const apiInstance = new FunctionsCoreApi(configuration); - -const request: FunctionsCoreApiCancelAiUnstripRequest = { - - analysisId: 1, -}; - -const data = await apiInstance.cancelAiUnstrip(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysisId** | [**number**] | | defaults to undefined - - -### Return type - -**AutoUnstripResponse** - -### Authorization - -[APIKey](README.md#APIKey), [bearerAuth](README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **cancelAutoUnstrip** -> AutoUnstripResponse cancelAutoUnstrip() - -Takes in the analysis ID and cancels a running auto-unstrip operation - -### Example - - -```typescript -import { createConfiguration, FunctionsCoreApi } from '@revengai/sdk'; -import type { FunctionsCoreApiCancelAutoUnstripRequest } from '@revengai/sdk'; - -const configuration = createConfiguration(); -const apiInstance = new FunctionsCoreApi(configuration); - -const request: FunctionsCoreApiCancelAutoUnstripRequest = { - - analysisId: 1, -}; - -const data = await apiInstance.cancelAutoUnstrip(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysisId** | [**number**] | | defaults to undefined - - -### Return type - -**AutoUnstripResponse** - -### Authorization - -[APIKey](README.md#APIKey), [bearerAuth](README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - # **getAnalysisStrings** > BaseResponseAnalysisStringsResponse getAnalysisStrings() diff --git a/models/AiUnstripRequest.ts b/models/AiUnstripRequest.ts deleted file mode 100644 index ef4c277..0000000 --- a/models/AiUnstripRequest.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * RevEng.AI API - * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { HttpFile } from '../http/http'; - -export class AiUnstripRequest { - /** - * Whether to apply the suggested function names to the target functions, default is False - */ - 'apply'?: boolean; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "apply", - "baseName": "apply", - "type": "boolean", - "format": "" - } ]; - - static getAttributeTypeMap() { - return AiUnstripRequest.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/models/AnalysisFunctionMatchingRequest.ts b/models/AnalysisFunctionMatchingRequest.ts deleted file mode 100644 index f489912..0000000 --- a/models/AnalysisFunctionMatchingRequest.ts +++ /dev/null @@ -1,109 +0,0 @@ -/** - * RevEng.AI API - * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { FunctionMatchingFilters } from '../models/FunctionMatchingFilters'; -import { HttpFile } from '../http/http'; - -export class AnalysisFunctionMatchingRequest { - /** - * Minimum similarity expected for a match as a percentage, default is 90 - */ - 'minSimilarity'?: number; - 'filters'?: FunctionMatchingFilters | null; - /** - * Maximum number of matches to return per function, default is 1, max is 30 - */ - 'resultsPerFunction'?: number; - /** - * Page number for paginated results, default is 1 (first page) - * @deprecated - */ - 'page'?: number; - /** - * Number of functions to return per page, default is 0 (all functions), max is 1000 - * @deprecated - */ - 'pageSize'?: number; - /** - * If set to true, only returns the status of the matching operation without the actual results - * @deprecated - */ - 'statusOnly'?: boolean; - /** - * If set to true, forces the system to bypass any cached results and perform a fresh computation - */ - 'noCache'?: boolean; - /** - * Whether to use canonical function names during function matching for confidence results, default is False - */ - 'useCanonicalNames'?: boolean; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "minSimilarity", - "baseName": "min_similarity", - "type": "number", - "format": "" - }, - { - "name": "filters", - "baseName": "filters", - "type": "FunctionMatchingFilters", - "format": "" - }, - { - "name": "resultsPerFunction", - "baseName": "results_per_function", - "type": "number", - "format": "" - }, - { - "name": "page", - "baseName": "page", - "type": "number", - "format": "" - }, - { - "name": "pageSize", - "baseName": "page_size", - "type": "number", - "format": "" - }, - { - "name": "statusOnly", - "baseName": "status_only", - "type": "boolean", - "format": "" - }, - { - "name": "noCache", - "baseName": "no_cache", - "type": "boolean", - "format": "" - }, - { - "name": "useCanonicalNames", - "baseName": "use_canonical_names", - "type": "boolean", - "format": "" - } ]; - - static getAttributeTypeMap() { - return AnalysisFunctionMatchingRequest.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/models/AutoUnstripRequest.ts b/models/AutoUnstripRequest.ts deleted file mode 100644 index 2193d3a..0000000 --- a/models/AutoUnstripRequest.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * RevEng.AI API - * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { HttpFile } from '../http/http'; - -export class AutoUnstripRequest { - /** - * Minimum similarity expected for a match as a percentage, default is 90 - * @deprecated - */ - 'minSimilarity'?: number; - /** - * Whether to apply the matched function names to the target binary, default is False - * @deprecated - */ - 'apply'?: boolean; - /** - * Confidence threshold for applying function names as a percentage, default is 90 - * @deprecated - */ - 'confidenceThreshold'?: number; - /** - * Minimum number of matching functions required to consider for a match, default is 10 - * @deprecated - */ - 'minGroupSize'?: number; - /** - * If set to true, only returns the status of the auto-unstrip operation without the actual results - * @deprecated - */ - 'statusOnly'?: boolean; - /** - * If set to true, forces the system to bypass any cached results and perform a fresh computation - * @deprecated - */ - 'noCache'?: boolean; - /** - * Whether to use canonical function names during matching for auto-unstrip, default is False - */ - 'useCanonicalNames'?: boolean; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "minSimilarity", - "baseName": "min_similarity", - "type": "number", - "format": "" - }, - { - "name": "apply", - "baseName": "apply", - "type": "boolean", - "format": "" - }, - { - "name": "confidenceThreshold", - "baseName": "confidence_threshold", - "type": "number", - "format": "" - }, - { - "name": "minGroupSize", - "baseName": "min_group_size", - "type": "number", - "format": "" - }, - { - "name": "statusOnly", - "baseName": "status_only", - "type": "boolean", - "format": "" - }, - { - "name": "noCache", - "baseName": "no_cache", - "type": "boolean", - "format": "" - }, - { - "name": "useCanonicalNames", - "baseName": "use_canonical_names", - "type": "boolean", - "format": "" - } ]; - - static getAttributeTypeMap() { - return AutoUnstripRequest.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/models/AutoUnstripResponse.ts b/models/AutoUnstripResponse.ts deleted file mode 100644 index e418546..0000000 --- a/models/AutoUnstripResponse.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * RevEng.AI API - * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MatchedFunctionSuggestion } from '../models/MatchedFunctionSuggestion'; -import { HttpFile } from '../http/http'; - -export class AutoUnstripResponse { - /** - * Progress of the auto-unstrip operation, represented as a percentage - * @deprecated - */ - 'progress'?: number; - 'status'?: string | null; - 'totalTime'?: number | null; - 'matches'?: Array | null; - 'applied'?: boolean | null; - 'errorMessage'?: string | null; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "progress", - "baseName": "progress", - "type": "number", - "format": "" - }, - { - "name": "status", - "baseName": "status", - "type": "string", - "format": "" - }, - { - "name": "totalTime", - "baseName": "total_time", - "type": "number", - "format": "" - }, - { - "name": "matches", - "baseName": "matches", - "type": "Array", - "format": "" - }, - { - "name": "applied", - "baseName": "applied", - "type": "boolean", - "format": "" - }, - { - "name": "errorMessage", - "baseName": "error_message", - "type": "string", - "format": "" - } ]; - - static getAttributeTypeMap() { - return AutoUnstripResponse.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/models/DynamicExecutionStatusResponse.ts b/models/DynamicExecutionStatusResponse.ts index 4e21bd4..a045411 100644 --- a/models/DynamicExecutionStatusResponse.ts +++ b/models/DynamicExecutionStatusResponse.ts @@ -22,9 +22,9 @@ export class DynamicExecutionStatusResponse { */ 'logs': AnalysisLogs; /** - * Task status: UNINITIALISED, PENDING, RUNNING, COMPLETED, or FAILED + * Task status */ - 'status': string; + 'status': DynamicExecutionStatusResponseStatusEnum; static readonly discriminator: string | undefined = undefined; @@ -46,7 +46,7 @@ export class DynamicExecutionStatusResponse { { "name": "status", "baseName": "status", - "type": "string", + "type": "DynamicExecutionStatusResponseStatusEnum", "format": "" } ]; @@ -57,3 +57,13 @@ export class DynamicExecutionStatusResponse { public constructor() { } } + +export enum DynamicExecutionStatusResponseStatusEnum { + Uninitialised = 'UNINITIALISED', + Pending = 'PENDING', + Running = 'RUNNING', + Completed = 'COMPLETED', + Failed = 'FAILED', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/FunctionMatchingFilters.ts b/models/FunctionMatchingFilters.ts deleted file mode 100644 index 4b6a27d..0000000 --- a/models/FunctionMatchingFilters.ts +++ /dev/null @@ -1,86 +0,0 @@ -/** - * RevEng.AI API - * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { HttpFile } from '../http/http'; - -export class FunctionMatchingFilters { - /** - * ID\'s of binaries to limit the search to, if empty, search all scoped binaries - */ - 'binaryIds'?: Array; - /** - * ID\'s of collections to limit the search to, if empty, search all scoped collections - */ - 'collectionIds'?: Array; - /** - * ID\'s of functions to limit the search to, if empty, search all scoped functions - */ - 'functionIds'?: Array; - /** - * ID\'s of users to limit the search to, if empty, search all scoped users - */ - 'userIds'?: Array; - /** - * Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions - */ - 'debugTypes'?: Array; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "binaryIds", - "baseName": "binary_ids", - "type": "Array", - "format": "" - }, - { - "name": "collectionIds", - "baseName": "collection_ids", - "type": "Array", - "format": "" - }, - { - "name": "functionIds", - "baseName": "function_ids", - "type": "Array", - "format": "int64" - }, - { - "name": "userIds", - "baseName": "user_ids", - "type": "Array", - "format": "" - }, - { - "name": "debugTypes", - "baseName": "debug_types", - "type": "Array", - "format": "" - } ]; - - static getAttributeTypeMap() { - return FunctionMatchingFilters.attributeTypeMap; - } - - public constructor() { - } -} - -export enum FunctionMatchingFiltersDebugTypesEnum { - User = 'USER', - System = 'SYSTEM', - External = 'EXTERNAL', - UnknownDefaultOpenApi = '11184809' -} - diff --git a/models/FunctionMatchingRequest.ts b/models/FunctionMatchingRequest.ts deleted file mode 100644 index 0d56cd1..0000000 --- a/models/FunctionMatchingRequest.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * RevEng.AI API - * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { FunctionMatchingFilters } from '../models/FunctionMatchingFilters'; -import { HttpFile } from '../http/http'; - -export class FunctionMatchingRequest { - /** - * ID of the model used for function matching, used to determine the embedding model - */ - 'modelId': number; - /** - * ID\'s of functions to find matches for, must be at least one function ID - */ - 'functionIds': Array; - /** - * Minimum similarity expected for a match as a percentage, default is 90 - */ - 'minSimilarity'?: number; - 'filters'?: FunctionMatchingFilters | null; - /** - * Maximum number of matches to return per function, default is 1, max is 50 - */ - 'resultsPerFunction'?: number; - /** - * Page number for paginated results, default is 1 (first page) - * @deprecated - */ - 'page'?: number; - /** - * Number of functions to return per page, default is 0 (all functions), max is 1000 - * @deprecated - */ - 'pageSize'?: number; - /** - * If set to true, only returns the status of the matching operation without the actual results - * @deprecated - */ - 'statusOnly'?: boolean; - /** - * If set to true, forces the system to bypass any cached results and perform a fresh computation - */ - 'noCache'?: boolean; - /** - * Whether to use canonical function names during function matching for confidence results, default is False - */ - 'useCanonicalNames'?: boolean; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "modelId", - "baseName": "model_id", - "type": "number", - "format": "" - }, - { - "name": "functionIds", - "baseName": "function_ids", - "type": "Array", - "format": "int64" - }, - { - "name": "minSimilarity", - "baseName": "min_similarity", - "type": "number", - "format": "" - }, - { - "name": "filters", - "baseName": "filters", - "type": "FunctionMatchingFilters", - "format": "" - }, - { - "name": "resultsPerFunction", - "baseName": "results_per_function", - "type": "number", - "format": "" - }, - { - "name": "page", - "baseName": "page", - "type": "number", - "format": "" - }, - { - "name": "pageSize", - "baseName": "page_size", - "type": "number", - "format": "" - }, - { - "name": "statusOnly", - "baseName": "status_only", - "type": "boolean", - "format": "" - }, - { - "name": "noCache", - "baseName": "no_cache", - "type": "boolean", - "format": "" - }, - { - "name": "useCanonicalNames", - "baseName": "use_canonical_names", - "type": "boolean", - "format": "" - } ]; - - static getAttributeTypeMap() { - return FunctionMatchingRequest.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/models/FunctionMatchingResponse.ts b/models/FunctionMatchingResponse.ts deleted file mode 100644 index 0cb6700..0000000 --- a/models/FunctionMatchingResponse.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * RevEng.AI API - * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { V2FunctionMatch } from '../models/V2FunctionMatch'; -import { HttpFile } from '../http/http'; - -export class FunctionMatchingResponse { - /** - * Progress of the matching operation, represented as a percentage - */ - 'progress'?: number; - 'status'?: string | null; - 'totalTime'?: number | null; - 'errorMessage'?: string | null; - 'currentPage'?: number | null; - 'totalPages'?: number | null; - 'matches'?: Array | null; - 'numMatches'?: number | null; - 'numDebugMatches'?: number | null; - 'updatedAt'?: string | null; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "progress", - "baseName": "progress", - "type": "number", - "format": "" - }, - { - "name": "status", - "baseName": "status", - "type": "string", - "format": "" - }, - { - "name": "totalTime", - "baseName": "total_time", - "type": "number", - "format": "" - }, - { - "name": "errorMessage", - "baseName": "error_message", - "type": "string", - "format": "" - }, - { - "name": "currentPage", - "baseName": "current_page", - "type": "number", - "format": "" - }, - { - "name": "totalPages", - "baseName": "total_pages", - "type": "number", - "format": "" - }, - { - "name": "matches", - "baseName": "matches", - "type": "Array", - "format": "" - }, - { - "name": "numMatches", - "baseName": "num_matches", - "type": "number", - "format": "" - }, - { - "name": "numDebugMatches", - "baseName": "num_debug_matches", - "type": "number", - "format": "" - }, - { - "name": "updatedAt", - "baseName": "updated_at", - "type": "string", - "format": "" - } ]; - - static getAttributeTypeMap() { - return FunctionMatchingResponse.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/models/GetAnalysisStringsStatusOutputBody.ts b/models/GetAnalysisStringsStatusOutputBody.ts index 361c7f2..319dd57 100644 --- a/models/GetAnalysisStringsStatusOutputBody.ts +++ b/models/GetAnalysisStringsStatusOutputBody.ts @@ -12,7 +12,10 @@ import { HttpFile } from '../http/http'; export class GetAnalysisStringsStatusOutputBody { - 'status': string; + /** + * String-extraction task status + */ + 'status': GetAnalysisStringsStatusOutputBodyStatusEnum; static readonly discriminator: string | undefined = undefined; @@ -22,7 +25,7 @@ export class GetAnalysisStringsStatusOutputBody { { "name": "status", "baseName": "status", - "type": "string", + "type": "GetAnalysisStringsStatusOutputBodyStatusEnum", "format": "" } ]; @@ -33,3 +36,13 @@ export class GetAnalysisStringsStatusOutputBody { public constructor() { } } + +export enum GetAnalysisStringsStatusOutputBodyStatusEnum { + Uninitialised = 'UNINITIALISED', + Pending = 'PENDING', + Running = 'RUNNING', + Completed = 'COMPLETED', + Failed = 'FAILED', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/MatchedFunctionSuggestion.ts b/models/MatchedFunctionSuggestion.ts deleted file mode 100644 index 83345a6..0000000 --- a/models/MatchedFunctionSuggestion.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * RevEng.AI API - * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { HttpFile } from '../http/http'; - -export class MatchedFunctionSuggestion { - /** - * Unique identifier of the matched function - */ - 'functionId': number; - /** - * Virtual address of the matched function - */ - 'functionVaddr': number; - 'suggestedName'?: string | null; - /** - * De-mangled name of the function group that contains the matched functions - */ - 'suggestedDemangledName': string; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "functionId", - "baseName": "function_id", - "type": "number", - "format": "int64" - }, - { - "name": "functionVaddr", - "baseName": "function_vaddr", - "type": "number", - "format": "int64" - }, - { - "name": "suggestedName", - "baseName": "suggested_name", - "type": "string", - "format": "" - }, - { - "name": "suggestedDemangledName", - "baseName": "suggested_demangled_name", - "type": "string", - "format": "" - } ]; - - static getAttributeTypeMap() { - return MatchedFunctionSuggestion.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/models/ObjectSerializer.ts b/models/ObjectSerializer.ts index 746c986..645d583 100644 --- a/models/ObjectSerializer.ts +++ b/models/ObjectSerializer.ts @@ -10,7 +10,6 @@ export * from '../models/AddUserStringInputBody'; export * from '../models/AddUserStringToFunctionInputBody'; export * from '../models/AdditionalDetailsStatusResponse'; export * from '../models/AiDecompilationRating'; -export * from '../models/AiUnstripRequest'; export * from '../models/AnalysisAccessInfo'; export * from '../models/AnalysisBasicInfoOutputBody'; export * from '../models/AnalysisBulkAddTagsRequest'; @@ -23,7 +22,6 @@ export * from '../models/AnalysisCreateResponse'; export * from '../models/AnalysisDetailResponse'; export * from '../models/AnalysisFunctionEntry'; export * from '../models/AnalysisFunctionMapping'; -export * from '../models/AnalysisFunctionMatchingRequest'; export * from '../models/AnalysisFunctions'; export * from '../models/AnalysisFunctionsList'; export * from '../models/AnalysisLogMessage'; @@ -55,8 +53,6 @@ export * from '../models/Artifact'; export * from '../models/AttemptFailedEvent'; export * from '../models/AttemptStartedEvent'; export * from '../models/AutoRunAgents'; -export * from '../models/AutoUnstripRequest'; -export * from '../models/AutoUnstripResponse'; export * from '../models/AutoUnstripStatusOutputBody'; export * from '../models/BaseResponse'; export * from '../models/BaseResponseAdditionalDetailsStatusResponse'; @@ -280,9 +276,6 @@ export * from '../models/FunctionListItem'; export * from '../models/FunctionLocalVariableResponse'; export * from '../models/FunctionMapping'; export * from '../models/FunctionMatch'; -export * from '../models/FunctionMatchingFilters'; -export * from '../models/FunctionMatchingRequest'; -export * from '../models/FunctionMatchingResponse'; export * from '../models/FunctionNameHistory'; export * from '../models/FunctionParamResponse'; export * from '../models/FunctionRename'; @@ -344,7 +337,6 @@ export * from '../models/Logs'; export * from '../models/MITRETechnique'; export * from '../models/MatchFilters'; export * from '../models/MatchedFunction'; -export * from '../models/MatchedFunctionSuggestion'; export * from '../models/MemdumpEntry'; export * from '../models/MessageBody'; export * from '../models/MetaModel'; @@ -503,10 +495,7 @@ export * from '../models/UserProfile'; export * from '../models/V2FunctionHeader'; export * from '../models/V2FunctionInfo'; export * from '../models/V2FunctionInfoFuncDepsInner'; -export * from '../models/V2FunctionMatch'; export * from '../models/V2FunctionType'; -export * from '../models/V2MatchedFunction'; -export * from '../models/V2NameConfidence'; export * from '../models/Vulnerabilities'; export * from '../models/Vulnerability'; export * from '../models/WarningEvent'; @@ -528,7 +517,6 @@ import { AddUserStringInputBody } from '../models/AddUserStringInputBody'; import { AddUserStringToFunctionInputBody } from '../models/AddUserStringToFunctionInputBody'; import { AdditionalDetailsStatusResponse } from '../models/AdditionalDetailsStatusResponse'; import { AiDecompilationRating } from '../models/AiDecompilationRating'; -import { AiUnstripRequest } from '../models/AiUnstripRequest'; import { AnalysisAccessInfo } from '../models/AnalysisAccessInfo'; import { AnalysisBasicInfoOutputBody, AnalysisBasicInfoOutputBodyAnalysisScopeEnum } from '../models/AnalysisBasicInfoOutputBody'; import { AnalysisBulkAddTagsRequest } from '../models/AnalysisBulkAddTagsRequest'; @@ -541,7 +529,6 @@ import { AnalysisCreateResponse } from '../models/AnalysisCreateResponse'; import { AnalysisDetailResponse } from '../models/AnalysisDetailResponse'; import { AnalysisFunctionEntry } from '../models/AnalysisFunctionEntry'; import { AnalysisFunctionMapping } from '../models/AnalysisFunctionMapping'; -import { AnalysisFunctionMatchingRequest } from '../models/AnalysisFunctionMatchingRequest'; import { AnalysisFunctions } from '../models/AnalysisFunctions'; import { AnalysisFunctionsList } from '../models/AnalysisFunctionsList'; import { AnalysisLogMessage } from '../models/AnalysisLogMessage'; @@ -573,8 +560,6 @@ import { Artifact , ArtifactReasonEnum } from '../models/Art import { AttemptFailedEvent } from '../models/AttemptFailedEvent'; import { AttemptStartedEvent } from '../models/AttemptStartedEvent'; import { AutoRunAgents } from '../models/AutoRunAgents'; -import { AutoUnstripRequest } from '../models/AutoUnstripRequest'; -import { AutoUnstripResponse } from '../models/AutoUnstripResponse'; import { AutoUnstripStatusOutputBody, AutoUnstripStatusOutputBodyStatusEnum } from '../models/AutoUnstripStatusOutputBody'; import { BaseResponse } from '../models/BaseResponse'; import { BaseResponseAdditionalDetailsStatusResponse } from '../models/BaseResponseAdditionalDetailsStatusResponse'; @@ -728,7 +713,7 @@ import { DisassemblyOutputBody } from '../models/DisassemblyOutputBody'; import { DnsQuery } from '../models/DnsQuery'; import { DrakvufFileMetadata } from '../models/DrakvufFileMetadata'; import { DynamicExecutionStatus } from '../models/DynamicExecutionStatus'; -import { DynamicExecutionStatusResponse } from '../models/DynamicExecutionStatusResponse'; +import { DynamicExecutionStatusResponse , DynamicExecutionStatusResponseStatusEnum } from '../models/DynamicExecutionStatusResponse'; import { ELFImportModel } from '../models/ELFImportModel'; import { ELFModel } from '../models/ELFModel'; import { ELFRelocation } from '../models/ELFRelocation'; @@ -798,9 +783,6 @@ import { FunctionListItem , FunctionListItemNameSourceTypeEnum } from '. import { FunctionLocalVariableResponse } from '../models/FunctionLocalVariableResponse'; import { FunctionMapping } from '../models/FunctionMapping'; import { FunctionMatch } from '../models/FunctionMatch'; -import { FunctionMatchingFilters , FunctionMatchingFiltersDebugTypesEnum } from '../models/FunctionMatchingFilters'; -import { FunctionMatchingRequest } from '../models/FunctionMatchingRequest'; -import { FunctionMatchingResponse } from '../models/FunctionMatchingResponse'; import { FunctionNameHistory } from '../models/FunctionNameHistory'; import { FunctionParamResponse } from '../models/FunctionParamResponse'; import { FunctionRename } from '../models/FunctionRename'; @@ -821,7 +803,7 @@ import { GenerationStatusList } from '../models/GenerationStatusList'; import { GetAdditionalDetailsOutputBody } from '../models/GetAdditionalDetailsOutputBody'; import { GetAdditionalDetailsStatusOutputBody } from '../models/GetAdditionalDetailsStatusOutputBody'; import { GetAiDecompilationRatingResponse } from '../models/GetAiDecompilationRatingResponse'; -import { GetAnalysisStringsStatusOutputBody } from '../models/GetAnalysisStringsStatusOutputBody'; +import { GetAnalysisStringsStatusOutputBody, GetAnalysisStringsStatusOutputBodyStatusEnum } from '../models/GetAnalysisStringsStatusOutputBody'; import { GetCollectionOutputBody } from '../models/GetCollectionOutputBody'; import { GetMatchesOutputBody , GetMatchesOutputBodyStatusEnum } from '../models/GetMatchesOutputBody'; import { GetMatchesStatusOutputBody , GetMatchesStatusOutputBodyStatusEnum } from '../models/GetMatchesStatusOutputBody'; @@ -862,7 +844,6 @@ import { Logs } from '../models/Logs'; import { MITRETechnique } from '../models/MITRETechnique'; import { MatchFilters } from '../models/MatchFilters'; import { MatchedFunction } from '../models/MatchedFunction'; -import { MatchedFunctionSuggestion } from '../models/MatchedFunctionSuggestion'; import { MemdumpEntry } from '../models/MemdumpEntry'; import { MessageBody } from '../models/MessageBody'; import { MetaModel } from '../models/MetaModel'; @@ -1021,10 +1002,7 @@ import { UserProfile } from '../models/UserProfile'; import { V2FunctionHeader } from '../models/V2FunctionHeader'; import { V2FunctionInfo } from '../models/V2FunctionInfo'; import { V2FunctionInfoFuncDepsInner } from '../models/V2FunctionInfoFuncDepsInner'; -import { V2FunctionMatch } from '../models/V2FunctionMatch'; import { V2FunctionType } from '../models/V2FunctionType'; -import { V2MatchedFunction } from '../models/V2MatchedFunction'; -import { V2NameConfidence } from '../models/V2NameConfidence'; import { Vulnerabilities } from '../models/Vulnerabilities'; import { Vulnerability , VulnerabilitySeverityEnum } from '../models/Vulnerability'; import { WarningEvent } from '../models/WarningEvent'; @@ -1069,6 +1047,7 @@ let enumsMap: Set = new Set([ "CreateUserInputBodyTierEnum", "DecompilationDataStatusEnum", "DynamicExecutionStatus", + "DynamicExecutionStatusResponseStatusEnum", "ErrorBodyCodeEnum", "EventAttemptFailedEventEnum", "EventAttemptStartedEventEnum", @@ -1100,8 +1079,8 @@ let enumsMap: Set = new Set([ "FileFormat", "Filters", "FunctionListItemNameSourceTypeEnum", - "FunctionMatchingFiltersDebugTypesEnum", "FunctionSourceType", + "GetAnalysisStringsStatusOutputBodyStatusEnum", "GetMatchesOutputBodyStatusEnum", "GetMatchesStatusOutputBodyStatusEnum", "GetSubscriptionOutputBodyStatusEnum", @@ -1154,7 +1133,6 @@ let typeMap: {[index: string]: any} = { "AddUserStringInputBody": AddUserStringInputBody, "AddUserStringToFunctionInputBody": AddUserStringToFunctionInputBody, "AdditionalDetailsStatusResponse": AdditionalDetailsStatusResponse, - "AiUnstripRequest": AiUnstripRequest, "AnalysisAccessInfo": AnalysisAccessInfo, "AnalysisBasicInfoOutputBody": AnalysisBasicInfoOutputBody, "AnalysisBulkAddTagsRequest": AnalysisBulkAddTagsRequest, @@ -1167,7 +1145,6 @@ let typeMap: {[index: string]: any} = { "AnalysisDetailResponse": AnalysisDetailResponse, "AnalysisFunctionEntry": AnalysisFunctionEntry, "AnalysisFunctionMapping": AnalysisFunctionMapping, - "AnalysisFunctionMatchingRequest": AnalysisFunctionMatchingRequest, "AnalysisFunctions": AnalysisFunctions, "AnalysisFunctionsList": AnalysisFunctionsList, "AnalysisLogMessage": AnalysisLogMessage, @@ -1196,8 +1173,6 @@ let typeMap: {[index: string]: any} = { "AttemptFailedEvent": AttemptFailedEvent, "AttemptStartedEvent": AttemptStartedEvent, "AutoRunAgents": AutoRunAgents, - "AutoUnstripRequest": AutoUnstripRequest, - "AutoUnstripResponse": AutoUnstripResponse, "AutoUnstripStatusOutputBody": AutoUnstripStatusOutputBody, "BaseResponse": BaseResponse, "BaseResponseAdditionalDetailsStatusResponse": BaseResponseAdditionalDetailsStatusResponse, @@ -1415,9 +1390,6 @@ let typeMap: {[index: string]: any} = { "FunctionLocalVariableResponse": FunctionLocalVariableResponse, "FunctionMapping": FunctionMapping, "FunctionMatch": FunctionMatch, - "FunctionMatchingFilters": FunctionMatchingFilters, - "FunctionMatchingRequest": FunctionMatchingRequest, - "FunctionMatchingResponse": FunctionMatchingResponse, "FunctionNameHistory": FunctionNameHistory, "FunctionParamResponse": FunctionParamResponse, "FunctionRename": FunctionRename, @@ -1477,7 +1449,6 @@ let typeMap: {[index: string]: any} = { "MITRETechnique": MITRETechnique, "MatchFilters": MatchFilters, "MatchedFunction": MatchedFunction, - "MatchedFunctionSuggestion": MatchedFunctionSuggestion, "MemdumpEntry": MemdumpEntry, "MessageBody": MessageBody, "MetaModel": MetaModel, @@ -1627,10 +1598,7 @@ let typeMap: {[index: string]: any} = { "V2FunctionHeader": V2FunctionHeader, "V2FunctionInfo": V2FunctionInfo, "V2FunctionInfoFuncDepsInner": V2FunctionInfoFuncDepsInner, - "V2FunctionMatch": V2FunctionMatch, "V2FunctionType": V2FunctionType, - "V2MatchedFunction": V2MatchedFunction, - "V2NameConfidence": V2NameConfidence, "Vulnerabilities": Vulnerabilities, "Vulnerability": Vulnerability, "WarningEvent": WarningEvent, diff --git a/models/V2FunctionMatch.ts b/models/V2FunctionMatch.ts deleted file mode 100644 index 4cb98d4..0000000 --- a/models/V2FunctionMatch.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * RevEng.AI API - * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { V2MatchedFunction } from '../models/V2MatchedFunction'; -import { V2NameConfidence } from '../models/V2NameConfidence'; -import { HttpFile } from '../http/http'; - -export class V2FunctionMatch { - /** - * Unique identifier of the function - */ - 'functionId': number; - 'matchedFunctions': Array; - 'confidences'?: Array | null; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "functionId", - "baseName": "function_id", - "type": "number", - "format": "int64" - }, - { - "name": "matchedFunctions", - "baseName": "matched_functions", - "type": "Array", - "format": "" - }, - { - "name": "confidences", - "baseName": "confidences", - "type": "Array", - "format": "" - } ]; - - static getAttributeTypeMap() { - return V2FunctionMatch.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/models/V2MatchedFunction.ts b/models/V2MatchedFunction.ts deleted file mode 100644 index deb1373..0000000 --- a/models/V2MatchedFunction.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * RevEng.AI API - * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { HttpFile } from '../http/http'; - -export class V2MatchedFunction { - /** - * Unique identifier of the matched function - */ - 'functionId': number; - 'binaryId': number; - 'functionName': string; - 'functionVaddr': number; - 'mangledName': string; - 'debug': boolean; - 'binaryName': string; - 'sha256Hash': string; - 'analysisId': number; - 'similarity'?: number | null; - 'confidence'?: number | null; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "functionId", - "baseName": "function_id", - "type": "number", - "format": "int64" - }, - { - "name": "binaryId", - "baseName": "binary_id", - "type": "number", - "format": "" - }, - { - "name": "functionName", - "baseName": "function_name", - "type": "string", - "format": "" - }, - { - "name": "functionVaddr", - "baseName": "function_vaddr", - "type": "number", - "format": "int64" - }, - { - "name": "mangledName", - "baseName": "mangled_name", - "type": "string", - "format": "" - }, - { - "name": "debug", - "baseName": "debug", - "type": "boolean", - "format": "" - }, - { - "name": "binaryName", - "baseName": "binary_name", - "type": "string", - "format": "" - }, - { - "name": "sha256Hash", - "baseName": "sha_256_hash", - "type": "string", - "format": "" - }, - { - "name": "analysisId", - "baseName": "analysis_id", - "type": "number", - "format": "" - }, - { - "name": "similarity", - "baseName": "similarity", - "type": "number", - "format": "" - }, - { - "name": "confidence", - "baseName": "confidence", - "type": "number", - "format": "" - } ]; - - static getAttributeTypeMap() { - return V2MatchedFunction.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/models/V2NameConfidence.ts b/models/V2NameConfidence.ts deleted file mode 100644 index 869329f..0000000 --- a/models/V2NameConfidence.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * RevEng.AI API - * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { HttpFile } from '../http/http'; - -export class V2NameConfidence { - /** - * The suggested function name - */ - 'name': string; - /** - * Confidence score as a percentage - */ - 'confidence': number; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "name", - "baseName": "name", - "type": "string", - "format": "" - }, - { - "name": "confidence", - "baseName": "confidence", - "type": "number", - "format": "" - } ]; - - static getAttributeTypeMap() { - return V2NameConfidence.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/models/all.ts b/models/all.ts index cd247e1..79d7424 100644 --- a/models/all.ts +++ b/models/all.ts @@ -10,7 +10,6 @@ export * from '../models/AddUserStringInputBody' export * from '../models/AddUserStringToFunctionInputBody' export * from '../models/AdditionalDetailsStatusResponse' export * from '../models/AiDecompilationRating' -export * from '../models/AiUnstripRequest' export * from '../models/AnalysisAccessInfo' export * from '../models/AnalysisBasicInfoOutputBody' export * from '../models/AnalysisBulkAddTagsRequest' @@ -23,7 +22,6 @@ export * from '../models/AnalysisCreateResponse' export * from '../models/AnalysisDetailResponse' export * from '../models/AnalysisFunctionEntry' export * from '../models/AnalysisFunctionMapping' -export * from '../models/AnalysisFunctionMatchingRequest' export * from '../models/AnalysisFunctions' export * from '../models/AnalysisFunctionsList' export * from '../models/AnalysisLogMessage' @@ -55,8 +53,6 @@ export * from '../models/Artifact' export * from '../models/AttemptFailedEvent' export * from '../models/AttemptStartedEvent' export * from '../models/AutoRunAgents' -export * from '../models/AutoUnstripRequest' -export * from '../models/AutoUnstripResponse' export * from '../models/AutoUnstripStatusOutputBody' export * from '../models/BaseResponse' export * from '../models/BaseResponseAdditionalDetailsStatusResponse' @@ -280,9 +276,6 @@ export * from '../models/FunctionListItem' export * from '../models/FunctionLocalVariableResponse' export * from '../models/FunctionMapping' export * from '../models/FunctionMatch' -export * from '../models/FunctionMatchingFilters' -export * from '../models/FunctionMatchingRequest' -export * from '../models/FunctionMatchingResponse' export * from '../models/FunctionNameHistory' export * from '../models/FunctionParamResponse' export * from '../models/FunctionRename' @@ -344,7 +337,6 @@ export * from '../models/Logs' export * from '../models/MITRETechnique' export * from '../models/MatchFilters' export * from '../models/MatchedFunction' -export * from '../models/MatchedFunctionSuggestion' export * from '../models/MemdumpEntry' export * from '../models/MessageBody' export * from '../models/MetaModel' @@ -503,10 +495,7 @@ export * from '../models/UserProfile' export * from '../models/V2FunctionHeader' export * from '../models/V2FunctionInfo' export * from '../models/V2FunctionInfoFuncDepsInner' -export * from '../models/V2FunctionMatch' export * from '../models/V2FunctionType' -export * from '../models/V2MatchedFunction' -export * from '../models/V2NameConfidence' export * from '../models/Vulnerabilities' export * from '../models/Vulnerability' export * from '../models/WarningEvent' diff --git a/package.json b/package.json index fb2512f..c20153f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@revengai/sdk", - "version": "v3.114.2", + "version": "v3.116.0", "description": "TypeScript SDK for the RevEng.AI API", "author": "RevEng.AI", "repository": { diff --git a/types/ObjectParamAPI.ts b/types/ObjectParamAPI.ts index abb909e..b1379f5 100644 --- a/types/ObjectParamAPI.ts +++ b/types/ObjectParamAPI.ts @@ -14,7 +14,6 @@ import { AddUserStringInputBody } from '../models/AddUserStringInputBody'; import { AddUserStringToFunctionInputBody } from '../models/AddUserStringToFunctionInputBody'; import { AdditionalDetailsStatusResponse } from '../models/AdditionalDetailsStatusResponse'; import { AiDecompilationRating } from '../models/AiDecompilationRating'; -import { AiUnstripRequest } from '../models/AiUnstripRequest'; import { AnalysisAccessInfo } from '../models/AnalysisAccessInfo'; import { AnalysisBasicInfoOutputBody } from '../models/AnalysisBasicInfoOutputBody'; import { AnalysisBulkAddTagsRequest } from '../models/AnalysisBulkAddTagsRequest'; @@ -27,7 +26,6 @@ import { AnalysisCreateResponse } from '../models/AnalysisCreateResponse'; import { AnalysisDetailResponse } from '../models/AnalysisDetailResponse'; import { AnalysisFunctionEntry } from '../models/AnalysisFunctionEntry'; import { AnalysisFunctionMapping } from '../models/AnalysisFunctionMapping'; -import { AnalysisFunctionMatchingRequest } from '../models/AnalysisFunctionMatchingRequest'; import { AnalysisFunctions } from '../models/AnalysisFunctions'; import { AnalysisFunctionsList } from '../models/AnalysisFunctionsList'; import { AnalysisLogMessage } from '../models/AnalysisLogMessage'; @@ -59,8 +57,6 @@ import { Artifact } from '../models/Artifact'; import { AttemptFailedEvent } from '../models/AttemptFailedEvent'; import { AttemptStartedEvent } from '../models/AttemptStartedEvent'; import { AutoRunAgents } from '../models/AutoRunAgents'; -import { AutoUnstripRequest } from '../models/AutoUnstripRequest'; -import { AutoUnstripResponse } from '../models/AutoUnstripResponse'; import { AutoUnstripStatusOutputBody } from '../models/AutoUnstripStatusOutputBody'; import { BaseResponse } from '../models/BaseResponse'; import { BaseResponseAdditionalDetailsStatusResponse } from '../models/BaseResponseAdditionalDetailsStatusResponse'; @@ -284,9 +280,6 @@ import { FunctionListItem } from '../models/FunctionListItem'; import { FunctionLocalVariableResponse } from '../models/FunctionLocalVariableResponse'; import { FunctionMapping } from '../models/FunctionMapping'; import { FunctionMatch } from '../models/FunctionMatch'; -import { FunctionMatchingFilters } from '../models/FunctionMatchingFilters'; -import { FunctionMatchingRequest } from '../models/FunctionMatchingRequest'; -import { FunctionMatchingResponse } from '../models/FunctionMatchingResponse'; import { FunctionNameHistory } from '../models/FunctionNameHistory'; import { FunctionParamResponse } from '../models/FunctionParamResponse'; import { FunctionRename } from '../models/FunctionRename'; @@ -348,7 +341,6 @@ import { Logs } from '../models/Logs'; import { MITRETechnique } from '../models/MITRETechnique'; import { MatchFilters } from '../models/MatchFilters'; import { MatchedFunction } from '../models/MatchedFunction'; -import { MatchedFunctionSuggestion } from '../models/MatchedFunctionSuggestion'; import { MemdumpEntry } from '../models/MemdumpEntry'; import { MessageBody } from '../models/MessageBody'; import { MetaModel } from '../models/MetaModel'; @@ -507,10 +499,7 @@ import { UserProfile } from '../models/UserProfile'; import { V2FunctionHeader } from '../models/V2FunctionHeader'; import { V2FunctionInfo } from '../models/V2FunctionInfo'; import { V2FunctionInfoFuncDepsInner } from '../models/V2FunctionInfoFuncDepsInner'; -import { V2FunctionMatch } from '../models/V2FunctionMatch'; import { V2FunctionType } from '../models/V2FunctionType'; -import { V2MatchedFunction } from '../models/V2MatchedFunction'; -import { V2NameConfidence } from '../models/V2NameConfidence'; import { Vulnerabilities } from '../models/Vulnerabilities'; import { Vulnerability } from '../models/Vulnerability'; import { WarningEvent } from '../models/WarningEvent'; @@ -1442,6 +1431,13 @@ export interface AnalysesCoreApiV3GetAnalysisStringsRequest { * @memberof AnalysesCoreApiv3GetAnalysisStrings */ search?: string + /** + * How the search term matches string values. + * Defaults to: 'CONTAINS' + * @type 'CONTAINS' | 'STARTS_WITH' + * @memberof AnalysesCoreApiv3GetAnalysisStrings + */ + searchOperator?: 'CONTAINS' | 'STARTS_WITH' /** * Filter by function name (case-insensitive substring match). * Defaults to: undefined @@ -1997,7 +1993,7 @@ export class ObjectAnalysesCoreApi { * @param param the request object */ public v3GetAnalysisStringsWithHttpInfo(param: AnalysesCoreApiV3GetAnalysisStringsRequest, options?: ConfigurationOptions): Promise> { - return this.api.v3GetAnalysisStringsWithHttpInfo(param.analysisId, param.page, param.pageSize, param.search, param.functionSearch, param.orderBy, param.sortOrder, options).toPromise(); + return this.api.v3GetAnalysisStringsWithHttpInfo(param.analysisId, param.page, param.pageSize, param.search, param.searchOperator, param.functionSearch, param.orderBy, param.sortOrder, options).toPromise(); } /** @@ -2006,7 +2002,7 @@ export class ObjectAnalysesCoreApi { * @param param the request object */ public v3GetAnalysisStrings(param: AnalysesCoreApiV3GetAnalysisStringsRequest, options?: ConfigurationOptions): Promise { - return this.api.v3GetAnalysisStrings(param.analysisId, param.page, param.pageSize, param.search, param.functionSearch, param.orderBy, param.sortOrder, options).toPromise(); + return this.api.v3GetAnalysisStrings(param.analysisId, param.page, param.pageSize, param.search, param.searchOperator, param.functionSearch, param.orderBy, param.sortOrder, options).toPromise(); } /** @@ -4270,83 +4266,6 @@ export interface FunctionsCoreApiAddUserStringToFunctionRequest { addUserStringToFunctionInputBody: AddUserStringToFunctionInputBody } -export interface FunctionsCoreApiAiUnstripRequest { - /** - * - * Defaults to: undefined - * @type number - * @memberof FunctionsCoreApiaiUnstrip - */ - analysisId: number - /** - * - * @type AiUnstripRequest - * @memberof FunctionsCoreApiaiUnstrip - */ - aiUnstripRequest: AiUnstripRequest -} - -export interface FunctionsCoreApiAnalysisFunctionMatchingRequest { - /** - * - * Defaults to: undefined - * @type number - * @memberof FunctionsCoreApianalysisFunctionMatching - */ - analysisId: number - /** - * - * @type AnalysisFunctionMatchingRequest - * @memberof FunctionsCoreApianalysisFunctionMatching - */ - analysisFunctionMatchingRequest: AnalysisFunctionMatchingRequest -} - -export interface FunctionsCoreApiAutoUnstripRequest { - /** - * - * Defaults to: undefined - * @type number - * @memberof FunctionsCoreApiautoUnstrip - */ - analysisId: number - /** - * - * @type AutoUnstripRequest - * @memberof FunctionsCoreApiautoUnstrip - */ - autoUnstripRequest: AutoUnstripRequest -} - -export interface FunctionsCoreApiBatchFunctionMatchingRequest { - /** - * - * @type FunctionMatchingRequest - * @memberof FunctionsCoreApibatchFunctionMatching - */ - functionMatchingRequest: FunctionMatchingRequest -} - -export interface FunctionsCoreApiCancelAiUnstripRequest { - /** - * - * Defaults to: undefined - * @type number - * @memberof FunctionsCoreApicancelAiUnstrip - */ - analysisId: number -} - -export interface FunctionsCoreApiCancelAutoUnstripRequest { - /** - * - * Defaults to: undefined - * @type number - * @memberof FunctionsCoreApicancelAutoUnstrip - */ - analysisId: number -} - export interface FunctionsCoreApiGetAnalysisStringsRequest { /** * @@ -4766,114 +4685,6 @@ export class ObjectFunctionsCoreApi { return this.api.addUserStringToFunction(param.functionId, param.addUserStringToFunctionInputBody, options).toPromise(); } - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function groups for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param param the request object - */ - public aiUnstripWithHttpInfo(param: FunctionsCoreApiAiUnstripRequest, options?: ConfigurationOptions): Promise> { - return this.api.aiUnstripWithHttpInfo(param.analysisId, param.aiUnstripRequest, options).toPromise(); - } - - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function groups for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param param the request object - */ - public aiUnstrip(param: FunctionsCoreApiAiUnstripRequest, options?: ConfigurationOptions): Promise { - return this.api.aiUnstrip(param.analysisId, param.aiUnstripRequest, options).toPromise(); - } - - /** - * Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids - * Perform matching for the functions of an analysis - * @param param the request object - */ - public analysisFunctionMatchingWithHttpInfo(param: FunctionsCoreApiAnalysisFunctionMatchingRequest, options?: ConfigurationOptions): Promise> { - return this.api.analysisFunctionMatchingWithHttpInfo(param.analysisId, param.analysisFunctionMatchingRequest, options).toPromise(); - } - - /** - * Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids - * Perform matching for the functions of an analysis - * @param param the request object - */ - public analysisFunctionMatching(param: FunctionsCoreApiAnalysisFunctionMatchingRequest, options?: ConfigurationOptions): Promise { - return this.api.analysisFunctionMatching(param.analysisId, param.analysisFunctionMatchingRequest, options).toPromise(); - } - - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param param the request object - */ - public autoUnstripWithHttpInfo(param: FunctionsCoreApiAutoUnstripRequest, options?: ConfigurationOptions): Promise> { - return this.api.autoUnstripWithHttpInfo(param.analysisId, param.autoUnstripRequest, options).toPromise(); - } - - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param param the request object - */ - public autoUnstrip(param: FunctionsCoreApiAutoUnstripRequest, options?: ConfigurationOptions): Promise { - return this.api.autoUnstrip(param.analysisId, param.autoUnstripRequest, options).toPromise(); - } - - /** - * Takes in an input of functions ID\'s and settings and finds the nearest functions for each function that\'s within the system - * Perform function matching for an arbitrary batch of functions, binaries or collections - * @param param the request object - */ - public batchFunctionMatchingWithHttpInfo(param: FunctionsCoreApiBatchFunctionMatchingRequest, options?: ConfigurationOptions): Promise> { - return this.api.batchFunctionMatchingWithHttpInfo(param.functionMatchingRequest, options).toPromise(); - } - - /** - * Takes in an input of functions ID\'s and settings and finds the nearest functions for each function that\'s within the system - * Perform function matching for an arbitrary batch of functions, binaries or collections - * @param param the request object - */ - public batchFunctionMatching(param: FunctionsCoreApiBatchFunctionMatchingRequest, options?: ConfigurationOptions): Promise { - return this.api.batchFunctionMatching(param.functionMatchingRequest, options).toPromise(); - } - - /** - * Takes in the analysis ID and cancels a running ai-unstrip operation - * Cancels a running ai-unstrip - * @param param the request object - */ - public cancelAiUnstripWithHttpInfo(param: FunctionsCoreApiCancelAiUnstripRequest, options?: ConfigurationOptions): Promise> { - return this.api.cancelAiUnstripWithHttpInfo(param.analysisId, options).toPromise(); - } - - /** - * Takes in the analysis ID and cancels a running ai-unstrip operation - * Cancels a running ai-unstrip - * @param param the request object - */ - public cancelAiUnstrip(param: FunctionsCoreApiCancelAiUnstripRequest, options?: ConfigurationOptions): Promise { - return this.api.cancelAiUnstrip(param.analysisId, options).toPromise(); - } - - /** - * Takes in the analysis ID and cancels a running auto-unstrip operation - * Cancels a running auto-unstrip - * @param param the request object - */ - public cancelAutoUnstripWithHttpInfo(param: FunctionsCoreApiCancelAutoUnstripRequest, options?: ConfigurationOptions): Promise> { - return this.api.cancelAutoUnstripWithHttpInfo(param.analysisId, options).toPromise(); - } - - /** - * Takes in the analysis ID and cancels a running auto-unstrip operation - * Cancels a running auto-unstrip - * @param param the request object - */ - public cancelAutoUnstrip(param: FunctionsCoreApiCancelAutoUnstripRequest, options?: ConfigurationOptions): Promise { - return this.api.cancelAutoUnstrip(param.analysisId, options).toPromise(); - } - /** * Get string information found in the analysis * Get string information found in the Analysis diff --git a/types/ObservableAPI.ts b/types/ObservableAPI.ts index 7cb4690..f7a8477 100644 --- a/types/ObservableAPI.ts +++ b/types/ObservableAPI.ts @@ -15,7 +15,6 @@ import { AddUserStringInputBody } from '../models/AddUserStringInputBody'; import { AddUserStringToFunctionInputBody } from '../models/AddUserStringToFunctionInputBody'; import { AdditionalDetailsStatusResponse } from '../models/AdditionalDetailsStatusResponse'; import { AiDecompilationRating } from '../models/AiDecompilationRating'; -import { AiUnstripRequest } from '../models/AiUnstripRequest'; import { AnalysisAccessInfo } from '../models/AnalysisAccessInfo'; import { AnalysisBasicInfoOutputBody } from '../models/AnalysisBasicInfoOutputBody'; import { AnalysisBulkAddTagsRequest } from '../models/AnalysisBulkAddTagsRequest'; @@ -28,7 +27,6 @@ import { AnalysisCreateResponse } from '../models/AnalysisCreateResponse'; import { AnalysisDetailResponse } from '../models/AnalysisDetailResponse'; import { AnalysisFunctionEntry } from '../models/AnalysisFunctionEntry'; import { AnalysisFunctionMapping } from '../models/AnalysisFunctionMapping'; -import { AnalysisFunctionMatchingRequest } from '../models/AnalysisFunctionMatchingRequest'; import { AnalysisFunctions } from '../models/AnalysisFunctions'; import { AnalysisFunctionsList } from '../models/AnalysisFunctionsList'; import { AnalysisLogMessage } from '../models/AnalysisLogMessage'; @@ -60,8 +58,6 @@ import { Artifact } from '../models/Artifact'; import { AttemptFailedEvent } from '../models/AttemptFailedEvent'; import { AttemptStartedEvent } from '../models/AttemptStartedEvent'; import { AutoRunAgents } from '../models/AutoRunAgents'; -import { AutoUnstripRequest } from '../models/AutoUnstripRequest'; -import { AutoUnstripResponse } from '../models/AutoUnstripResponse'; import { AutoUnstripStatusOutputBody } from '../models/AutoUnstripStatusOutputBody'; import { BaseResponse } from '../models/BaseResponse'; import { BaseResponseAdditionalDetailsStatusResponse } from '../models/BaseResponseAdditionalDetailsStatusResponse'; @@ -285,9 +281,6 @@ import { FunctionListItem } from '../models/FunctionListItem'; import { FunctionLocalVariableResponse } from '../models/FunctionLocalVariableResponse'; import { FunctionMapping } from '../models/FunctionMapping'; import { FunctionMatch } from '../models/FunctionMatch'; -import { FunctionMatchingFilters } from '../models/FunctionMatchingFilters'; -import { FunctionMatchingRequest } from '../models/FunctionMatchingRequest'; -import { FunctionMatchingResponse } from '../models/FunctionMatchingResponse'; import { FunctionNameHistory } from '../models/FunctionNameHistory'; import { FunctionParamResponse } from '../models/FunctionParamResponse'; import { FunctionRename } from '../models/FunctionRename'; @@ -349,7 +342,6 @@ import { Logs } from '../models/Logs'; import { MITRETechnique } from '../models/MITRETechnique'; import { MatchFilters } from '../models/MatchFilters'; import { MatchedFunction } from '../models/MatchedFunction'; -import { MatchedFunctionSuggestion } from '../models/MatchedFunctionSuggestion'; import { MemdumpEntry } from '../models/MemdumpEntry'; import { MessageBody } from '../models/MessageBody'; import { MetaModel } from '../models/MetaModel'; @@ -508,10 +500,7 @@ import { UserProfile } from '../models/UserProfile'; import { V2FunctionHeader } from '../models/V2FunctionHeader'; import { V2FunctionInfo } from '../models/V2FunctionInfo'; import { V2FunctionInfoFuncDepsInner } from '../models/V2FunctionInfoFuncDepsInner'; -import { V2FunctionMatch } from '../models/V2FunctionMatch'; import { V2FunctionType } from '../models/V2FunctionType'; -import { V2MatchedFunction } from '../models/V2MatchedFunction'; -import { V2NameConfidence } from '../models/V2NameConfidence'; import { Vulnerabilities } from '../models/Vulnerabilities'; import { Vulnerability } from '../models/Vulnerability'; import { WarningEvent } from '../models/WarningEvent'; @@ -1964,14 +1953,15 @@ export class ObservableAnalysesCoreApi { * @param [page] Page number (1-indexed). * @param [pageSize] Number of results per page. * @param [search] Filter by string value (case-insensitive substring match). + * @param [searchOperator] How the search term matches string values. * @param [functionSearch] Filter by function name (case-insensitive substring match). * @param [orderBy] Field to order results by. * @param [sortOrder] Sort direction. */ - public v3GetAnalysisStringsWithHttpInfo(analysisId: number, page?: number, pageSize?: number, search?: string, functionSearch?: string, orderBy?: 'value' | 'length', sortOrder?: 'ASC' | 'DESC', _options?: ConfigurationOptions): Observable> { + public v3GetAnalysisStringsWithHttpInfo(analysisId: number, page?: number, pageSize?: number, search?: string, searchOperator?: 'CONTAINS' | 'STARTS_WITH', functionSearch?: string, orderBy?: 'value' | 'length', sortOrder?: 'ASC' | 'DESC', _options?: ConfigurationOptions): Observable> { const _config = mergeConfiguration(this.configuration, _options); - const requestContextPromise = this.requestFactory.v3GetAnalysisStrings(analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder, _config); + const requestContextPromise = this.requestFactory.v3GetAnalysisStrings(analysisId, page, pageSize, search, searchOperator, functionSearch, orderBy, sortOrder, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); for (const middleware of _config.middleware) { @@ -1995,12 +1985,13 @@ export class ObservableAnalysesCoreApi { * @param [page] Page number (1-indexed). * @param [pageSize] Number of results per page. * @param [search] Filter by string value (case-insensitive substring match). + * @param [searchOperator] How the search term matches string values. * @param [functionSearch] Filter by function name (case-insensitive substring match). * @param [orderBy] Field to order results by. * @param [sortOrder] Sort direction. */ - public v3GetAnalysisStrings(analysisId: number, page?: number, pageSize?: number, search?: string, functionSearch?: string, orderBy?: 'value' | 'length', sortOrder?: 'ASC' | 'DESC', _options?: ConfigurationOptions): Observable { - return this.v3GetAnalysisStringsWithHttpInfo(analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + public v3GetAnalysisStrings(analysisId: number, page?: number, pageSize?: number, search?: string, searchOperator?: 'CONTAINS' | 'STARTS_WITH', functionSearch?: string, orderBy?: 'value' | 'length', sortOrder?: 'ASC' | 'DESC', _options?: ConfigurationOptions): Observable { + return this.v3GetAnalysisStringsWithHttpInfo(analysisId, page, pageSize, search, searchOperator, functionSearch, orderBy, sortOrder, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** @@ -4579,216 +4570,6 @@ export class ObservableFunctionsCoreApi { return this.addUserStringToFunctionWithHttpInfo(functionId, addUserStringToFunctionInputBody, _options).pipe(map((apiResponse: HttpInfo<{ [key: string]: any; }>) => apiResponse.data)); } - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function groups for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param analysisId - * @param aiUnstripRequest - */ - public aiUnstripWithHttpInfo(analysisId: number, aiUnstripRequest: AiUnstripRequest, _options?: ConfigurationOptions): Observable> { - const _config = mergeConfiguration(this.configuration, _options); - - const requestContextPromise = this.requestFactory.aiUnstrip(analysisId, aiUnstripRequest, _config); - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (const middleware of _config.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (const middleware of _config.middleware.reverse()) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.aiUnstripWithHttpInfo(rsp))); - })); - } - - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function groups for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param analysisId - * @param aiUnstripRequest - */ - public aiUnstrip(analysisId: number, aiUnstripRequest: AiUnstripRequest, _options?: ConfigurationOptions): Observable { - return this.aiUnstripWithHttpInfo(analysisId, aiUnstripRequest, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); - } - - /** - * Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids - * Perform matching for the functions of an analysis - * @param analysisId - * @param analysisFunctionMatchingRequest - */ - public analysisFunctionMatchingWithHttpInfo(analysisId: number, analysisFunctionMatchingRequest: AnalysisFunctionMatchingRequest, _options?: ConfigurationOptions): Observable> { - const _config = mergeConfiguration(this.configuration, _options); - - const requestContextPromise = this.requestFactory.analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest, _config); - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (const middleware of _config.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (const middleware of _config.middleware.reverse()) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.analysisFunctionMatchingWithHttpInfo(rsp))); - })); - } - - /** - * Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids - * Perform matching for the functions of an analysis - * @param analysisId - * @param analysisFunctionMatchingRequest - */ - public analysisFunctionMatching(analysisId: number, analysisFunctionMatchingRequest: AnalysisFunctionMatchingRequest, _options?: ConfigurationOptions): Observable { - return this.analysisFunctionMatchingWithHttpInfo(analysisId, analysisFunctionMatchingRequest, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); - } - - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param analysisId - * @param autoUnstripRequest - */ - public autoUnstripWithHttpInfo(analysisId: number, autoUnstripRequest: AutoUnstripRequest, _options?: ConfigurationOptions): Observable> { - const _config = mergeConfiguration(this.configuration, _options); - - const requestContextPromise = this.requestFactory.autoUnstrip(analysisId, autoUnstripRequest, _config); - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (const middleware of _config.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (const middleware of _config.middleware.reverse()) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.autoUnstripWithHttpInfo(rsp))); - })); - } - - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param analysisId - * @param autoUnstripRequest - */ - public autoUnstrip(analysisId: number, autoUnstripRequest: AutoUnstripRequest, _options?: ConfigurationOptions): Observable { - return this.autoUnstripWithHttpInfo(analysisId, autoUnstripRequest, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); - } - - /** - * Takes in an input of functions ID\'s and settings and finds the nearest functions for each function that\'s within the system - * Perform function matching for an arbitrary batch of functions, binaries or collections - * @param functionMatchingRequest - */ - public batchFunctionMatchingWithHttpInfo(functionMatchingRequest: FunctionMatchingRequest, _options?: ConfigurationOptions): Observable> { - const _config = mergeConfiguration(this.configuration, _options); - - const requestContextPromise = this.requestFactory.batchFunctionMatching(functionMatchingRequest, _config); - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (const middleware of _config.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (const middleware of _config.middleware.reverse()) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.batchFunctionMatchingWithHttpInfo(rsp))); - })); - } - - /** - * Takes in an input of functions ID\'s and settings and finds the nearest functions for each function that\'s within the system - * Perform function matching for an arbitrary batch of functions, binaries or collections - * @param functionMatchingRequest - */ - public batchFunctionMatching(functionMatchingRequest: FunctionMatchingRequest, _options?: ConfigurationOptions): Observable { - return this.batchFunctionMatchingWithHttpInfo(functionMatchingRequest, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); - } - - /** - * Takes in the analysis ID and cancels a running ai-unstrip operation - * Cancels a running ai-unstrip - * @param analysisId - */ - public cancelAiUnstripWithHttpInfo(analysisId: number, _options?: ConfigurationOptions): Observable> { - const _config = mergeConfiguration(this.configuration, _options); - - const requestContextPromise = this.requestFactory.cancelAiUnstrip(analysisId, _config); - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (const middleware of _config.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (const middleware of _config.middleware.reverse()) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.cancelAiUnstripWithHttpInfo(rsp))); - })); - } - - /** - * Takes in the analysis ID and cancels a running ai-unstrip operation - * Cancels a running ai-unstrip - * @param analysisId - */ - public cancelAiUnstrip(analysisId: number, _options?: ConfigurationOptions): Observable { - return this.cancelAiUnstripWithHttpInfo(analysisId, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); - } - - /** - * Takes in the analysis ID and cancels a running auto-unstrip operation - * Cancels a running auto-unstrip - * @param analysisId - */ - public cancelAutoUnstripWithHttpInfo(analysisId: number, _options?: ConfigurationOptions): Observable> { - const _config = mergeConfiguration(this.configuration, _options); - - const requestContextPromise = this.requestFactory.cancelAutoUnstrip(analysisId, _config); - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (const middleware of _config.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (const middleware of _config.middleware.reverse()) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.cancelAutoUnstripWithHttpInfo(rsp))); - })); - } - - /** - * Takes in the analysis ID and cancels a running auto-unstrip operation - * Cancels a running auto-unstrip - * @param analysisId - */ - public cancelAutoUnstrip(analysisId: number, _options?: ConfigurationOptions): Observable { - return this.cancelAutoUnstripWithHttpInfo(analysisId, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); - } - /** * Get string information found in the analysis * Get string information found in the Analysis diff --git a/types/PromiseAPI.ts b/types/PromiseAPI.ts index 2178573..3aebc54 100644 --- a/types/PromiseAPI.ts +++ b/types/PromiseAPI.ts @@ -14,7 +14,6 @@ import { AddUserStringInputBody } from '../models/AddUserStringInputBody'; import { AddUserStringToFunctionInputBody } from '../models/AddUserStringToFunctionInputBody'; import { AdditionalDetailsStatusResponse } from '../models/AdditionalDetailsStatusResponse'; import { AiDecompilationRating } from '../models/AiDecompilationRating'; -import { AiUnstripRequest } from '../models/AiUnstripRequest'; import { AnalysisAccessInfo } from '../models/AnalysisAccessInfo'; import { AnalysisBasicInfoOutputBody } from '../models/AnalysisBasicInfoOutputBody'; import { AnalysisBulkAddTagsRequest } from '../models/AnalysisBulkAddTagsRequest'; @@ -27,7 +26,6 @@ import { AnalysisCreateResponse } from '../models/AnalysisCreateResponse'; import { AnalysisDetailResponse } from '../models/AnalysisDetailResponse'; import { AnalysisFunctionEntry } from '../models/AnalysisFunctionEntry'; import { AnalysisFunctionMapping } from '../models/AnalysisFunctionMapping'; -import { AnalysisFunctionMatchingRequest } from '../models/AnalysisFunctionMatchingRequest'; import { AnalysisFunctions } from '../models/AnalysisFunctions'; import { AnalysisFunctionsList } from '../models/AnalysisFunctionsList'; import { AnalysisLogMessage } from '../models/AnalysisLogMessage'; @@ -59,8 +57,6 @@ import { Artifact } from '../models/Artifact'; import { AttemptFailedEvent } from '../models/AttemptFailedEvent'; import { AttemptStartedEvent } from '../models/AttemptStartedEvent'; import { AutoRunAgents } from '../models/AutoRunAgents'; -import { AutoUnstripRequest } from '../models/AutoUnstripRequest'; -import { AutoUnstripResponse } from '../models/AutoUnstripResponse'; import { AutoUnstripStatusOutputBody } from '../models/AutoUnstripStatusOutputBody'; import { BaseResponse } from '../models/BaseResponse'; import { BaseResponseAdditionalDetailsStatusResponse } from '../models/BaseResponseAdditionalDetailsStatusResponse'; @@ -284,9 +280,6 @@ import { FunctionListItem } from '../models/FunctionListItem'; import { FunctionLocalVariableResponse } from '../models/FunctionLocalVariableResponse'; import { FunctionMapping } from '../models/FunctionMapping'; import { FunctionMatch } from '../models/FunctionMatch'; -import { FunctionMatchingFilters } from '../models/FunctionMatchingFilters'; -import { FunctionMatchingRequest } from '../models/FunctionMatchingRequest'; -import { FunctionMatchingResponse } from '../models/FunctionMatchingResponse'; import { FunctionNameHistory } from '../models/FunctionNameHistory'; import { FunctionParamResponse } from '../models/FunctionParamResponse'; import { FunctionRename } from '../models/FunctionRename'; @@ -348,7 +341,6 @@ import { Logs } from '../models/Logs'; import { MITRETechnique } from '../models/MITRETechnique'; import { MatchFilters } from '../models/MatchFilters'; import { MatchedFunction } from '../models/MatchedFunction'; -import { MatchedFunctionSuggestion } from '../models/MatchedFunctionSuggestion'; import { MemdumpEntry } from '../models/MemdumpEntry'; import { MessageBody } from '../models/MessageBody'; import { MetaModel } from '../models/MetaModel'; @@ -507,10 +499,7 @@ import { UserProfile } from '../models/UserProfile'; import { V2FunctionHeader } from '../models/V2FunctionHeader'; import { V2FunctionInfo } from '../models/V2FunctionInfo'; import { V2FunctionInfoFuncDepsInner } from '../models/V2FunctionInfoFuncDepsInner'; -import { V2FunctionMatch } from '../models/V2FunctionMatch'; import { V2FunctionType } from '../models/V2FunctionType'; -import { V2MatchedFunction } from '../models/V2MatchedFunction'; -import { V2NameConfidence } from '../models/V2NameConfidence'; import { Vulnerabilities } from '../models/Vulnerabilities'; import { Vulnerability } from '../models/Vulnerability'; import { WarningEvent } from '../models/WarningEvent'; @@ -1495,13 +1484,14 @@ export class PromiseAnalysesCoreApi { * @param [page] Page number (1-indexed). * @param [pageSize] Number of results per page. * @param [search] Filter by string value (case-insensitive substring match). + * @param [searchOperator] How the search term matches string values. * @param [functionSearch] Filter by function name (case-insensitive substring match). * @param [orderBy] Field to order results by. * @param [sortOrder] Sort direction. */ - public v3GetAnalysisStringsWithHttpInfo(analysisId: number, page?: number, pageSize?: number, search?: string, functionSearch?: string, orderBy?: 'value' | 'length', sortOrder?: 'ASC' | 'DESC', _options?: PromiseConfigurationOptions): Promise> { + public v3GetAnalysisStringsWithHttpInfo(analysisId: number, page?: number, pageSize?: number, search?: string, searchOperator?: 'CONTAINS' | 'STARTS_WITH', functionSearch?: string, orderBy?: 'value' | 'length', sortOrder?: 'ASC' | 'DESC', _options?: PromiseConfigurationOptions): Promise> { const observableOptions = wrapOptions(_options); - const result = this.api.v3GetAnalysisStringsWithHttpInfo(analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder, observableOptions); + const result = this.api.v3GetAnalysisStringsWithHttpInfo(analysisId, page, pageSize, search, searchOperator, functionSearch, orderBy, sortOrder, observableOptions); return result.toPromise(); } @@ -1512,13 +1502,14 @@ export class PromiseAnalysesCoreApi { * @param [page] Page number (1-indexed). * @param [pageSize] Number of results per page. * @param [search] Filter by string value (case-insensitive substring match). + * @param [searchOperator] How the search term matches string values. * @param [functionSearch] Filter by function name (case-insensitive substring match). * @param [orderBy] Field to order results by. * @param [sortOrder] Sort direction. */ - public v3GetAnalysisStrings(analysisId: number, page?: number, pageSize?: number, search?: string, functionSearch?: string, orderBy?: 'value' | 'length', sortOrder?: 'ASC' | 'DESC', _options?: PromiseConfigurationOptions): Promise { + public v3GetAnalysisStrings(analysisId: number, page?: number, pageSize?: number, search?: string, searchOperator?: 'CONTAINS' | 'STARTS_WITH', functionSearch?: string, orderBy?: 'value' | 'length', sortOrder?: 'ASC' | 'DESC', _options?: PromiseConfigurationOptions): Promise { const observableOptions = wrapOptions(_options); - const result = this.api.v3GetAnalysisStrings(analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder, observableOptions); + const result = this.api.v3GetAnalysisStrings(analysisId, page, pageSize, search, searchOperator, functionSearch, orderBy, sortOrder, observableOptions); return result.toPromise(); } @@ -3293,144 +3284,6 @@ export class PromiseFunctionsCoreApi { return result.toPromise(); } - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function groups for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param analysisId - * @param aiUnstripRequest - */ - public aiUnstripWithHttpInfo(analysisId: number, aiUnstripRequest: AiUnstripRequest, _options?: PromiseConfigurationOptions): Promise> { - const observableOptions = wrapOptions(_options); - const result = this.api.aiUnstripWithHttpInfo(analysisId, aiUnstripRequest, observableOptions); - return result.toPromise(); - } - - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function groups for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param analysisId - * @param aiUnstripRequest - */ - public aiUnstrip(analysisId: number, aiUnstripRequest: AiUnstripRequest, _options?: PromiseConfigurationOptions): Promise { - const observableOptions = wrapOptions(_options); - const result = this.api.aiUnstrip(analysisId, aiUnstripRequest, observableOptions); - return result.toPromise(); - } - - /** - * Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids - * Perform matching for the functions of an analysis - * @param analysisId - * @param analysisFunctionMatchingRequest - */ - public analysisFunctionMatchingWithHttpInfo(analysisId: number, analysisFunctionMatchingRequest: AnalysisFunctionMatchingRequest, _options?: PromiseConfigurationOptions): Promise> { - const observableOptions = wrapOptions(_options); - const result = this.api.analysisFunctionMatchingWithHttpInfo(analysisId, analysisFunctionMatchingRequest, observableOptions); - return result.toPromise(); - } - - /** - * Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids - * Perform matching for the functions of an analysis - * @param analysisId - * @param analysisFunctionMatchingRequest - */ - public analysisFunctionMatching(analysisId: number, analysisFunctionMatchingRequest: AnalysisFunctionMatchingRequest, _options?: PromiseConfigurationOptions): Promise { - const observableOptions = wrapOptions(_options); - const result = this.api.analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest, observableOptions); - return result.toPromise(); - } - - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param analysisId - * @param autoUnstripRequest - */ - public autoUnstripWithHttpInfo(analysisId: number, autoUnstripRequest: AutoUnstripRequest, _options?: PromiseConfigurationOptions): Promise> { - const observableOptions = wrapOptions(_options); - const result = this.api.autoUnstripWithHttpInfo(analysisId, autoUnstripRequest, observableOptions); - return result.toPromise(); - } - - /** - * Takes in the analysis ID, uses the functions ID\'s from it and settings to find the nearest function for each function that\'s within the system - * Performs matching and auto-unstrip for an analysis and its functions - * @param analysisId - * @param autoUnstripRequest - */ - public autoUnstrip(analysisId: number, autoUnstripRequest: AutoUnstripRequest, _options?: PromiseConfigurationOptions): Promise { - const observableOptions = wrapOptions(_options); - const result = this.api.autoUnstrip(analysisId, autoUnstripRequest, observableOptions); - return result.toPromise(); - } - - /** - * Takes in an input of functions ID\'s and settings and finds the nearest functions for each function that\'s within the system - * Perform function matching for an arbitrary batch of functions, binaries or collections - * @param functionMatchingRequest - */ - public batchFunctionMatchingWithHttpInfo(functionMatchingRequest: FunctionMatchingRequest, _options?: PromiseConfigurationOptions): Promise> { - const observableOptions = wrapOptions(_options); - const result = this.api.batchFunctionMatchingWithHttpInfo(functionMatchingRequest, observableOptions); - return result.toPromise(); - } - - /** - * Takes in an input of functions ID\'s and settings and finds the nearest functions for each function that\'s within the system - * Perform function matching for an arbitrary batch of functions, binaries or collections - * @param functionMatchingRequest - */ - public batchFunctionMatching(functionMatchingRequest: FunctionMatchingRequest, _options?: PromiseConfigurationOptions): Promise { - const observableOptions = wrapOptions(_options); - const result = this.api.batchFunctionMatching(functionMatchingRequest, observableOptions); - return result.toPromise(); - } - - /** - * Takes in the analysis ID and cancels a running ai-unstrip operation - * Cancels a running ai-unstrip - * @param analysisId - */ - public cancelAiUnstripWithHttpInfo(analysisId: number, _options?: PromiseConfigurationOptions): Promise> { - const observableOptions = wrapOptions(_options); - const result = this.api.cancelAiUnstripWithHttpInfo(analysisId, observableOptions); - return result.toPromise(); - } - - /** - * Takes in the analysis ID and cancels a running ai-unstrip operation - * Cancels a running ai-unstrip - * @param analysisId - */ - public cancelAiUnstrip(analysisId: number, _options?: PromiseConfigurationOptions): Promise { - const observableOptions = wrapOptions(_options); - const result = this.api.cancelAiUnstrip(analysisId, observableOptions); - return result.toPromise(); - } - - /** - * Takes in the analysis ID and cancels a running auto-unstrip operation - * Cancels a running auto-unstrip - * @param analysisId - */ - public cancelAutoUnstripWithHttpInfo(analysisId: number, _options?: PromiseConfigurationOptions): Promise> { - const observableOptions = wrapOptions(_options); - const result = this.api.cancelAutoUnstripWithHttpInfo(analysisId, observableOptions); - return result.toPromise(); - } - - /** - * Takes in the analysis ID and cancels a running auto-unstrip operation - * Cancels a running auto-unstrip - * @param analysisId - */ - public cancelAutoUnstrip(analysisId: number, _options?: PromiseConfigurationOptions): Promise { - const observableOptions = wrapOptions(_options); - const result = this.api.cancelAutoUnstrip(analysisId, observableOptions); - return result.toPromise(); - } - /** * Get string information found in the analysis * Get string information found in the Analysis