Package ai.reveng.api

Class FunctionsAiDecompilationApi

java.lang.Object
ai.reveng.api.FunctionsAiDecompilationApi

public class FunctionsAiDecompilationApi extends Object
  • Constructor Details

    • FunctionsAiDecompilationApi

      public FunctionsAiDecompilationApi()
    • FunctionsAiDecompilationApi

      public FunctionsAiDecompilationApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • createAiDecompilationCommentCall

      public okhttp3.Call createAiDecompilationCommentCall(@Nonnull Integer functionId, @Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, ApiCallback _callback) throws ApiException
      Build call for createAiDecompilationComment
      Parameters:
      functionId - (required)
      functionCommentCreateRequest - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • createAiDecompilationComment

      public BaseResponseCommentResponse createAiDecompilationComment(@Nonnull Integer functionId, @Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException
      Create a comment for this function Creates a comment associated with a specified function).
      Parameters:
      functionId - (required)
      functionCommentCreateRequest - (required)
      Returns:
      BaseResponseCommentResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • createAiDecompilationCommentWithHttpInfo

      public ApiResponse<BaseResponseCommentResponse> createAiDecompilationCommentWithHttpInfo(@Nonnull Integer functionId, @Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException
      Create a comment for this function Creates a comment associated with a specified function).
      Parameters:
      functionId - (required)
      functionCommentCreateRequest - (required)
      Returns:
      ApiResponse<BaseResponseCommentResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • createAiDecompilationCommentAsync

      public okhttp3.Call createAiDecompilationCommentAsync(@Nonnull Integer functionId, @Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, ApiCallback<BaseResponseCommentResponse> _callback) throws ApiException
      Create a comment for this function (asynchronously) Creates a comment associated with a specified function).
      Parameters:
      functionId - (required)
      functionCommentCreateRequest - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • createAiDecompilationTaskCall

      public okhttp3.Call createAiDecompilationTaskCall(@Nonnull Integer functionId, ApiCallback _callback) throws ApiException
      Build call for createAiDecompilationTask
      Parameters:
      functionId - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      403 Forbidden -
      402 Payment Required -
      409 Conflict -
      400 Bad Request -
    • createAiDecompilationTask

      public BaseResponse createAiDecompilationTask(@Nonnull Integer functionId) throws ApiException
      Begins AI Decompilation Process Begins the AI Decompilation Process
      Parameters:
      functionId - (required)
      Returns:
      BaseResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      403 Forbidden -
      402 Payment Required -
      409 Conflict -
      400 Bad Request -
    • createAiDecompilationTaskWithHttpInfo

      public ApiResponse<BaseResponse> createAiDecompilationTaskWithHttpInfo(@Nonnull Integer functionId) throws ApiException
      Begins AI Decompilation Process Begins the AI Decompilation Process
      Parameters:
      functionId - (required)
      Returns:
      ApiResponse<BaseResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      403 Forbidden -
      402 Payment Required -
      409 Conflict -
      400 Bad Request -
    • createAiDecompilationTaskAsync

      public okhttp3.Call createAiDecompilationTaskAsync(@Nonnull Integer functionId, ApiCallback<BaseResponse> _callback) throws ApiException
      Begins AI Decompilation Process (asynchronously) Begins the AI Decompilation Process
      Parameters:
      functionId - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      403 Forbidden -
      402 Payment Required -
      409 Conflict -
      400 Bad Request -
    • deleteAiDecompilationCommentCall

      public okhttp3.Call deleteAiDecompilationCommentCall(@Nonnull Integer commentId, @Nonnull Integer functionId, ApiCallback _callback) throws ApiException
      Build call for deleteAiDecompilationComment
      Parameters:
      commentId - (required)
      functionId - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • deleteAiDecompilationComment

      public BaseResponseBool deleteAiDecompilationComment(@Nonnull Integer commentId, @Nonnull Integer functionId) throws ApiException
      Delete a comment Deletes an existing comment. Users can only delete their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      Returns:
      BaseResponseBool
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • deleteAiDecompilationCommentWithHttpInfo

      public ApiResponse<BaseResponseBool> deleteAiDecompilationCommentWithHttpInfo(@Nonnull Integer commentId, @Nonnull Integer functionId) throws ApiException
      Delete a comment Deletes an existing comment. Users can only delete their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      Returns:
      ApiResponse<BaseResponseBool>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • deleteAiDecompilationCommentAsync

      public okhttp3.Call deleteAiDecompilationCommentAsync(@Nonnull Integer commentId, @Nonnull Integer functionId, ApiCallback<BaseResponseBool> _callback) throws ApiException
      Delete a comment (asynchronously) Deletes an existing comment. Users can only delete their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • getAiDecompilationCommentsCall

      public okhttp3.Call getAiDecompilationCommentsCall(@Nonnull Integer functionId, ApiCallback _callback) throws ApiException
      Build call for getAiDecompilationComments
      Parameters:
      functionId - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getAiDecompilationComments

      public BaseResponseListCommentResponse getAiDecompilationComments(@Nonnull Integer functionId) throws ApiException
      Get comments for this function Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to.
      Parameters:
      functionId - (required)
      Returns:
      BaseResponseListCommentResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getAiDecompilationCommentsWithHttpInfo

      public ApiResponse<BaseResponseListCommentResponse> getAiDecompilationCommentsWithHttpInfo(@Nonnull Integer functionId) throws ApiException
      Get comments for this function Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to.
      Parameters:
      functionId - (required)
      Returns:
      ApiResponse<BaseResponseListCommentResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getAiDecompilationCommentsAsync

      public okhttp3.Call getAiDecompilationCommentsAsync(@Nonnull Integer functionId, ApiCallback<BaseResponseListCommentResponse> _callback) throws ApiException
      Get comments for this function (asynchronously) Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to.
      Parameters:
      functionId - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getAiDecompilationRatingCall

      public okhttp3.Call getAiDecompilationRatingCall(@Nonnull Integer functionId, ApiCallback _callback) throws ApiException
      Build call for getAiDecompilationRating
      Parameters:
      functionId - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getAiDecompilationRating

      public BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(@Nonnull Integer functionId) throws ApiException
      Get rating for AI decompilation
      Parameters:
      functionId - (required)
      Returns:
      BaseResponseGetAiDecompilationRatingResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getAiDecompilationRatingWithHttpInfo

      public ApiResponse<BaseResponseGetAiDecompilationRatingResponse> getAiDecompilationRatingWithHttpInfo(@Nonnull Integer functionId) throws ApiException
      Get rating for AI decompilation
      Parameters:
      functionId - (required)
      Returns:
      ApiResponse<BaseResponseGetAiDecompilationRatingResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getAiDecompilationRatingAsync

      public okhttp3.Call getAiDecompilationRatingAsync(@Nonnull Integer functionId, ApiCallback<BaseResponseGetAiDecompilationRatingResponse> _callback) throws ApiException
      Get rating for AI decompilation (asynchronously)
      Parameters:
      functionId - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getAiDecompilationTaskResultCall

      public okhttp3.Call getAiDecompilationTaskResultCall(@Nonnull Integer functionId, @Nullable Boolean summarise, @Nullable Boolean generateInlineComments, ApiCallback _callback) throws ApiException
      Build call for getAiDecompilationTaskResult
      Parameters:
      functionId - (required)
      summarise - Generate a summary for the decompilation (optional, default to true)
      generateInlineComments - Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 Forbidden -
    • getAiDecompilationTaskResult

      public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@Nonnull Integer functionId, @Nullable Boolean summarise, @Nullable Boolean generateInlineComments) throws ApiException
      Polls AI Decompilation Process Polls the AI Decompilation Process
      Parameters:
      functionId - (required)
      summarise - Generate a summary for the decompilation (optional, default to true)
      generateInlineComments - Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true)
      Returns:
      BaseResponseGetAiDecompilationTask
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 Forbidden -
    • getAiDecompilationTaskResultWithHttpInfo

      public ApiResponse<BaseResponseGetAiDecompilationTask> getAiDecompilationTaskResultWithHttpInfo(@Nonnull Integer functionId, @Nullable Boolean summarise, @Nullable Boolean generateInlineComments) throws ApiException
      Polls AI Decompilation Process Polls the AI Decompilation Process
      Parameters:
      functionId - (required)
      summarise - Generate a summary for the decompilation (optional, default to true)
      generateInlineComments - Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true)
      Returns:
      ApiResponse<BaseResponseGetAiDecompilationTask>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 Forbidden -
    • getAiDecompilationTaskResultAsync

      public okhttp3.Call getAiDecompilationTaskResultAsync(@Nonnull Integer functionId, @Nullable Boolean summarise, @Nullable Boolean generateInlineComments, ApiCallback<BaseResponseGetAiDecompilationTask> _callback) throws ApiException
      Polls AI Decompilation Process (asynchronously) Polls the AI Decompilation Process
      Parameters:
      functionId - (required)
      summarise - Generate a summary for the decompilation (optional, default to true)
      generateInlineComments - Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 Forbidden -
    • getAiDecompilationTaskStatusCall

      public okhttp3.Call getAiDecompilationTaskStatusCall(@Nonnull Integer functionId, ApiCallback _callback) throws ApiException
      Build call for getAiDecompilationTaskStatus
      Parameters:
      functionId - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getAiDecompilationTaskStatus

      public BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(@Nonnull Integer functionId) throws ApiException
      Check the status of a function ai decompilation
      Parameters:
      functionId - (required)
      Returns:
      BaseResponseFunctionTaskResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getAiDecompilationTaskStatusWithHttpInfo

      public ApiResponse<BaseResponseFunctionTaskResponse> getAiDecompilationTaskStatusWithHttpInfo(@Nonnull Integer functionId) throws ApiException
      Check the status of a function ai decompilation
      Parameters:
      functionId - (required)
      Returns:
      ApiResponse<BaseResponseFunctionTaskResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getAiDecompilationTaskStatusAsync

      public okhttp3.Call getAiDecompilationTaskStatusAsync(@Nonnull Integer functionId, ApiCallback<BaseResponseFunctionTaskResponse> _callback) throws ApiException
      Check the status of a function ai decompilation (asynchronously)
      Parameters:
      functionId - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • updateAiDecompilationCommentCall

      public okhttp3.Call updateAiDecompilationCommentCall(@Nonnull Integer commentId, @Nonnull Integer functionId, @Nonnull CommentUpdateRequest commentUpdateRequest, ApiCallback _callback) throws ApiException
      Build call for updateAiDecompilationComment
      Parameters:
      commentId - (required)
      functionId - (required)
      commentUpdateRequest - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -
    • updateAiDecompilationComment

      public BaseResponseCommentResponse updateAiDecompilationComment(@Nonnull Integer commentId, @Nonnull Integer functionId, @Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException
      Update a comment Updates the content of an existing comment. Users can only update their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      commentUpdateRequest - (required)
      Returns:
      BaseResponseCommentResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -
    • updateAiDecompilationCommentWithHttpInfo

      public ApiResponse<BaseResponseCommentResponse> updateAiDecompilationCommentWithHttpInfo(@Nonnull Integer commentId, @Nonnull Integer functionId, @Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException
      Update a comment Updates the content of an existing comment. Users can only update their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      commentUpdateRequest - (required)
      Returns:
      ApiResponse<BaseResponseCommentResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -
    • updateAiDecompilationCommentAsync

      public okhttp3.Call updateAiDecompilationCommentAsync(@Nonnull Integer commentId, @Nonnull Integer functionId, @Nonnull CommentUpdateRequest commentUpdateRequest, ApiCallback<BaseResponseCommentResponse> _callback) throws ApiException
      Update a comment (asynchronously) Updates the content of an existing comment. Users can only update their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      commentUpdateRequest - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -
    • upsertAiDecompilationRatingCall

      public okhttp3.Call upsertAiDecompilationRatingCall(@Nonnull Integer functionId, @Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, ApiCallback _callback) throws ApiException
      Build call for upsertAiDecompilationRating
      Parameters:
      functionId - (required)
      upsertAiDecomplationRatingRequest - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
    • upsertAiDecompilationRating

      public BaseResponse upsertAiDecompilationRating(@Nonnull Integer functionId, @Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest) throws ApiException
      Upsert rating for AI decompilation
      Parameters:
      functionId - (required)
      upsertAiDecomplationRatingRequest - (required)
      Returns:
      BaseResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
    • upsertAiDecompilationRatingWithHttpInfo

      public ApiResponse<BaseResponse> upsertAiDecompilationRatingWithHttpInfo(@Nonnull Integer functionId, @Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest) throws ApiException
      Upsert rating for AI decompilation
      Parameters:
      functionId - (required)
      upsertAiDecomplationRatingRequest - (required)
      Returns:
      ApiResponse<BaseResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
    • upsertAiDecompilationRatingAsync

      public okhttp3.Call upsertAiDecompilationRatingAsync(@Nonnull Integer functionId, @Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, ApiCallback<BaseResponse> _callback) throws ApiException
      Upsert rating for AI decompilation (asynchronously)
      Parameters:
      functionId - (required)
      upsertAiDecomplationRatingRequest - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -