diff --git a/docs/AiDecompilationRating.md b/docs/AiDecompilationRating.md index 128413c..6abc206 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 31b2899..5b617da 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 83c366f..ecc6d77 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 77e5a62..bfa611f 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 a5e09e4..5235990 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 331e76a..eb5364c 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 77688a0..caa7aed 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 e6b307b..cf3a555 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 ba2846b..3efd30e 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 342767f..18e78ed 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 4d12313..00f3277 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 91c3006..4fff4b8 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 fdeb02a..e4d7ca6 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 05840c5..cbf7c2c 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 8e6483f..1d20ca4 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 b93df23..66644a2 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 2ad102d..dac9ea3 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 bba3a06..d360cc8 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 c4f5759..0c47cdd 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 e56c789..ef3c91c 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 fbbb59b..be1e03c 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 a51d87c..6b160cd 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 34f7cd4..63dd7bd 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 9b698d3..0b3e91e 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 5b60136..bf7da79 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 fc7b882..86027a4 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 771c64a..c3a9eb9 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 1c3db89..3cddf74 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 b53ad63..80e82fd 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 b5b98b2..76c3edc 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 d7433e8..bca9ffe 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 f3267fe..9c0dc5a 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 c9eb0ba..d8d554f 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 796621b..c27091a 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 7dd4658..d924f5e 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 8306477..74dba99 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 1596b55..eaa4215 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 3c8aa8a..1f428b9 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 c5d3bcc..3b0b61e 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 79ae13d..0b357f4 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 9a70ca8..f231062 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 a54e5b3..9c7c8eb 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 aa2e740..16ad60e 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 a865762..b9de31f 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 bcdb9ed..d63c9b1 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 6b7ffe7..44a12ab 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 9b64c18..bae6899 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 568bea7..db1b2d5 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 e7c3f9a..8f130ff 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 21b0102..270dbb9 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 2f191f9..4eb1fd4 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 d387d8c..c08dcec 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 4fd2348..789d1fd 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 66c945e..ba5b8f2 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 6b21ad6..26366db 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 aad4dcb..d8d42c0 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 fb1e686..9013717 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 2210859..205955e 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 f91e5e3..4ec4d76 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 2c98b44..7dc641d 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(