From 5840c594caa5ec300330d387d40a5b2b60c294c3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 12 May 2026 12:17:06 +0000 Subject: [PATCH] Update SDK to version v3.82.0 - Generated from OpenAPI spec version v3.82.0 - Auto-generated by GitHub Actions --- docs/AiDecompilationRating.md | 2 ++ docs/AiDecompilationTaskStatus.md | 2 ++ docs/AnalysisScope.md | 2 ++ docs/AppApiRestV2AnalysesEnumsOrderBy.md | 2 ++ docs/AppApiRestV2CollectionsEnumsOrderBy.md | 2 ++ docs/BinariesTaskStatus.md | 2 ++ docs/BinaryTaskStatus.md | 2 ++ docs/CollectionScope.md | 2 ++ docs/DynamicExecutionStatus.md | 2 ++ docs/FileFormat.md | 2 ++ docs/Filters.md | 2 ++ docs/FunctionSourceType.md | 2 ++ docs/FunctionTaskStatus.md | 2 ++ docs/FunctionsAIDecompilationApi.md | 6 ++++-- docs/ISA.md | 2 ++ docs/ModelName.md | 2 ++ docs/Order.md | 2 ++ docs/Platform.md | 2 ++ docs/RegenerateTarget.md | 2 ++ docs/SandboxStartMethod.md | 2 ++ docs/SandboxTimeout.md | 2 ++ docs/StatusInput.md | 2 ++ docs/StringSource.md | 2 ++ docs/TaskStatus.md | 2 ++ docs/UploadFileType.md | 2 ++ docs/Workspace.md | 2 ++ .../api/functions_ai_decompilation_api.py | 19 ++++++++++++++++++- revengai/models/analysis_update_request.py | 4 ++-- ...app_api_rest_v2_agent_schema_capability.py | 4 ++-- revengai/models/comments_data.py | 4 ++-- revengai/models/decompilation_data.py | 4 ++-- revengai/models/error_body.py | 4 ++-- revengai/models/event_contextcompacted.py | 4 ++-- revengai/models/event_runcancelled.py | 4 ++-- revengai/models/event_runerror.py | 4 ++-- revengai/models/event_runfinished.py | 4 ++-- revengai/models/event_runstarted.py | 4 ++-- revengai/models/event_stepfinished.py | 4 ++-- revengai/models/event_stepstarted.py | 4 ++-- revengai/models/event_textmessagecontent.py | 4 ++-- revengai/models/event_textmessageend.py | 4 ++-- revengai/models/event_textmessagestart.py | 4 ++-- revengai/models/event_titleupdated.py | 4 ++-- revengai/models/event_toolcallargsdelta.py | 4 ++-- revengai/models/event_toolcallend.py | 4 ++-- revengai/models/event_toolcallresult.py | 4 ++-- revengai/models/event_toolcallstart.py | 4 ++-- .../models/event_toolconfirmationrequired.py | 4 ++-- revengai/models/function_list_item.py | 4 ++-- revengai/models/function_matching_filters.py | 4 ++-- revengai/models/get_me_response.py | 4 ++-- revengai/models/ioc.py | 4 ++-- revengai/models/name_source_type.py | 4 ++-- revengai/models/progress_message.py | 4 ++-- revengai/models/report_analysis_response.py | 4 ++-- revengai/models/summary_data.py | 4 ++-- revengai/models/tokenised_data.py | 4 ++-- revengai/models/triage_function_response.py | 4 ++-- revengai/models/vulnerability.py | 4 ++-- revengai/models/workflow_progress.py | 4 ++-- 60 files changed, 138 insertions(+), 69 deletions(-) diff --git a/docs/AiDecompilationRating.md b/docs/AiDecompilationRating.md index 128413c5..6abc206e 100644 --- a/docs/AiDecompilationRating.md +++ b/docs/AiDecompilationRating.md @@ -9,6 +9,8 @@ * `NEUTRAL` (value: `'NEUTRAL'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AiDecompilationTaskStatus.md b/docs/AiDecompilationTaskStatus.md index 31b2899a..5b617da7 100644 --- a/docs/AiDecompilationTaskStatus.md +++ b/docs/AiDecompilationTaskStatus.md @@ -11,6 +11,8 @@ * `SUCCESS` (value: `'success'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnalysisScope.md b/docs/AnalysisScope.md index 83c366fd..ecc6d772 100644 --- a/docs/AnalysisScope.md +++ b/docs/AnalysisScope.md @@ -7,6 +7,8 @@ * `PUBLIC` (value: `'PUBLIC'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AppApiRestV2AnalysesEnumsOrderBy.md b/docs/AppApiRestV2AnalysesEnumsOrderBy.md index 77e5a62f..bfa611f3 100644 --- a/docs/AppApiRestV2AnalysesEnumsOrderBy.md +++ b/docs/AppApiRestV2AnalysesEnumsOrderBy.md @@ -9,6 +9,8 @@ * `SIZE` (value: `'size'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AppApiRestV2CollectionsEnumsOrderBy.md b/docs/AppApiRestV2CollectionsEnumsOrderBy.md index a5e09e47..52359906 100644 --- a/docs/AppApiRestV2CollectionsEnumsOrderBy.md +++ b/docs/AppApiRestV2CollectionsEnumsOrderBy.md @@ -15,6 +15,8 @@ * `UPDATED` (value: `'updated'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BinariesTaskStatus.md b/docs/BinariesTaskStatus.md index 331e76a1..eb5364ce 100644 --- a/docs/BinariesTaskStatus.md +++ b/docs/BinariesTaskStatus.md @@ -13,6 +13,8 @@ * `FAILED` (value: `'FAILED'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BinaryTaskStatus.md b/docs/BinaryTaskStatus.md index 77688a08..caa7aed6 100644 --- a/docs/BinaryTaskStatus.md +++ b/docs/BinaryTaskStatus.md @@ -13,6 +13,8 @@ * `FAILED` (value: `'FAILED'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CollectionScope.md b/docs/CollectionScope.md index e6b307bc..cf3a5554 100644 --- a/docs/CollectionScope.md +++ b/docs/CollectionScope.md @@ -11,6 +11,8 @@ * `TEAM` (value: `'TEAM'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DynamicExecutionStatus.md b/docs/DynamicExecutionStatus.md index ba2846bd..3efd30e3 100644 --- a/docs/DynamicExecutionStatus.md +++ b/docs/DynamicExecutionStatus.md @@ -12,6 +12,8 @@ Custom enum for the dynamic execution status * `ALL` (value: `'ALL'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FileFormat.md b/docs/FileFormat.md index 342767fc..18e78edf 100644 --- a/docs/FileFormat.md +++ b/docs/FileFormat.md @@ -9,6 +9,8 @@ * `BLOB` (value: `'blob'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Filters.md b/docs/Filters.md index 4d123130..00f32773 100644 --- a/docs/Filters.md +++ b/docs/Filters.md @@ -13,6 +13,8 @@ * `HIDE_EMPTY` (value: `'hide_empty'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FunctionSourceType.md b/docs/FunctionSourceType.md index 91c30062..4fff4b8d 100644 --- a/docs/FunctionSourceType.md +++ b/docs/FunctionSourceType.md @@ -13,6 +13,8 @@ * `AI_UNSTRIP` (value: `'AI_UNSTRIP'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FunctionTaskStatus.md b/docs/FunctionTaskStatus.md index fdeb02a1..e4d7ca68 100644 --- a/docs/FunctionTaskStatus.md +++ b/docs/FunctionTaskStatus.md @@ -13,6 +13,8 @@ * `FAILED` (value: `'FAILED'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FunctionsAIDecompilationApi.md b/docs/FunctionsAIDecompilationApi.md index 05840c5f..cbf7c2ce 100644 --- a/docs/FunctionsAIDecompilationApi.md +++ b/docs/FunctionsAIDecompilationApi.md @@ -27,7 +27,7 @@ Method | HTTP request | Description # **create_ai_decompilation** -> CreateAIDecompOutputBody create_ai_decompilation(function_id, context_aware=context_aware) +> CreateAIDecompOutputBody create_ai_decompilation(function_id, context_aware=context_aware, temperature=temperature) Start AI decompilation @@ -71,10 +71,11 @@ with revengai.ApiClient(configuration) as api_client: api_instance = revengai.FunctionsAIDecompilationApi(api_client) function_id = 56 # int | Function ID context_aware = False # bool | Use context-aware decompilation (optional) (default to False) + temperature = -1 # float | LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default. (optional) (default to -1) try: # Start AI decompilation - api_response = api_instance.create_ai_decompilation(function_id, context_aware=context_aware) + api_response = api_instance.create_ai_decompilation(function_id, context_aware=context_aware, temperature=temperature) print("The response of FunctionsAIDecompilationApi->create_ai_decompilation:\n") pprint(api_response) except Exception as e: @@ -90,6 +91,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **function_id** | **int**| Function ID | **context_aware** | **bool**| Use context-aware decompilation | [optional] [default to False] + **temperature** | **float**| LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default. | [optional] [default to -1] ### Return type diff --git a/docs/ISA.md b/docs/ISA.md index 8e6483ff..1d20ca42 100644 --- a/docs/ISA.md +++ b/docs/ISA.md @@ -9,6 +9,8 @@ * `ARM` (value: `'arm'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ModelName.md b/docs/ModelName.md index b93df23b..66644a28 100644 --- a/docs/ModelName.md +++ b/docs/ModelName.md @@ -22,6 +22,8 @@ Custom enum for the model name * `BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_ANDROID` (value: `'binnet-0.7-arm-64-android'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Order.md b/docs/Order.md index 2ad102de..dac9ea3c 100644 --- a/docs/Order.md +++ b/docs/Order.md @@ -7,6 +7,8 @@ * `DESC` (value: `'DESC'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Platform.md b/docs/Platform.md index bba3a060..d360cc89 100644 --- a/docs/Platform.md +++ b/docs/Platform.md @@ -9,6 +9,8 @@ * `ANDROID` (value: `'android'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RegenerateTarget.md b/docs/RegenerateTarget.md index c4f57590..0c47cdd9 100644 --- a/docs/RegenerateTarget.md +++ b/docs/RegenerateTarget.md @@ -7,6 +7,8 @@ * `COMMENTS` (value: `'comments'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SandboxStartMethod.md b/docs/SandboxStartMethod.md index e56c789b..ef3c91c5 100644 --- a/docs/SandboxStartMethod.md +++ b/docs/SandboxStartMethod.md @@ -7,6 +7,8 @@ * `ADMINISTRATOR_PROCESS` (value: `'administrator_process'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SandboxTimeout.md b/docs/SandboxTimeout.md index fbbb59b7..be1e03cc 100644 --- a/docs/SandboxTimeout.md +++ b/docs/SandboxTimeout.md @@ -11,6 +11,8 @@ * `NUMBER_600` (value: `600`) +* `NUMBER_11184809` (value: `11184809`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/StatusInput.md b/docs/StatusInput.md index a51d87cb..6b160cd4 100644 --- a/docs/StatusInput.md +++ b/docs/StatusInput.md @@ -16,6 +16,8 @@ Custom enum for the analysis status * `ALL` (value: `'All'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/StringSource.md b/docs/StringSource.md index 34f7cd47..63dd7bde 100644 --- a/docs/StringSource.md +++ b/docs/StringSource.md @@ -9,6 +9,8 @@ * `AI_AGENT` (value: `'AI_AGENT'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TaskStatus.md b/docs/TaskStatus.md index 9b698d38..0b3e91e8 100644 --- a/docs/TaskStatus.md +++ b/docs/TaskStatus.md @@ -13,6 +13,8 @@ * `FAILED` (value: `'FAILED'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UploadFileType.md b/docs/UploadFileType.md index 5b601368..bf7da79a 100644 --- a/docs/UploadFileType.md +++ b/docs/UploadFileType.md @@ -11,6 +11,8 @@ * `FIRMWARE` (value: `'FIRMWARE'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Workspace.md b/docs/Workspace.md index fc7b8827..86027a4c 100644 --- a/docs/Workspace.md +++ b/docs/Workspace.md @@ -9,6 +9,8 @@ * `PUBLIC` (value: `'public'`) +* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/revengai/api/functions_ai_decompilation_api.py b/revengai/api/functions_ai_decompilation_api.py index 771c64a9..c3a9eb9d 100644 --- a/revengai/api/functions_ai_decompilation_api.py +++ b/revengai/api/functions_ai_decompilation_api.py @@ -16,7 +16,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictBool, StrictInt -from typing import List, Optional +from typing import List, Optional, Union from typing_extensions import Annotated from revengai.models.base_response import BaseResponse from revengai.models.base_response_bool import BaseResponseBool @@ -62,6 +62,7 @@ def create_ai_decompilation( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], context_aware: Annotated[Optional[StrictBool], Field(description="Use context-aware decompilation")] = None, + temperature: Annotated[Optional[Union[Annotated[float, Field(le=1, strict=True, ge=-1)], Annotated[int, Field(le=1, strict=True, ge=-1)]]], Field(description="LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83,6 +84,8 @@ def create_ai_decompilation( :type function_id: int :param context_aware: Use context-aware decompilation :type context_aware: bool + :param temperature: LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default. + :type temperature: float :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -108,6 +111,7 @@ def create_ai_decompilation( _param = self._create_ai_decompilation_serialize( function_id=function_id, context_aware=context_aware, + temperature=temperature, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -138,6 +142,7 @@ def create_ai_decompilation_with_http_info( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], context_aware: Annotated[Optional[StrictBool], Field(description="Use context-aware decompilation")] = None, + temperature: Annotated[Optional[Union[Annotated[float, Field(le=1, strict=True, ge=-1)], Annotated[int, Field(le=1, strict=True, ge=-1)]]], Field(description="LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -159,6 +164,8 @@ def create_ai_decompilation_with_http_info( :type function_id: int :param context_aware: Use context-aware decompilation :type context_aware: bool + :param temperature: LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default. + :type temperature: float :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -184,6 +191,7 @@ def create_ai_decompilation_with_http_info( _param = self._create_ai_decompilation_serialize( function_id=function_id, context_aware=context_aware, + temperature=temperature, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -214,6 +222,7 @@ def create_ai_decompilation_without_preload_content( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], context_aware: Annotated[Optional[StrictBool], Field(description="Use context-aware decompilation")] = None, + temperature: Annotated[Optional[Union[Annotated[float, Field(le=1, strict=True, ge=-1)], Annotated[int, Field(le=1, strict=True, ge=-1)]]], Field(description="LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -235,6 +244,8 @@ def create_ai_decompilation_without_preload_content( :type function_id: int :param context_aware: Use context-aware decompilation :type context_aware: bool + :param temperature: LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default. + :type temperature: float :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -260,6 +271,7 @@ def create_ai_decompilation_without_preload_content( _param = self._create_ai_decompilation_serialize( function_id=function_id, context_aware=context_aware, + temperature=temperature, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -285,6 +297,7 @@ def _create_ai_decompilation_serialize( self, function_id, context_aware, + temperature, _request_auth, _content_type, _headers, @@ -313,6 +326,10 @@ def _create_ai_decompilation_serialize( _query_params.append(('context_aware', context_aware)) + if temperature is not None: + + _query_params.append(('temperature', temperature)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/revengai/models/analysis_update_request.py b/revengai/models/analysis_update_request.py index 1c3db895..3cddf742 100644 --- a/revengai/models/analysis_update_request.py +++ b/revengai/models/analysis_update_request.py @@ -35,8 +35,8 @@ def analysis_scope_validate_enum(cls, value): if value is None: return value - if value not in set(['PUBLIC', 'PRIVATE']): - raise ValueError("must be one of enum values ('PUBLIC', 'PRIVATE')") + if value not in set(['PUBLIC', 'PRIVATE', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('PUBLIC', 'PRIVATE', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/app_api_rest_v2_agent_schema_capability.py b/revengai/models/app_api_rest_v2_agent_schema_capability.py index b53ad63f..80e82fde 100644 --- a/revengai/models/app_api_rest_v2_agent_schema_capability.py +++ b/revengai/models/app_api_rest_v2_agent_schema_capability.py @@ -36,8 +36,8 @@ class AppApiRestV2AgentSchemaCapability(BaseModel): @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['Execute', 'Crypto', 'Network', 'Files', 'Memory', 'String', 'Environment', 'File Header', 'Other']): - raise ValueError("must be one of enum values ('Execute', 'Crypto', 'Network', 'Files', 'Memory', 'String', 'Environment', 'File Header', 'Other')") + if value not in set(['Execute', 'Crypto', 'Network', 'Files', 'Memory', 'String', 'Environment', 'File Header', 'Other', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('Execute', 'Crypto', 'Network', 'Files', 'Memory', 'String', 'Environment', 'File Header', 'Other', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/comments_data.py b/revengai/models/comments_data.py index b5b98b29..76c3edc5 100644 --- a/revengai/models/comments_data.py +++ b/revengai/models/comments_data.py @@ -35,8 +35,8 @@ class CommentsData(BaseModel): @field_validator('task_status') def task_status_validate_enum(cls, value): """Validates the enum""" - if value not in set(['UNINITIALISED', 'PENDING', 'COMPLETED']): - raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'COMPLETED')") + if value not in set(['UNINITIALISED', 'PENDING', 'COMPLETED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'COMPLETED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/decompilation_data.py b/revengai/models/decompilation_data.py index d7433e89..bca9ffeb 100644 --- a/revengai/models/decompilation_data.py +++ b/revengai/models/decompilation_data.py @@ -34,8 +34,8 @@ class DecompilationData(BaseModel): @field_validator('status') def status_validate_enum(cls, value): """Validates the enum""" - if value not in set(['UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED']): - raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED')") + if value not in set(['UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/error_body.py b/revengai/models/error_body.py index f3267fe9..9c0dc5a2 100644 --- a/revengai/models/error_body.py +++ b/revengai/models/error_body.py @@ -36,8 +36,8 @@ class ErrorBody(BaseModel): @field_validator('code') def code_validate_enum(cls, value): """Validates the enum""" - if value not in set(['ACCESS_DENIED', 'ALREADY_EXISTS', 'ANALYSIS_NOT_READY', 'BAD_REQUEST', 'CONFLICT', 'CONVERSATION_NOT_FOUND', 'DOMAIN_ALREADY_CLAIMED', 'DOMAIN_VERIFICATION_PENDING', 'DYNAMIC_EXECUTION_INCOMPLETE', 'EMAIL_NOT_VERIFIED', 'EXTERNAL_USER', 'FORBIDDEN', 'GATEWAY_TIMEOUT', 'INSUFFICIENT_CREDITS', 'INTERNAL_ERROR', 'INTERNAL_ISSUER', 'INVALID_CONVERSATION_ID', 'INVALID_CREDENTIALS', 'INVALID_RESET_CODE', 'LAST_ORG_OWNER', 'LINKED_TO_ORG', 'METHOD_NOT_ALLOWED', 'NOT_ACCEPTABLE', 'NOT_FOUND', 'NO_ACTIVE_RUN', 'NO_PENDING_CONFIRMATION', 'OIDC_DISCOVERY_FAILED', 'PASSWORD_RESET_REQUIRED', 'PAYMENT_REQUIRED', 'REPORT_RENDER_FAILED', 'REQUEST_ENTITY_TOO_LARGE', 'RUN_ALREADY_ACTIVE', 'SELF_DELETION_NOT_ALLOWED', 'SERVICE_UNAVAILABLE', 'TOKEN_EXPIRED', 'TOKEN_REUSED', 'TOO_MANY_REQUESTS', 'UNAUTHORIZED', 'UNSUPPORTED_MEDIA_TYPE', 'VALIDATION_FAILED', 'VERIFICATION_EXPIRED', 'VERIFICATION_NOT_FOUND']): - raise ValueError("must be one of enum values ('ACCESS_DENIED', 'ALREADY_EXISTS', 'ANALYSIS_NOT_READY', 'BAD_REQUEST', 'CONFLICT', 'CONVERSATION_NOT_FOUND', 'DOMAIN_ALREADY_CLAIMED', 'DOMAIN_VERIFICATION_PENDING', 'DYNAMIC_EXECUTION_INCOMPLETE', 'EMAIL_NOT_VERIFIED', 'EXTERNAL_USER', 'FORBIDDEN', 'GATEWAY_TIMEOUT', 'INSUFFICIENT_CREDITS', 'INTERNAL_ERROR', 'INTERNAL_ISSUER', 'INVALID_CONVERSATION_ID', 'INVALID_CREDENTIALS', 'INVALID_RESET_CODE', 'LAST_ORG_OWNER', 'LINKED_TO_ORG', 'METHOD_NOT_ALLOWED', 'NOT_ACCEPTABLE', 'NOT_FOUND', 'NO_ACTIVE_RUN', 'NO_PENDING_CONFIRMATION', 'OIDC_DISCOVERY_FAILED', 'PASSWORD_RESET_REQUIRED', 'PAYMENT_REQUIRED', 'REPORT_RENDER_FAILED', 'REQUEST_ENTITY_TOO_LARGE', 'RUN_ALREADY_ACTIVE', 'SELF_DELETION_NOT_ALLOWED', 'SERVICE_UNAVAILABLE', 'TOKEN_EXPIRED', 'TOKEN_REUSED', 'TOO_MANY_REQUESTS', 'UNAUTHORIZED', 'UNSUPPORTED_MEDIA_TYPE', 'VALIDATION_FAILED', 'VERIFICATION_EXPIRED', 'VERIFICATION_NOT_FOUND')") + if value not in set(['ACCESS_DENIED', 'ALREADY_EXISTS', 'ANALYSIS_NOT_READY', 'BAD_REQUEST', 'CONFLICT', 'CONVERSATION_NOT_FOUND', 'DOMAIN_ALREADY_CLAIMED', 'DOMAIN_VERIFICATION_PENDING', 'DYNAMIC_EXECUTION_INCOMPLETE', 'EMAIL_NOT_VERIFIED', 'EXTERNAL_USER', 'FORBIDDEN', 'GATEWAY_TIMEOUT', 'INSUFFICIENT_CREDITS', 'INTERNAL_ERROR', 'INTERNAL_ISSUER', 'INVALID_CONVERSATION_ID', 'INVALID_CREDENTIALS', 'INVALID_RESET_CODE', 'LAST_ORG_OWNER', 'LINKED_TO_ORG', 'METHOD_NOT_ALLOWED', 'NOT_ACCEPTABLE', 'NOT_FOUND', 'NO_ACTIVE_RUN', 'NO_PENDING_CONFIRMATION', 'OIDC_DISCOVERY_FAILED', 'PASSWORD_RESET_REQUIRED', 'PAYMENT_REQUIRED', 'REPORT_RENDER_FAILED', 'REQUEST_ENTITY_TOO_LARGE', 'RUN_ALREADY_ACTIVE', 'SELF_DELETION_NOT_ALLOWED', 'SERVICE_UNAVAILABLE', 'TOKEN_EXPIRED', 'TOKEN_REUSED', 'TOO_MANY_REQUESTS', 'UNAUTHORIZED', 'UNSUPPORTED_MEDIA_TYPE', 'VALIDATION_FAILED', 'VERIFICATION_EXPIRED', 'VERIFICATION_NOT_FOUND', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('ACCESS_DENIED', 'ALREADY_EXISTS', 'ANALYSIS_NOT_READY', 'BAD_REQUEST', 'CONFLICT', 'CONVERSATION_NOT_FOUND', 'DOMAIN_ALREADY_CLAIMED', 'DOMAIN_VERIFICATION_PENDING', 'DYNAMIC_EXECUTION_INCOMPLETE', 'EMAIL_NOT_VERIFIED', 'EXTERNAL_USER', 'FORBIDDEN', 'GATEWAY_TIMEOUT', 'INSUFFICIENT_CREDITS', 'INTERNAL_ERROR', 'INTERNAL_ISSUER', 'INVALID_CONVERSATION_ID', 'INVALID_CREDENTIALS', 'INVALID_RESET_CODE', 'LAST_ORG_OWNER', 'LINKED_TO_ORG', 'METHOD_NOT_ALLOWED', 'NOT_ACCEPTABLE', 'NOT_FOUND', 'NO_ACTIVE_RUN', 'NO_PENDING_CONFIRMATION', 'OIDC_DISCOVERY_FAILED', 'PASSWORD_RESET_REQUIRED', 'PAYMENT_REQUIRED', 'REPORT_RENDER_FAILED', 'REQUEST_ENTITY_TOO_LARGE', 'RUN_ALREADY_ACTIVE', 'SELF_DELETION_NOT_ALLOWED', 'SERVICE_UNAVAILABLE', 'TOKEN_EXPIRED', 'TOKEN_REUSED', 'TOO_MANY_REQUESTS', 'UNAUTHORIZED', 'UNSUPPORTED_MEDIA_TYPE', 'VALIDATION_FAILED', 'VERIFICATION_EXPIRED', 'VERIFICATION_NOT_FOUND', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_contextcompacted.py b/revengai/models/event_contextcompacted.py index c9eb0ba2..d8d554f8 100644 --- a/revengai/models/event_contextcompacted.py +++ b/revengai/models/event_contextcompacted.py @@ -35,8 +35,8 @@ class EventCONTEXTCOMPACTED(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['CONTEXT_COMPACTED']): - raise ValueError("must be one of enum values ('CONTEXT_COMPACTED')") + if value not in set(['CONTEXT_COMPACTED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('CONTEXT_COMPACTED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_runcancelled.py b/revengai/models/event_runcancelled.py index 796621bf..c27091ad 100644 --- a/revengai/models/event_runcancelled.py +++ b/revengai/models/event_runcancelled.py @@ -35,8 +35,8 @@ class EventRUNCANCELLED(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['RUN_CANCELLED']): - raise ValueError("must be one of enum values ('RUN_CANCELLED')") + if value not in set(['RUN_CANCELLED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('RUN_CANCELLED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_runerror.py b/revengai/models/event_runerror.py index 7dd4658f..d924f5e3 100644 --- a/revengai/models/event_runerror.py +++ b/revengai/models/event_runerror.py @@ -35,8 +35,8 @@ class EventRUNERROR(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['RUN_ERROR']): - raise ValueError("must be one of enum values ('RUN_ERROR')") + if value not in set(['RUN_ERROR', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('RUN_ERROR', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_runfinished.py b/revengai/models/event_runfinished.py index 8306477e..74dba995 100644 --- a/revengai/models/event_runfinished.py +++ b/revengai/models/event_runfinished.py @@ -35,8 +35,8 @@ class EventRUNFINISHED(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['RUN_FINISHED']): - raise ValueError("must be one of enum values ('RUN_FINISHED')") + if value not in set(['RUN_FINISHED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('RUN_FINISHED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_runstarted.py b/revengai/models/event_runstarted.py index 1596b55f..eaa42150 100644 --- a/revengai/models/event_runstarted.py +++ b/revengai/models/event_runstarted.py @@ -35,8 +35,8 @@ class EventRUNSTARTED(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['RUN_STARTED']): - raise ValueError("must be one of enum values ('RUN_STARTED')") + if value not in set(['RUN_STARTED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('RUN_STARTED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_stepfinished.py b/revengai/models/event_stepfinished.py index 3c8aa8ab..1f428b9e 100644 --- a/revengai/models/event_stepfinished.py +++ b/revengai/models/event_stepfinished.py @@ -35,8 +35,8 @@ class EventSTEPFINISHED(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['STEP_FINISHED']): - raise ValueError("must be one of enum values ('STEP_FINISHED')") + if value not in set(['STEP_FINISHED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('STEP_FINISHED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_stepstarted.py b/revengai/models/event_stepstarted.py index c5d3bccf..3b0b61e6 100644 --- a/revengai/models/event_stepstarted.py +++ b/revengai/models/event_stepstarted.py @@ -35,8 +35,8 @@ class EventSTEPSTARTED(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['STEP_STARTED']): - raise ValueError("must be one of enum values ('STEP_STARTED')") + if value not in set(['STEP_STARTED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('STEP_STARTED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_textmessagecontent.py b/revengai/models/event_textmessagecontent.py index 79ae13d4..0b357f49 100644 --- a/revengai/models/event_textmessagecontent.py +++ b/revengai/models/event_textmessagecontent.py @@ -35,8 +35,8 @@ class EventTEXTMESSAGECONTENT(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['TEXT_MESSAGE_CONTENT']): - raise ValueError("must be one of enum values ('TEXT_MESSAGE_CONTENT')") + if value not in set(['TEXT_MESSAGE_CONTENT', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('TEXT_MESSAGE_CONTENT', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_textmessageend.py b/revengai/models/event_textmessageend.py index 9a70ca82..f2310625 100644 --- a/revengai/models/event_textmessageend.py +++ b/revengai/models/event_textmessageend.py @@ -35,8 +35,8 @@ class EventTEXTMESSAGEEND(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['TEXT_MESSAGE_END']): - raise ValueError("must be one of enum values ('TEXT_MESSAGE_END')") + if value not in set(['TEXT_MESSAGE_END', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('TEXT_MESSAGE_END', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_textmessagestart.py b/revengai/models/event_textmessagestart.py index a54e5b3f..9c7c8eb1 100644 --- a/revengai/models/event_textmessagestart.py +++ b/revengai/models/event_textmessagestart.py @@ -35,8 +35,8 @@ class EventTEXTMESSAGESTART(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['TEXT_MESSAGE_START']): - raise ValueError("must be one of enum values ('TEXT_MESSAGE_START')") + if value not in set(['TEXT_MESSAGE_START', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('TEXT_MESSAGE_START', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_titleupdated.py b/revengai/models/event_titleupdated.py index aa2e7403..16ad60e2 100644 --- a/revengai/models/event_titleupdated.py +++ b/revengai/models/event_titleupdated.py @@ -35,8 +35,8 @@ class EventTITLEUPDATED(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['TITLE_UPDATED']): - raise ValueError("must be one of enum values ('TITLE_UPDATED')") + if value not in set(['TITLE_UPDATED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('TITLE_UPDATED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_toolcallargsdelta.py b/revengai/models/event_toolcallargsdelta.py index a8657622..b9de31f2 100644 --- a/revengai/models/event_toolcallargsdelta.py +++ b/revengai/models/event_toolcallargsdelta.py @@ -35,8 +35,8 @@ class EventTOOLCALLARGSDELTA(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['TOOL_CALL_ARGS_DELTA']): - raise ValueError("must be one of enum values ('TOOL_CALL_ARGS_DELTA')") + if value not in set(['TOOL_CALL_ARGS_DELTA', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('TOOL_CALL_ARGS_DELTA', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_toolcallend.py b/revengai/models/event_toolcallend.py index bcdb9ed4..d63c9b1e 100644 --- a/revengai/models/event_toolcallend.py +++ b/revengai/models/event_toolcallend.py @@ -35,8 +35,8 @@ class EventTOOLCALLEND(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['TOOL_CALL_END']): - raise ValueError("must be one of enum values ('TOOL_CALL_END')") + if value not in set(['TOOL_CALL_END', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('TOOL_CALL_END', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_toolcallresult.py b/revengai/models/event_toolcallresult.py index 6b7ffe76..44a12abe 100644 --- a/revengai/models/event_toolcallresult.py +++ b/revengai/models/event_toolcallresult.py @@ -35,8 +35,8 @@ class EventTOOLCALLRESULT(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['TOOL_CALL_RESULT']): - raise ValueError("must be one of enum values ('TOOL_CALL_RESULT')") + if value not in set(['TOOL_CALL_RESULT', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('TOOL_CALL_RESULT', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_toolcallstart.py b/revengai/models/event_toolcallstart.py index 9b64c181..bae68994 100644 --- a/revengai/models/event_toolcallstart.py +++ b/revengai/models/event_toolcallstart.py @@ -35,8 +35,8 @@ class EventTOOLCALLSTART(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['TOOL_CALL_START']): - raise ValueError("must be one of enum values ('TOOL_CALL_START')") + if value not in set(['TOOL_CALL_START', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('TOOL_CALL_START', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/event_toolconfirmationrequired.py b/revengai/models/event_toolconfirmationrequired.py index 568bea79..db1b2d59 100644 --- a/revengai/models/event_toolconfirmationrequired.py +++ b/revengai/models/event_toolconfirmationrequired.py @@ -35,8 +35,8 @@ class EventTOOLCONFIRMATIONREQUIRED(BaseModel): @field_validator('event') def event_validate_enum(cls, value): """Validates the enum""" - if value not in set(['TOOL_CONFIRMATION_REQUIRED']): - raise ValueError("must be one of enum values ('TOOL_CONFIRMATION_REQUIRED')") + if value not in set(['TOOL_CONFIRMATION_REQUIRED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('TOOL_CONFIRMATION_REQUIRED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/function_list_item.py b/revengai/models/function_list_item.py index e7c3f9a6..8f130ff0 100644 --- a/revengai/models/function_list_item.py +++ b/revengai/models/function_list_item.py @@ -39,8 +39,8 @@ class FunctionListItem(BaseModel): @field_validator('name_source_type') def name_source_type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['SYSTEM', 'USER', 'AUTO_UNSTRIP', 'EXTERNAL', 'AI_UNSTRIP', 'AI_AGENT']): - raise ValueError("must be one of enum values ('SYSTEM', 'USER', 'AUTO_UNSTRIP', 'EXTERNAL', 'AI_UNSTRIP', 'AI_AGENT')") + if value not in set(['SYSTEM', 'USER', 'AUTO_UNSTRIP', 'EXTERNAL', 'AI_UNSTRIP', 'AI_AGENT', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('SYSTEM', 'USER', 'AUTO_UNSTRIP', 'EXTERNAL', 'AI_UNSTRIP', 'AI_AGENT', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/function_matching_filters.py b/revengai/models/function_matching_filters.py index 21b01024..270dbb9d 100644 --- a/revengai/models/function_matching_filters.py +++ b/revengai/models/function_matching_filters.py @@ -39,8 +39,8 @@ def debug_types_validate_enum(cls, value): return value for i in value: - if i not in set(['USER', 'SYSTEM', 'EXTERNAL']): - raise ValueError("each list item must be one of ('USER', 'SYSTEM', 'EXTERNAL')") + if i not in set(['USER', 'SYSTEM', 'EXTERNAL', 'unknown_default_open_api']): + raise ValueError("each list item must be one of ('USER', 'SYSTEM', 'EXTERNAL', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/get_me_response.py b/revengai/models/get_me_response.py index 2f191f95..4eb1fd47 100644 --- a/revengai/models/get_me_response.py +++ b/revengai/models/get_me_response.py @@ -39,8 +39,8 @@ class GetMeResponse(BaseModel): @field_validator('role') def role_validate_enum(cls, value): """Validates the enum""" - if value not in set(['USER', 'ADMIN', 'SUPERADMIN', 'SYSTEM']): - raise ValueError("must be one of enum values ('USER', 'ADMIN', 'SUPERADMIN', 'SYSTEM')") + if value not in set(['USER', 'ADMIN', 'SUPERADMIN', 'SYSTEM', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('USER', 'ADMIN', 'SUPERADMIN', 'SYSTEM', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/ioc.py b/revengai/models/ioc.py index d387d8c0..c08dcecf 100644 --- a/revengai/models/ioc.py +++ b/revengai/models/ioc.py @@ -36,8 +36,8 @@ class IOC(BaseModel): @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['ip', 'domain', 'url', 'usernames', 'passwords', 'file_hash', 'mutex', 'registry_key', 'filename', 'email', 'c2_endpoint', 'user_agent', 'pem_key', 'ssh_key', 'network_port', 'ja3', 'ssl_cert_fingerprint', 'http_header', 'service', 'scheduled_task', 'pe_header', 'entropy', 'other']): - raise ValueError("must be one of enum values ('ip', 'domain', 'url', 'usernames', 'passwords', 'file_hash', 'mutex', 'registry_key', 'filename', 'email', 'c2_endpoint', 'user_agent', 'pem_key', 'ssh_key', 'network_port', 'ja3', 'ssl_cert_fingerprint', 'http_header', 'service', 'scheduled_task', 'pe_header', 'entropy', 'other')") + if value not in set(['ip', 'domain', 'url', 'usernames', 'passwords', 'file_hash', 'mutex', 'registry_key', 'filename', 'email', 'c2_endpoint', 'user_agent', 'pem_key', 'ssh_key', 'network_port', 'ja3', 'ssl_cert_fingerprint', 'http_header', 'service', 'scheduled_task', 'pe_header', 'entropy', 'other', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('ip', 'domain', 'url', 'usernames', 'passwords', 'file_hash', 'mutex', 'registry_key', 'filename', 'email', 'c2_endpoint', 'user_agent', 'pem_key', 'ssh_key', 'network_port', 'ja3', 'ssl_cert_fingerprint', 'http_header', 'service', 'scheduled_task', 'pe_header', 'entropy', 'other', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/name_source_type.py b/revengai/models/name_source_type.py index 4fd23482..789d1fda 100644 --- a/revengai/models/name_source_type.py +++ b/revengai/models/name_source_type.py @@ -34,8 +34,8 @@ class NameSourceType(BaseModel): @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['SYSTEM', 'USER', 'AUTO_UNSTRIP', 'EXTERNAL', 'AI_UNSTRIP', 'AI_AGENT']): - raise ValueError("must be one of enum values ('SYSTEM', 'USER', 'AUTO_UNSTRIP', 'EXTERNAL', 'AI_UNSTRIP', 'AI_AGENT')") + if value not in set(['SYSTEM', 'USER', 'AUTO_UNSTRIP', 'EXTERNAL', 'AI_UNSTRIP', 'AI_AGENT', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('SYSTEM', 'USER', 'AUTO_UNSTRIP', 'EXTERNAL', 'AI_UNSTRIP', 'AI_AGENT', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/progress_message.py b/revengai/models/progress_message.py index 66c945e0..ba5b8f2b 100644 --- a/revengai/models/progress_message.py +++ b/revengai/models/progress_message.py @@ -36,8 +36,8 @@ class ProgressMessage(BaseModel): @field_validator('level') def level_validate_enum(cls, value): """Validates the enum""" - if value not in set(['INFO', 'WARN', 'ERROR']): - raise ValueError("must be one of enum values ('INFO', 'WARN', 'ERROR')") + if value not in set(['INFO', 'WARN', 'ERROR', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('INFO', 'WARN', 'ERROR', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/report_analysis_response.py b/revengai/models/report_analysis_response.py index 6b21ad6c..26366dbf 100644 --- a/revengai/models/report_analysis_response.py +++ b/revengai/models/report_analysis_response.py @@ -40,8 +40,8 @@ class ReportAnalysisResponse(BaseModel): @field_validator('software_type') def software_type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['Malicious', 'Benign', 'Potentially Unwanted Application (PUA)', 'Legitimate', 'Backdoored Legitimate Software']): - raise ValueError("must be one of enum values ('Malicious', 'Benign', 'Potentially Unwanted Application (PUA)', 'Legitimate', 'Backdoored Legitimate Software')") + if value not in set(['Malicious', 'Benign', 'Potentially Unwanted Application (PUA)', 'Legitimate', 'Backdoored Legitimate Software', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('Malicious', 'Benign', 'Potentially Unwanted Application (PUA)', 'Legitimate', 'Backdoored Legitimate Software', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/summary_data.py b/revengai/models/summary_data.py index aad4dcbd..d8d42c08 100644 --- a/revengai/models/summary_data.py +++ b/revengai/models/summary_data.py @@ -35,8 +35,8 @@ class SummaryData(BaseModel): @field_validator('task_status') def task_status_validate_enum(cls, value): """Validates the enum""" - if value not in set(['UNINITIALISED', 'PENDING', 'COMPLETED']): - raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'COMPLETED')") + if value not in set(['UNINITIALISED', 'PENDING', 'COMPLETED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'COMPLETED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/tokenised_data.py b/revengai/models/tokenised_data.py index fb1e6869..90137171 100644 --- a/revengai/models/tokenised_data.py +++ b/revengai/models/tokenised_data.py @@ -37,8 +37,8 @@ class TokenisedData(BaseModel): @field_validator('status') def status_validate_enum(cls, value): """Validates the enum""" - if value not in set(['UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED']): - raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED')") + if value not in set(['UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/triage_function_response.py b/revengai/models/triage_function_response.py index 2210859a..205955ea 100644 --- a/revengai/models/triage_function_response.py +++ b/revengai/models/triage_function_response.py @@ -37,8 +37,8 @@ class TriageFunctionResponse(BaseModel): def capabilities_validate_enum(cls, value): """Validates the enum""" for i in value: - if i not in set(['packing_and_obfuscation', 'defense_evasion', 'privilege_escalation', 'persistence_mechanisms', 'discovery_and_reconnaissance', 'credential_and_data_collection', 'communication_and_c2', 'cryptographic_operations', 'process_and_memory_manipulation', 'process_and_command_execution', 'file_activity']): - raise ValueError("each list item must be one of ('packing_and_obfuscation', 'defense_evasion', 'privilege_escalation', 'persistence_mechanisms', 'discovery_and_reconnaissance', 'credential_and_data_collection', 'communication_and_c2', 'cryptographic_operations', 'process_and_memory_manipulation', 'process_and_command_execution', 'file_activity')") + if i not in set(['packing_and_obfuscation', 'defense_evasion', 'privilege_escalation', 'persistence_mechanisms', 'discovery_and_reconnaissance', 'credential_and_data_collection', 'communication_and_c2', 'cryptographic_operations', 'process_and_memory_manipulation', 'process_and_command_execution', 'file_activity', 'unknown_default_open_api']): + raise ValueError("each list item must be one of ('packing_and_obfuscation', 'defense_evasion', 'privilege_escalation', 'persistence_mechanisms', 'discovery_and_reconnaissance', 'credential_and_data_collection', 'communication_and_c2', 'cryptographic_operations', 'process_and_memory_manipulation', 'process_and_command_execution', 'file_activity', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/vulnerability.py b/revengai/models/vulnerability.py index f91e5e3b..4ec4d761 100644 --- a/revengai/models/vulnerability.py +++ b/revengai/models/vulnerability.py @@ -41,8 +41,8 @@ class Vulnerability(BaseModel): @field_validator('severity') def severity_validate_enum(cls, value): """Validates the enum""" - if value not in set(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW', 'UNKNOWN']): - raise ValueError("must be one of enum values ('CRITICAL', 'HIGH', 'MEDIUM', 'LOW', 'UNKNOWN')") + if value not in set(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW', 'UNKNOWN', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('CRITICAL', 'HIGH', 'MEDIUM', 'LOW', 'UNKNOWN', 'unknown_default_open_api')") return value model_config = ConfigDict( diff --git a/revengai/models/workflow_progress.py b/revengai/models/workflow_progress.py index 2c98b44a..7dc641dd 100644 --- a/revengai/models/workflow_progress.py +++ b/revengai/models/workflow_progress.py @@ -38,8 +38,8 @@ class WorkflowProgress(BaseModel): @field_validator('status') def status_validate_enum(cls, value): """Validates the enum""" - if value not in set(['UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED']): - raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED')") + if value not in set(['UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED', 'unknown_default_open_api']): + raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'RUNNING', 'COMPLETED', 'FAILED', 'unknown_default_open_api')") return value model_config = ConfigDict(