From 9aeabe52136c508e27e3b6ddfa8fb9b59f9e1b9e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 28 Jul 2026 07:00:54 +0000 Subject: [PATCH] Update SDK to version v3.124.0 - Generated from OpenAPI spec version v3.124.0 - Auto-generated by GitHub Actions --- README.md | 357 +- docs/AdditionalDetailsStatusResponse.md | 29 - docs/AgentApi.md | 782 --- docs/AiDecompilationRating.md | 16 - docs/AnalysesBulkActionsApi.md | 186 - docs/AnalysesCommentsApi.md | 371 -- docs/AnalysesCoreApi.md | 1605 +----- docs/AnalysesResultsMetadataApi.md | 538 -- docs/AnalysesXRefsApi.md | 98 - docs/AnalysisAccessInfo.md | 30 - docs/AnalysisBulkAddTagsRequest.md | 30 - docs/AnalysisBulkAddTagsResponse.md | 29 - docs/AnalysisBulkAddTagsResponseItem.md | 31 - docs/AnalysisConfig.md | 35 - docs/AnalysisConfigSnapshot.md | 34 - docs/AnalysisCreateRequest.md | 37 - docs/AnalysisCreateResponse.md | 30 - docs/AnalysisDetailResponse.md | 45 - docs/AnalysisFunctionMapping.md | 29 - docs/AnalysisFunctions.md | 29 - docs/AnalysisFunctionsList.md | 30 - docs/AnalysisRecord.md | 45 - docs/AnalysisScope.md | 16 - docs/AnalysisStringInput.md | 32 - docs/AnalysisStringsResponse.md | 30 - docs/AnalysisStringsStatusResponse.md | 29 - docs/AnalysisTags.md | 29 - docs/AnalysisUpdateRequest.md | 30 - docs/AnalysisUpdateTagsRequest.md | 29 - docs/AnalysisUpdateTagsResponse.md | 29 - docs/AppApiRestV2AgentSchemaCapability.md | 34 - docs/AppApiRestV2AnalysesEnumsOrderBy.md | 16 - docs/AppApiRestV2CollectionsEnumsOrderBy.md | 20 - .../AppApiRestV2FunctionsResponsesFunction.md | 31 - docs/AppApiRestV2FunctionsTypesFunction.md | 34 - docs/AppApiRestV2InfoTypesCapability.md | 31 - docs/Argument.md | 33 - docs/AuthenticationUsersApi.md | 262 - docs/AutoRunAgents.md | 29 - docs/BaseResponse.md | 33 - ...ResponseAdditionalDetailsStatusResponse.md | 33 - ...BaseResponseAnalysisBulkAddTagsResponse.md | 33 - docs/BaseResponseAnalysisCreateResponse.md | 33 - docs/BaseResponseAnalysisDetailResponse.md | 33 - docs/BaseResponseAnalysisFunctionMapping.md | 33 - docs/BaseResponseAnalysisFunctions.md | 33 - docs/BaseResponseAnalysisFunctionsList.md | 33 - docs/BaseResponseAnalysisStringsResponse.md | 33 - ...seResponseAnalysisStringsStatusResponse.md | 33 - docs/BaseResponseAnalysisTags.md | 33 - .../BaseResponseAnalysisUpdateTagsResponse.md | 33 - docs/BaseResponseBasic.md | 33 - ...seResponseBinariesRelatedStatusResponse.md | 33 - docs/BaseResponseBinaryAdditionalResponse.md | 33 - docs/BaseResponseBinaryDetailsResponse.md | 33 - docs/BaseResponseBinaryExternalsResponse.md | 33 - docs/BaseResponseBinarySearchResponse.md | 33 - docs/BaseResponseBool.md | 33 - ...eResponseCalleesCallerFunctionsResponse.md | 33 - docs/BaseResponseCapabilities.md | 33 - docs/BaseResponseCapabilitiesAgentResponse.md | 33 - docs/BaseResponseChildBinariesResponse.md | 33 - ...esponseCollectionBinariesUpdateResponse.md | 33 - docs/BaseResponseCollectionResponse.md | 33 - docs/BaseResponseCollectionSearchResponse.md | 33 - ...aseResponseCollectionTagsUpdateResponse.md | 33 - docs/BaseResponseCommentResponse.md | 33 - docs/BaseResponseConfigResponse.md | 33 - docs/BaseResponseCreated.md | 33 - docs/BaseResponseDict.md | 33 - docs/BaseResponseExternalResponse.md | 33 - docs/BaseResponseFunctionBlocksResponse.md | 33 - .../BaseResponseFunctionCapabilityResponse.md | 33 - docs/BaseResponseFunctionDataTypes.md | 33 - docs/BaseResponseFunctionDataTypesList.md | 33 - docs/BaseResponseFunctionSearchResponse.md | 33 - docs/BaseResponseFunctionStringsResponse.md | 33 - docs/BaseResponseFunctionsDetailResponse.md | 33 - docs/BaseResponseGenerateFunctionDataTypes.md | 33 - docs/BaseResponseGenerationStatusList.md | 33 - docs/BaseResponseGetPublicUserResponse.md | 33 - ...ponseListCalleesCallerFunctionsResponse.md | 33 - docs/BaseResponseListCollectionResults.md | 33 - docs/BaseResponseListCommentResponse.md | 33 - docs/BaseResponseListDieMatch.md | 33 - docs/BaseResponseListFunctionNameHistory.md | 33 - docs/BaseResponseListSBOM.md | 33 - docs/BaseResponseListUserActivityResponse.md | 33 - docs/BaseResponseLogs.md | 33 - docs/BaseResponseModelsResponse.md | 33 - docs/BaseResponseParams.md | 33 - .../BaseResponseQueuedWorkflowTaskResponse.md | 33 - docs/BaseResponseRecent.md | 33 - docs/BaseResponseReportAnalysisResponse.md | 33 - docs/BaseResponseStatus.md | 33 - docs/BaseResponseStr.md | 33 - docs/BaseResponseTagSearchResponse.md | 33 - docs/BaseResponseTaskResponse.md | 33 - docs/BaseResponseTaskStatusResponse.md | 33 - docs/BaseResponseTriageReportResponse.md | 33 - ...etAiDecompilationRatingResponseNoneType.md | 33 - docs/BaseResponseUploadResponse.md | 33 - docs/BaseResponseVulnerabilities.md | 33 - docs/BaseResponseXrefResponse.md | 33 - docs/Basic.md | 46 - docs/BinariesApi.md | 700 +-- docs/BinariesRelatedStatusResponse.md | 29 - docs/BinariesTaskStatus.md | 20 - docs/BinaryAdditionalDetailsDataResponse.md | 31 - docs/BinaryAdditionalResponse.md | 31 - docs/BinaryConfig.md | 31 - docs/BinaryDetailsResponse.md | 48 - docs/BinaryExternalsResponse.md | 33 - docs/BinarySearchResponse.md | 29 - docs/BinarySearchResult.md | 37 - docs/BinaryTaskStatus.md | 20 - docs/BulkDeleteAnalysesRequest.md | 29 - docs/CalleeFunctionInfo.md | 34 - docs/CalleesCallerFunctionsResponse.md | 31 - docs/CallerFunctionInfo.md | 34 - docs/Capabilities.md | 29 - docs/CapabilitiesAgentResponse.md | 29 - docs/ChildBinariesResponse.md | 30 - docs/CodeSignatureModel.md | 31 - docs/CollectionBinariesUpdateRequest.md | 29 - docs/CollectionBinariesUpdateResponse.md | 29 - docs/CollectionBinaryResponse.md | 35 - docs/CollectionCreateRequest.md | 33 - docs/CollectionListItem.md | 38 - docs/CollectionResponse.md | 38 - docs/CollectionResponseBinariesInner.md | 35 - docs/CollectionScope.md | 18 - docs/CollectionSearchResponse.md | 29 - docs/CollectionSearchResult.md | 38 - docs/CollectionTagsUpdateRequest.md | 29 - docs/CollectionTagsUpdateResponse.md | 29 - docs/CollectionUpdateRequest.md | 31 - docs/CollectionsApi.md | 642 --- docs/CommentBase.md | 29 - docs/CommentResponse.md | 36 - docs/CommentUpdateRequest.md | 29 - docs/ConfigApi.md | 91 - docs/ConfigResponse.md | 32 - docs/Context.md | 30 - docs/Created.md | 31 - docs/DecompilationCommentContext.md | 30 - docs/DieMatch.md | 32 - docs/DynamicExecutionStatus.md | 19 - docs/ELFImportModel.md | 30 - docs/ELFModel.md | 48 - docs/ELFRelocation.md | 36 - docs/ELFSection.md | 38 - docs/ELFSecurity.md | 33 - docs/ELFSegment.md | 37 - docs/ELFSymbol.md | 36 - docs/ElfDynamicEntry.md | 30 - docs/EntrypointModel.md | 30 - docs/Enumeration.md | 32 - docs/ErrorModel.md | 30 - docs/ExportModel.md | 30 - docs/ExternalResponse.md | 31 - docs/ExternalSourcesApi.md | 265 - docs/FileFormat.md | 16 - docs/FileHashes.md | 36 - docs/FileMetadata.md | 32 - docs/Filters.md | 20 - docs/FirmwareApi.md | 183 - docs/FunctionBlockDestinationResponse.md | 31 - docs/FunctionBlockResponse.md | 34 - docs/FunctionBlocksResponse.md | 33 - docs/FunctionBoundary.md | 32 - docs/FunctionCapabilityResponse.md | 29 - docs/FunctionDataTypes.md | 32 - docs/FunctionDataTypesList.md | 31 - docs/FunctionDataTypesListItem.md | 33 - docs/FunctionDataTypesParams.md | 29 - docs/FunctionDataTypesStatus.md | 31 - docs/FunctionListItem.md | 36 - docs/FunctionLocalVariableResponse.md | 33 - docs/FunctionMapping.md | 31 - docs/FunctionNameHistory.md | 35 - docs/FunctionParamResponse.md | 33 - docs/FunctionRename.md | 30 - docs/FunctionRenameMap.md | 31 - docs/FunctionSearchResponse.md | 29 - docs/FunctionSearchResult.md | 35 - docs/FunctionSourceType.md | 22 - docs/FunctionString.md | 31 - docs/FunctionStringsResponse.md | 31 - docs/FunctionsAIDecompilationApi.md | 173 - docs/FunctionsCoreApi.md | 834 +-- docs/FunctionsDataTypesApi.md | 354 -- docs/FunctionsDetailResponse.md | 39 - docs/FunctionsListRename.md | 29 - docs/FunctionsRenamingHistoryApi.md | 368 +- docs/GenerateFunctionDataTypes.md | 31 - docs/GenerationStatusList.md | 31 - docs/GetAiDecompilationRatingResponse.md | 30 - docs/GetPublicUserResponse.md | 30 - docs/GlobalVariable.md | 34 - docs/IOC.md | 34 - docs/ISA.md | 16 - docs/IconModel.md | 29 - docs/ImportModel.md | 30 - docs/InsertAnalysisLogRequest.md | 29 - docs/ListCollectionResults.md | 29 - docs/Logs.md | 29 - docs/MITRETechnique.md | 38 - docs/MetaModel.md | 29 - docs/ModelName.md | 29 - docs/ModelsApi.md | 91 - docs/ModelsResponse.md | 29 - docs/NameSourceType.md | 32 - docs/Order.md | 14 - docs/PDBDebugModel.md | 29 - docs/PEModel.md | 48 - docs/PaginationModel.md | 31 - docs/Params.md | 35 - docs/Platform.md | 16 - docs/PutAnalysisStringsRequest.md | 29 - docs/QueuedWorkflowTaskResponse.md | 29 - docs/ReAnalysisForm.md | 35 - docs/Recent.md | 29 - docs/RelativeBinaryResponse.md | 32 - docs/ReportAnalysisResponse.md | 36 - docs/SBOM.md | 30 - docs/SBOMPackage.md | 30 - docs/SandboxOptions.md | 35 - docs/SandboxStartMethod.md | 14 - docs/SandboxTimeout.md | 18 - docs/ScrapeThirdPartyConfig.md | 29 - docs/SearchApi.md | 403 -- docs/SectionModel.md | 30 - docs/SecurityModel.md | 39 - docs/SegmentInfo.md | 35 - docs/SingleCodeCertificateModel.md | 34 - docs/SingleCodeSignatureModel.md | 30 - docs/SinglePDBEntryModel.md | 31 - docs/SingleSectionModel.md | 35 - docs/StackVariable.md | 34 - docs/StartBatchMatchingInputBody.md | 2 +- docs/StatusInput.md | 23 - docs/StatusOutput.md | 30 - docs/StringFunctions.md | 32 - docs/StringSource.md | 16 - docs/Structure.md | 33 - docs/StructureMember.md | 33 - docs/SubmitUserFeedbackRequest.md | 31 - docs/Symbols.md | 30 - docs/Tag.md | 29 - docs/TagItem.md | 31 - docs/TagResponse.md | 30 - docs/TagSearchResponse.md | 29 - docs/TagSearchResult.md | 30 - docs/TaskResponse.md | 30 - docs/TaskStatus.md | 20 - docs/TaskStatusResponse.md | 30 - docs/TimestampModel.md | 31 - docs/TriageFunctionResponse.md | 33 - docs/TriageReportResponse.md | 31 - docs/TypeDefinition.md | 32 - docs/UploadFileType.md | 18 - docs/UploadResponse.md | 35 - docs/UpsertAiDecomplationRatingRequest.md | 30 - docs/UserActivityResponse.md | 34 - docs/V2FunctionHeader.md | 33 - docs/V2FunctionInfo.md | 30 - docs/V2FunctionInfoFuncDepsInner.md | 35 - docs/V2FunctionType.md | 36 - docs/Vulnerabilities.md | 29 - docs/Vulnerability.md | 39 - docs/Workspace.md | 16 - docs/XrefFromResponse.md | 37 - docs/XrefResponse.md | 30 - docs/XrefToResponse.md | 37 - revengai/__init__.py | 532 -- revengai/api/__init__.py | 11 - revengai/api/agent_api.py | 2405 -------- revengai/api/analyses_bulk_actions_api.py | 600 -- revengai/api/analyses_comments_api.py | 1202 ---- revengai/api/analyses_core_api.py | 5084 ++--------------- revengai/api/analyses_results_metadata_api.py | 1763 ------ revengai/api/analyses_x_refs_api.py | 320 -- revengai/api/authentication_users_api.py | 826 --- revengai/api/binaries_api.py | 2264 +------- revengai/api/collections_api.py | 2160 +------ revengai/api/config_api.py | 285 - revengai/api/external_sources_api.py | 830 --- revengai/api/firmware_api.py | 597 -- .../api/functions_ai_decompilation_api.py | 557 +- revengai/api/functions_core_api.py | 2600 +-------- revengai/api/functions_data_types_api.py | 1392 +---- .../api/functions_renaming_history_api.py | 1438 +---- revengai/api/models_api.py | 285 - revengai/api/search_api.py | 1491 ----- revengai/models/__init__.py | 255 - revengai/models/add_callee_input_body.py | 13 - revengai/models/add_user_string_input_body.py | 13 - .../add_user_string_to_function_input_body.py | 13 - .../additional_details_status_response.py | 86 - revengai/models/ai_decomp_function_mapping.py | 13 - .../ai_decomp_inverse_function_map_item.py | 13 - .../ai_decomp_inverse_string_map_item.py | 13 - revengai/models/ai_decompilation_rating.py | 43 - revengai/models/analysis_access_info.py | 88 - .../models/analysis_basic_info_output_body.py | 13 - .../models/analysis_bulk_add_tags_request.py | 88 - .../models/analysis_bulk_add_tags_response.py | 94 - .../analysis_bulk_add_tags_response_item.py | 100 - revengai/models/analysis_config.py | 106 - revengai/models/analysis_config_snapshot.py | 94 - revengai/models/analysis_create_request.py | 137 - revengai/models/analysis_create_response.py | 88 - revengai/models/analysis_detail_response.py | 135 - revengai/models/analysis_function_entry.py | 5 - revengai/models/analysis_function_mapping.py | 90 - revengai/models/analysis_functions.py | 94 - revengai/models/analysis_functions_list.py | 94 - revengai/models/analysis_log_message.py | 13 - revengai/models/analysis_logs.py | 13 - revengai/models/analysis_record.py | 138 - revengai/models/analysis_report.py | 13 - revengai/models/analysis_scope.py | 43 - revengai/models/analysis_string_function.py | 13 - revengai/models/analysis_string_input.py | 91 - revengai/models/analysis_string_item.py | 13 - revengai/models/analysis_strings_response.py | 96 - .../analysis_strings_status_response.py | 87 - revengai/models/analysis_tag_body.py | 13 - revengai/models/analysis_tags.py | 94 - revengai/models/analysis_update_request.py | 99 - .../models/analysis_update_tags_request.py | 86 - .../models/analysis_update_tags_response.py | 94 - revengai/models/api_call.py | 13 - revengai/models/api_error.py | 13 - ...app_api_rest_v2_agent_schema_capability.py | 103 - ...app_api_rest_v2_analyses_enums_order_by.py | 43 - ..._api_rest_v2_collections_enums_order_by.py | 45 - ...pi_rest_v2_functions_responses_function.py | 93 - ...pp_api_rest_v2_functions_types_function.py | 96 - .../app_api_rest_v2_info_types_capability.py | 90 - revengai/models/argument.py | 99 - revengai/models/artifact.py | 13 - revengai/models/attempt_failed_event.py | 13 - revengai/models/attempt_started_event.py | 13 - revengai/models/auto_run_agents.py | 86 - .../models/auto_unstrip_status_output_body.py | 13 - revengai/models/base_response.py | 121 - ...onse_additional_details_status_response.py | 125 - ...esponse_analysis_bulk_add_tags_response.py | 125 - .../base_response_analysis_create_response.py | 125 - .../base_response_analysis_detail_response.py | 125 - ...base_response_analysis_function_mapping.py | 125 - .../base_response_analysis_functions.py | 125 - .../base_response_analysis_functions_list.py | 125 - ...base_response_analysis_strings_response.py | 125 - ...sponse_analysis_strings_status_response.py | 125 - .../models/base_response_analysis_tags.py | 125 - ..._response_analysis_update_tags_response.py | 125 - revengai/models/base_response_basic.py | 125 - ...sponse_binaries_related_status_response.py | 125 - ...ase_response_binary_additional_response.py | 125 - .../base_response_binary_details_response.py | 125 - ...base_response_binary_externals_response.py | 125 - .../base_response_binary_search_response.py | 125 - revengai/models/base_response_bool.py | 121 - ...ponse_callees_caller_functions_response.py | 125 - revengai/models/base_response_capabilities.py | 125 - ...se_response_capabilities_agent_response.py | 125 - .../base_response_child_binaries_response.py | 125 - ...nse_collection_binaries_update_response.py | 125 - .../base_response_collection_response.py | 125 - ...ase_response_collection_search_response.py | 125 - ...esponse_collection_tags_update_response.py | 125 - .../models/base_response_comment_response.py | 125 - .../models/base_response_config_response.py | 125 - revengai/models/base_response_created.py | 125 - revengai/models/base_response_dict.py | 121 - .../models/base_response_external_response.py | 125 - .../base_response_function_blocks_response.py | 125 - ...e_response_function_capability_response.py | 125 - .../base_response_function_data_types.py | 125 - .../base_response_function_data_types_list.py | 125 - .../base_response_function_search_response.py | 125 - ...base_response_function_strings_response.py | 125 - ...base_response_functions_detail_response.py | 125 - ...e_response_generate_function_data_types.py | 125 - .../base_response_generation_status_list.py | 125 - .../base_response_get_public_user_response.py | 125 - ..._list_callees_caller_functions_response.py | 129 - .../base_response_list_collection_results.py | 125 - .../base_response_list_comment_response.py | 129 - .../models/base_response_list_die_match.py | 129 - ...ase_response_list_function_name_history.py | 129 - revengai/models/base_response_list_sbom.py | 129 - ...se_response_list_user_activity_response.py | 129 - revengai/models/base_response_logs.py | 125 - .../models/base_response_models_response.py | 125 - revengai/models/base_response_params.py | 125 - ..._response_queued_workflow_task_response.py | 125 - revengai/models/base_response_recent.py | 125 - .../base_response_report_analysis_response.py | 125 - revengai/models/base_response_status.py | 125 - revengai/models/base_response_str.py | 121 - .../base_response_tag_search_response.py | 125 - .../models/base_response_task_response.py | 125 - .../base_response_task_status_response.py | 125 - .../base_response_triage_report_response.py | 125 - ...decompilation_rating_response_none_type.py | 125 - .../models/base_response_upload_response.py | 125 - .../models/base_response_vulnerabilities.py | 125 - .../models/base_response_xref_response.py | 125 - revengai/models/basic.py | 136 - revengai/models/batch_rename_input_body.py | 13 - revengai/models/batch_rename_item.py | 13 - revengai/models/batch_rename_output_body.py | 13 - .../batch_update_data_types_input_body.py | 13 - .../models/batch_update_data_types_item.py | 13 - .../batch_update_data_types_output_body.py | 13 - .../models/batch_update_data_types_result.py | 13 - .../binaries_related_status_response.py | 86 - revengai/models/binaries_task_status.py | 45 - revengai/models/binary.py | 13 - ...binary_additional_details_data_response.py | 112 - revengai/models/binary_additional_response.py | 105 - revengai/models/binary_config.py | 108 - revengai/models/binary_details_response.py | 130 - revengai/models/binary_externals_response.py | 95 - revengai/models/binary_search_response.py | 94 - revengai/models/binary_search_result.py | 108 - revengai/models/binary_task_status.py | 45 - revengai/models/bulk_create_user_result.py | 14 +- .../models/bulk_delete_analyses_request.py | 86 - revengai/models/call_edge.py | 13 - revengai/models/call_edges_output_body.py | 13 - revengai/models/callee_function_info.py | 106 - .../callees_caller_functions_response.py | 106 - revengai/models/caller_function_info.py | 106 - revengai/models/canonical_name.py | 13 - .../models/canonicalize_names_input_body.py | 13 - .../models/canonicalize_names_output_body.py | 13 - revengai/models/capabilities.py | 94 - .../models/capabilities_agent_response.py | 94 - revengai/models/capabilities_output_body.py | 13 - revengai/models/capability_entry.py | 13 - revengai/models/child_binaries_response.py | 104 - revengai/models/code_signature_model.py | 98 - .../collection_binaries_update_request.py | 86 - .../collection_binaries_update_response.py | 94 - revengai/models/collection_binary_response.py | 99 - revengai/models/collection_create_request.py | 105 - revengai/models/collection_list_item.py | 110 - revengai/models/collection_list_item_body.py | 13 - revengai/models/collection_response.py | 129 - .../collection_response_binaries_inner.py | 135 - revengai/models/collection_scope.py | 44 - revengai/models/collection_search_response.py | 94 - revengai/models/collection_search_result.py | 120 - .../models/collection_tags_update_request.py | 86 - .../models/collection_tags_update_response.py | 86 - revengai/models/collection_update_request.py | 106 - revengai/models/comment_base.py | 86 - revengai/models/comment_response.py | 110 - revengai/models/comment_update_request.py | 86 - revengai/models/comments_data.py | 13 - revengai/models/config_response.py | 92 - revengai/models/confirm_tool_input_body.py | 13 - revengai/models/connection.py | 13 - revengai/models/console_output_entry.py | 13 - revengai/models/context.py | 141 - revengai/models/conversation.py | 13 - revengai/models/conversation_context.py | 13 - revengai/models/conversation_with_events.py | 13 - .../models/create_ai_decomp_output_body.py | 13 - .../models/create_collection_input_body.py | 13 - .../models/create_collection_output_body.py | 13 - .../models/create_conversation_request.py | 13 - revengai/models/created.py | 90 - revengai/models/data_types_entry.py | 13 - revengai/models/decomp_failed_event.py | 13 - revengai/models/decomp_finished_event.py | 13 - .../models/decompilation_comment_context.py | 98 - revengai/models/decompilation_data.py | 13 - revengai/models/die_match.py | 92 - revengai/models/disassembly_output_body.py | 5 - revengai/models/dns_query.py | 13 - revengai/models/drakvuf_file_metadata.py | 13 - revengai/models/dynamic_execution_status.py | 44 - .../dynamic_execution_status_response.py | 13 - revengai/models/elf_dynamic_entry.py | 88 - revengai/models/elf_import_model.py | 88 - revengai/models/elf_model.py | 179 - revengai/models/elf_relocation.py | 100 - revengai/models/elf_section.py | 104 - revengai/models/elf_security.py | 94 - revengai/models/elf_segment.py | 102 - revengai/models/elf_symbol.py | 100 - revengai/models/entrypoint_model.py | 88 - revengai/models/enumeration.py | 97 - revengai/models/error_body.py | 13 - revengai/models/error_model.py | 88 - revengai/models/event.py | 13 - revengai/models/export_model.py | 88 - revengai/models/external_response.py | 91 - revengai/models/extracted_url.py | 13 - revengai/models/file_activity_entry.py | 13 - revengai/models/file_format.py | 43 - revengai/models/file_hashes.py | 140 - revengai/models/file_metadata.py | 96 - revengai/models/filters.py | 45 - revengai/models/form_file.py | 16 +- revengai/models/function_argument.py | 13 - .../function_block_destination_response.py | 95 - revengai/models/function_block_response.py | 109 - revengai/models/function_blocks_response.py | 121 - revengai/models/function_boundary.py | 97 - revengai/models/function_call_edges.py | 13 - .../models/function_capability_response.py | 86 - revengai/models/function_data_types.py | 106 - revengai/models/function_data_types_list.py | 98 - .../models/function_data_types_list_item.py | 108 - revengai/models/function_data_types_params.py | 86 - revengai/models/function_data_types_status.py | 90 - revengai/models/function_dependency.py | 13 - .../models/function_details_output_body.py | 13 - revengai/models/function_header.py | 13 - revengai/models/function_info.py | 13 - revengai/models/function_list_item.py | 111 - .../function_local_variable_response.py | 94 - revengai/models/function_mapping.py | 90 - revengai/models/function_match.py | 13 - revengai/models/function_name_history.py | 99 - revengai/models/function_param_response.py | 94 - revengai/models/function_rename.py | 88 - revengai/models/function_rename_map.py | 90 - revengai/models/function_search_response.py | 94 - revengai/models/function_search_result.py | 99 - revengai/models/function_source_type.py | 46 - revengai/models/function_stack_variable.py | 13 - revengai/models/function_string.py | 91 - revengai/models/function_string_item.py | 13 - revengai/models/function_strings_response.py | 96 - revengai/models/function_type.py | 13 - revengai/models/functions_detail_response.py | 111 - revengai/models/functions_list_rename.py | 94 - .../models/generate_function_data_types.py | 94 - revengai/models/generate_pdf_output_body.py | 13 - revengai/models/generation_status_list.py | 98 - .../get_additional_details_output_body.py | 13 - ...t_additional_details_status_output_body.py | 13 - .../get_ai_decompilation_rating_response.py | 94 - ...get_analysis_strings_status_output_body.py | 13 - revengai/models/get_collection_output_body.py | 13 - revengai/models/get_matches_output_body.py | 13 - .../models/get_matches_status_output_body.py | 13 - revengai/models/get_public_user_response.py | 88 - revengai/models/global_variable.py | 101 - revengai/models/history_entry.py | 13 - revengai/models/http_request.py | 13 - revengai/models/icon_model.py | 91 - revengai/models/import_model.py | 88 - .../models/imported_function_caller_entry.py | 13 - .../imported_function_detail_output_body.py | 13 - revengai/models/indirect_call_site.py | 13 - .../models/indirect_call_sites_output_body.py | 13 - revengai/models/inline_comment.py | 13 - .../models/insert_analysis_log_request.py | 87 - revengai/models/ioc.py | 118 - revengai/models/isa.py | 43 - revengai/models/list_analyses_output_body.py | 13 - ...alysis_functions_data_types_output_body.py | 13 - .../list_analysis_functions_output_body.py | 13 - .../list_analysis_strings_output_body.py | 13 - revengai/models/list_collection_results.py | 94 - .../models/list_collections_output_body.py | 13 - .../list_example_analyses_output_body.py | 13 - .../list_function_strings_output_body.py | 13 - .../list_functions_data_types_output_body.py | 13 - .../list_imported_functions_output_body.py | 13 - revengai/models/logs.py | 86 - revengai/models/match_filters.py | 13 - revengai/models/memdump_entry.py | 13 - revengai/models/meta_model.py | 95 - revengai/models/mitre_technique.py | 104 - revengai/models/model_name.py | 49 - revengai/models/models_response.py | 86 - revengai/models/module_load_entry.py | 13 - revengai/models/mutex_entry.py | 13 - revengai/models/name_confidence.py | 13 - revengai/models/name_source_type.py | 114 - revengai/models/network_activity.py | 13 - revengai/models/order.py | 42 - revengai/models/organisation.py | 9 +- revengai/models/organisation_group.py | 9 +- revengai/models/organisation_issuer.py | 7 +- revengai/models/pagination_model.py | 90 - revengai/models/params.py | 103 - .../patch_collection_binaries_input_body.py | 13 - .../patch_collection_binaries_output_body.py | 13 - .../models/patch_collection_input_body.py | 13 - .../models/patch_collection_output_body.py | 13 - .../patch_collection_tags_input_body.py | 13 - .../patch_collection_tags_output_body.py | 13 - revengai/models/patch_comment_body.py | 13 - revengai/models/pcap_body_info.py | 13 - revengai/models/pdb_debug_model.py | 94 - revengai/models/pe_model.py | 215 - revengai/models/permissions.py | 13 - revengai/models/platform.py | 43 - revengai/models/price_output.py | 13 - revengai/models/price_summary.py | 13 - revengai/models/process_activity_entry.py | 13 - revengai/models/process_memdumps.py | 13 - revengai/models/process_node.py | 13 - revengai/models/process_tree.py | 13 - revengai/models/product_output.py | 13 - revengai/models/product_summary.py | 13 - revengai/models/progress_message.py | 13 - revengai/models/prose_event.py | 13 - .../models/put_analysis_strings_request.py | 94 - .../models/queued_workflow_task_response.py | 86 - revengai/models/re_analysis_form.py | 101 - revengai/models/recent.py | 94 - revengai/models/regenerate_output_body.py | 13 - revengai/models/registry_operation.py | 13 - revengai/models/relative_binary_response.py | 97 - revengai/models/rename_applied_event.py | 13 - revengai/models/rename_input_body.py | 13 - revengai/models/rename_output_body.py | 13 - revengai/models/replacement_value.py | 13 - revengai/models/report_analysis_response.py | 123 - revengai/models/report_event.py | 13 - revengai/models/report_info.py | 13 - revengai/models/report_options.py | 13 - revengai/models/sandbox_options.py | 120 - revengai/models/sandbox_start_method.py | 42 - revengai/models/sandbox_timeout.py | 44 - revengai/models/sbom.py | 96 - revengai/models/sbom_package.py | 88 - revengai/models/scheduled_task_entry.py | 13 - revengai/models/scrape_third_party_config.py | 86 - revengai/models/section_model.py | 96 - revengai/models/security_model.py | 106 - revengai/models/segment_info.py | 111 - revengai/models/send_message_request.py | 13 - revengai/models/service_entry.py | 13 - .../models/single_code_certificate_model.py | 96 - .../models/single_code_signature_model.py | 96 - revengai/models/single_pdb_entry_model.py | 90 - revengai/models/single_section_model.py | 98 - revengai/models/source_delta_event.py | 13 - revengai/models/source_reset_event.py | 13 - .../sse_event_context_compacted_data.py | 13 - .../models/sse_event_run_cancelled_data.py | 13 - revengai/models/sse_event_run_error_data.py | 13 - .../models/sse_event_run_finished_data.py | 13 - revengai/models/sse_event_run_started_data.py | 13 - .../models/sse_event_step_finished_data.py | 13 - .../models/sse_event_step_started_data.py | 13 - .../sse_event_text_message_content_data.py | 13 - .../models/sse_event_text_message_end_data.py | 13 - .../sse_event_text_message_start_data.py | 13 - .../models/sse_event_title_updated_data.py | 13 - .../sse_event_tool_call_args_delta_data.py | 13 - .../models/sse_event_tool_call_end_data.py | 13 - .../sse_event_tool_call_progress_data.py | 13 - .../models/sse_event_tool_call_result_data.py | 13 - .../models/sse_event_tool_call_start_data.py | 13 - ...e_event_tool_confirmation_required_data.py | 13 - revengai/models/stack_variable.py | 101 - .../models/start_batch_matching_input_body.py | 2 +- revengai/models/start_matching_output_body.py | 13 - revengai/models/startup_info.py | 13 - revengai/models/status_input.py | 46 - revengai/models/status_output.py | 88 - revengai/models/status_response.py | 13 - revengai/models/string_functions.py | 99 - revengai/models/string_source.py | 43 - revengai/models/structure.py | 117 - revengai/models/structure_member.py | 99 - .../models/submit_user_feedback_request.py | 95 - revengai/models/summary_data.py | 13 - revengai/models/symbols.py | 96 - revengai/models/tag.py | 86 - revengai/models/tag_item.py | 95 - revengai/models/tag_response.py | 88 - revengai/models/tag_search_response.py | 94 - revengai/models/tag_search_result.py | 88 - revengai/models/task_response.py | 94 - revengai/models/task_status.py | 45 - revengai/models/task_status_response.py | 95 - revengai/models/tcp_carved_file.py | 13 - revengai/models/team.py | 20 +- revengai/models/team_member.py | 16 +- revengai/models/timestamp_model.py | 90 - revengai/models/tokenised_data.py | 13 - revengai/models/triage_function_response.py | 103 - revengai/models/triage_report_response.py | 99 - revengai/models/ttp.py | 13 - revengai/models/type_definition.py | 97 - .../models/update_data_types_input_body.py | 13 - .../models/update_data_types_output_body.py | 13 - revengai/models/upload_file_type.py | 44 - revengai/models/upload_response.py | 99 - .../upsert_ai_decomplation_rating_request.py | 94 - revengai/models/upsert_overrides_data.py | 13 - .../models/upsert_overrides_input_body.py | 13 - revengai/models/user.py | 13 - revengai/models/user_activity_response.py | 97 - revengai/models/user_identity.py | 16 +- revengai/models/user_profile.py | 13 - revengai/models/v2_function_header.py | 112 - revengai/models/v2_function_info.py | 105 - .../v2_function_info_func_deps_inner.py | 163 - revengai/models/v2_function_type.py | 127 - revengai/models/vulnerabilities.py | 94 - revengai/models/vulnerability.py | 113 - revengai/models/warning_event.py | 13 - revengai/models/workflow_progress.py | 13 - revengai/models/workspace.py | 43 - revengai/models/xref_from_response.py | 151 - revengai/models/xref_response.py | 104 - revengai/models/xref_to_response.py | 151 - 723 files changed, 1061 insertions(+), 70438 deletions(-) delete mode 100644 docs/AdditionalDetailsStatusResponse.md delete mode 100644 docs/AgentApi.md delete mode 100644 docs/AiDecompilationRating.md delete mode 100644 docs/AnalysesBulkActionsApi.md delete mode 100644 docs/AnalysesCommentsApi.md delete mode 100644 docs/AnalysesResultsMetadataApi.md delete mode 100644 docs/AnalysesXRefsApi.md delete mode 100644 docs/AnalysisAccessInfo.md delete mode 100644 docs/AnalysisBulkAddTagsRequest.md delete mode 100644 docs/AnalysisBulkAddTagsResponse.md delete mode 100644 docs/AnalysisBulkAddTagsResponseItem.md delete mode 100644 docs/AnalysisConfig.md delete mode 100644 docs/AnalysisConfigSnapshot.md delete mode 100644 docs/AnalysisCreateRequest.md delete mode 100644 docs/AnalysisCreateResponse.md delete mode 100644 docs/AnalysisDetailResponse.md delete mode 100644 docs/AnalysisFunctionMapping.md delete mode 100644 docs/AnalysisFunctions.md delete mode 100644 docs/AnalysisFunctionsList.md delete mode 100644 docs/AnalysisRecord.md delete mode 100644 docs/AnalysisScope.md delete mode 100644 docs/AnalysisStringInput.md delete mode 100644 docs/AnalysisStringsResponse.md delete mode 100644 docs/AnalysisStringsStatusResponse.md delete mode 100644 docs/AnalysisTags.md delete mode 100644 docs/AnalysisUpdateRequest.md delete mode 100644 docs/AnalysisUpdateTagsRequest.md delete mode 100644 docs/AnalysisUpdateTagsResponse.md delete mode 100644 docs/AppApiRestV2AgentSchemaCapability.md delete mode 100644 docs/AppApiRestV2AnalysesEnumsOrderBy.md delete mode 100644 docs/AppApiRestV2CollectionsEnumsOrderBy.md delete mode 100644 docs/AppApiRestV2FunctionsResponsesFunction.md delete mode 100644 docs/AppApiRestV2FunctionsTypesFunction.md delete mode 100644 docs/AppApiRestV2InfoTypesCapability.md delete mode 100644 docs/Argument.md delete mode 100644 docs/AuthenticationUsersApi.md delete mode 100644 docs/AutoRunAgents.md delete mode 100644 docs/BaseResponse.md delete mode 100644 docs/BaseResponseAdditionalDetailsStatusResponse.md delete mode 100644 docs/BaseResponseAnalysisBulkAddTagsResponse.md delete mode 100644 docs/BaseResponseAnalysisCreateResponse.md delete mode 100644 docs/BaseResponseAnalysisDetailResponse.md delete mode 100644 docs/BaseResponseAnalysisFunctionMapping.md delete mode 100644 docs/BaseResponseAnalysisFunctions.md delete mode 100644 docs/BaseResponseAnalysisFunctionsList.md delete mode 100644 docs/BaseResponseAnalysisStringsResponse.md delete mode 100644 docs/BaseResponseAnalysisStringsStatusResponse.md delete mode 100644 docs/BaseResponseAnalysisTags.md delete mode 100644 docs/BaseResponseAnalysisUpdateTagsResponse.md delete mode 100644 docs/BaseResponseBasic.md delete mode 100644 docs/BaseResponseBinariesRelatedStatusResponse.md delete mode 100644 docs/BaseResponseBinaryAdditionalResponse.md delete mode 100644 docs/BaseResponseBinaryDetailsResponse.md delete mode 100644 docs/BaseResponseBinaryExternalsResponse.md delete mode 100644 docs/BaseResponseBinarySearchResponse.md delete mode 100644 docs/BaseResponseBool.md delete mode 100644 docs/BaseResponseCalleesCallerFunctionsResponse.md delete mode 100644 docs/BaseResponseCapabilities.md delete mode 100644 docs/BaseResponseCapabilitiesAgentResponse.md delete mode 100644 docs/BaseResponseChildBinariesResponse.md delete mode 100644 docs/BaseResponseCollectionBinariesUpdateResponse.md delete mode 100644 docs/BaseResponseCollectionResponse.md delete mode 100644 docs/BaseResponseCollectionSearchResponse.md delete mode 100644 docs/BaseResponseCollectionTagsUpdateResponse.md delete mode 100644 docs/BaseResponseCommentResponse.md delete mode 100644 docs/BaseResponseConfigResponse.md delete mode 100644 docs/BaseResponseCreated.md delete mode 100644 docs/BaseResponseDict.md delete mode 100644 docs/BaseResponseExternalResponse.md delete mode 100644 docs/BaseResponseFunctionBlocksResponse.md delete mode 100644 docs/BaseResponseFunctionCapabilityResponse.md delete mode 100644 docs/BaseResponseFunctionDataTypes.md delete mode 100644 docs/BaseResponseFunctionDataTypesList.md delete mode 100644 docs/BaseResponseFunctionSearchResponse.md delete mode 100644 docs/BaseResponseFunctionStringsResponse.md delete mode 100644 docs/BaseResponseFunctionsDetailResponse.md delete mode 100644 docs/BaseResponseGenerateFunctionDataTypes.md delete mode 100644 docs/BaseResponseGenerationStatusList.md delete mode 100644 docs/BaseResponseGetPublicUserResponse.md delete mode 100644 docs/BaseResponseListCalleesCallerFunctionsResponse.md delete mode 100644 docs/BaseResponseListCollectionResults.md delete mode 100644 docs/BaseResponseListCommentResponse.md delete mode 100644 docs/BaseResponseListDieMatch.md delete mode 100644 docs/BaseResponseListFunctionNameHistory.md delete mode 100644 docs/BaseResponseListSBOM.md delete mode 100644 docs/BaseResponseListUserActivityResponse.md delete mode 100644 docs/BaseResponseLogs.md delete mode 100644 docs/BaseResponseModelsResponse.md delete mode 100644 docs/BaseResponseParams.md delete mode 100644 docs/BaseResponseQueuedWorkflowTaskResponse.md delete mode 100644 docs/BaseResponseRecent.md delete mode 100644 docs/BaseResponseReportAnalysisResponse.md delete mode 100644 docs/BaseResponseStatus.md delete mode 100644 docs/BaseResponseStr.md delete mode 100644 docs/BaseResponseTagSearchResponse.md delete mode 100644 docs/BaseResponseTaskResponse.md delete mode 100644 docs/BaseResponseTaskStatusResponse.md delete mode 100644 docs/BaseResponseTriageReportResponse.md delete mode 100644 docs/BaseResponseUnionGetAiDecompilationRatingResponseNoneType.md delete mode 100644 docs/BaseResponseUploadResponse.md delete mode 100644 docs/BaseResponseVulnerabilities.md delete mode 100644 docs/BaseResponseXrefResponse.md delete mode 100644 docs/Basic.md delete mode 100644 docs/BinariesRelatedStatusResponse.md delete mode 100644 docs/BinariesTaskStatus.md delete mode 100644 docs/BinaryAdditionalDetailsDataResponse.md delete mode 100644 docs/BinaryAdditionalResponse.md delete mode 100644 docs/BinaryConfig.md delete mode 100644 docs/BinaryDetailsResponse.md delete mode 100644 docs/BinaryExternalsResponse.md delete mode 100644 docs/BinarySearchResponse.md delete mode 100644 docs/BinarySearchResult.md delete mode 100644 docs/BinaryTaskStatus.md delete mode 100644 docs/BulkDeleteAnalysesRequest.md delete mode 100644 docs/CalleeFunctionInfo.md delete mode 100644 docs/CalleesCallerFunctionsResponse.md delete mode 100644 docs/CallerFunctionInfo.md delete mode 100644 docs/Capabilities.md delete mode 100644 docs/CapabilitiesAgentResponse.md delete mode 100644 docs/ChildBinariesResponse.md delete mode 100644 docs/CodeSignatureModel.md delete mode 100644 docs/CollectionBinariesUpdateRequest.md delete mode 100644 docs/CollectionBinariesUpdateResponse.md delete mode 100644 docs/CollectionBinaryResponse.md delete mode 100644 docs/CollectionCreateRequest.md delete mode 100644 docs/CollectionListItem.md delete mode 100644 docs/CollectionResponse.md delete mode 100644 docs/CollectionResponseBinariesInner.md delete mode 100644 docs/CollectionScope.md delete mode 100644 docs/CollectionSearchResponse.md delete mode 100644 docs/CollectionSearchResult.md delete mode 100644 docs/CollectionTagsUpdateRequest.md delete mode 100644 docs/CollectionTagsUpdateResponse.md delete mode 100644 docs/CollectionUpdateRequest.md delete mode 100644 docs/CommentBase.md delete mode 100644 docs/CommentResponse.md delete mode 100644 docs/CommentUpdateRequest.md delete mode 100644 docs/ConfigApi.md delete mode 100644 docs/ConfigResponse.md delete mode 100644 docs/Context.md delete mode 100644 docs/Created.md delete mode 100644 docs/DecompilationCommentContext.md delete mode 100644 docs/DieMatch.md delete mode 100644 docs/DynamicExecutionStatus.md delete mode 100644 docs/ELFImportModel.md delete mode 100644 docs/ELFModel.md delete mode 100644 docs/ELFRelocation.md delete mode 100644 docs/ELFSection.md delete mode 100644 docs/ELFSecurity.md delete mode 100644 docs/ELFSegment.md delete mode 100644 docs/ELFSymbol.md delete mode 100644 docs/ElfDynamicEntry.md delete mode 100644 docs/EntrypointModel.md delete mode 100644 docs/Enumeration.md delete mode 100644 docs/ErrorModel.md delete mode 100644 docs/ExportModel.md delete mode 100644 docs/ExternalResponse.md delete mode 100644 docs/ExternalSourcesApi.md delete mode 100644 docs/FileFormat.md delete mode 100644 docs/FileHashes.md delete mode 100644 docs/FileMetadata.md delete mode 100644 docs/Filters.md delete mode 100644 docs/FirmwareApi.md delete mode 100644 docs/FunctionBlockDestinationResponse.md delete mode 100644 docs/FunctionBlockResponse.md delete mode 100644 docs/FunctionBlocksResponse.md delete mode 100644 docs/FunctionBoundary.md delete mode 100644 docs/FunctionCapabilityResponse.md delete mode 100644 docs/FunctionDataTypes.md delete mode 100644 docs/FunctionDataTypesList.md delete mode 100644 docs/FunctionDataTypesListItem.md delete mode 100644 docs/FunctionDataTypesParams.md delete mode 100644 docs/FunctionDataTypesStatus.md delete mode 100644 docs/FunctionListItem.md delete mode 100644 docs/FunctionLocalVariableResponse.md delete mode 100644 docs/FunctionMapping.md delete mode 100644 docs/FunctionNameHistory.md delete mode 100644 docs/FunctionParamResponse.md delete mode 100644 docs/FunctionRename.md delete mode 100644 docs/FunctionRenameMap.md delete mode 100644 docs/FunctionSearchResponse.md delete mode 100644 docs/FunctionSearchResult.md delete mode 100644 docs/FunctionSourceType.md delete mode 100644 docs/FunctionString.md delete mode 100644 docs/FunctionStringsResponse.md delete mode 100644 docs/FunctionsDetailResponse.md delete mode 100644 docs/FunctionsListRename.md delete mode 100644 docs/GenerateFunctionDataTypes.md delete mode 100644 docs/GenerationStatusList.md delete mode 100644 docs/GetAiDecompilationRatingResponse.md delete mode 100644 docs/GetPublicUserResponse.md delete mode 100644 docs/GlobalVariable.md delete mode 100644 docs/IOC.md delete mode 100644 docs/ISA.md delete mode 100644 docs/IconModel.md delete mode 100644 docs/ImportModel.md delete mode 100644 docs/InsertAnalysisLogRequest.md delete mode 100644 docs/ListCollectionResults.md delete mode 100644 docs/Logs.md delete mode 100644 docs/MITRETechnique.md delete mode 100644 docs/MetaModel.md delete mode 100644 docs/ModelName.md delete mode 100644 docs/ModelsApi.md delete mode 100644 docs/ModelsResponse.md delete mode 100644 docs/NameSourceType.md delete mode 100644 docs/Order.md delete mode 100644 docs/PDBDebugModel.md delete mode 100644 docs/PEModel.md delete mode 100644 docs/PaginationModel.md delete mode 100644 docs/Params.md delete mode 100644 docs/Platform.md delete mode 100644 docs/PutAnalysisStringsRequest.md delete mode 100644 docs/QueuedWorkflowTaskResponse.md delete mode 100644 docs/ReAnalysisForm.md delete mode 100644 docs/Recent.md delete mode 100644 docs/RelativeBinaryResponse.md delete mode 100644 docs/ReportAnalysisResponse.md delete mode 100644 docs/SBOM.md delete mode 100644 docs/SBOMPackage.md delete mode 100644 docs/SandboxOptions.md delete mode 100644 docs/SandboxStartMethod.md delete mode 100644 docs/SandboxTimeout.md delete mode 100644 docs/ScrapeThirdPartyConfig.md delete mode 100644 docs/SearchApi.md delete mode 100644 docs/SectionModel.md delete mode 100644 docs/SecurityModel.md delete mode 100644 docs/SegmentInfo.md delete mode 100644 docs/SingleCodeCertificateModel.md delete mode 100644 docs/SingleCodeSignatureModel.md delete mode 100644 docs/SinglePDBEntryModel.md delete mode 100644 docs/SingleSectionModel.md delete mode 100644 docs/StackVariable.md delete mode 100644 docs/StatusInput.md delete mode 100644 docs/StatusOutput.md delete mode 100644 docs/StringFunctions.md delete mode 100644 docs/StringSource.md delete mode 100644 docs/Structure.md delete mode 100644 docs/StructureMember.md delete mode 100644 docs/SubmitUserFeedbackRequest.md delete mode 100644 docs/Symbols.md delete mode 100644 docs/Tag.md delete mode 100644 docs/TagItem.md delete mode 100644 docs/TagResponse.md delete mode 100644 docs/TagSearchResponse.md delete mode 100644 docs/TagSearchResult.md delete mode 100644 docs/TaskResponse.md delete mode 100644 docs/TaskStatus.md delete mode 100644 docs/TaskStatusResponse.md delete mode 100644 docs/TimestampModel.md delete mode 100644 docs/TriageFunctionResponse.md delete mode 100644 docs/TriageReportResponse.md delete mode 100644 docs/TypeDefinition.md delete mode 100644 docs/UploadFileType.md delete mode 100644 docs/UploadResponse.md delete mode 100644 docs/UpsertAiDecomplationRatingRequest.md delete mode 100644 docs/UserActivityResponse.md delete mode 100644 docs/V2FunctionHeader.md delete mode 100644 docs/V2FunctionInfo.md delete mode 100644 docs/V2FunctionInfoFuncDepsInner.md delete mode 100644 docs/V2FunctionType.md delete mode 100644 docs/Vulnerabilities.md delete mode 100644 docs/Vulnerability.md delete mode 100644 docs/Workspace.md delete mode 100644 docs/XrefFromResponse.md delete mode 100644 docs/XrefResponse.md delete mode 100644 docs/XrefToResponse.md delete mode 100644 revengai/api/agent_api.py delete mode 100644 revengai/api/analyses_bulk_actions_api.py delete mode 100644 revengai/api/analyses_comments_api.py delete mode 100644 revengai/api/analyses_results_metadata_api.py delete mode 100644 revengai/api/analyses_x_refs_api.py delete mode 100644 revengai/api/authentication_users_api.py delete mode 100644 revengai/api/config_api.py delete mode 100644 revengai/api/external_sources_api.py delete mode 100644 revengai/api/firmware_api.py delete mode 100644 revengai/api/models_api.py delete mode 100644 revengai/api/search_api.py delete mode 100644 revengai/models/additional_details_status_response.py delete mode 100644 revengai/models/ai_decompilation_rating.py delete mode 100644 revengai/models/analysis_access_info.py delete mode 100644 revengai/models/analysis_bulk_add_tags_request.py delete mode 100644 revengai/models/analysis_bulk_add_tags_response.py delete mode 100644 revengai/models/analysis_bulk_add_tags_response_item.py delete mode 100644 revengai/models/analysis_config.py delete mode 100644 revengai/models/analysis_config_snapshot.py delete mode 100644 revengai/models/analysis_create_request.py delete mode 100644 revengai/models/analysis_create_response.py delete mode 100644 revengai/models/analysis_detail_response.py delete mode 100644 revengai/models/analysis_function_mapping.py delete mode 100644 revengai/models/analysis_functions.py delete mode 100644 revengai/models/analysis_functions_list.py delete mode 100644 revengai/models/analysis_record.py delete mode 100644 revengai/models/analysis_scope.py delete mode 100644 revengai/models/analysis_string_input.py delete mode 100644 revengai/models/analysis_strings_response.py delete mode 100644 revengai/models/analysis_strings_status_response.py delete mode 100644 revengai/models/analysis_tags.py delete mode 100644 revengai/models/analysis_update_request.py delete mode 100644 revengai/models/analysis_update_tags_request.py delete mode 100644 revengai/models/analysis_update_tags_response.py delete mode 100644 revengai/models/app_api_rest_v2_agent_schema_capability.py delete mode 100644 revengai/models/app_api_rest_v2_analyses_enums_order_by.py delete mode 100644 revengai/models/app_api_rest_v2_collections_enums_order_by.py delete mode 100644 revengai/models/app_api_rest_v2_functions_responses_function.py delete mode 100644 revengai/models/app_api_rest_v2_functions_types_function.py delete mode 100644 revengai/models/app_api_rest_v2_info_types_capability.py delete mode 100644 revengai/models/argument.py delete mode 100644 revengai/models/auto_run_agents.py delete mode 100644 revengai/models/base_response.py delete mode 100644 revengai/models/base_response_additional_details_status_response.py delete mode 100644 revengai/models/base_response_analysis_bulk_add_tags_response.py delete mode 100644 revengai/models/base_response_analysis_create_response.py delete mode 100644 revengai/models/base_response_analysis_detail_response.py delete mode 100644 revengai/models/base_response_analysis_function_mapping.py delete mode 100644 revengai/models/base_response_analysis_functions.py delete mode 100644 revengai/models/base_response_analysis_functions_list.py delete mode 100644 revengai/models/base_response_analysis_strings_response.py delete mode 100644 revengai/models/base_response_analysis_strings_status_response.py delete mode 100644 revengai/models/base_response_analysis_tags.py delete mode 100644 revengai/models/base_response_analysis_update_tags_response.py delete mode 100644 revengai/models/base_response_basic.py delete mode 100644 revengai/models/base_response_binaries_related_status_response.py delete mode 100644 revengai/models/base_response_binary_additional_response.py delete mode 100644 revengai/models/base_response_binary_details_response.py delete mode 100644 revengai/models/base_response_binary_externals_response.py delete mode 100644 revengai/models/base_response_binary_search_response.py delete mode 100644 revengai/models/base_response_bool.py delete mode 100644 revengai/models/base_response_callees_caller_functions_response.py delete mode 100644 revengai/models/base_response_capabilities.py delete mode 100644 revengai/models/base_response_capabilities_agent_response.py delete mode 100644 revengai/models/base_response_child_binaries_response.py delete mode 100644 revengai/models/base_response_collection_binaries_update_response.py delete mode 100644 revengai/models/base_response_collection_response.py delete mode 100644 revengai/models/base_response_collection_search_response.py delete mode 100644 revengai/models/base_response_collection_tags_update_response.py delete mode 100644 revengai/models/base_response_comment_response.py delete mode 100644 revengai/models/base_response_config_response.py delete mode 100644 revengai/models/base_response_created.py delete mode 100644 revengai/models/base_response_dict.py delete mode 100644 revengai/models/base_response_external_response.py delete mode 100644 revengai/models/base_response_function_blocks_response.py delete mode 100644 revengai/models/base_response_function_capability_response.py delete mode 100644 revengai/models/base_response_function_data_types.py delete mode 100644 revengai/models/base_response_function_data_types_list.py delete mode 100644 revengai/models/base_response_function_search_response.py delete mode 100644 revengai/models/base_response_function_strings_response.py delete mode 100644 revengai/models/base_response_functions_detail_response.py delete mode 100644 revengai/models/base_response_generate_function_data_types.py delete mode 100644 revengai/models/base_response_generation_status_list.py delete mode 100644 revengai/models/base_response_get_public_user_response.py delete mode 100644 revengai/models/base_response_list_callees_caller_functions_response.py delete mode 100644 revengai/models/base_response_list_collection_results.py delete mode 100644 revengai/models/base_response_list_comment_response.py delete mode 100644 revengai/models/base_response_list_die_match.py delete mode 100644 revengai/models/base_response_list_function_name_history.py delete mode 100644 revengai/models/base_response_list_sbom.py delete mode 100644 revengai/models/base_response_list_user_activity_response.py delete mode 100644 revengai/models/base_response_logs.py delete mode 100644 revengai/models/base_response_models_response.py delete mode 100644 revengai/models/base_response_params.py delete mode 100644 revengai/models/base_response_queued_workflow_task_response.py delete mode 100644 revengai/models/base_response_recent.py delete mode 100644 revengai/models/base_response_report_analysis_response.py delete mode 100644 revengai/models/base_response_status.py delete mode 100644 revengai/models/base_response_str.py delete mode 100644 revengai/models/base_response_tag_search_response.py delete mode 100644 revengai/models/base_response_task_response.py delete mode 100644 revengai/models/base_response_task_status_response.py delete mode 100644 revengai/models/base_response_triage_report_response.py delete mode 100644 revengai/models/base_response_union_get_ai_decompilation_rating_response_none_type.py delete mode 100644 revengai/models/base_response_upload_response.py delete mode 100644 revengai/models/base_response_vulnerabilities.py delete mode 100644 revengai/models/base_response_xref_response.py delete mode 100644 revengai/models/basic.py delete mode 100644 revengai/models/binaries_related_status_response.py delete mode 100644 revengai/models/binaries_task_status.py delete mode 100644 revengai/models/binary_additional_details_data_response.py delete mode 100644 revengai/models/binary_additional_response.py delete mode 100644 revengai/models/binary_config.py delete mode 100644 revengai/models/binary_details_response.py delete mode 100644 revengai/models/binary_externals_response.py delete mode 100644 revengai/models/binary_search_response.py delete mode 100644 revengai/models/binary_search_result.py delete mode 100644 revengai/models/binary_task_status.py delete mode 100644 revengai/models/bulk_delete_analyses_request.py delete mode 100644 revengai/models/callee_function_info.py delete mode 100644 revengai/models/callees_caller_functions_response.py delete mode 100644 revengai/models/caller_function_info.py delete mode 100644 revengai/models/capabilities.py delete mode 100644 revengai/models/capabilities_agent_response.py delete mode 100644 revengai/models/child_binaries_response.py delete mode 100644 revengai/models/code_signature_model.py delete mode 100644 revengai/models/collection_binaries_update_request.py delete mode 100644 revengai/models/collection_binaries_update_response.py delete mode 100644 revengai/models/collection_binary_response.py delete mode 100644 revengai/models/collection_create_request.py delete mode 100644 revengai/models/collection_list_item.py delete mode 100644 revengai/models/collection_response.py delete mode 100644 revengai/models/collection_response_binaries_inner.py delete mode 100644 revengai/models/collection_scope.py delete mode 100644 revengai/models/collection_search_response.py delete mode 100644 revengai/models/collection_search_result.py delete mode 100644 revengai/models/collection_tags_update_request.py delete mode 100644 revengai/models/collection_tags_update_response.py delete mode 100644 revengai/models/collection_update_request.py delete mode 100644 revengai/models/comment_base.py delete mode 100644 revengai/models/comment_response.py delete mode 100644 revengai/models/comment_update_request.py delete mode 100644 revengai/models/config_response.py delete mode 100644 revengai/models/context.py delete mode 100644 revengai/models/created.py delete mode 100644 revengai/models/decompilation_comment_context.py delete mode 100644 revengai/models/die_match.py delete mode 100644 revengai/models/dynamic_execution_status.py delete mode 100644 revengai/models/elf_dynamic_entry.py delete mode 100644 revengai/models/elf_import_model.py delete mode 100644 revengai/models/elf_model.py delete mode 100644 revengai/models/elf_relocation.py delete mode 100644 revengai/models/elf_section.py delete mode 100644 revengai/models/elf_security.py delete mode 100644 revengai/models/elf_segment.py delete mode 100644 revengai/models/elf_symbol.py delete mode 100644 revengai/models/entrypoint_model.py delete mode 100644 revengai/models/enumeration.py delete mode 100644 revengai/models/error_model.py delete mode 100644 revengai/models/export_model.py delete mode 100644 revengai/models/external_response.py delete mode 100644 revengai/models/file_format.py delete mode 100644 revengai/models/file_hashes.py delete mode 100644 revengai/models/file_metadata.py delete mode 100644 revengai/models/filters.py delete mode 100644 revengai/models/function_block_destination_response.py delete mode 100644 revengai/models/function_block_response.py delete mode 100644 revengai/models/function_blocks_response.py delete mode 100644 revengai/models/function_boundary.py delete mode 100644 revengai/models/function_capability_response.py delete mode 100644 revengai/models/function_data_types.py delete mode 100644 revengai/models/function_data_types_list.py delete mode 100644 revengai/models/function_data_types_list_item.py delete mode 100644 revengai/models/function_data_types_params.py delete mode 100644 revengai/models/function_data_types_status.py delete mode 100644 revengai/models/function_list_item.py delete mode 100644 revengai/models/function_local_variable_response.py delete mode 100644 revengai/models/function_mapping.py delete mode 100644 revengai/models/function_name_history.py delete mode 100644 revengai/models/function_param_response.py delete mode 100644 revengai/models/function_rename.py delete mode 100644 revengai/models/function_rename_map.py delete mode 100644 revengai/models/function_search_response.py delete mode 100644 revengai/models/function_search_result.py delete mode 100644 revengai/models/function_source_type.py delete mode 100644 revengai/models/function_string.py delete mode 100644 revengai/models/function_strings_response.py delete mode 100644 revengai/models/functions_detail_response.py delete mode 100644 revengai/models/functions_list_rename.py delete mode 100644 revengai/models/generate_function_data_types.py delete mode 100644 revengai/models/generation_status_list.py delete mode 100644 revengai/models/get_ai_decompilation_rating_response.py delete mode 100644 revengai/models/get_public_user_response.py delete mode 100644 revengai/models/global_variable.py delete mode 100644 revengai/models/icon_model.py delete mode 100644 revengai/models/import_model.py delete mode 100644 revengai/models/insert_analysis_log_request.py delete mode 100644 revengai/models/ioc.py delete mode 100644 revengai/models/isa.py delete mode 100644 revengai/models/list_collection_results.py delete mode 100644 revengai/models/logs.py delete mode 100644 revengai/models/meta_model.py delete mode 100644 revengai/models/mitre_technique.py delete mode 100644 revengai/models/model_name.py delete mode 100644 revengai/models/models_response.py delete mode 100644 revengai/models/name_source_type.py delete mode 100644 revengai/models/order.py delete mode 100644 revengai/models/pagination_model.py delete mode 100644 revengai/models/params.py delete mode 100644 revengai/models/pdb_debug_model.py delete mode 100644 revengai/models/pe_model.py delete mode 100644 revengai/models/platform.py delete mode 100644 revengai/models/put_analysis_strings_request.py delete mode 100644 revengai/models/queued_workflow_task_response.py delete mode 100644 revengai/models/re_analysis_form.py delete mode 100644 revengai/models/recent.py delete mode 100644 revengai/models/relative_binary_response.py delete mode 100644 revengai/models/report_analysis_response.py delete mode 100644 revengai/models/sandbox_options.py delete mode 100644 revengai/models/sandbox_start_method.py delete mode 100644 revengai/models/sandbox_timeout.py delete mode 100644 revengai/models/sbom.py delete mode 100644 revengai/models/sbom_package.py delete mode 100644 revengai/models/scrape_third_party_config.py delete mode 100644 revengai/models/section_model.py delete mode 100644 revengai/models/security_model.py delete mode 100644 revengai/models/segment_info.py delete mode 100644 revengai/models/single_code_certificate_model.py delete mode 100644 revengai/models/single_code_signature_model.py delete mode 100644 revengai/models/single_pdb_entry_model.py delete mode 100644 revengai/models/single_section_model.py delete mode 100644 revengai/models/stack_variable.py delete mode 100644 revengai/models/status_input.py delete mode 100644 revengai/models/status_output.py delete mode 100644 revengai/models/string_functions.py delete mode 100644 revengai/models/string_source.py delete mode 100644 revengai/models/structure.py delete mode 100644 revengai/models/structure_member.py delete mode 100644 revengai/models/submit_user_feedback_request.py delete mode 100644 revengai/models/symbols.py delete mode 100644 revengai/models/tag.py delete mode 100644 revengai/models/tag_item.py delete mode 100644 revengai/models/tag_response.py delete mode 100644 revengai/models/tag_search_response.py delete mode 100644 revengai/models/tag_search_result.py delete mode 100644 revengai/models/task_response.py delete mode 100644 revengai/models/task_status.py delete mode 100644 revengai/models/task_status_response.py delete mode 100644 revengai/models/timestamp_model.py delete mode 100644 revengai/models/triage_function_response.py delete mode 100644 revengai/models/triage_report_response.py delete mode 100644 revengai/models/type_definition.py delete mode 100644 revengai/models/upload_file_type.py delete mode 100644 revengai/models/upload_response.py delete mode 100644 revengai/models/upsert_ai_decomplation_rating_request.py delete mode 100644 revengai/models/user_activity_response.py delete mode 100644 revengai/models/v2_function_header.py delete mode 100644 revengai/models/v2_function_info.py delete mode 100644 revengai/models/v2_function_info_func_deps_inner.py delete mode 100644 revengai/models/v2_function_type.py delete mode 100644 revengai/models/vulnerabilities.py delete mode 100644 revengai/models/vulnerability.py delete mode 100644 revengai/models/workspace.py delete mode 100644 revengai/models/xref_from_response.py delete mode 100644 revengai/models/xref_response.py delete mode 100644 revengai/models/xref_to_response.py diff --git a/README.md b/README.md index d1da37a4..f02d8ebd 100644 --- a/README.md +++ b/README.md @@ -41,76 +41,21 @@ All URIs are relative to *https://api.reveng.ai* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AgentApi* | [**check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get**](docs/AgentApi.md#check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get) | **GET** /v2/analyses/{analysis_id}/agent/capabilities/status | Check the status of a capabilities analysis workflow -*AgentApi* | [**check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get**](docs/AgentApi.md#check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get) | **GET** /v2/analyses/{analysis_id}/agent/report-analysis/status | Check the status of a report analysis workflow -*AgentApi* | [**check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get**](docs/AgentApi.md#check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get) | **GET** /v2/analyses/{analysis_id}/agent/triage/status | Check the status of a triage analysis workflow -*AgentApi* | [**create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post**](docs/AgentApi.md#create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post) | **POST** /v2/analyses/{analysis_id}/agent/capabilities | Queues a capabilities analysis workflow process -*AgentApi* | [**create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post**](docs/AgentApi.md#create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post) | **POST** /v2/analyses/{analysis_id}/agent/report-analysis | Queues a combined report analysis workflow process -*AgentApi* | [**create_triage_task_v2_analyses_analysis_id_agent_triage_post**](docs/AgentApi.md#create_triage_task_v2_analyses_analysis_id_agent_triage_post) | **POST** /v2/analyses/{analysis_id}/agent/triage | Queues a triage analysis workflow process -*AgentApi* | [**get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get**](docs/AgentApi.md#get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get) | **GET** /v2/analyses/{analysis_id}/agent/capabilities | Get Capabilities Result -*AgentApi* | [**get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get**](docs/AgentApi.md#get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get) | **GET** /v2/analyses/{analysis_id}/agent/report-analysis | Get Report Analysis Result -*AgentApi* | [**get_triage_result_v2_analyses_analysis_id_agent_triage_get**](docs/AgentApi.md#get_triage_result_v2_analyses_analysis_id_agent_triage_get) | **GET** /v2/analyses/{analysis_id}/agent/triage | Get Triage Result -*AnalysesBulkActionsApi* | [**bulk_add_analysis_tags**](docs/AnalysesBulkActionsApi.md#bulk_add_analysis_tags) | **PATCH** /v2/analyses/tags/add | Bulk Add Analysis Tags -*AnalysesBulkActionsApi* | [**bulk_delete_analyses**](docs/AnalysesBulkActionsApi.md#bulk_delete_analyses) | **PATCH** /v2/analyses/delete | Bulk Delete Analyses -*AnalysesCommentsApi* | [**create_analysis_comment**](docs/AnalysesCommentsApi.md#create_analysis_comment) | **POST** /v2/analyses/{analysis_id}/comments | Create a comment for this analysis -*AnalysesCommentsApi* | [**delete_analysis_comment**](docs/AnalysesCommentsApi.md#delete_analysis_comment) | **DELETE** /v2/analyses/{analysis_id}/comments/{comment_id} | Delete a comment -*AnalysesCommentsApi* | [**get_analysis_comments**](docs/AnalysesCommentsApi.md#get_analysis_comments) | **GET** /v2/analyses/{analysis_id}/comments | Get comments for this analysis -*AnalysesCommentsApi* | [**update_analysis_comment**](docs/AnalysesCommentsApi.md#update_analysis_comment) | **PATCH** /v2/analyses/{analysis_id}/comments/{comment_id} | Update a comment *AnalysesCoreApi* | [**add_user_string_to_analysis**](docs/AnalysesCoreApi.md#add_user_string_to_analysis) | **POST** /v3/analyses/{analysis_id}/user-provided-strings | Add a user-provided string to an analysis. -*AnalysesCoreApi* | [**create_analysis**](docs/AnalysesCoreApi.md#create_analysis) | **POST** /v2/analyses | Create Analysis -*AnalysesCoreApi* | [**delete_analysis**](docs/AnalysesCoreApi.md#delete_analysis) | **DELETE** /v2/analyses/{analysis_id} | Delete Analysis -*AnalysesCoreApi* | [**get_analysis_basic_info**](docs/AnalysesCoreApi.md#get_analysis_basic_info) | **GET** /v2/analyses/{analysis_id}/basic | Gets basic analysis information -*AnalysesCoreApi* | [**get_analysis_basic_info_0**](docs/AnalysesCoreApi.md#get_analysis_basic_info_0) | **GET** /v3/analyses/{analysis_id}/basic | Get basic analysis information +*AnalysesCoreApi* | [**get_analysis_basic_info**](docs/AnalysesCoreApi.md#get_analysis_basic_info) | **GET** /v3/analyses/{analysis_id}/basic | Get basic analysis information *AnalysesCoreApi* | [**get_analysis_bytes**](docs/AnalysesCoreApi.md#get_analysis_bytes) | **GET** /v3/analyses/{analysis_id}/bytes | Get the bytes of a binary -*AnalysesCoreApi* | [**get_analysis_function_map**](docs/AnalysesCoreApi.md#get_analysis_function_map) | **GET** /v2/analyses/{analysis_id}/func_maps | Get Analysis Function Map *AnalysesCoreApi* | [**get_analysis_function_matches**](docs/AnalysesCoreApi.md#get_analysis_function_matches) | **GET** /v3/analyses/{analysis_id}/functions/matches | Get function-matching results for an analysis *AnalysesCoreApi* | [**get_analysis_function_matching_status**](docs/AnalysesCoreApi.md#get_analysis_function_matching_status) | **GET** /v3/analyses/{analysis_id}/functions/matches/status | Get function-matching status for an analysis -*AnalysesCoreApi* | [**get_analysis_logs**](docs/AnalysesCoreApi.md#get_analysis_logs) | **GET** /v2/analyses/{analysis_id}/logs | Gets the logs of an analysis -*AnalysesCoreApi* | [**get_analysis_params**](docs/AnalysesCoreApi.md#get_analysis_params) | **GET** /v2/analyses/{analysis_id}/params | Gets analysis param information -*AnalysesCoreApi* | [**get_analysis_status**](docs/AnalysesCoreApi.md#get_analysis_status) | **GET** /v2/analyses/{analysis_id}/status | Gets the status of an analysis *AnalysesCoreApi* | [**get_dynamic_execution_report**](docs/AnalysesCoreApi.md#get_dynamic_execution_report) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/report | Get dynamic execution report *AnalysesCoreApi* | [**get_dynamic_execution_status**](docs/AnalysesCoreApi.md#get_dynamic_execution_status) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/status | Get dynamic execution status -*AnalysesCoreApi* | [**insert_analysis_log**](docs/AnalysesCoreApi.md#insert_analysis_log) | **POST** /v2/analyses/{analysis_id}/logs | Insert a log entry for an analysis -*AnalysesCoreApi* | [**list_analyses**](docs/AnalysesCoreApi.md#list_analyses) | **GET** /v2/analyses/list | Gets the most recent analyses -*AnalysesCoreApi* | [**lookup_binary_id**](docs/AnalysesCoreApi.md#lookup_binary_id) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID -*AnalysesCoreApi* | [**put_analysis_strings**](docs/AnalysesCoreApi.md#put_analysis_strings) | **PUT** /v2/analyses/{analysis_id}/strings | Add strings to the analysis -*AnalysesCoreApi* | [**requeue_analysis**](docs/AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis *AnalysesCoreApi* | [**start_analysis_function_matching**](docs/AnalysesCoreApi.md#start_analysis_function_matching) | **POST** /v3/analyses/{analysis_id}/functions/matches | Start function matching for an analysis -*AnalysesCoreApi* | [**update_analysis**](docs/AnalysesCoreApi.md#update_analysis) | **PATCH** /v2/analyses/{analysis_id} | Update Analysis -*AnalysesCoreApi* | [**update_analysis_tags**](docs/AnalysesCoreApi.md#update_analysis_tags) | **PATCH** /v2/analyses/{analysis_id}/tags | Update Analysis Tags -*AnalysesCoreApi* | [**upload_file**](docs/AnalysesCoreApi.md#upload_file) | **POST** /v2/upload | Upload File *AnalysesCoreApi* | [**v3_get_analysis_auto_unstrip_status**](docs/AnalysesCoreApi.md#v3_get_analysis_auto_unstrip_status) | **GET** /v3/analyses/{analysis_id}/auto-unstrip/status | Get the auto-unstrip status for an analysis. *AnalysesCoreApi* | [**v3_get_analysis_strings**](docs/AnalysesCoreApi.md#v3_get_analysis_strings) | **GET** /v3/analyses/{analysis_id}/functions/strings | List strings for an analysis. *AnalysesCoreApi* | [**v3_get_analysis_strings_status**](docs/AnalysesCoreApi.md#v3_get_analysis_strings_status) | **GET** /v3/analyses/{analysis_id}/functions/strings/status | Get the string-extraction status for an analysis. *AnalysesCoreApi* | [**v3_list_analyses**](docs/AnalysesCoreApi.md#v3_list_analyses) | **GET** /v3/analyses | List analyses *AnalysesCoreApi* | [**v3_list_example_analyses**](docs/AnalysesCoreApi.md#v3_list_example_analyses) | **GET** /v3/analyses/examples | List example analyses -*AnalysesResultsMetadataApi* | [**get_analysis_functions_paginated**](docs/AnalysesResultsMetadataApi.md#get_analysis_functions_paginated) | **GET** /v2/analyses/{analysis_id}/functions | Get functions from analysis -*AnalysesResultsMetadataApi* | [**get_capabilities**](docs/AnalysesResultsMetadataApi.md#get_capabilities) | **GET** /v2/analyses/{analysis_id}/capabilities | Gets the capabilities from the analysis -*AnalysesResultsMetadataApi* | [**get_functions_list**](docs/AnalysesResultsMetadataApi.md#get_functions_list) | **GET** /v2/analyses/{analysis_id}/functions/list | Gets functions from analysis -*AnalysesResultsMetadataApi* | [**get_sbom**](docs/AnalysesResultsMetadataApi.md#get_sbom) | **GET** /v2/analyses/{analysis_id}/sbom | Gets the software-bill-of-materials (SBOM) found in the analysis -*AnalysesResultsMetadataApi* | [**get_tags**](docs/AnalysesResultsMetadataApi.md#get_tags) | **GET** /v2/analyses/{analysis_id}/tags | Get function tags with maliciousness score -*AnalysesResultsMetadataApi* | [**get_vulnerabilities**](docs/AnalysesResultsMetadataApi.md#get_vulnerabilities) | **GET** /v2/analyses/{analysis_id}/vulnerabilities | Gets the vulnerabilities found in the analysis -*AnalysesXRefsApi* | [**get_xref_by_vaddr**](docs/AnalysesXRefsApi.md#get_xref_by_vaddr) | **GET** /v2/analyses/{analysis_id}/xrefs/{vaddr} | [Beta] Look up xrefs by virtual address -*AuthenticationUsersApi* | [**get_user**](docs/AuthenticationUsersApi.md#get_user) | **GET** /v2/users/{user_id} | Get a user's public information -*AuthenticationUsersApi* | [**get_user_activity**](docs/AuthenticationUsersApi.md#get_user_activity) | **GET** /v2/users/activity | Get auth user activity -*AuthenticationUsersApi* | [**submit_user_feedback**](docs/AuthenticationUsersApi.md#submit_user_feedback) | **POST** /v2/users/feedback | Submit feedback about the application -*BinariesApi* | [**download_zipped_binary**](docs/BinariesApi.md#download_zipped_binary) | **GET** /v2/binaries/{binary_id}/download-zipped | Downloads a zipped binary with password protection -*BinariesApi* | [**get_binary_additional_details**](docs/BinariesApi.md#get_binary_additional_details) | **GET** /v2/binaries/{binary_id}/additional-details | Gets the additional details of a binary -*BinariesApi* | [**get_binary_additional_details_0**](docs/BinariesApi.md#get_binary_additional_details_0) | **GET** /v3/binaries/{binary_id}/additional-details | Get additional details for a binary. -*BinariesApi* | [**get_binary_additional_details_status**](docs/BinariesApi.md#get_binary_additional_details_status) | **GET** /v2/binaries/{binary_id}/additional-details/status | Gets the status of the additional details task for a binary -*BinariesApi* | [**get_binary_additional_details_status_0**](docs/BinariesApi.md#get_binary_additional_details_status_0) | **GET** /v3/binaries/{binary_id}/additional-details/status | Get the additional-details extraction status for a binary. -*BinariesApi* | [**get_binary_details**](docs/BinariesApi.md#get_binary_details) | **GET** /v2/binaries/{binary_id}/details | Gets the details of a binary -*BinariesApi* | [**get_binary_die_info**](docs/BinariesApi.md#get_binary_die_info) | **GET** /v2/binaries/{binary_id}/die-info | Gets the die info of a binary -*BinariesApi* | [**get_binary_externals**](docs/BinariesApi.md#get_binary_externals) | **GET** /v2/binaries/{binary_id}/externals | Gets the external details of a binary -*BinariesApi* | [**get_binary_related_status**](docs/BinariesApi.md#get_binary_related_status) | **GET** /v2/binaries/{binary_id}/related/status | Gets the status of the unpack binary task for a binary -*BinariesApi* | [**get_related_binaries**](docs/BinariesApi.md#get_related_binaries) | **GET** /v2/binaries/{binary_id}/related | Gets the related binaries of a binary. -*CollectionsApi* | [**create_collection**](docs/CollectionsApi.md#create_collection) | **POST** /v2/collections | Creates new collection information -*CollectionsApi* | [**delete_collection**](docs/CollectionsApi.md#delete_collection) | **DELETE** /v2/collections/{collection_id} | Deletes a collection -*CollectionsApi* | [**get_collection**](docs/CollectionsApi.md#get_collection) | **GET** /v2/collections/{collection_id} | Returns a collection -*CollectionsApi* | [**list_collections**](docs/CollectionsApi.md#list_collections) | **GET** /v2/collections | Gets basic collections information -*CollectionsApi* | [**update_collection**](docs/CollectionsApi.md#update_collection) | **PATCH** /v2/collections/{collection_id} | Updates a collection -*CollectionsApi* | [**update_collection_binaries**](docs/CollectionsApi.md#update_collection_binaries) | **PATCH** /v2/collections/{collection_id}/binaries | Updates a collection binaries -*CollectionsApi* | [**update_collection_tags**](docs/CollectionsApi.md#update_collection_tags) | **PATCH** /v2/collections/{collection_id}/tags | Updates a collection tags +*BinariesApi* | [**get_binary_additional_details**](docs/BinariesApi.md#get_binary_additional_details) | **GET** /v3/binaries/{binary_id}/additional-details | Get additional details for a binary. +*BinariesApi* | [**get_binary_additional_details_status**](docs/BinariesApi.md#get_binary_additional_details_status) | **GET** /v3/binaries/{binary_id}/additional-details/status | Get the additional-details extraction status for a binary. *CollectionsApi* | [**v3_create_collection**](docs/CollectionsApi.md#v3_create_collection) | **POST** /v3/collections | Create a collection. *CollectionsApi* | [**v3_delete_collection**](docs/CollectionsApi.md#v3_delete_collection) | **DELETE** /v3/collections/{collection_id} | Delete a collection. *CollectionsApi* | [**v3_get_collection**](docs/CollectionsApi.md#v3_get_collection) | **GET** /v3/collections/{collection_id} | Get a collection. @@ -118,7 +63,6 @@ Class | Method | HTTP request | Description *CollectionsApi* | [**v3_patch_collection**](docs/CollectionsApi.md#v3_patch_collection) | **PATCH** /v3/collections/{collection_id} | Update a collection. *CollectionsApi* | [**v3_patch_collection_binaries**](docs/CollectionsApi.md#v3_patch_collection_binaries) | **PATCH** /v3/collections/{collection_id}/binaries | Replace the binaries in a collection. *CollectionsApi* | [**v3_patch_collection_tags**](docs/CollectionsApi.md#v3_patch_collection_tags) | **PATCH** /v3/collections/{collection_id}/tags | Replace the tags on a collection. -*ConfigApi* | [**get_config**](docs/ConfigApi.md#get_config) | **GET** /v2/config | Get Config *ConversationsApi* | [**cancel_run**](docs/ConversationsApi.md#cancel_run) | **POST** /v2/conversations/{id}/cancel | Cancel an active run *ConversationsApi* | [**confirm_tool**](docs/ConversationsApi.md#confirm_tool) | **POST** /v2/conversations/{id}/confirm | Approve or reject a pending tool confirmation *ConversationsApi* | [**create_conversation**](docs/ConversationsApi.md#create_conversation) | **POST** /v2/conversations | Create a new conversation @@ -126,17 +70,11 @@ Class | Method | HTTP request | Description *ConversationsApi* | [**list_conversations**](docs/ConversationsApi.md#list_conversations) | **GET** /v2/conversations | List conversations for the authenticated user *ConversationsApi* | [**send_message**](docs/ConversationsApi.md#send_message) | **POST** /v2/conversations/{id}/messages | Send a message and start an agentic run *ConversationsApi* | [**stream_events**](docs/ConversationsApi.md#stream_events) | **GET** /v2/conversations/{id}/events | Stream conversation events (SSE) -*ExternalSourcesApi* | [**create_external_task_vt**](docs/ExternalSourcesApi.md#create_external_task_vt) | **POST** /v2/analysis/{analysis_id}/external/vt | Pulls data from VirusTotal -*ExternalSourcesApi* | [**get_vt_data**](docs/ExternalSourcesApi.md#get_vt_data) | **GET** /v2/analysis/{analysis_id}/external/vt | Get VirusTotal data -*ExternalSourcesApi* | [**get_vt_task_status**](docs/ExternalSourcesApi.md#get_vt_task_status) | **GET** /v2/analysis/{analysis_id}/external/vt/status | Check the status of VirusTotal data retrieval -*FirmwareApi* | [**get_binaries_for_firmware_task**](docs/FirmwareApi.md#get_binaries_for_firmware_task) | **GET** /v2/firmware/get-binaries/{task_id} | Upload firmware for unpacking -*FirmwareApi* | [**upload_firmware**](docs/FirmwareApi.md#upload_firmware) | **POST** /v2/firmware | Upload firmware for unpacking *FunctionsAIDecompilationApi* | [**create_ai_decompilation**](docs/FunctionsAIDecompilationApi.md#create_ai_decompilation) | **POST** /v3/functions/{function_id}/ai-decompilation | Start AI decompilation *FunctionsAIDecompilationApi* | [**delete_ai_decompilation_inline_comment**](docs/FunctionsAIDecompilationApi.md#delete_ai_decompilation_inline_comment) | **DELETE** /v3/functions/{function_id}/ai-decompilation/inline-comments/{line} | Delete a single inline comment *FunctionsAIDecompilationApi* | [**get_ai_decompilation**](docs/FunctionsAIDecompilationApi.md#get_ai_decompilation) | **GET** /v3/functions/{function_id}/ai-decompilation | Get AI decompilation result *FunctionsAIDecompilationApi* | [**get_ai_decompilation_inline_comments**](docs/FunctionsAIDecompilationApi.md#get_ai_decompilation_inline_comments) | **GET** /v3/functions/{function_id}/ai-decompilation/inline-comments | Get AI decompilation inline comments *FunctionsAIDecompilationApi* | [**get_ai_decompilation_inline_comments_status**](docs/FunctionsAIDecompilationApi.md#get_ai_decompilation_inline_comments_status) | **GET** /v3/functions/{function_id}/ai-decompilation/inline-comments/status | Get inline comments generation workflow status -*FunctionsAIDecompilationApi* | [**get_ai_decompilation_rating**](docs/FunctionsAIDecompilationApi.md#get_ai_decompilation_rating) | **GET** /v2/functions/{function_id}/ai-decompilation/rating | Get rating for AI decompilation *FunctionsAIDecompilationApi* | [**get_ai_decompilation_status**](docs/FunctionsAIDecompilationApi.md#get_ai_decompilation_status) | **GET** /v3/functions/{function_id}/ai-decompilation/status | Get AI decompilation workflow status *FunctionsAIDecompilationApi* | [**get_ai_decompilation_summary**](docs/FunctionsAIDecompilationApi.md#get_ai_decompilation_summary) | **GET** /v3/functions/{function_id}/ai-decompilation/summary | Get AI decompilation summary *FunctionsAIDecompilationApi* | [**get_ai_decompilation_summary_status**](docs/FunctionsAIDecompilationApi.md#get_ai_decompilation_summary_status) | **GET** /v3/functions/{function_id}/ai-decompilation/summary/status | Get summary generation workflow status @@ -146,23 +84,14 @@ Class | Method | HTTP request | Description *FunctionsAIDecompilationApi* | [**regenerate_ai_decompilation_summary**](docs/FunctionsAIDecompilationApi.md#regenerate_ai_decompilation_summary) | **POST** /v3/functions/{function_id}/ai-decompilation/summary | Regenerate AI decompilation summary *FunctionsAIDecompilationApi* | [**stream_ai_decompilation**](docs/FunctionsAIDecompilationApi.md#stream_ai_decompilation) | **GET** /v3/functions/{function_id}/ai-decompilation/events | Stream live AI decompilation output (SSE) *FunctionsAIDecompilationApi* | [**upsert_ai_decompilation_overrides**](docs/FunctionsAIDecompilationApi.md#upsert_ai_decompilation_overrides) | **PATCH** /v3/functions/{function_id}/ai-decompilation/overrides | Upsert variable/function name overrides -*FunctionsAIDecompilationApi* | [**upsert_ai_decompilation_rating**](docs/FunctionsAIDecompilationApi.md#upsert_ai_decompilation_rating) | **PATCH** /v2/functions/{function_id}/ai-decompilation/rating | Upsert rating for AI decompilation *FunctionsCoreApi* | [**add_function_callee**](docs/FunctionsCoreApi.md#add_function_callee) | **POST** /v3/functions/{function_id}/callees | Add a callee to a function *FunctionsCoreApi* | [**add_user_string_to_function**](docs/FunctionsCoreApi.md#add_user_string_to_function) | **POST** /v3/functions/{function_id}/user-provided-strings | Add a user-provided string to a function. -*FunctionsCoreApi* | [**get_analysis_strings**](docs/FunctionsCoreApi.md#get_analysis_strings) | **GET** /v2/analyses/{analysis_id}/functions/strings | Get string information found in the Analysis -*FunctionsCoreApi* | [**get_analysis_strings_status**](docs/FunctionsCoreApi.md#get_analysis_strings_status) | **GET** /v2/analyses/{analysis_id}/functions/strings/status | Get string processing state for the Analysis -*FunctionsCoreApi* | [**get_function_blocks**](docs/FunctionsCoreApi.md#get_function_blocks) | **GET** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function -*FunctionsCoreApi* | [**get_function_blocks_0**](docs/FunctionsCoreApi.md#get_function_blocks_0) | **GET** /v3/functions/{function_id}/blocks | Get function disassembly -*FunctionsCoreApi* | [**get_function_callees_callers**](docs/FunctionsCoreApi.md#get_function_callees_callers) | **GET** /v2/functions/{function_id}/callees_callers | Get list of functions that call or are called by the specified function -*FunctionsCoreApi* | [**get_function_callees_callers_0**](docs/FunctionsCoreApi.md#get_function_callees_callers_0) | **GET** /v3/functions/{function_id}/callees-callers | Get callees and callers for a function -*FunctionsCoreApi* | [**get_function_callees_callers_bulk**](docs/FunctionsCoreApi.md#get_function_callees_callers_bulk) | **GET** /v2/functions/callees_callers | Get list of functions that call or are called for a list of functions -*FunctionsCoreApi* | [**get_function_capabilities**](docs/FunctionsCoreApi.md#get_function_capabilities) | **GET** /v2/functions/{function_id}/capabilities | Retrieve a functions capabilities -*FunctionsCoreApi* | [**get_function_capabilities_0**](docs/FunctionsCoreApi.md#get_function_capabilities_0) | **GET** /v3/functions/{function_id}/capabilities | Get capabilities for a function -*FunctionsCoreApi* | [**get_function_details**](docs/FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details -*FunctionsCoreApi* | [**get_function_details_0**](docs/FunctionsCoreApi.md#get_function_details_0) | **GET** /v3/functions/{function_id} | Get function details +*FunctionsCoreApi* | [**get_function_blocks**](docs/FunctionsCoreApi.md#get_function_blocks) | **GET** /v3/functions/{function_id}/blocks | Get function disassembly +*FunctionsCoreApi* | [**get_function_callees_callers**](docs/FunctionsCoreApi.md#get_function_callees_callers) | **GET** /v3/functions/{function_id}/callees-callers | Get callees and callers for a function +*FunctionsCoreApi* | [**get_function_capabilities**](docs/FunctionsCoreApi.md#get_function_capabilities) | **GET** /v3/functions/{function_id}/capabilities | Get capabilities for a function +*FunctionsCoreApi* | [**get_function_details**](docs/FunctionsCoreApi.md#get_function_details) | **GET** /v3/functions/{function_id} | Get function details *FunctionsCoreApi* | [**get_function_indirect_call_sites**](docs/FunctionsCoreApi.md#get_function_indirect_call_sites) | **GET** /v3/functions/{function_id}/indirect-call-sites | Get indirect call sites for a function -*FunctionsCoreApi* | [**get_function_strings**](docs/FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function -*FunctionsCoreApi* | [**get_function_strings_0**](docs/FunctionsCoreApi.md#get_function_strings_0) | **GET** /v3/functions/{function_id}/strings | List strings for a function. +*FunctionsCoreApi* | [**get_function_strings**](docs/FunctionsCoreApi.md#get_function_strings) | **GET** /v3/functions/{function_id}/strings | List strings for a function. *FunctionsCoreApi* | [**get_functions_callees_callers**](docs/FunctionsCoreApi.md#get_functions_callees_callers) | **GET** /v3/functions/callees-callers | Get callees and callers for many functions *FunctionsCoreApi* | [**get_functions_matches**](docs/FunctionsCoreApi.md#get_functions_matches) | **GET** /v3/functions/matches | Get function-matching results for an explicit set of functions *FunctionsCoreApi* | [**get_functions_matching_status**](docs/FunctionsCoreApi.md#get_functions_matching_status) | **GET** /v3/functions/matches/status | Get function-matching status for an explicit set of functions @@ -172,32 +101,19 @@ Class | Method | HTTP request | Description *FunctionsCoreApi* | [**start_functions_matching**](docs/FunctionsCoreApi.md#start_functions_matching) | **POST** /v3/functions/matches | Start function matching for an explicit set of functions *FunctionsCoreApi* | [**v3_canonicalize_function_names**](docs/FunctionsCoreApi.md#v3_canonicalize_function_names) | **POST** /v3/functions/canonical-names | Canonicalize a batch of function names *FunctionsDataTypesApi* | [**batch_update_function_data_types**](docs/FunctionsDataTypesApi.md#batch_update_function_data_types) | **PUT** /v3/analyses/{analysis_id}/functions/data-types | Batch update function data types -*FunctionsDataTypesApi* | [**generate_function_data_types_for_analysis**](docs/FunctionsDataTypesApi.md#generate_function_data_types_for_analysis) | **POST** /v2/analyses/{analysis_id}/functions/data_types | Generate Function Data Types -*FunctionsDataTypesApi* | [**generate_function_data_types_for_functions**](docs/FunctionsDataTypesApi.md#generate_function_data_types_for_functions) | **POST** /v2/functions/data_types | Generate Function Data Types for an arbitrary list of functions *FunctionsDataTypesApi* | [**get_function_data_types**](docs/FunctionsDataTypesApi.md#get_function_data_types) | **GET** /v3/analyses/{analysis_id}/functions/{function_id}/data-types | Get data types for a single function *FunctionsDataTypesApi* | [**list_analysis_functions_data_types**](docs/FunctionsDataTypesApi.md#list_analysis_functions_data_types) | **GET** /v3/analyses/{analysis_id}/functions/data-types | List data types for all functions in an analysis -*FunctionsDataTypesApi* | [**list_function_data_types_for_analysis**](docs/FunctionsDataTypesApi.md#list_function_data_types_for_analysis) | **GET** /v2/analyses/{analysis_id}/functions/data_types | List Function Data Types -*FunctionsDataTypesApi* | [**list_function_data_types_for_functions**](docs/FunctionsDataTypesApi.md#list_function_data_types_for_functions) | **GET** /v2/functions/data_types | List Function Data Types *FunctionsDataTypesApi* | [**list_functions_data_types**](docs/FunctionsDataTypesApi.md#list_functions_data_types) | **GET** /v3/functions/data-types | Get data types for many functions *FunctionsDataTypesApi* | [**update_function_data_types**](docs/FunctionsDataTypesApi.md#update_function_data_types) | **PUT** /v2/analyses/{analysis_id}/functions/{function_id}/data_types | Update function data types -*FunctionsRenamingHistoryApi* | [**batch_rename_function**](docs/FunctionsRenamingHistoryApi.md#batch_rename_function) | **POST** /v2/functions/rename/batch | Batch Rename Functions *FunctionsRenamingHistoryApi* | [**batch_rename_functions**](docs/FunctionsRenamingHistoryApi.md#batch_rename_functions) | **POST** /v3/functions/rename | Batch rename functions *FunctionsRenamingHistoryApi* | [**get_function_history**](docs/FunctionsRenamingHistoryApi.md#get_function_history) | **GET** /v3/functions/{function_id}/history | Get function name history -*FunctionsRenamingHistoryApi* | [**get_function_name_history**](docs/FunctionsRenamingHistoryApi.md#get_function_name_history) | **GET** /v2/functions/history/{function_id} | Get Function Name History *FunctionsRenamingHistoryApi* | [**rename_function**](docs/FunctionsRenamingHistoryApi.md#rename_function) | **POST** /v3/functions/{function_id}/rename | Rename a function -*FunctionsRenamingHistoryApi* | [**rename_function_id**](docs/FunctionsRenamingHistoryApi.md#rename_function_id) | **POST** /v2/functions/rename/{function_id} | Rename Function -*FunctionsRenamingHistoryApi* | [**revert_function_name**](docs/FunctionsRenamingHistoryApi.md#revert_function_name) | **POST** /v2/functions/history/{function_id}/{history_id} | Revert the function name -*FunctionsRenamingHistoryApi* | [**revert_function_name_0**](docs/FunctionsRenamingHistoryApi.md#revert_function_name_0) | **POST** /v3/functions/{function_id}/history/{history_id}/revert | Revert function name +*FunctionsRenamingHistoryApi* | [**revert_function_name**](docs/FunctionsRenamingHistoryApi.md#revert_function_name) | **POST** /v3/functions/{function_id}/history/{history_id}/revert | Revert function name *IAMUsersApi* | [**get_me**](docs/IAMUsersApi.md#get_me) | **GET** /v2/iam/me | Get current user *IAMUsersApi* | [**get_my_permissions**](docs/IAMUsersApi.md#get_my_permissions) | **GET** /v2/iam/me/permissions | Get current user permissions -*ModelsApi* | [**get_models**](docs/ModelsApi.md#get_models) | **GET** /v2/models | Gets models *ReportsApi* | [**create_pdf_report**](docs/ReportsApi.md#create_pdf_report) | **POST** /v3/analyses/{analysis_id}/pdf | Start PDF report generation *ReportsApi* | [**download_pdf_report**](docs/ReportsApi.md#download_pdf_report) | **GET** /v3/analyses/{analysis_id}/pdf | Download generated PDF report *ReportsApi* | [**get_pdf_report_status**](docs/ReportsApi.md#get_pdf_report_status) | **GET** /v3/analyses/{analysis_id}/pdf/status | Get PDF report workflow status -*SearchApi* | [**search_binaries**](docs/SearchApi.md#search_binaries) | **GET** /v2/search/binaries | Binaries search -*SearchApi* | [**search_collections**](docs/SearchApi.md#search_collections) | **GET** /v2/search/collections | Collections search -*SearchApi* | [**search_functions**](docs/SearchApi.md#search_functions) | **GET** /v2/search/functions | Functions search -*SearchApi* | [**search_tags**](docs/SearchApi.md#search_tags) | **GET** /v2/search/tags | Tags search ## Documentation For Models @@ -212,118 +128,21 @@ Class | Method | HTTP request | Description - [AddTeamMemberInputBody](docs/AddTeamMemberInputBody.md) - [AddUserStringInputBody](docs/AddUserStringInputBody.md) - [AddUserStringToFunctionInputBody](docs/AddUserStringToFunctionInputBody.md) - - [AdditionalDetailsStatusResponse](docs/AdditionalDetailsStatusResponse.md) - - [AiDecompilationRating](docs/AiDecompilationRating.md) - - [AnalysisAccessInfo](docs/AnalysisAccessInfo.md) - [AnalysisBasicInfoOutputBody](docs/AnalysisBasicInfoOutputBody.md) - - [AnalysisBulkAddTagsRequest](docs/AnalysisBulkAddTagsRequest.md) - - [AnalysisBulkAddTagsResponse](docs/AnalysisBulkAddTagsResponse.md) - - [AnalysisBulkAddTagsResponseItem](docs/AnalysisBulkAddTagsResponseItem.md) - - [AnalysisConfig](docs/AnalysisConfig.md) - - [AnalysisConfigSnapshot](docs/AnalysisConfigSnapshot.md) - - [AnalysisCreateRequest](docs/AnalysisCreateRequest.md) - - [AnalysisCreateResponse](docs/AnalysisCreateResponse.md) - - [AnalysisDetailResponse](docs/AnalysisDetailResponse.md) - [AnalysisFunctionEntry](docs/AnalysisFunctionEntry.md) - - [AnalysisFunctionMapping](docs/AnalysisFunctionMapping.md) - - [AnalysisFunctions](docs/AnalysisFunctions.md) - - [AnalysisFunctionsList](docs/AnalysisFunctionsList.md) - [AnalysisLogMessage](docs/AnalysisLogMessage.md) - [AnalysisLogs](docs/AnalysisLogs.md) - - [AnalysisRecord](docs/AnalysisRecord.md) - [AnalysisRecordBody](docs/AnalysisRecordBody.md) - [AnalysisReport](docs/AnalysisReport.md) - - [AnalysisScope](docs/AnalysisScope.md) - [AnalysisStringFunction](docs/AnalysisStringFunction.md) - - [AnalysisStringInput](docs/AnalysisStringInput.md) - [AnalysisStringItem](docs/AnalysisStringItem.md) - - [AnalysisStringsResponse](docs/AnalysisStringsResponse.md) - - [AnalysisStringsStatusResponse](docs/AnalysisStringsStatusResponse.md) - [AnalysisTagBody](docs/AnalysisTagBody.md) - - [AnalysisTags](docs/AnalysisTags.md) - - [AnalysisUpdateRequest](docs/AnalysisUpdateRequest.md) - - [AnalysisUpdateTagsRequest](docs/AnalysisUpdateTagsRequest.md) - - [AnalysisUpdateTagsResponse](docs/AnalysisUpdateTagsResponse.md) - [ApiCall](docs/ApiCall.md) - - [AppApiRestV2AgentSchemaCapability](docs/AppApiRestV2AgentSchemaCapability.md) - - [AppApiRestV2AnalysesEnumsOrderBy](docs/AppApiRestV2AnalysesEnumsOrderBy.md) - - [AppApiRestV2CollectionsEnumsOrderBy](docs/AppApiRestV2CollectionsEnumsOrderBy.md) - - [AppApiRestV2FunctionsResponsesFunction](docs/AppApiRestV2FunctionsResponsesFunction.md) - - [AppApiRestV2FunctionsTypesFunction](docs/AppApiRestV2FunctionsTypesFunction.md) - - [AppApiRestV2InfoTypesCapability](docs/AppApiRestV2InfoTypesCapability.md) - [ArchiveContentEntry](docs/ArchiveContentEntry.md) - - [Argument](docs/Argument.md) - [Artifact](docs/Artifact.md) - [AttemptFailedEvent](docs/AttemptFailedEvent.md) - [AttemptStartedEvent](docs/AttemptStartedEvent.md) - - [AutoRunAgents](docs/AutoRunAgents.md) - [AutoUnstripStatusOutputBody](docs/AutoUnstripStatusOutputBody.md) - - [BaseResponse](docs/BaseResponse.md) - - [BaseResponseAdditionalDetailsStatusResponse](docs/BaseResponseAdditionalDetailsStatusResponse.md) - - [BaseResponseAnalysisBulkAddTagsResponse](docs/BaseResponseAnalysisBulkAddTagsResponse.md) - - [BaseResponseAnalysisCreateResponse](docs/BaseResponseAnalysisCreateResponse.md) - - [BaseResponseAnalysisDetailResponse](docs/BaseResponseAnalysisDetailResponse.md) - - [BaseResponseAnalysisFunctionMapping](docs/BaseResponseAnalysisFunctionMapping.md) - - [BaseResponseAnalysisFunctions](docs/BaseResponseAnalysisFunctions.md) - - [BaseResponseAnalysisFunctionsList](docs/BaseResponseAnalysisFunctionsList.md) - - [BaseResponseAnalysisStringsResponse](docs/BaseResponseAnalysisStringsResponse.md) - - [BaseResponseAnalysisStringsStatusResponse](docs/BaseResponseAnalysisStringsStatusResponse.md) - - [BaseResponseAnalysisTags](docs/BaseResponseAnalysisTags.md) - - [BaseResponseAnalysisUpdateTagsResponse](docs/BaseResponseAnalysisUpdateTagsResponse.md) - - [BaseResponseBasic](docs/BaseResponseBasic.md) - - [BaseResponseBinariesRelatedStatusResponse](docs/BaseResponseBinariesRelatedStatusResponse.md) - - [BaseResponseBinaryAdditionalResponse](docs/BaseResponseBinaryAdditionalResponse.md) - - [BaseResponseBinaryDetailsResponse](docs/BaseResponseBinaryDetailsResponse.md) - - [BaseResponseBinaryExternalsResponse](docs/BaseResponseBinaryExternalsResponse.md) - - [BaseResponseBinarySearchResponse](docs/BaseResponseBinarySearchResponse.md) - - [BaseResponseBool](docs/BaseResponseBool.md) - - [BaseResponseCalleesCallerFunctionsResponse](docs/BaseResponseCalleesCallerFunctionsResponse.md) - - [BaseResponseCapabilities](docs/BaseResponseCapabilities.md) - - [BaseResponseCapabilitiesAgentResponse](docs/BaseResponseCapabilitiesAgentResponse.md) - - [BaseResponseChildBinariesResponse](docs/BaseResponseChildBinariesResponse.md) - - [BaseResponseCollectionBinariesUpdateResponse](docs/BaseResponseCollectionBinariesUpdateResponse.md) - - [BaseResponseCollectionResponse](docs/BaseResponseCollectionResponse.md) - - [BaseResponseCollectionSearchResponse](docs/BaseResponseCollectionSearchResponse.md) - - [BaseResponseCollectionTagsUpdateResponse](docs/BaseResponseCollectionTagsUpdateResponse.md) - - [BaseResponseCommentResponse](docs/BaseResponseCommentResponse.md) - - [BaseResponseConfigResponse](docs/BaseResponseConfigResponse.md) - - [BaseResponseCreated](docs/BaseResponseCreated.md) - - [BaseResponseDict](docs/BaseResponseDict.md) - - [BaseResponseExternalResponse](docs/BaseResponseExternalResponse.md) - - [BaseResponseFunctionBlocksResponse](docs/BaseResponseFunctionBlocksResponse.md) - - [BaseResponseFunctionCapabilityResponse](docs/BaseResponseFunctionCapabilityResponse.md) - - [BaseResponseFunctionDataTypes](docs/BaseResponseFunctionDataTypes.md) - - [BaseResponseFunctionDataTypesList](docs/BaseResponseFunctionDataTypesList.md) - - [BaseResponseFunctionSearchResponse](docs/BaseResponseFunctionSearchResponse.md) - - [BaseResponseFunctionStringsResponse](docs/BaseResponseFunctionStringsResponse.md) - - [BaseResponseFunctionsDetailResponse](docs/BaseResponseFunctionsDetailResponse.md) - - [BaseResponseGenerateFunctionDataTypes](docs/BaseResponseGenerateFunctionDataTypes.md) - - [BaseResponseGenerationStatusList](docs/BaseResponseGenerationStatusList.md) - - [BaseResponseGetPublicUserResponse](docs/BaseResponseGetPublicUserResponse.md) - - [BaseResponseListCalleesCallerFunctionsResponse](docs/BaseResponseListCalleesCallerFunctionsResponse.md) - - [BaseResponseListCollectionResults](docs/BaseResponseListCollectionResults.md) - - [BaseResponseListCommentResponse](docs/BaseResponseListCommentResponse.md) - - [BaseResponseListDieMatch](docs/BaseResponseListDieMatch.md) - - [BaseResponseListFunctionNameHistory](docs/BaseResponseListFunctionNameHistory.md) - - [BaseResponseListSBOM](docs/BaseResponseListSBOM.md) - - [BaseResponseListUserActivityResponse](docs/BaseResponseListUserActivityResponse.md) - - [BaseResponseLogs](docs/BaseResponseLogs.md) - - [BaseResponseModelsResponse](docs/BaseResponseModelsResponse.md) - - [BaseResponseParams](docs/BaseResponseParams.md) - - [BaseResponseQueuedWorkflowTaskResponse](docs/BaseResponseQueuedWorkflowTaskResponse.md) - - [BaseResponseRecent](docs/BaseResponseRecent.md) - - [BaseResponseReportAnalysisResponse](docs/BaseResponseReportAnalysisResponse.md) - - [BaseResponseStatus](docs/BaseResponseStatus.md) - - [BaseResponseStr](docs/BaseResponseStr.md) - - [BaseResponseTagSearchResponse](docs/BaseResponseTagSearchResponse.md) - - [BaseResponseTaskResponse](docs/BaseResponseTaskResponse.md) - - [BaseResponseTaskStatusResponse](docs/BaseResponseTaskStatusResponse.md) - - [BaseResponseTriageReportResponse](docs/BaseResponseTriageReportResponse.md) - - [BaseResponseUnionGetAiDecompilationRatingResponseNoneType](docs/BaseResponseUnionGetAiDecompilationRatingResponseNoneType.md) - - [BaseResponseUploadResponse](docs/BaseResponseUploadResponse.md) - - [BaseResponseVulnerabilities](docs/BaseResponseVulnerabilities.md) - - [BaseResponseXrefResponse](docs/BaseResponseXrefResponse.md) - - [Basic](docs/Basic.md) - [BatchBinaryMatchResult](docs/BatchBinaryMatchResult.md) - [BatchMatchingOutputBody](docs/BatchMatchingOutputBody.md) - [BatchRenameInputBody](docs/BatchRenameInputBody.md) @@ -333,57 +152,21 @@ Class | Method | HTTP request | Description - [BatchUpdateDataTypesItem](docs/BatchUpdateDataTypesItem.md) - [BatchUpdateDataTypesOutputBody](docs/BatchUpdateDataTypesOutputBody.md) - [BatchUpdateDataTypesResult](docs/BatchUpdateDataTypesResult.md) - - [BinariesRelatedStatusResponse](docs/BinariesRelatedStatusResponse.md) - - [BinariesTaskStatus](docs/BinariesTaskStatus.md) - [Binary](docs/Binary.md) - - [BinaryAdditionalDetailsDataResponse](docs/BinaryAdditionalDetailsDataResponse.md) - - [BinaryAdditionalResponse](docs/BinaryAdditionalResponse.md) - - [BinaryConfig](docs/BinaryConfig.md) - - [BinaryDetailsResponse](docs/BinaryDetailsResponse.md) - - [BinaryExternalsResponse](docs/BinaryExternalsResponse.md) - - [BinarySearchResponse](docs/BinarySearchResponse.md) - - [BinarySearchResult](docs/BinarySearchResult.md) - - [BinaryTaskStatus](docs/BinaryTaskStatus.md) - [BulkCreateUserResult](docs/BulkCreateUserResult.md) - [BulkCreateUsersOutputBody](docs/BulkCreateUsersOutputBody.md) - - [BulkDeleteAnalysesRequest](docs/BulkDeleteAnalysesRequest.md) - [CallEdge](docs/CallEdge.md) - [CallEdgesOutputBody](docs/CallEdgesOutputBody.md) - - [CalleeFunctionInfo](docs/CalleeFunctionInfo.md) - - [CalleesCallerFunctionsResponse](docs/CalleesCallerFunctionsResponse.md) - - [CallerFunctionInfo](docs/CallerFunctionInfo.md) - [CanonicalName](docs/CanonicalName.md) - [CanonicalizeNamesInputBody](docs/CanonicalizeNamesInputBody.md) - [CanonicalizeNamesOutputBody](docs/CanonicalizeNamesOutputBody.md) - - [Capabilities](docs/Capabilities.md) - - [CapabilitiesAgentResponse](docs/CapabilitiesAgentResponse.md) - [CapabilitiesOutputBody](docs/CapabilitiesOutputBody.md) - [CapabilityEntry](docs/CapabilityEntry.md) - - [ChildBinariesResponse](docs/ChildBinariesResponse.md) - - [CodeSignatureModel](docs/CodeSignatureModel.md) - - [CollectionBinariesUpdateRequest](docs/CollectionBinariesUpdateRequest.md) - - [CollectionBinariesUpdateResponse](docs/CollectionBinariesUpdateResponse.md) - - [CollectionBinaryResponse](docs/CollectionBinaryResponse.md) - - [CollectionCreateRequest](docs/CollectionCreateRequest.md) - - [CollectionListItem](docs/CollectionListItem.md) - [CollectionListItemBody](docs/CollectionListItemBody.md) - - [CollectionResponse](docs/CollectionResponse.md) - - [CollectionResponseBinariesInner](docs/CollectionResponseBinariesInner.md) - - [CollectionScope](docs/CollectionScope.md) - - [CollectionSearchResponse](docs/CollectionSearchResponse.md) - - [CollectionSearchResult](docs/CollectionSearchResult.md) - - [CollectionTagsUpdateRequest](docs/CollectionTagsUpdateRequest.md) - - [CollectionTagsUpdateResponse](docs/CollectionTagsUpdateResponse.md) - - [CollectionUpdateRequest](docs/CollectionUpdateRequest.md) - - [CommentBase](docs/CommentBase.md) - - [CommentResponse](docs/CommentResponse.md) - - [CommentUpdateRequest](docs/CommentUpdateRequest.md) - [CommentsData](docs/CommentsData.md) - - [ConfigResponse](docs/ConfigResponse.md) - [ConfirmToolInputBody](docs/ConfirmToolInputBody.md) - [Connection](docs/Connection.md) - [ConsoleOutputEntry](docs/ConsoleOutputEntry.md) - - [Context](docs/Context.md) - [Conversation](docs/Conversation.md) - [ConversationContext](docs/ConversationContext.md) - [ConversationWithEvents](docs/ConversationWithEvents.md) @@ -399,30 +182,15 @@ Class | Method | HTTP request | Description - [CreatePortalSessionInputBody](docs/CreatePortalSessionInputBody.md) - [CreateTeamInputBody](docs/CreateTeamInputBody.md) - [CreateUserInputBody](docs/CreateUserInputBody.md) - - [Created](docs/Created.md) - [DataTypesEntry](docs/DataTypesEntry.md) - [DecompFailedEvent](docs/DecompFailedEvent.md) - [DecompFinishedEvent](docs/DecompFinishedEvent.md) - - [DecompilationCommentContext](docs/DecompilationCommentContext.md) - [DecompilationData](docs/DecompilationData.md) - - [DieMatch](docs/DieMatch.md) - [DisassemblyOutputBody](docs/DisassemblyOutputBody.md) - [DnsQuery](docs/DnsQuery.md) - [DrakvufFileMetadata](docs/DrakvufFileMetadata.md) - - [DynamicExecutionStatus](docs/DynamicExecutionStatus.md) - [DynamicExecutionStatusResponse](docs/DynamicExecutionStatusResponse.md) - - [ELFImportModel](docs/ELFImportModel.md) - - [ELFModel](docs/ELFModel.md) - - [ELFRelocation](docs/ELFRelocation.md) - - [ELFSection](docs/ELFSection.md) - - [ELFSecurity](docs/ELFSecurity.md) - - [ELFSegment](docs/ELFSegment.md) - - [ELFSymbol](docs/ELFSymbol.md) - - [ElfDynamicEntry](docs/ElfDynamicEntry.md) - - [EntrypointModel](docs/EntrypointModel.md) - - [Enumeration](docs/Enumeration.md) - [ErrorBody](docs/ErrorBody.md) - - [ErrorModel](docs/ErrorModel.md) - [Event](docs/Event.md) - [EventAttemptFailed](docs/EventAttemptFailed.md) - [EventAttemptStarted](docs/EventAttemptStarted.md) @@ -451,76 +219,36 @@ Class | Method | HTTP request | Description - [EventTOOLCONFIRMATIONREQUIRED](docs/EventTOOLCONFIRMATIONREQUIRED.md) - [EventWarning](docs/EventWarning.md) - [Example](docs/Example.md) - - [ExportModel](docs/ExportModel.md) - - [ExternalResponse](docs/ExternalResponse.md) - [ExtractedURL](docs/ExtractedURL.md) - [FileActivityEntry](docs/FileActivityEntry.md) - - [FileFormat](docs/FileFormat.md) - - [FileHashes](docs/FileHashes.md) - - [FileMetadata](docs/FileMetadata.md) - - [Filters](docs/Filters.md) - [FormFile](docs/FormFile.md) - [FunctionArgument](docs/FunctionArgument.md) - - [FunctionBlockDestinationResponse](docs/FunctionBlockDestinationResponse.md) - - [FunctionBlockResponse](docs/FunctionBlockResponse.md) - - [FunctionBlocksResponse](docs/FunctionBlocksResponse.md) - - [FunctionBoundary](docs/FunctionBoundary.md) - [FunctionCallEdges](docs/FunctionCallEdges.md) - - [FunctionCapabilityResponse](docs/FunctionCapabilityResponse.md) - - [FunctionDataTypes](docs/FunctionDataTypes.md) - - [FunctionDataTypesList](docs/FunctionDataTypesList.md) - - [FunctionDataTypesListItem](docs/FunctionDataTypesListItem.md) - - [FunctionDataTypesParams](docs/FunctionDataTypesParams.md) - - [FunctionDataTypesStatus](docs/FunctionDataTypesStatus.md) - [FunctionDependency](docs/FunctionDependency.md) - [FunctionDetailsOutputBody](docs/FunctionDetailsOutputBody.md) - [FunctionHeader](docs/FunctionHeader.md) - [FunctionInfo](docs/FunctionInfo.md) - - [FunctionListItem](docs/FunctionListItem.md) - - [FunctionLocalVariableResponse](docs/FunctionLocalVariableResponse.md) - - [FunctionMapping](docs/FunctionMapping.md) - [FunctionMatch](docs/FunctionMatch.md) - - [FunctionNameHistory](docs/FunctionNameHistory.md) - - [FunctionParamResponse](docs/FunctionParamResponse.md) - - [FunctionRename](docs/FunctionRename.md) - - [FunctionRenameMap](docs/FunctionRenameMap.md) - - [FunctionSearchResponse](docs/FunctionSearchResponse.md) - - [FunctionSearchResult](docs/FunctionSearchResult.md) - - [FunctionSourceType](docs/FunctionSourceType.md) - [FunctionStackVariable](docs/FunctionStackVariable.md) - - [FunctionString](docs/FunctionString.md) - [FunctionStringItem](docs/FunctionStringItem.md) - - [FunctionStringsResponse](docs/FunctionStringsResponse.md) - [FunctionType](docs/FunctionType.md) - - [FunctionsDetailResponse](docs/FunctionsDetailResponse.md) - - [FunctionsListRename](docs/FunctionsListRename.md) - - [GenerateFunctionDataTypes](docs/GenerateFunctionDataTypes.md) - [GeneratePDFOutputBody](docs/GeneratePDFOutputBody.md) - - [GenerationStatusList](docs/GenerationStatusList.md) - [GetAdditionalDetailsOutputBody](docs/GetAdditionalDetailsOutputBody.md) - [GetAdditionalDetailsStatusOutputBody](docs/GetAdditionalDetailsStatusOutputBody.md) - - [GetAiDecompilationRatingResponse](docs/GetAiDecompilationRatingResponse.md) - [GetAnalysisStringsStatusOutputBody](docs/GetAnalysisStringsStatusOutputBody.md) - [GetCollectionOutputBody](docs/GetCollectionOutputBody.md) - [GetMatchesOutputBody](docs/GetMatchesOutputBody.md) - [GetMatchesStatusOutputBody](docs/GetMatchesStatusOutputBody.md) - [GetProductsOutputBody](docs/GetProductsOutputBody.md) - - [GetPublicUserResponse](docs/GetPublicUserResponse.md) - [GetSubscriptionOutputBody](docs/GetSubscriptionOutputBody.md) - - [GlobalVariable](docs/GlobalVariable.md) - [HistoryEntry](docs/HistoryEntry.md) - [HttpRequest](docs/HttpRequest.md) - - [IOC](docs/IOC.md) - - [ISA](docs/ISA.md) - - [IconModel](docs/IconModel.md) - - [ImportModel](docs/ImportModel.md) - [ImportedFunctionCallerEntry](docs/ImportedFunctionCallerEntry.md) - [ImportedFunctionDetailOutputBody](docs/ImportedFunctionDetailOutputBody.md) - [ImportedFunctionEntry](docs/ImportedFunctionEntry.md) - [IndirectCallSite](docs/IndirectCallSite.md) - [IndirectCallSitesOutputBody](docs/IndirectCallSitesOutputBody.md) - [InlineComment](docs/InlineComment.md) - - [InsertAnalysisLogRequest](docs/InsertAnalysisLogRequest.md) - [InviteUserInputBody](docs/InviteUserInputBody.md) - [IssuerAllowedDomain](docs/IssuerAllowedDomain.md) - [ListAnalysesOutputBody](docs/ListAnalysesOutputBody.md) @@ -528,7 +256,6 @@ Class | Method | HTTP request | Description - [ListAnalysisFunctionsOutputBody](docs/ListAnalysisFunctionsOutputBody.md) - [ListAnalysisStringsOutputBody](docs/ListAnalysisStringsOutputBody.md) - [ListArchiveContentsOutputBody](docs/ListArchiveContentsOutputBody.md) - - [ListCollectionResults](docs/ListCollectionResults.md) - [ListCollectionsOutputBody](docs/ListCollectionsOutputBody.md) - [ListExampleAnalysesOutputBody](docs/ListExampleAnalysesOutputBody.md) - [ListFunctionStringsOutputBody](docs/ListFunctionStringsOutputBody.md) @@ -537,30 +264,19 @@ Class | Method | HTTP request | Description - [ListTeamsOutputBody](docs/ListTeamsOutputBody.md) - [ListUsersOutputBody](docs/ListUsersOutputBody.md) - [LocationOutputBody](docs/LocationOutputBody.md) - - [Logs](docs/Logs.md) - - [MITRETechnique](docs/MITRETechnique.md) - [MatchFilters](docs/MatchFilters.md) - [MatchedFunction](docs/MatchedFunction.md) - [MemdumpEntry](docs/MemdumpEntry.md) - [MessageBody](docs/MessageBody.md) - - [MetaModel](docs/MetaModel.md) - - [ModelName](docs/ModelName.md) - - [ModelsResponse](docs/ModelsResponse.md) - [ModuleLoadEntry](docs/ModuleLoadEntry.md) - [MutexEntry](docs/MutexEntry.md) - [NameConfidence](docs/NameConfidence.md) - - [NameSourceType](docs/NameSourceType.md) - [NetworkActivity](docs/NetworkActivity.md) - [OIDCCallbackInputBody](docs/OIDCCallbackInputBody.md) - - [Order](docs/Order.md) - [Organisation](docs/Organisation.md) - [OrganisationGroup](docs/OrganisationGroup.md) - [OrganisationIssuer](docs/OrganisationIssuer.md) - [OrganisationOwner](docs/OrganisationOwner.md) - - [PDBDebugModel](docs/PDBDebugModel.md) - - [PEModel](docs/PEModel.md) - - [PaginationModel](docs/PaginationModel.md) - - [Params](docs/Params.md) - [PasswordResetInputBody](docs/PasswordResetInputBody.md) - [PatchCollectionBinariesInputBody](docs/PatchCollectionBinariesInputBody.md) - [PatchCollectionBinariesOutputBody](docs/PatchCollectionBinariesOutputBody.md) @@ -571,7 +287,6 @@ Class | Method | HTTP request | Description - [PatchCommentBody](docs/PatchCommentBody.md) - [PcapBodyInfo](docs/PcapBodyInfo.md) - [Permissions](docs/Permissions.md) - - [Platform](docs/Platform.md) - [PriceOutput](docs/PriceOutput.md) - [PriceSummary](docs/PriceSummary.md) - [ProcessActivityEntry](docs/ProcessActivityEntry.md) @@ -582,43 +297,24 @@ Class | Method | HTTP request | Description - [ProductSummary](docs/ProductSummary.md) - [ProgressMessage](docs/ProgressMessage.md) - [ProseEvent](docs/ProseEvent.md) - - [PutAnalysisStringsRequest](docs/PutAnalysisStringsRequest.md) - - [QueuedWorkflowTaskResponse](docs/QueuedWorkflowTaskResponse.md) - - [ReAnalysisForm](docs/ReAnalysisForm.md) - - [Recent](docs/Recent.md) - [RefreshBody](docs/RefreshBody.md) - [RegenerateOutputBody](docs/RegenerateOutputBody.md) - [RegisterUserInputBody](docs/RegisterUserInputBody.md) - [RegistryOperation](docs/RegistryOperation.md) - - [RelativeBinaryResponse](docs/RelativeBinaryResponse.md) - [RenameAppliedEvent](docs/RenameAppliedEvent.md) - [RenameInputBody](docs/RenameInputBody.md) - [RenameOutputBody](docs/RenameOutputBody.md) - [ReplacementValue](docs/ReplacementValue.md) - - [ReportAnalysisResponse](docs/ReportAnalysisResponse.md) - [ReportEvent](docs/ReportEvent.md) - [ReportInfo](docs/ReportInfo.md) - [ReportOptions](docs/ReportOptions.md) - [RevokeBody](docs/RevokeBody.md) - - [SBOM](docs/SBOM.md) - - [SBOMPackage](docs/SBOMPackage.md) - [SSOProvider](docs/SSOProvider.md) - [SSOProvidersOutputBody](docs/SSOProvidersOutputBody.md) - - [SandboxOptions](docs/SandboxOptions.md) - - [SandboxStartMethod](docs/SandboxStartMethod.md) - - [SandboxTimeout](docs/SandboxTimeout.md) - [ScheduledTaskEntry](docs/ScheduledTaskEntry.md) - - [ScrapeThirdPartyConfig](docs/ScrapeThirdPartyConfig.md) - - [SectionModel](docs/SectionModel.md) - - [SecurityModel](docs/SecurityModel.md) - - [SegmentInfo](docs/SegmentInfo.md) - [SendMessageRequest](docs/SendMessageRequest.md) - [ServiceEntry](docs/ServiceEntry.md) - [SessionOutputBody](docs/SessionOutputBody.md) - - [SingleCodeCertificateModel](docs/SingleCodeCertificateModel.md) - - [SingleCodeSignatureModel](docs/SingleCodeSignatureModel.md) - - [SinglePDBEntryModel](docs/SinglePDBEntryModel.md) - - [SingleSectionModel](docs/SingleSectionModel.md) - [SourceDeltaEvent](docs/SourceDeltaEvent.md) - [SourceResetEvent](docs/SourceResetEvent.md) - [SseEventContextCompactedData](docs/SseEventContextCompactedData.md) @@ -638,44 +334,23 @@ Class | Method | HTTP request | Description - [SseEventToolCallResultData](docs/SseEventToolCallResultData.md) - [SseEventToolCallStartData](docs/SseEventToolCallStartData.md) - [SseEventToolConfirmationRequiredData](docs/SseEventToolConfirmationRequiredData.md) - - [StackVariable](docs/StackVariable.md) - [StartBatchMatchingInputBody](docs/StartBatchMatchingInputBody.md) - [StartMatchingForAnalysisInputBody](docs/StartMatchingForAnalysisInputBody.md) - [StartMatchingForFunctionsInputBody](docs/StartMatchingForFunctionsInputBody.md) - [StartMatchingOutputBody](docs/StartMatchingOutputBody.md) - [StartupInfo](docs/StartupInfo.md) - - [StatusInput](docs/StatusInput.md) - - [StatusOutput](docs/StatusOutput.md) - [StatusResponse](docs/StatusResponse.md) - [StreamAiDecompilation200ResponseInner](docs/StreamAiDecompilation200ResponseInner.md) - [StreamEvents200ResponseInner](docs/StreamEvents200ResponseInner.md) - - [StringFunctions](docs/StringFunctions.md) - - [StringSource](docs/StringSource.md) - - [Structure](docs/Structure.md) - - [StructureMember](docs/StructureMember.md) - - [SubmitUserFeedbackRequest](docs/SubmitUserFeedbackRequest.md) - [SummaryData](docs/SummaryData.md) - - [Symbols](docs/Symbols.md) - - [Tag](docs/Tag.md) - - [TagItem](docs/TagItem.md) - - [TagResponse](docs/TagResponse.md) - - [TagSearchResponse](docs/TagSearchResponse.md) - - [TagSearchResult](docs/TagSearchResult.md) - - [TaskResponse](docs/TaskResponse.md) - - [TaskStatus](docs/TaskStatus.md) - - [TaskStatusResponse](docs/TaskStatusResponse.md) - [TcpCarvedFile](docs/TcpCarvedFile.md) - [Team](docs/Team.md) - [TeamMember](docs/TeamMember.md) - - [TimestampModel](docs/TimestampModel.md) - [TokenInputBody](docs/TokenInputBody.md) - [TokenResponse](docs/TokenResponse.md) - [TokenisedData](docs/TokenisedData.md) - - [TriageFunctionResponse](docs/TriageFunctionResponse.md) - - [TriageReportResponse](docs/TriageReportResponse.md) - [TriggerDynamicExecutionInputBody](docs/TriggerDynamicExecutionInputBody.md) - [Ttp](docs/Ttp.md) - - [TypeDefinition](docs/TypeDefinition.md) - [UpdateDataTypesInputBody](docs/UpdateDataTypesInputBody.md) - [UpdateDataTypesOutputBody](docs/UpdateDataTypesOutputBody.md) - [UpdateIssuerInputBody](docs/UpdateIssuerInputBody.md) @@ -686,25 +361,11 @@ Class | Method | HTTP request | Description - [UpdateUserCreditsInputBody](docs/UpdateUserCreditsInputBody.md) - [UpdateUserInputBody](docs/UpdateUserInputBody.md) - [UpdateUserPasswordInputBody](docs/UpdateUserPasswordInputBody.md) - - [UploadFileType](docs/UploadFileType.md) - - [UploadResponse](docs/UploadResponse.md) - - [UpsertAiDecomplationRatingRequest](docs/UpsertAiDecomplationRatingRequest.md) - [UpsertOverridesData](docs/UpsertOverridesData.md) - [UpsertOverridesInputBody](docs/UpsertOverridesInputBody.md) - [User](docs/User.md) - - [UserActivityResponse](docs/UserActivityResponse.md) - [UserCredits](docs/UserCredits.md) - [UserIdentity](docs/UserIdentity.md) - [UserProfile](docs/UserProfile.md) - - [V2FunctionHeader](docs/V2FunctionHeader.md) - - [V2FunctionInfo](docs/V2FunctionInfo.md) - - [V2FunctionInfoFuncDepsInner](docs/V2FunctionInfoFuncDepsInner.md) - - [V2FunctionType](docs/V2FunctionType.md) - - [Vulnerabilities](docs/Vulnerabilities.md) - - [Vulnerability](docs/Vulnerability.md) - [WarningEvent](docs/WarningEvent.md) - [WorkflowProgress](docs/WorkflowProgress.md) - - [Workspace](docs/Workspace.md) - - [XrefFromResponse](docs/XrefFromResponse.md) - - [XrefResponse](docs/XrefResponse.md) - - [XrefToResponse](docs/XrefToResponse.md) diff --git a/docs/AdditionalDetailsStatusResponse.md b/docs/AdditionalDetailsStatusResponse.md deleted file mode 100644 index 1e5d05e2..00000000 --- a/docs/AdditionalDetailsStatusResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# AdditionalDetailsStatusResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **str** | The current status of the additional details task | - -## Example - -```python -from revengai.models.additional_details_status_response import AdditionalDetailsStatusResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AdditionalDetailsStatusResponse from a JSON string -additional_details_status_response_instance = AdditionalDetailsStatusResponse.from_json(json) -# print the JSON string representation of the object -print(AdditionalDetailsStatusResponse.to_json()) - -# convert the object into a dict -additional_details_status_response_dict = additional_details_status_response_instance.to_dict() -# create an instance of AdditionalDetailsStatusResponse from a dict -additional_details_status_response_from_dict = AdditionalDetailsStatusResponse.from_dict(additional_details_status_response_dict) -``` -[[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/AgentApi.md b/docs/AgentApi.md deleted file mode 100644 index 64c434f8..00000000 --- a/docs/AgentApi.md +++ /dev/null @@ -1,782 +0,0 @@ -# revengai.AgentApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get**](AgentApi.md#check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get) | **GET** /v2/analyses/{analysis_id}/agent/capabilities/status | Check the status of a capabilities analysis workflow -[**check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get**](AgentApi.md#check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get) | **GET** /v2/analyses/{analysis_id}/agent/report-analysis/status | Check the status of a report analysis workflow -[**check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get**](AgentApi.md#check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get) | **GET** /v2/analyses/{analysis_id}/agent/triage/status | Check the status of a triage analysis workflow -[**create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post**](AgentApi.md#create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post) | **POST** /v2/analyses/{analysis_id}/agent/capabilities | Queues a capabilities analysis workflow process -[**create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post**](AgentApi.md#create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post) | **POST** /v2/analyses/{analysis_id}/agent/report-analysis | Queues a combined report analysis workflow process -[**create_triage_task_v2_analyses_analysis_id_agent_triage_post**](AgentApi.md#create_triage_task_v2_analyses_analysis_id_agent_triage_post) | **POST** /v2/analyses/{analysis_id}/agent/triage | Queues a triage analysis workflow process -[**get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get**](AgentApi.md#get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get) | **GET** /v2/analyses/{analysis_id}/agent/capabilities | Get Capabilities Result -[**get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get**](AgentApi.md#get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get) | **GET** /v2/analyses/{analysis_id}/agent/report-analysis | Get Report Analysis Result -[**get_triage_result_v2_analyses_analysis_id_agent_triage_get**](AgentApi.md#get_triage_result_v2_analyses_analysis_id_agent_triage_get) | **GET** /v2/analyses/{analysis_id}/agent/triage | Get Triage Result - - -# **check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get** -> TaskStatusResponse check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get(analysis_id) - -Check the status of a capabilities analysis workflow - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.task_status_response import TaskStatusResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AgentApi(api_client) - analysis_id = 56 # int | - - try: - # Check the status of a capabilities analysis workflow - api_response = api_instance.check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get(analysis_id) - print("The response of AgentApi->check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentApi->check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**TaskStatusResponse**](TaskStatusResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get** -> TaskStatusResponse check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get(analysis_id) - -Check the status of a report analysis workflow - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.task_status_response import TaskStatusResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AgentApi(api_client) - analysis_id = 56 # int | - - try: - # Check the status of a report analysis workflow - api_response = api_instance.check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get(analysis_id) - print("The response of AgentApi->check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentApi->check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**TaskStatusResponse**](TaskStatusResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get** -> TaskStatusResponse check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get(analysis_id) - -Check the status of a triage analysis workflow - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.task_status_response import TaskStatusResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AgentApi(api_client) - analysis_id = 56 # int | - - try: - # Check the status of a triage analysis workflow - api_response = api_instance.check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get(analysis_id) - print("The response of AgentApi->check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentApi->check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**TaskStatusResponse**](TaskStatusResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post** -> BaseResponseQueuedWorkflowTaskResponse create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post(analysis_id) - -Queues a capabilities analysis workflow process - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_queued_workflow_task_response import BaseResponseQueuedWorkflowTaskResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AgentApi(api_client) - analysis_id = 56 # int | - - try: - # Queues a capabilities analysis workflow process - api_response = api_instance.create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post(analysis_id) - print("The response of AgentApi->create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentApi->create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseQueuedWorkflowTaskResponse**](BaseResponseQueuedWorkflowTaskResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**202** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post** -> QueuedWorkflowTaskResponse create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post(analysis_id) - -Queues a combined report analysis workflow process - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.queued_workflow_task_response import QueuedWorkflowTaskResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AgentApi(api_client) - analysis_id = 56 # int | - - try: - # Queues a combined report analysis workflow process - api_response = api_instance.create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post(analysis_id) - print("The response of AgentApi->create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentApi->create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**QueuedWorkflowTaskResponse**](QueuedWorkflowTaskResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**202** | Successful Response | - | -**422** | Invalid request parameters | - | -**409** | Task already completed or queued | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_triage_task_v2_analyses_analysis_id_agent_triage_post** -> BaseResponseQueuedWorkflowTaskResponse create_triage_task_v2_analyses_analysis_id_agent_triage_post(analysis_id) - -Queues a triage analysis workflow process - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_queued_workflow_task_response import BaseResponseQueuedWorkflowTaskResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AgentApi(api_client) - analysis_id = 56 # int | - - try: - # Queues a triage analysis workflow process - api_response = api_instance.create_triage_task_v2_analyses_analysis_id_agent_triage_post(analysis_id) - print("The response of AgentApi->create_triage_task_v2_analyses_analysis_id_agent_triage_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentApi->create_triage_task_v2_analyses_analysis_id_agent_triage_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseQueuedWorkflowTaskResponse**](BaseResponseQueuedWorkflowTaskResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**202** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get** -> BaseResponseCapabilitiesAgentResponse get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get(analysis_id) - -Get Capabilities Result - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_capabilities_agent_response import BaseResponseCapabilitiesAgentResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AgentApi(api_client) - analysis_id = 56 # int | - - try: - # Get Capabilities Result - api_response = api_instance.get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get(analysis_id) - print("The response of AgentApi->get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentApi->get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseCapabilitiesAgentResponse**](BaseResponseCapabilitiesAgentResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get** -> BaseResponseReportAnalysisResponse get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get(analysis_id) - -Get Report Analysis Result - -Returns: -- A summary of the analysis -- The software type of the binary -- An attack flow summary -- List of IOCs -- List of MITRE executable techniques -- A YARA rule - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_report_analysis_response import BaseResponseReportAnalysisResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AgentApi(api_client) - analysis_id = 56 # int | - - try: - # Get Report Analysis Result - api_response = api_instance.get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get(analysis_id) - print("The response of AgentApi->get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentApi->get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseReportAnalysisResponse**](BaseResponseReportAnalysisResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_triage_result_v2_analyses_analysis_id_agent_triage_get** -> BaseResponseTriageReportResponse get_triage_result_v2_analyses_analysis_id_agent_triage_get(analysis_id) - -Get Triage Result - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_triage_report_response import BaseResponseTriageReportResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AgentApi(api_client) - analysis_id = 56 # int | - - try: - # Get Triage Result - api_response = api_instance.get_triage_result_v2_analyses_analysis_id_agent_triage_get(analysis_id) - print("The response of AgentApi->get_triage_result_v2_analyses_analysis_id_agent_triage_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentApi->get_triage_result_v2_analyses_analysis_id_agent_triage_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseTriageReportResponse**](BaseResponseTriageReportResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/AiDecompilationRating.md b/docs/AiDecompilationRating.md deleted file mode 100644 index 6abc206e..00000000 --- a/docs/AiDecompilationRating.md +++ /dev/null @@ -1,16 +0,0 @@ -# AiDecompilationRating - - -## Enum - -* `POSITIVE` (value: `'POSITIVE'`) - -* `NEGATIVE` (value: `'NEGATIVE'`) - -* `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/AnalysesBulkActionsApi.md b/docs/AnalysesBulkActionsApi.md deleted file mode 100644 index 3d9ae5a3..00000000 --- a/docs/AnalysesBulkActionsApi.md +++ /dev/null @@ -1,186 +0,0 @@ -# revengai.AnalysesBulkActionsApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**bulk_add_analysis_tags**](AnalysesBulkActionsApi.md#bulk_add_analysis_tags) | **PATCH** /v2/analyses/tags/add | Bulk Add Analysis Tags -[**bulk_delete_analyses**](AnalysesBulkActionsApi.md#bulk_delete_analyses) | **PATCH** /v2/analyses/delete | Bulk Delete Analyses - - -# **bulk_add_analysis_tags** -> BaseResponseAnalysisBulkAddTagsResponse bulk_add_analysis_tags(analysis_bulk_add_tags_request) - -Bulk Add Analysis Tags - -Updates analysis tags for multiple analyses. User must be the owner. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.analysis_bulk_add_tags_request import AnalysisBulkAddTagsRequest -from revengai.models.base_response_analysis_bulk_add_tags_response import BaseResponseAnalysisBulkAddTagsResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesBulkActionsApi(api_client) - analysis_bulk_add_tags_request = revengai.AnalysisBulkAddTagsRequest() # AnalysisBulkAddTagsRequest | - - try: - # Bulk Add Analysis Tags - api_response = api_instance.bulk_add_analysis_tags(analysis_bulk_add_tags_request) - print("The response of AnalysesBulkActionsApi->bulk_add_analysis_tags:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesBulkActionsApi->bulk_add_analysis_tags: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_bulk_add_tags_request** | [**AnalysisBulkAddTagsRequest**](AnalysisBulkAddTagsRequest.md)| | - -### Return type - -[**BaseResponseAnalysisBulkAddTagsResponse**](BaseResponseAnalysisBulkAddTagsResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **bulk_delete_analyses** -> BaseResponseDict bulk_delete_analyses(bulk_delete_analyses_request) - -Bulk Delete Analyses - -Deletes multiple analyses. User must be the owner of all analyses. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_dict import BaseResponseDict -from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesBulkActionsApi(api_client) - bulk_delete_analyses_request = revengai.BulkDeleteAnalysesRequest() # BulkDeleteAnalysesRequest | - - try: - # Bulk Delete Analyses - api_response = api_instance.bulk_delete_analyses(bulk_delete_analyses_request) - print("The response of AnalysesBulkActionsApi->bulk_delete_analyses:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesBulkActionsApi->bulk_delete_analyses: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **bulk_delete_analyses_request** | [**BulkDeleteAnalysesRequest**](BulkDeleteAnalysesRequest.md)| | - -### Return type - -[**BaseResponseDict**](BaseResponseDict.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | -**404** | Not Found | - | -**403** | Forbidden | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/AnalysesCommentsApi.md b/docs/AnalysesCommentsApi.md deleted file mode 100644 index 35296e88..00000000 --- a/docs/AnalysesCommentsApi.md +++ /dev/null @@ -1,371 +0,0 @@ -# revengai.AnalysesCommentsApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_analysis_comment**](AnalysesCommentsApi.md#create_analysis_comment) | **POST** /v2/analyses/{analysis_id}/comments | Create a comment for this analysis -[**delete_analysis_comment**](AnalysesCommentsApi.md#delete_analysis_comment) | **DELETE** /v2/analyses/{analysis_id}/comments/{comment_id} | Delete a comment -[**get_analysis_comments**](AnalysesCommentsApi.md#get_analysis_comments) | **GET** /v2/analyses/{analysis_id}/comments | Get comments for this analysis -[**update_analysis_comment**](AnalysesCommentsApi.md#update_analysis_comment) | **PATCH** /v2/analyses/{analysis_id}/comments/{comment_id} | Update a comment - - -# **create_analysis_comment** -> BaseResponseCommentResponse create_analysis_comment(analysis_id, comment_base) - -Create a comment for this analysis - -Creates a comment associated with a specified analysis). - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_comment_response import BaseResponseCommentResponse -from revengai.models.comment_base import CommentBase -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCommentsApi(api_client) - analysis_id = 56 # int | - comment_base = revengai.CommentBase() # CommentBase | - - try: - # Create a comment for this analysis - api_response = api_instance.create_analysis_comment(analysis_id, comment_base) - print("The response of AnalysesCommentsApi->create_analysis_comment:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCommentsApi->create_analysis_comment: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **comment_base** | [**CommentBase**](CommentBase.md)| | - -### Return type - -[**BaseResponseCommentResponse**](BaseResponseCommentResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Invalid request parameters | - | -**400** | Bad Request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_analysis_comment** -> BaseResponseBool delete_analysis_comment(comment_id, analysis_id) - -Delete a comment - -Deletes an existing comment. Users can only delete their own comments. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_bool import BaseResponseBool -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCommentsApi(api_client) - comment_id = 56 # int | - analysis_id = 56 # int | - - try: - # Delete a comment - api_response = api_instance.delete_analysis_comment(comment_id, analysis_id) - print("The response of AnalysesCommentsApi->delete_analysis_comment:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCommentsApi->delete_analysis_comment: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **comment_id** | **int**| | - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseBool**](BaseResponseBool.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | -**403** | You can only delete your own comments | - | -**400** | Bad Request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_analysis_comments** -> BaseResponseListCommentResponse get_analysis_comments(analysis_id) - -Get comments for this analysis - -Retrieves all comments created for a specific analysis. Only returns comments for resources the requesting user has access to. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCommentsApi(api_client) - analysis_id = 56 # int | - - try: - # Get comments for this analysis - api_response = api_instance.get_analysis_comments(analysis_id) - print("The response of AnalysesCommentsApi->get_analysis_comments:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCommentsApi->get_analysis_comments: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseListCommentResponse**](BaseResponseListCommentResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_analysis_comment** -> BaseResponseCommentResponse update_analysis_comment(comment_id, analysis_id, comment_update_request) - -Update a comment - -Updates the content of an existing comment. Users can only update their own comments. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_comment_response import BaseResponseCommentResponse -from revengai.models.comment_update_request import CommentUpdateRequest -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCommentsApi(api_client) - comment_id = 56 # int | - analysis_id = 56 # int | - comment_update_request = revengai.CommentUpdateRequest() # CommentUpdateRequest | - - try: - # Update a comment - api_response = api_instance.update_analysis_comment(comment_id, analysis_id, comment_update_request) - print("The response of AnalysesCommentsApi->update_analysis_comment:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCommentsApi->update_analysis_comment: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **comment_id** | **int**| | - **analysis_id** | **int**| | - **comment_update_request** | [**CommentUpdateRequest**](CommentUpdateRequest.md)| | - -### Return type - -[**BaseResponseCommentResponse**](BaseResponseCommentResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | -**403** | You can only update your own comments | - | -**400** | Bad Request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index c2a450b1..f8bcb32b 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -5,28 +5,13 @@ All URIs are relative to *https://api.reveng.ai* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_user_string_to_analysis**](AnalysesCoreApi.md#add_user_string_to_analysis) | **POST** /v3/analyses/{analysis_id}/user-provided-strings | Add a user-provided string to an analysis. -[**create_analysis**](AnalysesCoreApi.md#create_analysis) | **POST** /v2/analyses | Create Analysis -[**delete_analysis**](AnalysesCoreApi.md#delete_analysis) | **DELETE** /v2/analyses/{analysis_id} | Delete Analysis -[**get_analysis_basic_info**](AnalysesCoreApi.md#get_analysis_basic_info) | **GET** /v2/analyses/{analysis_id}/basic | Gets basic analysis information -[**get_analysis_basic_info_0**](AnalysesCoreApi.md#get_analysis_basic_info_0) | **GET** /v3/analyses/{analysis_id}/basic | Get basic analysis information +[**get_analysis_basic_info**](AnalysesCoreApi.md#get_analysis_basic_info) | **GET** /v3/analyses/{analysis_id}/basic | Get basic analysis information [**get_analysis_bytes**](AnalysesCoreApi.md#get_analysis_bytes) | **GET** /v3/analyses/{analysis_id}/bytes | Get the bytes of a binary -[**get_analysis_function_map**](AnalysesCoreApi.md#get_analysis_function_map) | **GET** /v2/analyses/{analysis_id}/func_maps | Get Analysis Function Map [**get_analysis_function_matches**](AnalysesCoreApi.md#get_analysis_function_matches) | **GET** /v3/analyses/{analysis_id}/functions/matches | Get function-matching results for an analysis [**get_analysis_function_matching_status**](AnalysesCoreApi.md#get_analysis_function_matching_status) | **GET** /v3/analyses/{analysis_id}/functions/matches/status | Get function-matching status for an analysis -[**get_analysis_logs**](AnalysesCoreApi.md#get_analysis_logs) | **GET** /v2/analyses/{analysis_id}/logs | Gets the logs of an analysis -[**get_analysis_params**](AnalysesCoreApi.md#get_analysis_params) | **GET** /v2/analyses/{analysis_id}/params | Gets analysis param information -[**get_analysis_status**](AnalysesCoreApi.md#get_analysis_status) | **GET** /v2/analyses/{analysis_id}/status | Gets the status of an analysis [**get_dynamic_execution_report**](AnalysesCoreApi.md#get_dynamic_execution_report) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/report | Get dynamic execution report [**get_dynamic_execution_status**](AnalysesCoreApi.md#get_dynamic_execution_status) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/status | Get dynamic execution status -[**insert_analysis_log**](AnalysesCoreApi.md#insert_analysis_log) | **POST** /v2/analyses/{analysis_id}/logs | Insert a log entry for an analysis -[**list_analyses**](AnalysesCoreApi.md#list_analyses) | **GET** /v2/analyses/list | Gets the most recent analyses -[**lookup_binary_id**](AnalysesCoreApi.md#lookup_binary_id) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID -[**put_analysis_strings**](AnalysesCoreApi.md#put_analysis_strings) | **PUT** /v2/analyses/{analysis_id}/strings | Add strings to the analysis -[**requeue_analysis**](AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis [**start_analysis_function_matching**](AnalysesCoreApi.md#start_analysis_function_matching) | **POST** /v3/analyses/{analysis_id}/functions/matches | Start function matching for an analysis -[**update_analysis**](AnalysesCoreApi.md#update_analysis) | **PATCH** /v2/analyses/{analysis_id} | Update Analysis -[**update_analysis_tags**](AnalysesCoreApi.md#update_analysis_tags) | **PATCH** /v2/analyses/{analysis_id}/tags | Update Analysis Tags -[**upload_file**](AnalysesCoreApi.md#upload_file) | **POST** /v2/upload | Upload File [**v3_get_analysis_auto_unstrip_status**](AnalysesCoreApi.md#v3_get_analysis_auto_unstrip_status) | **GET** /v3/analyses/{analysis_id}/auto-unstrip/status | Get the auto-unstrip status for an analysis. [**v3_get_analysis_strings**](AnalysesCoreApi.md#v3_get_analysis_strings) | **GET** /v3/analyses/{analysis_id}/functions/strings | List strings for an analysis. [**v3_get_analysis_strings_status**](AnalysesCoreApi.md#v3_get_analysis_strings_status) | **GET** /v3/analyses/{analysis_id}/functions/strings/status | Get the string-extraction status for an analysis. @@ -35,7 +20,7 @@ Method | HTTP request | Description # **add_user_string_to_analysis** -> Dict[str, object] add_user_string_to_analysis(analysis_id, add_user_string_input_body) +> object add_user_string_to_analysis(analysis_id, add_user_string_input_body) Add a user-provided string to an analysis. @@ -106,7 +91,7 @@ Name | Type | Description | Notes ### Return type -**Dict[str, object]** +**object** ### Authorization @@ -129,103 +114,16 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_analysis** -> BaseResponseAnalysisCreateResponse create_analysis(analysis_create_request, x_rev_eng_application=x_rev_eng_application) - -Create Analysis - -Begins an analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.analysis_create_request import AnalysisCreateRequest -from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_create_request = revengai.AnalysisCreateRequest() # AnalysisCreateRequest | - x_rev_eng_application = 'x_rev_eng_application_example' # str | (optional) - - try: - # Create Analysis - api_response = api_instance.create_analysis(analysis_create_request, x_rev_eng_application=x_rev_eng_application) - print("The response of AnalysesCoreApi->create_analysis:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->create_analysis: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_create_request** | [**AnalysisCreateRequest**](AnalysisCreateRequest.md)| | - **x_rev_eng_application** | **str**| | [optional] - -### Return type - -[**BaseResponseAnalysisCreateResponse**](BaseResponseAnalysisCreateResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Invalid request parameters | - | -**404** | Not Found | - | -**400** | Bad Request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_analysis_basic_info** +> AnalysisBasicInfoOutputBody get_analysis_basic_info(analysis_id) -# **delete_analysis** -> BaseResponseDict delete_analysis(analysis_id) +Get basic analysis information -Delete Analysis +Returns basic metadata for the given analysis including binary details, model, owner, and function count. -Deletes an analysis based on the provided analysis ID. +**Error codes:** +- `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found +- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied ### Example @@ -234,7 +132,7 @@ Deletes an analysis based on the provided analysis ID. ```python import revengai -from revengai.models.base_response_dict import BaseResponseDict +from revengai.models.analysis_basic_info_output_body import AnalysisBasicInfoOutputBody from revengai.rest import ApiException from pprint import pprint @@ -264,15 +162,15 @@ configuration = revengai.Configuration( with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | + analysis_id = 56 # int | Analysis ID try: - # Delete Analysis - api_response = api_instance.delete_analysis(analysis_id) - print("The response of AnalysesCoreApi->delete_analysis:\n") + # Get basic analysis information + api_response = api_instance.get_analysis_basic_info(analysis_id) + print("The response of AnalysesCoreApi->get_analysis_basic_info:\n") pprint(api_response) except Exception as e: - print("Exception when calling AnalysesCoreApi->delete_analysis: %s\n" % e) + print("Exception when calling AnalysesCoreApi->get_analysis_basic_info: %s\n" % e) ``` @@ -282,11 +180,11 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | + **analysis_id** | **int**| Analysis ID | ### Return type -[**BaseResponseDict**](BaseResponseDict.md) +[**AnalysisBasicInfoOutputBody**](AnalysisBasicInfoOutputBody.md) ### Authorization @@ -301,19 +199,25 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | -**404** | Not Found | - | +**200** | OK | - | **403** | Forbidden | - | +**404** | Not Found | - | +**422** | Unprocessable Entity | - | +**500** | Internal Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_analysis_basic_info** -> BaseResponseBasic get_analysis_basic_info(analysis_id) +# **get_analysis_bytes** +> get_analysis_bytes(analysis_id, page=page) -Gets basic analysis information +Get the bytes of a binary + +Returns a 64kb byte page from the binary. -Returns basic analysis information for an analysis +**Error codes:** +- `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found +- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied +- `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request ### Example @@ -322,7 +226,6 @@ Returns basic analysis information for an analysis ```python import revengai -from revengai.models.base_response_basic import BaseResponseBasic from revengai.rest import ApiException from pprint import pprint @@ -352,15 +255,14 @@ configuration = revengai.Configuration( with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | + analysis_id = 56 # int | Analysis ID + page = 56 # int | 64kb page of binary data (optional) try: - # Gets basic analysis information - api_response = api_instance.get_analysis_basic_info(analysis_id) - print("The response of AnalysesCoreApi->get_analysis_basic_info:\n") - pprint(api_response) + # Get the bytes of a binary + api_instance.get_analysis_bytes(analysis_id, page=page) except Exception as e: - print("Exception when calling AnalysesCoreApi->get_analysis_basic_info: %s\n" % e) + print("Exception when calling AnalysesCoreApi->get_analysis_bytes: %s\n" % e) ``` @@ -370,11 +272,12 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | + **analysis_id** | **int**| Analysis ID | + **page** | **int**| 64kb page of binary data | [optional] ### Return type -[**BaseResponseBasic**](BaseResponseBasic.md) +void (empty response body) ### Authorization @@ -389,21 +292,26 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | +**200** | OK | - | +**400** | Bad Request | - | +**403** | Forbidden | - | +**404** | Not Found | - | +**422** | Unprocessable Entity | - | +**500** | Internal Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_analysis_basic_info_0** -> AnalysisBasicInfoOutputBody get_analysis_basic_info_0(analysis_id) +# **get_analysis_function_matches** +> GetMatchesOutputBody get_analysis_function_matches(analysis_id, match_id=match_id) -Get basic analysis information +Get function-matching results for an analysis -Returns basic metadata for the given analysis including binary details, model, owner, and function count. +Returns the matches blob when the matching workflow has completed. While the workflow is in progress this endpoint returns the current status with no matches; use /matches/status to poll progress. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied +- `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request ### Example @@ -412,7 +320,7 @@ Returns basic metadata for the given analysis including binary details, model, o ```python import revengai -from revengai.models.analysis_basic_info_output_body import AnalysisBasicInfoOutputBody +from revengai.models.get_matches_output_body import GetMatchesOutputBody from revengai.rest import ApiException from pprint import pprint @@ -443,14 +351,15 @@ with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.AnalysesCoreApi(api_client) analysis_id = 56 # int | Analysis ID + match_id = 'match_id_example' # str | Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. (optional) try: - # Get basic analysis information - api_response = api_instance.get_analysis_basic_info_0(analysis_id) - print("The response of AnalysesCoreApi->get_analysis_basic_info_0:\n") + # Get function-matching results for an analysis + api_response = api_instance.get_analysis_function_matches(analysis_id, match_id=match_id) + print("The response of AnalysesCoreApi->get_analysis_function_matches:\n") pprint(api_response) except Exception as e: - print("Exception when calling AnalysesCoreApi->get_analysis_basic_info_0: %s\n" % e) + print("Exception when calling AnalysesCoreApi->get_analysis_function_matches: %s\n" % e) ``` @@ -461,10 +370,11 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **analysis_id** | **int**| Analysis ID | + **match_id** | **str**| Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. | [optional] ### Return type -[**AnalysisBasicInfoOutputBody**](AnalysisBasicInfoOutputBody.md) +[**GetMatchesOutputBody**](GetMatchesOutputBody.md) ### Authorization @@ -480,6 +390,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | **403** | Forbidden | - | **404** | Not Found | - | **422** | Unprocessable Entity | - | @@ -487,12 +398,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_analysis_bytes** -> get_analysis_bytes(analysis_id, page=page) +# **get_analysis_function_matching_status** +> GetMatchesStatusOutputBody get_analysis_function_matching_status(analysis_id, match_id=match_id) -Get the bytes of a binary +Get function-matching status for an analysis -Returns a 64kb byte page from the binary. +Returns the matching workflow's current status. Does not include the matches blob — use GET /matches for that. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found @@ -506,6 +417,7 @@ Returns a 64kb byte page from the binary. ```python import revengai +from revengai.models.get_matches_status_output_body import GetMatchesStatusOutputBody from revengai.rest import ApiException from pprint import pprint @@ -536,13 +448,15 @@ with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.AnalysesCoreApi(api_client) analysis_id = 56 # int | Analysis ID - page = 56 # int | 64kb page of binary data (optional) + match_id = 'match_id_example' # str | Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. (optional) try: - # Get the bytes of a binary - api_instance.get_analysis_bytes(analysis_id, page=page) + # Get function-matching status for an analysis + api_response = api_instance.get_analysis_function_matching_status(analysis_id, match_id=match_id) + print("The response of AnalysesCoreApi->get_analysis_function_matching_status:\n") + pprint(api_response) except Exception as e: - print("Exception when calling AnalysesCoreApi->get_analysis_bytes: %s\n" % e) + print("Exception when calling AnalysesCoreApi->get_analysis_function_matching_status: %s\n" % e) ``` @@ -553,11 +467,11 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **analysis_id** | **int**| Analysis ID | - **page** | **int**| 64kb page of binary data | [optional] + **match_id** | **str**| Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. | [optional] ### Return type -void (empty response body) +[**GetMatchesStatusOutputBody**](GetMatchesStatusOutputBody.md) ### Authorization @@ -581,12 +495,16 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_analysis_function_map** -> BaseResponseAnalysisFunctionMapping get_analysis_function_map(analysis_id) +# **get_dynamic_execution_report** +> AnalysisReport get_dynamic_execution_report(analysis_id) + +Get dynamic execution report -Get Analysis Function Map +Returns the dynamic execution report JSON for the analysis. Requires the task to be in COMPLETED status. -Returns three maps: a map of function ids to function addresses, it's inverse and a map of function addresses to function names. +**Error codes:** +- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied +- `409` [`DYNAMIC_EXECUTION_INCOMPLETE`](/errors/DYNAMIC_EXECUTION_INCOMPLETE) — Dynamic Execution Incomplete ### Example @@ -595,7 +513,7 @@ Returns three maps: a map of function ids to function addresses, it's inverse an ```python import revengai -from revengai.models.base_response_analysis_function_mapping import BaseResponseAnalysisFunctionMapping +from revengai.models.analysis_report import AnalysisReport from revengai.rest import ApiException from pprint import pprint @@ -625,15 +543,15 @@ configuration = revengai.Configuration( with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | + analysis_id = 56 # int | Analysis ID try: - # Get Analysis Function Map - api_response = api_instance.get_analysis_function_map(analysis_id) - print("The response of AnalysesCoreApi->get_analysis_function_map:\n") + # Get dynamic execution report + api_response = api_instance.get_dynamic_execution_report(analysis_id) + print("The response of AnalysesCoreApi->get_dynamic_execution_report:\n") pprint(api_response) except Exception as e: - print("Exception when calling AnalysesCoreApi->get_analysis_function_map: %s\n" % e) + print("Exception when calling AnalysesCoreApi->get_dynamic_execution_report: %s\n" % e) ``` @@ -643,11 +561,11 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | + **analysis_id** | **int**| Analysis ID | ### Return type -[**BaseResponseAnalysisFunctionMapping**](BaseResponseAnalysisFunctionMapping.md) +[**AnalysisReport**](AnalysisReport.md) ### Authorization @@ -662,22 +580,23 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | +**200** | OK | - | +**403** | Forbidden | - | +**409** | Conflict | - | +**422** | Unprocessable Entity | - | +**500** | Internal Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_analysis_function_matches** -> GetMatchesOutputBody get_analysis_function_matches(analysis_id, match_id=match_id) +# **get_dynamic_execution_status** +> DynamicExecutionStatusResponse get_dynamic_execution_status(analysis_id) -Get function-matching results for an analysis +Get dynamic execution status -Returns the matches blob when the matching workflow has completed. While the workflow is in progress this endpoint returns the current status with no matches; use /matches/status to poll progress. +Returns the status of the most recent dynamic execution task for the analysis. Returns UNINITIALISED if no task has been started. **Error codes:** -- `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied -- `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request ### Example @@ -686,7 +605,7 @@ Returns the matches blob when the matching workflow has completed. While the wor ```python import revengai -from revengai.models.get_matches_output_body import GetMatchesOutputBody +from revengai.models.dynamic_execution_status_response import DynamicExecutionStatusResponse from revengai.rest import ApiException from pprint import pprint @@ -717,15 +636,14 @@ with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.AnalysesCoreApi(api_client) analysis_id = 56 # int | Analysis ID - match_id = 'match_id_example' # str | Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. (optional) try: - # Get function-matching results for an analysis - api_response = api_instance.get_analysis_function_matches(analysis_id, match_id=match_id) - print("The response of AnalysesCoreApi->get_analysis_function_matches:\n") + # Get dynamic execution status + api_response = api_instance.get_dynamic_execution_status(analysis_id) + print("The response of AnalysesCoreApi->get_dynamic_execution_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling AnalysesCoreApi->get_analysis_function_matches: %s\n" % e) + print("Exception when calling AnalysesCoreApi->get_dynamic_execution_status: %s\n" % e) ``` @@ -736,11 +654,10 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **analysis_id** | **int**| Analysis ID | - **match_id** | **str**| Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. | [optional] ### Return type -[**GetMatchesOutputBody**](GetMatchesOutputBody.md) +[**DynamicExecutionStatusResponse**](DynamicExecutionStatusResponse.md) ### Authorization @@ -756,20 +673,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**400** | Bad Request | - | **403** | Forbidden | - | -**404** | Not Found | - | **422** | Unprocessable Entity | - | **500** | Internal Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_analysis_function_matching_status** -> GetMatchesStatusOutputBody get_analysis_function_matching_status(analysis_id, match_id=match_id) +# **start_analysis_function_matching** +> StartMatchingOutputBody start_analysis_function_matching(analysis_id, start_matching_for_analysis_input_body) -Get function-matching status for an analysis +Start function matching for an analysis -Returns the matching workflow's current status. Does not include the matches blob — use GET /matches for that. +Dispatches the function-matching workflow against every function in the analysis. Returns immediately. Poll the status endpoint for progress; fetch results from the matches endpoint when status=COMPLETED. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found @@ -783,7 +698,8 @@ Returns the matching workflow's current status. Does not include the matches blo ```python import revengai -from revengai.models.get_matches_status_output_body import GetMatchesStatusOutputBody +from revengai.models.start_matching_for_analysis_input_body import StartMatchingForAnalysisInputBody +from revengai.models.start_matching_output_body import StartMatchingOutputBody from revengai.rest import ApiException from pprint import pprint @@ -814,15 +730,15 @@ with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.AnalysesCoreApi(api_client) analysis_id = 56 # int | Analysis ID - match_id = 'match_id_example' # str | Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. (optional) + start_matching_for_analysis_input_body = revengai.StartMatchingForAnalysisInputBody() # StartMatchingForAnalysisInputBody | try: - # Get function-matching status for an analysis - api_response = api_instance.get_analysis_function_matching_status(analysis_id, match_id=match_id) - print("The response of AnalysesCoreApi->get_analysis_function_matching_status:\n") + # Start function matching for an analysis + api_response = api_instance.start_analysis_function_matching(analysis_id, start_matching_for_analysis_input_body) + print("The response of AnalysesCoreApi->start_analysis_function_matching:\n") pprint(api_response) except Exception as e: - print("Exception when calling AnalysesCoreApi->get_analysis_function_matching_status: %s\n" % e) + print("Exception when calling AnalysesCoreApi->start_analysis_function_matching: %s\n" % e) ``` @@ -833,11 +749,11 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **analysis_id** | **int**| Analysis ID | - **match_id** | **str**| Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. | [optional] + **start_matching_for_analysis_input_body** | [**StartMatchingForAnalysisInputBody**](StartMatchingForAnalysisInputBody.md)| | ### Return type -[**GetMatchesStatusOutputBody**](GetMatchesStatusOutputBody.md) +[**StartMatchingOutputBody**](StartMatchingOutputBody.md) ### Authorization @@ -845,14 +761,14 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**202** | Accepted | - | **400** | Bad Request | - | **403** | Forbidden | - | **404** | Not Found | - | @@ -861,1283 +777,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_analysis_logs** -> BaseResponseLogs get_analysis_logs(analysis_id) - -Gets the logs of an analysis - -Given an analysis ID gets the current logs of an analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_logs import BaseResponseLogs -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | - - try: - # Gets the logs of an analysis - api_response = api_instance.get_analysis_logs(analysis_id) - print("The response of AnalysesCoreApi->get_analysis_logs:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->get_analysis_logs: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseLogs**](BaseResponseLogs.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_analysis_params** -> BaseResponseParams get_analysis_params(analysis_id) - -Gets analysis param information - -Gets the params that the analysis was run with - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_params import BaseResponseParams -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | - - try: - # Gets analysis param information - api_response = api_instance.get_analysis_params(analysis_id) - print("The response of AnalysesCoreApi->get_analysis_params:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->get_analysis_params: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseParams**](BaseResponseParams.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_analysis_status** -> BaseResponseStatus get_analysis_status(analysis_id) - -Gets the status of an analysis - -Given an analysis ID gets the current status of the analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_status import BaseResponseStatus -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | - - try: - # Gets the status of an analysis - api_response = api_instance.get_analysis_status(analysis_id) - print("The response of AnalysesCoreApi->get_analysis_status:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->get_analysis_status: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseStatus**](BaseResponseStatus.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_dynamic_execution_report** -> AnalysisReport get_dynamic_execution_report(analysis_id) - -Get dynamic execution report - -Returns the dynamic execution report JSON for the analysis. Requires the task to be in COMPLETED status. - -**Error codes:** -- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied -- `409` [`DYNAMIC_EXECUTION_INCOMPLETE`](/errors/DYNAMIC_EXECUTION_INCOMPLETE) — Dynamic Execution Incomplete - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.analysis_report import AnalysisReport -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | Analysis ID - - try: - # Get dynamic execution report - api_response = api_instance.get_dynamic_execution_report(analysis_id) - print("The response of AnalysesCoreApi->get_dynamic_execution_report:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->get_dynamic_execution_report: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| Analysis ID | - -### Return type - -[**AnalysisReport**](AnalysisReport.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**403** | Forbidden | - | -**409** | Conflict | - | -**422** | Unprocessable Entity | - | -**500** | Internal Server Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_dynamic_execution_status** -> DynamicExecutionStatusResponse get_dynamic_execution_status(analysis_id) - -Get dynamic execution status - -Returns the status of the most recent dynamic execution task for the analysis. Returns UNINITIALISED if no task has been started. - -**Error codes:** -- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.dynamic_execution_status_response import DynamicExecutionStatusResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | Analysis ID - - try: - # Get dynamic execution status - api_response = api_instance.get_dynamic_execution_status(analysis_id) - print("The response of AnalysesCoreApi->get_dynamic_execution_status:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->get_dynamic_execution_status: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| Analysis ID | - -### Return type - -[**DynamicExecutionStatusResponse**](DynamicExecutionStatusResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**403** | Forbidden | - | -**422** | Unprocessable Entity | - | -**500** | Internal Server Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **insert_analysis_log** -> BaseResponse insert_analysis_log(analysis_id, insert_analysis_log_request) - -Insert a log entry for an analysis - -Inserts a log record for an analysis. Only the analysis owner can insert logs. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response import BaseResponse -from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | - insert_analysis_log_request = revengai.InsertAnalysisLogRequest() # InsertAnalysisLogRequest | - - try: - # Insert a log entry for an analysis - api_response = api_instance.insert_analysis_log(analysis_id, insert_analysis_log_request) - print("The response of AnalysesCoreApi->insert_analysis_log:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->insert_analysis_log: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **insert_analysis_log_request** | [**InsertAnalysisLogRequest**](InsertAnalysisLogRequest.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_analyses** -> BaseResponseRecent list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, sha256_hash=sha256_hash, limit=limit, offset=offset, order_by=order_by, order=order) - -Gets the most recent analyses - -Gets the most recent analyses provided a scope, this is then paginated, if pages and limit doesnt fit, it increases the limit - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy -from revengai.models.base_response_recent import BaseResponseRecent -from revengai.models.dynamic_execution_status import DynamicExecutionStatus -from revengai.models.model_name import ModelName -from revengai.models.order import Order -from revengai.models.status_input import StatusInput -from revengai.models.workspace import Workspace -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - search_term = '' # str | (optional) (default to '') - workspace = ["personal"] # List[Workspace] | The workspace to be viewed (optional) (default to ["personal"]) - status = ["All"] # List[StatusInput] | The status of the analysis (optional) (default to ["All"]) - model_name = [revengai.ModelName()] # List[ModelName] | Show analysis belonging to the model (optional) - dynamic_execution_status = revengai.DynamicExecutionStatus() # DynamicExecutionStatus | Show analysis that have a dynamic execution with the given status (optional) - usernames = [] # List[Optional[str]] | Show analysis belonging to the user (optional) (default to []) - sha256_hash = 'sha256_hash_example' # str | (optional) - limit = 20 # int | (optional) (default to 20) - offset = 0 # int | (optional) (default to 0) - order_by = revengai.AppApiRestV2AnalysesEnumsOrderBy() # AppApiRestV2AnalysesEnumsOrderBy | (optional) - order = revengai.Order() # Order | (optional) - - try: - # Gets the most recent analyses - api_response = api_instance.list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, sha256_hash=sha256_hash, limit=limit, offset=offset, order_by=order_by, order=order) - print("The response of AnalysesCoreApi->list_analyses:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->list_analyses: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **search_term** | **str**| | [optional] [default to ''] - **workspace** | [**List[Workspace]**](Workspace.md)| The workspace to be viewed | [optional] [default to ["personal"]] - **status** | [**List[StatusInput]**](StatusInput.md)| The status of the analysis | [optional] [default to ["All"]] - **model_name** | [**List[ModelName]**](ModelName.md)| Show analysis belonging to the model | [optional] - **dynamic_execution_status** | [**DynamicExecutionStatus**](.md)| Show analysis that have a dynamic execution with the given status | [optional] - **usernames** | [**List[Optional[str]]**](str.md)| Show analysis belonging to the user | [optional] [default to []] - **sha256_hash** | **str**| | [optional] - **limit** | **int**| | [optional] [default to 20] - **offset** | **int**| | [optional] [default to 0] - **order_by** | [**AppApiRestV2AnalysesEnumsOrderBy**](.md)| | [optional] - **order** | [**Order**](.md)| | [optional] - -### Return type - -[**BaseResponseRecent**](BaseResponseRecent.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **lookup_binary_id** -> object lookup_binary_id(binary_id) - -Gets the analysis ID from binary ID - -Given an binary ID gets the ID of an analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - binary_id = 56 # int | - - try: - # Gets the analysis ID from binary ID - api_response = api_instance.lookup_binary_id(binary_id) - print("The response of AnalysesCoreApi->lookup_binary_id:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->lookup_binary_id: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **binary_id** | **int**| | - -### Return type - -**object** - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **put_analysis_strings** -> BaseResponse put_analysis_strings(analysis_id, put_analysis_strings_request) - -Add strings to the analysis - -Add strings to the analysis. Rejects if any string already exists at the given vaddr. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response import BaseResponse -from revengai.models.put_analysis_strings_request import PutAnalysisStringsRequest -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | - put_analysis_strings_request = revengai.PutAnalysisStringsRequest() # PutAnalysisStringsRequest | - - try: - # Add strings to the analysis - api_response = api_instance.put_analysis_strings(analysis_id, put_analysis_strings_request) - print("The response of AnalysesCoreApi->put_analysis_strings:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->put_analysis_strings: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **put_analysis_strings_request** | [**PutAnalysisStringsRequest**](PutAnalysisStringsRequest.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **requeue_analysis** -> BaseResponseCreated requeue_analysis(analysis_id, re_analysis_form, x_rev_eng_application=x_rev_eng_application) - -Requeue Analysis - -Re-queues an already uploaded analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_created import BaseResponseCreated -from revengai.models.re_analysis_form import ReAnalysisForm -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | - re_analysis_form = revengai.ReAnalysisForm() # ReAnalysisForm | - x_rev_eng_application = 'x_rev_eng_application_example' # str | (optional) - - try: - # Requeue Analysis - api_response = api_instance.requeue_analysis(analysis_id, re_analysis_form, x_rev_eng_application=x_rev_eng_application) - print("The response of AnalysesCoreApi->requeue_analysis:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->requeue_analysis: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **re_analysis_form** | [**ReAnalysisForm**](ReAnalysisForm.md)| | - **x_rev_eng_application** | **str**| | [optional] - -### Return type - -[**BaseResponseCreated**](BaseResponseCreated.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Invalid request parameters | - | -**404** | Not Found | - | -**400** | Bad Request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **start_analysis_function_matching** -> StartMatchingOutputBody start_analysis_function_matching(analysis_id, start_matching_for_analysis_input_body) - -Start function matching for an analysis - -Dispatches the function-matching workflow against every function in the analysis. Returns immediately. Poll the status endpoint for progress; fetch results from the matches endpoint when status=COMPLETED. - -**Error codes:** -- `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found -- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied -- `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.start_matching_for_analysis_input_body import StartMatchingForAnalysisInputBody -from revengai.models.start_matching_output_body import StartMatchingOutputBody -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | Analysis ID - start_matching_for_analysis_input_body = revengai.StartMatchingForAnalysisInputBody() # StartMatchingForAnalysisInputBody | - - try: - # Start function matching for an analysis - api_response = api_instance.start_analysis_function_matching(analysis_id, start_matching_for_analysis_input_body) - print("The response of AnalysesCoreApi->start_analysis_function_matching:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->start_analysis_function_matching: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| Analysis ID | - **start_matching_for_analysis_input_body** | [**StartMatchingForAnalysisInputBody**](StartMatchingForAnalysisInputBody.md)| | - -### Return type - -[**StartMatchingOutputBody**](StartMatchingOutputBody.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**202** | Accepted | - | -**400** | Bad Request | - | -**403** | Forbidden | - | -**404** | Not Found | - | -**422** | Unprocessable Entity | - | -**500** | Internal Server Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_analysis** -> BaseResponseAnalysisDetailResponse update_analysis(analysis_id, analysis_update_request) - -Update Analysis - -Updates analysis attributes (binary_name, analysis_scope). User must be the owner. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.analysis_update_request import AnalysisUpdateRequest -from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | - analysis_update_request = revengai.AnalysisUpdateRequest() # AnalysisUpdateRequest | - - try: - # Update Analysis - api_response = api_instance.update_analysis(analysis_id, analysis_update_request) - print("The response of AnalysesCoreApi->update_analysis:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->update_analysis: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **analysis_update_request** | [**AnalysisUpdateRequest**](AnalysisUpdateRequest.md)| | - -### Return type - -[**BaseResponseAnalysisDetailResponse**](BaseResponseAnalysisDetailResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_analysis_tags** -> BaseResponseAnalysisUpdateTagsResponse update_analysis_tags(analysis_id, analysis_update_tags_request) - -Update Analysis Tags - -Updates analysis tags. User must be the owner. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest -from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | - analysis_update_tags_request = revengai.AnalysisUpdateTagsRequest() # AnalysisUpdateTagsRequest | - - try: - # Update Analysis Tags - api_response = api_instance.update_analysis_tags(analysis_id, analysis_update_tags_request) - print("The response of AnalysesCoreApi->update_analysis_tags:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->update_analysis_tags: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **analysis_update_tags_request** | [**AnalysisUpdateTagsRequest**](AnalysisUpdateTagsRequest.md)| | - -### Return type - -[**BaseResponseAnalysisUpdateTagsResponse**](BaseResponseAnalysisUpdateTagsResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **upload_file** -> BaseResponseUploadResponse upload_file(upload_file_type, file, packed_password=packed_password, force_overwrite=force_overwrite) - -Upload File - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_upload_response import BaseResponseUploadResponse -from revengai.models.upload_file_type import UploadFileType -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - upload_file_type = revengai.UploadFileType() # UploadFileType | - file = None # bytearray | - packed_password = 'packed_password_example' # str | (optional) - force_overwrite = False # bool | (optional) (default to False) - - try: - # Upload File - api_response = api_instance.upload_file(upload_file_type, file, packed_password=packed_password, force_overwrite=force_overwrite) - print("The response of AnalysesCoreApi->upload_file:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_type** | [**UploadFileType**](UploadFileType.md)| | - **file** | **bytearray**| | - **packed_password** | **str**| | [optional] - **force_overwrite** | **bool**| | [optional] [default to False] - -### Return type - -[**BaseResponseUploadResponse**](BaseResponseUploadResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v3_get_analysis_auto_unstrip_status** > AutoUnstripStatusOutputBody v3_get_analysis_auto_unstrip_status(analysis_id) @@ -2481,8 +1120,8 @@ with revengai.ApiClient(configuration) as api_client: search_term = 'search_term_example' # str | (optional) analysis_scope = ["PRIVATE"] # List[str] | Leave empty for no filter (optional) (default to ["PRIVATE"]) status = ['status_example'] # List[str] | (optional) - model_name = ['model_name_example'] # List[Optional[str]] | (optional) - usernames = ['usernames_example'] # List[Optional[str]] | (optional) + model_name = ['model_name_example'] # List[str] | (optional) + usernames = ['usernames_example'] # List[str] | (optional) sha256_hash = 'sha256_hash_example' # str | (optional) page_size = 20 # int | (optional) (default to 20) next_page_token = 'next_page_token_example' # str | Forward-pagination cursor from a prior response. When set, order_by/order are taken from the token (the sort cannot change mid-pagination). (optional) @@ -2508,8 +1147,8 @@ Name | Type | Description | Notes **search_term** | **str**| | [optional] **analysis_scope** | [**List[str]**](str.md)| Leave empty for no filter | [optional] [default to ["PRIVATE"]] **status** | [**List[str]**](str.md)| | [optional] - **model_name** | [**List[Optional[str]]**](str.md)| | [optional] - **usernames** | [**List[Optional[str]]**](str.md)| | [optional] + **model_name** | [**List[str]**](str.md)| | [optional] + **usernames** | [**List[str]**](str.md)| | [optional] **sha256_hash** | **str**| | [optional] **page_size** | **int**| | [optional] [default to 20] **next_page_token** | **str**| Forward-pagination cursor from a prior response. When set, order_by/order are taken from the token (the sort cannot change mid-pagination). | [optional] diff --git a/docs/AnalysesResultsMetadataApi.md b/docs/AnalysesResultsMetadataApi.md deleted file mode 100644 index 0366ef4e..00000000 --- a/docs/AnalysesResultsMetadataApi.md +++ /dev/null @@ -1,538 +0,0 @@ -# revengai.AnalysesResultsMetadataApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_analysis_functions_paginated**](AnalysesResultsMetadataApi.md#get_analysis_functions_paginated) | **GET** /v2/analyses/{analysis_id}/functions | Get functions from analysis -[**get_capabilities**](AnalysesResultsMetadataApi.md#get_capabilities) | **GET** /v2/analyses/{analysis_id}/capabilities | Gets the capabilities from the analysis -[**get_functions_list**](AnalysesResultsMetadataApi.md#get_functions_list) | **GET** /v2/analyses/{analysis_id}/functions/list | Gets functions from analysis -[**get_sbom**](AnalysesResultsMetadataApi.md#get_sbom) | **GET** /v2/analyses/{analysis_id}/sbom | Gets the software-bill-of-materials (SBOM) found in the analysis -[**get_tags**](AnalysesResultsMetadataApi.md#get_tags) | **GET** /v2/analyses/{analysis_id}/tags | Get function tags with maliciousness score -[**get_vulnerabilities**](AnalysesResultsMetadataApi.md#get_vulnerabilities) | **GET** /v2/analyses/{analysis_id}/vulnerabilities | Gets the vulnerabilities found in the analysis - - -# **get_analysis_functions_paginated** -> BaseResponseAnalysisFunctionsList get_analysis_functions_paginated(analysis_id, page=page, page_size=page_size) - -Get functions from analysis - -Returns a paginated list of functions identified during analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_analysis_functions_list import BaseResponseAnalysisFunctionsList -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesResultsMetadataApi(api_client) - analysis_id = 56 # int | - page = 1 # int | The page number to retrieve. (optional) (default to 1) - page_size = 1000 # int | Number of items per page. (optional) (default to 1000) - - try: - # Get functions from analysis - api_response = api_instance.get_analysis_functions_paginated(analysis_id, page=page, page_size=page_size) - print("The response of AnalysesResultsMetadataApi->get_analysis_functions_paginated:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesResultsMetadataApi->get_analysis_functions_paginated: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **page** | **int**| The page number to retrieve. | [optional] [default to 1] - **page_size** | **int**| Number of items per page. | [optional] [default to 1000] - -### Return type - -[**BaseResponseAnalysisFunctionsList**](BaseResponseAnalysisFunctionsList.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_capabilities** -> BaseResponseCapabilities get_capabilities(analysis_id) - -Gets the capabilities from the analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_capabilities import BaseResponseCapabilities -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesResultsMetadataApi(api_client) - analysis_id = 56 # int | - - try: - # Gets the capabilities from the analysis - api_response = api_instance.get_capabilities(analysis_id) - print("The response of AnalysesResultsMetadataApi->get_capabilities:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesResultsMetadataApi->get_capabilities: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseCapabilities**](BaseResponseCapabilities.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_functions_list** -> BaseResponseAnalysisFunctions get_functions_list(analysis_id, search_term=search_term, min_v_addr=min_v_addr, max_v_addr=max_v_addr, include_embeddings=include_embeddings, page=page, page_size=page_size) - -Gets functions from analysis - -Gets the functions identified during analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesResultsMetadataApi(api_client) - analysis_id = 56 # int | - search_term = 'search_term_example' # str | (optional) - min_v_addr = 56 # int | (optional) - max_v_addr = 56 # int | (optional) - include_embeddings = True # bool | (optional) (default to True) - page = 1 # int | The page number to retrieve. (optional) (default to 1) - page_size = 1000 # int | Number of items per page. (optional) (default to 1000) - - try: - # Gets functions from analysis - api_response = api_instance.get_functions_list(analysis_id, search_term=search_term, min_v_addr=min_v_addr, max_v_addr=max_v_addr, include_embeddings=include_embeddings, page=page, page_size=page_size) - print("The response of AnalysesResultsMetadataApi->get_functions_list:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesResultsMetadataApi->get_functions_list: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **search_term** | **str**| | [optional] - **min_v_addr** | **int**| | [optional] - **max_v_addr** | **int**| | [optional] - **include_embeddings** | **bool**| | [optional] [default to True] - **page** | **int**| The page number to retrieve. | [optional] [default to 1] - **page_size** | **int**| Number of items per page. | [optional] [default to 1000] - -### Return type - -[**BaseResponseAnalysisFunctions**](BaseResponseAnalysisFunctions.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_sbom** -> BaseResponseListSBOM get_sbom(analysis_id) - -Gets the software-bill-of-materials (SBOM) found in the analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_list_sbom import BaseResponseListSBOM -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesResultsMetadataApi(api_client) - analysis_id = 56 # int | - - try: - # Gets the software-bill-of-materials (SBOM) found in the analysis - api_response = api_instance.get_sbom(analysis_id) - print("The response of AnalysesResultsMetadataApi->get_sbom:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesResultsMetadataApi->get_sbom: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseListSBOM**](BaseResponseListSBOM.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_tags** -> BaseResponseAnalysisTags get_tags(analysis_id) - -Get function tags with maliciousness score - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesResultsMetadataApi(api_client) - analysis_id = 56 # int | - - try: - # Get function tags with maliciousness score - api_response = api_instance.get_tags(analysis_id) - print("The response of AnalysesResultsMetadataApi->get_tags:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesResultsMetadataApi->get_tags: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseAnalysisTags**](BaseResponseAnalysisTags.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_vulnerabilities** -> BaseResponseVulnerabilities get_vulnerabilities(analysis_id) - -Gets the vulnerabilities found in the analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesResultsMetadataApi(api_client) - analysis_id = 56 # int | - - try: - # Gets the vulnerabilities found in the analysis - api_response = api_instance.get_vulnerabilities(analysis_id) - print("The response of AnalysesResultsMetadataApi->get_vulnerabilities:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesResultsMetadataApi->get_vulnerabilities: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseVulnerabilities**](BaseResponseVulnerabilities.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/AnalysesXRefsApi.md b/docs/AnalysesXRefsApi.md deleted file mode 100644 index 9926d948..00000000 --- a/docs/AnalysesXRefsApi.md +++ /dev/null @@ -1,98 +0,0 @@ -# revengai.AnalysesXRefsApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_xref_by_vaddr**](AnalysesXRefsApi.md#get_xref_by_vaddr) | **GET** /v2/analyses/{analysis_id}/xrefs/{vaddr} | [Beta] Look up xrefs by virtual address - - -# **get_xref_by_vaddr** -> BaseResponseXrefResponse get_xref_by_vaddr(analysis_id, vaddr) - -[Beta] Look up xrefs by virtual address - -**This endpoint is in beta and may change without notice.** - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_xref_response import BaseResponseXrefResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesXRefsApi(api_client) - analysis_id = 56 # int | - vaddr = 56 # int | Virtual address to match against xrefs - - try: - # [Beta] Look up xrefs by virtual address - api_response = api_instance.get_xref_by_vaddr(analysis_id, vaddr) - print("The response of AnalysesXRefsApi->get_xref_by_vaddr:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesXRefsApi->get_xref_by_vaddr: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **vaddr** | **int**| Virtual address to match against xrefs | - -### Return type - -[**BaseResponseXrefResponse**](BaseResponseXrefResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | -**404** | Xref or analysis cache not found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/AnalysisAccessInfo.md b/docs/AnalysisAccessInfo.md deleted file mode 100644 index 0b5c8dd2..00000000 --- a/docs/AnalysisAccessInfo.md +++ /dev/null @@ -1,30 +0,0 @@ -# AnalysisAccessInfo - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**owner** | **bool** | | -**username** | **str** | | - -## Example - -```python -from revengai.models.analysis_access_info import AnalysisAccessInfo - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisAccessInfo from a JSON string -analysis_access_info_instance = AnalysisAccessInfo.from_json(json) -# print the JSON string representation of the object -print(AnalysisAccessInfo.to_json()) - -# convert the object into a dict -analysis_access_info_dict = analysis_access_info_instance.to_dict() -# create an instance of AnalysisAccessInfo from a dict -analysis_access_info_from_dict = AnalysisAccessInfo.from_dict(analysis_access_info_dict) -``` -[[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/AnalysisBulkAddTagsRequest.md b/docs/AnalysisBulkAddTagsRequest.md deleted file mode 100644 index 237af512..00000000 --- a/docs/AnalysisBulkAddTagsRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# AnalysisBulkAddTagsRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | **List[str]** | | -**analysis_ids** | **List[int]** | | - -## Example - -```python -from revengai.models.analysis_bulk_add_tags_request import AnalysisBulkAddTagsRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisBulkAddTagsRequest from a JSON string -analysis_bulk_add_tags_request_instance = AnalysisBulkAddTagsRequest.from_json(json) -# print the JSON string representation of the object -print(AnalysisBulkAddTagsRequest.to_json()) - -# convert the object into a dict -analysis_bulk_add_tags_request_dict = analysis_bulk_add_tags_request_instance.to_dict() -# create an instance of AnalysisBulkAddTagsRequest from a dict -analysis_bulk_add_tags_request_from_dict = AnalysisBulkAddTagsRequest.from_dict(analysis_bulk_add_tags_request_dict) -``` -[[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/AnalysisBulkAddTagsResponse.md b/docs/AnalysisBulkAddTagsResponse.md deleted file mode 100644 index 2203e825..00000000 --- a/docs/AnalysisBulkAddTagsResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# AnalysisBulkAddTagsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**List[AnalysisBulkAddTagsResponseItem]**](AnalysisBulkAddTagsResponseItem.md) | | - -## Example - -```python -from revengai.models.analysis_bulk_add_tags_response import AnalysisBulkAddTagsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisBulkAddTagsResponse from a JSON string -analysis_bulk_add_tags_response_instance = AnalysisBulkAddTagsResponse.from_json(json) -# print the JSON string representation of the object -print(AnalysisBulkAddTagsResponse.to_json()) - -# convert the object into a dict -analysis_bulk_add_tags_response_dict = analysis_bulk_add_tags_response_instance.to_dict() -# create an instance of AnalysisBulkAddTagsResponse from a dict -analysis_bulk_add_tags_response_from_dict = AnalysisBulkAddTagsResponse.from_dict(analysis_bulk_add_tags_response_dict) -``` -[[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/AnalysisBulkAddTagsResponseItem.md b/docs/AnalysisBulkAddTagsResponseItem.md deleted file mode 100644 index 0659c0ad..00000000 --- a/docs/AnalysisBulkAddTagsResponseItem.md +++ /dev/null @@ -1,31 +0,0 @@ -# AnalysisBulkAddTagsResponseItem - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_id** | **int** | | -**message** | **str** | | -**error** | **str** | | [optional] - -## Example - -```python -from revengai.models.analysis_bulk_add_tags_response_item import AnalysisBulkAddTagsResponseItem - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisBulkAddTagsResponseItem from a JSON string -analysis_bulk_add_tags_response_item_instance = AnalysisBulkAddTagsResponseItem.from_json(json) -# print the JSON string representation of the object -print(AnalysisBulkAddTagsResponseItem.to_json()) - -# convert the object into a dict -analysis_bulk_add_tags_response_item_dict = analysis_bulk_add_tags_response_item_instance.to_dict() -# create an instance of AnalysisBulkAddTagsResponseItem from a dict -analysis_bulk_add_tags_response_item_from_dict = AnalysisBulkAddTagsResponseItem.from_dict(analysis_bulk_add_tags_response_item_dict) -``` -[[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/AnalysisConfig.md b/docs/AnalysisConfig.md deleted file mode 100644 index 540f94cf..00000000 --- a/docs/AnalysisConfig.md +++ /dev/null @@ -1,35 +0,0 @@ -# AnalysisConfig - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scrape_third_party_config** | [**ScrapeThirdPartyConfig**](ScrapeThirdPartyConfig.md) | Settings to scrape third party sources | [optional] -**generate_cves** | **bool** | A configuration option for fetching CVEs data. | [optional] [default to False] -**generate_sbom** | **bool** | A configuration option for generating software bill of materials data. | [optional] [default to False] -**generate_capabilities** | **bool** | A configuration option for generating capabilities of a binary | [optional] [default to False] -**no_cache** | **bool** | When enabled, skips using cached data within the processing. | [optional] [default to False] -**advanced_analysis** | **bool** | Enables an advanced security analysis. | [optional] [default to False] -**sandbox_config** | [**SandboxOptions**](SandboxOptions.md) | Including a sandbox config enables the dynamic execution sandbox | [optional] - -## Example - -```python -from revengai.models.analysis_config import AnalysisConfig - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisConfig from a JSON string -analysis_config_instance = AnalysisConfig.from_json(json) -# print the JSON string representation of the object -print(AnalysisConfig.to_json()) - -# convert the object into a dict -analysis_config_dict = analysis_config_instance.to_dict() -# create an instance of AnalysisConfig from a dict -analysis_config_from_dict = AnalysisConfig.from_dict(analysis_config_dict) -``` -[[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/AnalysisConfigSnapshot.md b/docs/AnalysisConfigSnapshot.md deleted file mode 100644 index dc58c3e0..00000000 --- a/docs/AnalysisConfigSnapshot.md +++ /dev/null @@ -1,34 +0,0 @@ -# AnalysisConfigSnapshot - -Point-in-time record of which features an analysis was submitted with. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**functions** | **bool** | | -**sandbox** | **bool** | | -**scrape** | **bool** | | -**capabilities** | **bool** | | -**triage** | **bool** | | - -## Example - -```python -from revengai.models.analysis_config_snapshot import AnalysisConfigSnapshot - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisConfigSnapshot from a JSON string -analysis_config_snapshot_instance = AnalysisConfigSnapshot.from_json(json) -# print the JSON string representation of the object -print(AnalysisConfigSnapshot.to_json()) - -# convert the object into a dict -analysis_config_snapshot_dict = analysis_config_snapshot_instance.to_dict() -# create an instance of AnalysisConfigSnapshot from a dict -analysis_config_snapshot_from_dict = AnalysisConfigSnapshot.from_dict(analysis_config_snapshot_dict) -``` -[[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/AnalysisCreateRequest.md b/docs/AnalysisCreateRequest.md deleted file mode 100644 index 8b672eff..00000000 --- a/docs/AnalysisCreateRequest.md +++ /dev/null @@ -1,37 +0,0 @@ -# AnalysisCreateRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**filename** | **str** | The name of the file | -**sha_256_hash** | **str** | The sha256 hash of the file | -**tags** | [**List[Tag]**](Tag.md) | List of tags to assign to an analysis | [optional] [default to []] -**analysis_scope** | [**AnalysisScope**](AnalysisScope.md) | The scope of the analysis determines who can access it | [optional] -**symbols** | [**Symbols**](Symbols.md) | | [optional] -**debug_hash** | **str** | | [optional] -**analysis_config** | [**AnalysisConfig**](AnalysisConfig.md) | The analysis config enables the configuration of optional analysis stages | [optional] -**binary_config** | [**BinaryConfig**](BinaryConfig.md) | The binary config can override automatically determined values such as ISA, Platform, File Format, etc | [optional] -**auto_run_agents** | [**AutoRunAgents**](AutoRunAgents.md) | | [optional] - -## Example - -```python -from revengai.models.analysis_create_request import AnalysisCreateRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisCreateRequest from a JSON string -analysis_create_request_instance = AnalysisCreateRequest.from_json(json) -# print the JSON string representation of the object -print(AnalysisCreateRequest.to_json()) - -# convert the object into a dict -analysis_create_request_dict = analysis_create_request_instance.to_dict() -# create an instance of AnalysisCreateRequest from a dict -analysis_create_request_from_dict = AnalysisCreateRequest.from_dict(analysis_create_request_dict) -``` -[[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/AnalysisCreateResponse.md b/docs/AnalysisCreateResponse.md deleted file mode 100644 index feb8aaa2..00000000 --- a/docs/AnalysisCreateResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# AnalysisCreateResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_id** | **int** | ID of created analysis | -**binary_id** | **int** | ID of created binary | - -## Example - -```python -from revengai.models.analysis_create_response import AnalysisCreateResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisCreateResponse from a JSON string -analysis_create_response_instance = AnalysisCreateResponse.from_json(json) -# print the JSON string representation of the object -print(AnalysisCreateResponse.to_json()) - -# convert the object into a dict -analysis_create_response_dict = analysis_create_response_instance.to_dict() -# create an instance of AnalysisCreateResponse from a dict -analysis_create_response_from_dict = AnalysisCreateResponse.from_dict(analysis_create_response_dict) -``` -[[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/AnalysisDetailResponse.md b/docs/AnalysisDetailResponse.md deleted file mode 100644 index 94a92de1..00000000 --- a/docs/AnalysisDetailResponse.md +++ /dev/null @@ -1,45 +0,0 @@ -# AnalysisDetailResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**access** | [**AnalysisAccessInfo**](AnalysisAccessInfo.md) | | -**analysis_id** | **int** | | -**analysis_scope** | **str** | | -**architecture** | **str** | | -**binary_dynamic** | **bool** | | -**binary_format** | **str** | | -**binary_name** | **str** | | -**binary_size** | **int** | | -**binary_type** | **str** | | -**creation** | **str** | | -**dashboard_url** | **str** | URL to view this analysis in the dashboard | -**debug** | **bool** | | -**model_name** | **str** | | -**sbom** | **Dict[str, object]** | | [optional] -**sha_256_hash** | **str** | | -**auto_run_agents** | [**AutoRunAgents**](AutoRunAgents.md) | | -**requested_config** | [**AnalysisConfigSnapshot**](AnalysisConfigSnapshot.md) | Snapshot of the configuration the analysis was submitted with. | - -## Example - -```python -from revengai.models.analysis_detail_response import AnalysisDetailResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisDetailResponse from a JSON string -analysis_detail_response_instance = AnalysisDetailResponse.from_json(json) -# print the JSON string representation of the object -print(AnalysisDetailResponse.to_json()) - -# convert the object into a dict -analysis_detail_response_dict = analysis_detail_response_instance.to_dict() -# create an instance of AnalysisDetailResponse from a dict -analysis_detail_response_from_dict = AnalysisDetailResponse.from_dict(analysis_detail_response_dict) -``` -[[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/AnalysisFunctionMapping.md b/docs/AnalysisFunctionMapping.md deleted file mode 100644 index 0d7f543d..00000000 --- a/docs/AnalysisFunctionMapping.md +++ /dev/null @@ -1,29 +0,0 @@ -# AnalysisFunctionMapping - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_maps** | [**FunctionMapping**](FunctionMapping.md) | A map of function ids to function addresses for the analysis, and it's inverse. | - -## Example - -```python -from revengai.models.analysis_function_mapping import AnalysisFunctionMapping - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisFunctionMapping from a JSON string -analysis_function_mapping_instance = AnalysisFunctionMapping.from_json(json) -# print the JSON string representation of the object -print(AnalysisFunctionMapping.to_json()) - -# convert the object into a dict -analysis_function_mapping_dict = analysis_function_mapping_instance.to_dict() -# create an instance of AnalysisFunctionMapping from a dict -analysis_function_mapping_from_dict = AnalysisFunctionMapping.from_dict(analysis_function_mapping_dict) -``` -[[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/AnalysisFunctions.md b/docs/AnalysisFunctions.md deleted file mode 100644 index ecf15acf..00000000 --- a/docs/AnalysisFunctions.md +++ /dev/null @@ -1,29 +0,0 @@ -# AnalysisFunctions - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**functions** | [**List[AppApiRestV2FunctionsTypesFunction]**](AppApiRestV2FunctionsTypesFunction.md) | The functions associated with the analysis | - -## Example - -```python -from revengai.models.analysis_functions import AnalysisFunctions - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisFunctions from a JSON string -analysis_functions_instance = AnalysisFunctions.from_json(json) -# print the JSON string representation of the object -print(AnalysisFunctions.to_json()) - -# convert the object into a dict -analysis_functions_dict = analysis_functions_instance.to_dict() -# create an instance of AnalysisFunctions from a dict -analysis_functions_from_dict = AnalysisFunctions.from_dict(analysis_functions_dict) -``` -[[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/AnalysisFunctionsList.md b/docs/AnalysisFunctionsList.md deleted file mode 100644 index e6cf230d..00000000 --- a/docs/AnalysisFunctionsList.md +++ /dev/null @@ -1,30 +0,0 @@ -# AnalysisFunctionsList - -API response schema for paginated functions list - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**functions** | [**List[FunctionListItem]**](FunctionListItem.md) | The functions associated with the analysis | - -## Example - -```python -from revengai.models.analysis_functions_list import AnalysisFunctionsList - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisFunctionsList from a JSON string -analysis_functions_list_instance = AnalysisFunctionsList.from_json(json) -# print the JSON string representation of the object -print(AnalysisFunctionsList.to_json()) - -# convert the object into a dict -analysis_functions_list_dict = analysis_functions_list_instance.to_dict() -# create an instance of AnalysisFunctionsList from a dict -analysis_functions_list_from_dict = AnalysisFunctionsList.from_dict(analysis_functions_list_dict) -``` -[[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/AnalysisRecord.md b/docs/AnalysisRecord.md deleted file mode 100644 index 8b58c0b6..00000000 --- a/docs/AnalysisRecord.md +++ /dev/null @@ -1,45 +0,0 @@ -# AnalysisRecord - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_id** | **int** | ID to identify analysis | -**analysis_scope** | **str** | Scope of the analysis | -**binary_id** | **int** | ID to identify the binary analyse | -**model_id** | **int** | ID to identify the model used for analysis | -**model_name** | **str** | Name of the model used for analysis | -**status** | **str** | The current status of analysis | -**creation** | **datetime** | The datetime of when the analysis was created | -**is_owner** | **bool** | Whether the current user is the owner of a binary | -**binary_name** | **str** | The name of the file uploaded | -**sha_256_hash** | **str** | The hash of the binary | -**function_boundaries_hash** | **str** | The hash of the function boundaries | -**binary_size** | **int** | The size of the binary | -**username** | **str** | The username of the analysis owner | -**dynamic_execution_status** | [**DynamicExecutionStatus**](DynamicExecutionStatus.md) | | [optional] -**dynamic_execution_task_id** | **int** | | [optional] -**base_address** | **int** | The base address of the binary | -**tags** | [**List[TagItem]**](TagItem.md) | List of tags associated with the analysis | [optional] - -## Example - -```python -from revengai.models.analysis_record import AnalysisRecord - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisRecord from a JSON string -analysis_record_instance = AnalysisRecord.from_json(json) -# print the JSON string representation of the object -print(AnalysisRecord.to_json()) - -# convert the object into a dict -analysis_record_dict = analysis_record_instance.to_dict() -# create an instance of AnalysisRecord from a dict -analysis_record_from_dict = AnalysisRecord.from_dict(analysis_record_dict) -``` -[[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 deleted file mode 100644 index 7ad05e7f..00000000 --- a/docs/AnalysisScope.md +++ /dev/null @@ -1,16 +0,0 @@ -# AnalysisScope - - -## Enum - -* `PRIVATE` (value: `'PRIVATE'`) - -* `PUBLIC` (value: `'PUBLIC'`) - -* `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/AnalysisStringInput.md b/docs/AnalysisStringInput.md deleted file mode 100644 index b46349d7..00000000 --- a/docs/AnalysisStringInput.md +++ /dev/null @@ -1,32 +0,0 @@ -# AnalysisStringInput - -Input model for inserting a string into an analysis. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | The string literal value | -**vaddr** | **int** | The virtual address of the string | -**source** | [**StringSource**](StringSource.md) | The source of the string | - -## Example - -```python -from revengai.models.analysis_string_input import AnalysisStringInput - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisStringInput from a JSON string -analysis_string_input_instance = AnalysisStringInput.from_json(json) -# print the JSON string representation of the object -print(AnalysisStringInput.to_json()) - -# convert the object into a dict -analysis_string_input_dict = analysis_string_input_instance.to_dict() -# create an instance of AnalysisStringInput from a dict -analysis_string_input_from_dict = AnalysisStringInput.from_dict(analysis_string_input_dict) -``` -[[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/AnalysisStringsResponse.md b/docs/AnalysisStringsResponse.md deleted file mode 100644 index d31d5e02..00000000 --- a/docs/AnalysisStringsResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# AnalysisStringsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**strings** | [**List[StringFunctions]**](StringFunctions.md) | The strings associated with the analysis | -**total_strings** | **int** | The total number of strings associated with this analysis | - -## Example - -```python -from revengai.models.analysis_strings_response import AnalysisStringsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisStringsResponse from a JSON string -analysis_strings_response_instance = AnalysisStringsResponse.from_json(json) -# print the JSON string representation of the object -print(AnalysisStringsResponse.to_json()) - -# convert the object into a dict -analysis_strings_response_dict = analysis_strings_response_instance.to_dict() -# create an instance of AnalysisStringsResponse from a dict -analysis_strings_response_from_dict = AnalysisStringsResponse.from_dict(analysis_strings_response_dict) -``` -[[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/AnalysisStringsStatusResponse.md b/docs/AnalysisStringsStatusResponse.md deleted file mode 100644 index 7159e5f9..00000000 --- a/docs/AnalysisStringsStatusResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# AnalysisStringsStatusResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**BinariesTaskStatus**](BinariesTaskStatus.md) | The current status of the strings extraction task | - -## Example - -```python -from revengai.models.analysis_strings_status_response import AnalysisStringsStatusResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisStringsStatusResponse from a JSON string -analysis_strings_status_response_instance = AnalysisStringsStatusResponse.from_json(json) -# print the JSON string representation of the object -print(AnalysisStringsStatusResponse.to_json()) - -# convert the object into a dict -analysis_strings_status_response_dict = analysis_strings_status_response_instance.to_dict() -# create an instance of AnalysisStringsStatusResponse from a dict -analysis_strings_status_response_from_dict = AnalysisStringsStatusResponse.from_dict(analysis_strings_status_response_dict) -``` -[[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/AnalysisTags.md b/docs/AnalysisTags.md deleted file mode 100644 index d38fd726..00000000 --- a/docs/AnalysisTags.md +++ /dev/null @@ -1,29 +0,0 @@ -# AnalysisTags - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_tags** | [**List[TagItem]**](TagItem.md) | | - -## Example - -```python -from revengai.models.analysis_tags import AnalysisTags - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisTags from a JSON string -analysis_tags_instance = AnalysisTags.from_json(json) -# print the JSON string representation of the object -print(AnalysisTags.to_json()) - -# convert the object into a dict -analysis_tags_dict = analysis_tags_instance.to_dict() -# create an instance of AnalysisTags from a dict -analysis_tags_from_dict = AnalysisTags.from_dict(analysis_tags_dict) -``` -[[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/AnalysisUpdateRequest.md b/docs/AnalysisUpdateRequest.md deleted file mode 100644 index fc3dceeb..00000000 --- a/docs/AnalysisUpdateRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# AnalysisUpdateRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**binary_name** | **str** | | [optional] -**analysis_scope** | [**AnalysisScope**](AnalysisScope.md) | | [optional] - -## Example - -```python -from revengai.models.analysis_update_request import AnalysisUpdateRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisUpdateRequest from a JSON string -analysis_update_request_instance = AnalysisUpdateRequest.from_json(json) -# print the JSON string representation of the object -print(AnalysisUpdateRequest.to_json()) - -# convert the object into a dict -analysis_update_request_dict = analysis_update_request_instance.to_dict() -# create an instance of AnalysisUpdateRequest from a dict -analysis_update_request_from_dict = AnalysisUpdateRequest.from_dict(analysis_update_request_dict) -``` -[[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/AnalysisUpdateTagsRequest.md b/docs/AnalysisUpdateTagsRequest.md deleted file mode 100644 index e85d8b53..00000000 --- a/docs/AnalysisUpdateTagsRequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# AnalysisUpdateTagsRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | **List[str]** | | - -## Example - -```python -from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisUpdateTagsRequest from a JSON string -analysis_update_tags_request_instance = AnalysisUpdateTagsRequest.from_json(json) -# print the JSON string representation of the object -print(AnalysisUpdateTagsRequest.to_json()) - -# convert the object into a dict -analysis_update_tags_request_dict = analysis_update_tags_request_instance.to_dict() -# create an instance of AnalysisUpdateTagsRequest from a dict -analysis_update_tags_request_from_dict = AnalysisUpdateTagsRequest.from_dict(analysis_update_tags_request_dict) -``` -[[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/AnalysisUpdateTagsResponse.md b/docs/AnalysisUpdateTagsResponse.md deleted file mode 100644 index 7e9da585..00000000 --- a/docs/AnalysisUpdateTagsResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# AnalysisUpdateTagsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | [**List[TagResponse]**](TagResponse.md) | The analysis tags after updating | - -## Example - -```python -from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AnalysisUpdateTagsResponse from a JSON string -analysis_update_tags_response_instance = AnalysisUpdateTagsResponse.from_json(json) -# print the JSON string representation of the object -print(AnalysisUpdateTagsResponse.to_json()) - -# convert the object into a dict -analysis_update_tags_response_dict = analysis_update_tags_response_instance.to_dict() -# create an instance of AnalysisUpdateTagsResponse from a dict -analysis_update_tags_response_from_dict = AnalysisUpdateTagsResponse.from_dict(analysis_update_tags_response_dict) -``` -[[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/AppApiRestV2AgentSchemaCapability.md b/docs/AppApiRestV2AgentSchemaCapability.md deleted file mode 100644 index cf38866d..00000000 --- a/docs/AppApiRestV2AgentSchemaCapability.md +++ /dev/null @@ -1,34 +0,0 @@ -# AppApiRestV2AgentSchemaCapability - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_vaddr** | **str** | Vaddr of the function containing the capability | -**description** | **str** | Description of the capability | -**capability** | **str** | Name of the capability | -**type** | **str** | Type of the capability | -**function_name** | **str** | Name of the function containing the capability | -**function_id** | **int** | ID of the function containing the capability | - -## Example - -```python -from revengai.models.app_api_rest_v2_agent_schema_capability import AppApiRestV2AgentSchemaCapability - -# TODO update the JSON string below -json = "{}" -# create an instance of AppApiRestV2AgentSchemaCapability from a JSON string -app_api_rest_v2_agent_schema_capability_instance = AppApiRestV2AgentSchemaCapability.from_json(json) -# print the JSON string representation of the object -print(AppApiRestV2AgentSchemaCapability.to_json()) - -# convert the object into a dict -app_api_rest_v2_agent_schema_capability_dict = app_api_rest_v2_agent_schema_capability_instance.to_dict() -# create an instance of AppApiRestV2AgentSchemaCapability from a dict -app_api_rest_v2_agent_schema_capability_from_dict = AppApiRestV2AgentSchemaCapability.from_dict(app_api_rest_v2_agent_schema_capability_dict) -``` -[[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 deleted file mode 100644 index bfa611f3..00000000 --- a/docs/AppApiRestV2AnalysesEnumsOrderBy.md +++ /dev/null @@ -1,16 +0,0 @@ -# AppApiRestV2AnalysesEnumsOrderBy - - -## Enum - -* `CREATED` (value: `'created'`) - -* `NAME` (value: `'name'`) - -* `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 deleted file mode 100644 index cfa0dca5..00000000 --- a/docs/AppApiRestV2CollectionsEnumsOrderBy.md +++ /dev/null @@ -1,20 +0,0 @@ -# AppApiRestV2CollectionsEnumsOrderBy - - -## Enum - -* `CREATED` (value: `'created'`) - -* `COLLECTION` (value: `'collection'`) - -* `OWNER` (value: `'owner'`) - -* `COLLECTION_SIZE` (value: `'collection_size'`) - -* `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/AppApiRestV2FunctionsResponsesFunction.md b/docs/AppApiRestV2FunctionsResponsesFunction.md deleted file mode 100644 index 27827836..00000000 --- a/docs/AppApiRestV2FunctionsResponsesFunction.md +++ /dev/null @@ -1,31 +0,0 @@ -# AppApiRestV2FunctionsResponsesFunction - -Function schema used in function strings response. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_id** | **int** | | [optional] -**function_vaddr** | **int** | Function virtual address | - -## Example - -```python -from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction - -# TODO update the JSON string below -json = "{}" -# create an instance of AppApiRestV2FunctionsResponsesFunction from a JSON string -app_api_rest_v2_functions_responses_function_instance = AppApiRestV2FunctionsResponsesFunction.from_json(json) -# print the JSON string representation of the object -print(AppApiRestV2FunctionsResponsesFunction.to_json()) - -# convert the object into a dict -app_api_rest_v2_functions_responses_function_dict = app_api_rest_v2_functions_responses_function_instance.to_dict() -# create an instance of AppApiRestV2FunctionsResponsesFunction from a dict -app_api_rest_v2_functions_responses_function_from_dict = AppApiRestV2FunctionsResponsesFunction.from_dict(app_api_rest_v2_functions_responses_function_dict) -``` -[[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/AppApiRestV2FunctionsTypesFunction.md b/docs/AppApiRestV2FunctionsTypesFunction.md deleted file mode 100644 index 7f9b98d4..00000000 --- a/docs/AppApiRestV2FunctionsTypesFunction.md +++ /dev/null @@ -1,34 +0,0 @@ -# AppApiRestV2FunctionsTypesFunction - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_id** | **int** | Function id | -**function_name** | **str** | Demangled name of the function | -**function_mangled_name** | **str** | Mangled name of the function | -**function_vaddr** | **int** | Function virtual address | -**function_size** | **int** | Function size | -**debug** | **bool** | Whether the function is debug | - -## Example - -```python -from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction - -# TODO update the JSON string below -json = "{}" -# create an instance of AppApiRestV2FunctionsTypesFunction from a JSON string -app_api_rest_v2_functions_types_function_instance = AppApiRestV2FunctionsTypesFunction.from_json(json) -# print the JSON string representation of the object -print(AppApiRestV2FunctionsTypesFunction.to_json()) - -# convert the object into a dict -app_api_rest_v2_functions_types_function_dict = app_api_rest_v2_functions_types_function_instance.to_dict() -# create an instance of AppApiRestV2FunctionsTypesFunction from a dict -app_api_rest_v2_functions_types_function_from_dict = AppApiRestV2FunctionsTypesFunction.from_dict(app_api_rest_v2_functions_types_function_dict) -``` -[[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/AppApiRestV2InfoTypesCapability.md b/docs/AppApiRestV2InfoTypesCapability.md deleted file mode 100644 index 35d2d532..00000000 --- a/docs/AppApiRestV2InfoTypesCapability.md +++ /dev/null @@ -1,31 +0,0 @@ -# AppApiRestV2InfoTypesCapability - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_name** | **str** | The name of the function with a capability | -**function_vaddr** | **int** | The virtual address of the function where the capability comes from | -**capabilities** | **List[str]** | The list of capabilities associated with the function | - -## Example - -```python -from revengai.models.app_api_rest_v2_info_types_capability import AppApiRestV2InfoTypesCapability - -# TODO update the JSON string below -json = "{}" -# create an instance of AppApiRestV2InfoTypesCapability from a JSON string -app_api_rest_v2_info_types_capability_instance = AppApiRestV2InfoTypesCapability.from_json(json) -# print the JSON string representation of the object -print(AppApiRestV2InfoTypesCapability.to_json()) - -# convert the object into a dict -app_api_rest_v2_info_types_capability_dict = app_api_rest_v2_info_types_capability_instance.to_dict() -# create an instance of AppApiRestV2InfoTypesCapability from a dict -app_api_rest_v2_info_types_capability_from_dict = AppApiRestV2InfoTypesCapability.from_dict(app_api_rest_v2_info_types_capability_dict) -``` -[[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/Argument.md b/docs/Argument.md deleted file mode 100644 index 7de2becc..00000000 --- a/docs/Argument.md +++ /dev/null @@ -1,33 +0,0 @@ -# Argument - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] -**offset** | **int** | Offset of the argument in the function signature | -**name** | **str** | Name of the argument | -**type** | **str** | Data type of the argument | -**size** | **int** | Size of the argument in bytes | - -## Example - -```python -from revengai.models.argument import Argument - -# TODO update the JSON string below -json = "{}" -# create an instance of Argument from a JSON string -argument_instance = Argument.from_json(json) -# print the JSON string representation of the object -print(Argument.to_json()) - -# convert the object into a dict -argument_dict = argument_instance.to_dict() -# create an instance of Argument from a dict -argument_from_dict = Argument.from_dict(argument_dict) -``` -[[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/AuthenticationUsersApi.md b/docs/AuthenticationUsersApi.md deleted file mode 100644 index f1dfa2bc..00000000 --- a/docs/AuthenticationUsersApi.md +++ /dev/null @@ -1,262 +0,0 @@ -# revengai.AuthenticationUsersApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_user**](AuthenticationUsersApi.md#get_user) | **GET** /v2/users/{user_id} | Get a user's public information -[**get_user_activity**](AuthenticationUsersApi.md#get_user_activity) | **GET** /v2/users/activity | Get auth user activity -[**submit_user_feedback**](AuthenticationUsersApi.md#submit_user_feedback) | **POST** /v2/users/feedback | Submit feedback about the application - - -# **get_user** -> BaseResponseGetPublicUserResponse get_user(user_id) - -Get a user's public information - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AuthenticationUsersApi(api_client) - user_id = 56 # int | - - try: - # Get a user's public information - api_response = api_instance.get_user(user_id) - print("The response of AuthenticationUsersApi->get_user:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AuthenticationUsersApi->get_user: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user_id** | **int**| | - -### Return type - -[**BaseResponseGetPublicUserResponse**](BaseResponseGetPublicUserResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_user_activity** -> BaseResponseListUserActivityResponse get_user_activity() - -Get auth user activity - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AuthenticationUsersApi(api_client) - - try: - # Get auth user activity - api_response = api_instance.get_user_activity() - print("The response of AuthenticationUsersApi->get_user_activity:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AuthenticationUsersApi->get_user_activity: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**BaseResponseListUserActivityResponse**](BaseResponseListUserActivityResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **submit_user_feedback** -> BaseResponse submit_user_feedback(submit_user_feedback_request) - -Submit feedback about the application - -Submits feedback about the application and forwards it to the RevEng.ai project management tool. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response import BaseResponse -from revengai.models.submit_user_feedback_request import SubmitUserFeedbackRequest -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AuthenticationUsersApi(api_client) - submit_user_feedback_request = revengai.SubmitUserFeedbackRequest() # SubmitUserFeedbackRequest | - - try: - # Submit feedback about the application - api_response = api_instance.submit_user_feedback(submit_user_feedback_request) - print("The response of AuthenticationUsersApi->submit_user_feedback:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AuthenticationUsersApi->submit_user_feedback: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **submit_user_feedback_request** | [**SubmitUserFeedbackRequest**](SubmitUserFeedbackRequest.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/AutoRunAgents.md b/docs/AutoRunAgents.md deleted file mode 100644 index 42df771f..00000000 --- a/docs/AutoRunAgents.md +++ /dev/null @@ -1,29 +0,0 @@ -# AutoRunAgents - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**triage** | **bool** | | [optional] [default to False] - -## Example - -```python -from revengai.models.auto_run_agents import AutoRunAgents - -# TODO update the JSON string below -json = "{}" -# create an instance of AutoRunAgents from a JSON string -auto_run_agents_instance = AutoRunAgents.from_json(json) -# print the JSON string representation of the object -print(AutoRunAgents.to_json()) - -# convert the object into a dict -auto_run_agents_dict = auto_run_agents_instance.to_dict() -# create an instance of AutoRunAgents from a dict -auto_run_agents_from_dict = AutoRunAgents.from_dict(auto_run_agents_dict) -``` -[[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/BaseResponse.md b/docs/BaseResponse.md deleted file mode 100644 index 219e865b..00000000 --- a/docs/BaseResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | **object** | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response import BaseResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponse from a JSON string -base_response_instance = BaseResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponse.to_json()) - -# convert the object into a dict -base_response_dict = base_response_instance.to_dict() -# create an instance of BaseResponse from a dict -base_response_from_dict = BaseResponse.from_dict(base_response_dict) -``` -[[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/BaseResponseAdditionalDetailsStatusResponse.md b/docs/BaseResponseAdditionalDetailsStatusResponse.md deleted file mode 100644 index 021f0cb9..00000000 --- a/docs/BaseResponseAdditionalDetailsStatusResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseAdditionalDetailsStatusResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AdditionalDetailsStatusResponse**](AdditionalDetailsStatusResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_additional_details_status_response import BaseResponseAdditionalDetailsStatusResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseAdditionalDetailsStatusResponse from a JSON string -base_response_additional_details_status_response_instance = BaseResponseAdditionalDetailsStatusResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseAdditionalDetailsStatusResponse.to_json()) - -# convert the object into a dict -base_response_additional_details_status_response_dict = base_response_additional_details_status_response_instance.to_dict() -# create an instance of BaseResponseAdditionalDetailsStatusResponse from a dict -base_response_additional_details_status_response_from_dict = BaseResponseAdditionalDetailsStatusResponse.from_dict(base_response_additional_details_status_response_dict) -``` -[[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/BaseResponseAnalysisBulkAddTagsResponse.md b/docs/BaseResponseAnalysisBulkAddTagsResponse.md deleted file mode 100644 index ff005d87..00000000 --- a/docs/BaseResponseAnalysisBulkAddTagsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseAnalysisBulkAddTagsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AnalysisBulkAddTagsResponse**](AnalysisBulkAddTagsResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_analysis_bulk_add_tags_response import BaseResponseAnalysisBulkAddTagsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseAnalysisBulkAddTagsResponse from a JSON string -base_response_analysis_bulk_add_tags_response_instance = BaseResponseAnalysisBulkAddTagsResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseAnalysisBulkAddTagsResponse.to_json()) - -# convert the object into a dict -base_response_analysis_bulk_add_tags_response_dict = base_response_analysis_bulk_add_tags_response_instance.to_dict() -# create an instance of BaseResponseAnalysisBulkAddTagsResponse from a dict -base_response_analysis_bulk_add_tags_response_from_dict = BaseResponseAnalysisBulkAddTagsResponse.from_dict(base_response_analysis_bulk_add_tags_response_dict) -``` -[[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/BaseResponseAnalysisCreateResponse.md b/docs/BaseResponseAnalysisCreateResponse.md deleted file mode 100644 index 93f0097d..00000000 --- a/docs/BaseResponseAnalysisCreateResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseAnalysisCreateResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AnalysisCreateResponse**](AnalysisCreateResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseAnalysisCreateResponse from a JSON string -base_response_analysis_create_response_instance = BaseResponseAnalysisCreateResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseAnalysisCreateResponse.to_json()) - -# convert the object into a dict -base_response_analysis_create_response_dict = base_response_analysis_create_response_instance.to_dict() -# create an instance of BaseResponseAnalysisCreateResponse from a dict -base_response_analysis_create_response_from_dict = BaseResponseAnalysisCreateResponse.from_dict(base_response_analysis_create_response_dict) -``` -[[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/BaseResponseAnalysisDetailResponse.md b/docs/BaseResponseAnalysisDetailResponse.md deleted file mode 100644 index 23fa95e9..00000000 --- a/docs/BaseResponseAnalysisDetailResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseAnalysisDetailResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AnalysisDetailResponse**](AnalysisDetailResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseAnalysisDetailResponse from a JSON string -base_response_analysis_detail_response_instance = BaseResponseAnalysisDetailResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseAnalysisDetailResponse.to_json()) - -# convert the object into a dict -base_response_analysis_detail_response_dict = base_response_analysis_detail_response_instance.to_dict() -# create an instance of BaseResponseAnalysisDetailResponse from a dict -base_response_analysis_detail_response_from_dict = BaseResponseAnalysisDetailResponse.from_dict(base_response_analysis_detail_response_dict) -``` -[[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/BaseResponseAnalysisFunctionMapping.md b/docs/BaseResponseAnalysisFunctionMapping.md deleted file mode 100644 index 524e0f9f..00000000 --- a/docs/BaseResponseAnalysisFunctionMapping.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseAnalysisFunctionMapping - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AnalysisFunctionMapping**](AnalysisFunctionMapping.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_analysis_function_mapping import BaseResponseAnalysisFunctionMapping - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseAnalysisFunctionMapping from a JSON string -base_response_analysis_function_mapping_instance = BaseResponseAnalysisFunctionMapping.from_json(json) -# print the JSON string representation of the object -print(BaseResponseAnalysisFunctionMapping.to_json()) - -# convert the object into a dict -base_response_analysis_function_mapping_dict = base_response_analysis_function_mapping_instance.to_dict() -# create an instance of BaseResponseAnalysisFunctionMapping from a dict -base_response_analysis_function_mapping_from_dict = BaseResponseAnalysisFunctionMapping.from_dict(base_response_analysis_function_mapping_dict) -``` -[[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/BaseResponseAnalysisFunctions.md b/docs/BaseResponseAnalysisFunctions.md deleted file mode 100644 index 99b6512d..00000000 --- a/docs/BaseResponseAnalysisFunctions.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseAnalysisFunctions - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AnalysisFunctions**](AnalysisFunctions.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseAnalysisFunctions from a JSON string -base_response_analysis_functions_instance = BaseResponseAnalysisFunctions.from_json(json) -# print the JSON string representation of the object -print(BaseResponseAnalysisFunctions.to_json()) - -# convert the object into a dict -base_response_analysis_functions_dict = base_response_analysis_functions_instance.to_dict() -# create an instance of BaseResponseAnalysisFunctions from a dict -base_response_analysis_functions_from_dict = BaseResponseAnalysisFunctions.from_dict(base_response_analysis_functions_dict) -``` -[[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/BaseResponseAnalysisFunctionsList.md b/docs/BaseResponseAnalysisFunctionsList.md deleted file mode 100644 index f116d31f..00000000 --- a/docs/BaseResponseAnalysisFunctionsList.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseAnalysisFunctionsList - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AnalysisFunctionsList**](AnalysisFunctionsList.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_analysis_functions_list import BaseResponseAnalysisFunctionsList - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseAnalysisFunctionsList from a JSON string -base_response_analysis_functions_list_instance = BaseResponseAnalysisFunctionsList.from_json(json) -# print the JSON string representation of the object -print(BaseResponseAnalysisFunctionsList.to_json()) - -# convert the object into a dict -base_response_analysis_functions_list_dict = base_response_analysis_functions_list_instance.to_dict() -# create an instance of BaseResponseAnalysisFunctionsList from a dict -base_response_analysis_functions_list_from_dict = BaseResponseAnalysisFunctionsList.from_dict(base_response_analysis_functions_list_dict) -``` -[[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/BaseResponseAnalysisStringsResponse.md b/docs/BaseResponseAnalysisStringsResponse.md deleted file mode 100644 index da37b439..00000000 --- a/docs/BaseResponseAnalysisStringsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseAnalysisStringsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AnalysisStringsResponse**](AnalysisStringsResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseAnalysisStringsResponse from a JSON string -base_response_analysis_strings_response_instance = BaseResponseAnalysisStringsResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseAnalysisStringsResponse.to_json()) - -# convert the object into a dict -base_response_analysis_strings_response_dict = base_response_analysis_strings_response_instance.to_dict() -# create an instance of BaseResponseAnalysisStringsResponse from a dict -base_response_analysis_strings_response_from_dict = BaseResponseAnalysisStringsResponse.from_dict(base_response_analysis_strings_response_dict) -``` -[[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/BaseResponseAnalysisStringsStatusResponse.md b/docs/BaseResponseAnalysisStringsStatusResponse.md deleted file mode 100644 index 529a501e..00000000 --- a/docs/BaseResponseAnalysisStringsStatusResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseAnalysisStringsStatusResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AnalysisStringsStatusResponse**](AnalysisStringsStatusResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_analysis_strings_status_response import BaseResponseAnalysisStringsStatusResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseAnalysisStringsStatusResponse from a JSON string -base_response_analysis_strings_status_response_instance = BaseResponseAnalysisStringsStatusResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseAnalysisStringsStatusResponse.to_json()) - -# convert the object into a dict -base_response_analysis_strings_status_response_dict = base_response_analysis_strings_status_response_instance.to_dict() -# create an instance of BaseResponseAnalysisStringsStatusResponse from a dict -base_response_analysis_strings_status_response_from_dict = BaseResponseAnalysisStringsStatusResponse.from_dict(base_response_analysis_strings_status_response_dict) -``` -[[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/BaseResponseAnalysisTags.md b/docs/BaseResponseAnalysisTags.md deleted file mode 100644 index 2ac24b8e..00000000 --- a/docs/BaseResponseAnalysisTags.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseAnalysisTags - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AnalysisTags**](AnalysisTags.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseAnalysisTags from a JSON string -base_response_analysis_tags_instance = BaseResponseAnalysisTags.from_json(json) -# print the JSON string representation of the object -print(BaseResponseAnalysisTags.to_json()) - -# convert the object into a dict -base_response_analysis_tags_dict = base_response_analysis_tags_instance.to_dict() -# create an instance of BaseResponseAnalysisTags from a dict -base_response_analysis_tags_from_dict = BaseResponseAnalysisTags.from_dict(base_response_analysis_tags_dict) -``` -[[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/BaseResponseAnalysisUpdateTagsResponse.md b/docs/BaseResponseAnalysisUpdateTagsResponse.md deleted file mode 100644 index d02ca028..00000000 --- a/docs/BaseResponseAnalysisUpdateTagsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseAnalysisUpdateTagsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AnalysisUpdateTagsResponse**](AnalysisUpdateTagsResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseAnalysisUpdateTagsResponse from a JSON string -base_response_analysis_update_tags_response_instance = BaseResponseAnalysisUpdateTagsResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseAnalysisUpdateTagsResponse.to_json()) - -# convert the object into a dict -base_response_analysis_update_tags_response_dict = base_response_analysis_update_tags_response_instance.to_dict() -# create an instance of BaseResponseAnalysisUpdateTagsResponse from a dict -base_response_analysis_update_tags_response_from_dict = BaseResponseAnalysisUpdateTagsResponse.from_dict(base_response_analysis_update_tags_response_dict) -``` -[[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/BaseResponseBasic.md b/docs/BaseResponseBasic.md deleted file mode 100644 index 5015627b..00000000 --- a/docs/BaseResponseBasic.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseBasic - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**Basic**](Basic.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_basic import BaseResponseBasic - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseBasic from a JSON string -base_response_basic_instance = BaseResponseBasic.from_json(json) -# print the JSON string representation of the object -print(BaseResponseBasic.to_json()) - -# convert the object into a dict -base_response_basic_dict = base_response_basic_instance.to_dict() -# create an instance of BaseResponseBasic from a dict -base_response_basic_from_dict = BaseResponseBasic.from_dict(base_response_basic_dict) -``` -[[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/BaseResponseBinariesRelatedStatusResponse.md b/docs/BaseResponseBinariesRelatedStatusResponse.md deleted file mode 100644 index 61a3e2b1..00000000 --- a/docs/BaseResponseBinariesRelatedStatusResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseBinariesRelatedStatusResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**BinariesRelatedStatusResponse**](BinariesRelatedStatusResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_binaries_related_status_response import BaseResponseBinariesRelatedStatusResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseBinariesRelatedStatusResponse from a JSON string -base_response_binaries_related_status_response_instance = BaseResponseBinariesRelatedStatusResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseBinariesRelatedStatusResponse.to_json()) - -# convert the object into a dict -base_response_binaries_related_status_response_dict = base_response_binaries_related_status_response_instance.to_dict() -# create an instance of BaseResponseBinariesRelatedStatusResponse from a dict -base_response_binaries_related_status_response_from_dict = BaseResponseBinariesRelatedStatusResponse.from_dict(base_response_binaries_related_status_response_dict) -``` -[[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/BaseResponseBinaryAdditionalResponse.md b/docs/BaseResponseBinaryAdditionalResponse.md deleted file mode 100644 index 8f65a69b..00000000 --- a/docs/BaseResponseBinaryAdditionalResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseBinaryAdditionalResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**BinaryAdditionalResponse**](BinaryAdditionalResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_binary_additional_response import BaseResponseBinaryAdditionalResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseBinaryAdditionalResponse from a JSON string -base_response_binary_additional_response_instance = BaseResponseBinaryAdditionalResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseBinaryAdditionalResponse.to_json()) - -# convert the object into a dict -base_response_binary_additional_response_dict = base_response_binary_additional_response_instance.to_dict() -# create an instance of BaseResponseBinaryAdditionalResponse from a dict -base_response_binary_additional_response_from_dict = BaseResponseBinaryAdditionalResponse.from_dict(base_response_binary_additional_response_dict) -``` -[[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/BaseResponseBinaryDetailsResponse.md b/docs/BaseResponseBinaryDetailsResponse.md deleted file mode 100644 index ef9e4c93..00000000 --- a/docs/BaseResponseBinaryDetailsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseBinaryDetailsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**BinaryDetailsResponse**](BinaryDetailsResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_binary_details_response import BaseResponseBinaryDetailsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseBinaryDetailsResponse from a JSON string -base_response_binary_details_response_instance = BaseResponseBinaryDetailsResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseBinaryDetailsResponse.to_json()) - -# convert the object into a dict -base_response_binary_details_response_dict = base_response_binary_details_response_instance.to_dict() -# create an instance of BaseResponseBinaryDetailsResponse from a dict -base_response_binary_details_response_from_dict = BaseResponseBinaryDetailsResponse.from_dict(base_response_binary_details_response_dict) -``` -[[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/BaseResponseBinaryExternalsResponse.md b/docs/BaseResponseBinaryExternalsResponse.md deleted file mode 100644 index f2f60a18..00000000 --- a/docs/BaseResponseBinaryExternalsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseBinaryExternalsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**BinaryExternalsResponse**](BinaryExternalsResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_binary_externals_response import BaseResponseBinaryExternalsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseBinaryExternalsResponse from a JSON string -base_response_binary_externals_response_instance = BaseResponseBinaryExternalsResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseBinaryExternalsResponse.to_json()) - -# convert the object into a dict -base_response_binary_externals_response_dict = base_response_binary_externals_response_instance.to_dict() -# create an instance of BaseResponseBinaryExternalsResponse from a dict -base_response_binary_externals_response_from_dict = BaseResponseBinaryExternalsResponse.from_dict(base_response_binary_externals_response_dict) -``` -[[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/BaseResponseBinarySearchResponse.md b/docs/BaseResponseBinarySearchResponse.md deleted file mode 100644 index 00254bfd..00000000 --- a/docs/BaseResponseBinarySearchResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseBinarySearchResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**BinarySearchResponse**](BinarySearchResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_binary_search_response import BaseResponseBinarySearchResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseBinarySearchResponse from a JSON string -base_response_binary_search_response_instance = BaseResponseBinarySearchResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseBinarySearchResponse.to_json()) - -# convert the object into a dict -base_response_binary_search_response_dict = base_response_binary_search_response_instance.to_dict() -# create an instance of BaseResponseBinarySearchResponse from a dict -base_response_binary_search_response_from_dict = BaseResponseBinarySearchResponse.from_dict(base_response_binary_search_response_dict) -``` -[[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/BaseResponseBool.md b/docs/BaseResponseBool.md deleted file mode 100644 index b81b2d97..00000000 --- a/docs/BaseResponseBool.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseBool - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | **bool** | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_bool import BaseResponseBool - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseBool from a JSON string -base_response_bool_instance = BaseResponseBool.from_json(json) -# print the JSON string representation of the object -print(BaseResponseBool.to_json()) - -# convert the object into a dict -base_response_bool_dict = base_response_bool_instance.to_dict() -# create an instance of BaseResponseBool from a dict -base_response_bool_from_dict = BaseResponseBool.from_dict(base_response_bool_dict) -``` -[[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/BaseResponseCalleesCallerFunctionsResponse.md b/docs/BaseResponseCalleesCallerFunctionsResponse.md deleted file mode 100644 index 4edde2ab..00000000 --- a/docs/BaseResponseCalleesCallerFunctionsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseCalleesCallerFunctionsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**CalleesCallerFunctionsResponse**](CalleesCallerFunctionsResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseCalleesCallerFunctionsResponse from a JSON string -base_response_callees_caller_functions_response_instance = BaseResponseCalleesCallerFunctionsResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseCalleesCallerFunctionsResponse.to_json()) - -# convert the object into a dict -base_response_callees_caller_functions_response_dict = base_response_callees_caller_functions_response_instance.to_dict() -# create an instance of BaseResponseCalleesCallerFunctionsResponse from a dict -base_response_callees_caller_functions_response_from_dict = BaseResponseCalleesCallerFunctionsResponse.from_dict(base_response_callees_caller_functions_response_dict) -``` -[[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/BaseResponseCapabilities.md b/docs/BaseResponseCapabilities.md deleted file mode 100644 index 2009b57e..00000000 --- a/docs/BaseResponseCapabilities.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseCapabilities - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**Capabilities**](Capabilities.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_capabilities import BaseResponseCapabilities - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseCapabilities from a JSON string -base_response_capabilities_instance = BaseResponseCapabilities.from_json(json) -# print the JSON string representation of the object -print(BaseResponseCapabilities.to_json()) - -# convert the object into a dict -base_response_capabilities_dict = base_response_capabilities_instance.to_dict() -# create an instance of BaseResponseCapabilities from a dict -base_response_capabilities_from_dict = BaseResponseCapabilities.from_dict(base_response_capabilities_dict) -``` -[[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/BaseResponseCapabilitiesAgentResponse.md b/docs/BaseResponseCapabilitiesAgentResponse.md deleted file mode 100644 index 153b0db4..00000000 --- a/docs/BaseResponseCapabilitiesAgentResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseCapabilitiesAgentResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**CapabilitiesAgentResponse**](CapabilitiesAgentResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_capabilities_agent_response import BaseResponseCapabilitiesAgentResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseCapabilitiesAgentResponse from a JSON string -base_response_capabilities_agent_response_instance = BaseResponseCapabilitiesAgentResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseCapabilitiesAgentResponse.to_json()) - -# convert the object into a dict -base_response_capabilities_agent_response_dict = base_response_capabilities_agent_response_instance.to_dict() -# create an instance of BaseResponseCapabilitiesAgentResponse from a dict -base_response_capabilities_agent_response_from_dict = BaseResponseCapabilitiesAgentResponse.from_dict(base_response_capabilities_agent_response_dict) -``` -[[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/BaseResponseChildBinariesResponse.md b/docs/BaseResponseChildBinariesResponse.md deleted file mode 100644 index 02b5207b..00000000 --- a/docs/BaseResponseChildBinariesResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseChildBinariesResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**ChildBinariesResponse**](ChildBinariesResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_child_binaries_response import BaseResponseChildBinariesResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseChildBinariesResponse from a JSON string -base_response_child_binaries_response_instance = BaseResponseChildBinariesResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseChildBinariesResponse.to_json()) - -# convert the object into a dict -base_response_child_binaries_response_dict = base_response_child_binaries_response_instance.to_dict() -# create an instance of BaseResponseChildBinariesResponse from a dict -base_response_child_binaries_response_from_dict = BaseResponseChildBinariesResponse.from_dict(base_response_child_binaries_response_dict) -``` -[[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/BaseResponseCollectionBinariesUpdateResponse.md b/docs/BaseResponseCollectionBinariesUpdateResponse.md deleted file mode 100644 index 2244ac30..00000000 --- a/docs/BaseResponseCollectionBinariesUpdateResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseCollectionBinariesUpdateResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**CollectionBinariesUpdateResponse**](CollectionBinariesUpdateResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_collection_binaries_update_response import BaseResponseCollectionBinariesUpdateResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseCollectionBinariesUpdateResponse from a JSON string -base_response_collection_binaries_update_response_instance = BaseResponseCollectionBinariesUpdateResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseCollectionBinariesUpdateResponse.to_json()) - -# convert the object into a dict -base_response_collection_binaries_update_response_dict = base_response_collection_binaries_update_response_instance.to_dict() -# create an instance of BaseResponseCollectionBinariesUpdateResponse from a dict -base_response_collection_binaries_update_response_from_dict = BaseResponseCollectionBinariesUpdateResponse.from_dict(base_response_collection_binaries_update_response_dict) -``` -[[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/BaseResponseCollectionResponse.md b/docs/BaseResponseCollectionResponse.md deleted file mode 100644 index 9a243db0..00000000 --- a/docs/BaseResponseCollectionResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseCollectionResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**CollectionResponse**](CollectionResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_collection_response import BaseResponseCollectionResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseCollectionResponse from a JSON string -base_response_collection_response_instance = BaseResponseCollectionResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseCollectionResponse.to_json()) - -# convert the object into a dict -base_response_collection_response_dict = base_response_collection_response_instance.to_dict() -# create an instance of BaseResponseCollectionResponse from a dict -base_response_collection_response_from_dict = BaseResponseCollectionResponse.from_dict(base_response_collection_response_dict) -``` -[[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/BaseResponseCollectionSearchResponse.md b/docs/BaseResponseCollectionSearchResponse.md deleted file mode 100644 index c3d501b3..00000000 --- a/docs/BaseResponseCollectionSearchResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseCollectionSearchResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**CollectionSearchResponse**](CollectionSearchResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_collection_search_response import BaseResponseCollectionSearchResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseCollectionSearchResponse from a JSON string -base_response_collection_search_response_instance = BaseResponseCollectionSearchResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseCollectionSearchResponse.to_json()) - -# convert the object into a dict -base_response_collection_search_response_dict = base_response_collection_search_response_instance.to_dict() -# create an instance of BaseResponseCollectionSearchResponse from a dict -base_response_collection_search_response_from_dict = BaseResponseCollectionSearchResponse.from_dict(base_response_collection_search_response_dict) -``` -[[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/BaseResponseCollectionTagsUpdateResponse.md b/docs/BaseResponseCollectionTagsUpdateResponse.md deleted file mode 100644 index deff6afe..00000000 --- a/docs/BaseResponseCollectionTagsUpdateResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseCollectionTagsUpdateResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**CollectionTagsUpdateResponse**](CollectionTagsUpdateResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_collection_tags_update_response import BaseResponseCollectionTagsUpdateResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseCollectionTagsUpdateResponse from a JSON string -base_response_collection_tags_update_response_instance = BaseResponseCollectionTagsUpdateResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseCollectionTagsUpdateResponse.to_json()) - -# convert the object into a dict -base_response_collection_tags_update_response_dict = base_response_collection_tags_update_response_instance.to_dict() -# create an instance of BaseResponseCollectionTagsUpdateResponse from a dict -base_response_collection_tags_update_response_from_dict = BaseResponseCollectionTagsUpdateResponse.from_dict(base_response_collection_tags_update_response_dict) -``` -[[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/BaseResponseCommentResponse.md b/docs/BaseResponseCommentResponse.md deleted file mode 100644 index 03e1958a..00000000 --- a/docs/BaseResponseCommentResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseCommentResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**CommentResponse**](CommentResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_comment_response import BaseResponseCommentResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseCommentResponse from a JSON string -base_response_comment_response_instance = BaseResponseCommentResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseCommentResponse.to_json()) - -# convert the object into a dict -base_response_comment_response_dict = base_response_comment_response_instance.to_dict() -# create an instance of BaseResponseCommentResponse from a dict -base_response_comment_response_from_dict = BaseResponseCommentResponse.from_dict(base_response_comment_response_dict) -``` -[[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/BaseResponseConfigResponse.md b/docs/BaseResponseConfigResponse.md deleted file mode 100644 index de1aeb80..00000000 --- a/docs/BaseResponseConfigResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseConfigResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**ConfigResponse**](ConfigResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_config_response import BaseResponseConfigResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseConfigResponse from a JSON string -base_response_config_response_instance = BaseResponseConfigResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseConfigResponse.to_json()) - -# convert the object into a dict -base_response_config_response_dict = base_response_config_response_instance.to_dict() -# create an instance of BaseResponseConfigResponse from a dict -base_response_config_response_from_dict = BaseResponseConfigResponse.from_dict(base_response_config_response_dict) -``` -[[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/BaseResponseCreated.md b/docs/BaseResponseCreated.md deleted file mode 100644 index f6f19eb7..00000000 --- a/docs/BaseResponseCreated.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseCreated - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**Created**](Created.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_created import BaseResponseCreated - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseCreated from a JSON string -base_response_created_instance = BaseResponseCreated.from_json(json) -# print the JSON string representation of the object -print(BaseResponseCreated.to_json()) - -# convert the object into a dict -base_response_created_dict = base_response_created_instance.to_dict() -# create an instance of BaseResponseCreated from a dict -base_response_created_from_dict = BaseResponseCreated.from_dict(base_response_created_dict) -``` -[[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/BaseResponseDict.md b/docs/BaseResponseDict.md deleted file mode 100644 index a81c6dea..00000000 --- a/docs/BaseResponseDict.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseDict - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | **Dict[str, object]** | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_dict import BaseResponseDict - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseDict from a JSON string -base_response_dict_instance = BaseResponseDict.from_json(json) -# print the JSON string representation of the object -print(BaseResponseDict.to_json()) - -# convert the object into a dict -base_response_dict_dict = base_response_dict_instance.to_dict() -# create an instance of BaseResponseDict from a dict -base_response_dict_from_dict = BaseResponseDict.from_dict(base_response_dict_dict) -``` -[[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/BaseResponseExternalResponse.md b/docs/BaseResponseExternalResponse.md deleted file mode 100644 index 0e99a0c9..00000000 --- a/docs/BaseResponseExternalResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseExternalResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**ExternalResponse**](ExternalResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_external_response import BaseResponseExternalResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseExternalResponse from a JSON string -base_response_external_response_instance = BaseResponseExternalResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseExternalResponse.to_json()) - -# convert the object into a dict -base_response_external_response_dict = base_response_external_response_instance.to_dict() -# create an instance of BaseResponseExternalResponse from a dict -base_response_external_response_from_dict = BaseResponseExternalResponse.from_dict(base_response_external_response_dict) -``` -[[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/BaseResponseFunctionBlocksResponse.md b/docs/BaseResponseFunctionBlocksResponse.md deleted file mode 100644 index 44bae60e..00000000 --- a/docs/BaseResponseFunctionBlocksResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseFunctionBlocksResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**FunctionBlocksResponse**](FunctionBlocksResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_function_blocks_response import BaseResponseFunctionBlocksResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseFunctionBlocksResponse from a JSON string -base_response_function_blocks_response_instance = BaseResponseFunctionBlocksResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseFunctionBlocksResponse.to_json()) - -# convert the object into a dict -base_response_function_blocks_response_dict = base_response_function_blocks_response_instance.to_dict() -# create an instance of BaseResponseFunctionBlocksResponse from a dict -base_response_function_blocks_response_from_dict = BaseResponseFunctionBlocksResponse.from_dict(base_response_function_blocks_response_dict) -``` -[[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/BaseResponseFunctionCapabilityResponse.md b/docs/BaseResponseFunctionCapabilityResponse.md deleted file mode 100644 index fce8ac0f..00000000 --- a/docs/BaseResponseFunctionCapabilityResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseFunctionCapabilityResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**FunctionCapabilityResponse**](FunctionCapabilityResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_function_capability_response import BaseResponseFunctionCapabilityResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseFunctionCapabilityResponse from a JSON string -base_response_function_capability_response_instance = BaseResponseFunctionCapabilityResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseFunctionCapabilityResponse.to_json()) - -# convert the object into a dict -base_response_function_capability_response_dict = base_response_function_capability_response_instance.to_dict() -# create an instance of BaseResponseFunctionCapabilityResponse from a dict -base_response_function_capability_response_from_dict = BaseResponseFunctionCapabilityResponse.from_dict(base_response_function_capability_response_dict) -``` -[[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/BaseResponseFunctionDataTypes.md b/docs/BaseResponseFunctionDataTypes.md deleted file mode 100644 index f0bc91ed..00000000 --- a/docs/BaseResponseFunctionDataTypes.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseFunctionDataTypes - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**FunctionDataTypes**](FunctionDataTypes.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_function_data_types import BaseResponseFunctionDataTypes - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseFunctionDataTypes from a JSON string -base_response_function_data_types_instance = BaseResponseFunctionDataTypes.from_json(json) -# print the JSON string representation of the object -print(BaseResponseFunctionDataTypes.to_json()) - -# convert the object into a dict -base_response_function_data_types_dict = base_response_function_data_types_instance.to_dict() -# create an instance of BaseResponseFunctionDataTypes from a dict -base_response_function_data_types_from_dict = BaseResponseFunctionDataTypes.from_dict(base_response_function_data_types_dict) -``` -[[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/BaseResponseFunctionDataTypesList.md b/docs/BaseResponseFunctionDataTypesList.md deleted file mode 100644 index b3991403..00000000 --- a/docs/BaseResponseFunctionDataTypesList.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseFunctionDataTypesList - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**FunctionDataTypesList**](FunctionDataTypesList.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_function_data_types_list import BaseResponseFunctionDataTypesList - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseFunctionDataTypesList from a JSON string -base_response_function_data_types_list_instance = BaseResponseFunctionDataTypesList.from_json(json) -# print the JSON string representation of the object -print(BaseResponseFunctionDataTypesList.to_json()) - -# convert the object into a dict -base_response_function_data_types_list_dict = base_response_function_data_types_list_instance.to_dict() -# create an instance of BaseResponseFunctionDataTypesList from a dict -base_response_function_data_types_list_from_dict = BaseResponseFunctionDataTypesList.from_dict(base_response_function_data_types_list_dict) -``` -[[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/BaseResponseFunctionSearchResponse.md b/docs/BaseResponseFunctionSearchResponse.md deleted file mode 100644 index c868a83f..00000000 --- a/docs/BaseResponseFunctionSearchResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseFunctionSearchResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**FunctionSearchResponse**](FunctionSearchResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_function_search_response import BaseResponseFunctionSearchResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseFunctionSearchResponse from a JSON string -base_response_function_search_response_instance = BaseResponseFunctionSearchResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseFunctionSearchResponse.to_json()) - -# convert the object into a dict -base_response_function_search_response_dict = base_response_function_search_response_instance.to_dict() -# create an instance of BaseResponseFunctionSearchResponse from a dict -base_response_function_search_response_from_dict = BaseResponseFunctionSearchResponse.from_dict(base_response_function_search_response_dict) -``` -[[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/BaseResponseFunctionStringsResponse.md b/docs/BaseResponseFunctionStringsResponse.md deleted file mode 100644 index c1ef50b7..00000000 --- a/docs/BaseResponseFunctionStringsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseFunctionStringsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**FunctionStringsResponse**](FunctionStringsResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseFunctionStringsResponse from a JSON string -base_response_function_strings_response_instance = BaseResponseFunctionStringsResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseFunctionStringsResponse.to_json()) - -# convert the object into a dict -base_response_function_strings_response_dict = base_response_function_strings_response_instance.to_dict() -# create an instance of BaseResponseFunctionStringsResponse from a dict -base_response_function_strings_response_from_dict = BaseResponseFunctionStringsResponse.from_dict(base_response_function_strings_response_dict) -``` -[[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/BaseResponseFunctionsDetailResponse.md b/docs/BaseResponseFunctionsDetailResponse.md deleted file mode 100644 index cdfae9a6..00000000 --- a/docs/BaseResponseFunctionsDetailResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseFunctionsDetailResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**FunctionsDetailResponse**](FunctionsDetailResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseFunctionsDetailResponse from a JSON string -base_response_functions_detail_response_instance = BaseResponseFunctionsDetailResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseFunctionsDetailResponse.to_json()) - -# convert the object into a dict -base_response_functions_detail_response_dict = base_response_functions_detail_response_instance.to_dict() -# create an instance of BaseResponseFunctionsDetailResponse from a dict -base_response_functions_detail_response_from_dict = BaseResponseFunctionsDetailResponse.from_dict(base_response_functions_detail_response_dict) -``` -[[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/BaseResponseGenerateFunctionDataTypes.md b/docs/BaseResponseGenerateFunctionDataTypes.md deleted file mode 100644 index 2d74b8e1..00000000 --- a/docs/BaseResponseGenerateFunctionDataTypes.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseGenerateFunctionDataTypes - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**GenerateFunctionDataTypes**](GenerateFunctionDataTypes.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_generate_function_data_types import BaseResponseGenerateFunctionDataTypes - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseGenerateFunctionDataTypes from a JSON string -base_response_generate_function_data_types_instance = BaseResponseGenerateFunctionDataTypes.from_json(json) -# print the JSON string representation of the object -print(BaseResponseGenerateFunctionDataTypes.to_json()) - -# convert the object into a dict -base_response_generate_function_data_types_dict = base_response_generate_function_data_types_instance.to_dict() -# create an instance of BaseResponseGenerateFunctionDataTypes from a dict -base_response_generate_function_data_types_from_dict = BaseResponseGenerateFunctionDataTypes.from_dict(base_response_generate_function_data_types_dict) -``` -[[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/BaseResponseGenerationStatusList.md b/docs/BaseResponseGenerationStatusList.md deleted file mode 100644 index d2e7600a..00000000 --- a/docs/BaseResponseGenerationStatusList.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseGenerationStatusList - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**GenerationStatusList**](GenerationStatusList.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_generation_status_list import BaseResponseGenerationStatusList - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseGenerationStatusList from a JSON string -base_response_generation_status_list_instance = BaseResponseGenerationStatusList.from_json(json) -# print the JSON string representation of the object -print(BaseResponseGenerationStatusList.to_json()) - -# convert the object into a dict -base_response_generation_status_list_dict = base_response_generation_status_list_instance.to_dict() -# create an instance of BaseResponseGenerationStatusList from a dict -base_response_generation_status_list_from_dict = BaseResponseGenerationStatusList.from_dict(base_response_generation_status_list_dict) -``` -[[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/BaseResponseGetPublicUserResponse.md b/docs/BaseResponseGetPublicUserResponse.md deleted file mode 100644 index 9eb38080..00000000 --- a/docs/BaseResponseGetPublicUserResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseGetPublicUserResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**GetPublicUserResponse**](GetPublicUserResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseGetPublicUserResponse from a JSON string -base_response_get_public_user_response_instance = BaseResponseGetPublicUserResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseGetPublicUserResponse.to_json()) - -# convert the object into a dict -base_response_get_public_user_response_dict = base_response_get_public_user_response_instance.to_dict() -# create an instance of BaseResponseGetPublicUserResponse from a dict -base_response_get_public_user_response_from_dict = BaseResponseGetPublicUserResponse.from_dict(base_response_get_public_user_response_dict) -``` -[[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/BaseResponseListCalleesCallerFunctionsResponse.md b/docs/BaseResponseListCalleesCallerFunctionsResponse.md deleted file mode 100644 index 8efc2eee..00000000 --- a/docs/BaseResponseListCalleesCallerFunctionsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseListCalleesCallerFunctionsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**List[CalleesCallerFunctionsResponse]**](CalleesCallerFunctionsResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_list_callees_caller_functions_response import BaseResponseListCalleesCallerFunctionsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseListCalleesCallerFunctionsResponse from a JSON string -base_response_list_callees_caller_functions_response_instance = BaseResponseListCalleesCallerFunctionsResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseListCalleesCallerFunctionsResponse.to_json()) - -# convert the object into a dict -base_response_list_callees_caller_functions_response_dict = base_response_list_callees_caller_functions_response_instance.to_dict() -# create an instance of BaseResponseListCalleesCallerFunctionsResponse from a dict -base_response_list_callees_caller_functions_response_from_dict = BaseResponseListCalleesCallerFunctionsResponse.from_dict(base_response_list_callees_caller_functions_response_dict) -``` -[[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/BaseResponseListCollectionResults.md b/docs/BaseResponseListCollectionResults.md deleted file mode 100644 index ede746f3..00000000 --- a/docs/BaseResponseListCollectionResults.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseListCollectionResults - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**ListCollectionResults**](ListCollectionResults.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_list_collection_results import BaseResponseListCollectionResults - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseListCollectionResults from a JSON string -base_response_list_collection_results_instance = BaseResponseListCollectionResults.from_json(json) -# print the JSON string representation of the object -print(BaseResponseListCollectionResults.to_json()) - -# convert the object into a dict -base_response_list_collection_results_dict = base_response_list_collection_results_instance.to_dict() -# create an instance of BaseResponseListCollectionResults from a dict -base_response_list_collection_results_from_dict = BaseResponseListCollectionResults.from_dict(base_response_list_collection_results_dict) -``` -[[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/BaseResponseListCommentResponse.md b/docs/BaseResponseListCommentResponse.md deleted file mode 100644 index da2e08b3..00000000 --- a/docs/BaseResponseListCommentResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseListCommentResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**List[CommentResponse]**](CommentResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseListCommentResponse from a JSON string -base_response_list_comment_response_instance = BaseResponseListCommentResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseListCommentResponse.to_json()) - -# convert the object into a dict -base_response_list_comment_response_dict = base_response_list_comment_response_instance.to_dict() -# create an instance of BaseResponseListCommentResponse from a dict -base_response_list_comment_response_from_dict = BaseResponseListCommentResponse.from_dict(base_response_list_comment_response_dict) -``` -[[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/BaseResponseListDieMatch.md b/docs/BaseResponseListDieMatch.md deleted file mode 100644 index 134de33e..00000000 --- a/docs/BaseResponseListDieMatch.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseListDieMatch - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**List[DieMatch]**](DieMatch.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_list_die_match import BaseResponseListDieMatch - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseListDieMatch from a JSON string -base_response_list_die_match_instance = BaseResponseListDieMatch.from_json(json) -# print the JSON string representation of the object -print(BaseResponseListDieMatch.to_json()) - -# convert the object into a dict -base_response_list_die_match_dict = base_response_list_die_match_instance.to_dict() -# create an instance of BaseResponseListDieMatch from a dict -base_response_list_die_match_from_dict = BaseResponseListDieMatch.from_dict(base_response_list_die_match_dict) -``` -[[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/BaseResponseListFunctionNameHistory.md b/docs/BaseResponseListFunctionNameHistory.md deleted file mode 100644 index e79ba2c7..00000000 --- a/docs/BaseResponseListFunctionNameHistory.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseListFunctionNameHistory - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**List[FunctionNameHistory]**](FunctionNameHistory.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_list_function_name_history import BaseResponseListFunctionNameHistory - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseListFunctionNameHistory from a JSON string -base_response_list_function_name_history_instance = BaseResponseListFunctionNameHistory.from_json(json) -# print the JSON string representation of the object -print(BaseResponseListFunctionNameHistory.to_json()) - -# convert the object into a dict -base_response_list_function_name_history_dict = base_response_list_function_name_history_instance.to_dict() -# create an instance of BaseResponseListFunctionNameHistory from a dict -base_response_list_function_name_history_from_dict = BaseResponseListFunctionNameHistory.from_dict(base_response_list_function_name_history_dict) -``` -[[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/BaseResponseListSBOM.md b/docs/BaseResponseListSBOM.md deleted file mode 100644 index d210c5e2..00000000 --- a/docs/BaseResponseListSBOM.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseListSBOM - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**List[SBOM]**](SBOM.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_list_sbom import BaseResponseListSBOM - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseListSBOM from a JSON string -base_response_list_sbom_instance = BaseResponseListSBOM.from_json(json) -# print the JSON string representation of the object -print(BaseResponseListSBOM.to_json()) - -# convert the object into a dict -base_response_list_sbom_dict = base_response_list_sbom_instance.to_dict() -# create an instance of BaseResponseListSBOM from a dict -base_response_list_sbom_from_dict = BaseResponseListSBOM.from_dict(base_response_list_sbom_dict) -``` -[[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/BaseResponseListUserActivityResponse.md b/docs/BaseResponseListUserActivityResponse.md deleted file mode 100644 index a2846d25..00000000 --- a/docs/BaseResponseListUserActivityResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseListUserActivityResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**List[UserActivityResponse]**](UserActivityResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseListUserActivityResponse from a JSON string -base_response_list_user_activity_response_instance = BaseResponseListUserActivityResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseListUserActivityResponse.to_json()) - -# convert the object into a dict -base_response_list_user_activity_response_dict = base_response_list_user_activity_response_instance.to_dict() -# create an instance of BaseResponseListUserActivityResponse from a dict -base_response_list_user_activity_response_from_dict = BaseResponseListUserActivityResponse.from_dict(base_response_list_user_activity_response_dict) -``` -[[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/BaseResponseLogs.md b/docs/BaseResponseLogs.md deleted file mode 100644 index 608297d9..00000000 --- a/docs/BaseResponseLogs.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseLogs - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**Logs**](Logs.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_logs import BaseResponseLogs - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseLogs from a JSON string -base_response_logs_instance = BaseResponseLogs.from_json(json) -# print the JSON string representation of the object -print(BaseResponseLogs.to_json()) - -# convert the object into a dict -base_response_logs_dict = base_response_logs_instance.to_dict() -# create an instance of BaseResponseLogs from a dict -base_response_logs_from_dict = BaseResponseLogs.from_dict(base_response_logs_dict) -``` -[[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/BaseResponseModelsResponse.md b/docs/BaseResponseModelsResponse.md deleted file mode 100644 index 8d8a035e..00000000 --- a/docs/BaseResponseModelsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseModelsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**ModelsResponse**](ModelsResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_models_response import BaseResponseModelsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseModelsResponse from a JSON string -base_response_models_response_instance = BaseResponseModelsResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseModelsResponse.to_json()) - -# convert the object into a dict -base_response_models_response_dict = base_response_models_response_instance.to_dict() -# create an instance of BaseResponseModelsResponse from a dict -base_response_models_response_from_dict = BaseResponseModelsResponse.from_dict(base_response_models_response_dict) -``` -[[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/BaseResponseParams.md b/docs/BaseResponseParams.md deleted file mode 100644 index 9cc7db9d..00000000 --- a/docs/BaseResponseParams.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseParams - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**Params**](Params.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_params import BaseResponseParams - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseParams from a JSON string -base_response_params_instance = BaseResponseParams.from_json(json) -# print the JSON string representation of the object -print(BaseResponseParams.to_json()) - -# convert the object into a dict -base_response_params_dict = base_response_params_instance.to_dict() -# create an instance of BaseResponseParams from a dict -base_response_params_from_dict = BaseResponseParams.from_dict(base_response_params_dict) -``` -[[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/BaseResponseQueuedWorkflowTaskResponse.md b/docs/BaseResponseQueuedWorkflowTaskResponse.md deleted file mode 100644 index 51049f01..00000000 --- a/docs/BaseResponseQueuedWorkflowTaskResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseQueuedWorkflowTaskResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**QueuedWorkflowTaskResponse**](QueuedWorkflowTaskResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_queued_workflow_task_response import BaseResponseQueuedWorkflowTaskResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseQueuedWorkflowTaskResponse from a JSON string -base_response_queued_workflow_task_response_instance = BaseResponseQueuedWorkflowTaskResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseQueuedWorkflowTaskResponse.to_json()) - -# convert the object into a dict -base_response_queued_workflow_task_response_dict = base_response_queued_workflow_task_response_instance.to_dict() -# create an instance of BaseResponseQueuedWorkflowTaskResponse from a dict -base_response_queued_workflow_task_response_from_dict = BaseResponseQueuedWorkflowTaskResponse.from_dict(base_response_queued_workflow_task_response_dict) -``` -[[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/BaseResponseRecent.md b/docs/BaseResponseRecent.md deleted file mode 100644 index 8d0fb0e2..00000000 --- a/docs/BaseResponseRecent.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseRecent - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**Recent**](Recent.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_recent import BaseResponseRecent - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseRecent from a JSON string -base_response_recent_instance = BaseResponseRecent.from_json(json) -# print the JSON string representation of the object -print(BaseResponseRecent.to_json()) - -# convert the object into a dict -base_response_recent_dict = base_response_recent_instance.to_dict() -# create an instance of BaseResponseRecent from a dict -base_response_recent_from_dict = BaseResponseRecent.from_dict(base_response_recent_dict) -``` -[[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/BaseResponseReportAnalysisResponse.md b/docs/BaseResponseReportAnalysisResponse.md deleted file mode 100644 index f5dd6b35..00000000 --- a/docs/BaseResponseReportAnalysisResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseReportAnalysisResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**ReportAnalysisResponse**](ReportAnalysisResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_report_analysis_response import BaseResponseReportAnalysisResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseReportAnalysisResponse from a JSON string -base_response_report_analysis_response_instance = BaseResponseReportAnalysisResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseReportAnalysisResponse.to_json()) - -# convert the object into a dict -base_response_report_analysis_response_dict = base_response_report_analysis_response_instance.to_dict() -# create an instance of BaseResponseReportAnalysisResponse from a dict -base_response_report_analysis_response_from_dict = BaseResponseReportAnalysisResponse.from_dict(base_response_report_analysis_response_dict) -``` -[[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/BaseResponseStatus.md b/docs/BaseResponseStatus.md deleted file mode 100644 index e1bc7940..00000000 --- a/docs/BaseResponseStatus.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseStatus - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**StatusOutput**](StatusOutput.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_status import BaseResponseStatus - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseStatus from a JSON string -base_response_status_instance = BaseResponseStatus.from_json(json) -# print the JSON string representation of the object -print(BaseResponseStatus.to_json()) - -# convert the object into a dict -base_response_status_dict = base_response_status_instance.to_dict() -# create an instance of BaseResponseStatus from a dict -base_response_status_from_dict = BaseResponseStatus.from_dict(base_response_status_dict) -``` -[[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/BaseResponseStr.md b/docs/BaseResponseStr.md deleted file mode 100644 index 746258b5..00000000 --- a/docs/BaseResponseStr.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseStr - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | **str** | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_str import BaseResponseStr - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseStr from a JSON string -base_response_str_instance = BaseResponseStr.from_json(json) -# print the JSON string representation of the object -print(BaseResponseStr.to_json()) - -# convert the object into a dict -base_response_str_dict = base_response_str_instance.to_dict() -# create an instance of BaseResponseStr from a dict -base_response_str_from_dict = BaseResponseStr.from_dict(base_response_str_dict) -``` -[[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/BaseResponseTagSearchResponse.md b/docs/BaseResponseTagSearchResponse.md deleted file mode 100644 index e93abbe4..00000000 --- a/docs/BaseResponseTagSearchResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseTagSearchResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**TagSearchResponse**](TagSearchResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseTagSearchResponse from a JSON string -base_response_tag_search_response_instance = BaseResponseTagSearchResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseTagSearchResponse.to_json()) - -# convert the object into a dict -base_response_tag_search_response_dict = base_response_tag_search_response_instance.to_dict() -# create an instance of BaseResponseTagSearchResponse from a dict -base_response_tag_search_response_from_dict = BaseResponseTagSearchResponse.from_dict(base_response_tag_search_response_dict) -``` -[[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/BaseResponseTaskResponse.md b/docs/BaseResponseTaskResponse.md deleted file mode 100644 index 471dabc9..00000000 --- a/docs/BaseResponseTaskResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseTaskResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**TaskResponse**](TaskResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_task_response import BaseResponseTaskResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseTaskResponse from a JSON string -base_response_task_response_instance = BaseResponseTaskResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseTaskResponse.to_json()) - -# convert the object into a dict -base_response_task_response_dict = base_response_task_response_instance.to_dict() -# create an instance of BaseResponseTaskResponse from a dict -base_response_task_response_from_dict = BaseResponseTaskResponse.from_dict(base_response_task_response_dict) -``` -[[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/BaseResponseTaskStatusResponse.md b/docs/BaseResponseTaskStatusResponse.md deleted file mode 100644 index 9265c9e0..00000000 --- a/docs/BaseResponseTaskStatusResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseTaskStatusResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**TaskStatusResponse**](TaskStatusResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_task_status_response import BaseResponseTaskStatusResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseTaskStatusResponse from a JSON string -base_response_task_status_response_instance = BaseResponseTaskStatusResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseTaskStatusResponse.to_json()) - -# convert the object into a dict -base_response_task_status_response_dict = base_response_task_status_response_instance.to_dict() -# create an instance of BaseResponseTaskStatusResponse from a dict -base_response_task_status_response_from_dict = BaseResponseTaskStatusResponse.from_dict(base_response_task_status_response_dict) -``` -[[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/BaseResponseTriageReportResponse.md b/docs/BaseResponseTriageReportResponse.md deleted file mode 100644 index 903a2e7d..00000000 --- a/docs/BaseResponseTriageReportResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseTriageReportResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**TriageReportResponse**](TriageReportResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_triage_report_response import BaseResponseTriageReportResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseTriageReportResponse from a JSON string -base_response_triage_report_response_instance = BaseResponseTriageReportResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseTriageReportResponse.to_json()) - -# convert the object into a dict -base_response_triage_report_response_dict = base_response_triage_report_response_instance.to_dict() -# create an instance of BaseResponseTriageReportResponse from a dict -base_response_triage_report_response_from_dict = BaseResponseTriageReportResponse.from_dict(base_response_triage_report_response_dict) -``` -[[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/BaseResponseUnionGetAiDecompilationRatingResponseNoneType.md b/docs/BaseResponseUnionGetAiDecompilationRatingResponseNoneType.md deleted file mode 100644 index a58ee33f..00000000 --- a/docs/BaseResponseUnionGetAiDecompilationRatingResponseNoneType.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseUnionGetAiDecompilationRatingResponseNoneType - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**GetAiDecompilationRatingResponse**](GetAiDecompilationRatingResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_union_get_ai_decompilation_rating_response_none_type import BaseResponseUnionGetAiDecompilationRatingResponseNoneType - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseUnionGetAiDecompilationRatingResponseNoneType from a JSON string -base_response_union_get_ai_decompilation_rating_response_none_type_instance = BaseResponseUnionGetAiDecompilationRatingResponseNoneType.from_json(json) -# print the JSON string representation of the object -print(BaseResponseUnionGetAiDecompilationRatingResponseNoneType.to_json()) - -# convert the object into a dict -base_response_union_get_ai_decompilation_rating_response_none_type_dict = base_response_union_get_ai_decompilation_rating_response_none_type_instance.to_dict() -# create an instance of BaseResponseUnionGetAiDecompilationRatingResponseNoneType from a dict -base_response_union_get_ai_decompilation_rating_response_none_type_from_dict = BaseResponseUnionGetAiDecompilationRatingResponseNoneType.from_dict(base_response_union_get_ai_decompilation_rating_response_none_type_dict) -``` -[[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/BaseResponseUploadResponse.md b/docs/BaseResponseUploadResponse.md deleted file mode 100644 index 1c534760..00000000 --- a/docs/BaseResponseUploadResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseUploadResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**UploadResponse**](UploadResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_upload_response import BaseResponseUploadResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseUploadResponse from a JSON string -base_response_upload_response_instance = BaseResponseUploadResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseUploadResponse.to_json()) - -# convert the object into a dict -base_response_upload_response_dict = base_response_upload_response_instance.to_dict() -# create an instance of BaseResponseUploadResponse from a dict -base_response_upload_response_from_dict = BaseResponseUploadResponse.from_dict(base_response_upload_response_dict) -``` -[[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/BaseResponseVulnerabilities.md b/docs/BaseResponseVulnerabilities.md deleted file mode 100644 index 2461c0c3..00000000 --- a/docs/BaseResponseVulnerabilities.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseVulnerabilities - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**Vulnerabilities**](Vulnerabilities.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseVulnerabilities from a JSON string -base_response_vulnerabilities_instance = BaseResponseVulnerabilities.from_json(json) -# print the JSON string representation of the object -print(BaseResponseVulnerabilities.to_json()) - -# convert the object into a dict -base_response_vulnerabilities_dict = base_response_vulnerabilities_instance.to_dict() -# create an instance of BaseResponseVulnerabilities from a dict -base_response_vulnerabilities_from_dict = BaseResponseVulnerabilities.from_dict(base_response_vulnerabilities_dict) -``` -[[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/BaseResponseXrefResponse.md b/docs/BaseResponseXrefResponse.md deleted file mode 100644 index 66fb9d48..00000000 --- a/docs/BaseResponseXrefResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseXrefResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**XrefResponse**](XrefResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_xref_response import BaseResponseXrefResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseXrefResponse from a JSON string -base_response_xref_response_instance = BaseResponseXrefResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseXrefResponse.to_json()) - -# convert the object into a dict -base_response_xref_response_dict = base_response_xref_response_instance.to_dict() -# create an instance of BaseResponseXrefResponse from a dict -base_response_xref_response_from_dict = BaseResponseXrefResponse.from_dict(base_response_xref_response_dict) -``` -[[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/Basic.md b/docs/Basic.md deleted file mode 100644 index 56bd0782..00000000 --- a/docs/Basic.md +++ /dev/null @@ -1,46 +0,0 @@ -# Basic - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**binary_id** | **int** | The ID of the binary | -**binary_name** | **str** | The name of the binary uploaded | -**binary_size** | **int** | The size of the binary uploaded (bytes) | -**creation** | **datetime** | When the binary was uploaded | -**sha_256_hash** | **str** | The hash of the binary uploaded | -**model_name** | **str** | The model name used for analysis | -**model_id** | **int** | The model ID used for analysis | -**owner_username** | **str** | The name of the owner of the binary | -**is_system** | **bool** | Whether the analysis is a system analysis | -**analysis_scope** | **str** | The scope of the analysis | -**is_owner** | **bool** | Whether the current user is the owner | -**debug** | **bool** | Whether the current analysis was analysed with debug symbols | -**function_count** | **int** | The number of functions in the binary | -**is_advanced** | **bool** | Whether the analysis was advanced | -**base_address** | **int** | | -**binary_uuid** | **str** | | [optional] -**sequencer_version** | **str** | | [optional] -**team_id** | **int** | The team ID of the analysis | - -## Example - -```python -from revengai.models.basic import Basic - -# TODO update the JSON string below -json = "{}" -# create an instance of Basic from a JSON string -basic_instance = Basic.from_json(json) -# print the JSON string representation of the object -print(Basic.to_json()) - -# convert the object into a dict -basic_dict = basic_instance.to_dict() -# create an instance of Basic from a dict -basic_from_dict = Basic.from_dict(basic_dict) -``` -[[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/BinariesApi.md b/docs/BinariesApi.md index 6db989c6..5940e2e7 100644 --- a/docs/BinariesApi.md +++ b/docs/BinariesApi.md @@ -4,187 +4,12 @@ All URIs are relative to *https://api.reveng.ai* Method | HTTP request | Description ------------- | ------------- | ------------- -[**download_zipped_binary**](BinariesApi.md#download_zipped_binary) | **GET** /v2/binaries/{binary_id}/download-zipped | Downloads a zipped binary with password protection -[**get_binary_additional_details**](BinariesApi.md#get_binary_additional_details) | **GET** /v2/binaries/{binary_id}/additional-details | Gets the additional details of a binary -[**get_binary_additional_details_0**](BinariesApi.md#get_binary_additional_details_0) | **GET** /v3/binaries/{binary_id}/additional-details | Get additional details for a binary. -[**get_binary_additional_details_status**](BinariesApi.md#get_binary_additional_details_status) | **GET** /v2/binaries/{binary_id}/additional-details/status | Gets the status of the additional details task for a binary -[**get_binary_additional_details_status_0**](BinariesApi.md#get_binary_additional_details_status_0) | **GET** /v3/binaries/{binary_id}/additional-details/status | Get the additional-details extraction status for a binary. -[**get_binary_details**](BinariesApi.md#get_binary_details) | **GET** /v2/binaries/{binary_id}/details | Gets the details of a binary -[**get_binary_die_info**](BinariesApi.md#get_binary_die_info) | **GET** /v2/binaries/{binary_id}/die-info | Gets the die info of a binary -[**get_binary_externals**](BinariesApi.md#get_binary_externals) | **GET** /v2/binaries/{binary_id}/externals | Gets the external details of a binary -[**get_binary_related_status**](BinariesApi.md#get_binary_related_status) | **GET** /v2/binaries/{binary_id}/related/status | Gets the status of the unpack binary task for a binary -[**get_related_binaries**](BinariesApi.md#get_related_binaries) | **GET** /v2/binaries/{binary_id}/related | Gets the related binaries of a binary. +[**get_binary_additional_details**](BinariesApi.md#get_binary_additional_details) | **GET** /v3/binaries/{binary_id}/additional-details | Get additional details for a binary. +[**get_binary_additional_details_status**](BinariesApi.md#get_binary_additional_details_status) | **GET** /v3/binaries/{binary_id}/additional-details/status | Get the additional-details extraction status for a binary. -# **download_zipped_binary** -> bytearray download_zipped_binary(binary_id) - -Downloads a zipped binary with password protection - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.BinariesApi(api_client) - binary_id = 56 # int | - - try: - # Downloads a zipped binary with password protection - api_response = api_instance.download_zipped_binary(binary_id) - print("The response of BinariesApi->download_zipped_binary:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling BinariesApi->download_zipped_binary: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **binary_id** | **int**| | - -### Return type - -**bytearray** - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zip, application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Download file | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_binary_additional_details** -> BaseResponseBinaryAdditionalResponse get_binary_additional_details(binary_id) - -Gets the additional details of a binary - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_binary_additional_response import BaseResponseBinaryAdditionalResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.BinariesApi(api_client) - binary_id = 56 # int | - - try: - # Gets the additional details of a binary - api_response = api_instance.get_binary_additional_details(binary_id) - print("The response of BinariesApi->get_binary_additional_details:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling BinariesApi->get_binary_additional_details: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **binary_id** | **int**| | - -### Return type - -[**BaseResponseBinaryAdditionalResponse**](BaseResponseBinaryAdditionalResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_binary_additional_details_0** -> GetAdditionalDetailsOutputBody get_binary_additional_details_0(binary_id) +> GetAdditionalDetailsOutputBody get_binary_additional_details(binary_id) Get additional details for a binary. @@ -235,11 +60,11 @@ with revengai.ApiClient(configuration) as api_client: try: # Get additional details for a binary. - api_response = api_instance.get_binary_additional_details_0(binary_id) - print("The response of BinariesApi->get_binary_additional_details_0:\n") + api_response = api_instance.get_binary_additional_details(binary_id) + print("The response of BinariesApi->get_binary_additional_details:\n") pprint(api_response) except Exception as e: - print("Exception when calling BinariesApi->get_binary_additional_details_0: %s\n" % e) + print("Exception when calling BinariesApi->get_binary_additional_details: %s\n" % e) ``` @@ -277,91 +102,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_binary_additional_details_status** -> BaseResponseAdditionalDetailsStatusResponse get_binary_additional_details_status(binary_id) - -Gets the status of the additional details task for a binary - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_additional_details_status_response import BaseResponseAdditionalDetailsStatusResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.BinariesApi(api_client) - binary_id = 56 # int | - - try: - # Gets the status of the additional details task for a binary - api_response = api_instance.get_binary_additional_details_status(binary_id) - print("The response of BinariesApi->get_binary_additional_details_status:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling BinariesApi->get_binary_additional_details_status: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **binary_id** | **int**| | - -### Return type - -[**BaseResponseAdditionalDetailsStatusResponse**](BaseResponseAdditionalDetailsStatusResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_binary_additional_details_status_0** -> GetAdditionalDetailsStatusOutputBody get_binary_additional_details_status_0(binary_id) +> GetAdditionalDetailsStatusOutputBody get_binary_additional_details_status(binary_id) Get the additional-details extraction status for a binary. @@ -412,11 +153,11 @@ with revengai.ApiClient(configuration) as api_client: try: # Get the additional-details extraction status for a binary. - api_response = api_instance.get_binary_additional_details_status_0(binary_id) - print("The response of BinariesApi->get_binary_additional_details_status_0:\n") + api_response = api_instance.get_binary_additional_details_status(binary_id) + print("The response of BinariesApi->get_binary_additional_details_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling BinariesApi->get_binary_additional_details_status_0: %s\n" % e) + print("Exception when calling BinariesApi->get_binary_additional_details_status: %s\n" % e) ``` @@ -453,424 +194,3 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_binary_details** -> BaseResponseBinaryDetailsResponse get_binary_details(binary_id) - -Gets the details of a binary - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_binary_details_response import BaseResponseBinaryDetailsResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.BinariesApi(api_client) - binary_id = 56 # int | - - try: - # Gets the details of a binary - api_response = api_instance.get_binary_details(binary_id) - print("The response of BinariesApi->get_binary_details:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling BinariesApi->get_binary_details: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **binary_id** | **int**| | - -### Return type - -[**BaseResponseBinaryDetailsResponse**](BaseResponseBinaryDetailsResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_binary_die_info** -> BaseResponseListDieMatch get_binary_die_info(binary_id) - -Gets the die info of a binary - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_list_die_match import BaseResponseListDieMatch -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.BinariesApi(api_client) - binary_id = 56 # int | - - try: - # Gets the die info of a binary - api_response = api_instance.get_binary_die_info(binary_id) - print("The response of BinariesApi->get_binary_die_info:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling BinariesApi->get_binary_die_info: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **binary_id** | **int**| | - -### Return type - -[**BaseResponseListDieMatch**](BaseResponseListDieMatch.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_binary_externals** -> BaseResponseBinaryExternalsResponse get_binary_externals(binary_id) - -Gets the external details of a binary - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_binary_externals_response import BaseResponseBinaryExternalsResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.BinariesApi(api_client) - binary_id = 56 # int | - - try: - # Gets the external details of a binary - api_response = api_instance.get_binary_externals(binary_id) - print("The response of BinariesApi->get_binary_externals:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling BinariesApi->get_binary_externals: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **binary_id** | **int**| | - -### Return type - -[**BaseResponseBinaryExternalsResponse**](BaseResponseBinaryExternalsResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_binary_related_status** -> BaseResponseBinariesRelatedStatusResponse get_binary_related_status(binary_id) - -Gets the status of the unpack binary task for a binary - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_binaries_related_status_response import BaseResponseBinariesRelatedStatusResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.BinariesApi(api_client) - binary_id = 56 # int | - - try: - # Gets the status of the unpack binary task for a binary - api_response = api_instance.get_binary_related_status(binary_id) - print("The response of BinariesApi->get_binary_related_status:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling BinariesApi->get_binary_related_status: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **binary_id** | **int**| | - -### Return type - -[**BaseResponseBinariesRelatedStatusResponse**](BaseResponseBinariesRelatedStatusResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_related_binaries** -> BaseResponseChildBinariesResponse get_related_binaries(binary_id) - -Gets the related binaries of a binary. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_child_binaries_response import BaseResponseChildBinariesResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.BinariesApi(api_client) - binary_id = 56 # int | - - try: - # Gets the related binaries of a binary. - api_response = api_instance.get_related_binaries(binary_id) - print("The response of BinariesApi->get_related_binaries:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling BinariesApi->get_related_binaries: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **binary_id** | **int**| | - -### Return type - -[**BaseResponseChildBinariesResponse**](BaseResponseChildBinariesResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | -**403** | Forbidden | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/BinariesRelatedStatusResponse.md b/docs/BinariesRelatedStatusResponse.md deleted file mode 100644 index 4a6625fc..00000000 --- a/docs/BinariesRelatedStatusResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# BinariesRelatedStatusResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **str** | The current status of the unpack binary task | - -## Example - -```python -from revengai.models.binaries_related_status_response import BinariesRelatedStatusResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BinariesRelatedStatusResponse from a JSON string -binaries_related_status_response_instance = BinariesRelatedStatusResponse.from_json(json) -# print the JSON string representation of the object -print(BinariesRelatedStatusResponse.to_json()) - -# convert the object into a dict -binaries_related_status_response_dict = binaries_related_status_response_instance.to_dict() -# create an instance of BinariesRelatedStatusResponse from a dict -binaries_related_status_response_from_dict = BinariesRelatedStatusResponse.from_dict(binaries_related_status_response_dict) -``` -[[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 deleted file mode 100644 index eb5364ce..00000000 --- a/docs/BinariesTaskStatus.md +++ /dev/null @@ -1,20 +0,0 @@ -# BinariesTaskStatus - - -## Enum - -* `UNINITIALISED` (value: `'UNINITIALISED'`) - -* `PENDING` (value: `'PENDING'`) - -* `RUNNING` (value: `'RUNNING'`) - -* `COMPLETED` (value: `'COMPLETED'`) - -* `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/BinaryAdditionalDetailsDataResponse.md b/docs/BinaryAdditionalDetailsDataResponse.md deleted file mode 100644 index 45d20fe1..00000000 --- a/docs/BinaryAdditionalDetailsDataResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# BinaryAdditionalDetailsDataResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file** | [**FileMetadata**](FileMetadata.md) | | -**pe** | [**PEModel**](PEModel.md) | | [optional] -**elf** | [**ELFModel**](ELFModel.md) | | [optional] - -## Example - -```python -from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BinaryAdditionalDetailsDataResponse from a JSON string -binary_additional_details_data_response_instance = BinaryAdditionalDetailsDataResponse.from_json(json) -# print the JSON string representation of the object -print(BinaryAdditionalDetailsDataResponse.to_json()) - -# convert the object into a dict -binary_additional_details_data_response_dict = binary_additional_details_data_response_instance.to_dict() -# create an instance of BinaryAdditionalDetailsDataResponse from a dict -binary_additional_details_data_response_from_dict = BinaryAdditionalDetailsDataResponse.from_dict(binary_additional_details_data_response_dict) -``` -[[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/BinaryAdditionalResponse.md b/docs/BinaryAdditionalResponse.md deleted file mode 100644 index 5439b2d4..00000000 --- a/docs/BinaryAdditionalResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# BinaryAdditionalResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**binary_id** | **int** | | -**details** | [**BinaryAdditionalDetailsDataResponse**](BinaryAdditionalDetailsDataResponse.md) | | -**creation** | **datetime** | | [optional] - -## Example - -```python -from revengai.models.binary_additional_response import BinaryAdditionalResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BinaryAdditionalResponse from a JSON string -binary_additional_response_instance = BinaryAdditionalResponse.from_json(json) -# print the JSON string representation of the object -print(BinaryAdditionalResponse.to_json()) - -# convert the object into a dict -binary_additional_response_dict = binary_additional_response_instance.to_dict() -# create an instance of BinaryAdditionalResponse from a dict -binary_additional_response_from_dict = BinaryAdditionalResponse.from_dict(binary_additional_response_dict) -``` -[[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/BinaryConfig.md b/docs/BinaryConfig.md deleted file mode 100644 index 0a90a8bf..00000000 --- a/docs/BinaryConfig.md +++ /dev/null @@ -1,31 +0,0 @@ -# BinaryConfig - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**isa** | [**ISA**](ISA.md) | | [optional] -**platform** | [**Platform**](Platform.md) | | [optional] -**file_format** | [**FileFormat**](FileFormat.md) | | [optional] - -## Example - -```python -from revengai.models.binary_config import BinaryConfig - -# TODO update the JSON string below -json = "{}" -# create an instance of BinaryConfig from a JSON string -binary_config_instance = BinaryConfig.from_json(json) -# print the JSON string representation of the object -print(BinaryConfig.to_json()) - -# convert the object into a dict -binary_config_dict = binary_config_instance.to_dict() -# create an instance of BinaryConfig from a dict -binary_config_from_dict = BinaryConfig.from_dict(binary_config_dict) -``` -[[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/BinaryDetailsResponse.md b/docs/BinaryDetailsResponse.md deleted file mode 100644 index 3f279673..00000000 --- a/docs/BinaryDetailsResponse.md +++ /dev/null @@ -1,48 +0,0 @@ -# BinaryDetailsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arch** | **str** | The architecture of the binary | -**bits** | **int** | The size of the binary in bits | -**crc32** | **str** | | -**var_class** | **str** | | -**entropy** | **float** | | -**file_size** | **int** | | -**language** | **str** | | -**md5** | **str** | | -**machine** | **str** | | -**os** | **str** | OS target of the binary | -**sha1** | **str** | SHA1 hash of the binary | -**sha256** | **str** | SHA256 hash of the binary | -**ssdeep** | **str** | | -**static** | **bool** | | -**stripped** | **bool** | | -**sub_sys** | **str** | | -**tlsh** | **str** | | -**type** | **str** | | -**debug** | **bool** | | -**first_seen** | **datetime** | | - -## Example - -```python -from revengai.models.binary_details_response import BinaryDetailsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BinaryDetailsResponse from a JSON string -binary_details_response_instance = BinaryDetailsResponse.from_json(json) -# print the JSON string representation of the object -print(BinaryDetailsResponse.to_json()) - -# convert the object into a dict -binary_details_response_dict = binary_details_response_instance.to_dict() -# create an instance of BinaryDetailsResponse from a dict -binary_details_response_from_dict = BinaryDetailsResponse.from_dict(binary_details_response_dict) -``` -[[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/BinaryExternalsResponse.md b/docs/BinaryExternalsResponse.md deleted file mode 100644 index 6eb0df66..00000000 --- a/docs/BinaryExternalsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BinaryExternalsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sha_256_hash** | **str** | SHA256 hash of the binary | -**vt** | **Dict[str, object]** | VirusTotal information | -**vt_last_updated** | **datetime** | VirusTotal last updated date | -**mb** | **Dict[str, object]** | MalwareBazaar information | -**mb_last_updated** | **datetime** | MalwareBazaar last updated date | - -## Example - -```python -from revengai.models.binary_externals_response import BinaryExternalsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BinaryExternalsResponse from a JSON string -binary_externals_response_instance = BinaryExternalsResponse.from_json(json) -# print the JSON string representation of the object -print(BinaryExternalsResponse.to_json()) - -# convert the object into a dict -binary_externals_response_dict = binary_externals_response_instance.to_dict() -# create an instance of BinaryExternalsResponse from a dict -binary_externals_response_from_dict = BinaryExternalsResponse.from_dict(binary_externals_response_dict) -``` -[[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/BinarySearchResponse.md b/docs/BinarySearchResponse.md deleted file mode 100644 index 1964286f..00000000 --- a/docs/BinarySearchResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# BinarySearchResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**List[BinarySearchResult]**](BinarySearchResult.md) | The results of the search | - -## Example - -```python -from revengai.models.binary_search_response import BinarySearchResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BinarySearchResponse from a JSON string -binary_search_response_instance = BinarySearchResponse.from_json(json) -# print the JSON string representation of the object -print(BinarySearchResponse.to_json()) - -# convert the object into a dict -binary_search_response_dict = binary_search_response_instance.to_dict() -# create an instance of BinarySearchResponse from a dict -binary_search_response_from_dict = BinarySearchResponse.from_dict(binary_search_response_dict) -``` -[[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/BinarySearchResult.md b/docs/BinarySearchResult.md deleted file mode 100644 index 28048670..00000000 --- a/docs/BinarySearchResult.md +++ /dev/null @@ -1,37 +0,0 @@ -# BinarySearchResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**binary_id** | **int** | The binary ID | -**binary_name** | **str** | The name of the binary | -**analysis_id** | **int** | The analysis ID | -**sha_256_hash** | **str** | The SHA-256 hash of the binary | -**tags** | **List[str]** | | -**created_at** | **datetime** | The creation date of the binary | -**model_id** | **int** | The model ID of the binary | -**model_name** | **str** | The name of the model | -**owned_by** | **str** | The owner of the binary | - -## Example - -```python -from revengai.models.binary_search_result import BinarySearchResult - -# TODO update the JSON string below -json = "{}" -# create an instance of BinarySearchResult from a JSON string -binary_search_result_instance = BinarySearchResult.from_json(json) -# print the JSON string representation of the object -print(BinarySearchResult.to_json()) - -# convert the object into a dict -binary_search_result_dict = binary_search_result_instance.to_dict() -# create an instance of BinarySearchResult from a dict -binary_search_result_from_dict = BinarySearchResult.from_dict(binary_search_result_dict) -``` -[[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 deleted file mode 100644 index caa7aed6..00000000 --- a/docs/BinaryTaskStatus.md +++ /dev/null @@ -1,20 +0,0 @@ -# BinaryTaskStatus - - -## Enum - -* `UNINITIALISED` (value: `'UNINITIALISED'`) - -* `PENDING` (value: `'PENDING'`) - -* `RUNNING` (value: `'RUNNING'`) - -* `COMPLETED` (value: `'COMPLETED'`) - -* `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/BulkDeleteAnalysesRequest.md b/docs/BulkDeleteAnalysesRequest.md deleted file mode 100644 index f6a5f749..00000000 --- a/docs/BulkDeleteAnalysesRequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# BulkDeleteAnalysesRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_ids** | **List[int]** | | - -## Example - -```python -from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of BulkDeleteAnalysesRequest from a JSON string -bulk_delete_analyses_request_instance = BulkDeleteAnalysesRequest.from_json(json) -# print the JSON string representation of the object -print(BulkDeleteAnalysesRequest.to_json()) - -# convert the object into a dict -bulk_delete_analyses_request_dict = bulk_delete_analyses_request_instance.to_dict() -# create an instance of BulkDeleteAnalysesRequest from a dict -bulk_delete_analyses_request_from_dict = BulkDeleteAnalysesRequest.from_dict(bulk_delete_analyses_request_dict) -``` -[[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/CalleeFunctionInfo.md b/docs/CalleeFunctionInfo.md deleted file mode 100644 index 419844d9..00000000 --- a/docs/CalleeFunctionInfo.md +++ /dev/null @@ -1,34 +0,0 @@ -# CalleeFunctionInfo - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_id** | **int** | Unique identifier of the function | -**matched_function_id** | **int** | | -**dashboard_url** | **str** | | -**is_external** | **bool** | Indicates if the function is external | [optional] [default to False] -**callee_name** | **str** | Name of the called function | -**callee_vaddr** | **str** | Virtual address of the called function | - -## Example - -```python -from revengai.models.callee_function_info import CalleeFunctionInfo - -# TODO update the JSON string below -json = "{}" -# create an instance of CalleeFunctionInfo from a JSON string -callee_function_info_instance = CalleeFunctionInfo.from_json(json) -# print the JSON string representation of the object -print(CalleeFunctionInfo.to_json()) - -# convert the object into a dict -callee_function_info_dict = callee_function_info_instance.to_dict() -# create an instance of CalleeFunctionInfo from a dict -callee_function_info_from_dict = CalleeFunctionInfo.from_dict(callee_function_info_dict) -``` -[[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/CalleesCallerFunctionsResponse.md b/docs/CalleesCallerFunctionsResponse.md deleted file mode 100644 index 10a29850..00000000 --- a/docs/CalleesCallerFunctionsResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# CalleesCallerFunctionsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**base_address** | **int** | Base address of the binary | -**callees** | [**List[CalleeFunctionInfo]**](CalleeFunctionInfo.md) | List of functions called by the target function | -**callers** | [**List[CallerFunctionInfo]**](CallerFunctionInfo.md) | List of functions that call the target function | - -## Example - -```python -from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CalleesCallerFunctionsResponse from a JSON string -callees_caller_functions_response_instance = CalleesCallerFunctionsResponse.from_json(json) -# print the JSON string representation of the object -print(CalleesCallerFunctionsResponse.to_json()) - -# convert the object into a dict -callees_caller_functions_response_dict = callees_caller_functions_response_instance.to_dict() -# create an instance of CalleesCallerFunctionsResponse from a dict -callees_caller_functions_response_from_dict = CalleesCallerFunctionsResponse.from_dict(callees_caller_functions_response_dict) -``` -[[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/CallerFunctionInfo.md b/docs/CallerFunctionInfo.md deleted file mode 100644 index 18822efa..00000000 --- a/docs/CallerFunctionInfo.md +++ /dev/null @@ -1,34 +0,0 @@ -# CallerFunctionInfo - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_id** | **int** | Unique identifier of the function | -**matched_function_id** | **int** | | -**dashboard_url** | **str** | | -**is_external** | **bool** | Indicates if the function is external | [optional] [default to False] -**caller_name** | **str** | Name of the calling function | -**caller_vaddr** | **str** | Virtual address of the calling function | - -## Example - -```python -from revengai.models.caller_function_info import CallerFunctionInfo - -# TODO update the JSON string below -json = "{}" -# create an instance of CallerFunctionInfo from a JSON string -caller_function_info_instance = CallerFunctionInfo.from_json(json) -# print the JSON string representation of the object -print(CallerFunctionInfo.to_json()) - -# convert the object into a dict -caller_function_info_dict = caller_function_info_instance.to_dict() -# create an instance of CallerFunctionInfo from a dict -caller_function_info_from_dict = CallerFunctionInfo.from_dict(caller_function_info_dict) -``` -[[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/Capabilities.md b/docs/Capabilities.md deleted file mode 100644 index 6f4da6c5..00000000 --- a/docs/Capabilities.md +++ /dev/null @@ -1,29 +0,0 @@ -# Capabilities - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capabilities** | [**List[AppApiRestV2InfoTypesCapability]**](AppApiRestV2InfoTypesCapability.md) | List of capabilities for a given analysis | - -## Example - -```python -from revengai.models.capabilities import Capabilities - -# TODO update the JSON string below -json = "{}" -# create an instance of Capabilities from a JSON string -capabilities_instance = Capabilities.from_json(json) -# print the JSON string representation of the object -print(Capabilities.to_json()) - -# convert the object into a dict -capabilities_dict = capabilities_instance.to_dict() -# create an instance of Capabilities from a dict -capabilities_from_dict = Capabilities.from_dict(capabilities_dict) -``` -[[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/CapabilitiesAgentResponse.md b/docs/CapabilitiesAgentResponse.md deleted file mode 100644 index e9e7272b..00000000 --- a/docs/CapabilitiesAgentResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# CapabilitiesAgentResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capabilities** | [**List[AppApiRestV2AgentSchemaCapability]**](AppApiRestV2AgentSchemaCapability.md) | List of enriched capability data | - -## Example - -```python -from revengai.models.capabilities_agent_response import CapabilitiesAgentResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CapabilitiesAgentResponse from a JSON string -capabilities_agent_response_instance = CapabilitiesAgentResponse.from_json(json) -# print the JSON string representation of the object -print(CapabilitiesAgentResponse.to_json()) - -# convert the object into a dict -capabilities_agent_response_dict = capabilities_agent_response_instance.to_dict() -# create an instance of CapabilitiesAgentResponse from a dict -capabilities_agent_response_from_dict = CapabilitiesAgentResponse.from_dict(capabilities_agent_response_dict) -``` -[[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/ChildBinariesResponse.md b/docs/ChildBinariesResponse.md deleted file mode 100644 index 0e251610..00000000 --- a/docs/ChildBinariesResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ChildBinariesResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**children** | [**List[RelativeBinaryResponse]**](RelativeBinaryResponse.md) | List of child binaries associated with the parent binary | -**parent** | [**RelativeBinaryResponse**](RelativeBinaryResponse.md) | | [optional] - -## Example - -```python -from revengai.models.child_binaries_response import ChildBinariesResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ChildBinariesResponse from a JSON string -child_binaries_response_instance = ChildBinariesResponse.from_json(json) -# print the JSON string representation of the object -print(ChildBinariesResponse.to_json()) - -# convert the object into a dict -child_binaries_response_dict = child_binaries_response_instance.to_dict() -# create an instance of ChildBinariesResponse from a dict -child_binaries_response_from_dict = ChildBinariesResponse.from_dict(child_binaries_response_dict) -``` -[[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/CodeSignatureModel.md b/docs/CodeSignatureModel.md deleted file mode 100644 index 778d5858..00000000 --- a/docs/CodeSignatureModel.md +++ /dev/null @@ -1,31 +0,0 @@ -# CodeSignatureModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**signed** | **bool** | | -**valid_signature** | **bool** | | -**signatures** | [**List[SingleCodeSignatureModel]**](SingleCodeSignatureModel.md) | | - -## Example - -```python -from revengai.models.code_signature_model import CodeSignatureModel - -# TODO update the JSON string below -json = "{}" -# create an instance of CodeSignatureModel from a JSON string -code_signature_model_instance = CodeSignatureModel.from_json(json) -# print the JSON string representation of the object -print(CodeSignatureModel.to_json()) - -# convert the object into a dict -code_signature_model_dict = code_signature_model_instance.to_dict() -# create an instance of CodeSignatureModel from a dict -code_signature_model_from_dict = CodeSignatureModel.from_dict(code_signature_model_dict) -``` -[[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/CollectionBinariesUpdateRequest.md b/docs/CollectionBinariesUpdateRequest.md deleted file mode 100644 index c1028931..00000000 --- a/docs/CollectionBinariesUpdateRequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# CollectionBinariesUpdateRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**binaries** | **List[int]** | | - -## Example - -```python -from revengai.models.collection_binaries_update_request import CollectionBinariesUpdateRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionBinariesUpdateRequest from a JSON string -collection_binaries_update_request_instance = CollectionBinariesUpdateRequest.from_json(json) -# print the JSON string representation of the object -print(CollectionBinariesUpdateRequest.to_json()) - -# convert the object into a dict -collection_binaries_update_request_dict = collection_binaries_update_request_instance.to_dict() -# create an instance of CollectionBinariesUpdateRequest from a dict -collection_binaries_update_request_from_dict = CollectionBinariesUpdateRequest.from_dict(collection_binaries_update_request_dict) -``` -[[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/CollectionBinariesUpdateResponse.md b/docs/CollectionBinariesUpdateResponse.md deleted file mode 100644 index 1f5960dc..00000000 --- a/docs/CollectionBinariesUpdateResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# CollectionBinariesUpdateResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**binaries** | [**List[CollectionBinaryResponse]**](CollectionBinaryResponse.md) | Collection binaries | - -## Example - -```python -from revengai.models.collection_binaries_update_response import CollectionBinariesUpdateResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionBinariesUpdateResponse from a JSON string -collection_binaries_update_response_instance = CollectionBinariesUpdateResponse.from_json(json) -# print the JSON string representation of the object -print(CollectionBinariesUpdateResponse.to_json()) - -# convert the object into a dict -collection_binaries_update_response_dict = collection_binaries_update_response_instance.to_dict() -# create an instance of CollectionBinariesUpdateResponse from a dict -collection_binaries_update_response_from_dict = CollectionBinariesUpdateResponse.from_dict(collection_binaries_update_response_dict) -``` -[[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/CollectionBinaryResponse.md b/docs/CollectionBinaryResponse.md deleted file mode 100644 index 50b2e065..00000000 --- a/docs/CollectionBinaryResponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# CollectionBinaryResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_id** | **int** | Analysis ID | -**binary_id** | **int** | Binary ID | -**binary_name** | **str** | Binary name | -**owner_id** | **int** | Binary owner | -**sha_256_hash** | **str** | Binary SHA-256 hash | -**created_at** | **datetime** | Binary creation date | -**is_system_analysis** | **bool** | Is the analysis owned by a RevEng.AI account | - -## Example - -```python -from revengai.models.collection_binary_response import CollectionBinaryResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionBinaryResponse from a JSON string -collection_binary_response_instance = CollectionBinaryResponse.from_json(json) -# print the JSON string representation of the object -print(CollectionBinaryResponse.to_json()) - -# convert the object into a dict -collection_binary_response_dict = collection_binary_response_instance.to_dict() -# create an instance of CollectionBinaryResponse from a dict -collection_binary_response_from_dict = CollectionBinaryResponse.from_dict(collection_binary_response_dict) -``` -[[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/CollectionCreateRequest.md b/docs/CollectionCreateRequest.md deleted file mode 100644 index 54bf0e3e..00000000 --- a/docs/CollectionCreateRequest.md +++ /dev/null @@ -1,33 +0,0 @@ -# CollectionCreateRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**collection_name** | **str** | | -**description** | **str** | | -**collection_scope** | [**CollectionScope**](CollectionScope.md) | | [optional] -**tags** | **List[str]** | | [optional] -**binaries** | **List[int]** | | [optional] - -## Example - -```python -from revengai.models.collection_create_request import CollectionCreateRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionCreateRequest from a JSON string -collection_create_request_instance = CollectionCreateRequest.from_json(json) -# print the JSON string representation of the object -print(CollectionCreateRequest.to_json()) - -# convert the object into a dict -collection_create_request_dict = collection_create_request_instance.to_dict() -# create an instance of CollectionCreateRequest from a dict -collection_create_request_from_dict = CollectionCreateRequest.from_dict(collection_create_request_dict) -``` -[[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/CollectionListItem.md b/docs/CollectionListItem.md deleted file mode 100644 index 62cedfc8..00000000 --- a/docs/CollectionListItem.md +++ /dev/null @@ -1,38 +0,0 @@ -# CollectionListItem - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**collection_name** | **str** | The name of the collection | -**description** | **str** | The description of the collection | -**collection_scope** | **str** | The scope of the collection | -**collection_owner** | **str** | The owner of the collection | -**official_collection** | **bool** | Whether the collection is maintained by RevEng.AI | -**collection_tags** | **List[str]** | The tags of the collection | [optional] [default to []] -**collection_size** | **int** | The size of the collection | -**collection_id** | **int** | The ID of the collection | -**creation** | **datetime** | The datetime of when the collection was created | -**team_id** | **int** | | [optional] - -## Example - -```python -from revengai.models.collection_list_item import CollectionListItem - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionListItem from a JSON string -collection_list_item_instance = CollectionListItem.from_json(json) -# print the JSON string representation of the object -print(CollectionListItem.to_json()) - -# convert the object into a dict -collection_list_item_dict = collection_list_item_instance.to_dict() -# create an instance of CollectionListItem from a dict -collection_list_item_from_dict = CollectionListItem.from_dict(collection_list_item_dict) -``` -[[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/CollectionResponse.md b/docs/CollectionResponse.md deleted file mode 100644 index ba43f1e7..00000000 --- a/docs/CollectionResponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# CollectionResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**collection_id** | **int** | Collection ID | -**collection_name** | **str** | Collection name | -**description** | **str** | Collection description | -**user_id** | **int** | Collection user ID | -**team_id** | **int** | | [optional] -**collection_scope** | [**CollectionScope**](CollectionScope.md) | Collection public status | -**created_at** | **datetime** | Collection creation date | -**updated_at** | **datetime** | Collection last update date | -**tags** | **List[str]** | | [optional] -**binaries** | [**List[CollectionResponseBinariesInner]**](CollectionResponseBinariesInner.md) | | [optional] - -## Example - -```python -from revengai.models.collection_response import CollectionResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionResponse from a JSON string -collection_response_instance = CollectionResponse.from_json(json) -# print the JSON string representation of the object -print(CollectionResponse.to_json()) - -# convert the object into a dict -collection_response_dict = collection_response_instance.to_dict() -# create an instance of CollectionResponse from a dict -collection_response_from_dict = CollectionResponse.from_dict(collection_response_dict) -``` -[[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/CollectionResponseBinariesInner.md b/docs/CollectionResponseBinariesInner.md deleted file mode 100644 index b8bfd045..00000000 --- a/docs/CollectionResponseBinariesInner.md +++ /dev/null @@ -1,35 +0,0 @@ -# CollectionResponseBinariesInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_id** | **int** | Analysis ID | -**binary_id** | **int** | Binary ID | -**binary_name** | **str** | Binary name | -**owner_id** | **int** | Binary owner | -**sha_256_hash** | **str** | Binary SHA-256 hash | -**created_at** | **datetime** | Binary creation date | -**is_system_analysis** | **bool** | Is the analysis owned by a RevEng.AI account | - -## Example - -```python -from revengai.models.collection_response_binaries_inner import CollectionResponseBinariesInner - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionResponseBinariesInner from a JSON string -collection_response_binaries_inner_instance = CollectionResponseBinariesInner.from_json(json) -# print the JSON string representation of the object -print(CollectionResponseBinariesInner.to_json()) - -# convert the object into a dict -collection_response_binaries_inner_dict = collection_response_binaries_inner_instance.to_dict() -# create an instance of CollectionResponseBinariesInner from a dict -collection_response_binaries_inner_from_dict = CollectionResponseBinariesInner.from_dict(collection_response_binaries_inner_dict) -``` -[[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 deleted file mode 100644 index cf3a5554..00000000 --- a/docs/CollectionScope.md +++ /dev/null @@ -1,18 +0,0 @@ -# CollectionScope - - -## Enum - -* `PRIVATE` (value: `'PRIVATE'`) - -* `PUBLIC` (value: `'PUBLIC'`) - -* `PROTECTED` (value: `'PROTECTED'`) - -* `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/CollectionSearchResponse.md b/docs/CollectionSearchResponse.md deleted file mode 100644 index f80de73f..00000000 --- a/docs/CollectionSearchResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# CollectionSearchResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**List[CollectionSearchResult]**](CollectionSearchResult.md) | The results of the search | - -## Example - -```python -from revengai.models.collection_search_response import CollectionSearchResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionSearchResponse from a JSON string -collection_search_response_instance = CollectionSearchResponse.from_json(json) -# print the JSON string representation of the object -print(CollectionSearchResponse.to_json()) - -# convert the object into a dict -collection_search_response_dict = collection_search_response_instance.to_dict() -# create an instance of CollectionSearchResponse from a dict -collection_search_response_from_dict = CollectionSearchResponse.from_dict(collection_search_response_dict) -``` -[[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/CollectionSearchResult.md b/docs/CollectionSearchResult.md deleted file mode 100644 index 533a66be..00000000 --- a/docs/CollectionSearchResult.md +++ /dev/null @@ -1,38 +0,0 @@ -# CollectionSearchResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**collection_id** | **int** | The ID of the collection | -**collection_name** | **str** | The name of the collection | -**scope** | **str** | The scope of the collection | -**last_updated_at** | **datetime** | The last update date of the collection | -**created_at** | **datetime** | The creation date of the collection | -**owned_by** | **str** | The owner of the collection | -**tags** | **List[str]** | | [optional] -**size** | **int** | | [optional] -**description** | **str** | The description of the collection | -**team_id** | **int** | | [optional] - -## Example - -```python -from revengai.models.collection_search_result import CollectionSearchResult - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionSearchResult from a JSON string -collection_search_result_instance = CollectionSearchResult.from_json(json) -# print the JSON string representation of the object -print(CollectionSearchResult.to_json()) - -# convert the object into a dict -collection_search_result_dict = collection_search_result_instance.to_dict() -# create an instance of CollectionSearchResult from a dict -collection_search_result_from_dict = CollectionSearchResult.from_dict(collection_search_result_dict) -``` -[[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/CollectionTagsUpdateRequest.md b/docs/CollectionTagsUpdateRequest.md deleted file mode 100644 index 3c8f721e..00000000 --- a/docs/CollectionTagsUpdateRequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# CollectionTagsUpdateRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | **List[str]** | | - -## Example - -```python -from revengai.models.collection_tags_update_request import CollectionTagsUpdateRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionTagsUpdateRequest from a JSON string -collection_tags_update_request_instance = CollectionTagsUpdateRequest.from_json(json) -# print the JSON string representation of the object -print(CollectionTagsUpdateRequest.to_json()) - -# convert the object into a dict -collection_tags_update_request_dict = collection_tags_update_request_instance.to_dict() -# create an instance of CollectionTagsUpdateRequest from a dict -collection_tags_update_request_from_dict = CollectionTagsUpdateRequest.from_dict(collection_tags_update_request_dict) -``` -[[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/CollectionTagsUpdateResponse.md b/docs/CollectionTagsUpdateResponse.md deleted file mode 100644 index 2be5f9fa..00000000 --- a/docs/CollectionTagsUpdateResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# CollectionTagsUpdateResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | **List[str]** | Collection tags | - -## Example - -```python -from revengai.models.collection_tags_update_response import CollectionTagsUpdateResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionTagsUpdateResponse from a JSON string -collection_tags_update_response_instance = CollectionTagsUpdateResponse.from_json(json) -# print the JSON string representation of the object -print(CollectionTagsUpdateResponse.to_json()) - -# convert the object into a dict -collection_tags_update_response_dict = collection_tags_update_response_instance.to_dict() -# create an instance of CollectionTagsUpdateResponse from a dict -collection_tags_update_response_from_dict = CollectionTagsUpdateResponse.from_dict(collection_tags_update_response_dict) -``` -[[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/CollectionUpdateRequest.md b/docs/CollectionUpdateRequest.md deleted file mode 100644 index 6339c99b..00000000 --- a/docs/CollectionUpdateRequest.md +++ /dev/null @@ -1,31 +0,0 @@ -# CollectionUpdateRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**collection_name** | **str** | | [optional] -**description** | **str** | | [optional] -**collection_scope** | [**CollectionScope**](CollectionScope.md) | | [optional] - -## Example - -```python -from revengai.models.collection_update_request import CollectionUpdateRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of CollectionUpdateRequest from a JSON string -collection_update_request_instance = CollectionUpdateRequest.from_json(json) -# print the JSON string representation of the object -print(CollectionUpdateRequest.to_json()) - -# convert the object into a dict -collection_update_request_dict = collection_update_request_instance.to_dict() -# create an instance of CollectionUpdateRequest from a dict -collection_update_request_from_dict = CollectionUpdateRequest.from_dict(collection_update_request_dict) -``` -[[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/CollectionsApi.md b/docs/CollectionsApi.md index f1fa40a0..1f252c86 100644 --- a/docs/CollectionsApi.md +++ b/docs/CollectionsApi.md @@ -4,13 +4,6 @@ All URIs are relative to *https://api.reveng.ai* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_collection**](CollectionsApi.md#create_collection) | **POST** /v2/collections | Creates new collection information -[**delete_collection**](CollectionsApi.md#delete_collection) | **DELETE** /v2/collections/{collection_id} | Deletes a collection -[**get_collection**](CollectionsApi.md#get_collection) | **GET** /v2/collections/{collection_id} | Returns a collection -[**list_collections**](CollectionsApi.md#list_collections) | **GET** /v2/collections | Gets basic collections information -[**update_collection**](CollectionsApi.md#update_collection) | **PATCH** /v2/collections/{collection_id} | Updates a collection -[**update_collection_binaries**](CollectionsApi.md#update_collection_binaries) | **PATCH** /v2/collections/{collection_id}/binaries | Updates a collection binaries -[**update_collection_tags**](CollectionsApi.md#update_collection_tags) | **PATCH** /v2/collections/{collection_id}/tags | Updates a collection tags [**v3_create_collection**](CollectionsApi.md#v3_create_collection) | **POST** /v3/collections | Create a collection. [**v3_delete_collection**](CollectionsApi.md#v3_delete_collection) | **DELETE** /v3/collections/{collection_id} | Delete a collection. [**v3_get_collection**](CollectionsApi.md#v3_get_collection) | **GET** /v3/collections/{collection_id} | Get a collection. @@ -20,641 +13,6 @@ Method | HTTP request | Description [**v3_patch_collection_tags**](CollectionsApi.md#v3_patch_collection_tags) | **PATCH** /v3/collections/{collection_id}/tags | Replace the tags on a collection. -# **create_collection** -> BaseResponseCollectionResponse create_collection(collection_create_request) - -Creates new collection information - -A collection is a group of binaries that are related in some way. This endpoint creates a new collection and allows you to add tags and binaries to it. If you add tags or binaries to the collection, they will be returned in the response. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_collection_response import BaseResponseCollectionResponse -from revengai.models.collection_create_request import CollectionCreateRequest -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.CollectionsApi(api_client) - collection_create_request = revengai.CollectionCreateRequest() # CollectionCreateRequest | - - try: - # Creates new collection information - api_response = api_instance.create_collection(collection_create_request) - print("The response of CollectionsApi->create_collection:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CollectionsApi->create_collection: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **collection_create_request** | [**CollectionCreateRequest**](CollectionCreateRequest.md)| | - -### Return type - -[**BaseResponseCollectionResponse**](BaseResponseCollectionResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection** -> BaseResponseBool delete_collection(collection_id) - -Deletes a collection - -Deletes a collection - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_bool import BaseResponseBool -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.CollectionsApi(api_client) - collection_id = 56 # int | - - try: - # Deletes a collection - api_response = api_instance.delete_collection(collection_id) - print("The response of CollectionsApi->delete_collection:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CollectionsApi->delete_collection: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **collection_id** | **int**| | - -### Return type - -[**BaseResponseBool**](BaseResponseBool.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_collection** -> BaseResponseCollectionResponse get_collection(collection_id, include_tags=include_tags, include_binaries=include_binaries, page_size=page_size, page_number=page_number, binary_search_str=binary_search_str) - -Returns a collection - -Gets a single collection. The collection can include binaries and tags if requested. You can specify whether to include tags and binaries in the response by using the query string parameters defined. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_collection_response import BaseResponseCollectionResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.CollectionsApi(api_client) - collection_id = 56 # int | - include_tags = False # bool | (optional) (default to False) - include_binaries = False # bool | (optional) (default to False) - page_size = 10 # int | (optional) (default to 10) - page_number = 1 # int | (optional) (default to 1) - binary_search_str = 'binary_search_str_example' # str | (optional) - - try: - # Returns a collection - api_response = api_instance.get_collection(collection_id, include_tags=include_tags, include_binaries=include_binaries, page_size=page_size, page_number=page_number, binary_search_str=binary_search_str) - print("The response of CollectionsApi->get_collection:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CollectionsApi->get_collection: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **collection_id** | **int**| | - **include_tags** | **bool**| | [optional] [default to False] - **include_binaries** | **bool**| | [optional] [default to False] - **page_size** | **int**| | [optional] [default to 10] - **page_number** | **int**| | [optional] [default to 1] - **binary_search_str** | **str**| | [optional] - -### Return type - -[**BaseResponseCollectionResponse**](BaseResponseCollectionResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_collections** -> BaseResponseListCollectionResults list_collections(search_term=search_term, filters=filters, limit=limit, offset=offset, order_by=order_by, order=order) - -Gets basic collections information - -Returns a list of collections - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy -from revengai.models.base_response_list_collection_results import BaseResponseListCollectionResults -from revengai.models.filters import Filters -from revengai.models.order import Order -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.CollectionsApi(api_client) - search_term = '' # str | (optional) (default to '') - filters = [] # List[Filters] | (optional) (default to []) - limit = 20 # int | (optional) (default to 20) - offset = 0 # int | (optional) (default to 0) - order_by = revengai.AppApiRestV2CollectionsEnumsOrderBy() # AppApiRestV2CollectionsEnumsOrderBy | (optional) - order = revengai.Order() # Order | (optional) - - try: - # Gets basic collections information - api_response = api_instance.list_collections(search_term=search_term, filters=filters, limit=limit, offset=offset, order_by=order_by, order=order) - print("The response of CollectionsApi->list_collections:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CollectionsApi->list_collections: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **search_term** | **str**| | [optional] [default to ''] - **filters** | [**List[Filters]**](Filters.md)| | [optional] [default to []] - **limit** | **int**| | [optional] [default to 20] - **offset** | **int**| | [optional] [default to 0] - **order_by** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| | [optional] - **order** | [**Order**](.md)| | [optional] - -### Return type - -[**BaseResponseListCollectionResults**](BaseResponseListCollectionResults.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_collection** -> BaseResponseCollectionResponse update_collection(collection_id, collection_update_request) - -Updates a collection - -Updates a collection, you can update the collection name, description, and scope - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_collection_response import BaseResponseCollectionResponse -from revengai.models.collection_update_request import CollectionUpdateRequest -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.CollectionsApi(api_client) - collection_id = 56 # int | - collection_update_request = revengai.CollectionUpdateRequest() # CollectionUpdateRequest | - - try: - # Updates a collection - api_response = api_instance.update_collection(collection_id, collection_update_request) - print("The response of CollectionsApi->update_collection:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CollectionsApi->update_collection: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **collection_id** | **int**| | - **collection_update_request** | [**CollectionUpdateRequest**](CollectionUpdateRequest.md)| | - -### Return type - -[**BaseResponseCollectionResponse**](BaseResponseCollectionResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_collection_binaries** -> BaseResponseCollectionBinariesUpdateResponse update_collection_binaries(collection_id, collection_binaries_update_request) - -Updates a collection binaries - -Updates/changes a collection binaries to whatever is provided in the request. After this update the collection will only contain the binaries provided in the request. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_collection_binaries_update_response import BaseResponseCollectionBinariesUpdateResponse -from revengai.models.collection_binaries_update_request import CollectionBinariesUpdateRequest -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.CollectionsApi(api_client) - collection_id = 56 # int | - collection_binaries_update_request = revengai.CollectionBinariesUpdateRequest() # CollectionBinariesUpdateRequest | - - try: - # Updates a collection binaries - api_response = api_instance.update_collection_binaries(collection_id, collection_binaries_update_request) - print("The response of CollectionsApi->update_collection_binaries:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CollectionsApi->update_collection_binaries: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **collection_id** | **int**| | - **collection_binaries_update_request** | [**CollectionBinariesUpdateRequest**](CollectionBinariesUpdateRequest.md)| | - -### Return type - -[**BaseResponseCollectionBinariesUpdateResponse**](BaseResponseCollectionBinariesUpdateResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_collection_tags** -> BaseResponseCollectionTagsUpdateResponse update_collection_tags(collection_id, collection_tags_update_request) - -Updates a collection tags - -Updates/changes a collection tags to whatever is provided in the request. After this update the collection will only contain the tags provided in the request. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_collection_tags_update_response import BaseResponseCollectionTagsUpdateResponse -from revengai.models.collection_tags_update_request import CollectionTagsUpdateRequest -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.CollectionsApi(api_client) - collection_id = 56 # int | - collection_tags_update_request = revengai.CollectionTagsUpdateRequest() # CollectionTagsUpdateRequest | - - try: - # Updates a collection tags - api_response = api_instance.update_collection_tags(collection_id, collection_tags_update_request) - print("The response of CollectionsApi->update_collection_tags:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CollectionsApi->update_collection_tags: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **collection_id** | **int**| | - **collection_tags_update_request** | [**CollectionTagsUpdateRequest**](CollectionTagsUpdateRequest.md)| | - -### Return type - -[**BaseResponseCollectionTagsUpdateResponse**](BaseResponseCollectionTagsUpdateResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **v3_create_collection** > CreateCollectionOutputBody v3_create_collection(create_collection_input_body) diff --git a/docs/CommentBase.md b/docs/CommentBase.md deleted file mode 100644 index cbca8507..00000000 --- a/docs/CommentBase.md +++ /dev/null @@ -1,29 +0,0 @@ -# CommentBase - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **str** | Comment text content | - -## Example - -```python -from revengai.models.comment_base import CommentBase - -# TODO update the JSON string below -json = "{}" -# create an instance of CommentBase from a JSON string -comment_base_instance = CommentBase.from_json(json) -# print the JSON string representation of the object -print(CommentBase.to_json()) - -# convert the object into a dict -comment_base_dict = comment_base_instance.to_dict() -# create an instance of CommentBase from a dict -comment_base_from_dict = CommentBase.from_dict(comment_base_dict) -``` -[[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/CommentResponse.md b/docs/CommentResponse.md deleted file mode 100644 index 46c926d7..00000000 --- a/docs/CommentResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# CommentResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **str** | Comment text content | -**id** | **int** | | -**user_id** | **int** | | -**resource_type** | **str** | | -**resource_id** | **str** | | -**context** | [**Context**](Context.md) | | [optional] -**created_at** | **datetime** | | -**updated_at** | **datetime** | | - -## Example - -```python -from revengai.models.comment_response import CommentResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CommentResponse from a JSON string -comment_response_instance = CommentResponse.from_json(json) -# print the JSON string representation of the object -print(CommentResponse.to_json()) - -# convert the object into a dict -comment_response_dict = comment_response_instance.to_dict() -# create an instance of CommentResponse from a dict -comment_response_from_dict = CommentResponse.from_dict(comment_response_dict) -``` -[[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/CommentUpdateRequest.md b/docs/CommentUpdateRequest.md deleted file mode 100644 index 208da3a2..00000000 --- a/docs/CommentUpdateRequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# CommentUpdateRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **str** | Updated comment text | - -## Example - -```python -from revengai.models.comment_update_request import CommentUpdateRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of CommentUpdateRequest from a JSON string -comment_update_request_instance = CommentUpdateRequest.from_json(json) -# print the JSON string representation of the object -print(CommentUpdateRequest.to_json()) - -# convert the object into a dict -comment_update_request_dict = comment_update_request_instance.to_dict() -# create an instance of CommentUpdateRequest from a dict -comment_update_request_from_dict = CommentUpdateRequest.from_dict(comment_update_request_dict) -``` -[[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/ConfigApi.md b/docs/ConfigApi.md deleted file mode 100644 index 3399d82b..00000000 --- a/docs/ConfigApi.md +++ /dev/null @@ -1,91 +0,0 @@ -# revengai.ConfigApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_config**](ConfigApi.md#get_config) | **GET** /v2/config | Get Config - - -# **get_config** -> BaseResponseConfigResponse get_config() - -Get Config - -General configuration endpoint - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_config_response import BaseResponseConfigResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.ConfigApi(api_client) - - try: - # Get Config - api_response = api_instance.get_config() - print("The response of ConfigApi->get_config:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigApi->get_config: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**BaseResponseConfigResponse**](BaseResponseConfigResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/ConfigResponse.md b/docs/ConfigResponse.md deleted file mode 100644 index 7ef4619d..00000000 --- a/docs/ConfigResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# ConfigResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dashboard_url** | **str** | The domain of the RevEng.AI platform you are connected to | [optional] [default to ''] -**max_file_size_bytes** | **int** | Maximum file size (in bytes) that can be uploaded for analysis | -**ai_decompiler_unsupported_languages** | **List[str]** | List of programming languages that are not supported for AI decompilation | -**ai_decompiler_supported_models** | **List[str]** | List of models that support AI decompilation | - -## Example - -```python -from revengai.models.config_response import ConfigResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ConfigResponse from a JSON string -config_response_instance = ConfigResponse.from_json(json) -# print the JSON string representation of the object -print(ConfigResponse.to_json()) - -# convert the object into a dict -config_response_dict = config_response_instance.to_dict() -# create an instance of ConfigResponse from a dict -config_response_from_dict = ConfigResponse.from_dict(config_response_dict) -``` -[[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/Context.md b/docs/Context.md deleted file mode 100644 index e2cb61f1..00000000 --- a/docs/Context.md +++ /dev/null @@ -1,30 +0,0 @@ -# Context - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_line** | **int** | | -**end_line** | **int** | | - -## Example - -```python -from revengai.models.context import Context - -# TODO update the JSON string below -json = "{}" -# create an instance of Context from a JSON string -context_instance = Context.from_json(json) -# print the JSON string representation of the object -print(Context.to_json()) - -# convert the object into a dict -context_dict = context_instance.to_dict() -# create an instance of Context from a dict -context_from_dict = Context.from_dict(context_dict) -``` -[[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/Created.md b/docs/Created.md deleted file mode 100644 index 054cea3c..00000000 --- a/docs/Created.md +++ /dev/null @@ -1,31 +0,0 @@ -# Created - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_id** | **int** | The ID corresponding to the newly created analysis | -**binary_id** | **int** | The ID corresponding to the binary that was created | -**reference** | **str** | Deprecated will always be empty string | - -## Example - -```python -from revengai.models.created import Created - -# TODO update the JSON string below -json = "{}" -# create an instance of Created from a JSON string -created_instance = Created.from_json(json) -# print the JSON string representation of the object -print(Created.to_json()) - -# convert the object into a dict -created_dict = created_instance.to_dict() -# create an instance of Created from a dict -created_from_dict = Created.from_dict(created_dict) -``` -[[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/DecompilationCommentContext.md b/docs/DecompilationCommentContext.md deleted file mode 100644 index 70882471..00000000 --- a/docs/DecompilationCommentContext.md +++ /dev/null @@ -1,30 +0,0 @@ -# DecompilationCommentContext - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_line** | **int** | | -**end_line** | **int** | | - -## Example - -```python -from revengai.models.decompilation_comment_context import DecompilationCommentContext - -# TODO update the JSON string below -json = "{}" -# create an instance of DecompilationCommentContext from a JSON string -decompilation_comment_context_instance = DecompilationCommentContext.from_json(json) -# print the JSON string representation of the object -print(DecompilationCommentContext.to_json()) - -# convert the object into a dict -decompilation_comment_context_dict = decompilation_comment_context_instance.to_dict() -# create an instance of DecompilationCommentContext from a dict -decompilation_comment_context_from_dict = DecompilationCommentContext.from_dict(decompilation_comment_context_dict) -``` -[[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/DieMatch.md b/docs/DieMatch.md deleted file mode 100644 index eb88b3c3..00000000 --- a/docs/DieMatch.md +++ /dev/null @@ -1,32 +0,0 @@ -# DieMatch - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Canonical name of the matched signature/technology (e.g., 'UPX', 'GCC', 'MSVC'). | -**type** | **str** | Category assigned by DIE for the match (e.g., 'compiler', 'packer', 'file'). | -**display** | **str** | Human-readable description from DIE's 'string' field; suitable for UI/logs, not for parsing. | -**version** | **str** | Extracted version string when available; may be empty/None if unknown. | - -## Example - -```python -from revengai.models.die_match import DieMatch - -# TODO update the JSON string below -json = "{}" -# create an instance of DieMatch from a JSON string -die_match_instance = DieMatch.from_json(json) -# print the JSON string representation of the object -print(DieMatch.to_json()) - -# convert the object into a dict -die_match_dict = die_match_instance.to_dict() -# create an instance of DieMatch from a dict -die_match_from_dict = DieMatch.from_dict(die_match_dict) -``` -[[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 deleted file mode 100644 index 3efd30e3..00000000 --- a/docs/DynamicExecutionStatus.md +++ /dev/null @@ -1,19 +0,0 @@ -# DynamicExecutionStatus - -Custom enum for the dynamic execution status - -## Enum - -* `PENDING` (value: `'PENDING'`) - -* `ERROR` (value: `'ERROR'`) - -* `SUCCESS` (value: `'SUCCESS'`) - -* `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/ELFImportModel.md b/docs/ELFImportModel.md deleted file mode 100644 index 9ac0957e..00000000 --- a/docs/ELFImportModel.md +++ /dev/null @@ -1,30 +0,0 @@ -# ELFImportModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number_of_imports** | **int** | | -**imports** | **List[str]** | | - -## Example - -```python -from revengai.models.elf_import_model import ELFImportModel - -# TODO update the JSON string below -json = "{}" -# create an instance of ELFImportModel from a JSON string -elf_import_model_instance = ELFImportModel.from_json(json) -# print the JSON string representation of the object -print(ELFImportModel.to_json()) - -# convert the object into a dict -elf_import_model_dict = elf_import_model_instance.to_dict() -# create an instance of ELFImportModel from a dict -elf_import_model_from_dict = ELFImportModel.from_dict(elf_import_model_dict) -``` -[[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/ELFModel.md b/docs/ELFModel.md deleted file mode 100644 index d899a075..00000000 --- a/docs/ELFModel.md +++ /dev/null @@ -1,48 +0,0 @@ -# ELFModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file_type** | **str** | | -**architecture** | **str** | | -**endianness** | **str** | | -**entry_point** | **int** | | -**entry_point_bytes** | **str** | | -**import_hash** | **str** | | -**export_hash** | **str** | | -**build_id** | **str** | | -**security** | [**ELFSecurity**](ELFSecurity.md) | | -**sections** | [**List[ELFSection]**](ELFSection.md) | | -**segments** | [**List[ELFSegment]**](ELFSegment.md) | | -**symbols** | [**List[ELFSymbol]**](ELFSymbol.md) | | -**dynamic_symbols** | [**List[ELFSymbol]**](ELFSymbol.md) | | -**relocations** | [**List[ELFRelocation]**](ELFRelocation.md) | | -**imports** | [**ELFImportModel**](ELFImportModel.md) | | -**exported_functions** | **List[str]** | | -**dynamic_entries** | [**List[ElfDynamicEntry]**](ElfDynamicEntry.md) | | -**notes** | **List[Dict[str, object]]** | | -**debug_info** | **Dict[str, object]** | | -**version_info** | **Dict[str, object]** | | - -## Example - -```python -from revengai.models.elf_model import ELFModel - -# TODO update the JSON string below -json = "{}" -# create an instance of ELFModel from a JSON string -elf_model_instance = ELFModel.from_json(json) -# print the JSON string representation of the object -print(ELFModel.to_json()) - -# convert the object into a dict -elf_model_dict = elf_model_instance.to_dict() -# create an instance of ELFModel from a dict -elf_model_from_dict = ELFModel.from_dict(elf_model_dict) -``` -[[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/ELFRelocation.md b/docs/ELFRelocation.md deleted file mode 100644 index 9dcc26db..00000000 --- a/docs/ELFRelocation.md +++ /dev/null @@ -1,36 +0,0 @@ -# ELFRelocation - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **int** | | -**type** | **str** | | -**size** | **int** | | -**addend** | **int** | | -**symbol_name** | **str** | | -**is_dynamic** | **bool** | | -**is_pltgot** | **bool** | | -**is_unicode_symbol_name** | **bool** | | [optional] [default to True] - -## Example - -```python -from revengai.models.elf_relocation import ELFRelocation - -# TODO update the JSON string below -json = "{}" -# create an instance of ELFRelocation from a JSON string -elf_relocation_instance = ELFRelocation.from_json(json) -# print the JSON string representation of the object -print(ELFRelocation.to_json()) - -# convert the object into a dict -elf_relocation_dict = elf_relocation_instance.to_dict() -# create an instance of ELFRelocation from a dict -elf_relocation_from_dict = ELFRelocation.from_dict(elf_relocation_dict) -``` -[[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/ELFSection.md b/docs/ELFSection.md deleted file mode 100644 index 8229193e..00000000 --- a/docs/ELFSection.md +++ /dev/null @@ -1,38 +0,0 @@ -# ELFSection - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**type** | **str** | | -**virtual_address** | **int** | | -**virtual_size** | **int** | | -**raw_size** | **int** | | -**file_offset** | **int** | | -**flags** | **str** | | -**flags_raw** | **int** | | -**entropy** | **float** | | -**alignment** | **int** | | - -## Example - -```python -from revengai.models.elf_section import ELFSection - -# TODO update the JSON string below -json = "{}" -# create an instance of ELFSection from a JSON string -elf_section_instance = ELFSection.from_json(json) -# print the JSON string representation of the object -print(ELFSection.to_json()) - -# convert the object into a dict -elf_section_dict = elf_section_instance.to_dict() -# create an instance of ELFSection from a dict -elf_section_from_dict = ELFSection.from_dict(elf_section_dict) -``` -[[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/ELFSecurity.md b/docs/ELFSecurity.md deleted file mode 100644 index 38e4d9b2..00000000 --- a/docs/ELFSecurity.md +++ /dev/null @@ -1,33 +0,0 @@ -# ELFSecurity - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pie** | **bool** | | -**stripped** | **bool** | | -**canary** | **bool** | | -**nx** | **bool** | | -**relo** | **bool** | | - -## Example - -```python -from revengai.models.elf_security import ELFSecurity - -# TODO update the JSON string below -json = "{}" -# create an instance of ELFSecurity from a JSON string -elf_security_instance = ELFSecurity.from_json(json) -# print the JSON string representation of the object -print(ELFSecurity.to_json()) - -# convert the object into a dict -elf_security_dict = elf_security_instance.to_dict() -# create an instance of ELFSecurity from a dict -elf_security_from_dict = ELFSecurity.from_dict(elf_security_dict) -``` -[[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/ELFSegment.md b/docs/ELFSegment.md deleted file mode 100644 index 5773c6c4..00000000 --- a/docs/ELFSegment.md +++ /dev/null @@ -1,37 +0,0 @@ -# ELFSegment - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**virtual_address** | **int** | | -**virtual_size** | **int** | | -**physical_address** | **int** | | -**physical_size** | **int** | | -**file_offset** | **int** | | -**flags** | **str** | | -**flags_raw** | **int** | | -**alignment** | **int** | | - -## Example - -```python -from revengai.models.elf_segment import ELFSegment - -# TODO update the JSON string below -json = "{}" -# create an instance of ELFSegment from a JSON string -elf_segment_instance = ELFSegment.from_json(json) -# print the JSON string representation of the object -print(ELFSegment.to_json()) - -# convert the object into a dict -elf_segment_dict = elf_segment_instance.to_dict() -# create an instance of ELFSegment from a dict -elf_segment_from_dict = ELFSegment.from_dict(elf_segment_dict) -``` -[[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/ELFSymbol.md b/docs/ELFSymbol.md deleted file mode 100644 index 20ace482..00000000 --- a/docs/ELFSymbol.md +++ /dev/null @@ -1,36 +0,0 @@ -# ELFSymbol - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**value** | **int** | | -**size** | **int** | | -**type** | **str** | | -**binding** | **str** | | -**visibility** | **str** | | -**section_index** | **int** | | -**is_unicode_name** | **bool** | | [optional] [default to True] - -## Example - -```python -from revengai.models.elf_symbol import ELFSymbol - -# TODO update the JSON string below -json = "{}" -# create an instance of ELFSymbol from a JSON string -elf_symbol_instance = ELFSymbol.from_json(json) -# print the JSON string representation of the object -print(ELFSymbol.to_json()) - -# convert the object into a dict -elf_symbol_dict = elf_symbol_instance.to_dict() -# create an instance of ELFSymbol from a dict -elf_symbol_from_dict = ELFSymbol.from_dict(elf_symbol_dict) -``` -[[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/ElfDynamicEntry.md b/docs/ElfDynamicEntry.md deleted file mode 100644 index c5481de5..00000000 --- a/docs/ElfDynamicEntry.md +++ /dev/null @@ -1,30 +0,0 @@ -# ElfDynamicEntry - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tag** | **str** | | -**value** | **int** | | - -## Example - -```python -from revengai.models.elf_dynamic_entry import ElfDynamicEntry - -# TODO update the JSON string below -json = "{}" -# create an instance of ElfDynamicEntry from a JSON string -elf_dynamic_entry_instance = ElfDynamicEntry.from_json(json) -# print the JSON string representation of the object -print(ElfDynamicEntry.to_json()) - -# convert the object into a dict -elf_dynamic_entry_dict = elf_dynamic_entry_instance.to_dict() -# create an instance of ElfDynamicEntry from a dict -elf_dynamic_entry_from_dict = ElfDynamicEntry.from_dict(elf_dynamic_entry_dict) -``` -[[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/EntrypointModel.md b/docs/EntrypointModel.md deleted file mode 100644 index 546b0cb9..00000000 --- a/docs/EntrypointModel.md +++ /dev/null @@ -1,30 +0,0 @@ -# EntrypointModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **int** | | -**first_bytes** | **str** | | - -## Example - -```python -from revengai.models.entrypoint_model import EntrypointModel - -# TODO update the JSON string below -json = "{}" -# create an instance of EntrypointModel from a JSON string -entrypoint_model_instance = EntrypointModel.from_json(json) -# print the JSON string representation of the object -print(EntrypointModel.to_json()) - -# convert the object into a dict -entrypoint_model_dict = entrypoint_model_instance.to_dict() -# create an instance of EntrypointModel from a dict -entrypoint_model_from_dict = EntrypointModel.from_dict(entrypoint_model_dict) -``` -[[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/Enumeration.md b/docs/Enumeration.md deleted file mode 100644 index 6a9d0229..00000000 --- a/docs/Enumeration.md +++ /dev/null @@ -1,32 +0,0 @@ -# Enumeration - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] -**name** | **str** | Name of the enumeration | -**members** | **Dict[str, int]** | Dictionary of enumeration members and their values | -**artifact_type** | **str** | Type of artifact that the enumeration is associated with | [optional] - -## Example - -```python -from revengai.models.enumeration import Enumeration - -# TODO update the JSON string below -json = "{}" -# create an instance of Enumeration from a JSON string -enumeration_instance = Enumeration.from_json(json) -# print the JSON string representation of the object -print(Enumeration.to_json()) - -# convert the object into a dict -enumeration_dict = enumeration_instance.to_dict() -# create an instance of Enumeration from a dict -enumeration_from_dict = Enumeration.from_dict(enumeration_dict) -``` -[[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/ErrorModel.md b/docs/ErrorModel.md deleted file mode 100644 index e7c8f92d..00000000 --- a/docs/ErrorModel.md +++ /dev/null @@ -1,30 +0,0 @@ -# ErrorModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | | -**message** | **str** | | - -## Example - -```python -from revengai.models.error_model import ErrorModel - -# TODO update the JSON string below -json = "{}" -# create an instance of ErrorModel from a JSON string -error_model_instance = ErrorModel.from_json(json) -# print the JSON string representation of the object -print(ErrorModel.to_json()) - -# convert the object into a dict -error_model_dict = error_model_instance.to_dict() -# create an instance of ErrorModel from a dict -error_model_from_dict = ErrorModel.from_dict(error_model_dict) -``` -[[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/ExportModel.md b/docs/ExportModel.md deleted file mode 100644 index 2b157d18..00000000 --- a/docs/ExportModel.md +++ /dev/null @@ -1,30 +0,0 @@ -# ExportModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number_of_exports** | **int** | | -**exports** | **List[Dict[str, int]]** | | - -## Example - -```python -from revengai.models.export_model import ExportModel - -# TODO update the JSON string below -json = "{}" -# create an instance of ExportModel from a JSON string -export_model_instance = ExportModel.from_json(json) -# print the JSON string representation of the object -print(ExportModel.to_json()) - -# convert the object into a dict -export_model_dict = export_model_instance.to_dict() -# create an instance of ExportModel from a dict -export_model_from_dict = ExportModel.from_dict(export_model_dict) -``` -[[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/ExternalResponse.md b/docs/ExternalResponse.md deleted file mode 100644 index 20de996e..00000000 --- a/docs/ExternalResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# ExternalResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sha_256_hash** | **str** | | -**data** | **Dict[str, object]** | | -**last_updated** | **datetime** | | - -## Example - -```python -from revengai.models.external_response import ExternalResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ExternalResponse from a JSON string -external_response_instance = ExternalResponse.from_json(json) -# print the JSON string representation of the object -print(ExternalResponse.to_json()) - -# convert the object into a dict -external_response_dict = external_response_instance.to_dict() -# create an instance of ExternalResponse from a dict -external_response_from_dict = ExternalResponse.from_dict(external_response_dict) -``` -[[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/ExternalSourcesApi.md b/docs/ExternalSourcesApi.md deleted file mode 100644 index 10c98d0f..00000000 --- a/docs/ExternalSourcesApi.md +++ /dev/null @@ -1,265 +0,0 @@ -# revengai.ExternalSourcesApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_external_task_vt**](ExternalSourcesApi.md#create_external_task_vt) | **POST** /v2/analysis/{analysis_id}/external/vt | Pulls data from VirusTotal -[**get_vt_data**](ExternalSourcesApi.md#get_vt_data) | **GET** /v2/analysis/{analysis_id}/external/vt | Get VirusTotal data -[**get_vt_task_status**](ExternalSourcesApi.md#get_vt_task_status) | **GET** /v2/analysis/{analysis_id}/external/vt/status | Check the status of VirusTotal data retrieval - - -# **create_external_task_vt** -> BaseResponseStr create_external_task_vt(analysis_id) - -Pulls data from VirusTotal - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_str import BaseResponseStr -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.ExternalSourcesApi(api_client) - analysis_id = 56 # int | - - try: - # Pulls data from VirusTotal - api_response = api_instance.create_external_task_vt(analysis_id) - print("The response of ExternalSourcesApi->create_external_task_vt:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ExternalSourcesApi->create_external_task_vt: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseStr**](BaseResponseStr.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**202** | Successful Response | - | -**422** | Invalid request parameters | - | -**409** | Request already queued | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_vt_data** -> BaseResponseExternalResponse get_vt_data(analysis_id) - -Get VirusTotal data - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_external_response import BaseResponseExternalResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.ExternalSourcesApi(api_client) - analysis_id = 56 # int | - - try: - # Get VirusTotal data - api_response = api_instance.get_vt_data(analysis_id) - print("The response of ExternalSourcesApi->get_vt_data:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ExternalSourcesApi->get_vt_data: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseExternalResponse**](BaseResponseExternalResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | -**404** | No data retrieved from VirusTotal for the given analysis_id | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_vt_task_status** -> BaseResponseTaskResponse get_vt_task_status(analysis_id) - -Check the status of VirusTotal data retrieval - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_task_response import BaseResponseTaskResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.ExternalSourcesApi(api_client) - analysis_id = 56 # int | - - try: - # Check the status of VirusTotal data retrieval - api_response = api_instance.get_vt_task_status(analysis_id) - print("The response of ExternalSourcesApi->get_vt_task_status:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ExternalSourcesApi->get_vt_task_status: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseTaskResponse**](BaseResponseTaskResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/FileFormat.md b/docs/FileFormat.md deleted file mode 100644 index 18e78edf..00000000 --- a/docs/FileFormat.md +++ /dev/null @@ -1,16 +0,0 @@ -# FileFormat - - -## Enum - -* `PE` (value: `'pe'`) - -* `ELF` (value: `'elf'`) - -* `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/FileHashes.md b/docs/FileHashes.md deleted file mode 100644 index 95e2ae13..00000000 --- a/docs/FileHashes.md +++ /dev/null @@ -1,36 +0,0 @@ -# FileHashes - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**md5** | **str** | | -**sha1** | **str** | | -**sha256** | **str** | | -**sha512** | **str** | | -**sha3_224** | **str** | | -**sha3_256** | **str** | | -**sha3_384** | **str** | | -**sha3_512** | **str** | | - -## Example - -```python -from revengai.models.file_hashes import FileHashes - -# TODO update the JSON string below -json = "{}" -# create an instance of FileHashes from a JSON string -file_hashes_instance = FileHashes.from_json(json) -# print the JSON string representation of the object -print(FileHashes.to_json()) - -# convert the object into a dict -file_hashes_dict = file_hashes_instance.to_dict() -# create an instance of FileHashes from a dict -file_hashes_from_dict = FileHashes.from_dict(file_hashes_dict) -``` -[[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/FileMetadata.md b/docs/FileMetadata.md deleted file mode 100644 index 474856f5..00000000 --- a/docs/FileMetadata.md +++ /dev/null @@ -1,32 +0,0 @@ -# FileMetadata - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**size** | **int** | | -**friendly_size** | **str** | | -**entropy** | **float** | | -**hashes** | [**FileHashes**](FileHashes.md) | | - -## Example - -```python -from revengai.models.file_metadata import FileMetadata - -# TODO update the JSON string below -json = "{}" -# create an instance of FileMetadata from a JSON string -file_metadata_instance = FileMetadata.from_json(json) -# print the JSON string representation of the object -print(FileMetadata.to_json()) - -# convert the object into a dict -file_metadata_dict = file_metadata_instance.to_dict() -# create an instance of FileMetadata from a dict -file_metadata_from_dict = FileMetadata.from_dict(file_metadata_dict) -``` -[[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 deleted file mode 100644 index 00f32773..00000000 --- a/docs/Filters.md +++ /dev/null @@ -1,20 +0,0 @@ -# Filters - - -## Enum - -* `OFFICIAL_ONLY` (value: `'official_only'`) - -* `USER_ONLY` (value: `'user_only'`) - -* `TEAM_ONLY` (value: `'team_only'`) - -* `PUBLIC_ONLY` (value: `'public_only'`) - -* `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/FirmwareApi.md b/docs/FirmwareApi.md deleted file mode 100644 index 7baf42ac..00000000 --- a/docs/FirmwareApi.md +++ /dev/null @@ -1,183 +0,0 @@ -# revengai.FirmwareApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_binaries_for_firmware_task**](FirmwareApi.md#get_binaries_for_firmware_task) | **GET** /v2/firmware/get-binaries/{task_id} | Upload firmware for unpacking -[**upload_firmware**](FirmwareApi.md#upload_firmware) | **POST** /v2/firmware | Upload firmware for unpacking - - -# **get_binaries_for_firmware_task** -> object get_binaries_for_firmware_task(task_id) - -Upload firmware for unpacking - -Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FirmwareApi(api_client) - task_id = 'task_id_example' # str | - - try: - # Upload firmware for unpacking - api_response = api_instance.get_binaries_for_firmware_task(task_id) - print("The response of FirmwareApi->get_binaries_for_firmware_task:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FirmwareApi->get_binaries_for_firmware_task: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **task_id** | **str**| | - -### Return type - -**object** - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **upload_firmware** -> object upload_firmware(file, password=password) - -Upload firmware for unpacking - -Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FirmwareApi(api_client) - file = 'file_example' # str | - password = 'password_example' # str | (optional) - - try: - # Upload firmware for unpacking - api_response = api_instance.upload_firmware(file, password=password) - print("The response of FirmwareApi->upload_firmware:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FirmwareApi->upload_firmware: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file** | **str**| | - **password** | **str**| | [optional] - -### Return type - -**object** - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Unprocessable Entity | - | -**500** | Internal Server Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/FunctionBlockDestinationResponse.md b/docs/FunctionBlockDestinationResponse.md deleted file mode 100644 index 79530051..00000000 --- a/docs/FunctionBlockDestinationResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# FunctionBlockDestinationResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**destination_block_id** | **int** | | -**flowtype** | **str** | The type of execution flow between chunks | -**vaddr** | **str** | The vaddr of the destination where the execution flow continues from | - -## Example - -```python -from revengai.models.function_block_destination_response import FunctionBlockDestinationResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionBlockDestinationResponse from a JSON string -function_block_destination_response_instance = FunctionBlockDestinationResponse.from_json(json) -# print the JSON string representation of the object -print(FunctionBlockDestinationResponse.to_json()) - -# convert the object into a dict -function_block_destination_response_dict = function_block_destination_response_instance.to_dict() -# create an instance of FunctionBlockDestinationResponse from a dict -function_block_destination_response_from_dict = FunctionBlockDestinationResponse.from_dict(function_block_destination_response_dict) -``` -[[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/FunctionBlockResponse.md b/docs/FunctionBlockResponse.md deleted file mode 100644 index 685704d5..00000000 --- a/docs/FunctionBlockResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FunctionBlockResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asm** | **List[str]** | The ordered assembly strings for this chunk | -**id** | **int** | ID of the block | -**min_addr** | **int** | The minimum vaddr of the block | -**max_addr** | **int** | The maximum vaddr of the block | -**destinations** | [**List[FunctionBlockDestinationResponse]**](FunctionBlockDestinationResponse.md) | The potential execution flow destinations from this block | -**comment** | **str** | | [optional] - -## Example - -```python -from revengai.models.function_block_response import FunctionBlockResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionBlockResponse from a JSON string -function_block_response_instance = FunctionBlockResponse.from_json(json) -# print the JSON string representation of the object -print(FunctionBlockResponse.to_json()) - -# convert the object into a dict -function_block_response_dict = function_block_response_instance.to_dict() -# create an instance of FunctionBlockResponse from a dict -function_block_response_from_dict = FunctionBlockResponse.from_dict(function_block_response_dict) -``` -[[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/FunctionBlocksResponse.md b/docs/FunctionBlocksResponse.md deleted file mode 100644 index 630dd02a..00000000 --- a/docs/FunctionBlocksResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# FunctionBlocksResponse - -Response for returning disassembly of a function. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**blocks** | [**List[FunctionBlockResponse]**](FunctionBlockResponse.md) | Disassembly is broken into control flow blocks | -**local_variables** | [**List[FunctionLocalVariableResponse]**](FunctionLocalVariableResponse.md) | Local variables associated with this function | -**params** | [**List[FunctionParamResponse]**](FunctionParamResponse.md) | Params associated with this function | -**overview_comment** | **str** | | [optional] - -## Example - -```python -from revengai.models.function_blocks_response import FunctionBlocksResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionBlocksResponse from a JSON string -function_blocks_response_instance = FunctionBlocksResponse.from_json(json) -# print the JSON string representation of the object -print(FunctionBlocksResponse.to_json()) - -# convert the object into a dict -function_blocks_response_dict = function_blocks_response_instance.to_dict() -# create an instance of FunctionBlocksResponse from a dict -function_blocks_response_from_dict = FunctionBlocksResponse.from_dict(function_blocks_response_dict) -``` -[[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/FunctionBoundary.md b/docs/FunctionBoundary.md deleted file mode 100644 index d94f0b2b..00000000 --- a/docs/FunctionBoundary.md +++ /dev/null @@ -1,32 +0,0 @@ -# FunctionBoundary - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mangled_name** | **str** | | -**start_address** | **int** | | -**end_address** | **int** | | -**include_in_analysis** | **bool** | | [optional] - -## Example - -```python -from revengai.models.function_boundary import FunctionBoundary - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionBoundary from a JSON string -function_boundary_instance = FunctionBoundary.from_json(json) -# print the JSON string representation of the object -print(FunctionBoundary.to_json()) - -# convert the object into a dict -function_boundary_dict = function_boundary_instance.to_dict() -# create an instance of FunctionBoundary from a dict -function_boundary_from_dict = FunctionBoundary.from_dict(function_boundary_dict) -``` -[[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/FunctionCapabilityResponse.md b/docs/FunctionCapabilityResponse.md deleted file mode 100644 index ce3ec8e0..00000000 --- a/docs/FunctionCapabilityResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# FunctionCapabilityResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capabilities** | **List[str]** | The capabilities of the function | - -## Example - -```python -from revengai.models.function_capability_response import FunctionCapabilityResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionCapabilityResponse from a JSON string -function_capability_response_instance = FunctionCapabilityResponse.from_json(json) -# print the JSON string representation of the object -print(FunctionCapabilityResponse.to_json()) - -# convert the object into a dict -function_capability_response_dict = function_capability_response_instance.to_dict() -# create an instance of FunctionCapabilityResponse from a dict -function_capability_response_from_dict = FunctionCapabilityResponse.from_dict(function_capability_response_dict) -``` -[[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/FunctionDataTypes.md b/docs/FunctionDataTypes.md deleted file mode 100644 index 4d2de0ec..00000000 --- a/docs/FunctionDataTypes.md +++ /dev/null @@ -1,32 +0,0 @@ -# FunctionDataTypes - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**completed** | **bool** | Whether the service has completed data types generation | -**status** | **str** | The current status of the data types service | -**data_types** | [**V2FunctionInfo**](V2FunctionInfo.md) | | [optional] -**data_types_version** | **int** | | [optional] - -## Example - -```python -from revengai.models.function_data_types import FunctionDataTypes - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionDataTypes from a JSON string -function_data_types_instance = FunctionDataTypes.from_json(json) -# print the JSON string representation of the object -print(FunctionDataTypes.to_json()) - -# convert the object into a dict -function_data_types_dict = function_data_types_instance.to_dict() -# create an instance of FunctionDataTypes from a dict -function_data_types_from_dict = FunctionDataTypes.from_dict(function_data_types_dict) -``` -[[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/FunctionDataTypesList.md b/docs/FunctionDataTypesList.md deleted file mode 100644 index 31535113..00000000 --- a/docs/FunctionDataTypesList.md +++ /dev/null @@ -1,31 +0,0 @@ -# FunctionDataTypesList - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_count** | **int** | Total number of functions in analysis | [optional] [default to 0] -**total_data_types_count** | **int** | Total number of functions with data types | [optional] [default to 0] -**items** | [**List[FunctionDataTypesListItem]**](FunctionDataTypesListItem.md) | List of function data types information | - -## Example - -```python -from revengai.models.function_data_types_list import FunctionDataTypesList - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionDataTypesList from a JSON string -function_data_types_list_instance = FunctionDataTypesList.from_json(json) -# print the JSON string representation of the object -print(FunctionDataTypesList.to_json()) - -# convert the object into a dict -function_data_types_list_dict = function_data_types_list_instance.to_dict() -# create an instance of FunctionDataTypesList from a dict -function_data_types_list_from_dict = FunctionDataTypesList.from_dict(function_data_types_list_dict) -``` -[[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/FunctionDataTypesListItem.md b/docs/FunctionDataTypesListItem.md deleted file mode 100644 index 3d55b95c..00000000 --- a/docs/FunctionDataTypesListItem.md +++ /dev/null @@ -1,33 +0,0 @@ -# FunctionDataTypesListItem - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**completed** | **bool** | Whether the service has completed data types generation | -**status** | **str** | The current status of the data types service | -**data_types** | [**V2FunctionInfo**](V2FunctionInfo.md) | | [optional] -**data_types_version** | **int** | | [optional] -**function_id** | **int** | Function id | - -## Example - -```python -from revengai.models.function_data_types_list_item import FunctionDataTypesListItem - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionDataTypesListItem from a JSON string -function_data_types_list_item_instance = FunctionDataTypesListItem.from_json(json) -# print the JSON string representation of the object -print(FunctionDataTypesListItem.to_json()) - -# convert the object into a dict -function_data_types_list_item_dict = function_data_types_list_item_instance.to_dict() -# create an instance of FunctionDataTypesListItem from a dict -function_data_types_list_item_from_dict = FunctionDataTypesListItem.from_dict(function_data_types_list_item_dict) -``` -[[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/FunctionDataTypesParams.md b/docs/FunctionDataTypesParams.md deleted file mode 100644 index d400fe7e..00000000 --- a/docs/FunctionDataTypesParams.md +++ /dev/null @@ -1,29 +0,0 @@ -# FunctionDataTypesParams - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_ids** | **List[int]** | The function ID's to generate/get data types for | - -## Example - -```python -from revengai.models.function_data_types_params import FunctionDataTypesParams - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionDataTypesParams from a JSON string -function_data_types_params_instance = FunctionDataTypesParams.from_json(json) -# print the JSON string representation of the object -print(FunctionDataTypesParams.to_json()) - -# convert the object into a dict -function_data_types_params_dict = function_data_types_params_instance.to_dict() -# create an instance of FunctionDataTypesParams from a dict -function_data_types_params_from_dict = FunctionDataTypesParams.from_dict(function_data_types_params_dict) -``` -[[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/FunctionDataTypesStatus.md b/docs/FunctionDataTypesStatus.md deleted file mode 100644 index c2964262..00000000 --- a/docs/FunctionDataTypesStatus.md +++ /dev/null @@ -1,31 +0,0 @@ -# FunctionDataTypesStatus - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_id** | **int** | Function id | -**completed** | **bool** | Whether the service has completed data types generation | -**status** | **str** | The current status of the data types service | - -## Example - -```python -from revengai.models.function_data_types_status import FunctionDataTypesStatus - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionDataTypesStatus from a JSON string -function_data_types_status_instance = FunctionDataTypesStatus.from_json(json) -# print the JSON string representation of the object -print(FunctionDataTypesStatus.to_json()) - -# convert the object into a dict -function_data_types_status_dict = function_data_types_status_instance.to_dict() -# create an instance of FunctionDataTypesStatus from a dict -function_data_types_status_from_dict = FunctionDataTypesStatus.from_dict(function_data_types_status_dict) -``` -[[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/FunctionListItem.md b/docs/FunctionListItem.md deleted file mode 100644 index 36df9b84..00000000 --- a/docs/FunctionListItem.md +++ /dev/null @@ -1,36 +0,0 @@ -# FunctionListItem - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | Function id | -**name** | **str** | Name of the function | -**name_source_type** | **str** | The source (process) the function name came from | -**name_source** | [**NameSourceType**](NameSourceType.md) | The source of the current function name. | -**mangled_name** | **str** | Mangled name of the function | -**vaddr** | **int** | Function virtual address | -**size** | **int** | Function size in bytes | -**debug** | **bool** | Whether the function has debug information | - -## Example - -```python -from revengai.models.function_list_item import FunctionListItem - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionListItem from a JSON string -function_list_item_instance = FunctionListItem.from_json(json) -# print the JSON string representation of the object -print(FunctionListItem.to_json()) - -# convert the object into a dict -function_list_item_dict = function_list_item_instance.to_dict() -# create an instance of FunctionListItem from a dict -function_list_item_from_dict = FunctionListItem.from_dict(function_list_item_dict) -``` -[[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/FunctionLocalVariableResponse.md b/docs/FunctionLocalVariableResponse.md deleted file mode 100644 index 9a967bd4..00000000 --- a/docs/FunctionLocalVariableResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# FunctionLocalVariableResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **str** | | -**d_type** | **str** | | -**size** | **int** | | -**loc** | **str** | | -**name** | **str** | | - -## Example - -```python -from revengai.models.function_local_variable_response import FunctionLocalVariableResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionLocalVariableResponse from a JSON string -function_local_variable_response_instance = FunctionLocalVariableResponse.from_json(json) -# print the JSON string representation of the object -print(FunctionLocalVariableResponse.to_json()) - -# convert the object into a dict -function_local_variable_response_dict = function_local_variable_response_instance.to_dict() -# create an instance of FunctionLocalVariableResponse from a dict -function_local_variable_response_from_dict = FunctionLocalVariableResponse.from_dict(function_local_variable_response_dict) -``` -[[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/FunctionMapping.md b/docs/FunctionMapping.md deleted file mode 100644 index 4388071c..00000000 --- a/docs/FunctionMapping.md +++ /dev/null @@ -1,31 +0,0 @@ -# FunctionMapping - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_map** | **Dict[str, int]** | Mapping of remote function ids to local function addresses | -**inverse_function_map** | **Dict[str, int]** | Mapping of local function addresses to remote function ids | -**name_map** | **Dict[str, str]** | Mapping of local function addresses to mangled names | - -## Example - -```python -from revengai.models.function_mapping import FunctionMapping - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionMapping from a JSON string -function_mapping_instance = FunctionMapping.from_json(json) -# print the JSON string representation of the object -print(FunctionMapping.to_json()) - -# convert the object into a dict -function_mapping_dict = function_mapping_instance.to_dict() -# create an instance of FunctionMapping from a dict -function_mapping_from_dict = FunctionMapping.from_dict(function_mapping_dict) -``` -[[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/FunctionNameHistory.md b/docs/FunctionNameHistory.md deleted file mode 100644 index 72675b40..00000000 --- a/docs/FunctionNameHistory.md +++ /dev/null @@ -1,35 +0,0 @@ -# FunctionNameHistory - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**history_id** | **int** | The ID of the history record | -**change_made_by** | **str** | The user who made the change | -**function_name** | **str** | The name of the function | -**mangled_name** | **str** | The mangled name of the function | -**is_debug** | **bool** | Whether the function is debugged | -**source_type** | [**FunctionSourceType**](FunctionSourceType.md) | The source type of the function | -**created_at** | **str** | The timestamp when the function name was created | - -## Example - -```python -from revengai.models.function_name_history import FunctionNameHistory - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionNameHistory from a JSON string -function_name_history_instance = FunctionNameHistory.from_json(json) -# print the JSON string representation of the object -print(FunctionNameHistory.to_json()) - -# convert the object into a dict -function_name_history_dict = function_name_history_instance.to_dict() -# create an instance of FunctionNameHistory from a dict -function_name_history_from_dict = FunctionNameHistory.from_dict(function_name_history_dict) -``` -[[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/FunctionParamResponse.md b/docs/FunctionParamResponse.md deleted file mode 100644 index 2a156bbb..00000000 --- a/docs/FunctionParamResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# FunctionParamResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**d_type** | **str** | | -**loc** | **str** | | -**addr** | **str** | | -**length** | **int** | | -**name** | **str** | | - -## Example - -```python -from revengai.models.function_param_response import FunctionParamResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionParamResponse from a JSON string -function_param_response_instance = FunctionParamResponse.from_json(json) -# print the JSON string representation of the object -print(FunctionParamResponse.to_json()) - -# convert the object into a dict -function_param_response_dict = function_param_response_instance.to_dict() -# create an instance of FunctionParamResponse from a dict -function_param_response_from_dict = FunctionParamResponse.from_dict(function_param_response_dict) -``` -[[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/FunctionRename.md b/docs/FunctionRename.md deleted file mode 100644 index 482ac814..00000000 --- a/docs/FunctionRename.md +++ /dev/null @@ -1,30 +0,0 @@ -# FunctionRename - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**new_name** | **str** | The new name for the function | -**new_mangled_name** | **str** | The new mangled name for the function | - -## Example - -```python -from revengai.models.function_rename import FunctionRename - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionRename from a JSON string -function_rename_instance = FunctionRename.from_json(json) -# print the JSON string representation of the object -print(FunctionRename.to_json()) - -# convert the object into a dict -function_rename_dict = function_rename_instance.to_dict() -# create an instance of FunctionRename from a dict -function_rename_from_dict = FunctionRename.from_dict(function_rename_dict) -``` -[[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/FunctionRenameMap.md b/docs/FunctionRenameMap.md deleted file mode 100644 index 3c21185e..00000000 --- a/docs/FunctionRenameMap.md +++ /dev/null @@ -1,31 +0,0 @@ -# FunctionRenameMap - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_id** | **int** | The ID of the function to rename | -**new_name** | **str** | The new name for the function | -**new_mangled_name** | **str** | The new mangled name for the function | - -## Example - -```python -from revengai.models.function_rename_map import FunctionRenameMap - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionRenameMap from a JSON string -function_rename_map_instance = FunctionRenameMap.from_json(json) -# print the JSON string representation of the object -print(FunctionRenameMap.to_json()) - -# convert the object into a dict -function_rename_map_dict = function_rename_map_instance.to_dict() -# create an instance of FunctionRenameMap from a dict -function_rename_map_from_dict = FunctionRenameMap.from_dict(function_rename_map_dict) -``` -[[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/FunctionSearchResponse.md b/docs/FunctionSearchResponse.md deleted file mode 100644 index f9f379f9..00000000 --- a/docs/FunctionSearchResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# FunctionSearchResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**List[FunctionSearchResult]**](FunctionSearchResult.md) | The results of the search | - -## Example - -```python -from revengai.models.function_search_response import FunctionSearchResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionSearchResponse from a JSON string -function_search_response_instance = FunctionSearchResponse.from_json(json) -# print the JSON string representation of the object -print(FunctionSearchResponse.to_json()) - -# convert the object into a dict -function_search_response_dict = function_search_response_instance.to_dict() -# create an instance of FunctionSearchResponse from a dict -function_search_response_from_dict = FunctionSearchResponse.from_dict(function_search_response_dict) -``` -[[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/FunctionSearchResult.md b/docs/FunctionSearchResult.md deleted file mode 100644 index 92432f69..00000000 --- a/docs/FunctionSearchResult.md +++ /dev/null @@ -1,35 +0,0 @@ -# FunctionSearchResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_id** | **int** | The function ID | -**function_name** | **str** | The name of the function | -**binary_name** | **str** | The name of the binary the function belongs to | -**created_at** | **datetime** | The creation date of the function | -**model_id** | **int** | The model ID used to analyze the binary the function belongs to | -**model_name** | **str** | The name of the model used to analyze the binary the function belongs to | -**owned_by** | **str** | The owner of the binary the function belongs to | - -## Example - -```python -from revengai.models.function_search_result import FunctionSearchResult - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionSearchResult from a JSON string -function_search_result_instance = FunctionSearchResult.from_json(json) -# print the JSON string representation of the object -print(FunctionSearchResult.to_json()) - -# convert the object into a dict -function_search_result_dict = function_search_result_instance.to_dict() -# create an instance of FunctionSearchResult from a dict -function_search_result_from_dict = FunctionSearchResult.from_dict(function_search_result_dict) -``` -[[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 deleted file mode 100644 index 4445fe42..00000000 --- a/docs/FunctionSourceType.md +++ /dev/null @@ -1,22 +0,0 @@ -# FunctionSourceType - - -## Enum - -* `SYSTEM` (value: `'SYSTEM'`) - -* `USER` (value: `'USER'`) - -* `EXTERNAL` (value: `'EXTERNAL'`) - -* `AUTO_UNSTRIP` (value: `'AUTO_UNSTRIP'`) - -* `AI_UNSTRIP` (value: `'AI_UNSTRIP'`) - -* `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/FunctionString.md b/docs/FunctionString.md deleted file mode 100644 index 3c5bb2dd..00000000 --- a/docs/FunctionString.md +++ /dev/null @@ -1,31 +0,0 @@ -# FunctionString - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | The value of the string literal | -**vaddr** | **int** | The vaddr of the string value | -**source** | [**StringSource**](StringSource.md) | The source of the string | [optional] - -## Example - -```python -from revengai.models.function_string import FunctionString - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionString from a JSON string -function_string_instance = FunctionString.from_json(json) -# print the JSON string representation of the object -print(FunctionString.to_json()) - -# convert the object into a dict -function_string_dict = function_string_instance.to_dict() -# create an instance of FunctionString from a dict -function_string_from_dict = FunctionString.from_dict(function_string_dict) -``` -[[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/FunctionStringsResponse.md b/docs/FunctionStringsResponse.md deleted file mode 100644 index bf9061c1..00000000 --- a/docs/FunctionStringsResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# FunctionStringsResponse - -Response for listing all the strings of a function. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**strings** | [**List[FunctionString]**](FunctionString.md) | The strings associated with this function | -**total_strings** | **int** | The total number of strings associated with this function | - -## Example - -```python -from revengai.models.function_strings_response import FunctionStringsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionStringsResponse from a JSON string -function_strings_response_instance = FunctionStringsResponse.from_json(json) -# print the JSON string representation of the object -print(FunctionStringsResponse.to_json()) - -# convert the object into a dict -function_strings_response_dict = function_strings_response_instance.to_dict() -# create an instance of FunctionStringsResponse from a dict -function_strings_response_from_dict = FunctionStringsResponse.from_dict(function_strings_response_dict) -``` -[[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 add9b55f..7dbbac87 100644 --- a/docs/FunctionsAIDecompilationApi.md +++ b/docs/FunctionsAIDecompilationApi.md @@ -9,7 +9,6 @@ Method | HTTP request | Description [**get_ai_decompilation**](FunctionsAIDecompilationApi.md#get_ai_decompilation) | **GET** /v3/functions/{function_id}/ai-decompilation | Get AI decompilation result [**get_ai_decompilation_inline_comments**](FunctionsAIDecompilationApi.md#get_ai_decompilation_inline_comments) | **GET** /v3/functions/{function_id}/ai-decompilation/inline-comments | Get AI decompilation inline comments [**get_ai_decompilation_inline_comments_status**](FunctionsAIDecompilationApi.md#get_ai_decompilation_inline_comments_status) | **GET** /v3/functions/{function_id}/ai-decompilation/inline-comments/status | Get inline comments generation workflow status -[**get_ai_decompilation_rating**](FunctionsAIDecompilationApi.md#get_ai_decompilation_rating) | **GET** /v2/functions/{function_id}/ai-decompilation/rating | Get rating for AI decompilation [**get_ai_decompilation_status**](FunctionsAIDecompilationApi.md#get_ai_decompilation_status) | **GET** /v3/functions/{function_id}/ai-decompilation/status | Get AI decompilation workflow status [**get_ai_decompilation_summary**](FunctionsAIDecompilationApi.md#get_ai_decompilation_summary) | **GET** /v3/functions/{function_id}/ai-decompilation/summary | Get AI decompilation summary [**get_ai_decompilation_summary_status**](FunctionsAIDecompilationApi.md#get_ai_decompilation_summary_status) | **GET** /v3/functions/{function_id}/ai-decompilation/summary/status | Get summary generation workflow status @@ -19,7 +18,6 @@ Method | HTTP request | Description [**regenerate_ai_decompilation_summary**](FunctionsAIDecompilationApi.md#regenerate_ai_decompilation_summary) | **POST** /v3/functions/{function_id}/ai-decompilation/summary | Regenerate AI decompilation summary [**stream_ai_decompilation**](FunctionsAIDecompilationApi.md#stream_ai_decompilation) | **GET** /v3/functions/{function_id}/ai-decompilation/events | Stream live AI decompilation output (SSE) [**upsert_ai_decompilation_overrides**](FunctionsAIDecompilationApi.md#upsert_ai_decompilation_overrides) | **PATCH** /v3/functions/{function_id}/ai-decompilation/overrides | Upsert variable/function name overrides -[**upsert_ai_decompilation_rating**](FunctionsAIDecompilationApi.md#upsert_ai_decompilation_rating) | **PATCH** /v2/functions/{function_id}/ai-decompilation/rating | Upsert rating for AI decompilation # **create_ai_decompilation** @@ -498,90 +496,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_ai_decompilation_rating** -> BaseResponseUnionGetAiDecompilationRatingResponseNoneType get_ai_decompilation_rating(function_id) - -Get rating for AI decompilation - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_union_get_ai_decompilation_rating_response_none_type import BaseResponseUnionGetAiDecompilationRatingResponseNoneType -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsAIDecompilationApi(api_client) - function_id = 56 # int | The ID of the function for which to get the rating - - try: - # Get rating for AI decompilation - api_response = api_instance.get_ai_decompilation_rating(function_id) - print("The response of FunctionsAIDecompilationApi->get_ai_decompilation_rating:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsAIDecompilationApi->get_ai_decompilation_rating: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_id** | **int**| The ID of the function for which to get the rating | - -### Return type - -[**BaseResponseUnionGetAiDecompilationRatingResponseNoneType**](BaseResponseUnionGetAiDecompilationRatingResponseNoneType.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_ai_decompilation_status** > WorkflowProgress get_ai_decompilation_status(function_id) @@ -1421,90 +1335,3 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **upsert_ai_decompilation_rating** -> BaseResponse upsert_ai_decompilation_rating(function_id, upsert_ai_decomplation_rating_request) - -Upsert rating for AI decompilation - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response import BaseResponse -from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsAIDecompilationApi(api_client) - function_id = 56 # int | The ID of the function being rated - upsert_ai_decomplation_rating_request = revengai.UpsertAiDecomplationRatingRequest() # UpsertAiDecomplationRatingRequest | - - try: - # Upsert rating for AI decompilation - api_response = api_instance.upsert_ai_decompilation_rating(function_id, upsert_ai_decomplation_rating_request) - print("The response of FunctionsAIDecompilationApi->upsert_ai_decompilation_rating:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsAIDecompilationApi->upsert_ai_decompilation_rating: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_id** | **int**| The ID of the function being rated | - **upsert_ai_decomplation_rating_request** | [**UpsertAiDecomplationRatingRequest**](UpsertAiDecomplationRatingRequest.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/FunctionsCoreApi.md b/docs/FunctionsCoreApi.md index 1d989d83..79f6bba5 100644 --- a/docs/FunctionsCoreApi.md +++ b/docs/FunctionsCoreApi.md @@ -6,20 +6,12 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**add_function_callee**](FunctionsCoreApi.md#add_function_callee) | **POST** /v3/functions/{function_id}/callees | Add a callee to a function [**add_user_string_to_function**](FunctionsCoreApi.md#add_user_string_to_function) | **POST** /v3/functions/{function_id}/user-provided-strings | Add a user-provided string to a function. -[**get_analysis_strings**](FunctionsCoreApi.md#get_analysis_strings) | **GET** /v2/analyses/{analysis_id}/functions/strings | Get string information found in the Analysis -[**get_analysis_strings_status**](FunctionsCoreApi.md#get_analysis_strings_status) | **GET** /v2/analyses/{analysis_id}/functions/strings/status | Get string processing state for the Analysis -[**get_function_blocks**](FunctionsCoreApi.md#get_function_blocks) | **GET** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function -[**get_function_blocks_0**](FunctionsCoreApi.md#get_function_blocks_0) | **GET** /v3/functions/{function_id}/blocks | Get function disassembly -[**get_function_callees_callers**](FunctionsCoreApi.md#get_function_callees_callers) | **GET** /v2/functions/{function_id}/callees_callers | Get list of functions that call or are called by the specified function -[**get_function_callees_callers_0**](FunctionsCoreApi.md#get_function_callees_callers_0) | **GET** /v3/functions/{function_id}/callees-callers | Get callees and callers for a function -[**get_function_callees_callers_bulk**](FunctionsCoreApi.md#get_function_callees_callers_bulk) | **GET** /v2/functions/callees_callers | Get list of functions that call or are called for a list of functions -[**get_function_capabilities**](FunctionsCoreApi.md#get_function_capabilities) | **GET** /v2/functions/{function_id}/capabilities | Retrieve a functions capabilities -[**get_function_capabilities_0**](FunctionsCoreApi.md#get_function_capabilities_0) | **GET** /v3/functions/{function_id}/capabilities | Get capabilities for a function -[**get_function_details**](FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details -[**get_function_details_0**](FunctionsCoreApi.md#get_function_details_0) | **GET** /v3/functions/{function_id} | Get function details +[**get_function_blocks**](FunctionsCoreApi.md#get_function_blocks) | **GET** /v3/functions/{function_id}/blocks | Get function disassembly +[**get_function_callees_callers**](FunctionsCoreApi.md#get_function_callees_callers) | **GET** /v3/functions/{function_id}/callees-callers | Get callees and callers for a function +[**get_function_capabilities**](FunctionsCoreApi.md#get_function_capabilities) | **GET** /v3/functions/{function_id}/capabilities | Get capabilities for a function +[**get_function_details**](FunctionsCoreApi.md#get_function_details) | **GET** /v3/functions/{function_id} | Get function details [**get_function_indirect_call_sites**](FunctionsCoreApi.md#get_function_indirect_call_sites) | **GET** /v3/functions/{function_id}/indirect-call-sites | Get indirect call sites for a function -[**get_function_strings**](FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function -[**get_function_strings_0**](FunctionsCoreApi.md#get_function_strings_0) | **GET** /v3/functions/{function_id}/strings | List strings for a function. +[**get_function_strings**](FunctionsCoreApi.md#get_function_strings) | **GET** /v3/functions/{function_id}/strings | List strings for a function. [**get_functions_callees_callers**](FunctionsCoreApi.md#get_functions_callees_callers) | **GET** /v3/functions/callees-callers | Get callees and callers for many functions [**get_functions_matches**](FunctionsCoreApi.md#get_functions_matches) | **GET** /v3/functions/matches | Get function-matching results for an explicit set of functions [**get_functions_matching_status**](FunctionsCoreApi.md#get_functions_matching_status) | **GET** /v3/functions/matches/status | Get function-matching status for an explicit set of functions @@ -31,7 +23,7 @@ Method | HTTP request | Description # **add_function_callee** -> Dict[str, object] add_function_callee(function_id, add_callee_input_body) +> object add_function_callee(function_id, add_callee_input_body) Add a callee to a function @@ -103,7 +95,7 @@ Name | Type | Description | Notes ### Return type -**Dict[str, object]** +**object** ### Authorization @@ -128,7 +120,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **add_user_string_to_function** -> Dict[str, object] add_user_string_to_function(function_id, add_user_string_to_function_input_body) +> object add_user_string_to_function(function_id, add_user_string_to_function_input_body) Add a user-provided string to a function. @@ -199,7 +191,7 @@ Name | Type | Description | Notes ### Return type -**Dict[str, object]** +**object** ### Authorization @@ -222,551 +214,16 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_analysis_strings** -> BaseResponseAnalysisStringsResponse get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search, order_by=order_by, sort_order=sort_order) - -Get string information found in the Analysis - -Get string information found in the analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsCoreApi(api_client) - analysis_id = 56 # int | - page = 1 # int | The page number to retrieve. (optional) (default to 1) - page_size = 100 # int | Number of items per page. (optional) (default to 100) - search = 'search_example' # str | Search is applied to string value (optional) - function_search = 'function_search_example' # str | Search is applied to function names (optional) - order_by = value # str | Order by field (optional) (default to value) - sort_order = ASC # str | Sort order for the results (optional) (default to ASC) - - try: - # Get string information found in the Analysis - api_response = api_instance.get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search, order_by=order_by, sort_order=sort_order) - print("The response of FunctionsCoreApi->get_analysis_strings:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsCoreApi->get_analysis_strings: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **page** | **int**| The page number to retrieve. | [optional] [default to 1] - **page_size** | **int**| Number of items per page. | [optional] [default to 100] - **search** | **str**| Search is applied to string value | [optional] - **function_search** | **str**| Search is applied to function names | [optional] - **order_by** | **str**| Order by field | [optional] [default to value] - **sort_order** | **str**| Sort order for the results | [optional] [default to ASC] - -### Return type - -[**BaseResponseAnalysisStringsResponse**](BaseResponseAnalysisStringsResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_analysis_strings_status** -> BaseResponseAnalysisStringsStatusResponse get_analysis_strings_status(analysis_id) - -Get string processing state for the Analysis - -Get string processing state for the Analysis - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_analysis_strings_status_response import BaseResponseAnalysisStringsStatusResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsCoreApi(api_client) - analysis_id = 56 # int | - - try: - # Get string processing state for the Analysis - api_response = api_instance.get_analysis_strings_status(analysis_id) - print("The response of FunctionsCoreApi->get_analysis_strings_status:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsCoreApi->get_analysis_strings_status: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - -### Return type - -[**BaseResponseAnalysisStringsStatusResponse**](BaseResponseAnalysisStringsStatusResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_function_blocks** -> BaseResponseFunctionBlocksResponse get_function_blocks(function_id) - -Get disassembly blocks related to the function - -Get disassembly blocks related to the function - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_function_blocks_response import BaseResponseFunctionBlocksResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsCoreApi(api_client) - function_id = 56 # int | - - try: - # Get disassembly blocks related to the function - api_response = api_instance.get_function_blocks(function_id) - print("The response of FunctionsCoreApi->get_function_blocks:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsCoreApi->get_function_blocks: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_id** | **int**| | - -### Return type - -[**BaseResponseFunctionBlocksResponse**](BaseResponseFunctionBlocksResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | -**404** | Not Found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_function_blocks_0** -> DisassemblyOutputBody get_function_blocks_0(function_id) - -Get function disassembly - -Returns the function's disassembly metadata (JSON blob containing basic blocks + local variables) along with parameter and return-type info. - -**Error codes:** -- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied -- `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.disassembly_output_body import DisassemblyOutputBody -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsCoreApi(api_client) - function_id = 56 # int | Function ID - - try: - # Get function disassembly - api_response = api_instance.get_function_blocks_0(function_id) - print("The response of FunctionsCoreApi->get_function_blocks_0:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsCoreApi->get_function_blocks_0: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_id** | **int**| Function ID | - -### Return type - -[**DisassemblyOutputBody**](DisassemblyOutputBody.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**403** | Forbidden | - | -**404** | Not Found | - | -**422** | Unprocessable Entity | - | -**500** | Internal Server Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_function_callees_callers** -> BaseResponseCalleesCallerFunctionsResponse get_function_callees_callers(function_id) - -Get list of functions that call or are called by the specified function - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsCoreApi(api_client) - function_id = 56 # int | - - try: - # Get list of functions that call or are called by the specified function - api_response = api_instance.get_function_callees_callers(function_id) - print("The response of FunctionsCoreApi->get_function_callees_callers:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsCoreApi->get_function_callees_callers: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_id** | **int**| | - -### Return type - -[**BaseResponseCalleesCallerFunctionsResponse**](BaseResponseCalleesCallerFunctionsResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_function_callees_callers_0** -> CallEdgesOutputBody get_function_callees_callers_0(function_id) - -Get callees and callers for a function - -Returns both the outgoing call edges (callees) and incoming call edges (callers) for a single function. - -**Error codes:** -- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied -- `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.call_edges_output_body import CallEdgesOutputBody -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsCoreApi(api_client) - function_id = 56 # int | Function ID - - try: - # Get callees and callers for a function - api_response = api_instance.get_function_callees_callers_0(function_id) - print("The response of FunctionsCoreApi->get_function_callees_callers_0:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsCoreApi->get_function_callees_callers_0: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_id** | **int**| Function ID | - -### Return type - -[**CallEdgesOutputBody**](CallEdgesOutputBody.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**403** | Forbidden | - | -**404** | Not Found | - | -**422** | Unprocessable Entity | - | -**500** | Internal Server Error | - | +# **get_function_blocks** +> DisassemblyOutputBody get_function_blocks(function_id) -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +Get function disassembly -# **get_function_callees_callers_bulk** -> BaseResponseListCalleesCallerFunctionsResponse get_function_callees_callers_bulk(function_ids) +Returns the function's disassembly metadata (JSON blob containing basic blocks + local variables) along with parameter and return-type info. -Get list of functions that call or are called for a list of functions +**Error codes:** +- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied +- `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found ### Example @@ -775,7 +232,7 @@ Get list of functions that call or are called for a list of functions ```python import revengai -from revengai.models.base_response_list_callees_caller_functions_response import BaseResponseListCalleesCallerFunctionsResponse +from revengai.models.disassembly_output_body import DisassemblyOutputBody from revengai.rest import ApiException from pprint import pprint @@ -805,15 +262,15 @@ configuration = revengai.Configuration( with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.FunctionsCoreApi(api_client) - function_ids = [56] # List[Optional[int]] | + function_id = 56 # int | Function ID try: - # Get list of functions that call or are called for a list of functions - api_response = api_instance.get_function_callees_callers_bulk(function_ids) - print("The response of FunctionsCoreApi->get_function_callees_callers_bulk:\n") + # Get function disassembly + api_response = api_instance.get_function_blocks(function_id) + print("The response of FunctionsCoreApi->get_function_blocks:\n") pprint(api_response) except Exception as e: - print("Exception when calling FunctionsCoreApi->get_function_callees_callers_bulk: %s\n" % e) + print("Exception when calling FunctionsCoreApi->get_function_blocks: %s\n" % e) ``` @@ -823,11 +280,11 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **function_ids** | [**List[Optional[int]]**](int.md)| | + **function_id** | **int**| Function ID | ### Return type -[**BaseResponseListCalleesCallerFunctionsResponse**](BaseResponseListCalleesCallerFunctionsResponse.md) +[**DisassemblyOutputBody**](DisassemblyOutputBody.md) ### Authorization @@ -842,15 +299,24 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | +**200** | OK | - | +**403** | Forbidden | - | +**404** | Not Found | - | +**422** | Unprocessable Entity | - | +**500** | Internal Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_function_capabilities** -> BaseResponseFunctionCapabilityResponse get_function_capabilities(function_id) +# **get_function_callees_callers** +> CallEdgesOutputBody get_function_callees_callers(function_id) + +Get callees and callers for a function + +Returns both the outgoing call edges (callees) and incoming call edges (callers) for a single function. -Retrieve a functions capabilities +**Error codes:** +- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied +- `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found ### Example @@ -859,7 +325,7 @@ Retrieve a functions capabilities ```python import revengai -from revengai.models.base_response_function_capability_response import BaseResponseFunctionCapabilityResponse +from revengai.models.call_edges_output_body import CallEdgesOutputBody from revengai.rest import ApiException from pprint import pprint @@ -889,15 +355,15 @@ configuration = revengai.Configuration( with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.FunctionsCoreApi(api_client) - function_id = 56 # int | + function_id = 56 # int | Function ID try: - # Retrieve a functions capabilities - api_response = api_instance.get_function_capabilities(function_id) - print("The response of FunctionsCoreApi->get_function_capabilities:\n") + # Get callees and callers for a function + api_response = api_instance.get_function_callees_callers(function_id) + print("The response of FunctionsCoreApi->get_function_callees_callers:\n") pprint(api_response) except Exception as e: - print("Exception when calling FunctionsCoreApi->get_function_capabilities: %s\n" % e) + print("Exception when calling FunctionsCoreApi->get_function_callees_callers: %s\n" % e) ``` @@ -907,11 +373,11 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **function_id** | **int**| | + **function_id** | **int**| Function ID | ### Return type -[**BaseResponseFunctionCapabilityResponse**](BaseResponseFunctionCapabilityResponse.md) +[**CallEdgesOutputBody**](CallEdgesOutputBody.md) ### Authorization @@ -926,14 +392,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | +**200** | OK | - | +**403** | Forbidden | - | **404** | Not Found | - | +**422** | Unprocessable Entity | - | +**500** | Internal Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_function_capabilities_0** -> CapabilitiesOutputBody get_function_capabilities_0(function_id) +# **get_function_capabilities** +> CapabilitiesOutputBody get_function_capabilities(function_id) Get capabilities for a function @@ -984,11 +452,11 @@ with revengai.ApiClient(configuration) as api_client: try: # Get capabilities for a function - api_response = api_instance.get_function_capabilities_0(function_id) - print("The response of FunctionsCoreApi->get_function_capabilities_0:\n") + api_response = api_instance.get_function_capabilities(function_id) + print("The response of FunctionsCoreApi->get_function_capabilities:\n") pprint(api_response) except Exception as e: - print("Exception when calling FunctionsCoreApi->get_function_capabilities_0: %s\n" % e) + print("Exception when calling FunctionsCoreApi->get_function_capabilities: %s\n" % e) ``` @@ -1026,91 +494,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_function_details** -> BaseResponseFunctionsDetailResponse get_function_details(function_id) - -Get function details - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsCoreApi(api_client) - function_id = 56 # int | - - try: - # Get function details - api_response = api_instance.get_function_details(function_id) - print("The response of FunctionsCoreApi->get_function_details:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsCoreApi->get_function_details: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_id** | **int**| | - -### Return type - -[**BaseResponseFunctionsDetailResponse**](BaseResponseFunctionsDetailResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_function_details_0** -> FunctionDetailsOutputBody get_function_details_0(function_id) +> FunctionDetailsOutputBody get_function_details(function_id) Get function details @@ -1161,11 +545,11 @@ with revengai.ApiClient(configuration) as api_client: try: # Get function details - api_response = api_instance.get_function_details_0(function_id) - print("The response of FunctionsCoreApi->get_function_details_0:\n") + api_response = api_instance.get_function_details(function_id) + print("The response of FunctionsCoreApi->get_function_details:\n") pprint(api_response) except Exception as e: - print("Exception when calling FunctionsCoreApi->get_function_details_0: %s\n" % e) + print("Exception when calling FunctionsCoreApi->get_function_details: %s\n" % e) ``` @@ -1296,99 +680,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_function_strings** -> BaseResponseFunctionStringsResponse get_function_strings(function_id, page=page, page_size=page_size, search=search) - -Get string information found in the function - -Get string information found in the function - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsCoreApi(api_client) - function_id = 56 # int | - page = 1 # int | The page number to retrieve. (optional) (default to 1) - page_size = 100 # int | Number of items per page. (optional) (default to 100) - search = 'search_example' # str | Search is applied to string value (optional) - - try: - # Get string information found in the function - api_response = api_instance.get_function_strings(function_id, page=page, page_size=page_size, search=search) - print("The response of FunctionsCoreApi->get_function_strings:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsCoreApi->get_function_strings: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_id** | **int**| | - **page** | **int**| The page number to retrieve. | [optional] [default to 1] - **page_size** | **int**| Number of items per page. | [optional] [default to 100] - **search** | **str**| Search is applied to string value | [optional] - -### Return type - -[**BaseResponseFunctionStringsResponse**](BaseResponseFunctionStringsResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_function_strings_0** -> ListFunctionStringsOutputBody get_function_strings_0(function_id, page=page, page_size=page_size, search=search) +> ListFunctionStringsOutputBody get_function_strings(function_id, page=page, page_size=page_size, search=search) List strings for a function. @@ -1442,11 +734,11 @@ with revengai.ApiClient(configuration) as api_client: try: # List strings for a function. - api_response = api_instance.get_function_strings_0(function_id, page=page, page_size=page_size, search=search) - print("The response of FunctionsCoreApi->get_function_strings_0:\n") + api_response = api_instance.get_function_strings(function_id, page=page, page_size=page_size, search=search) + print("The response of FunctionsCoreApi->get_function_strings:\n") pprint(api_response) except Exception as e: - print("Exception when calling FunctionsCoreApi->get_function_strings_0: %s\n" % e) + print("Exception when calling FunctionsCoreApi->get_function_strings: %s\n" % e) ``` diff --git a/docs/FunctionsDataTypesApi.md b/docs/FunctionsDataTypesApi.md index bb2ef4b5..4ce5a26e 100644 --- a/docs/FunctionsDataTypesApi.md +++ b/docs/FunctionsDataTypesApi.md @@ -5,12 +5,8 @@ All URIs are relative to *https://api.reveng.ai* Method | HTTP request | Description ------------- | ------------- | ------------- [**batch_update_function_data_types**](FunctionsDataTypesApi.md#batch_update_function_data_types) | **PUT** /v3/analyses/{analysis_id}/functions/data-types | Batch update function data types -[**generate_function_data_types_for_analysis**](FunctionsDataTypesApi.md#generate_function_data_types_for_analysis) | **POST** /v2/analyses/{analysis_id}/functions/data_types | Generate Function Data Types -[**generate_function_data_types_for_functions**](FunctionsDataTypesApi.md#generate_function_data_types_for_functions) | **POST** /v2/functions/data_types | Generate Function Data Types for an arbitrary list of functions [**get_function_data_types**](FunctionsDataTypesApi.md#get_function_data_types) | **GET** /v3/analyses/{analysis_id}/functions/{function_id}/data-types | Get data types for a single function [**list_analysis_functions_data_types**](FunctionsDataTypesApi.md#list_analysis_functions_data_types) | **GET** /v3/analyses/{analysis_id}/functions/data-types | List data types for all functions in an analysis -[**list_function_data_types_for_analysis**](FunctionsDataTypesApi.md#list_function_data_types_for_analysis) | **GET** /v2/analyses/{analysis_id}/functions/data_types | List Function Data Types -[**list_function_data_types_for_functions**](FunctionsDataTypesApi.md#list_function_data_types_for_functions) | **GET** /v2/functions/data_types | List Function Data Types [**list_functions_data_types**](FunctionsDataTypesApi.md#list_functions_data_types) | **GET** /v3/functions/data-types | Get data types for many functions [**update_function_data_types**](FunctionsDataTypesApi.md#update_function_data_types) | **PUT** /v2/analyses/{analysis_id}/functions/{function_id}/data_types | Update function data types @@ -113,182 +109,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **generate_function_data_types_for_analysis** -> BaseResponseGenerateFunctionDataTypes generate_function_data_types_for_analysis(analysis_id, function_data_types_params) - -Generate Function Data Types - -Submits a request to generate the function data types - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_generate_function_data_types import BaseResponseGenerateFunctionDataTypes -from revengai.models.function_data_types_params import FunctionDataTypesParams -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsDataTypesApi(api_client) - analysis_id = 56 # int | - function_data_types_params = revengai.FunctionDataTypesParams() # FunctionDataTypesParams | - - try: - # Generate Function Data Types - api_response = api_instance.generate_function_data_types_for_analysis(analysis_id, function_data_types_params) - print("The response of FunctionsDataTypesApi->generate_function_data_types_for_analysis:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsDataTypesApi->generate_function_data_types_for_analysis: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **function_data_types_params** | [**FunctionDataTypesParams**](FunctionDataTypesParams.md)| | - -### Return type - -[**BaseResponseGenerateFunctionDataTypes**](BaseResponseGenerateFunctionDataTypes.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **generate_function_data_types_for_functions** -> BaseResponseGenerationStatusList generate_function_data_types_for_functions(function_data_types_params) - -Generate Function Data Types for an arbitrary list of functions - -Submits a request to generate the function data types - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_generation_status_list import BaseResponseGenerationStatusList -from revengai.models.function_data_types_params import FunctionDataTypesParams -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsDataTypesApi(api_client) - function_data_types_params = revengai.FunctionDataTypesParams() # FunctionDataTypesParams | - - try: - # Generate Function Data Types for an arbitrary list of functions - api_response = api_instance.generate_function_data_types_for_functions(function_data_types_params) - print("The response of FunctionsDataTypesApi->generate_function_data_types_for_functions:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsDataTypesApi->generate_function_data_types_for_functions: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_data_types_params** | [**FunctionDataTypesParams**](FunctionDataTypesParams.md)| | - -### Return type - -[**BaseResponseGenerationStatusList**](BaseResponseGenerationStatusList.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_function_data_types** > DataTypesEntry get_function_data_types(analysis_id, function_id) @@ -481,180 +301,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_function_data_types_for_analysis** -> BaseResponseFunctionDataTypesList list_function_data_types_for_analysis(analysis_id, function_ids=function_ids) - -List Function Data Types - -Returns data types for multiple functions with optional function ID filtering - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_function_data_types_list import BaseResponseFunctionDataTypesList -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsDataTypesApi(api_client) - analysis_id = 56 # int | - function_ids = [56] # List[Optional[int]] | (optional) - - try: - # List Function Data Types - api_response = api_instance.list_function_data_types_for_analysis(analysis_id, function_ids=function_ids) - print("The response of FunctionsDataTypesApi->list_function_data_types_for_analysis:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsDataTypesApi->list_function_data_types_for_analysis: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **function_ids** | [**List[Optional[int]]**](int.md)| | [optional] - -### Return type - -[**BaseResponseFunctionDataTypesList**](BaseResponseFunctionDataTypesList.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_function_data_types_for_functions** -> BaseResponseFunctionDataTypesList list_function_data_types_for_functions(function_ids=function_ids) - -List Function Data Types - -Returns data types for multiple function IDs - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_function_data_types_list import BaseResponseFunctionDataTypesList -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsDataTypesApi(api_client) - function_ids = [56] # List[Optional[int]] | (optional) - - try: - # List Function Data Types - api_response = api_instance.list_function_data_types_for_functions(function_ids=function_ids) - print("The response of FunctionsDataTypesApi->list_function_data_types_for_functions:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsDataTypesApi->list_function_data_types_for_functions: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_ids** | [**List[Optional[int]]**](int.md)| | [optional] - -### Return type - -[**BaseResponseFunctionDataTypesList**](BaseResponseFunctionDataTypesList.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **list_functions_data_types** > ListFunctionsDataTypesOutputBody list_functions_data_types(function_ids) diff --git a/docs/FunctionsDetailResponse.md b/docs/FunctionsDetailResponse.md deleted file mode 100644 index 5f46a661..00000000 --- a/docs/FunctionsDetailResponse.md +++ /dev/null @@ -1,39 +0,0 @@ -# FunctionsDetailResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_id** | **int** | Function id | -**function_name** | **str** | | -**function_name_mangled** | **str** | | -**function_vaddr** | **int** | | -**function_size** | **int** | | -**analysis_id** | **int** | | -**binary_id** | **int** | | -**binary_name** | **str** | | -**sha_256_hash** | **str** | | -**debug_hash** | **str** | | -**debug** | **bool** | | - -## Example - -```python -from revengai.models.functions_detail_response import FunctionsDetailResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionsDetailResponse from a JSON string -functions_detail_response_instance = FunctionsDetailResponse.from_json(json) -# print the JSON string representation of the object -print(FunctionsDetailResponse.to_json()) - -# convert the object into a dict -functions_detail_response_dict = functions_detail_response_instance.to_dict() -# create an instance of FunctionsDetailResponse from a dict -functions_detail_response_from_dict = FunctionsDetailResponse.from_dict(functions_detail_response_dict) -``` -[[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/FunctionsListRename.md b/docs/FunctionsListRename.md deleted file mode 100644 index 454aa36c..00000000 --- a/docs/FunctionsListRename.md +++ /dev/null @@ -1,29 +0,0 @@ -# FunctionsListRename - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**functions** | [**List[FunctionRenameMap]**](FunctionRenameMap.md) | A list of functions to rename | - -## Example - -```python -from revengai.models.functions_list_rename import FunctionsListRename - -# TODO update the JSON string below -json = "{}" -# create an instance of FunctionsListRename from a JSON string -functions_list_rename_instance = FunctionsListRename.from_json(json) -# print the JSON string representation of the object -print(FunctionsListRename.to_json()) - -# convert the object into a dict -functions_list_rename_dict = functions_list_rename_instance.to_dict() -# create an instance of FunctionsListRename from a dict -functions_list_rename_from_dict = FunctionsListRename.from_dict(functions_list_rename_dict) -``` -[[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/FunctionsRenamingHistoryApi.md b/docs/FunctionsRenamingHistoryApi.md index 28f05384..cd553467 100644 --- a/docs/FunctionsRenamingHistoryApi.md +++ b/docs/FunctionsRenamingHistoryApi.md @@ -4,104 +4,12 @@ All URIs are relative to *https://api.reveng.ai* Method | HTTP request | Description ------------- | ------------- | ------------- -[**batch_rename_function**](FunctionsRenamingHistoryApi.md#batch_rename_function) | **POST** /v2/functions/rename/batch | Batch Rename Functions [**batch_rename_functions**](FunctionsRenamingHistoryApi.md#batch_rename_functions) | **POST** /v3/functions/rename | Batch rename functions [**get_function_history**](FunctionsRenamingHistoryApi.md#get_function_history) | **GET** /v3/functions/{function_id}/history | Get function name history -[**get_function_name_history**](FunctionsRenamingHistoryApi.md#get_function_name_history) | **GET** /v2/functions/history/{function_id} | Get Function Name History [**rename_function**](FunctionsRenamingHistoryApi.md#rename_function) | **POST** /v3/functions/{function_id}/rename | Rename a function -[**rename_function_id**](FunctionsRenamingHistoryApi.md#rename_function_id) | **POST** /v2/functions/rename/{function_id} | Rename Function -[**revert_function_name**](FunctionsRenamingHistoryApi.md#revert_function_name) | **POST** /v2/functions/history/{function_id}/{history_id} | Revert the function name -[**revert_function_name_0**](FunctionsRenamingHistoryApi.md#revert_function_name_0) | **POST** /v3/functions/{function_id}/history/{history_id}/revert | Revert function name +[**revert_function_name**](FunctionsRenamingHistoryApi.md#revert_function_name) | **POST** /v3/functions/{function_id}/history/{history_id}/revert | Revert function name -# **batch_rename_function** -> BaseResponse batch_rename_function(functions_list_rename) - -Batch Rename Functions - -Renames a list of functions using the function IDs - Will record name changes in history - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response import BaseResponse -from revengai.models.functions_list_rename import FunctionsListRename -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsRenamingHistoryApi(api_client) - functions_list_rename = revengai.FunctionsListRename() # FunctionsListRename | - - try: - # Batch Rename Functions - api_response = api_instance.batch_rename_function(functions_list_rename) - print("The response of FunctionsRenamingHistoryApi->batch_rename_function:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsRenamingHistoryApi->batch_rename_function: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **functions_list_rename** | [**FunctionsListRename**](FunctionsListRename.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **batch_rename_functions** > BatchRenameOutputBody batch_rename_functions(batch_rename_input_body) @@ -289,92 +197,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_function_name_history** -> BaseResponseListFunctionNameHistory get_function_name_history(function_id) - -Get Function Name History - -Gets the name history of a function using the function ID - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_list_function_name_history import BaseResponseListFunctionNameHistory -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsRenamingHistoryApi(api_client) - function_id = 56 # int | - - try: - # Get Function Name History - api_response = api_instance.get_function_name_history(function_id) - print("The response of FunctionsRenamingHistoryApi->get_function_name_history:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsRenamingHistoryApi->get_function_name_history: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_id** | **int**| | - -### Return type - -[**BaseResponseListFunctionNameHistory**](BaseResponseListFunctionNameHistory.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **rename_function** > RenameOutputBody rename_function(function_id, rename_input_body) @@ -471,186 +293,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **rename_function_id** -> BaseResponse rename_function_id(function_id, function_rename) - -Rename Function - -Renames a function using the function ID - Will record name change history - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response import BaseResponse -from revengai.models.function_rename import FunctionRename -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsRenamingHistoryApi(api_client) - function_id = 56 # int | - function_rename = revengai.FunctionRename() # FunctionRename | - - try: - # Rename Function - api_response = api_instance.rename_function_id(function_id, function_rename) - print("The response of FunctionsRenamingHistoryApi->rename_function_id:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsRenamingHistoryApi->rename_function_id: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_id** | **int**| | - **function_rename** | [**FunctionRename**](FunctionRename.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **revert_function_name** -> BaseResponse revert_function_name(function_id, history_id) - -Revert the function name - -Reverts the function name to a previous name using the function ID and history ID - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response import BaseResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.FunctionsRenamingHistoryApi(api_client) - function_id = 56 # int | - history_id = 56 # int | - - try: - # Revert the function name - api_response = api_instance.revert_function_name(function_id, history_id) - print("The response of FunctionsRenamingHistoryApi->revert_function_name:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FunctionsRenamingHistoryApi->revert_function_name: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **function_id** | **int**| | - **history_id** | **int**| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **revert_function_name_0** -> Dict[str, object] revert_function_name_0(function_id, history_id) +> object revert_function_name(function_id, history_id) Revert function name @@ -701,11 +345,11 @@ with revengai.ApiClient(configuration) as api_client: try: # Revert function name - api_response = api_instance.revert_function_name_0(function_id, history_id) - print("The response of FunctionsRenamingHistoryApi->revert_function_name_0:\n") + api_response = api_instance.revert_function_name(function_id, history_id) + print("The response of FunctionsRenamingHistoryApi->revert_function_name:\n") pprint(api_response) except Exception as e: - print("Exception when calling FunctionsRenamingHistoryApi->revert_function_name_0: %s\n" % e) + print("Exception when calling FunctionsRenamingHistoryApi->revert_function_name: %s\n" % e) ``` @@ -720,7 +364,7 @@ Name | Type | Description | Notes ### Return type -**Dict[str, object]** +**object** ### Authorization diff --git a/docs/GenerateFunctionDataTypes.md b/docs/GenerateFunctionDataTypes.md deleted file mode 100644 index 9917d9a3..00000000 --- a/docs/GenerateFunctionDataTypes.md +++ /dev/null @@ -1,31 +0,0 @@ -# GenerateFunctionDataTypes - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**queued** | **bool** | [DEPRECATED] This value has been replaced with the `data_types_list` field | -**reference** | **str** | [DEPRECATED] This value has been replaced with the `data_types_list` field | -**data_types_list** | [**GenerationStatusList**](GenerationStatusList.md) | List of function data types information that are either already generated, or now queued for generation | - -## Example - -```python -from revengai.models.generate_function_data_types import GenerateFunctionDataTypes - -# TODO update the JSON string below -json = "{}" -# create an instance of GenerateFunctionDataTypes from a JSON string -generate_function_data_types_instance = GenerateFunctionDataTypes.from_json(json) -# print the JSON string representation of the object -print(GenerateFunctionDataTypes.to_json()) - -# convert the object into a dict -generate_function_data_types_dict = generate_function_data_types_instance.to_dict() -# create an instance of GenerateFunctionDataTypes from a dict -generate_function_data_types_from_dict = GenerateFunctionDataTypes.from_dict(generate_function_data_types_dict) -``` -[[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/GenerationStatusList.md b/docs/GenerationStatusList.md deleted file mode 100644 index 93266aa8..00000000 --- a/docs/GenerationStatusList.md +++ /dev/null @@ -1,31 +0,0 @@ -# GenerationStatusList - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_count** | **int** | Total number of functions in analysis | [optional] [default to 0] -**total_data_types_count** | **int** | Total number of functions with data types | [optional] [default to 0] -**items** | [**List[FunctionDataTypesStatus]**](FunctionDataTypesStatus.md) | List of function data types information | - -## Example - -```python -from revengai.models.generation_status_list import GenerationStatusList - -# TODO update the JSON string below -json = "{}" -# create an instance of GenerationStatusList from a JSON string -generation_status_list_instance = GenerationStatusList.from_json(json) -# print the JSON string representation of the object -print(GenerationStatusList.to_json()) - -# convert the object into a dict -generation_status_list_dict = generation_status_list_instance.to_dict() -# create an instance of GenerationStatusList from a dict -generation_status_list_from_dict = GenerationStatusList.from_dict(generation_status_list_dict) -``` -[[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/GetAiDecompilationRatingResponse.md b/docs/GetAiDecompilationRatingResponse.md deleted file mode 100644 index 649dbb94..00000000 --- a/docs/GetAiDecompilationRatingResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetAiDecompilationRatingResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rating** | [**AiDecompilationRating**](AiDecompilationRating.md) | The rating the user has given to the AI decompilation response | -**reason** | **str** | | - -## Example - -```python -from revengai.models.get_ai_decompilation_rating_response import GetAiDecompilationRatingResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAiDecompilationRatingResponse from a JSON string -get_ai_decompilation_rating_response_instance = GetAiDecompilationRatingResponse.from_json(json) -# print the JSON string representation of the object -print(GetAiDecompilationRatingResponse.to_json()) - -# convert the object into a dict -get_ai_decompilation_rating_response_dict = get_ai_decompilation_rating_response_instance.to_dict() -# create an instance of GetAiDecompilationRatingResponse from a dict -get_ai_decompilation_rating_response_from_dict = GetAiDecompilationRatingResponse.from_dict(get_ai_decompilation_rating_response_dict) -``` -[[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/GetPublicUserResponse.md b/docs/GetPublicUserResponse.md deleted file mode 100644 index f20ba1cf..00000000 --- a/docs/GetPublicUserResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetPublicUserResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**username** | **str** | | -**user_id** | **int** | | - -## Example - -```python -from revengai.models.get_public_user_response import GetPublicUserResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPublicUserResponse from a JSON string -get_public_user_response_instance = GetPublicUserResponse.from_json(json) -# print the JSON string representation of the object -print(GetPublicUserResponse.to_json()) - -# convert the object into a dict -get_public_user_response_dict = get_public_user_response_instance.to_dict() -# create an instance of GetPublicUserResponse from a dict -get_public_user_response_from_dict = GetPublicUserResponse.from_dict(get_public_user_response_dict) -``` -[[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/GlobalVariable.md b/docs/GlobalVariable.md deleted file mode 100644 index 43305693..00000000 --- a/docs/GlobalVariable.md +++ /dev/null @@ -1,34 +0,0 @@ -# GlobalVariable - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] -**addr** | **int** | Memory address of the global variable | -**name** | **str** | Name of the global variable | -**type** | **str** | Data type of the global variable | -**size** | **int** | Size of the global variable in bytes | -**artifact_type** | **str** | Type of artifact that the global variable is associated with | [optional] - -## Example - -```python -from revengai.models.global_variable import GlobalVariable - -# TODO update the JSON string below -json = "{}" -# create an instance of GlobalVariable from a JSON string -global_variable_instance = GlobalVariable.from_json(json) -# print the JSON string representation of the object -print(GlobalVariable.to_json()) - -# convert the object into a dict -global_variable_dict = global_variable_instance.to_dict() -# create an instance of GlobalVariable from a dict -global_variable_from_dict = GlobalVariable.from_dict(global_variable_dict) -``` -[[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/IOC.md b/docs/IOC.md deleted file mode 100644 index 3c2822ce..00000000 --- a/docs/IOC.md +++ /dev/null @@ -1,34 +0,0 @@ -# IOC - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | Type of the IOC | -**value** | **str** | Value of the IOC | -**description** | **str** | Description of the IOC | -**source** | **str** | | [optional] -**function_id** | **int** | | [optional] -**function_name** | **str** | | [optional] - -## Example - -```python -from revengai.models.ioc import IOC - -# TODO update the JSON string below -json = "{}" -# create an instance of IOC from a JSON string -ioc_instance = IOC.from_json(json) -# print the JSON string representation of the object -print(IOC.to_json()) - -# convert the object into a dict -ioc_dict = ioc_instance.to_dict() -# create an instance of IOC from a dict -ioc_from_dict = IOC.from_dict(ioc_dict) -``` -[[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/ISA.md b/docs/ISA.md deleted file mode 100644 index 1d20ca42..00000000 --- a/docs/ISA.md +++ /dev/null @@ -1,16 +0,0 @@ -# ISA - - -## Enum - -* `X86` (value: `'x86'`) - -* `X86_64` (value: `'x86_64'`) - -* `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/IconModel.md b/docs/IconModel.md deleted file mode 100644 index 498b67bd..00000000 --- a/docs/IconModel.md +++ /dev/null @@ -1,29 +0,0 @@ -# IconModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **str** | | - -## Example - -```python -from revengai.models.icon_model import IconModel - -# TODO update the JSON string below -json = "{}" -# create an instance of IconModel from a JSON string -icon_model_instance = IconModel.from_json(json) -# print the JSON string representation of the object -print(IconModel.to_json()) - -# convert the object into a dict -icon_model_dict = icon_model_instance.to_dict() -# create an instance of IconModel from a dict -icon_model_from_dict = IconModel.from_dict(icon_model_dict) -``` -[[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/ImportModel.md b/docs/ImportModel.md deleted file mode 100644 index 38df16cc..00000000 --- a/docs/ImportModel.md +++ /dev/null @@ -1,30 +0,0 @@ -# ImportModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number_of_imports** | **int** | | -**imports** | **List[Dict[str, Dict[str, int]]]** | | - -## Example - -```python -from revengai.models.import_model import ImportModel - -# TODO update the JSON string below -json = "{}" -# create an instance of ImportModel from a JSON string -import_model_instance = ImportModel.from_json(json) -# print the JSON string representation of the object -print(ImportModel.to_json()) - -# convert the object into a dict -import_model_dict = import_model_instance.to_dict() -# create an instance of ImportModel from a dict -import_model_from_dict = ImportModel.from_dict(import_model_dict) -``` -[[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/InsertAnalysisLogRequest.md b/docs/InsertAnalysisLogRequest.md deleted file mode 100644 index 8cdfb7dc..00000000 --- a/docs/InsertAnalysisLogRequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# InsertAnalysisLogRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**log** | **str** | The log message to insert for the analysis | - -## Example - -```python -from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of InsertAnalysisLogRequest from a JSON string -insert_analysis_log_request_instance = InsertAnalysisLogRequest.from_json(json) -# print the JSON string representation of the object -print(InsertAnalysisLogRequest.to_json()) - -# convert the object into a dict -insert_analysis_log_request_dict = insert_analysis_log_request_instance.to_dict() -# create an instance of InsertAnalysisLogRequest from a dict -insert_analysis_log_request_from_dict = InsertAnalysisLogRequest.from_dict(insert_analysis_log_request_dict) -``` -[[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/ListCollectionResults.md b/docs/ListCollectionResults.md deleted file mode 100644 index d22cfb8e..00000000 --- a/docs/ListCollectionResults.md +++ /dev/null @@ -1,29 +0,0 @@ -# ListCollectionResults - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**List[CollectionListItem]**](CollectionListItem.md) | Page containing the results of the collections search | - -## Example - -```python -from revengai.models.list_collection_results import ListCollectionResults - -# TODO update the JSON string below -json = "{}" -# create an instance of ListCollectionResults from a JSON string -list_collection_results_instance = ListCollectionResults.from_json(json) -# print the JSON string representation of the object -print(ListCollectionResults.to_json()) - -# convert the object into a dict -list_collection_results_dict = list_collection_results_instance.to_dict() -# create an instance of ListCollectionResults from a dict -list_collection_results_from_dict = ListCollectionResults.from_dict(list_collection_results_dict) -``` -[[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/Logs.md b/docs/Logs.md deleted file mode 100644 index cfe6e5c4..00000000 --- a/docs/Logs.md +++ /dev/null @@ -1,29 +0,0 @@ -# Logs - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**logs** | **str** | Full logs of an analysis of an analysis_id | - -## Example - -```python -from revengai.models.logs import Logs - -# TODO update the JSON string below -json = "{}" -# create an instance of Logs from a JSON string -logs_instance = Logs.from_json(json) -# print the JSON string representation of the object -print(Logs.to_json()) - -# convert the object into a dict -logs_dict = logs_instance.to_dict() -# create an instance of Logs from a dict -logs_from_dict = Logs.from_dict(logs_dict) -``` -[[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/MITRETechnique.md b/docs/MITRETechnique.md deleted file mode 100644 index 59803445..00000000 --- a/docs/MITRETechnique.md +++ /dev/null @@ -1,38 +0,0 @@ -# MITRETechnique - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_addr** | **str** | Starting address of the technique | -**end_addr** | **str** | Ending address of the technique | -**function_addr** | **str** | Function address where the technique is found | -**technique_id** | **str** | MITRE technique identifier | -**technique_name** | **str** | Name of the MITRE technique | -**description** | **str** | Description of the technique | -**function_id** | **int** | Unique identifier of the function containing the technique | -**function_name** | **str** | Name of the function containing the technique | -**technique_url** | **str** | URL to the MITRE ATT&CK technique page | -**technique_description** | **str** | Full description of the MITRE technique from ATT&CK | - -## Example - -```python -from revengai.models.mitre_technique import MITRETechnique - -# TODO update the JSON string below -json = "{}" -# create an instance of MITRETechnique from a JSON string -mitre_technique_instance = MITRETechnique.from_json(json) -# print the JSON string representation of the object -print(MITRETechnique.to_json()) - -# convert the object into a dict -mitre_technique_dict = mitre_technique_instance.to_dict() -# create an instance of MITRETechnique from a dict -mitre_technique_from_dict = MITRETechnique.from_dict(mitre_technique_dict) -``` -[[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/MetaModel.md b/docs/MetaModel.md deleted file mode 100644 index 0baca221..00000000 --- a/docs/MetaModel.md +++ /dev/null @@ -1,29 +0,0 @@ -# MetaModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**PaginationModel**](PaginationModel.md) | | [optional] - -## Example - -```python -from revengai.models.meta_model import MetaModel - -# TODO update the JSON string below -json = "{}" -# create an instance of MetaModel from a JSON string -meta_model_instance = MetaModel.from_json(json) -# print the JSON string representation of the object -print(MetaModel.to_json()) - -# convert the object into a dict -meta_model_dict = meta_model_instance.to_dict() -# create an instance of MetaModel from a dict -meta_model_from_dict = MetaModel.from_dict(meta_model_dict) -``` -[[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 deleted file mode 100644 index 66644a28..00000000 --- a/docs/ModelName.md +++ /dev/null @@ -1,29 +0,0 @@ -# ModelName - -Custom enum for the model name - -## Enum - -* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_64_MINUS_WINDOWS` (value: `'binnet-0.7-x86-64-windows'`) - -* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_64_MINUS_LINUX` (value: `'binnet-0.7-x86-64-linux'`) - -* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_32_MINUS_WINDOWS` (value: `'binnet-0.7-x86-32-windows'`) - -* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_32_MINUS_LINUX` (value: `'binnet-0.7-x86-32-linux'`) - -* `BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_WINDOWS` (value: `'binnet-0.7-arm-64-windows'`) - -* `BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_LINUX` (value: `'binnet-0.7-arm-64-linux'`) - -* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_64_MINUS_ANDROID` (value: `'binnet-0.7-x86-64-android'`) - -* `BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_32_MINUS_ANDROID` (value: `'binnet-0.7-x86-32-android'`) - -* `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/ModelsApi.md b/docs/ModelsApi.md deleted file mode 100644 index a4399db0..00000000 --- a/docs/ModelsApi.md +++ /dev/null @@ -1,91 +0,0 @@ -# revengai.ModelsApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_models**](ModelsApi.md#get_models) | **GET** /v2/models | Gets models - - -# **get_models** -> BaseResponseModelsResponse get_models() - -Gets models - -Gets active models available for analysis. - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_models_response import BaseResponseModelsResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.ModelsApi(api_client) - - try: - # Gets models - api_response = api_instance.get_models() - print("The response of ModelsApi->get_models:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ModelsApi->get_models: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**BaseResponseModelsResponse**](BaseResponseModelsResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/ModelsResponse.md b/docs/ModelsResponse.md deleted file mode 100644 index 292d3955..00000000 --- a/docs/ModelsResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# ModelsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**models** | **List[str]** | List of active models available analysis. | - -## Example - -```python -from revengai.models.models_response import ModelsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ModelsResponse from a JSON string -models_response_instance = ModelsResponse.from_json(json) -# print the JSON string representation of the object -print(ModelsResponse.to_json()) - -# convert the object into a dict -models_response_dict = models_response_instance.to_dict() -# create an instance of ModelsResponse from a dict -models_response_from_dict = ModelsResponse.from_dict(models_response_dict) -``` -[[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/NameSourceType.md b/docs/NameSourceType.md deleted file mode 100644 index 07cb20e9..00000000 --- a/docs/NameSourceType.md +++ /dev/null @@ -1,32 +0,0 @@ -# NameSourceType - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | The source (process) the function name came from | -**function_id** | **int** | | [optional] -**binary_id** | **int** | | [optional] -**analysis_id** | **int** | | [optional] - -## Example - -```python -from revengai.models.name_source_type import NameSourceType - -# TODO update the JSON string below -json = "{}" -# create an instance of NameSourceType from a JSON string -name_source_type_instance = NameSourceType.from_json(json) -# print the JSON string representation of the object -print(NameSourceType.to_json()) - -# convert the object into a dict -name_source_type_dict = name_source_type_instance.to_dict() -# create an instance of NameSourceType from a dict -name_source_type_from_dict = NameSourceType.from_dict(name_source_type_dict) -``` -[[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 deleted file mode 100644 index dac9ea3c..00000000 --- a/docs/Order.md +++ /dev/null @@ -1,14 +0,0 @@ -# Order - - -## Enum - -* `ASC` (value: `'ASC'`) - -* `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/PDBDebugModel.md b/docs/PDBDebugModel.md deleted file mode 100644 index 6d0d373c..00000000 --- a/docs/PDBDebugModel.md +++ /dev/null @@ -1,29 +0,0 @@ -# PDBDebugModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**debug_entries** | [**List[SinglePDBEntryModel]**](SinglePDBEntryModel.md) | | - -## Example - -```python -from revengai.models.pdb_debug_model import PDBDebugModel - -# TODO update the JSON string below -json = "{}" -# create an instance of PDBDebugModel from a JSON string -pdb_debug_model_instance = PDBDebugModel.from_json(json) -# print the JSON string representation of the object -print(PDBDebugModel.to_json()) - -# convert the object into a dict -pdb_debug_model_dict = pdb_debug_model_instance.to_dict() -# create an instance of PDBDebugModel from a dict -pdb_debug_model_from_dict = PDBDebugModel.from_dict(pdb_debug_model_dict) -``` -[[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/PEModel.md b/docs/PEModel.md deleted file mode 100644 index 33032c62..00000000 --- a/docs/PEModel.md +++ /dev/null @@ -1,48 +0,0 @@ -# PEModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**timestamps** | [**TimestampModel**](TimestampModel.md) | | -**architecture** | **str** | | -**checksum** | **int** | | -**image_base** | **int** | | -**security** | [**SecurityModel**](SecurityModel.md) | | -**version_info** | **Dict[str, object]** | | -**debug_info** | [**PDBDebugModel**](PDBDebugModel.md) | | -**number_of_resources** | **int** | | -**entry_point** | [**EntrypointModel**](EntrypointModel.md) | | -**signature** | [**CodeSignatureModel**](CodeSignatureModel.md) | | -**dotnet** | **bool** | | -**debug_stripped** | **bool** | | -**import_hash** | **str** | | -**export_hash** | **str** | | -**rich_header_hash** | **str** | | -**sections** | [**SectionModel**](SectionModel.md) | | -**imports** | [**ImportModel**](ImportModel.md) | | -**exports** | [**ExportModel**](ExportModel.md) | | -**icon_data** | [**IconModel**](IconModel.md) | | - -## Example - -```python -from revengai.models.pe_model import PEModel - -# TODO update the JSON string below -json = "{}" -# create an instance of PEModel from a JSON string -pe_model_instance = PEModel.from_json(json) -# print the JSON string representation of the object -print(PEModel.to_json()) - -# convert the object into a dict -pe_model_dict = pe_model_instance.to_dict() -# create an instance of PEModel from a dict -pe_model_from_dict = PEModel.from_dict(pe_model_dict) -``` -[[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/PaginationModel.md b/docs/PaginationModel.md deleted file mode 100644 index 81b1f748..00000000 --- a/docs/PaginationModel.md +++ /dev/null @@ -1,31 +0,0 @@ -# PaginationModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**page_size** | **int** | | -**page_number** | **int** | | -**has_next_page** | **bool** | | - -## Example - -```python -from revengai.models.pagination_model import PaginationModel - -# TODO update the JSON string below -json = "{}" -# create an instance of PaginationModel from a JSON string -pagination_model_instance = PaginationModel.from_json(json) -# print the JSON string representation of the object -print(PaginationModel.to_json()) - -# convert the object into a dict -pagination_model_dict = pagination_model_instance.to_dict() -# create an instance of PaginationModel from a dict -pagination_model_from_dict = PaginationModel.from_dict(pagination_model_dict) -``` -[[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/Params.md b/docs/Params.md deleted file mode 100644 index a24a867d..00000000 --- a/docs/Params.md +++ /dev/null @@ -1,35 +0,0 @@ -# Params - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**debug_hash** | **str** | | -**binary_size** | **int** | The size of the binary data | -**architecture** | **str** | The architecture of the binary data | -**binary_type** | **str** | The type of binary data | -**binary_format** | **str** | The format of the binary data | -**binary_dynamic** | **bool** | Whether the binary data is dynamic | -**model_name** | **str** | The name of the model | - -## Example - -```python -from revengai.models.params import Params - -# TODO update the JSON string below -json = "{}" -# create an instance of Params from a JSON string -params_instance = Params.from_json(json) -# print the JSON string representation of the object -print(Params.to_json()) - -# convert the object into a dict -params_dict = params_instance.to_dict() -# create an instance of Params from a dict -params_from_dict = Params.from_dict(params_dict) -``` -[[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 deleted file mode 100644 index d360cc89..00000000 --- a/docs/Platform.md +++ /dev/null @@ -1,16 +0,0 @@ -# Platform - - -## Enum - -* `LINUX` (value: `'linux'`) - -* `WINDOWS` (value: `'windows'`) - -* `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/PutAnalysisStringsRequest.md b/docs/PutAnalysisStringsRequest.md deleted file mode 100644 index 4180aadf..00000000 --- a/docs/PutAnalysisStringsRequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# PutAnalysisStringsRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**strings** | [**List[AnalysisStringInput]**](AnalysisStringInput.md) | The strings to add to the analysis | - -## Example - -```python -from revengai.models.put_analysis_strings_request import PutAnalysisStringsRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of PutAnalysisStringsRequest from a JSON string -put_analysis_strings_request_instance = PutAnalysisStringsRequest.from_json(json) -# print the JSON string representation of the object -print(PutAnalysisStringsRequest.to_json()) - -# convert the object into a dict -put_analysis_strings_request_dict = put_analysis_strings_request_instance.to_dict() -# create an instance of PutAnalysisStringsRequest from a dict -put_analysis_strings_request_from_dict = PutAnalysisStringsRequest.from_dict(put_analysis_strings_request_dict) -``` -[[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/QueuedWorkflowTaskResponse.md b/docs/QueuedWorkflowTaskResponse.md deleted file mode 100644 index 0ff47baf..00000000 --- a/docs/QueuedWorkflowTaskResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# QueuedWorkflowTaskResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**task_id** | **str** | | - -## Example - -```python -from revengai.models.queued_workflow_task_response import QueuedWorkflowTaskResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of QueuedWorkflowTaskResponse from a JSON string -queued_workflow_task_response_instance = QueuedWorkflowTaskResponse.from_json(json) -# print the JSON string representation of the object -print(QueuedWorkflowTaskResponse.to_json()) - -# convert the object into a dict -queued_workflow_task_response_dict = queued_workflow_task_response_instance.to_dict() -# create an instance of QueuedWorkflowTaskResponse from a dict -queued_workflow_task_response_from_dict = QueuedWorkflowTaskResponse.from_dict(queued_workflow_task_response_dict) -``` -[[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/ReAnalysisForm.md b/docs/ReAnalysisForm.md deleted file mode 100644 index e6999f19..00000000 --- a/docs/ReAnalysisForm.md +++ /dev/null @@ -1,35 +0,0 @@ -# ReAnalysisForm - -Form Model for receiving the analysis request - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | **List[str]** | Tags associated with the analysis | [optional] [default to []] -**command_line_args** | **str** | Command line arguments for dynamic execution | [optional] [default to ''] -**priority** | **int** | Priority of the analysis | [optional] [default to 0] -**essential** | **bool** | Only runs essential parts of the analysis, skips tags/sbom/cves etc. | [optional] [default to True] -**model_name** | **str** | | [optional] -**no_cache** | **bool** | When enabled, skips using cached data within the processing. | [optional] [default to False] - -## Example - -```python -from revengai.models.re_analysis_form import ReAnalysisForm - -# TODO update the JSON string below -json = "{}" -# create an instance of ReAnalysisForm from a JSON string -re_analysis_form_instance = ReAnalysisForm.from_json(json) -# print the JSON string representation of the object -print(ReAnalysisForm.to_json()) - -# convert the object into a dict -re_analysis_form_dict = re_analysis_form_instance.to_dict() -# create an instance of ReAnalysisForm from a dict -re_analysis_form_from_dict = ReAnalysisForm.from_dict(re_analysis_form_dict) -``` -[[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/Recent.md b/docs/Recent.md deleted file mode 100644 index 274b5bce..00000000 --- a/docs/Recent.md +++ /dev/null @@ -1,29 +0,0 @@ -# Recent - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**List[AnalysisRecord]**](AnalysisRecord.md) | 2D List containing the results of the analysis | - -## Example - -```python -from revengai.models.recent import Recent - -# TODO update the JSON string below -json = "{}" -# create an instance of Recent from a JSON string -recent_instance = Recent.from_json(json) -# print the JSON string representation of the object -print(Recent.to_json()) - -# convert the object into a dict -recent_dict = recent_instance.to_dict() -# create an instance of Recent from a dict -recent_from_dict = Recent.from_dict(recent_dict) -``` -[[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/RelativeBinaryResponse.md b/docs/RelativeBinaryResponse.md deleted file mode 100644 index 2661900f..00000000 --- a/docs/RelativeBinaryResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# RelativeBinaryResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**binary_id** | **int** | ID of the relative binary | -**analysis_id** | **int** | | [optional] -**name** | **str** | Name of the relative binary | -**sha256** | **str** | SHA256 hash of the relative binary | - -## Example - -```python -from revengai.models.relative_binary_response import RelativeBinaryResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of RelativeBinaryResponse from a JSON string -relative_binary_response_instance = RelativeBinaryResponse.from_json(json) -# print the JSON string representation of the object -print(RelativeBinaryResponse.to_json()) - -# convert the object into a dict -relative_binary_response_dict = relative_binary_response_instance.to_dict() -# create an instance of RelativeBinaryResponse from a dict -relative_binary_response_from_dict = RelativeBinaryResponse.from_dict(relative_binary_response_dict) -``` -[[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/ReportAnalysisResponse.md b/docs/ReportAnalysisResponse.md deleted file mode 100644 index 096dff76..00000000 --- a/docs/ReportAnalysisResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# ReportAnalysisResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**summary** | **str** | A markdown summary of the report | -**software_type** | **str** | The type of software being analyzed | -**total_number_of_functions** | **int** | The total number of functions identified in the binary | -**number_of_analysed_functions** | **int** | The number of functions that were analyzed in the binary | -**attack_flow_summary** | **str** | A summary in markdown format of the attack flow | -**iocs** | [**List[IOC]**](IOC.md) | A list of IOCs (Indicators of Compromise) found in the analysis | -**executable_techniques** | [**List[MITRETechnique]**](MITRETechnique.md) | A series of MITRE Techniques found | -**yara_rule** | **str** | The YARA rule generated for the binary | - -## Example - -```python -from revengai.models.report_analysis_response import ReportAnalysisResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ReportAnalysisResponse from a JSON string -report_analysis_response_instance = ReportAnalysisResponse.from_json(json) -# print the JSON string representation of the object -print(ReportAnalysisResponse.to_json()) - -# convert the object into a dict -report_analysis_response_dict = report_analysis_response_instance.to_dict() -# create an instance of ReportAnalysisResponse from a dict -report_analysis_response_from_dict = ReportAnalysisResponse.from_dict(report_analysis_response_dict) -``` -[[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/SBOM.md b/docs/SBOM.md deleted file mode 100644 index 0bb79a39..00000000 --- a/docs/SBOM.md +++ /dev/null @@ -1,30 +0,0 @@ -# SBOM - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**packages** | [**List[SBOMPackage]**](SBOMPackage.md) | The packages found | -**imported_libs** | **List[str]** | The import libraries found | - -## Example - -```python -from revengai.models.sbom import SBOM - -# TODO update the JSON string below -json = "{}" -# create an instance of SBOM from a JSON string -sbom_instance = SBOM.from_json(json) -# print the JSON string representation of the object -print(SBOM.to_json()) - -# convert the object into a dict -sbom_dict = sbom_instance.to_dict() -# create an instance of SBOM from a dict -sbom_from_dict = SBOM.from_dict(sbom_dict) -``` -[[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/SBOMPackage.md b/docs/SBOMPackage.md deleted file mode 100644 index e3404740..00000000 --- a/docs/SBOMPackage.md +++ /dev/null @@ -1,30 +0,0 @@ -# SBOMPackage - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name of the package | -**version** | **str** | The version of the package | - -## Example - -```python -from revengai.models.sbom_package import SBOMPackage - -# TODO update the JSON string below -json = "{}" -# create an instance of SBOMPackage from a JSON string -sbom_package_instance = SBOMPackage.from_json(json) -# print the JSON string representation of the object -print(SBOMPackage.to_json()) - -# convert the object into a dict -sbom_package_dict = sbom_package_instance.to_dict() -# create an instance of SBOMPackage from a dict -sbom_package_from_dict = SBOMPackage.from_dict(sbom_package_dict) -``` -[[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/SandboxOptions.md b/docs/SandboxOptions.md deleted file mode 100644 index e52cdb14..00000000 --- a/docs/SandboxOptions.md +++ /dev/null @@ -1,35 +0,0 @@ -# SandboxOptions - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **bool** | | [optional] [default to False] -**command_line_args** | **str** | The command line parameters to pass to the dynamic execution sandbox. Requires `sandbox` to be True. | [optional] [default to ''] -**start_method** | [**SandboxStartMethod**](SandboxStartMethod.md) | | [optional] -**timeout** | [**SandboxTimeout**](SandboxTimeout.md) | Maximum execution time for the sandbox run, in seconds. Allowed values: 120 (2m), 180 (3m), 300 (5m), 600 (10m). | [optional] -**archive_sha_256_hash** | **str** | | [optional] -**archive_entry_path** | **str** | | [optional] -**archive_password** | **str** | | [optional] - -## Example - -```python -from revengai.models.sandbox_options import SandboxOptions - -# TODO update the JSON string below -json = "{}" -# create an instance of SandboxOptions from a JSON string -sandbox_options_instance = SandboxOptions.from_json(json) -# print the JSON string representation of the object -print(SandboxOptions.to_json()) - -# convert the object into a dict -sandbox_options_dict = sandbox_options_instance.to_dict() -# create an instance of SandboxOptions from a dict -sandbox_options_from_dict = SandboxOptions.from_dict(sandbox_options_dict) -``` -[[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 deleted file mode 100644 index ef3c91c5..00000000 --- a/docs/SandboxStartMethod.md +++ /dev/null @@ -1,14 +0,0 @@ -# SandboxStartMethod - - -## Enum - -* `STANDARD_USER_PROCESS` (value: `'standard_user_process'`) - -* `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 deleted file mode 100644 index be1e03cc..00000000 --- a/docs/SandboxTimeout.md +++ /dev/null @@ -1,18 +0,0 @@ -# SandboxTimeout - - -## Enum - -* `NUMBER_120` (value: `120`) - -* `NUMBER_180` (value: `180`) - -* `NUMBER_300` (value: `300`) - -* `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/ScrapeThirdPartyConfig.md b/docs/ScrapeThirdPartyConfig.md deleted file mode 100644 index e2075179..00000000 --- a/docs/ScrapeThirdPartyConfig.md +++ /dev/null @@ -1,29 +0,0 @@ -# ScrapeThirdPartyConfig - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **bool** | | [optional] [default to False] - -## Example - -```python -from revengai.models.scrape_third_party_config import ScrapeThirdPartyConfig - -# TODO update the JSON string below -json = "{}" -# create an instance of ScrapeThirdPartyConfig from a JSON string -scrape_third_party_config_instance = ScrapeThirdPartyConfig.from_json(json) -# print the JSON string representation of the object -print(ScrapeThirdPartyConfig.to_json()) - -# convert the object into a dict -scrape_third_party_config_dict = scrape_third_party_config_instance.to_dict() -# create an instance of ScrapeThirdPartyConfig from a dict -scrape_third_party_config_from_dict = ScrapeThirdPartyConfig.from_dict(scrape_third_party_config_dict) -``` -[[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/SearchApi.md b/docs/SearchApi.md deleted file mode 100644 index 6ff15a42..00000000 --- a/docs/SearchApi.md +++ /dev/null @@ -1,403 +0,0 @@ -# revengai.SearchApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**search_binaries**](SearchApi.md#search_binaries) | **GET** /v2/search/binaries | Binaries search -[**search_collections**](SearchApi.md#search_collections) | **GET** /v2/search/collections | Collections search -[**search_functions**](SearchApi.md#search_functions) | **GET** /v2/search/functions | Functions search -[**search_tags**](SearchApi.md#search_tags) | **GET** /v2/search/tags | Tags search - - -# **search_binaries** -> BaseResponseBinarySearchResponse search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, exclude_binary_id=exclude_binary_id, user_ids=user_ids) - -Binaries search - -Searches for a specific binary - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_binary_search_response import BaseResponseBinarySearchResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.SearchApi(api_client) - page = 1 # int | The page number to retrieve. (optional) (default to 1) - page_size = 10 # int | Number of items per page. (optional) (default to 10) - partial_name = 'partial_name_example' # str | The partial or full name of the binary being searched (optional) - partial_sha256 = 'partial_sha256_example' # str | The partial or full sha256 of the binary being searched (optional) - tags = ['tags_example'] # List[str] | The tags to be searched for (optional) - model_name = 'model_name_example' # str | The name of the model used to analyze the binary the function belongs to (optional) - user_files_only = False # bool | Whether to only search user's uploaded files (optional) (default to False) - exclude_binary_id = 56 # int | A binary ID to exclude from the results (optional) - user_ids = [56] # List[int] | Restrict the search to binaries owned by these user IDs (optional) - - try: - # Binaries search - api_response = api_instance.search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, exclude_binary_id=exclude_binary_id, user_ids=user_ids) - print("The response of SearchApi->search_binaries:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SearchApi->search_binaries: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **int**| The page number to retrieve. | [optional] [default to 1] - **page_size** | **int**| Number of items per page. | [optional] [default to 10] - **partial_name** | **str**| The partial or full name of the binary being searched | [optional] - **partial_sha256** | **str**| The partial or full sha256 of the binary being searched | [optional] - **tags** | [**List[str]**](str.md)| The tags to be searched for | [optional] - **model_name** | **str**| The name of the model used to analyze the binary the function belongs to | [optional] - **user_files_only** | **bool**| Whether to only search user's uploaded files | [optional] [default to False] - **exclude_binary_id** | **int**| A binary ID to exclude from the results | [optional] - **user_ids** | [**List[int]**](int.md)| Restrict the search to binaries owned by these user IDs | [optional] - -### Return type - -[**BaseResponseBinarySearchResponse**](BaseResponseBinarySearchResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **search_collections** -> BaseResponseCollectionSearchResponse search_collections(page=page, page_size=page_size, partial_collection_name=partial_collection_name, partial_binary_name=partial_binary_name, partial_binary_sha256=partial_binary_sha256, tags=tags, filters=filters, order_by=order_by, order_by_direction=order_by_direction, user_ids=user_ids) - -Collections search - -Searches for a specific collection - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy -from revengai.models.base_response_collection_search_response import BaseResponseCollectionSearchResponse -from revengai.models.filters import Filters -from revengai.models.order import Order -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.SearchApi(api_client) - page = 1 # int | The page number to retrieve. (optional) (default to 1) - page_size = 10 # int | Number of items per page. (optional) (default to 10) - partial_collection_name = 'partial_collection_name_example' # str | The partial or full name of the collection being searched (optional) - partial_binary_name = 'partial_binary_name_example' # str | The partial or full name of the binary belonging to the collection (optional) - partial_binary_sha256 = 'partial_binary_sha256_example' # str | The partial or full sha256 of the binary belonging to the collection (optional) - tags = ['tags_example'] # List[str] | The tags to be searched for (optional) - filters = [revengai.Filters()] # List[Filters] | The filters to be used for the search (optional) - order_by = revengai.AppApiRestV2CollectionsEnumsOrderBy() # AppApiRestV2CollectionsEnumsOrderBy | The field to sort the order by in the results (optional) - order_by_direction = revengai.Order() # Order | The order direction in which to return results (optional) - user_ids = [56] # List[int] | Restrict the search to collections owned by these user IDs (optional) - - try: - # Collections search - api_response = api_instance.search_collections(page=page, page_size=page_size, partial_collection_name=partial_collection_name, partial_binary_name=partial_binary_name, partial_binary_sha256=partial_binary_sha256, tags=tags, filters=filters, order_by=order_by, order_by_direction=order_by_direction, user_ids=user_ids) - print("The response of SearchApi->search_collections:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SearchApi->search_collections: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **int**| The page number to retrieve. | [optional] [default to 1] - **page_size** | **int**| Number of items per page. | [optional] [default to 10] - **partial_collection_name** | **str**| The partial or full name of the collection being searched | [optional] - **partial_binary_name** | **str**| The partial or full name of the binary belonging to the collection | [optional] - **partial_binary_sha256** | **str**| The partial or full sha256 of the binary belonging to the collection | [optional] - **tags** | [**List[str]**](str.md)| The tags to be searched for | [optional] - **filters** | [**List[Filters]**](Filters.md)| The filters to be used for the search | [optional] - **order_by** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| The field to sort the order by in the results | [optional] - **order_by_direction** | [**Order**](.md)| The order direction in which to return results | [optional] - **user_ids** | [**List[int]**](int.md)| Restrict the search to collections owned by these user IDs | [optional] - -### Return type - -[**BaseResponseCollectionSearchResponse**](BaseResponseCollectionSearchResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **search_functions** -> BaseResponseFunctionSearchResponse search_functions(page=page, page_size=page_size, partial_name=partial_name, model_name=model_name) - -Functions search - -Searches for a specific function - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_function_search_response import BaseResponseFunctionSearchResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.SearchApi(api_client) - page = 1 # int | The page number to retrieve. (optional) (default to 1) - page_size = 10 # int | Number of items per page. (optional) (default to 10) - partial_name = 'partial_name_example' # str | The partial or full name of the function being searched (optional) - model_name = 'model_name_example' # str | The name of the model used to analyze the binary the function belongs to (optional) - - try: - # Functions search - api_response = api_instance.search_functions(page=page, page_size=page_size, partial_name=partial_name, model_name=model_name) - print("The response of SearchApi->search_functions:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SearchApi->search_functions: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **int**| The page number to retrieve. | [optional] [default to 1] - **page_size** | **int**| Number of items per page. | [optional] [default to 10] - **partial_name** | **str**| The partial or full name of the function being searched | [optional] - **model_name** | **str**| The name of the model used to analyze the binary the function belongs to | [optional] - -### Return type - -[**BaseResponseFunctionSearchResponse**](BaseResponseFunctionSearchResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | You must provide at least one of the filters; partial_name, or model_name to search | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **search_tags** -> BaseResponseTagSearchResponse search_tags(partial_name, page=page, page_size=page_size) - -Tags search - -Searches for tags by there name - -### Example - -* Api Key Authentication (APIKey): -* Bearer Authentication (bearerAuth): - -```python -import revengai -from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Configure Bearer authorization: bearerAuth -configuration = revengai.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.SearchApi(api_client) - partial_name = 'partial_name_example' # str | The partial or full name of the tag to search for - page = 1 # int | The page number to retrieve. (optional) (default to 1) - page_size = 10 # int | Number of items per page. (optional) (default to 10) - - try: - # Tags search - api_response = api_instance.search_tags(partial_name, page=page, page_size=page_size) - print("The response of SearchApi->search_tags:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SearchApi->search_tags: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **partial_name** | **str**| The partial or full name of the tag to search for | - **page** | **int**| The page number to retrieve. | [optional] [default to 1] - **page_size** | **int**| Number of items per page. | [optional] [default to 10] - -### Return type - -[**BaseResponseTagSearchResponse**](BaseResponseTagSearchResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | You must provide a partial_name to search and it must be greater than 3 characters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/SectionModel.md b/docs/SectionModel.md deleted file mode 100644 index 3b9ab286..00000000 --- a/docs/SectionModel.md +++ /dev/null @@ -1,30 +0,0 @@ -# SectionModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number_of_sections** | **int** | | -**sections** | [**List[SingleSectionModel]**](SingleSectionModel.md) | | - -## Example - -```python -from revengai.models.section_model import SectionModel - -# TODO update the JSON string below -json = "{}" -# create an instance of SectionModel from a JSON string -section_model_instance = SectionModel.from_json(json) -# print the JSON string representation of the object -print(SectionModel.to_json()) - -# convert the object into a dict -section_model_dict = section_model_instance.to_dict() -# create an instance of SectionModel from a dict -section_model_from_dict = SectionModel.from_dict(section_model_dict) -``` -[[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/SecurityModel.md b/docs/SecurityModel.md deleted file mode 100644 index 742bf98c..00000000 --- a/docs/SecurityModel.md +++ /dev/null @@ -1,39 +0,0 @@ -# SecurityModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aslr** | **bool** | | -**dep** | **bool** | | -**cfg** | **bool** | | -**driver_model** | **bool** | | -**app_container** | **bool** | | -**terminal_server_aware** | **bool** | | -**image_isolation** | **bool** | | -**code_integrity** | **bool** | | -**high_entropy** | **bool** | | -**seh** | **bool** | | -**bound_image** | **bool** | | - -## Example - -```python -from revengai.models.security_model import SecurityModel - -# TODO update the JSON string below -json = "{}" -# create an instance of SecurityModel from a JSON string -security_model_instance = SecurityModel.from_json(json) -# print the JSON string representation of the object -print(SecurityModel.to_json()) - -# convert the object into a dict -security_model_dict = security_model_instance.to_dict() -# create an instance of SecurityModel from a dict -security_model_from_dict = SecurityModel.from_dict(security_model_dict) -``` -[[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/SegmentInfo.md b/docs/SegmentInfo.md deleted file mode 100644 index d4068bde..00000000 --- a/docs/SegmentInfo.md +++ /dev/null @@ -1,35 +0,0 @@ -# SegmentInfo - -Represents the information about a segment. Attributes: name: The name of the segment. r: Determines if the segment has read permission. w: Determines if the segment has write permission. x: Determines if the segment has execute permission. start: The start address of the segment. end: The end address of the segment. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | [optional] [default to ''] -**r** | **bool** | | [optional] -**w** | **bool** | | [optional] -**x** | **bool** | | [optional] -**start** | **int** | | [optional] [default to 0] -**end** | **int** | | [optional] [default to 0] - -## Example - -```python -from revengai.models.segment_info import SegmentInfo - -# TODO update the JSON string below -json = "{}" -# create an instance of SegmentInfo from a JSON string -segment_info_instance = SegmentInfo.from_json(json) -# print the JSON string representation of the object -print(SegmentInfo.to_json()) - -# convert the object into a dict -segment_info_dict = segment_info_instance.to_dict() -# create an instance of SegmentInfo from a dict -segment_info_from_dict = SegmentInfo.from_dict(segment_info_dict) -``` -[[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/SingleCodeCertificateModel.md b/docs/SingleCodeCertificateModel.md deleted file mode 100644 index 49999315..00000000 --- a/docs/SingleCodeCertificateModel.md +++ /dev/null @@ -1,34 +0,0 @@ -# SingleCodeCertificateModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**version** | **int** | | -**issued_on** | **str** | | -**expires_on** | **str** | | -**issuer_name** | **str** | | -**serial_number** | **str** | | -**subject_name** | **str** | | - -## Example - -```python -from revengai.models.single_code_certificate_model import SingleCodeCertificateModel - -# TODO update the JSON string below -json = "{}" -# create an instance of SingleCodeCertificateModel from a JSON string -single_code_certificate_model_instance = SingleCodeCertificateModel.from_json(json) -# print the JSON string representation of the object -print(SingleCodeCertificateModel.to_json()) - -# convert the object into a dict -single_code_certificate_model_dict = single_code_certificate_model_instance.to_dict() -# create an instance of SingleCodeCertificateModel from a dict -single_code_certificate_model_from_dict = SingleCodeCertificateModel.from_dict(single_code_certificate_model_dict) -``` -[[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/SingleCodeSignatureModel.md b/docs/SingleCodeSignatureModel.md deleted file mode 100644 index 4c81a224..00000000 --- a/docs/SingleCodeSignatureModel.md +++ /dev/null @@ -1,30 +0,0 @@ -# SingleCodeSignatureModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**certificates** | [**List[SingleCodeCertificateModel]**](SingleCodeCertificateModel.md) | | -**authenticode_digest** | **str** | | - -## Example - -```python -from revengai.models.single_code_signature_model import SingleCodeSignatureModel - -# TODO update the JSON string below -json = "{}" -# create an instance of SingleCodeSignatureModel from a JSON string -single_code_signature_model_instance = SingleCodeSignatureModel.from_json(json) -# print the JSON string representation of the object -print(SingleCodeSignatureModel.to_json()) - -# convert the object into a dict -single_code_signature_model_dict = single_code_signature_model_instance.to_dict() -# create an instance of SingleCodeSignatureModel from a dict -single_code_signature_model_from_dict = SingleCodeSignatureModel.from_dict(single_code_signature_model_dict) -``` -[[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/SinglePDBEntryModel.md b/docs/SinglePDBEntryModel.md deleted file mode 100644 index d453362c..00000000 --- a/docs/SinglePDBEntryModel.md +++ /dev/null @@ -1,31 +0,0 @@ -# SinglePDBEntryModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**guid** | **str** | | -**age** | **int** | | -**path** | **str** | | - -## Example - -```python -from revengai.models.single_pdb_entry_model import SinglePDBEntryModel - -# TODO update the JSON string below -json = "{}" -# create an instance of SinglePDBEntryModel from a JSON string -single_pdb_entry_model_instance = SinglePDBEntryModel.from_json(json) -# print the JSON string representation of the object -print(SinglePDBEntryModel.to_json()) - -# convert the object into a dict -single_pdb_entry_model_dict = single_pdb_entry_model_instance.to_dict() -# create an instance of SinglePDBEntryModel from a dict -single_pdb_entry_model_from_dict = SinglePDBEntryModel.from_dict(single_pdb_entry_model_dict) -``` -[[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/SingleSectionModel.md b/docs/SingleSectionModel.md deleted file mode 100644 index f8c82daf..00000000 --- a/docs/SingleSectionModel.md +++ /dev/null @@ -1,35 +0,0 @@ -# SingleSectionModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**virtual_address** | **int** | | -**virtual_size** | **int** | | -**characteristics** | **str** | | -**raw_size** | **int** | | -**entropy** | **float** | | -**sha3_256** | **str** | | - -## Example - -```python -from revengai.models.single_section_model import SingleSectionModel - -# TODO update the JSON string below -json = "{}" -# create an instance of SingleSectionModel from a JSON string -single_section_model_instance = SingleSectionModel.from_json(json) -# print the JSON string representation of the object -print(SingleSectionModel.to_json()) - -# convert the object into a dict -single_section_model_dict = single_section_model_instance.to_dict() -# create an instance of SingleSectionModel from a dict -single_section_model_from_dict = SingleSectionModel.from_dict(single_section_model_dict) -``` -[[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/StackVariable.md b/docs/StackVariable.md deleted file mode 100644 index 4d78f8eb..00000000 --- a/docs/StackVariable.md +++ /dev/null @@ -1,34 +0,0 @@ -# StackVariable - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] -**offset** | **int** | Offset of the stack variable | -**name** | **str** | Name of the stack variable | -**type** | **str** | Data type of the stack variable | -**size** | **int** | Size of the stack variable in bytes | -**addr** | **int** | Memory address of the stack variable | - -## Example - -```python -from revengai.models.stack_variable import StackVariable - -# TODO update the JSON string below -json = "{}" -# create an instance of StackVariable from a JSON string -stack_variable_instance = StackVariable.from_json(json) -# print the JSON string representation of the object -print(StackVariable.to_json()) - -# convert the object into a dict -stack_variable_dict = stack_variable_instance.to_dict() -# create an instance of StackVariable from a dict -stack_variable_from_dict = StackVariable.from_dict(stack_variable_dict) -``` -[[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/StartBatchMatchingInputBody.md b/docs/StartBatchMatchingInputBody.md index 59b53034..3887605d 100644 --- a/docs/StartBatchMatchingInputBody.md +++ b/docs/StartBatchMatchingInputBody.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **binary_ids** | **List[int]** | Binary IDs to match the analysis against, one workflow per binary. | -**debug_types** | **List[Optional[str]]** | Restrict matches to candidates with these debug source types. Defaults to [\"SYSTEM\"]. | [optional] +**debug_types** | **List[str]** | Restrict matches to candidates with these debug source types. Defaults to [\"SYSTEM\"]. | [optional] **min_similarity** | **float** | Similarity floor as a percentage. Defaults to 90. | [optional] **results_per_function** | **int** | Max matches returned per source function. Defaults to 1. | [optional] diff --git a/docs/StatusInput.md b/docs/StatusInput.md deleted file mode 100644 index 6b160cd4..00000000 --- a/docs/StatusInput.md +++ /dev/null @@ -1,23 +0,0 @@ -# StatusInput - -Custom enum for the analysis status - -## Enum - -* `UPLOADED` (value: `'Uploaded'`) - -* `QUEUED` (value: `'Queued'`) - -* `COMPLETE` (value: `'Complete'`) - -* `ERROR` (value: `'Error'`) - -* `PROCESSING` (value: `'Processing'`) - -* `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/StatusOutput.md b/docs/StatusOutput.md deleted file mode 100644 index 97ca585d..00000000 --- a/docs/StatusOutput.md +++ /dev/null @@ -1,30 +0,0 @@ -# StatusOutput - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_id** | **int** | The ID corresponding to the checked status | -**analysis_status** | **str** | The status of the checked analysis | - -## Example - -```python -from revengai.models.status_output import StatusOutput - -# TODO update the JSON string below -json = "{}" -# create an instance of StatusOutput from a JSON string -status_output_instance = StatusOutput.from_json(json) -# print the JSON string representation of the object -print(StatusOutput.to_json()) - -# convert the object into a dict -status_output_dict = status_output_instance.to_dict() -# create an instance of StatusOutput from a dict -status_output_from_dict = StatusOutput.from_dict(status_output_dict) -``` -[[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/StringFunctions.md b/docs/StringFunctions.md deleted file mode 100644 index 975215cf..00000000 --- a/docs/StringFunctions.md +++ /dev/null @@ -1,32 +0,0 @@ -# StringFunctions - -This is a string with the functions where the string is used. A function string is a string literal referenced within a function. When analyzing stripped or obfuscated binaries, function strings can help identify the function’s purpose. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | The value of the string literal | -**functions** | [**List[AppApiRestV2FunctionsResponsesFunction]**](AppApiRestV2FunctionsResponsesFunction.md) | The function ids the string literal was found within | -**source** | [**StringSource**](StringSource.md) | The source of the string | [optional] - -## Example - -```python -from revengai.models.string_functions import StringFunctions - -# TODO update the JSON string below -json = "{}" -# create an instance of StringFunctions from a JSON string -string_functions_instance = StringFunctions.from_json(json) -# print the JSON string representation of the object -print(StringFunctions.to_json()) - -# convert the object into a dict -string_functions_dict = string_functions_instance.to_dict() -# create an instance of StringFunctions from a dict -string_functions_from_dict = StringFunctions.from_dict(string_functions_dict) -``` -[[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 deleted file mode 100644 index 63dd7bde..00000000 --- a/docs/StringSource.md +++ /dev/null @@ -1,16 +0,0 @@ -# StringSource - - -## Enum - -* `SYSTEM` (value: `'SYSTEM'`) - -* `USER` (value: `'USER'`) - -* `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/Structure.md b/docs/Structure.md deleted file mode 100644 index faf87db9..00000000 --- a/docs/Structure.md +++ /dev/null @@ -1,33 +0,0 @@ -# Structure - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] -**name** | **str** | Name of the structure | -**size** | **int** | | [optional] -**members** | [**Dict[str, StructureMember]**](StructureMember.md) | Dictionary of structure members | -**artifact_type** | **str** | Type of artifact that the structure is associated with | [optional] - -## Example - -```python -from revengai.models.structure import Structure - -# TODO update the JSON string below -json = "{}" -# create an instance of Structure from a JSON string -structure_instance = Structure.from_json(json) -# print the JSON string representation of the object -print(Structure.to_json()) - -# convert the object into a dict -structure_dict = structure_instance.to_dict() -# create an instance of Structure from a dict -structure_from_dict = Structure.from_dict(structure_dict) -``` -[[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/StructureMember.md b/docs/StructureMember.md deleted file mode 100644 index ff94d507..00000000 --- a/docs/StructureMember.md +++ /dev/null @@ -1,33 +0,0 @@ -# StructureMember - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] -**name** | **str** | Name of the structure member | -**offset** | **int** | Offset of the member within the structure | -**type** | **str** | Data type of the structure member | -**size** | **int** | Size of the structure member in bytes | - -## Example - -```python -from revengai.models.structure_member import StructureMember - -# TODO update the JSON string below -json = "{}" -# create an instance of StructureMember from a JSON string -structure_member_instance = StructureMember.from_json(json) -# print the JSON string representation of the object -print(StructureMember.to_json()) - -# convert the object into a dict -structure_member_dict = structure_member_instance.to_dict() -# create an instance of StructureMember from a dict -structure_member_from_dict = StructureMember.from_dict(structure_member_dict) -``` -[[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/SubmitUserFeedbackRequest.md b/docs/SubmitUserFeedbackRequest.md deleted file mode 100644 index 32fd59cd..00000000 --- a/docs/SubmitUserFeedbackRequest.md +++ /dev/null @@ -1,31 +0,0 @@ -# SubmitUserFeedbackRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**current_route** | **str** | The route from where the feedback was submitted | -**feedback** | **str** | The user's feedback | -**screen_capture_url** | **str** | | [optional] - -## Example - -```python -from revengai.models.submit_user_feedback_request import SubmitUserFeedbackRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of SubmitUserFeedbackRequest from a JSON string -submit_user_feedback_request_instance = SubmitUserFeedbackRequest.from_json(json) -# print the JSON string representation of the object -print(SubmitUserFeedbackRequest.to_json()) - -# convert the object into a dict -submit_user_feedback_request_dict = submit_user_feedback_request_instance.to_dict() -# create an instance of SubmitUserFeedbackRequest from a dict -submit_user_feedback_request_from_dict = SubmitUserFeedbackRequest.from_dict(submit_user_feedback_request_dict) -``` -[[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/Symbols.md b/docs/Symbols.md deleted file mode 100644 index dbdf418d..00000000 --- a/docs/Symbols.md +++ /dev/null @@ -1,30 +0,0 @@ -# Symbols - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**base_address** | **int** | The starting address of the execution | -**function_boundaries** | [**List[FunctionBoundary]**](FunctionBoundary.md) | List of user defined function boundaries | [optional] [default to []] - -## Example - -```python -from revengai.models.symbols import Symbols - -# TODO update the JSON string below -json = "{}" -# create an instance of Symbols from a JSON string -symbols_instance = Symbols.from_json(json) -# print the JSON string representation of the object -print(Symbols.to_json()) - -# convert the object into a dict -symbols_dict = symbols_instance.to_dict() -# create an instance of Symbols from a dict -symbols_from_dict = Symbols.from_dict(symbols_dict) -``` -[[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/Tag.md b/docs/Tag.md deleted file mode 100644 index b5606bdf..00000000 --- a/docs/Tag.md +++ /dev/null @@ -1,29 +0,0 @@ -# Tag - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | - -## Example - -```python -from revengai.models.tag import Tag - -# TODO update the JSON string below -json = "{}" -# create an instance of Tag from a JSON string -tag_instance = Tag.from_json(json) -# print the JSON string representation of the object -print(Tag.to_json()) - -# convert the object into a dict -tag_dict = tag_instance.to_dict() -# create an instance of Tag from a dict -tag_from_dict = Tag.from_dict(tag_dict) -``` -[[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/TagItem.md b/docs/TagItem.md deleted file mode 100644 index ff7945de..00000000 --- a/docs/TagItem.md +++ /dev/null @@ -1,31 +0,0 @@ -# TagItem - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**origin** | **str** | | -**collection_id** | **int** | | [optional] - -## Example - -```python -from revengai.models.tag_item import TagItem - -# TODO update the JSON string below -json = "{}" -# create an instance of TagItem from a JSON string -tag_item_instance = TagItem.from_json(json) -# print the JSON string representation of the object -print(TagItem.to_json()) - -# convert the object into a dict -tag_item_dict = tag_item_instance.to_dict() -# create an instance of TagItem from a dict -tag_item_from_dict = TagItem.from_dict(tag_item_dict) -``` -[[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/TagResponse.md b/docs/TagResponse.md deleted file mode 100644 index 526622fe..00000000 --- a/docs/TagResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# TagResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name of the tag | -**origin** | **str** | Origin of tag | - -## Example - -```python -from revengai.models.tag_response import TagResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of TagResponse from a JSON string -tag_response_instance = TagResponse.from_json(json) -# print the JSON string representation of the object -print(TagResponse.to_json()) - -# convert the object into a dict -tag_response_dict = tag_response_instance.to_dict() -# create an instance of TagResponse from a dict -tag_response_from_dict = TagResponse.from_dict(tag_response_dict) -``` -[[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/TagSearchResponse.md b/docs/TagSearchResponse.md deleted file mode 100644 index 3630b6b4..00000000 --- a/docs/TagSearchResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# TagSearchResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**List[TagSearchResult]**](TagSearchResult.md) | The results of the search | - -## Example - -```python -from revengai.models.tag_search_response import TagSearchResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of TagSearchResponse from a JSON string -tag_search_response_instance = TagSearchResponse.from_json(json) -# print the JSON string representation of the object -print(TagSearchResponse.to_json()) - -# convert the object into a dict -tag_search_response_dict = tag_search_response_instance.to_dict() -# create an instance of TagSearchResponse from a dict -tag_search_response_from_dict = TagSearchResponse.from_dict(tag_search_response_dict) -``` -[[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/TagSearchResult.md b/docs/TagSearchResult.md deleted file mode 100644 index 4fdb8247..00000000 --- a/docs/TagSearchResult.md +++ /dev/null @@ -1,30 +0,0 @@ -# TagSearchResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tag_id** | **int** | The ID of the tag | -**tag** | **str** | The name of the tag | - -## Example - -```python -from revengai.models.tag_search_result import TagSearchResult - -# TODO update the JSON string below -json = "{}" -# create an instance of TagSearchResult from a JSON string -tag_search_result_instance = TagSearchResult.from_json(json) -# print the JSON string representation of the object -print(TagSearchResult.to_json()) - -# convert the object into a dict -tag_search_result_dict = tag_search_result_instance.to_dict() -# create an instance of TagSearchResult from a dict -tag_search_result_from_dict = TagSearchResult.from_dict(tag_search_result_dict) -``` -[[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/TaskResponse.md b/docs/TaskResponse.md deleted file mode 100644 index e9612fde..00000000 --- a/docs/TaskResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# TaskResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**TaskStatus**](TaskStatus.md) | | [optional] -**error_message** | **str** | | [optional] - -## Example - -```python -from revengai.models.task_response import TaskResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of TaskResponse from a JSON string -task_response_instance = TaskResponse.from_json(json) -# print the JSON string representation of the object -print(TaskResponse.to_json()) - -# convert the object into a dict -task_response_dict = task_response_instance.to_dict() -# create an instance of TaskResponse from a dict -task_response_from_dict = TaskResponse.from_dict(task_response_dict) -``` -[[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 deleted file mode 100644 index 0b3e91e8..00000000 --- a/docs/TaskStatus.md +++ /dev/null @@ -1,20 +0,0 @@ -# TaskStatus - - -## Enum - -* `UNINITIALISED` (value: `'UNINITIALISED'`) - -* `PENDING` (value: `'PENDING'`) - -* `RUNNING` (value: `'RUNNING'`) - -* `COMPLETED` (value: `'COMPLETED'`) - -* `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/TaskStatusResponse.md b/docs/TaskStatusResponse.md deleted file mode 100644 index 1e96c46e..00000000 --- a/docs/TaskStatusResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# TaskStatusResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**BinaryTaskStatus**](BinaryTaskStatus.md) | | -**log_history** | **List[List[object]]** | | [optional] - -## Example - -```python -from revengai.models.task_status_response import TaskStatusResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of TaskStatusResponse from a JSON string -task_status_response_instance = TaskStatusResponse.from_json(json) -# print the JSON string representation of the object -print(TaskStatusResponse.to_json()) - -# convert the object into a dict -task_status_response_dict = task_status_response_instance.to_dict() -# create an instance of TaskStatusResponse from a dict -task_status_response_from_dict = TaskStatusResponse.from_dict(task_status_response_dict) -``` -[[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/TimestampModel.md b/docs/TimestampModel.md deleted file mode 100644 index f0ed1855..00000000 --- a/docs/TimestampModel.md +++ /dev/null @@ -1,31 +0,0 @@ -# TimestampModel - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pe_timestamp** | **int** | | -**export_timestamp** | **int** | | -**debug_timestamp** | **int** | | - -## Example - -```python -from revengai.models.timestamp_model import TimestampModel - -# TODO update the JSON string below -json = "{}" -# create an instance of TimestampModel from a JSON string -timestamp_model_instance = TimestampModel.from_json(json) -# print the JSON string representation of the object -print(TimestampModel.to_json()) - -# convert the object into a dict -timestamp_model_dict = timestamp_model_instance.to_dict() -# create an instance of TimestampModel from a dict -timestamp_model_from_dict = TimestampModel.from_dict(timestamp_model_dict) -``` -[[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/TriageFunctionResponse.md b/docs/TriageFunctionResponse.md deleted file mode 100644 index 62653ff7..00000000 --- a/docs/TriageFunctionResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# TriageFunctionResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | Unique identifier of the function | -**address** | **int** | Address of the function in the binary | -**summary** | **str** | Summary of the function's behaviour | -**score** | **float** | Score indicating the function's relevance | -**capabilities** | **List[str]** | List of capabilities exhibited by the function | - -## Example - -```python -from revengai.models.triage_function_response import TriageFunctionResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of TriageFunctionResponse from a JSON string -triage_function_response_instance = TriageFunctionResponse.from_json(json) -# print the JSON string representation of the object -print(TriageFunctionResponse.to_json()) - -# convert the object into a dict -triage_function_response_dict = triage_function_response_instance.to_dict() -# create an instance of TriageFunctionResponse from a dict -triage_function_response_from_dict = TriageFunctionResponse.from_dict(triage_function_response_dict) -``` -[[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/TriageReportResponse.md b/docs/TriageReportResponse.md deleted file mode 100644 index 31ddeda3..00000000 --- a/docs/TriageReportResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# TriageReportResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**software_score** | **float** | Overall triage score for the software | -**summary** | **str** | Summary of the triage analysis | -**functions** | [**List[TriageFunctionResponse]**](TriageFunctionResponse.md) | List of triaged functions | - -## Example - -```python -from revengai.models.triage_report_response import TriageReportResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of TriageReportResponse from a JSON string -triage_report_response_instance = TriageReportResponse.from_json(json) -# print the JSON string representation of the object -print(TriageReportResponse.to_json()) - -# convert the object into a dict -triage_report_response_dict = triage_report_response_instance.to_dict() -# create an instance of TriageReportResponse from a dict -triage_report_response_from_dict = TriageReportResponse.from_dict(triage_report_response_dict) -``` -[[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/TypeDefinition.md b/docs/TypeDefinition.md deleted file mode 100644 index d64f983d..00000000 --- a/docs/TypeDefinition.md +++ /dev/null @@ -1,32 +0,0 @@ -# TypeDefinition - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] -**name** | **str** | Name of the type definition | -**type** | **str** | Underlying type of the type definition | -**artifact_type** | **str** | Type of artifact the type definition is associated with | [optional] - -## Example - -```python -from revengai.models.type_definition import TypeDefinition - -# TODO update the JSON string below -json = "{}" -# create an instance of TypeDefinition from a JSON string -type_definition_instance = TypeDefinition.from_json(json) -# print the JSON string representation of the object -print(TypeDefinition.to_json()) - -# convert the object into a dict -type_definition_dict = type_definition_instance.to_dict() -# create an instance of TypeDefinition from a dict -type_definition_from_dict = TypeDefinition.from_dict(type_definition_dict) -``` -[[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 deleted file mode 100644 index bf7da79a..00000000 --- a/docs/UploadFileType.md +++ /dev/null @@ -1,18 +0,0 @@ -# UploadFileType - - -## Enum - -* `BINARY` (value: `'BINARY'`) - -* `DEBUG` (value: `'DEBUG'`) - -* `PACKED` (value: `'PACKED'`) - -* `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/UploadResponse.md b/docs/UploadResponse.md deleted file mode 100644 index 5cabc830..00000000 --- a/docs/UploadResponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# UploadResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sha_256_hash** | **str** | | -**file_type** | [**UploadFileType**](UploadFileType.md) | | -**filename** | **str** | | -**mime** | **str** | | -**is_archive** | **bool** | | -**can_sandbox** | **bool** | | -**can_extract** | **bool** | | - -## Example - -```python -from revengai.models.upload_response import UploadResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of UploadResponse from a JSON string -upload_response_instance = UploadResponse.from_json(json) -# print the JSON string representation of the object -print(UploadResponse.to_json()) - -# convert the object into a dict -upload_response_dict = upload_response_instance.to_dict() -# create an instance of UploadResponse from a dict -upload_response_from_dict = UploadResponse.from_dict(upload_response_dict) -``` -[[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/UpsertAiDecomplationRatingRequest.md b/docs/UpsertAiDecomplationRatingRequest.md deleted file mode 100644 index bf816dd5..00000000 --- a/docs/UpsertAiDecomplationRatingRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# UpsertAiDecomplationRatingRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rating** | [**AiDecompilationRating**](AiDecompilationRating.md) | The rating for the AI decompilation response | -**reason** | **str** | | - -## Example - -```python -from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of UpsertAiDecomplationRatingRequest from a JSON string -upsert_ai_decomplation_rating_request_instance = UpsertAiDecomplationRatingRequest.from_json(json) -# print the JSON string representation of the object -print(UpsertAiDecomplationRatingRequest.to_json()) - -# convert the object into a dict -upsert_ai_decomplation_rating_request_dict = upsert_ai_decomplation_rating_request_instance.to_dict() -# create an instance of UpsertAiDecomplationRatingRequest from a dict -upsert_ai_decomplation_rating_request_from_dict = UpsertAiDecomplationRatingRequest.from_dict(upsert_ai_decomplation_rating_request_dict) -``` -[[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/UserActivityResponse.md b/docs/UserActivityResponse.md deleted file mode 100644 index 02eb3ff8..00000000 --- a/docs/UserActivityResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# UserActivityResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actions** | **str** | | -**activity_scope** | **str** | | -**creation** | **datetime** | | -**message** | **str** | | -**sources** | **str** | | -**username** | **str** | | - -## Example - -```python -from revengai.models.user_activity_response import UserActivityResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of UserActivityResponse from a JSON string -user_activity_response_instance = UserActivityResponse.from_json(json) -# print the JSON string representation of the object -print(UserActivityResponse.to_json()) - -# convert the object into a dict -user_activity_response_dict = user_activity_response_instance.to_dict() -# create an instance of UserActivityResponse from a dict -user_activity_response_from_dict = UserActivityResponse.from_dict(user_activity_response_dict) -``` -[[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/V2FunctionHeader.md b/docs/V2FunctionHeader.md deleted file mode 100644 index 7ce2aa81..00000000 --- a/docs/V2FunctionHeader.md +++ /dev/null @@ -1,33 +0,0 @@ -# V2FunctionHeader - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] -**name** | **str** | Name of the function | -**addr** | **int** | Memory address of the function | -**type** | **str** | Return type of the function | -**args** | [**Dict[str, Argument]**](Argument.md) | Dictionary of function arguments | - -## Example - -```python -from revengai.models.v2_function_header import V2FunctionHeader - -# TODO update the JSON string below -json = "{}" -# create an instance of V2FunctionHeader from a JSON string -v2_function_header_instance = V2FunctionHeader.from_json(json) -# print the JSON string representation of the object -print(V2FunctionHeader.to_json()) - -# convert the object into a dict -v2_function_header_dict = v2_function_header_instance.to_dict() -# create an instance of V2FunctionHeader from a dict -v2_function_header_from_dict = V2FunctionHeader.from_dict(v2_function_header_dict) -``` -[[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/V2FunctionInfo.md b/docs/V2FunctionInfo.md deleted file mode 100644 index 5336003c..00000000 --- a/docs/V2FunctionInfo.md +++ /dev/null @@ -1,30 +0,0 @@ -# V2FunctionInfo - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**func_types** | [**V2FunctionType**](V2FunctionType.md) | | [optional] -**func_deps** | [**List[V2FunctionInfoFuncDepsInner]**](V2FunctionInfoFuncDepsInner.md) | List of function dependencies | - -## Example - -```python -from revengai.models.v2_function_info import V2FunctionInfo - -# TODO update the JSON string below -json = "{}" -# create an instance of V2FunctionInfo from a JSON string -v2_function_info_instance = V2FunctionInfo.from_json(json) -# print the JSON string representation of the object -print(V2FunctionInfo.to_json()) - -# convert the object into a dict -v2_function_info_dict = v2_function_info_instance.to_dict() -# create an instance of V2FunctionInfo from a dict -v2_function_info_from_dict = V2FunctionInfo.from_dict(v2_function_info_dict) -``` -[[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/V2FunctionInfoFuncDepsInner.md b/docs/V2FunctionInfoFuncDepsInner.md deleted file mode 100644 index 7529ac24..00000000 --- a/docs/V2FunctionInfoFuncDepsInner.md +++ /dev/null @@ -1,35 +0,0 @@ -# V2FunctionInfoFuncDepsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] -**name** | **str** | Name of the global variable | -**size** | **int** | Size of the global variable in bytes | -**members** | **Dict[str, int]** | Dictionary of enumeration members and their values | -**artifact_type** | **str** | Type of artifact that the global variable is associated with | [optional] -**type** | **str** | Data type of the global variable | -**addr** | **int** | Memory address of the global variable | - -## Example - -```python -from revengai.models.v2_function_info_func_deps_inner import V2FunctionInfoFuncDepsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of V2FunctionInfoFuncDepsInner from a JSON string -v2_function_info_func_deps_inner_instance = V2FunctionInfoFuncDepsInner.from_json(json) -# print the JSON string representation of the object -print(V2FunctionInfoFuncDepsInner.to_json()) - -# convert the object into a dict -v2_function_info_func_deps_inner_dict = v2_function_info_func_deps_inner_instance.to_dict() -# create an instance of V2FunctionInfoFuncDepsInner from a dict -v2_function_info_func_deps_inner_from_dict = V2FunctionInfoFuncDepsInner.from_dict(v2_function_info_func_deps_inner_dict) -``` -[[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/V2FunctionType.md b/docs/V2FunctionType.md deleted file mode 100644 index f0f7974a..00000000 --- a/docs/V2FunctionType.md +++ /dev/null @@ -1,36 +0,0 @@ -# V2FunctionType - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_change** | **str** | | [optional] -**addr** | **int** | Memory address of the function | -**size** | **int** | Size of the function in bytes | -**header** | [**V2FunctionHeader**](V2FunctionHeader.md) | Function header information | -**stack_vars** | [**Dict[str, StackVariable]**](StackVariable.md) | | [optional] -**name** | **str** | Name of the function | -**type** | **str** | Return type of the function | -**artifact_type** | **str** | Type of artifact that the structure is associated with | [optional] [default to 'Function'] - -## Example - -```python -from revengai.models.v2_function_type import V2FunctionType - -# TODO update the JSON string below -json = "{}" -# create an instance of V2FunctionType from a JSON string -v2_function_type_instance = V2FunctionType.from_json(json) -# print the JSON string representation of the object -print(V2FunctionType.to_json()) - -# convert the object into a dict -v2_function_type_dict = v2_function_type_instance.to_dict() -# create an instance of V2FunctionType from a dict -v2_function_type_from_dict = V2FunctionType.from_dict(v2_function_type_dict) -``` -[[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/Vulnerabilities.md b/docs/Vulnerabilities.md deleted file mode 100644 index cb439f46..00000000 --- a/docs/Vulnerabilities.md +++ /dev/null @@ -1,29 +0,0 @@ -# Vulnerabilities - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**vulnerabilities** | [**List[Vulnerability]**](Vulnerability.md) | | - -## Example - -```python -from revengai.models.vulnerabilities import Vulnerabilities - -# TODO update the JSON string below -json = "{}" -# create an instance of Vulnerabilities from a JSON string -vulnerabilities_instance = Vulnerabilities.from_json(json) -# print the JSON string representation of the object -print(Vulnerabilities.to_json()) - -# convert the object into a dict -vulnerabilities_dict = vulnerabilities_instance.to_dict() -# create an instance of Vulnerabilities from a dict -vulnerabilities_from_dict = Vulnerabilities.from_dict(vulnerabilities_dict) -``` -[[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/Vulnerability.md b/docs/Vulnerability.md deleted file mode 100644 index c7cab317..00000000 --- a/docs/Vulnerability.md +++ /dev/null @@ -1,39 +0,0 @@ -# Vulnerability - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**vendor** | **str** | | -**product** | **str** | | -**version** | **str** | | -**cve_number** | **str** | | -**severity** | **str** | | -**source** | **str** | | -**cvss_version** | **str** | | -**cvss_vector** | **str** | | -**remarks** | **str** | | -**score** | **float** | | -**is_unknown** | **bool** | | [optional] [default to False] - -## Example - -```python -from revengai.models.vulnerability import Vulnerability - -# TODO update the JSON string below -json = "{}" -# create an instance of Vulnerability from a JSON string -vulnerability_instance = Vulnerability.from_json(json) -# print the JSON string representation of the object -print(Vulnerability.to_json()) - -# convert the object into a dict -vulnerability_dict = vulnerability_instance.to_dict() -# create an instance of Vulnerability from a dict -vulnerability_from_dict = Vulnerability.from_dict(vulnerability_dict) -``` -[[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 deleted file mode 100644 index 86027a4c..00000000 --- a/docs/Workspace.md +++ /dev/null @@ -1,16 +0,0 @@ -# Workspace - - -## Enum - -* `PERSONAL` (value: `'personal'`) - -* `TEAM` (value: `'team'`) - -* `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/XrefFromResponse.md b/docs/XrefFromResponse.md deleted file mode 100644 index b06c89e3..00000000 --- a/docs/XrefFromResponse.md +++ /dev/null @@ -1,37 +0,0 @@ -# XrefFromResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | -**is_scalar** | **bool** | | [optional] -**is_call** | **bool** | | [optional] -**is_data** | **bool** | | [optional] -**is_string** | **bool** | | [optional] -**raw_data** | **str** | | [optional] -**segment** | [**SegmentInfo**](SegmentInfo.md) | | [optional] -**orig_str_encoding** | **str** | | [optional] -**xref_to** | **str** | | - -## Example - -```python -from revengai.models.xref_from_response import XrefFromResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of XrefFromResponse from a JSON string -xref_from_response_instance = XrefFromResponse.from_json(json) -# print the JSON string representation of the object -print(XrefFromResponse.to_json()) - -# convert the object into a dict -xref_from_response_dict = xref_from_response_instance.to_dict() -# create an instance of XrefFromResponse from a dict -xref_from_response_from_dict = XrefFromResponse.from_dict(xref_from_response_dict) -``` -[[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/XrefResponse.md b/docs/XrefResponse.md deleted file mode 100644 index f9a7e472..00000000 --- a/docs/XrefResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# XrefResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**xref_to_list** | [**List[XrefToResponse]**](XrefToResponse.md) | | -**xref_from_list** | [**List[XrefFromResponse]**](XrefFromResponse.md) | | - -## Example - -```python -from revengai.models.xref_response import XrefResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of XrefResponse from a JSON string -xref_response_instance = XrefResponse.from_json(json) -# print the JSON string representation of the object -print(XrefResponse.to_json()) - -# convert the object into a dict -xref_response_dict = xref_response_instance.to_dict() -# create an instance of XrefResponse from a dict -xref_response_from_dict = XrefResponse.from_dict(xref_response_dict) -``` -[[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/XrefToResponse.md b/docs/XrefToResponse.md deleted file mode 100644 index 91b3bc3f..00000000 --- a/docs/XrefToResponse.md +++ /dev/null @@ -1,37 +0,0 @@ -# XrefToResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | | -**is_scalar** | **bool** | | [optional] -**is_call** | **bool** | | [optional] -**is_data** | **bool** | | [optional] -**is_string** | **bool** | | [optional] -**raw_data** | **str** | | [optional] -**segment** | [**SegmentInfo**](SegmentInfo.md) | | [optional] -**orig_str_encoding** | **str** | | [optional] -**xref_from** | **str** | | - -## Example - -```python -from revengai.models.xref_to_response import XrefToResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of XrefToResponse from a JSON string -xref_to_response_instance = XrefToResponse.from_json(json) -# print the JSON string representation of the object -print(XrefToResponse.to_json()) - -# convert the object into a dict -xref_to_response_dict = xref_to_response_instance.to_dict() -# create an instance of XrefToResponse from a dict -xref_to_response_from_dict = XrefToResponse.from_dict(xref_to_response_dict) -``` -[[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/__init__.py b/revengai/__init__.py index 27e65f81..27cab2a9 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -17,27 +17,16 @@ # Define package exports __all__ = [ - "AgentApi", - "AnalysesBulkActionsApi", - "AnalysesCommentsApi", "AnalysesCoreApi", - "AnalysesResultsMetadataApi", - "AnalysesXRefsApi", - "AuthenticationUsersApi", "BinariesApi", "CollectionsApi", - "ConfigApi", "ConversationsApi", - "ExternalSourcesApi", - "FirmwareApi", "FunctionsAIDecompilationApi", "FunctionsCoreApi", "FunctionsDataTypesApi", "FunctionsRenamingHistoryApi", "IAMUsersApi", - "ModelsApi", "ReportsApi", - "SearchApi", "ApiResponse", "ApiClient", "Configuration", @@ -57,118 +46,21 @@ "AddTeamMemberInputBody", "AddUserStringInputBody", "AddUserStringToFunctionInputBody", - "AdditionalDetailsStatusResponse", - "AiDecompilationRating", - "AnalysisAccessInfo", "AnalysisBasicInfoOutputBody", - "AnalysisBulkAddTagsRequest", - "AnalysisBulkAddTagsResponse", - "AnalysisBulkAddTagsResponseItem", - "AnalysisConfig", - "AnalysisConfigSnapshot", - "AnalysisCreateRequest", - "AnalysisCreateResponse", - "AnalysisDetailResponse", "AnalysisFunctionEntry", - "AnalysisFunctionMapping", - "AnalysisFunctions", - "AnalysisFunctionsList", "AnalysisLogMessage", "AnalysisLogs", - "AnalysisRecord", "AnalysisRecordBody", "AnalysisReport", - "AnalysisScope", "AnalysisStringFunction", - "AnalysisStringInput", "AnalysisStringItem", - "AnalysisStringsResponse", - "AnalysisStringsStatusResponse", "AnalysisTagBody", - "AnalysisTags", - "AnalysisUpdateRequest", - "AnalysisUpdateTagsRequest", - "AnalysisUpdateTagsResponse", "ApiCall", - "AppApiRestV2AgentSchemaCapability", - "AppApiRestV2AnalysesEnumsOrderBy", - "AppApiRestV2CollectionsEnumsOrderBy", - "AppApiRestV2FunctionsResponsesFunction", - "AppApiRestV2FunctionsTypesFunction", - "AppApiRestV2InfoTypesCapability", "ArchiveContentEntry", - "Argument", "Artifact", "AttemptFailedEvent", "AttemptStartedEvent", - "AutoRunAgents", "AutoUnstripStatusOutputBody", - "BaseResponse", - "BaseResponseAdditionalDetailsStatusResponse", - "BaseResponseAnalysisBulkAddTagsResponse", - "BaseResponseAnalysisCreateResponse", - "BaseResponseAnalysisDetailResponse", - "BaseResponseAnalysisFunctionMapping", - "BaseResponseAnalysisFunctions", - "BaseResponseAnalysisFunctionsList", - "BaseResponseAnalysisStringsResponse", - "BaseResponseAnalysisStringsStatusResponse", - "BaseResponseAnalysisTags", - "BaseResponseAnalysisUpdateTagsResponse", - "BaseResponseBasic", - "BaseResponseBinariesRelatedStatusResponse", - "BaseResponseBinaryAdditionalResponse", - "BaseResponseBinaryDetailsResponse", - "BaseResponseBinaryExternalsResponse", - "BaseResponseBinarySearchResponse", - "BaseResponseBool", - "BaseResponseCalleesCallerFunctionsResponse", - "BaseResponseCapabilities", - "BaseResponseCapabilitiesAgentResponse", - "BaseResponseChildBinariesResponse", - "BaseResponseCollectionBinariesUpdateResponse", - "BaseResponseCollectionResponse", - "BaseResponseCollectionSearchResponse", - "BaseResponseCollectionTagsUpdateResponse", - "BaseResponseCommentResponse", - "BaseResponseConfigResponse", - "BaseResponseCreated", - "BaseResponseDict", - "BaseResponseExternalResponse", - "BaseResponseFunctionBlocksResponse", - "BaseResponseFunctionCapabilityResponse", - "BaseResponseFunctionDataTypes", - "BaseResponseFunctionDataTypesList", - "BaseResponseFunctionSearchResponse", - "BaseResponseFunctionStringsResponse", - "BaseResponseFunctionsDetailResponse", - "BaseResponseGenerateFunctionDataTypes", - "BaseResponseGenerationStatusList", - "BaseResponseGetPublicUserResponse", - "BaseResponseListCalleesCallerFunctionsResponse", - "BaseResponseListCollectionResults", - "BaseResponseListCommentResponse", - "BaseResponseListDieMatch", - "BaseResponseListFunctionNameHistory", - "BaseResponseListSBOM", - "BaseResponseListUserActivityResponse", - "BaseResponseLogs", - "BaseResponseModelsResponse", - "BaseResponseParams", - "BaseResponseQueuedWorkflowTaskResponse", - "BaseResponseRecent", - "BaseResponseReportAnalysisResponse", - "BaseResponseStatus", - "BaseResponseStr", - "BaseResponseTagSearchResponse", - "BaseResponseTaskResponse", - "BaseResponseTaskStatusResponse", - "BaseResponseTriageReportResponse", - "BaseResponseUnionGetAiDecompilationRatingResponseNoneType", - "BaseResponseUploadResponse", - "BaseResponseVulnerabilities", - "BaseResponseXrefResponse", - "Basic", "BatchBinaryMatchResult", "BatchMatchingOutputBody", "BatchRenameInputBody", @@ -178,57 +70,21 @@ "BatchUpdateDataTypesItem", "BatchUpdateDataTypesOutputBody", "BatchUpdateDataTypesResult", - "BinariesRelatedStatusResponse", - "BinariesTaskStatus", "Binary", - "BinaryAdditionalDetailsDataResponse", - "BinaryAdditionalResponse", - "BinaryConfig", - "BinaryDetailsResponse", - "BinaryExternalsResponse", - "BinarySearchResponse", - "BinarySearchResult", - "BinaryTaskStatus", "BulkCreateUserResult", "BulkCreateUsersOutputBody", - "BulkDeleteAnalysesRequest", "CallEdge", "CallEdgesOutputBody", - "CalleeFunctionInfo", - "CalleesCallerFunctionsResponse", - "CallerFunctionInfo", "CanonicalName", "CanonicalizeNamesInputBody", "CanonicalizeNamesOutputBody", - "Capabilities", - "CapabilitiesAgentResponse", "CapabilitiesOutputBody", "CapabilityEntry", - "ChildBinariesResponse", - "CodeSignatureModel", - "CollectionBinariesUpdateRequest", - "CollectionBinariesUpdateResponse", - "CollectionBinaryResponse", - "CollectionCreateRequest", - "CollectionListItem", "CollectionListItemBody", - "CollectionResponse", - "CollectionResponseBinariesInner", - "CollectionScope", - "CollectionSearchResponse", - "CollectionSearchResult", - "CollectionTagsUpdateRequest", - "CollectionTagsUpdateResponse", - "CollectionUpdateRequest", - "CommentBase", - "CommentResponse", - "CommentUpdateRequest", "CommentsData", - "ConfigResponse", "ConfirmToolInputBody", "Connection", "ConsoleOutputEntry", - "Context", "Conversation", "ConversationContext", "ConversationWithEvents", @@ -244,30 +100,15 @@ "CreatePortalSessionInputBody", "CreateTeamInputBody", "CreateUserInputBody", - "Created", "DataTypesEntry", "DecompFailedEvent", "DecompFinishedEvent", - "DecompilationCommentContext", "DecompilationData", - "DieMatch", "DisassemblyOutputBody", "DnsQuery", "DrakvufFileMetadata", - "DynamicExecutionStatus", "DynamicExecutionStatusResponse", - "ELFImportModel", - "ELFModel", - "ELFRelocation", - "ELFSection", - "ELFSecurity", - "ELFSegment", - "ELFSymbol", - "ElfDynamicEntry", - "EntrypointModel", - "Enumeration", "ErrorBody", - "ErrorModel", "Event", "EventAttemptFailed", "EventAttemptStarted", @@ -296,76 +137,36 @@ "EventTOOLCONFIRMATIONREQUIRED", "EventWarning", "Example", - "ExportModel", - "ExternalResponse", "ExtractedURL", "FileActivityEntry", - "FileFormat", - "FileHashes", - "FileMetadata", - "Filters", "FormFile", "FunctionArgument", - "FunctionBlockDestinationResponse", - "FunctionBlockResponse", - "FunctionBlocksResponse", - "FunctionBoundary", "FunctionCallEdges", - "FunctionCapabilityResponse", - "FunctionDataTypes", - "FunctionDataTypesList", - "FunctionDataTypesListItem", - "FunctionDataTypesParams", - "FunctionDataTypesStatus", "FunctionDependency", "FunctionDetailsOutputBody", "FunctionHeader", "FunctionInfo", - "FunctionListItem", - "FunctionLocalVariableResponse", - "FunctionMapping", "FunctionMatch", - "FunctionNameHistory", - "FunctionParamResponse", - "FunctionRename", - "FunctionRenameMap", - "FunctionSearchResponse", - "FunctionSearchResult", - "FunctionSourceType", "FunctionStackVariable", - "FunctionString", "FunctionStringItem", - "FunctionStringsResponse", "FunctionType", - "FunctionsDetailResponse", - "FunctionsListRename", - "GenerateFunctionDataTypes", "GeneratePDFOutputBody", - "GenerationStatusList", "GetAdditionalDetailsOutputBody", "GetAdditionalDetailsStatusOutputBody", - "GetAiDecompilationRatingResponse", "GetAnalysisStringsStatusOutputBody", "GetCollectionOutputBody", "GetMatchesOutputBody", "GetMatchesStatusOutputBody", "GetProductsOutputBody", - "GetPublicUserResponse", "GetSubscriptionOutputBody", - "GlobalVariable", "HistoryEntry", "HttpRequest", - "IOC", - "ISA", - "IconModel", - "ImportModel", "ImportedFunctionCallerEntry", "ImportedFunctionDetailOutputBody", "ImportedFunctionEntry", "IndirectCallSite", "IndirectCallSitesOutputBody", "InlineComment", - "InsertAnalysisLogRequest", "InviteUserInputBody", "IssuerAllowedDomain", "ListAnalysesOutputBody", @@ -373,7 +174,6 @@ "ListAnalysisFunctionsOutputBody", "ListAnalysisStringsOutputBody", "ListArchiveContentsOutputBody", - "ListCollectionResults", "ListCollectionsOutputBody", "ListExampleAnalysesOutputBody", "ListFunctionStringsOutputBody", @@ -382,30 +182,19 @@ "ListTeamsOutputBody", "ListUsersOutputBody", "LocationOutputBody", - "Logs", - "MITRETechnique", "MatchFilters", "MatchedFunction", "MemdumpEntry", "MessageBody", - "MetaModel", - "ModelName", - "ModelsResponse", "ModuleLoadEntry", "MutexEntry", "NameConfidence", - "NameSourceType", "NetworkActivity", "OIDCCallbackInputBody", - "Order", "Organisation", "OrganisationGroup", "OrganisationIssuer", "OrganisationOwner", - "PDBDebugModel", - "PEModel", - "PaginationModel", - "Params", "PasswordResetInputBody", "PatchCollectionBinariesInputBody", "PatchCollectionBinariesOutputBody", @@ -416,7 +205,6 @@ "PatchCommentBody", "PcapBodyInfo", "Permissions", - "Platform", "PriceOutput", "PriceSummary", "ProcessActivityEntry", @@ -427,43 +215,24 @@ "ProductSummary", "ProgressMessage", "ProseEvent", - "PutAnalysisStringsRequest", - "QueuedWorkflowTaskResponse", - "ReAnalysisForm", - "Recent", "RefreshBody", "RegenerateOutputBody", "RegisterUserInputBody", "RegistryOperation", - "RelativeBinaryResponse", "RenameAppliedEvent", "RenameInputBody", "RenameOutputBody", "ReplacementValue", - "ReportAnalysisResponse", "ReportEvent", "ReportInfo", "ReportOptions", "RevokeBody", - "SBOM", - "SBOMPackage", "SSOProvider", "SSOProvidersOutputBody", - "SandboxOptions", - "SandboxStartMethod", - "SandboxTimeout", "ScheduledTaskEntry", - "ScrapeThirdPartyConfig", - "SectionModel", - "SecurityModel", - "SegmentInfo", "SendMessageRequest", "ServiceEntry", "SessionOutputBody", - "SingleCodeCertificateModel", - "SingleCodeSignatureModel", - "SinglePDBEntryModel", - "SingleSectionModel", "SourceDeltaEvent", "SourceResetEvent", "SseEventContextCompactedData", @@ -483,44 +252,23 @@ "SseEventToolCallResultData", "SseEventToolCallStartData", "SseEventToolConfirmationRequiredData", - "StackVariable", "StartBatchMatchingInputBody", "StartMatchingForAnalysisInputBody", "StartMatchingForFunctionsInputBody", "StartMatchingOutputBody", "StartupInfo", - "StatusInput", - "StatusOutput", "StatusResponse", "StreamAiDecompilation200ResponseInner", "StreamEvents200ResponseInner", - "StringFunctions", - "StringSource", - "Structure", - "StructureMember", - "SubmitUserFeedbackRequest", "SummaryData", - "Symbols", - "Tag", - "TagItem", - "TagResponse", - "TagSearchResponse", - "TagSearchResult", - "TaskResponse", - "TaskStatus", - "TaskStatusResponse", "TcpCarvedFile", "Team", "TeamMember", - "TimestampModel", "TokenInputBody", "TokenResponse", "TokenisedData", - "TriageFunctionResponse", - "TriageReportResponse", "TriggerDynamicExecutionInputBody", "Ttp", - "TypeDefinition", "UpdateDataTypesInputBody", "UpdateDataTypesOutputBody", "UpdateIssuerInputBody", @@ -531,52 +279,27 @@ "UpdateUserCreditsInputBody", "UpdateUserInputBody", "UpdateUserPasswordInputBody", - "UploadFileType", - "UploadResponse", - "UpsertAiDecomplationRatingRequest", "UpsertOverridesData", "UpsertOverridesInputBody", "User", - "UserActivityResponse", "UserCredits", "UserIdentity", "UserProfile", - "V2FunctionHeader", - "V2FunctionInfo", - "V2FunctionInfoFuncDepsInner", - "V2FunctionType", - "Vulnerabilities", - "Vulnerability", "WarningEvent", "WorkflowProgress", - "Workspace", - "XrefFromResponse", - "XrefResponse", - "XrefToResponse", ] # import apis into sdk package -from revengai.api.agent_api import AgentApi as AgentApi -from revengai.api.analyses_bulk_actions_api import AnalysesBulkActionsApi as AnalysesBulkActionsApi -from revengai.api.analyses_comments_api import AnalysesCommentsApi as AnalysesCommentsApi from revengai.api.analyses_core_api import AnalysesCoreApi as AnalysesCoreApi -from revengai.api.analyses_results_metadata_api import AnalysesResultsMetadataApi as AnalysesResultsMetadataApi -from revengai.api.analyses_x_refs_api import AnalysesXRefsApi as AnalysesXRefsApi -from revengai.api.authentication_users_api import AuthenticationUsersApi as AuthenticationUsersApi from revengai.api.binaries_api import BinariesApi as BinariesApi from revengai.api.collections_api import CollectionsApi as CollectionsApi -from revengai.api.config_api import ConfigApi as ConfigApi from revengai.api.conversations_api import ConversationsApi as ConversationsApi -from revengai.api.external_sources_api import ExternalSourcesApi as ExternalSourcesApi -from revengai.api.firmware_api import FirmwareApi as FirmwareApi from revengai.api.functions_ai_decompilation_api import FunctionsAIDecompilationApi as FunctionsAIDecompilationApi from revengai.api.functions_core_api import FunctionsCoreApi as FunctionsCoreApi from revengai.api.functions_data_types_api import FunctionsDataTypesApi as FunctionsDataTypesApi from revengai.api.functions_renaming_history_api import FunctionsRenamingHistoryApi as FunctionsRenamingHistoryApi from revengai.api.iam_users_api import IAMUsersApi as IAMUsersApi -from revengai.api.models_api import ModelsApi as ModelsApi from revengai.api.reports_api import ReportsApi as ReportsApi -from revengai.api.search_api import SearchApi as SearchApi # import ApiClient from revengai.api_response import ApiResponse as ApiResponse @@ -600,118 +323,21 @@ from revengai.models.add_team_member_input_body import AddTeamMemberInputBody as AddTeamMemberInputBody from revengai.models.add_user_string_input_body import AddUserStringInputBody as AddUserStringInputBody from revengai.models.add_user_string_to_function_input_body import AddUserStringToFunctionInputBody as AddUserStringToFunctionInputBody -from revengai.models.additional_details_status_response import AdditionalDetailsStatusResponse as AdditionalDetailsStatusResponse -from revengai.models.ai_decompilation_rating import AiDecompilationRating as AiDecompilationRating -from revengai.models.analysis_access_info import AnalysisAccessInfo as AnalysisAccessInfo from revengai.models.analysis_basic_info_output_body import AnalysisBasicInfoOutputBody as AnalysisBasicInfoOutputBody -from revengai.models.analysis_bulk_add_tags_request import AnalysisBulkAddTagsRequest as AnalysisBulkAddTagsRequest -from revengai.models.analysis_bulk_add_tags_response import AnalysisBulkAddTagsResponse as AnalysisBulkAddTagsResponse -from revengai.models.analysis_bulk_add_tags_response_item import AnalysisBulkAddTagsResponseItem as AnalysisBulkAddTagsResponseItem -from revengai.models.analysis_config import AnalysisConfig as AnalysisConfig -from revengai.models.analysis_config_snapshot import AnalysisConfigSnapshot as AnalysisConfigSnapshot -from revengai.models.analysis_create_request import AnalysisCreateRequest as AnalysisCreateRequest -from revengai.models.analysis_create_response import AnalysisCreateResponse as AnalysisCreateResponse -from revengai.models.analysis_detail_response import AnalysisDetailResponse as AnalysisDetailResponse from revengai.models.analysis_function_entry import AnalysisFunctionEntry as AnalysisFunctionEntry -from revengai.models.analysis_function_mapping import AnalysisFunctionMapping as AnalysisFunctionMapping -from revengai.models.analysis_functions import AnalysisFunctions as AnalysisFunctions -from revengai.models.analysis_functions_list import AnalysisFunctionsList as AnalysisFunctionsList from revengai.models.analysis_log_message import AnalysisLogMessage as AnalysisLogMessage from revengai.models.analysis_logs import AnalysisLogs as AnalysisLogs -from revengai.models.analysis_record import AnalysisRecord as AnalysisRecord from revengai.models.analysis_record_body import AnalysisRecordBody as AnalysisRecordBody from revengai.models.analysis_report import AnalysisReport as AnalysisReport -from revengai.models.analysis_scope import AnalysisScope as AnalysisScope from revengai.models.analysis_string_function import AnalysisStringFunction as AnalysisStringFunction -from revengai.models.analysis_string_input import AnalysisStringInput as AnalysisStringInput from revengai.models.analysis_string_item import AnalysisStringItem as AnalysisStringItem -from revengai.models.analysis_strings_response import AnalysisStringsResponse as AnalysisStringsResponse -from revengai.models.analysis_strings_status_response import AnalysisStringsStatusResponse as AnalysisStringsStatusResponse from revengai.models.analysis_tag_body import AnalysisTagBody as AnalysisTagBody -from revengai.models.analysis_tags import AnalysisTags as AnalysisTags -from revengai.models.analysis_update_request import AnalysisUpdateRequest as AnalysisUpdateRequest -from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest as AnalysisUpdateTagsRequest -from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse as AnalysisUpdateTagsResponse from revengai.models.api_call import ApiCall as ApiCall -from revengai.models.app_api_rest_v2_agent_schema_capability import AppApiRestV2AgentSchemaCapability as AppApiRestV2AgentSchemaCapability -from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy as AppApiRestV2AnalysesEnumsOrderBy -from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy as AppApiRestV2CollectionsEnumsOrderBy -from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction as AppApiRestV2FunctionsResponsesFunction -from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction as AppApiRestV2FunctionsTypesFunction -from revengai.models.app_api_rest_v2_info_types_capability import AppApiRestV2InfoTypesCapability as AppApiRestV2InfoTypesCapability from revengai.models.archive_content_entry import ArchiveContentEntry as ArchiveContentEntry -from revengai.models.argument import Argument as Argument from revengai.models.artifact import Artifact as Artifact from revengai.models.attempt_failed_event import AttemptFailedEvent as AttemptFailedEvent from revengai.models.attempt_started_event import AttemptStartedEvent as AttemptStartedEvent -from revengai.models.auto_run_agents import AutoRunAgents as AutoRunAgents from revengai.models.auto_unstrip_status_output_body import AutoUnstripStatusOutputBody as AutoUnstripStatusOutputBody -from revengai.models.base_response import BaseResponse as BaseResponse -from revengai.models.base_response_additional_details_status_response import BaseResponseAdditionalDetailsStatusResponse as BaseResponseAdditionalDetailsStatusResponse -from revengai.models.base_response_analysis_bulk_add_tags_response import BaseResponseAnalysisBulkAddTagsResponse as BaseResponseAnalysisBulkAddTagsResponse -from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse as BaseResponseAnalysisCreateResponse -from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse as BaseResponseAnalysisDetailResponse -from revengai.models.base_response_analysis_function_mapping import BaseResponseAnalysisFunctionMapping as BaseResponseAnalysisFunctionMapping -from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions as BaseResponseAnalysisFunctions -from revengai.models.base_response_analysis_functions_list import BaseResponseAnalysisFunctionsList as BaseResponseAnalysisFunctionsList -from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse as BaseResponseAnalysisStringsResponse -from revengai.models.base_response_analysis_strings_status_response import BaseResponseAnalysisStringsStatusResponse as BaseResponseAnalysisStringsStatusResponse -from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags as BaseResponseAnalysisTags -from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse as BaseResponseAnalysisUpdateTagsResponse -from revengai.models.base_response_basic import BaseResponseBasic as BaseResponseBasic -from revengai.models.base_response_binaries_related_status_response import BaseResponseBinariesRelatedStatusResponse as BaseResponseBinariesRelatedStatusResponse -from revengai.models.base_response_binary_additional_response import BaseResponseBinaryAdditionalResponse as BaseResponseBinaryAdditionalResponse -from revengai.models.base_response_binary_details_response import BaseResponseBinaryDetailsResponse as BaseResponseBinaryDetailsResponse -from revengai.models.base_response_binary_externals_response import BaseResponseBinaryExternalsResponse as BaseResponseBinaryExternalsResponse -from revengai.models.base_response_binary_search_response import BaseResponseBinarySearchResponse as BaseResponseBinarySearchResponse -from revengai.models.base_response_bool import BaseResponseBool as BaseResponseBool -from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse as BaseResponseCalleesCallerFunctionsResponse -from revengai.models.base_response_capabilities import BaseResponseCapabilities as BaseResponseCapabilities -from revengai.models.base_response_capabilities_agent_response import BaseResponseCapabilitiesAgentResponse as BaseResponseCapabilitiesAgentResponse -from revengai.models.base_response_child_binaries_response import BaseResponseChildBinariesResponse as BaseResponseChildBinariesResponse -from revengai.models.base_response_collection_binaries_update_response import BaseResponseCollectionBinariesUpdateResponse as BaseResponseCollectionBinariesUpdateResponse -from revengai.models.base_response_collection_response import BaseResponseCollectionResponse as BaseResponseCollectionResponse -from revengai.models.base_response_collection_search_response import BaseResponseCollectionSearchResponse as BaseResponseCollectionSearchResponse -from revengai.models.base_response_collection_tags_update_response import BaseResponseCollectionTagsUpdateResponse as BaseResponseCollectionTagsUpdateResponse -from revengai.models.base_response_comment_response import BaseResponseCommentResponse as BaseResponseCommentResponse -from revengai.models.base_response_config_response import BaseResponseConfigResponse as BaseResponseConfigResponse -from revengai.models.base_response_created import BaseResponseCreated as BaseResponseCreated -from revengai.models.base_response_dict import BaseResponseDict as BaseResponseDict -from revengai.models.base_response_external_response import BaseResponseExternalResponse as BaseResponseExternalResponse -from revengai.models.base_response_function_blocks_response import BaseResponseFunctionBlocksResponse as BaseResponseFunctionBlocksResponse -from revengai.models.base_response_function_capability_response import BaseResponseFunctionCapabilityResponse as BaseResponseFunctionCapabilityResponse -from revengai.models.base_response_function_data_types import BaseResponseFunctionDataTypes as BaseResponseFunctionDataTypes -from revengai.models.base_response_function_data_types_list import BaseResponseFunctionDataTypesList as BaseResponseFunctionDataTypesList -from revengai.models.base_response_function_search_response import BaseResponseFunctionSearchResponse as BaseResponseFunctionSearchResponse -from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse as BaseResponseFunctionStringsResponse -from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse as BaseResponseFunctionsDetailResponse -from revengai.models.base_response_generate_function_data_types import BaseResponseGenerateFunctionDataTypes as BaseResponseGenerateFunctionDataTypes -from revengai.models.base_response_generation_status_list import BaseResponseGenerationStatusList as BaseResponseGenerationStatusList -from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse as BaseResponseGetPublicUserResponse -from revengai.models.base_response_list_callees_caller_functions_response import BaseResponseListCalleesCallerFunctionsResponse as BaseResponseListCalleesCallerFunctionsResponse -from revengai.models.base_response_list_collection_results import BaseResponseListCollectionResults as BaseResponseListCollectionResults -from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse as BaseResponseListCommentResponse -from revengai.models.base_response_list_die_match import BaseResponseListDieMatch as BaseResponseListDieMatch -from revengai.models.base_response_list_function_name_history import BaseResponseListFunctionNameHistory as BaseResponseListFunctionNameHistory -from revengai.models.base_response_list_sbom import BaseResponseListSBOM as BaseResponseListSBOM -from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse as BaseResponseListUserActivityResponse -from revengai.models.base_response_logs import BaseResponseLogs as BaseResponseLogs -from revengai.models.base_response_models_response import BaseResponseModelsResponse as BaseResponseModelsResponse -from revengai.models.base_response_params import BaseResponseParams as BaseResponseParams -from revengai.models.base_response_queued_workflow_task_response import BaseResponseQueuedWorkflowTaskResponse as BaseResponseQueuedWorkflowTaskResponse -from revengai.models.base_response_recent import BaseResponseRecent as BaseResponseRecent -from revengai.models.base_response_report_analysis_response import BaseResponseReportAnalysisResponse as BaseResponseReportAnalysisResponse -from revengai.models.base_response_status import BaseResponseStatus as BaseResponseStatus -from revengai.models.base_response_str import BaseResponseStr as BaseResponseStr -from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse as BaseResponseTagSearchResponse -from revengai.models.base_response_task_response import BaseResponseTaskResponse as BaseResponseTaskResponse -from revengai.models.base_response_task_status_response import BaseResponseTaskStatusResponse as BaseResponseTaskStatusResponse -from revengai.models.base_response_triage_report_response import BaseResponseTriageReportResponse as BaseResponseTriageReportResponse -from revengai.models.base_response_union_get_ai_decompilation_rating_response_none_type import BaseResponseUnionGetAiDecompilationRatingResponseNoneType as BaseResponseUnionGetAiDecompilationRatingResponseNoneType -from revengai.models.base_response_upload_response import BaseResponseUploadResponse as BaseResponseUploadResponse -from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities as BaseResponseVulnerabilities -from revengai.models.base_response_xref_response import BaseResponseXrefResponse as BaseResponseXrefResponse -from revengai.models.basic import Basic as Basic from revengai.models.batch_binary_match_result import BatchBinaryMatchResult as BatchBinaryMatchResult from revengai.models.batch_matching_output_body import BatchMatchingOutputBody as BatchMatchingOutputBody from revengai.models.batch_rename_input_body import BatchRenameInputBody as BatchRenameInputBody @@ -721,57 +347,21 @@ from revengai.models.batch_update_data_types_item import BatchUpdateDataTypesItem as BatchUpdateDataTypesItem from revengai.models.batch_update_data_types_output_body import BatchUpdateDataTypesOutputBody as BatchUpdateDataTypesOutputBody from revengai.models.batch_update_data_types_result import BatchUpdateDataTypesResult as BatchUpdateDataTypesResult -from revengai.models.binaries_related_status_response import BinariesRelatedStatusResponse as BinariesRelatedStatusResponse -from revengai.models.binaries_task_status import BinariesTaskStatus as BinariesTaskStatus from revengai.models.binary import Binary as Binary -from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse as BinaryAdditionalDetailsDataResponse -from revengai.models.binary_additional_response import BinaryAdditionalResponse as BinaryAdditionalResponse -from revengai.models.binary_config import BinaryConfig as BinaryConfig -from revengai.models.binary_details_response import BinaryDetailsResponse as BinaryDetailsResponse -from revengai.models.binary_externals_response import BinaryExternalsResponse as BinaryExternalsResponse -from revengai.models.binary_search_response import BinarySearchResponse as BinarySearchResponse -from revengai.models.binary_search_result import BinarySearchResult as BinarySearchResult -from revengai.models.binary_task_status import BinaryTaskStatus as BinaryTaskStatus from revengai.models.bulk_create_user_result import BulkCreateUserResult as BulkCreateUserResult from revengai.models.bulk_create_users_output_body import BulkCreateUsersOutputBody as BulkCreateUsersOutputBody -from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest as BulkDeleteAnalysesRequest from revengai.models.call_edge import CallEdge as CallEdge from revengai.models.call_edges_output_body import CallEdgesOutputBody as CallEdgesOutputBody -from revengai.models.callee_function_info import CalleeFunctionInfo as CalleeFunctionInfo -from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse as CalleesCallerFunctionsResponse -from revengai.models.caller_function_info import CallerFunctionInfo as CallerFunctionInfo from revengai.models.canonical_name import CanonicalName as CanonicalName from revengai.models.canonicalize_names_input_body import CanonicalizeNamesInputBody as CanonicalizeNamesInputBody from revengai.models.canonicalize_names_output_body import CanonicalizeNamesOutputBody as CanonicalizeNamesOutputBody -from revengai.models.capabilities import Capabilities as Capabilities -from revengai.models.capabilities_agent_response import CapabilitiesAgentResponse as CapabilitiesAgentResponse from revengai.models.capabilities_output_body import CapabilitiesOutputBody as CapabilitiesOutputBody from revengai.models.capability_entry import CapabilityEntry as CapabilityEntry -from revengai.models.child_binaries_response import ChildBinariesResponse as ChildBinariesResponse -from revengai.models.code_signature_model import CodeSignatureModel as CodeSignatureModel -from revengai.models.collection_binaries_update_request import CollectionBinariesUpdateRequest as CollectionBinariesUpdateRequest -from revengai.models.collection_binaries_update_response import CollectionBinariesUpdateResponse as CollectionBinariesUpdateResponse -from revengai.models.collection_binary_response import CollectionBinaryResponse as CollectionBinaryResponse -from revengai.models.collection_create_request import CollectionCreateRequest as CollectionCreateRequest -from revengai.models.collection_list_item import CollectionListItem as CollectionListItem from revengai.models.collection_list_item_body import CollectionListItemBody as CollectionListItemBody -from revengai.models.collection_response import CollectionResponse as CollectionResponse -from revengai.models.collection_response_binaries_inner import CollectionResponseBinariesInner as CollectionResponseBinariesInner -from revengai.models.collection_scope import CollectionScope as CollectionScope -from revengai.models.collection_search_response import CollectionSearchResponse as CollectionSearchResponse -from revengai.models.collection_search_result import CollectionSearchResult as CollectionSearchResult -from revengai.models.collection_tags_update_request import CollectionTagsUpdateRequest as CollectionTagsUpdateRequest -from revengai.models.collection_tags_update_response import CollectionTagsUpdateResponse as CollectionTagsUpdateResponse -from revengai.models.collection_update_request import CollectionUpdateRequest as CollectionUpdateRequest -from revengai.models.comment_base import CommentBase as CommentBase -from revengai.models.comment_response import CommentResponse as CommentResponse -from revengai.models.comment_update_request import CommentUpdateRequest as CommentUpdateRequest from revengai.models.comments_data import CommentsData as CommentsData -from revengai.models.config_response import ConfigResponse as ConfigResponse from revengai.models.confirm_tool_input_body import ConfirmToolInputBody as ConfirmToolInputBody from revengai.models.connection import Connection as Connection from revengai.models.console_output_entry import ConsoleOutputEntry as ConsoleOutputEntry -from revengai.models.context import Context as Context from revengai.models.conversation import Conversation as Conversation from revengai.models.conversation_context import ConversationContext as ConversationContext from revengai.models.conversation_with_events import ConversationWithEvents as ConversationWithEvents @@ -787,30 +377,15 @@ from revengai.models.create_portal_session_input_body import CreatePortalSessionInputBody as CreatePortalSessionInputBody from revengai.models.create_team_input_body import CreateTeamInputBody as CreateTeamInputBody from revengai.models.create_user_input_body import CreateUserInputBody as CreateUserInputBody -from revengai.models.created import Created as Created from revengai.models.data_types_entry import DataTypesEntry as DataTypesEntry from revengai.models.decomp_failed_event import DecompFailedEvent as DecompFailedEvent from revengai.models.decomp_finished_event import DecompFinishedEvent as DecompFinishedEvent -from revengai.models.decompilation_comment_context import DecompilationCommentContext as DecompilationCommentContext from revengai.models.decompilation_data import DecompilationData as DecompilationData -from revengai.models.die_match import DieMatch as DieMatch from revengai.models.disassembly_output_body import DisassemblyOutputBody as DisassemblyOutputBody from revengai.models.dns_query import DnsQuery as DnsQuery from revengai.models.drakvuf_file_metadata import DrakvufFileMetadata as DrakvufFileMetadata -from revengai.models.dynamic_execution_status import DynamicExecutionStatus as DynamicExecutionStatus from revengai.models.dynamic_execution_status_response import DynamicExecutionStatusResponse as DynamicExecutionStatusResponse -from revengai.models.elf_import_model import ELFImportModel as ELFImportModel -from revengai.models.elf_model import ELFModel as ELFModel -from revengai.models.elf_relocation import ELFRelocation as ELFRelocation -from revengai.models.elf_section import ELFSection as ELFSection -from revengai.models.elf_security import ELFSecurity as ELFSecurity -from revengai.models.elf_segment import ELFSegment as ELFSegment -from revengai.models.elf_symbol import ELFSymbol as ELFSymbol -from revengai.models.elf_dynamic_entry import ElfDynamicEntry as ElfDynamicEntry -from revengai.models.entrypoint_model import EntrypointModel as EntrypointModel -from revengai.models.enumeration import Enumeration as Enumeration from revengai.models.error_body import ErrorBody as ErrorBody -from revengai.models.error_model import ErrorModel as ErrorModel from revengai.models.event import Event as Event from revengai.models.event_attempt_failed import EventAttemptFailed as EventAttemptFailed from revengai.models.event_attempt_started import EventAttemptStarted as EventAttemptStarted @@ -839,76 +414,36 @@ from revengai.models.event_toolconfirmationrequired import EventTOOLCONFIRMATIONREQUIRED as EventTOOLCONFIRMATIONREQUIRED from revengai.models.event_warning import EventWarning as EventWarning from revengai.models.example import Example as Example -from revengai.models.export_model import ExportModel as ExportModel -from revengai.models.external_response import ExternalResponse as ExternalResponse from revengai.models.extracted_url import ExtractedURL as ExtractedURL from revengai.models.file_activity_entry import FileActivityEntry as FileActivityEntry -from revengai.models.file_format import FileFormat as FileFormat -from revengai.models.file_hashes import FileHashes as FileHashes -from revengai.models.file_metadata import FileMetadata as FileMetadata -from revengai.models.filters import Filters as Filters from revengai.models.form_file import FormFile as FormFile from revengai.models.function_argument import FunctionArgument as FunctionArgument -from revengai.models.function_block_destination_response import FunctionBlockDestinationResponse as FunctionBlockDestinationResponse -from revengai.models.function_block_response import FunctionBlockResponse as FunctionBlockResponse -from revengai.models.function_blocks_response import FunctionBlocksResponse as FunctionBlocksResponse -from revengai.models.function_boundary import FunctionBoundary as FunctionBoundary from revengai.models.function_call_edges import FunctionCallEdges as FunctionCallEdges -from revengai.models.function_capability_response import FunctionCapabilityResponse as FunctionCapabilityResponse -from revengai.models.function_data_types import FunctionDataTypes as FunctionDataTypes -from revengai.models.function_data_types_list import FunctionDataTypesList as FunctionDataTypesList -from revengai.models.function_data_types_list_item import FunctionDataTypesListItem as FunctionDataTypesListItem -from revengai.models.function_data_types_params import FunctionDataTypesParams as FunctionDataTypesParams -from revengai.models.function_data_types_status import FunctionDataTypesStatus as FunctionDataTypesStatus from revengai.models.function_dependency import FunctionDependency as FunctionDependency from revengai.models.function_details_output_body import FunctionDetailsOutputBody as FunctionDetailsOutputBody from revengai.models.function_header import FunctionHeader as FunctionHeader from revengai.models.function_info import FunctionInfo as FunctionInfo -from revengai.models.function_list_item import FunctionListItem as FunctionListItem -from revengai.models.function_local_variable_response import FunctionLocalVariableResponse as FunctionLocalVariableResponse -from revengai.models.function_mapping import FunctionMapping as FunctionMapping from revengai.models.function_match import FunctionMatch as FunctionMatch -from revengai.models.function_name_history import FunctionNameHistory as FunctionNameHistory -from revengai.models.function_param_response import FunctionParamResponse as FunctionParamResponse -from revengai.models.function_rename import FunctionRename as FunctionRename -from revengai.models.function_rename_map import FunctionRenameMap as FunctionRenameMap -from revengai.models.function_search_response import FunctionSearchResponse as FunctionSearchResponse -from revengai.models.function_search_result import FunctionSearchResult as FunctionSearchResult -from revengai.models.function_source_type import FunctionSourceType as FunctionSourceType from revengai.models.function_stack_variable import FunctionStackVariable as FunctionStackVariable -from revengai.models.function_string import FunctionString as FunctionString from revengai.models.function_string_item import FunctionStringItem as FunctionStringItem -from revengai.models.function_strings_response import FunctionStringsResponse as FunctionStringsResponse from revengai.models.function_type import FunctionType as FunctionType -from revengai.models.functions_detail_response import FunctionsDetailResponse as FunctionsDetailResponse -from revengai.models.functions_list_rename import FunctionsListRename as FunctionsListRename -from revengai.models.generate_function_data_types import GenerateFunctionDataTypes as GenerateFunctionDataTypes from revengai.models.generate_pdf_output_body import GeneratePDFOutputBody as GeneratePDFOutputBody -from revengai.models.generation_status_list import GenerationStatusList as GenerationStatusList from revengai.models.get_additional_details_output_body import GetAdditionalDetailsOutputBody as GetAdditionalDetailsOutputBody from revengai.models.get_additional_details_status_output_body import GetAdditionalDetailsStatusOutputBody as GetAdditionalDetailsStatusOutputBody -from revengai.models.get_ai_decompilation_rating_response import GetAiDecompilationRatingResponse as GetAiDecompilationRatingResponse from revengai.models.get_analysis_strings_status_output_body import GetAnalysisStringsStatusOutputBody as GetAnalysisStringsStatusOutputBody from revengai.models.get_collection_output_body import GetCollectionOutputBody as GetCollectionOutputBody from revengai.models.get_matches_output_body import GetMatchesOutputBody as GetMatchesOutputBody from revengai.models.get_matches_status_output_body import GetMatchesStatusOutputBody as GetMatchesStatusOutputBody from revengai.models.get_products_output_body import GetProductsOutputBody as GetProductsOutputBody -from revengai.models.get_public_user_response import GetPublicUserResponse as GetPublicUserResponse from revengai.models.get_subscription_output_body import GetSubscriptionOutputBody as GetSubscriptionOutputBody -from revengai.models.global_variable import GlobalVariable as GlobalVariable from revengai.models.history_entry import HistoryEntry as HistoryEntry from revengai.models.http_request import HttpRequest as HttpRequest -from revengai.models.ioc import IOC as IOC -from revengai.models.isa import ISA as ISA -from revengai.models.icon_model import IconModel as IconModel -from revengai.models.import_model import ImportModel as ImportModel from revengai.models.imported_function_caller_entry import ImportedFunctionCallerEntry as ImportedFunctionCallerEntry from revengai.models.imported_function_detail_output_body import ImportedFunctionDetailOutputBody as ImportedFunctionDetailOutputBody from revengai.models.imported_function_entry import ImportedFunctionEntry as ImportedFunctionEntry from revengai.models.indirect_call_site import IndirectCallSite as IndirectCallSite from revengai.models.indirect_call_sites_output_body import IndirectCallSitesOutputBody as IndirectCallSitesOutputBody from revengai.models.inline_comment import InlineComment as InlineComment -from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest as InsertAnalysisLogRequest from revengai.models.invite_user_input_body import InviteUserInputBody as InviteUserInputBody from revengai.models.issuer_allowed_domain import IssuerAllowedDomain as IssuerAllowedDomain from revengai.models.list_analyses_output_body import ListAnalysesOutputBody as ListAnalysesOutputBody @@ -916,7 +451,6 @@ from revengai.models.list_analysis_functions_output_body import ListAnalysisFunctionsOutputBody as ListAnalysisFunctionsOutputBody from revengai.models.list_analysis_strings_output_body import ListAnalysisStringsOutputBody as ListAnalysisStringsOutputBody from revengai.models.list_archive_contents_output_body import ListArchiveContentsOutputBody as ListArchiveContentsOutputBody -from revengai.models.list_collection_results import ListCollectionResults as ListCollectionResults from revengai.models.list_collections_output_body import ListCollectionsOutputBody as ListCollectionsOutputBody from revengai.models.list_example_analyses_output_body import ListExampleAnalysesOutputBody as ListExampleAnalysesOutputBody from revengai.models.list_function_strings_output_body import ListFunctionStringsOutputBody as ListFunctionStringsOutputBody @@ -925,30 +459,19 @@ from revengai.models.list_teams_output_body import ListTeamsOutputBody as ListTeamsOutputBody from revengai.models.list_users_output_body import ListUsersOutputBody as ListUsersOutputBody from revengai.models.location_output_body import LocationOutputBody as LocationOutputBody -from revengai.models.logs import Logs as Logs -from revengai.models.mitre_technique import MITRETechnique as MITRETechnique from revengai.models.match_filters import MatchFilters as MatchFilters from revengai.models.matched_function import MatchedFunction as MatchedFunction from revengai.models.memdump_entry import MemdumpEntry as MemdumpEntry from revengai.models.message_body import MessageBody as MessageBody -from revengai.models.meta_model import MetaModel as MetaModel -from revengai.models.model_name import ModelName as ModelName -from revengai.models.models_response import ModelsResponse as ModelsResponse from revengai.models.module_load_entry import ModuleLoadEntry as ModuleLoadEntry from revengai.models.mutex_entry import MutexEntry as MutexEntry from revengai.models.name_confidence import NameConfidence as NameConfidence -from revengai.models.name_source_type import NameSourceType as NameSourceType from revengai.models.network_activity import NetworkActivity as NetworkActivity from revengai.models.oidc_callback_input_body import OIDCCallbackInputBody as OIDCCallbackInputBody -from revengai.models.order import Order as Order from revengai.models.organisation import Organisation as Organisation from revengai.models.organisation_group import OrganisationGroup as OrganisationGroup from revengai.models.organisation_issuer import OrganisationIssuer as OrganisationIssuer from revengai.models.organisation_owner import OrganisationOwner as OrganisationOwner -from revengai.models.pdb_debug_model import PDBDebugModel as PDBDebugModel -from revengai.models.pe_model import PEModel as PEModel -from revengai.models.pagination_model import PaginationModel as PaginationModel -from revengai.models.params import Params as Params from revengai.models.password_reset_input_body import PasswordResetInputBody as PasswordResetInputBody from revengai.models.patch_collection_binaries_input_body import PatchCollectionBinariesInputBody as PatchCollectionBinariesInputBody from revengai.models.patch_collection_binaries_output_body import PatchCollectionBinariesOutputBody as PatchCollectionBinariesOutputBody @@ -959,7 +482,6 @@ from revengai.models.patch_comment_body import PatchCommentBody as PatchCommentBody from revengai.models.pcap_body_info import PcapBodyInfo as PcapBodyInfo from revengai.models.permissions import Permissions as Permissions -from revengai.models.platform import Platform as Platform from revengai.models.price_output import PriceOutput as PriceOutput from revengai.models.price_summary import PriceSummary as PriceSummary from revengai.models.process_activity_entry import ProcessActivityEntry as ProcessActivityEntry @@ -970,43 +492,24 @@ from revengai.models.product_summary import ProductSummary as ProductSummary from revengai.models.progress_message import ProgressMessage as ProgressMessage from revengai.models.prose_event import ProseEvent as ProseEvent -from revengai.models.put_analysis_strings_request import PutAnalysisStringsRequest as PutAnalysisStringsRequest -from revengai.models.queued_workflow_task_response import QueuedWorkflowTaskResponse as QueuedWorkflowTaskResponse -from revengai.models.re_analysis_form import ReAnalysisForm as ReAnalysisForm -from revengai.models.recent import Recent as Recent from revengai.models.refresh_body import RefreshBody as RefreshBody from revengai.models.regenerate_output_body import RegenerateOutputBody as RegenerateOutputBody from revengai.models.register_user_input_body import RegisterUserInputBody as RegisterUserInputBody from revengai.models.registry_operation import RegistryOperation as RegistryOperation -from revengai.models.relative_binary_response import RelativeBinaryResponse as RelativeBinaryResponse from revengai.models.rename_applied_event import RenameAppliedEvent as RenameAppliedEvent from revengai.models.rename_input_body import RenameInputBody as RenameInputBody from revengai.models.rename_output_body import RenameOutputBody as RenameOutputBody from revengai.models.replacement_value import ReplacementValue as ReplacementValue -from revengai.models.report_analysis_response import ReportAnalysisResponse as ReportAnalysisResponse from revengai.models.report_event import ReportEvent as ReportEvent from revengai.models.report_info import ReportInfo as ReportInfo from revengai.models.report_options import ReportOptions as ReportOptions from revengai.models.revoke_body import RevokeBody as RevokeBody -from revengai.models.sbom import SBOM as SBOM -from revengai.models.sbom_package import SBOMPackage as SBOMPackage from revengai.models.sso_provider import SSOProvider as SSOProvider from revengai.models.sso_providers_output_body import SSOProvidersOutputBody as SSOProvidersOutputBody -from revengai.models.sandbox_options import SandboxOptions as SandboxOptions -from revengai.models.sandbox_start_method import SandboxStartMethod as SandboxStartMethod -from revengai.models.sandbox_timeout import SandboxTimeout as SandboxTimeout from revengai.models.scheduled_task_entry import ScheduledTaskEntry as ScheduledTaskEntry -from revengai.models.scrape_third_party_config import ScrapeThirdPartyConfig as ScrapeThirdPartyConfig -from revengai.models.section_model import SectionModel as SectionModel -from revengai.models.security_model import SecurityModel as SecurityModel -from revengai.models.segment_info import SegmentInfo as SegmentInfo from revengai.models.send_message_request import SendMessageRequest as SendMessageRequest from revengai.models.service_entry import ServiceEntry as ServiceEntry from revengai.models.session_output_body import SessionOutputBody as SessionOutputBody -from revengai.models.single_code_certificate_model import SingleCodeCertificateModel as SingleCodeCertificateModel -from revengai.models.single_code_signature_model import SingleCodeSignatureModel as SingleCodeSignatureModel -from revengai.models.single_pdb_entry_model import SinglePDBEntryModel as SinglePDBEntryModel -from revengai.models.single_section_model import SingleSectionModel as SingleSectionModel from revengai.models.source_delta_event import SourceDeltaEvent as SourceDeltaEvent from revengai.models.source_reset_event import SourceResetEvent as SourceResetEvent from revengai.models.sse_event_context_compacted_data import SseEventContextCompactedData as SseEventContextCompactedData @@ -1026,44 +529,23 @@ from revengai.models.sse_event_tool_call_result_data import SseEventToolCallResultData as SseEventToolCallResultData from revengai.models.sse_event_tool_call_start_data import SseEventToolCallStartData as SseEventToolCallStartData from revengai.models.sse_event_tool_confirmation_required_data import SseEventToolConfirmationRequiredData as SseEventToolConfirmationRequiredData -from revengai.models.stack_variable import StackVariable as StackVariable from revengai.models.start_batch_matching_input_body import StartBatchMatchingInputBody as StartBatchMatchingInputBody from revengai.models.start_matching_for_analysis_input_body import StartMatchingForAnalysisInputBody as StartMatchingForAnalysisInputBody from revengai.models.start_matching_for_functions_input_body import StartMatchingForFunctionsInputBody as StartMatchingForFunctionsInputBody from revengai.models.start_matching_output_body import StartMatchingOutputBody as StartMatchingOutputBody from revengai.models.startup_info import StartupInfo as StartupInfo -from revengai.models.status_input import StatusInput as StatusInput -from revengai.models.status_output import StatusOutput as StatusOutput from revengai.models.status_response import StatusResponse as StatusResponse from revengai.models.stream_ai_decompilation200_response_inner import StreamAiDecompilation200ResponseInner as StreamAiDecompilation200ResponseInner from revengai.models.stream_events200_response_inner import StreamEvents200ResponseInner as StreamEvents200ResponseInner -from revengai.models.string_functions import StringFunctions as StringFunctions -from revengai.models.string_source import StringSource as StringSource -from revengai.models.structure import Structure as Structure -from revengai.models.structure_member import StructureMember as StructureMember -from revengai.models.submit_user_feedback_request import SubmitUserFeedbackRequest as SubmitUserFeedbackRequest from revengai.models.summary_data import SummaryData as SummaryData -from revengai.models.symbols import Symbols as Symbols -from revengai.models.tag import Tag as Tag -from revengai.models.tag_item import TagItem as TagItem -from revengai.models.tag_response import TagResponse as TagResponse -from revengai.models.tag_search_response import TagSearchResponse as TagSearchResponse -from revengai.models.tag_search_result import TagSearchResult as TagSearchResult -from revengai.models.task_response import TaskResponse as TaskResponse -from revengai.models.task_status import TaskStatus as TaskStatus -from revengai.models.task_status_response import TaskStatusResponse as TaskStatusResponse from revengai.models.tcp_carved_file import TcpCarvedFile as TcpCarvedFile from revengai.models.team import Team as Team from revengai.models.team_member import TeamMember as TeamMember -from revengai.models.timestamp_model import TimestampModel as TimestampModel from revengai.models.token_input_body import TokenInputBody as TokenInputBody from revengai.models.token_response import TokenResponse as TokenResponse from revengai.models.tokenised_data import TokenisedData as TokenisedData -from revengai.models.triage_function_response import TriageFunctionResponse as TriageFunctionResponse -from revengai.models.triage_report_response import TriageReportResponse as TriageReportResponse from revengai.models.trigger_dynamic_execution_input_body import TriggerDynamicExecutionInputBody as TriggerDynamicExecutionInputBody from revengai.models.ttp import Ttp as Ttp -from revengai.models.type_definition import TypeDefinition as TypeDefinition from revengai.models.update_data_types_input_body import UpdateDataTypesInputBody as UpdateDataTypesInputBody from revengai.models.update_data_types_output_body import UpdateDataTypesOutputBody as UpdateDataTypesOutputBody from revengai.models.update_issuer_input_body import UpdateIssuerInputBody as UpdateIssuerInputBody @@ -1074,26 +556,12 @@ from revengai.models.update_user_credits_input_body import UpdateUserCreditsInputBody as UpdateUserCreditsInputBody from revengai.models.update_user_input_body import UpdateUserInputBody as UpdateUserInputBody from revengai.models.update_user_password_input_body import UpdateUserPasswordInputBody as UpdateUserPasswordInputBody -from revengai.models.upload_file_type import UploadFileType as UploadFileType -from revengai.models.upload_response import UploadResponse as UploadResponse -from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest as UpsertAiDecomplationRatingRequest from revengai.models.upsert_overrides_data import UpsertOverridesData as UpsertOverridesData from revengai.models.upsert_overrides_input_body import UpsertOverridesInputBody as UpsertOverridesInputBody from revengai.models.user import User as User -from revengai.models.user_activity_response import UserActivityResponse as UserActivityResponse from revengai.models.user_credits import UserCredits as UserCredits from revengai.models.user_identity import UserIdentity as UserIdentity from revengai.models.user_profile import UserProfile as UserProfile -from revengai.models.v2_function_header import V2FunctionHeader as V2FunctionHeader -from revengai.models.v2_function_info import V2FunctionInfo as V2FunctionInfo -from revengai.models.v2_function_info_func_deps_inner import V2FunctionInfoFuncDepsInner as V2FunctionInfoFuncDepsInner -from revengai.models.v2_function_type import V2FunctionType as V2FunctionType -from revengai.models.vulnerabilities import Vulnerabilities as Vulnerabilities -from revengai.models.vulnerability import Vulnerability as Vulnerability from revengai.models.warning_event import WarningEvent as WarningEvent from revengai.models.workflow_progress import WorkflowProgress as WorkflowProgress -from revengai.models.workspace import Workspace as Workspace -from revengai.models.xref_from_response import XrefFromResponse as XrefFromResponse -from revengai.models.xref_response import XrefResponse as XrefResponse -from revengai.models.xref_to_response import XrefToResponse as XrefToResponse diff --git a/revengai/api/__init__.py b/revengai/api/__init__.py index 548ecbd0..89ec2baa 100644 --- a/revengai/api/__init__.py +++ b/revengai/api/__init__.py @@ -1,25 +1,14 @@ # flake8: noqa # import apis into api package -from revengai.api.agent_api import AgentApi -from revengai.api.analyses_bulk_actions_api import AnalysesBulkActionsApi -from revengai.api.analyses_comments_api import AnalysesCommentsApi from revengai.api.analyses_core_api import AnalysesCoreApi -from revengai.api.analyses_results_metadata_api import AnalysesResultsMetadataApi -from revengai.api.analyses_x_refs_api import AnalysesXRefsApi -from revengai.api.authentication_users_api import AuthenticationUsersApi from revengai.api.binaries_api import BinariesApi from revengai.api.collections_api import CollectionsApi -from revengai.api.config_api import ConfigApi from revengai.api.conversations_api import ConversationsApi -from revengai.api.external_sources_api import ExternalSourcesApi -from revengai.api.firmware_api import FirmwareApi from revengai.api.functions_ai_decompilation_api import FunctionsAIDecompilationApi from revengai.api.functions_core_api import FunctionsCoreApi from revengai.api.functions_data_types_api import FunctionsDataTypesApi from revengai.api.functions_renaming_history_api import FunctionsRenamingHistoryApi from revengai.api.iam_users_api import IAMUsersApi -from revengai.api.models_api import ModelsApi from revengai.api.reports_api import ReportsApi -from revengai.api.search_api import SearchApi diff --git a/revengai/api/agent_api.py b/revengai/api/agent_api.py deleted file mode 100644 index 4c73bd51..00000000 --- a/revengai/api/agent_api.py +++ /dev/null @@ -1,2405 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import StrictInt -from revengai.models.base_response_capabilities_agent_response import BaseResponseCapabilitiesAgentResponse -from revengai.models.base_response_queued_workflow_task_response import BaseResponseQueuedWorkflowTaskResponse -from revengai.models.base_response_report_analysis_response import BaseResponseReportAnalysisResponse -from revengai.models.base_response_triage_report_response import BaseResponseTriageReportResponse -from revengai.models.queued_workflow_task_response import QueuedWorkflowTaskResponse -from revengai.models.task_status_response import TaskStatusResponse - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class AgentApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TaskStatusResponse: - """Check the status of a capabilities analysis workflow - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TaskStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TaskStatusResponse]: - """Check the status of a capabilities analysis workflow - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TaskStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Check the status of a capabilities analysis workflow - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TaskStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _check_capabilities_task_status_v2_analyses_analysis_id_agent_capabilities_status_get_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/agent/capabilities/status', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TaskStatusResponse: - """Check the status of a report analysis workflow - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TaskStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TaskStatusResponse]: - """Check the status of a report analysis workflow - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TaskStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Check the status of a report analysis workflow - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TaskStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _check_report_analysis_task_status_v2_analyses_analysis_id_agent_report_analysis_status_get_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/agent/report-analysis/status', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TaskStatusResponse: - """Check the status of a triage analysis workflow - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TaskStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TaskStatusResponse]: - """Check the status of a triage analysis workflow - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TaskStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Check the status of a triage analysis workflow - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TaskStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _check_triage_task_status_v2_analyses_analysis_id_agent_triage_status_get_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/agent/triage/status', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseQueuedWorkflowTaskResponse: - """Queues a capabilities analysis workflow process - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "BaseResponseQueuedWorkflowTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseQueuedWorkflowTaskResponse]: - """Queues a capabilities analysis workflow process - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "BaseResponseQueuedWorkflowTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Queues a capabilities analysis workflow process - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "BaseResponseQueuedWorkflowTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_capabilities_task_v2_analyses_analysis_id_agent_capabilities_post_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/analyses/{analysis_id}/agent/capabilities', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> QueuedWorkflowTaskResponse: - """Queues a combined report analysis workflow process - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "QueuedWorkflowTaskResponse", - '422': "BaseResponse", - '409': "ErrorModel", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[QueuedWorkflowTaskResponse]: - """Queues a combined report analysis workflow process - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "QueuedWorkflowTaskResponse", - '422': "BaseResponse", - '409': "ErrorModel", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Queues a combined report analysis workflow process - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "QueuedWorkflowTaskResponse", - '422': "BaseResponse", - '409': "ErrorModel", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_report_analysis_task_v2_analyses_analysis_id_agent_report_analysis_post_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/analyses/{analysis_id}/agent/report-analysis', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_triage_task_v2_analyses_analysis_id_agent_triage_post( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseQueuedWorkflowTaskResponse: - """Queues a triage analysis workflow process - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_triage_task_v2_analyses_analysis_id_agent_triage_post_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "BaseResponseQueuedWorkflowTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_triage_task_v2_analyses_analysis_id_agent_triage_post_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseQueuedWorkflowTaskResponse]: - """Queues a triage analysis workflow process - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_triage_task_v2_analyses_analysis_id_agent_triage_post_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "BaseResponseQueuedWorkflowTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_triage_task_v2_analyses_analysis_id_agent_triage_post_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Queues a triage analysis workflow process - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_triage_task_v2_analyses_analysis_id_agent_triage_post_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "BaseResponseQueuedWorkflowTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_triage_task_v2_analyses_analysis_id_agent_triage_post_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/analyses/{analysis_id}/agent/triage', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCapabilitiesAgentResponse: - """Get Capabilities Result - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCapabilitiesAgentResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCapabilitiesAgentResponse]: - """Get Capabilities Result - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCapabilitiesAgentResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Capabilities Result - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCapabilitiesAgentResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_capabilities_result_v2_analyses_analysis_id_agent_capabilities_get_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/agent/capabilities', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseReportAnalysisResponse: - """Get Report Analysis Result - - Returns: - A summary of the analysis - The software type of the binary - An attack flow summary - List of IOCs - List of MITRE executable techniques - A YARA rule - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseReportAnalysisResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseReportAnalysisResponse]: - """Get Report Analysis Result - - Returns: - A summary of the analysis - The software type of the binary - An attack flow summary - List of IOCs - List of MITRE executable techniques - A YARA rule - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseReportAnalysisResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Report Analysis Result - - Returns: - A summary of the analysis - The software type of the binary - An attack flow summary - List of IOCs - List of MITRE executable techniques - A YARA rule - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseReportAnalysisResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_report_analysis_result_v2_analyses_analysis_id_agent_report_analysis_get_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/agent/report-analysis', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_triage_result_v2_analyses_analysis_id_agent_triage_get( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseTriageReportResponse: - """Get Triage Result - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_triage_result_v2_analyses_analysis_id_agent_triage_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseTriageReportResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_triage_result_v2_analyses_analysis_id_agent_triage_get_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseTriageReportResponse]: - """Get Triage Result - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_triage_result_v2_analyses_analysis_id_agent_triage_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseTriageReportResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_triage_result_v2_analyses_analysis_id_agent_triage_get_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Triage Result - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_triage_result_v2_analyses_analysis_id_agent_triage_get_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseTriageReportResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_triage_result_v2_analyses_analysis_id_agent_triage_get_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/agent/triage', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api/analyses_bulk_actions_api.py b/revengai/api/analyses_bulk_actions_api.py deleted file mode 100644 index 294c4e8b..00000000 --- a/revengai/api/analyses_bulk_actions_api.py +++ /dev/null @@ -1,600 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from revengai.models.analysis_bulk_add_tags_request import AnalysisBulkAddTagsRequest -from revengai.models.base_response_analysis_bulk_add_tags_response import BaseResponseAnalysisBulkAddTagsResponse -from revengai.models.base_response_dict import BaseResponseDict -from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class AnalysesBulkActionsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def bulk_add_analysis_tags( - self, - analysis_bulk_add_tags_request: AnalysisBulkAddTagsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisBulkAddTagsResponse: - """Bulk Add Analysis Tags - - Updates analysis tags for multiple analyses. User must be the owner. - - :param analysis_bulk_add_tags_request: (required) - :type analysis_bulk_add_tags_request: AnalysisBulkAddTagsRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._bulk_add_analysis_tags_serialize( - analysis_bulk_add_tags_request=analysis_bulk_add_tags_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisBulkAddTagsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def bulk_add_analysis_tags_with_http_info( - self, - analysis_bulk_add_tags_request: AnalysisBulkAddTagsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisBulkAddTagsResponse]: - """Bulk Add Analysis Tags - - Updates analysis tags for multiple analyses. User must be the owner. - - :param analysis_bulk_add_tags_request: (required) - :type analysis_bulk_add_tags_request: AnalysisBulkAddTagsRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._bulk_add_analysis_tags_serialize( - analysis_bulk_add_tags_request=analysis_bulk_add_tags_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisBulkAddTagsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def bulk_add_analysis_tags_without_preload_content( - self, - analysis_bulk_add_tags_request: AnalysisBulkAddTagsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Bulk Add Analysis Tags - - Updates analysis tags for multiple analyses. User must be the owner. - - :param analysis_bulk_add_tags_request: (required) - :type analysis_bulk_add_tags_request: AnalysisBulkAddTagsRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._bulk_add_analysis_tags_serialize( - analysis_bulk_add_tags_request=analysis_bulk_add_tags_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisBulkAddTagsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _bulk_add_analysis_tags_serialize( - self, - analysis_bulk_add_tags_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if analysis_bulk_add_tags_request is not None: - _body_params = analysis_bulk_add_tags_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/v2/analyses/tags/add', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def bulk_delete_analyses( - self, - bulk_delete_analyses_request: BulkDeleteAnalysesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseDict: - """Bulk Delete Analyses - - Deletes multiple analyses. User must be the owner of all analyses. - - :param bulk_delete_analyses_request: (required) - :type bulk_delete_analyses_request: BulkDeleteAnalysesRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._bulk_delete_analyses_serialize( - bulk_delete_analyses_request=bulk_delete_analyses_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseDict", - '422': "BaseResponse", - '404': "BaseResponse", - '403': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def bulk_delete_analyses_with_http_info( - self, - bulk_delete_analyses_request: BulkDeleteAnalysesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseDict]: - """Bulk Delete Analyses - - Deletes multiple analyses. User must be the owner of all analyses. - - :param bulk_delete_analyses_request: (required) - :type bulk_delete_analyses_request: BulkDeleteAnalysesRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._bulk_delete_analyses_serialize( - bulk_delete_analyses_request=bulk_delete_analyses_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseDict", - '422': "BaseResponse", - '404': "BaseResponse", - '403': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def bulk_delete_analyses_without_preload_content( - self, - bulk_delete_analyses_request: BulkDeleteAnalysesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Bulk Delete Analyses - - Deletes multiple analyses. User must be the owner of all analyses. - - :param bulk_delete_analyses_request: (required) - :type bulk_delete_analyses_request: BulkDeleteAnalysesRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._bulk_delete_analyses_serialize( - bulk_delete_analyses_request=bulk_delete_analyses_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseDict", - '422': "BaseResponse", - '404': "BaseResponse", - '403': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _bulk_delete_analyses_serialize( - self, - bulk_delete_analyses_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if bulk_delete_analyses_request is not None: - _body_params = bulk_delete_analyses_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/v2/analyses/delete', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api/analyses_comments_api.py b/revengai/api/analyses_comments_api.py deleted file mode 100644 index fa81c73a..00000000 --- a/revengai/api/analyses_comments_api.py +++ /dev/null @@ -1,1202 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictInt -from typing_extensions import Annotated -from revengai.models.base_response_bool import BaseResponseBool -from revengai.models.base_response_comment_response import BaseResponseCommentResponse -from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse -from revengai.models.comment_base import CommentBase -from revengai.models.comment_update_request import CommentUpdateRequest - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class AnalysesCommentsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_analysis_comment( - self, - analysis_id: StrictInt, - comment_base: CommentBase, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCommentResponse: - """Create a comment for this analysis - - Creates a comment associated with a specified analysis). - - :param analysis_id: (required) - :type analysis_id: int - :param comment_base: (required) - :type comment_base: CommentBase - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_analysis_comment_serialize( - analysis_id=analysis_id, - comment_base=comment_base, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseCommentResponse", - '422': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_analysis_comment_with_http_info( - self, - analysis_id: StrictInt, - comment_base: CommentBase, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCommentResponse]: - """Create a comment for this analysis - - Creates a comment associated with a specified analysis). - - :param analysis_id: (required) - :type analysis_id: int - :param comment_base: (required) - :type comment_base: CommentBase - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_analysis_comment_serialize( - analysis_id=analysis_id, - comment_base=comment_base, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseCommentResponse", - '422': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_analysis_comment_without_preload_content( - self, - analysis_id: StrictInt, - comment_base: CommentBase, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a comment for this analysis - - Creates a comment associated with a specified analysis). - - :param analysis_id: (required) - :type analysis_id: int - :param comment_base: (required) - :type comment_base: CommentBase - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_analysis_comment_serialize( - analysis_id=analysis_id, - comment_base=comment_base, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseCommentResponse", - '422': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_analysis_comment_serialize( - self, - analysis_id, - comment_base, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if comment_base is not None: - _body_params = comment_base - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/analyses/{analysis_id}/comments', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_analysis_comment( - self, - comment_id: Annotated[int, Field(strict=True, ge=1)], - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseBool: - """Delete a comment - - Deletes an existing comment. Users can only delete their own comments. - - :param comment_id: (required) - :type comment_id: int - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_analysis_comment_serialize( - comment_id=comment_id, - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_analysis_comment_with_http_info( - self, - comment_id: Annotated[int, Field(strict=True, ge=1)], - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseBool]: - """Delete a comment - - Deletes an existing comment. Users can only delete their own comments. - - :param comment_id: (required) - :type comment_id: int - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_analysis_comment_serialize( - comment_id=comment_id, - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_analysis_comment_without_preload_content( - self, - comment_id: Annotated[int, Field(strict=True, ge=1)], - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete a comment - - Deletes an existing comment. Users can only delete their own comments. - - :param comment_id: (required) - :type comment_id: int - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_analysis_comment_serialize( - comment_id=comment_id, - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBool", - '422': "BaseResponse", - '403': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_analysis_comment_serialize( - self, - comment_id, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if comment_id is not None: - _path_params['comment_id'] = comment_id - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/v2/analyses/{analysis_id}/comments/{comment_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_analysis_comments( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseListCommentResponse: - """Get comments for this analysis - - Retrieves all comments created for a specific analysis. Only returns comments for resources the requesting user has access to. - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_comments_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListCommentResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_comments_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseListCommentResponse]: - """Get comments for this analysis - - Retrieves all comments created for a specific analysis. Only returns comments for resources the requesting user has access to. - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_comments_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListCommentResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_comments_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get comments for this analysis - - Retrieves all comments created for a specific analysis. Only returns comments for resources the requesting user has access to. - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_comments_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListCommentResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_comments_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/comments', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_analysis_comment( - self, - comment_id: Annotated[int, Field(strict=True, ge=1)], - analysis_id: StrictInt, - comment_update_request: CommentUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCommentResponse: - """Update a comment - - Updates the content of an existing comment. Users can only update their own comments. - - :param comment_id: (required) - :type comment_id: int - :param analysis_id: (required) - :type analysis_id: int - :param comment_update_request: (required) - :type comment_update_request: CommentUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_analysis_comment_serialize( - comment_id=comment_id, - analysis_id=analysis_id, - comment_update_request=comment_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_analysis_comment_with_http_info( - self, - comment_id: Annotated[int, Field(strict=True, ge=1)], - analysis_id: StrictInt, - comment_update_request: CommentUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCommentResponse]: - """Update a comment - - Updates the content of an existing comment. Users can only update their own comments. - - :param comment_id: (required) - :type comment_id: int - :param analysis_id: (required) - :type analysis_id: int - :param comment_update_request: (required) - :type comment_update_request: CommentUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_analysis_comment_serialize( - comment_id=comment_id, - analysis_id=analysis_id, - comment_update_request=comment_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_analysis_comment_without_preload_content( - self, - comment_id: Annotated[int, Field(strict=True, ge=1)], - analysis_id: StrictInt, - comment_update_request: CommentUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update a comment - - Updates the content of an existing comment. Users can only update their own comments. - - :param comment_id: (required) - :type comment_id: int - :param analysis_id: (required) - :type analysis_id: int - :param comment_update_request: (required) - :type comment_update_request: CommentUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_analysis_comment_serialize( - comment_id=comment_id, - analysis_id=analysis_id, - comment_update_request=comment_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCommentResponse", - '422': "BaseResponse", - '403': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_analysis_comment_serialize( - self, - comment_id, - analysis_id, - comment_update_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if comment_id is not None: - _path_params['comment_id'] = comment_id - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if comment_update_request is not None: - _body_params = comment_update_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/v2/analyses/{analysis_id}/comments/{comment_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api/analyses_core_api.py b/revengai/api/analyses_core_api.py index fac441ee..e029fee9 100644 --- a/revengai/api/analyses_core_api.py +++ b/revengai/api/analyses_core_api.py @@ -15,48 +15,22 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator -from typing import Any, Dict, List, Optional, Tuple, Union +from pydantic import Field, StrictStr, field_validator +from typing import Any, Dict, List, Optional from typing_extensions import Annotated from revengai.models.add_user_string_input_body import AddUserStringInputBody from revengai.models.analysis_basic_info_output_body import AnalysisBasicInfoOutputBody -from revengai.models.analysis_create_request import AnalysisCreateRequest from revengai.models.analysis_report import AnalysisReport -from revengai.models.analysis_update_request import AnalysisUpdateRequest -from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest -from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy from revengai.models.auto_unstrip_status_output_body import AutoUnstripStatusOutputBody -from revengai.models.base_response import BaseResponse -from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse -from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse -from revengai.models.base_response_analysis_function_mapping import BaseResponseAnalysisFunctionMapping -from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse -from revengai.models.base_response_basic import BaseResponseBasic -from revengai.models.base_response_created import BaseResponseCreated -from revengai.models.base_response_dict import BaseResponseDict -from revengai.models.base_response_logs import BaseResponseLogs -from revengai.models.base_response_params import BaseResponseParams -from revengai.models.base_response_recent import BaseResponseRecent -from revengai.models.base_response_status import BaseResponseStatus -from revengai.models.base_response_upload_response import BaseResponseUploadResponse -from revengai.models.dynamic_execution_status import DynamicExecutionStatus from revengai.models.dynamic_execution_status_response import DynamicExecutionStatusResponse from revengai.models.get_analysis_strings_status_output_body import GetAnalysisStringsStatusOutputBody from revengai.models.get_matches_output_body import GetMatchesOutputBody from revengai.models.get_matches_status_output_body import GetMatchesStatusOutputBody -from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest from revengai.models.list_analyses_output_body import ListAnalysesOutputBody from revengai.models.list_analysis_strings_output_body import ListAnalysisStringsOutputBody from revengai.models.list_example_analyses_output_body import ListExampleAnalysesOutputBody -from revengai.models.model_name import ModelName -from revengai.models.order import Order -from revengai.models.put_analysis_strings_request import PutAnalysisStringsRequest -from revengai.models.re_analysis_form import ReAnalysisForm from revengai.models.start_matching_for_analysis_input_body import StartMatchingForAnalysisInputBody from revengai.models.start_matching_output_body import StartMatchingOutputBody -from revengai.models.status_input import StatusInput -from revengai.models.upload_file_type import UploadFileType -from revengai.models.workspace import Workspace from revengai.api_client import ApiClient, RequestSerialized from revengai.api_response import ApiResponse @@ -93,7 +67,7 @@ def add_user_string_to_analysis( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Dict[str, object]: + ) -> object: """Add a user-provided string to an analysis. Attaches a user-provided string to an analysis at the given virtual address. The string is stored with source `USER` and complements strings discovered automatically during analysis. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied @@ -134,7 +108,7 @@ def add_user_string_to_analysis( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Dict[str, object]", + '201': "object", '403': "APIError", '404': "APIError", '422': "APIError", @@ -168,7 +142,7 @@ def add_user_string_to_analysis_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Dict[str, object]]: + ) -> ApiResponse[object]: """Add a user-provided string to an analysis. Attaches a user-provided string to an analysis at the given virtual address. The string is stored with source `USER` and complements strings discovered automatically during analysis. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied @@ -209,7 +183,7 @@ def add_user_string_to_analysis_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Dict[str, object]", + '201': "object", '403': "APIError", '404': "APIError", '422': "APIError", @@ -284,7 +258,7 @@ def add_user_string_to_analysis_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Dict[str, object]", + '201': "object", '403': "APIError", '404': "APIError", '422': "APIError", @@ -379,10 +353,9 @@ def _add_user_string_to_analysis_serialize( @validate_call - def create_analysis( + def get_analysis_basic_info( self, - analysis_create_request: AnalysisCreateRequest, - x_rev_eng_application: Optional[StrictStr] = None, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -395,15 +368,13 @@ def create_analysis( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisCreateResponse: - """Create Analysis + ) -> AnalysisBasicInfoOutputBody: + """Get basic analysis information - Begins an analysis + Returns basic metadata for the given analysis including binary details, model, owner, and function count. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param analysis_create_request: (required) - :type analysis_create_request: AnalysisCreateRequest - :param x_rev_eng_application: - :type x_rev_eng_application: str + :param analysis_id: Analysis ID (required) + :type analysis_id: int :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 @@ -426,9 +397,8 @@ def create_analysis( :return: Returns the result object. """ # noqa: E501 - _param = self._create_analysis_serialize( - analysis_create_request=analysis_create_request, - x_rev_eng_application=x_rev_eng_application, + _param = self._get_analysis_basic_info_serialize( + analysis_id=analysis_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -436,10 +406,11 @@ def create_analysis( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseAnalysisCreateResponse", - '422': "BaseResponse", - '404': "BaseResponse", - '400': "BaseResponse", + '200': "AnalysisBasicInfoOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -453,10 +424,9 @@ def create_analysis( @validate_call - def create_analysis_with_http_info( + def get_analysis_basic_info_with_http_info( self, - analysis_create_request: AnalysisCreateRequest, - x_rev_eng_application: Optional[StrictStr] = None, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -469,15 +439,13 @@ def create_analysis_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisCreateResponse]: - """Create Analysis + ) -> ApiResponse[AnalysisBasicInfoOutputBody]: + """Get basic analysis information - Begins an analysis + Returns basic metadata for the given analysis including binary details, model, owner, and function count. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param analysis_create_request: (required) - :type analysis_create_request: AnalysisCreateRequest - :param x_rev_eng_application: - :type x_rev_eng_application: str + :param analysis_id: Analysis ID (required) + :type analysis_id: int :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 @@ -500,9 +468,8 @@ def create_analysis_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_analysis_serialize( - analysis_create_request=analysis_create_request, - x_rev_eng_application=x_rev_eng_application, + _param = self._get_analysis_basic_info_serialize( + analysis_id=analysis_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -510,10 +477,11 @@ def create_analysis_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseAnalysisCreateResponse", - '422': "BaseResponse", - '404': "BaseResponse", - '400': "BaseResponse", + '200': "AnalysisBasicInfoOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -527,10 +495,9 @@ def create_analysis_with_http_info( @validate_call - def create_analysis_without_preload_content( + def get_analysis_basic_info_without_preload_content( self, - analysis_create_request: AnalysisCreateRequest, - x_rev_eng_application: Optional[StrictStr] = None, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -544,14 +511,12 @@ def create_analysis_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Analysis + """Get basic analysis information - Begins an analysis + Returns basic metadata for the given analysis including binary details, model, owner, and function count. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param analysis_create_request: (required) - :type analysis_create_request: AnalysisCreateRequest - :param x_rev_eng_application: - :type x_rev_eng_application: str + :param analysis_id: Analysis ID (required) + :type analysis_id: int :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 @@ -574,9 +539,8 @@ def create_analysis_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_analysis_serialize( - analysis_create_request=analysis_create_request, - x_rev_eng_application=x_rev_eng_application, + _param = self._get_analysis_basic_info_serialize( + analysis_id=analysis_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -584,10 +548,11 @@ def create_analysis_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseAnalysisCreateResponse", - '422': "BaseResponse", - '404': "BaseResponse", - '400': "BaseResponse", + '200': "AnalysisBasicInfoOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -596,10 +561,9 @@ def create_analysis_without_preload_content( return response_data.response - def _create_analysis_serialize( + def _get_analysis_basic_info_serialize( self, - analysis_create_request, - x_rev_eng_application, + analysis_id, _request_auth, _content_type, _headers, @@ -621,14 +585,12 @@ def _create_analysis_serialize( _body_params: Optional[bytes] = None # process the path parameters + if analysis_id is not None: + _path_params['analysis_id'] = analysis_id # process the query parameters # process the header parameters - if x_rev_eng_application is not None: - _header_params['X-RevEng-Application'] = x_rev_eng_application # process the form parameters # process the body parameter - if analysis_create_request is not None: - _body_params = analysis_create_request # set the HTTP header `Accept` @@ -639,19 +601,6 @@ def _create_analysis_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -660,8 +609,8 @@ def _create_analysis_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v2/analyses', + method='GET', + resource_path='/v3/analyses/{analysis_id}/basic', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -678,9 +627,10 @@ def _create_analysis_serialize( @validate_call - def delete_analysis( + def get_analysis_bytes( self, - analysis_id: StrictInt, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + page: Annotated[Optional[Annotated[int, Field(le=16777216, strict=True, ge=0)]], Field(description="64kb page of binary data")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -693,13 +643,15 @@ def delete_analysis( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseDict: - """Delete Analysis + ) -> None: + """Get the bytes of a binary - Deletes an analysis based on the provided analysis ID. + Returns a 64kb byte page from the binary. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int + :param page: 64kb page of binary data + :type page: int :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 @@ -722,8 +674,9 @@ def delete_analysis( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_analysis_serialize( + _param = self._get_analysis_bytes_serialize( analysis_id=analysis_id, + page=page, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -731,10 +684,12 @@ def delete_analysis( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseDict", - '422': "BaseResponse", - '404': "BaseResponse", - '403': "BaseResponse", + '200': None, + '400': "APIError", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -748,9 +703,10 @@ def delete_analysis( @validate_call - def delete_analysis_with_http_info( + def get_analysis_bytes_with_http_info( self, - analysis_id: StrictInt, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + page: Annotated[Optional[Annotated[int, Field(le=16777216, strict=True, ge=0)]], Field(description="64kb page of binary data")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -763,13 +719,15 @@ def delete_analysis_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseDict]: - """Delete Analysis + ) -> ApiResponse[None]: + """Get the bytes of a binary - Deletes an analysis based on the provided analysis ID. + Returns a 64kb byte page from the binary. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int + :param page: 64kb page of binary data + :type page: int :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 @@ -792,8 +750,9 @@ def delete_analysis_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_analysis_serialize( + _param = self._get_analysis_bytes_serialize( analysis_id=analysis_id, + page=page, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -801,10 +760,12 @@ def delete_analysis_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseDict", - '422': "BaseResponse", - '404': "BaseResponse", - '403': "BaseResponse", + '200': None, + '400': "APIError", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -818,9 +779,10 @@ def delete_analysis_with_http_info( @validate_call - def delete_analysis_without_preload_content( + def get_analysis_bytes_without_preload_content( self, - analysis_id: StrictInt, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + page: Annotated[Optional[Annotated[int, Field(le=16777216, strict=True, ge=0)]], Field(description="64kb page of binary data")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -834,12 +796,14 @@ def delete_analysis_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Analysis + """Get the bytes of a binary - Deletes an analysis based on the provided analysis ID. + Returns a 64kb byte page from the binary. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int + :param page: 64kb page of binary data + :type page: int :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 @@ -862,8 +826,9 @@ def delete_analysis_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_analysis_serialize( + _param = self._get_analysis_bytes_serialize( analysis_id=analysis_id, + page=page, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -871,10 +836,12 @@ def delete_analysis_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseDict", - '422': "BaseResponse", - '404': "BaseResponse", - '403': "BaseResponse", + '200': None, + '400': "APIError", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -883,9 +850,10 @@ def delete_analysis_without_preload_content( return response_data.response - def _delete_analysis_serialize( + def _get_analysis_bytes_serialize( self, analysis_id, + page, _request_auth, _content_type, _headers, @@ -910,6 +878,10 @@ def _delete_analysis_serialize( if analysis_id is not None: _path_params['analysis_id'] = analysis_id # process the query parameters + if page is not None: + + _query_params.append(('page', page)) + # process the header parameters # process the form parameters # process the body parameter @@ -931,8 +903,8 @@ def _delete_analysis_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v2/analyses/{analysis_id}', + method='GET', + resource_path='/v3/analyses/{analysis_id}/bytes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -949,9 +921,10 @@ def _delete_analysis_serialize( @validate_call - def get_analysis_basic_info( + def get_analysis_function_matches( self, - analysis_id: StrictInt, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -964,13 +937,15 @@ def get_analysis_basic_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseBasic: - """(Deprecated) Gets basic analysis information + ) -> GetMatchesOutputBody: + """Get function-matching results for an analysis - Returns basic analysis information for an analysis + Returns the matches blob when the matching workflow has completed. While the workflow is in progress this endpoint returns the current status with no matches; use /matches/status to poll progress. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int + :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. + :type match_id: str :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 @@ -992,10 +967,10 @@ def get_analysis_basic_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/basic is deprecated.", DeprecationWarning) - _param = self._get_analysis_basic_info_serialize( + _param = self._get_analysis_function_matches_serialize( analysis_id=analysis_id, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1003,8 +978,12 @@ def get_analysis_basic_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBasic", - '422': "BaseResponse", + '200': "GetMatchesOutputBody", + '400': "APIError", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1018,9 +997,10 @@ def get_analysis_basic_info( @validate_call - def get_analysis_basic_info_with_http_info( + def get_analysis_function_matches_with_http_info( self, - analysis_id: StrictInt, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1033,13 +1013,15 @@ def get_analysis_basic_info_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseBasic]: - """(Deprecated) Gets basic analysis information + ) -> ApiResponse[GetMatchesOutputBody]: + """Get function-matching results for an analysis - Returns basic analysis information for an analysis + Returns the matches blob when the matching workflow has completed. While the workflow is in progress this endpoint returns the current status with no matches; use /matches/status to poll progress. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int + :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. + :type match_id: str :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 @@ -1061,10 +1043,10 @@ def get_analysis_basic_info_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/basic is deprecated.", DeprecationWarning) - _param = self._get_analysis_basic_info_serialize( + _param = self._get_analysis_function_matches_serialize( analysis_id=analysis_id, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1072,8 +1054,12 @@ def get_analysis_basic_info_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBasic", - '422': "BaseResponse", + '200': "GetMatchesOutputBody", + '400': "APIError", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1087,9 +1073,10 @@ def get_analysis_basic_info_with_http_info( @validate_call - def get_analysis_basic_info_without_preload_content( + def get_analysis_function_matches_without_preload_content( self, - analysis_id: StrictInt, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1103,12 +1090,14 @@ def get_analysis_basic_info_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """(Deprecated) Gets basic analysis information + """Get function-matching results for an analysis - Returns basic analysis information for an analysis + Returns the matches blob when the matching workflow has completed. While the workflow is in progress this endpoint returns the current status with no matches; use /matches/status to poll progress. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int + :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. + :type match_id: str :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 @@ -1130,10 +1119,10 @@ def get_analysis_basic_info_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/basic is deprecated.", DeprecationWarning) - _param = self._get_analysis_basic_info_serialize( + _param = self._get_analysis_function_matches_serialize( analysis_id=analysis_id, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1141,8 +1130,12 @@ def get_analysis_basic_info_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBasic", - '422': "BaseResponse", + '200': "GetMatchesOutputBody", + '400': "APIError", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1151,9 +1144,10 @@ def get_analysis_basic_info_without_preload_content( return response_data.response - def _get_analysis_basic_info_serialize( + def _get_analysis_function_matches_serialize( self, analysis_id, + match_id, _request_auth, _content_type, _headers, @@ -1178,6 +1172,10 @@ def _get_analysis_basic_info_serialize( if analysis_id is not None: _path_params['analysis_id'] = analysis_id # process the query parameters + if match_id is not None: + + _query_params.append(('match_id', match_id)) + # process the header parameters # process the form parameters # process the body parameter @@ -1200,7 +1198,7 @@ def _get_analysis_basic_info_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/analyses/{analysis_id}/basic', + resource_path='/v3/analyses/{analysis_id}/functions/matches', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1217,9 +1215,10 @@ def _get_analysis_basic_info_serialize( @validate_call - def get_analysis_basic_info_0( + def get_analysis_function_matching_status( self, analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1232,13 +1231,15 @@ def get_analysis_basic_info_0( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AnalysisBasicInfoOutputBody: - """Get basic analysis information + ) -> GetMatchesStatusOutputBody: + """Get function-matching status for an analysis - Returns basic metadata for the given analysis including binary details, model, owner, and function count. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied + Returns the matching workflow's current status. Does not include the matches blob — use GET /matches for that. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request :param analysis_id: Analysis ID (required) :type analysis_id: int + :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. + :type match_id: str :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 @@ -1261,8 +1262,9 @@ def get_analysis_basic_info_0( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_basic_info_0_serialize( + _param = self._get_analysis_function_matching_status_serialize( analysis_id=analysis_id, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1270,7 +1272,8 @@ def get_analysis_basic_info_0( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisBasicInfoOutputBody", + '200': "GetMatchesStatusOutputBody", + '400': "APIError", '403': "APIError", '404': "APIError", '422': "APIError", @@ -1288,9 +1291,10 @@ def get_analysis_basic_info_0( @validate_call - def get_analysis_basic_info_0_with_http_info( + def get_analysis_function_matching_status_with_http_info( self, analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1303,13 +1307,15 @@ def get_analysis_basic_info_0_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AnalysisBasicInfoOutputBody]: - """Get basic analysis information + ) -> ApiResponse[GetMatchesStatusOutputBody]: + """Get function-matching status for an analysis - Returns basic metadata for the given analysis including binary details, model, owner, and function count. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied + Returns the matching workflow's current status. Does not include the matches blob — use GET /matches for that. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request :param analysis_id: Analysis ID (required) :type analysis_id: int + :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. + :type match_id: str :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 @@ -1332,8 +1338,9 @@ def get_analysis_basic_info_0_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_basic_info_0_serialize( + _param = self._get_analysis_function_matching_status_serialize( analysis_id=analysis_id, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1341,7 +1348,8 @@ def get_analysis_basic_info_0_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisBasicInfoOutputBody", + '200': "GetMatchesStatusOutputBody", + '400': "APIError", '403': "APIError", '404': "APIError", '422': "APIError", @@ -1359,9 +1367,10 @@ def get_analysis_basic_info_0_with_http_info( @validate_call - def get_analysis_basic_info_0_without_preload_content( + def get_analysis_function_matching_status_without_preload_content( self, analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1375,12 +1384,14 @@ def get_analysis_basic_info_0_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get basic analysis information + """Get function-matching status for an analysis - Returns basic metadata for the given analysis including binary details, model, owner, and function count. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied + Returns the matching workflow's current status. Does not include the matches blob — use GET /matches for that. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request :param analysis_id: Analysis ID (required) :type analysis_id: int + :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. + :type match_id: str :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 @@ -1403,8 +1414,9 @@ def get_analysis_basic_info_0_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_basic_info_0_serialize( + _param = self._get_analysis_function_matching_status_serialize( analysis_id=analysis_id, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1412,7 +1424,8 @@ def get_analysis_basic_info_0_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisBasicInfoOutputBody", + '200': "GetMatchesStatusOutputBody", + '400': "APIError", '403': "APIError", '404': "APIError", '422': "APIError", @@ -1425,9 +1438,10 @@ def get_analysis_basic_info_0_without_preload_content( return response_data.response - def _get_analysis_basic_info_0_serialize( + def _get_analysis_function_matching_status_serialize( self, analysis_id, + match_id, _request_auth, _content_type, _headers, @@ -1452,6 +1466,10 @@ def _get_analysis_basic_info_0_serialize( if analysis_id is not None: _path_params['analysis_id'] = analysis_id # process the query parameters + if match_id is not None: + + _query_params.append(('match_id', match_id)) + # process the header parameters # process the form parameters # process the body parameter @@ -1474,7 +1492,7 @@ def _get_analysis_basic_info_0_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v3/analyses/{analysis_id}/basic', + resource_path='/v3/analyses/{analysis_id}/functions/matches/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1491,10 +1509,9 @@ def _get_analysis_basic_info_0_serialize( @validate_call - def get_analysis_bytes( + def get_dynamic_execution_report( self, analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - page: Annotated[Optional[Annotated[int, Field(le=16777216, strict=True, ge=0)]], Field(description="64kb page of binary data")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1507,15 +1524,13 @@ def get_analysis_bytes( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Get the bytes of a binary + ) -> AnalysisReport: + """Get dynamic execution report - Returns a 64kb byte page from the binary. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request + Returns the dynamic execution report JSON for the analysis. Requires the task to be in COMPLETED status. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `409` [`DYNAMIC_EXECUTION_INCOMPLETE`](/errors/DYNAMIC_EXECUTION_INCOMPLETE) — Dynamic Execution Incomplete :param analysis_id: Analysis ID (required) :type analysis_id: int - :param page: 64kb page of binary data - :type page: int :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 @@ -1538,9 +1553,8 @@ def get_analysis_bytes( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_bytes_serialize( + _param = self._get_dynamic_execution_report_serialize( analysis_id=analysis_id, - page=page, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1548,10 +1562,9 @@ def get_analysis_bytes( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "APIError", + '200': "AnalysisReport", '403': "APIError", - '404': "APIError", + '409': "APIError", '422': "APIError", '500': "APIError", } @@ -1567,10 +1580,9 @@ def get_analysis_bytes( @validate_call - def get_analysis_bytes_with_http_info( + def get_dynamic_execution_report_with_http_info( self, analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - page: Annotated[Optional[Annotated[int, Field(le=16777216, strict=True, ge=0)]], Field(description="64kb page of binary data")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1583,15 +1595,13 @@ def get_analysis_bytes_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Get the bytes of a binary + ) -> ApiResponse[AnalysisReport]: + """Get dynamic execution report - Returns a 64kb byte page from the binary. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request + Returns the dynamic execution report JSON for the analysis. Requires the task to be in COMPLETED status. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `409` [`DYNAMIC_EXECUTION_INCOMPLETE`](/errors/DYNAMIC_EXECUTION_INCOMPLETE) — Dynamic Execution Incomplete :param analysis_id: Analysis ID (required) :type analysis_id: int - :param page: 64kb page of binary data - :type page: int :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 @@ -1614,9 +1624,8 @@ def get_analysis_bytes_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_bytes_serialize( + _param = self._get_dynamic_execution_report_serialize( analysis_id=analysis_id, - page=page, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1624,10 +1633,9 @@ def get_analysis_bytes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "APIError", + '200': "AnalysisReport", '403': "APIError", - '404': "APIError", + '409': "APIError", '422': "APIError", '500': "APIError", } @@ -1643,10 +1651,9 @@ def get_analysis_bytes_with_http_info( @validate_call - def get_analysis_bytes_without_preload_content( + def get_dynamic_execution_report_without_preload_content( self, analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - page: Annotated[Optional[Annotated[int, Field(le=16777216, strict=True, ge=0)]], Field(description="64kb page of binary data")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1660,14 +1667,12 @@ def get_analysis_bytes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get the bytes of a binary + """Get dynamic execution report - Returns a 64kb byte page from the binary. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request + Returns the dynamic execution report JSON for the analysis. Requires the task to be in COMPLETED status. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `409` [`DYNAMIC_EXECUTION_INCOMPLETE`](/errors/DYNAMIC_EXECUTION_INCOMPLETE) — Dynamic Execution Incomplete :param analysis_id: Analysis ID (required) :type analysis_id: int - :param page: 64kb page of binary data - :type page: int :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 @@ -1690,9 +1695,8 @@ def get_analysis_bytes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_bytes_serialize( + _param = self._get_dynamic_execution_report_serialize( analysis_id=analysis_id, - page=page, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1700,10 +1704,9 @@ def get_analysis_bytes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "APIError", + '200': "AnalysisReport", '403': "APIError", - '404': "APIError", + '409': "APIError", '422': "APIError", '500': "APIError", } @@ -1714,10 +1717,9 @@ def get_analysis_bytes_without_preload_content( return response_data.response - def _get_analysis_bytes_serialize( + def _get_dynamic_execution_report_serialize( self, analysis_id, - page, _request_auth, _content_type, _headers, @@ -1742,10 +1744,6 @@ def _get_analysis_bytes_serialize( if analysis_id is not None: _path_params['analysis_id'] = analysis_id # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - # process the header parameters # process the form parameters # process the body parameter @@ -1768,7 +1766,7 @@ def _get_analysis_bytes_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v3/analyses/{analysis_id}/bytes', + resource_path='/v2/analyses/{analysis_id}/dynamic-execution/report', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1785,9 +1783,9 @@ def _get_analysis_bytes_serialize( @validate_call - def get_analysis_function_map( + def get_dynamic_execution_status( self, - analysis_id: StrictInt, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1800,12 +1798,12 @@ def get_analysis_function_map( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisFunctionMapping: - """Get Analysis Function Map + ) -> DynamicExecutionStatusResponse: + """Get dynamic execution status - Returns three maps: a map of function ids to function addresses, it's inverse and a map of function addresses to function names. + Returns the status of the most recent dynamic execution task for the analysis. Returns UNINITIALISED if no task has been started. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1829,7 +1827,7 @@ def get_analysis_function_map( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_function_map_serialize( + _param = self._get_dynamic_execution_status_serialize( analysis_id=analysis_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1838,8 +1836,10 @@ def get_analysis_function_map( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisFunctionMapping", - '422': "BaseResponse", + '200': "DynamicExecutionStatusResponse", + '403': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1853,9 +1853,9 @@ def get_analysis_function_map( @validate_call - def get_analysis_function_map_with_http_info( + def get_dynamic_execution_status_with_http_info( self, - analysis_id: StrictInt, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1868,12 +1868,12 @@ def get_analysis_function_map_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisFunctionMapping]: - """Get Analysis Function Map + ) -> ApiResponse[DynamicExecutionStatusResponse]: + """Get dynamic execution status - Returns three maps: a map of function ids to function addresses, it's inverse and a map of function addresses to function names. + Returns the status of the most recent dynamic execution task for the analysis. Returns UNINITIALISED if no task has been started. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1897,7 +1897,7 @@ def get_analysis_function_map_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_function_map_serialize( + _param = self._get_dynamic_execution_status_serialize( analysis_id=analysis_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1906,8 +1906,10 @@ def get_analysis_function_map_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisFunctionMapping", - '422': "BaseResponse", + '200': "DynamicExecutionStatusResponse", + '403': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1921,9 +1923,9 @@ def get_analysis_function_map_with_http_info( @validate_call - def get_analysis_function_map_without_preload_content( + def get_dynamic_execution_status_without_preload_content( self, - analysis_id: StrictInt, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1937,11 +1939,11 @@ def get_analysis_function_map_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Analysis Function Map + """Get dynamic execution status - Returns three maps: a map of function ids to function addresses, it's inverse and a map of function addresses to function names. + Returns the status of the most recent dynamic execution task for the analysis. Returns UNINITIALISED if no task has been started. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1965,7 +1967,7 @@ def get_analysis_function_map_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_function_map_serialize( + _param = self._get_dynamic_execution_status_serialize( analysis_id=analysis_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1974,8 +1976,10 @@ def get_analysis_function_map_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisFunctionMapping", - '422': "BaseResponse", + '200': "DynamicExecutionStatusResponse", + '403': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1984,7 +1988,7 @@ def get_analysis_function_map_without_preload_content( return response_data.response - def _get_analysis_function_map_serialize( + def _get_dynamic_execution_status_serialize( self, analysis_id, _request_auth, @@ -2033,7 +2037,7 @@ def _get_analysis_function_map_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/analyses/{analysis_id}/func_maps', + resource_path='/v2/analyses/{analysis_id}/dynamic-execution/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2050,10 +2054,10 @@ def _get_analysis_function_map_serialize( @validate_call - def get_analysis_function_matches( + def start_analysis_function_matching( self, analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, + start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2066,15 +2070,15 @@ def get_analysis_function_matches( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetMatchesOutputBody: - """Get function-matching results for an analysis + ) -> StartMatchingOutputBody: + """Start function matching for an analysis - Returns the matches blob when the matching workflow has completed. While the workflow is in progress this endpoint returns the current status with no matches; use /matches/status to poll progress. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request + Dispatches the function-matching workflow against every function in the analysis. Returns immediately. Poll the status endpoint for progress; fetch results from the matches endpoint when status=COMPLETED. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request :param analysis_id: Analysis ID (required) :type analysis_id: int - :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. - :type match_id: str + :param start_matching_for_analysis_input_body: (required) + :type start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody :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 @@ -2097,9 +2101,9 @@ def get_analysis_function_matches( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_function_matches_serialize( + _param = self._start_analysis_function_matching_serialize( analysis_id=analysis_id, - match_id=match_id, + start_matching_for_analysis_input_body=start_matching_for_analysis_input_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2107,7 +2111,7 @@ def get_analysis_function_matches( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetMatchesOutputBody", + '202': "StartMatchingOutputBody", '400': "APIError", '403': "APIError", '404': "APIError", @@ -2126,10 +2130,10 @@ def get_analysis_function_matches( @validate_call - def get_analysis_function_matches_with_http_info( + def start_analysis_function_matching_with_http_info( self, analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, + start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2142,15 +2146,15 @@ def get_analysis_function_matches_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetMatchesOutputBody]: - """Get function-matching results for an analysis + ) -> ApiResponse[StartMatchingOutputBody]: + """Start function matching for an analysis - Returns the matches blob when the matching workflow has completed. While the workflow is in progress this endpoint returns the current status with no matches; use /matches/status to poll progress. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request + Dispatches the function-matching workflow against every function in the analysis. Returns immediately. Poll the status endpoint for progress; fetch results from the matches endpoint when status=COMPLETED. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request :param analysis_id: Analysis ID (required) :type analysis_id: int - :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. - :type match_id: str + :param start_matching_for_analysis_input_body: (required) + :type start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody :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 @@ -2173,9 +2177,9 @@ def get_analysis_function_matches_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_function_matches_serialize( + _param = self._start_analysis_function_matching_serialize( analysis_id=analysis_id, - match_id=match_id, + start_matching_for_analysis_input_body=start_matching_for_analysis_input_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2183,7 +2187,7 @@ def get_analysis_function_matches_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetMatchesOutputBody", + '202': "StartMatchingOutputBody", '400': "APIError", '403': "APIError", '404': "APIError", @@ -2202,10 +2206,10 @@ def get_analysis_function_matches_with_http_info( @validate_call - def get_analysis_function_matches_without_preload_content( + def start_analysis_function_matching_without_preload_content( self, analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, + start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2219,14 +2223,14 @@ def get_analysis_function_matches_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get function-matching results for an analysis + """Start function matching for an analysis - Returns the matches blob when the matching workflow has completed. While the workflow is in progress this endpoint returns the current status with no matches; use /matches/status to poll progress. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request + Dispatches the function-matching workflow against every function in the analysis. Returns immediately. Poll the status endpoint for progress; fetch results from the matches endpoint when status=COMPLETED. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request :param analysis_id: Analysis ID (required) :type analysis_id: int - :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. - :type match_id: str + :param start_matching_for_analysis_input_body: (required) + :type start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody :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 @@ -2249,9 +2253,9 @@ def get_analysis_function_matches_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_function_matches_serialize( + _param = self._start_analysis_function_matching_serialize( analysis_id=analysis_id, - match_id=match_id, + start_matching_for_analysis_input_body=start_matching_for_analysis_input_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2259,7 +2263,7 @@ def get_analysis_function_matches_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetMatchesOutputBody", + '202': "StartMatchingOutputBody", '400': "APIError", '403': "APIError", '404': "APIError", @@ -2273,10 +2277,10 @@ def get_analysis_function_matches_without_preload_content( return response_data.response - def _get_analysis_function_matches_serialize( + def _start_analysis_function_matching_serialize( self, analysis_id, - match_id, + start_matching_for_analysis_input_body, _request_auth, _content_type, _headers, @@ -2301,13 +2305,11 @@ def _get_analysis_function_matches_serialize( if analysis_id is not None: _path_params['analysis_id'] = analysis_id # process the query parameters - if match_id is not None: - - _query_params.append(('match_id', match_id)) - # process the header parameters # process the form parameters # process the body parameter + if start_matching_for_analysis_input_body is not None: + _body_params = start_matching_for_analysis_input_body # set the HTTP header `Accept` @@ -2318,6 +2320,19 @@ def _get_analysis_function_matches_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2326,7 +2341,7 @@ def _get_analysis_function_matches_serialize( ] return self.api_client.param_serialize( - method='GET', + method='POST', resource_path='/v3/analyses/{analysis_id}/functions/matches', path_params=_path_params, query_params=_query_params, @@ -2343,4459 +2358,6 @@ def _get_analysis_function_matches_serialize( - @validate_call - def get_analysis_function_matching_status( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetMatchesStatusOutputBody: - """Get function-matching status for an analysis - - Returns the matching workflow's current status. Does not include the matches blob — use GET /matches for that. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. - :type match_id: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_function_matching_status_serialize( - analysis_id=analysis_id, - match_id=match_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetMatchesStatusOutputBody", - '400': "APIError", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_function_matching_status_with_http_info( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetMatchesStatusOutputBody]: - """Get function-matching status for an analysis - - Returns the matching workflow's current status. Does not include the matches blob — use GET /matches for that. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. - :type match_id: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_function_matching_status_serialize( - analysis_id=analysis_id, - match_id=match_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetMatchesStatusOutputBody", - '400': "APIError", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_function_matching_status_without_preload_content( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - match_id: Annotated[Optional[StrictStr], Field(description="Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get function-matching status for an analysis - - Returns the matching workflow's current status. Does not include the matches blob — use GET /matches for that. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param match_id: Opaque token from a start-matching response. When supplied, returns that specific run instead of the latest. - :type match_id: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_function_matching_status_serialize( - analysis_id=analysis_id, - match_id=match_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetMatchesStatusOutputBody", - '400': "APIError", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_function_matching_status_serialize( - self, - analysis_id, - match_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - if match_id is not None: - - _query_params.append(('match_id', match_id)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v3/analyses/{analysis_id}/functions/matches/status', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_analysis_logs( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseLogs: - """Gets the logs of an analysis - - Given an analysis ID gets the current logs of an analysis - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_logs_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseLogs", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_logs_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseLogs]: - """Gets the logs of an analysis - - Given an analysis ID gets the current logs of an analysis - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_logs_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseLogs", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_logs_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets the logs of an analysis - - Given an analysis ID gets the current logs of an analysis - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_logs_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseLogs", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_logs_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/logs', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_analysis_params( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseParams: - """Gets analysis param information - - Gets the params that the analysis was run with - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_params_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseParams", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_params_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseParams]: - """Gets analysis param information - - Gets the params that the analysis was run with - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_params_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseParams", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_params_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets analysis param information - - Gets the params that the analysis was run with - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_params_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseParams", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_params_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/params', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_analysis_status( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseStatus: - """Gets the status of an analysis - - Given an analysis ID gets the current status of the analysis - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseStatus", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_status_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseStatus]: - """Gets the status of an analysis - - Given an analysis ID gets the current status of the analysis - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseStatus", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_status_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets the status of an analysis - - Given an analysis ID gets the current status of the analysis - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseStatus", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_status_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/status', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_dynamic_execution_report( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AnalysisReport: - """Get dynamic execution report - - Returns the dynamic execution report JSON for the analysis. Requires the task to be in COMPLETED status. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `409` [`DYNAMIC_EXECUTION_INCOMPLETE`](/errors/DYNAMIC_EXECUTION_INCOMPLETE) — Dynamic Execution Incomplete - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_dynamic_execution_report_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisReport", - '403': "APIError", - '409': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_dynamic_execution_report_with_http_info( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AnalysisReport]: - """Get dynamic execution report - - Returns the dynamic execution report JSON for the analysis. Requires the task to be in COMPLETED status. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `409` [`DYNAMIC_EXECUTION_INCOMPLETE`](/errors/DYNAMIC_EXECUTION_INCOMPLETE) — Dynamic Execution Incomplete - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_dynamic_execution_report_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisReport", - '403': "APIError", - '409': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_dynamic_execution_report_without_preload_content( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get dynamic execution report - - Returns the dynamic execution report JSON for the analysis. Requires the task to be in COMPLETED status. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `409` [`DYNAMIC_EXECUTION_INCOMPLETE`](/errors/DYNAMIC_EXECUTION_INCOMPLETE) — Dynamic Execution Incomplete - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_dynamic_execution_report_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisReport", - '403': "APIError", - '409': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_dynamic_execution_report_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/dynamic-execution/report', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_dynamic_execution_status( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DynamicExecutionStatusResponse: - """Get dynamic execution status - - Returns the status of the most recent dynamic execution task for the analysis. Returns UNINITIALISED if no task has been started. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_dynamic_execution_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DynamicExecutionStatusResponse", - '403': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_dynamic_execution_status_with_http_info( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DynamicExecutionStatusResponse]: - """Get dynamic execution status - - Returns the status of the most recent dynamic execution task for the analysis. Returns UNINITIALISED if no task has been started. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_dynamic_execution_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DynamicExecutionStatusResponse", - '403': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_dynamic_execution_status_without_preload_content( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get dynamic execution status - - Returns the status of the most recent dynamic execution task for the analysis. Returns UNINITIALISED if no task has been started. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_dynamic_execution_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DynamicExecutionStatusResponse", - '403': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_dynamic_execution_status_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/dynamic-execution/status', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def insert_analysis_log( - self, - analysis_id: StrictInt, - insert_analysis_log_request: InsertAnalysisLogRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Insert a log entry for an analysis - - Inserts a log record for an analysis. Only the analysis owner can insert logs. - - :param analysis_id: (required) - :type analysis_id: int - :param insert_analysis_log_request: (required) - :type insert_analysis_log_request: InsertAnalysisLogRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._insert_analysis_log_serialize( - analysis_id=analysis_id, - insert_analysis_log_request=insert_analysis_log_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def insert_analysis_log_with_http_info( - self, - analysis_id: StrictInt, - insert_analysis_log_request: InsertAnalysisLogRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Insert a log entry for an analysis - - Inserts a log record for an analysis. Only the analysis owner can insert logs. - - :param analysis_id: (required) - :type analysis_id: int - :param insert_analysis_log_request: (required) - :type insert_analysis_log_request: InsertAnalysisLogRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._insert_analysis_log_serialize( - analysis_id=analysis_id, - insert_analysis_log_request=insert_analysis_log_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def insert_analysis_log_without_preload_content( - self, - analysis_id: StrictInt, - insert_analysis_log_request: InsertAnalysisLogRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Insert a log entry for an analysis - - Inserts a log record for an analysis. Only the analysis owner can insert logs. - - :param analysis_id: (required) - :type analysis_id: int - :param insert_analysis_log_request: (required) - :type insert_analysis_log_request: InsertAnalysisLogRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._insert_analysis_log_serialize( - analysis_id=analysis_id, - insert_analysis_log_request=insert_analysis_log_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _insert_analysis_log_serialize( - self, - analysis_id, - insert_analysis_log_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if insert_analysis_log_request is not None: - _body_params = insert_analysis_log_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/analyses/{analysis_id}/logs', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_analyses( - self, - search_term: Optional[StrictStr] = None, - workspace: Annotated[Optional[List[Workspace]], Field(description="The workspace to be viewed")] = None, - status: Annotated[Optional[List[StatusInput]], Field(description="The status of the analysis")] = None, - model_name: Annotated[Optional[List[ModelName]], Field(description="Show analysis belonging to the model")] = None, - dynamic_execution_status: Annotated[Optional[DynamicExecutionStatus], Field(description="Show analysis that have a dynamic execution with the given status")] = None, - usernames: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Show analysis belonging to the user")] = None, - sha256_hash: Optional[StrictStr] = None, - limit: Optional[Annotated[int, Field(le=50, strict=True, ge=5)]] = None, - offset: Optional[StrictInt] = None, - order_by: Optional[AppApiRestV2AnalysesEnumsOrderBy] = None, - order: Optional[Order] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseRecent: - """Gets the most recent analyses - - Gets the most recent analyses provided a scope, this is then paginated, if pages and limit doesnt fit, it increases the limit - - :param search_term: - :type search_term: str - :param workspace: The workspace to be viewed - :type workspace: List[Workspace] - :param status: The status of the analysis - :type status: List[StatusInput] - :param model_name: Show analysis belonging to the model - :type model_name: List[ModelName] - :param dynamic_execution_status: Show analysis that have a dynamic execution with the given status - :type dynamic_execution_status: DynamicExecutionStatus - :param usernames: Show analysis belonging to the user - :type usernames: List[Optional[str]] - :param sha256_hash: - :type sha256_hash: str - :param limit: - :type limit: int - :param offset: - :type offset: int - :param order_by: - :type order_by: AppApiRestV2AnalysesEnumsOrderBy - :param order: - :type order: Order - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_analyses_serialize( - search_term=search_term, - workspace=workspace, - status=status, - model_name=model_name, - dynamic_execution_status=dynamic_execution_status, - usernames=usernames, - sha256_hash=sha256_hash, - limit=limit, - offset=offset, - order_by=order_by, - order=order, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseRecent", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_analyses_with_http_info( - self, - search_term: Optional[StrictStr] = None, - workspace: Annotated[Optional[List[Workspace]], Field(description="The workspace to be viewed")] = None, - status: Annotated[Optional[List[StatusInput]], Field(description="The status of the analysis")] = None, - model_name: Annotated[Optional[List[ModelName]], Field(description="Show analysis belonging to the model")] = None, - dynamic_execution_status: Annotated[Optional[DynamicExecutionStatus], Field(description="Show analysis that have a dynamic execution with the given status")] = None, - usernames: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Show analysis belonging to the user")] = None, - sha256_hash: Optional[StrictStr] = None, - limit: Optional[Annotated[int, Field(le=50, strict=True, ge=5)]] = None, - offset: Optional[StrictInt] = None, - order_by: Optional[AppApiRestV2AnalysesEnumsOrderBy] = None, - order: Optional[Order] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseRecent]: - """Gets the most recent analyses - - Gets the most recent analyses provided a scope, this is then paginated, if pages and limit doesnt fit, it increases the limit - - :param search_term: - :type search_term: str - :param workspace: The workspace to be viewed - :type workspace: List[Workspace] - :param status: The status of the analysis - :type status: List[StatusInput] - :param model_name: Show analysis belonging to the model - :type model_name: List[ModelName] - :param dynamic_execution_status: Show analysis that have a dynamic execution with the given status - :type dynamic_execution_status: DynamicExecutionStatus - :param usernames: Show analysis belonging to the user - :type usernames: List[Optional[str]] - :param sha256_hash: - :type sha256_hash: str - :param limit: - :type limit: int - :param offset: - :type offset: int - :param order_by: - :type order_by: AppApiRestV2AnalysesEnumsOrderBy - :param order: - :type order: Order - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_analyses_serialize( - search_term=search_term, - workspace=workspace, - status=status, - model_name=model_name, - dynamic_execution_status=dynamic_execution_status, - usernames=usernames, - sha256_hash=sha256_hash, - limit=limit, - offset=offset, - order_by=order_by, - order=order, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseRecent", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_analyses_without_preload_content( - self, - search_term: Optional[StrictStr] = None, - workspace: Annotated[Optional[List[Workspace]], Field(description="The workspace to be viewed")] = None, - status: Annotated[Optional[List[StatusInput]], Field(description="The status of the analysis")] = None, - model_name: Annotated[Optional[List[ModelName]], Field(description="Show analysis belonging to the model")] = None, - dynamic_execution_status: Annotated[Optional[DynamicExecutionStatus], Field(description="Show analysis that have a dynamic execution with the given status")] = None, - usernames: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Show analysis belonging to the user")] = None, - sha256_hash: Optional[StrictStr] = None, - limit: Optional[Annotated[int, Field(le=50, strict=True, ge=5)]] = None, - offset: Optional[StrictInt] = None, - order_by: Optional[AppApiRestV2AnalysesEnumsOrderBy] = None, - order: Optional[Order] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets the most recent analyses - - Gets the most recent analyses provided a scope, this is then paginated, if pages and limit doesnt fit, it increases the limit - - :param search_term: - :type search_term: str - :param workspace: The workspace to be viewed - :type workspace: List[Workspace] - :param status: The status of the analysis - :type status: List[StatusInput] - :param model_name: Show analysis belonging to the model - :type model_name: List[ModelName] - :param dynamic_execution_status: Show analysis that have a dynamic execution with the given status - :type dynamic_execution_status: DynamicExecutionStatus - :param usernames: Show analysis belonging to the user - :type usernames: List[Optional[str]] - :param sha256_hash: - :type sha256_hash: str - :param limit: - :type limit: int - :param offset: - :type offset: int - :param order_by: - :type order_by: AppApiRestV2AnalysesEnumsOrderBy - :param order: - :type order: Order - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_analyses_serialize( - search_term=search_term, - workspace=workspace, - status=status, - model_name=model_name, - dynamic_execution_status=dynamic_execution_status, - usernames=usernames, - sha256_hash=sha256_hash, - limit=limit, - offset=offset, - order_by=order_by, - order=order, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseRecent", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_analyses_serialize( - self, - search_term, - workspace, - status, - model_name, - dynamic_execution_status, - usernames, - sha256_hash, - limit, - offset, - order_by, - order, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'workspace': 'multi', - 'status': 'multi', - 'model_name': 'multi', - 'usernames': 'multi', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if search_term is not None: - - _query_params.append(('search_term', search_term)) - - if workspace is not None: - - _query_params.append(('workspace', workspace)) - - if status is not None: - - _query_params.append(('status', status)) - - if model_name is not None: - - _query_params.append(('model_name', model_name)) - - if dynamic_execution_status is not None: - - _query_params.append(('dynamic_execution_status', dynamic_execution_status.value)) - - if usernames is not None: - - _query_params.append(('usernames', usernames)) - - if sha256_hash is not None: - - _query_params.append(('sha256_hash', sha256_hash)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - if order_by is not None: - - _query_params.append(('order_by', order_by.value)) - - if order is not None: - - _query_params.append(('order', order.value)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/list', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def lookup_binary_id( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Gets the analysis ID from binary ID - - Given an binary ID gets the ID of an analysis - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._lookup_binary_id_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def lookup_binary_id_with_http_info( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """Gets the analysis ID from binary ID - - Given an binary ID gets the ID of an analysis - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._lookup_binary_id_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def lookup_binary_id_without_preload_content( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets the analysis ID from binary ID - - Given an binary ID gets the ID of an analysis - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._lookup_binary_id_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _lookup_binary_id_serialize( - self, - binary_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/lookup/{binary_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def put_analysis_strings( - self, - analysis_id: StrictInt, - put_analysis_strings_request: PutAnalysisStringsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Add strings to the analysis - - Add strings to the analysis. Rejects if any string already exists at the given vaddr. - - :param analysis_id: (required) - :type analysis_id: int - :param put_analysis_strings_request: (required) - :type put_analysis_strings_request: PutAnalysisStringsRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._put_analysis_strings_serialize( - analysis_id=analysis_id, - put_analysis_strings_request=put_analysis_strings_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def put_analysis_strings_with_http_info( - self, - analysis_id: StrictInt, - put_analysis_strings_request: PutAnalysisStringsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Add strings to the analysis - - Add strings to the analysis. Rejects if any string already exists at the given vaddr. - - :param analysis_id: (required) - :type analysis_id: int - :param put_analysis_strings_request: (required) - :type put_analysis_strings_request: PutAnalysisStringsRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._put_analysis_strings_serialize( - analysis_id=analysis_id, - put_analysis_strings_request=put_analysis_strings_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def put_analysis_strings_without_preload_content( - self, - analysis_id: StrictInt, - put_analysis_strings_request: PutAnalysisStringsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Add strings to the analysis - - Add strings to the analysis. Rejects if any string already exists at the given vaddr. - - :param analysis_id: (required) - :type analysis_id: int - :param put_analysis_strings_request: (required) - :type put_analysis_strings_request: PutAnalysisStringsRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._put_analysis_strings_serialize( - analysis_id=analysis_id, - put_analysis_strings_request=put_analysis_strings_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _put_analysis_strings_serialize( - self, - analysis_id, - put_analysis_strings_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if put_analysis_strings_request is not None: - _body_params = put_analysis_strings_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='PUT', - resource_path='/v2/analyses/{analysis_id}/strings', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def requeue_analysis( - self, - analysis_id: StrictInt, - re_analysis_form: ReAnalysisForm, - x_rev_eng_application: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCreated: - """Requeue Analysis - - Re-queues an already uploaded analysis - - :param analysis_id: (required) - :type analysis_id: int - :param re_analysis_form: (required) - :type re_analysis_form: ReAnalysisForm - :param x_rev_eng_application: - :type x_rev_eng_application: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._requeue_analysis_serialize( - analysis_id=analysis_id, - re_analysis_form=re_analysis_form, - x_rev_eng_application=x_rev_eng_application, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseCreated", - '422': "BaseResponse", - '404': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def requeue_analysis_with_http_info( - self, - analysis_id: StrictInt, - re_analysis_form: ReAnalysisForm, - x_rev_eng_application: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCreated]: - """Requeue Analysis - - Re-queues an already uploaded analysis - - :param analysis_id: (required) - :type analysis_id: int - :param re_analysis_form: (required) - :type re_analysis_form: ReAnalysisForm - :param x_rev_eng_application: - :type x_rev_eng_application: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._requeue_analysis_serialize( - analysis_id=analysis_id, - re_analysis_form=re_analysis_form, - x_rev_eng_application=x_rev_eng_application, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseCreated", - '422': "BaseResponse", - '404': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def requeue_analysis_without_preload_content( - self, - analysis_id: StrictInt, - re_analysis_form: ReAnalysisForm, - x_rev_eng_application: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Requeue Analysis - - Re-queues an already uploaded analysis - - :param analysis_id: (required) - :type analysis_id: int - :param re_analysis_form: (required) - :type re_analysis_form: ReAnalysisForm - :param x_rev_eng_application: - :type x_rev_eng_application: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._requeue_analysis_serialize( - analysis_id=analysis_id, - re_analysis_form=re_analysis_form, - x_rev_eng_application=x_rev_eng_application, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseCreated", - '422': "BaseResponse", - '404': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _requeue_analysis_serialize( - self, - analysis_id, - re_analysis_form, - x_rev_eng_application, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - if x_rev_eng_application is not None: - _header_params['X-RevEng-Application'] = x_rev_eng_application - # process the form parameters - # process the body parameter - if re_analysis_form is not None: - _body_params = re_analysis_form - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/analyses/{analysis_id}/requeue', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_analysis_function_matching( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> StartMatchingOutputBody: - """Start function matching for an analysis - - Dispatches the function-matching workflow against every function in the analysis. Returns immediately. Poll the status endpoint for progress; fetch results from the matches endpoint when status=COMPLETED. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param start_matching_for_analysis_input_body: (required) - :type start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_analysis_function_matching_serialize( - analysis_id=analysis_id, - start_matching_for_analysis_input_body=start_matching_for_analysis_input_body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "StartMatchingOutputBody", - '400': "APIError", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def start_analysis_function_matching_with_http_info( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[StartMatchingOutputBody]: - """Start function matching for an analysis - - Dispatches the function-matching workflow against every function in the analysis. Returns immediately. Poll the status endpoint for progress; fetch results from the matches endpoint when status=COMPLETED. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param start_matching_for_analysis_input_body: (required) - :type start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_analysis_function_matching_serialize( - analysis_id=analysis_id, - start_matching_for_analysis_input_body=start_matching_for_analysis_input_body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "StartMatchingOutputBody", - '400': "APIError", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def start_analysis_function_matching_without_preload_content( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Start function matching for an analysis - - Dispatches the function-matching workflow against every function in the analysis. Returns immediately. Poll the status endpoint for progress; fetch results from the matches endpoint when status=COMPLETED. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param start_matching_for_analysis_input_body: (required) - :type start_matching_for_analysis_input_body: StartMatchingForAnalysisInputBody - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_analysis_function_matching_serialize( - analysis_id=analysis_id, - start_matching_for_analysis_input_body=start_matching_for_analysis_input_body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "StartMatchingOutputBody", - '400': "APIError", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _start_analysis_function_matching_serialize( - self, - analysis_id, - start_matching_for_analysis_input_body, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if start_matching_for_analysis_input_body is not None: - _body_params = start_matching_for_analysis_input_body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v3/analyses/{analysis_id}/functions/matches', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_analysis( - self, - analysis_id: StrictInt, - analysis_update_request: AnalysisUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisDetailResponse: - """Update Analysis - - Updates analysis attributes (binary_name, analysis_scope). User must be the owner. - - :param analysis_id: (required) - :type analysis_id: int - :param analysis_update_request: (required) - :type analysis_update_request: AnalysisUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_analysis_serialize( - analysis_id=analysis_id, - analysis_update_request=analysis_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisDetailResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_analysis_with_http_info( - self, - analysis_id: StrictInt, - analysis_update_request: AnalysisUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisDetailResponse]: - """Update Analysis - - Updates analysis attributes (binary_name, analysis_scope). User must be the owner. - - :param analysis_id: (required) - :type analysis_id: int - :param analysis_update_request: (required) - :type analysis_update_request: AnalysisUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_analysis_serialize( - analysis_id=analysis_id, - analysis_update_request=analysis_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisDetailResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_analysis_without_preload_content( - self, - analysis_id: StrictInt, - analysis_update_request: AnalysisUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update Analysis - - Updates analysis attributes (binary_name, analysis_scope). User must be the owner. - - :param analysis_id: (required) - :type analysis_id: int - :param analysis_update_request: (required) - :type analysis_update_request: AnalysisUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_analysis_serialize( - analysis_id=analysis_id, - analysis_update_request=analysis_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisDetailResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_analysis_serialize( - self, - analysis_id, - analysis_update_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if analysis_update_request is not None: - _body_params = analysis_update_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/v2/analyses/{analysis_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_analysis_tags( - self, - analysis_id: StrictInt, - analysis_update_tags_request: AnalysisUpdateTagsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisUpdateTagsResponse: - """Update Analysis Tags - - Updates analysis tags. User must be the owner. - - :param analysis_id: (required) - :type analysis_id: int - :param analysis_update_tags_request: (required) - :type analysis_update_tags_request: AnalysisUpdateTagsRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_analysis_tags_serialize( - analysis_id=analysis_id, - analysis_update_tags_request=analysis_update_tags_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisUpdateTagsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_analysis_tags_with_http_info( - self, - analysis_id: StrictInt, - analysis_update_tags_request: AnalysisUpdateTagsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisUpdateTagsResponse]: - """Update Analysis Tags - - Updates analysis tags. User must be the owner. - - :param analysis_id: (required) - :type analysis_id: int - :param analysis_update_tags_request: (required) - :type analysis_update_tags_request: AnalysisUpdateTagsRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_analysis_tags_serialize( - analysis_id=analysis_id, - analysis_update_tags_request=analysis_update_tags_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisUpdateTagsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_analysis_tags_without_preload_content( - self, - analysis_id: StrictInt, - analysis_update_tags_request: AnalysisUpdateTagsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update Analysis Tags - - Updates analysis tags. User must be the owner. - - :param analysis_id: (required) - :type analysis_id: int - :param analysis_update_tags_request: (required) - :type analysis_update_tags_request: AnalysisUpdateTagsRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_analysis_tags_serialize( - analysis_id=analysis_id, - analysis_update_tags_request=analysis_update_tags_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisUpdateTagsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_analysis_tags_serialize( - self, - analysis_id, - analysis_update_tags_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if analysis_update_tags_request is not None: - _body_params = analysis_update_tags_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/v2/analyses/{analysis_id}/tags', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def upload_file( - self, - upload_file_type: UploadFileType, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - packed_password: Optional[StrictStr] = None, - force_overwrite: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseUploadResponse: - """Upload File - - - :param upload_file_type: (required) - :type upload_file_type: UploadFileType - :param file: (required) - :type file: bytearray - :param packed_password: - :type packed_password: str - :param force_overwrite: - :type force_overwrite: bool - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_file_serialize( - upload_file_type=upload_file_type, - file=file, - packed_password=packed_password, - force_overwrite=force_overwrite, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseUploadResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def upload_file_with_http_info( - self, - upload_file_type: UploadFileType, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - packed_password: Optional[StrictStr] = None, - force_overwrite: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseUploadResponse]: - """Upload File - - - :param upload_file_type: (required) - :type upload_file_type: UploadFileType - :param file: (required) - :type file: bytearray - :param packed_password: - :type packed_password: str - :param force_overwrite: - :type force_overwrite: bool - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_file_serialize( - upload_file_type=upload_file_type, - file=file, - packed_password=packed_password, - force_overwrite=force_overwrite, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseUploadResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def upload_file_without_preload_content( - self, - upload_file_type: UploadFileType, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - packed_password: Optional[StrictStr] = None, - force_overwrite: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Upload File - - - :param upload_file_type: (required) - :type upload_file_type: UploadFileType - :param file: (required) - :type file: bytearray - :param packed_password: - :type packed_password: str - :param force_overwrite: - :type force_overwrite: bool - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_file_serialize( - upload_file_type=upload_file_type, - file=file, - packed_password=packed_password, - force_overwrite=force_overwrite, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseUploadResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _upload_file_serialize( - self, - upload_file_type, - file, - packed_password, - force_overwrite, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if packed_password is not None: - - _query_params.append(('packed_password', packed_password)) - - # process the header parameters - # process the form parameters - if upload_file_type is not None: - _form_params.append(('upload_file_type', upload_file_type)) - if file is not None: - _files['file'] = file - if force_overwrite is not None: - _form_params.append(('force_overwrite', force_overwrite)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/upload', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def v3_get_analysis_auto_unstrip_status( self, @@ -7743,8 +3305,8 @@ def v3_list_analyses( search_term: Optional[StrictStr] = None, analysis_scope: Annotated[Optional[List[StrictStr]], Field(description="Leave empty for no filter")] = None, status: Optional[List[StrictStr]] = None, - model_name: Optional[List[Optional[StrictStr]]] = None, - usernames: Optional[List[Optional[StrictStr]]] = None, + model_name: Optional[List[StrictStr]] = None, + usernames: Optional[List[StrictStr]] = None, sha256_hash: Optional[StrictStr] = None, page_size: Optional[Annotated[int, Field(le=50, strict=True, ge=1)]] = None, next_page_token: Annotated[Optional[StrictStr], Field(description="Forward-pagination cursor from a prior response. When set, order_by/order are taken from the token (the sort cannot change mid-pagination).")] = None, @@ -7774,9 +3336,9 @@ def v3_list_analyses( :param status: :type status: List[str] :param model_name: - :type model_name: List[Optional[str]] + :type model_name: List[str] :param usernames: - :type usernames: List[Optional[str]] + :type usernames: List[str] :param sha256_hash: :type sha256_hash: str :param page_size: @@ -7849,8 +3411,8 @@ def v3_list_analyses_with_http_info( search_term: Optional[StrictStr] = None, analysis_scope: Annotated[Optional[List[StrictStr]], Field(description="Leave empty for no filter")] = None, status: Optional[List[StrictStr]] = None, - model_name: Optional[List[Optional[StrictStr]]] = None, - usernames: Optional[List[Optional[StrictStr]]] = None, + model_name: Optional[List[StrictStr]] = None, + usernames: Optional[List[StrictStr]] = None, sha256_hash: Optional[StrictStr] = None, page_size: Optional[Annotated[int, Field(le=50, strict=True, ge=1)]] = None, next_page_token: Annotated[Optional[StrictStr], Field(description="Forward-pagination cursor from a prior response. When set, order_by/order are taken from the token (the sort cannot change mid-pagination).")] = None, @@ -7880,9 +3442,9 @@ def v3_list_analyses_with_http_info( :param status: :type status: List[str] :param model_name: - :type model_name: List[Optional[str]] + :type model_name: List[str] :param usernames: - :type usernames: List[Optional[str]] + :type usernames: List[str] :param sha256_hash: :type sha256_hash: str :param page_size: @@ -7955,8 +3517,8 @@ def v3_list_analyses_without_preload_content( search_term: Optional[StrictStr] = None, analysis_scope: Annotated[Optional[List[StrictStr]], Field(description="Leave empty for no filter")] = None, status: Optional[List[StrictStr]] = None, - model_name: Optional[List[Optional[StrictStr]]] = None, - usernames: Optional[List[Optional[StrictStr]]] = None, + model_name: Optional[List[StrictStr]] = None, + usernames: Optional[List[StrictStr]] = None, sha256_hash: Optional[StrictStr] = None, page_size: Optional[Annotated[int, Field(le=50, strict=True, ge=1)]] = None, next_page_token: Annotated[Optional[StrictStr], Field(description="Forward-pagination cursor from a prior response. When set, order_by/order are taken from the token (the sort cannot change mid-pagination).")] = None, @@ -7986,9 +3548,9 @@ def v3_list_analyses_without_preload_content( :param status: :type status: List[str] :param model_name: - :type model_name: List[Optional[str]] + :type model_name: List[str] :param usernames: - :type usernames: List[Optional[str]] + :type usernames: List[str] :param sha256_hash: :type sha256_hash: str :param page_size: diff --git a/revengai/api/analyses_results_metadata_api.py b/revengai/api/analyses_results_metadata_api.py deleted file mode 100644 index 4f2098bd..00000000 --- a/revengai/api/analyses_results_metadata_api.py +++ /dev/null @@ -1,1763 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictBool, StrictInt, StrictStr -from typing import Optional -from typing_extensions import Annotated -from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions -from revengai.models.base_response_analysis_functions_list import BaseResponseAnalysisFunctionsList -from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags -from revengai.models.base_response_capabilities import BaseResponseCapabilities -from revengai.models.base_response_list_sbom import BaseResponseListSBOM -from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class AnalysesResultsMetadataApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_analysis_functions_paginated( - self, - analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisFunctionsList: - """(Deprecated) Get functions from analysis - - Returns a paginated list of functions identified during analysis - - :param analysis_id: (required) - :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions is deprecated.", DeprecationWarning) - - _param = self._get_analysis_functions_paginated_serialize( - analysis_id=analysis_id, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisFunctionsList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_functions_paginated_with_http_info( - self, - analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisFunctionsList]: - """(Deprecated) Get functions from analysis - - Returns a paginated list of functions identified during analysis - - :param analysis_id: (required) - :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions is deprecated.", DeprecationWarning) - - _param = self._get_analysis_functions_paginated_serialize( - analysis_id=analysis_id, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisFunctionsList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_functions_paginated_without_preload_content( - self, - analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get functions from analysis - - Returns a paginated list of functions identified during analysis - - :param analysis_id: (required) - :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions is deprecated.", DeprecationWarning) - - _param = self._get_analysis_functions_paginated_serialize( - analysis_id=analysis_id, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisFunctionsList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_functions_paginated_serialize( - self, - analysis_id, - page, - page_size, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/functions', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_capabilities( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCapabilities: - """Gets the capabilities from the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_capabilities_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCapabilities", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_capabilities_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCapabilities]: - """Gets the capabilities from the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_capabilities_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCapabilities", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_capabilities_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets the capabilities from the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_capabilities_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCapabilities", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_capabilities_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/capabilities', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_functions_list( - self, - analysis_id: StrictInt, - search_term: Optional[StrictStr] = None, - min_v_addr: Optional[StrictInt] = None, - max_v_addr: Optional[StrictInt] = None, - include_embeddings: Optional[StrictBool] = None, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisFunctions: - """(Deprecated) Gets functions from analysis - - Gets the functions identified during analysis - - :param analysis_id: (required) - :type analysis_id: int - :param search_term: - :type search_term: str - :param min_v_addr: - :type min_v_addr: int - :param max_v_addr: - :type max_v_addr: int - :param include_embeddings: - :type include_embeddings: bool - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/list is deprecated.", DeprecationWarning) - - _param = self._get_functions_list_serialize( - analysis_id=analysis_id, - search_term=search_term, - min_v_addr=min_v_addr, - max_v_addr=max_v_addr, - include_embeddings=include_embeddings, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisFunctions", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_functions_list_with_http_info( - self, - analysis_id: StrictInt, - search_term: Optional[StrictStr] = None, - min_v_addr: Optional[StrictInt] = None, - max_v_addr: Optional[StrictInt] = None, - include_embeddings: Optional[StrictBool] = None, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisFunctions]: - """(Deprecated) Gets functions from analysis - - Gets the functions identified during analysis - - :param analysis_id: (required) - :type analysis_id: int - :param search_term: - :type search_term: str - :param min_v_addr: - :type min_v_addr: int - :param max_v_addr: - :type max_v_addr: int - :param include_embeddings: - :type include_embeddings: bool - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/list is deprecated.", DeprecationWarning) - - _param = self._get_functions_list_serialize( - analysis_id=analysis_id, - search_term=search_term, - min_v_addr=min_v_addr, - max_v_addr=max_v_addr, - include_embeddings=include_embeddings, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisFunctions", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_functions_list_without_preload_content( - self, - analysis_id: StrictInt, - search_term: Optional[StrictStr] = None, - min_v_addr: Optional[StrictInt] = None, - max_v_addr: Optional[StrictInt] = None, - include_embeddings: Optional[StrictBool] = None, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Gets functions from analysis - - Gets the functions identified during analysis - - :param analysis_id: (required) - :type analysis_id: int - :param search_term: - :type search_term: str - :param min_v_addr: - :type min_v_addr: int - :param max_v_addr: - :type max_v_addr: int - :param include_embeddings: - :type include_embeddings: bool - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/list is deprecated.", DeprecationWarning) - - _param = self._get_functions_list_serialize( - analysis_id=analysis_id, - search_term=search_term, - min_v_addr=min_v_addr, - max_v_addr=max_v_addr, - include_embeddings=include_embeddings, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisFunctions", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_functions_list_serialize( - self, - analysis_id, - search_term, - min_v_addr, - max_v_addr, - include_embeddings, - page, - page_size, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - if search_term is not None: - - _query_params.append(('search_term', search_term)) - - if min_v_addr is not None: - - _query_params.append(('min_v_addr', min_v_addr)) - - if max_v_addr is not None: - - _query_params.append(('max_v_addr', max_v_addr)) - - if include_embeddings is not None: - - _query_params.append(('include_embeddings', include_embeddings)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/functions/list', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_sbom( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseListSBOM: - """Gets the software-bill-of-materials (SBOM) found in the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sbom_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListSBOM", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_sbom_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseListSBOM]: - """Gets the software-bill-of-materials (SBOM) found in the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sbom_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListSBOM", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_sbom_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets the software-bill-of-materials (SBOM) found in the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sbom_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListSBOM", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_sbom_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/sbom', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_tags( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisTags: - """Get function tags with maliciousness score - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_tags_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisTags", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_tags_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisTags]: - """Get function tags with maliciousness score - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_tags_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisTags", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_tags_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get function tags with maliciousness score - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_tags_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisTags", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_tags_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/tags', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_vulnerabilities( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseVulnerabilities: - """Gets the vulnerabilities found in the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_vulnerabilities_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseVulnerabilities", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_vulnerabilities_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseVulnerabilities]: - """Gets the vulnerabilities found in the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_vulnerabilities_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseVulnerabilities", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_vulnerabilities_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets the vulnerabilities found in the analysis - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_vulnerabilities_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseVulnerabilities", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_vulnerabilities_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/vulnerabilities', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api/analyses_x_refs_api.py b/revengai/api/analyses_x_refs_api.py deleted file mode 100644 index 2f860922..00000000 --- a/revengai/api/analyses_x_refs_api.py +++ /dev/null @@ -1,320 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictInt -from typing_extensions import Annotated -from revengai.models.base_response_xref_response import BaseResponseXrefResponse - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class AnalysesXRefsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_xref_by_vaddr( - self, - analysis_id: StrictInt, - vaddr: Annotated[StrictInt, Field(description="Virtual address to match against xrefs")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseXrefResponse: - """[Beta] Look up xrefs by virtual address - - **This endpoint is in beta and may change without notice.** - - :param analysis_id: (required) - :type analysis_id: int - :param vaddr: Virtual address to match against xrefs (required) - :type vaddr: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_xref_by_vaddr_serialize( - analysis_id=analysis_id, - vaddr=vaddr, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseXrefResponse", - '422': "BaseResponse", - '404': "ErrorModel", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_xref_by_vaddr_with_http_info( - self, - analysis_id: StrictInt, - vaddr: Annotated[StrictInt, Field(description="Virtual address to match against xrefs")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseXrefResponse]: - """[Beta] Look up xrefs by virtual address - - **This endpoint is in beta and may change without notice.** - - :param analysis_id: (required) - :type analysis_id: int - :param vaddr: Virtual address to match against xrefs (required) - :type vaddr: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_xref_by_vaddr_serialize( - analysis_id=analysis_id, - vaddr=vaddr, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseXrefResponse", - '422': "BaseResponse", - '404': "ErrorModel", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_xref_by_vaddr_without_preload_content( - self, - analysis_id: StrictInt, - vaddr: Annotated[StrictInt, Field(description="Virtual address to match against xrefs")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """[Beta] Look up xrefs by virtual address - - **This endpoint is in beta and may change without notice.** - - :param analysis_id: (required) - :type analysis_id: int - :param vaddr: Virtual address to match against xrefs (required) - :type vaddr: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_xref_by_vaddr_serialize( - analysis_id=analysis_id, - vaddr=vaddr, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseXrefResponse", - '422': "BaseResponse", - '404': "ErrorModel", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_xref_by_vaddr_serialize( - self, - analysis_id, - vaddr, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - if vaddr is not None: - _path_params['vaddr'] = vaddr - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/xrefs/{vaddr}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api/authentication_users_api.py b/revengai/api/authentication_users_api.py deleted file mode 100644 index 8d9bac6b..00000000 --- a/revengai/api/authentication_users_api.py +++ /dev/null @@ -1,826 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import StrictInt -from revengai.models.base_response import BaseResponse -from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse -from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse -from revengai.models.submit_user_feedback_request import SubmitUserFeedbackRequest - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class AuthenticationUsersApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_user( - self, - user_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseGetPublicUserResponse: - """Get a user's public information - - - :param user_id: (required) - :type user_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseGetPublicUserResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_user_with_http_info( - self, - user_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseGetPublicUserResponse]: - """Get a user's public information - - - :param user_id: (required) - :type user_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseGetPublicUserResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_user_without_preload_content( - self, - user_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a user's public information - - - :param user_id: (required) - :type user_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseGetPublicUserResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_user_serialize( - self, - user_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if user_id is not None: - _path_params['user_id'] = user_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/users/{user_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_user_activity( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseListUserActivityResponse: - """Get auth user activity - - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_user_activity_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListUserActivityResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_user_activity_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseListUserActivityResponse]: - """Get auth user activity - - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_user_activity_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListUserActivityResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_user_activity_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get auth user activity - - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_user_activity_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListUserActivityResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_user_activity_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/users/activity', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def submit_user_feedback( - self, - submit_user_feedback_request: SubmitUserFeedbackRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Submit feedback about the application - - Submits feedback about the application and forwards it to the RevEng.ai project management tool. - - :param submit_user_feedback_request: (required) - :type submit_user_feedback_request: SubmitUserFeedbackRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._submit_user_feedback_serialize( - submit_user_feedback_request=submit_user_feedback_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def submit_user_feedback_with_http_info( - self, - submit_user_feedback_request: SubmitUserFeedbackRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Submit feedback about the application - - Submits feedback about the application and forwards it to the RevEng.ai project management tool. - - :param submit_user_feedback_request: (required) - :type submit_user_feedback_request: SubmitUserFeedbackRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._submit_user_feedback_serialize( - submit_user_feedback_request=submit_user_feedback_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def submit_user_feedback_without_preload_content( - self, - submit_user_feedback_request: SubmitUserFeedbackRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Submit feedback about the application - - Submits feedback about the application and forwards it to the RevEng.ai project management tool. - - :param submit_user_feedback_request: (required) - :type submit_user_feedback_request: SubmitUserFeedbackRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._submit_user_feedback_serialize( - submit_user_feedback_request=submit_user_feedback_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _submit_user_feedback_serialize( - self, - submit_user_feedback_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if submit_user_feedback_request is not None: - _body_params = submit_user_feedback_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/users/feedback', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api/binaries_api.py b/revengai/api/binaries_api.py index 9bbee448..888b308b 100644 --- a/revengai/api/binaries_api.py +++ b/revengai/api/binaries_api.py @@ -15,16 +15,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBytes, StrictInt, StrictStr -from typing import Tuple, Union +from pydantic import Field from typing_extensions import Annotated -from revengai.models.base_response_additional_details_status_response import BaseResponseAdditionalDetailsStatusResponse -from revengai.models.base_response_binaries_related_status_response import BaseResponseBinariesRelatedStatusResponse -from revengai.models.base_response_binary_additional_response import BaseResponseBinaryAdditionalResponse -from revengai.models.base_response_binary_details_response import BaseResponseBinaryDetailsResponse -from revengai.models.base_response_binary_externals_response import BaseResponseBinaryExternalsResponse -from revengai.models.base_response_child_binaries_response import BaseResponseChildBinariesResponse -from revengai.models.base_response_list_die_match import BaseResponseListDieMatch from revengai.models.get_additional_details_output_body import GetAdditionalDetailsOutputBody from revengai.models.get_additional_details_status_output_body import GetAdditionalDetailsStatusOutputBody @@ -47,2136 +39,9 @@ def __init__(self, api_client=None) -> None: @validate_call - def download_zipped_binary( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """Downloads a zipped binary with password protection - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._download_zipped_binary_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def download_zipped_binary_with_http_info( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """Downloads a zipped binary with password protection - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._download_zipped_binary_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def download_zipped_binary_without_preload_content( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Downloads a zipped binary with password protection - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._download_zipped_binary_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _download_zipped_binary_serialize( - self, - binary_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/zip', - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/binaries/{binary_id}/download-zipped', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_binary_additional_details( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseBinaryAdditionalResponse: - """(Deprecated) Gets the additional details of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/binaries/{binary_id}/additional-details is deprecated.", DeprecationWarning) - - _param = self._get_binary_additional_details_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryAdditionalResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_binary_additional_details_with_http_info( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseBinaryAdditionalResponse]: - """(Deprecated) Gets the additional details of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/binaries/{binary_id}/additional-details is deprecated.", DeprecationWarning) - - _param = self._get_binary_additional_details_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryAdditionalResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_binary_additional_details_without_preload_content( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Gets the additional details of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/binaries/{binary_id}/additional-details is deprecated.", DeprecationWarning) - - _param = self._get_binary_additional_details_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryAdditionalResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_binary_additional_details_serialize( - self, - binary_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/binaries/{binary_id}/additional-details', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_binary_additional_details_0( - self, - binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetAdditionalDetailsOutputBody: - """Get additional details for a binary. - - Returns structured metadata extracted by the additional-details pipeline for the given binary. Returns `null` for `details` when the pipeline has not yet run. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - - :param binary_id: Binary ID (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_additional_details_0_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdditionalDetailsOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_binary_additional_details_0_with_http_info( - self, - binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetAdditionalDetailsOutputBody]: - """Get additional details for a binary. - - Returns structured metadata extracted by the additional-details pipeline for the given binary. Returns `null` for `details` when the pipeline has not yet run. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - - :param binary_id: Binary ID (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_additional_details_0_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdditionalDetailsOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_binary_additional_details_0_without_preload_content( - self, - binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get additional details for a binary. - - Returns structured metadata extracted by the additional-details pipeline for the given binary. Returns `null` for `details` when the pipeline has not yet run. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - - :param binary_id: Binary ID (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_additional_details_0_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdditionalDetailsOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_binary_additional_details_0_serialize( - self, - binary_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v3/binaries/{binary_id}/additional-details', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_binary_additional_details_status( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAdditionalDetailsStatusResponse: - """(Deprecated) Gets the status of the additional details task for a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/binaries/{binary_id}/additional-details/status is deprecated.", DeprecationWarning) - - _param = self._get_binary_additional_details_status_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAdditionalDetailsStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_binary_additional_details_status_with_http_info( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAdditionalDetailsStatusResponse]: - """(Deprecated) Gets the status of the additional details task for a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/binaries/{binary_id}/additional-details/status is deprecated.", DeprecationWarning) - - _param = self._get_binary_additional_details_status_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAdditionalDetailsStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_binary_additional_details_status_without_preload_content( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Gets the status of the additional details task for a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/binaries/{binary_id}/additional-details/status is deprecated.", DeprecationWarning) - - _param = self._get_binary_additional_details_status_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAdditionalDetailsStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_binary_additional_details_status_serialize( - self, - binary_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/binaries/{binary_id}/additional-details/status', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_binary_additional_details_status_0( - self, - binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetAdditionalDetailsStatusOutputBody: - """Get the additional-details extraction status for a binary. - - Returns the status of the additional-details extraction task. One of `UNINITIALISED`, `PENDING`, `RUNNING`, `COMPLETED`, `FAILED`. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - - :param binary_id: Binary ID (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_additional_details_status_0_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdditionalDetailsStatusOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_binary_additional_details_status_0_with_http_info( - self, - binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetAdditionalDetailsStatusOutputBody]: - """Get the additional-details extraction status for a binary. - - Returns the status of the additional-details extraction task. One of `UNINITIALISED`, `PENDING`, `RUNNING`, `COMPLETED`, `FAILED`. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - - :param binary_id: Binary ID (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_additional_details_status_0_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdditionalDetailsStatusOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_binary_additional_details_status_0_without_preload_content( - self, - binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get the additional-details extraction status for a binary. - - Returns the status of the additional-details extraction task. One of `UNINITIALISED`, `PENDING`, `RUNNING`, `COMPLETED`, `FAILED`. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - - :param binary_id: Binary ID (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_additional_details_status_0_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdditionalDetailsStatusOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_binary_additional_details_status_0_serialize( - self, - binary_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v3/binaries/{binary_id}/additional-details/status', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_binary_details( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseBinaryDetailsResponse: - """Gets the details of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_details_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryDetailsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_binary_details_with_http_info( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseBinaryDetailsResponse]: - """Gets the details of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_details_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryDetailsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_binary_details_without_preload_content( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets the details of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_details_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryDetailsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_binary_details_serialize( - self, - binary_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/binaries/{binary_id}/details', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_binary_die_info( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseListDieMatch: - """Gets the die info of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_die_info_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListDieMatch", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_binary_die_info_with_http_info( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseListDieMatch]: - """Gets the die info of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_die_info_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListDieMatch", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_binary_die_info_without_preload_content( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets the die info of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_die_info_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListDieMatch", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_binary_die_info_serialize( - self, - binary_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/binaries/{binary_id}/die-info', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_binary_externals( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseBinaryExternalsResponse: - """Gets the external details of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_externals_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryExternalsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_binary_externals_with_http_info( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseBinaryExternalsResponse]: - """Gets the external details of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_externals_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryExternalsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_binary_externals_without_preload_content( - self, - binary_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets the external details of a binary - - - :param binary_id: (required) - :type binary_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_externals_serialize( - binary_id=binary_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryExternalsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_binary_externals_serialize( - self, - binary_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/binaries/{binary_id}/externals', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_binary_related_status( + def get_binary_additional_details( self, - binary_id: StrictInt, + binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2189,11 +54,12 @@ def get_binary_related_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseBinariesRelatedStatusResponse: - """Gets the status of the unpack binary task for a binary + ) -> GetAdditionalDetailsOutputBody: + """Get additional details for a binary. + Returns structured metadata extracted by the additional-details pipeline for the given binary. Returns `null` for `details` when the pipeline has not yet run. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param binary_id: (required) + :param binary_id: Binary ID (required) :type binary_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2217,7 +83,7 @@ def get_binary_related_status( :return: Returns the result object. """ # noqa: E501 - _param = self._get_binary_related_status_serialize( + _param = self._get_binary_additional_details_serialize( binary_id=binary_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2226,8 +92,11 @@ def get_binary_related_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinariesRelatedStatusResponse", - '422': "BaseResponse", + '200': "GetAdditionalDetailsOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -2241,9 +110,9 @@ def get_binary_related_status( @validate_call - def get_binary_related_status_with_http_info( + def get_binary_additional_details_with_http_info( self, - binary_id: StrictInt, + binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2256,11 +125,12 @@ def get_binary_related_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseBinariesRelatedStatusResponse]: - """Gets the status of the unpack binary task for a binary + ) -> ApiResponse[GetAdditionalDetailsOutputBody]: + """Get additional details for a binary. + Returns structured metadata extracted by the additional-details pipeline for the given binary. Returns `null` for `details` when the pipeline has not yet run. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param binary_id: (required) + :param binary_id: Binary ID (required) :type binary_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2284,7 +154,7 @@ def get_binary_related_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_binary_related_status_serialize( + _param = self._get_binary_additional_details_serialize( binary_id=binary_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2293,8 +163,11 @@ def get_binary_related_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinariesRelatedStatusResponse", - '422': "BaseResponse", + '200': "GetAdditionalDetailsOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -2308,9 +181,9 @@ def get_binary_related_status_with_http_info( @validate_call - def get_binary_related_status_without_preload_content( + def get_binary_additional_details_without_preload_content( self, - binary_id: StrictInt, + binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2324,10 +197,11 @@ def get_binary_related_status_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Gets the status of the unpack binary task for a binary + """Get additional details for a binary. + Returns structured metadata extracted by the additional-details pipeline for the given binary. Returns `null` for `details` when the pipeline has not yet run. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param binary_id: (required) + :param binary_id: Binary ID (required) :type binary_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2351,7 +225,7 @@ def get_binary_related_status_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_binary_related_status_serialize( + _param = self._get_binary_additional_details_serialize( binary_id=binary_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2360,8 +234,11 @@ def get_binary_related_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinariesRelatedStatusResponse", - '422': "BaseResponse", + '200': "GetAdditionalDetailsOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -2370,7 +247,7 @@ def get_binary_related_status_without_preload_content( return response_data.response - def _get_binary_related_status_serialize( + def _get_binary_additional_details_serialize( self, binary_id, _request_auth, @@ -2419,7 +296,7 @@ def _get_binary_related_status_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/binaries/{binary_id}/related/status', + resource_path='/v3/binaries/{binary_id}/additional-details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2436,9 +313,9 @@ def _get_binary_related_status_serialize( @validate_call - def get_related_binaries( + def get_binary_additional_details_status( self, - binary_id: StrictInt, + binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2451,11 +328,12 @@ def get_related_binaries( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseChildBinariesResponse: - """Gets the related binaries of a binary. + ) -> GetAdditionalDetailsStatusOutputBody: + """Get the additional-details extraction status for a binary. + Returns the status of the additional-details extraction task. One of `UNINITIALISED`, `PENDING`, `RUNNING`, `COMPLETED`, `FAILED`. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param binary_id: (required) + :param binary_id: Binary ID (required) :type binary_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2479,7 +357,7 @@ def get_related_binaries( :return: Returns the result object. """ # noqa: E501 - _param = self._get_related_binaries_serialize( + _param = self._get_binary_additional_details_status_serialize( binary_id=binary_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2488,9 +366,11 @@ def get_related_binaries( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseChildBinariesResponse", - '422': "BaseResponse", - '403': "BaseResponse", + '200': "GetAdditionalDetailsStatusOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -2504,9 +384,9 @@ def get_related_binaries( @validate_call - def get_related_binaries_with_http_info( + def get_binary_additional_details_status_with_http_info( self, - binary_id: StrictInt, + binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2519,11 +399,12 @@ def get_related_binaries_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseChildBinariesResponse]: - """Gets the related binaries of a binary. + ) -> ApiResponse[GetAdditionalDetailsStatusOutputBody]: + """Get the additional-details extraction status for a binary. + Returns the status of the additional-details extraction task. One of `UNINITIALISED`, `PENDING`, `RUNNING`, `COMPLETED`, `FAILED`. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param binary_id: (required) + :param binary_id: Binary ID (required) :type binary_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2547,7 +428,7 @@ def get_related_binaries_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_related_binaries_serialize( + _param = self._get_binary_additional_details_status_serialize( binary_id=binary_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2556,9 +437,11 @@ def get_related_binaries_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseChildBinariesResponse", - '422': "BaseResponse", - '403': "BaseResponse", + '200': "GetAdditionalDetailsStatusOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -2572,9 +455,9 @@ def get_related_binaries_with_http_info( @validate_call - def get_related_binaries_without_preload_content( + def get_binary_additional_details_status_without_preload_content( self, - binary_id: StrictInt, + binary_id: Annotated[int, Field(strict=True, ge=1, description="Binary ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2588,10 +471,11 @@ def get_related_binaries_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Gets the related binaries of a binary. + """Get the additional-details extraction status for a binary. + Returns the status of the additional-details extraction task. One of `UNINITIALISED`, `PENDING`, `RUNNING`, `COMPLETED`, `FAILED`. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - :param binary_id: (required) + :param binary_id: Binary ID (required) :type binary_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2615,7 +499,7 @@ def get_related_binaries_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_related_binaries_serialize( + _param = self._get_binary_additional_details_status_serialize( binary_id=binary_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2624,9 +508,11 @@ def get_related_binaries_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseChildBinariesResponse", - '422': "BaseResponse", - '403': "BaseResponse", + '200': "GetAdditionalDetailsStatusOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -2635,7 +521,7 @@ def get_related_binaries_without_preload_content( return response_data.response - def _get_related_binaries_serialize( + def _get_binary_additional_details_status_serialize( self, binary_id, _request_auth, @@ -2684,7 +570,7 @@ def _get_related_binaries_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/binaries/{binary_id}/related', + resource_path='/v3/binaries/{binary_id}/additional-details/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/revengai/api/collections_api.py b/revengai/api/collections_api.py index 76075ef2..7c1dffc7 100644 --- a/revengai/api/collections_api.py +++ b/revengai/api/collections_api.py @@ -15,25 +15,13 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator +from pydantic import Field, StrictBool, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated -from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy -from revengai.models.base_response_bool import BaseResponseBool -from revengai.models.base_response_collection_binaries_update_response import BaseResponseCollectionBinariesUpdateResponse -from revengai.models.base_response_collection_response import BaseResponseCollectionResponse -from revengai.models.base_response_collection_tags_update_response import BaseResponseCollectionTagsUpdateResponse -from revengai.models.base_response_list_collection_results import BaseResponseListCollectionResults -from revengai.models.collection_binaries_update_request import CollectionBinariesUpdateRequest -from revengai.models.collection_create_request import CollectionCreateRequest -from revengai.models.collection_tags_update_request import CollectionTagsUpdateRequest -from revengai.models.collection_update_request import CollectionUpdateRequest from revengai.models.create_collection_input_body import CreateCollectionInputBody from revengai.models.create_collection_output_body import CreateCollectionOutputBody -from revengai.models.filters import Filters from revengai.models.get_collection_output_body import GetCollectionOutputBody from revengai.models.list_collections_output_body import ListCollectionsOutputBody -from revengai.models.order import Order from revengai.models.patch_collection_binaries_input_body import PatchCollectionBinariesInputBody from revengai.models.patch_collection_binaries_output_body import PatchCollectionBinariesOutputBody from revengai.models.patch_collection_input_body import PatchCollectionInputBody @@ -59,2152 +47,6 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client - @validate_call - def create_collection( - self, - collection_create_request: CollectionCreateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCollectionResponse: - """(Deprecated) Creates new collection information - - A collection is a group of binaries that are related in some way. This endpoint creates a new collection and allows you to add tags and binaries to it. If you add tags or binaries to the collection, they will be returned in the response. - - :param collection_create_request: (required) - :type collection_create_request: CollectionCreateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v2/collections is deprecated.", DeprecationWarning) - - _param = self._create_collection_serialize( - collection_create_request=collection_create_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_collection_with_http_info( - self, - collection_create_request: CollectionCreateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCollectionResponse]: - """(Deprecated) Creates new collection information - - A collection is a group of binaries that are related in some way. This endpoint creates a new collection and allows you to add tags and binaries to it. If you add tags or binaries to the collection, they will be returned in the response. - - :param collection_create_request: (required) - :type collection_create_request: CollectionCreateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v2/collections is deprecated.", DeprecationWarning) - - _param = self._create_collection_serialize( - collection_create_request=collection_create_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_collection_without_preload_content( - self, - collection_create_request: CollectionCreateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Creates new collection information - - A collection is a group of binaries that are related in some way. This endpoint creates a new collection and allows you to add tags and binaries to it. If you add tags or binaries to the collection, they will be returned in the response. - - :param collection_create_request: (required) - :type collection_create_request: CollectionCreateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v2/collections is deprecated.", DeprecationWarning) - - _param = self._create_collection_serialize( - collection_create_request=collection_create_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_collection_serialize( - self, - collection_create_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if collection_create_request is not None: - _body_params = collection_create_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/collections', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_collection( - self, - collection_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseBool: - """(Deprecated) Deletes a collection - - Deletes a collection - - :param collection_id: (required) - :type collection_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("DELETE /v2/collections/{collection_id} is deprecated.", DeprecationWarning) - - _param = self._delete_collection_serialize( - collection_id=collection_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBool", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_collection_with_http_info( - self, - collection_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseBool]: - """(Deprecated) Deletes a collection - - Deletes a collection - - :param collection_id: (required) - :type collection_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("DELETE /v2/collections/{collection_id} is deprecated.", DeprecationWarning) - - _param = self._delete_collection_serialize( - collection_id=collection_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBool", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_collection_without_preload_content( - self, - collection_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Deletes a collection - - Deletes a collection - - :param collection_id: (required) - :type collection_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("DELETE /v2/collections/{collection_id} is deprecated.", DeprecationWarning) - - _param = self._delete_collection_serialize( - collection_id=collection_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBool", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_collection_serialize( - self, - collection_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if collection_id is not None: - _path_params['collection_id'] = collection_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/v2/collections/{collection_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_collection( - self, - collection_id: StrictInt, - include_tags: Optional[StrictBool] = None, - include_binaries: Optional[StrictBool] = None, - page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None, - page_number: Optional[Annotated[int, Field(strict=True, ge=1)]] = None, - binary_search_str: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCollectionResponse: - """(Deprecated) Returns a collection - - Gets a single collection. The collection can include binaries and tags if requested. You can specify whether to include tags and binaries in the response by using the query string parameters defined. - - :param collection_id: (required) - :type collection_id: int - :param include_tags: - :type include_tags: bool - :param include_binaries: - :type include_binaries: bool - :param page_size: - :type page_size: int - :param page_number: - :type page_number: int - :param binary_search_str: - :type binary_search_str: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/collections/{collection_id} is deprecated.", DeprecationWarning) - - _param = self._get_collection_serialize( - collection_id=collection_id, - include_tags=include_tags, - include_binaries=include_binaries, - page_size=page_size, - page_number=page_number, - binary_search_str=binary_search_str, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_collection_with_http_info( - self, - collection_id: StrictInt, - include_tags: Optional[StrictBool] = None, - include_binaries: Optional[StrictBool] = None, - page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None, - page_number: Optional[Annotated[int, Field(strict=True, ge=1)]] = None, - binary_search_str: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCollectionResponse]: - """(Deprecated) Returns a collection - - Gets a single collection. The collection can include binaries and tags if requested. You can specify whether to include tags and binaries in the response by using the query string parameters defined. - - :param collection_id: (required) - :type collection_id: int - :param include_tags: - :type include_tags: bool - :param include_binaries: - :type include_binaries: bool - :param page_size: - :type page_size: int - :param page_number: - :type page_number: int - :param binary_search_str: - :type binary_search_str: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/collections/{collection_id} is deprecated.", DeprecationWarning) - - _param = self._get_collection_serialize( - collection_id=collection_id, - include_tags=include_tags, - include_binaries=include_binaries, - page_size=page_size, - page_number=page_number, - binary_search_str=binary_search_str, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_collection_without_preload_content( - self, - collection_id: StrictInt, - include_tags: Optional[StrictBool] = None, - include_binaries: Optional[StrictBool] = None, - page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None, - page_number: Optional[Annotated[int, Field(strict=True, ge=1)]] = None, - binary_search_str: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Returns a collection - - Gets a single collection. The collection can include binaries and tags if requested. You can specify whether to include tags and binaries in the response by using the query string parameters defined. - - :param collection_id: (required) - :type collection_id: int - :param include_tags: - :type include_tags: bool - :param include_binaries: - :type include_binaries: bool - :param page_size: - :type page_size: int - :param page_number: - :type page_number: int - :param binary_search_str: - :type binary_search_str: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/collections/{collection_id} is deprecated.", DeprecationWarning) - - _param = self._get_collection_serialize( - collection_id=collection_id, - include_tags=include_tags, - include_binaries=include_binaries, - page_size=page_size, - page_number=page_number, - binary_search_str=binary_search_str, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_collection_serialize( - self, - collection_id, - include_tags, - include_binaries, - page_size, - page_number, - binary_search_str, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if collection_id is not None: - _path_params['collection_id'] = collection_id - # process the query parameters - if include_tags is not None: - - _query_params.append(('include_tags', include_tags)) - - if include_binaries is not None: - - _query_params.append(('include_binaries', include_binaries)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if page_number is not None: - - _query_params.append(('page_number', page_number)) - - if binary_search_str is not None: - - _query_params.append(('binary_search_str', binary_search_str)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/collections/{collection_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_collections( - self, - search_term: Optional[StrictStr] = None, - filters: Optional[List[Filters]] = None, - limit: Optional[Annotated[int, Field(le=50, strict=True, ge=5)]] = None, - offset: Optional[StrictInt] = None, - order_by: Optional[AppApiRestV2CollectionsEnumsOrderBy] = None, - order: Optional[Order] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseListCollectionResults: - """(Deprecated) Gets basic collections information - - Returns a list of collections - - :param search_term: - :type search_term: str - :param filters: - :type filters: List[Filters] - :param limit: - :type limit: int - :param offset: - :type offset: int - :param order_by: - :type order_by: AppApiRestV2CollectionsEnumsOrderBy - :param order: - :type order: Order - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/collections is deprecated.", DeprecationWarning) - - _param = self._list_collections_serialize( - search_term=search_term, - filters=filters, - limit=limit, - offset=offset, - order_by=order_by, - order=order, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListCollectionResults", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_collections_with_http_info( - self, - search_term: Optional[StrictStr] = None, - filters: Optional[List[Filters]] = None, - limit: Optional[Annotated[int, Field(le=50, strict=True, ge=5)]] = None, - offset: Optional[StrictInt] = None, - order_by: Optional[AppApiRestV2CollectionsEnumsOrderBy] = None, - order: Optional[Order] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseListCollectionResults]: - """(Deprecated) Gets basic collections information - - Returns a list of collections - - :param search_term: - :type search_term: str - :param filters: - :type filters: List[Filters] - :param limit: - :type limit: int - :param offset: - :type offset: int - :param order_by: - :type order_by: AppApiRestV2CollectionsEnumsOrderBy - :param order: - :type order: Order - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/collections is deprecated.", DeprecationWarning) - - _param = self._list_collections_serialize( - search_term=search_term, - filters=filters, - limit=limit, - offset=offset, - order_by=order_by, - order=order, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListCollectionResults", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_collections_without_preload_content( - self, - search_term: Optional[StrictStr] = None, - filters: Optional[List[Filters]] = None, - limit: Optional[Annotated[int, Field(le=50, strict=True, ge=5)]] = None, - offset: Optional[StrictInt] = None, - order_by: Optional[AppApiRestV2CollectionsEnumsOrderBy] = None, - order: Optional[Order] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Gets basic collections information - - Returns a list of collections - - :param search_term: - :type search_term: str - :param filters: - :type filters: List[Filters] - :param limit: - :type limit: int - :param offset: - :type offset: int - :param order_by: - :type order_by: AppApiRestV2CollectionsEnumsOrderBy - :param order: - :type order: Order - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/collections is deprecated.", DeprecationWarning) - - _param = self._list_collections_serialize( - search_term=search_term, - filters=filters, - limit=limit, - offset=offset, - order_by=order_by, - order=order, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListCollectionResults", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_collections_serialize( - self, - search_term, - filters, - limit, - offset, - order_by, - order, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'filters': 'multi', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if search_term is not None: - - _query_params.append(('search_term', search_term)) - - if filters is not None: - - _query_params.append(('filters', filters)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - if order_by is not None: - - _query_params.append(('order_by', order_by.value)) - - if order is not None: - - _query_params.append(('order', order.value)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/collections', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_collection( - self, - collection_id: StrictInt, - collection_update_request: CollectionUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCollectionResponse: - """(Deprecated) Updates a collection - - Updates a collection, you can update the collection name, description, and scope - - :param collection_id: (required) - :type collection_id: int - :param collection_update_request: (required) - :type collection_update_request: CollectionUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("PATCH /v2/collections/{collection_id} is deprecated.", DeprecationWarning) - - _param = self._update_collection_serialize( - collection_id=collection_id, - collection_update_request=collection_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_collection_with_http_info( - self, - collection_id: StrictInt, - collection_update_request: CollectionUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCollectionResponse]: - """(Deprecated) Updates a collection - - Updates a collection, you can update the collection name, description, and scope - - :param collection_id: (required) - :type collection_id: int - :param collection_update_request: (required) - :type collection_update_request: CollectionUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("PATCH /v2/collections/{collection_id} is deprecated.", DeprecationWarning) - - _param = self._update_collection_serialize( - collection_id=collection_id, - collection_update_request=collection_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_collection_without_preload_content( - self, - collection_id: StrictInt, - collection_update_request: CollectionUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Updates a collection - - Updates a collection, you can update the collection name, description, and scope - - :param collection_id: (required) - :type collection_id: int - :param collection_update_request: (required) - :type collection_update_request: CollectionUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("PATCH /v2/collections/{collection_id} is deprecated.", DeprecationWarning) - - _param = self._update_collection_serialize( - collection_id=collection_id, - collection_update_request=collection_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_collection_serialize( - self, - collection_id, - collection_update_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if collection_id is not None: - _path_params['collection_id'] = collection_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if collection_update_request is not None: - _body_params = collection_update_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/v2/collections/{collection_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_collection_binaries( - self, - collection_id: StrictInt, - collection_binaries_update_request: CollectionBinariesUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCollectionBinariesUpdateResponse: - """(Deprecated) Updates a collection binaries - - Updates/changes a collection binaries to whatever is provided in the request. After this update the collection will only contain the binaries provided in the request. - - :param collection_id: (required) - :type collection_id: int - :param collection_binaries_update_request: (required) - :type collection_binaries_update_request: CollectionBinariesUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("PATCH /v2/collections/{collection_id}/binaries is deprecated.", DeprecationWarning) - - _param = self._update_collection_binaries_serialize( - collection_id=collection_id, - collection_binaries_update_request=collection_binaries_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionBinariesUpdateResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_collection_binaries_with_http_info( - self, - collection_id: StrictInt, - collection_binaries_update_request: CollectionBinariesUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCollectionBinariesUpdateResponse]: - """(Deprecated) Updates a collection binaries - - Updates/changes a collection binaries to whatever is provided in the request. After this update the collection will only contain the binaries provided in the request. - - :param collection_id: (required) - :type collection_id: int - :param collection_binaries_update_request: (required) - :type collection_binaries_update_request: CollectionBinariesUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("PATCH /v2/collections/{collection_id}/binaries is deprecated.", DeprecationWarning) - - _param = self._update_collection_binaries_serialize( - collection_id=collection_id, - collection_binaries_update_request=collection_binaries_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionBinariesUpdateResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_collection_binaries_without_preload_content( - self, - collection_id: StrictInt, - collection_binaries_update_request: CollectionBinariesUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Updates a collection binaries - - Updates/changes a collection binaries to whatever is provided in the request. After this update the collection will only contain the binaries provided in the request. - - :param collection_id: (required) - :type collection_id: int - :param collection_binaries_update_request: (required) - :type collection_binaries_update_request: CollectionBinariesUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("PATCH /v2/collections/{collection_id}/binaries is deprecated.", DeprecationWarning) - - _param = self._update_collection_binaries_serialize( - collection_id=collection_id, - collection_binaries_update_request=collection_binaries_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionBinariesUpdateResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_collection_binaries_serialize( - self, - collection_id, - collection_binaries_update_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if collection_id is not None: - _path_params['collection_id'] = collection_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if collection_binaries_update_request is not None: - _body_params = collection_binaries_update_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/v2/collections/{collection_id}/binaries', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_collection_tags( - self, - collection_id: StrictInt, - collection_tags_update_request: CollectionTagsUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCollectionTagsUpdateResponse: - """(Deprecated) Updates a collection tags - - Updates/changes a collection tags to whatever is provided in the request. After this update the collection will only contain the tags provided in the request. - - :param collection_id: (required) - :type collection_id: int - :param collection_tags_update_request: (required) - :type collection_tags_update_request: CollectionTagsUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("PATCH /v2/collections/{collection_id}/tags is deprecated.", DeprecationWarning) - - _param = self._update_collection_tags_serialize( - collection_id=collection_id, - collection_tags_update_request=collection_tags_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionTagsUpdateResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_collection_tags_with_http_info( - self, - collection_id: StrictInt, - collection_tags_update_request: CollectionTagsUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCollectionTagsUpdateResponse]: - """(Deprecated) Updates a collection tags - - Updates/changes a collection tags to whatever is provided in the request. After this update the collection will only contain the tags provided in the request. - - :param collection_id: (required) - :type collection_id: int - :param collection_tags_update_request: (required) - :type collection_tags_update_request: CollectionTagsUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("PATCH /v2/collections/{collection_id}/tags is deprecated.", DeprecationWarning) - - _param = self._update_collection_tags_serialize( - collection_id=collection_id, - collection_tags_update_request=collection_tags_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionTagsUpdateResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_collection_tags_without_preload_content( - self, - collection_id: StrictInt, - collection_tags_update_request: CollectionTagsUpdateRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Updates a collection tags - - Updates/changes a collection tags to whatever is provided in the request. After this update the collection will only contain the tags provided in the request. - - :param collection_id: (required) - :type collection_id: int - :param collection_tags_update_request: (required) - :type collection_tags_update_request: CollectionTagsUpdateRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("PATCH /v2/collections/{collection_id}/tags is deprecated.", DeprecationWarning) - - _param = self._update_collection_tags_serialize( - collection_id=collection_id, - collection_tags_update_request=collection_tags_update_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionTagsUpdateResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_collection_tags_serialize( - self, - collection_id, - collection_tags_update_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if collection_id is not None: - _path_params['collection_id'] = collection_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if collection_tags_update_request is not None: - _body_params = collection_tags_update_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/v2/collections/{collection_id}/tags', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def v3_create_collection( self, diff --git a/revengai/api/config_api.py b/revengai/api/config_api.py deleted file mode 100644 index c5be2b1b..00000000 --- a/revengai/api/config_api.py +++ /dev/null @@ -1,285 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from revengai.models.base_response_config_response import BaseResponseConfigResponse - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class ConfigApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_config( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseConfigResponse: - """Get Config - - General configuration endpoint - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_config_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseConfigResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_config_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseConfigResponse]: - """Get Config - - General configuration endpoint - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_config_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseConfigResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_config_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Config - - General configuration endpoint - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_config_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseConfigResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_config_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/config', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api/external_sources_api.py b/revengai/api/external_sources_api.py deleted file mode 100644 index c130ca49..00000000 --- a/revengai/api/external_sources_api.py +++ /dev/null @@ -1,830 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import StrictInt -from revengai.models.base_response_external_response import BaseResponseExternalResponse -from revengai.models.base_response_str import BaseResponseStr -from revengai.models.base_response_task_response import BaseResponseTaskResponse - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class ExternalSourcesApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_external_task_vt( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseStr: - """Pulls data from VirusTotal - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_external_task_vt_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "BaseResponseStr", - '422': "BaseResponse", - '409': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_external_task_vt_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseStr]: - """Pulls data from VirusTotal - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_external_task_vt_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "BaseResponseStr", - '422': "BaseResponse", - '409': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_external_task_vt_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Pulls data from VirusTotal - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_external_task_vt_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "BaseResponseStr", - '422': "BaseResponse", - '409': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_external_task_vt_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/analysis/{analysis_id}/external/vt', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_vt_data( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseExternalResponse: - """Get VirusTotal data - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_vt_data_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseExternalResponse", - '422': "BaseResponse", - '404': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_vt_data_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseExternalResponse]: - """Get VirusTotal data - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_vt_data_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseExternalResponse", - '422': "BaseResponse", - '404': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_vt_data_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get VirusTotal data - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_vt_data_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseExternalResponse", - '422': "BaseResponse", - '404': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_vt_data_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analysis/{analysis_id}/external/vt', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_vt_task_status( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseTaskResponse: - """Check the status of VirusTotal data retrieval - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_vt_task_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_vt_task_status_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseTaskResponse]: - """Check the status of VirusTotal data retrieval - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_vt_task_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_vt_task_status_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Check the status of VirusTotal data retrieval - - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_vt_task_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseTaskResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_vt_task_status_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analysis/{analysis_id}/external/vt/status', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api/firmware_api.py b/revengai/api/firmware_api.py deleted file mode 100644 index 557468b5..00000000 --- a/revengai/api/firmware_api.py +++ /dev/null @@ -1,597 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import StrictStr -from typing import Any, Optional - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class FirmwareApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_binaries_for_firmware_task( - self, - task_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Upload firmware for unpacking - - Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. - - :param task_id: (required) - :type task_id: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binaries_for_firmware_task_serialize( - task_id=task_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_binaries_for_firmware_task_with_http_info( - self, - task_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """Upload firmware for unpacking - - Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. - - :param task_id: (required) - :type task_id: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binaries_for_firmware_task_serialize( - task_id=task_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_binaries_for_firmware_task_without_preload_content( - self, - task_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Upload firmware for unpacking - - Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. - - :param task_id: (required) - :type task_id: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binaries_for_firmware_task_serialize( - task_id=task_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_binaries_for_firmware_task_serialize( - self, - task_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if task_id is not None: - _path_params['task_id'] = task_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/firmware/get-binaries/{task_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def upload_firmware( - self, - file: StrictStr, - password: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Upload firmware for unpacking - - Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. - - :param file: (required) - :type file: str - :param password: - :type password: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_firmware_serialize( - file=file, - password=password, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "object", - '422': "BaseResponse", - '500': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def upload_firmware_with_http_info( - self, - file: StrictStr, - password: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """Upload firmware for unpacking - - Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. - - :param file: (required) - :type file: str - :param password: - :type password: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_firmware_serialize( - file=file, - password=password, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "object", - '422': "BaseResponse", - '500': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def upload_firmware_without_preload_content( - self, - file: StrictStr, - password: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Upload firmware for unpacking - - Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. - - :param file: (required) - :type file: str - :param password: - :type password: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_firmware_serialize( - file=file, - password=password, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "object", - '422': "BaseResponse", - '500': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _upload_firmware_serialize( - self, - file, - password, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _form_params.append(('file', file)) - if password is not None: - _form_params.append(('password', password)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/firmware', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api/functions_ai_decompilation_api.py b/revengai/api/functions_ai_decompilation_api.py index fa6e6c16..089a3668 100644 --- a/revengai/api/functions_ai_decompilation_api.py +++ b/revengai/api/functions_ai_decompilation_api.py @@ -15,11 +15,9 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictInt +from pydantic import Field, StrictBool from typing import List, Optional, Union from typing_extensions import Annotated -from revengai.models.base_response import BaseResponse -from revengai.models.base_response_union_get_ai_decompilation_rating_response_none_type import BaseResponseUnionGetAiDecompilationRatingResponseNoneType from revengai.models.comments_data import CommentsData from revengai.models.create_ai_decomp_output_body import CreateAIDecompOutputBody from revengai.models.decompilation_data import DecompilationData @@ -28,7 +26,6 @@ from revengai.models.stream_ai_decompilation200_response_inner import StreamAiDecompilation200ResponseInner from revengai.models.summary_data import SummaryData from revengai.models.tokenised_data import TokenisedData -from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest from revengai.models.upsert_overrides_data import UpsertOverridesData from revengai.models.upsert_overrides_input_body import UpsertOverridesInputBody from revengai.models.workflow_progress import WorkflowProgress @@ -1476,268 +1473,6 @@ def _get_ai_decompilation_inline_comments_status_serialize( - @validate_call - def get_ai_decompilation_rating( - self, - function_id: Annotated[StrictInt, Field(description="The ID of the function for which to get the rating")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseUnionGetAiDecompilationRatingResponseNoneType: - """Get rating for AI decompilation - - - :param function_id: The ID of the function for which to get the rating (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_ai_decompilation_rating_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseUnionGetAiDecompilationRatingResponseNoneType", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_ai_decompilation_rating_with_http_info( - self, - function_id: Annotated[StrictInt, Field(description="The ID of the function for which to get the rating")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseUnionGetAiDecompilationRatingResponseNoneType]: - """Get rating for AI decompilation - - - :param function_id: The ID of the function for which to get the rating (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_ai_decompilation_rating_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseUnionGetAiDecompilationRatingResponseNoneType", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_ai_decompilation_rating_without_preload_content( - self, - function_id: Annotated[StrictInt, Field(description="The ID of the function for which to get the rating")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get rating for AI decompilation - - - :param function_id: The ID of the function for which to get the rating (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_ai_decompilation_rating_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseUnionGetAiDecompilationRatingResponseNoneType", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_ai_decompilation_rating_serialize( - self, - function_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/{function_id}/ai-decompilation/rating', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def get_ai_decompilation_status( self, @@ -4250,293 +3985,3 @@ def _upsert_ai_decompilation_overrides_serialize( ) - - - @validate_call - def upsert_ai_decompilation_rating( - self, - function_id: Annotated[StrictInt, Field(description="The ID of the function being rated")], - upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Upsert rating for AI decompilation - - - :param function_id: The ID of the function being rated (required) - :type function_id: int - :param upsert_ai_decomplation_rating_request: (required) - :type upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upsert_ai_decompilation_rating_serialize( - function_id=function_id, - upsert_ai_decomplation_rating_request=upsert_ai_decomplation_rating_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def upsert_ai_decompilation_rating_with_http_info( - self, - function_id: Annotated[StrictInt, Field(description="The ID of the function being rated")], - upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Upsert rating for AI decompilation - - - :param function_id: The ID of the function being rated (required) - :type function_id: int - :param upsert_ai_decomplation_rating_request: (required) - :type upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upsert_ai_decompilation_rating_serialize( - function_id=function_id, - upsert_ai_decomplation_rating_request=upsert_ai_decomplation_rating_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def upsert_ai_decompilation_rating_without_preload_content( - self, - function_id: Annotated[StrictInt, Field(description="The ID of the function being rated")], - upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Upsert rating for AI decompilation - - - :param function_id: The ID of the function being rated (required) - :type function_id: int - :param upsert_ai_decomplation_rating_request: (required) - :type upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upsert_ai_decompilation_rating_serialize( - function_id=function_id, - upsert_ai_decomplation_rating_request=upsert_ai_decomplation_rating_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _upsert_ai_decompilation_rating_serialize( - self, - function_id, - upsert_ai_decomplation_rating_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if upsert_ai_decomplation_rating_request is not None: - _body_params = upsert_ai_decomplation_rating_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/v2/functions/{function_id}/ai-decompilation/rating', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api/functions_core_api.py b/revengai/api/functions_core_api.py index 1301b8aa..c5c1a3a0 100644 --- a/revengai/api/functions_core_api.py +++ b/revengai/api/functions_core_api.py @@ -15,19 +15,11 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictInt, StrictStr, field_validator +from pydantic import Field, StrictInt, StrictStr from typing import Any, Dict, List, Optional from typing_extensions import Annotated from revengai.models.add_callee_input_body import AddCalleeInputBody from revengai.models.add_user_string_to_function_input_body import AddUserStringToFunctionInputBody -from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse -from revengai.models.base_response_analysis_strings_status_response import BaseResponseAnalysisStringsStatusResponse -from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse -from revengai.models.base_response_function_blocks_response import BaseResponseFunctionBlocksResponse -from revengai.models.base_response_function_capability_response import BaseResponseFunctionCapabilityResponse -from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse -from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse -from revengai.models.base_response_list_callees_caller_functions_response import BaseResponseListCalleesCallerFunctionsResponse from revengai.models.call_edges_output_body import CallEdgesOutputBody from revengai.models.canonicalize_names_input_body import CanonicalizeNamesInputBody from revengai.models.canonicalize_names_output_body import CanonicalizeNamesOutputBody @@ -79,7 +71,7 @@ def add_function_callee( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Dict[str, object]: + ) -> object: """Add a callee to a function Records an outgoing call edge from the given function to a callee. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request @@ -120,7 +112,7 @@ def add_function_callee( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Dict[str, object]", + '201': "object", '400': "APIError", '403': "APIError", '404': "APIError", @@ -155,7 +147,7 @@ def add_function_callee_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Dict[str, object]]: + ) -> ApiResponse[object]: """Add a callee to a function Records an outgoing call edge from the given function to a callee. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request @@ -196,7 +188,7 @@ def add_function_callee_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Dict[str, object]", + '201': "object", '400': "APIError", '403': "APIError", '404': "APIError", @@ -272,7 +264,7 @@ def add_function_callee_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Dict[str, object]", + '201': "object", '400': "APIError", '403': "APIError", '404': "APIError", @@ -384,7 +376,7 @@ def add_user_string_to_function( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Dict[str, object]: + ) -> object: """Add a user-provided string to a function. Attaches a user-provided string to a function at the given virtual address. The string is stored with source `USER` and complements strings discovered automatically during analysis. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied @@ -425,7 +417,7 @@ def add_user_string_to_function( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Dict[str, object]", + '201': "object", '403': "APIError", '404': "APIError", '422': "APIError", @@ -459,7 +451,7 @@ def add_user_string_to_function_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Dict[str, object]]: + ) -> ApiResponse[object]: """Add a user-provided string to a function. Attaches a user-provided string to a function at the given virtual address. The string is stored with source `USER` and complements strings discovered automatically during analysis. **Error codes:** - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied @@ -500,7 +492,7 @@ def add_user_string_to_function_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Dict[str, object]", + '201': "object", '403': "APIError", '404': "APIError", '422': "APIError", @@ -575,7 +567,7 @@ def add_user_string_to_function_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Dict[str, object]", + '201': "object", '403': "APIError", '404': "APIError", '422': "APIError", @@ -670,2265 +662,7 @@ def _add_user_string_to_function_serialize( @validate_call - def get_analysis_strings( - self, - analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, - function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None, - sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisStringsResponse: - """(Deprecated) Get string information found in the Analysis - - Get string information found in the analysis - - :param analysis_id: (required) - :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str - :param function_search: Search is applied to function names - :type function_search: str - :param order_by: Order by field - :type order_by: str - :param sort_order: Sort order for the results - :type sort_order: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/strings is deprecated.", DeprecationWarning) - - _param = self._get_analysis_strings_serialize( - analysis_id=analysis_id, - page=page, - page_size=page_size, - search=search, - function_search=function_search, - order_by=order_by, - sort_order=sort_order, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_strings_with_http_info( - self, - analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, - function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None, - sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisStringsResponse]: - """(Deprecated) Get string information found in the Analysis - - Get string information found in the analysis - - :param analysis_id: (required) - :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str - :param function_search: Search is applied to function names - :type function_search: str - :param order_by: Order by field - :type order_by: str - :param sort_order: Sort order for the results - :type sort_order: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/strings is deprecated.", DeprecationWarning) - - _param = self._get_analysis_strings_serialize( - analysis_id=analysis_id, - page=page, - page_size=page_size, - search=search, - function_search=function_search, - order_by=order_by, - sort_order=sort_order, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_strings_without_preload_content( - self, - analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, - function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None, - sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get string information found in the Analysis - - Get string information found in the analysis - - :param analysis_id: (required) - :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str - :param function_search: Search is applied to function names - :type function_search: str - :param order_by: Order by field - :type order_by: str - :param sort_order: Sort order for the results - :type sort_order: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/strings is deprecated.", DeprecationWarning) - - _param = self._get_analysis_strings_serialize( - analysis_id=analysis_id, - page=page, - page_size=page_size, - search=search, - function_search=function_search, - order_by=order_by, - sort_order=sort_order, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_strings_serialize( - self, - analysis_id, - page, - page_size, - search, - function_search, - order_by, - sort_order, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if function_search is not None: - - _query_params.append(('function_search', function_search)) - - if order_by is not None: - - _query_params.append(('order_by', order_by)) - - if sort_order is not None: - - _query_params.append(('sort_order', sort_order)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/functions/strings', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_analysis_strings_status( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisStringsStatusResponse: - """(Deprecated) Get string processing state for the Analysis - - Get string processing state for the Analysis - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/strings/status is deprecated.", DeprecationWarning) - - _param = self._get_analysis_strings_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_strings_status_with_http_info( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisStringsStatusResponse]: - """(Deprecated) Get string processing state for the Analysis - - Get string processing state for the Analysis - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/strings/status is deprecated.", DeprecationWarning) - - _param = self._get_analysis_strings_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_strings_status_without_preload_content( - self, - analysis_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get string processing state for the Analysis - - Get string processing state for the Analysis - - :param analysis_id: (required) - :type analysis_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/strings/status is deprecated.", DeprecationWarning) - - _param = self._get_analysis_strings_status_serialize( - analysis_id=analysis_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsStatusResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_strings_status_serialize( - self, - analysis_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/functions/strings/status', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_blocks( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionBlocksResponse: - """(Deprecated) Get disassembly blocks related to the function - - Get disassembly blocks related to the function - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/blocks is deprecated.", DeprecationWarning) - - _param = self._get_function_blocks_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionBlocksResponse", - '422': "BaseResponse", - '404': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_function_blocks_with_http_info( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionBlocksResponse]: - """(Deprecated) Get disassembly blocks related to the function - - Get disassembly blocks related to the function - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/blocks is deprecated.", DeprecationWarning) - - _param = self._get_function_blocks_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionBlocksResponse", - '422': "BaseResponse", - '404': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_function_blocks_without_preload_content( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get disassembly blocks related to the function - - Get disassembly blocks related to the function - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/blocks is deprecated.", DeprecationWarning) - - _param = self._get_function_blocks_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionBlocksResponse", - '422': "BaseResponse", - '404': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_function_blocks_serialize( - self, - function_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/{function_id}/blocks', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_blocks_0( - self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DisassemblyOutputBody: - """Get function disassembly - - Returns the function's disassembly metadata (JSON blob containing basic blocks + local variables) along with parameter and return-type info. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_blocks_0_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DisassemblyOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_function_blocks_0_with_http_info( - self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DisassemblyOutputBody]: - """Get function disassembly - - Returns the function's disassembly metadata (JSON blob containing basic blocks + local variables) along with parameter and return-type info. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_blocks_0_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DisassemblyOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_function_blocks_0_without_preload_content( - self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get function disassembly - - Returns the function's disassembly metadata (JSON blob containing basic blocks + local variables) along with parameter and return-type info. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_blocks_0_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DisassemblyOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_function_blocks_0_serialize( - self, - function_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v3/functions/{function_id}/blocks', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_callees_callers( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCalleesCallerFunctionsResponse: - """(Deprecated) Get list of functions that call or are called by the specified function - - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/callees_callers is deprecated.", DeprecationWarning) - - _param = self._get_function_callees_callers_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCalleesCallerFunctionsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_function_callees_callers_with_http_info( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCalleesCallerFunctionsResponse]: - """(Deprecated) Get list of functions that call or are called by the specified function - - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/callees_callers is deprecated.", DeprecationWarning) - - _param = self._get_function_callees_callers_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCalleesCallerFunctionsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_function_callees_callers_without_preload_content( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get list of functions that call or are called by the specified function - - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/callees_callers is deprecated.", DeprecationWarning) - - _param = self._get_function_callees_callers_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCalleesCallerFunctionsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_function_callees_callers_serialize( - self, - function_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/{function_id}/callees_callers', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_callees_callers_0( - self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CallEdgesOutputBody: - """Get callees and callers for a function - - Returns both the outgoing call edges (callees) and incoming call edges (callers) for a single function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_callees_callers_0_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CallEdgesOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_function_callees_callers_0_with_http_info( - self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CallEdgesOutputBody]: - """Get callees and callers for a function - - Returns both the outgoing call edges (callees) and incoming call edges (callers) for a single function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_callees_callers_0_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CallEdgesOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_function_callees_callers_0_without_preload_content( - self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get callees and callers for a function - - Returns both the outgoing call edges (callees) and incoming call edges (callers) for a single function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_callees_callers_0_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CallEdgesOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_function_callees_callers_0_serialize( - self, - function_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v3/functions/{function_id}/callees-callers', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_callees_callers_bulk( - self, - function_ids: List[Optional[StrictInt]], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseListCalleesCallerFunctionsResponse: - """(Deprecated) Get list of functions that call or are called for a list of functions - - - :param function_ids: (required) - :type function_ids: List[Optional[int]] - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/callees_callers is deprecated.", DeprecationWarning) - - _param = self._get_function_callees_callers_bulk_serialize( - function_ids=function_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListCalleesCallerFunctionsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_function_callees_callers_bulk_with_http_info( - self, - function_ids: List[Optional[StrictInt]], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseListCalleesCallerFunctionsResponse]: - """(Deprecated) Get list of functions that call or are called for a list of functions - - - :param function_ids: (required) - :type function_ids: List[Optional[int]] - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/callees_callers is deprecated.", DeprecationWarning) - - _param = self._get_function_callees_callers_bulk_serialize( - function_ids=function_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListCalleesCallerFunctionsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_function_callees_callers_bulk_without_preload_content( - self, - function_ids: List[Optional[StrictInt]], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get list of functions that call or are called for a list of functions - - - :param function_ids: (required) - :type function_ids: List[Optional[int]] - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/callees_callers is deprecated.", DeprecationWarning) - - _param = self._get_function_callees_callers_bulk_serialize( - function_ids=function_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListCalleesCallerFunctionsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_function_callees_callers_bulk_serialize( - self, - function_ids, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'function_ids': 'multi', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if function_ids is not None: - - _query_params.append(('function_ids', function_ids)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/callees_callers', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_capabilities( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionCapabilityResponse: - """(Deprecated) Retrieve a functions capabilities - - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/capabilities is deprecated.", DeprecationWarning) - - _param = self._get_function_capabilities_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionCapabilityResponse", - '422': "BaseResponse", - '404': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_function_capabilities_with_http_info( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionCapabilityResponse]: - """(Deprecated) Retrieve a functions capabilities - - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/capabilities is deprecated.", DeprecationWarning) - - _param = self._get_function_capabilities_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionCapabilityResponse", - '422': "BaseResponse", - '404': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_function_capabilities_without_preload_content( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Retrieve a functions capabilities - - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/capabilities is deprecated.", DeprecationWarning) - - _param = self._get_function_capabilities_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionCapabilityResponse", - '422': "BaseResponse", - '404': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_function_capabilities_serialize( - self, - function_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/{function_id}/capabilities', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_capabilities_0( + def get_function_blocks( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ @@ -2943,10 +677,10 @@ def get_function_capabilities_0( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CapabilitiesOutputBody: - """Get capabilities for a function + ) -> DisassemblyOutputBody: + """Get function disassembly - Returns the capability findings (CAPA-style behaviour matches) associated with the given function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Returns the function's disassembly metadata (JSON blob containing basic blocks + local variables) along with parameter and return-type info. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found :param function_id: Function ID (required) :type function_id: int @@ -2972,7 +706,7 @@ def get_function_capabilities_0( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_capabilities_0_serialize( + _param = self._get_function_blocks_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2981,7 +715,7 @@ def get_function_capabilities_0( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CapabilitiesOutputBody", + '200': "DisassemblyOutputBody", '403': "APIError", '404': "APIError", '422': "APIError", @@ -2999,7 +733,7 @@ def get_function_capabilities_0( @validate_call - def get_function_capabilities_0_with_http_info( + def get_function_blocks_with_http_info( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ @@ -3014,10 +748,10 @@ def get_function_capabilities_0_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CapabilitiesOutputBody]: - """Get capabilities for a function + ) -> ApiResponse[DisassemblyOutputBody]: + """Get function disassembly - Returns the capability findings (CAPA-style behaviour matches) associated with the given function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Returns the function's disassembly metadata (JSON blob containing basic blocks + local variables) along with parameter and return-type info. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found :param function_id: Function ID (required) :type function_id: int @@ -3043,7 +777,7 @@ def get_function_capabilities_0_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_capabilities_0_serialize( + _param = self._get_function_blocks_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3052,7 +786,7 @@ def get_function_capabilities_0_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CapabilitiesOutputBody", + '200': "DisassemblyOutputBody", '403': "APIError", '404': "APIError", '422': "APIError", @@ -3070,7 +804,7 @@ def get_function_capabilities_0_with_http_info( @validate_call - def get_function_capabilities_0_without_preload_content( + def get_function_blocks_without_preload_content( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ @@ -3086,9 +820,9 @@ def get_function_capabilities_0_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get capabilities for a function + """Get function disassembly - Returns the capability findings (CAPA-style behaviour matches) associated with the given function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Returns the function's disassembly metadata (JSON blob containing basic blocks + local variables) along with parameter and return-type info. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found :param function_id: Function ID (required) :type function_id: int @@ -3114,7 +848,7 @@ def get_function_capabilities_0_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_capabilities_0_serialize( + _param = self._get_function_blocks_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3123,7 +857,7 @@ def get_function_capabilities_0_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CapabilitiesOutputBody", + '200': "DisassemblyOutputBody", '403': "APIError", '404': "APIError", '422': "APIError", @@ -3136,7 +870,7 @@ def get_function_capabilities_0_without_preload_content( return response_data.response - def _get_function_capabilities_0_serialize( + def _get_function_blocks_serialize( self, function_id, _request_auth, @@ -3185,7 +919,7 @@ def _get_function_capabilities_0_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v3/functions/{function_id}/capabilities', + resource_path='/v3/functions/{function_id}/blocks', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3202,9 +936,9 @@ def _get_function_capabilities_0_serialize( @validate_call - def get_function_details( + def get_function_callees_callers( self, - function_id: StrictInt, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3217,11 +951,12 @@ def get_function_details( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionsDetailResponse: - """(Deprecated) Get function details + ) -> CallEdgesOutputBody: + """Get callees and callers for a function + Returns both the outgoing call edges (callees) and incoming call edges (callers) for a single function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3244,9 +979,8 @@ def get_function_details( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id} is deprecated.", DeprecationWarning) - _param = self._get_function_details_serialize( + _param = self._get_function_callees_callers_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3255,8 +989,11 @@ def get_function_details( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionsDetailResponse", - '422': "BaseResponse", + '200': "CallEdgesOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -3270,9 +1007,9 @@ def get_function_details( @validate_call - def get_function_details_with_http_info( + def get_function_callees_callers_with_http_info( self, - function_id: StrictInt, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3285,11 +1022,12 @@ def get_function_details_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionsDetailResponse]: - """(Deprecated) Get function details + ) -> ApiResponse[CallEdgesOutputBody]: + """Get callees and callers for a function + Returns both the outgoing call edges (callees) and incoming call edges (callers) for a single function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3312,9 +1050,8 @@ def get_function_details_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id} is deprecated.", DeprecationWarning) - _param = self._get_function_details_serialize( + _param = self._get_function_callees_callers_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3323,8 +1060,11 @@ def get_function_details_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionsDetailResponse", - '422': "BaseResponse", + '200': "CallEdgesOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -3338,9 +1078,9 @@ def get_function_details_with_http_info( @validate_call - def get_function_details_without_preload_content( + def get_function_callees_callers_without_preload_content( self, - function_id: StrictInt, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3354,10 +1094,11 @@ def get_function_details_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """(Deprecated) Get function details + """Get callees and callers for a function + Returns both the outgoing call edges (callees) and incoming call edges (callers) for a single function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3380,9 +1121,8 @@ def get_function_details_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id} is deprecated.", DeprecationWarning) - _param = self._get_function_details_serialize( + _param = self._get_function_callees_callers_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3391,8 +1131,11 @@ def get_function_details_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionsDetailResponse", - '422': "BaseResponse", + '200': "CallEdgesOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -3401,7 +1144,7 @@ def get_function_details_without_preload_content( return response_data.response - def _get_function_details_serialize( + def _get_function_callees_callers_serialize( self, function_id, _request_auth, @@ -3450,7 +1193,7 @@ def _get_function_details_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/functions/{function_id}', + resource_path='/v3/functions/{function_id}/callees-callers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3467,7 +1210,7 @@ def _get_function_details_serialize( @validate_call - def get_function_details_0( + def get_function_capabilities( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ @@ -3482,10 +1225,10 @@ def get_function_details_0( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FunctionDetailsOutputBody: - """Get function details + ) -> CapabilitiesOutputBody: + """Get capabilities for a function - Returns metadata for a single function — name, virtual address, size, debug status, binary it belongs to. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Returns the capability findings (CAPA-style behaviour matches) associated with the given function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found :param function_id: Function ID (required) :type function_id: int @@ -3511,7 +1254,7 @@ def get_function_details_0( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_details_0_serialize( + _param = self._get_function_capabilities_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3520,7 +1263,7 @@ def get_function_details_0( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionDetailsOutputBody", + '200': "CapabilitiesOutputBody", '403': "APIError", '404': "APIError", '422': "APIError", @@ -3538,7 +1281,7 @@ def get_function_details_0( @validate_call - def get_function_details_0_with_http_info( + def get_function_capabilities_with_http_info( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ @@ -3553,10 +1296,10 @@ def get_function_details_0_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FunctionDetailsOutputBody]: - """Get function details + ) -> ApiResponse[CapabilitiesOutputBody]: + """Get capabilities for a function - Returns metadata for a single function — name, virtual address, size, debug status, binary it belongs to. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Returns the capability findings (CAPA-style behaviour matches) associated with the given function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found :param function_id: Function ID (required) :type function_id: int @@ -3582,7 +1325,7 @@ def get_function_details_0_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_details_0_serialize( + _param = self._get_function_capabilities_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3591,7 +1334,7 @@ def get_function_details_0_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionDetailsOutputBody", + '200': "CapabilitiesOutputBody", '403': "APIError", '404': "APIError", '422': "APIError", @@ -3609,7 +1352,7 @@ def get_function_details_0_with_http_info( @validate_call - def get_function_details_0_without_preload_content( + def get_function_capabilities_without_preload_content( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ @@ -3625,9 +1368,9 @@ def get_function_details_0_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get function details + """Get capabilities for a function - Returns metadata for a single function — name, virtual address, size, debug status, binary it belongs to. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Returns the capability findings (CAPA-style behaviour matches) associated with the given function. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found :param function_id: Function ID (required) :type function_id: int @@ -3653,7 +1396,7 @@ def get_function_details_0_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_details_0_serialize( + _param = self._get_function_capabilities_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3662,7 +1405,7 @@ def get_function_details_0_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionDetailsOutputBody", + '200': "CapabilitiesOutputBody", '403': "APIError", '404': "APIError", '422': "APIError", @@ -3675,7 +1418,7 @@ def get_function_details_0_without_preload_content( return response_data.response - def _get_function_details_0_serialize( + def _get_function_capabilities_serialize( self, function_id, _request_auth, @@ -3724,7 +1467,7 @@ def _get_function_details_0_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v3/functions/{function_id}', + resource_path='/v3/functions/{function_id}/capabilities', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3741,7 +1484,7 @@ def _get_function_details_0_serialize( @validate_call - def get_function_indirect_call_sites( + def get_function_details( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ @@ -3756,10 +1499,10 @@ def get_function_indirect_call_sites( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IndirectCallSitesOutputBody: - """Get indirect call sites for a function + ) -> FunctionDetailsOutputBody: + """Get function details - Returns the function's indirect call instructions with their resolved call target. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Returns metadata for a single function — name, virtual address, size, debug status, binary it belongs to. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found :param function_id: Function ID (required) :type function_id: int @@ -3785,7 +1528,7 @@ def get_function_indirect_call_sites( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_indirect_call_sites_serialize( + _param = self._get_function_details_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3794,7 +1537,7 @@ def get_function_indirect_call_sites( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IndirectCallSitesOutputBody", + '200': "FunctionDetailsOutputBody", '403': "APIError", '404': "APIError", '422': "APIError", @@ -3812,7 +1555,7 @@ def get_function_indirect_call_sites( @validate_call - def get_function_indirect_call_sites_with_http_info( + def get_function_details_with_http_info( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ @@ -3827,10 +1570,10 @@ def get_function_indirect_call_sites_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IndirectCallSitesOutputBody]: - """Get indirect call sites for a function + ) -> ApiResponse[FunctionDetailsOutputBody]: + """Get function details - Returns the function's indirect call instructions with their resolved call target. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Returns metadata for a single function — name, virtual address, size, debug status, binary it belongs to. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found :param function_id: Function ID (required) :type function_id: int @@ -3856,7 +1599,7 @@ def get_function_indirect_call_sites_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_indirect_call_sites_serialize( + _param = self._get_function_details_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3865,7 +1608,7 @@ def get_function_indirect_call_sites_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IndirectCallSitesOutputBody", + '200': "FunctionDetailsOutputBody", '403': "APIError", '404': "APIError", '422': "APIError", @@ -3883,7 +1626,7 @@ def get_function_indirect_call_sites_with_http_info( @validate_call - def get_function_indirect_call_sites_without_preload_content( + def get_function_details_without_preload_content( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ @@ -3899,9 +1642,9 @@ def get_function_indirect_call_sites_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get indirect call sites for a function + """Get function details - Returns the function's indirect call instructions with their resolved call target. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Returns metadata for a single function — name, virtual address, size, debug status, binary it belongs to. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found :param function_id: Function ID (required) :type function_id: int @@ -3927,7 +1670,7 @@ def get_function_indirect_call_sites_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_indirect_call_sites_serialize( + _param = self._get_function_details_serialize( function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3936,7 +1679,7 @@ def get_function_indirect_call_sites_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IndirectCallSitesOutputBody", + '200': "FunctionDetailsOutputBody", '403': "APIError", '404': "APIError", '422': "APIError", @@ -3949,7 +1692,7 @@ def get_function_indirect_call_sites_without_preload_content( return response_data.response - def _get_function_indirect_call_sites_serialize( + def _get_function_details_serialize( self, function_id, _request_auth, @@ -3998,7 +1741,7 @@ def _get_function_indirect_call_sites_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v3/functions/{function_id}/indirect-call-sites', + resource_path='/v3/functions/{function_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4015,12 +1758,9 @@ def _get_function_indirect_call_sites_serialize( @validate_call - def get_function_strings( + def get_function_indirect_call_sites( self, - function_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4033,19 +1773,13 @@ def get_function_strings( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionStringsResponse: - """(Deprecated) Get string information found in the function + ) -> IndirectCallSitesOutputBody: + """Get indirect call sites for a function - Get string information found in the function + Returns the function's indirect call instructions with their resolved call target. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str :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 @@ -4067,13 +1801,9 @@ def get_function_strings( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/strings is deprecated.", DeprecationWarning) - _param = self._get_function_strings_serialize( + _param = self._get_function_indirect_call_sites_serialize( function_id=function_id, - page=page, - page_size=page_size, - search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4081,8 +1811,11 @@ def get_function_strings( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionStringsResponse", - '422': "BaseResponse", + '200': "IndirectCallSitesOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -4096,12 +1829,9 @@ def get_function_strings( @validate_call - def get_function_strings_with_http_info( + def get_function_indirect_call_sites_with_http_info( self, - function_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4114,19 +1844,13 @@ def get_function_strings_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionStringsResponse]: - """(Deprecated) Get string information found in the function + ) -> ApiResponse[IndirectCallSitesOutputBody]: + """Get indirect call sites for a function - Get string information found in the function + Returns the function's indirect call instructions with their resolved call target. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str :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 @@ -4148,13 +1872,9 @@ def get_function_strings_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/strings is deprecated.", DeprecationWarning) - _param = self._get_function_strings_serialize( + _param = self._get_function_indirect_call_sites_serialize( function_id=function_id, - page=page, - page_size=page_size, - search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4162,8 +1882,11 @@ def get_function_strings_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionStringsResponse", - '422': "BaseResponse", + '200': "IndirectCallSitesOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -4177,12 +1900,9 @@ def get_function_strings_with_http_info( @validate_call - def get_function_strings_without_preload_content( + def get_function_indirect_call_sites_without_preload_content( self, - function_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4196,18 +1916,12 @@ def get_function_strings_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """(Deprecated) Get string information found in the function + """Get indirect call sites for a function - Get string information found in the function + Returns the function's indirect call instructions with their resolved call target. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str :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 @@ -4229,13 +1943,9 @@ def get_function_strings_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/functions/{function_id}/strings is deprecated.", DeprecationWarning) - _param = self._get_function_strings_serialize( + _param = self._get_function_indirect_call_sites_serialize( function_id=function_id, - page=page, - page_size=page_size, - search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4243,8 +1953,11 @@ def get_function_strings_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionStringsResponse", - '422': "BaseResponse", + '200': "IndirectCallSitesOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -4253,12 +1966,9 @@ def get_function_strings_without_preload_content( return response_data.response - def _get_function_strings_serialize( + def _get_function_indirect_call_sites_serialize( self, function_id, - page, - page_size, - search, _request_auth, _content_type, _headers, @@ -4283,18 +1993,6 @@ def _get_function_strings_serialize( if function_id is not None: _path_params['function_id'] = function_id # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - # process the header parameters # process the form parameters # process the body parameter @@ -4317,7 +2015,7 @@ def _get_function_strings_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/functions/{function_id}/strings', + resource_path='/v3/functions/{function_id}/indirect-call-sites', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4334,7 +2032,7 @@ def _get_function_strings_serialize( @validate_call - def get_function_strings_0( + def get_function_strings( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number (1-indexed).")] = None, @@ -4387,7 +2085,7 @@ def get_function_strings_0( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_strings_0_serialize( + _param = self._get_function_strings_serialize( function_id=function_id, page=page, page_size=page_size, @@ -4417,7 +2115,7 @@ def get_function_strings_0( @validate_call - def get_function_strings_0_with_http_info( + def get_function_strings_with_http_info( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number (1-indexed).")] = None, @@ -4470,7 +2168,7 @@ def get_function_strings_0_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_strings_0_serialize( + _param = self._get_function_strings_serialize( function_id=function_id, page=page, page_size=page_size, @@ -4500,7 +2198,7 @@ def get_function_strings_0_with_http_info( @validate_call - def get_function_strings_0_without_preload_content( + def get_function_strings_without_preload_content( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number (1-indexed).")] = None, @@ -4553,7 +2251,7 @@ def get_function_strings_0_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_strings_0_serialize( + _param = self._get_function_strings_serialize( function_id=function_id, page=page, page_size=page_size, @@ -4578,7 +2276,7 @@ def get_function_strings_0_without_preload_content( return response_data.response - def _get_function_strings_0_serialize( + def _get_function_strings_serialize( self, function_id, page, diff --git a/revengai/api/functions_data_types_api.py b/revengai/api/functions_data_types_api.py index 8f5f23e8..25cd299b 100644 --- a/revengai/api/functions_data_types_api.py +++ b/revengai/api/functions_data_types_api.py @@ -18,13 +18,9 @@ from pydantic import Field, StrictInt from typing import List, Optional from typing_extensions import Annotated -from revengai.models.base_response_function_data_types_list import BaseResponseFunctionDataTypesList -from revengai.models.base_response_generate_function_data_types import BaseResponseGenerateFunctionDataTypes -from revengai.models.base_response_generation_status_list import BaseResponseGenerationStatusList from revengai.models.batch_update_data_types_input_body import BatchUpdateDataTypesInputBody from revengai.models.batch_update_data_types_output_body import BatchUpdateDataTypesOutputBody from revengai.models.data_types_entry import DataTypesEntry -from revengai.models.function_data_types_params import FunctionDataTypesParams from revengai.models.list_analysis_functions_data_types_output_body import ListAnalysisFunctionsDataTypesOutputBody from revengai.models.list_functions_data_types_output_body import ListFunctionsDataTypesOutputBody from revengai.models.update_data_types_input_body import UpdateDataTypesInputBody @@ -354,1178 +350,10 @@ def _batch_update_function_data_types_serialize( @validate_call - def generate_function_data_types_for_analysis( - self, - analysis_id: StrictInt, - function_data_types_params: FunctionDataTypesParams, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseGenerateFunctionDataTypes: - """Generate Function Data Types - - Submits a request to generate the function data types - - :param analysis_id: (required) - :type analysis_id: int - :param function_data_types_params: (required) - :type function_data_types_params: FunctionDataTypesParams - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._generate_function_data_types_for_analysis_serialize( - analysis_id=analysis_id, - function_data_types_params=function_data_types_params, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseGenerateFunctionDataTypes", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def generate_function_data_types_for_analysis_with_http_info( - self, - analysis_id: StrictInt, - function_data_types_params: FunctionDataTypesParams, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseGenerateFunctionDataTypes]: - """Generate Function Data Types - - Submits a request to generate the function data types - - :param analysis_id: (required) - :type analysis_id: int - :param function_data_types_params: (required) - :type function_data_types_params: FunctionDataTypesParams - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._generate_function_data_types_for_analysis_serialize( - analysis_id=analysis_id, - function_data_types_params=function_data_types_params, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseGenerateFunctionDataTypes", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def generate_function_data_types_for_analysis_without_preload_content( - self, - analysis_id: StrictInt, - function_data_types_params: FunctionDataTypesParams, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Generate Function Data Types - - Submits a request to generate the function data types - - :param analysis_id: (required) - :type analysis_id: int - :param function_data_types_params: (required) - :type function_data_types_params: FunctionDataTypesParams - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._generate_function_data_types_for_analysis_serialize( - analysis_id=analysis_id, - function_data_types_params=function_data_types_params, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseGenerateFunctionDataTypes", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _generate_function_data_types_for_analysis_serialize( - self, - analysis_id, - function_data_types_params, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if function_data_types_params is not None: - _body_params = function_data_types_params - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/analyses/{analysis_id}/functions/data_types', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def generate_function_data_types_for_functions( - self, - function_data_types_params: FunctionDataTypesParams, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseGenerationStatusList: - """Generate Function Data Types for an arbitrary list of functions - - Submits a request to generate the function data types - - :param function_data_types_params: (required) - :type function_data_types_params: FunctionDataTypesParams - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._generate_function_data_types_for_functions_serialize( - function_data_types_params=function_data_types_params, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseGenerationStatusList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def generate_function_data_types_for_functions_with_http_info( - self, - function_data_types_params: FunctionDataTypesParams, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseGenerationStatusList]: - """Generate Function Data Types for an arbitrary list of functions - - Submits a request to generate the function data types - - :param function_data_types_params: (required) - :type function_data_types_params: FunctionDataTypesParams - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._generate_function_data_types_for_functions_serialize( - function_data_types_params=function_data_types_params, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseGenerationStatusList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def generate_function_data_types_for_functions_without_preload_content( - self, - function_data_types_params: FunctionDataTypesParams, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Generate Function Data Types for an arbitrary list of functions - - Submits a request to generate the function data types - - :param function_data_types_params: (required) - :type function_data_types_params: FunctionDataTypesParams - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._generate_function_data_types_for_functions_serialize( - function_data_types_params=function_data_types_params, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "BaseResponseGenerationStatusList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _generate_function_data_types_for_functions_serialize( - self, - function_data_types_params, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if function_data_types_params is not None: - _body_params = function_data_types_params - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/functions/data_types', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_data_types( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataTypesEntry: - """Get data types for a single function - - Returns the stored data-types blob for one function. The function must belong to the supplied analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_data_types_serialize( - analysis_id=analysis_id, - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DataTypesEntry", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_function_data_types_with_http_info( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DataTypesEntry]: - """Get data types for a single function - - Returns the stored data-types blob for one function. The function must belong to the supplied analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_data_types_serialize( - analysis_id=analysis_id, - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DataTypesEntry", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_function_data_types_without_preload_content( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get data types for a single function - - Returns the stored data-types blob for one function. The function must belong to the supplied analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_data_types_serialize( - analysis_id=analysis_id, - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DataTypesEntry", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_function_data_types_serialize( - self, - analysis_id, - function_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - if function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v3/analyses/{analysis_id}/functions/{function_id}/data-types', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_analysis_functions_data_types( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset. Defaults to 0.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Page size. Defaults to 100.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListAnalysisFunctionsDataTypesOutputBody: - """List data types for all functions in an analysis - - Paginated read of the stored data-types blob for each function in the analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param offset: Pagination offset. Defaults to 0. - :type offset: int - :param limit: Page size. Defaults to 100. - :type limit: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_analysis_functions_data_types_serialize( - analysis_id=analysis_id, - offset=offset, - limit=limit, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAnalysisFunctionsDataTypesOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_analysis_functions_data_types_with_http_info( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset. Defaults to 0.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Page size. Defaults to 100.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListAnalysisFunctionsDataTypesOutputBody]: - """List data types for all functions in an analysis - - Paginated read of the stored data-types blob for each function in the analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param offset: Pagination offset. Defaults to 0. - :type offset: int - :param limit: Page size. Defaults to 100. - :type limit: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_analysis_functions_data_types_serialize( - analysis_id=analysis_id, - offset=offset, - limit=limit, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAnalysisFunctionsDataTypesOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_analysis_functions_data_types_without_preload_content( - self, - analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], - offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset. Defaults to 0.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Page size. Defaults to 100.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List data types for all functions in an analysis - - Paginated read of the stored data-types blob for each function in the analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param analysis_id: Analysis ID (required) - :type analysis_id: int - :param offset: Pagination offset. Defaults to 0. - :type offset: int - :param limit: Page size. Defaults to 100. - :type limit: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_analysis_functions_data_types_serialize( - analysis_id=analysis_id, - offset=offset, - limit=limit, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAnalysisFunctionsDataTypesOutputBody", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_analysis_functions_data_types_serialize( - self, - analysis_id, - offset, - limit, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - if offset is not None: - - _query_params.append(('offset', offset)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v3/analyses/{analysis_id}/functions/data-types', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_function_data_types_for_analysis( + def get_function_data_types( self, - analysis_id: StrictInt, - function_ids: Optional[List[Optional[StrictInt]]] = None, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1538,15 +366,15 @@ def list_function_data_types_for_analysis( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionDataTypesList: - """(Deprecated) List Function Data Types + ) -> DataTypesEntry: + """Get data types for a single function - Returns data types for multiple functions with optional function ID filtering + Returns the stored data-types blob for one function. The function must belong to the supplied analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int - :param function_ids: - :type function_ids: List[Optional[int]] + :param function_id: Function ID (required) + :type function_id: int :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 @@ -1568,11 +396,10 @@ def list_function_data_types_for_analysis( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/data_types is deprecated.", DeprecationWarning) - _param = self._list_function_data_types_for_analysis_serialize( + _param = self._get_function_data_types_serialize( analysis_id=analysis_id, - function_ids=function_ids, + function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1580,8 +407,11 @@ def list_function_data_types_for_analysis( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionDataTypesList", - '422': "BaseResponse", + '200': "DataTypesEntry", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1595,10 +425,10 @@ def list_function_data_types_for_analysis( @validate_call - def list_function_data_types_for_analysis_with_http_info( + def get_function_data_types_with_http_info( self, - analysis_id: StrictInt, - function_ids: Optional[List[Optional[StrictInt]]] = None, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1611,15 +441,15 @@ def list_function_data_types_for_analysis_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionDataTypesList]: - """(Deprecated) List Function Data Types + ) -> ApiResponse[DataTypesEntry]: + """Get data types for a single function - Returns data types for multiple functions with optional function ID filtering + Returns the stored data-types blob for one function. The function must belong to the supplied analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int - :param function_ids: - :type function_ids: List[Optional[int]] + :param function_id: Function ID (required) + :type function_id: int :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 @@ -1641,11 +471,10 @@ def list_function_data_types_for_analysis_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/data_types is deprecated.", DeprecationWarning) - _param = self._list_function_data_types_for_analysis_serialize( + _param = self._get_function_data_types_serialize( analysis_id=analysis_id, - function_ids=function_ids, + function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1653,8 +482,11 @@ def list_function_data_types_for_analysis_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionDataTypesList", - '422': "BaseResponse", + '200': "DataTypesEntry", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1668,10 +500,10 @@ def list_function_data_types_for_analysis_with_http_info( @validate_call - def list_function_data_types_for_analysis_without_preload_content( + def get_function_data_types_without_preload_content( self, - analysis_id: StrictInt, - function_ids: Optional[List[Optional[StrictInt]]] = None, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1685,14 +517,14 @@ def list_function_data_types_for_analysis_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """(Deprecated) List Function Data Types + """Get data types for a single function - Returns data types for multiple functions with optional function ID filtering + Returns the stored data-types blob for one function. The function must belong to the supplied analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param analysis_id: (required) + :param analysis_id: Analysis ID (required) :type analysis_id: int - :param function_ids: - :type function_ids: List[Optional[int]] + :param function_id: Function ID (required) + :type function_id: int :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 @@ -1714,11 +546,10 @@ def list_function_data_types_for_analysis_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/analyses/{analysis_id}/functions/data_types is deprecated.", DeprecationWarning) - _param = self._list_function_data_types_for_analysis_serialize( + _param = self._get_function_data_types_serialize( analysis_id=analysis_id, - function_ids=function_ids, + function_id=function_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1726,8 +557,11 @@ def list_function_data_types_for_analysis_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionDataTypesList", - '422': "BaseResponse", + '200': "DataTypesEntry", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1736,10 +570,10 @@ def list_function_data_types_for_analysis_without_preload_content( return response_data.response - def _list_function_data_types_for_analysis_serialize( + def _get_function_data_types_serialize( self, analysis_id, - function_ids, + function_id, _request_auth, _content_type, _headers, @@ -1749,7 +583,6 @@ def _list_function_data_types_for_analysis_serialize( _host = None _collection_formats: Dict[str, str] = { - 'function_ids': 'multi', } _path_params: Dict[str, str] = {} @@ -1764,11 +597,9 @@ def _list_function_data_types_for_analysis_serialize( # process the path parameters if analysis_id is not None: _path_params['analysis_id'] = analysis_id + if function_id is not None: + _path_params['function_id'] = function_id # process the query parameters - if function_ids is not None: - - _query_params.append(('function_ids', function_ids)) - # process the header parameters # process the form parameters # process the body parameter @@ -1791,7 +622,7 @@ def _list_function_data_types_for_analysis_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/analyses/{analysis_id}/functions/data_types', + resource_path='/v3/analyses/{analysis_id}/functions/{function_id}/data-types', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1808,9 +639,11 @@ def _list_function_data_types_for_analysis_serialize( @validate_call - def list_function_data_types_for_functions( + def list_analysis_functions_data_types( self, - function_ids: Optional[List[Optional[StrictInt]]] = None, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset. Defaults to 0.")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Page size. Defaults to 100.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1823,13 +656,17 @@ def list_function_data_types_for_functions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionDataTypesList: - """(Deprecated) List Function Data Types + ) -> ListAnalysisFunctionsDataTypesOutputBody: + """List data types for all functions in an analysis - Returns data types for multiple function IDs + Paginated read of the stored data-types blob for each function in the analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_ids: - :type function_ids: List[Optional[int]] + :param analysis_id: Analysis ID (required) + :type analysis_id: int + :param offset: Pagination offset. Defaults to 0. + :type offset: int + :param limit: Page size. Defaults to 100. + :type limit: int :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 @@ -1851,10 +688,11 @@ def list_function_data_types_for_functions( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/functions/data_types is deprecated.", DeprecationWarning) - _param = self._list_function_data_types_for_functions_serialize( - function_ids=function_ids, + _param = self._list_analysis_functions_data_types_serialize( + analysis_id=analysis_id, + offset=offset, + limit=limit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1862,8 +700,11 @@ def list_function_data_types_for_functions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionDataTypesList", - '422': "BaseResponse", + '200': "ListAnalysisFunctionsDataTypesOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1877,9 +718,11 @@ def list_function_data_types_for_functions( @validate_call - def list_function_data_types_for_functions_with_http_info( + def list_analysis_functions_data_types_with_http_info( self, - function_ids: Optional[List[Optional[StrictInt]]] = None, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset. Defaults to 0.")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Page size. Defaults to 100.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1892,13 +735,17 @@ def list_function_data_types_for_functions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionDataTypesList]: - """(Deprecated) List Function Data Types + ) -> ApiResponse[ListAnalysisFunctionsDataTypesOutputBody]: + """List data types for all functions in an analysis - Returns data types for multiple function IDs + Paginated read of the stored data-types blob for each function in the analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_ids: - :type function_ids: List[Optional[int]] + :param analysis_id: Analysis ID (required) + :type analysis_id: int + :param offset: Pagination offset. Defaults to 0. + :type offset: int + :param limit: Page size. Defaults to 100. + :type limit: int :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 @@ -1920,10 +767,11 @@ def list_function_data_types_for_functions_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/functions/data_types is deprecated.", DeprecationWarning) - _param = self._list_function_data_types_for_functions_serialize( - function_ids=function_ids, + _param = self._list_analysis_functions_data_types_serialize( + analysis_id=analysis_id, + offset=offset, + limit=limit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1931,8 +779,11 @@ def list_function_data_types_for_functions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionDataTypesList", - '422': "BaseResponse", + '200': "ListAnalysisFunctionsDataTypesOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1946,9 +797,11 @@ def list_function_data_types_for_functions_with_http_info( @validate_call - def list_function_data_types_for_functions_without_preload_content( + def list_analysis_functions_data_types_without_preload_content( self, - function_ids: Optional[List[Optional[StrictInt]]] = None, + analysis_id: Annotated[int, Field(strict=True, ge=1, description="Analysis ID")], + offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset. Defaults to 0.")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Page size. Defaults to 100.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1962,12 +815,16 @@ def list_function_data_types_for_functions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """(Deprecated) List Function Data Types + """List data types for all functions in an analysis - Returns data types for multiple function IDs + Paginated read of the stored data-types blob for each function in the analysis. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_ids: - :type function_ids: List[Optional[int]] + :param analysis_id: Analysis ID (required) + :type analysis_id: int + :param offset: Pagination offset. Defaults to 0. + :type offset: int + :param limit: Page size. Defaults to 100. + :type limit: int :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 @@ -1989,10 +846,11 @@ def list_function_data_types_for_functions_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /v2/functions/data_types is deprecated.", DeprecationWarning) - _param = self._list_function_data_types_for_functions_serialize( - function_ids=function_ids, + _param = self._list_analysis_functions_data_types_serialize( + analysis_id=analysis_id, + offset=offset, + limit=limit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2000,8 +858,11 @@ def list_function_data_types_for_functions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionDataTypesList", - '422': "BaseResponse", + '200': "ListAnalysisFunctionsDataTypesOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -2010,9 +871,11 @@ def list_function_data_types_for_functions_without_preload_content( return response_data.response - def _list_function_data_types_for_functions_serialize( + def _list_analysis_functions_data_types_serialize( self, - function_ids, + analysis_id, + offset, + limit, _request_auth, _content_type, _headers, @@ -2022,7 +885,6 @@ def _list_function_data_types_for_functions_serialize( _host = None _collection_formats: Dict[str, str] = { - 'function_ids': 'multi', } _path_params: Dict[str, str] = {} @@ -2035,10 +897,16 @@ def _list_function_data_types_for_functions_serialize( _body_params: Optional[bytes] = None # process the path parameters + if analysis_id is not None: + _path_params['analysis_id'] = analysis_id # process the query parameters - if function_ids is not None: + if offset is not None: - _query_params.append(('function_ids', function_ids)) + _query_params.append(('offset', offset)) + + if limit is not None: + + _query_params.append(('limit', limit)) # process the header parameters # process the form parameters @@ -2062,7 +930,7 @@ def _list_function_data_types_for_functions_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/functions/data_types', + resource_path='/v3/analyses/{analysis_id}/functions/data-types', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/revengai/api/functions_renaming_history_api.py b/revengai/api/functions_renaming_history_api.py index 4509c148..10b74feb 100644 --- a/revengai/api/functions_renaming_history_api.py +++ b/revengai/api/functions_renaming_history_api.py @@ -15,15 +15,11 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictInt +from pydantic import Field from typing import Any, Dict, List from typing_extensions import Annotated -from revengai.models.base_response import BaseResponse -from revengai.models.base_response_list_function_name_history import BaseResponseListFunctionNameHistory from revengai.models.batch_rename_input_body import BatchRenameInputBody from revengai.models.batch_rename_output_body import BatchRenameOutputBody -from revengai.models.function_rename import FunctionRename -from revengai.models.functions_list_rename import FunctionsListRename from revengai.models.history_entry import HistoryEntry from revengai.models.rename_input_body import RenameInputBody from revengai.models.rename_output_body import RenameOutputBody @@ -47,1120 +43,9 @@ def __init__(self, api_client=None) -> None: @validate_call - def batch_rename_function( - self, - functions_list_rename: FunctionsListRename, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """(Deprecated) Batch Rename Functions - - Renames a list of functions using the function IDs Will record name changes in history - - :param functions_list_rename: (required) - :type functions_list_rename: FunctionsListRename - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v2/functions/rename/batch is deprecated.", DeprecationWarning) - - _param = self._batch_rename_function_serialize( - functions_list_rename=functions_list_rename, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def batch_rename_function_with_http_info( - self, - functions_list_rename: FunctionsListRename, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """(Deprecated) Batch Rename Functions - - Renames a list of functions using the function IDs Will record name changes in history - - :param functions_list_rename: (required) - :type functions_list_rename: FunctionsListRename - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v2/functions/rename/batch is deprecated.", DeprecationWarning) - - _param = self._batch_rename_function_serialize( - functions_list_rename=functions_list_rename, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def batch_rename_function_without_preload_content( - self, - functions_list_rename: FunctionsListRename, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Batch Rename Functions - - Renames a list of functions using the function IDs Will record name changes in history - - :param functions_list_rename: (required) - :type functions_list_rename: FunctionsListRename - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v2/functions/rename/batch is deprecated.", DeprecationWarning) - - _param = self._batch_rename_function_serialize( - functions_list_rename=functions_list_rename, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _batch_rename_function_serialize( - self, - functions_list_rename, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if functions_list_rename is not None: - _body_params = functions_list_rename - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/functions/rename/batch', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def batch_rename_functions( - self, - batch_rename_input_body: BatchRenameInputBody, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BatchRenameOutputBody: - """Batch rename functions - - Renames multiple functions in a single request. Records name changes in history and copies data types from source functions. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - - :param batch_rename_input_body: (required) - :type batch_rename_input_body: BatchRenameInputBody - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._batch_rename_functions_serialize( - batch_rename_input_body=batch_rename_input_body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchRenameOutputBody", - '400': "APIError", - '403': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def batch_rename_functions_with_http_info( - self, - batch_rename_input_body: BatchRenameInputBody, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BatchRenameOutputBody]: - """Batch rename functions - - Renames multiple functions in a single request. Records name changes in history and copies data types from source functions. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - - :param batch_rename_input_body: (required) - :type batch_rename_input_body: BatchRenameInputBody - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._batch_rename_functions_serialize( - batch_rename_input_body=batch_rename_input_body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchRenameOutputBody", - '400': "APIError", - '403': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def batch_rename_functions_without_preload_content( - self, - batch_rename_input_body: BatchRenameInputBody, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Batch rename functions - - Renames multiple functions in a single request. Records name changes in history and copies data types from source functions. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - - :param batch_rename_input_body: (required) - :type batch_rename_input_body: BatchRenameInputBody - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._batch_rename_functions_serialize( - batch_rename_input_body=batch_rename_input_body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchRenameOutputBody", - '400': "APIError", - '403': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _batch_rename_functions_serialize( - self, - batch_rename_input_body, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if batch_rename_input_body is not None: - _body_params = batch_rename_input_body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v3/functions/rename', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_history( - self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[HistoryEntry]: - """Get function name history - - Returns the name change history for a function, newest first. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_history_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[HistoryEntry]", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_function_history_with_http_info( - self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[HistoryEntry]]: - """Get function name history - - Returns the name change history for a function, newest first. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_history_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[HistoryEntry]", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_function_history_without_preload_content( - self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get function name history - - Returns the name change history for a function, newest first. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - - :param function_id: Function ID (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_function_history_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[HistoryEntry]", - '403': "APIError", - '404': "APIError", - '422': "APIError", - '500': "APIError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_function_history_serialize( - self, - function_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v3/functions/{function_id}/history', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_name_history( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseListFunctionNameHistory: - """(Deprecated) Get Function Name History - - Gets the name history of a function using the function ID - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/history/{function_id} is deprecated.", DeprecationWarning) - - _param = self._get_function_name_history_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListFunctionNameHistory", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_function_name_history_with_http_info( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseListFunctionNameHistory]: - """(Deprecated) Get Function Name History - - Gets the name history of a function using the function ID - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/history/{function_id} is deprecated.", DeprecationWarning) - - _param = self._get_function_name_history_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListFunctionNameHistory", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_function_name_history_without_preload_content( - self, - function_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get Function Name History - - Gets the name history of a function using the function ID - - :param function_id: (required) - :type function_id: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v2/functions/history/{function_id} is deprecated.", DeprecationWarning) - - _param = self._get_function_name_history_serialize( - function_id=function_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListFunctionNameHistory", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_function_name_history_serialize( - self, - function_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/history/{function_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rename_function( + def batch_rename_functions( self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - rename_input_body: RenameInputBody, + batch_rename_input_body: BatchRenameInputBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1173,15 +58,13 @@ def rename_function( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RenameOutputBody: - """Rename a function + ) -> BatchRenameOutputBody: + """Batch rename functions - Renames a single function and records the change in history. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Renames multiple functions in a single request. Records name changes in history and copies data types from source functions. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - :param function_id: Function ID (required) - :type function_id: int - :param rename_input_body: (required) - :type rename_input_body: RenameInputBody + :param batch_rename_input_body: (required) + :type batch_rename_input_body: BatchRenameInputBody :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 @@ -1204,9 +87,8 @@ def rename_function( :return: Returns the result object. """ # noqa: E501 - _param = self._rename_function_serialize( - function_id=function_id, - rename_input_body=rename_input_body, + _param = self._batch_rename_functions_serialize( + batch_rename_input_body=batch_rename_input_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1214,9 +96,9 @@ def rename_function( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RenameOutputBody", + '200': "BatchRenameOutputBody", + '400': "APIError", '403': "APIError", - '404': "APIError", '422': "APIError", '500': "APIError", } @@ -1232,10 +114,9 @@ def rename_function( @validate_call - def rename_function_with_http_info( + def batch_rename_functions_with_http_info( self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - rename_input_body: RenameInputBody, + batch_rename_input_body: BatchRenameInputBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1248,15 +129,13 @@ def rename_function_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[RenameOutputBody]: - """Rename a function + ) -> ApiResponse[BatchRenameOutputBody]: + """Batch rename functions - Renames a single function and records the change in history. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Renames multiple functions in a single request. Records name changes in history and copies data types from source functions. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - :param function_id: Function ID (required) - :type function_id: int - :param rename_input_body: (required) - :type rename_input_body: RenameInputBody + :param batch_rename_input_body: (required) + :type batch_rename_input_body: BatchRenameInputBody :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 @@ -1279,9 +158,8 @@ def rename_function_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rename_function_serialize( - function_id=function_id, - rename_input_body=rename_input_body, + _param = self._batch_rename_functions_serialize( + batch_rename_input_body=batch_rename_input_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1289,9 +167,9 @@ def rename_function_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RenameOutputBody", + '200': "BatchRenameOutputBody", + '400': "APIError", '403': "APIError", - '404': "APIError", '422': "APIError", '500': "APIError", } @@ -1307,10 +185,9 @@ def rename_function_with_http_info( @validate_call - def rename_function_without_preload_content( + def batch_rename_functions_without_preload_content( self, - function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], - rename_input_body: RenameInputBody, + batch_rename_input_body: BatchRenameInputBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1324,14 +201,12 @@ def rename_function_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Rename a function + """Batch rename functions - Renames a single function and records the change in history. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found + Renames multiple functions in a single request. Records name changes in history and copies data types from source functions. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - :param function_id: Function ID (required) - :type function_id: int - :param rename_input_body: (required) - :type rename_input_body: RenameInputBody + :param batch_rename_input_body: (required) + :type batch_rename_input_body: BatchRenameInputBody :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 @@ -1354,9 +229,8 @@ def rename_function_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._rename_function_serialize( - function_id=function_id, - rename_input_body=rename_input_body, + _param = self._batch_rename_functions_serialize( + batch_rename_input_body=batch_rename_input_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1364,9 +238,9 @@ def rename_function_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RenameOutputBody", + '200': "BatchRenameOutputBody", + '400': "APIError", '403': "APIError", - '404': "APIError", '422': "APIError", '500': "APIError", } @@ -1377,10 +251,9 @@ def rename_function_without_preload_content( return response_data.response - def _rename_function_serialize( + def _batch_rename_functions_serialize( self, - function_id, - rename_input_body, + batch_rename_input_body, _request_auth, _content_type, _headers, @@ -1402,14 +275,12 @@ def _rename_function_serialize( _body_params: Optional[bytes] = None # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if rename_input_body is not None: - _body_params = rename_input_body + if batch_rename_input_body is not None: + _body_params = batch_rename_input_body # set the HTTP header `Accept` @@ -1442,7 +313,7 @@ def _rename_function_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v3/functions/{function_id}/rename', + resource_path='/v3/functions/rename', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1459,10 +330,9 @@ def _rename_function_serialize( @validate_call - def rename_function_id( + def get_function_history( self, - function_id: StrictInt, - function_rename: FunctionRename, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1475,15 +345,13 @@ def rename_function_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """(Deprecated) Rename Function + ) -> List[HistoryEntry]: + """Get function name history - Renames a function using the function ID Will record name change history + Returns the name change history for a function, newest first. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int - :param function_rename: (required) - :type function_rename: FunctionRename :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 @@ -1505,11 +373,9 @@ def rename_function_id( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("POST /v2/functions/rename/{function_id} is deprecated.", DeprecationWarning) - _param = self._rename_function_id_serialize( + _param = self._get_function_history_serialize( function_id=function_id, - function_rename=function_rename, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1517,8 +383,11 @@ def rename_function_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", + '200': "List[HistoryEntry]", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1532,10 +401,9 @@ def rename_function_id( @validate_call - def rename_function_id_with_http_info( + def get_function_history_with_http_info( self, - function_id: StrictInt, - function_rename: FunctionRename, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1548,15 +416,13 @@ def rename_function_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """(Deprecated) Rename Function + ) -> ApiResponse[List[HistoryEntry]]: + """Get function name history - Renames a function using the function ID Will record name change history + Returns the name change history for a function, newest first. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int - :param function_rename: (required) - :type function_rename: FunctionRename :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 @@ -1578,11 +444,9 @@ def rename_function_id_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("POST /v2/functions/rename/{function_id} is deprecated.", DeprecationWarning) - _param = self._rename_function_id_serialize( + _param = self._get_function_history_serialize( function_id=function_id, - function_rename=function_rename, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1590,8 +454,11 @@ def rename_function_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", + '200': "List[HistoryEntry]", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1605,10 +472,9 @@ def rename_function_id_with_http_info( @validate_call - def rename_function_id_without_preload_content( + def get_function_history_without_preload_content( self, - function_id: StrictInt, - function_rename: FunctionRename, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1622,14 +488,12 @@ def rename_function_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """(Deprecated) Rename Function + """Get function name history - Renames a function using the function ID Will record name change history + Returns the name change history for a function, newest first. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int - :param function_rename: (required) - :type function_rename: FunctionRename :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 @@ -1651,11 +515,9 @@ def rename_function_id_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("POST /v2/functions/rename/{function_id} is deprecated.", DeprecationWarning) - _param = self._rename_function_id_serialize( + _param = self._get_function_history_serialize( function_id=function_id, - function_rename=function_rename, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1663,8 +525,11 @@ def rename_function_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", + '200': "List[HistoryEntry]", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1673,10 +538,9 @@ def rename_function_id_without_preload_content( return response_data.response - def _rename_function_id_serialize( + def _get_function_history_serialize( self, function_id, - function_rename, _request_auth, _content_type, _headers, @@ -1704,8 +568,6 @@ def _rename_function_id_serialize( # process the header parameters # process the form parameters # process the body parameter - if function_rename is not None: - _body_params = function_rename # set the HTTP header `Accept` @@ -1716,19 +578,6 @@ def _rename_function_id_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1737,8 +586,8 @@ def _rename_function_id_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v2/functions/rename/{function_id}', + method='GET', + resource_path='/v3/functions/{function_id}/history', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1755,10 +604,10 @@ def _rename_function_id_serialize( @validate_call - def revert_function_name( + def rename_function( self, - function_id: StrictInt, - history_id: StrictInt, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], + rename_input_body: RenameInputBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1771,15 +620,15 @@ def revert_function_name( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """(Deprecated) Revert the function name + ) -> RenameOutputBody: + """Rename a function - Reverts the function name to a previous name using the function ID and history ID + Renames a single function and records the change in history. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int - :param history_id: (required) - :type history_id: int + :param rename_input_body: (required) + :type rename_input_body: RenameInputBody :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 @@ -1801,11 +650,10 @@ def revert_function_name( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("POST /v2/functions/history/{function_id}/{history_id} is deprecated.", DeprecationWarning) - _param = self._revert_function_name_serialize( + _param = self._rename_function_serialize( function_id=function_id, - history_id=history_id, + rename_input_body=rename_input_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1813,8 +661,11 @@ def revert_function_name( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", + '200': "RenameOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1828,10 +679,10 @@ def revert_function_name( @validate_call - def revert_function_name_with_http_info( + def rename_function_with_http_info( self, - function_id: StrictInt, - history_id: StrictInt, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], + rename_input_body: RenameInputBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1844,15 +695,15 @@ def revert_function_name_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """(Deprecated) Revert the function name + ) -> ApiResponse[RenameOutputBody]: + """Rename a function - Reverts the function name to a previous name using the function ID and history ID + Renames a single function and records the change in history. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int - :param history_id: (required) - :type history_id: int + :param rename_input_body: (required) + :type rename_input_body: RenameInputBody :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 @@ -1874,11 +725,10 @@ def revert_function_name_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("POST /v2/functions/history/{function_id}/{history_id} is deprecated.", DeprecationWarning) - _param = self._revert_function_name_serialize( + _param = self._rename_function_serialize( function_id=function_id, - history_id=history_id, + rename_input_body=rename_input_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1886,8 +736,11 @@ def revert_function_name_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", + '200': "RenameOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1901,10 +754,10 @@ def revert_function_name_with_http_info( @validate_call - def revert_function_name_without_preload_content( + def rename_function_without_preload_content( self, - function_id: StrictInt, - history_id: StrictInt, + function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], + rename_input_body: RenameInputBody, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1918,14 +771,14 @@ def revert_function_name_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """(Deprecated) Revert the function name + """Rename a function - Reverts the function name to a previous name using the function ID and history ID + Renames a single function and records the change in history. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - :param function_id: (required) + :param function_id: Function ID (required) :type function_id: int - :param history_id: (required) - :type history_id: int + :param rename_input_body: (required) + :type rename_input_body: RenameInputBody :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 @@ -1947,11 +800,10 @@ def revert_function_name_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("POST /v2/functions/history/{function_id}/{history_id} is deprecated.", DeprecationWarning) - _param = self._revert_function_name_serialize( + _param = self._rename_function_serialize( function_id=function_id, - history_id=history_id, + rename_input_body=rename_input_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1959,8 +811,11 @@ def revert_function_name_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '422': "BaseResponse", + '200': "RenameOutputBody", + '403': "APIError", + '404': "APIError", + '422': "APIError", + '500': "APIError", } response_data = self.api_client.call_api( *_param, @@ -1969,10 +824,10 @@ def revert_function_name_without_preload_content( return response_data.response - def _revert_function_name_serialize( + def _rename_function_serialize( self, function_id, - history_id, + rename_input_body, _request_auth, _content_type, _headers, @@ -1996,12 +851,12 @@ def _revert_function_name_serialize( # process the path parameters if function_id is not None: _path_params['function_id'] = function_id - if history_id is not None: - _path_params['history_id'] = history_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if rename_input_body is not None: + _body_params = rename_input_body # set the HTTP header `Accept` @@ -2012,6 +867,19 @@ def _revert_function_name_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2021,7 +889,7 @@ def _revert_function_name_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/functions/history/{function_id}/{history_id}', + resource_path='/v3/functions/{function_id}/rename', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2038,7 +906,7 @@ def _revert_function_name_serialize( @validate_call - def revert_function_name_0( + def revert_function_name( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], history_id: Annotated[int, Field(strict=True, ge=1, description="History ID to revert to")], @@ -2054,7 +922,7 @@ def revert_function_name_0( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Dict[str, object]: + ) -> object: """Revert function name Reverts a function's name to a previous value from its history. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found @@ -2085,7 +953,7 @@ def revert_function_name_0( :return: Returns the result object. """ # noqa: E501 - _param = self._revert_function_name_0_serialize( + _param = self._revert_function_name_serialize( function_id=function_id, history_id=history_id, _request_auth=_request_auth, @@ -2095,7 +963,7 @@ def revert_function_name_0( ) _response_types_map: Dict[str, Optional[str]] = { - '204': "Dict[str, object]", + '204': "object", '403': "APIError", '404': "APIError", '422': "APIError", @@ -2113,7 +981,7 @@ def revert_function_name_0( @validate_call - def revert_function_name_0_with_http_info( + def revert_function_name_with_http_info( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], history_id: Annotated[int, Field(strict=True, ge=1, description="History ID to revert to")], @@ -2129,7 +997,7 @@ def revert_function_name_0_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Dict[str, object]]: + ) -> ApiResponse[object]: """Revert function name Reverts a function's name to a previous value from its history. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found @@ -2160,7 +1028,7 @@ def revert_function_name_0_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._revert_function_name_0_serialize( + _param = self._revert_function_name_serialize( function_id=function_id, history_id=history_id, _request_auth=_request_auth, @@ -2170,7 +1038,7 @@ def revert_function_name_0_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': "Dict[str, object]", + '204': "object", '403': "APIError", '404': "APIError", '422': "APIError", @@ -2188,7 +1056,7 @@ def revert_function_name_0_with_http_info( @validate_call - def revert_function_name_0_without_preload_content( + def revert_function_name_without_preload_content( self, function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")], history_id: Annotated[int, Field(strict=True, ge=1, description="History ID to revert to")], @@ -2235,7 +1103,7 @@ def revert_function_name_0_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._revert_function_name_0_serialize( + _param = self._revert_function_name_serialize( function_id=function_id, history_id=history_id, _request_auth=_request_auth, @@ -2245,7 +1113,7 @@ def revert_function_name_0_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': "Dict[str, object]", + '204': "object", '403': "APIError", '404': "APIError", '422': "APIError", @@ -2258,7 +1126,7 @@ def revert_function_name_0_without_preload_content( return response_data.response - def _revert_function_name_0_serialize( + def _revert_function_name_serialize( self, function_id, history_id, diff --git a/revengai/api/models_api.py b/revengai/api/models_api.py deleted file mode 100644 index 0a9aa1e3..00000000 --- a/revengai/api/models_api.py +++ /dev/null @@ -1,285 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from revengai.models.base_response_models_response import BaseResponseModelsResponse - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class ModelsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_models( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseModelsResponse: - """Gets models - - Gets active models available for analysis. - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_models_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseModelsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_models_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseModelsResponse]: - """Gets models - - Gets active models available for analysis. - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_models_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseModelsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_models_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Gets models - - Gets active models available for analysis. - - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_models_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseModelsResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_models_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/models', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api/search_api.py b/revengai/api/search_api.py deleted file mode 100644 index e1932fea..00000000 --- a/revengai/api/search_api.py +++ /dev/null @@ -1,1491 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictBool, StrictInt, StrictStr -from typing import List, Optional -from typing_extensions import Annotated -from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy -from revengai.models.base_response_binary_search_response import BaseResponseBinarySearchResponse -from revengai.models.base_response_collection_search_response import BaseResponseCollectionSearchResponse -from revengai.models.base_response_function_search_response import BaseResponseFunctionSearchResponse -from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse -from revengai.models.filters import Filters -from revengai.models.order import Order - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class SearchApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def search_binaries( - self, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary being searched")] = None, - partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None, - tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, - model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, - user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None, - exclude_binary_id: Annotated[Optional[StrictInt], Field(description="A binary ID to exclude from the results")] = None, - user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to binaries owned by these user IDs")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseBinarySearchResponse: - """Binaries search - - Searches for a specific binary - - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param partial_name: The partial or full name of the binary being searched - :type partial_name: str - :param partial_sha256: The partial or full sha256 of the binary being searched - :type partial_sha256: str - :param tags: The tags to be searched for - :type tags: List[str] - :param model_name: The name of the model used to analyze the binary the function belongs to - :type model_name: str - :param user_files_only: Whether to only search user's uploaded files - :type user_files_only: bool - :param exclude_binary_id: A binary ID to exclude from the results - :type exclude_binary_id: int - :param user_ids: Restrict the search to binaries owned by these user IDs - :type user_ids: List[int] - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_binaries_serialize( - page=page, - page_size=page_size, - partial_name=partial_name, - partial_sha256=partial_sha256, - tags=tags, - model_name=model_name, - user_files_only=user_files_only, - exclude_binary_id=exclude_binary_id, - user_ids=user_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinarySearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def search_binaries_with_http_info( - self, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary being searched")] = None, - partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None, - tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, - model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, - user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None, - exclude_binary_id: Annotated[Optional[StrictInt], Field(description="A binary ID to exclude from the results")] = None, - user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to binaries owned by these user IDs")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseBinarySearchResponse]: - """Binaries search - - Searches for a specific binary - - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param partial_name: The partial or full name of the binary being searched - :type partial_name: str - :param partial_sha256: The partial or full sha256 of the binary being searched - :type partial_sha256: str - :param tags: The tags to be searched for - :type tags: List[str] - :param model_name: The name of the model used to analyze the binary the function belongs to - :type model_name: str - :param user_files_only: Whether to only search user's uploaded files - :type user_files_only: bool - :param exclude_binary_id: A binary ID to exclude from the results - :type exclude_binary_id: int - :param user_ids: Restrict the search to binaries owned by these user IDs - :type user_ids: List[int] - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_binaries_serialize( - page=page, - page_size=page_size, - partial_name=partial_name, - partial_sha256=partial_sha256, - tags=tags, - model_name=model_name, - user_files_only=user_files_only, - exclude_binary_id=exclude_binary_id, - user_ids=user_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinarySearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def search_binaries_without_preload_content( - self, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary being searched")] = None, - partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None, - tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, - model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, - user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None, - exclude_binary_id: Annotated[Optional[StrictInt], Field(description="A binary ID to exclude from the results")] = None, - user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to binaries owned by these user IDs")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Binaries search - - Searches for a specific binary - - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param partial_name: The partial or full name of the binary being searched - :type partial_name: str - :param partial_sha256: The partial or full sha256 of the binary being searched - :type partial_sha256: str - :param tags: The tags to be searched for - :type tags: List[str] - :param model_name: The name of the model used to analyze the binary the function belongs to - :type model_name: str - :param user_files_only: Whether to only search user's uploaded files - :type user_files_only: bool - :param exclude_binary_id: A binary ID to exclude from the results - :type exclude_binary_id: int - :param user_ids: Restrict the search to binaries owned by these user IDs - :type user_ids: List[int] - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_binaries_serialize( - page=page, - page_size=page_size, - partial_name=partial_name, - partial_sha256=partial_sha256, - tags=tags, - model_name=model_name, - user_files_only=user_files_only, - exclude_binary_id=exclude_binary_id, - user_ids=user_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinarySearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _search_binaries_serialize( - self, - page, - page_size, - partial_name, - partial_sha256, - tags, - model_name, - user_files_only, - exclude_binary_id, - user_ids, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'tags': 'multi', - 'user_ids': 'multi', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if partial_name is not None: - - _query_params.append(('partial_name', partial_name)) - - if partial_sha256 is not None: - - _query_params.append(('partial_sha256', partial_sha256)) - - if tags is not None: - - _query_params.append(('tags', tags)) - - if model_name is not None: - - _query_params.append(('model_name', model_name)) - - if user_files_only is not None: - - _query_params.append(('user_files_only', user_files_only)) - - if exclude_binary_id is not None: - - _query_params.append(('exclude_binary_id', exclude_binary_id)) - - if user_ids is not None: - - _query_params.append(('user_ids', user_ids)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/search/binaries', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def search_collections( - self, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - partial_collection_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the collection being searched")] = None, - partial_binary_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary belonging to the collection")] = None, - partial_binary_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary belonging to the collection")] = None, - tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, - filters: Annotated[Optional[List[Filters]], Field(description="The filters to be used for the search")] = None, - order_by: Annotated[Optional[AppApiRestV2CollectionsEnumsOrderBy], Field(description="The field to sort the order by in the results")] = None, - order_by_direction: Annotated[Optional[Order], Field(description="The order direction in which to return results")] = None, - user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to collections owned by these user IDs")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCollectionSearchResponse: - """Collections search - - Searches for a specific collection - - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param partial_collection_name: The partial or full name of the collection being searched - :type partial_collection_name: str - :param partial_binary_name: The partial or full name of the binary belonging to the collection - :type partial_binary_name: str - :param partial_binary_sha256: The partial or full sha256 of the binary belonging to the collection - :type partial_binary_sha256: str - :param tags: The tags to be searched for - :type tags: List[str] - :param filters: The filters to be used for the search - :type filters: List[Filters] - :param order_by: The field to sort the order by in the results - :type order_by: AppApiRestV2CollectionsEnumsOrderBy - :param order_by_direction: The order direction in which to return results - :type order_by_direction: Order - :param user_ids: Restrict the search to collections owned by these user IDs - :type user_ids: List[int] - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_collections_serialize( - page=page, - page_size=page_size, - partial_collection_name=partial_collection_name, - partial_binary_name=partial_binary_name, - partial_binary_sha256=partial_binary_sha256, - tags=tags, - filters=filters, - order_by=order_by, - order_by_direction=order_by_direction, - user_ids=user_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionSearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def search_collections_with_http_info( - self, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - partial_collection_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the collection being searched")] = None, - partial_binary_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary belonging to the collection")] = None, - partial_binary_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary belonging to the collection")] = None, - tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, - filters: Annotated[Optional[List[Filters]], Field(description="The filters to be used for the search")] = None, - order_by: Annotated[Optional[AppApiRestV2CollectionsEnumsOrderBy], Field(description="The field to sort the order by in the results")] = None, - order_by_direction: Annotated[Optional[Order], Field(description="The order direction in which to return results")] = None, - user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to collections owned by these user IDs")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCollectionSearchResponse]: - """Collections search - - Searches for a specific collection - - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param partial_collection_name: The partial or full name of the collection being searched - :type partial_collection_name: str - :param partial_binary_name: The partial or full name of the binary belonging to the collection - :type partial_binary_name: str - :param partial_binary_sha256: The partial or full sha256 of the binary belonging to the collection - :type partial_binary_sha256: str - :param tags: The tags to be searched for - :type tags: List[str] - :param filters: The filters to be used for the search - :type filters: List[Filters] - :param order_by: The field to sort the order by in the results - :type order_by: AppApiRestV2CollectionsEnumsOrderBy - :param order_by_direction: The order direction in which to return results - :type order_by_direction: Order - :param user_ids: Restrict the search to collections owned by these user IDs - :type user_ids: List[int] - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_collections_serialize( - page=page, - page_size=page_size, - partial_collection_name=partial_collection_name, - partial_binary_name=partial_binary_name, - partial_binary_sha256=partial_binary_sha256, - tags=tags, - filters=filters, - order_by=order_by, - order_by_direction=order_by_direction, - user_ids=user_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionSearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def search_collections_without_preload_content( - self, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - partial_collection_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the collection being searched")] = None, - partial_binary_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary belonging to the collection")] = None, - partial_binary_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary belonging to the collection")] = None, - tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, - filters: Annotated[Optional[List[Filters]], Field(description="The filters to be used for the search")] = None, - order_by: Annotated[Optional[AppApiRestV2CollectionsEnumsOrderBy], Field(description="The field to sort the order by in the results")] = None, - order_by_direction: Annotated[Optional[Order], Field(description="The order direction in which to return results")] = None, - user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to collections owned by these user IDs")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Collections search - - Searches for a specific collection - - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param partial_collection_name: The partial or full name of the collection being searched - :type partial_collection_name: str - :param partial_binary_name: The partial or full name of the binary belonging to the collection - :type partial_binary_name: str - :param partial_binary_sha256: The partial or full sha256 of the binary belonging to the collection - :type partial_binary_sha256: str - :param tags: The tags to be searched for - :type tags: List[str] - :param filters: The filters to be used for the search - :type filters: List[Filters] - :param order_by: The field to sort the order by in the results - :type order_by: AppApiRestV2CollectionsEnumsOrderBy - :param order_by_direction: The order direction in which to return results - :type order_by_direction: Order - :param user_ids: Restrict the search to collections owned by these user IDs - :type user_ids: List[int] - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_collections_serialize( - page=page, - page_size=page_size, - partial_collection_name=partial_collection_name, - partial_binary_name=partial_binary_name, - partial_binary_sha256=partial_binary_sha256, - tags=tags, - filters=filters, - order_by=order_by, - order_by_direction=order_by_direction, - user_ids=user_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCollectionSearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _search_collections_serialize( - self, - page, - page_size, - partial_collection_name, - partial_binary_name, - partial_binary_sha256, - tags, - filters, - order_by, - order_by_direction, - user_ids, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'tags': 'multi', - 'filters': 'multi', - 'user_ids': 'multi', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if partial_collection_name is not None: - - _query_params.append(('partial_collection_name', partial_collection_name)) - - if partial_binary_name is not None: - - _query_params.append(('partial_binary_name', partial_binary_name)) - - if partial_binary_sha256 is not None: - - _query_params.append(('partial_binary_sha256', partial_binary_sha256)) - - if tags is not None: - - _query_params.append(('tags', tags)) - - if filters is not None: - - _query_params.append(('filters', filters)) - - if order_by is not None: - - _query_params.append(('order_by', order_by.value)) - - if order_by_direction is not None: - - _query_params.append(('order_by_direction', order_by_direction.value)) - - if user_ids is not None: - - _query_params.append(('user_ids', user_ids)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/search/collections', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def search_functions( - self, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the function being searched")] = None, - model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionSearchResponse: - """Functions search - - Searches for a specific function - - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param partial_name: The partial or full name of the function being searched - :type partial_name: str - :param model_name: The name of the model used to analyze the binary the function belongs to - :type model_name: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_functions_serialize( - page=page, - page_size=page_size, - partial_name=partial_name, - model_name=model_name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionSearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def search_functions_with_http_info( - self, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the function being searched")] = None, - model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionSearchResponse]: - """Functions search - - Searches for a specific function - - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param partial_name: The partial or full name of the function being searched - :type partial_name: str - :param model_name: The name of the model used to analyze the binary the function belongs to - :type model_name: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_functions_serialize( - page=page, - page_size=page_size, - partial_name=partial_name, - model_name=model_name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionSearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def search_functions_without_preload_content( - self, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the function being searched")] = None, - model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Functions search - - Searches for a specific function - - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param partial_name: The partial or full name of the function being searched - :type partial_name: str - :param model_name: The name of the model used to analyze the binary the function belongs to - :type model_name: str - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_functions_serialize( - page=page, - page_size=page_size, - partial_name=partial_name, - model_name=model_name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionSearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _search_functions_serialize( - self, - page, - page_size, - partial_name, - model_name, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if partial_name is not None: - - _query_params.append(('partial_name', partial_name)) - - if model_name is not None: - - _query_params.append(('model_name', model_name)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/search/functions', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def search_tags( - self, - partial_name: Annotated[StrictStr, Field(description="The partial or full name of the tag to search for")], - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseTagSearchResponse: - """Tags search - - Searches for tags by there name - - :param partial_name: The partial or full name of the tag to search for (required) - :type partial_name: str - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_tags_serialize( - partial_name=partial_name, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseTagSearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def search_tags_with_http_info( - self, - partial_name: Annotated[StrictStr, Field(description="The partial or full name of the tag to search for")], - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseTagSearchResponse]: - """Tags search - - Searches for tags by there name - - :param partial_name: The partial or full name of the tag to search for (required) - :type partial_name: str - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_tags_serialize( - partial_name=partial_name, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseTagSearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def search_tags_without_preload_content( - self, - partial_name: Annotated[StrictStr, Field(description="The partial or full name of the tag to search for")], - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Tags search - - Searches for tags by there name - - :param partial_name: The partial or full name of the tag to search for (required) - :type partial_name: str - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :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 - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_tags_serialize( - partial_name=partial_name, - page=page, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseTagSearchResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _search_tags_serialize( - self, - partial_name, - page, - page_size, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if partial_name is not None: - - _query_params.append(('partial_name', partial_name)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey', - 'bearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v2/search/tags', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/models/__init__.py b/revengai/models/__init__.py index 7f78b1fb..19835407 100644 --- a/revengai/models/__init__.py +++ b/revengai/models/__init__.py @@ -22,118 +22,21 @@ from revengai.models.add_team_member_input_body import AddTeamMemberInputBody from revengai.models.add_user_string_input_body import AddUserStringInputBody from revengai.models.add_user_string_to_function_input_body import AddUserStringToFunctionInputBody -from revengai.models.additional_details_status_response import AdditionalDetailsStatusResponse -from revengai.models.ai_decompilation_rating import AiDecompilationRating -from revengai.models.analysis_access_info import AnalysisAccessInfo from revengai.models.analysis_basic_info_output_body import AnalysisBasicInfoOutputBody -from revengai.models.analysis_bulk_add_tags_request import AnalysisBulkAddTagsRequest -from revengai.models.analysis_bulk_add_tags_response import AnalysisBulkAddTagsResponse -from revengai.models.analysis_bulk_add_tags_response_item import AnalysisBulkAddTagsResponseItem -from revengai.models.analysis_config import AnalysisConfig -from revengai.models.analysis_config_snapshot import AnalysisConfigSnapshot -from revengai.models.analysis_create_request import AnalysisCreateRequest -from revengai.models.analysis_create_response import AnalysisCreateResponse -from revengai.models.analysis_detail_response import AnalysisDetailResponse from revengai.models.analysis_function_entry import AnalysisFunctionEntry -from revengai.models.analysis_function_mapping import AnalysisFunctionMapping -from revengai.models.analysis_functions import AnalysisFunctions -from revengai.models.analysis_functions_list import AnalysisFunctionsList from revengai.models.analysis_log_message import AnalysisLogMessage from revengai.models.analysis_logs import AnalysisLogs -from revengai.models.analysis_record import AnalysisRecord from revengai.models.analysis_record_body import AnalysisRecordBody from revengai.models.analysis_report import AnalysisReport -from revengai.models.analysis_scope import AnalysisScope from revengai.models.analysis_string_function import AnalysisStringFunction -from revengai.models.analysis_string_input import AnalysisStringInput from revengai.models.analysis_string_item import AnalysisStringItem -from revengai.models.analysis_strings_response import AnalysisStringsResponse -from revengai.models.analysis_strings_status_response import AnalysisStringsStatusResponse from revengai.models.analysis_tag_body import AnalysisTagBody -from revengai.models.analysis_tags import AnalysisTags -from revengai.models.analysis_update_request import AnalysisUpdateRequest -from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest -from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse from revengai.models.api_call import ApiCall -from revengai.models.app_api_rest_v2_agent_schema_capability import AppApiRestV2AgentSchemaCapability -from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy -from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy -from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction -from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction -from revengai.models.app_api_rest_v2_info_types_capability import AppApiRestV2InfoTypesCapability from revengai.models.archive_content_entry import ArchiveContentEntry -from revengai.models.argument import Argument from revengai.models.artifact import Artifact from revengai.models.attempt_failed_event import AttemptFailedEvent from revengai.models.attempt_started_event import AttemptStartedEvent -from revengai.models.auto_run_agents import AutoRunAgents from revengai.models.auto_unstrip_status_output_body import AutoUnstripStatusOutputBody -from revengai.models.base_response import BaseResponse -from revengai.models.base_response_additional_details_status_response import BaseResponseAdditionalDetailsStatusResponse -from revengai.models.base_response_analysis_bulk_add_tags_response import BaseResponseAnalysisBulkAddTagsResponse -from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse -from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse -from revengai.models.base_response_analysis_function_mapping import BaseResponseAnalysisFunctionMapping -from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions -from revengai.models.base_response_analysis_functions_list import BaseResponseAnalysisFunctionsList -from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse -from revengai.models.base_response_analysis_strings_status_response import BaseResponseAnalysisStringsStatusResponse -from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags -from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse -from revengai.models.base_response_basic import BaseResponseBasic -from revengai.models.base_response_binaries_related_status_response import BaseResponseBinariesRelatedStatusResponse -from revengai.models.base_response_binary_additional_response import BaseResponseBinaryAdditionalResponse -from revengai.models.base_response_binary_details_response import BaseResponseBinaryDetailsResponse -from revengai.models.base_response_binary_externals_response import BaseResponseBinaryExternalsResponse -from revengai.models.base_response_binary_search_response import BaseResponseBinarySearchResponse -from revengai.models.base_response_bool import BaseResponseBool -from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse -from revengai.models.base_response_capabilities import BaseResponseCapabilities -from revengai.models.base_response_capabilities_agent_response import BaseResponseCapabilitiesAgentResponse -from revengai.models.base_response_child_binaries_response import BaseResponseChildBinariesResponse -from revengai.models.base_response_collection_binaries_update_response import BaseResponseCollectionBinariesUpdateResponse -from revengai.models.base_response_collection_response import BaseResponseCollectionResponse -from revengai.models.base_response_collection_search_response import BaseResponseCollectionSearchResponse -from revengai.models.base_response_collection_tags_update_response import BaseResponseCollectionTagsUpdateResponse -from revengai.models.base_response_comment_response import BaseResponseCommentResponse -from revengai.models.base_response_config_response import BaseResponseConfigResponse -from revengai.models.base_response_created import BaseResponseCreated -from revengai.models.base_response_dict import BaseResponseDict -from revengai.models.base_response_external_response import BaseResponseExternalResponse -from revengai.models.base_response_function_blocks_response import BaseResponseFunctionBlocksResponse -from revengai.models.base_response_function_capability_response import BaseResponseFunctionCapabilityResponse -from revengai.models.base_response_function_data_types import BaseResponseFunctionDataTypes -from revengai.models.base_response_function_data_types_list import BaseResponseFunctionDataTypesList -from revengai.models.base_response_function_search_response import BaseResponseFunctionSearchResponse -from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse -from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse -from revengai.models.base_response_generate_function_data_types import BaseResponseGenerateFunctionDataTypes -from revengai.models.base_response_generation_status_list import BaseResponseGenerationStatusList -from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse -from revengai.models.base_response_list_callees_caller_functions_response import BaseResponseListCalleesCallerFunctionsResponse -from revengai.models.base_response_list_collection_results import BaseResponseListCollectionResults -from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse -from revengai.models.base_response_list_die_match import BaseResponseListDieMatch -from revengai.models.base_response_list_function_name_history import BaseResponseListFunctionNameHistory -from revengai.models.base_response_list_sbom import BaseResponseListSBOM -from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse -from revengai.models.base_response_logs import BaseResponseLogs -from revengai.models.base_response_models_response import BaseResponseModelsResponse -from revengai.models.base_response_params import BaseResponseParams -from revengai.models.base_response_queued_workflow_task_response import BaseResponseQueuedWorkflowTaskResponse -from revengai.models.base_response_recent import BaseResponseRecent -from revengai.models.base_response_report_analysis_response import BaseResponseReportAnalysisResponse -from revengai.models.base_response_status import BaseResponseStatus -from revengai.models.base_response_str import BaseResponseStr -from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse -from revengai.models.base_response_task_response import BaseResponseTaskResponse -from revengai.models.base_response_task_status_response import BaseResponseTaskStatusResponse -from revengai.models.base_response_triage_report_response import BaseResponseTriageReportResponse -from revengai.models.base_response_union_get_ai_decompilation_rating_response_none_type import BaseResponseUnionGetAiDecompilationRatingResponseNoneType -from revengai.models.base_response_upload_response import BaseResponseUploadResponse -from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities -from revengai.models.base_response_xref_response import BaseResponseXrefResponse -from revengai.models.basic import Basic from revengai.models.batch_binary_match_result import BatchBinaryMatchResult from revengai.models.batch_matching_output_body import BatchMatchingOutputBody from revengai.models.batch_rename_input_body import BatchRenameInputBody @@ -143,57 +46,21 @@ from revengai.models.batch_update_data_types_item import BatchUpdateDataTypesItem from revengai.models.batch_update_data_types_output_body import BatchUpdateDataTypesOutputBody from revengai.models.batch_update_data_types_result import BatchUpdateDataTypesResult -from revengai.models.binaries_related_status_response import BinariesRelatedStatusResponse -from revengai.models.binaries_task_status import BinariesTaskStatus from revengai.models.binary import Binary -from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse -from revengai.models.binary_additional_response import BinaryAdditionalResponse -from revengai.models.binary_config import BinaryConfig -from revengai.models.binary_details_response import BinaryDetailsResponse -from revengai.models.binary_externals_response import BinaryExternalsResponse -from revengai.models.binary_search_response import BinarySearchResponse -from revengai.models.binary_search_result import BinarySearchResult -from revengai.models.binary_task_status import BinaryTaskStatus from revengai.models.bulk_create_user_result import BulkCreateUserResult from revengai.models.bulk_create_users_output_body import BulkCreateUsersOutputBody -from revengai.models.bulk_delete_analyses_request import BulkDeleteAnalysesRequest from revengai.models.call_edge import CallEdge from revengai.models.call_edges_output_body import CallEdgesOutputBody -from revengai.models.callee_function_info import CalleeFunctionInfo -from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse -from revengai.models.caller_function_info import CallerFunctionInfo from revengai.models.canonical_name import CanonicalName from revengai.models.canonicalize_names_input_body import CanonicalizeNamesInputBody from revengai.models.canonicalize_names_output_body import CanonicalizeNamesOutputBody -from revengai.models.capabilities import Capabilities -from revengai.models.capabilities_agent_response import CapabilitiesAgentResponse from revengai.models.capabilities_output_body import CapabilitiesOutputBody from revengai.models.capability_entry import CapabilityEntry -from revengai.models.child_binaries_response import ChildBinariesResponse -from revengai.models.code_signature_model import CodeSignatureModel -from revengai.models.collection_binaries_update_request import CollectionBinariesUpdateRequest -from revengai.models.collection_binaries_update_response import CollectionBinariesUpdateResponse -from revengai.models.collection_binary_response import CollectionBinaryResponse -from revengai.models.collection_create_request import CollectionCreateRequest -from revengai.models.collection_list_item import CollectionListItem from revengai.models.collection_list_item_body import CollectionListItemBody -from revengai.models.collection_response import CollectionResponse -from revengai.models.collection_response_binaries_inner import CollectionResponseBinariesInner -from revengai.models.collection_scope import CollectionScope -from revengai.models.collection_search_response import CollectionSearchResponse -from revengai.models.collection_search_result import CollectionSearchResult -from revengai.models.collection_tags_update_request import CollectionTagsUpdateRequest -from revengai.models.collection_tags_update_response import CollectionTagsUpdateResponse -from revengai.models.collection_update_request import CollectionUpdateRequest -from revengai.models.comment_base import CommentBase -from revengai.models.comment_response import CommentResponse -from revengai.models.comment_update_request import CommentUpdateRequest from revengai.models.comments_data import CommentsData -from revengai.models.config_response import ConfigResponse from revengai.models.confirm_tool_input_body import ConfirmToolInputBody from revengai.models.connection import Connection from revengai.models.console_output_entry import ConsoleOutputEntry -from revengai.models.context import Context from revengai.models.conversation import Conversation from revengai.models.conversation_context import ConversationContext from revengai.models.conversation_with_events import ConversationWithEvents @@ -209,30 +76,15 @@ from revengai.models.create_portal_session_input_body import CreatePortalSessionInputBody from revengai.models.create_team_input_body import CreateTeamInputBody from revengai.models.create_user_input_body import CreateUserInputBody -from revengai.models.created import Created from revengai.models.data_types_entry import DataTypesEntry from revengai.models.decomp_failed_event import DecompFailedEvent from revengai.models.decomp_finished_event import DecompFinishedEvent -from revengai.models.decompilation_comment_context import DecompilationCommentContext from revengai.models.decompilation_data import DecompilationData -from revengai.models.die_match import DieMatch from revengai.models.disassembly_output_body import DisassemblyOutputBody from revengai.models.dns_query import DnsQuery from revengai.models.drakvuf_file_metadata import DrakvufFileMetadata -from revengai.models.dynamic_execution_status import DynamicExecutionStatus from revengai.models.dynamic_execution_status_response import DynamicExecutionStatusResponse -from revengai.models.elf_import_model import ELFImportModel -from revengai.models.elf_model import ELFModel -from revengai.models.elf_relocation import ELFRelocation -from revengai.models.elf_section import ELFSection -from revengai.models.elf_security import ELFSecurity -from revengai.models.elf_segment import ELFSegment -from revengai.models.elf_symbol import ELFSymbol -from revengai.models.elf_dynamic_entry import ElfDynamicEntry -from revengai.models.entrypoint_model import EntrypointModel -from revengai.models.enumeration import Enumeration from revengai.models.error_body import ErrorBody -from revengai.models.error_model import ErrorModel from revengai.models.event import Event from revengai.models.event_attempt_failed import EventAttemptFailed from revengai.models.event_attempt_started import EventAttemptStarted @@ -261,76 +113,36 @@ from revengai.models.event_toolconfirmationrequired import EventTOOLCONFIRMATIONREQUIRED from revengai.models.event_warning import EventWarning from revengai.models.example import Example -from revengai.models.export_model import ExportModel -from revengai.models.external_response import ExternalResponse from revengai.models.extracted_url import ExtractedURL from revengai.models.file_activity_entry import FileActivityEntry -from revengai.models.file_format import FileFormat -from revengai.models.file_hashes import FileHashes -from revengai.models.file_metadata import FileMetadata -from revengai.models.filters import Filters from revengai.models.form_file import FormFile from revengai.models.function_argument import FunctionArgument -from revengai.models.function_block_destination_response import FunctionBlockDestinationResponse -from revengai.models.function_block_response import FunctionBlockResponse -from revengai.models.function_blocks_response import FunctionBlocksResponse -from revengai.models.function_boundary import FunctionBoundary from revengai.models.function_call_edges import FunctionCallEdges -from revengai.models.function_capability_response import FunctionCapabilityResponse -from revengai.models.function_data_types import FunctionDataTypes -from revengai.models.function_data_types_list import FunctionDataTypesList -from revengai.models.function_data_types_list_item import FunctionDataTypesListItem -from revengai.models.function_data_types_params import FunctionDataTypesParams -from revengai.models.function_data_types_status import FunctionDataTypesStatus from revengai.models.function_dependency import FunctionDependency from revengai.models.function_details_output_body import FunctionDetailsOutputBody from revengai.models.function_header import FunctionHeader from revengai.models.function_info import FunctionInfo -from revengai.models.function_list_item import FunctionListItem -from revengai.models.function_local_variable_response import FunctionLocalVariableResponse -from revengai.models.function_mapping import FunctionMapping from revengai.models.function_match import FunctionMatch -from revengai.models.function_name_history import FunctionNameHistory -from revengai.models.function_param_response import FunctionParamResponse -from revengai.models.function_rename import FunctionRename -from revengai.models.function_rename_map import FunctionRenameMap -from revengai.models.function_search_response import FunctionSearchResponse -from revengai.models.function_search_result import FunctionSearchResult -from revengai.models.function_source_type import FunctionSourceType from revengai.models.function_stack_variable import FunctionStackVariable -from revengai.models.function_string import FunctionString from revengai.models.function_string_item import FunctionStringItem -from revengai.models.function_strings_response import FunctionStringsResponse from revengai.models.function_type import FunctionType -from revengai.models.functions_detail_response import FunctionsDetailResponse -from revengai.models.functions_list_rename import FunctionsListRename -from revengai.models.generate_function_data_types import GenerateFunctionDataTypes from revengai.models.generate_pdf_output_body import GeneratePDFOutputBody -from revengai.models.generation_status_list import GenerationStatusList from revengai.models.get_additional_details_output_body import GetAdditionalDetailsOutputBody from revengai.models.get_additional_details_status_output_body import GetAdditionalDetailsStatusOutputBody -from revengai.models.get_ai_decompilation_rating_response import GetAiDecompilationRatingResponse from revengai.models.get_analysis_strings_status_output_body import GetAnalysisStringsStatusOutputBody from revengai.models.get_collection_output_body import GetCollectionOutputBody from revengai.models.get_matches_output_body import GetMatchesOutputBody from revengai.models.get_matches_status_output_body import GetMatchesStatusOutputBody from revengai.models.get_products_output_body import GetProductsOutputBody -from revengai.models.get_public_user_response import GetPublicUserResponse from revengai.models.get_subscription_output_body import GetSubscriptionOutputBody -from revengai.models.global_variable import GlobalVariable from revengai.models.history_entry import HistoryEntry from revengai.models.http_request import HttpRequest -from revengai.models.ioc import IOC -from revengai.models.isa import ISA -from revengai.models.icon_model import IconModel -from revengai.models.import_model import ImportModel from revengai.models.imported_function_caller_entry import ImportedFunctionCallerEntry from revengai.models.imported_function_detail_output_body import ImportedFunctionDetailOutputBody from revengai.models.imported_function_entry import ImportedFunctionEntry from revengai.models.indirect_call_site import IndirectCallSite from revengai.models.indirect_call_sites_output_body import IndirectCallSitesOutputBody from revengai.models.inline_comment import InlineComment -from revengai.models.insert_analysis_log_request import InsertAnalysisLogRequest from revengai.models.invite_user_input_body import InviteUserInputBody from revengai.models.issuer_allowed_domain import IssuerAllowedDomain from revengai.models.list_analyses_output_body import ListAnalysesOutputBody @@ -338,7 +150,6 @@ from revengai.models.list_analysis_functions_output_body import ListAnalysisFunctionsOutputBody from revengai.models.list_analysis_strings_output_body import ListAnalysisStringsOutputBody from revengai.models.list_archive_contents_output_body import ListArchiveContentsOutputBody -from revengai.models.list_collection_results import ListCollectionResults from revengai.models.list_collections_output_body import ListCollectionsOutputBody from revengai.models.list_example_analyses_output_body import ListExampleAnalysesOutputBody from revengai.models.list_function_strings_output_body import ListFunctionStringsOutputBody @@ -347,30 +158,19 @@ from revengai.models.list_teams_output_body import ListTeamsOutputBody from revengai.models.list_users_output_body import ListUsersOutputBody from revengai.models.location_output_body import LocationOutputBody -from revengai.models.logs import Logs -from revengai.models.mitre_technique import MITRETechnique from revengai.models.match_filters import MatchFilters from revengai.models.matched_function import MatchedFunction from revengai.models.memdump_entry import MemdumpEntry from revengai.models.message_body import MessageBody -from revengai.models.meta_model import MetaModel -from revengai.models.model_name import ModelName -from revengai.models.models_response import ModelsResponse from revengai.models.module_load_entry import ModuleLoadEntry from revengai.models.mutex_entry import MutexEntry from revengai.models.name_confidence import NameConfidence -from revengai.models.name_source_type import NameSourceType from revengai.models.network_activity import NetworkActivity from revengai.models.oidc_callback_input_body import OIDCCallbackInputBody -from revengai.models.order import Order from revengai.models.organisation import Organisation from revengai.models.organisation_group import OrganisationGroup from revengai.models.organisation_issuer import OrganisationIssuer from revengai.models.organisation_owner import OrganisationOwner -from revengai.models.pdb_debug_model import PDBDebugModel -from revengai.models.pe_model import PEModel -from revengai.models.pagination_model import PaginationModel -from revengai.models.params import Params from revengai.models.password_reset_input_body import PasswordResetInputBody from revengai.models.patch_collection_binaries_input_body import PatchCollectionBinariesInputBody from revengai.models.patch_collection_binaries_output_body import PatchCollectionBinariesOutputBody @@ -381,7 +181,6 @@ from revengai.models.patch_comment_body import PatchCommentBody from revengai.models.pcap_body_info import PcapBodyInfo from revengai.models.permissions import Permissions -from revengai.models.platform import Platform from revengai.models.price_output import PriceOutput from revengai.models.price_summary import PriceSummary from revengai.models.process_activity_entry import ProcessActivityEntry @@ -392,43 +191,24 @@ from revengai.models.product_summary import ProductSummary from revengai.models.progress_message import ProgressMessage from revengai.models.prose_event import ProseEvent -from revengai.models.put_analysis_strings_request import PutAnalysisStringsRequest -from revengai.models.queued_workflow_task_response import QueuedWorkflowTaskResponse -from revengai.models.re_analysis_form import ReAnalysisForm -from revengai.models.recent import Recent from revengai.models.refresh_body import RefreshBody from revengai.models.regenerate_output_body import RegenerateOutputBody from revengai.models.register_user_input_body import RegisterUserInputBody from revengai.models.registry_operation import RegistryOperation -from revengai.models.relative_binary_response import RelativeBinaryResponse from revengai.models.rename_applied_event import RenameAppliedEvent from revengai.models.rename_input_body import RenameInputBody from revengai.models.rename_output_body import RenameOutputBody from revengai.models.replacement_value import ReplacementValue -from revengai.models.report_analysis_response import ReportAnalysisResponse from revengai.models.report_event import ReportEvent from revengai.models.report_info import ReportInfo from revengai.models.report_options import ReportOptions from revengai.models.revoke_body import RevokeBody -from revengai.models.sbom import SBOM -from revengai.models.sbom_package import SBOMPackage from revengai.models.sso_provider import SSOProvider from revengai.models.sso_providers_output_body import SSOProvidersOutputBody -from revengai.models.sandbox_options import SandboxOptions -from revengai.models.sandbox_start_method import SandboxStartMethod -from revengai.models.sandbox_timeout import SandboxTimeout from revengai.models.scheduled_task_entry import ScheduledTaskEntry -from revengai.models.scrape_third_party_config import ScrapeThirdPartyConfig -from revengai.models.section_model import SectionModel -from revengai.models.security_model import SecurityModel -from revengai.models.segment_info import SegmentInfo from revengai.models.send_message_request import SendMessageRequest from revengai.models.service_entry import ServiceEntry from revengai.models.session_output_body import SessionOutputBody -from revengai.models.single_code_certificate_model import SingleCodeCertificateModel -from revengai.models.single_code_signature_model import SingleCodeSignatureModel -from revengai.models.single_pdb_entry_model import SinglePDBEntryModel -from revengai.models.single_section_model import SingleSectionModel from revengai.models.source_delta_event import SourceDeltaEvent from revengai.models.source_reset_event import SourceResetEvent from revengai.models.sse_event_context_compacted_data import SseEventContextCompactedData @@ -448,44 +228,23 @@ from revengai.models.sse_event_tool_call_result_data import SseEventToolCallResultData from revengai.models.sse_event_tool_call_start_data import SseEventToolCallStartData from revengai.models.sse_event_tool_confirmation_required_data import SseEventToolConfirmationRequiredData -from revengai.models.stack_variable import StackVariable from revengai.models.start_batch_matching_input_body import StartBatchMatchingInputBody from revengai.models.start_matching_for_analysis_input_body import StartMatchingForAnalysisInputBody from revengai.models.start_matching_for_functions_input_body import StartMatchingForFunctionsInputBody from revengai.models.start_matching_output_body import StartMatchingOutputBody from revengai.models.startup_info import StartupInfo -from revengai.models.status_input import StatusInput -from revengai.models.status_output import StatusOutput from revengai.models.status_response import StatusResponse from revengai.models.stream_ai_decompilation200_response_inner import StreamAiDecompilation200ResponseInner from revengai.models.stream_events200_response_inner import StreamEvents200ResponseInner -from revengai.models.string_functions import StringFunctions -from revengai.models.string_source import StringSource -from revengai.models.structure import Structure -from revengai.models.structure_member import StructureMember -from revengai.models.submit_user_feedback_request import SubmitUserFeedbackRequest from revengai.models.summary_data import SummaryData -from revengai.models.symbols import Symbols -from revengai.models.tag import Tag -from revengai.models.tag_item import TagItem -from revengai.models.tag_response import TagResponse -from revengai.models.tag_search_response import TagSearchResponse -from revengai.models.tag_search_result import TagSearchResult -from revengai.models.task_response import TaskResponse -from revengai.models.task_status import TaskStatus -from revengai.models.task_status_response import TaskStatusResponse from revengai.models.tcp_carved_file import TcpCarvedFile from revengai.models.team import Team from revengai.models.team_member import TeamMember -from revengai.models.timestamp_model import TimestampModel from revengai.models.token_input_body import TokenInputBody from revengai.models.token_response import TokenResponse from revengai.models.tokenised_data import TokenisedData -from revengai.models.triage_function_response import TriageFunctionResponse -from revengai.models.triage_report_response import TriageReportResponse from revengai.models.trigger_dynamic_execution_input_body import TriggerDynamicExecutionInputBody from revengai.models.ttp import Ttp -from revengai.models.type_definition import TypeDefinition from revengai.models.update_data_types_input_body import UpdateDataTypesInputBody from revengai.models.update_data_types_output_body import UpdateDataTypesOutputBody from revengai.models.update_issuer_input_body import UpdateIssuerInputBody @@ -496,26 +255,12 @@ from revengai.models.update_user_credits_input_body import UpdateUserCreditsInputBody from revengai.models.update_user_input_body import UpdateUserInputBody from revengai.models.update_user_password_input_body import UpdateUserPasswordInputBody -from revengai.models.upload_file_type import UploadFileType -from revengai.models.upload_response import UploadResponse -from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest from revengai.models.upsert_overrides_data import UpsertOverridesData from revengai.models.upsert_overrides_input_body import UpsertOverridesInputBody from revengai.models.user import User -from revengai.models.user_activity_response import UserActivityResponse from revengai.models.user_credits import UserCredits from revengai.models.user_identity import UserIdentity from revengai.models.user_profile import UserProfile -from revengai.models.v2_function_header import V2FunctionHeader -from revengai.models.v2_function_info import V2FunctionInfo -from revengai.models.v2_function_info_func_deps_inner import V2FunctionInfoFuncDepsInner -from revengai.models.v2_function_type import V2FunctionType -from revengai.models.vulnerabilities import Vulnerabilities -from revengai.models.vulnerability import Vulnerability from revengai.models.warning_event import WarningEvent from revengai.models.workflow_progress import WorkflowProgress -from revengai.models.workspace import Workspace -from revengai.models.xref_from_response import XrefFromResponse -from revengai.models.xref_response import XrefResponse -from revengai.models.xref_to_response import XrefToResponse diff --git a/revengai/models/add_callee_input_body.py b/revengai/models/add_callee_input_body.py index ccc7633a..5582aaf4 100644 --- a/revengai/models/add_callee_input_body.py +++ b/revengai/models/add_callee_input_body.py @@ -31,7 +31,6 @@ class AddCalleeInputBody(BaseModel): callee_vaddr: StrictInt = Field(description="Virtual address of the callee") is_external: StrictBool = Field(description="Whether the callee is outside the binary") thunked_vaddr: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Thunked virtual address") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["callee_function_id", "callee_name", "callee_vaddr", "is_external", "thunked_vaddr"] model_config = ConfigDict( @@ -64,10 +63,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -75,11 +72,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -98,11 +90,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "is_external": obj.get("is_external"), "thunked_vaddr": obj.get("thunked_vaddr") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/add_user_string_input_body.py b/revengai/models/add_user_string_input_body.py index 7206911f..3a1765c3 100644 --- a/revengai/models/add_user_string_input_body.py +++ b/revengai/models/add_user_string_input_body.py @@ -28,7 +28,6 @@ class AddUserStringInputBody(BaseModel): """ # noqa: E501 string: Annotated[str, Field(min_length=1, strict=True)] = Field(description="String literal") virtual_address: Annotated[int, Field(strict=True, ge=0)] = Field(description="Virtual address at which this string is defined.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["string", "virtual_address"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -92,11 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "string": obj.get("string"), "virtual_address": obj.get("virtual_address") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/add_user_string_to_function_input_body.py b/revengai/models/add_user_string_to_function_input_body.py index dde8b9d4..0b77db35 100644 --- a/revengai/models/add_user_string_to_function_input_body.py +++ b/revengai/models/add_user_string_to_function_input_body.py @@ -28,7 +28,6 @@ class AddUserStringToFunctionInputBody(BaseModel): """ # noqa: E501 string: Annotated[str, Field(min_length=1, strict=True)] = Field(description="String literal") virtual_address: Annotated[int, Field(strict=True, ge=0)] = Field(description="Virtual address at which this string is defined.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["string", "virtual_address"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -92,11 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "string": obj.get("string"), "virtual_address": obj.get("virtual_address") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/additional_details_status_response.py b/revengai/models/additional_details_status_response.py deleted file mode 100644 index 50f1a9f7..00000000 --- a/revengai/models/additional_details_status_response.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class AdditionalDetailsStatusResponse(BaseModel): - """ - AdditionalDetailsStatusResponse - """ # noqa: E501 - status: StrictStr = Field(description="The current status of the additional details task") - __properties: ClassVar[List[str]] = ["status"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AdditionalDetailsStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AdditionalDetailsStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") - }) - return _obj - - diff --git a/revengai/models/ai_decomp_function_mapping.py b/revengai/models/ai_decomp_function_mapping.py index 7cb55f2a..e1b43484 100644 --- a/revengai/models/ai_decomp_function_mapping.py +++ b/revengai/models/ai_decomp_function_mapping.py @@ -42,7 +42,6 @@ class AIDecompFunctionMapping(BaseModel): unmatched_variadic_lists: Dict[str, ReplacementValue] unmatched_vars: Dict[str, ReplacementValue] user_override_mappings: Dict[str, StrictStr] - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["fields", "inverse_function_map", "inverse_string_map", "unmatched_custom_function_pointers", "unmatched_custom_types", "unmatched_enums", "unmatched_external_vars", "unmatched_functions", "unmatched_global_vars", "unmatched_go_to_labels", "unmatched_strings", "unmatched_variadic_lists", "unmatched_vars", "user_override_mappings"] model_config = ConfigDict( @@ -75,10 +74,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -177,11 +174,6 @@ def to_dict(self) -> Dict[str, Any]: if self.unmatched_vars[_key_unmatched_vars]: _field_dict[_key_unmatched_vars] = self.unmatched_vars[_key_unmatched_vars].to_dict() _dict['unmatched_vars'] = _field_dict - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -280,11 +272,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None, "user_override_mappings": obj.get("user_override_mappings") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/ai_decomp_inverse_function_map_item.py b/revengai/models/ai_decomp_inverse_function_map_item.py index 5a502410..41bdd35f 100644 --- a/revengai/models/ai_decomp_inverse_function_map_item.py +++ b/revengai/models/ai_decomp_inverse_function_map_item.py @@ -28,7 +28,6 @@ class AIDecompInverseFunctionMapItem(BaseModel): addr: Optional[StrictInt] is_external: StrictBool name: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["addr", "is_external", "name"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if addr (nullable) is None # and model_fields_set contains the field if self.addr is None and "addr" in self.model_fields_set: @@ -98,11 +90,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "is_external": obj.get("is_external"), "name": obj.get("name") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/ai_decomp_inverse_string_map_item.py b/revengai/models/ai_decomp_inverse_string_map_item.py index d36c380a..5d2d257e 100644 --- a/revengai/models/ai_decomp_inverse_string_map_item.py +++ b/revengai/models/ai_decomp_inverse_string_map_item.py @@ -27,7 +27,6 @@ class AIDecompInverseStringMapItem(BaseModel): """ # noqa: E501 addr: Optional[StrictInt] string: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["addr", "string"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -71,11 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if addr (nullable) is None # and model_fields_set contains the field if self.addr is None and "addr" in self.model_fields_set: @@ -96,11 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "addr": obj.get("addr"), "string": obj.get("string") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/ai_decompilation_rating.py b/revengai/models/ai_decompilation_rating.py deleted file mode 100644 index c0a578b9..00000000 --- a/revengai/models/ai_decompilation_rating.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class AiDecompilationRating(str, Enum): - """ - AiDecompilationRating - """ - - """ - allowed enum values - """ - POSITIVE = 'POSITIVE' - NEGATIVE = 'NEGATIVE' - NEUTRAL = 'NEUTRAL' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AiDecompilationRating from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/analysis_access_info.py b/revengai/models/analysis_access_info.py deleted file mode 100644 index ec8a0a7d..00000000 --- a/revengai/models/analysis_access_info.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisAccessInfo(BaseModel): - """ - AnalysisAccessInfo - """ # noqa: E501 - owner: StrictBool - username: StrictStr - __properties: ClassVar[List[str]] = ["owner", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisAccessInfo from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisAccessInfo from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "owner": obj.get("owner"), - "username": obj.get("username") - }) - return _obj - - diff --git a/revengai/models/analysis_basic_info_output_body.py b/revengai/models/analysis_basic_info_output_body.py index b130e019..b7fc17f3 100644 --- a/revengai/models/analysis_basic_info_output_body.py +++ b/revengai/models/analysis_basic_info_output_body.py @@ -44,7 +44,6 @@ class AnalysisBasicInfoOutputBody(BaseModel): sequencer_version: Optional[StrictStr] = Field(default=None, description="Sequencer version, omitted when not set") sha_256_hash: StrictStr = Field(description="SHA-256 hash of the binary") team_id: StrictInt = Field(description="Team ID of the analysis") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["analysis_scope", "base_address", "binary_id", "binary_name", "binary_size", "binary_uuid", "creation", "debug", "function_count", "is_advanced", "is_owner", "is_system", "model_id", "model_name", "owner_username", "sequencer_version", "sha_256_hash", "team_id"] @field_validator('analysis_scope') @@ -84,10 +83,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -95,11 +92,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if base_address (nullable) is None # and model_fields_set contains the field if self.base_address is None and "base_address" in self.model_fields_set: @@ -136,11 +128,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "sha_256_hash": obj.get("sha_256_hash"), "team_id": obj.get("team_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/analysis_bulk_add_tags_request.py b/revengai/models/analysis_bulk_add_tags_request.py deleted file mode 100644 index 4f57e372..00000000 --- a/revengai/models/analysis_bulk_add_tags_request.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisBulkAddTagsRequest(BaseModel): - """ - AnalysisBulkAddTagsRequest - """ # noqa: E501 - tags: List[StrictStr] - analysis_ids: List[StrictInt] - __properties: ClassVar[List[str]] = ["tags", "analysis_ids"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisBulkAddTagsRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisBulkAddTagsRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tags": obj.get("tags"), - "analysis_ids": obj.get("analysis_ids") - }) - return _obj - - diff --git a/revengai/models/analysis_bulk_add_tags_response.py b/revengai/models/analysis_bulk_add_tags_response.py deleted file mode 100644 index 107526a5..00000000 --- a/revengai/models/analysis_bulk_add_tags_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.analysis_bulk_add_tags_response_item import AnalysisBulkAddTagsResponseItem -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisBulkAddTagsResponse(BaseModel): - """ - AnalysisBulkAddTagsResponse - """ # noqa: E501 - results: List[AnalysisBulkAddTagsResponseItem] - __properties: ClassVar[List[str]] = ["results"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisBulkAddTagsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item_results in self.results: - if _item_results: - _items.append(_item_results.to_dict()) - _dict['results'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisBulkAddTagsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "results": [AnalysisBulkAddTagsResponseItem.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None - }) - return _obj - - diff --git a/revengai/models/analysis_bulk_add_tags_response_item.py b/revengai/models/analysis_bulk_add_tags_response_item.py deleted file mode 100644 index fcd97380..00000000 --- a/revengai/models/analysis_bulk_add_tags_response_item.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisBulkAddTagsResponseItem(BaseModel): - """ - AnalysisBulkAddTagsResponseItem - """ # noqa: E501 - analysis_id: StrictInt - message: Optional[StrictStr] - error: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["analysis_id", "message", "error"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisBulkAddTagsResponseItem from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if error (nullable) is None - # and model_fields_set contains the field - if self.error is None and "error" in self.model_fields_set: - _dict['error'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisBulkAddTagsResponseItem from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analysis_id": obj.get("analysis_id"), - "message": obj.get("message"), - "error": obj.get("error") - }) - return _obj - - diff --git a/revengai/models/analysis_config.py b/revengai/models/analysis_config.py deleted file mode 100644 index dafd4a1d..00000000 --- a/revengai/models/analysis_config.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.sandbox_options import SandboxOptions -from revengai.models.scrape_third_party_config import ScrapeThirdPartyConfig -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisConfig(BaseModel): - """ - AnalysisConfig - """ # noqa: E501 - scrape_third_party_config: Optional[ScrapeThirdPartyConfig] = Field(default=None, description="Settings to scrape third party sources") - generate_cves: Optional[StrictBool] = Field(default=False, description="A configuration option for fetching CVEs data.") - generate_sbom: Optional[StrictBool] = Field(default=False, description="A configuration option for generating software bill of materials data.") - generate_capabilities: Optional[StrictBool] = Field(default=False, description="A configuration option for generating capabilities of a binary") - no_cache: Optional[StrictBool] = Field(default=False, description="When enabled, skips using cached data within the processing.") - advanced_analysis: Optional[StrictBool] = Field(default=False, description="Enables an advanced security analysis.") - sandbox_config: Optional[SandboxOptions] = Field(default=None, description="Including a sandbox config enables the dynamic execution sandbox") - __properties: ClassVar[List[str]] = ["scrape_third_party_config", "generate_cves", "generate_sbom", "generate_capabilities", "no_cache", "advanced_analysis", "sandbox_config"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisConfig from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of scrape_third_party_config - if self.scrape_third_party_config: - _dict['scrape_third_party_config'] = self.scrape_third_party_config.to_dict() - # override the default output from pydantic by calling `to_dict()` of sandbox_config - if self.sandbox_config: - _dict['sandbox_config'] = self.sandbox_config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "scrape_third_party_config": ScrapeThirdPartyConfig.from_dict(obj["scrape_third_party_config"]) if obj.get("scrape_third_party_config") is not None else None, - "generate_cves": obj.get("generate_cves") if obj.get("generate_cves") is not None else False, - "generate_sbom": obj.get("generate_sbom") if obj.get("generate_sbom") is not None else False, - "generate_capabilities": obj.get("generate_capabilities") if obj.get("generate_capabilities") is not None else False, - "no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False, - "advanced_analysis": obj.get("advanced_analysis") if obj.get("advanced_analysis") is not None else False, - "sandbox_config": SandboxOptions.from_dict(obj["sandbox_config"]) if obj.get("sandbox_config") is not None else None - }) - return _obj - - diff --git a/revengai/models/analysis_config_snapshot.py b/revengai/models/analysis_config_snapshot.py deleted file mode 100644 index fd02868c..00000000 --- a/revengai/models/analysis_config_snapshot.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisConfigSnapshot(BaseModel): - """ - Point-in-time record of which features an analysis was submitted with. - """ # noqa: E501 - functions: StrictBool - sandbox: StrictBool - scrape: StrictBool - capabilities: StrictBool - triage: StrictBool - __properties: ClassVar[List[str]] = ["functions", "sandbox", "scrape", "capabilities", "triage"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisConfigSnapshot from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisConfigSnapshot from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "functions": obj.get("functions"), - "sandbox": obj.get("sandbox"), - "scrape": obj.get("scrape"), - "capabilities": obj.get("capabilities"), - "triage": obj.get("triage") - }) - return _obj - - diff --git a/revengai/models/analysis_create_request.py b/revengai/models/analysis_create_request.py deleted file mode 100644 index 3e18f786..00000000 --- a/revengai/models/analysis_create_request.py +++ /dev/null @@ -1,137 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_config import AnalysisConfig -from revengai.models.analysis_scope import AnalysisScope -from revengai.models.auto_run_agents import AutoRunAgents -from revengai.models.binary_config import BinaryConfig -from revengai.models.symbols import Symbols -from revengai.models.tag import Tag -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisCreateRequest(BaseModel): - """ - AnalysisCreateRequest - """ # noqa: E501 - filename: StrictStr = Field(description="The name of the file") - sha_256_hash: StrictStr = Field(description="The sha256 hash of the file") - tags: Optional[List[Tag]] = Field(default=None, description="List of tags to assign to an analysis") - analysis_scope: Optional[AnalysisScope] = Field(default=None, description="The scope of the analysis determines who can access it") - symbols: Optional[Symbols] = None - debug_hash: Optional[StrictStr] = None - analysis_config: Optional[AnalysisConfig] = Field(default=None, description="The analysis config enables the configuration of optional analysis stages") - binary_config: Optional[BinaryConfig] = Field(default=None, description="The binary config can override automatically determined values such as ISA, Platform, File Format, etc") - auto_run_agents: Optional[AutoRunAgents] = None - __properties: ClassVar[List[str]] = ["filename", "sha_256_hash", "tags", "analysis_scope", "symbols", "debug_hash", "analysis_config", "binary_config", "auto_run_agents"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisCreateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item_tags in self.tags: - if _item_tags: - _items.append(_item_tags.to_dict()) - _dict['tags'] = _items - # override the default output from pydantic by calling `to_dict()` of symbols - if self.symbols: - _dict['symbols'] = self.symbols.to_dict() - # override the default output from pydantic by calling `to_dict()` of analysis_config - if self.analysis_config: - _dict['analysis_config'] = self.analysis_config.to_dict() - # override the default output from pydantic by calling `to_dict()` of binary_config - if self.binary_config: - _dict['binary_config'] = self.binary_config.to_dict() - # override the default output from pydantic by calling `to_dict()` of auto_run_agents - if self.auto_run_agents: - _dict['auto_run_agents'] = self.auto_run_agents.to_dict() - # set to None if symbols (nullable) is None - # and model_fields_set contains the field - if self.symbols is None and "symbols" in self.model_fields_set: - _dict['symbols'] = None - - # set to None if debug_hash (nullable) is None - # and model_fields_set contains the field - if self.debug_hash is None and "debug_hash" in self.model_fields_set: - _dict['debug_hash'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisCreateRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "filename": obj.get("filename"), - "sha_256_hash": obj.get("sha_256_hash"), - "tags": [Tag.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None, - "analysis_scope": obj.get("analysis_scope"), - "symbols": Symbols.from_dict(obj["symbols"]) if obj.get("symbols") is not None else None, - "debug_hash": obj.get("debug_hash"), - "analysis_config": AnalysisConfig.from_dict(obj["analysis_config"]) if obj.get("analysis_config") is not None else None, - "binary_config": BinaryConfig.from_dict(obj["binary_config"]) if obj.get("binary_config") is not None else None, - "auto_run_agents": AutoRunAgents.from_dict(obj["auto_run_agents"]) if obj.get("auto_run_agents") is not None else None - }) - return _obj - - diff --git a/revengai/models/analysis_create_response.py b/revengai/models/analysis_create_response.py deleted file mode 100644 index 5296b188..00000000 --- a/revengai/models/analysis_create_response.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisCreateResponse(BaseModel): - """ - AnalysisCreateResponse - """ # noqa: E501 - analysis_id: StrictInt = Field(description="ID of created analysis") - binary_id: StrictInt = Field(description="ID of created binary") - __properties: ClassVar[List[str]] = ["analysis_id", "binary_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisCreateResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisCreateResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analysis_id": obj.get("analysis_id"), - "binary_id": obj.get("binary_id") - }) - return _obj - - diff --git a/revengai/models/analysis_detail_response.py b/revengai/models/analysis_detail_response.py deleted file mode 100644 index f6ae72c4..00000000 --- a/revengai/models/analysis_detail_response.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_access_info import AnalysisAccessInfo -from revengai.models.analysis_config_snapshot import AnalysisConfigSnapshot -from revengai.models.auto_run_agents import AutoRunAgents -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisDetailResponse(BaseModel): - """ - AnalysisDetailResponse - """ # noqa: E501 - access: AnalysisAccessInfo - analysis_id: StrictInt - analysis_scope: StrictStr - architecture: StrictStr - binary_dynamic: StrictBool - binary_format: StrictStr - binary_name: StrictStr - binary_size: StrictInt - binary_type: StrictStr - creation: StrictStr - dashboard_url: StrictStr = Field(description="URL to view this analysis in the dashboard") - debug: StrictBool - model_name: StrictStr - sbom: Optional[Dict[str, Any]] = None - sha_256_hash: StrictStr - auto_run_agents: AutoRunAgents - requested_config: AnalysisConfigSnapshot = Field(description="Snapshot of the configuration the analysis was submitted with.") - __properties: ClassVar[List[str]] = ["access", "analysis_id", "analysis_scope", "architecture", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "dashboard_url", "debug", "model_name", "sbom", "sha_256_hash", "auto_run_agents", "requested_config"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisDetailResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of access - if self.access: - _dict['access'] = self.access.to_dict() - # override the default output from pydantic by calling `to_dict()` of auto_run_agents - if self.auto_run_agents: - _dict['auto_run_agents'] = self.auto_run_agents.to_dict() - # override the default output from pydantic by calling `to_dict()` of requested_config - if self.requested_config: - _dict['requested_config'] = self.requested_config.to_dict() - # set to None if sbom (nullable) is None - # and model_fields_set contains the field - if self.sbom is None and "sbom" in self.model_fields_set: - _dict['sbom'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisDetailResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "access": AnalysisAccessInfo.from_dict(obj["access"]) if obj.get("access") is not None else None, - "analysis_id": obj.get("analysis_id"), - "analysis_scope": obj.get("analysis_scope"), - "architecture": obj.get("architecture"), - "binary_dynamic": obj.get("binary_dynamic"), - "binary_format": obj.get("binary_format"), - "binary_name": obj.get("binary_name"), - "binary_size": obj.get("binary_size"), - "binary_type": obj.get("binary_type"), - "creation": obj.get("creation"), - "dashboard_url": obj.get("dashboard_url"), - "debug": obj.get("debug"), - "model_name": obj.get("model_name"), - "sbom": obj.get("sbom"), - "sha_256_hash": obj.get("sha_256_hash"), - "auto_run_agents": AutoRunAgents.from_dict(obj["auto_run_agents"]) if obj.get("auto_run_agents") is not None else None, - "requested_config": AnalysisConfigSnapshot.from_dict(obj["requested_config"]) if obj.get("requested_config") is not None else None - }) - return _obj - - diff --git a/revengai/models/analysis_function_entry.py b/revengai/models/analysis_function_entry.py index 913ee131..1894e6ef 100644 --- a/revengai/models/analysis_function_entry.py +++ b/revengai/models/analysis_function_entry.py @@ -85,11 +85,6 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value - # set to None if mangled_name (nullable) is None - # and model_fields_set contains the field - if self.mangled_name is None and "mangled_name" in self.model_fields_set: - _dict['mangled_name'] = None - return _dict @classmethod diff --git a/revengai/models/analysis_function_mapping.py b/revengai/models/analysis_function_mapping.py deleted file mode 100644 index 5090cc87..00000000 --- a/revengai/models/analysis_function_mapping.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.function_mapping import FunctionMapping -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisFunctionMapping(BaseModel): - """ - AnalysisFunctionMapping - """ # noqa: E501 - function_maps: FunctionMapping = Field(description="A map of function ids to function addresses for the analysis, and it's inverse.") - __properties: ClassVar[List[str]] = ["function_maps"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisFunctionMapping from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of function_maps - if self.function_maps: - _dict['function_maps'] = self.function_maps.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisFunctionMapping from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_maps": FunctionMapping.from_dict(obj["function_maps"]) if obj.get("function_maps") is not None else None - }) - return _obj - - diff --git a/revengai/models/analysis_functions.py b/revengai/models/analysis_functions.py deleted file mode 100644 index 961621c0..00000000 --- a/revengai/models/analysis_functions.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisFunctions(BaseModel): - """ - AnalysisFunctions - """ # noqa: E501 - functions: List[AppApiRestV2FunctionsTypesFunction] = Field(description="The functions associated with the analysis") - __properties: ClassVar[List[str]] = ["functions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisFunctions from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in functions (list) - _items = [] - if self.functions: - for _item_functions in self.functions: - if _item_functions: - _items.append(_item_functions.to_dict()) - _dict['functions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisFunctions from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "functions": [AppApiRestV2FunctionsTypesFunction.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None - }) - return _obj - - diff --git a/revengai/models/analysis_functions_list.py b/revengai/models/analysis_functions_list.py deleted file mode 100644 index ff317e53..00000000 --- a/revengai/models/analysis_functions_list.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.function_list_item import FunctionListItem -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisFunctionsList(BaseModel): - """ - API response schema for paginated functions list - """ # noqa: E501 - functions: List[FunctionListItem] = Field(description="The functions associated with the analysis") - __properties: ClassVar[List[str]] = ["functions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisFunctionsList from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in functions (list) - _items = [] - if self.functions: - for _item_functions in self.functions: - if _item_functions: - _items.append(_item_functions.to_dict()) - _dict['functions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisFunctionsList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "functions": [FunctionListItem.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None - }) - return _obj - - diff --git a/revengai/models/analysis_log_message.py b/revengai/models/analysis_log_message.py index 6e8fbe71..28433c8e 100644 --- a/revengai/models/analysis_log_message.py +++ b/revengai/models/analysis_log_message.py @@ -27,7 +27,6 @@ class AnalysisLogMessage(BaseModel): """ # noqa: E501 message: StrictStr time: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["message", "time"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -71,11 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -91,11 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "message": obj.get("message"), "time": obj.get("time") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/analysis_logs.py b/revengai/models/analysis_logs.py index 335e613b..1fd2d67a 100644 --- a/revengai/models/analysis_logs.py +++ b/revengai/models/analysis_logs.py @@ -28,7 +28,6 @@ class AnalysisLogs(BaseModel): """ # noqa: E501 message_count: StrictInt messages: Optional[List[AnalysisLogMessage]] - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["message_count", "messages"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_messages: _items.append(_item_messages.to_dict()) _dict['messages'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if messages (nullable) is None # and model_fields_set contains the field if self.messages is None and "messages" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "message_count": obj.get("message_count"), "messages": [AnalysisLogMessage.from_dict(_item) for _item in obj["messages"]] if obj.get("messages") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/analysis_record.py b/revengai/models/analysis_record.py deleted file mode 100644 index 85cd20ae..00000000 --- a/revengai/models/analysis_record.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.dynamic_execution_status import DynamicExecutionStatus -from revengai.models.tag_item import TagItem -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisRecord(BaseModel): - """ - AnalysisRecord - """ # noqa: E501 - analysis_id: StrictInt = Field(description="ID to identify analysis") - analysis_scope: StrictStr = Field(description="Scope of the analysis") - binary_id: StrictInt = Field(description="ID to identify the binary analyse") - model_id: StrictInt = Field(description="ID to identify the model used for analysis") - model_name: StrictStr = Field(description="Name of the model used for analysis") - status: StrictStr = Field(description="The current status of analysis") - creation: datetime = Field(description="The datetime of when the analysis was created") - is_owner: StrictBool = Field(description="Whether the current user is the owner of a binary") - binary_name: StrictStr = Field(description="The name of the file uploaded") - sha_256_hash: StrictStr = Field(description="The hash of the binary") - function_boundaries_hash: StrictStr = Field(description="The hash of the function boundaries") - binary_size: StrictInt = Field(description="The size of the binary") - username: StrictStr = Field(description="The username of the analysis owner") - dynamic_execution_status: Optional[DynamicExecutionStatus] = None - dynamic_execution_task_id: Optional[StrictInt] = None - base_address: StrictInt = Field(description="The base address of the binary") - tags: Optional[List[TagItem]] = Field(default=None, description="List of tags associated with the analysis") - __properties: ClassVar[List[str]] = ["analysis_id", "analysis_scope", "binary_id", "model_id", "model_name", "status", "creation", "is_owner", "binary_name", "sha_256_hash", "function_boundaries_hash", "binary_size", "username", "dynamic_execution_status", "dynamic_execution_task_id", "base_address", "tags"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item_tags in self.tags: - if _item_tags: - _items.append(_item_tags.to_dict()) - _dict['tags'] = _items - # set to None if dynamic_execution_status (nullable) is None - # and model_fields_set contains the field - if self.dynamic_execution_status is None and "dynamic_execution_status" in self.model_fields_set: - _dict['dynamic_execution_status'] = None - - # set to None if dynamic_execution_task_id (nullable) is None - # and model_fields_set contains the field - if self.dynamic_execution_task_id is None and "dynamic_execution_task_id" in self.model_fields_set: - _dict['dynamic_execution_task_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisRecord from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analysis_id": obj.get("analysis_id"), - "analysis_scope": obj.get("analysis_scope"), - "binary_id": obj.get("binary_id"), - "model_id": obj.get("model_id"), - "model_name": obj.get("model_name"), - "status": obj.get("status"), - "creation": obj.get("creation"), - "is_owner": obj.get("is_owner"), - "binary_name": obj.get("binary_name"), - "sha_256_hash": obj.get("sha_256_hash"), - "function_boundaries_hash": obj.get("function_boundaries_hash"), - "binary_size": obj.get("binary_size"), - "username": obj.get("username"), - "dynamic_execution_status": obj.get("dynamic_execution_status"), - "dynamic_execution_task_id": obj.get("dynamic_execution_task_id"), - "base_address": obj.get("base_address"), - "tags": [TagItem.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None - }) - return _obj - - diff --git a/revengai/models/analysis_report.py b/revengai/models/analysis_report.py index 8af7db04..baf5362b 100644 --- a/revengai/models/analysis_report.py +++ b/revengai/models/analysis_report.py @@ -55,7 +55,6 @@ class AnalysisReport(BaseModel): services: Optional[List[ServiceEntry]] = None startup: Optional[StartupInfo] = None ttps: Optional[List[Ttp]] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["artifacts", "console_output", "file_activity", "info", "memdumps", "module_load_addresses", "mutexes", "network_activity", "process_activity", "process_tree", "registry_operations", "scheduled_tasks", "services", "startup", "ttps"] model_config = ConfigDict( @@ -88,10 +87,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -188,11 +185,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_ttps: _items.append(_item_ttps.to_dict()) _dict['ttps'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if artifacts (nullable) is None # and model_fields_set contains the field if self.artifacts is None and "artifacts" in self.model_fields_set: @@ -276,11 +268,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "startup": StartupInfo.from_dict(obj["startup"]) if obj.get("startup") is not None else None, "ttps": [Ttp.from_dict(_item) for _item in obj["ttps"]] if obj.get("ttps") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/analysis_scope.py b/revengai/models/analysis_scope.py deleted file mode 100644 index 4c309357..00000000 --- a/revengai/models/analysis_scope.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class AnalysisScope(str, Enum): - """ - AnalysisScope - """ - - """ - allowed enum values - """ - PRIVATE = 'PRIVATE' - PUBLIC = 'PUBLIC' - TEAM = 'TEAM' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AnalysisScope from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/analysis_string_function.py b/revengai/models/analysis_string_function.py index 7e6f5563..a58bbed6 100644 --- a/revengai/models/analysis_string_function.py +++ b/revengai/models/analysis_string_function.py @@ -27,7 +27,6 @@ class AnalysisStringFunction(BaseModel): """ # noqa: E501 function_id: Optional[StrictInt] function_vaddr: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["function_id", "function_vaddr"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -71,11 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if function_id (nullable) is None # and model_fields_set contains the field if self.function_id is None and "function_id" in self.model_fields_set: @@ -96,11 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "function_id": obj.get("function_id"), "function_vaddr": obj.get("function_vaddr") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/analysis_string_input.py b/revengai/models/analysis_string_input.py deleted file mode 100644 index 7762d7db..00000000 --- a/revengai/models/analysis_string_input.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from revengai.models.string_source import StringSource -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisStringInput(BaseModel): - """ - Input model for inserting a string into an analysis. - """ # noqa: E501 - value: StrictStr = Field(description="The string literal value") - vaddr: StrictInt = Field(description="The virtual address of the string") - source: StringSource = Field(description="The source of the string") - __properties: ClassVar[List[str]] = ["value", "vaddr", "source"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisStringInput from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisStringInput from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "value": obj.get("value"), - "vaddr": obj.get("vaddr"), - "source": obj.get("source") - }) - return _obj - - diff --git a/revengai/models/analysis_string_item.py b/revengai/models/analysis_string_item.py index f836d755..bfacad64 100644 --- a/revengai/models/analysis_string_item.py +++ b/revengai/models/analysis_string_item.py @@ -29,7 +29,6 @@ class AnalysisStringItem(BaseModel): functions: Optional[List[AnalysisStringFunction]] source: StrictStr value: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["functions", "source", "value"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -80,11 +77,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_functions: _items.append(_item_functions.to_dict()) _dict['functions'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if functions (nullable) is None # and model_fields_set contains the field if self.functions is None and "functions" in self.model_fields_set: @@ -106,11 +98,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source": obj.get("source"), "value": obj.get("value") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/analysis_strings_response.py b/revengai/models/analysis_strings_response.py deleted file mode 100644 index 232d3166..00000000 --- a/revengai/models/analysis_strings_response.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List -from revengai.models.string_functions import StringFunctions -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisStringsResponse(BaseModel): - """ - AnalysisStringsResponse - """ # noqa: E501 - strings: List[StringFunctions] = Field(description="The strings associated with the analysis") - total_strings: StrictInt = Field(description="The total number of strings associated with this analysis") - __properties: ClassVar[List[str]] = ["strings", "total_strings"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisStringsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in strings (list) - _items = [] - if self.strings: - for _item_strings in self.strings: - if _item_strings: - _items.append(_item_strings.to_dict()) - _dict['strings'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisStringsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "strings": [StringFunctions.from_dict(_item) for _item in obj["strings"]] if obj.get("strings") is not None else None, - "total_strings": obj.get("total_strings") - }) - return _obj - - diff --git a/revengai/models/analysis_strings_status_response.py b/revengai/models/analysis_strings_status_response.py deleted file mode 100644 index 016a2f96..00000000 --- a/revengai/models/analysis_strings_status_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.binaries_task_status import BinariesTaskStatus -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisStringsStatusResponse(BaseModel): - """ - AnalysisStringsStatusResponse - """ # noqa: E501 - status: BinariesTaskStatus = Field(description="The current status of the strings extraction task") - __properties: ClassVar[List[str]] = ["status"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisStringsStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisStringsStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") - }) - return _obj - - diff --git a/revengai/models/analysis_tag_body.py b/revengai/models/analysis_tag_body.py index 57d5ed99..ecbb6e75 100644 --- a/revengai/models/analysis_tag_body.py +++ b/revengai/models/analysis_tag_body.py @@ -28,7 +28,6 @@ class AnalysisTagBody(BaseModel): collection_id: Optional[StrictInt] = Field(description="Collection this tag maps to, or null") name: StrictStr = Field(description="Tag name") origin: StrictStr = Field(description="Origin of the tag") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["collection_id", "name", "origin"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if collection_id (nullable) is None # and model_fields_set contains the field if self.collection_id is None and "collection_id" in self.model_fields_set: @@ -98,11 +90,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "origin": obj.get("origin") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/analysis_tags.py b/revengai/models/analysis_tags.py deleted file mode 100644 index 3bdb8239..00000000 --- a/revengai/models/analysis_tags.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.tag_item import TagItem -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisTags(BaseModel): - """ - AnalysisTags - """ # noqa: E501 - analysis_tags: List[TagItem] - __properties: ClassVar[List[str]] = ["analysis_tags"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisTags from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in analysis_tags (list) - _items = [] - if self.analysis_tags: - for _item_analysis_tags in self.analysis_tags: - if _item_analysis_tags: - _items.append(_item_analysis_tags.to_dict()) - _dict['analysis_tags'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisTags from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analysis_tags": [TagItem.from_dict(_item) for _item in obj["analysis_tags"]] if obj.get("analysis_tags") is not None else None - }) - return _obj - - diff --git a/revengai/models/analysis_update_request.py b/revengai/models/analysis_update_request.py deleted file mode 100644 index cf4744a7..00000000 --- a/revengai/models/analysis_update_request.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_scope import AnalysisScope -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisUpdateRequest(BaseModel): - """ - AnalysisUpdateRequest - """ # noqa: E501 - binary_name: Optional[StrictStr] = None - analysis_scope: Optional[AnalysisScope] = None - __properties: ClassVar[List[str]] = ["binary_name", "analysis_scope"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisUpdateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if binary_name (nullable) is None - # and model_fields_set contains the field - if self.binary_name is None and "binary_name" in self.model_fields_set: - _dict['binary_name'] = None - - # set to None if analysis_scope (nullable) is None - # and model_fields_set contains the field - if self.analysis_scope is None and "analysis_scope" in self.model_fields_set: - _dict['analysis_scope'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisUpdateRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "binary_name": obj.get("binary_name"), - "analysis_scope": obj.get("analysis_scope") - }) - return _obj - - diff --git a/revengai/models/analysis_update_tags_request.py b/revengai/models/analysis_update_tags_request.py deleted file mode 100644 index 7cc647d7..00000000 --- a/revengai/models/analysis_update_tags_request.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisUpdateTagsRequest(BaseModel): - """ - AnalysisUpdateTagsRequest - """ # noqa: E501 - tags: List[StrictStr] - __properties: ClassVar[List[str]] = ["tags"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisUpdateTagsRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisUpdateTagsRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tags": obj.get("tags") - }) - return _obj - - diff --git a/revengai/models/analysis_update_tags_response.py b/revengai/models/analysis_update_tags_response.py deleted file mode 100644 index 2d8cf081..00000000 --- a/revengai/models/analysis_update_tags_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.tag_response import TagResponse -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisUpdateTagsResponse(BaseModel): - """ - AnalysisUpdateTagsResponse - """ # noqa: E501 - tags: List[TagResponse] = Field(description="The analysis tags after updating") - __properties: ClassVar[List[str]] = ["tags"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisUpdateTagsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item_tags in self.tags: - if _item_tags: - _items.append(_item_tags.to_dict()) - _dict['tags'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisUpdateTagsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tags": [TagResponse.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None - }) - return _obj - - diff --git a/revengai/models/api_call.py b/revengai/models/api_call.py index ede185bb..1745410b 100644 --- a/revengai/models/api_call.py +++ b/revengai/models/api_call.py @@ -29,7 +29,6 @@ class ApiCall(BaseModel): called_from_rva: Optional[StrictStr] = None from_module: Optional[StrictStr] = None method: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["called_from", "called_from_rva", "from_module", "method"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -95,11 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "from_module": obj.get("from_module"), "method": obj.get("method") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/api_error.py b/revengai/models/api_error.py index fd630e0d..899c43a4 100644 --- a/revengai/models/api_error.py +++ b/revengai/models/api_error.py @@ -27,7 +27,6 @@ class APIError(BaseModel): APIError """ # noqa: E501 error: ErrorBody - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["error"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -74,11 +71,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of error if self.error: _dict['error'] = self.error.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -93,11 +85,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "error": ErrorBody.from_dict(obj["error"]) if obj.get("error") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/app_api_rest_v2_agent_schema_capability.py b/revengai/models/app_api_rest_v2_agent_schema_capability.py deleted file mode 100644 index 80e82fde..00000000 --- a/revengai/models/app_api_rest_v2_agent_schema_capability.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2AgentSchemaCapability(BaseModel): - """ - AppApiRestV2AgentSchemaCapability - """ # noqa: E501 - function_vaddr: StrictStr = Field(description="Vaddr of the function containing the capability") - description: StrictStr = Field(description="Description of the capability") - capability: StrictStr = Field(description="Name of the capability") - type: StrictStr = Field(description="Type of the capability") - function_name: StrictStr = Field(description="Name of the function containing the capability") - function_id: StrictInt = Field(description="ID of the function containing the capability") - __properties: ClassVar[List[str]] = ["function_vaddr", "description", "capability", "type", "function_name", "function_id"] - - @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', '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( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2AgentSchemaCapability from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2AgentSchemaCapability from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_vaddr": obj.get("function_vaddr"), - "description": obj.get("description"), - "capability": obj.get("capability"), - "type": obj.get("type"), - "function_name": obj.get("function_name"), - "function_id": obj.get("function_id") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_analyses_enums_order_by.py b/revengai/models/app_api_rest_v2_analyses_enums_order_by.py deleted file mode 100644 index a26f8f7f..00000000 --- a/revengai/models/app_api_rest_v2_analyses_enums_order_by.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class AppApiRestV2AnalysesEnumsOrderBy(str, Enum): - """ - AppApiRestV2AnalysesEnumsOrderBy - """ - - """ - allowed enum values - """ - CREATED = 'created' - NAME = 'name' - SIZE = 'size' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AppApiRestV2AnalysesEnumsOrderBy from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/app_api_rest_v2_collections_enums_order_by.py b/revengai/models/app_api_rest_v2_collections_enums_order_by.py deleted file mode 100644 index c2f50c40..00000000 --- a/revengai/models/app_api_rest_v2_collections_enums_order_by.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class AppApiRestV2CollectionsEnumsOrderBy(str, Enum): - """ - AppApiRestV2CollectionsEnumsOrderBy - """ - - """ - allowed enum values - """ - CREATED = 'created' - COLLECTION = 'collection' - OWNER = 'owner' - COLLECTION_SIZE = 'collection_size' - UPDATED = 'updated' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AppApiRestV2CollectionsEnumsOrderBy from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/app_api_rest_v2_functions_responses_function.py b/revengai/models/app_api_rest_v2_functions_responses_function.py deleted file mode 100644 index 405ef1d8..00000000 --- a/revengai/models/app_api_rest_v2_functions_responses_function.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2FunctionsResponsesFunction(BaseModel): - """ - Function schema used in function strings response. - """ # noqa: E501 - function_id: Optional[StrictInt] = None - function_vaddr: StrictInt = Field(description="Function virtual address") - __properties: ClassVar[List[str]] = ["function_id", "function_vaddr"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2FunctionsResponsesFunction from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if function_id (nullable) is None - # and model_fields_set contains the field - if self.function_id is None and "function_id" in self.model_fields_set: - _dict['function_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2FunctionsResponsesFunction from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "function_vaddr": obj.get("function_vaddr") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_functions_types_function.py b/revengai/models/app_api_rest_v2_functions_types_function.py deleted file mode 100644 index b04283e1..00000000 --- a/revengai/models/app_api_rest_v2_functions_types_function.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2FunctionsTypesFunction(BaseModel): - """ - AppApiRestV2FunctionsTypesFunction - """ # noqa: E501 - function_id: StrictInt = Field(description="Function id") - function_name: StrictStr = Field(description="Demangled name of the function") - function_mangled_name: StrictStr = Field(description="Mangled name of the function") - function_vaddr: StrictInt = Field(description="Function virtual address") - function_size: StrictInt = Field(description="Function size") - debug: StrictBool = Field(description="Whether the function is debug") - __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2FunctionsTypesFunction from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2FunctionsTypesFunction from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "function_name": obj.get("function_name"), - "function_mangled_name": obj.get("function_mangled_name"), - "function_vaddr": obj.get("function_vaddr"), - "function_size": obj.get("function_size"), - "debug": obj.get("debug") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_info_types_capability.py b/revengai/models/app_api_rest_v2_info_types_capability.py deleted file mode 100644 index 30b9a03e..00000000 --- a/revengai/models/app_api_rest_v2_info_types_capability.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2InfoTypesCapability(BaseModel): - """ - AppApiRestV2InfoTypesCapability - """ # noqa: E501 - function_name: StrictStr = Field(description="The name of the function with a capability") - function_vaddr: StrictInt = Field(description="The virtual address of the function where the capability comes from") - capabilities: List[StrictStr] = Field(description="The list of capabilities associated with the function") - __properties: ClassVar[List[str]] = ["function_name", "function_vaddr", "capabilities"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2InfoTypesCapability from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2InfoTypesCapability from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_name": obj.get("function_name"), - "function_vaddr": obj.get("function_vaddr"), - "capabilities": obj.get("capabilities") - }) - return _obj - - diff --git a/revengai/models/argument.py b/revengai/models/argument.py deleted file mode 100644 index 451e5dfb..00000000 --- a/revengai/models/argument.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class Argument(BaseModel): - """ - Argument - """ # noqa: E501 - last_change: Optional[StrictStr] = None - offset: StrictInt = Field(description="Offset of the argument in the function signature") - name: StrictStr = Field(description="Name of the argument") - type: StrictStr = Field(description="Data type of the argument") - size: StrictInt = Field(description="Size of the argument in bytes") - __properties: ClassVar[List[str]] = ["last_change", "offset", "name", "type", "size"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Argument from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if last_change (nullable) is None - # and model_fields_set contains the field - if self.last_change is None and "last_change" in self.model_fields_set: - _dict['last_change'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Argument from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "last_change": obj.get("last_change"), - "offset": obj.get("offset"), - "name": obj.get("name"), - "type": obj.get("type"), - "size": obj.get("size") - }) - return _obj - - diff --git a/revengai/models/artifact.py b/revengai/models/artifact.py index c8963b37..9770e668 100644 --- a/revengai/models/artifact.py +++ b/revengai/models/artifact.py @@ -45,7 +45,6 @@ class Artifact(BaseModel): uri: Optional[StrictStr] = None was_mapped: Optional[StrictBool] = None yara_hits: Optional[List[StrictStr]] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["direction", "dump_addr", "dump_pid", "file_type", "host", "is_pe", "mime_type", "name", "network_source", "original_filename", "path", "process_seqid", "reason", "response_status", "sha256", "size", "source", "uri", "was_mapped", "yara_hits"] @field_validator('reason') @@ -85,10 +84,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -96,11 +93,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if yara_hits (nullable) is None # and model_fields_set contains the field if self.yara_hits is None and "yara_hits" in self.model_fields_set: @@ -139,11 +131,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "was_mapped": obj.get("was_mapped"), "yara_hits": obj.get("yara_hits") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/attempt_failed_event.py b/revengai/models/attempt_failed_event.py index c76ba67f..e038a6a4 100644 --- a/revengai/models/attempt_failed_event.py +++ b/revengai/models/attempt_failed_event.py @@ -29,7 +29,6 @@ class AttemptFailedEvent(BaseModel): error: StrictStr seq: StrictInt type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["attempt", "error", "seq", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -95,11 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "seq": obj.get("seq"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/attempt_started_event.py b/revengai/models/attempt_started_event.py index 057023aa..a3d6c939 100644 --- a/revengai/models/attempt_started_event.py +++ b/revengai/models/attempt_started_event.py @@ -28,7 +28,6 @@ class AttemptStartedEvent(BaseModel): attempt: StrictInt seq: StrictInt type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["attempt", "seq", "type"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -93,11 +85,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "seq": obj.get("seq"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/auto_run_agents.py b/revengai/models/auto_run_agents.py deleted file mode 100644 index ff4e39f0..00000000 --- a/revengai/models/auto_run_agents.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AutoRunAgents(BaseModel): - """ - AutoRunAgents - """ # noqa: E501 - triage: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["triage"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AutoRunAgents from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AutoRunAgents from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "triage": obj.get("triage") if obj.get("triage") is not None else False - }) - return _obj - - diff --git a/revengai/models/auto_unstrip_status_output_body.py b/revengai/models/auto_unstrip_status_output_body.py index dada9104..afadf269 100644 --- a/revengai/models/auto_unstrip_status_output_body.py +++ b/revengai/models/auto_unstrip_status_output_body.py @@ -26,7 +26,6 @@ class AutoUnstripStatusOutputBody(BaseModel): AutoUnstripStatusOutputBody """ # noqa: E501 status: StrictStr = Field(description="Auto-unstrip task status") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["status"] @field_validator('status') @@ -66,10 +65,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -77,11 +74,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -96,11 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "status": obj.get("status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/base_response.py b/revengai/models/base_response.py deleted file mode 100644 index 27d8e533..00000000 --- a/revengai/models/base_response.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponse(BaseModel): - """ - BaseResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[Dict[str, Any]] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": obj.get("data"), - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_additional_details_status_response.py b/revengai/models/base_response_additional_details_status_response.py deleted file mode 100644 index 632e714e..00000000 --- a/revengai/models/base_response_additional_details_status_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.additional_details_status_response import AdditionalDetailsStatusResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseAdditionalDetailsStatusResponse(BaseModel): - """ - BaseResponseAdditionalDetailsStatusResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AdditionalDetailsStatusResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseAdditionalDetailsStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseAdditionalDetailsStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": AdditionalDetailsStatusResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_analysis_bulk_add_tags_response.py b/revengai/models/base_response_analysis_bulk_add_tags_response.py deleted file mode 100644 index d14bfeaf..00000000 --- a/revengai/models/base_response_analysis_bulk_add_tags_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_bulk_add_tags_response import AnalysisBulkAddTagsResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseAnalysisBulkAddTagsResponse(BaseModel): - """ - BaseResponseAnalysisBulkAddTagsResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AnalysisBulkAddTagsResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisBulkAddTagsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisBulkAddTagsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": AnalysisBulkAddTagsResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_analysis_create_response.py b/revengai/models/base_response_analysis_create_response.py deleted file mode 100644 index 76856b23..00000000 --- a/revengai/models/base_response_analysis_create_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_create_response import AnalysisCreateResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseAnalysisCreateResponse(BaseModel): - """ - BaseResponseAnalysisCreateResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AnalysisCreateResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisCreateResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisCreateResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": AnalysisCreateResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_analysis_detail_response.py b/revengai/models/base_response_analysis_detail_response.py deleted file mode 100644 index 9a2d2948..00000000 --- a/revengai/models/base_response_analysis_detail_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_detail_response import AnalysisDetailResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseAnalysisDetailResponse(BaseModel): - """ - BaseResponseAnalysisDetailResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AnalysisDetailResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisDetailResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisDetailResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": AnalysisDetailResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_analysis_function_mapping.py b/revengai/models/base_response_analysis_function_mapping.py deleted file mode 100644 index d716d850..00000000 --- a/revengai/models/base_response_analysis_function_mapping.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_function_mapping import AnalysisFunctionMapping -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseAnalysisFunctionMapping(BaseModel): - """ - BaseResponseAnalysisFunctionMapping - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AnalysisFunctionMapping] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisFunctionMapping from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisFunctionMapping from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": AnalysisFunctionMapping.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_analysis_functions.py b/revengai/models/base_response_analysis_functions.py deleted file mode 100644 index e243c9ce..00000000 --- a/revengai/models/base_response_analysis_functions.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_functions import AnalysisFunctions -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseAnalysisFunctions(BaseModel): - """ - BaseResponseAnalysisFunctions - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AnalysisFunctions] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisFunctions from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisFunctions from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": AnalysisFunctions.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_analysis_functions_list.py b/revengai/models/base_response_analysis_functions_list.py deleted file mode 100644 index ee5e7fc5..00000000 --- a/revengai/models/base_response_analysis_functions_list.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_functions_list import AnalysisFunctionsList -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseAnalysisFunctionsList(BaseModel): - """ - BaseResponseAnalysisFunctionsList - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AnalysisFunctionsList] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisFunctionsList from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisFunctionsList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": AnalysisFunctionsList.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_analysis_strings_response.py b/revengai/models/base_response_analysis_strings_response.py deleted file mode 100644 index e05091cc..00000000 --- a/revengai/models/base_response_analysis_strings_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_strings_response import AnalysisStringsResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseAnalysisStringsResponse(BaseModel): - """ - BaseResponseAnalysisStringsResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AnalysisStringsResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisStringsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisStringsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": AnalysisStringsResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_analysis_strings_status_response.py b/revengai/models/base_response_analysis_strings_status_response.py deleted file mode 100644 index f259f604..00000000 --- a/revengai/models/base_response_analysis_strings_status_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_strings_status_response import AnalysisStringsStatusResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseAnalysisStringsStatusResponse(BaseModel): - """ - BaseResponseAnalysisStringsStatusResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AnalysisStringsStatusResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisStringsStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisStringsStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": AnalysisStringsStatusResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_analysis_tags.py b/revengai/models/base_response_analysis_tags.py deleted file mode 100644 index 6b4ee41b..00000000 --- a/revengai/models/base_response_analysis_tags.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_tags import AnalysisTags -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseAnalysisTags(BaseModel): - """ - BaseResponseAnalysisTags - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AnalysisTags] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisTags from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisTags from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": AnalysisTags.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_analysis_update_tags_response.py b/revengai/models/base_response_analysis_update_tags_response.py deleted file mode 100644 index d0680660..00000000 --- a/revengai/models/base_response_analysis_update_tags_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseAnalysisUpdateTagsResponse(BaseModel): - """ - BaseResponseAnalysisUpdateTagsResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AnalysisUpdateTagsResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisUpdateTagsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseAnalysisUpdateTagsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": AnalysisUpdateTagsResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_basic.py b/revengai/models/base_response_basic.py deleted file mode 100644 index 2a102338..00000000 --- a/revengai/models/base_response_basic.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.basic import Basic -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseBasic(BaseModel): - """ - BaseResponseBasic - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[Basic] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseBasic from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseBasic from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": Basic.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_binaries_related_status_response.py b/revengai/models/base_response_binaries_related_status_response.py deleted file mode 100644 index d99acede..00000000 --- a/revengai/models/base_response_binaries_related_status_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.binaries_related_status_response import BinariesRelatedStatusResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseBinariesRelatedStatusResponse(BaseModel): - """ - BaseResponseBinariesRelatedStatusResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[BinariesRelatedStatusResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseBinariesRelatedStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseBinariesRelatedStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": BinariesRelatedStatusResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_binary_additional_response.py b/revengai/models/base_response_binary_additional_response.py deleted file mode 100644 index 0177cc78..00000000 --- a/revengai/models/base_response_binary_additional_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.binary_additional_response import BinaryAdditionalResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseBinaryAdditionalResponse(BaseModel): - """ - BaseResponseBinaryAdditionalResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[BinaryAdditionalResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseBinaryAdditionalResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseBinaryAdditionalResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": BinaryAdditionalResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_binary_details_response.py b/revengai/models/base_response_binary_details_response.py deleted file mode 100644 index 6710ceac..00000000 --- a/revengai/models/base_response_binary_details_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.binary_details_response import BinaryDetailsResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseBinaryDetailsResponse(BaseModel): - """ - BaseResponseBinaryDetailsResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[BinaryDetailsResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseBinaryDetailsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseBinaryDetailsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": BinaryDetailsResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_binary_externals_response.py b/revengai/models/base_response_binary_externals_response.py deleted file mode 100644 index 455cf62e..00000000 --- a/revengai/models/base_response_binary_externals_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.binary_externals_response import BinaryExternalsResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseBinaryExternalsResponse(BaseModel): - """ - BaseResponseBinaryExternalsResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[BinaryExternalsResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseBinaryExternalsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseBinaryExternalsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": BinaryExternalsResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_binary_search_response.py b/revengai/models/base_response_binary_search_response.py deleted file mode 100644 index 673655fa..00000000 --- a/revengai/models/base_response_binary_search_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.binary_search_response import BinarySearchResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseBinarySearchResponse(BaseModel): - """ - BaseResponseBinarySearchResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[BinarySearchResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseBinarySearchResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseBinarySearchResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": BinarySearchResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_bool.py b/revengai/models/base_response_bool.py deleted file mode 100644 index d48ca777..00000000 --- a/revengai/models/base_response_bool.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseBool(BaseModel): - """ - BaseResponseBool - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[StrictBool] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseBool from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseBool from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": obj.get("data"), - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_callees_caller_functions_response.py b/revengai/models/base_response_callees_caller_functions_response.py deleted file mode 100644 index deb9de85..00000000 --- a/revengai/models/base_response_callees_caller_functions_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseCalleesCallerFunctionsResponse(BaseModel): - """ - BaseResponseCalleesCallerFunctionsResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[CalleesCallerFunctionsResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseCalleesCallerFunctionsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseCalleesCallerFunctionsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": CalleesCallerFunctionsResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_capabilities.py b/revengai/models/base_response_capabilities.py deleted file mode 100644 index 420ad9d1..00000000 --- a/revengai/models/base_response_capabilities.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.capabilities import Capabilities -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseCapabilities(BaseModel): - """ - BaseResponseCapabilities - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[Capabilities] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseCapabilities from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseCapabilities from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": Capabilities.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_capabilities_agent_response.py b/revengai/models/base_response_capabilities_agent_response.py deleted file mode 100644 index 86a16c2e..00000000 --- a/revengai/models/base_response_capabilities_agent_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.capabilities_agent_response import CapabilitiesAgentResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseCapabilitiesAgentResponse(BaseModel): - """ - BaseResponseCapabilitiesAgentResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[CapabilitiesAgentResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseCapabilitiesAgentResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseCapabilitiesAgentResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": CapabilitiesAgentResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_child_binaries_response.py b/revengai/models/base_response_child_binaries_response.py deleted file mode 100644 index cc56a7b5..00000000 --- a/revengai/models/base_response_child_binaries_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.child_binaries_response import ChildBinariesResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseChildBinariesResponse(BaseModel): - """ - BaseResponseChildBinariesResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[ChildBinariesResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseChildBinariesResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseChildBinariesResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": ChildBinariesResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_collection_binaries_update_response.py b/revengai/models/base_response_collection_binaries_update_response.py deleted file mode 100644 index 7465c9a3..00000000 --- a/revengai/models/base_response_collection_binaries_update_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.collection_binaries_update_response import CollectionBinariesUpdateResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseCollectionBinariesUpdateResponse(BaseModel): - """ - BaseResponseCollectionBinariesUpdateResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[CollectionBinariesUpdateResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseCollectionBinariesUpdateResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseCollectionBinariesUpdateResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": CollectionBinariesUpdateResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_collection_response.py b/revengai/models/base_response_collection_response.py deleted file mode 100644 index 770d149a..00000000 --- a/revengai/models/base_response_collection_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.collection_response import CollectionResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseCollectionResponse(BaseModel): - """ - BaseResponseCollectionResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[CollectionResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseCollectionResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseCollectionResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": CollectionResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_collection_search_response.py b/revengai/models/base_response_collection_search_response.py deleted file mode 100644 index 396dbf9a..00000000 --- a/revengai/models/base_response_collection_search_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.collection_search_response import CollectionSearchResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseCollectionSearchResponse(BaseModel): - """ - BaseResponseCollectionSearchResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[CollectionSearchResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseCollectionSearchResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseCollectionSearchResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": CollectionSearchResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_collection_tags_update_response.py b/revengai/models/base_response_collection_tags_update_response.py deleted file mode 100644 index 54a8f660..00000000 --- a/revengai/models/base_response_collection_tags_update_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.collection_tags_update_response import CollectionTagsUpdateResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseCollectionTagsUpdateResponse(BaseModel): - """ - BaseResponseCollectionTagsUpdateResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[CollectionTagsUpdateResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseCollectionTagsUpdateResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseCollectionTagsUpdateResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": CollectionTagsUpdateResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_comment_response.py b/revengai/models/base_response_comment_response.py deleted file mode 100644 index 08202a1c..00000000 --- a/revengai/models/base_response_comment_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.comment_response import CommentResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseCommentResponse(BaseModel): - """ - BaseResponseCommentResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[CommentResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseCommentResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseCommentResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": CommentResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_config_response.py b/revengai/models/base_response_config_response.py deleted file mode 100644 index 4462283d..00000000 --- a/revengai/models/base_response_config_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.config_response import ConfigResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseConfigResponse(BaseModel): - """ - BaseResponseConfigResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[ConfigResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseConfigResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseConfigResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": ConfigResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_created.py b/revengai/models/base_response_created.py deleted file mode 100644 index 2f8739d5..00000000 --- a/revengai/models/base_response_created.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.created import Created -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseCreated(BaseModel): - """ - BaseResponseCreated - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[Created] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseCreated from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseCreated from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": Created.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_dict.py b/revengai/models/base_response_dict.py deleted file mode 100644 index 0cec3326..00000000 --- a/revengai/models/base_response_dict.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseDict(BaseModel): - """ - BaseResponseDict - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[Dict[str, Any]] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseDict from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseDict from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": obj.get("data"), - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_external_response.py b/revengai/models/base_response_external_response.py deleted file mode 100644 index 347989b1..00000000 --- a/revengai/models/base_response_external_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.external_response import ExternalResponse -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseExternalResponse(BaseModel): - """ - BaseResponseExternalResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[ExternalResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseExternalResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseExternalResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": ExternalResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_function_blocks_response.py b/revengai/models/base_response_function_blocks_response.py deleted file mode 100644 index bc72948c..00000000 --- a/revengai/models/base_response_function_blocks_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.function_blocks_response import FunctionBlocksResponse -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseFunctionBlocksResponse(BaseModel): - """ - BaseResponseFunctionBlocksResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[FunctionBlocksResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseFunctionBlocksResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseFunctionBlocksResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": FunctionBlocksResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_function_capability_response.py b/revengai/models/base_response_function_capability_response.py deleted file mode 100644 index cacdf2f1..00000000 --- a/revengai/models/base_response_function_capability_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.function_capability_response import FunctionCapabilityResponse -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseFunctionCapabilityResponse(BaseModel): - """ - BaseResponseFunctionCapabilityResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[FunctionCapabilityResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseFunctionCapabilityResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseFunctionCapabilityResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": FunctionCapabilityResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_function_data_types.py b/revengai/models/base_response_function_data_types.py deleted file mode 100644 index 40151d0b..00000000 --- a/revengai/models/base_response_function_data_types.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.function_data_types import FunctionDataTypes -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseFunctionDataTypes(BaseModel): - """ - BaseResponseFunctionDataTypes - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[FunctionDataTypes] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseFunctionDataTypes from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseFunctionDataTypes from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": FunctionDataTypes.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_function_data_types_list.py b/revengai/models/base_response_function_data_types_list.py deleted file mode 100644 index 2e5dcdf1..00000000 --- a/revengai/models/base_response_function_data_types_list.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.function_data_types_list import FunctionDataTypesList -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseFunctionDataTypesList(BaseModel): - """ - BaseResponseFunctionDataTypesList - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[FunctionDataTypesList] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseFunctionDataTypesList from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseFunctionDataTypesList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": FunctionDataTypesList.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_function_search_response.py b/revengai/models/base_response_function_search_response.py deleted file mode 100644 index 94795a44..00000000 --- a/revengai/models/base_response_function_search_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.function_search_response import FunctionSearchResponse -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseFunctionSearchResponse(BaseModel): - """ - BaseResponseFunctionSearchResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[FunctionSearchResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseFunctionSearchResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseFunctionSearchResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": FunctionSearchResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_function_strings_response.py b/revengai/models/base_response_function_strings_response.py deleted file mode 100644 index 83d13db2..00000000 --- a/revengai/models/base_response_function_strings_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.function_strings_response import FunctionStringsResponse -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseFunctionStringsResponse(BaseModel): - """ - BaseResponseFunctionStringsResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[FunctionStringsResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseFunctionStringsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseFunctionStringsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": FunctionStringsResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_functions_detail_response.py b/revengai/models/base_response_functions_detail_response.py deleted file mode 100644 index 5533d5fe..00000000 --- a/revengai/models/base_response_functions_detail_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.functions_detail_response import FunctionsDetailResponse -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseFunctionsDetailResponse(BaseModel): - """ - BaseResponseFunctionsDetailResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[FunctionsDetailResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseFunctionsDetailResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseFunctionsDetailResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": FunctionsDetailResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_generate_function_data_types.py b/revengai/models/base_response_generate_function_data_types.py deleted file mode 100644 index 73162853..00000000 --- a/revengai/models/base_response_generate_function_data_types.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.generate_function_data_types import GenerateFunctionDataTypes -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseGenerateFunctionDataTypes(BaseModel): - """ - BaseResponseGenerateFunctionDataTypes - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[GenerateFunctionDataTypes] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseGenerateFunctionDataTypes from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseGenerateFunctionDataTypes from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": GenerateFunctionDataTypes.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_generation_status_list.py b/revengai/models/base_response_generation_status_list.py deleted file mode 100644 index 190f882f..00000000 --- a/revengai/models/base_response_generation_status_list.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.generation_status_list import GenerationStatusList -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseGenerationStatusList(BaseModel): - """ - BaseResponseGenerationStatusList - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[GenerationStatusList] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseGenerationStatusList from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseGenerationStatusList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": GenerationStatusList.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_get_public_user_response.py b/revengai/models/base_response_get_public_user_response.py deleted file mode 100644 index 5983c884..00000000 --- a/revengai/models/base_response_get_public_user_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.get_public_user_response import GetPublicUserResponse -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseGetPublicUserResponse(BaseModel): - """ - BaseResponseGetPublicUserResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[GetPublicUserResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseGetPublicUserResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseGetPublicUserResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": GetPublicUserResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_list_callees_caller_functions_response.py b/revengai/models/base_response_list_callees_caller_functions_response.py deleted file mode 100644 index 852a22f1..00000000 --- a/revengai/models/base_response_list_callees_caller_functions_response.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseListCalleesCallerFunctionsResponse(BaseModel): - """ - BaseResponseListCalleesCallerFunctionsResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[List[CalleesCallerFunctionsResponse]] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseListCalleesCallerFunctionsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseListCalleesCallerFunctionsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": [CalleesCallerFunctionsResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_list_collection_results.py b/revengai/models/base_response_list_collection_results.py deleted file mode 100644 index 366c2319..00000000 --- a/revengai/models/base_response_list_collection_results.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.list_collection_results import ListCollectionResults -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseListCollectionResults(BaseModel): - """ - BaseResponseListCollectionResults - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[ListCollectionResults] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseListCollectionResults from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseListCollectionResults from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": ListCollectionResults.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_list_comment_response.py b/revengai/models/base_response_list_comment_response.py deleted file mode 100644 index f2863165..00000000 --- a/revengai/models/base_response_list_comment_response.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.comment_response import CommentResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseListCommentResponse(BaseModel): - """ - BaseResponseListCommentResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[List[CommentResponse]] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseListCommentResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseListCommentResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": [CommentResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_list_die_match.py b/revengai/models/base_response_list_die_match.py deleted file mode 100644 index f91ae9cb..00000000 --- a/revengai/models/base_response_list_die_match.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.die_match import DieMatch -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseListDieMatch(BaseModel): - """ - BaseResponseListDieMatch - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[List[DieMatch]] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseListDieMatch from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseListDieMatch from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": [DieMatch.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_list_function_name_history.py b/revengai/models/base_response_list_function_name_history.py deleted file mode 100644 index 195c9654..00000000 --- a/revengai/models/base_response_list_function_name_history.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.function_name_history import FunctionNameHistory -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseListFunctionNameHistory(BaseModel): - """ - BaseResponseListFunctionNameHistory - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[List[FunctionNameHistory]] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseListFunctionNameHistory from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseListFunctionNameHistory from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": [FunctionNameHistory.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_list_sbom.py b/revengai/models/base_response_list_sbom.py deleted file mode 100644 index 52040b81..00000000 --- a/revengai/models/base_response_list_sbom.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.sbom import SBOM -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseListSBOM(BaseModel): - """ - BaseResponseListSBOM - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[List[SBOM]] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseListSBOM from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseListSBOM from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": [SBOM.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_list_user_activity_response.py b/revengai/models/base_response_list_user_activity_response.py deleted file mode 100644 index 58352f4e..00000000 --- a/revengai/models/base_response_list_user_activity_response.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.user_activity_response import UserActivityResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseListUserActivityResponse(BaseModel): - """ - BaseResponseListUserActivityResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[List[UserActivityResponse]] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseListUserActivityResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseListUserActivityResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": [UserActivityResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_logs.py b/revengai/models/base_response_logs.py deleted file mode 100644 index e0d68ab6..00000000 --- a/revengai/models/base_response_logs.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.logs import Logs -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseLogs(BaseModel): - """ - BaseResponseLogs - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[Logs] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseLogs from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseLogs from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": Logs.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_models_response.py b/revengai/models/base_response_models_response.py deleted file mode 100644 index c509770a..00000000 --- a/revengai/models/base_response_models_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.models_response import ModelsResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseModelsResponse(BaseModel): - """ - BaseResponseModelsResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[ModelsResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseModelsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseModelsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": ModelsResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_params.py b/revengai/models/base_response_params.py deleted file mode 100644 index 1fdd8c82..00000000 --- a/revengai/models/base_response_params.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.params import Params -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseParams(BaseModel): - """ - BaseResponseParams - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[Params] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseParams from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseParams from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": Params.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_queued_workflow_task_response.py b/revengai/models/base_response_queued_workflow_task_response.py deleted file mode 100644 index 316775a0..00000000 --- a/revengai/models/base_response_queued_workflow_task_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.queued_workflow_task_response import QueuedWorkflowTaskResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseQueuedWorkflowTaskResponse(BaseModel): - """ - BaseResponseQueuedWorkflowTaskResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[QueuedWorkflowTaskResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseQueuedWorkflowTaskResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseQueuedWorkflowTaskResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": QueuedWorkflowTaskResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_recent.py b/revengai/models/base_response_recent.py deleted file mode 100644 index d770ad02..00000000 --- a/revengai/models/base_response_recent.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.recent import Recent -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseRecent(BaseModel): - """ - BaseResponseRecent - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[Recent] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseRecent from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseRecent from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": Recent.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_report_analysis_response.py b/revengai/models/base_response_report_analysis_response.py deleted file mode 100644 index cc762100..00000000 --- a/revengai/models/base_response_report_analysis_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.report_analysis_response import ReportAnalysisResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseReportAnalysisResponse(BaseModel): - """ - BaseResponseReportAnalysisResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[ReportAnalysisResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseReportAnalysisResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseReportAnalysisResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": ReportAnalysisResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_status.py b/revengai/models/base_response_status.py deleted file mode 100644 index 9b202174..00000000 --- a/revengai/models/base_response_status.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.status_output import StatusOutput -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseStatus(BaseModel): - """ - BaseResponseStatus - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[StatusOutput] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseStatus from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseStatus from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": StatusOutput.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_str.py b/revengai/models/base_response_str.py deleted file mode 100644 index 6e75df96..00000000 --- a/revengai/models/base_response_str.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseStr(BaseModel): - """ - BaseResponseStr - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[StrictStr] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseStr from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseStr from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": obj.get("data"), - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_tag_search_response.py b/revengai/models/base_response_tag_search_response.py deleted file mode 100644 index 28c7b1de..00000000 --- a/revengai/models/base_response_tag_search_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.tag_search_response import TagSearchResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseTagSearchResponse(BaseModel): - """ - BaseResponseTagSearchResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[TagSearchResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseTagSearchResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseTagSearchResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": TagSearchResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_task_response.py b/revengai/models/base_response_task_response.py deleted file mode 100644 index b07a1782..00000000 --- a/revengai/models/base_response_task_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.task_response import TaskResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseTaskResponse(BaseModel): - """ - BaseResponseTaskResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[TaskResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseTaskResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseTaskResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": TaskResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_task_status_response.py b/revengai/models/base_response_task_status_response.py deleted file mode 100644 index e86f287c..00000000 --- a/revengai/models/base_response_task_status_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.task_status_response import TaskStatusResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseTaskStatusResponse(BaseModel): - """ - BaseResponseTaskStatusResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[TaskStatusResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseTaskStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseTaskStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": TaskStatusResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_triage_report_response.py b/revengai/models/base_response_triage_report_response.py deleted file mode 100644 index f9185657..00000000 --- a/revengai/models/base_response_triage_report_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.triage_report_response import TriageReportResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseTriageReportResponse(BaseModel): - """ - BaseResponseTriageReportResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[TriageReportResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseTriageReportResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseTriageReportResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": TriageReportResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_union_get_ai_decompilation_rating_response_none_type.py b/revengai/models/base_response_union_get_ai_decompilation_rating_response_none_type.py deleted file mode 100644 index 85aa6145..00000000 --- a/revengai/models/base_response_union_get_ai_decompilation_rating_response_none_type.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.get_ai_decompilation_rating_response import GetAiDecompilationRatingResponse -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseUnionGetAiDecompilationRatingResponseNoneType(BaseModel): - """ - BaseResponseUnionGetAiDecompilationRatingResponseNoneType - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[GetAiDecompilationRatingResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseUnionGetAiDecompilationRatingResponseNoneType from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseUnionGetAiDecompilationRatingResponseNoneType from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": GetAiDecompilationRatingResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_upload_response.py b/revengai/models/base_response_upload_response.py deleted file mode 100644 index b92075c4..00000000 --- a/revengai/models/base_response_upload_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.upload_response import UploadResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseUploadResponse(BaseModel): - """ - BaseResponseUploadResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[UploadResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseUploadResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseUploadResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": UploadResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_vulnerabilities.py b/revengai/models/base_response_vulnerabilities.py deleted file mode 100644 index 3c1b7bcb..00000000 --- a/revengai/models/base_response_vulnerabilities.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.vulnerabilities import Vulnerabilities -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseVulnerabilities(BaseModel): - """ - BaseResponseVulnerabilities - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[Vulnerabilities] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseVulnerabilities from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseVulnerabilities from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": Vulnerabilities.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_xref_response.py b/revengai/models/base_response_xref_response.py deleted file mode 100644 index a1424c96..00000000 --- a/revengai/models/base_response_xref_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.xref_response import XrefResponse -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseXrefResponse(BaseModel): - """ - BaseResponseXrefResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[XrefResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseXrefResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseXrefResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": XrefResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/basic.py b/revengai/models/basic.py deleted file mode 100644 index 5bc6eca3..00000000 --- a/revengai/models/basic.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class Basic(BaseModel): - """ - Basic - """ # noqa: E501 - binary_id: StrictInt = Field(description="The ID of the binary") - binary_name: StrictStr = Field(description="The name of the binary uploaded") - binary_size: StrictInt = Field(description="The size of the binary uploaded (bytes)") - creation: datetime = Field(description="When the binary was uploaded") - sha_256_hash: StrictStr = Field(description="The hash of the binary uploaded") - model_name: StrictStr = Field(description="The model name used for analysis") - model_id: StrictInt = Field(description="The model ID used for analysis") - owner_username: StrictStr = Field(description="The name of the owner of the binary") - is_system: StrictBool = Field(description="Whether the analysis is a system analysis") - analysis_scope: StrictStr = Field(description="The scope of the analysis") - is_owner: StrictBool = Field(description="Whether the current user is the owner") - debug: StrictBool = Field(description="Whether the current analysis was analysed with debug symbols") - function_count: StrictInt = Field(description="The number of functions in the binary") - is_advanced: StrictBool = Field(description="Whether the analysis was advanced") - base_address: Optional[StrictInt] - binary_uuid: Optional[StrictStr] = None - sequencer_version: Optional[StrictStr] = None - team_id: StrictInt = Field(description="The team ID of the analysis") - __properties: ClassVar[List[str]] = ["binary_id", "binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address", "binary_uuid", "sequencer_version", "team_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Basic from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if base_address (nullable) is None - # and model_fields_set contains the field - if self.base_address is None and "base_address" in self.model_fields_set: - _dict['base_address'] = None - - # set to None if binary_uuid (nullable) is None - # and model_fields_set contains the field - if self.binary_uuid is None and "binary_uuid" in self.model_fields_set: - _dict['binary_uuid'] = None - - # set to None if sequencer_version (nullable) is None - # and model_fields_set contains the field - if self.sequencer_version is None and "sequencer_version" in self.model_fields_set: - _dict['sequencer_version'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Basic from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "binary_id": obj.get("binary_id"), - "binary_name": obj.get("binary_name"), - "binary_size": obj.get("binary_size"), - "creation": obj.get("creation"), - "sha_256_hash": obj.get("sha_256_hash"), - "model_name": obj.get("model_name"), - "model_id": obj.get("model_id"), - "owner_username": obj.get("owner_username"), - "is_system": obj.get("is_system"), - "analysis_scope": obj.get("analysis_scope"), - "is_owner": obj.get("is_owner"), - "debug": obj.get("debug"), - "function_count": obj.get("function_count"), - "is_advanced": obj.get("is_advanced"), - "base_address": obj.get("base_address"), - "binary_uuid": obj.get("binary_uuid"), - "sequencer_version": obj.get("sequencer_version"), - "team_id": obj.get("team_id") - }) - return _obj - - diff --git a/revengai/models/batch_rename_input_body.py b/revengai/models/batch_rename_input_body.py index a389c4f8..3ce2d637 100644 --- a/revengai/models/batch_rename_input_body.py +++ b/revengai/models/batch_rename_input_body.py @@ -28,7 +28,6 @@ class BatchRenameInputBody(BaseModel): BatchRenameInputBody """ # noqa: E501 functions: Optional[Annotated[List[BatchRenameItem], Field(min_length=1, max_length=1000)]] = Field(description="List of functions to rename") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["functions"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_functions: _items.append(_item_functions.to_dict()) _dict['functions'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if functions (nullable) is None # and model_fields_set contains the field if self.functions is None and "functions" in self.model_fields_set: @@ -103,11 +95,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "functions": [BatchRenameItem.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/batch_rename_item.py b/revengai/models/batch_rename_item.py index f22cd96e..d86dc8eb 100644 --- a/revengai/models/batch_rename_item.py +++ b/revengai/models/batch_rename_item.py @@ -29,7 +29,6 @@ class BatchRenameItem(BaseModel): function_id: Annotated[int, Field(strict=True, ge=1)] = Field(description="Function ID to rename") new_mangled_name: Optional[Annotated[str, Field(strict=True, max_length=2048)]] = Field(default=None, description="New mangled function name") new_name: Annotated[str, Field(min_length=1, strict=True, max_length=2048)] = Field(description="New function name") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["function_id", "new_mangled_name", "new_name"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -94,11 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "new_mangled_name": obj.get("new_mangled_name"), "new_name": obj.get("new_name") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/batch_rename_output_body.py b/revengai/models/batch_rename_output_body.py index a0633a7d..6fc4a601 100644 --- a/revengai/models/batch_rename_output_body.py +++ b/revengai/models/batch_rename_output_body.py @@ -26,7 +26,6 @@ class BatchRenameOutputBody(BaseModel): BatchRenameOutputBody """ # noqa: E501 renamed_count: StrictInt = Field(description="Number of functions renamed") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["renamed_count"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -89,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "renamed_count": obj.get("renamed_count") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/batch_update_data_types_input_body.py b/revengai/models/batch_update_data_types_input_body.py index 9f447c58..a218388f 100644 --- a/revengai/models/batch_update_data_types_input_body.py +++ b/revengai/models/batch_update_data_types_input_body.py @@ -28,7 +28,6 @@ class BatchUpdateDataTypesInputBody(BaseModel): BatchUpdateDataTypesInputBody """ # noqa: E501 functions: Optional[Annotated[List[BatchUpdateDataTypesItem], Field(min_length=1, max_length=1000)]] = Field(description="List of functions to update. All function IDs must belong to the analysis in the URL.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["functions"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_functions: _items.append(_item_functions.to_dict()) _dict['functions'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if functions (nullable) is None # and model_fields_set contains the field if self.functions is None and "functions" in self.model_fields_set: @@ -103,11 +95,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "functions": [BatchUpdateDataTypesItem.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/batch_update_data_types_item.py b/revengai/models/batch_update_data_types_item.py index 0db860a0..2ffd9275 100644 --- a/revengai/models/batch_update_data_types_item.py +++ b/revengai/models/batch_update_data_types_item.py @@ -29,7 +29,6 @@ class BatchUpdateDataTypesItem(BaseModel): data_types: Optional[Any] data_types_version: Annotated[int, Field(strict=True, ge=0)] = Field(description="Current stored version. Pass 0 on the first write.") function_id: Annotated[int, Field(strict=True, ge=1)] = Field(description="Function ID") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data_types", "data_types_version", "function_id"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data_types (nullable) is None # and model_fields_set contains the field if self.data_types is None and "data_types" in self.model_fields_set: @@ -99,11 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "data_types_version": obj.get("data_types_version"), "function_id": obj.get("function_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/batch_update_data_types_output_body.py b/revengai/models/batch_update_data_types_output_body.py index f4db7d1b..057f08e0 100644 --- a/revengai/models/batch_update_data_types_output_body.py +++ b/revengai/models/batch_update_data_types_output_body.py @@ -27,7 +27,6 @@ class BatchUpdateDataTypesOutputBody(BaseModel): BatchUpdateDataTypesOutputBody """ # noqa: E501 results: Optional[List[BatchUpdateDataTypesResult]] = Field(description="Per-function outcomes in the same order as the input") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["results"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -78,11 +75,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_results: _items.append(_item_results.to_dict()) _dict['results'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if results (nullable) is None # and model_fields_set contains the field if self.results is None and "results" in self.model_fields_set: @@ -102,11 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "results": [BatchUpdateDataTypesResult.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/batch_update_data_types_result.py b/revengai/models/batch_update_data_types_result.py index 6d087595..e37cd1dc 100644 --- a/revengai/models/batch_update_data_types_result.py +++ b/revengai/models/batch_update_data_types_result.py @@ -30,7 +30,6 @@ class BatchUpdateDataTypesResult(BaseModel): error: Optional[StrictStr] = Field(default=None, description="Error message (present when status is 'error')") function_id: StrictInt = Field(description="Function ID") status: StrictStr = Field(description="Outcome for this function") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data_types", "data_types_version", "error", "function_id", "status"] @field_validator('status') @@ -70,10 +69,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -81,11 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data_types (nullable) is None # and model_fields_set contains the field if self.data_types is None and "data_types" in self.model_fields_set: @@ -109,11 +101,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "function_id": obj.get("function_id"), "status": obj.get("status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/binaries_related_status_response.py b/revengai/models/binaries_related_status_response.py deleted file mode 100644 index 203bc820..00000000 --- a/revengai/models/binaries_related_status_response.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class BinariesRelatedStatusResponse(BaseModel): - """ - BinariesRelatedStatusResponse - """ # noqa: E501 - status: StrictStr = Field(description="The current status of the unpack binary task") - __properties: ClassVar[List[str]] = ["status"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BinariesRelatedStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BinariesRelatedStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") - }) - return _obj - - diff --git a/revengai/models/binaries_task_status.py b/revengai/models/binaries_task_status.py deleted file mode 100644 index 89ee44ed..00000000 --- a/revengai/models/binaries_task_status.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class BinariesTaskStatus(str, Enum): - """ - BinariesTaskStatus - """ - - """ - allowed enum values - """ - UNINITIALISED = 'UNINITIALISED' - PENDING = 'PENDING' - RUNNING = 'RUNNING' - COMPLETED = 'COMPLETED' - FAILED = 'FAILED' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of BinariesTaskStatus from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/binary.py b/revengai/models/binary.py index 516692cd..c065b55c 100644 --- a/revengai/models/binary.py +++ b/revengai/models/binary.py @@ -33,7 +33,6 @@ class Binary(BaseModel): is_system_analysis: StrictBool owner_id: StrictInt sha_256_hash: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "created_at", "is_system_analysis", "owner_id", "sha_256_hash"] model_config = ConfigDict( @@ -66,10 +65,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -77,11 +74,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -102,11 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "owner_id": obj.get("owner_id"), "sha_256_hash": obj.get("sha_256_hash") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/binary_additional_details_data_response.py b/revengai/models/binary_additional_details_data_response.py deleted file mode 100644 index 94d566a7..00000000 --- a/revengai/models/binary_additional_details_data_response.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.elf_model import ELFModel -from revengai.models.file_metadata import FileMetadata -from revengai.models.pe_model import PEModel -from typing import Optional, Set -from typing_extensions import Self - -class BinaryAdditionalDetailsDataResponse(BaseModel): - """ - BinaryAdditionalDetailsDataResponse - """ # noqa: E501 - file: FileMetadata - pe: Optional[PEModel] = None - elf: Optional[ELFModel] = None - __properties: ClassVar[List[str]] = ["file", "pe", "elf"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BinaryAdditionalDetailsDataResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of file - if self.file: - _dict['file'] = self.file.to_dict() - # override the default output from pydantic by calling `to_dict()` of pe - if self.pe: - _dict['pe'] = self.pe.to_dict() - # override the default output from pydantic by calling `to_dict()` of elf - if self.elf: - _dict['elf'] = self.elf.to_dict() - # set to None if pe (nullable) is None - # and model_fields_set contains the field - if self.pe is None and "pe" in self.model_fields_set: - _dict['pe'] = None - - # set to None if elf (nullable) is None - # and model_fields_set contains the field - if self.elf is None and "elf" in self.model_fields_set: - _dict['elf'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BinaryAdditionalDetailsDataResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "file": FileMetadata.from_dict(obj["file"]) if obj.get("file") is not None else None, - "pe": PEModel.from_dict(obj["pe"]) if obj.get("pe") is not None else None, - "elf": ELFModel.from_dict(obj["elf"]) if obj.get("elf") is not None else None - }) - return _obj - - diff --git a/revengai/models/binary_additional_response.py b/revengai/models/binary_additional_response.py deleted file mode 100644 index a7684fb4..00000000 --- a/revengai/models/binary_additional_response.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse -from typing import Optional, Set -from typing_extensions import Self - -class BinaryAdditionalResponse(BaseModel): - """ - BinaryAdditionalResponse - """ # noqa: E501 - binary_id: StrictInt - details: Optional[BinaryAdditionalDetailsDataResponse] - creation: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["binary_id", "details", "creation"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BinaryAdditionalResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of details - if self.details: - _dict['details'] = self.details.to_dict() - # set to None if details (nullable) is None - # and model_fields_set contains the field - if self.details is None and "details" in self.model_fields_set: - _dict['details'] = None - - # set to None if creation (nullable) is None - # and model_fields_set contains the field - if self.creation is None and "creation" in self.model_fields_set: - _dict['creation'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BinaryAdditionalResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "binary_id": obj.get("binary_id"), - "details": BinaryAdditionalDetailsDataResponse.from_dict(obj["details"]) if obj.get("details") is not None else None, - "creation": obj.get("creation") - }) - return _obj - - diff --git a/revengai/models/binary_config.py b/revengai/models/binary_config.py deleted file mode 100644 index 1a7dcb8f..00000000 --- a/revengai/models/binary_config.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.file_format import FileFormat -from revengai.models.isa import ISA -from revengai.models.platform import Platform -from typing import Optional, Set -from typing_extensions import Self - -class BinaryConfig(BaseModel): - """ - BinaryConfig - """ # noqa: E501 - isa: Optional[ISA] = None - platform: Optional[Platform] = None - file_format: Optional[FileFormat] = None - __properties: ClassVar[List[str]] = ["isa", "platform", "file_format"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BinaryConfig from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if isa (nullable) is None - # and model_fields_set contains the field - if self.isa is None and "isa" in self.model_fields_set: - _dict['isa'] = None - - # set to None if platform (nullable) is None - # and model_fields_set contains the field - if self.platform is None and "platform" in self.model_fields_set: - _dict['platform'] = None - - # set to None if file_format (nullable) is None - # and model_fields_set contains the field - if self.file_format is None and "file_format" in self.model_fields_set: - _dict['file_format'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BinaryConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "isa": obj.get("isa"), - "platform": obj.get("platform"), - "file_format": obj.get("file_format") - }) - return _obj - - diff --git a/revengai/models/binary_details_response.py b/revengai/models/binary_details_response.py deleted file mode 100644 index 46ae9561..00000000 --- a/revengai/models/binary_details_response.py +++ /dev/null @@ -1,130 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class BinaryDetailsResponse(BaseModel): - """ - BinaryDetailsResponse - """ # noqa: E501 - arch: StrictStr = Field(description="The architecture of the binary") - bits: StrictInt = Field(description="The size of the binary in bits") - crc32: StrictStr - var_class: StrictStr = Field(alias="Class") - entropy: Union[StrictFloat, StrictInt] - file_size: StrictInt - language: StrictStr - md5: StrictStr - machine: StrictStr - os: StrictStr = Field(description="OS target of the binary") - sha1: StrictStr = Field(description="SHA1 hash of the binary") - sha256: StrictStr = Field(description="SHA256 hash of the binary") - ssdeep: Optional[StrictStr] - static: StrictBool - stripped: StrictBool - sub_sys: StrictStr - tlsh: StrictStr - type: StrictStr - debug: StrictBool - first_seen: datetime - __properties: ClassVar[List[str]] = ["arch", "bits", "crc32", "Class", "entropy", "file_size", "language", "md5", "machine", "os", "sha1", "sha256", "ssdeep", "static", "stripped", "sub_sys", "tlsh", "type", "debug", "first_seen"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BinaryDetailsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if ssdeep (nullable) is None - # and model_fields_set contains the field - if self.ssdeep is None and "ssdeep" in self.model_fields_set: - _dict['ssdeep'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BinaryDetailsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "arch": obj.get("arch"), - "bits": obj.get("bits"), - "crc32": obj.get("crc32"), - "Class": obj.get("Class"), - "entropy": obj.get("entropy"), - "file_size": obj.get("file_size"), - "language": obj.get("language"), - "md5": obj.get("md5"), - "machine": obj.get("machine"), - "os": obj.get("os"), - "sha1": obj.get("sha1"), - "sha256": obj.get("sha256"), - "ssdeep": obj.get("ssdeep"), - "static": obj.get("static"), - "stripped": obj.get("stripped"), - "sub_sys": obj.get("sub_sys"), - "tlsh": obj.get("tlsh"), - "type": obj.get("type"), - "debug": obj.get("debug"), - "first_seen": obj.get("first_seen") - }) - return _obj - - diff --git a/revengai/models/binary_externals_response.py b/revengai/models/binary_externals_response.py deleted file mode 100644 index 5e573615..00000000 --- a/revengai/models/binary_externals_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class BinaryExternalsResponse(BaseModel): - """ - BinaryExternalsResponse - """ # noqa: E501 - sha_256_hash: StrictStr = Field(description="SHA256 hash of the binary") - vt: Dict[str, Any] = Field(description="VirusTotal information") - vt_last_updated: datetime = Field(description="VirusTotal last updated date") - mb: Dict[str, Any] = Field(description="MalwareBazaar information") - mb_last_updated: datetime = Field(description="MalwareBazaar last updated date") - __properties: ClassVar[List[str]] = ["sha_256_hash", "vt", "vt_last_updated", "mb", "mb_last_updated"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BinaryExternalsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BinaryExternalsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "sha_256_hash": obj.get("sha_256_hash"), - "vt": obj.get("vt"), - "vt_last_updated": obj.get("vt_last_updated"), - "mb": obj.get("mb"), - "mb_last_updated": obj.get("mb_last_updated") - }) - return _obj - - diff --git a/revengai/models/binary_search_response.py b/revengai/models/binary_search_response.py deleted file mode 100644 index 5cf0a899..00000000 --- a/revengai/models/binary_search_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.binary_search_result import BinarySearchResult -from typing import Optional, Set -from typing_extensions import Self - -class BinarySearchResponse(BaseModel): - """ - BinarySearchResponse - """ # noqa: E501 - results: List[BinarySearchResult] = Field(description="The results of the search") - __properties: ClassVar[List[str]] = ["results"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BinarySearchResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item_results in self.results: - if _item_results: - _items.append(_item_results.to_dict()) - _dict['results'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BinarySearchResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "results": [BinarySearchResult.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None - }) - return _obj - - diff --git a/revengai/models/binary_search_result.py b/revengai/models/binary_search_result.py deleted file mode 100644 index c335ed32..00000000 --- a/revengai/models/binary_search_result.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class BinarySearchResult(BaseModel): - """ - BinarySearchResult - """ # noqa: E501 - binary_id: StrictInt = Field(description="The binary ID") - binary_name: StrictStr = Field(description="The name of the binary") - analysis_id: StrictInt = Field(description="The analysis ID") - sha_256_hash: StrictStr = Field(description="The SHA-256 hash of the binary") - tags: Optional[List[StrictStr]] - created_at: datetime = Field(description="The creation date of the binary") - model_id: StrictInt = Field(description="The model ID of the binary") - model_name: StrictStr = Field(description="The name of the model") - owned_by: StrictStr = Field(description="The owner of the binary") - __properties: ClassVar[List[str]] = ["binary_id", "binary_name", "analysis_id", "sha_256_hash", "tags", "created_at", "model_id", "model_name", "owned_by"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BinarySearchResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if tags (nullable) is None - # and model_fields_set contains the field - if self.tags is None and "tags" in self.model_fields_set: - _dict['tags'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BinarySearchResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "binary_id": obj.get("binary_id"), - "binary_name": obj.get("binary_name"), - "analysis_id": obj.get("analysis_id"), - "sha_256_hash": obj.get("sha_256_hash"), - "tags": obj.get("tags"), - "created_at": obj.get("created_at"), - "model_id": obj.get("model_id"), - "model_name": obj.get("model_name"), - "owned_by": obj.get("owned_by") - }) - return _obj - - diff --git a/revengai/models/binary_task_status.py b/revengai/models/binary_task_status.py deleted file mode 100644 index 52bdfc5e..00000000 --- a/revengai/models/binary_task_status.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class BinaryTaskStatus(str, Enum): - """ - BinaryTaskStatus - """ - - """ - allowed enum values - """ - UNINITIALISED = 'UNINITIALISED' - PENDING = 'PENDING' - RUNNING = 'RUNNING' - COMPLETED = 'COMPLETED' - FAILED = 'FAILED' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of BinaryTaskStatus from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/bulk_create_user_result.py b/revengai/models/bulk_create_user_result.py index 3d13b1bc..a2a53e66 100644 --- a/revengai/models/bulk_create_user_result.py +++ b/revengai/models/bulk_create_user_result.py @@ -26,12 +26,12 @@ class BulkCreateUserResult(BaseModel): """ BulkCreateUserResult """ # noqa: E501 - email: Optional[StrictStr] + email: StrictStr error: Optional[StrictStr] = Field(default=None, description="Error description; present on failure") index: StrictInt = Field(description="1-based row index in the CSV") success: StrictBool user: Optional[User] = Field(default=None, description="Created user; present on success") - username: Optional[StrictStr] + username: StrictStr additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["email", "error", "index", "success", "user", "username"] @@ -84,16 +84,6 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value - # set to None if email (nullable) is None - # and model_fields_set contains the field - if self.email is None and "email" in self.model_fields_set: - _dict['email'] = None - - # set to None if username (nullable) is None - # and model_fields_set contains the field - if self.username is None and "username" in self.model_fields_set: - _dict['username'] = None - return _dict @classmethod diff --git a/revengai/models/bulk_delete_analyses_request.py b/revengai/models/bulk_delete_analyses_request.py deleted file mode 100644 index d3828cd5..00000000 --- a/revengai/models/bulk_delete_analyses_request.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class BulkDeleteAnalysesRequest(BaseModel): - """ - BulkDeleteAnalysesRequest - """ # noqa: E501 - analysis_ids: List[StrictInt] - __properties: ClassVar[List[str]] = ["analysis_ids"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BulkDeleteAnalysesRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BulkDeleteAnalysesRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analysis_ids": obj.get("analysis_ids") - }) - return _obj - - diff --git a/revengai/models/call_edge.py b/revengai/models/call_edge.py index 1a5a245c..5b37865d 100644 --- a/revengai/models/call_edge.py +++ b/revengai/models/call_edge.py @@ -34,7 +34,6 @@ class CallEdge(BaseModel): imported_function_id: Optional[StrictInt] = Field(default=None, description="Imported function ID for an external callee, resolved via the thunk/stub address.") is_external: StrictBool thunked_vaddr: Optional[StrictInt] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["callee_function_id", "callee_name", "callee_vaddr", "caller_function_id", "caller_name", "caller_vaddr", "imported_function_id", "is_external", "thunked_vaddr"] model_config = ConfigDict( @@ -67,10 +66,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -78,11 +75,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -105,11 +97,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "is_external": obj.get("is_external"), "thunked_vaddr": obj.get("thunked_vaddr") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/call_edges_output_body.py b/revengai/models/call_edges_output_body.py index 9d6ca202..7d0ae583 100644 --- a/revengai/models/call_edges_output_body.py +++ b/revengai/models/call_edges_output_body.py @@ -27,7 +27,6 @@ class CallEdgesOutputBody(BaseModel): CallEdgesOutputBody """ # noqa: E501 edges: Optional[List[FunctionCallEdges]] - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["edges"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -78,11 +75,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_edges: _items.append(_item_edges.to_dict()) _dict['edges'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if edges (nullable) is None # and model_fields_set contains the field if self.edges is None and "edges" in self.model_fields_set: @@ -102,11 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "edges": [FunctionCallEdges.from_dict(_item) for _item in obj["edges"]] if obj.get("edges") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/callee_function_info.py b/revengai/models/callee_function_info.py deleted file mode 100644 index a8e7f2f5..00000000 --- a/revengai/models/callee_function_info.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CalleeFunctionInfo(BaseModel): - """ - CalleeFunctionInfo - """ # noqa: E501 - function_id: StrictInt = Field(description="Unique identifier of the function") - matched_function_id: Optional[StrictInt] - dashboard_url: Optional[StrictStr] - is_external: Optional[StrictBool] = Field(default=False, description="Indicates if the function is external") - callee_name: StrictStr = Field(description="Name of the called function") - callee_vaddr: StrictStr = Field(description="Virtual address of the called function") - __properties: ClassVar[List[str]] = ["function_id", "matched_function_id", "dashboard_url", "is_external", "callee_name", "callee_vaddr"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CalleeFunctionInfo from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if matched_function_id (nullable) is None - # and model_fields_set contains the field - if self.matched_function_id is None and "matched_function_id" in self.model_fields_set: - _dict['matched_function_id'] = None - - # set to None if dashboard_url (nullable) is None - # and model_fields_set contains the field - if self.dashboard_url is None and "dashboard_url" in self.model_fields_set: - _dict['dashboard_url'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CalleeFunctionInfo from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "matched_function_id": obj.get("matched_function_id"), - "dashboard_url": obj.get("dashboard_url"), - "is_external": obj.get("is_external") if obj.get("is_external") is not None else False, - "callee_name": obj.get("callee_name"), - "callee_vaddr": obj.get("callee_vaddr") - }) - return _obj - - diff --git a/revengai/models/callees_caller_functions_response.py b/revengai/models/callees_caller_functions_response.py deleted file mode 100644 index eeba04e5..00000000 --- a/revengai/models/callees_caller_functions_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List -from revengai.models.callee_function_info import CalleeFunctionInfo -from revengai.models.caller_function_info import CallerFunctionInfo -from typing import Optional, Set -from typing_extensions import Self - -class CalleesCallerFunctionsResponse(BaseModel): - """ - CalleesCallerFunctionsResponse - """ # noqa: E501 - base_address: StrictInt = Field(description="Base address of the binary") - callees: List[CalleeFunctionInfo] = Field(description="List of functions called by the target function") - callers: List[CallerFunctionInfo] = Field(description="List of functions that call the target function") - __properties: ClassVar[List[str]] = ["base_address", "callees", "callers"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CalleesCallerFunctionsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in callees (list) - _items = [] - if self.callees: - for _item_callees in self.callees: - if _item_callees: - _items.append(_item_callees.to_dict()) - _dict['callees'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in callers (list) - _items = [] - if self.callers: - for _item_callers in self.callers: - if _item_callers: - _items.append(_item_callers.to_dict()) - _dict['callers'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CalleesCallerFunctionsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "base_address": obj.get("base_address"), - "callees": [CalleeFunctionInfo.from_dict(_item) for _item in obj["callees"]] if obj.get("callees") is not None else None, - "callers": [CallerFunctionInfo.from_dict(_item) for _item in obj["callers"]] if obj.get("callers") is not None else None - }) - return _obj - - diff --git a/revengai/models/caller_function_info.py b/revengai/models/caller_function_info.py deleted file mode 100644 index 109cd7dc..00000000 --- a/revengai/models/caller_function_info.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CallerFunctionInfo(BaseModel): - """ - CallerFunctionInfo - """ # noqa: E501 - function_id: StrictInt = Field(description="Unique identifier of the function") - matched_function_id: Optional[StrictInt] - dashboard_url: Optional[StrictStr] - is_external: Optional[StrictBool] = Field(default=False, description="Indicates if the function is external") - caller_name: StrictStr = Field(description="Name of the calling function") - caller_vaddr: StrictStr = Field(description="Virtual address of the calling function") - __properties: ClassVar[List[str]] = ["function_id", "matched_function_id", "dashboard_url", "is_external", "caller_name", "caller_vaddr"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CallerFunctionInfo from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if matched_function_id (nullable) is None - # and model_fields_set contains the field - if self.matched_function_id is None and "matched_function_id" in self.model_fields_set: - _dict['matched_function_id'] = None - - # set to None if dashboard_url (nullable) is None - # and model_fields_set contains the field - if self.dashboard_url is None and "dashboard_url" in self.model_fields_set: - _dict['dashboard_url'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CallerFunctionInfo from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "matched_function_id": obj.get("matched_function_id"), - "dashboard_url": obj.get("dashboard_url"), - "is_external": obj.get("is_external") if obj.get("is_external") is not None else False, - "caller_name": obj.get("caller_name"), - "caller_vaddr": obj.get("caller_vaddr") - }) - return _obj - - diff --git a/revengai/models/canonical_name.py b/revengai/models/canonical_name.py index c8e41b32..7129feb7 100644 --- a/revengai/models/canonical_name.py +++ b/revengai/models/canonical_name.py @@ -27,7 +27,6 @@ class CanonicalName(BaseModel): """ # noqa: E501 canonical_name: StrictStr = Field(description="Canonical form of the name, or the input name itself when it has no canonical form.") name: StrictStr = Field(description="The input function name.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["canonical_name", "name"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -71,11 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -91,11 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "canonical_name": obj.get("canonical_name"), "name": obj.get("name") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/canonicalize_names_input_body.py b/revengai/models/canonicalize_names_input_body.py index b929a58d..cc2aa541 100644 --- a/revengai/models/canonicalize_names_input_body.py +++ b/revengai/models/canonicalize_names_input_body.py @@ -27,7 +27,6 @@ class CanonicalizeNamesInputBody(BaseModel): CanonicalizeNamesInputBody """ # noqa: E501 names: Optional[Annotated[List[StrictStr], Field(min_length=1, max_length=25)]] = Field(description="Function names to canonicalize.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["names"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -71,11 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if names (nullable) is None # and model_fields_set contains the field if self.names is None and "names" in self.model_fields_set: @@ -95,11 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "names": obj.get("names") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/canonicalize_names_output_body.py b/revengai/models/canonicalize_names_output_body.py index 8c96bbd1..be3b6c05 100644 --- a/revengai/models/canonicalize_names_output_body.py +++ b/revengai/models/canonicalize_names_output_body.py @@ -27,7 +27,6 @@ class CanonicalizeNamesOutputBody(BaseModel): CanonicalizeNamesOutputBody """ # noqa: E501 results: Optional[List[CanonicalName]] = Field(description="Canonicalized names in the same order as the input.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["results"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -78,11 +75,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_results: _items.append(_item_results.to_dict()) _dict['results'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if results (nullable) is None # and model_fields_set contains the field if self.results is None and "results" in self.model_fields_set: @@ -102,11 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "results": [CanonicalName.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/capabilities.py b/revengai/models/capabilities.py deleted file mode 100644 index 21513932..00000000 --- a/revengai/models/capabilities.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.app_api_rest_v2_info_types_capability import AppApiRestV2InfoTypesCapability -from typing import Optional, Set -from typing_extensions import Self - -class Capabilities(BaseModel): - """ - Capabilities - """ # noqa: E501 - capabilities: List[AppApiRestV2InfoTypesCapability] = Field(description="List of capabilities for a given analysis") - __properties: ClassVar[List[str]] = ["capabilities"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Capabilities from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in capabilities (list) - _items = [] - if self.capabilities: - for _item_capabilities in self.capabilities: - if _item_capabilities: - _items.append(_item_capabilities.to_dict()) - _dict['capabilities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Capabilities from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "capabilities": [AppApiRestV2InfoTypesCapability.from_dict(_item) for _item in obj["capabilities"]] if obj.get("capabilities") is not None else None - }) - return _obj - - diff --git a/revengai/models/capabilities_agent_response.py b/revengai/models/capabilities_agent_response.py deleted file mode 100644 index 71166c79..00000000 --- a/revengai/models/capabilities_agent_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.app_api_rest_v2_agent_schema_capability import AppApiRestV2AgentSchemaCapability -from typing import Optional, Set -from typing_extensions import Self - -class CapabilitiesAgentResponse(BaseModel): - """ - CapabilitiesAgentResponse - """ # noqa: E501 - capabilities: List[AppApiRestV2AgentSchemaCapability] = Field(description="List of enriched capability data") - __properties: ClassVar[List[str]] = ["capabilities"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CapabilitiesAgentResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in capabilities (list) - _items = [] - if self.capabilities: - for _item_capabilities in self.capabilities: - if _item_capabilities: - _items.append(_item_capabilities.to_dict()) - _dict['capabilities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CapabilitiesAgentResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "capabilities": [AppApiRestV2AgentSchemaCapability.from_dict(_item) for _item in obj["capabilities"]] if obj.get("capabilities") is not None else None - }) - return _obj - - diff --git a/revengai/models/capabilities_output_body.py b/revengai/models/capabilities_output_body.py index 7eb2bf47..9ae48c29 100644 --- a/revengai/models/capabilities_output_body.py +++ b/revengai/models/capabilities_output_body.py @@ -27,7 +27,6 @@ class CapabilitiesOutputBody(BaseModel): CapabilitiesOutputBody """ # noqa: E501 capabilities: Optional[List[CapabilityEntry]] - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["capabilities"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -78,11 +75,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_capabilities: _items.append(_item_capabilities.to_dict()) _dict['capabilities'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if capabilities (nullable) is None # and model_fields_set contains the field if self.capabilities is None and "capabilities" in self.model_fields_set: @@ -102,11 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "capabilities": [CapabilityEntry.from_dict(_item) for _item in obj["capabilities"]] if obj.get("capabilities") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/capability_entry.py b/revengai/models/capability_entry.py index dd282f9f..cbc45000 100644 --- a/revengai/models/capability_entry.py +++ b/revengai/models/capability_entry.py @@ -31,7 +31,6 @@ class CapabilityEntry(BaseModel): function_name: StrictStr type: StrictStr vaddr: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["capability", "description", "function_id", "function_name", "type", "vaddr"] model_config = ConfigDict( @@ -64,10 +63,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -75,11 +72,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -99,11 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "type": obj.get("type"), "vaddr": obj.get("vaddr") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/child_binaries_response.py b/revengai/models/child_binaries_response.py deleted file mode 100644 index 3f8955b9..00000000 --- a/revengai/models/child_binaries_response.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.relative_binary_response import RelativeBinaryResponse -from typing import Optional, Set -from typing_extensions import Self - -class ChildBinariesResponse(BaseModel): - """ - ChildBinariesResponse - """ # noqa: E501 - children: List[RelativeBinaryResponse] = Field(description="List of child binaries associated with the parent binary") - parent: Optional[RelativeBinaryResponse] = None - __properties: ClassVar[List[str]] = ["children", "parent"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ChildBinariesResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in children (list) - _items = [] - if self.children: - for _item_children in self.children: - if _item_children: - _items.append(_item_children.to_dict()) - _dict['children'] = _items - # override the default output from pydantic by calling `to_dict()` of parent - if self.parent: - _dict['parent'] = self.parent.to_dict() - # set to None if parent (nullable) is None - # and model_fields_set contains the field - if self.parent is None and "parent" in self.model_fields_set: - _dict['parent'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ChildBinariesResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "children": [RelativeBinaryResponse.from_dict(_item) for _item in obj["children"]] if obj.get("children") is not None else None, - "parent": RelativeBinaryResponse.from_dict(obj["parent"]) if obj.get("parent") is not None else None - }) - return _obj - - diff --git a/revengai/models/code_signature_model.py b/revengai/models/code_signature_model.py deleted file mode 100644 index 6d4f180b..00000000 --- a/revengai/models/code_signature_model.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool -from typing import Any, ClassVar, Dict, List -from revengai.models.single_code_signature_model import SingleCodeSignatureModel -from typing import Optional, Set -from typing_extensions import Self - -class CodeSignatureModel(BaseModel): - """ - CodeSignatureModel - """ # noqa: E501 - signed: StrictBool - valid_signature: StrictBool - signatures: List[SingleCodeSignatureModel] - __properties: ClassVar[List[str]] = ["signed", "valid_signature", "signatures"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CodeSignatureModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in signatures (list) - _items = [] - if self.signatures: - for _item_signatures in self.signatures: - if _item_signatures: - _items.append(_item_signatures.to_dict()) - _dict['signatures'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CodeSignatureModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "signed": obj.get("signed"), - "valid_signature": obj.get("valid_signature"), - "signatures": [SingleCodeSignatureModel.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None - }) - return _obj - - diff --git a/revengai/models/collection_binaries_update_request.py b/revengai/models/collection_binaries_update_request.py deleted file mode 100644 index 63c0ad34..00000000 --- a/revengai/models/collection_binaries_update_request.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class CollectionBinariesUpdateRequest(BaseModel): - """ - CollectionBinariesUpdateRequest - """ # noqa: E501 - binaries: List[StrictInt] - __properties: ClassVar[List[str]] = ["binaries"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionBinariesUpdateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionBinariesUpdateRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "binaries": obj.get("binaries") - }) - return _obj - - diff --git a/revengai/models/collection_binaries_update_response.py b/revengai/models/collection_binaries_update_response.py deleted file mode 100644 index 21258168..00000000 --- a/revengai/models/collection_binaries_update_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.collection_binary_response import CollectionBinaryResponse -from typing import Optional, Set -from typing_extensions import Self - -class CollectionBinariesUpdateResponse(BaseModel): - """ - CollectionBinariesUpdateResponse - """ # noqa: E501 - binaries: List[CollectionBinaryResponse] = Field(description="Collection binaries") - __properties: ClassVar[List[str]] = ["binaries"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionBinariesUpdateResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in binaries (list) - _items = [] - if self.binaries: - for _item_binaries in self.binaries: - if _item_binaries: - _items.append(_item_binaries.to_dict()) - _dict['binaries'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionBinariesUpdateResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "binaries": [CollectionBinaryResponse.from_dict(_item) for _item in obj["binaries"]] if obj.get("binaries") is not None else None - }) - return _obj - - diff --git a/revengai/models/collection_binary_response.py b/revengai/models/collection_binary_response.py deleted file mode 100644 index bd2c8675..00000000 --- a/revengai/models/collection_binary_response.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class CollectionBinaryResponse(BaseModel): - """ - CollectionBinaryResponse - """ # noqa: E501 - analysis_id: StrictInt = Field(description="Analysis ID") - binary_id: StrictInt = Field(description="Binary ID") - binary_name: StrictStr = Field(description="Binary name") - owner_id: StrictInt = Field(description="Binary owner") - sha_256_hash: StrictStr = Field(description="Binary SHA-256 hash") - created_at: datetime = Field(description="Binary creation date") - is_system_analysis: StrictBool = Field(description="Is the analysis owned by a RevEng.AI account") - __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at", "is_system_analysis"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionBinaryResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionBinaryResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analysis_id": obj.get("analysis_id"), - "binary_id": obj.get("binary_id"), - "binary_name": obj.get("binary_name"), - "owner_id": obj.get("owner_id"), - "sha_256_hash": obj.get("sha_256_hash"), - "created_at": obj.get("created_at"), - "is_system_analysis": obj.get("is_system_analysis") - }) - return _obj - - diff --git a/revengai/models/collection_create_request.py b/revengai/models/collection_create_request.py deleted file mode 100644 index ddb86c22..00000000 --- a/revengai/models/collection_create_request.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.collection_scope import CollectionScope -from typing import Optional, Set -from typing_extensions import Self - -class CollectionCreateRequest(BaseModel): - """ - CollectionCreateRequest - """ # noqa: E501 - collection_name: StrictStr - description: StrictStr - collection_scope: Optional[CollectionScope] = None - tags: Optional[List[StrictStr]] = None - binaries: Optional[List[StrictInt]] = None - __properties: ClassVar[List[str]] = ["collection_name", "description", "collection_scope", "tags", "binaries"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionCreateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if tags (nullable) is None - # and model_fields_set contains the field - if self.tags is None and "tags" in self.model_fields_set: - _dict['tags'] = None - - # set to None if binaries (nullable) is None - # and model_fields_set contains the field - if self.binaries is None and "binaries" in self.model_fields_set: - _dict['binaries'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionCreateRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "collection_name": obj.get("collection_name"), - "description": obj.get("description"), - "collection_scope": obj.get("collection_scope"), - "tags": obj.get("tags"), - "binaries": obj.get("binaries") - }) - return _obj - - diff --git a/revengai/models/collection_list_item.py b/revengai/models/collection_list_item.py deleted file mode 100644 index ea76f65a..00000000 --- a/revengai/models/collection_list_item.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CollectionListItem(BaseModel): - """ - CollectionListItem - """ # noqa: E501 - collection_name: StrictStr = Field(description="The name of the collection") - description: StrictStr = Field(description="The description of the collection") - collection_scope: StrictStr = Field(description="The scope of the collection") - collection_owner: StrictStr = Field(description="The owner of the collection") - official_collection: StrictBool = Field(description="Whether the collection is maintained by RevEng.AI") - collection_tags: Optional[List[StrictStr]] = Field(default=None, description="The tags of the collection") - collection_size: StrictInt = Field(description="The size of the collection") - collection_id: StrictInt = Field(description="The ID of the collection") - creation: datetime = Field(description="The datetime of when the collection was created") - team_id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["collection_name", "description", "collection_scope", "collection_owner", "official_collection", "collection_tags", "collection_size", "collection_id", "creation", "team_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionListItem from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if team_id (nullable) is None - # and model_fields_set contains the field - if self.team_id is None and "team_id" in self.model_fields_set: - _dict['team_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionListItem from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "collection_name": obj.get("collection_name"), - "description": obj.get("description"), - "collection_scope": obj.get("collection_scope"), - "collection_owner": obj.get("collection_owner"), - "official_collection": obj.get("official_collection"), - "collection_tags": obj.get("collection_tags"), - "collection_size": obj.get("collection_size"), - "collection_id": obj.get("collection_id"), - "creation": obj.get("creation"), - "team_id": obj.get("team_id") - }) - return _obj - - diff --git a/revengai/models/collection_list_item_body.py b/revengai/models/collection_list_item_body.py index 90fc53a8..6b0e3d95 100644 --- a/revengai/models/collection_list_item_body.py +++ b/revengai/models/collection_list_item_body.py @@ -37,7 +37,6 @@ class CollectionListItemBody(BaseModel): official_collection: StrictBool team_id: StrictInt updated_at: datetime - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["collection_id", "collection_name", "collection_owner", "collection_scope", "collection_size", "collection_tags", "creation", "description", "official_collection", "team_id", "updated_at"] model_config = ConfigDict( @@ -70,10 +69,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -81,11 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if collection_tags (nullable) is None # and model_fields_set contains the field if self.collection_tags is None and "collection_tags" in self.model_fields_set: @@ -115,11 +107,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "team_id": obj.get("team_id"), "updated_at": obj.get("updated_at") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/collection_response.py b/revengai/models/collection_response.py deleted file mode 100644 index 9dca686f..00000000 --- a/revengai/models/collection_response.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.collection_response_binaries_inner import CollectionResponseBinariesInner -from revengai.models.collection_scope import CollectionScope -from typing import Optional, Set -from typing_extensions import Self - -class CollectionResponse(BaseModel): - """ - CollectionResponse - """ # noqa: E501 - collection_id: StrictInt = Field(description="Collection ID") - collection_name: StrictStr = Field(description="Collection name") - description: StrictStr = Field(description="Collection description") - user_id: StrictInt = Field(description="Collection user ID") - team_id: Optional[StrictInt] = None - collection_scope: CollectionScope = Field(description="Collection public status") - created_at: datetime = Field(description="Collection creation date") - updated_at: datetime = Field(description="Collection last update date") - tags: Optional[List[StrictStr]] = None - binaries: Optional[List[CollectionResponseBinariesInner]] = None - __properties: ClassVar[List[str]] = ["collection_id", "collection_name", "description", "user_id", "team_id", "collection_scope", "created_at", "updated_at", "tags", "binaries"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in binaries (list) - _items = [] - if self.binaries: - for _item_binaries in self.binaries: - if _item_binaries: - _items.append(_item_binaries.to_dict()) - _dict['binaries'] = _items - # set to None if team_id (nullable) is None - # and model_fields_set contains the field - if self.team_id is None and "team_id" in self.model_fields_set: - _dict['team_id'] = None - - # set to None if tags (nullable) is None - # and model_fields_set contains the field - if self.tags is None and "tags" in self.model_fields_set: - _dict['tags'] = None - - # set to None if binaries (nullable) is None - # and model_fields_set contains the field - if self.binaries is None and "binaries" in self.model_fields_set: - _dict['binaries'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "collection_id": obj.get("collection_id"), - "collection_name": obj.get("collection_name"), - "description": obj.get("description"), - "user_id": obj.get("user_id"), - "team_id": obj.get("team_id"), - "collection_scope": obj.get("collection_scope"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "tags": obj.get("tags"), - "binaries": [CollectionResponseBinariesInner.from_dict(_item) for _item in obj["binaries"]] if obj.get("binaries") is not None else None - }) - return _obj - - diff --git a/revengai/models/collection_response_binaries_inner.py b/revengai/models/collection_response_binaries_inner.py deleted file mode 100644 index b7cd0b9b..00000000 --- a/revengai/models/collection_response_binaries_inner.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, ValidationError, field_validator -from typing import Optional -from revengai.models.collection_binary_response import CollectionBinaryResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -COLLECTIONRESPONSEBINARIESINNER_ANY_OF_SCHEMAS = ["CollectionBinaryResponse", "int"] - -class CollectionResponseBinariesInner(BaseModel): - """ - CollectionResponseBinariesInner - """ - - # data type: int - anyof_schema_1_validator: Optional[StrictInt] = None - # data type: CollectionBinaryResponse - anyof_schema_2_validator: Optional[CollectionBinaryResponse] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[CollectionBinaryResponse, int]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "CollectionBinaryResponse", "int" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CollectionResponseBinariesInner.model_construct() - error_messages = [] - # validate data type: int - try: - instance.anyof_schema_1_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: CollectionBinaryResponse - if not isinstance(v, CollectionBinaryResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CollectionBinaryResponse`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CollectionResponseBinariesInner with anyOf schemas: CollectionBinaryResponse, int. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # deserialize data into int - try: - # validation - instance.anyof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_1_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[CollectionBinaryResponse] = None - try: - instance.actual_instance = CollectionBinaryResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CollectionResponseBinariesInner with anyOf schemas: CollectionBinaryResponse, int. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], CollectionBinaryResponse, int]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/revengai/models/collection_scope.py b/revengai/models/collection_scope.py deleted file mode 100644 index d7fd5272..00000000 --- a/revengai/models/collection_scope.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class CollectionScope(str, Enum): - """ - CollectionScope - """ - - """ - allowed enum values - """ - PRIVATE = 'PRIVATE' - PUBLIC = 'PUBLIC' - PROTECTED = 'PROTECTED' - TEAM = 'TEAM' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of CollectionScope from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/collection_search_response.py b/revengai/models/collection_search_response.py deleted file mode 100644 index bbe381eb..00000000 --- a/revengai/models/collection_search_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.collection_search_result import CollectionSearchResult -from typing import Optional, Set -from typing_extensions import Self - -class CollectionSearchResponse(BaseModel): - """ - CollectionSearchResponse - """ # noqa: E501 - results: List[CollectionSearchResult] = Field(description="The results of the search") - __properties: ClassVar[List[str]] = ["results"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionSearchResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item_results in self.results: - if _item_results: - _items.append(_item_results.to_dict()) - _dict['results'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionSearchResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "results": [CollectionSearchResult.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None - }) - return _obj - - diff --git a/revengai/models/collection_search_result.py b/revengai/models/collection_search_result.py deleted file mode 100644 index 33d14a69..00000000 --- a/revengai/models/collection_search_result.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CollectionSearchResult(BaseModel): - """ - CollectionSearchResult - """ # noqa: E501 - collection_id: StrictInt = Field(description="The ID of the collection") - collection_name: StrictStr = Field(description="The name of the collection") - scope: StrictStr = Field(description="The scope of the collection") - last_updated_at: datetime = Field(description="The last update date of the collection") - created_at: datetime = Field(description="The creation date of the collection") - owned_by: StrictStr = Field(description="The owner of the collection") - tags: Optional[List[StrictStr]] = None - size: Optional[StrictInt] = None - description: StrictStr = Field(description="The description of the collection") - team_id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["collection_id", "collection_name", "scope", "last_updated_at", "created_at", "owned_by", "tags", "size", "description", "team_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionSearchResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if tags (nullable) is None - # and model_fields_set contains the field - if self.tags is None and "tags" in self.model_fields_set: - _dict['tags'] = None - - # set to None if size (nullable) is None - # and model_fields_set contains the field - if self.size is None and "size" in self.model_fields_set: - _dict['size'] = None - - # set to None if team_id (nullable) is None - # and model_fields_set contains the field - if self.team_id is None and "team_id" in self.model_fields_set: - _dict['team_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionSearchResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "collection_id": obj.get("collection_id"), - "collection_name": obj.get("collection_name"), - "scope": obj.get("scope"), - "last_updated_at": obj.get("last_updated_at"), - "created_at": obj.get("created_at"), - "owned_by": obj.get("owned_by"), - "tags": obj.get("tags"), - "size": obj.get("size"), - "description": obj.get("description"), - "team_id": obj.get("team_id") - }) - return _obj - - diff --git a/revengai/models/collection_tags_update_request.py b/revengai/models/collection_tags_update_request.py deleted file mode 100644 index b8b3f8d2..00000000 --- a/revengai/models/collection_tags_update_request.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class CollectionTagsUpdateRequest(BaseModel): - """ - CollectionTagsUpdateRequest - """ # noqa: E501 - tags: List[StrictStr] - __properties: ClassVar[List[str]] = ["tags"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionTagsUpdateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionTagsUpdateRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tags": obj.get("tags") - }) - return _obj - - diff --git a/revengai/models/collection_tags_update_response.py b/revengai/models/collection_tags_update_response.py deleted file mode 100644 index b8c73c39..00000000 --- a/revengai/models/collection_tags_update_response.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class CollectionTagsUpdateResponse(BaseModel): - """ - CollectionTagsUpdateResponse - """ # noqa: E501 - tags: List[StrictStr] = Field(description="Collection tags") - __properties: ClassVar[List[str]] = ["tags"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionTagsUpdateResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionTagsUpdateResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tags": obj.get("tags") - }) - return _obj - - diff --git a/revengai/models/collection_update_request.py b/revengai/models/collection_update_request.py deleted file mode 100644 index e31a2a2e..00000000 --- a/revengai/models/collection_update_request.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.collection_scope import CollectionScope -from typing import Optional, Set -from typing_extensions import Self - -class CollectionUpdateRequest(BaseModel): - """ - CollectionUpdateRequest - """ # noqa: E501 - collection_name: Optional[StrictStr] = None - description: Optional[StrictStr] = None - collection_scope: Optional[CollectionScope] = None - __properties: ClassVar[List[str]] = ["collection_name", "description", "collection_scope"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionUpdateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if collection_name (nullable) is None - # and model_fields_set contains the field - if self.collection_name is None and "collection_name" in self.model_fields_set: - _dict['collection_name'] = None - - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - # set to None if collection_scope (nullable) is None - # and model_fields_set contains the field - if self.collection_scope is None and "collection_scope" in self.model_fields_set: - _dict['collection_scope'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionUpdateRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "collection_name": obj.get("collection_name"), - "description": obj.get("description"), - "collection_scope": obj.get("collection_scope") - }) - return _obj - - diff --git a/revengai/models/comment_base.py b/revengai/models/comment_base.py deleted file mode 100644 index 47e8b63e..00000000 --- a/revengai/models/comment_base.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class CommentBase(BaseModel): - """ - CommentBase - """ # noqa: E501 - content: StrictStr = Field(description="Comment text content") - __properties: ClassVar[List[str]] = ["content"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CommentBase from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CommentBase from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "content": obj.get("content") - }) - return _obj - - diff --git a/revengai/models/comment_response.py b/revengai/models/comment_response.py deleted file mode 100644 index 4c27726b..00000000 --- a/revengai/models/comment_response.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.context import Context -from typing import Optional, Set -from typing_extensions import Self - -class CommentResponse(BaseModel): - """ - CommentResponse - """ # noqa: E501 - content: StrictStr = Field(description="Comment text content") - id: StrictInt - user_id: StrictInt - resource_type: StrictStr - resource_id: StrictStr - context: Optional[Context] = None - created_at: datetime - updated_at: datetime - __properties: ClassVar[List[str]] = ["content", "id", "user_id", "resource_type", "resource_id", "context", "created_at", "updated_at"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CommentResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of context - if self.context: - _dict['context'] = self.context.to_dict() - # set to None if context (nullable) is None - # and model_fields_set contains the field - if self.context is None and "context" in self.model_fields_set: - _dict['context'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CommentResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "content": obj.get("content"), - "id": obj.get("id"), - "user_id": obj.get("user_id"), - "resource_type": obj.get("resource_type"), - "resource_id": obj.get("resource_id"), - "context": Context.from_dict(obj["context"]) if obj.get("context") is not None else None, - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/revengai/models/comment_update_request.py b/revengai/models/comment_update_request.py deleted file mode 100644 index 6ed96118..00000000 --- a/revengai/models/comment_update_request.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class CommentUpdateRequest(BaseModel): - """ - CommentUpdateRequest - """ # noqa: E501 - content: StrictStr = Field(description="Updated comment text") - __properties: ClassVar[List[str]] = ["content"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CommentUpdateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CommentUpdateRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "content": obj.get("content") - }) - return _obj - - diff --git a/revengai/models/comments_data.py b/revengai/models/comments_data.py index 4841c803..b909dc01 100644 --- a/revengai/models/comments_data.py +++ b/revengai/models/comments_data.py @@ -28,7 +28,6 @@ class CommentsData(BaseModel): """ # noqa: E501 inline_comments: Optional[List[InlineComment]] = Field(description="Structured inline comments with line numbers") task_status: StrictStr = Field(description="Task status") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["inline_comments", "task_status"] @field_validator('task_status') @@ -68,10 +67,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -86,11 +83,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_inline_comments: _items.append(_item_inline_comments.to_dict()) _dict['inline_comments'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if inline_comments (nullable) is None # and model_fields_set contains the field if self.inline_comments is None and "inline_comments" in self.model_fields_set: @@ -111,11 +103,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "inline_comments": [InlineComment.from_dict(_item) for _item in obj["inline_comments"]] if obj.get("inline_comments") is not None else None, "task_status": obj.get("task_status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/config_response.py b/revengai/models/config_response.py deleted file mode 100644 index ef409e87..00000000 --- a/revengai/models/config_response.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConfigResponse(BaseModel): - """ - ConfigResponse - """ # noqa: E501 - dashboard_url: Optional[StrictStr] = Field(default='', description="The domain of the RevEng.AI platform you are connected to") - max_file_size_bytes: StrictInt = Field(description="Maximum file size (in bytes) that can be uploaded for analysis") - ai_decompiler_unsupported_languages: List[StrictStr] = Field(description="List of programming languages that are not supported for AI decompilation") - ai_decompiler_supported_models: List[StrictStr] = Field(description="List of models that support AI decompilation") - __properties: ClassVar[List[str]] = ["dashboard_url", "max_file_size_bytes", "ai_decompiler_unsupported_languages", "ai_decompiler_supported_models"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConfigResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConfigResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "dashboard_url": obj.get("dashboard_url") if obj.get("dashboard_url") is not None else '', - "max_file_size_bytes": obj.get("max_file_size_bytes"), - "ai_decompiler_unsupported_languages": obj.get("ai_decompiler_unsupported_languages"), - "ai_decompiler_supported_models": obj.get("ai_decompiler_supported_models") - }) - return _obj - - diff --git a/revengai/models/confirm_tool_input_body.py b/revengai/models/confirm_tool_input_body.py index 150a92eb..e82cb1bd 100644 --- a/revengai/models/confirm_tool_input_body.py +++ b/revengai/models/confirm_tool_input_body.py @@ -26,7 +26,6 @@ class ConfirmToolInputBody(BaseModel): ConfirmToolInputBody """ # noqa: E501 approved: StrictBool = Field(description="Whether the user approves the pending tool call.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["approved"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -89,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "approved": obj.get("approved") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/connection.py b/revengai/models/connection.py index cdc5760d..f389ae78 100644 --- a/revengai/models/connection.py +++ b/revengai/models/connection.py @@ -38,7 +38,6 @@ class Connection(BaseModel): remote_ip: StrictStr remote_port: Optional[Any] tcp_carved_files: Optional[List[TcpCarvedFile]] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["bytes_received", "bytes_sent", "events", "ja3", "ja3s", "local_ip", "local_port", "protocol", "remote_ip", "remote_port", "tcp_carved_files"] model_config = ConfigDict( @@ -71,10 +70,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -96,11 +93,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_tcp_carved_files: _items.append(_item_tcp_carved_files.to_dict()) _dict['tcp_carved_files'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if events (nullable) is None # and model_fields_set contains the field if self.events is None and "events" in self.model_fields_set: @@ -145,11 +137,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "remote_port": obj.get("remote_port"), "tcp_carved_files": [TcpCarvedFile.from_dict(_item) for _item in obj["tcp_carved_files"]] if obj.get("tcp_carved_files") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/console_output_entry.py b/revengai/models/console_output_entry.py index 9265721f..b709eb15 100644 --- a/revengai/models/console_output_entry.py +++ b/revengai/models/console_output_entry.py @@ -27,7 +27,6 @@ class ConsoleOutputEntry(BaseModel): """ # noqa: E501 output: StrictStr process_seqid: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["output", "process_seqid"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -71,11 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -91,11 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "output": obj.get("output"), "process_seqid": obj.get("process_seqid") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/context.py b/revengai/models/context.py deleted file mode 100644 index 31fc51c2..00000000 --- a/revengai/models/context.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, Dict, Optional -from revengai.models.decompilation_comment_context import DecompilationCommentContext -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CONTEXT_ANY_OF_SCHEMAS = ["DecompilationCommentContext", "object"] - -class Context(BaseModel): - """ - Context - """ - - # data type: DecompilationCommentContext - anyof_schema_1_validator: Optional[DecompilationCommentContext] = None - # data type: object - anyof_schema_2_validator: Optional[Dict[str, Any]] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[DecompilationCommentContext, object]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "DecompilationCommentContext", "object" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - if v is None: - return v - - instance = Context.model_construct() - error_messages = [] - # validate data type: DecompilationCommentContext - if not isinstance(v, DecompilationCommentContext): - error_messages.append(f"Error! Input type `{type(v)}` is not `DecompilationCommentContext`") - else: - return v - - # validate data type: object - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in Context with anyOf schemas: DecompilationCommentContext, object. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - if json_str is None: - return instance - - error_messages = [] - # anyof_schema_1_validator: Optional[DecompilationCommentContext] = None - try: - instance.actual_instance = DecompilationCommentContext.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into object - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into Context with anyOf schemas: DecompilationCommentContext, object. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], DecompilationCommentContext, object]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/revengai/models/conversation.py b/revengai/models/conversation.py index 8b3dabf9..046b4591 100644 --- a/revengai/models/conversation.py +++ b/revengai/models/conversation.py @@ -32,7 +32,6 @@ class Conversation(BaseModel): title: StrictStr updated_at: datetime user_id: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["context", "conversation_uuid", "created_at", "title", "updated_at", "user_id"] model_config = ConfigDict( @@ -65,10 +64,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -76,11 +73,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if context (nullable) is None # and model_fields_set contains the field if self.context is None and "context" in self.model_fields_set: @@ -105,11 +97,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "updated_at": obj.get("updated_at"), "user_id": obj.get("user_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/conversation_context.py b/revengai/models/conversation_context.py index 87ba770c..c4ad7954 100644 --- a/revengai/models/conversation_context.py +++ b/revengai/models/conversation_context.py @@ -27,7 +27,6 @@ class ConversationContext(BaseModel): """ # noqa: E501 analysis_id: Optional[StrictInt] = None function_id: Optional[StrictInt] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["analysis_id", "function_id"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -71,11 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -91,11 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "analysis_id": obj.get("analysis_id"), "function_id": obj.get("function_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/conversation_with_events.py b/revengai/models/conversation_with_events.py index d9c3d98c..a309a3e7 100644 --- a/revengai/models/conversation_with_events.py +++ b/revengai/models/conversation_with_events.py @@ -34,7 +34,6 @@ class ConversationWithEvents(BaseModel): title: StrictStr updated_at: datetime user_id: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["context", "conversation_uuid", "created_at", "events", "title", "updated_at", "user_id"] model_config = ConfigDict( @@ -67,10 +66,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -85,11 +82,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_events: _items.append(_item_events.to_dict()) _dict['events'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if context (nullable) is None # and model_fields_set contains the field if self.context is None and "context" in self.model_fields_set: @@ -120,11 +112,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "updated_at": obj.get("updated_at"), "user_id": obj.get("user_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/create_ai_decomp_output_body.py b/revengai/models/create_ai_decomp_output_body.py index 19da0fe1..d5f45aba 100644 --- a/revengai/models/create_ai_decomp_output_body.py +++ b/revengai/models/create_ai_decomp_output_body.py @@ -26,7 +26,6 @@ class CreateAIDecompOutputBody(BaseModel): CreateAIDecompOutputBody """ # noqa: E501 status: StrictBool - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["status"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -89,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "status": obj.get("status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/create_collection_input_body.py b/revengai/models/create_collection_input_body.py index 2445c8e6..b8b6160d 100644 --- a/revengai/models/create_collection_input_body.py +++ b/revengai/models/create_collection_input_body.py @@ -31,7 +31,6 @@ class CreateCollectionInputBody(BaseModel): collection_scope: StrictStr = Field(description="Visibility scope.") description: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Collection description.") tags: Optional[List[StrictStr]] = Field(default=None, description="Optional tags to attach to the collection.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["binaries", "collection_name", "collection_scope", "description", "tags"] @field_validator('collection_scope') @@ -71,10 +70,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -82,11 +79,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if binaries (nullable) is None # and model_fields_set contains the field if self.binaries is None and "binaries" in self.model_fields_set: @@ -115,11 +107,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "description": obj.get("description"), "tags": obj.get("tags") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/create_collection_output_body.py b/revengai/models/create_collection_output_body.py index 969edc2f..c05a4f1d 100644 --- a/revengai/models/create_collection_output_body.py +++ b/revengai/models/create_collection_output_body.py @@ -37,7 +37,6 @@ class CreateCollectionOutputBody(BaseModel): team_id: StrictInt updated_at: datetime user_id: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["binaries", "collection_id", "collection_name", "collection_scope", "created_at", "description", "tags", "team_id", "updated_at", "user_id"] model_config = ConfigDict( @@ -70,10 +69,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -88,11 +85,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_binaries: _items.append(_item_binaries.to_dict()) _dict['binaries'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if binaries (nullable) is None # and model_fields_set contains the field if self.binaries is None and "binaries" in self.model_fields_set: @@ -126,11 +118,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "updated_at": obj.get("updated_at"), "user_id": obj.get("user_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/create_conversation_request.py b/revengai/models/create_conversation_request.py index 997b4773..d38266cc 100644 --- a/revengai/models/create_conversation_request.py +++ b/revengai/models/create_conversation_request.py @@ -28,7 +28,6 @@ class CreateConversationRequest(BaseModel): """ # noqa: E501 context: Optional[ConversationContext] = None title: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["context", "title"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -75,11 +72,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of context if self.context: _dict['context'] = self.context.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -95,11 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "context": ConversationContext.from_dict(obj["context"]) if obj.get("context") is not None else None, "title": obj.get("title") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/created.py b/revengai/models/created.py deleted file mode 100644 index e6d8b993..00000000 --- a/revengai/models/created.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class Created(BaseModel): - """ - Created - """ # noqa: E501 - analysis_id: StrictInt = Field(description="The ID corresponding to the newly created analysis") - binary_id: StrictInt = Field(description="The ID corresponding to the binary that was created") - reference: StrictStr = Field(description="Deprecated will always be empty string") - __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "reference"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Created from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Created from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analysis_id": obj.get("analysis_id"), - "binary_id": obj.get("binary_id"), - "reference": obj.get("reference") - }) - return _obj - - diff --git a/revengai/models/data_types_entry.py b/revengai/models/data_types_entry.py index ac7cf46d..2e6438a7 100644 --- a/revengai/models/data_types_entry.py +++ b/revengai/models/data_types_entry.py @@ -29,7 +29,6 @@ class DataTypesEntry(BaseModel): data_types: Optional[FunctionInfo] = None data_types_version: StrictInt = Field(description="Current version of the function data types. Pass this back on the next write to satisfy the CAS check.") function_id: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data_types", "data_types_version", "function_id"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -76,11 +73,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of data_types if self.data_types: _dict['data_types'] = self.data_types.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -97,11 +89,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "data_types_version": obj.get("data_types_version"), "function_id": obj.get("function_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/decomp_failed_event.py b/revengai/models/decomp_failed_event.py index 9d26a19c..29c69d1d 100644 --- a/revengai/models/decomp_failed_event.py +++ b/revengai/models/decomp_failed_event.py @@ -30,7 +30,6 @@ class DecompFailedEvent(BaseModel): error_code: Optional[StrictStr] = None seq: StrictInt type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["attempt", "error", "error_code", "seq", "type"] model_config = ConfigDict( @@ -63,10 +62,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -74,11 +71,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -97,11 +89,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "seq": obj.get("seq"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/decomp_finished_event.py b/revengai/models/decomp_finished_event.py index 06be0dd9..32c1bc1e 100644 --- a/revengai/models/decomp_finished_event.py +++ b/revengai/models/decomp_finished_event.py @@ -28,7 +28,6 @@ class DecompFinishedEvent(BaseModel): attempt: StrictInt seq: StrictInt type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["attempt", "seq", "type"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -93,11 +85,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "seq": obj.get("seq"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/decompilation_comment_context.py b/revengai/models/decompilation_comment_context.py deleted file mode 100644 index 70e15c68..00000000 --- a/revengai/models/decompilation_comment_context.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DecompilationCommentContext(BaseModel): - """ - DecompilationCommentContext - """ # noqa: E501 - start_line: Optional[StrictInt] - end_line: Optional[StrictInt] - __properties: ClassVar[List[str]] = ["start_line", "end_line"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DecompilationCommentContext from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if start_line (nullable) is None - # and model_fields_set contains the field - if self.start_line is None and "start_line" in self.model_fields_set: - _dict['start_line'] = None - - # set to None if end_line (nullable) is None - # and model_fields_set contains the field - if self.end_line is None and "end_line" in self.model_fields_set: - _dict['end_line'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DecompilationCommentContext from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "start_line": obj.get("start_line"), - "end_line": obj.get("end_line") - }) - return _obj - - diff --git a/revengai/models/decompilation_data.py b/revengai/models/decompilation_data.py index 8b996f2e..f8e091f2 100644 --- a/revengai/models/decompilation_data.py +++ b/revengai/models/decompilation_data.py @@ -27,7 +27,6 @@ class DecompilationData(BaseModel): """ # noqa: E501 decompilation: Optional[StrictStr] = Field(default=None, description="Source code with placeholders replaced") status: StrictStr = Field(description="Task status") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["decompilation", "status"] @field_validator('status') @@ -67,10 +66,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -78,11 +75,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -98,11 +90,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "decompilation": obj.get("decompilation"), "status": obj.get("status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/die_match.py b/revengai/models/die_match.py deleted file mode 100644 index 46d1dfa9..00000000 --- a/revengai/models/die_match.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class DieMatch(BaseModel): - """ - DieMatch - """ # noqa: E501 - name: StrictStr = Field(description="Canonical name of the matched signature/technology (e.g., 'UPX', 'GCC', 'MSVC').") - type: StrictStr = Field(description="Category assigned by DIE for the match (e.g., 'compiler', 'packer', 'file').") - display: StrictStr = Field(description="Human-readable description from DIE's 'string' field; suitable for UI/logs, not for parsing.") - version: StrictStr = Field(description="Extracted version string when available; may be empty/None if unknown.") - __properties: ClassVar[List[str]] = ["name", "type", "display", "version"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DieMatch from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DieMatch from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "type": obj.get("type"), - "display": obj.get("display"), - "version": obj.get("version") - }) - return _obj - - diff --git a/revengai/models/disassembly_output_body.py b/revengai/models/disassembly_output_body.py index 5ceeb663..a609b45d 100644 --- a/revengai/models/disassembly_output_body.py +++ b/revengai/models/disassembly_output_body.py @@ -95,11 +95,6 @@ def to_dict(self) -> Dict[str, Any]: if self.params is None and "params" in self.model_fields_set: _dict['params'] = None - # set to None if return_type (nullable) is None - # and model_fields_set contains the field - if self.return_type is None and "return_type" in self.model_fields_set: - _dict['return_type'] = None - return _dict @classmethod diff --git a/revengai/models/dns_query.py b/revengai/models/dns_query.py index d0c915e1..0392e5c8 100644 --- a/revengai/models/dns_query.py +++ b/revengai/models/dns_query.py @@ -31,7 +31,6 @@ class DnsQuery(BaseModel): events: Optional[List[ReportEvent]] = None min_ttl: Optional[StrictInt] = None resolved_ips: Optional[List[StrictStr]] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cname_chain", "domain", "events", "min_ttl", "resolved_ips"] model_config = ConfigDict( @@ -64,10 +63,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -82,11 +79,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_events: _items.append(_item_events.to_dict()) _dict['events'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if cname_chain (nullable) is None # and model_fields_set contains the field if self.cname_chain is None and "cname_chain" in self.model_fields_set: @@ -120,11 +112,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "min_ttl": obj.get("min_ttl"), "resolved_ips": obj.get("resolved_ips") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/drakvuf_file_metadata.py b/revengai/models/drakvuf_file_metadata.py index 79c54dd6..6578e6bc 100644 --- a/revengai/models/drakvuf_file_metadata.py +++ b/revengai/models/drakvuf_file_metadata.py @@ -30,7 +30,6 @@ class DrakvufFileMetadata(BaseModel): sha256: StrictStr type: Optional[StrictStr] = None type_id: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["mime_type", "name", "sha256", "type", "type_id"] model_config = ConfigDict( @@ -63,10 +62,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -74,11 +71,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -97,11 +89,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "type": obj.get("type"), "type_id": obj.get("type_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/dynamic_execution_status.py b/revengai/models/dynamic_execution_status.py deleted file mode 100644 index 79856129..00000000 --- a/revengai/models/dynamic_execution_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class DynamicExecutionStatus(str, Enum): - """ - Custom enum for the dynamic execution status - """ - - """ - allowed enum values - """ - PENDING = 'PENDING' - ERROR = 'ERROR' - SUCCESS = 'SUCCESS' - ALL = 'ALL' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of DynamicExecutionStatus from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/dynamic_execution_status_response.py b/revengai/models/dynamic_execution_status_response.py index b3e42b3e..f3a10205 100644 --- a/revengai/models/dynamic_execution_status_response.py +++ b/revengai/models/dynamic_execution_status_response.py @@ -29,7 +29,6 @@ class DynamicExecutionStatusResponse(BaseModel): error_message: Optional[StrictStr] = Field(default=None, description="Error detail, set when status is FAILED") logs: AnalysisLogs = Field(description="Sandbox status log messages captured during the run. Contains a single \"No logs available\" message when none have been captured yet.") status: StrictStr = Field(description="Task status") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["error_message", "logs", "status"] @field_validator('status') @@ -69,10 +68,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -83,11 +80,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of logs if self.logs: _dict['logs'] = self.logs.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "logs": AnalysisLogs.from_dict(obj["logs"]) if obj.get("logs") is not None else None, "status": obj.get("status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/elf_dynamic_entry.py b/revengai/models/elf_dynamic_entry.py deleted file mode 100644 index a7442a34..00000000 --- a/revengai/models/elf_dynamic_entry.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class ElfDynamicEntry(BaseModel): - """ - ElfDynamicEntry - """ # noqa: E501 - tag: StrictStr - value: StrictInt - __properties: ClassVar[List[str]] = ["tag", "value"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ElfDynamicEntry from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ElfDynamicEntry from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tag": obj.get("tag"), - "value": obj.get("value") - }) - return _obj - - diff --git a/revengai/models/elf_import_model.py b/revengai/models/elf_import_model.py deleted file mode 100644 index 5042c1db..00000000 --- a/revengai/models/elf_import_model.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class ELFImportModel(BaseModel): - """ - ELFImportModel - """ # noqa: E501 - number_of_imports: StrictInt - imports: List[StrictStr] - __properties: ClassVar[List[str]] = ["number_of_imports", "imports"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ELFImportModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ELFImportModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "number_of_imports": obj.get("number_of_imports"), - "imports": obj.get("imports") - }) - return _obj - - diff --git a/revengai/models/elf_model.py b/revengai/models/elf_model.py deleted file mode 100644 index 70fede49..00000000 --- a/revengai/models/elf_model.py +++ /dev/null @@ -1,179 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from revengai.models.elf_dynamic_entry import ElfDynamicEntry -from revengai.models.elf_import_model import ELFImportModel -from revengai.models.elf_relocation import ELFRelocation -from revengai.models.elf_section import ELFSection -from revengai.models.elf_security import ELFSecurity -from revengai.models.elf_segment import ELFSegment -from revengai.models.elf_symbol import ELFSymbol -from typing import Optional, Set -from typing_extensions import Self - -class ELFModel(BaseModel): - """ - ELFModel - """ # noqa: E501 - file_type: StrictStr - architecture: StrictStr - endianness: StrictStr - entry_point: StrictInt - entry_point_bytes: StrictStr - import_hash: StrictStr - export_hash: StrictStr - build_id: StrictStr - security: ELFSecurity - sections: List[ELFSection] - segments: List[ELFSegment] - symbols: List[ELFSymbol] - dynamic_symbols: List[ELFSymbol] - relocations: List[ELFRelocation] - imports: ELFImportModel - exported_functions: List[StrictStr] - dynamic_entries: List[ElfDynamicEntry] - notes: List[Dict[str, Any]] - debug_info: Dict[str, Any] - version_info: Dict[str, Any] - __properties: ClassVar[List[str]] = ["file_type", "architecture", "endianness", "entry_point", "entry_point_bytes", "import_hash", "export_hash", "build_id", "security", "sections", "segments", "symbols", "dynamic_symbols", "relocations", "imports", "exported_functions", "dynamic_entries", "notes", "debug_info", "version_info"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ELFModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of security - if self.security: - _dict['security'] = self.security.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in sections (list) - _items = [] - if self.sections: - for _item_sections in self.sections: - if _item_sections: - _items.append(_item_sections.to_dict()) - _dict['sections'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in segments (list) - _items = [] - if self.segments: - for _item_segments in self.segments: - if _item_segments: - _items.append(_item_segments.to_dict()) - _dict['segments'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in symbols (list) - _items = [] - if self.symbols: - for _item_symbols in self.symbols: - if _item_symbols: - _items.append(_item_symbols.to_dict()) - _dict['symbols'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in dynamic_symbols (list) - _items = [] - if self.dynamic_symbols: - for _item_dynamic_symbols in self.dynamic_symbols: - if _item_dynamic_symbols: - _items.append(_item_dynamic_symbols.to_dict()) - _dict['dynamic_symbols'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in relocations (list) - _items = [] - if self.relocations: - for _item_relocations in self.relocations: - if _item_relocations: - _items.append(_item_relocations.to_dict()) - _dict['relocations'] = _items - # override the default output from pydantic by calling `to_dict()` of imports - if self.imports: - _dict['imports'] = self.imports.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in dynamic_entries (list) - _items = [] - if self.dynamic_entries: - for _item_dynamic_entries in self.dynamic_entries: - if _item_dynamic_entries: - _items.append(_item_dynamic_entries.to_dict()) - _dict['dynamic_entries'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ELFModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "file_type": obj.get("file_type"), - "architecture": obj.get("architecture"), - "endianness": obj.get("endianness"), - "entry_point": obj.get("entry_point"), - "entry_point_bytes": obj.get("entry_point_bytes"), - "import_hash": obj.get("import_hash"), - "export_hash": obj.get("export_hash"), - "build_id": obj.get("build_id"), - "security": ELFSecurity.from_dict(obj["security"]) if obj.get("security") is not None else None, - "sections": [ELFSection.from_dict(_item) for _item in obj["sections"]] if obj.get("sections") is not None else None, - "segments": [ELFSegment.from_dict(_item) for _item in obj["segments"]] if obj.get("segments") is not None else None, - "symbols": [ELFSymbol.from_dict(_item) for _item in obj["symbols"]] if obj.get("symbols") is not None else None, - "dynamic_symbols": [ELFSymbol.from_dict(_item) for _item in obj["dynamic_symbols"]] if obj.get("dynamic_symbols") is not None else None, - "relocations": [ELFRelocation.from_dict(_item) for _item in obj["relocations"]] if obj.get("relocations") is not None else None, - "imports": ELFImportModel.from_dict(obj["imports"]) if obj.get("imports") is not None else None, - "exported_functions": obj.get("exported_functions"), - "dynamic_entries": [ElfDynamicEntry.from_dict(_item) for _item in obj["dynamic_entries"]] if obj.get("dynamic_entries") is not None else None, - "notes": obj.get("notes"), - "debug_info": obj.get("debug_info"), - "version_info": obj.get("version_info") - }) - return _obj - - diff --git a/revengai/models/elf_relocation.py b/revengai/models/elf_relocation.py deleted file mode 100644 index 1156b912..00000000 --- a/revengai/models/elf_relocation.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ELFRelocation(BaseModel): - """ - ELFRelocation - """ # noqa: E501 - address: StrictInt - type: StrictStr - size: StrictInt - addend: StrictInt - symbol_name: StrictStr - is_dynamic: StrictBool - is_pltgot: StrictBool - is_unicode_symbol_name: Optional[StrictBool] = True - __properties: ClassVar[List[str]] = ["address", "type", "size", "addend", "symbol_name", "is_dynamic", "is_pltgot", "is_unicode_symbol_name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ELFRelocation from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ELFRelocation from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "address": obj.get("address"), - "type": obj.get("type"), - "size": obj.get("size"), - "addend": obj.get("addend"), - "symbol_name": obj.get("symbol_name"), - "is_dynamic": obj.get("is_dynamic"), - "is_pltgot": obj.get("is_pltgot"), - "is_unicode_symbol_name": obj.get("is_unicode_symbol_name") if obj.get("is_unicode_symbol_name") is not None else True - }) - return _obj - - diff --git a/revengai/models/elf_section.py b/revengai/models/elf_section.py deleted file mode 100644 index 8546ad46..00000000 --- a/revengai/models/elf_section.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Union -from typing import Optional, Set -from typing_extensions import Self - -class ELFSection(BaseModel): - """ - ELFSection - """ # noqa: E501 - name: StrictStr - type: StrictStr - virtual_address: StrictInt - virtual_size: StrictInt - raw_size: StrictInt - file_offset: StrictInt - flags: StrictStr - flags_raw: StrictInt - entropy: Union[StrictFloat, StrictInt] - alignment: StrictInt - __properties: ClassVar[List[str]] = ["name", "type", "virtual_address", "virtual_size", "raw_size", "file_offset", "flags", "flags_raw", "entropy", "alignment"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ELFSection from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ELFSection from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "type": obj.get("type"), - "virtual_address": obj.get("virtual_address"), - "virtual_size": obj.get("virtual_size"), - "raw_size": obj.get("raw_size"), - "file_offset": obj.get("file_offset"), - "flags": obj.get("flags"), - "flags_raw": obj.get("flags_raw"), - "entropy": obj.get("entropy"), - "alignment": obj.get("alignment") - }) - return _obj - - diff --git a/revengai/models/elf_security.py b/revengai/models/elf_security.py deleted file mode 100644 index fefb36d1..00000000 --- a/revengai/models/elf_security.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class ELFSecurity(BaseModel): - """ - ELFSecurity - """ # noqa: E501 - pie: StrictBool - stripped: StrictBool - canary: StrictBool - nx: StrictBool - relo: StrictBool - __properties: ClassVar[List[str]] = ["pie", "stripped", "canary", "nx", "relo"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ELFSecurity from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ELFSecurity from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "pie": obj.get("pie"), - "stripped": obj.get("stripped"), - "canary": obj.get("canary"), - "nx": obj.get("nx"), - "relo": obj.get("relo") - }) - return _obj - - diff --git a/revengai/models/elf_segment.py b/revengai/models/elf_segment.py deleted file mode 100644 index 6b1b8126..00000000 --- a/revengai/models/elf_segment.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class ELFSegment(BaseModel): - """ - ELFSegment - """ # noqa: E501 - type: StrictStr - virtual_address: StrictInt - virtual_size: StrictInt - physical_address: StrictInt - physical_size: StrictInt - file_offset: StrictInt - flags: StrictStr - flags_raw: StrictInt - alignment: StrictInt - __properties: ClassVar[List[str]] = ["type", "virtual_address", "virtual_size", "physical_address", "physical_size", "file_offset", "flags", "flags_raw", "alignment"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ELFSegment from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ELFSegment from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "type": obj.get("type"), - "virtual_address": obj.get("virtual_address"), - "virtual_size": obj.get("virtual_size"), - "physical_address": obj.get("physical_address"), - "physical_size": obj.get("physical_size"), - "file_offset": obj.get("file_offset"), - "flags": obj.get("flags"), - "flags_raw": obj.get("flags_raw"), - "alignment": obj.get("alignment") - }) - return _obj - - diff --git a/revengai/models/elf_symbol.py b/revengai/models/elf_symbol.py deleted file mode 100644 index 077dae3d..00000000 --- a/revengai/models/elf_symbol.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ELFSymbol(BaseModel): - """ - ELFSymbol - """ # noqa: E501 - name: StrictStr - value: StrictInt - size: StrictInt - type: StrictStr - binding: StrictStr - visibility: StrictStr - section_index: StrictInt - is_unicode_name: Optional[StrictBool] = True - __properties: ClassVar[List[str]] = ["name", "value", "size", "type", "binding", "visibility", "section_index", "is_unicode_name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ELFSymbol from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ELFSymbol from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "value": obj.get("value"), - "size": obj.get("size"), - "type": obj.get("type"), - "binding": obj.get("binding"), - "visibility": obj.get("visibility"), - "section_index": obj.get("section_index"), - "is_unicode_name": obj.get("is_unicode_name") if obj.get("is_unicode_name") is not None else True - }) - return _obj - - diff --git a/revengai/models/entrypoint_model.py b/revengai/models/entrypoint_model.py deleted file mode 100644 index 2b155e73..00000000 --- a/revengai/models/entrypoint_model.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class EntrypointModel(BaseModel): - """ - EntrypointModel - """ # noqa: E501 - address: StrictInt - first_bytes: StrictStr - __properties: ClassVar[List[str]] = ["address", "first_bytes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of EntrypointModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of EntrypointModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "address": obj.get("address"), - "first_bytes": obj.get("first_bytes") - }) - return _obj - - diff --git a/revengai/models/enumeration.py b/revengai/models/enumeration.py deleted file mode 100644 index 0748ffbc..00000000 --- a/revengai/models/enumeration.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class Enumeration(BaseModel): - """ - Enumeration - """ # noqa: E501 - last_change: Optional[StrictStr] = None - name: StrictStr = Field(description="Name of the enumeration") - members: Dict[str, StrictInt] = Field(description="Dictionary of enumeration members and their values") - artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact that the enumeration is associated with") - __properties: ClassVar[List[str]] = ["last_change", "name", "members", "artifact_type"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Enumeration from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if last_change (nullable) is None - # and model_fields_set contains the field - if self.last_change is None and "last_change" in self.model_fields_set: - _dict['last_change'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Enumeration from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "last_change": obj.get("last_change"), - "name": obj.get("name"), - "members": obj.get("members"), - "artifact_type": obj.get("artifact_type") - }) - return _obj - - diff --git a/revengai/models/error_body.py b/revengai/models/error_body.py index e08b612e..8642aa88 100644 --- a/revengai/models/error_body.py +++ b/revengai/models/error_body.py @@ -30,7 +30,6 @@ class ErrorBody(BaseModel): doc_url: Optional[StrictStr] = Field(default=None, description="Link to documentation explaining this error and resolution steps.") message: StrictStr = Field(description="Human-readable summary. Never contains internals. Suitable for direct display.") trace_id: StrictStr = Field(description="Correlation ID from the request. Quote this in support requests.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["code", "detail", "doc_url", "message", "trace_id"] @field_validator('code') @@ -70,10 +69,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -81,11 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "message": obj.get("message"), "trace_id": obj.get("trace_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/error_model.py b/revengai/models/error_model.py deleted file mode 100644 index a8978aee..00000000 --- a/revengai/models/error_model.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class ErrorModel(BaseModel): - """ - ErrorModel - """ # noqa: E501 - code: StrictStr - message: StrictStr - __properties: ClassVar[List[str]] = ["code", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ErrorModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ErrorModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "code": obj.get("code"), - "message": obj.get("message") - }) - return _obj - - diff --git a/revengai/models/event.py b/revengai/models/event.py index af990fea..b5c58d91 100644 --- a/revengai/models/event.py +++ b/revengai/models/event.py @@ -33,7 +33,6 @@ class Event(BaseModel): role: StrictInt tokens_used: StrictInt type: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["conversation_uuid", "created_at", "data", "event_id", "role", "tokens_used", "type"] model_config = ConfigDict( @@ -66,10 +65,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -77,11 +74,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -107,11 +99,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tokens_used": obj.get("tokens_used"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/export_model.py b/revengai/models/export_model.py deleted file mode 100644 index edf8cf2f..00000000 --- a/revengai/models/export_model.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class ExportModel(BaseModel): - """ - ExportModel - """ # noqa: E501 - number_of_exports: StrictInt - exports: List[Dict[str, StrictInt]] - __properties: ClassVar[List[str]] = ["number_of_exports", "exports"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExportModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExportModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "number_of_exports": obj.get("number_of_exports"), - "exports": obj.get("exports") - }) - return _obj - - diff --git a/revengai/models/external_response.py b/revengai/models/external_response.py deleted file mode 100644 index fe1d7253..00000000 --- a/revengai/models/external_response.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class ExternalResponse(BaseModel): - """ - ExternalResponse - """ # noqa: E501 - sha_256_hash: StrictStr - data: Dict[str, Any] - last_updated: datetime - __properties: ClassVar[List[str]] = ["sha_256_hash", "data", "last_updated"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExternalResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExternalResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "sha_256_hash": obj.get("sha_256_hash"), - "data": obj.get("data"), - "last_updated": obj.get("last_updated") - }) - return _obj - - diff --git a/revengai/models/extracted_url.py b/revengai/models/extracted_url.py index eecaa640..991d4807 100644 --- a/revengai/models/extracted_url.py +++ b/revengai/models/extracted_url.py @@ -28,7 +28,6 @@ class ExtractedURL(BaseModel): """ # noqa: E501 events: Optional[List[ReportEvent]] = None url: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["events", "url"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_events: _items.append(_item_events.to_dict()) _dict['events'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if events (nullable) is None # and model_fields_set contains the field if self.events is None and "events" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "events": [ReportEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, "url": obj.get("url") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/file_activity_entry.py b/revengai/models/file_activity_entry.py index f0393d75..99a5c17a 100644 --- a/revengai/models/file_activity_entry.py +++ b/revengai/models/file_activity_entry.py @@ -28,7 +28,6 @@ class FileActivityEntry(BaseModel): """ # noqa: E501 events: Optional[List[ReportEvent]] = None path: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["events", "path"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_events: _items.append(_item_events.to_dict()) _dict['events'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if events (nullable) is None # and model_fields_set contains the field if self.events is None and "events" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "events": [ReportEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, "path": obj.get("path") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/file_format.py b/revengai/models/file_format.py deleted file mode 100644 index 69991b05..00000000 --- a/revengai/models/file_format.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class FileFormat(str, Enum): - """ - FileFormat - """ - - """ - allowed enum values - """ - PE = 'pe' - ELF = 'elf' - BLOB = 'blob' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of FileFormat from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/file_hashes.py b/revengai/models/file_hashes.py deleted file mode 100644 index a74d97f9..00000000 --- a/revengai/models/file_hashes.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FileHashes(BaseModel): - """ - FileHashes - """ # noqa: E501 - md5: Optional[StrictStr] - sha1: Optional[StrictStr] - sha256: Optional[StrictStr] - sha512: Optional[StrictStr] - sha3_224: Optional[StrictStr] - sha3_256: Optional[StrictStr] - sha3_384: Optional[StrictStr] - sha3_512: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["md5", "sha1", "sha256", "sha512", "sha3_224", "sha3_256", "sha3_384", "sha3_512"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FileHashes from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if md5 (nullable) is None - # and model_fields_set contains the field - if self.md5 is None and "md5" in self.model_fields_set: - _dict['md5'] = None - - # set to None if sha1 (nullable) is None - # and model_fields_set contains the field - if self.sha1 is None and "sha1" in self.model_fields_set: - _dict['sha1'] = None - - # set to None if sha256 (nullable) is None - # and model_fields_set contains the field - if self.sha256 is None and "sha256" in self.model_fields_set: - _dict['sha256'] = None - - # set to None if sha512 (nullable) is None - # and model_fields_set contains the field - if self.sha512 is None and "sha512" in self.model_fields_set: - _dict['sha512'] = None - - # set to None if sha3_224 (nullable) is None - # and model_fields_set contains the field - if self.sha3_224 is None and "sha3_224" in self.model_fields_set: - _dict['sha3_224'] = None - - # set to None if sha3_256 (nullable) is None - # and model_fields_set contains the field - if self.sha3_256 is None and "sha3_256" in self.model_fields_set: - _dict['sha3_256'] = None - - # set to None if sha3_384 (nullable) is None - # and model_fields_set contains the field - if self.sha3_384 is None and "sha3_384" in self.model_fields_set: - _dict['sha3_384'] = None - - # set to None if sha3_512 (nullable) is None - # and model_fields_set contains the field - if self.sha3_512 is None and "sha3_512" in self.model_fields_set: - _dict['sha3_512'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FileHashes from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "md5": obj.get("md5"), - "sha1": obj.get("sha1"), - "sha256": obj.get("sha256"), - "sha512": obj.get("sha512"), - "sha3_224": obj.get("sha3_224"), - "sha3_256": obj.get("sha3_256"), - "sha3_384": obj.get("sha3_384"), - "sha3_512": obj.get("sha3_512") - }) - return _obj - - diff --git a/revengai/models/file_metadata.py b/revengai/models/file_metadata.py deleted file mode 100644 index 112b72ff..00000000 --- a/revengai/models/file_metadata.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Union -from revengai.models.file_hashes import FileHashes -from typing import Optional, Set -from typing_extensions import Self - -class FileMetadata(BaseModel): - """ - FileMetadata - """ # noqa: E501 - size: StrictInt - friendly_size: StrictStr - entropy: Union[StrictFloat, StrictInt] - hashes: FileHashes - __properties: ClassVar[List[str]] = ["size", "friendly_size", "entropy", "hashes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FileMetadata from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of hashes - if self.hashes: - _dict['hashes'] = self.hashes.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FileMetadata from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "size": obj.get("size"), - "friendly_size": obj.get("friendly_size"), - "entropy": obj.get("entropy"), - "hashes": FileHashes.from_dict(obj["hashes"]) if obj.get("hashes") is not None else None - }) - return _obj - - diff --git a/revengai/models/filters.py b/revengai/models/filters.py deleted file mode 100644 index 25ea8850..00000000 --- a/revengai/models/filters.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class Filters(str, Enum): - """ - Filters - """ - - """ - allowed enum values - """ - OFFICIAL_ONLY = 'official_only' - USER_ONLY = 'user_only' - TEAM_ONLY = 'team_only' - PUBLIC_ONLY = 'public_only' - HIDE_EMPTY = 'hide_empty' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Filters from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/form_file.py b/revengai/models/form_file.py index f1734382..9a0961e1 100644 --- a/revengai/models/form_file.py +++ b/revengai/models/form_file.py @@ -17,7 +17,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -25,8 +25,8 @@ class FormFile(BaseModel): """ FormFile """ # noqa: E501 - content_type: Optional[StrictStr] = Field(alias="ContentType") - filename: Optional[StrictStr] = Field(alias="Filename") + content_type: StrictStr = Field(alias="ContentType") + filename: StrictStr = Field(alias="Filename") is_set: StrictBool = Field(alias="IsSet") size: StrictInt = Field(alias="Size") additional_properties: Dict[str, Any] = {} @@ -78,16 +78,6 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value - # set to None if content_type (nullable) is None - # and model_fields_set contains the field - if self.content_type is None and "content_type" in self.model_fields_set: - _dict['ContentType'] = None - - # set to None if filename (nullable) is None - # and model_fields_set contains the field - if self.filename is None and "filename" in self.model_fields_set: - _dict['Filename'] = None - return _dict @classmethod diff --git a/revengai/models/function_argument.py b/revengai/models/function_argument.py index 3a5b7555..216c5abc 100644 --- a/revengai/models/function_argument.py +++ b/revengai/models/function_argument.py @@ -31,7 +31,6 @@ class FunctionArgument(BaseModel): scope: Optional[StrictStr] = None size: StrictInt type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["last_change", "name", "offset", "scope", "size", "type"] model_config = ConfigDict( @@ -64,10 +63,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -75,11 +72,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -99,11 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "size": obj.get("size"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/function_block_destination_response.py b/revengai/models/function_block_destination_response.py deleted file mode 100644 index 97010c1c..00000000 --- a/revengai/models/function_block_destination_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FunctionBlockDestinationResponse(BaseModel): - """ - FunctionBlockDestinationResponse - """ # noqa: E501 - destination_block_id: Optional[StrictInt] - flowtype: StrictStr = Field(description="The type of execution flow between chunks") - vaddr: StrictStr = Field(description="The vaddr of the destination where the execution flow continues from") - __properties: ClassVar[List[str]] = ["destination_block_id", "flowtype", "vaddr"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionBlockDestinationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if destination_block_id (nullable) is None - # and model_fields_set contains the field - if self.destination_block_id is None and "destination_block_id" in self.model_fields_set: - _dict['destination_block_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionBlockDestinationResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "destination_block_id": obj.get("destination_block_id"), - "flowtype": obj.get("flowtype"), - "vaddr": obj.get("vaddr") - }) - return _obj - - diff --git a/revengai/models/function_block_response.py b/revengai/models/function_block_response.py deleted file mode 100644 index cda2f5fb..00000000 --- a/revengai/models/function_block_response.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.function_block_destination_response import FunctionBlockDestinationResponse -from typing import Optional, Set -from typing_extensions import Self - -class FunctionBlockResponse(BaseModel): - """ - FunctionBlockResponse - """ # noqa: E501 - asm: List[StrictStr] = Field(description="The ordered assembly strings for this chunk") - id: StrictInt = Field(description="ID of the block") - min_addr: StrictInt = Field(description="The minimum vaddr of the block") - max_addr: StrictInt = Field(description="The maximum vaddr of the block") - destinations: List[FunctionBlockDestinationResponse] = Field(description="The potential execution flow destinations from this block") - comment: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["asm", "id", "min_addr", "max_addr", "destinations", "comment"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionBlockResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in destinations (list) - _items = [] - if self.destinations: - for _item_destinations in self.destinations: - if _item_destinations: - _items.append(_item_destinations.to_dict()) - _dict['destinations'] = _items - # set to None if comment (nullable) is None - # and model_fields_set contains the field - if self.comment is None and "comment" in self.model_fields_set: - _dict['comment'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionBlockResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "asm": obj.get("asm"), - "id": obj.get("id"), - "min_addr": obj.get("min_addr"), - "max_addr": obj.get("max_addr"), - "destinations": [FunctionBlockDestinationResponse.from_dict(_item) for _item in obj["destinations"]] if obj.get("destinations") is not None else None, - "comment": obj.get("comment") - }) - return _obj - - diff --git a/revengai/models/function_blocks_response.py b/revengai/models/function_blocks_response.py deleted file mode 100644 index a1bf01c0..00000000 --- a/revengai/models/function_blocks_response.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.function_block_response import FunctionBlockResponse -from revengai.models.function_local_variable_response import FunctionLocalVariableResponse -from revengai.models.function_param_response import FunctionParamResponse -from typing import Optional, Set -from typing_extensions import Self - -class FunctionBlocksResponse(BaseModel): - """ - Response for returning disassembly of a function. - """ # noqa: E501 - blocks: List[FunctionBlockResponse] = Field(description="Disassembly is broken into control flow blocks") - local_variables: List[FunctionLocalVariableResponse] = Field(description="Local variables associated with this function") - params: List[FunctionParamResponse] = Field(description="Params associated with this function") - overview_comment: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["blocks", "local_variables", "params", "overview_comment"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionBlocksResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in blocks (list) - _items = [] - if self.blocks: - for _item_blocks in self.blocks: - if _item_blocks: - _items.append(_item_blocks.to_dict()) - _dict['blocks'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in local_variables (list) - _items = [] - if self.local_variables: - for _item_local_variables in self.local_variables: - if _item_local_variables: - _items.append(_item_local_variables.to_dict()) - _dict['local_variables'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in params (list) - _items = [] - if self.params: - for _item_params in self.params: - if _item_params: - _items.append(_item_params.to_dict()) - _dict['params'] = _items - # set to None if overview_comment (nullable) is None - # and model_fields_set contains the field - if self.overview_comment is None and "overview_comment" in self.model_fields_set: - _dict['overview_comment'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionBlocksResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "blocks": [FunctionBlockResponse.from_dict(_item) for _item in obj["blocks"]] if obj.get("blocks") is not None else None, - "local_variables": [FunctionLocalVariableResponse.from_dict(_item) for _item in obj["local_variables"]] if obj.get("local_variables") is not None else None, - "params": [FunctionParamResponse.from_dict(_item) for _item in obj["params"]] if obj.get("params") is not None else None, - "overview_comment": obj.get("overview_comment") - }) - return _obj - - diff --git a/revengai/models/function_boundary.py b/revengai/models/function_boundary.py deleted file mode 100644 index 2c66b7d8..00000000 --- a/revengai/models/function_boundary.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FunctionBoundary(BaseModel): - """ - FunctionBoundary - """ # noqa: E501 - mangled_name: StrictStr - start_address: StrictInt - end_address: StrictInt - include_in_analysis: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["mangled_name", "start_address", "end_address", "include_in_analysis"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionBoundary from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if include_in_analysis (nullable) is None - # and model_fields_set contains the field - if self.include_in_analysis is None and "include_in_analysis" in self.model_fields_set: - _dict['include_in_analysis'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionBoundary from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "mangled_name": obj.get("mangled_name"), - "start_address": obj.get("start_address"), - "end_address": obj.get("end_address"), - "include_in_analysis": obj.get("include_in_analysis") - }) - return _obj - - diff --git a/revengai/models/function_call_edges.py b/revengai/models/function_call_edges.py index c300eec5..8a470dea 100644 --- a/revengai/models/function_call_edges.py +++ b/revengai/models/function_call_edges.py @@ -29,7 +29,6 @@ class FunctionCallEdges(BaseModel): callees: Optional[List[CallEdge]] callers: Optional[List[CallEdge]] function_id: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["callees", "callers", "function_id"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -87,11 +84,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_callers: _items.append(_item_callers.to_dict()) _dict['callers'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if callees (nullable) is None # and model_fields_set contains the field if self.callees is None and "callees" in self.model_fields_set: @@ -118,11 +110,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "callers": [CallEdge.from_dict(_item) for _item in obj["callers"]] if obj.get("callers") is not None else None, "function_id": obj.get("function_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/function_capability_response.py b/revengai/models/function_capability_response.py deleted file mode 100644 index d3e2e222..00000000 --- a/revengai/models/function_capability_response.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FunctionCapabilityResponse(BaseModel): - """ - FunctionCapabilityResponse - """ # noqa: E501 - capabilities: List[StrictStr] = Field(description="The capabilities of the function") - __properties: ClassVar[List[str]] = ["capabilities"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionCapabilityResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionCapabilityResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "capabilities": obj.get("capabilities") - }) - return _obj - - diff --git a/revengai/models/function_data_types.py b/revengai/models/function_data_types.py deleted file mode 100644 index 18cfb197..00000000 --- a/revengai/models/function_data_types.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.v2_function_info import V2FunctionInfo -from typing import Optional, Set -from typing_extensions import Self - -class FunctionDataTypes(BaseModel): - """ - FunctionDataTypes - """ # noqa: E501 - completed: StrictBool = Field(description="Whether the service has completed data types generation") - status: StrictStr = Field(description="The current status of the data types service") - data_types: Optional[V2FunctionInfo] = None - data_types_version: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["completed", "status", "data_types", "data_types_version"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionDataTypes from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data_types - if self.data_types: - _dict['data_types'] = self.data_types.to_dict() - # set to None if data_types (nullable) is None - # and model_fields_set contains the field - if self.data_types is None and "data_types" in self.model_fields_set: - _dict['data_types'] = None - - # set to None if data_types_version (nullable) is None - # and model_fields_set contains the field - if self.data_types_version is None and "data_types_version" in self.model_fields_set: - _dict['data_types_version'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionDataTypes from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "completed": obj.get("completed"), - "status": obj.get("status"), - "data_types": V2FunctionInfo.from_dict(obj["data_types"]) if obj.get("data_types") is not None else None, - "data_types_version": obj.get("data_types_version") - }) - return _obj - - diff --git a/revengai/models/function_data_types_list.py b/revengai/models/function_data_types_list.py deleted file mode 100644 index 14c98217..00000000 --- a/revengai/models/function_data_types_list.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.function_data_types_list_item import FunctionDataTypesListItem -from typing import Optional, Set -from typing_extensions import Self - -class FunctionDataTypesList(BaseModel): - """ - FunctionDataTypesList - """ # noqa: E501 - total_count: Optional[StrictInt] = Field(default=0, description="Total number of functions in analysis") - total_data_types_count: Optional[StrictInt] = Field(default=0, description="Total number of functions with data types") - items: List[FunctionDataTypesListItem] = Field(description="List of function data types information") - __properties: ClassVar[List[str]] = ["total_count", "total_data_types_count", "items"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionDataTypesList from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in items (list) - _items = [] - if self.items: - for _item_items in self.items: - if _item_items: - _items.append(_item_items.to_dict()) - _dict['items'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionDataTypesList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total_count": obj.get("total_count") if obj.get("total_count") is not None else 0, - "total_data_types_count": obj.get("total_data_types_count") if obj.get("total_data_types_count") is not None else 0, - "items": [FunctionDataTypesListItem.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None - }) - return _obj - - diff --git a/revengai/models/function_data_types_list_item.py b/revengai/models/function_data_types_list_item.py deleted file mode 100644 index e5636f21..00000000 --- a/revengai/models/function_data_types_list_item.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.v2_function_info import V2FunctionInfo -from typing import Optional, Set -from typing_extensions import Self - -class FunctionDataTypesListItem(BaseModel): - """ - FunctionDataTypesListItem - """ # noqa: E501 - completed: StrictBool = Field(description="Whether the service has completed data types generation") - status: StrictStr = Field(description="The current status of the data types service") - data_types: Optional[V2FunctionInfo] = None - data_types_version: Optional[StrictInt] = None - function_id: StrictInt = Field(description="Function id") - __properties: ClassVar[List[str]] = ["completed", "status", "data_types", "data_types_version", "function_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionDataTypesListItem from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data_types - if self.data_types: - _dict['data_types'] = self.data_types.to_dict() - # set to None if data_types (nullable) is None - # and model_fields_set contains the field - if self.data_types is None and "data_types" in self.model_fields_set: - _dict['data_types'] = None - - # set to None if data_types_version (nullable) is None - # and model_fields_set contains the field - if self.data_types_version is None and "data_types_version" in self.model_fields_set: - _dict['data_types_version'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionDataTypesListItem from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "completed": obj.get("completed"), - "status": obj.get("status"), - "data_types": V2FunctionInfo.from_dict(obj["data_types"]) if obj.get("data_types") is not None else None, - "data_types_version": obj.get("data_types_version"), - "function_id": obj.get("function_id") - }) - return _obj - - diff --git a/revengai/models/function_data_types_params.py b/revengai/models/function_data_types_params.py deleted file mode 100644 index 51254250..00000000 --- a/revengai/models/function_data_types_params.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FunctionDataTypesParams(BaseModel): - """ - FunctionDataTypesParams - """ # noqa: E501 - function_ids: List[StrictInt] = Field(description="The function ID's to generate/get data types for") - __properties: ClassVar[List[str]] = ["function_ids"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionDataTypesParams from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionDataTypesParams from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_ids": obj.get("function_ids") - }) - return _obj - - diff --git a/revengai/models/function_data_types_status.py b/revengai/models/function_data_types_status.py deleted file mode 100644 index b6ba71d1..00000000 --- a/revengai/models/function_data_types_status.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FunctionDataTypesStatus(BaseModel): - """ - FunctionDataTypesStatus - """ # noqa: E501 - function_id: StrictInt = Field(description="Function id") - completed: StrictBool = Field(description="Whether the service has completed data types generation") - status: StrictStr = Field(description="The current status of the data types service") - __properties: ClassVar[List[str]] = ["function_id", "completed", "status"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionDataTypesStatus from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionDataTypesStatus from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "completed": obj.get("completed"), - "status": obj.get("status") - }) - return _obj - - diff --git a/revengai/models/function_dependency.py b/revengai/models/function_dependency.py index 6fd4d67c..43195a5f 100644 --- a/revengai/models/function_dependency.py +++ b/revengai/models/function_dependency.py @@ -33,7 +33,6 @@ class FunctionDependency(BaseModel): scope: Optional[StrictStr] = None size: Optional[StrictInt] = Field(default=None, description="Total byte size (Struct, GlobalVariable).") type: Optional[StrictStr] = Field(default=None, description="Underlying type (TypeDefinition, GlobalVariable).") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["addr", "artifact_type", "last_change", "members", "name", "scope", "size", "type"] model_config = ConfigDict( @@ -66,10 +65,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -77,11 +74,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if members (nullable) is None # and model_fields_set contains the field if self.members is None and "members" in self.model_fields_set: @@ -108,11 +100,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "size": obj.get("size"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/function_details_output_body.py b/revengai/models/function_details_output_body.py index 2a56721d..9de86816 100644 --- a/revengai/models/function_details_output_body.py +++ b/revengai/models/function_details_output_body.py @@ -36,7 +36,6 @@ class FunctionDetailsOutputBody(BaseModel): function_vaddr: StrictInt mangled_name: Optional[StrictStr] = None source_function_id: Optional[StrictInt] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "creation", "debug", "function_id", "function_name", "function_size", "function_vaddr", "mangled_name", "source_function_id"] model_config = ConfigDict( @@ -69,10 +68,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -80,11 +77,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -108,11 +100,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "mangled_name": obj.get("mangled_name"), "source_function_id": obj.get("source_function_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/function_header.py b/revengai/models/function_header.py index 8da28420..a039aa80 100644 --- a/revengai/models/function_header.py +++ b/revengai/models/function_header.py @@ -32,7 +32,6 @@ class FunctionHeader(BaseModel): name: StrictStr scope: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["addr", "args", "last_change", "name", "scope", "type"] model_config = ConfigDict( @@ -65,10 +64,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -83,11 +80,6 @@ def to_dict(self) -> Dict[str, Any]: if self.args[_key_args]: _field_dict[_key_args] = self.args[_key_args].to_dict() _dict['args'] = _field_dict - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -112,11 +104,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "scope": obj.get("scope"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/function_info.py b/revengai/models/function_info.py index 23b66389..34ff6ae2 100644 --- a/revengai/models/function_info.py +++ b/revengai/models/function_info.py @@ -29,7 +29,6 @@ class FunctionInfo(BaseModel): """ # noqa: E501 func_deps: Optional[List[FunctionDependency]] func_types: Optional[FunctionType] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["func_deps", "func_types"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -83,11 +80,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of func_types if self.func_types: _dict['func_types'] = self.func_types.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if func_deps (nullable) is None # and model_fields_set contains the field if self.func_deps is None and "func_deps" in self.model_fields_set: @@ -108,11 +100,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "func_deps": [FunctionDependency.from_dict(_item) for _item in obj["func_deps"]] if obj.get("func_deps") is not None else None, "func_types": FunctionType.from_dict(obj["func_types"]) if obj.get("func_types") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/function_list_item.py b/revengai/models/function_list_item.py deleted file mode 100644 index 8f130ff0..00000000 --- a/revengai/models/function_list_item.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List -from revengai.models.name_source_type import NameSourceType -from typing import Optional, Set -from typing_extensions import Self - -class FunctionListItem(BaseModel): - """ - FunctionListItem - """ # noqa: E501 - id: StrictInt = Field(description="Function id") - name: StrictStr = Field(description="Name of the function") - name_source_type: StrictStr = Field(description="The source (process) the function name came from") - name_source: NameSourceType = Field(description="The source of the current function name.") - mangled_name: StrictStr = Field(description="Mangled name of the function") - vaddr: StrictInt = Field(description="Function virtual address") - size: StrictInt = Field(description="Function size in bytes") - debug: StrictBool = Field(description="Whether the function has debug information") - __properties: ClassVar[List[str]] = ["id", "name", "name_source_type", "name_source", "mangled_name", "vaddr", "size", "debug"] - - @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', '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( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionListItem from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of name_source - if self.name_source: - _dict['name_source'] = self.name_source.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionListItem from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "name_source_type": obj.get("name_source_type"), - "name_source": NameSourceType.from_dict(obj["name_source"]) if obj.get("name_source") is not None else None, - "mangled_name": obj.get("mangled_name"), - "vaddr": obj.get("vaddr"), - "size": obj.get("size"), - "debug": obj.get("debug") - }) - return _obj - - diff --git a/revengai/models/function_local_variable_response.py b/revengai/models/function_local_variable_response.py deleted file mode 100644 index bbe598aa..00000000 --- a/revengai/models/function_local_variable_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FunctionLocalVariableResponse(BaseModel): - """ - FunctionLocalVariableResponse - """ # noqa: E501 - address: StrictStr - d_type: StrictStr - size: StrictInt - loc: StrictStr - name: StrictStr - __properties: ClassVar[List[str]] = ["address", "d_type", "size", "loc", "name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionLocalVariableResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionLocalVariableResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "address": obj.get("address"), - "d_type": obj.get("d_type"), - "size": obj.get("size"), - "loc": obj.get("loc"), - "name": obj.get("name") - }) - return _obj - - diff --git a/revengai/models/function_mapping.py b/revengai/models/function_mapping.py deleted file mode 100644 index 9315bf28..00000000 --- a/revengai/models/function_mapping.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FunctionMapping(BaseModel): - """ - FunctionMapping - """ # noqa: E501 - function_map: Dict[str, StrictInt] = Field(description="Mapping of remote function ids to local function addresses") - inverse_function_map: Dict[str, StrictInt] = Field(description="Mapping of local function addresses to remote function ids") - name_map: Dict[str, StrictStr] = Field(description="Mapping of local function addresses to mangled names") - __properties: ClassVar[List[str]] = ["function_map", "inverse_function_map", "name_map"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionMapping from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionMapping from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_map": obj.get("function_map"), - "inverse_function_map": obj.get("inverse_function_map"), - "name_map": obj.get("name_map") - }) - return _obj - - diff --git a/revengai/models/function_match.py b/revengai/models/function_match.py index 54a2fc7b..6cf370bb 100644 --- a/revengai/models/function_match.py +++ b/revengai/models/function_match.py @@ -30,7 +30,6 @@ class FunctionMatch(BaseModel): confidences: Optional[List[NameConfidence]] = Field(default=None, description="Per-name confidences when canonify was requested") function_id: StrictInt = Field(description="Source function ID") matched_functions: Optional[List[MatchedFunction]] = Field(description="Top candidate matches in similarity-descending order") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["confidences", "function_id", "matched_functions"] model_config = ConfigDict( @@ -63,10 +62,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -88,11 +85,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_matched_functions: _items.append(_item_matched_functions.to_dict()) _dict['matched_functions'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if confidences (nullable) is None # and model_fields_set contains the field if self.confidences is None and "confidences" in self.model_fields_set: @@ -119,11 +111,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "function_id": obj.get("function_id"), "matched_functions": [MatchedFunction.from_dict(_item) for _item in obj["matched_functions"]] if obj.get("matched_functions") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/function_name_history.py b/revengai/models/function_name_history.py deleted file mode 100644 index e8d2ae69..00000000 --- a/revengai/models/function_name_history.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from revengai.models.function_source_type import FunctionSourceType -from typing import Optional, Set -from typing_extensions import Self - -class FunctionNameHistory(BaseModel): - """ - FunctionNameHistory - """ # noqa: E501 - history_id: StrictInt = Field(description="The ID of the history record") - change_made_by: StrictStr = Field(description="The user who made the change") - function_name: StrictStr = Field(description="The name of the function") - mangled_name: StrictStr = Field(description="The mangled name of the function") - is_debug: StrictBool = Field(description="Whether the function is debugged") - source_type: FunctionSourceType = Field(description="The source type of the function") - created_at: StrictStr = Field(description="The timestamp when the function name was created") - __properties: ClassVar[List[str]] = ["history_id", "change_made_by", "function_name", "mangled_name", "is_debug", "source_type", "created_at"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionNameHistory from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionNameHistory from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "history_id": obj.get("history_id"), - "change_made_by": obj.get("change_made_by"), - "function_name": obj.get("function_name"), - "mangled_name": obj.get("mangled_name"), - "is_debug": obj.get("is_debug"), - "source_type": obj.get("source_type"), - "created_at": obj.get("created_at") - }) - return _obj - - diff --git a/revengai/models/function_param_response.py b/revengai/models/function_param_response.py deleted file mode 100644 index a3ae7f5a..00000000 --- a/revengai/models/function_param_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FunctionParamResponse(BaseModel): - """ - FunctionParamResponse - """ # noqa: E501 - d_type: StrictStr - loc: StrictStr - addr: StrictStr - length: StrictInt - name: StrictStr - __properties: ClassVar[List[str]] = ["d_type", "loc", "addr", "length", "name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionParamResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionParamResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "d_type": obj.get("d_type"), - "loc": obj.get("loc"), - "addr": obj.get("addr"), - "length": obj.get("length"), - "name": obj.get("name") - }) - return _obj - - diff --git a/revengai/models/function_rename.py b/revengai/models/function_rename.py deleted file mode 100644 index e90cd216..00000000 --- a/revengai/models/function_rename.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FunctionRename(BaseModel): - """ - FunctionRename - """ # noqa: E501 - new_name: StrictStr = Field(description="The new name for the function") - new_mangled_name: StrictStr = Field(description="The new mangled name for the function") - __properties: ClassVar[List[str]] = ["new_name", "new_mangled_name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionRename from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionRename from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "new_name": obj.get("new_name"), - "new_mangled_name": obj.get("new_mangled_name") - }) - return _obj - - diff --git a/revengai/models/function_rename_map.py b/revengai/models/function_rename_map.py deleted file mode 100644 index 17bc4ec8..00000000 --- a/revengai/models/function_rename_map.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FunctionRenameMap(BaseModel): - """ - FunctionRenameMap - """ # noqa: E501 - function_id: StrictInt = Field(description="The ID of the function to rename") - new_name: StrictStr = Field(description="The new name for the function") - new_mangled_name: StrictStr = Field(description="The new mangled name for the function") - __properties: ClassVar[List[str]] = ["function_id", "new_name", "new_mangled_name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionRenameMap from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionRenameMap from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "new_name": obj.get("new_name"), - "new_mangled_name": obj.get("new_mangled_name") - }) - return _obj - - diff --git a/revengai/models/function_search_response.py b/revengai/models/function_search_response.py deleted file mode 100644 index e71891d7..00000000 --- a/revengai/models/function_search_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.function_search_result import FunctionSearchResult -from typing import Optional, Set -from typing_extensions import Self - -class FunctionSearchResponse(BaseModel): - """ - FunctionSearchResponse - """ # noqa: E501 - results: List[FunctionSearchResult] = Field(description="The results of the search") - __properties: ClassVar[List[str]] = ["results"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionSearchResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item_results in self.results: - if _item_results: - _items.append(_item_results.to_dict()) - _dict['results'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionSearchResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "results": [FunctionSearchResult.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None - }) - return _obj - - diff --git a/revengai/models/function_search_result.py b/revengai/models/function_search_result.py deleted file mode 100644 index 154b18d0..00000000 --- a/revengai/models/function_search_result.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FunctionSearchResult(BaseModel): - """ - FunctionSearchResult - """ # noqa: E501 - function_id: StrictInt = Field(description="The function ID") - function_name: StrictStr = Field(description="The name of the function") - binary_name: StrictStr = Field(description="The name of the binary the function belongs to") - created_at: datetime = Field(description="The creation date of the function") - model_id: StrictInt = Field(description="The model ID used to analyze the binary the function belongs to") - model_name: StrictStr = Field(description="The name of the model used to analyze the binary the function belongs to") - owned_by: StrictStr = Field(description="The owner of the binary the function belongs to") - __properties: ClassVar[List[str]] = ["function_id", "function_name", "binary_name", "created_at", "model_id", "model_name", "owned_by"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionSearchResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionSearchResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "function_name": obj.get("function_name"), - "binary_name": obj.get("binary_name"), - "created_at": obj.get("created_at"), - "model_id": obj.get("model_id"), - "model_name": obj.get("model_name"), - "owned_by": obj.get("owned_by") - }) - return _obj - - diff --git a/revengai/models/function_source_type.py b/revengai/models/function_source_type.py deleted file mode 100644 index b3970068..00000000 --- a/revengai/models/function_source_type.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class FunctionSourceType(str, Enum): - """ - FunctionSourceType - """ - - """ - allowed enum values - """ - SYSTEM = 'SYSTEM' - USER = 'USER' - EXTERNAL = 'EXTERNAL' - AUTO_UNSTRIP = 'AUTO_UNSTRIP' - AI_UNSTRIP = 'AI_UNSTRIP' - AI_AGENT = 'AI_AGENT' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of FunctionSourceType from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/function_stack_variable.py b/revengai/models/function_stack_variable.py index 4221cc84..982f4a65 100644 --- a/revengai/models/function_stack_variable.py +++ b/revengai/models/function_stack_variable.py @@ -32,7 +32,6 @@ class FunctionStackVariable(BaseModel): scope: Optional[StrictStr] = None size: StrictInt type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["addr", "last_change", "name", "offset", "scope", "size", "type"] model_config = ConfigDict( @@ -65,10 +64,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -76,11 +73,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -101,11 +93,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "size": obj.get("size"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/function_string.py b/revengai/models/function_string.py deleted file mode 100644 index ab8f451f..00000000 --- a/revengai/models/function_string.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.string_source import StringSource -from typing import Optional, Set -from typing_extensions import Self - -class FunctionString(BaseModel): - """ - FunctionString - """ # noqa: E501 - value: StrictStr = Field(description="The value of the string literal") - vaddr: StrictInt = Field(description="The vaddr of the string value") - source: Optional[StringSource] = Field(default=None, description="The source of the string") - __properties: ClassVar[List[str]] = ["value", "vaddr", "source"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionString from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionString from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "value": obj.get("value"), - "vaddr": obj.get("vaddr"), - "source": obj.get("source") - }) - return _obj - - diff --git a/revengai/models/function_string_item.py b/revengai/models/function_string_item.py index ad209ed0..eccd2ca5 100644 --- a/revengai/models/function_string_item.py +++ b/revengai/models/function_string_item.py @@ -28,7 +28,6 @@ class FunctionStringItem(BaseModel): source: StrictStr vaddr: StrictInt value: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["source", "vaddr", "value"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -93,11 +85,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "vaddr": obj.get("vaddr"), "value": obj.get("value") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/function_strings_response.py b/revengai/models/function_strings_response.py deleted file mode 100644 index a2e490dc..00000000 --- a/revengai/models/function_strings_response.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List -from revengai.models.function_string import FunctionString -from typing import Optional, Set -from typing_extensions import Self - -class FunctionStringsResponse(BaseModel): - """ - Response for listing all the strings of a function. - """ # noqa: E501 - strings: List[FunctionString] = Field(description="The strings associated with this function") - total_strings: StrictInt = Field(description="The total number of strings associated with this function") - __properties: ClassVar[List[str]] = ["strings", "total_strings"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionStringsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in strings (list) - _items = [] - if self.strings: - for _item_strings in self.strings: - if _item_strings: - _items.append(_item_strings.to_dict()) - _dict['strings'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionStringsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "strings": [FunctionString.from_dict(_item) for _item in obj["strings"]] if obj.get("strings") is not None else None, - "total_strings": obj.get("total_strings") - }) - return _obj - - diff --git a/revengai/models/function_type.py b/revengai/models/function_type.py index 3365b5a6..e670d69b 100644 --- a/revengai/models/function_type.py +++ b/revengai/models/function_type.py @@ -36,7 +36,6 @@ class FunctionType(BaseModel): size: StrictInt stack_vars: Optional[Dict[str, FunctionStackVariable]] = Field(default=None, description="Stack variables keyed by offset hex.") type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["addr", "artifact_type", "header", "last_change", "name", "scope", "size", "stack_vars", "type"] model_config = ConfigDict( @@ -69,10 +68,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -90,11 +87,6 @@ def to_dict(self) -> Dict[str, Any]: if self.stack_vars[_key_stack_vars]: _field_dict[_key_stack_vars] = self.stack_vars[_key_stack_vars].to_dict() _dict['stack_vars'] = _field_dict - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -122,11 +114,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None, "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/functions_detail_response.py b/revengai/models/functions_detail_response.py deleted file mode 100644 index f9ec67cb..00000000 --- a/revengai/models/functions_detail_response.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FunctionsDetailResponse(BaseModel): - """ - FunctionsDetailResponse - """ # noqa: E501 - function_id: StrictInt = Field(description="Function id") - function_name: StrictStr - function_name_mangled: StrictStr - function_vaddr: StrictInt - function_size: StrictInt - analysis_id: StrictInt - binary_id: StrictInt - binary_name: StrictStr - sha_256_hash: StrictStr - debug_hash: Optional[StrictStr] - debug: StrictBool - __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionsDetailResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if debug_hash (nullable) is None - # and model_fields_set contains the field - if self.debug_hash is None and "debug_hash" in self.model_fields_set: - _dict['debug_hash'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionsDetailResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "function_name": obj.get("function_name"), - "function_name_mangled": obj.get("function_name_mangled"), - "function_vaddr": obj.get("function_vaddr"), - "function_size": obj.get("function_size"), - "analysis_id": obj.get("analysis_id"), - "binary_id": obj.get("binary_id"), - "binary_name": obj.get("binary_name"), - "sha_256_hash": obj.get("sha_256_hash"), - "debug_hash": obj.get("debug_hash"), - "debug": obj.get("debug") - }) - return _obj - - diff --git a/revengai/models/functions_list_rename.py b/revengai/models/functions_list_rename.py deleted file mode 100644 index 50cbc907..00000000 --- a/revengai/models/functions_list_rename.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.function_rename_map import FunctionRenameMap -from typing import Optional, Set -from typing_extensions import Self - -class FunctionsListRename(BaseModel): - """ - FunctionsListRename - """ # noqa: E501 - functions: List[FunctionRenameMap] = Field(description="A list of functions to rename") - __properties: ClassVar[List[str]] = ["functions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionsListRename from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in functions (list) - _items = [] - if self.functions: - for _item_functions in self.functions: - if _item_functions: - _items.append(_item_functions.to_dict()) - _dict['functions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionsListRename from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "functions": [FunctionRenameMap.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None - }) - return _obj - - diff --git a/revengai/models/generate_function_data_types.py b/revengai/models/generate_function_data_types.py deleted file mode 100644 index 1beb0c66..00000000 --- a/revengai/models/generate_function_data_types.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List -from revengai.models.generation_status_list import GenerationStatusList -from typing import Optional, Set -from typing_extensions import Self - -class GenerateFunctionDataTypes(BaseModel): - """ - GenerateFunctionDataTypes - """ # noqa: E501 - queued: StrictBool = Field(description="[DEPRECATED] This value has been replaced with the `data_types_list` field") - reference: StrictStr = Field(description="[DEPRECATED] This value has been replaced with the `data_types_list` field") - data_types_list: GenerationStatusList = Field(description="List of function data types information that are either already generated, or now queued for generation") - __properties: ClassVar[List[str]] = ["queued", "reference", "data_types_list"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GenerateFunctionDataTypes from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data_types_list - if self.data_types_list: - _dict['data_types_list'] = self.data_types_list.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GenerateFunctionDataTypes from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "queued": obj.get("queued"), - "reference": obj.get("reference"), - "data_types_list": GenerationStatusList.from_dict(obj["data_types_list"]) if obj.get("data_types_list") is not None else None - }) - return _obj - - diff --git a/revengai/models/generate_pdf_output_body.py b/revengai/models/generate_pdf_output_body.py index 7b7c2b13..ca0640fd 100644 --- a/revengai/models/generate_pdf_output_body.py +++ b/revengai/models/generate_pdf_output_body.py @@ -26,7 +26,6 @@ class GeneratePDFOutputBody(BaseModel): GeneratePDFOutputBody """ # noqa: E501 already_running: Optional[StrictBool] = Field(default=None, description="True when an existing PDF generation is in progress for this analysis and user") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["already_running"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -89,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "already_running": obj.get("already_running") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/generation_status_list.py b/revengai/models/generation_status_list.py deleted file mode 100644 index ecad74d7..00000000 --- a/revengai/models/generation_status_list.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.function_data_types_status import FunctionDataTypesStatus -from typing import Optional, Set -from typing_extensions import Self - -class GenerationStatusList(BaseModel): - """ - GenerationStatusList - """ # noqa: E501 - total_count: Optional[StrictInt] = Field(default=0, description="Total number of functions in analysis") - total_data_types_count: Optional[StrictInt] = Field(default=0, description="Total number of functions with data types") - items: List[FunctionDataTypesStatus] = Field(description="List of function data types information") - __properties: ClassVar[List[str]] = ["total_count", "total_data_types_count", "items"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GenerationStatusList from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in items (list) - _items = [] - if self.items: - for _item_items in self.items: - if _item_items: - _items.append(_item_items.to_dict()) - _dict['items'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GenerationStatusList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total_count": obj.get("total_count") if obj.get("total_count") is not None else 0, - "total_data_types_count": obj.get("total_data_types_count") if obj.get("total_data_types_count") is not None else 0, - "items": [FunctionDataTypesStatus.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None - }) - return _obj - - diff --git a/revengai/models/get_additional_details_output_body.py b/revengai/models/get_additional_details_output_body.py index 985f6e87..32060faf 100644 --- a/revengai/models/get_additional_details_output_body.py +++ b/revengai/models/get_additional_details_output_body.py @@ -27,7 +27,6 @@ class GetAdditionalDetailsOutputBody(BaseModel): """ # noqa: E501 binary_id: StrictInt details: Optional[Any] - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["binary_id", "details"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -71,11 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if details (nullable) is None # and model_fields_set contains the field if self.details is None and "details" in self.model_fields_set: @@ -96,11 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "binary_id": obj.get("binary_id"), "details": obj.get("details") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/get_additional_details_status_output_body.py b/revengai/models/get_additional_details_status_output_body.py index 4bf18243..1aa41211 100644 --- a/revengai/models/get_additional_details_status_output_body.py +++ b/revengai/models/get_additional_details_status_output_body.py @@ -26,7 +26,6 @@ class GetAdditionalDetailsStatusOutputBody(BaseModel): GetAdditionalDetailsStatusOutputBody """ # noqa: E501 status: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["status"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -89,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "status": obj.get("status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/get_ai_decompilation_rating_response.py b/revengai/models/get_ai_decompilation_rating_response.py deleted file mode 100644 index 726ef807..00000000 --- a/revengai/models/get_ai_decompilation_rating_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.ai_decompilation_rating import AiDecompilationRating -from typing import Optional, Set -from typing_extensions import Self - -class GetAiDecompilationRatingResponse(BaseModel): - """ - GetAiDecompilationRatingResponse - """ # noqa: E501 - rating: AiDecompilationRating = Field(description="The rating the user has given to the AI decompilation response") - reason: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["rating", "reason"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAiDecompilationRatingResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if reason (nullable) is None - # and model_fields_set contains the field - if self.reason is None and "reason" in self.model_fields_set: - _dict['reason'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAiDecompilationRatingResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "rating": obj.get("rating"), - "reason": obj.get("reason") - }) - return _obj - - diff --git a/revengai/models/get_analysis_strings_status_output_body.py b/revengai/models/get_analysis_strings_status_output_body.py index ab3ae14e..02c1330c 100644 --- a/revengai/models/get_analysis_strings_status_output_body.py +++ b/revengai/models/get_analysis_strings_status_output_body.py @@ -26,7 +26,6 @@ class GetAnalysisStringsStatusOutputBody(BaseModel): GetAnalysisStringsStatusOutputBody """ # noqa: E501 status: StrictStr = Field(description="String-extraction task status") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["status"] @field_validator('status') @@ -66,10 +65,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -77,11 +74,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -96,11 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "status": obj.get("status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/get_collection_output_body.py b/revengai/models/get_collection_output_body.py index a4c63099..ed9351b2 100644 --- a/revengai/models/get_collection_output_body.py +++ b/revengai/models/get_collection_output_body.py @@ -40,7 +40,6 @@ class GetCollectionOutputBody(BaseModel): team_id: StrictInt updated_at: datetime user_id: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["binaries", "collection_id", "collection_name", "collection_scope", "created_at", "description", "has_next_page", "page_number", "page_size", "tags", "team_id", "updated_at", "user_id"] model_config = ConfigDict( @@ -73,10 +72,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -91,11 +88,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_binaries: _items.append(_item_binaries.to_dict()) _dict['binaries'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if binaries (nullable) is None # and model_fields_set contains the field if self.binaries is None and "binaries" in self.model_fields_set: @@ -132,11 +124,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "updated_at": obj.get("updated_at"), "user_id": obj.get("user_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/get_matches_output_body.py b/revengai/models/get_matches_output_body.py index 83dfc061..3e5249e3 100644 --- a/revengai/models/get_matches_output_body.py +++ b/revengai/models/get_matches_output_body.py @@ -28,7 +28,6 @@ class GetMatchesOutputBody(BaseModel): """ # noqa: E501 matches: Optional[List[FunctionMatch]] = Field(default=None, description="Per-source-function matches. Populated when status=COMPLETED; empty otherwise.") status: StrictStr = Field(description="Current workflow status") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["matches", "status"] @field_validator('status') @@ -68,10 +67,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -86,11 +83,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_matches: _items.append(_item_matches.to_dict()) _dict['matches'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if matches (nullable) is None # and model_fields_set contains the field if self.matches is None and "matches" in self.model_fields_set: @@ -111,11 +103,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "matches": [FunctionMatch.from_dict(_item) for _item in obj["matches"]] if obj.get("matches") is not None else None, "status": obj.get("status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/get_matches_status_output_body.py b/revengai/models/get_matches_status_output_body.py index aa0dde39..115cbb5d 100644 --- a/revengai/models/get_matches_status_output_body.py +++ b/revengai/models/get_matches_status_output_body.py @@ -31,7 +31,6 @@ class GetMatchesStatusOutputBody(BaseModel): step: StrictStr = Field(description="Name of the current step") step_index: StrictInt = Field(description="Zero-based index of the current step") steps_total: StrictInt = Field(description="Total number of steps in the workflow") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["messages", "status", "step", "step_index", "steps_total"] @field_validator('status') @@ -71,10 +70,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -89,11 +86,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_messages: _items.append(_item_messages.to_dict()) _dict['messages'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if messages (nullable) is None # and model_fields_set contains the field if self.messages is None and "messages" in self.model_fields_set: @@ -117,11 +109,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "step_index": obj.get("step_index"), "steps_total": obj.get("steps_total") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/get_public_user_response.py b/revengai/models/get_public_user_response.py deleted file mode 100644 index 4c9e6882..00000000 --- a/revengai/models/get_public_user_response.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class GetPublicUserResponse(BaseModel): - """ - GetPublicUserResponse - """ # noqa: E501 - username: StrictStr - user_id: StrictInt - __properties: ClassVar[List[str]] = ["username", "user_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPublicUserResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPublicUserResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "username": obj.get("username"), - "user_id": obj.get("user_id") - }) - return _obj - - diff --git a/revengai/models/global_variable.py b/revengai/models/global_variable.py deleted file mode 100644 index 136d3d74..00000000 --- a/revengai/models/global_variable.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GlobalVariable(BaseModel): - """ - GlobalVariable - """ # noqa: E501 - last_change: Optional[StrictStr] = None - addr: StrictInt = Field(description="Memory address of the global variable") - name: StrictStr = Field(description="Name of the global variable") - type: StrictStr = Field(description="Data type of the global variable") - size: StrictInt = Field(description="Size of the global variable in bytes") - artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact that the global variable is associated with") - __properties: ClassVar[List[str]] = ["last_change", "addr", "name", "type", "size", "artifact_type"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GlobalVariable from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if last_change (nullable) is None - # and model_fields_set contains the field - if self.last_change is None and "last_change" in self.model_fields_set: - _dict['last_change'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GlobalVariable from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "last_change": obj.get("last_change"), - "addr": obj.get("addr"), - "name": obj.get("name"), - "type": obj.get("type"), - "size": obj.get("size"), - "artifact_type": obj.get("artifact_type") - }) - return _obj - - diff --git a/revengai/models/history_entry.py b/revengai/models/history_entry.py index 7da8d43d..5bba7b07 100644 --- a/revengai/models/history_entry.py +++ b/revengai/models/history_entry.py @@ -35,7 +35,6 @@ class HistoryEntry(BaseModel): source_analysis_id: Optional[StrictInt] = Field(default=None, description="ID of the analysis the source function belongs to, if any") source_function_id: Optional[StrictInt] = Field(default=None, description="ID of the source function this name was transferred from, if any") source_type: StrictStr = Field(description="Source of the rename (USER, SYSTEM, AI_UNSTRIP, etc.)") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["change_made_by", "created_at", "function_name", "history_id", "is_debug", "mangled_name", "source_analysis_id", "source_function_id", "source_type"] model_config = ConfigDict( @@ -68,10 +67,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -106,11 +98,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_function_id": obj.get("source_function_id"), "source_type": obj.get("source_type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/http_request.py b/revengai/models/http_request.py index 79752c8c..13e87007 100644 --- a/revengai/models/http_request.py +++ b/revengai/models/http_request.py @@ -50,7 +50,6 @@ class HttpRequest(BaseModel): username: Optional[StrictStr] = None verb: Optional[StrictStr] = None version: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["bytes_received", "bytes_sent", "events", "extra_headers", "flags", "password", "path", "pcap_stream_id", "post_data", "proxy", "proxy_bypass", "referer", "request_body", "response_body", "response_status", "server_ip", "server_name", "server_port", "service", "user_agent", "username", "verb", "version"] model_config = ConfigDict( @@ -83,10 +82,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -107,11 +104,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of response_body if self.response_body: _dict['response_body'] = self.response_body.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if events (nullable) is None # and model_fields_set contains the field if self.events is None and "events" in self.model_fields_set: @@ -158,11 +150,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "verb": obj.get("verb"), "version": obj.get("version") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/icon_model.py b/revengai/models/icon_model.py deleted file mode 100644 index 5c6058cf..00000000 --- a/revengai/models/icon_model.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class IconModel(BaseModel): - """ - IconModel - """ # noqa: E501 - content: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["content"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of IconModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if content (nullable) is None - # and model_fields_set contains the field - if self.content is None and "content" in self.model_fields_set: - _dict['content'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of IconModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "content": obj.get("content") - }) - return _obj - - diff --git a/revengai/models/import_model.py b/revengai/models/import_model.py deleted file mode 100644 index bf4c0619..00000000 --- a/revengai/models/import_model.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class ImportModel(BaseModel): - """ - ImportModel - """ # noqa: E501 - number_of_imports: StrictInt - imports: List[Dict[str, Dict[str, StrictInt]]] - __properties: ClassVar[List[str]] = ["number_of_imports", "imports"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ImportModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ImportModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "number_of_imports": obj.get("number_of_imports"), - "imports": obj.get("imports") - }) - return _obj - - diff --git a/revengai/models/imported_function_caller_entry.py b/revengai/models/imported_function_caller_entry.py index c0d8eb1d..a3443f71 100644 --- a/revengai/models/imported_function_caller_entry.py +++ b/revengai/models/imported_function_caller_entry.py @@ -29,7 +29,6 @@ class ImportedFunctionCallerEntry(BaseModel): function_name: StrictStr function_vaddr: StrictInt stub_vaddr: StrictInt = Field(description="The PLT/stub address this caller targets.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_vaddr", "stub_vaddr"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -95,11 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "function_vaddr": obj.get("function_vaddr"), "stub_vaddr": obj.get("stub_vaddr") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/imported_function_detail_output_body.py b/revengai/models/imported_function_detail_output_body.py index 645065bd..ef7e2528 100644 --- a/revengai/models/imported_function_detail_output_body.py +++ b/revengai/models/imported_function_detail_output_body.py @@ -35,7 +35,6 @@ class ImportedFunctionDetailOutputBody(BaseModel): original_name: Optional[StrictStr] = Field(default=None, description="Pre-demangling / pre-aliasing name, when it differs from name.") stub_vaddrs: Optional[List[StrictInt]] = Field(description="PLT/stub addresses that resolve external call edges (function_call_edges.callee_vaddr) to this import. Use these to link a caller's external callee to this import.") vaddr: Optional[StrictInt] = Field(default=None, description="Virtual address of the import, when known.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["callers", "imported_function_id", "is_function", "library_name", "library_version", "name", "original_name", "stub_vaddrs", "vaddr"] model_config = ConfigDict( @@ -68,10 +67,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -86,11 +83,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_callers: _items.append(_item_callers.to_dict()) _dict['callers'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if callers (nullable) is None # and model_fields_set contains the field if self.callers is None and "callers" in self.model_fields_set: @@ -123,11 +115,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "stub_vaddrs": obj.get("stub_vaddrs"), "vaddr": obj.get("vaddr") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/indirect_call_site.py b/revengai/models/indirect_call_site.py index 32352f96..521538cf 100644 --- a/revengai/models/indirect_call_site.py +++ b/revengai/models/indirect_call_site.py @@ -30,7 +30,6 @@ class IndirectCallSite(BaseModel): is_external: StrictBool target_name: Optional[StrictStr] = None target_vaddr: StrictInt = Field(description="Resolved call target vaddr.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["callee_function_id", "inst_vaddr", "is_external", "target_name", "target_vaddr"] model_config = ConfigDict( @@ -63,10 +62,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -74,11 +71,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -97,11 +89,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "target_name": obj.get("target_name"), "target_vaddr": obj.get("target_vaddr") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/indirect_call_sites_output_body.py b/revengai/models/indirect_call_sites_output_body.py index 2e0426df..b09ebaf1 100644 --- a/revengai/models/indirect_call_sites_output_body.py +++ b/revengai/models/indirect_call_sites_output_body.py @@ -28,7 +28,6 @@ class IndirectCallSitesOutputBody(BaseModel): """ # noqa: E501 function_id: StrictInt sites: Optional[List[IndirectCallSite]] - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["function_id", "sites"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_sites: _items.append(_item_sites.to_dict()) _dict['sites'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if sites (nullable) is None # and model_fields_set contains the field if self.sites is None and "sites" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "function_id": obj.get("function_id"), "sites": [IndirectCallSite.from_dict(_item) for _item in obj["sites"]] if obj.get("sites") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/inline_comment.py b/revengai/models/inline_comment.py index 2187cf1d..5aa85408 100644 --- a/revengai/models/inline_comment.py +++ b/revengai/models/inline_comment.py @@ -27,7 +27,6 @@ class InlineComment(BaseModel): """ # noqa: E501 comment: StrictStr line: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["comment", "line"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -71,11 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -91,11 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "comment": obj.get("comment"), "line": obj.get("line") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/insert_analysis_log_request.py b/revengai/models/insert_analysis_log_request.py deleted file mode 100644 index 501d7872..00000000 --- a/revengai/models/insert_analysis_log_request.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from typing_extensions import Annotated -from typing import Optional, Set -from typing_extensions import Self - -class InsertAnalysisLogRequest(BaseModel): - """ - InsertAnalysisLogRequest - """ # noqa: E501 - log: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The log message to insert for the analysis") - __properties: ClassVar[List[str]] = ["log"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of InsertAnalysisLogRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of InsertAnalysisLogRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "log": obj.get("log") - }) - return _obj - - diff --git a/revengai/models/ioc.py b/revengai/models/ioc.py deleted file mode 100644 index c08dcecf..00000000 --- a/revengai/models/ioc.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class IOC(BaseModel): - """ - IOC - """ # noqa: E501 - type: StrictStr = Field(description="Type of the IOC") - value: StrictStr = Field(description="Value of the IOC") - description: StrictStr = Field(description="Description of the IOC") - source: Optional[StrictStr] = None - function_id: Optional[StrictInt] = None - function_name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["type", "value", "description", "source", "function_id", "function_name"] - - @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', '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( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of IOC from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if source (nullable) is None - # and model_fields_set contains the field - if self.source is None and "source" in self.model_fields_set: - _dict['source'] = None - - # set to None if function_id (nullable) is None - # and model_fields_set contains the field - if self.function_id is None and "function_id" in self.model_fields_set: - _dict['function_id'] = None - - # set to None if function_name (nullable) is None - # and model_fields_set contains the field - if self.function_name is None and "function_name" in self.model_fields_set: - _dict['function_name'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of IOC from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "type": obj.get("type"), - "value": obj.get("value"), - "description": obj.get("description"), - "source": obj.get("source"), - "function_id": obj.get("function_id"), - "function_name": obj.get("function_name") - }) - return _obj - - diff --git a/revengai/models/isa.py b/revengai/models/isa.py deleted file mode 100644 index 2292b45c..00000000 --- a/revengai/models/isa.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class ISA(str, Enum): - """ - ISA - """ - - """ - allowed enum values - """ - X86 = 'x86' - X86_64 = 'x86_64' - ARM = 'arm' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ISA from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/list_analyses_output_body.py b/revengai/models/list_analyses_output_body.py index 6d34f8d2..b5c5aa8c 100644 --- a/revengai/models/list_analyses_output_body.py +++ b/revengai/models/list_analyses_output_body.py @@ -29,7 +29,6 @@ class ListAnalysesOutputBody(BaseModel): next_page_token: Optional[StrictStr] = Field(default=None, description="Opaque cursor to fetch the next page; empty on the last page") page_size: StrictInt = Field(description="Number of results in this page") results: Optional[List[AnalysisRecordBody]] = Field(description="The page of matching analyses") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["next_page_token", "page_size", "results"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -80,11 +77,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_results: _items.append(_item_results.to_dict()) _dict['results'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if results (nullable) is None # and model_fields_set contains the field if self.results is None and "results" in self.model_fields_set: @@ -106,11 +98,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "page_size": obj.get("page_size"), "results": [AnalysisRecordBody.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/list_analysis_functions_data_types_output_body.py b/revengai/models/list_analysis_functions_data_types_output_body.py index 3c36453a..3dfb57a3 100644 --- a/revengai/models/list_analysis_functions_data_types_output_body.py +++ b/revengai/models/list_analysis_functions_data_types_output_body.py @@ -28,7 +28,6 @@ class ListAnalysisFunctionsDataTypesOutputBody(BaseModel): """ # noqa: E501 items: Optional[List[DataTypesEntry]] total_count: StrictInt = Field(description="Total functions in the analysis, ignoring pagination.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["items", "total_count"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_items: _items.append(_item_items.to_dict()) _dict['items'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "items": [DataTypesEntry.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "total_count": obj.get("total_count") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/list_analysis_functions_output_body.py b/revengai/models/list_analysis_functions_output_body.py index fbd41c46..f552269d 100644 --- a/revengai/models/list_analysis_functions_output_body.py +++ b/revengai/models/list_analysis_functions_output_body.py @@ -28,7 +28,6 @@ class ListAnalysisFunctionsOutputBody(BaseModel): """ # noqa: E501 functions: Optional[List[AnalysisFunctionEntry]] total_count: StrictInt = Field(description="Total functions in the analysis, ignoring pagination.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["functions", "total_count"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_functions: _items.append(_item_functions.to_dict()) _dict['functions'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if functions (nullable) is None # and model_fields_set contains the field if self.functions is None and "functions" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "functions": [AnalysisFunctionEntry.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None, "total_count": obj.get("total_count") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/list_analysis_strings_output_body.py b/revengai/models/list_analysis_strings_output_body.py index a7de48a8..f0d88fd1 100644 --- a/revengai/models/list_analysis_strings_output_body.py +++ b/revengai/models/list_analysis_strings_output_body.py @@ -28,7 +28,6 @@ class ListAnalysisStringsOutputBody(BaseModel): """ # noqa: E501 strings: Optional[List[AnalysisStringItem]] total_strings: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["strings", "total_strings"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_strings: _items.append(_item_strings.to_dict()) _dict['strings'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if strings (nullable) is None # and model_fields_set contains the field if self.strings is None and "strings" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "strings": [AnalysisStringItem.from_dict(_item) for _item in obj["strings"]] if obj.get("strings") is not None else None, "total_strings": obj.get("total_strings") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/list_collection_results.py b/revengai/models/list_collection_results.py deleted file mode 100644 index c7398de9..00000000 --- a/revengai/models/list_collection_results.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.collection_list_item import CollectionListItem -from typing import Optional, Set -from typing_extensions import Self - -class ListCollectionResults(BaseModel): - """ - ListCollectionResults - """ # noqa: E501 - results: List[CollectionListItem] = Field(description="Page containing the results of the collections search") - __properties: ClassVar[List[str]] = ["results"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListCollectionResults from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item_results in self.results: - if _item_results: - _items.append(_item_results.to_dict()) - _dict['results'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListCollectionResults from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "results": [CollectionListItem.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None - }) - return _obj - - diff --git a/revengai/models/list_collections_output_body.py b/revengai/models/list_collections_output_body.py index 8532bddc..2a031fd3 100644 --- a/revengai/models/list_collections_output_body.py +++ b/revengai/models/list_collections_output_body.py @@ -30,7 +30,6 @@ class ListCollectionsOutputBody(BaseModel): page_number: StrictInt page_size: StrictInt results: Optional[List[CollectionListItemBody]] - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["has_next_page", "page_number", "page_size", "results"] model_config = ConfigDict( @@ -63,10 +62,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -81,11 +78,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_results: _items.append(_item_results.to_dict()) _dict['results'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if results (nullable) is None # and model_fields_set contains the field if self.results is None and "results" in self.model_fields_set: @@ -108,11 +100,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "page_size": obj.get("page_size"), "results": [CollectionListItemBody.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/list_example_analyses_output_body.py b/revengai/models/list_example_analyses_output_body.py index e910dce3..d3410bb3 100644 --- a/revengai/models/list_example_analyses_output_body.py +++ b/revengai/models/list_example_analyses_output_body.py @@ -27,7 +27,6 @@ class ListExampleAnalysesOutputBody(BaseModel): ListExampleAnalysesOutputBody """ # noqa: E501 analyses: Optional[List[Example]] = Field(description="List of example analyses") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["analyses"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -78,11 +75,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_analyses: _items.append(_item_analyses.to_dict()) _dict['analyses'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if analyses (nullable) is None # and model_fields_set contains the field if self.analyses is None and "analyses" in self.model_fields_set: @@ -102,11 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "analyses": [Example.from_dict(_item) for _item in obj["analyses"]] if obj.get("analyses") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/list_function_strings_output_body.py b/revengai/models/list_function_strings_output_body.py index 78b22f56..8267ce4b 100644 --- a/revengai/models/list_function_strings_output_body.py +++ b/revengai/models/list_function_strings_output_body.py @@ -28,7 +28,6 @@ class ListFunctionStringsOutputBody(BaseModel): """ # noqa: E501 strings: Optional[List[FunctionStringItem]] total_strings: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["strings", "total_strings"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_strings: _items.append(_item_strings.to_dict()) _dict['strings'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if strings (nullable) is None # and model_fields_set contains the field if self.strings is None and "strings" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "strings": [FunctionStringItem.from_dict(_item) for _item in obj["strings"]] if obj.get("strings") is not None else None, "total_strings": obj.get("total_strings") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/list_functions_data_types_output_body.py b/revengai/models/list_functions_data_types_output_body.py index 8e5b57e6..46031e1a 100644 --- a/revengai/models/list_functions_data_types_output_body.py +++ b/revengai/models/list_functions_data_types_output_body.py @@ -27,7 +27,6 @@ class ListFunctionsDataTypesOutputBody(BaseModel): ListFunctionsDataTypesOutputBody """ # noqa: E501 items: Optional[List[DataTypesEntry]] - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["items"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -78,11 +75,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_items: _items.append(_item_items.to_dict()) _dict['items'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: @@ -102,11 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "items": [DataTypesEntry.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/list_imported_functions_output_body.py b/revengai/models/list_imported_functions_output_body.py index 9db19893..638a8be4 100644 --- a/revengai/models/list_imported_functions_output_body.py +++ b/revengai/models/list_imported_functions_output_body.py @@ -28,7 +28,6 @@ class ListImportedFunctionsOutputBody(BaseModel): """ # noqa: E501 imported_functions: Optional[List[ImportedFunctionEntry]] total_count: StrictInt = Field(description="Total imported functions for the binary, ignoring pagination.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["imported_functions", "total_count"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_imported_functions: _items.append(_item_imported_functions.to_dict()) _dict['imported_functions'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if imported_functions (nullable) is None # and model_fields_set contains the field if self.imported_functions is None and "imported_functions" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "imported_functions": [ImportedFunctionEntry.from_dict(_item) for _item in obj["imported_functions"]] if obj.get("imported_functions") is not None else None, "total_count": obj.get("total_count") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/logs.py b/revengai/models/logs.py deleted file mode 100644 index d490f254..00000000 --- a/revengai/models/logs.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class Logs(BaseModel): - """ - Logs - """ # noqa: E501 - logs: StrictStr = Field(description="Full logs of an analysis of an analysis_id") - __properties: ClassVar[List[str]] = ["logs"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Logs from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Logs from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "logs": obj.get("logs") - }) - return _obj - - diff --git a/revengai/models/match_filters.py b/revengai/models/match_filters.py index 4ac62989..fdf84ebf 100644 --- a/revengai/models/match_filters.py +++ b/revengai/models/match_filters.py @@ -33,7 +33,6 @@ class MatchFilters(BaseModel): function_ids: Optional[List[StrictInt]] = Field(default=None, description="Restrict the candidate pool to these function IDs.") platform: Optional[StrictStr] = Field(default=None, description="Restrict matches to this platform (multi-platform models only; matches all platforms if omitted). Rejected for single-architecture models.") user_ids: Optional[List[StrictInt]] = Field(default=None, description="Restrict the candidate pool to functions owned by these user IDs.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["arch", "binary_ids", "bits", "collection_ids", "debug_types", "function_ids", "platform", "user_ids"] @field_validator('arch') @@ -86,10 +85,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -97,11 +94,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if binary_ids (nullable) is None # and model_fields_set contains the field if self.binary_ids is None and "binary_ids" in self.model_fields_set: @@ -148,11 +140,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "platform": obj.get("platform"), "user_ids": obj.get("user_ids") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/memdump_entry.py b/revengai/models/memdump_entry.py index 31a2414c..ff82916e 100644 --- a/revengai/models/memdump_entry.py +++ b/revengai/models/memdump_entry.py @@ -37,7 +37,6 @@ class MemdumpEntry(BaseModel): size: StrictInt target_addr: Optional[StrictStr] = None target_process: Optional[StrictInt] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["address", "dump_reason", "file_type", "filename", "index", "is_pe", "method", "mime_type", "sha256", "size", "target_addr", "target_process"] model_config = ConfigDict( @@ -70,10 +69,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -81,11 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -111,11 +103,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "target_addr": obj.get("target_addr"), "target_process": obj.get("target_process") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/meta_model.py b/revengai/models/meta_model.py deleted file mode 100644 index 46a00fb1..00000000 --- a/revengai/models/meta_model.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.pagination_model import PaginationModel -from typing import Optional, Set -from typing_extensions import Self - -class MetaModel(BaseModel): - """ - MetaModel - """ # noqa: E501 - pagination: Optional[PaginationModel] = None - __properties: ClassVar[List[str]] = ["pagination"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MetaModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of pagination - if self.pagination: - _dict['pagination'] = self.pagination.to_dict() - # set to None if pagination (nullable) is None - # and model_fields_set contains the field - if self.pagination is None and "pagination" in self.model_fields_set: - _dict['pagination'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MetaModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "pagination": PaginationModel.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None - }) - return _obj - - diff --git a/revengai/models/mitre_technique.py b/revengai/models/mitre_technique.py deleted file mode 100644 index 7595af3e..00000000 --- a/revengai/models/mitre_technique.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class MITRETechnique(BaseModel): - """ - MITRETechnique - """ # noqa: E501 - start_addr: StrictStr = Field(description="Starting address of the technique") - end_addr: StrictStr = Field(description="Ending address of the technique") - function_addr: StrictStr = Field(description="Function address where the technique is found") - technique_id: StrictStr = Field(description="MITRE technique identifier") - technique_name: StrictStr = Field(description="Name of the MITRE technique") - description: StrictStr = Field(description="Description of the technique") - function_id: StrictInt = Field(description="Unique identifier of the function containing the technique") - function_name: StrictStr = Field(description="Name of the function containing the technique") - technique_url: StrictStr = Field(description="URL to the MITRE ATT&CK technique page") - technique_description: StrictStr = Field(description="Full description of the MITRE technique from ATT&CK") - __properties: ClassVar[List[str]] = ["start_addr", "end_addr", "function_addr", "technique_id", "technique_name", "description", "function_id", "function_name", "technique_url", "technique_description"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MITRETechnique from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MITRETechnique from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "start_addr": obj.get("start_addr"), - "end_addr": obj.get("end_addr"), - "function_addr": obj.get("function_addr"), - "technique_id": obj.get("technique_id"), - "technique_name": obj.get("technique_name"), - "description": obj.get("description"), - "function_id": obj.get("function_id"), - "function_name": obj.get("function_name"), - "technique_url": obj.get("technique_url"), - "technique_description": obj.get("technique_description") - }) - return _obj - - diff --git a/revengai/models/model_name.py b/revengai/models/model_name.py deleted file mode 100644 index cb941d1e..00000000 --- a/revengai/models/model_name.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class ModelName(str, Enum): - """ - Custom enum for the model name - """ - - """ - allowed enum values - """ - BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_64_MINUS_WINDOWS = 'binnet-0.7-x86-64-windows' - BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_64_MINUS_LINUX = 'binnet-0.7-x86-64-linux' - BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_32_MINUS_WINDOWS = 'binnet-0.7-x86-32-windows' - BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_32_MINUS_LINUX = 'binnet-0.7-x86-32-linux' - BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_WINDOWS = 'binnet-0.7-arm-64-windows' - BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_LINUX = 'binnet-0.7-arm-64-linux' - BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_64_MINUS_ANDROID = 'binnet-0.7-x86-64-android' - BINNET_MINUS_0_DOT_7_MINUS_X86_MINUS_32_MINUS_ANDROID = 'binnet-0.7-x86-32-android' - BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_ANDROID = 'binnet-0.7-arm-64-android' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ModelName from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/models_response.py b/revengai/models/models_response.py deleted file mode 100644 index 363ae648..00000000 --- a/revengai/models/models_response.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class ModelsResponse(BaseModel): - """ - ModelsResponse - """ # noqa: E501 - models: List[StrictStr] = Field(description="List of active models available analysis.") - __properties: ClassVar[List[str]] = ["models"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ModelsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ModelsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "models": obj.get("models") - }) - return _obj - - diff --git a/revengai/models/module_load_entry.py b/revengai/models/module_load_entry.py index f36d3d75..008293ad 100644 --- a/revengai/models/module_load_entry.py +++ b/revengai/models/module_load_entry.py @@ -29,7 +29,6 @@ class ModuleLoadEntry(BaseModel): pid: StrictInt process_name: Optional[StrictStr] = None process_seqid: Optional[StrictInt] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["modules", "pid", "process_name", "process_seqid"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -95,11 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "process_name": obj.get("process_name"), "process_seqid": obj.get("process_seqid") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/mutex_entry.py b/revengai/models/mutex_entry.py index dcddb93d..368e614c 100644 --- a/revengai/models/mutex_entry.py +++ b/revengai/models/mutex_entry.py @@ -28,7 +28,6 @@ class MutexEntry(BaseModel): """ # noqa: E501 events: Optional[List[ReportEvent]] = None name: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["events", "name"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_events: _items.append(_item_events.to_dict()) _dict['events'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if events (nullable) is None # and model_fields_set contains the field if self.events is None and "events" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "events": [ReportEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, "name": obj.get("name") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/name_confidence.py b/revengai/models/name_confidence.py index f9779b2a..85db55bc 100644 --- a/revengai/models/name_confidence.py +++ b/revengai/models/name_confidence.py @@ -27,7 +27,6 @@ class NameConfidence(BaseModel): """ # noqa: E501 confidence: Union[StrictFloat, StrictInt] = Field(description="Softmax-normalised confidence for this name") name: StrictStr = Field(description="Candidate name") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["confidence", "name"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -71,11 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -91,11 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "confidence": obj.get("confidence"), "name": obj.get("name") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/name_source_type.py b/revengai/models/name_source_type.py deleted file mode 100644 index 789d1fda..00000000 --- a/revengai/models/name_source_type.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class NameSourceType(BaseModel): - """ - NameSourceType - """ # noqa: E501 - type: StrictStr = Field(description="The source (process) the function name came from") - function_id: Optional[StrictInt] = None - binary_id: Optional[StrictInt] = None - analysis_id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["type", "function_id", "binary_id", "analysis_id"] - - @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', '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( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of NameSourceType from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if function_id (nullable) is None - # and model_fields_set contains the field - if self.function_id is None and "function_id" in self.model_fields_set: - _dict['function_id'] = None - - # set to None if binary_id (nullable) is None - # and model_fields_set contains the field - if self.binary_id is None and "binary_id" in self.model_fields_set: - _dict['binary_id'] = None - - # set to None if analysis_id (nullable) is None - # and model_fields_set contains the field - if self.analysis_id is None and "analysis_id" in self.model_fields_set: - _dict['analysis_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of NameSourceType from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "type": obj.get("type"), - "function_id": obj.get("function_id"), - "binary_id": obj.get("binary_id"), - "analysis_id": obj.get("analysis_id") - }) - return _obj - - diff --git a/revengai/models/network_activity.py b/revengai/models/network_activity.py index adf18f92..a25619dd 100644 --- a/revengai/models/network_activity.py +++ b/revengai/models/network_activity.py @@ -33,7 +33,6 @@ class NetworkActivity(BaseModel): dns_queries: Optional[List[DnsQuery]] = None extracted_urls: Optional[List[ExtractedURL]] = None http_requests: Optional[List[HttpRequest]] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["connections", "dns_queries", "extracted_urls", "http_requests"] model_config = ConfigDict( @@ -66,10 +65,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -105,11 +102,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_http_requests: _items.append(_item_http_requests.to_dict()) _dict['http_requests'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if connections (nullable) is None # and model_fields_set contains the field if self.connections is None and "connections" in self.model_fields_set: @@ -147,11 +139,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "extracted_urls": [ExtractedURL.from_dict(_item) for _item in obj["extracted_urls"]] if obj.get("extracted_urls") is not None else None, "http_requests": [HttpRequest.from_dict(_item) for _item in obj["http_requests"]] if obj.get("http_requests") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/order.py b/revengai/models/order.py deleted file mode 100644 index f68aa615..00000000 --- a/revengai/models/order.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class Order(str, Enum): - """ - Order - """ - - """ - allowed enum values - """ - ASC = 'ASC' - DESC = 'DESC' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Order from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/organisation.py b/revengai/models/organisation.py index 7ffc6e01..36624334 100644 --- a/revengai/models/organisation.py +++ b/revengai/models/organisation.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Organisation(BaseModel): Organisation """ # noqa: E501 created_at: datetime - name: Optional[StrictStr] + name: StrictStr organisation_id: StrictInt updated_at: datetime additional_properties: Dict[str, Any] = {} @@ -79,11 +79,6 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value - # set to None if name (nullable) is None - # and model_fields_set contains the field - if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None - return _dict @classmethod diff --git a/revengai/models/organisation_group.py b/revengai/models/organisation_group.py index 74bb92f8..7539bab2 100644 --- a/revengai/models/organisation_group.py +++ b/revengai/models/organisation_group.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class OrganisationGroup(BaseModel): OrganisationGroup """ # noqa: E501 created_at: datetime - name: Optional[StrictStr] + name: StrictStr organisation_group_id: StrictInt organisation_id: StrictInt team_id: StrictInt @@ -81,11 +81,6 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value - # set to None if name (nullable) is None - # and model_fields_set contains the field - if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None - return _dict @classmethod diff --git a/revengai/models/organisation_issuer.py b/revengai/models/organisation_issuer.py index 5edee4e8..e22f5e0e 100644 --- a/revengai/models/organisation_issuer.py +++ b/revengai/models/organisation_issuer.py @@ -29,7 +29,7 @@ class OrganisationIssuer(BaseModel): client_id: Optional[StrictStr] = Field(default=None, description="OIDC client ID registered with the identity provider. Used to validate the audience (aud) claim in JWTs.") created_at: datetime enabled: StrictBool - issuer_url: Optional[StrictStr] + issuer_url: StrictStr jwks_uri: Optional[StrictStr] = Field(default=None, description="JSON Web Key Set URI discovered from the issuer's OIDC configuration. Populated automatically during issuer registration.") organisation_id: StrictInt organisation_issuer_id: StrictInt @@ -83,11 +83,6 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value - # set to None if issuer_url (nullable) is None - # and model_fields_set contains the field - if self.issuer_url is None and "issuer_url" in self.model_fields_set: - _dict['issuer_url'] = None - return _dict @classmethod diff --git a/revengai/models/pagination_model.py b/revengai/models/pagination_model.py deleted file mode 100644 index 8541bc37..00000000 --- a/revengai/models/pagination_model.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class PaginationModel(BaseModel): - """ - PaginationModel - """ # noqa: E501 - page_size: StrictInt - page_number: StrictInt - has_next_page: StrictBool - __properties: ClassVar[List[str]] = ["page_size", "page_number", "has_next_page"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PaginationModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PaginationModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "page_size": obj.get("page_size"), - "page_number": obj.get("page_number"), - "has_next_page": obj.get("has_next_page") - }) - return _obj - - diff --git a/revengai/models/params.py b/revengai/models/params.py deleted file mode 100644 index 8e41e5f1..00000000 --- a/revengai/models/params.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class Params(BaseModel): - """ - Params - """ # noqa: E501 - debug_hash: Optional[StrictStr] - binary_size: StrictInt = Field(description="The size of the binary data") - architecture: StrictStr = Field(description="The architecture of the binary data") - binary_type: StrictStr = Field(description="The type of binary data") - binary_format: StrictStr = Field(description="The format of the binary data") - binary_dynamic: StrictBool = Field(description="Whether the binary data is dynamic") - model_name: StrictStr = Field(description="The name of the model") - __properties: ClassVar[List[str]] = ["debug_hash", "binary_size", "architecture", "binary_type", "binary_format", "binary_dynamic", "model_name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Params from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if debug_hash (nullable) is None - # and model_fields_set contains the field - if self.debug_hash is None and "debug_hash" in self.model_fields_set: - _dict['debug_hash'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Params from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "debug_hash": obj.get("debug_hash"), - "binary_size": obj.get("binary_size"), - "architecture": obj.get("architecture"), - "binary_type": obj.get("binary_type"), - "binary_format": obj.get("binary_format"), - "binary_dynamic": obj.get("binary_dynamic"), - "model_name": obj.get("model_name") - }) - return _obj - - diff --git a/revengai/models/patch_collection_binaries_input_body.py b/revengai/models/patch_collection_binaries_input_body.py index b6a62d1b..d58acd8f 100644 --- a/revengai/models/patch_collection_binaries_input_body.py +++ b/revengai/models/patch_collection_binaries_input_body.py @@ -26,7 +26,6 @@ class PatchCollectionBinariesInputBody(BaseModel): PatchCollectionBinariesInputBody """ # noqa: E501 binaries: Optional[List[StrictInt]] = Field(description="Binary IDs to set on the collection. The collection's binaries are fully replaced with this list.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["binaries"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if binaries (nullable) is None # and model_fields_set contains the field if self.binaries is None and "binaries" in self.model_fields_set: @@ -94,11 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "binaries": obj.get("binaries") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/patch_collection_binaries_output_body.py b/revengai/models/patch_collection_binaries_output_body.py index 88f492ba..813ebfea 100644 --- a/revengai/models/patch_collection_binaries_output_body.py +++ b/revengai/models/patch_collection_binaries_output_body.py @@ -27,7 +27,6 @@ class PatchCollectionBinariesOutputBody(BaseModel): PatchCollectionBinariesOutputBody """ # noqa: E501 binaries: Optional[List[Binary]] - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["binaries"] model_config = ConfigDict( @@ -60,10 +59,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -78,11 +75,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_binaries: _items.append(_item_binaries.to_dict()) _dict['binaries'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if binaries (nullable) is None # and model_fields_set contains the field if self.binaries is None and "binaries" in self.model_fields_set: @@ -102,11 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "binaries": [Binary.from_dict(_item) for _item in obj["binaries"]] if obj.get("binaries") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/patch_collection_input_body.py b/revengai/models/patch_collection_input_body.py index f8de91d8..ec2d3b94 100644 --- a/revengai/models/patch_collection_input_body.py +++ b/revengai/models/patch_collection_input_body.py @@ -28,7 +28,6 @@ class PatchCollectionInputBody(BaseModel): collection_name: Optional[StrictStr] = Field(default=None, description="New collection name. Omit, null, or empty string to keep existing.") collection_scope: Optional[StrictStr] = Field(default=None, description="New scope (PUBLIC, PRIVATE, PROTECTED, TEAM). Omit or send null to keep existing. Empty string returns 422 UNPROCESSABLE ENTITY.") description: Optional[StrictStr] = Field(default=None, description="New description. Omit, null, or empty string to keep existing.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["collection_name", "collection_scope", "description"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -93,11 +85,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "collection_scope": obj.get("collection_scope"), "description": obj.get("description") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/patch_collection_output_body.py b/revengai/models/patch_collection_output_body.py index 79b15fa6..885cfb38 100644 --- a/revengai/models/patch_collection_output_body.py +++ b/revengai/models/patch_collection_output_body.py @@ -35,7 +35,6 @@ class PatchCollectionOutputBody(BaseModel): team_id: StrictInt updated_at: datetime user_id: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["binary_count", "collection_id", "collection_name", "collection_scope", "created_at", "description", "team_id", "updated_at", "user_id"] model_config = ConfigDict( @@ -68,10 +67,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -106,11 +98,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "updated_at": obj.get("updated_at"), "user_id": obj.get("user_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/patch_collection_tags_input_body.py b/revengai/models/patch_collection_tags_input_body.py index db7f810e..86acf6b3 100644 --- a/revengai/models/patch_collection_tags_input_body.py +++ b/revengai/models/patch_collection_tags_input_body.py @@ -26,7 +26,6 @@ class PatchCollectionTagsInputBody(BaseModel): PatchCollectionTagsInputBody """ # noqa: E501 tags: Optional[List[StrictStr]] = Field(description="Tags to set on the collection. The collection's tags are fully replaced with this list.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["tags"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if tags (nullable) is None # and model_fields_set contains the field if self.tags is None and "tags" in self.model_fields_set: @@ -94,11 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "tags": obj.get("tags") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/patch_collection_tags_output_body.py b/revengai/models/patch_collection_tags_output_body.py index db746573..c1a8be2a 100644 --- a/revengai/models/patch_collection_tags_output_body.py +++ b/revengai/models/patch_collection_tags_output_body.py @@ -26,7 +26,6 @@ class PatchCollectionTagsOutputBody(BaseModel): PatchCollectionTagsOutputBody """ # noqa: E501 tags: Optional[List[StrictStr]] - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["tags"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if tags (nullable) is None # and model_fields_set contains the field if self.tags is None and "tags" in self.model_fields_set: @@ -94,11 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "tags": obj.get("tags") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/patch_comment_body.py b/revengai/models/patch_comment_body.py index 99fd7bec..114207df 100644 --- a/revengai/models/patch_comment_body.py +++ b/revengai/models/patch_comment_body.py @@ -28,7 +28,6 @@ class PatchCommentBody(BaseModel): """ # noqa: E501 comment: Annotated[str, Field(min_length=1, strict=True, max_length=10000)] = Field(description="Comment text") line: Annotated[int, Field(strict=True, ge=1)] = Field(description="Line number to set the comment on") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["comment", "line"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -92,11 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "comment": obj.get("comment"), "line": obj.get("line") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/pcap_body_info.py b/revengai/models/pcap_body_info.py index 1b53455e..bb2442fe 100644 --- a/revengai/models/pcap_body_info.py +++ b/revengai/models/pcap_body_info.py @@ -32,7 +32,6 @@ class PcapBodyInfo(BaseModel): sha256: Optional[StrictStr] = None size: StrictInt yara_hits: Optional[List[StrictStr]] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["filename", "is_pe", "mime_type", "preview", "sha256", "size", "yara_hits"] model_config = ConfigDict( @@ -65,10 +64,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -76,11 +73,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if yara_hits (nullable) is None # and model_fields_set contains the field if self.yara_hits is None and "yara_hits" in self.model_fields_set: @@ -106,11 +98,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "size": obj.get("size"), "yara_hits": obj.get("yara_hits") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/pdb_debug_model.py b/revengai/models/pdb_debug_model.py deleted file mode 100644 index ed4e743c..00000000 --- a/revengai/models/pdb_debug_model.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.single_pdb_entry_model import SinglePDBEntryModel -from typing import Optional, Set -from typing_extensions import Self - -class PDBDebugModel(BaseModel): - """ - PDBDebugModel - """ # noqa: E501 - debug_entries: List[SinglePDBEntryModel] - __properties: ClassVar[List[str]] = ["debug_entries"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PDBDebugModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in debug_entries (list) - _items = [] - if self.debug_entries: - for _item_debug_entries in self.debug_entries: - if _item_debug_entries: - _items.append(_item_debug_entries.to_dict()) - _dict['debug_entries'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PDBDebugModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "debug_entries": [SinglePDBEntryModel.from_dict(_item) for _item in obj["debug_entries"]] if obj.get("debug_entries") is not None else None - }) - return _obj - - diff --git a/revengai/models/pe_model.py b/revengai/models/pe_model.py deleted file mode 100644 index f5dea385..00000000 --- a/revengai/models/pe_model.py +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.code_signature_model import CodeSignatureModel -from revengai.models.entrypoint_model import EntrypointModel -from revengai.models.export_model import ExportModel -from revengai.models.icon_model import IconModel -from revengai.models.import_model import ImportModel -from revengai.models.pdb_debug_model import PDBDebugModel -from revengai.models.section_model import SectionModel -from revengai.models.security_model import SecurityModel -from revengai.models.timestamp_model import TimestampModel -from typing import Optional, Set -from typing_extensions import Self - -class PEModel(BaseModel): - """ - PEModel - """ # noqa: E501 - type: StrictStr - timestamps: Optional[TimestampModel] - architecture: StrictStr - checksum: StrictInt - image_base: StrictInt - security: Optional[SecurityModel] - version_info: Optional[Dict[str, Any]] - debug_info: Optional[PDBDebugModel] - number_of_resources: Optional[StrictInt] - entry_point: Optional[EntrypointModel] - signature: Optional[CodeSignatureModel] - dotnet: StrictBool - debug_stripped: StrictBool - import_hash: StrictStr - export_hash: StrictStr - rich_header_hash: StrictStr - sections: Optional[SectionModel] - imports: Optional[ImportModel] - exports: Optional[ExportModel] - icon_data: Optional[IconModel] - __properties: ClassVar[List[str]] = ["type", "timestamps", "architecture", "checksum", "image_base", "security", "version_info", "debug_info", "number_of_resources", "entry_point", "signature", "dotnet", "debug_stripped", "import_hash", "export_hash", "rich_header_hash", "sections", "imports", "exports", "icon_data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PEModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of timestamps - if self.timestamps: - _dict['timestamps'] = self.timestamps.to_dict() - # override the default output from pydantic by calling `to_dict()` of security - if self.security: - _dict['security'] = self.security.to_dict() - # override the default output from pydantic by calling `to_dict()` of debug_info - if self.debug_info: - _dict['debug_info'] = self.debug_info.to_dict() - # override the default output from pydantic by calling `to_dict()` of entry_point - if self.entry_point: - _dict['entry_point'] = self.entry_point.to_dict() - # override the default output from pydantic by calling `to_dict()` of signature - if self.signature: - _dict['signature'] = self.signature.to_dict() - # override the default output from pydantic by calling `to_dict()` of sections - if self.sections: - _dict['sections'] = self.sections.to_dict() - # override the default output from pydantic by calling `to_dict()` of imports - if self.imports: - _dict['imports'] = self.imports.to_dict() - # override the default output from pydantic by calling `to_dict()` of exports - if self.exports: - _dict['exports'] = self.exports.to_dict() - # override the default output from pydantic by calling `to_dict()` of icon_data - if self.icon_data: - _dict['icon_data'] = self.icon_data.to_dict() - # set to None if timestamps (nullable) is None - # and model_fields_set contains the field - if self.timestamps is None and "timestamps" in self.model_fields_set: - _dict['timestamps'] = None - - # set to None if security (nullable) is None - # and model_fields_set contains the field - if self.security is None and "security" in self.model_fields_set: - _dict['security'] = None - - # set to None if version_info (nullable) is None - # and model_fields_set contains the field - if self.version_info is None and "version_info" in self.model_fields_set: - _dict['version_info'] = None - - # set to None if debug_info (nullable) is None - # and model_fields_set contains the field - if self.debug_info is None and "debug_info" in self.model_fields_set: - _dict['debug_info'] = None - - # set to None if number_of_resources (nullable) is None - # and model_fields_set contains the field - if self.number_of_resources is None and "number_of_resources" in self.model_fields_set: - _dict['number_of_resources'] = None - - # set to None if entry_point (nullable) is None - # and model_fields_set contains the field - if self.entry_point is None and "entry_point" in self.model_fields_set: - _dict['entry_point'] = None - - # set to None if signature (nullable) is None - # and model_fields_set contains the field - if self.signature is None and "signature" in self.model_fields_set: - _dict['signature'] = None - - # set to None if sections (nullable) is None - # and model_fields_set contains the field - if self.sections is None and "sections" in self.model_fields_set: - _dict['sections'] = None - - # set to None if imports (nullable) is None - # and model_fields_set contains the field - if self.imports is None and "imports" in self.model_fields_set: - _dict['imports'] = None - - # set to None if exports (nullable) is None - # and model_fields_set contains the field - if self.exports is None and "exports" in self.model_fields_set: - _dict['exports'] = None - - # set to None if icon_data (nullable) is None - # and model_fields_set contains the field - if self.icon_data is None and "icon_data" in self.model_fields_set: - _dict['icon_data'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PEModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "type": obj.get("type"), - "timestamps": TimestampModel.from_dict(obj["timestamps"]) if obj.get("timestamps") is not None else None, - "architecture": obj.get("architecture"), - "checksum": obj.get("checksum"), - "image_base": obj.get("image_base"), - "security": SecurityModel.from_dict(obj["security"]) if obj.get("security") is not None else None, - "version_info": obj.get("version_info"), - "debug_info": PDBDebugModel.from_dict(obj["debug_info"]) if obj.get("debug_info") is not None else None, - "number_of_resources": obj.get("number_of_resources"), - "entry_point": EntrypointModel.from_dict(obj["entry_point"]) if obj.get("entry_point") is not None else None, - "signature": CodeSignatureModel.from_dict(obj["signature"]) if obj.get("signature") is not None else None, - "dotnet": obj.get("dotnet"), - "debug_stripped": obj.get("debug_stripped"), - "import_hash": obj.get("import_hash"), - "export_hash": obj.get("export_hash"), - "rich_header_hash": obj.get("rich_header_hash"), - "sections": SectionModel.from_dict(obj["sections"]) if obj.get("sections") is not None else None, - "imports": ImportModel.from_dict(obj["imports"]) if obj.get("imports") is not None else None, - "exports": ExportModel.from_dict(obj["exports"]) if obj.get("exports") is not None else None, - "icon_data": IconModel.from_dict(obj["icon_data"]) if obj.get("icon_data") is not None else None - }) - return _obj - - diff --git a/revengai/models/permissions.py b/revengai/models/permissions.py index 9a7df610..6c473f52 100644 --- a/revengai/models/permissions.py +++ b/revengai/models/permissions.py @@ -31,7 +31,6 @@ class Permissions(BaseModel): can_use_composition_analysis: StrictBool can_use_malware_sandbox: StrictBool can_use_private_analyses: StrictBool - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["can_export_symbols", "can_generate_pdf_reports", "can_use_ai_malware_analysis", "can_use_composition_analysis", "can_use_malware_sandbox", "can_use_private_analyses"] model_config = ConfigDict( @@ -64,10 +63,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -75,11 +72,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -99,11 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "can_use_malware_sandbox": obj.get("can_use_malware_sandbox"), "can_use_private_analyses": obj.get("can_use_private_analyses") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/platform.py b/revengai/models/platform.py deleted file mode 100644 index 704c8a08..00000000 --- a/revengai/models/platform.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class Platform(str, Enum): - """ - Platform - """ - - """ - allowed enum values - """ - LINUX = 'linux' - WINDOWS = 'windows' - ANDROID = 'android' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Platform from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/price_output.py b/revengai/models/price_output.py index d8d00be1..b616854a 100644 --- a/revengai/models/price_output.py +++ b/revengai/models/price_output.py @@ -29,7 +29,6 @@ class PriceOutput(BaseModel): id: StrictStr = Field(description="Price ID.") interval: StrictStr = Field(description="Billing interval at which the price recurs.") unit_amount: StrictInt = Field(description="Price per billing interval, expressed in the smallest unit of the currency (e.g. cents for USD, pence for GBP).") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["currency", "id", "interval", "unit_amount"] @field_validator('interval') @@ -69,10 +68,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -80,11 +77,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -102,11 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "interval": obj.get("interval"), "unit_amount": obj.get("unit_amount") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/price_summary.py b/revengai/models/price_summary.py index 3f477f56..d41ebfe5 100644 --- a/revengai/models/price_summary.py +++ b/revengai/models/price_summary.py @@ -28,7 +28,6 @@ class PriceSummary(BaseModel): currency: StrictStr = Field(description="Lowercase ISO 4217 currency code.") interval: StrictStr = Field(description="Billing interval at which the price recurs.") unit_amount: StrictInt = Field(description="Price per billing interval, in the smallest unit of the currency.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["currency", "interval", "unit_amount"] @field_validator('interval') @@ -68,10 +67,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "interval": obj.get("interval"), "unit_amount": obj.get("unit_amount") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/process_activity_entry.py b/revengai/models/process_activity_entry.py index 975d1793..f11375a3 100644 --- a/revengai/models/process_activity_entry.py +++ b/revengai/models/process_activity_entry.py @@ -33,7 +33,6 @@ class ProcessActivityEntry(BaseModel): exit_code_str: Optional[StrictStr] = None name: StrictStr pid: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["args", "child_seqid", "events", "exit_code", "exit_code_str", "name", "pid"] model_config = ConfigDict( @@ -66,10 +65,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -84,11 +81,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_events: _items.append(_item_events.to_dict()) _dict['events'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if args (nullable) is None # and model_fields_set contains the field if self.args is None and "args" in self.model_fields_set: @@ -119,11 +111,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "pid": obj.get("pid") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/process_memdumps.py b/revengai/models/process_memdumps.py index b6134658..7934a9b9 100644 --- a/revengai/models/process_memdumps.py +++ b/revengai/models/process_memdumps.py @@ -28,7 +28,6 @@ class ProcessMemdumps(BaseModel): """ # noqa: E501 dumps: Optional[List[MemdumpEntry]] = None process_seqid: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["dumps", "process_seqid"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_dumps: _items.append(_item_dumps.to_dict()) _dict['dumps'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if dumps (nullable) is None # and model_fields_set contains the field if self.dumps is None and "dumps" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "dumps": [MemdumpEntry.from_dict(_item) for _item in obj["dumps"]] if obj.get("dumps") is not None else None, "process_seqid": obj.get("process_seqid") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/process_node.py b/revengai/models/process_node.py index d17abef1..cf4b41e0 100644 --- a/revengai/models/process_node.py +++ b/revengai/models/process_node.py @@ -36,7 +36,6 @@ class ProcessNode(BaseModel): pid: StrictInt seqid: StrictInt started_at: Optional[Union[StrictFloat, StrictInt]] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["args", "attributed", "children", "exit_code", "exit_code_str", "exited_at", "killed_by", "name", "pid", "seqid", "started_at"] model_config = ConfigDict( @@ -69,10 +68,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -87,11 +84,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_children: _items.append(_item_children.to_dict()) _dict['children'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if args (nullable) is None # and model_fields_set contains the field if self.args is None and "args" in self.model_fields_set: @@ -126,11 +118,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "seqid": obj.get("seqid"), "started_at": obj.get("started_at") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj # TODO: Rewrite to not use raise_errors diff --git a/revengai/models/process_tree.py b/revengai/models/process_tree.py index 67304311..a0c0344f 100644 --- a/revengai/models/process_tree.py +++ b/revengai/models/process_tree.py @@ -28,7 +28,6 @@ class ProcessTree(BaseModel): """ # noqa: E501 nodes: Optional[List[ProcessNode]] = None sample_seqid: Optional[StrictInt] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["nodes", "sample_seqid"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_nodes: _items.append(_item_nodes.to_dict()) _dict['nodes'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if nodes (nullable) is None # and model_fields_set contains the field if self.nodes is None and "nodes" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "nodes": [ProcessNode.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None, "sample_seqid": obj.get("sample_seqid") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/product_output.py b/revengai/models/product_output.py index 52bba1ad..c1cd37ad 100644 --- a/revengai/models/product_output.py +++ b/revengai/models/product_output.py @@ -33,7 +33,6 @@ class ProductOutput(BaseModel): name: StrictStr = Field(description="Human-readable product name.") prices: Optional[List[PriceOutput]] = Field(description="All active recurring prices for this product.") tier: Optional[StrictStr] = Field(default=None, description="User tier associated with this product, if any.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["credits_per_month", "description", "features", "id", "name", "prices", "tier"] model_config = ConfigDict( @@ -66,10 +65,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -84,11 +81,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_prices: _items.append(_item_prices.to_dict()) _dict['prices'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if features (nullable) is None # and model_fields_set contains the field if self.features is None and "features" in self.model_fields_set: @@ -119,11 +111,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "prices": [PriceOutput.from_dict(_item) for _item in obj["prices"]] if obj.get("prices") is not None else None, "tier": obj.get("tier") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/product_summary.py b/revengai/models/product_summary.py index 30b14b3c..87b1353d 100644 --- a/revengai/models/product_summary.py +++ b/revengai/models/product_summary.py @@ -26,7 +26,6 @@ class ProductSummary(BaseModel): ProductSummary """ # noqa: E501 name: StrictStr = Field(description="Product name.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -89,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/progress_message.py b/revengai/models/progress_message.py index ba5b8f2b..cd9c3a51 100644 --- a/revengai/models/progress_message.py +++ b/revengai/models/progress_message.py @@ -30,7 +30,6 @@ class ProgressMessage(BaseModel): step: StrictStr = Field(description="Step name when the message was emitted") text: StrictStr = Field(description="Message text") timestamp: datetime = Field(description="When the message was emitted") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["level", "step", "text", "timestamp"] @field_validator('level') @@ -70,10 +69,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -81,11 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -103,11 +95,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "text": obj.get("text"), "timestamp": obj.get("timestamp") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/prose_event.py b/revengai/models/prose_event.py index 7a4f3e2d..035bc534 100644 --- a/revengai/models/prose_event.py +++ b/revengai/models/prose_event.py @@ -29,7 +29,6 @@ class ProseEvent(BaseModel): seq: StrictInt text: StrictStr type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["attempt", "seq", "text", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -95,11 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "text": obj.get("text"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/put_analysis_strings_request.py b/revengai/models/put_analysis_strings_request.py deleted file mode 100644 index 5fa3072a..00000000 --- a/revengai/models/put_analysis_strings_request.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.analysis_string_input import AnalysisStringInput -from typing import Optional, Set -from typing_extensions import Self - -class PutAnalysisStringsRequest(BaseModel): - """ - PutAnalysisStringsRequest - """ # noqa: E501 - strings: List[AnalysisStringInput] = Field(description="The strings to add to the analysis") - __properties: ClassVar[List[str]] = ["strings"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PutAnalysisStringsRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in strings (list) - _items = [] - if self.strings: - for _item_strings in self.strings: - if _item_strings: - _items.append(_item_strings.to_dict()) - _dict['strings'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PutAnalysisStringsRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "strings": [AnalysisStringInput.from_dict(_item) for _item in obj["strings"]] if obj.get("strings") is not None else None - }) - return _obj - - diff --git a/revengai/models/queued_workflow_task_response.py b/revengai/models/queued_workflow_task_response.py deleted file mode 100644 index c6091423..00000000 --- a/revengai/models/queued_workflow_task_response.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class QueuedWorkflowTaskResponse(BaseModel): - """ - QueuedWorkflowTaskResponse - """ # noqa: E501 - task_id: StrictStr - __properties: ClassVar[List[str]] = ["task_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueuedWorkflowTaskResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueuedWorkflowTaskResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "task_id": obj.get("task_id") - }) - return _obj - - diff --git a/revengai/models/re_analysis_form.py b/revengai/models/re_analysis_form.py deleted file mode 100644 index 39f53b6f..00000000 --- a/revengai/models/re_analysis_form.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ReAnalysisForm(BaseModel): - """ - Form Model for receiving the analysis request - """ # noqa: E501 - tags: Optional[List[StrictStr]] = Field(default=None, description="Tags associated with the analysis") - command_line_args: Optional[StrictStr] = Field(default='', description="Command line arguments for dynamic execution") - priority: Optional[StrictInt] = Field(default=0, description="Priority of the analysis") - essential: Optional[StrictBool] = Field(default=True, description="Only runs essential parts of the analysis, skips tags/sbom/cves etc.") - model_name: Optional[StrictStr] = None - no_cache: Optional[StrictBool] = Field(default=False, description="When enabled, skips using cached data within the processing.") - __properties: ClassVar[List[str]] = ["tags", "command_line_args", "priority", "essential", "model_name", "no_cache"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReAnalysisForm from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if model_name (nullable) is None - # and model_fields_set contains the field - if self.model_name is None and "model_name" in self.model_fields_set: - _dict['model_name'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReAnalysisForm from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tags": obj.get("tags"), - "command_line_args": obj.get("command_line_args") if obj.get("command_line_args") is not None else '', - "priority": obj.get("priority") if obj.get("priority") is not None else 0, - "essential": obj.get("essential") if obj.get("essential") is not None else True, - "model_name": obj.get("model_name"), - "no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False - }) - return _obj - - diff --git a/revengai/models/recent.py b/revengai/models/recent.py deleted file mode 100644 index b442aeb6..00000000 --- a/revengai/models/recent.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.analysis_record import AnalysisRecord -from typing import Optional, Set -from typing_extensions import Self - -class Recent(BaseModel): - """ - Recent - """ # noqa: E501 - results: List[AnalysisRecord] = Field(description="2D List containing the results of the analysis") - __properties: ClassVar[List[str]] = ["results"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Recent from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item_results in self.results: - if _item_results: - _items.append(_item_results.to_dict()) - _dict['results'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Recent from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "results": [AnalysisRecord.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None - }) - return _obj - - diff --git a/revengai/models/regenerate_output_body.py b/revengai/models/regenerate_output_body.py index b44c6e03..472dfc21 100644 --- a/revengai/models/regenerate_output_body.py +++ b/revengai/models/regenerate_output_body.py @@ -26,7 +26,6 @@ class RegenerateOutputBody(BaseModel): RegenerateOutputBody """ # noqa: E501 status: StrictBool - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["status"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -89,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "status": obj.get("status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/registry_operation.py b/revengai/models/registry_operation.py index 198051d4..a87c914f 100644 --- a/revengai/models/registry_operation.py +++ b/revengai/models/registry_operation.py @@ -28,7 +28,6 @@ class RegistryOperation(BaseModel): """ # noqa: E501 events: Optional[List[ReportEvent]] = None key: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["events", "key"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_events: _items.append(_item_events.to_dict()) _dict['events'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if events (nullable) is None # and model_fields_set contains the field if self.events is None and "events" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "events": [ReportEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, "key": obj.get("key") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/relative_binary_response.py b/revengai/models/relative_binary_response.py deleted file mode 100644 index 5e07eaf3..00000000 --- a/revengai/models/relative_binary_response.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class RelativeBinaryResponse(BaseModel): - """ - RelativeBinaryResponse - """ # noqa: E501 - binary_id: StrictInt = Field(description="ID of the relative binary") - analysis_id: Optional[StrictInt] = None - name: StrictStr = Field(description="Name of the relative binary") - sha256: StrictStr = Field(description="SHA256 hash of the relative binary") - __properties: ClassVar[List[str]] = ["binary_id", "analysis_id", "name", "sha256"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RelativeBinaryResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if analysis_id (nullable) is None - # and model_fields_set contains the field - if self.analysis_id is None and "analysis_id" in self.model_fields_set: - _dict['analysis_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RelativeBinaryResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "binary_id": obj.get("binary_id"), - "analysis_id": obj.get("analysis_id"), - "name": obj.get("name"), - "sha256": obj.get("sha256") - }) - return _obj - - diff --git a/revengai/models/rename_applied_event.py b/revengai/models/rename_applied_event.py index 1b0af624..a6942821 100644 --- a/revengai/models/rename_applied_event.py +++ b/revengai/models/rename_applied_event.py @@ -31,7 +31,6 @@ class RenameAppliedEvent(BaseModel): old_name: StrictStr seq: StrictInt type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["addr_hex", "attempt", "new_name", "old_name", "seq", "type"] model_config = ConfigDict( @@ -64,10 +63,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -75,11 +72,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -99,11 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "seq": obj.get("seq"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/rename_input_body.py b/revengai/models/rename_input_body.py index 0beff04a..70453d37 100644 --- a/revengai/models/rename_input_body.py +++ b/revengai/models/rename_input_body.py @@ -29,7 +29,6 @@ class RenameInputBody(BaseModel): new_mangled_name: Optional[Annotated[str, Field(strict=True, max_length=2048)]] = Field(default=None, description="New mangled function name") new_name: Annotated[str, Field(min_length=1, strict=True, max_length=2048)] = Field(description="New function name") preserve_ai_decompilation: Optional[StrictBool] = Field(default=None, description="Keep the cached AI decompilation, summary and inline comments. Set when the new name comes from the model's own prediction (e.g. Transfer Name) so existing AI output is not discarded and regenerated.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["new_mangled_name", "new_name", "preserve_ai_decompilation"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -94,11 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "new_name": obj.get("new_name"), "preserve_ai_decompilation": obj.get("preserve_ai_decompilation") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/rename_output_body.py b/revengai/models/rename_output_body.py index d0e91398..84957db6 100644 --- a/revengai/models/rename_output_body.py +++ b/revengai/models/rename_output_body.py @@ -26,7 +26,6 @@ class RenameOutputBody(BaseModel): RenameOutputBody """ # noqa: E501 renamed_count: StrictInt = Field(description="Number of functions renamed") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["renamed_count"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -89,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "renamed_count": obj.get("renamed_count") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/replacement_value.py b/revengai/models/replacement_value.py index 6d2fc024..f0e52015 100644 --- a/revengai/models/replacement_value.py +++ b/revengai/models/replacement_value.py @@ -26,7 +26,6 @@ class ReplacementValue(BaseModel): ReplacementValue """ # noqa: E501 value: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["value"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -89,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "value": obj.get("value") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/report_analysis_response.py b/revengai/models/report_analysis_response.py deleted file mode 100644 index 26366dbf..00000000 --- a/revengai/models/report_analysis_response.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List -from revengai.models.ioc import IOC -from revengai.models.mitre_technique import MITRETechnique -from typing import Optional, Set -from typing_extensions import Self - -class ReportAnalysisResponse(BaseModel): - """ - ReportAnalysisResponse - """ # noqa: E501 - summary: StrictStr = Field(description="A markdown summary of the report") - software_type: StrictStr = Field(description="The type of software being analyzed") - total_number_of_functions: StrictInt = Field(description="The total number of functions identified in the binary") - number_of_analysed_functions: StrictInt = Field(description="The number of functions that were analyzed in the binary") - attack_flow_summary: StrictStr = Field(description="A summary in markdown format of the attack flow") - iocs: List[IOC] = Field(description="A list of IOCs (Indicators of Compromise) found in the analysis", alias="IOCs") - executable_techniques: List[MITRETechnique] = Field(description="A series of MITRE Techniques found") - yara_rule: StrictStr = Field(description="The YARA rule generated for the binary") - __properties: ClassVar[List[str]] = ["summary", "software_type", "total_number_of_functions", "number_of_analysed_functions", "attack_flow_summary", "IOCs", "executable_techniques", "yara_rule"] - - @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', '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( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ReportAnalysisResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in iocs (list) - _items = [] - if self.iocs: - for _item_iocs in self.iocs: - if _item_iocs: - _items.append(_item_iocs.to_dict()) - _dict['IOCs'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in executable_techniques (list) - _items = [] - if self.executable_techniques: - for _item_executable_techniques in self.executable_techniques: - if _item_executable_techniques: - _items.append(_item_executable_techniques.to_dict()) - _dict['executable_techniques'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ReportAnalysisResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "summary": obj.get("summary"), - "software_type": obj.get("software_type"), - "total_number_of_functions": obj.get("total_number_of_functions"), - "number_of_analysed_functions": obj.get("number_of_analysed_functions"), - "attack_flow_summary": obj.get("attack_flow_summary"), - "IOCs": [IOC.from_dict(_item) for _item in obj["IOCs"]] if obj.get("IOCs") is not None else None, - "executable_techniques": [MITRETechnique.from_dict(_item) for _item in obj["executable_techniques"]] if obj.get("executable_techniques") is not None else None, - "yara_rule": obj.get("yara_rule") - }) - return _obj - - diff --git a/revengai/models/report_event.py b/revengai/models/report_event.py index ef2613e8..b97f83b4 100644 --- a/revengai/models/report_event.py +++ b/revengai/models/report_event.py @@ -34,7 +34,6 @@ class ReportEvent(BaseModel): type: StrictStr value: Optional[StrictStr] = None value_name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["api_calls", "count", "desired_access", "process_seqid", "total_bytes", "type", "value", "value_name"] model_config = ConfigDict( @@ -67,10 +66,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -85,11 +82,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_api_calls: _items.append(_item_api_calls.to_dict()) _dict['api_calls'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if api_calls (nullable) is None # and model_fields_set contains the field if self.api_calls is None and "api_calls" in self.model_fields_set: @@ -121,11 +113,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "value": obj.get("value"), "value_name": obj.get("value_name") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/report_info.py b/revengai/models/report_info.py index 50a75147..b52d57f8 100644 --- a/revengai/models/report_info.py +++ b/revengai/models/report_info.py @@ -35,7 +35,6 @@ class ReportInfo(BaseModel): time_analysis_finished: Optional[StrictStr] = None time_execution_started: Optional[StrictStr] = None time_started: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["file", "id", "options", "os_profile", "status", "time_analysis_finished", "time_execution_started", "time_started"] model_config = ConfigDict( @@ -68,10 +67,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -85,11 +82,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of options if self.options: _dict['options'] = self.options.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -111,11 +103,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "time_execution_started": obj.get("time_execution_started"), "time_started": obj.get("time_started") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/report_options.py b/revengai/models/report_options.py index bdcb0d0a..279f6d2a 100644 --- a/revengai/models/report_options.py +++ b/revengai/models/report_options.py @@ -37,7 +37,6 @@ class ReportOptions(BaseModel): start_command: Optional[StrictStr] = None start_method: Optional[StrictStr] = None timeout: Optional[StrictInt] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["archive_entry_path", "extract_archive", "guest_target_directory", "guest_working_directory", "net_enable", "os_profile", "plugins", "preset", "sample_filename", "start_command", "start_method", "timeout"] model_config = ConfigDict( @@ -70,10 +69,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -81,11 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if plugins (nullable) is None # and model_fields_set contains the field if self.plugins is None and "plugins" in self.model_fields_set: @@ -116,11 +108,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "start_method": obj.get("start_method"), "timeout": obj.get("timeout") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sandbox_options.py b/revengai/models/sandbox_options.py deleted file mode 100644 index 343a4dc6..00000000 --- a/revengai/models/sandbox_options.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.sandbox_start_method import SandboxStartMethod -from revengai.models.sandbox_timeout import SandboxTimeout -from typing import Optional, Set -from typing_extensions import Self - -class SandboxOptions(BaseModel): - """ - SandboxOptions - """ # noqa: E501 - enabled: Optional[StrictBool] = False - command_line_args: Optional[StrictStr] = Field(default='', description="The command line parameters to pass to the dynamic execution sandbox. Requires `sandbox` to be True.") - start_method: Optional[SandboxStartMethod] = None - timeout: Optional[SandboxTimeout] = Field(default=None, description="Maximum execution time for the sandbox run, in seconds. Allowed values: 120 (2m), 180 (3m), 300 (5m), 600 (10m).") - archive_sha_256_hash: Optional[StrictStr] = None - archive_entry_path: Optional[StrictStr] = None - archive_password: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["enabled", "command_line_args", "start_method", "timeout", "archive_sha_256_hash", "archive_entry_path", "archive_password"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SandboxOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if start_method (nullable) is None - # and model_fields_set contains the field - if self.start_method is None and "start_method" in self.model_fields_set: - _dict['start_method'] = None - - # set to None if archive_sha_256_hash (nullable) is None - # and model_fields_set contains the field - if self.archive_sha_256_hash is None and "archive_sha_256_hash" in self.model_fields_set: - _dict['archive_sha_256_hash'] = None - - # set to None if archive_entry_path (nullable) is None - # and model_fields_set contains the field - if self.archive_entry_path is None and "archive_entry_path" in self.model_fields_set: - _dict['archive_entry_path'] = None - - # set to None if archive_password (nullable) is None - # and model_fields_set contains the field - if self.archive_password is None and "archive_password" in self.model_fields_set: - _dict['archive_password'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SandboxOptions from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "enabled": obj.get("enabled") if obj.get("enabled") is not None else False, - "command_line_args": obj.get("command_line_args") if obj.get("command_line_args") is not None else '', - "start_method": obj.get("start_method"), - "timeout": obj.get("timeout"), - "archive_sha_256_hash": obj.get("archive_sha_256_hash"), - "archive_entry_path": obj.get("archive_entry_path"), - "archive_password": obj.get("archive_password") - }) - return _obj - - diff --git a/revengai/models/sandbox_start_method.py b/revengai/models/sandbox_start_method.py deleted file mode 100644 index d35b88cb..00000000 --- a/revengai/models/sandbox_start_method.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class SandboxStartMethod(str, Enum): - """ - SandboxStartMethod - """ - - """ - allowed enum values - """ - STANDARD_USER_PROCESS = 'standard_user_process' - ADMINISTRATOR_PROCESS = 'administrator_process' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SandboxStartMethod from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/sandbox_timeout.py b/revengai/models/sandbox_timeout.py deleted file mode 100644 index d3d3301d..00000000 --- a/revengai/models/sandbox_timeout.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class SandboxTimeout(int, Enum): - """ - SandboxTimeout - """ - - """ - allowed enum values - """ - NUMBER_120 = 120 - NUMBER_180 = 180 - NUMBER_300 = 300 - NUMBER_600 = 600 - NUMBER_11184809 = 11184809 - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SandboxTimeout from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/sbom.py b/revengai/models/sbom.py deleted file mode 100644 index 2b12c608..00000000 --- a/revengai/models/sbom.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from revengai.models.sbom_package import SBOMPackage -from typing import Optional, Set -from typing_extensions import Self - -class SBOM(BaseModel): - """ - SBOM - """ # noqa: E501 - packages: List[SBOMPackage] = Field(description="The packages found") - imported_libs: List[StrictStr] = Field(description="The import libraries found") - __properties: ClassVar[List[str]] = ["packages", "imported_libs"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SBOM from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in packages (list) - _items = [] - if self.packages: - for _item_packages in self.packages: - if _item_packages: - _items.append(_item_packages.to_dict()) - _dict['packages'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SBOM from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "packages": [SBOMPackage.from_dict(_item) for _item in obj["packages"]] if obj.get("packages") is not None else None, - "imported_libs": obj.get("imported_libs") - }) - return _obj - - diff --git a/revengai/models/sbom_package.py b/revengai/models/sbom_package.py deleted file mode 100644 index 0cb8a8aa..00000000 --- a/revengai/models/sbom_package.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class SBOMPackage(BaseModel): - """ - SBOMPackage - """ # noqa: E501 - name: StrictStr = Field(description="The name of the package") - version: StrictStr = Field(description="The version of the package") - __properties: ClassVar[List[str]] = ["name", "version"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SBOMPackage from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SBOMPackage from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "version": obj.get("version") - }) - return _obj - - diff --git a/revengai/models/scheduled_task_entry.py b/revengai/models/scheduled_task_entry.py index 6bec481d..8d973abb 100644 --- a/revengai/models/scheduled_task_entry.py +++ b/revengai/models/scheduled_task_entry.py @@ -37,7 +37,6 @@ class ScheduledTaskEntry(BaseModel): start_date: Optional[StrictStr] = None start_time: Optional[StrictStr] = None task_name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["command", "day", "end_date", "events", "executable", "modifier", "run_as", "schedule_type", "start_date", "start_time", "task_name"] model_config = ConfigDict( @@ -70,10 +69,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -88,11 +85,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_events: _items.append(_item_events.to_dict()) _dict['events'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if events (nullable) is None # and model_fields_set contains the field if self.events is None and "events" in self.model_fields_set: @@ -122,11 +114,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "start_time": obj.get("start_time"), "task_name": obj.get("task_name") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/scrape_third_party_config.py b/revengai/models/scrape_third_party_config.py deleted file mode 100644 index fd083637..00000000 --- a/revengai/models/scrape_third_party_config.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ScrapeThirdPartyConfig(BaseModel): - """ - ScrapeThirdPartyConfig - """ # noqa: E501 - enabled: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["enabled"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ScrapeThirdPartyConfig from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ScrapeThirdPartyConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "enabled": obj.get("enabled") if obj.get("enabled") is not None else False - }) - return _obj - - diff --git a/revengai/models/section_model.py b/revengai/models/section_model.py deleted file mode 100644 index fa2632f6..00000000 --- a/revengai/models/section_model.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List -from revengai.models.single_section_model import SingleSectionModel -from typing import Optional, Set -from typing_extensions import Self - -class SectionModel(BaseModel): - """ - SectionModel - """ # noqa: E501 - number_of_sections: StrictInt - sections: List[SingleSectionModel] - __properties: ClassVar[List[str]] = ["number_of_sections", "sections"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SectionModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in sections (list) - _items = [] - if self.sections: - for _item_sections in self.sections: - if _item_sections: - _items.append(_item_sections.to_dict()) - _dict['sections'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SectionModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "number_of_sections": obj.get("number_of_sections"), - "sections": [SingleSectionModel.from_dict(_item) for _item in obj["sections"]] if obj.get("sections") is not None else None - }) - return _obj - - diff --git a/revengai/models/security_model.py b/revengai/models/security_model.py deleted file mode 100644 index 8860f09e..00000000 --- a/revengai/models/security_model.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class SecurityModel(BaseModel): - """ - SecurityModel - """ # noqa: E501 - aslr: StrictBool - dep: StrictBool - cfg: StrictBool - driver_model: StrictBool - app_container: StrictBool - terminal_server_aware: StrictBool - image_isolation: StrictBool - code_integrity: StrictBool - high_entropy: StrictBool - seh: StrictBool - bound_image: StrictBool - __properties: ClassVar[List[str]] = ["aslr", "dep", "cfg", "driver_model", "app_container", "terminal_server_aware", "image_isolation", "code_integrity", "high_entropy", "seh", "bound_image"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SecurityModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SecurityModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "aslr": obj.get("aslr"), - "dep": obj.get("dep"), - "cfg": obj.get("cfg"), - "driver_model": obj.get("driver_model"), - "app_container": obj.get("app_container"), - "terminal_server_aware": obj.get("terminal_server_aware"), - "image_isolation": obj.get("image_isolation"), - "code_integrity": obj.get("code_integrity"), - "high_entropy": obj.get("high_entropy"), - "seh": obj.get("seh"), - "bound_image": obj.get("bound_image") - }) - return _obj - - diff --git a/revengai/models/segment_info.py b/revengai/models/segment_info.py deleted file mode 100644 index 89aaeefa..00000000 --- a/revengai/models/segment_info.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SegmentInfo(BaseModel): - """ - Represents the information about a segment. Attributes: name: The name of the segment. r: Determines if the segment has read permission. w: Determines if the segment has write permission. x: Determines if the segment has execute permission. start: The start address of the segment. end: The end address of the segment. - """ # noqa: E501 - name: Optional[StrictStr] = '' - r: Optional[StrictBool] = None - w: Optional[StrictBool] = None - x: Optional[StrictBool] = None - start: Optional[StrictInt] = 0 - end: Optional[StrictInt] = 0 - __properties: ClassVar[List[str]] = ["name", "r", "w", "x", "start", "end"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SegmentInfo from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if r (nullable) is None - # and model_fields_set contains the field - if self.r is None and "r" in self.model_fields_set: - _dict['r'] = None - - # set to None if w (nullable) is None - # and model_fields_set contains the field - if self.w is None and "w" in self.model_fields_set: - _dict['w'] = None - - # set to None if x (nullable) is None - # and model_fields_set contains the field - if self.x is None and "x" in self.model_fields_set: - _dict['x'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SegmentInfo from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name") if obj.get("name") is not None else '', - "r": obj.get("r"), - "w": obj.get("w"), - "x": obj.get("x"), - "start": obj.get("start") if obj.get("start") is not None else 0, - "end": obj.get("end") if obj.get("end") is not None else 0 - }) - return _obj - - diff --git a/revengai/models/send_message_request.py b/revengai/models/send_message_request.py index fada5d62..a529f94a 100644 --- a/revengai/models/send_message_request.py +++ b/revengai/models/send_message_request.py @@ -28,7 +28,6 @@ class SendMessageRequest(BaseModel): """ # noqa: E501 content: StrictStr context: Optional[ConversationContext] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["content", "context"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -75,11 +72,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of context if self.context: _dict['context'] = self.context.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -95,11 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "content": obj.get("content"), "context": ConversationContext.from_dict(obj["context"]) if obj.get("context") is not None else None }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/service_entry.py b/revengai/models/service_entry.py index 3c3e7754..b334412b 100644 --- a/revengai/models/service_entry.py +++ b/revengai/models/service_entry.py @@ -32,7 +32,6 @@ class ServiceEntry(BaseModel): name: Optional[StrictStr] = None service_type: Optional[StrictStr] = None start_type: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["binary_path", "display_name", "events", "name", "service_type", "start_type"] model_config = ConfigDict( @@ -65,10 +64,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -83,11 +80,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_events: _items.append(_item_events.to_dict()) _dict['events'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if events (nullable) is None # and model_fields_set contains the field if self.events is None and "events" in self.model_fields_set: @@ -112,11 +104,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "service_type": obj.get("service_type"), "start_type": obj.get("start_type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/single_code_certificate_model.py b/revengai/models/single_code_certificate_model.py deleted file mode 100644 index beb07591..00000000 --- a/revengai/models/single_code_certificate_model.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class SingleCodeCertificateModel(BaseModel): - """ - SingleCodeCertificateModel - """ # noqa: E501 - version: StrictInt - issued_on: StrictStr - expires_on: StrictStr - issuer_name: StrictStr - serial_number: StrictStr - subject_name: StrictStr - __properties: ClassVar[List[str]] = ["version", "issued_on", "expires_on", "issuer_name", "serial_number", "subject_name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SingleCodeCertificateModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SingleCodeCertificateModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "version": obj.get("version"), - "issued_on": obj.get("issued_on"), - "expires_on": obj.get("expires_on"), - "issuer_name": obj.get("issuer_name"), - "serial_number": obj.get("serial_number"), - "subject_name": obj.get("subject_name") - }) - return _obj - - diff --git a/revengai/models/single_code_signature_model.py b/revengai/models/single_code_signature_model.py deleted file mode 100644 index f9517f63..00000000 --- a/revengai/models/single_code_signature_model.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from revengai.models.single_code_certificate_model import SingleCodeCertificateModel -from typing import Optional, Set -from typing_extensions import Self - -class SingleCodeSignatureModel(BaseModel): - """ - SingleCodeSignatureModel - """ # noqa: E501 - certificates: List[SingleCodeCertificateModel] - authenticode_digest: StrictStr - __properties: ClassVar[List[str]] = ["certificates", "authenticode_digest"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SingleCodeSignatureModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in certificates (list) - _items = [] - if self.certificates: - for _item_certificates in self.certificates: - if _item_certificates: - _items.append(_item_certificates.to_dict()) - _dict['certificates'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SingleCodeSignatureModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "certificates": [SingleCodeCertificateModel.from_dict(_item) for _item in obj["certificates"]] if obj.get("certificates") is not None else None, - "authenticode_digest": obj.get("authenticode_digest") - }) - return _obj - - diff --git a/revengai/models/single_pdb_entry_model.py b/revengai/models/single_pdb_entry_model.py deleted file mode 100644 index 6c7362fe..00000000 --- a/revengai/models/single_pdb_entry_model.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class SinglePDBEntryModel(BaseModel): - """ - SinglePDBEntryModel - """ # noqa: E501 - guid: StrictStr - age: StrictInt - path: StrictStr - __properties: ClassVar[List[str]] = ["guid", "age", "path"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SinglePDBEntryModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SinglePDBEntryModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "guid": obj.get("guid"), - "age": obj.get("age"), - "path": obj.get("path") - }) - return _obj - - diff --git a/revengai/models/single_section_model.py b/revengai/models/single_section_model.py deleted file mode 100644 index 9216d312..00000000 --- a/revengai/models/single_section_model.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Union -from typing import Optional, Set -from typing_extensions import Self - -class SingleSectionModel(BaseModel): - """ - SingleSectionModel - """ # noqa: E501 - name: StrictStr - virtual_address: StrictInt - virtual_size: StrictInt - characteristics: StrictStr - raw_size: StrictInt - entropy: Union[StrictFloat, StrictInt] - sha3_256: StrictStr - __properties: ClassVar[List[str]] = ["name", "virtual_address", "virtual_size", "characteristics", "raw_size", "entropy", "sha3_256"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SingleSectionModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SingleSectionModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "virtual_address": obj.get("virtual_address"), - "virtual_size": obj.get("virtual_size"), - "characteristics": obj.get("characteristics"), - "raw_size": obj.get("raw_size"), - "entropy": obj.get("entropy"), - "sha3_256": obj.get("sha3_256") - }) - return _obj - - diff --git a/revengai/models/source_delta_event.py b/revengai/models/source_delta_event.py index b8209353..d4c2c70e 100644 --- a/revengai/models/source_delta_event.py +++ b/revengai/models/source_delta_event.py @@ -29,7 +29,6 @@ class SourceDeltaEvent(BaseModel): content: StrictStr seq: StrictInt type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["attempt", "content", "seq", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -95,11 +87,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "seq": obj.get("seq"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/source_reset_event.py b/revengai/models/source_reset_event.py index 6cf744fd..cde72184 100644 --- a/revengai/models/source_reset_event.py +++ b/revengai/models/source_reset_event.py @@ -28,7 +28,6 @@ class SourceResetEvent(BaseModel): attempt: StrictInt seq: StrictInt type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["attempt", "seq", "type"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -93,11 +85,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "seq": obj.get("seq"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_context_compacted_data.py b/revengai/models/sse_event_context_compacted_data.py index 9206e1ec..6eabb35a 100644 --- a/revengai/models/sse_event_context_compacted_data.py +++ b/revengai/models/sse_event_context_compacted_data.py @@ -29,7 +29,6 @@ class SseEventContextCompactedData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_run_cancelled_data.py b/revengai/models/sse_event_run_cancelled_data.py index dd10b9f2..d8d74533 100644 --- a/revengai/models/sse_event_run_cancelled_data.py +++ b/revengai/models/sse_event_run_cancelled_data.py @@ -29,7 +29,6 @@ class SseEventRunCancelledData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_run_error_data.py b/revengai/models/sse_event_run_error_data.py index 80136d94..c57b0f05 100644 --- a/revengai/models/sse_event_run_error_data.py +++ b/revengai/models/sse_event_run_error_data.py @@ -29,7 +29,6 @@ class SseEventRunErrorData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_run_finished_data.py b/revengai/models/sse_event_run_finished_data.py index aeaca5be..84cfd2e4 100644 --- a/revengai/models/sse_event_run_finished_data.py +++ b/revengai/models/sse_event_run_finished_data.py @@ -29,7 +29,6 @@ class SseEventRunFinishedData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_run_started_data.py b/revengai/models/sse_event_run_started_data.py index 3edfb2eb..bfb172ca 100644 --- a/revengai/models/sse_event_run_started_data.py +++ b/revengai/models/sse_event_run_started_data.py @@ -29,7 +29,6 @@ class SseEventRunStartedData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_step_finished_data.py b/revengai/models/sse_event_step_finished_data.py index 76ae6d65..840990c0 100644 --- a/revengai/models/sse_event_step_finished_data.py +++ b/revengai/models/sse_event_step_finished_data.py @@ -29,7 +29,6 @@ class SseEventStepFinishedData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_step_started_data.py b/revengai/models/sse_event_step_started_data.py index 47557060..fc0ba393 100644 --- a/revengai/models/sse_event_step_started_data.py +++ b/revengai/models/sse_event_step_started_data.py @@ -29,7 +29,6 @@ class SseEventStepStartedData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_text_message_content_data.py b/revengai/models/sse_event_text_message_content_data.py index d30469cd..e3f991eb 100644 --- a/revengai/models/sse_event_text_message_content_data.py +++ b/revengai/models/sse_event_text_message_content_data.py @@ -29,7 +29,6 @@ class SseEventTextMessageContentData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_text_message_end_data.py b/revengai/models/sse_event_text_message_end_data.py index d857db06..43dd3230 100644 --- a/revengai/models/sse_event_text_message_end_data.py +++ b/revengai/models/sse_event_text_message_end_data.py @@ -29,7 +29,6 @@ class SseEventTextMessageEndData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_text_message_start_data.py b/revengai/models/sse_event_text_message_start_data.py index ee45413c..0ed7d833 100644 --- a/revengai/models/sse_event_text_message_start_data.py +++ b/revengai/models/sse_event_text_message_start_data.py @@ -29,7 +29,6 @@ class SseEventTextMessageStartData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_title_updated_data.py b/revengai/models/sse_event_title_updated_data.py index 446037e1..60bb9606 100644 --- a/revengai/models/sse_event_title_updated_data.py +++ b/revengai/models/sse_event_title_updated_data.py @@ -29,7 +29,6 @@ class SseEventTitleUpdatedData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_tool_call_args_delta_data.py b/revengai/models/sse_event_tool_call_args_delta_data.py index 587426b5..6a8203bd 100644 --- a/revengai/models/sse_event_tool_call_args_delta_data.py +++ b/revengai/models/sse_event_tool_call_args_delta_data.py @@ -29,7 +29,6 @@ class SseEventToolCallArgsDeltaData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_tool_call_end_data.py b/revengai/models/sse_event_tool_call_end_data.py index 2f638d62..1c83cf6a 100644 --- a/revengai/models/sse_event_tool_call_end_data.py +++ b/revengai/models/sse_event_tool_call_end_data.py @@ -29,7 +29,6 @@ class SseEventToolCallEndData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_tool_call_progress_data.py b/revengai/models/sse_event_tool_call_progress_data.py index 894e5810..b12f40cd 100644 --- a/revengai/models/sse_event_tool_call_progress_data.py +++ b/revengai/models/sse_event_tool_call_progress_data.py @@ -29,7 +29,6 @@ class SseEventToolCallProgressData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_tool_call_result_data.py b/revengai/models/sse_event_tool_call_result_data.py index 69be6599..a828cf11 100644 --- a/revengai/models/sse_event_tool_call_result_data.py +++ b/revengai/models/sse_event_tool_call_result_data.py @@ -29,7 +29,6 @@ class SseEventToolCallResultData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_tool_call_start_data.py b/revengai/models/sse_event_tool_call_start_data.py index abf2175c..7a4e1f72 100644 --- a/revengai/models/sse_event_tool_call_start_data.py +++ b/revengai/models/sse_event_tool_call_start_data.py @@ -29,7 +29,6 @@ class SseEventToolCallStartData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/sse_event_tool_confirmation_required_data.py b/revengai/models/sse_event_tool_confirmation_required_data.py index 95d6a1a4..a3536dc3 100644 --- a/revengai/models/sse_event_tool_confirmation_required_data.py +++ b/revengai/models/sse_event_tool_confirmation_required_data.py @@ -29,7 +29,6 @@ class SseEventToolConfirmationRequiredData(BaseModel): event_id: StrictInt source_run_id: Optional[StrictStr] = None type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data (nullable) is None # and model_fields_set contains the field if self.data is None and "data" in self.model_fields_set: @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "source_run_id": obj.get("source_run_id"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/stack_variable.py b/revengai/models/stack_variable.py deleted file mode 100644 index 03162681..00000000 --- a/revengai/models/stack_variable.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class StackVariable(BaseModel): - """ - StackVariable - """ # noqa: E501 - last_change: Optional[StrictStr] = None - offset: StrictInt = Field(description="Offset of the stack variable") - name: StrictStr = Field(description="Name of the stack variable") - type: StrictStr = Field(description="Data type of the stack variable") - size: StrictInt = Field(description="Size of the stack variable in bytes") - addr: StrictInt = Field(description="Memory address of the stack variable") - __properties: ClassVar[List[str]] = ["last_change", "offset", "name", "type", "size", "addr"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StackVariable from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if last_change (nullable) is None - # and model_fields_set contains the field - if self.last_change is None and "last_change" in self.model_fields_set: - _dict['last_change'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StackVariable from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "last_change": obj.get("last_change"), - "offset": obj.get("offset"), - "name": obj.get("name"), - "type": obj.get("type"), - "size": obj.get("size"), - "addr": obj.get("addr") - }) - return _obj - - diff --git a/revengai/models/start_batch_matching_input_body.py b/revengai/models/start_batch_matching_input_body.py index 7ca717f5..fdb41983 100644 --- a/revengai/models/start_batch_matching_input_body.py +++ b/revengai/models/start_batch_matching_input_body.py @@ -27,7 +27,7 @@ class StartBatchMatchingInputBody(BaseModel): StartBatchMatchingInputBody """ # noqa: E501 binary_ids: Optional[Annotated[List[StrictInt], Field(min_length=1)]] = Field(description="Binary IDs to match the analysis against, one workflow per binary.") - debug_types: Optional[List[Optional[StrictStr]]] = Field(default=None, description="Restrict matches to candidates with these debug source types. Defaults to [\"SYSTEM\"].") + debug_types: Optional[List[StrictStr]] = Field(default=None, description="Restrict matches to candidates with these debug source types. Defaults to [\"SYSTEM\"].") min_similarity: Optional[Union[Annotated[float, Field(le=100, strict=True, ge=0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=None, description="Similarity floor as a percentage. Defaults to 90.") results_per_function: Optional[Annotated[int, Field(le=30, strict=True, ge=1)]] = Field(default=None, description="Max matches returned per source function. Defaults to 1.") additional_properties: Dict[str, Any] = {} diff --git a/revengai/models/start_matching_output_body.py b/revengai/models/start_matching_output_body.py index 7a3a3ec9..7ef4f799 100644 --- a/revengai/models/start_matching_output_body.py +++ b/revengai/models/start_matching_output_body.py @@ -32,7 +32,6 @@ class StartMatchingOutputBody(BaseModel): step: StrictStr = Field(description="Name of the current step") step_index: StrictInt = Field(description="Zero-based index of the current step") steps_total: StrictInt = Field(description="Total number of steps in the workflow") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["match_id", "messages", "status", "step", "step_index", "steps_total"] @field_validator('status') @@ -72,10 +71,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -90,11 +87,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_messages: _items.append(_item_messages.to_dict()) _dict['messages'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if messages (nullable) is None # and model_fields_set contains the field if self.messages is None and "messages" in self.model_fields_set: @@ -119,11 +111,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "step_index": obj.get("step_index"), "steps_total": obj.get("steps_total") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/startup_info.py b/revengai/models/startup_info.py index 85a170e5..4e52b217 100644 --- a/revengai/models/startup_info.py +++ b/revengai/models/startup_info.py @@ -32,7 +32,6 @@ class StartupInfo(BaseModel): process: Optional[StrictInt] = None process_name: Optional[StrictStr] = None status: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["arguments", "error", "error_code", "pid", "process", "process_name", "status"] model_config = ConfigDict( @@ -65,10 +64,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -76,11 +73,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -101,11 +93,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "process_name": obj.get("process_name"), "status": obj.get("status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/status_input.py b/revengai/models/status_input.py deleted file mode 100644 index f2f9b7ae..00000000 --- a/revengai/models/status_input.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class StatusInput(str, Enum): - """ - Custom enum for the analysis status - """ - - """ - allowed enum values - """ - UPLOADED = 'Uploaded' - QUEUED = 'Queued' - COMPLETE = 'Complete' - ERROR = 'Error' - PROCESSING = 'Processing' - ALL = 'All' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of StatusInput from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/status_output.py b/revengai/models/status_output.py deleted file mode 100644 index d08e4f0a..00000000 --- a/revengai/models/status_output.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class StatusOutput(BaseModel): - """ - StatusOutput - """ # noqa: E501 - analysis_id: StrictInt = Field(description="The ID corresponding to the checked status") - analysis_status: StrictStr = Field(description="The status of the checked analysis") - __properties: ClassVar[List[str]] = ["analysis_id", "analysis_status"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StatusOutput from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StatusOutput from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analysis_id": obj.get("analysis_id"), - "analysis_status": obj.get("analysis_status") - }) - return _obj - - diff --git a/revengai/models/status_response.py b/revengai/models/status_response.py index 6575b457..82f549a1 100644 --- a/revengai/models/status_response.py +++ b/revengai/models/status_response.py @@ -29,7 +29,6 @@ class StatusResponse(BaseModel): conversation_uuid: UUID status: StrictStr trace_id: Optional[StrictStr] = Field(default=None, description="OpenTelemetry trace ID for this run. Use this to look up tool call spans in your trace backend.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["conversation_uuid", "status", "trace_id"] model_config = ConfigDict( @@ -62,10 +61,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -73,11 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -94,11 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "status": obj.get("status"), "trace_id": obj.get("trace_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/string_functions.py b/revengai/models/string_functions.py deleted file mode 100644 index 5ec64434..00000000 --- a/revengai/models/string_functions.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction -from revengai.models.string_source import StringSource -from typing import Optional, Set -from typing_extensions import Self - -class StringFunctions(BaseModel): - """ - This is a string with the functions where the string is used. A function string is a string literal referenced within a function. When analyzing stripped or obfuscated binaries, function strings can help identify the function’s purpose. - """ # noqa: E501 - value: StrictStr = Field(description="The value of the string literal") - functions: List[AppApiRestV2FunctionsResponsesFunction] = Field(description="The function ids the string literal was found within") - source: Optional[StringSource] = Field(default=None, description="The source of the string") - __properties: ClassVar[List[str]] = ["value", "functions", "source"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StringFunctions from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in functions (list) - _items = [] - if self.functions: - for _item_functions in self.functions: - if _item_functions: - _items.append(_item_functions.to_dict()) - _dict['functions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StringFunctions from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "value": obj.get("value"), - "functions": [AppApiRestV2FunctionsResponsesFunction.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None, - "source": obj.get("source") - }) - return _obj - - diff --git a/revengai/models/string_source.py b/revengai/models/string_source.py deleted file mode 100644 index 03c1696f..00000000 --- a/revengai/models/string_source.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class StringSource(str, Enum): - """ - StringSource - """ - - """ - allowed enum values - """ - SYSTEM = 'SYSTEM' - USER = 'USER' - AI_AGENT = 'AI_AGENT' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of StringSource from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/structure.py b/revengai/models/structure.py deleted file mode 100644 index 9fb91596..00000000 --- a/revengai/models/structure.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.structure_member import StructureMember -from typing import Optional, Set -from typing_extensions import Self - -class Structure(BaseModel): - """ - Structure - """ # noqa: E501 - last_change: Optional[StrictStr] = None - name: StrictStr = Field(description="Name of the structure") - size: Optional[StrictInt] = None - members: Dict[str, StructureMember] = Field(description="Dictionary of structure members") - artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact that the structure is associated with") - __properties: ClassVar[List[str]] = ["last_change", "name", "size", "members", "artifact_type"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Structure from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each value in members (dict) - _field_dict = {} - if self.members: - for _key_members in self.members: - if self.members[_key_members]: - _field_dict[_key_members] = self.members[_key_members].to_dict() - _dict['members'] = _field_dict - # set to None if last_change (nullable) is None - # and model_fields_set contains the field - if self.last_change is None and "last_change" in self.model_fields_set: - _dict['last_change'] = None - - # set to None if size (nullable) is None - # and model_fields_set contains the field - if self.size is None and "size" in self.model_fields_set: - _dict['size'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Structure from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "last_change": obj.get("last_change"), - "name": obj.get("name"), - "size": obj.get("size"), - "members": dict( - (_k, StructureMember.from_dict(_v)) - for _k, _v in obj["members"].items() - ) - if obj.get("members") is not None - else None, - "artifact_type": obj.get("artifact_type") - }) - return _obj - - diff --git a/revengai/models/structure_member.py b/revengai/models/structure_member.py deleted file mode 100644 index ace2a473..00000000 --- a/revengai/models/structure_member.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class StructureMember(BaseModel): - """ - StructureMember - """ # noqa: E501 - last_change: Optional[StrictStr] = None - name: StrictStr = Field(description="Name of the structure member") - offset: StrictInt = Field(description="Offset of the member within the structure") - type: StrictStr = Field(description="Data type of the structure member") - size: StrictInt = Field(description="Size of the structure member in bytes") - __properties: ClassVar[List[str]] = ["last_change", "name", "offset", "type", "size"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StructureMember from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if last_change (nullable) is None - # and model_fields_set contains the field - if self.last_change is None and "last_change" in self.model_fields_set: - _dict['last_change'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StructureMember from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "last_change": obj.get("last_change"), - "name": obj.get("name"), - "offset": obj.get("offset"), - "type": obj.get("type"), - "size": obj.get("size") - }) - return _obj - - diff --git a/revengai/models/submit_user_feedback_request.py b/revengai/models/submit_user_feedback_request.py deleted file mode 100644 index 19a9c9c0..00000000 --- a/revengai/models/submit_user_feedback_request.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SubmitUserFeedbackRequest(BaseModel): - """ - SubmitUserFeedbackRequest - """ # noqa: E501 - current_route: StrictStr = Field(description="The route from where the feedback was submitted") - feedback: StrictStr = Field(description="The user's feedback") - screen_capture_url: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["current_route", "feedback", "screen_capture_url"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SubmitUserFeedbackRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if screen_capture_url (nullable) is None - # and model_fields_set contains the field - if self.screen_capture_url is None and "screen_capture_url" in self.model_fields_set: - _dict['screen_capture_url'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SubmitUserFeedbackRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "current_route": obj.get("current_route"), - "feedback": obj.get("feedback"), - "screen_capture_url": obj.get("screen_capture_url") - }) - return _obj - - diff --git a/revengai/models/summary_data.py b/revengai/models/summary_data.py index 2d0c98fe..3da088e0 100644 --- a/revengai/models/summary_data.py +++ b/revengai/models/summary_data.py @@ -28,7 +28,6 @@ class SummaryData(BaseModel): ai_summary: StrictStr = Field(description="Summary with code tags removed") summary: StrictStr = Field(description="Raw summary from the model") task_status: StrictStr = Field(description="Task status") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["ai_summary", "summary", "task_status"] @field_validator('task_status') @@ -68,10 +67,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -79,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -100,11 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "summary": obj.get("summary"), "task_status": obj.get("task_status") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/symbols.py b/revengai/models/symbols.py deleted file mode 100644 index e9b5b5dd..00000000 --- a/revengai/models/symbols.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.function_boundary import FunctionBoundary -from typing import Optional, Set -from typing_extensions import Self - -class Symbols(BaseModel): - """ - Symbols - """ # noqa: E501 - base_address: StrictInt = Field(description="The starting address of the execution") - function_boundaries: Optional[List[FunctionBoundary]] = Field(default=None, description="List of user defined function boundaries") - __properties: ClassVar[List[str]] = ["base_address", "function_boundaries"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Symbols from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in function_boundaries (list) - _items = [] - if self.function_boundaries: - for _item_function_boundaries in self.function_boundaries: - if _item_function_boundaries: - _items.append(_item_function_boundaries.to_dict()) - _dict['function_boundaries'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Symbols from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "base_address": obj.get("base_address"), - "function_boundaries": [FunctionBoundary.from_dict(_item) for _item in obj["function_boundaries"]] if obj.get("function_boundaries") is not None else None - }) - return _obj - - diff --git a/revengai/models/tag.py b/revengai/models/tag.py deleted file mode 100644 index ba9933e4..00000000 --- a/revengai/models/tag.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class Tag(BaseModel): - """ - Tag - """ # noqa: E501 - name: StrictStr - __properties: ClassVar[List[str]] = ["name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Tag from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Tag from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name") - }) - return _obj - - diff --git a/revengai/models/tag_item.py b/revengai/models/tag_item.py deleted file mode 100644 index 852a408e..00000000 --- a/revengai/models/tag_item.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TagItem(BaseModel): - """ - TagItem - """ # noqa: E501 - name: StrictStr - origin: StrictStr - collection_id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["name", "origin", "collection_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TagItem from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if collection_id (nullable) is None - # and model_fields_set contains the field - if self.collection_id is None and "collection_id" in self.model_fields_set: - _dict['collection_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TagItem from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "origin": obj.get("origin"), - "collection_id": obj.get("collection_id") - }) - return _obj - - diff --git a/revengai/models/tag_response.py b/revengai/models/tag_response.py deleted file mode 100644 index 25469836..00000000 --- a/revengai/models/tag_response.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class TagResponse(BaseModel): - """ - TagResponse - """ # noqa: E501 - name: StrictStr = Field(description="Name of the tag") - origin: StrictStr = Field(description="Origin of tag") - __properties: ClassVar[List[str]] = ["name", "origin"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TagResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TagResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "origin": obj.get("origin") - }) - return _obj - - diff --git a/revengai/models/tag_search_response.py b/revengai/models/tag_search_response.py deleted file mode 100644 index 0891d33f..00000000 --- a/revengai/models/tag_search_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.tag_search_result import TagSearchResult -from typing import Optional, Set -from typing_extensions import Self - -class TagSearchResponse(BaseModel): - """ - TagSearchResponse - """ # noqa: E501 - results: List[TagSearchResult] = Field(description="The results of the search") - __properties: ClassVar[List[str]] = ["results"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TagSearchResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item_results in self.results: - if _item_results: - _items.append(_item_results.to_dict()) - _dict['results'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TagSearchResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "results": [TagSearchResult.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None - }) - return _obj - - diff --git a/revengai/models/tag_search_result.py b/revengai/models/tag_search_result.py deleted file mode 100644 index aed51364..00000000 --- a/revengai/models/tag_search_result.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class TagSearchResult(BaseModel): - """ - TagSearchResult - """ # noqa: E501 - tag_id: StrictInt = Field(description="The ID of the tag") - tag: StrictStr = Field(description="The name of the tag") - __properties: ClassVar[List[str]] = ["tag_id", "tag"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TagSearchResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TagSearchResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tag_id": obj.get("tag_id"), - "tag": obj.get("tag") - }) - return _obj - - diff --git a/revengai/models/task_response.py b/revengai/models/task_response.py deleted file mode 100644 index cd1e5c4f..00000000 --- a/revengai/models/task_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.task_status import TaskStatus -from typing import Optional, Set -from typing_extensions import Self - -class TaskResponse(BaseModel): - """ - TaskResponse - """ # noqa: E501 - status: Optional[TaskStatus] = None - error_message: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["status", "error_message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TaskResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if error_message (nullable) is None - # and model_fields_set contains the field - if self.error_message is None and "error_message" in self.model_fields_set: - _dict['error_message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TaskResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "error_message": obj.get("error_message") - }) - return _obj - - diff --git a/revengai/models/task_status.py b/revengai/models/task_status.py deleted file mode 100644 index 833e682f..00000000 --- a/revengai/models/task_status.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class TaskStatus(str, Enum): - """ - TaskStatus - """ - - """ - allowed enum values - """ - UNINITIALISED = 'UNINITIALISED' - PENDING = 'PENDING' - RUNNING = 'RUNNING' - COMPLETED = 'COMPLETED' - FAILED = 'FAILED' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TaskStatus from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/task_status_response.py b/revengai/models/task_status_response.py deleted file mode 100644 index 9a1493fa..00000000 --- a/revengai/models/task_status_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from typing_extensions import Annotated -from revengai.models.binary_task_status import BinaryTaskStatus -from typing import Optional, Set -from typing_extensions import Self - -class TaskStatusResponse(BaseModel): - """ - TaskStatusResponse - """ # noqa: E501 - status: BinaryTaskStatus - log_history: Optional[List[Annotated[List[Any], Field(min_length=2, max_length=2)]]] = None - __properties: ClassVar[List[str]] = ["status", "log_history"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TaskStatusResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if log_history (nullable) is None - # and model_fields_set contains the field - if self.log_history is None and "log_history" in self.model_fields_set: - _dict['log_history'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TaskStatusResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "log_history": obj.get("log_history") - }) - return _obj - - diff --git a/revengai/models/tcp_carved_file.py b/revengai/models/tcp_carved_file.py index b4f5ae2c..beda6749 100644 --- a/revengai/models/tcp_carved_file.py +++ b/revengai/models/tcp_carved_file.py @@ -33,7 +33,6 @@ class TcpCarvedFile(BaseModel): sha256: StrictStr size: StrictInt yara_hits: Optional[List[StrictStr]] = None - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["direction", "filename", "is_pe", "mime_type", "offset", "sha256", "size", "yara_hits"] model_config = ConfigDict( @@ -66,10 +65,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -77,11 +74,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if yara_hits (nullable) is None # and model_fields_set contains the field if self.yara_hits is None and "yara_hits" in self.model_fields_set: @@ -108,11 +100,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "size": obj.get("size"), "yara_hits": obj.get("yara_hits") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/team.py b/revengai/models/team.py index d165fb3d..7b074445 100644 --- a/revengai/models/team.py +++ b/revengai/models/team.py @@ -28,8 +28,7 @@ class Team(BaseModel): organisation_id: Optional[StrictInt] = Field(default=None, description="Organisation this team belongs to, if any") plan: StrictStr team_id: StrictInt - team_name: Optional[StrictStr] - additional_properties: Dict[str, Any] = {} + team_name: StrictStr __properties: ClassVar[List[str]] = ["organisation_id", "plan", "team_id", "team_name"] @field_validator('plan') @@ -69,10 +68,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -80,16 +77,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - - # set to None if team_name (nullable) is None - # and model_fields_set contains the field - if self.team_name is None and "team_name" in self.model_fields_set: - _dict['team_name'] = None - return _dict @classmethod @@ -107,11 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "team_id": obj.get("team_id"), "team_name": obj.get("team_name") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/team_member.py b/revengai/models/team_member.py index 83b863dd..4a0cf9f1 100644 --- a/revengai/models/team_member.py +++ b/revengai/models/team_member.py @@ -17,7 +17,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -25,11 +25,11 @@ class TeamMember(BaseModel): """ TeamMember """ # noqa: E501 - email: Optional[StrictStr] + email: StrictStr is_admin: StrictBool role: StrictStr user_id: StrictInt - username: Optional[StrictStr] + username: StrictStr additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["email", "is_admin", "role", "user_id", "username"] @@ -86,16 +86,6 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value - # set to None if email (nullable) is None - # and model_fields_set contains the field - if self.email is None and "email" in self.model_fields_set: - _dict['email'] = None - - # set to None if username (nullable) is None - # and model_fields_set contains the field - if self.username is None and "username" in self.model_fields_set: - _dict['username'] = None - return _dict @classmethod diff --git a/revengai/models/timestamp_model.py b/revengai/models/timestamp_model.py deleted file mode 100644 index baf83f63..00000000 --- a/revengai/models/timestamp_model.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class TimestampModel(BaseModel): - """ - TimestampModel - """ # noqa: E501 - pe_timestamp: StrictInt - export_timestamp: StrictInt - debug_timestamp: StrictInt - __properties: ClassVar[List[str]] = ["pe_timestamp", "export_timestamp", "debug_timestamp"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TimestampModel from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TimestampModel from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "pe_timestamp": obj.get("pe_timestamp"), - "export_timestamp": obj.get("export_timestamp"), - "debug_timestamp": obj.get("debug_timestamp") - }) - return _obj - - diff --git a/revengai/models/tokenised_data.py b/revengai/models/tokenised_data.py index f42ddbd5..1523f980 100644 --- a/revengai/models/tokenised_data.py +++ b/revengai/models/tokenised_data.py @@ -30,7 +30,6 @@ class TokenisedData(BaseModel): predicted_function_name: Optional[StrictStr] = Field(default=None, description="Predicted function name from the AI model") status: StrictStr = Field(description="Task status") tokenised_decompilation: Optional[StrictStr] = Field(default=None, description="Source code with placeholder tokens") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["function_mapping", "predicted_function_name", "status", "tokenised_decompilation"] @field_validator('status') @@ -70,10 +69,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -84,11 +81,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of function_mapping if self.function_mapping: _dict['function_mapping'] = self.function_mapping.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -106,11 +98,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "status": obj.get("status"), "tokenised_decompilation": obj.get("tokenised_decompilation") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/triage_function_response.py b/revengai/models/triage_function_response.py deleted file mode 100644 index 205955ea..00000000 --- a/revengai/models/triage_function_response.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Union -from typing_extensions import Annotated -from typing import Optional, Set -from typing_extensions import Self - -class TriageFunctionResponse(BaseModel): - """ - TriageFunctionResponse - """ # noqa: E501 - id: StrictInt = Field(description="Unique identifier of the function") - address: StrictInt = Field(description="Address of the function in the binary") - summary: StrictStr = Field(description="Summary of the function's behaviour") - score: Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]] = Field(description="Score indicating the function's relevance") - capabilities: List[StrictStr] = Field(description="List of capabilities exhibited by the function") - __properties: ClassVar[List[str]] = ["id", "address", "summary", "score", "capabilities"] - - @field_validator('capabilities') - 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', '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( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TriageFunctionResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TriageFunctionResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "address": obj.get("address"), - "summary": obj.get("summary"), - "score": obj.get("score"), - "capabilities": obj.get("capabilities") - }) - return _obj - - diff --git a/revengai/models/triage_report_response.py b/revengai/models/triage_report_response.py deleted file mode 100644 index 89da9616..00000000 --- a/revengai/models/triage_report_response.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Union -from typing_extensions import Annotated -from revengai.models.triage_function_response import TriageFunctionResponse -from typing import Optional, Set -from typing_extensions import Self - -class TriageReportResponse(BaseModel): - """ - TriageReportResponse - """ # noqa: E501 - software_score: Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]] = Field(description="Overall triage score for the software") - summary: StrictStr = Field(description="Summary of the triage analysis") - functions: List[TriageFunctionResponse] = Field(description="List of triaged functions") - __properties: ClassVar[List[str]] = ["software_score", "summary", "functions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TriageReportResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in functions (list) - _items = [] - if self.functions: - for _item_functions in self.functions: - if _item_functions: - _items.append(_item_functions.to_dict()) - _dict['functions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TriageReportResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "software_score": obj.get("software_score"), - "summary": obj.get("summary"), - "functions": [TriageFunctionResponse.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None - }) - return _obj - - diff --git a/revengai/models/ttp.py b/revengai/models/ttp.py index 67407324..a7c3ec54 100644 --- a/revengai/models/ttp.py +++ b/revengai/models/ttp.py @@ -31,7 +31,6 @@ class Ttp(BaseModel): namespace: Optional[StrictStr] = None process_seqids: Optional[List[StrictInt]] = None score: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["att&ck", "mbc", "name", "namespace", "process_seqids", "score"] model_config = ConfigDict( @@ -64,10 +63,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -75,11 +72,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if attck (nullable) is None # and model_fields_set contains the field if self.attck is None and "attck" in self.model_fields_set: @@ -114,11 +106,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "process_seqids": obj.get("process_seqids"), "score": obj.get("score") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/type_definition.py b/revengai/models/type_definition.py deleted file mode 100644 index 7a53e510..00000000 --- a/revengai/models/type_definition.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class TypeDefinition(BaseModel): - """ - TypeDefinition - """ # noqa: E501 - last_change: Optional[StrictStr] = None - name: StrictStr = Field(description="Name of the type definition") - type: StrictStr = Field(description="Underlying type of the type definition") - artifact_type: Optional[StrictStr] = Field(default=None, description="Type of artifact the type definition is associated with") - __properties: ClassVar[List[str]] = ["last_change", "name", "type", "artifact_type"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TypeDefinition from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if last_change (nullable) is None - # and model_fields_set contains the field - if self.last_change is None and "last_change" in self.model_fields_set: - _dict['last_change'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TypeDefinition from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "last_change": obj.get("last_change"), - "name": obj.get("name"), - "type": obj.get("type"), - "artifact_type": obj.get("artifact_type") - }) - return _obj - - diff --git a/revengai/models/update_data_types_input_body.py b/revengai/models/update_data_types_input_body.py index c7f35a5c..5cf2f1d5 100644 --- a/revengai/models/update_data_types_input_body.py +++ b/revengai/models/update_data_types_input_body.py @@ -28,7 +28,6 @@ class UpdateDataTypesInputBody(BaseModel): """ # noqa: E501 data_types: Optional[Any] data_types_version: Annotated[int, Field(strict=True, ge=0)] = Field(description="Current version of the function data types. The update is rejected if the stored version has moved on. Pass 0 on the first write.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data_types", "data_types_version"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data_types (nullable) is None # and model_fields_set contains the field if self.data_types is None and "data_types" in self.model_fields_set: @@ -97,11 +89,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "data_types": obj.get("data_types"), "data_types_version": obj.get("data_types_version") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/update_data_types_output_body.py b/revengai/models/update_data_types_output_body.py index 0d75f614..13a2aa89 100644 --- a/revengai/models/update_data_types_output_body.py +++ b/revengai/models/update_data_types_output_body.py @@ -28,7 +28,6 @@ class UpdateDataTypesOutputBody(BaseModel): data_types: Optional[Any] data_types_version: StrictInt = Field(description="Version of the stored function data types after the update") function_id: StrictInt = Field(description="Function ID") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["data_types", "data_types_version", "function_id"] model_config = ConfigDict( @@ -61,10 +60,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -72,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if data_types (nullable) is None # and model_fields_set contains the field if self.data_types is None and "data_types" in self.model_fields_set: @@ -98,11 +90,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "data_types_version": obj.get("data_types_version"), "function_id": obj.get("function_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/upload_file_type.py b/revengai/models/upload_file_type.py deleted file mode 100644 index def5fb96..00000000 --- a/revengai/models/upload_file_type.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class UploadFileType(str, Enum): - """ - UploadFileType - """ - - """ - allowed enum values - """ - BINARY = 'BINARY' - DEBUG = 'DEBUG' - PACKED = 'PACKED' - FIRMWARE = 'FIRMWARE' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of UploadFileType from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/upload_response.py b/revengai/models/upload_response.py deleted file mode 100644 index 0c8b94c4..00000000 --- a/revengai/models/upload_response.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List -from revengai.models.upload_file_type import UploadFileType -from typing import Optional, Set -from typing_extensions import Self - -class UploadResponse(BaseModel): - """ - UploadResponse - """ # noqa: E501 - sha_256_hash: StrictStr - file_type: UploadFileType - filename: StrictStr - mime: StrictStr - is_archive: StrictBool - can_sandbox: StrictBool - can_extract: StrictBool - __properties: ClassVar[List[str]] = ["sha_256_hash", "file_type", "filename", "mime", "is_archive", "can_sandbox", "can_extract"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UploadResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UploadResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "sha_256_hash": obj.get("sha_256_hash"), - "file_type": obj.get("file_type"), - "filename": obj.get("filename"), - "mime": obj.get("mime"), - "is_archive": obj.get("is_archive"), - "can_sandbox": obj.get("can_sandbox"), - "can_extract": obj.get("can_extract") - }) - return _obj - - diff --git a/revengai/models/upsert_ai_decomplation_rating_request.py b/revengai/models/upsert_ai_decomplation_rating_request.py deleted file mode 100644 index d633540b..00000000 --- a/revengai/models/upsert_ai_decomplation_rating_request.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.ai_decompilation_rating import AiDecompilationRating -from typing import Optional, Set -from typing_extensions import Self - -class UpsertAiDecomplationRatingRequest(BaseModel): - """ - UpsertAiDecomplationRatingRequest - """ # noqa: E501 - rating: AiDecompilationRating = Field(description="The rating for the AI decompilation response") - reason: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["rating", "reason"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpsertAiDecomplationRatingRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if reason (nullable) is None - # and model_fields_set contains the field - if self.reason is None and "reason" in self.model_fields_set: - _dict['reason'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpsertAiDecomplationRatingRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "rating": obj.get("rating"), - "reason": obj.get("reason") - }) - return _obj - - diff --git a/revengai/models/upsert_overrides_data.py b/revengai/models/upsert_overrides_data.py index 55be0818..052ea3e2 100644 --- a/revengai/models/upsert_overrides_data.py +++ b/revengai/models/upsert_overrides_data.py @@ -26,7 +26,6 @@ class UpsertOverridesData(BaseModel): UpsertOverridesData """ # noqa: E501 user_override_mappings: Dict[str, StrictStr] = Field(description="Merged override mappings after applying changes") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["user_override_mappings"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -89,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "user_override_mappings": obj.get("user_override_mappings") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/upsert_overrides_input_body.py b/revengai/models/upsert_overrides_input_body.py index 42aa9a2d..fcea02a1 100644 --- a/revengai/models/upsert_overrides_input_body.py +++ b/revengai/models/upsert_overrides_input_body.py @@ -26,7 +26,6 @@ class UpsertOverridesInputBody(BaseModel): UpsertOverridesInputBody """ # noqa: E501 overrides: Dict[str, StrictStr] = Field(description="Token to name mappings. Empty string removes the override.") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["overrides"] model_config = ConfigDict( @@ -59,10 +58,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -70,11 +67,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -89,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "overrides": obj.get("overrides") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/user.py b/revengai/models/user.py index ce79e3eb..9881b021 100644 --- a/revengai/models/user.py +++ b/revengai/models/user.py @@ -33,7 +33,6 @@ class User(BaseModel): role: StrictStr tier: Optional[StrictStr] = None user_id: StrictInt - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["created_at", "email", "profile", "role", "tier", "user_id"] @field_validator('role') @@ -83,10 +82,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -97,11 +94,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of profile if self.profile: _dict['profile'] = self.profile.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -121,11 +113,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tier": obj.get("tier"), "user_id": obj.get("user_id") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/user_activity_response.py b/revengai/models/user_activity_response.py deleted file mode 100644 index b3b647a6..00000000 --- a/revengai/models/user_activity_response.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class UserActivityResponse(BaseModel): - """ - UserActivityResponse - """ # noqa: E501 - actions: StrictStr - activity_scope: StrictStr - creation: datetime - message: StrictStr - sources: StrictStr - username: StrictStr - __properties: ClassVar[List[str]] = ["actions", "activity_scope", "creation", "message", "sources", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserActivityResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserActivityResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "actions": obj.get("actions"), - "activity_scope": obj.get("activity_scope"), - "creation": obj.get("creation"), - "message": obj.get("message"), - "sources": obj.get("sources"), - "username": obj.get("username") - }) - return _obj - - diff --git a/revengai/models/user_identity.py b/revengai/models/user_identity.py index 1a3ff76e..70989b80 100644 --- a/revengai/models/user_identity.py +++ b/revengai/models/user_identity.py @@ -18,7 +18,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class UserIdentity(BaseModel): UserIdentity """ # noqa: E501 created_at: datetime - issuer_url: Optional[StrictStr] - subject: Optional[StrictStr] + issuer_url: StrictStr + subject: StrictStr updated_at: datetime user_id: StrictInt user_identity_id: StrictInt @@ -81,16 +81,6 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value - # set to None if issuer_url (nullable) is None - # and model_fields_set contains the field - if self.issuer_url is None and "issuer_url" in self.model_fields_set: - _dict['issuer_url'] = None - - # set to None if subject (nullable) is None - # and model_fields_set contains the field - if self.subject is None and "subject" in self.model_fields_set: - _dict['subject'] = None - return _dict @classmethod diff --git a/revengai/models/user_profile.py b/revengai/models/user_profile.py index e31fa9ee..6aff4f2d 100644 --- a/revengai/models/user_profile.py +++ b/revengai/models/user_profile.py @@ -31,7 +31,6 @@ class UserProfile(BaseModel): last_name: StrictStr time_zone: StrictStr username: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["default_team_id", "first_name", "hide_example_binaries", "last_name", "time_zone", "username"] model_config = ConfigDict( @@ -64,10 +63,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -75,11 +72,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - return _dict @classmethod @@ -99,11 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "time_zone": obj.get("time_zone"), "username": obj.get("username") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/v2_function_header.py b/revengai/models/v2_function_header.py deleted file mode 100644 index 1a950bbd..00000000 --- a/revengai/models/v2_function_header.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.argument import Argument -from typing import Optional, Set -from typing_extensions import Self - -class V2FunctionHeader(BaseModel): - """ - V2FunctionHeader - """ # noqa: E501 - last_change: Optional[StrictStr] = None - name: StrictStr = Field(description="Name of the function") - addr: StrictInt = Field(description="Memory address of the function") - type: StrictStr = Field(description="Return type of the function") - args: Dict[str, Argument] = Field(description="Dictionary of function arguments") - __properties: ClassVar[List[str]] = ["last_change", "name", "addr", "type", "args"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V2FunctionHeader from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each value in args (dict) - _field_dict = {} - if self.args: - for _key_args in self.args: - if self.args[_key_args]: - _field_dict[_key_args] = self.args[_key_args].to_dict() - _dict['args'] = _field_dict - # set to None if last_change (nullable) is None - # and model_fields_set contains the field - if self.last_change is None and "last_change" in self.model_fields_set: - _dict['last_change'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V2FunctionHeader from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "last_change": obj.get("last_change"), - "name": obj.get("name"), - "addr": obj.get("addr"), - "type": obj.get("type"), - "args": dict( - (_k, Argument.from_dict(_v)) - for _k, _v in obj["args"].items() - ) - if obj.get("args") is not None - else None - }) - return _obj - - diff --git a/revengai/models/v2_function_info.py b/revengai/models/v2_function_info.py deleted file mode 100644 index 0dd6e9e0..00000000 --- a/revengai/models/v2_function_info.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.v2_function_info_func_deps_inner import V2FunctionInfoFuncDepsInner -from revengai.models.v2_function_type import V2FunctionType -from typing import Optional, Set -from typing_extensions import Self - -class V2FunctionInfo(BaseModel): - """ - V2FunctionInfo - """ # noqa: E501 - func_types: Optional[V2FunctionType] = None - func_deps: List[V2FunctionInfoFuncDepsInner] = Field(description="List of function dependencies") - __properties: ClassVar[List[str]] = ["func_types", "func_deps"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V2FunctionInfo from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of func_types - if self.func_types: - _dict['func_types'] = self.func_types.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in func_deps (list) - _items = [] - if self.func_deps: - for _item_func_deps in self.func_deps: - if _item_func_deps: - _items.append(_item_func_deps.to_dict()) - _dict['func_deps'] = _items - # set to None if func_types (nullable) is None - # and model_fields_set contains the field - if self.func_types is None and "func_types" in self.model_fields_set: - _dict['func_types'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V2FunctionInfo from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "func_types": V2FunctionType.from_dict(obj["func_types"]) if obj.get("func_types") is not None else None, - "func_deps": [V2FunctionInfoFuncDepsInner.from_dict(_item) for _item in obj["func_deps"]] if obj.get("func_deps") is not None else None - }) - return _obj - - diff --git a/revengai/models/v2_function_info_func_deps_inner.py b/revengai/models/v2_function_info_func_deps_inner.py deleted file mode 100644 index 40cfa584..00000000 --- a/revengai/models/v2_function_info_func_deps_inner.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from revengai.models.enumeration import Enumeration -from revengai.models.global_variable import GlobalVariable -from revengai.models.structure import Structure -from revengai.models.type_definition import TypeDefinition -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -V2FUNCTIONINFOFUNCDEPSINNER_ANY_OF_SCHEMAS = ["Enumeration", "GlobalVariable", "Structure", "TypeDefinition"] - -class V2FunctionInfoFuncDepsInner(BaseModel): - """ - V2FunctionInfoFuncDepsInner - """ - - # data type: Structure - anyof_schema_1_validator: Optional[Structure] = None - # data type: Enumeration - anyof_schema_2_validator: Optional[Enumeration] = None - # data type: TypeDefinition - anyof_schema_3_validator: Optional[TypeDefinition] = None - # data type: GlobalVariable - anyof_schema_4_validator: Optional[GlobalVariable] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[Enumeration, GlobalVariable, Structure, TypeDefinition]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "Enumeration", "GlobalVariable", "Structure", "TypeDefinition" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = V2FunctionInfoFuncDepsInner.model_construct() - error_messages = [] - # validate data type: Structure - if not isinstance(v, Structure): - error_messages.append(f"Error! Input type `{type(v)}` is not `Structure`") - else: - return v - - # validate data type: Enumeration - if not isinstance(v, Enumeration): - error_messages.append(f"Error! Input type `{type(v)}` is not `Enumeration`") - else: - return v - - # validate data type: TypeDefinition - if not isinstance(v, TypeDefinition): - error_messages.append(f"Error! Input type `{type(v)}` is not `TypeDefinition`") - else: - return v - - # validate data type: GlobalVariable - if not isinstance(v, GlobalVariable): - error_messages.append(f"Error! Input type `{type(v)}` is not `GlobalVariable`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in V2FunctionInfoFuncDepsInner with anyOf schemas: Enumeration, GlobalVariable, Structure, TypeDefinition. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[Structure] = None - try: - instance.actual_instance = Structure.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[Enumeration] = None - try: - instance.actual_instance = Enumeration.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_3_validator: Optional[TypeDefinition] = None - try: - instance.actual_instance = TypeDefinition.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_4_validator: Optional[GlobalVariable] = None - try: - instance.actual_instance = GlobalVariable.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into V2FunctionInfoFuncDepsInner with anyOf schemas: Enumeration, GlobalVariable, Structure, TypeDefinition. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], Enumeration, GlobalVariable, Structure, TypeDefinition]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/revengai/models/v2_function_type.py b/revengai/models/v2_function_type.py deleted file mode 100644 index 92a59529..00000000 --- a/revengai/models/v2_function_type.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.stack_variable import StackVariable -from revengai.models.v2_function_header import V2FunctionHeader -from typing import Optional, Set -from typing_extensions import Self - -class V2FunctionType(BaseModel): - """ - V2FunctionType - """ # noqa: E501 - last_change: Optional[StrictStr] = None - addr: StrictInt = Field(description="Memory address of the function") - size: StrictInt = Field(description="Size of the function in bytes") - header: V2FunctionHeader = Field(description="Function header information") - stack_vars: Optional[Dict[str, StackVariable]] = None - name: StrictStr = Field(description="Name of the function") - type: StrictStr = Field(description="Return type of the function") - artifact_type: Optional[StrictStr] = Field(default='Function', description="Type of artifact that the structure is associated with") - __properties: ClassVar[List[str]] = ["last_change", "addr", "size", "header", "stack_vars", "name", "type", "artifact_type"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V2FunctionType from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of header - if self.header: - _dict['header'] = self.header.to_dict() - # override the default output from pydantic by calling `to_dict()` of each value in stack_vars (dict) - _field_dict = {} - if self.stack_vars: - for _key_stack_vars in self.stack_vars: - if self.stack_vars[_key_stack_vars]: - _field_dict[_key_stack_vars] = self.stack_vars[_key_stack_vars].to_dict() - _dict['stack_vars'] = _field_dict - # set to None if last_change (nullable) is None - # and model_fields_set contains the field - if self.last_change is None and "last_change" in self.model_fields_set: - _dict['last_change'] = None - - # set to None if stack_vars (nullable) is None - # and model_fields_set contains the field - if self.stack_vars is None and "stack_vars" in self.model_fields_set: - _dict['stack_vars'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V2FunctionType from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "last_change": obj.get("last_change"), - "addr": obj.get("addr"), - "size": obj.get("size"), - "header": V2FunctionHeader.from_dict(obj["header"]) if obj.get("header") is not None else None, - "stack_vars": dict( - (_k, StackVariable.from_dict(_v)) - for _k, _v in obj["stack_vars"].items() - ) - if obj.get("stack_vars") is not None - else None, - "name": obj.get("name"), - "type": obj.get("type"), - "artifact_type": obj.get("artifact_type") if obj.get("artifact_type") is not None else 'Function' - }) - return _obj - - diff --git a/revengai/models/vulnerabilities.py b/revengai/models/vulnerabilities.py deleted file mode 100644 index 5fbc1abb..00000000 --- a/revengai/models/vulnerabilities.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.vulnerability import Vulnerability -from typing import Optional, Set -from typing_extensions import Self - -class Vulnerabilities(BaseModel): - """ - Vulnerabilities - """ # noqa: E501 - vulnerabilities: List[Vulnerability] - __properties: ClassVar[List[str]] = ["vulnerabilities"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Vulnerabilities from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in vulnerabilities (list) - _items = [] - if self.vulnerabilities: - for _item_vulnerabilities in self.vulnerabilities: - if _item_vulnerabilities: - _items.append(_item_vulnerabilities.to_dict()) - _dict['vulnerabilities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Vulnerabilities from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "vulnerabilities": [Vulnerability.from_dict(_item) for _item in obj["vulnerabilities"]] if obj.get("vulnerabilities") is not None else None - }) - return _obj - - diff --git a/revengai/models/vulnerability.py b/revengai/models/vulnerability.py deleted file mode 100644 index 4ec4d761..00000000 --- a/revengai/models/vulnerability.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class Vulnerability(BaseModel): - """ - Vulnerability - """ # noqa: E501 - vendor: StrictStr - product: StrictStr - version: StrictStr - cve_number: StrictStr - severity: StrictStr - source: StrictStr - cvss_version: StrictStr - cvss_vector: StrictStr - remarks: StrictStr - score: Union[StrictFloat, StrictInt] - is_unknown: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["vendor", "product", "version", "cve_number", "severity", "source", "cvss_version", "cvss_vector", "remarks", "score", "is_unknown"] - - @field_validator('severity') - def severity_validate_enum(cls, value): - """Validates the enum""" - 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( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Vulnerability from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Vulnerability from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "vendor": obj.get("vendor"), - "product": obj.get("product"), - "version": obj.get("version"), - "cve_number": obj.get("cve_number"), - "severity": obj.get("severity"), - "source": obj.get("source"), - "cvss_version": obj.get("cvss_version"), - "cvss_vector": obj.get("cvss_vector"), - "remarks": obj.get("remarks"), - "score": obj.get("score"), - "is_unknown": obj.get("is_unknown") if obj.get("is_unknown") is not None else False - }) - return _obj - - diff --git a/revengai/models/warning_event.py b/revengai/models/warning_event.py index 4de09979..ec18b80a 100644 --- a/revengai/models/warning_event.py +++ b/revengai/models/warning_event.py @@ -31,7 +31,6 @@ class WarningEvent(BaseModel): message: StrictStr seq: StrictInt type: StrictStr - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["attempt", "identifiers", "kind", "message", "seq", "type"] model_config = ConfigDict( @@ -64,10 +63,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -75,11 +72,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if identifiers (nullable) is None # and model_fields_set contains the field if self.identifiers is None and "identifiers" in self.model_fields_set: @@ -104,11 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "seq": obj.get("seq"), "type": obj.get("type") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/workflow_progress.py b/revengai/models/workflow_progress.py index 96ca5848..3cdb9009 100644 --- a/revengai/models/workflow_progress.py +++ b/revengai/models/workflow_progress.py @@ -31,7 +31,6 @@ class WorkflowProgress(BaseModel): step: StrictStr = Field(description="Name of the current step") step_index: StrictInt = Field(description="Zero-based index of the current step") steps_total: StrictInt = Field(description="Total number of steps in the workflow") - additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["messages", "status", "step", "step_index", "steps_total"] @field_validator('status') @@ -71,10 +70,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ - "additional_properties", ]) _dict = self.model_dump( @@ -89,11 +86,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_messages: _items.append(_item_messages.to_dict()) _dict['messages'] = _items - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - # set to None if messages (nullable) is None # and model_fields_set contains the field if self.messages is None and "messages" in self.model_fields_set: @@ -117,11 +109,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "step_index": obj.get("step_index"), "steps_total": obj.get("steps_total") }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - return _obj diff --git a/revengai/models/workspace.py b/revengai/models/workspace.py deleted file mode 100644 index 60b4e4de..00000000 --- a/revengai/models/workspace.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class Workspace(str, Enum): - """ - Workspace - """ - - """ - allowed enum values - """ - PERSONAL = 'personal' - TEAM = 'team' - PUBLIC = 'public' - UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Workspace from a JSON string""" - return cls(json.loads(json_str)) - - @classmethod - def _missing_(cls, value): - """Fall back to the unknown default for values not defined in the SDK.""" - return cls.__members__.get("UNKNOWN_DEFAULT_OPEN_API") - - diff --git a/revengai/models/xref_from_response.py b/revengai/models/xref_from_response.py deleted file mode 100644 index 71fd2220..00000000 --- a/revengai/models/xref_from_response.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.segment_info import SegmentInfo -from typing import Optional, Set -from typing_extensions import Self - -class XrefFromResponse(BaseModel): - """ - XrefFromResponse - """ # noqa: E501 - value: Optional[StrictStr] - is_scalar: Optional[StrictBool] = None - is_call: Optional[StrictBool] = None - is_data: Optional[StrictBool] = None - is_string: Optional[StrictBool] = None - raw_data: Optional[StrictStr] = None - segment: Optional[SegmentInfo] = None - orig_str_encoding: Optional[StrictStr] = None - xref_to: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["value", "is_scalar", "is_call", "is_data", "is_string", "raw_data", "segment", "orig_str_encoding", "xref_to"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of XrefFromResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of segment - if self.segment: - _dict['segment'] = self.segment.to_dict() - # set to None if value (nullable) is None - # and model_fields_set contains the field - if self.value is None and "value" in self.model_fields_set: - _dict['value'] = None - - # set to None if is_scalar (nullable) is None - # and model_fields_set contains the field - if self.is_scalar is None and "is_scalar" in self.model_fields_set: - _dict['is_scalar'] = None - - # set to None if is_call (nullable) is None - # and model_fields_set contains the field - if self.is_call is None and "is_call" in self.model_fields_set: - _dict['is_call'] = None - - # set to None if is_data (nullable) is None - # and model_fields_set contains the field - if self.is_data is None and "is_data" in self.model_fields_set: - _dict['is_data'] = None - - # set to None if is_string (nullable) is None - # and model_fields_set contains the field - if self.is_string is None and "is_string" in self.model_fields_set: - _dict['is_string'] = None - - # set to None if raw_data (nullable) is None - # and model_fields_set contains the field - if self.raw_data is None and "raw_data" in self.model_fields_set: - _dict['raw_data'] = None - - # set to None if segment (nullable) is None - # and model_fields_set contains the field - if self.segment is None and "segment" in self.model_fields_set: - _dict['segment'] = None - - # set to None if orig_str_encoding (nullable) is None - # and model_fields_set contains the field - if self.orig_str_encoding is None and "orig_str_encoding" in self.model_fields_set: - _dict['orig_str_encoding'] = None - - # set to None if xref_to (nullable) is None - # and model_fields_set contains the field - if self.xref_to is None and "xref_to" in self.model_fields_set: - _dict['xref_to'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of XrefFromResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "value": obj.get("value"), - "is_scalar": obj.get("is_scalar"), - "is_call": obj.get("is_call"), - "is_data": obj.get("is_data"), - "is_string": obj.get("is_string"), - "raw_data": obj.get("raw_data"), - "segment": SegmentInfo.from_dict(obj["segment"]) if obj.get("segment") is not None else None, - "orig_str_encoding": obj.get("orig_str_encoding"), - "xref_to": obj.get("xref_to") - }) - return _obj - - diff --git a/revengai/models/xref_response.py b/revengai/models/xref_response.py deleted file mode 100644 index 78b40875..00000000 --- a/revengai/models/xref_response.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.xref_from_response import XrefFromResponse -from revengai.models.xref_to_response import XrefToResponse -from typing import Optional, Set -from typing_extensions import Self - -class XrefResponse(BaseModel): - """ - XrefResponse - """ # noqa: E501 - xref_to_list: List[XrefToResponse] - xref_from_list: List[XrefFromResponse] - __properties: ClassVar[List[str]] = ["xref_to_list", "xref_from_list"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of XrefResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in xref_to_list (list) - _items = [] - if self.xref_to_list: - for _item_xref_to_list in self.xref_to_list: - if _item_xref_to_list: - _items.append(_item_xref_to_list.to_dict()) - _dict['xref_to_list'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in xref_from_list (list) - _items = [] - if self.xref_from_list: - for _item_xref_from_list in self.xref_from_list: - if _item_xref_from_list: - _items.append(_item_xref_from_list.to_dict()) - _dict['xref_from_list'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of XrefResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "xref_to_list": [XrefToResponse.from_dict(_item) for _item in obj["xref_to_list"]] if obj.get("xref_to_list") is not None else None, - "xref_from_list": [XrefFromResponse.from_dict(_item) for _item in obj["xref_from_list"]] if obj.get("xref_from_list") is not None else None - }) - return _obj - - diff --git a/revengai/models/xref_to_response.py b/revengai/models/xref_to_response.py deleted file mode 100644 index 253563af..00000000 --- a/revengai/models/xref_to_response.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.segment_info import SegmentInfo -from typing import Optional, Set -from typing_extensions import Self - -class XrefToResponse(BaseModel): - """ - XrefToResponse - """ # noqa: E501 - value: Optional[StrictStr] - is_scalar: Optional[StrictBool] = None - is_call: Optional[StrictBool] = None - is_data: Optional[StrictBool] = None - is_string: Optional[StrictBool] = None - raw_data: Optional[StrictStr] = None - segment: Optional[SegmentInfo] = None - orig_str_encoding: Optional[StrictStr] = None - xref_from: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["value", "is_scalar", "is_call", "is_data", "is_string", "raw_data", "segment", "orig_str_encoding", "xref_from"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of XrefToResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of segment - if self.segment: - _dict['segment'] = self.segment.to_dict() - # set to None if value (nullable) is None - # and model_fields_set contains the field - if self.value is None and "value" in self.model_fields_set: - _dict['value'] = None - - # set to None if is_scalar (nullable) is None - # and model_fields_set contains the field - if self.is_scalar is None and "is_scalar" in self.model_fields_set: - _dict['is_scalar'] = None - - # set to None if is_call (nullable) is None - # and model_fields_set contains the field - if self.is_call is None and "is_call" in self.model_fields_set: - _dict['is_call'] = None - - # set to None if is_data (nullable) is None - # and model_fields_set contains the field - if self.is_data is None and "is_data" in self.model_fields_set: - _dict['is_data'] = None - - # set to None if is_string (nullable) is None - # and model_fields_set contains the field - if self.is_string is None and "is_string" in self.model_fields_set: - _dict['is_string'] = None - - # set to None if raw_data (nullable) is None - # and model_fields_set contains the field - if self.raw_data is None and "raw_data" in self.model_fields_set: - _dict['raw_data'] = None - - # set to None if segment (nullable) is None - # and model_fields_set contains the field - if self.segment is None and "segment" in self.model_fields_set: - _dict['segment'] = None - - # set to None if orig_str_encoding (nullable) is None - # and model_fields_set contains the field - if self.orig_str_encoding is None and "orig_str_encoding" in self.model_fields_set: - _dict['orig_str_encoding'] = None - - # set to None if xref_from (nullable) is None - # and model_fields_set contains the field - if self.xref_from is None and "xref_from" in self.model_fields_set: - _dict['xref_from'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of XrefToResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "value": obj.get("value"), - "is_scalar": obj.get("is_scalar"), - "is_call": obj.get("is_call"), - "is_data": obj.get("is_data"), - "is_string": obj.get("is_string"), - "raw_data": obj.get("raw_data"), - "segment": SegmentInfo.from_dict(obj["segment"]) if obj.get("segment") is not None else None, - "orig_str_encoding": obj.get("orig_str_encoding"), - "xref_from": obj.get("xref_from") - }) - return _obj - -