Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.107.0
v3.110.0
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ Class | Method | HTTP request | Description
*FunctionsCoreApi* | [**getFunctionsCalleesCallers**](docs/FunctionsCoreApi.md#getFunctionsCalleesCallers) | **GET** /v3/functions/callees-callers | Get callees and callers for many functions
*FunctionsCoreApi* | [**getFunctionsMatches**](docs/FunctionsCoreApi.md#getFunctionsMatches) | **GET** /v3/functions/matches | Get function-matching results for an explicit set of functions
*FunctionsCoreApi* | [**getFunctionsMatchingStatus**](docs/FunctionsCoreApi.md#getFunctionsMatchingStatus) | **GET** /v3/functions/matches/status | Get function-matching status for an explicit set of functions
*FunctionsCoreApi* | [**getImportedFunction**](docs/FunctionsCoreApi.md#getImportedFunction) | **GET** /v3/analyses/{analysis_id}/imported-functions/{imported_function_id} | Get an imported function with its callers
*FunctionsCoreApi* | [**listAnalysisFunctions**](docs/FunctionsCoreApi.md#listAnalysisFunctions) | **GET** /v3/analyses/{analysis_id}/functions | List functions in an analysis
*FunctionsCoreApi* | [**listImportedFunctions**](docs/FunctionsCoreApi.md#listImportedFunctions) | **GET** /v3/analyses/{analysis_id}/imported-functions | List imported functions in an analysis
*FunctionsCoreApi* | [**startFunctionsMatching**](docs/FunctionsCoreApi.md#startFunctionsMatching) | **POST** /v3/functions/matches | Start function matching for an explicit set of functions
*FunctionsDataTypesApi* | [**batchUpdateFunctionDataTypes**](docs/FunctionsDataTypesApi.md#batchUpdateFunctionDataTypes) | **PUT** /v3/analyses/{analysis_id}/functions/data-types | Batch update function data types
*FunctionsDataTypesApi* | [**generateFunctionDataTypesForAnalysis**](docs/FunctionsDataTypesApi.md#generateFunctionDataTypesForAnalysis) | **POST** /v2/analyses/{analysis_id}/functions/data_types | Generate Function Data Types
Expand Down Expand Up @@ -257,6 +259,7 @@ Class | Method | HTTP request | Description
- [AppApiRestV2FunctionsResponsesFunction](AppApiRestV2FunctionsResponsesFunction.md)
- [AppApiRestV2FunctionsTypesFunction](AppApiRestV2FunctionsTypesFunction.md)
- [AppApiRestV2InfoTypesCapability](AppApiRestV2InfoTypesCapability.md)
- [ArchiveContentEntry](ArchiveContentEntry.md)
- [Argument](Argument.md)
- [Artifact](Artifact.md)
- [AttemptFailedEvent](AttemptFailedEvent.md)
Expand Down Expand Up @@ -519,18 +522,23 @@ Class | Method | HTTP request | Description
- [ISA](ISA.md)
- [IconModel](IconModel.md)
- [ImportModel](ImportModel.md)
- [ImportedFunctionCallerEntry](ImportedFunctionCallerEntry.md)
- [ImportedFunctionDetailOutputBody](ImportedFunctionDetailOutputBody.md)
- [ImportedFunctionEntry](ImportedFunctionEntry.md)
- [InlineComment](InlineComment.md)
- [InsertAnalysisLogRequest](InsertAnalysisLogRequest.md)
- [InviteUserInputBody](InviteUserInputBody.md)
- [IssuerAllowedDomain](IssuerAllowedDomain.md)
- [ListAnalysisFunctionsDataTypesOutputBody](ListAnalysisFunctionsDataTypesOutputBody.md)
- [ListAnalysisFunctionsOutputBody](ListAnalysisFunctionsOutputBody.md)
- [ListAnalysisStringsOutputBody](ListAnalysisStringsOutputBody.md)
- [ListArchiveContentsOutputBody](ListArchiveContentsOutputBody.md)
- [ListCollectionResults](ListCollectionResults.md)
- [ListCollectionsOutputBody](ListCollectionsOutputBody.md)
- [ListExampleAnalysesOutputBody](ListExampleAnalysesOutputBody.md)
- [ListFunctionStringsOutputBody](ListFunctionStringsOutputBody.md)
- [ListFunctionsDataTypesOutputBody](ListFunctionsDataTypesOutputBody.md)
- [ListImportedFunctionsOutputBody](ListImportedFunctionsOutputBody.md)
- [ListTeamsOutputBody](ListTeamsOutputBody.md)
- [ListUsersOutputBody](ListUsersOutputBody.md)
- [LocationOutputBody](LocationOutputBody.md)
Expand Down
36 changes: 32 additions & 4 deletions apis/AnalysesCoreApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,12 @@ export class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory {
}

/**
* Returns the matches blob when the matching workflow has completed. While the workflow is in progress this endpoint returns the current status with no matches; use /matches/status to poll progress. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) β€” Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) β€” Access Denied
* Returns the matches blob when the matching workflow has completed. While the workflow is in progress this endpoint returns the current status with no matches; use /matches/status to poll progress. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) β€” Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) β€” Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) β€” Bad Request
* Get function-matching results for an analysis
* @param analysisId Analysis ID
* @param matchId Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.
*/
public async getAnalysisFunctionMatches(analysisId: number, _options?: Configuration): Promise<RequestContext> {
public async getAnalysisFunctionMatches(analysisId: number, matchId?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;

// verify required parameter 'analysisId' is not null or undefined
Expand All @@ -409,6 +410,7 @@ export class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory {
}



// Path Params
const localVarPath = '/v3/analyses/{analysis_id}/functions/matches'
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
Expand All @@ -417,6 +419,11 @@ export class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory {
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")

// Query Params
if (matchId !== undefined) {
requestContext.setQueryParam("match_id", ObjectSerializer.serialize(matchId, "string", ""));
}


let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
Expand All @@ -439,11 +446,12 @@ export class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory {
}

/**
* Returns the matching workflow\'s current status. Does not include the matches blob β€” use GET /matches for that. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) β€” Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) β€” Access Denied
* Returns the matching workflow\'s current status. Does not include the matches blob β€” use GET /matches for that. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) β€” Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) β€” Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) β€” Bad Request
* Get function-matching status for an analysis
* @param analysisId Analysis ID
* @param matchId Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.
*/
public async getAnalysisFunctionMatchingStatus(analysisId: number, _options?: Configuration): Promise<RequestContext> {
public async getAnalysisFunctionMatchingStatus(analysisId: number, matchId?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;

// verify required parameter 'analysisId' is not null or undefined
Expand All @@ -452,6 +460,7 @@ export class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory {
}



// Path Params
const localVarPath = '/v3/analyses/{analysis_id}/functions/matches/status'
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
Expand All @@ -460,6 +469,11 @@ export class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory {
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")

// Query Params
if (matchId !== undefined) {
requestContext.setQueryParam("match_id", ObjectSerializer.serialize(matchId, "string", ""));
}


let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
Expand Down Expand Up @@ -1855,6 +1869,13 @@ export class AnalysesCoreApiResponseProcessor {
) as GetMatchesOutputBody;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
if (isCodeInRange("400", response.httpStatusCode)) {
const body: APIError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"APIError", ""
) as APIError;
throw new ApiException<APIError>(response.httpStatusCode, "Bad Request", body, response.headers);
}
if (isCodeInRange("403", response.httpStatusCode)) {
const body: APIError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
Expand Down Expand Up @@ -1912,6 +1933,13 @@ export class AnalysesCoreApiResponseProcessor {
) as GetMatchesStatusOutputBody;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
if (isCodeInRange("400", response.httpStatusCode)) {
const body: APIError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"APIError", ""
) as APIError;
throw new ApiException<APIError>(response.httpStatusCode, "Bad Request", body, response.headers);
}
if (isCodeInRange("403", response.httpStatusCode)) {
const body: APIError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
Expand Down
Loading