All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| createAiDecompilationComment | POST /v2/functions/{function_id}/ai-decompilation/comments | Create a comment for this function |
| createAiDecompilationTask | POST /v2/functions/{function_id}/ai-decompilation | Begins AI Decompilation Process |
| deleteAiDecompilationComment | DELETE /v2/functions/{function_id}/ai-decompilation/comments/{comment_id} | Delete a comment |
| getAiDecompilationComments | GET /v2/functions/{function_id}/ai-decompilation/comments | Get comments for this function |
| getAiDecompilationRating | GET /v2/functions/{function_id}/ai-decompilation/rating | Get rating for AI decompilation |
| getAiDecompilationTaskResult | GET /v2/functions/{function_id}/ai-decompilation | Polls AI Decompilation Process |
| getAiDecompilationTaskStatus | GET /v2/functions/{function_id}/ai-decompilation/status | Check the status of a function ai decompilation |
| updateAiDecompilationComment | PATCH /v2/functions/{function_id}/ai-decompilation/comments/{comment_id} | Update a comment |
| upsertAiDecompilationRating | PATCH /v2/functions/{function_id}/ai-decompilation/rating | Upsert rating for AI decompilation |
BaseResponseCommentResponse createAiDecompilationComment(functionCommentCreateRequest)
Creates a comment associated with a specified function).
import { createConfiguration, FunctionsAIDecompilationApi } from '@revengai/sdk';
import type { FunctionsAIDecompilationApiCreateAiDecompilationCommentRequest } from '@revengai/sdk';
const configuration = createConfiguration();
const apiInstance = new FunctionsAIDecompilationApi(configuration);
const request: FunctionsAIDecompilationApiCreateAiDecompilationCommentRequest = {
functionId: 1,
functionCommentCreateRequest: {
content: "content_example",
context: {
startLine: 1,
endLine: 1,
},
},
endpointUrl: "endpoint_url_example",
localCacheDir: "local_cache_dir_example",
localCacheMaxSizeMb: 1,
customerSamplesBucket: "customer_samples_bucket_example",
firmwareSamplesBucket: "firmware_samples_bucket_example",
maxRetryAttempts: 5,
};
const data = await apiInstance.createAiDecompilationComment(request);
console.log('API called successfully. Returned data:', data);| Name | Type | Description | Notes |
|---|---|---|---|
| functionCommentCreateRequest | FunctionCommentCreateRequest | ||
| functionId | [number] | defaults to undefined | |
| endpointUrl | [string] | (optional) defaults to undefined | |
| localCacheDir | [string] | (optional) defaults to undefined | |
| localCacheMaxSizeMb | [number] | (optional) defaults to undefined | |
| customerSamplesBucket | [string] | (optional) defaults to undefined | |
| firmwareSamplesBucket | [string] | (optional) defaults to undefined | |
| maxRetryAttempts | [number] | (optional) defaults to 5 |
BaseResponseCommentResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Successful Response | - |
| 422 | Invalid request parameters | - |
| 400 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponse createAiDecompilationTask()
Begins the AI Decompilation Process
import { createConfiguration, FunctionsAIDecompilationApi } from '@revengai/sdk';
import type { FunctionsAIDecompilationApiCreateAiDecompilationTaskRequest } from '@revengai/sdk';
const configuration = createConfiguration();
const apiInstance = new FunctionsAIDecompilationApi(configuration);
const request: FunctionsAIDecompilationApiCreateAiDecompilationTaskRequest = {
// The ID of the function for which we are creating the decompilation task
functionId: 1,
};
const data = await apiInstance.createAiDecompilationTask(request);
console.log('API called successfully. Returned data:', data);| Name | Type | Description | Notes |
|---|---|---|---|
| functionId | [number] | The ID of the function for which we are creating the decompilation task | defaults to undefined |
BaseResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Successful Response | - |
| 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
| 402 | Payment Required | - |
| 409 | Conflict | - |
| 400 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseBool deleteAiDecompilationComment()
Deletes an existing comment. Users can only delete their own comments.
import { createConfiguration, FunctionsAIDecompilationApi } from '@revengai/sdk';
import type { FunctionsAIDecompilationApiDeleteAiDecompilationCommentRequest } from '@revengai/sdk';
const configuration = createConfiguration();
const apiInstance = new FunctionsAIDecompilationApi(configuration);
const request: FunctionsAIDecompilationApiDeleteAiDecompilationCommentRequest = {
commentId: 1,
functionId: 1,
endpointUrl: "endpoint_url_example",
localCacheDir: "local_cache_dir_example",
localCacheMaxSizeMb: 1,
customerSamplesBucket: "customer_samples_bucket_example",
firmwareSamplesBucket: "firmware_samples_bucket_example",
maxRetryAttempts: 5,
};
const data = await apiInstance.deleteAiDecompilationComment(request);
console.log('API called successfully. Returned data:', data);| Name | Type | Description | Notes |
|---|---|---|---|
| commentId | [number] | defaults to undefined | |
| functionId | [number] | defaults to undefined | |
| endpointUrl | [string] | (optional) defaults to undefined | |
| localCacheDir | [string] | (optional) defaults to undefined | |
| localCacheMaxSizeMb | [number] | (optional) defaults to undefined | |
| customerSamplesBucket | [string] | (optional) defaults to undefined | |
| firmwareSamplesBucket | [string] | (optional) defaults to undefined | |
| maxRetryAttempts | [number] | (optional) defaults to 5 |
BaseResponseBool
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
| 403 | You can only delete your own comments | - |
| 400 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseListCommentResponse getAiDecompilationComments()
Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to.
import { createConfiguration, FunctionsAIDecompilationApi } from '@revengai/sdk';
import type { FunctionsAIDecompilationApiGetAiDecompilationCommentsRequest } from '@revengai/sdk';
const configuration = createConfiguration();
const apiInstance = new FunctionsAIDecompilationApi(configuration);
const request: FunctionsAIDecompilationApiGetAiDecompilationCommentsRequest = {
functionId: 1,
endpointUrl: "endpoint_url_example",
localCacheDir: "local_cache_dir_example",
localCacheMaxSizeMb: 1,
customerSamplesBucket: "customer_samples_bucket_example",
firmwareSamplesBucket: "firmware_samples_bucket_example",
maxRetryAttempts: 5,
};
const data = await apiInstance.getAiDecompilationComments(request);
console.log('API called successfully. Returned data:', data);| Name | Type | Description | Notes |
|---|---|---|---|
| functionId | [number] | defaults to undefined | |
| endpointUrl | [string] | (optional) defaults to undefined | |
| localCacheDir | [string] | (optional) defaults to undefined | |
| localCacheMaxSizeMb | [number] | (optional) defaults to undefined | |
| customerSamplesBucket | [string] | (optional) defaults to undefined | |
| firmwareSamplesBucket | [string] | (optional) defaults to undefined | |
| maxRetryAttempts | [number] | (optional) defaults to 5 |
BaseResponseListCommentResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseUnionGetAiDecompilationRatingResponseNoneType getAiDecompilationRating()
import { createConfiguration, FunctionsAIDecompilationApi } from '@revengai/sdk';
import type { FunctionsAIDecompilationApiGetAiDecompilationRatingRequest } from '@revengai/sdk';
const configuration = createConfiguration();
const apiInstance = new FunctionsAIDecompilationApi(configuration);
const request: FunctionsAIDecompilationApiGetAiDecompilationRatingRequest = {
// The ID of the function for which to get the rating
functionId: 1,
};
const data = await apiInstance.getAiDecompilationRating(request);
console.log('API called successfully. Returned data:', data);| Name | Type | Description | Notes |
|---|---|---|---|
| functionId | [number] | The ID of the function for which to get the rating | defaults to undefined |
BaseResponseUnionGetAiDecompilationRatingResponseNoneType
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult()
Polls the AI Decompilation Process
import { createConfiguration, FunctionsAIDecompilationApi } from '@revengai/sdk';
import type { FunctionsAIDecompilationApiGetAiDecompilationTaskResultRequest } from '@revengai/sdk';
const configuration = createConfiguration();
const apiInstance = new FunctionsAIDecompilationApi(configuration);
const request: FunctionsAIDecompilationApiGetAiDecompilationTaskResultRequest = {
// The ID of the function being decompiled
functionId: 1,
// Generate a summary for the decompilation (optional)
summarise: true,
// Generate inline comments for the decompilation (optional)
generateInlineComments: true,
};
const data = await apiInstance.getAiDecompilationTaskResult(request);
console.log('API called successfully. Returned data:', data);| Name | Type | Description | Notes |
|---|---|---|---|
| functionId | [number] | The ID of the function being decompiled | defaults to undefined |
| summarise | [boolean] | Generate a summary for the decompilation | (optional) defaults to true |
| generateInlineComments | [boolean] | Generate inline comments for the decompilation | (optional) defaults to true |
BaseResponseGetAiDecompilationTask
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus()
import { createConfiguration, FunctionsAIDecompilationApi } from '@revengai/sdk';
import type { FunctionsAIDecompilationApiGetAiDecompilationTaskStatusRequest } from '@revengai/sdk';
const configuration = createConfiguration();
const apiInstance = new FunctionsAIDecompilationApi(configuration);
const request: FunctionsAIDecompilationApiGetAiDecompilationTaskStatusRequest = {
// The ID of the function being checked
functionId: 1,
};
const data = await apiInstance.getAiDecompilationTaskStatus(request);
console.log('API called successfully. Returned data:', data);| Name | Type | Description | Notes |
|---|---|---|---|
| functionId | [number] | The ID of the function being checked | defaults to undefined |
BaseResponseFunctionTaskResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseCommentResponse updateAiDecompilationComment(commentUpdateRequest)
Updates the content of an existing comment. Users can only update their own comments.
import { createConfiguration, FunctionsAIDecompilationApi } from '@revengai/sdk';
import type { FunctionsAIDecompilationApiUpdateAiDecompilationCommentRequest } from '@revengai/sdk';
const configuration = createConfiguration();
const apiInstance = new FunctionsAIDecompilationApi(configuration);
const request: FunctionsAIDecompilationApiUpdateAiDecompilationCommentRequest = {
commentId: 1,
functionId: 1,
commentUpdateRequest: {
content: "content_example",
},
endpointUrl: "endpoint_url_example",
localCacheDir: "local_cache_dir_example",
localCacheMaxSizeMb: 1,
customerSamplesBucket: "customer_samples_bucket_example",
firmwareSamplesBucket: "firmware_samples_bucket_example",
maxRetryAttempts: 5,
};
const data = await apiInstance.updateAiDecompilationComment(request);
console.log('API called successfully. Returned data:', data);| Name | Type | Description | Notes |
|---|---|---|---|
| commentUpdateRequest | CommentUpdateRequest | ||
| commentId | [number] | defaults to undefined | |
| functionId | [number] | defaults to undefined | |
| endpointUrl | [string] | (optional) defaults to undefined | |
| localCacheDir | [string] | (optional) defaults to undefined | |
| localCacheMaxSizeMb | [number] | (optional) defaults to undefined | |
| customerSamplesBucket | [string] | (optional) defaults to undefined | |
| firmwareSamplesBucket | [string] | (optional) defaults to undefined | |
| maxRetryAttempts | [number] | (optional) defaults to 5 |
BaseResponseCommentResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
| 403 | You can only update your own comments | - |
| 400 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponse upsertAiDecompilationRating(upsertAiDecomplationRatingRequest)
import { createConfiguration, FunctionsAIDecompilationApi } from '@revengai/sdk';
import type { FunctionsAIDecompilationApiUpsertAiDecompilationRatingRequest } from '@revengai/sdk';
const configuration = createConfiguration();
const apiInstance = new FunctionsAIDecompilationApi(configuration);
const request: FunctionsAIDecompilationApiUpsertAiDecompilationRatingRequest = {
// The ID of the function being rated
functionId: 1,
upsertAiDecomplationRatingRequest: {
rating: "POSITIVE",
reason: "reason_example",
},
};
const data = await apiInstance.upsertAiDecompilationRating(request);
console.log('API called successfully. Returned data:', data);| Name | Type | Description | Notes |
|---|---|---|---|
| upsertAiDecomplationRatingRequest | UpsertAiDecomplationRatingRequest | ||
| functionId | [number] | The ID of the function being rated | defaults to undefined |
BaseResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Successful Response | - |
| 422 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]