diff --git a/README.md b/README.md index eaccec3..fc03188 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,7 @@ Class | Method | HTTP request | Description *FunctionsAIDecompilationApi* | [**patchAiDecompilationInlineComment**](docs/FunctionsAIDecompilationApi.md#patchAiDecompilationInlineComment) | **PATCH** /v3/functions/{function_id}/ai-decompilation/inline-comments | Update a single inline comment *FunctionsAIDecompilationApi* | [**regenerateAiDecompilationInlineComments**](docs/FunctionsAIDecompilationApi.md#regenerateAiDecompilationInlineComments) | **POST** /v3/functions/{function_id}/ai-decompilation/inline-comments | Regenerate AI decompilation inline comments *FunctionsAIDecompilationApi* | [**regenerateAiDecompilationSummary**](docs/FunctionsAIDecompilationApi.md#regenerateAiDecompilationSummary) | **POST** /v3/functions/{function_id}/ai-decompilation/summary | Regenerate AI decompilation summary +*FunctionsAIDecompilationApi* | [**streamAiDecompilation**](docs/FunctionsAIDecompilationApi.md#streamAiDecompilation) | **GET** /v3/functions/{function_id}/ai-decompilation/events | Stream live AI decompilation output (SSE) *FunctionsAIDecompilationApi* | [**updateAiDecompilationComment**](docs/FunctionsAIDecompilationApi.md#updateAiDecompilationComment) | **PATCH** /v2/functions/{function_id}/ai-decompilation/comments/{comment_id} | Update a comment *FunctionsAIDecompilationApi* | [**upsertAiDecompilationOverrides**](docs/FunctionsAIDecompilationApi.md#upsertAiDecompilationOverrides) | **PATCH** /v3/functions/{function_id}/ai-decompilation/overrides | Upsert variable/function name overrides *FunctionsAIDecompilationApi* | [**upsertAiDecompilationRating**](docs/FunctionsAIDecompilationApi.md#upsertAiDecompilationRating) | **PATCH** /v2/functions/{function_id}/ai-decompilation/rating | Upsert rating for AI decompilation @@ -217,6 +218,8 @@ Class | Method | HTTP request | Description - [AppApiRestV2FunctionsTypesFunction](AppApiRestV2FunctionsTypesFunction.md) - [AppApiRestV2InfoTypesCapability](AppApiRestV2InfoTypesCapability.md) - [Argument](Argument.md) + - [AttemptFailedEvent](AttemptFailedEvent.md) + - [AttemptStartedEvent](AttemptStartedEvent.md) - [AutoRunAgents](AutoRunAgents.md) - [AutoUnstripRequest](AutoUnstripRequest.md) - [AutoUnstripResponse](AutoUnstripResponse.md) @@ -337,6 +340,9 @@ Class | Method | HTTP request | Description - [CreateAIDecompOutputBody](CreateAIDecompOutputBody.md) - [CreateConversationRequest](CreateConversationRequest.md) - [Created](Created.md) + - [DebugPromptEvent](DebugPromptEvent.md) + - [DecompFailedEvent](DecompFailedEvent.md) + - [DecompFinishedEvent](DecompFinishedEvent.md) - [DecompilationCommentContext](DecompilationCommentContext.md) - [DecompilationData](DecompilationData.md) - [DieMatch](DieMatch.md) @@ -357,13 +363,22 @@ Class | Method | HTTP request | Description - [ErrorBody](ErrorBody.md) - [ErrorModel](ErrorModel.md) - [Event](Event.md) + - [EventAttemptFailed](EventAttemptFailed.md) + - [EventAttemptStarted](EventAttemptStarted.md) - [EventCONTEXTCOMPACTED](EventCONTEXTCOMPACTED.md) + - [EventDebugPrompt](EventDebugPrompt.md) + - [EventDecompFailed](EventDecompFailed.md) + - [EventDecompFinished](EventDecompFinished.md) + - [EventProse](EventProse.md) - [EventRUNCANCELLED](EventRUNCANCELLED.md) - [EventRUNERROR](EventRUNERROR.md) - [EventRUNFINISHED](EventRUNFINISHED.md) - [EventRUNSTARTED](EventRUNSTARTED.md) + - [EventRenameApplied](EventRenameApplied.md) - [EventSTEPFINISHED](EventSTEPFINISHED.md) - [EventSTEPSTARTED](EventSTEPSTARTED.md) + - [EventSourceDelta](EventSourceDelta.md) + - [EventSourceReset](EventSourceReset.md) - [EventTEXTMESSAGECONTENT](EventTEXTMESSAGECONTENT.md) - [EventTEXTMESSAGEEND](EventTEXTMESSAGEEND.md) - [EventTEXTMESSAGESTART](EventTEXTMESSAGESTART.md) @@ -373,6 +388,7 @@ Class | Method | HTTP request | Description - [EventTOOLCALLRESULT](EventTOOLCALLRESULT.md) - [EventTOOLCALLSTART](EventTOOLCALLSTART.md) - [EventTOOLCONFIRMATIONREQUIRED](EventTOOLCONFIRMATIONREQUIRED.md) + - [EventWarning](EventWarning.md) - [ExportModel](ExportModel.md) - [ExternalResponse](ExternalResponse.md) - [ExtractedURL](ExtractedURL.md) @@ -465,6 +481,7 @@ Class | Method | HTTP request | Description - [ProcessNode](ProcessNode.md) - [ProcessTree](ProcessTree.md) - [ProgressMessage](ProgressMessage.md) + - [ProseEvent](ProseEvent.md) - [PutAnalysisStringsRequest](PutAnalysisStringsRequest.md) - [QueuePositionResponse](QueuePositionResponse.md) - [QueuedWorkflowTaskResponse](QueuedWorkflowTaskResponse.md) @@ -474,6 +491,7 @@ Class | Method | HTTP request | Description - [RegenerateTarget](RegenerateTarget.md) - [RegistryOperation](RegistryOperation.md) - [RelativeBinaryResponse](RelativeBinaryResponse.md) + - [RenameAppliedEvent](RenameAppliedEvent.md) - [RenameInputBody](RenameInputBody.md) - [RenameOutputBody](RenameOutputBody.md) - [ReplacementValue](ReplacementValue.md) @@ -497,6 +515,8 @@ Class | Method | HTTP request | Description - [SingleCodeSignatureModel](SingleCodeSignatureModel.md) - [SinglePDBEntryModel](SinglePDBEntryModel.md) - [SingleSectionModel](SingleSectionModel.md) + - [SourceDeltaEvent](SourceDeltaEvent.md) + - [SourceResetEvent](SourceResetEvent.md) - [SseEventContextCompactedData](SseEventContextCompactedData.md) - [SseEventRunCancelledData](SseEventRunCancelledData.md) - [SseEventRunErrorData](SseEventRunErrorData.md) @@ -518,6 +538,7 @@ Class | Method | HTTP request | Description - [StatusInput](StatusInput.md) - [StatusOutput](StatusOutput.md) - [StatusResponse](StatusResponse.md) + - [StreamAiDecompilation200ResponseInner](StreamAiDecompilation200ResponseInner.md) - [StreamEvents200ResponseInner](StreamEvents200ResponseInner.md) - [StringFunctions](StringFunctions.md) - [StringSource](StringSource.md) @@ -549,6 +570,7 @@ Class | Method | HTTP request | Description - [UserActivityResponse](UserActivityResponse.md) - [Vulnerabilities](Vulnerabilities.md) - [Vulnerability](Vulnerability.md) + - [WarningEvent](WarningEvent.md) - [WorkflowProgress](WorkflowProgress.md) - [Workspace](Workspace.md) - [XrefFromResponse](XrefFromResponse.md) diff --git a/apis/FunctionsAIDecompilationApi.ts b/apis/FunctionsAIDecompilationApi.ts index 061beba..ee28efc 100644 --- a/apis/FunctionsAIDecompilationApi.ts +++ b/apis/FunctionsAIDecompilationApi.ts @@ -24,6 +24,7 @@ import { FunctionCommentCreateRequest } from '../models/FunctionCommentCreateReq import { PatchCommentBody } from '../models/PatchCommentBody'; import { RegenerateOutputBody } from '../models/RegenerateOutputBody'; import { RegenerateTarget } from '../models/RegenerateTarget'; +import { StreamAiDecompilation200ResponseInner } from '../models/StreamAiDecompilation200ResponseInner'; import { SummaryData } from '../models/SummaryData'; import { TokenisedData } from '../models/TokenisedData'; import { UpsertAiDecomplationRatingRequest } from '../models/UpsertAiDecomplationRatingRequest'; @@ -852,6 +853,44 @@ export class FunctionsAIDecompilationApiRequestFactory extends BaseAPIRequestFac return requestContext; } + /** + * Opens a Server-Sent Events stream of incremental decompilation events for the given function. Each event has a `type` discriminator (also used as the SSE `event:` line) and a per-attempt monotonic `seq`. Terminal events: `decomp_finished` (success) or `decomp_failed` (all retries exhausted). `attempt_failed` is per-attempt and non-terminal — Temporal may retry the activity. Clients should treat `attempt` changes as a reset signal. `last_event_id` is not supported — clients fall back to polling the standard GET endpoint after the stream ends. + * Stream live AI decompilation output (SSE) + * @param functionId Function ID + */ + public async streamAiDecompilation(functionId: number, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'functionId' is not null or undefined + if (functionId === null || functionId === undefined) { + throw new RequiredError("FunctionsAIDecompilationApi", "streamAiDecompilation", "functionId"); + } + + + // Path Params + const localVarPath = '/v3/functions/{function_id}/ai-decompilation/events' + .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + 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); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * Updates the content of an existing comment. Users can only update their own comments. * Update a comment @@ -2037,6 +2076,42 @@ export class FunctionsAIDecompilationApiResponseProcessor { 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 streamAiDecompilation + * @throws ApiException if the response code was not in [200, 299] + */ + public async streamAiDecompilationWithHttpInfo(response: ResponseContext): Promise >> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: Array = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "Array", "" + ) as Array; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("0", response.httpStatusCode)) { + const body: APIError = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "APIError", "" + ) as APIError; + throw new ApiException(response.httpStatusCode, "Error", body, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: Array = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "Array", "" + ) as Array; + 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/FunctionsAIDecompilationApi.md b/docs/FunctionsAIDecompilationApi.md index 9ee48c7..32a0e88 100644 --- a/docs/FunctionsAIDecompilationApi.md +++ b/docs/FunctionsAIDecompilationApi.md @@ -23,6 +23,7 @@ Method | HTTP request | Description [**patchAiDecompilationInlineComment**](FunctionsAIDecompilationApi.md#patchAiDecompilationInlineComment) | **PATCH** /v3/functions/{function_id}/ai-decompilation/inline-comments | Update a single inline comment [**regenerateAiDecompilationInlineComments**](FunctionsAIDecompilationApi.md#regenerateAiDecompilationInlineComments) | **POST** /v3/functions/{function_id}/ai-decompilation/inline-comments | Regenerate AI decompilation inline comments [**regenerateAiDecompilationSummary**](FunctionsAIDecompilationApi.md#regenerateAiDecompilationSummary) | **POST** /v3/functions/{function_id}/ai-decompilation/summary | Regenerate AI decompilation summary +[**streamAiDecompilation**](FunctionsAIDecompilationApi.md#streamAiDecompilation) | **GET** /v3/functions/{function_id}/ai-decompilation/events | Stream live AI decompilation output (SSE) [**updateAiDecompilationComment**](FunctionsAIDecompilationApi.md#updateAiDecompilationComment) | **PATCH** /v2/functions/{function_id}/ai-decompilation/comments/{comment_id} | Update a comment [**upsertAiDecompilationOverrides**](FunctionsAIDecompilationApi.md#upsertAiDecompilationOverrides) | **PATCH** /v3/functions/{function_id}/ai-decompilation/overrides | Upsert variable/function name overrides [**upsertAiDecompilationRating**](FunctionsAIDecompilationApi.md#upsertAiDecompilationRating) | **PATCH** /v2/functions/{function_id}/ai-decompilation/rating | Upsert rating for AI decompilation @@ -1133,6 +1134,60 @@ 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) +# **streamAiDecompilation** +> Array streamAiDecompilation() + +Opens a Server-Sent Events stream of incremental decompilation events for the given function. Each event has a `type` discriminator (also used as the SSE `event:` line) and a per-attempt monotonic `seq`. Terminal events: `decomp_finished` (success) or `decomp_failed` (all retries exhausted). `attempt_failed` is per-attempt and non-terminal — Temporal may retry the activity. Clients should treat `attempt` changes as a reset signal. `last_event_id` is not supported — clients fall back to polling the standard GET endpoint after the stream ends. + +### Example + + +```typescript +import { createConfiguration, FunctionsAIDecompilationApi } from '@revengai/sdk'; +import type { FunctionsAIDecompilationApiStreamAiDecompilationRequest } from '@revengai/sdk'; + +const configuration = createConfiguration(); +const apiInstance = new FunctionsAIDecompilationApi(configuration); + +const request: FunctionsAIDecompilationApiStreamAiDecompilationRequest = { + // Function ID + functionId: 1, +}; + +const data = await apiInstance.streamAiDecompilation(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **functionId** | [**number**] | Function ID | defaults to undefined + + +### Return type + +**Array** + +### Authorization + +[APIKey](README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/event-stream, application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**0** | Error | - | + +[[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) + # **updateAiDecompilationComment** > BaseResponseCommentResponse updateAiDecompilationComment(commentUpdateRequest) diff --git a/models/AttemptFailedEvent.ts b/models/AttemptFailedEvent.ts new file mode 100644 index 0000000..d06e742 --- /dev/null +++ b/models/AttemptFailedEvent.ts @@ -0,0 +1,56 @@ +/** + * 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 AttemptFailedEvent { + 'attempt': number; + 'error': string; + 'seq': number; + 'type': 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": "attempt", + "baseName": "attempt", + "type": "number", + "format": "int32" + }, + { + "name": "error", + "baseName": "error", + "type": "string", + "format": "" + }, + { + "name": "seq", + "baseName": "seq", + "type": "number", + "format": "int32" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return AttemptFailedEvent.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/models/AttemptStartedEvent.ts b/models/AttemptStartedEvent.ts new file mode 100644 index 0000000..d6913a8 --- /dev/null +++ b/models/AttemptStartedEvent.ts @@ -0,0 +1,49 @@ +/** + * 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 AttemptStartedEvent { + 'attempt': number; + 'seq': number; + 'type': 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": "attempt", + "baseName": "attempt", + "type": "number", + "format": "int32" + }, + { + "name": "seq", + "baseName": "seq", + "type": "number", + "format": "int32" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return AttemptStartedEvent.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/models/DebugPromptEvent.ts b/models/DebugPromptEvent.ts new file mode 100644 index 0000000..5f97a83 --- /dev/null +++ b/models/DebugPromptEvent.ts @@ -0,0 +1,63 @@ +/** + * 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 DebugPromptEvent { + 'activity': string; + 'attempt': number; + 'seq': number; + 'type': string; + 'userPrompt': 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": "activity", + "baseName": "activity", + "type": "string", + "format": "" + }, + { + "name": "attempt", + "baseName": "attempt", + "type": "number", + "format": "int32" + }, + { + "name": "seq", + "baseName": "seq", + "type": "number", + "format": "int32" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + }, + { + "name": "userPrompt", + "baseName": "user_prompt", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return DebugPromptEvent.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/models/DecompFailedEvent.ts b/models/DecompFailedEvent.ts new file mode 100644 index 0000000..ba37e19 --- /dev/null +++ b/models/DecompFailedEvent.ts @@ -0,0 +1,63 @@ +/** + * 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 DecompFailedEvent { + 'attempt': number; + 'error': string; + 'errorCode'?: string; + 'seq': number; + 'type': 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": "attempt", + "baseName": "attempt", + "type": "number", + "format": "int32" + }, + { + "name": "error", + "baseName": "error", + "type": "string", + "format": "" + }, + { + "name": "errorCode", + "baseName": "error_code", + "type": "string", + "format": "" + }, + { + "name": "seq", + "baseName": "seq", + "type": "number", + "format": "int32" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return DecompFailedEvent.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/models/DecompFinishedEvent.ts b/models/DecompFinishedEvent.ts new file mode 100644 index 0000000..16189b9 --- /dev/null +++ b/models/DecompFinishedEvent.ts @@ -0,0 +1,49 @@ +/** + * 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 DecompFinishedEvent { + 'attempt': number; + 'seq': number; + 'type': 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": "attempt", + "baseName": "attempt", + "type": "number", + "format": "int32" + }, + { + "name": "seq", + "baseName": "seq", + "type": "number", + "format": "int32" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return DecompFinishedEvent.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/models/EventAttemptFailed.ts b/models/EventAttemptFailed.ts new file mode 100644 index 0000000..41f9926 --- /dev/null +++ b/models/EventAttemptFailed.ts @@ -0,0 +1,72 @@ +/** + * 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 { AttemptFailedEvent } from '../models/AttemptFailedEvent'; +import { HttpFile } from '../http/http'; + +export class EventAttemptFailed { + 'data': AttemptFailedEvent; + /** + * The event name. + */ + 'event': EventAttemptFailedEventEnum; + /** + * The event ID. + */ + 'id'?: number; + /** + * The retry time in milliseconds. + */ + 'retry'?: 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": "data", + "baseName": "data", + "type": "AttemptFailedEvent", + "format": "" + }, + { + "name": "event", + "baseName": "event", + "type": "EventAttemptFailedEventEnum", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "" + }, + { + "name": "retry", + "baseName": "retry", + "type": "number", + "format": "" + } ]; + + static getAttributeTypeMap() { + return EventAttemptFailed.attributeTypeMap; + } + + public constructor() { + } +} + +export enum EventAttemptFailedEventEnum { + AttemptFailed = 'attempt_failed', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/EventAttemptStarted.ts b/models/EventAttemptStarted.ts new file mode 100644 index 0000000..ef494b1 --- /dev/null +++ b/models/EventAttemptStarted.ts @@ -0,0 +1,72 @@ +/** + * 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 { AttemptStartedEvent } from '../models/AttemptStartedEvent'; +import { HttpFile } from '../http/http'; + +export class EventAttemptStarted { + 'data': AttemptStartedEvent; + /** + * The event name. + */ + 'event': EventAttemptStartedEventEnum; + /** + * The event ID. + */ + 'id'?: number; + /** + * The retry time in milliseconds. + */ + 'retry'?: 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": "data", + "baseName": "data", + "type": "AttemptStartedEvent", + "format": "" + }, + { + "name": "event", + "baseName": "event", + "type": "EventAttemptStartedEventEnum", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "" + }, + { + "name": "retry", + "baseName": "retry", + "type": "number", + "format": "" + } ]; + + static getAttributeTypeMap() { + return EventAttemptStarted.attributeTypeMap; + } + + public constructor() { + } +} + +export enum EventAttemptStartedEventEnum { + AttemptStarted = 'attempt_started', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/EventDebugPrompt.ts b/models/EventDebugPrompt.ts new file mode 100644 index 0000000..ee80378 --- /dev/null +++ b/models/EventDebugPrompt.ts @@ -0,0 +1,72 @@ +/** + * 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 { DebugPromptEvent } from '../models/DebugPromptEvent'; +import { HttpFile } from '../http/http'; + +export class EventDebugPrompt { + 'data': DebugPromptEvent; + /** + * The event name. + */ + 'event': EventDebugPromptEventEnum; + /** + * The event ID. + */ + 'id'?: number; + /** + * The retry time in milliseconds. + */ + 'retry'?: 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": "data", + "baseName": "data", + "type": "DebugPromptEvent", + "format": "" + }, + { + "name": "event", + "baseName": "event", + "type": "EventDebugPromptEventEnum", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "" + }, + { + "name": "retry", + "baseName": "retry", + "type": "number", + "format": "" + } ]; + + static getAttributeTypeMap() { + return EventDebugPrompt.attributeTypeMap; + } + + public constructor() { + } +} + +export enum EventDebugPromptEventEnum { + DebugPrompt = 'debug_prompt', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/EventDecompFailed.ts b/models/EventDecompFailed.ts new file mode 100644 index 0000000..80e4c68 --- /dev/null +++ b/models/EventDecompFailed.ts @@ -0,0 +1,72 @@ +/** + * 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 { DecompFailedEvent } from '../models/DecompFailedEvent'; +import { HttpFile } from '../http/http'; + +export class EventDecompFailed { + 'data': DecompFailedEvent; + /** + * The event name. + */ + 'event': EventDecompFailedEventEnum; + /** + * The event ID. + */ + 'id'?: number; + /** + * The retry time in milliseconds. + */ + 'retry'?: 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": "data", + "baseName": "data", + "type": "DecompFailedEvent", + "format": "" + }, + { + "name": "event", + "baseName": "event", + "type": "EventDecompFailedEventEnum", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "" + }, + { + "name": "retry", + "baseName": "retry", + "type": "number", + "format": "" + } ]; + + static getAttributeTypeMap() { + return EventDecompFailed.attributeTypeMap; + } + + public constructor() { + } +} + +export enum EventDecompFailedEventEnum { + DecompFailed = 'decomp_failed', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/EventDecompFinished.ts b/models/EventDecompFinished.ts new file mode 100644 index 0000000..86780dc --- /dev/null +++ b/models/EventDecompFinished.ts @@ -0,0 +1,72 @@ +/** + * 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 { DecompFinishedEvent } from '../models/DecompFinishedEvent'; +import { HttpFile } from '../http/http'; + +export class EventDecompFinished { + 'data': DecompFinishedEvent; + /** + * The event name. + */ + 'event': EventDecompFinishedEventEnum; + /** + * The event ID. + */ + 'id'?: number; + /** + * The retry time in milliseconds. + */ + 'retry'?: 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": "data", + "baseName": "data", + "type": "DecompFinishedEvent", + "format": "" + }, + { + "name": "event", + "baseName": "event", + "type": "EventDecompFinishedEventEnum", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "" + }, + { + "name": "retry", + "baseName": "retry", + "type": "number", + "format": "" + } ]; + + static getAttributeTypeMap() { + return EventDecompFinished.attributeTypeMap; + } + + public constructor() { + } +} + +export enum EventDecompFinishedEventEnum { + DecompFinished = 'decomp_finished', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/EventProse.ts b/models/EventProse.ts new file mode 100644 index 0000000..5344706 --- /dev/null +++ b/models/EventProse.ts @@ -0,0 +1,72 @@ +/** + * 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 { ProseEvent } from '../models/ProseEvent'; +import { HttpFile } from '../http/http'; + +export class EventProse { + 'data': ProseEvent; + /** + * The event name. + */ + 'event': EventProseEventEnum; + /** + * The event ID. + */ + 'id'?: number; + /** + * The retry time in milliseconds. + */ + 'retry'?: 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": "data", + "baseName": "data", + "type": "ProseEvent", + "format": "" + }, + { + "name": "event", + "baseName": "event", + "type": "EventProseEventEnum", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "" + }, + { + "name": "retry", + "baseName": "retry", + "type": "number", + "format": "" + } ]; + + static getAttributeTypeMap() { + return EventProse.attributeTypeMap; + } + + public constructor() { + } +} + +export enum EventProseEventEnum { + Prose = 'prose', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/EventRenameApplied.ts b/models/EventRenameApplied.ts new file mode 100644 index 0000000..d343e15 --- /dev/null +++ b/models/EventRenameApplied.ts @@ -0,0 +1,72 @@ +/** + * 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 { RenameAppliedEvent } from '../models/RenameAppliedEvent'; +import { HttpFile } from '../http/http'; + +export class EventRenameApplied { + 'data': RenameAppliedEvent; + /** + * The event name. + */ + 'event': EventRenameAppliedEventEnum; + /** + * The event ID. + */ + 'id'?: number; + /** + * The retry time in milliseconds. + */ + 'retry'?: 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": "data", + "baseName": "data", + "type": "RenameAppliedEvent", + "format": "" + }, + { + "name": "event", + "baseName": "event", + "type": "EventRenameAppliedEventEnum", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "" + }, + { + "name": "retry", + "baseName": "retry", + "type": "number", + "format": "" + } ]; + + static getAttributeTypeMap() { + return EventRenameApplied.attributeTypeMap; + } + + public constructor() { + } +} + +export enum EventRenameAppliedEventEnum { + RenameApplied = 'rename_applied', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/EventSourceDelta.ts b/models/EventSourceDelta.ts new file mode 100644 index 0000000..231e355 --- /dev/null +++ b/models/EventSourceDelta.ts @@ -0,0 +1,72 @@ +/** + * 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 { SourceDeltaEvent } from '../models/SourceDeltaEvent'; +import { HttpFile } from '../http/http'; + +export class EventSourceDelta { + 'data': SourceDeltaEvent; + /** + * The event name. + */ + 'event': EventSourceDeltaEventEnum; + /** + * The event ID. + */ + 'id'?: number; + /** + * The retry time in milliseconds. + */ + 'retry'?: 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": "data", + "baseName": "data", + "type": "SourceDeltaEvent", + "format": "" + }, + { + "name": "event", + "baseName": "event", + "type": "EventSourceDeltaEventEnum", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "" + }, + { + "name": "retry", + "baseName": "retry", + "type": "number", + "format": "" + } ]; + + static getAttributeTypeMap() { + return EventSourceDelta.attributeTypeMap; + } + + public constructor() { + } +} + +export enum EventSourceDeltaEventEnum { + SourceDelta = 'source_delta', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/EventSourceReset.ts b/models/EventSourceReset.ts new file mode 100644 index 0000000..4ba68ad --- /dev/null +++ b/models/EventSourceReset.ts @@ -0,0 +1,72 @@ +/** + * 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 { SourceResetEvent } from '../models/SourceResetEvent'; +import { HttpFile } from '../http/http'; + +export class EventSourceReset { + 'data': SourceResetEvent; + /** + * The event name. + */ + 'event': EventSourceResetEventEnum; + /** + * The event ID. + */ + 'id'?: number; + /** + * The retry time in milliseconds. + */ + 'retry'?: 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": "data", + "baseName": "data", + "type": "SourceResetEvent", + "format": "" + }, + { + "name": "event", + "baseName": "event", + "type": "EventSourceResetEventEnum", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "" + }, + { + "name": "retry", + "baseName": "retry", + "type": "number", + "format": "" + } ]; + + static getAttributeTypeMap() { + return EventSourceReset.attributeTypeMap; + } + + public constructor() { + } +} + +export enum EventSourceResetEventEnum { + SourceReset = 'source_reset', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/EventWarning.ts b/models/EventWarning.ts new file mode 100644 index 0000000..faf5381 --- /dev/null +++ b/models/EventWarning.ts @@ -0,0 +1,72 @@ +/** + * 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 { WarningEvent } from '../models/WarningEvent'; +import { HttpFile } from '../http/http'; + +export class EventWarning { + 'data': WarningEvent; + /** + * The event name. + */ + 'event': EventWarningEventEnum; + /** + * The event ID. + */ + 'id'?: number; + /** + * The retry time in milliseconds. + */ + 'retry'?: 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": "data", + "baseName": "data", + "type": "WarningEvent", + "format": "" + }, + { + "name": "event", + "baseName": "event", + "type": "EventWarningEventEnum", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "" + }, + { + "name": "retry", + "baseName": "retry", + "type": "number", + "format": "" + } ]; + + static getAttributeTypeMap() { + return EventWarning.attributeTypeMap; + } + + public constructor() { + } +} + +export enum EventWarningEventEnum { + Warning = 'warning', + UnknownDefaultOpenApi = '11184809' +} + diff --git a/models/ObjectSerializer.ts b/models/ObjectSerializer.ts index 805e721..53af16d 100644 --- a/models/ObjectSerializer.ts +++ b/models/ObjectSerializer.ts @@ -34,6 +34,8 @@ export * from '../models/AppApiRestV2FunctionsResponsesFunction'; export * from '../models/AppApiRestV2FunctionsTypesFunction'; export * from '../models/AppApiRestV2InfoTypesCapability'; export * from '../models/Argument'; +export * from '../models/AttemptFailedEvent'; +export * from '../models/AttemptStartedEvent'; export * from '../models/AutoRunAgents'; export * from '../models/AutoUnstripRequest'; export * from '../models/AutoUnstripResponse'; @@ -154,6 +156,9 @@ export * from '../models/ConversationWithEvents'; export * from '../models/CreateAIDecompOutputBody'; export * from '../models/CreateConversationRequest'; export * from '../models/Created'; +export * from '../models/DebugPromptEvent'; +export * from '../models/DecompFailedEvent'; +export * from '../models/DecompFinishedEvent'; export * from '../models/DecompilationCommentContext'; export * from '../models/DecompilationData'; export * from '../models/DieMatch'; @@ -174,13 +179,22 @@ export * from '../models/Enumeration'; export * from '../models/ErrorBody'; export * from '../models/ErrorModel'; export * from '../models/Event'; +export * from '../models/EventAttemptFailed'; +export * from '../models/EventAttemptStarted'; export * from '../models/EventCONTEXTCOMPACTED'; +export * from '../models/EventDebugPrompt'; +export * from '../models/EventDecompFailed'; +export * from '../models/EventDecompFinished'; +export * from '../models/EventProse'; export * from '../models/EventRUNCANCELLED'; export * from '../models/EventRUNERROR'; export * from '../models/EventRUNFINISHED'; export * from '../models/EventRUNSTARTED'; +export * from '../models/EventRenameApplied'; export * from '../models/EventSTEPFINISHED'; export * from '../models/EventSTEPSTARTED'; +export * from '../models/EventSourceDelta'; +export * from '../models/EventSourceReset'; export * from '../models/EventTEXTMESSAGECONTENT'; export * from '../models/EventTEXTMESSAGEEND'; export * from '../models/EventTEXTMESSAGESTART'; @@ -190,6 +204,7 @@ export * from '../models/EventTOOLCALLEND'; export * from '../models/EventTOOLCALLRESULT'; export * from '../models/EventTOOLCALLSTART'; export * from '../models/EventTOOLCONFIRMATIONREQUIRED'; +export * from '../models/EventWarning'; export * from '../models/ExportModel'; export * from '../models/ExternalResponse'; export * from '../models/ExtractedURL'; @@ -282,6 +297,7 @@ export * from '../models/ProcessMemdumps'; export * from '../models/ProcessNode'; export * from '../models/ProcessTree'; export * from '../models/ProgressMessage'; +export * from '../models/ProseEvent'; export * from '../models/PutAnalysisStringsRequest'; export * from '../models/QueuePositionResponse'; export * from '../models/QueuedWorkflowTaskResponse'; @@ -291,6 +307,7 @@ export * from '../models/RegenerateOutputBody'; export * from '../models/RegenerateTarget'; export * from '../models/RegistryOperation'; export * from '../models/RelativeBinaryResponse'; +export * from '../models/RenameAppliedEvent'; export * from '../models/RenameInputBody'; export * from '../models/RenameOutputBody'; export * from '../models/ReplacementValue'; @@ -314,6 +331,8 @@ export * from '../models/SingleCodeCertificateModel'; export * from '../models/SingleCodeSignatureModel'; export * from '../models/SinglePDBEntryModel'; export * from '../models/SingleSectionModel'; +export * from '../models/SourceDeltaEvent'; +export * from '../models/SourceResetEvent'; export * from '../models/SseEventContextCompactedData'; export * from '../models/SseEventRunCancelledData'; export * from '../models/SseEventRunErrorData'; @@ -335,6 +354,7 @@ export * from '../models/StartupInfo'; export * from '../models/StatusInput'; export * from '../models/StatusOutput'; export * from '../models/StatusResponse'; +export * from '../models/StreamAiDecompilation200ResponseInner'; export * from '../models/StreamEvents200ResponseInner'; export * from '../models/StringFunctions'; export * from '../models/StringSource'; @@ -366,6 +386,7 @@ export * from '../models/UpsertOverridesInputBody'; export * from '../models/UserActivityResponse'; export * from '../models/Vulnerabilities'; export * from '../models/Vulnerability'; +export * from '../models/WarningEvent'; export * from '../models/WorkflowProgress'; export * from '../models/Workspace'; export * from '../models/XrefFromResponse'; @@ -408,6 +429,8 @@ import { AppApiRestV2FunctionsResponsesFunction } from '../models/AppApiRestV2Fu import { AppApiRestV2FunctionsTypesFunction } from '../models/AppApiRestV2FunctionsTypesFunction'; import { AppApiRestV2InfoTypesCapability } from '../models/AppApiRestV2InfoTypesCapability'; import { Argument } from '../models/Argument'; +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'; @@ -528,6 +551,9 @@ import { ConversationWithEvents } from '../models/ConversationWithEvents'; import { CreateAIDecompOutputBody } from '../models/CreateAIDecompOutputBody'; import { CreateConversationRequest } from '../models/CreateConversationRequest'; import { Created } from '../models/Created'; +import { DebugPromptEvent } from '../models/DebugPromptEvent'; +import { DecompFailedEvent } from '../models/DecompFailedEvent'; +import { DecompFinishedEvent } from '../models/DecompFinishedEvent'; import { DecompilationCommentContext } from '../models/DecompilationCommentContext'; import { DecompilationData , DecompilationDataStatusEnum } from '../models/DecompilationData'; import { DieMatch } from '../models/DieMatch'; @@ -548,13 +574,22 @@ import { Enumeration } from '../models/Enumeration'; import { ErrorBody, ErrorBodyCodeEnum } from '../models/ErrorBody'; import { ErrorModel } from '../models/ErrorModel'; import { Event } from '../models/Event'; +import { EventAttemptFailed , EventAttemptFailedEventEnum } from '../models/EventAttemptFailed'; +import { EventAttemptStarted , EventAttemptStartedEventEnum } from '../models/EventAttemptStarted'; import { EventCONTEXTCOMPACTED , EventCONTEXTCOMPACTEDEventEnum } from '../models/EventCONTEXTCOMPACTED'; +import { EventDebugPrompt , EventDebugPromptEventEnum } from '../models/EventDebugPrompt'; +import { EventDecompFailed , EventDecompFailedEventEnum } from '../models/EventDecompFailed'; +import { EventDecompFinished , EventDecompFinishedEventEnum } from '../models/EventDecompFinished'; +import { EventProse , EventProseEventEnum } from '../models/EventProse'; import { EventRUNCANCELLED , EventRUNCANCELLEDEventEnum } from '../models/EventRUNCANCELLED'; import { EventRUNERROR , EventRUNERROREventEnum } from '../models/EventRUNERROR'; import { EventRUNFINISHED , EventRUNFINISHEDEventEnum } from '../models/EventRUNFINISHED'; import { EventRUNSTARTED , EventRUNSTARTEDEventEnum } from '../models/EventRUNSTARTED'; +import { EventRenameApplied , EventRenameAppliedEventEnum } from '../models/EventRenameApplied'; import { EventSTEPFINISHED , EventSTEPFINISHEDEventEnum } from '../models/EventSTEPFINISHED'; import { EventSTEPSTARTED , EventSTEPSTARTEDEventEnum } from '../models/EventSTEPSTARTED'; +import { EventSourceDelta , EventSourceDeltaEventEnum } from '../models/EventSourceDelta'; +import { EventSourceReset , EventSourceResetEventEnum } from '../models/EventSourceReset'; import { EventTEXTMESSAGECONTENT , EventTEXTMESSAGECONTENTEventEnum } from '../models/EventTEXTMESSAGECONTENT'; import { EventTEXTMESSAGEEND , EventTEXTMESSAGEENDEventEnum } from '../models/EventTEXTMESSAGEEND'; import { EventTEXTMESSAGESTART , EventTEXTMESSAGESTARTEventEnum } from '../models/EventTEXTMESSAGESTART'; @@ -564,6 +599,7 @@ import { EventTOOLCALLEND , EventTOOLCALLENDEventEnum } from '../models/Even import { EventTOOLCALLRESULT , EventTOOLCALLRESULTEventEnum } from '../models/EventTOOLCALLRESULT'; import { EventTOOLCALLSTART , EventTOOLCALLSTARTEventEnum } from '../models/EventTOOLCALLSTART'; import { EventTOOLCONFIRMATIONREQUIRED , EventTOOLCONFIRMATIONREQUIREDEventEnum } from '../models/EventTOOLCONFIRMATIONREQUIRED'; +import { EventWarning , EventWarningEventEnum } from '../models/EventWarning'; import { ExportModel } from '../models/ExportModel'; import { ExternalResponse } from '../models/ExternalResponse'; import { ExtractedURL } from '../models/ExtractedURL'; @@ -656,6 +692,7 @@ import { ProcessMemdumps } from '../models/ProcessMemdumps'; import { ProcessNode } from '../models/ProcessNode'; import { ProcessTree } from '../models/ProcessTree'; import { ProgressMessage, ProgressMessageLevelEnum } from '../models/ProgressMessage'; +import { ProseEvent } from '../models/ProseEvent'; import { PutAnalysisStringsRequest } from '../models/PutAnalysisStringsRequest'; import { QueuePositionResponse } from '../models/QueuePositionResponse'; import { QueuedWorkflowTaskResponse } from '../models/QueuedWorkflowTaskResponse'; @@ -665,6 +702,7 @@ import { RegenerateOutputBody } from '../models/RegenerateOutputBody'; import { RegenerateTarget } from '../models/RegenerateTarget'; import { RegistryOperation } from '../models/RegistryOperation'; import { RelativeBinaryResponse } from '../models/RelativeBinaryResponse'; +import { RenameAppliedEvent } from '../models/RenameAppliedEvent'; import { RenameInputBody } from '../models/RenameInputBody'; import { RenameOutputBody } from '../models/RenameOutputBody'; import { ReplacementValue } from '../models/ReplacementValue'; @@ -688,6 +726,8 @@ import { SingleCodeCertificateModel } from '../models/SingleCodeCertificateModel import { SingleCodeSignatureModel } from '../models/SingleCodeSignatureModel'; import { SinglePDBEntryModel } from '../models/SinglePDBEntryModel'; import { SingleSectionModel } from '../models/SingleSectionModel'; +import { SourceDeltaEvent } from '../models/SourceDeltaEvent'; +import { SourceResetEvent } from '../models/SourceResetEvent'; import { SseEventContextCompactedData } from '../models/SseEventContextCompactedData'; import { SseEventRunCancelledData } from '../models/SseEventRunCancelledData'; import { SseEventRunErrorData } from '../models/SseEventRunErrorData'; @@ -709,6 +749,7 @@ import { StartupInfo } from '../models/StartupInfo'; import { StatusInput } from '../models/StatusInput'; import { StatusOutput } from '../models/StatusOutput'; import { StatusResponse } from '../models/StatusResponse'; +import { StreamAiDecompilation200ResponseInnerClass } from '../models/StreamAiDecompilation200ResponseInner'; import { StreamEvents200ResponseInnerClass } from '../models/StreamEvents200ResponseInner'; import { StringFunctions } from '../models/StringFunctions'; import { StringSource } from '../models/StringSource'; @@ -740,6 +781,7 @@ import { UpsertOverridesInputBody } from '../models/UpsertOverridesInputBody'; import { UserActivityResponse } from '../models/UserActivityResponse'; import { Vulnerabilities } from '../models/Vulnerabilities'; import { Vulnerability , VulnerabilitySeverityEnum } from '../models/Vulnerability'; +import { WarningEvent } from '../models/WarningEvent'; import { WorkflowProgress , WorkflowProgressStatusEnum } from '../models/WorkflowProgress'; import { Workspace } from '../models/Workspace'; import { XrefFromResponse } from '../models/XrefFromResponse'; @@ -773,13 +815,22 @@ let enumsMap: Set = new Set([ "DecompilationDataStatusEnum", "DynamicExecutionStatus", "ErrorBodyCodeEnum", + "EventAttemptFailedEventEnum", + "EventAttemptStartedEventEnum", "EventCONTEXTCOMPACTEDEventEnum", + "EventDebugPromptEventEnum", + "EventDecompFailedEventEnum", + "EventDecompFinishedEventEnum", + "EventProseEventEnum", "EventRUNCANCELLEDEventEnum", "EventRUNERROREventEnum", "EventRUNFINISHEDEventEnum", "EventRUNSTARTEDEventEnum", + "EventRenameAppliedEventEnum", "EventSTEPFINISHEDEventEnum", "EventSTEPSTARTEDEventEnum", + "EventSourceDeltaEventEnum", + "EventSourceResetEventEnum", "EventTEXTMESSAGECONTENTEventEnum", "EventTEXTMESSAGEENDEventEnum", "EventTEXTMESSAGESTARTEventEnum", @@ -789,6 +840,7 @@ let enumsMap: Set = new Set([ "EventTOOLCALLRESULTEventEnum", "EventTOOLCALLSTARTEventEnum", "EventTOOLCONFIRMATIONREQUIREDEventEnum", + "EventWarningEventEnum", "FileFormat", "Filters", "FunctionListItemNameSourceTypeEnum", @@ -808,6 +860,7 @@ let enumsMap: Set = new Set([ "SandboxStartMethod", "SandboxTimeout", "StatusInput", + "StreamAiDecompilation200ResponseInnerEventEnum", "StreamEvents200ResponseInnerEventEnum", "StringSource", "SummaryDataTaskStatusEnum", @@ -852,6 +905,8 @@ let typeMap: {[index: string]: any} = { "AppApiRestV2FunctionsTypesFunction": AppApiRestV2FunctionsTypesFunction, "AppApiRestV2InfoTypesCapability": AppApiRestV2InfoTypesCapability, "Argument": Argument, + "AttemptFailedEvent": AttemptFailedEvent, + "AttemptStartedEvent": AttemptStartedEvent, "AutoRunAgents": AutoRunAgents, "AutoUnstripRequest": AutoUnstripRequest, "AutoUnstripResponse": AutoUnstripResponse, @@ -969,6 +1024,9 @@ let typeMap: {[index: string]: any} = { "CreateAIDecompOutputBody": CreateAIDecompOutputBody, "CreateConversationRequest": CreateConversationRequest, "Created": Created, + "DebugPromptEvent": DebugPromptEvent, + "DecompFailedEvent": DecompFailedEvent, + "DecompFinishedEvent": DecompFinishedEvent, "DecompilationCommentContext": DecompilationCommentContext, "DecompilationData": DecompilationData, "DieMatch": DieMatch, @@ -988,13 +1046,22 @@ let typeMap: {[index: string]: any} = { "ErrorBody": ErrorBody, "ErrorModel": ErrorModel, "Event": Event, + "EventAttemptFailed": EventAttemptFailed, + "EventAttemptStarted": EventAttemptStarted, "EventCONTEXTCOMPACTED": EventCONTEXTCOMPACTED, + "EventDebugPrompt": EventDebugPrompt, + "EventDecompFailed": EventDecompFailed, + "EventDecompFinished": EventDecompFinished, + "EventProse": EventProse, "EventRUNCANCELLED": EventRUNCANCELLED, "EventRUNERROR": EventRUNERROR, "EventRUNFINISHED": EventRUNFINISHED, "EventRUNSTARTED": EventRUNSTARTED, + "EventRenameApplied": EventRenameApplied, "EventSTEPFINISHED": EventSTEPFINISHED, "EventSTEPSTARTED": EventSTEPSTARTED, + "EventSourceDelta": EventSourceDelta, + "EventSourceReset": EventSourceReset, "EventTEXTMESSAGECONTENT": EventTEXTMESSAGECONTENT, "EventTEXTMESSAGEEND": EventTEXTMESSAGEEND, "EventTEXTMESSAGESTART": EventTEXTMESSAGESTART, @@ -1004,6 +1071,7 @@ let typeMap: {[index: string]: any} = { "EventTOOLCALLRESULT": EventTOOLCALLRESULT, "EventTOOLCALLSTART": EventTOOLCALLSTART, "EventTOOLCONFIRMATIONREQUIRED": EventTOOLCONFIRMATIONREQUIRED, + "EventWarning": EventWarning, "ExportModel": ExportModel, "ExternalResponse": ExternalResponse, "ExtractedURL": ExtractedURL, @@ -1088,6 +1156,7 @@ let typeMap: {[index: string]: any} = { "ProcessNode": ProcessNode, "ProcessTree": ProcessTree, "ProgressMessage": ProgressMessage, + "ProseEvent": ProseEvent, "PutAnalysisStringsRequest": PutAnalysisStringsRequest, "QueuePositionResponse": QueuePositionResponse, "QueuedWorkflowTaskResponse": QueuedWorkflowTaskResponse, @@ -1096,6 +1165,7 @@ let typeMap: {[index: string]: any} = { "RegenerateOutputBody": RegenerateOutputBody, "RegistryOperation": RegistryOperation, "RelativeBinaryResponse": RelativeBinaryResponse, + "RenameAppliedEvent": RenameAppliedEvent, "RenameInputBody": RenameInputBody, "RenameOutputBody": RenameOutputBody, "ReplacementValue": ReplacementValue, @@ -1117,6 +1187,8 @@ let typeMap: {[index: string]: any} = { "SingleCodeSignatureModel": SingleCodeSignatureModel, "SinglePDBEntryModel": SinglePDBEntryModel, "SingleSectionModel": SingleSectionModel, + "SourceDeltaEvent": SourceDeltaEvent, + "SourceResetEvent": SourceResetEvent, "SseEventContextCompactedData": SseEventContextCompactedData, "SseEventRunCancelledData": SseEventRunCancelledData, "SseEventRunErrorData": SseEventRunErrorData, @@ -1137,6 +1209,7 @@ let typeMap: {[index: string]: any} = { "StartupInfo": StartupInfo, "StatusOutput": StatusOutput, "StatusResponse": StatusResponse, + "StreamAiDecompilation200ResponseInner": StreamAiDecompilation200ResponseInnerClass, "StreamEvents200ResponseInner": StreamEvents200ResponseInnerClass, "StringFunctions": StringFunctions, "Structure": Structure, @@ -1165,6 +1238,7 @@ let typeMap: {[index: string]: any} = { "UserActivityResponse": UserActivityResponse, "Vulnerabilities": Vulnerabilities, "Vulnerability": Vulnerability, + "WarningEvent": WarningEvent, "WorkflowProgress": WorkflowProgress, "XrefFromResponse": XrefFromResponse, "XrefResponse": XrefResponse, diff --git a/models/ProseEvent.ts b/models/ProseEvent.ts new file mode 100644 index 0000000..0190058 --- /dev/null +++ b/models/ProseEvent.ts @@ -0,0 +1,56 @@ +/** + * 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 ProseEvent { + 'attempt': number; + 'seq': number; + 'text': string; + 'type': 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": "attempt", + "baseName": "attempt", + "type": "number", + "format": "int32" + }, + { + "name": "seq", + "baseName": "seq", + "type": "number", + "format": "int32" + }, + { + "name": "text", + "baseName": "text", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ProseEvent.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/models/RenameAppliedEvent.ts b/models/RenameAppliedEvent.ts new file mode 100644 index 0000000..85c4923 --- /dev/null +++ b/models/RenameAppliedEvent.ts @@ -0,0 +1,70 @@ +/** + * 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 RenameAppliedEvent { + 'addrHex'?: string; + 'attempt': number; + 'newName': string; + 'oldName': string; + 'seq': number; + 'type': 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": "addrHex", + "baseName": "addr_hex", + "type": "string", + "format": "" + }, + { + "name": "attempt", + "baseName": "attempt", + "type": "number", + "format": "int32" + }, + { + "name": "newName", + "baseName": "new_name", + "type": "string", + "format": "" + }, + { + "name": "oldName", + "baseName": "old_name", + "type": "string", + "format": "" + }, + { + "name": "seq", + "baseName": "seq", + "type": "number", + "format": "int32" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return RenameAppliedEvent.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/models/SourceDeltaEvent.ts b/models/SourceDeltaEvent.ts new file mode 100644 index 0000000..8de019e --- /dev/null +++ b/models/SourceDeltaEvent.ts @@ -0,0 +1,56 @@ +/** + * 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 SourceDeltaEvent { + 'attempt': number; + 'content': string; + 'seq': number; + 'type': 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": "attempt", + "baseName": "attempt", + "type": "number", + "format": "int32" + }, + { + "name": "content", + "baseName": "content", + "type": "string", + "format": "" + }, + { + "name": "seq", + "baseName": "seq", + "type": "number", + "format": "int32" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return SourceDeltaEvent.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/models/SourceResetEvent.ts b/models/SourceResetEvent.ts new file mode 100644 index 0000000..ce97dcc --- /dev/null +++ b/models/SourceResetEvent.ts @@ -0,0 +1,49 @@ +/** + * 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 SourceResetEvent { + 'attempt': number; + 'seq': number; + 'type': 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": "attempt", + "baseName": "attempt", + "type": "number", + "format": "int32" + }, + { + "name": "seq", + "baseName": "seq", + "type": "number", + "format": "int32" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return SourceResetEvent.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/models/StreamAiDecompilation200ResponseInner.ts b/models/StreamAiDecompilation200ResponseInner.ts new file mode 100644 index 0000000..7ad4e37 --- /dev/null +++ b/models/StreamAiDecompilation200ResponseInner.ts @@ -0,0 +1,48 @@ +/** + * 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 { EventAttemptFailed } from '../models/EventAttemptFailed'; +import { EventAttemptStarted } from '../models/EventAttemptStarted'; +import { EventDebugPrompt } from '../models/EventDebugPrompt'; +import { EventDecompFailed } from '../models/EventDecompFailed'; +import { EventDecompFinished } from '../models/EventDecompFinished'; +import { EventProse } from '../models/EventProse'; +import { EventRenameApplied } from '../models/EventRenameApplied'; +import { EventSourceDelta } from '../models/EventSourceDelta'; +import { EventSourceReset } from '../models/EventSourceReset'; +import { EventWarning } from '../models/EventWarning'; +import { HttpFile } from '../http/http'; + +/** + * @type StreamAiDecompilation200ResponseInner + * Type + * @export + */ +export type StreamAiDecompilation200ResponseInner = EventAttemptFailed | EventAttemptStarted | EventDebugPrompt | EventDecompFailed | EventDecompFinished | EventProse | EventRenameApplied | EventSourceDelta | EventSourceReset | EventWarning; + +/** +* @type StreamAiDecompilation200ResponseInnerClass +* @export +*/ +export class StreamAiDecompilation200ResponseInnerClass { + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; +} + + + + + + + + + diff --git a/models/WarningEvent.ts b/models/WarningEvent.ts new file mode 100644 index 0000000..a94b339 --- /dev/null +++ b/models/WarningEvent.ts @@ -0,0 +1,70 @@ +/** + * 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 WarningEvent { + 'attempt': number; + 'identifiers'?: Array | null; + 'kind': string; + 'message': string; + 'seq': number; + 'type': 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": "attempt", + "baseName": "attempt", + "type": "number", + "format": "int32" + }, + { + "name": "identifiers", + "baseName": "identifiers", + "type": "Array", + "format": "" + }, + { + "name": "kind", + "baseName": "kind", + "type": "string", + "format": "" + }, + { + "name": "message", + "baseName": "message", + "type": "string", + "format": "" + }, + { + "name": "seq", + "baseName": "seq", + "type": "number", + "format": "int32" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return WarningEvent.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/models/all.ts b/models/all.ts index 7e86b16..8f4bd5e 100644 --- a/models/all.ts +++ b/models/all.ts @@ -34,6 +34,8 @@ export * from '../models/AppApiRestV2FunctionsResponsesFunction' export * from '../models/AppApiRestV2FunctionsTypesFunction' export * from '../models/AppApiRestV2InfoTypesCapability' export * from '../models/Argument' +export * from '../models/AttemptFailedEvent' +export * from '../models/AttemptStartedEvent' export * from '../models/AutoRunAgents' export * from '../models/AutoUnstripRequest' export * from '../models/AutoUnstripResponse' @@ -154,6 +156,9 @@ export * from '../models/ConversationWithEvents' export * from '../models/CreateAIDecompOutputBody' export * from '../models/CreateConversationRequest' export * from '../models/Created' +export * from '../models/DebugPromptEvent' +export * from '../models/DecompFailedEvent' +export * from '../models/DecompFinishedEvent' export * from '../models/DecompilationCommentContext' export * from '../models/DecompilationData' export * from '../models/DieMatch' @@ -174,13 +179,22 @@ export * from '../models/Enumeration' export * from '../models/ErrorBody' export * from '../models/ErrorModel' export * from '../models/Event' +export * from '../models/EventAttemptFailed' +export * from '../models/EventAttemptStarted' export * from '../models/EventCONTEXTCOMPACTED' +export * from '../models/EventDebugPrompt' +export * from '../models/EventDecompFailed' +export * from '../models/EventDecompFinished' +export * from '../models/EventProse' export * from '../models/EventRUNCANCELLED' export * from '../models/EventRUNERROR' export * from '../models/EventRUNFINISHED' export * from '../models/EventRUNSTARTED' +export * from '../models/EventRenameApplied' export * from '../models/EventSTEPFINISHED' export * from '../models/EventSTEPSTARTED' +export * from '../models/EventSourceDelta' +export * from '../models/EventSourceReset' export * from '../models/EventTEXTMESSAGECONTENT' export * from '../models/EventTEXTMESSAGEEND' export * from '../models/EventTEXTMESSAGESTART' @@ -190,6 +204,7 @@ export * from '../models/EventTOOLCALLEND' export * from '../models/EventTOOLCALLRESULT' export * from '../models/EventTOOLCALLSTART' export * from '../models/EventTOOLCONFIRMATIONREQUIRED' +export * from '../models/EventWarning' export * from '../models/ExportModel' export * from '../models/ExternalResponse' export * from '../models/ExtractedURL' @@ -282,6 +297,7 @@ export * from '../models/ProcessMemdumps' export * from '../models/ProcessNode' export * from '../models/ProcessTree' export * from '../models/ProgressMessage' +export * from '../models/ProseEvent' export * from '../models/PutAnalysisStringsRequest' export * from '../models/QueuePositionResponse' export * from '../models/QueuedWorkflowTaskResponse' @@ -291,6 +307,7 @@ export * from '../models/RegenerateOutputBody' export * from '../models/RegenerateTarget' export * from '../models/RegistryOperation' export * from '../models/RelativeBinaryResponse' +export * from '../models/RenameAppliedEvent' export * from '../models/RenameInputBody' export * from '../models/RenameOutputBody' export * from '../models/ReplacementValue' @@ -314,6 +331,8 @@ export * from '../models/SingleCodeCertificateModel' export * from '../models/SingleCodeSignatureModel' export * from '../models/SinglePDBEntryModel' export * from '../models/SingleSectionModel' +export * from '../models/SourceDeltaEvent' +export * from '../models/SourceResetEvent' export * from '../models/SseEventContextCompactedData' export * from '../models/SseEventRunCancelledData' export * from '../models/SseEventRunErrorData' @@ -335,6 +354,7 @@ export * from '../models/StartupInfo' export * from '../models/StatusInput' export * from '../models/StatusOutput' export * from '../models/StatusResponse' +export * from '../models/StreamAiDecompilation200ResponseInner' export * from '../models/StreamEvents200ResponseInner' export * from '../models/StringFunctions' export * from '../models/StringSource' @@ -366,6 +386,7 @@ export * from '../models/UpsertOverridesInputBody' export * from '../models/UserActivityResponse' export * from '../models/Vulnerabilities' export * from '../models/Vulnerability' +export * from '../models/WarningEvent' export * from '../models/WorkflowProgress' export * from '../models/Workspace' export * from '../models/XrefFromResponse' diff --git a/types/ObjectParamAPI.ts b/types/ObjectParamAPI.ts index 97b7a43..1ab28f6 100644 --- a/types/ObjectParamAPI.ts +++ b/types/ObjectParamAPI.ts @@ -38,6 +38,8 @@ import { AppApiRestV2FunctionsResponsesFunction } from '../models/AppApiRestV2Fu import { AppApiRestV2FunctionsTypesFunction } from '../models/AppApiRestV2FunctionsTypesFunction'; import { AppApiRestV2InfoTypesCapability } from '../models/AppApiRestV2InfoTypesCapability'; import { Argument } from '../models/Argument'; +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'; @@ -158,6 +160,9 @@ import { ConversationWithEvents } from '../models/ConversationWithEvents'; import { CreateAIDecompOutputBody } from '../models/CreateAIDecompOutputBody'; import { CreateConversationRequest } from '../models/CreateConversationRequest'; import { Created } from '../models/Created'; +import { DebugPromptEvent } from '../models/DebugPromptEvent'; +import { DecompFailedEvent } from '../models/DecompFailedEvent'; +import { DecompFinishedEvent } from '../models/DecompFinishedEvent'; import { DecompilationCommentContext } from '../models/DecompilationCommentContext'; import { DecompilationData } from '../models/DecompilationData'; import { DieMatch } from '../models/DieMatch'; @@ -178,13 +183,22 @@ import { Enumeration } from '../models/Enumeration'; import { ErrorBody } from '../models/ErrorBody'; import { ErrorModel } from '../models/ErrorModel'; import { Event } from '../models/Event'; +import { EventAttemptFailed } from '../models/EventAttemptFailed'; +import { EventAttemptStarted } from '../models/EventAttemptStarted'; import { EventCONTEXTCOMPACTED } from '../models/EventCONTEXTCOMPACTED'; +import { EventDebugPrompt } from '../models/EventDebugPrompt'; +import { EventDecompFailed } from '../models/EventDecompFailed'; +import { EventDecompFinished } from '../models/EventDecompFinished'; +import { EventProse } from '../models/EventProse'; import { EventRUNCANCELLED } from '../models/EventRUNCANCELLED'; import { EventRUNERROR } from '../models/EventRUNERROR'; import { EventRUNFINISHED } from '../models/EventRUNFINISHED'; import { EventRUNSTARTED } from '../models/EventRUNSTARTED'; +import { EventRenameApplied } from '../models/EventRenameApplied'; import { EventSTEPFINISHED } from '../models/EventSTEPFINISHED'; import { EventSTEPSTARTED } from '../models/EventSTEPSTARTED'; +import { EventSourceDelta } from '../models/EventSourceDelta'; +import { EventSourceReset } from '../models/EventSourceReset'; import { EventTEXTMESSAGECONTENT } from '../models/EventTEXTMESSAGECONTENT'; import { EventTEXTMESSAGEEND } from '../models/EventTEXTMESSAGEEND'; import { EventTEXTMESSAGESTART } from '../models/EventTEXTMESSAGESTART'; @@ -194,6 +208,7 @@ import { EventTOOLCALLEND } from '../models/EventTOOLCALLEND'; import { EventTOOLCALLRESULT } from '../models/EventTOOLCALLRESULT'; import { EventTOOLCALLSTART } from '../models/EventTOOLCALLSTART'; import { EventTOOLCONFIRMATIONREQUIRED } from '../models/EventTOOLCONFIRMATIONREQUIRED'; +import { EventWarning } from '../models/EventWarning'; import { ExportModel } from '../models/ExportModel'; import { ExternalResponse } from '../models/ExternalResponse'; import { ExtractedURL } from '../models/ExtractedURL'; @@ -286,6 +301,7 @@ import { ProcessMemdumps } from '../models/ProcessMemdumps'; import { ProcessNode } from '../models/ProcessNode'; import { ProcessTree } from '../models/ProcessTree'; import { ProgressMessage } from '../models/ProgressMessage'; +import { ProseEvent } from '../models/ProseEvent'; import { PutAnalysisStringsRequest } from '../models/PutAnalysisStringsRequest'; import { QueuePositionResponse } from '../models/QueuePositionResponse'; import { QueuedWorkflowTaskResponse } from '../models/QueuedWorkflowTaskResponse'; @@ -295,6 +311,7 @@ import { RegenerateOutputBody } from '../models/RegenerateOutputBody'; import { RegenerateTarget } from '../models/RegenerateTarget'; import { RegistryOperation } from '../models/RegistryOperation'; import { RelativeBinaryResponse } from '../models/RelativeBinaryResponse'; +import { RenameAppliedEvent } from '../models/RenameAppliedEvent'; import { RenameInputBody } from '../models/RenameInputBody'; import { RenameOutputBody } from '../models/RenameOutputBody'; import { ReplacementValue } from '../models/ReplacementValue'; @@ -318,6 +335,8 @@ import { SingleCodeCertificateModel } from '../models/SingleCodeCertificateModel import { SingleCodeSignatureModel } from '../models/SingleCodeSignatureModel'; import { SinglePDBEntryModel } from '../models/SinglePDBEntryModel'; import { SingleSectionModel } from '../models/SingleSectionModel'; +import { SourceDeltaEvent } from '../models/SourceDeltaEvent'; +import { SourceResetEvent } from '../models/SourceResetEvent'; import { SseEventContextCompactedData } from '../models/SseEventContextCompactedData'; import { SseEventRunCancelledData } from '../models/SseEventRunCancelledData'; import { SseEventRunErrorData } from '../models/SseEventRunErrorData'; @@ -339,6 +358,7 @@ import { StartupInfo } from '../models/StartupInfo'; import { StatusInput } from '../models/StatusInput'; import { StatusOutput } from '../models/StatusOutput'; import { StatusResponse } from '../models/StatusResponse'; +import { StreamAiDecompilation200ResponseInner } from '../models/StreamAiDecompilation200ResponseInner'; import { StreamEvents200ResponseInner } from '../models/StreamEvents200ResponseInner'; import { StringFunctions } from '../models/StringFunctions'; import { StringSource } from '../models/StringSource'; @@ -370,6 +390,7 @@ import { UpsertOverridesInputBody } from '../models/UpsertOverridesInputBody'; import { UserActivityResponse } from '../models/UserActivityResponse'; import { Vulnerabilities } from '../models/Vulnerabilities'; import { Vulnerability } from '../models/Vulnerability'; +import { WarningEvent } from '../models/WarningEvent'; import { WorkflowProgress } from '../models/WorkflowProgress'; import { Workspace } from '../models/Workspace'; import { XrefFromResponse } from '../models/XrefFromResponse'; @@ -3089,6 +3110,17 @@ export interface FunctionsAIDecompilationApiRegenerateAiDecompilationSummaryRequ functionId: number } +export interface FunctionsAIDecompilationApiStreamAiDecompilationRequest { + /** + * Function ID + * Minimum: 1 + * Defaults to: undefined + * @type number + * @memberof FunctionsAIDecompilationApistreamAiDecompilation + */ + functionId: number +} + export interface FunctionsAIDecompilationApiUpdateAiDecompilationCommentRequest { /** * @@ -3491,6 +3523,24 @@ export class ObjectFunctionsAIDecompilationApi { return this.api.regenerateAiDecompilationSummary(param.functionId, options).toPromise(); } + /** + * Opens a Server-Sent Events stream of incremental decompilation events for the given function. Each event has a `type` discriminator (also used as the SSE `event:` line) and a per-attempt monotonic `seq`. Terminal events: `decomp_finished` (success) or `decomp_failed` (all retries exhausted). `attempt_failed` is per-attempt and non-terminal — Temporal may retry the activity. Clients should treat `attempt` changes as a reset signal. `last_event_id` is not supported — clients fall back to polling the standard GET endpoint after the stream ends. + * Stream live AI decompilation output (SSE) + * @param param the request object + */ + public streamAiDecompilationWithHttpInfo(param: FunctionsAIDecompilationApiStreamAiDecompilationRequest, options?: ConfigurationOptions): Promise>> { + return this.api.streamAiDecompilationWithHttpInfo(param.functionId, options).toPromise(); + } + + /** + * Opens a Server-Sent Events stream of incremental decompilation events for the given function. Each event has a `type` discriminator (also used as the SSE `event:` line) and a per-attempt monotonic `seq`. Terminal events: `decomp_finished` (success) or `decomp_failed` (all retries exhausted). `attempt_failed` is per-attempt and non-terminal — Temporal may retry the activity. Clients should treat `attempt` changes as a reset signal. `last_event_id` is not supported — clients fall back to polling the standard GET endpoint after the stream ends. + * Stream live AI decompilation output (SSE) + * @param param the request object + */ + public streamAiDecompilation(param: FunctionsAIDecompilationApiStreamAiDecompilationRequest, options?: ConfigurationOptions): Promise> { + return this.api.streamAiDecompilation(param.functionId, options).toPromise(); + } + /** * Updates the content of an existing comment. Users can only update their own comments. * Update a comment diff --git a/types/ObservableAPI.ts b/types/ObservableAPI.ts index d96a0ae..6b1d8d5 100644 --- a/types/ObservableAPI.ts +++ b/types/ObservableAPI.ts @@ -39,6 +39,8 @@ import { AppApiRestV2FunctionsResponsesFunction } from '../models/AppApiRestV2Fu import { AppApiRestV2FunctionsTypesFunction } from '../models/AppApiRestV2FunctionsTypesFunction'; import { AppApiRestV2InfoTypesCapability } from '../models/AppApiRestV2InfoTypesCapability'; import { Argument } from '../models/Argument'; +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'; @@ -159,6 +161,9 @@ import { ConversationWithEvents } from '../models/ConversationWithEvents'; import { CreateAIDecompOutputBody } from '../models/CreateAIDecompOutputBody'; import { CreateConversationRequest } from '../models/CreateConversationRequest'; import { Created } from '../models/Created'; +import { DebugPromptEvent } from '../models/DebugPromptEvent'; +import { DecompFailedEvent } from '../models/DecompFailedEvent'; +import { DecompFinishedEvent } from '../models/DecompFinishedEvent'; import { DecompilationCommentContext } from '../models/DecompilationCommentContext'; import { DecompilationData } from '../models/DecompilationData'; import { DieMatch } from '../models/DieMatch'; @@ -179,13 +184,22 @@ import { Enumeration } from '../models/Enumeration'; import { ErrorBody } from '../models/ErrorBody'; import { ErrorModel } from '../models/ErrorModel'; import { Event } from '../models/Event'; +import { EventAttemptFailed } from '../models/EventAttemptFailed'; +import { EventAttemptStarted } from '../models/EventAttemptStarted'; import { EventCONTEXTCOMPACTED } from '../models/EventCONTEXTCOMPACTED'; +import { EventDebugPrompt } from '../models/EventDebugPrompt'; +import { EventDecompFailed } from '../models/EventDecompFailed'; +import { EventDecompFinished } from '../models/EventDecompFinished'; +import { EventProse } from '../models/EventProse'; import { EventRUNCANCELLED } from '../models/EventRUNCANCELLED'; import { EventRUNERROR } from '../models/EventRUNERROR'; import { EventRUNFINISHED } from '../models/EventRUNFINISHED'; import { EventRUNSTARTED } from '../models/EventRUNSTARTED'; +import { EventRenameApplied } from '../models/EventRenameApplied'; import { EventSTEPFINISHED } from '../models/EventSTEPFINISHED'; import { EventSTEPSTARTED } from '../models/EventSTEPSTARTED'; +import { EventSourceDelta } from '../models/EventSourceDelta'; +import { EventSourceReset } from '../models/EventSourceReset'; import { EventTEXTMESSAGECONTENT } from '../models/EventTEXTMESSAGECONTENT'; import { EventTEXTMESSAGEEND } from '../models/EventTEXTMESSAGEEND'; import { EventTEXTMESSAGESTART } from '../models/EventTEXTMESSAGESTART'; @@ -195,6 +209,7 @@ import { EventTOOLCALLEND } from '../models/EventTOOLCALLEND'; import { EventTOOLCALLRESULT } from '../models/EventTOOLCALLRESULT'; import { EventTOOLCALLSTART } from '../models/EventTOOLCALLSTART'; import { EventTOOLCONFIRMATIONREQUIRED } from '../models/EventTOOLCONFIRMATIONREQUIRED'; +import { EventWarning } from '../models/EventWarning'; import { ExportModel } from '../models/ExportModel'; import { ExternalResponse } from '../models/ExternalResponse'; import { ExtractedURL } from '../models/ExtractedURL'; @@ -287,6 +302,7 @@ import { ProcessMemdumps } from '../models/ProcessMemdumps'; import { ProcessNode } from '../models/ProcessNode'; import { ProcessTree } from '../models/ProcessTree'; import { ProgressMessage } from '../models/ProgressMessage'; +import { ProseEvent } from '../models/ProseEvent'; import { PutAnalysisStringsRequest } from '../models/PutAnalysisStringsRequest'; import { QueuePositionResponse } from '../models/QueuePositionResponse'; import { QueuedWorkflowTaskResponse } from '../models/QueuedWorkflowTaskResponse'; @@ -296,6 +312,7 @@ import { RegenerateOutputBody } from '../models/RegenerateOutputBody'; import { RegenerateTarget } from '../models/RegenerateTarget'; import { RegistryOperation } from '../models/RegistryOperation'; import { RelativeBinaryResponse } from '../models/RelativeBinaryResponse'; +import { RenameAppliedEvent } from '../models/RenameAppliedEvent'; import { RenameInputBody } from '../models/RenameInputBody'; import { RenameOutputBody } from '../models/RenameOutputBody'; import { ReplacementValue } from '../models/ReplacementValue'; @@ -319,6 +336,8 @@ import { SingleCodeCertificateModel } from '../models/SingleCodeCertificateModel import { SingleCodeSignatureModel } from '../models/SingleCodeSignatureModel'; import { SinglePDBEntryModel } from '../models/SinglePDBEntryModel'; import { SingleSectionModel } from '../models/SingleSectionModel'; +import { SourceDeltaEvent } from '../models/SourceDeltaEvent'; +import { SourceResetEvent } from '../models/SourceResetEvent'; import { SseEventContextCompactedData } from '../models/SseEventContextCompactedData'; import { SseEventRunCancelledData } from '../models/SseEventRunCancelledData'; import { SseEventRunErrorData } from '../models/SseEventRunErrorData'; @@ -340,6 +359,7 @@ import { StartupInfo } from '../models/StartupInfo'; import { StatusInput } from '../models/StatusInput'; import { StatusOutput } from '../models/StatusOutput'; import { StatusResponse } from '../models/StatusResponse'; +import { StreamAiDecompilation200ResponseInner } from '../models/StreamAiDecompilation200ResponseInner'; import { StreamEvents200ResponseInner } from '../models/StreamEvents200ResponseInner'; import { StringFunctions } from '../models/StringFunctions'; import { StringSource } from '../models/StringSource'; @@ -371,6 +391,7 @@ import { UpsertOverridesInputBody } from '../models/UpsertOverridesInputBody'; import { UserActivityResponse } from '../models/UserActivityResponse'; import { Vulnerabilities } from '../models/Vulnerabilities'; import { Vulnerability } from '../models/Vulnerability'; +import { WarningEvent } from '../models/WarningEvent'; import { WorkflowProgress } from '../models/WorkflowProgress'; import { Workspace } from '../models/Workspace'; import { XrefFromResponse } from '../models/XrefFromResponse'; @@ -3773,6 +3794,40 @@ export class ObservableFunctionsAIDecompilationApi { return this.regenerateAiDecompilationSummaryWithHttpInfo(functionId, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } + /** + * Opens a Server-Sent Events stream of incremental decompilation events for the given function. Each event has a `type` discriminator (also used as the SSE `event:` line) and a per-attempt monotonic `seq`. Terminal events: `decomp_finished` (success) or `decomp_failed` (all retries exhausted). `attempt_failed` is per-attempt and non-terminal — Temporal may retry the activity. Clients should treat `attempt` changes as a reset signal. `last_event_id` is not supported — clients fall back to polling the standard GET endpoint after the stream ends. + * Stream live AI decompilation output (SSE) + * @param functionId Function ID + */ + public streamAiDecompilationWithHttpInfo(functionId: number, _options?: ConfigurationOptions): Observable>> { + const _config = mergeConfiguration(this.configuration, _options); + + const requestContextPromise = this.requestFactory.streamAiDecompilation(functionId, _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.streamAiDecompilationWithHttpInfo(rsp))); + })); + } + + /** + * Opens a Server-Sent Events stream of incremental decompilation events for the given function. Each event has a `type` discriminator (also used as the SSE `event:` line) and a per-attempt monotonic `seq`. Terminal events: `decomp_finished` (success) or `decomp_failed` (all retries exhausted). `attempt_failed` is per-attempt and non-terminal — Temporal may retry the activity. Clients should treat `attempt` changes as a reset signal. `last_event_id` is not supported — clients fall back to polling the standard GET endpoint after the stream ends. + * Stream live AI decompilation output (SSE) + * @param functionId Function ID + */ + public streamAiDecompilation(functionId: number, _options?: ConfigurationOptions): Observable> { + return this.streamAiDecompilationWithHttpInfo(functionId, _options).pipe(map((apiResponse: HttpInfo>) => apiResponse.data)); + } + /** * Updates the content of an existing comment. Users can only update their own comments. * Update a comment diff --git a/types/PromiseAPI.ts b/types/PromiseAPI.ts index f62c9b1..3a2eedc 100644 --- a/types/PromiseAPI.ts +++ b/types/PromiseAPI.ts @@ -38,6 +38,8 @@ import { AppApiRestV2FunctionsResponsesFunction } from '../models/AppApiRestV2Fu import { AppApiRestV2FunctionsTypesFunction } from '../models/AppApiRestV2FunctionsTypesFunction'; import { AppApiRestV2InfoTypesCapability } from '../models/AppApiRestV2InfoTypesCapability'; import { Argument } from '../models/Argument'; +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'; @@ -158,6 +160,9 @@ import { ConversationWithEvents } from '../models/ConversationWithEvents'; import { CreateAIDecompOutputBody } from '../models/CreateAIDecompOutputBody'; import { CreateConversationRequest } from '../models/CreateConversationRequest'; import { Created } from '../models/Created'; +import { DebugPromptEvent } from '../models/DebugPromptEvent'; +import { DecompFailedEvent } from '../models/DecompFailedEvent'; +import { DecompFinishedEvent } from '../models/DecompFinishedEvent'; import { DecompilationCommentContext } from '../models/DecompilationCommentContext'; import { DecompilationData } from '../models/DecompilationData'; import { DieMatch } from '../models/DieMatch'; @@ -178,13 +183,22 @@ import { Enumeration } from '../models/Enumeration'; import { ErrorBody } from '../models/ErrorBody'; import { ErrorModel } from '../models/ErrorModel'; import { Event } from '../models/Event'; +import { EventAttemptFailed } from '../models/EventAttemptFailed'; +import { EventAttemptStarted } from '../models/EventAttemptStarted'; import { EventCONTEXTCOMPACTED } from '../models/EventCONTEXTCOMPACTED'; +import { EventDebugPrompt } from '../models/EventDebugPrompt'; +import { EventDecompFailed } from '../models/EventDecompFailed'; +import { EventDecompFinished } from '../models/EventDecompFinished'; +import { EventProse } from '../models/EventProse'; import { EventRUNCANCELLED } from '../models/EventRUNCANCELLED'; import { EventRUNERROR } from '../models/EventRUNERROR'; import { EventRUNFINISHED } from '../models/EventRUNFINISHED'; import { EventRUNSTARTED } from '../models/EventRUNSTARTED'; +import { EventRenameApplied } from '../models/EventRenameApplied'; import { EventSTEPFINISHED } from '../models/EventSTEPFINISHED'; import { EventSTEPSTARTED } from '../models/EventSTEPSTARTED'; +import { EventSourceDelta } from '../models/EventSourceDelta'; +import { EventSourceReset } from '../models/EventSourceReset'; import { EventTEXTMESSAGECONTENT } from '../models/EventTEXTMESSAGECONTENT'; import { EventTEXTMESSAGEEND } from '../models/EventTEXTMESSAGEEND'; import { EventTEXTMESSAGESTART } from '../models/EventTEXTMESSAGESTART'; @@ -194,6 +208,7 @@ import { EventTOOLCALLEND } from '../models/EventTOOLCALLEND'; import { EventTOOLCALLRESULT } from '../models/EventTOOLCALLRESULT'; import { EventTOOLCALLSTART } from '../models/EventTOOLCALLSTART'; import { EventTOOLCONFIRMATIONREQUIRED } from '../models/EventTOOLCONFIRMATIONREQUIRED'; +import { EventWarning } from '../models/EventWarning'; import { ExportModel } from '../models/ExportModel'; import { ExternalResponse } from '../models/ExternalResponse'; import { ExtractedURL } from '../models/ExtractedURL'; @@ -286,6 +301,7 @@ import { ProcessMemdumps } from '../models/ProcessMemdumps'; import { ProcessNode } from '../models/ProcessNode'; import { ProcessTree } from '../models/ProcessTree'; import { ProgressMessage } from '../models/ProgressMessage'; +import { ProseEvent } from '../models/ProseEvent'; import { PutAnalysisStringsRequest } from '../models/PutAnalysisStringsRequest'; import { QueuePositionResponse } from '../models/QueuePositionResponse'; import { QueuedWorkflowTaskResponse } from '../models/QueuedWorkflowTaskResponse'; @@ -295,6 +311,7 @@ import { RegenerateOutputBody } from '../models/RegenerateOutputBody'; import { RegenerateTarget } from '../models/RegenerateTarget'; import { RegistryOperation } from '../models/RegistryOperation'; import { RelativeBinaryResponse } from '../models/RelativeBinaryResponse'; +import { RenameAppliedEvent } from '../models/RenameAppliedEvent'; import { RenameInputBody } from '../models/RenameInputBody'; import { RenameOutputBody } from '../models/RenameOutputBody'; import { ReplacementValue } from '../models/ReplacementValue'; @@ -318,6 +335,8 @@ import { SingleCodeCertificateModel } from '../models/SingleCodeCertificateModel import { SingleCodeSignatureModel } from '../models/SingleCodeSignatureModel'; import { SinglePDBEntryModel } from '../models/SinglePDBEntryModel'; import { SingleSectionModel } from '../models/SingleSectionModel'; +import { SourceDeltaEvent } from '../models/SourceDeltaEvent'; +import { SourceResetEvent } from '../models/SourceResetEvent'; import { SseEventContextCompactedData } from '../models/SseEventContextCompactedData'; import { SseEventRunCancelledData } from '../models/SseEventRunCancelledData'; import { SseEventRunErrorData } from '../models/SseEventRunErrorData'; @@ -339,6 +358,7 @@ import { StartupInfo } from '../models/StartupInfo'; import { StatusInput } from '../models/StatusInput'; import { StatusOutput } from '../models/StatusOutput'; import { StatusResponse } from '../models/StatusResponse'; +import { StreamAiDecompilation200ResponseInner } from '../models/StreamAiDecompilation200ResponseInner'; import { StreamEvents200ResponseInner } from '../models/StreamEvents200ResponseInner'; import { StringFunctions } from '../models/StringFunctions'; import { StringSource } from '../models/StringSource'; @@ -370,6 +390,7 @@ import { UpsertOverridesInputBody } from '../models/UpsertOverridesInputBody'; import { UserActivityResponse } from '../models/UserActivityResponse'; import { Vulnerabilities } from '../models/Vulnerabilities'; import { Vulnerability } from '../models/Vulnerability'; +import { WarningEvent } from '../models/WarningEvent'; import { WorkflowProgress } from '../models/WorkflowProgress'; import { Workspace } from '../models/Workspace'; import { XrefFromResponse } from '../models/XrefFromResponse'; @@ -2690,6 +2711,28 @@ export class PromiseFunctionsAIDecompilationApi { return result.toPromise(); } + /** + * Opens a Server-Sent Events stream of incremental decompilation events for the given function. Each event has a `type` discriminator (also used as the SSE `event:` line) and a per-attempt monotonic `seq`. Terminal events: `decomp_finished` (success) or `decomp_failed` (all retries exhausted). `attempt_failed` is per-attempt and non-terminal — Temporal may retry the activity. Clients should treat `attempt` changes as a reset signal. `last_event_id` is not supported — clients fall back to polling the standard GET endpoint after the stream ends. + * Stream live AI decompilation output (SSE) + * @param functionId Function ID + */ + public streamAiDecompilationWithHttpInfo(functionId: number, _options?: PromiseConfigurationOptions): Promise>> { + const observableOptions = wrapOptions(_options); + const result = this.api.streamAiDecompilationWithHttpInfo(functionId, observableOptions); + return result.toPromise(); + } + + /** + * Opens a Server-Sent Events stream of incremental decompilation events for the given function. Each event has a `type` discriminator (also used as the SSE `event:` line) and a per-attempt monotonic `seq`. Terminal events: `decomp_finished` (success) or `decomp_failed` (all retries exhausted). `attempt_failed` is per-attempt and non-terminal — Temporal may retry the activity. Clients should treat `attempt` changes as a reset signal. `last_event_id` is not supported — clients fall back to polling the standard GET endpoint after the stream ends. + * Stream live AI decompilation output (SSE) + * @param functionId Function ID + */ + public streamAiDecompilation(functionId: number, _options?: PromiseConfigurationOptions): Promise> { + const observableOptions = wrapOptions(_options); + const result = this.api.streamAiDecompilation(functionId, observableOptions); + return result.toPromise(); + } + /** * Updates the content of an existing comment. Users can only update their own comments. * Update a comment