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.105.0
v3.114.2
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ Class | Method | HTTP request | Description
*AnalysesCoreAPI* | [**UpdateAnalysis**](docs/AnalysesCoreAPI.md#updateanalysis) | **Patch** /v2/analyses/{analysis_id} | Update Analysis
*AnalysesCoreAPI* | [**UpdateAnalysisTags**](docs/AnalysesCoreAPI.md#updateanalysistags) | **Patch** /v2/analyses/{analysis_id}/tags | Update Analysis Tags
*AnalysesCoreAPI* | [**UploadFile**](docs/AnalysesCoreAPI.md#uploadfile) | **Post** /v2/upload | Upload File
*AnalysesCoreAPI* | [**V3GetAnalysisAutoUnstripStatus**](docs/AnalysesCoreAPI.md#v3getanalysisautounstripstatus) | **Get** /v3/analyses/{analysis_id}/auto-unstrip/status | Get the auto-unstrip status for an analysis.
*AnalysesCoreAPI* | [**V3GetAnalysisStrings**](docs/AnalysesCoreAPI.md#v3getanalysisstrings) | **Get** /v3/analyses/{analysis_id}/functions/strings | List strings for an analysis.
*AnalysesCoreAPI* | [**V3GetAnalysisStringsStatus**](docs/AnalysesCoreAPI.md#v3getanalysisstringsstatus) | **Get** /v3/analyses/{analysis_id}/functions/strings/status | Get the string-extraction status for an analysis.
*AnalysesCoreAPI* | [**V3ListAnalyses**](docs/AnalysesCoreAPI.md#v3listanalyses) | **Get** /v3/analyses | List analyses
*AnalysesCoreAPI* | [**V3ListExampleAnalyses**](docs/AnalysesCoreAPI.md#v3listexampleanalyses) | **Get** /v3/analyses/examples | List example analyses
*AnalysesResultsMetadataAPI* | [**GetAnalysisFunctionsPaginated**](docs/AnalysesResultsMetadataAPI.md#getanalysisfunctionspaginated) | **Get** /v2/analyses/{analysis_id}/functions | Get functions from analysis
*AnalysesResultsMetadataAPI* | [**GetCapabilities**](docs/AnalysesResultsMetadataAPI.md#getcapabilities) | **Get** /v2/analyses/{analysis_id}/capabilities | Gets the capabilities from the analysis
Expand Down Expand Up @@ -194,13 +196,17 @@ Class | Method | HTTP request | Description
*FunctionsCoreAPI* | [**GetFunctionCapabilities_0**](docs/FunctionsCoreAPI.md#getfunctioncapabilities_0) | **Get** /v3/functions/{function_id}/capabilities | Get capabilities for a function
*FunctionsCoreAPI* | [**GetFunctionDetails**](docs/FunctionsCoreAPI.md#getfunctiondetails) | **Get** /v2/functions/{function_id} | Get function details
*FunctionsCoreAPI* | [**GetFunctionDetails_0**](docs/FunctionsCoreAPI.md#getfunctiondetails_0) | **Get** /v3/functions/{function_id} | Get function details
*FunctionsCoreAPI* | [**GetFunctionIndirectCallSites**](docs/FunctionsCoreAPI.md#getfunctionindirectcallsites) | **Get** /v3/functions/{function_id}/indirect-call-sites | Get indirect call sites for a function
*FunctionsCoreAPI* | [**GetFunctionStrings**](docs/FunctionsCoreAPI.md#getfunctionstrings) | **Get** /v2/functions/{function_id}/strings | Get string information found in the function
*FunctionsCoreAPI* | [**GetFunctionStrings_0**](docs/FunctionsCoreAPI.md#getfunctionstrings_0) | **Get** /v3/functions/{function_id}/strings | List strings for a function.
*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
*FunctionsCoreAPI* | [**V3CanonicalizeFunctionNames**](docs/FunctionsCoreAPI.md#v3canonicalizefunctionnames) | **Post** /v3/functions/canonical-names | Canonicalize a batch of function names
*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
*FunctionsDataTypesAPI* | [**GenerateFunctionDataTypesForFunctions**](docs/FunctionsDataTypesAPI.md#generatefunctiondatatypesforfunctions) | **Post** /v2/functions/data_types | Generate Function Data Types for an arbitrary list of functions
Expand Down Expand Up @@ -263,13 +269,15 @@ Class | Method | HTTP request | Description
- [AnalysisLogMessage](docs/AnalysisLogMessage.md)
- [AnalysisLogs](docs/AnalysisLogs.md)
- [AnalysisRecord](docs/AnalysisRecord.md)
- [AnalysisRecordBody](docs/AnalysisRecordBody.md)
- [AnalysisReport](docs/AnalysisReport.md)
- [AnalysisScope](docs/AnalysisScope.md)
- [AnalysisStringFunction](docs/AnalysisStringFunction.md)
- [AnalysisStringInput](docs/AnalysisStringInput.md)
- [AnalysisStringItem](docs/AnalysisStringItem.md)
- [AnalysisStringsResponse](docs/AnalysisStringsResponse.md)
- [AnalysisStringsStatusResponse](docs/AnalysisStringsStatusResponse.md)
- [AnalysisTagBody](docs/AnalysisTagBody.md)
- [AnalysisTags](docs/AnalysisTags.md)
- [AnalysisUpdateRequest](docs/AnalysisUpdateRequest.md)
- [AnalysisUpdateTagsRequest](docs/AnalysisUpdateTagsRequest.md)
Expand All @@ -281,13 +289,15 @@ Class | Method | HTTP request | Description
- [AppApiRestV2FunctionsResponsesFunction](docs/AppApiRestV2FunctionsResponsesFunction.md)
- [AppApiRestV2FunctionsTypesFunction](docs/AppApiRestV2FunctionsTypesFunction.md)
- [AppApiRestV2InfoTypesCapability](docs/AppApiRestV2InfoTypesCapability.md)
- [ArchiveContentEntry](docs/ArchiveContentEntry.md)
- [Argument](docs/Argument.md)
- [Artifact](docs/Artifact.md)
- [AttemptFailedEvent](docs/AttemptFailedEvent.md)
- [AttemptStartedEvent](docs/AttemptStartedEvent.md)
- [AutoRunAgents](docs/AutoRunAgents.md)
- [AutoUnstripRequest](docs/AutoUnstripRequest.md)
- [AutoUnstripResponse](docs/AutoUnstripResponse.md)
- [AutoUnstripStatusOutputBody](docs/AutoUnstripStatusOutputBody.md)
- [BaseResponse](docs/BaseResponse.md)
- [BaseResponseAdditionalDetailsStatusResponse](docs/BaseResponseAdditionalDetailsStatusResponse.md)
- [BaseResponseAnalysisBulkAddTagsResponse](docs/BaseResponseAnalysisBulkAddTagsResponse.md)
Expand Down Expand Up @@ -382,6 +392,9 @@ Class | Method | HTTP request | Description
- [CalleeFunctionInfo](docs/CalleeFunctionInfo.md)
- [CalleesCallerFunctionsResponse](docs/CalleesCallerFunctionsResponse.md)
- [CallerFunctionInfo](docs/CallerFunctionInfo.md)
- [CanonicalName](docs/CanonicalName.md)
- [CanonicalizeNamesInputBody](docs/CanonicalizeNamesInputBody.md)
- [CanonicalizeNamesOutputBody](docs/CanonicalizeNamesOutputBody.md)
- [Capabilities](docs/Capabilities.md)
- [CapabilitiesAgentResponse](docs/CapabilitiesAgentResponse.md)
- [CapabilitiesOutputBody](docs/CapabilitiesOutputBody.md)
Expand Down Expand Up @@ -472,6 +485,7 @@ Class | Method | HTTP request | Description
- [EventTITLEUPDATED](docs/EventTITLEUPDATED.md)
- [EventTOOLCALLARGSDELTA](docs/EventTOOLCALLARGSDELTA.md)
- [EventTOOLCALLEND](docs/EventTOOLCALLEND.md)
- [EventTOOLCALLPROGRESS](docs/EventTOOLCALLPROGRESS.md)
- [EventTOOLCALLRESULT](docs/EventTOOLCALLRESULT.md)
- [EventTOOLCALLSTART](docs/EventTOOLCALLSTART.md)
- [EventTOOLCONFIRMATIONREQUIRED](docs/EventTOOLCONFIRMATIONREQUIRED.md)
Expand Down Expand Up @@ -544,18 +558,26 @@ Class | Method | HTTP request | Description
- [ISA](docs/ISA.md)
- [IconModel](docs/IconModel.md)
- [ImportModel](docs/ImportModel.md)
- [ImportedFunctionCallerEntry](docs/ImportedFunctionCallerEntry.md)
- [ImportedFunctionDetailOutputBody](docs/ImportedFunctionDetailOutputBody.md)
- [ImportedFunctionEntry](docs/ImportedFunctionEntry.md)
- [IndirectCallSite](docs/IndirectCallSite.md)
- [IndirectCallSitesOutputBody](docs/IndirectCallSitesOutputBody.md)
- [InlineComment](docs/InlineComment.md)
- [InsertAnalysisLogRequest](docs/InsertAnalysisLogRequest.md)
- [InviteUserInputBody](docs/InviteUserInputBody.md)
- [IssuerAllowedDomain](docs/IssuerAllowedDomain.md)
- [ListAnalysesOutputBody](docs/ListAnalysesOutputBody.md)
- [ListAnalysisFunctionsDataTypesOutputBody](docs/ListAnalysisFunctionsDataTypesOutputBody.md)
- [ListAnalysisFunctionsOutputBody](docs/ListAnalysisFunctionsOutputBody.md)
- [ListAnalysisStringsOutputBody](docs/ListAnalysisStringsOutputBody.md)
- [ListArchiveContentsOutputBody](docs/ListArchiveContentsOutputBody.md)
- [ListCollectionResults](docs/ListCollectionResults.md)
- [ListCollectionsOutputBody](docs/ListCollectionsOutputBody.md)
- [ListExampleAnalysesOutputBody](docs/ListExampleAnalysesOutputBody.md)
- [ListFunctionStringsOutputBody](docs/ListFunctionStringsOutputBody.md)
- [ListFunctionsDataTypesOutputBody](docs/ListFunctionsDataTypesOutputBody.md)
- [ListImportedFunctionsOutputBody](docs/ListImportedFunctionsOutputBody.md)
- [ListTeamsOutputBody](docs/ListTeamsOutputBody.md)
- [ListUsersOutputBody](docs/ListUsersOutputBody.md)
- [LocationOutputBody](docs/LocationOutputBody.md)
Expand Down Expand Up @@ -659,6 +681,7 @@ Class | Method | HTTP request | Description
- [SseEventTitleUpdatedData](docs/SseEventTitleUpdatedData.md)
- [SseEventToolCallArgsDeltaData](docs/SseEventToolCallArgsDeltaData.md)
- [SseEventToolCallEndData](docs/SseEventToolCallEndData.md)
- [SseEventToolCallProgressData](docs/SseEventToolCallProgressData.md)
- [SseEventToolCallResultData](docs/SseEventToolCallResultData.md)
- [SseEventToolCallStartData](docs/SseEventToolCallStartData.md)
- [SseEventToolConfirmationRequiredData](docs/SseEventToolConfirmationRequiredData.md)
Expand Down
168 changes: 164 additions & 4 deletions docs/AnalysesCoreAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ Method | HTTP request | Description
[**UpdateAnalysis**](AnalysesCoreAPI.md#UpdateAnalysis) | **Patch** /v2/analyses/{analysis_id} | Update Analysis
[**UpdateAnalysisTags**](AnalysesCoreAPI.md#UpdateAnalysisTags) | **Patch** /v2/analyses/{analysis_id}/tags | Update Analysis Tags
[**UploadFile**](AnalysesCoreAPI.md#UploadFile) | **Post** /v2/upload | Upload File
[**V3GetAnalysisAutoUnstripStatus**](AnalysesCoreAPI.md#V3GetAnalysisAutoUnstripStatus) | **Get** /v3/analyses/{analysis_id}/auto-unstrip/status | Get the auto-unstrip status for an analysis.
[**V3GetAnalysisStrings**](AnalysesCoreAPI.md#V3GetAnalysisStrings) | **Get** /v3/analyses/{analysis_id}/functions/strings | List strings for an analysis.
[**V3GetAnalysisStringsStatus**](AnalysesCoreAPI.md#V3GetAnalysisStringsStatus) | **Get** /v3/analyses/{analysis_id}/functions/strings/status | Get the string-extraction status for an analysis.
[**V3ListAnalyses**](AnalysesCoreAPI.md#V3ListAnalyses) | **Get** /v3/analyses | List analyses
[**V3ListExampleAnalyses**](AnalysesCoreAPI.md#V3ListExampleAnalyses) | **Get** /v3/analyses/examples | List example analyses


Expand Down Expand Up @@ -525,7 +527,7 @@ Name | Type | Description | Notes

## GetAnalysisFunctionMatches

> GetMatchesOutputBody GetAnalysisFunctionMatches(ctx, analysisId).Execute()
> GetMatchesOutputBody GetAnalysisFunctionMatches(ctx, analysisId).MatchId(matchId).Execute()

Get function-matching results for an analysis

Expand All @@ -545,10 +547,11 @@ import (

func main() {
analysisId := int64(789) // int64 | Analysis ID
matchId := "matchId_example" // string | Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. (optional)

configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.GetAnalysisFunctionMatches(context.Background(), analysisId).Execute()
resp, r, err := apiClient.AnalysesCoreAPI.GetAnalysisFunctionMatches(context.Background(), analysisId).MatchId(matchId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.GetAnalysisFunctionMatches``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -574,6 +577,7 @@ Other parameters are passed through a pointer to a apiGetAnalysisFunctionMatches
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------

**matchId** | **string** | Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. |

### Return type

Expand All @@ -595,7 +599,7 @@ Name | Type | Description | Notes

## GetAnalysisFunctionMatchingStatus

> GetMatchesStatusOutputBody GetAnalysisFunctionMatchingStatus(ctx, analysisId).Execute()
> GetMatchesStatusOutputBody GetAnalysisFunctionMatchingStatus(ctx, analysisId).MatchId(matchId).Execute()

Get function-matching status for an analysis

Expand All @@ -615,10 +619,11 @@ import (

func main() {
analysisId := int64(789) // int64 | Analysis ID
matchId := "matchId_example" // string | Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. (optional)

configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.GetAnalysisFunctionMatchingStatus(context.Background(), analysisId).Execute()
resp, r, err := apiClient.AnalysesCoreAPI.GetAnalysisFunctionMatchingStatus(context.Background(), analysisId).MatchId(matchId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.GetAnalysisFunctionMatchingStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -644,6 +649,7 @@ Other parameters are passed through a pointer to a apiGetAnalysisFunctionMatchin
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------

**matchId** | **string** | Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. |

### Return type

Expand Down Expand Up @@ -1673,6 +1679,76 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)


## V3GetAnalysisAutoUnstripStatus

> AutoUnstripStatusOutputBody V3GetAnalysisAutoUnstripStatus(ctx, analysisId).Execute()

Get the auto-unstrip status for an analysis.



### Example

```go
package main

import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)

func main() {
analysisId := int64(789) // int64 | Analysis ID

configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.V3GetAnalysisAutoUnstripStatus(context.Background(), analysisId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.V3GetAnalysisAutoUnstripStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V3GetAnalysisAutoUnstripStatus`: AutoUnstripStatusOutputBody
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.V3GetAnalysisAutoUnstripStatus`: %v\n", resp)
}
```

### Path Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**analysisId** | **int64** | Analysis ID |

### Other Parameters

Other parameters are passed through a pointer to a apiV3GetAnalysisAutoUnstripStatusRequest struct via the builder pattern


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------


### Return type

[**AutoUnstripStatusOutputBody**](AutoUnstripStatusOutputBody.md)

### Authorization

[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[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)


## V3GetAnalysisStrings

> ListAnalysisStringsOutputBody V3GetAnalysisStrings(ctx, analysisId).Page(page).PageSize(pageSize).Search(search).FunctionSearch(functionSearch).OrderBy(orderBy).SortOrder(sortOrder).Execute()
Expand Down Expand Up @@ -1825,6 +1901,90 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)


## V3ListAnalyses

> ListAnalysesOutputBody V3ListAnalyses(ctx).SearchTerm(searchTerm).AnalysisScope(analysisScope).Status(status).ModelName(modelName).Usernames(usernames).Sha256Hash(sha256Hash).PageSize(pageSize).NextPageToken(nextPageToken).OrderBy(orderBy).Order(order).Execute()

List analyses



### Example

```go
package main

import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)

func main() {
searchTerm := "searchTerm_example" // string | (optional)
analysisScope := []string{"AnalysisScope_example"} // []string | Leave empty for no filter (optional) (default to {"PRIVATE"})
status := []string{"Status_example"} // []string | (optional)
modelName := []*string{"Inner_example"} // []*string | (optional)
usernames := []*string{"Inner_example"} // []*string | (optional)
sha256Hash := "sha256Hash_example" // string | (optional)
pageSize := int64(789) // int64 | (optional) (default to 20)
nextPageToken := "nextPageToken_example" // string | Forward-pagination cursor from a prior response. When set, order_by/order are taken from the token (the sort cannot change mid-pagination). (optional)
orderBy := "orderBy_example" // string | (optional) (default to "created")
order := "order_example" // string | (optional) (default to "DESC")

configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.V3ListAnalyses(context.Background()).SearchTerm(searchTerm).AnalysisScope(analysisScope).Status(status).ModelName(modelName).Usernames(usernames).Sha256Hash(sha256Hash).PageSize(pageSize).NextPageToken(nextPageToken).OrderBy(orderBy).Order(order).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.V3ListAnalyses``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V3ListAnalyses`: ListAnalysesOutputBody
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.V3ListAnalyses`: %v\n", resp)
}
```

### Path Parameters



### Other Parameters

Other parameters are passed through a pointer to a apiV3ListAnalysesRequest struct via the builder pattern


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**searchTerm** | **string** | |
**analysisScope** | **[]string** | Leave empty for no filter | [default to {"PRIVATE"}]
**status** | **[]string** | |
**modelName** | **[]string** | |
**usernames** | **[]string** | |
**sha256Hash** | **string** | |
**pageSize** | **int64** | | [default to 20]
**nextPageToken** | **string** | Forward-pagination cursor from a prior response. When set, order_by/order are taken from the token (the sort cannot change mid-pagination). |
**orderBy** | **string** | | [default to "created"]
**order** | **string** | | [default to "DESC"]

### Return type

[**ListAnalysesOutputBody**](ListAnalysesOutputBody.md)

### Authorization

[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[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)


## V3ListExampleAnalyses

> ListExampleAnalysesOutputBody V3ListExampleAnalyses(ctx).Execute()
Expand Down
Loading
Loading