diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index b1cda02b..57fb1bd8 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,10 +5,12 @@ README.md docs/AIAgentsApi.md docs/AICustomToolsApi.md +docs/AIFileStorageApi.md docs/AIInferenceApi.md docs/AIModelsApi.md docs/AIMonitoringApi.md docs/AISessionsApi.md +docs/AITaskManagementApi.md docs/AIToolsApi.md docs/AIVectorDatabaseApi.md docs/Application.md @@ -28,6 +30,7 @@ docs/ChatInference200ResponseResponseToolUseOneOf.md docs/ChatInference200ResponseResponseToolUseOneOf1Inner.md docs/ChatInference200ResponseResponseToolUseOneOfResult.md docs/ChatInference200ResponseUsage.md +docs/ChatInference202Response.md docs/ChatInferenceRequest.md docs/ChatInferenceRequestMessagesInner.md docs/ChatInferenceRequestMessagesInnerContent.md @@ -53,6 +56,7 @@ docs/ChatInferenceStreamRequestMessagesInnerContent.md docs/ChatWithAIAgent200Response.md docs/ChatWithAIAgent200ResponseResponse.md docs/ChatWithAIAgent200ResponseResponseUsage.md +docs/ChatWithAIAgent202Response.md docs/ChatWithAIAgentRequest.md docs/Command.md docs/CommandsApi.md @@ -90,6 +94,8 @@ docs/CreateCustomToolRequest.md docs/CreateEnvironment403Response.md docs/CreateEnvironmentRequest.md docs/CreateEnvironmentRequestEnvironmentInner.md +docs/CreateTask201Response.md +docs/CreateTaskRequest.md docs/CreateVectorCollection201Response.md docs/CreateVectorCollection201ResponseCollection.md docs/CreateVectorCollectionRequest.md @@ -101,6 +107,9 @@ docs/DeleteAIAgent200Response.md docs/DeleteAISession200Response.md docs/DeleteBackup200Response.md docs/DeleteCustomTool200Response.md +docs/DeleteFile200Response.md +docs/DeleteTask200Response.md +docs/DeleteTask409Response.md docs/DeleteVectorCollection200Response.md docs/DomainsApi.md docs/DownloadBackup200Response.md @@ -121,17 +130,29 @@ docs/GetAIModel200Response.md docs/GetAIModel200ResponseCapabilities.md docs/GetAIModel200ResponsePricing.md docs/GetAIModel404Response.md +docs/GetAIOrchestrationStatus200Response.md +docs/GetAIOrchestrationStatus200ResponseToolsInner.md +docs/GetAIOrchestrationStatus404Response.md docs/GetAISession200Response.md docs/GetAIToolExecutionStatus200Response.md docs/GetAIToolExecutionStatus200ResponseResult.md docs/GetAIToolExecutionStatus404Response.md docs/GetAIUsageStats200Response.md docs/GetAIUsageStats200ResponseByModelValue.md +docs/GetDependencyGraph200Response.md +docs/GetDurableExecutionStatus200Response.md +docs/GetDurableExecutionStatus200ResponseError.md +docs/GetDurableExecutionStatus200ResponsePendingToolsInner.md +docs/GetDurableExecutionStatus200ResponseResult.md +docs/GetDurableExecutionStatus200ResponseResultResponse.md +docs/GetDurableExecutionStatus200ResponseResultUsage.md docs/GetEcrLoginCredentials200Response.md docs/GetEnvironmentLogs200Response.md docs/GetEnvironmentLogs200ResponseLogEventsInner.md +docs/GetFile200Response.md docs/GetSshAccessCredentials200Response.md docs/GetSshAccessCredentials200ResponseCredentials.md +docs/GetTask200Response.md docs/GetVectorCollection200Response.md docs/GetVectorCollection200ResponseCollection.md docs/HeadersApi.md @@ -167,8 +188,13 @@ docs/ListBackups200ResponseBackupsInner.md docs/ListBackups422Response.md docs/ListCustomTools200Response.md docs/ListCustomTools200ResponseToolsInner.md +docs/ListFiles200Response.md +docs/ListFiles200ResponseFilesInner.md +docs/ListTasks200Response.md +docs/ListTasks200ResponseTasksInner.md docs/ListVectorCollections200Response.md docs/ListVectorCollections200ResponseCollectionsInner.md +docs/OrchestrationApi.md docs/OrganizationsApi.md docs/OrganizationsList200ResponseInner.md docs/PatchEnvironmentCompose202Response.md @@ -180,14 +206,18 @@ docs/ProjectsApi.md docs/PurgeApi.md docs/PurgeCreateRequest.md docs/QueryVectorCollection200Response.md +docs/QueryVectorCollection200ResponsePagination.md docs/QueryVectorCollection200ResponseResultsInner.md -docs/QueryVectorCollection200ResponseResultsInnerMetadata.md docs/QueryVectorCollectionRequest.md +docs/QueryVectorCollectionRequestFilter.md docs/RulesApi.md docs/SSHAccessApi.md docs/ScalingPolicy.md docs/ScalingPolicyApi.md docs/SpotConfiguration.md +docs/SubmitToolCallback200Response.md +docs/SubmitToolCallbackRequest.md +docs/SubmitToolCallbackRequestToolResultsInner.md docs/SyncOperation.md docs/SyncToEnvironmentRequest.md docs/UpdateAIAgent200Response.md @@ -199,6 +229,10 @@ docs/UpdateCronJobRequest.md docs/UpdateEnvironmentRequest.md docs/UpdateEnvironmentStateRequest.md docs/UpdateEnvironmentVariableRequest.md +docs/UpdateTask200Response.md +docs/UpdateTaskRequest.md +docs/UploadFile201Response.md +docs/UploadFileRequest.md docs/UploadVectorDocuments200Response.md docs/UploadVectorDocumentsRequest.md docs/UploadVectorDocumentsRequestDocumentsInner.md @@ -318,10 +352,12 @@ quantcdn/__init__.py quantcdn/api/__init__.py quantcdn/api/ai_agents_api.py quantcdn/api/ai_custom_tools_api.py +quantcdn/api/ai_file_storage_api.py quantcdn/api/ai_inference_api.py quantcdn/api/ai_models_api.py quantcdn/api/ai_monitoring_api.py quantcdn/api/ai_sessions_api.py +quantcdn/api/ai_task_management_api.py quantcdn/api/ai_tools_api.py quantcdn/api/ai_vector_database_api.py quantcdn/api/applications_api.py @@ -336,6 +372,7 @@ quantcdn/api/domains_api.py quantcdn/api/environments_api.py quantcdn/api/headers_api.py quantcdn/api/kv_api.py +quantcdn/api/orchestration_api.py quantcdn/api/organizations_api.py quantcdn/api/projects_api.py quantcdn/api/purge_api.py @@ -364,6 +401,7 @@ quantcdn/models/chat_inference200_response_response_tool_use_one_of.py quantcdn/models/chat_inference200_response_response_tool_use_one_of1_inner.py quantcdn/models/chat_inference200_response_response_tool_use_one_of_result.py quantcdn/models/chat_inference200_response_usage.py +quantcdn/models/chat_inference202_response.py quantcdn/models/chat_inference_request.py quantcdn/models/chat_inference_request_messages_inner.py quantcdn/models/chat_inference_request_messages_inner_content.py @@ -389,6 +427,7 @@ quantcdn/models/chat_inference_stream_request_messages_inner_content.py quantcdn/models/chat_with_ai_agent200_response.py quantcdn/models/chat_with_ai_agent200_response_response.py quantcdn/models/chat_with_ai_agent200_response_response_usage.py +quantcdn/models/chat_with_ai_agent202_response.py quantcdn/models/chat_with_ai_agent_request.py quantcdn/models/command.py quantcdn/models/compose.py @@ -421,6 +460,8 @@ quantcdn/models/create_custom_tool_request.py quantcdn/models/create_environment403_response.py quantcdn/models/create_environment_request.py quantcdn/models/create_environment_request_environment_inner.py +quantcdn/models/create_task201_response.py +quantcdn/models/create_task_request.py quantcdn/models/create_vector_collection201_response.py quantcdn/models/create_vector_collection201_response_collection.py quantcdn/models/create_vector_collection_request.py @@ -431,6 +472,9 @@ quantcdn/models/delete_ai_agent200_response.py quantcdn/models/delete_ai_session200_response.py quantcdn/models/delete_backup200_response.py quantcdn/models/delete_custom_tool200_response.py +quantcdn/models/delete_file200_response.py +quantcdn/models/delete_task200_response.py +quantcdn/models/delete_task409_response.py quantcdn/models/delete_vector_collection200_response.py quantcdn/models/download_backup200_response.py quantcdn/models/embeddings200_response.py @@ -449,17 +493,29 @@ quantcdn/models/get_ai_model200_response.py quantcdn/models/get_ai_model200_response_capabilities.py quantcdn/models/get_ai_model200_response_pricing.py quantcdn/models/get_ai_model404_response.py +quantcdn/models/get_ai_orchestration_status200_response.py +quantcdn/models/get_ai_orchestration_status200_response_tools_inner.py +quantcdn/models/get_ai_orchestration_status404_response.py quantcdn/models/get_ai_session200_response.py quantcdn/models/get_ai_tool_execution_status200_response.py quantcdn/models/get_ai_tool_execution_status200_response_result.py quantcdn/models/get_ai_tool_execution_status404_response.py quantcdn/models/get_ai_usage_stats200_response.py quantcdn/models/get_ai_usage_stats200_response_by_model_value.py +quantcdn/models/get_dependency_graph200_response.py +quantcdn/models/get_durable_execution_status200_response.py +quantcdn/models/get_durable_execution_status200_response_error.py +quantcdn/models/get_durable_execution_status200_response_pending_tools_inner.py +quantcdn/models/get_durable_execution_status200_response_result.py +quantcdn/models/get_durable_execution_status200_response_result_response.py +quantcdn/models/get_durable_execution_status200_response_result_usage.py quantcdn/models/get_ecr_login_credentials200_response.py quantcdn/models/get_environment_logs200_response.py quantcdn/models/get_environment_logs200_response_log_events_inner.py +quantcdn/models/get_file200_response.py quantcdn/models/get_ssh_access_credentials200_response.py quantcdn/models/get_ssh_access_credentials200_response_credentials.py +quantcdn/models/get_task200_response.py quantcdn/models/get_vector_collection200_response.py quantcdn/models/get_vector_collection200_response_collection.py quantcdn/models/image_generation200_response.py @@ -493,6 +549,10 @@ quantcdn/models/list_backups200_response_backups_inner.py quantcdn/models/list_backups422_response.py quantcdn/models/list_custom_tools200_response.py quantcdn/models/list_custom_tools200_response_tools_inner.py +quantcdn/models/list_files200_response.py +quantcdn/models/list_files200_response_files_inner.py +quantcdn/models/list_tasks200_response.py +quantcdn/models/list_tasks200_response_tasks_inner.py quantcdn/models/list_vector_collections200_response.py quantcdn/models/list_vector_collections200_response_collections_inner.py quantcdn/models/organizations_list200_response_inner.py @@ -503,11 +563,15 @@ quantcdn/models/patch_environment_compose_request.py quantcdn/models/patch_environment_compose_request_spot_configuration.py quantcdn/models/purge_create_request.py quantcdn/models/query_vector_collection200_response.py +quantcdn/models/query_vector_collection200_response_pagination.py quantcdn/models/query_vector_collection200_response_results_inner.py -quantcdn/models/query_vector_collection200_response_results_inner_metadata.py quantcdn/models/query_vector_collection_request.py +quantcdn/models/query_vector_collection_request_filter.py quantcdn/models/scaling_policy.py quantcdn/models/spot_configuration.py +quantcdn/models/submit_tool_callback200_response.py +quantcdn/models/submit_tool_callback_request.py +quantcdn/models/submit_tool_callback_request_tool_results_inner.py quantcdn/models/sync_operation.py quantcdn/models/sync_to_environment_request.py quantcdn/models/update_ai_agent200_response.py @@ -519,6 +583,10 @@ quantcdn/models/update_cron_job_request.py quantcdn/models/update_environment_request.py quantcdn/models/update_environment_state_request.py quantcdn/models/update_environment_variable_request.py +quantcdn/models/update_task200_response.py +quantcdn/models/update_task_request.py +quantcdn/models/upload_file201_response.py +quantcdn/models/upload_file_request.py quantcdn/models/upload_vector_documents200_response.py quantcdn/models/upload_vector_documents_request.py quantcdn/models/upload_vector_documents_request_documents_inner.py @@ -639,10 +707,12 @@ test-requirements.txt test/__init__.py test/test_ai_agents_api.py test/test_ai_custom_tools_api.py +test/test_ai_file_storage_api.py test/test_ai_inference_api.py test/test_ai_models_api.py test/test_ai_monitoring_api.py test/test_ai_sessions_api.py +test/test_ai_task_management_api.py test/test_ai_tools_api.py test/test_ai_vector_database_api.py test/test_application.py @@ -662,6 +732,7 @@ test/test_chat_inference200_response_response_tool_use_one_of.py test/test_chat_inference200_response_response_tool_use_one_of1_inner.py test/test_chat_inference200_response_response_tool_use_one_of_result.py test/test_chat_inference200_response_usage.py +test/test_chat_inference202_response.py test/test_chat_inference_request.py test/test_chat_inference_request_messages_inner.py test/test_chat_inference_request_messages_inner_content.py @@ -687,6 +758,7 @@ test/test_chat_inference_stream_request_messages_inner_content.py test/test_chat_with_ai_agent200_response.py test/test_chat_with_ai_agent200_response_response.py test/test_chat_with_ai_agent200_response_response_usage.py +test/test_chat_with_ai_agent202_response.py test/test_chat_with_ai_agent_request.py test/test_command.py test/test_commands_api.py @@ -724,6 +796,8 @@ test/test_create_custom_tool_request.py test/test_create_environment403_response.py test/test_create_environment_request.py test/test_create_environment_request_environment_inner.py +test/test_create_task201_response.py +test/test_create_task_request.py test/test_create_vector_collection201_response.py test/test_create_vector_collection201_response_collection.py test/test_create_vector_collection_request.py @@ -735,6 +809,9 @@ test/test_delete_ai_agent200_response.py test/test_delete_ai_session200_response.py test/test_delete_backup200_response.py test/test_delete_custom_tool200_response.py +test/test_delete_file200_response.py +test/test_delete_task200_response.py +test/test_delete_task409_response.py test/test_delete_vector_collection200_response.py test/test_domains_api.py test/test_download_backup200_response.py @@ -755,17 +832,29 @@ test/test_get_ai_model200_response.py test/test_get_ai_model200_response_capabilities.py test/test_get_ai_model200_response_pricing.py test/test_get_ai_model404_response.py +test/test_get_ai_orchestration_status200_response.py +test/test_get_ai_orchestration_status200_response_tools_inner.py +test/test_get_ai_orchestration_status404_response.py test/test_get_ai_session200_response.py test/test_get_ai_tool_execution_status200_response.py test/test_get_ai_tool_execution_status200_response_result.py test/test_get_ai_tool_execution_status404_response.py test/test_get_ai_usage_stats200_response.py test/test_get_ai_usage_stats200_response_by_model_value.py +test/test_get_dependency_graph200_response.py +test/test_get_durable_execution_status200_response.py +test/test_get_durable_execution_status200_response_error.py +test/test_get_durable_execution_status200_response_pending_tools_inner.py +test/test_get_durable_execution_status200_response_result.py +test/test_get_durable_execution_status200_response_result_response.py +test/test_get_durable_execution_status200_response_result_usage.py test/test_get_ecr_login_credentials200_response.py test/test_get_environment_logs200_response.py test/test_get_environment_logs200_response_log_events_inner.py +test/test_get_file200_response.py test/test_get_ssh_access_credentials200_response.py test/test_get_ssh_access_credentials200_response_credentials.py +test/test_get_task200_response.py test/test_get_vector_collection200_response.py test/test_get_vector_collection200_response_collection.py test/test_headers_api.py @@ -801,8 +890,13 @@ test/test_list_backups200_response_backups_inner.py test/test_list_backups422_response.py test/test_list_custom_tools200_response.py test/test_list_custom_tools200_response_tools_inner.py +test/test_list_files200_response.py +test/test_list_files200_response_files_inner.py +test/test_list_tasks200_response.py +test/test_list_tasks200_response_tasks_inner.py test/test_list_vector_collections200_response.py test/test_list_vector_collections200_response_collections_inner.py +test/test_orchestration_api.py test/test_organizations_api.py test/test_organizations_list200_response_inner.py test/test_patch_environment_compose202_response.py @@ -814,14 +908,18 @@ test/test_projects_api.py test/test_purge_api.py test/test_purge_create_request.py test/test_query_vector_collection200_response.py +test/test_query_vector_collection200_response_pagination.py test/test_query_vector_collection200_response_results_inner.py -test/test_query_vector_collection200_response_results_inner_metadata.py test/test_query_vector_collection_request.py +test/test_query_vector_collection_request_filter.py test/test_rules_api.py test/test_scaling_policy.py test/test_scaling_policy_api.py test/test_spot_configuration.py test/test_ssh_access_api.py +test/test_submit_tool_callback200_response.py +test/test_submit_tool_callback_request.py +test/test_submit_tool_callback_request_tool_results_inner.py test/test_sync_operation.py test/test_sync_to_environment_request.py test/test_update_ai_agent200_response.py @@ -833,6 +931,10 @@ test/test_update_cron_job_request.py test/test_update_environment_request.py test/test_update_environment_state_request.py test/test_update_environment_variable_request.py +test/test_update_task200_response.py +test/test_update_task_request.py +test/test_upload_file201_response.py +test/test_upload_file_request.py test/test_upload_vector_documents200_response.py test/test_upload_vector_documents_request.py test/test_upload_vector_documents_request_documents_inner.py diff --git a/README.md b/README.md index 041a6d79..13b3f72b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 4.8.0 +- API version: 4.9.0 - Package version: 1.0.0 - Generator version: 7.13.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -105,10 +105,16 @@ Class | Method | HTTP request | Description *AICustomToolsApi* | [**create_custom_tool**](docs/AICustomToolsApi.md#create_custom_tool) | **POST** /api/v3/organizations/{organisation}/ai/custom-tools | Register Custom Edge Function Tool *AICustomToolsApi* | [**delete_custom_tool**](docs/AICustomToolsApi.md#delete_custom_tool) | **DELETE** /api/v3/organizations/{organisation}/ai/custom-tools/{toolName} | Delete Custom Tool *AICustomToolsApi* | [**list_custom_tools**](docs/AICustomToolsApi.md#list_custom_tools) | **GET** /api/v3/organizations/{organisation}/ai/custom-tools | List Custom Tools +*AIFileStorageApi* | [**delete_file**](docs/AIFileStorageApi.md#delete_file) | **DELETE** /api/v3/organizations/{organisation}/ai/files/{fileId} | Delete File +*AIFileStorageApi* | [**get_file**](docs/AIFileStorageApi.md#get_file) | **GET** /api/v3/organizations/{organisation}/ai/files/{fileId} | Get File +*AIFileStorageApi* | [**list_files**](docs/AIFileStorageApi.md#list_files) | **GET** /api/v3/organizations/{organisation}/ai/files | List Files +*AIFileStorageApi* | [**upload_file**](docs/AIFileStorageApi.md#upload_file) | **POST** /api/v3/organizations/{organisation}/ai/files | Upload File to S3 *AIInferenceApi* | [**chat_inference**](docs/AIInferenceApi.md#chat_inference) | **POST** /api/v3/organizations/{organisation}/ai/chat | Chat inference via API Gateway (buffered responses) with multimodal support *AIInferenceApi* | [**chat_inference_stream**](docs/AIInferenceApi.md#chat_inference_stream) | **POST** /api/v3/organizations/{organisation}/ai/chat/stream | Chat inference via streaming endpoint (true HTTP streaming) with multimodal support *AIInferenceApi* | [**embeddings**](docs/AIInferenceApi.md#embeddings) | **POST** /api/v3/organizations/{organisation}/ai/embeddings | Generate text embeddings for semantic search and RAG applications +*AIInferenceApi* | [**get_durable_execution_status**](docs/AIInferenceApi.md#get_durable_execution_status) | **GET** /api/v3/organizations/{organisation}/ai/chat/executions/{identifier} | Get Durable Execution Status *AIInferenceApi* | [**image_generation**](docs/AIInferenceApi.md#image_generation) | **POST** /api/v3/organizations/{organisation}/ai/image-generation | Generate images with Amazon Nova Canvas +*AIInferenceApi* | [**submit_tool_callback**](docs/AIInferenceApi.md#submit_tool_callback) | **POST** /api/v3/organizations/{organisation}/ai/chat/callback | Submit Client Tool Results (Callback) *AIModelsApi* | [**get_ai_model**](docs/AIModelsApi.md#get_ai_model) | **GET** /api/v3/organizations/{organisation}/ai/models/{modelId} | Get AI Model Details *AIModelsApi* | [**list_ai_models**](docs/AIModelsApi.md#list_ai_models) | **GET** /api/v3/organizations/{organisation}/ai/models | List available AI models for an organization *AIMonitoringApi* | [**get_ai_usage_stats**](docs/AIMonitoringApi.md#get_ai_usage_stats) | **GET** /api/v3/organizations/{organisation}/ai/usage | Get AI usage statistics @@ -118,6 +124,13 @@ Class | Method | HTTP request | Description *AISessionsApi* | [**get_ai_session**](docs/AISessionsApi.md#get_ai_session) | **GET** /api/v3/organizations/{organisation}/ai/sessions/{sessionId} | Get a specific chat session *AISessionsApi* | [**list_ai_sessions**](docs/AISessionsApi.md#list_ai_sessions) | **GET** /api/v3/organizations/{organisation}/ai/sessions | List chat sessions with multi-tenant filtering *AISessionsApi* | [**update_ai_session**](docs/AISessionsApi.md#update_ai_session) | **PUT** /api/v3/organizations/{organisation}/ai/sessions/{sessionId} | Update Session +*AITaskManagementApi* | [**create_task**](docs/AITaskManagementApi.md#create_task) | **POST** /api/v3/organizations/{organisation}/ai/tasks | Create a new task +*AITaskManagementApi* | [**delete_task**](docs/AITaskManagementApi.md#delete_task) | **DELETE** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Delete a task +*AITaskManagementApi* | [**get_dependency_graph**](docs/AITaskManagementApi.md#get_dependency_graph) | **GET** /api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph | Get dependency graph for a task list +*AITaskManagementApi* | [**get_task**](docs/AITaskManagementApi.md#get_task) | **GET** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Get task details +*AITaskManagementApi* | [**list_tasks**](docs/AITaskManagementApi.md#list_tasks) | **GET** /api/v3/organizations/{organisation}/ai/tasks | List tasks with optional filtering +*AITaskManagementApi* | [**update_task**](docs/AITaskManagementApi.md#update_task) | **PUT** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Update a task +*AIToolsApi* | [**get_ai_orchestration_status**](docs/AIToolsApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status *AIToolsApi* | [**get_ai_tool_execution_status**](docs/AIToolsApi.md#get_ai_tool_execution_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions/{executionId} | Get async tool execution status and result *AIToolsApi* | [**list_ai_tool_executions**](docs/AIToolsApi.md#list_ai_tool_executions) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions | List tool executions for monitoring and debugging *AIToolsApi* | [**list_ai_tool_names**](docs/AIToolsApi.md#list_ai_tool_names) | **GET** /api/v3/organizations/{organisation}/ai/tools/names | List tool names only (lightweight response) @@ -192,6 +205,7 @@ Class | Method | HTTP request | Description *KVApi* | [**k_v_items_update**](docs/KVApi.md#k_v_items_update) | **PUT** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Update an item in a kv store *KVApi* | [**k_v_list**](docs/KVApi.md#k_v_list) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv | List key-value stores *KVApi* | [**k_v_show**](docs/KVApi.md#k_v_show) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id} | Get a kv store +*OrchestrationApi* | [**get_ai_orchestration_status**](docs/OrchestrationApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status *OrganizationsApi* | [**organizations_list**](docs/OrganizationsApi.md#organizations_list) | **GET** /api/v2/organizations | Retrieve all organizations *OrganizationsApi* | [**organizations_read**](docs/OrganizationsApi.md#organizations_read) | **GET** /api/v2/organizations/{organization} | Get details of a single organization *ProjectsApi* | [**projects_create**](docs/ProjectsApi.md#projects_create) | **POST** /api/v2/organizations/{organization}/projects | Create a new project @@ -276,6 +290,7 @@ Class | Method | HTTP request | Description - [ChatInference200ResponseResponseToolUseOneOf1Inner](docs/ChatInference200ResponseResponseToolUseOneOf1Inner.md) - [ChatInference200ResponseResponseToolUseOneOfResult](docs/ChatInference200ResponseResponseToolUseOneOfResult.md) - [ChatInference200ResponseUsage](docs/ChatInference200ResponseUsage.md) + - [ChatInference202Response](docs/ChatInference202Response.md) - [ChatInferenceRequest](docs/ChatInferenceRequest.md) - [ChatInferenceRequestMessagesInner](docs/ChatInferenceRequestMessagesInner.md) - [ChatInferenceRequestMessagesInnerContent](docs/ChatInferenceRequestMessagesInnerContent.md) @@ -301,6 +316,7 @@ Class | Method | HTTP request | Description - [ChatWithAIAgent200Response](docs/ChatWithAIAgent200Response.md) - [ChatWithAIAgent200ResponseResponse](docs/ChatWithAIAgent200ResponseResponse.md) - [ChatWithAIAgent200ResponseResponseUsage](docs/ChatWithAIAgent200ResponseResponseUsage.md) + - [ChatWithAIAgent202Response](docs/ChatWithAIAgent202Response.md) - [ChatWithAIAgentRequest](docs/ChatWithAIAgentRequest.md) - [Command](docs/Command.md) - [Compose](docs/Compose.md) @@ -333,6 +349,8 @@ Class | Method | HTTP request | Description - [CreateEnvironment403Response](docs/CreateEnvironment403Response.md) - [CreateEnvironmentRequest](docs/CreateEnvironmentRequest.md) - [CreateEnvironmentRequestEnvironmentInner](docs/CreateEnvironmentRequestEnvironmentInner.md) + - [CreateTask201Response](docs/CreateTask201Response.md) + - [CreateTaskRequest](docs/CreateTaskRequest.md) - [CreateVectorCollection201Response](docs/CreateVectorCollection201Response.md) - [CreateVectorCollection201ResponseCollection](docs/CreateVectorCollection201ResponseCollection.md) - [CreateVectorCollectionRequest](docs/CreateVectorCollectionRequest.md) @@ -343,6 +361,9 @@ Class | Method | HTTP request | Description - [DeleteAISession200Response](docs/DeleteAISession200Response.md) - [DeleteBackup200Response](docs/DeleteBackup200Response.md) - [DeleteCustomTool200Response](docs/DeleteCustomTool200Response.md) + - [DeleteFile200Response](docs/DeleteFile200Response.md) + - [DeleteTask200Response](docs/DeleteTask200Response.md) + - [DeleteTask409Response](docs/DeleteTask409Response.md) - [DeleteVectorCollection200Response](docs/DeleteVectorCollection200Response.md) - [DownloadBackup200Response](docs/DownloadBackup200Response.md) - [Embeddings200Response](docs/Embeddings200Response.md) @@ -361,17 +382,29 @@ Class | Method | HTTP request | Description - [GetAIModel200ResponseCapabilities](docs/GetAIModel200ResponseCapabilities.md) - [GetAIModel200ResponsePricing](docs/GetAIModel200ResponsePricing.md) - [GetAIModel404Response](docs/GetAIModel404Response.md) + - [GetAIOrchestrationStatus200Response](docs/GetAIOrchestrationStatus200Response.md) + - [GetAIOrchestrationStatus200ResponseToolsInner](docs/GetAIOrchestrationStatus200ResponseToolsInner.md) + - [GetAIOrchestrationStatus404Response](docs/GetAIOrchestrationStatus404Response.md) - [GetAISession200Response](docs/GetAISession200Response.md) - [GetAIToolExecutionStatus200Response](docs/GetAIToolExecutionStatus200Response.md) - [GetAIToolExecutionStatus200ResponseResult](docs/GetAIToolExecutionStatus200ResponseResult.md) - [GetAIToolExecutionStatus404Response](docs/GetAIToolExecutionStatus404Response.md) - [GetAIUsageStats200Response](docs/GetAIUsageStats200Response.md) - [GetAIUsageStats200ResponseByModelValue](docs/GetAIUsageStats200ResponseByModelValue.md) + - [GetDependencyGraph200Response](docs/GetDependencyGraph200Response.md) + - [GetDurableExecutionStatus200Response](docs/GetDurableExecutionStatus200Response.md) + - [GetDurableExecutionStatus200ResponseError](docs/GetDurableExecutionStatus200ResponseError.md) + - [GetDurableExecutionStatus200ResponsePendingToolsInner](docs/GetDurableExecutionStatus200ResponsePendingToolsInner.md) + - [GetDurableExecutionStatus200ResponseResult](docs/GetDurableExecutionStatus200ResponseResult.md) + - [GetDurableExecutionStatus200ResponseResultResponse](docs/GetDurableExecutionStatus200ResponseResultResponse.md) + - [GetDurableExecutionStatus200ResponseResultUsage](docs/GetDurableExecutionStatus200ResponseResultUsage.md) - [GetEcrLoginCredentials200Response](docs/GetEcrLoginCredentials200Response.md) - [GetEnvironmentLogs200Response](docs/GetEnvironmentLogs200Response.md) - [GetEnvironmentLogs200ResponseLogEventsInner](docs/GetEnvironmentLogs200ResponseLogEventsInner.md) + - [GetFile200Response](docs/GetFile200Response.md) - [GetSshAccessCredentials200Response](docs/GetSshAccessCredentials200Response.md) - [GetSshAccessCredentials200ResponseCredentials](docs/GetSshAccessCredentials200ResponseCredentials.md) + - [GetTask200Response](docs/GetTask200Response.md) - [GetVectorCollection200Response](docs/GetVectorCollection200Response.md) - [GetVectorCollection200ResponseCollection](docs/GetVectorCollection200ResponseCollection.md) - [ImageGeneration200Response](docs/ImageGeneration200Response.md) @@ -405,6 +438,10 @@ Class | Method | HTTP request | Description - [ListBackups422Response](docs/ListBackups422Response.md) - [ListCustomTools200Response](docs/ListCustomTools200Response.md) - [ListCustomTools200ResponseToolsInner](docs/ListCustomTools200ResponseToolsInner.md) + - [ListFiles200Response](docs/ListFiles200Response.md) + - [ListFiles200ResponseFilesInner](docs/ListFiles200ResponseFilesInner.md) + - [ListTasks200Response](docs/ListTasks200Response.md) + - [ListTasks200ResponseTasksInner](docs/ListTasks200ResponseTasksInner.md) - [ListVectorCollections200Response](docs/ListVectorCollections200Response.md) - [ListVectorCollections200ResponseCollectionsInner](docs/ListVectorCollections200ResponseCollectionsInner.md) - [OrganizationsList200ResponseInner](docs/OrganizationsList200ResponseInner.md) @@ -415,11 +452,15 @@ Class | Method | HTTP request | Description - [PatchEnvironmentComposeRequestSpotConfiguration](docs/PatchEnvironmentComposeRequestSpotConfiguration.md) - [PurgeCreateRequest](docs/PurgeCreateRequest.md) - [QueryVectorCollection200Response](docs/QueryVectorCollection200Response.md) + - [QueryVectorCollection200ResponsePagination](docs/QueryVectorCollection200ResponsePagination.md) - [QueryVectorCollection200ResponseResultsInner](docs/QueryVectorCollection200ResponseResultsInner.md) - - [QueryVectorCollection200ResponseResultsInnerMetadata](docs/QueryVectorCollection200ResponseResultsInnerMetadata.md) - [QueryVectorCollectionRequest](docs/QueryVectorCollectionRequest.md) + - [QueryVectorCollectionRequestFilter](docs/QueryVectorCollectionRequestFilter.md) - [ScalingPolicy](docs/ScalingPolicy.md) - [SpotConfiguration](docs/SpotConfiguration.md) + - [SubmitToolCallback200Response](docs/SubmitToolCallback200Response.md) + - [SubmitToolCallbackRequest](docs/SubmitToolCallbackRequest.md) + - [SubmitToolCallbackRequestToolResultsInner](docs/SubmitToolCallbackRequestToolResultsInner.md) - [SyncOperation](docs/SyncOperation.md) - [SyncToEnvironmentRequest](docs/SyncToEnvironmentRequest.md) - [UpdateAIAgent200Response](docs/UpdateAIAgent200Response.md) @@ -431,6 +472,10 @@ Class | Method | HTTP request | Description - [UpdateEnvironmentRequest](docs/UpdateEnvironmentRequest.md) - [UpdateEnvironmentStateRequest](docs/UpdateEnvironmentStateRequest.md) - [UpdateEnvironmentVariableRequest](docs/UpdateEnvironmentVariableRequest.md) + - [UpdateTask200Response](docs/UpdateTask200Response.md) + - [UpdateTaskRequest](docs/UpdateTaskRequest.md) + - [UploadFile201Response](docs/UploadFile201Response.md) + - [UploadFileRequest](docs/UploadFileRequest.md) - [UploadVectorDocuments200Response](docs/UploadVectorDocuments200Response.md) - [UploadVectorDocumentsRequest](docs/UploadVectorDocumentsRequest.md) - [UploadVectorDocumentsRequestDocumentsInner](docs/UploadVectorDocumentsRequestDocumentsInner.md) diff --git a/docs/AIAgentsApi.md b/docs/AIAgentsApi.md index d6775eca..8db99480 100644 --- a/docs/AIAgentsApi.md +++ b/docs/AIAgentsApi.md @@ -24,13 +24,27 @@ Initiates a chat session with a specific AI agent. The agent's configuration (sy * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available - * - All tools are auto-executed (no client confirmation) + * - All tools are auto-executed on cloud (no client confirmation needed) * - Temperature and model from agent config + * - Supports sync, streaming, and async modes + * + * **Execution Modes:** + * - **Sync Mode** (default): Standard JSON response, waits for completion + * - **Streaming Mode**: Set `stream: true` for SSE token-by-token responses + * - **Async Mode**: Set `async: true` for long-running tasks with polling + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running agent tasks + * - All tools are auto-executed on cloud (no `waiting_callback` state) + * - Poll `/ai/chat/executions/{requestId}` for status + * - Ideal for agents with slow tools (image generation, web search, etc.) * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity + * - Sessions work in all modes (sync, streaming, async) * - Use `/sessions/{sessionId}` to retrieve full conversation history ### Example @@ -105,7 +119,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Agent response generated successfully | - | +**200** | Agent response generated successfully (sync mode) | - | +**202** | Async execution started (when `async: true` in request) | - | **400** | Invalid request parameters | - | **403** | Access denied | - | **404** | Agent not found | - | diff --git a/docs/AIFileStorageApi.md b/docs/AIFileStorageApi.md new file mode 100644 index 00000000..84911e4b --- /dev/null +++ b/docs/AIFileStorageApi.md @@ -0,0 +1,366 @@ +# quantcdn.AIFileStorageApi + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_file**](AIFileStorageApi.md#delete_file) | **DELETE** /api/v3/organizations/{organisation}/ai/files/{fileId} | Delete File +[**get_file**](AIFileStorageApi.md#get_file) | **GET** /api/v3/organizations/{organisation}/ai/files/{fileId} | Get File +[**list_files**](AIFileStorageApi.md#list_files) | **GET** /api/v3/organizations/{organisation}/ai/files | List Files +[**upload_file**](AIFileStorageApi.md#upload_file) | **POST** /api/v3/organizations/{organisation}/ai/files | Upload File to S3 + + +# **delete_file** +> DeleteFile200Response delete_file(organisation, file_id) + +Delete File + +Deletes a file from S3 storage. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.delete_file200_response import DeleteFile200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIFileStorageApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + file_id = 'file_id_example' # str | The file ID + + try: + # Delete File + api_response = api_instance.delete_file(organisation, file_id) + print("The response of AIFileStorageApi->delete_file:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIFileStorageApi->delete_file: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **file_id** | **str**| The file ID | + +### Return type + +[**DeleteFile200Response**](DeleteFile200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | File deleted successfully | - | +**403** | Access denied | - | +**404** | File not found | - | +**500** | Failed to delete file | - | + +[[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_file** +> GetFile200Response get_file(organisation, file_id) + +Get File + +Retrieves file metadata and a presigned download URL (valid for 1 hour). + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.get_file200_response import GetFile200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIFileStorageApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + file_id = 'file_id_example' # str | The file ID + + try: + # Get File + api_response = api_instance.get_file(organisation, file_id) + print("The response of AIFileStorageApi->get_file:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIFileStorageApi->get_file: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **file_id** | **str**| The file ID | + +### Return type + +[**GetFile200Response**](GetFile200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | File metadata and download URL | - | +**403** | Access denied | - | +**404** | File not found | - | +**500** | Failed to get file | - | + +[[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_files** +> ListFiles200Response list_files(organisation, filter=filter, limit=limit, cursor=cursor) + +List Files + +Lists files stored in S3 for this organization with optional metadata filtering and pagination. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.list_files200_response import ListFiles200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIFileStorageApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + filter = '{}' # str | JSON-encoded metadata filter. Supports exact match and array contains filters. (optional) + limit = 50 # int | Maximum files to return (optional) (default to 50) + cursor = 'cursor_example' # str | Pagination cursor from previous response (optional) + + try: + # List Files + api_response = api_instance.list_files(organisation, filter=filter, limit=limit, cursor=cursor) + print("The response of AIFileStorageApi->list_files:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIFileStorageApi->list_files: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **filter** | **str**| JSON-encoded metadata filter. Supports exact match and array contains filters. | [optional] + **limit** | **int**| Maximum files to return | [optional] [default to 50] + **cursor** | **str**| Pagination cursor from previous response | [optional] + +### Return type + +[**ListFiles200Response**](ListFiles200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of files | - | +**400** | Invalid filter parameter | - | +**403** | Access denied | - | +**500** | Failed to list files | - | + +[[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** +> UploadFile201Response upload_file(organisation, upload_file_request) + +Upload File to S3 + +Uploads a file to S3 storage for later retrieval. + * + * **Two Upload Modes:** + * + * 1. **Direct Upload (≤7MB):** Send base64-encoded content in request body. + * + * 2. **Presigned URL Upload (any size):** Set `requestUploadUrl: true` to get a presigned S3 PUT URL, then upload directly to S3. + * + * **Supported Content Types:** + * - Images: image/png, image/jpeg, image/gif, image/webp, image/svg+xml + * - Documents: application/pdf, text/plain, text/markdown, text/html + * - Code: text/javascript, application/json, text/css, text/yaml + * - Archives: application/zip, application/gzip + * - Video: video/mp4, video/webm (use presigned URL for large files) + * + * **Metadata:** + * Attach any custom metadata for filtering. `artifactType` is auto-populated from contentType if not provided. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.upload_file201_response import UploadFile201Response +from quantcdn.models.upload_file_request import UploadFileRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIFileStorageApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + upload_file_request = quantcdn.UploadFileRequest() # UploadFileRequest | + + try: + # Upload File to S3 + api_response = api_instance.upload_file(organisation, upload_file_request) + print("The response of AIFileStorageApi->upload_file:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIFileStorageApi->upload_file: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **upload_file_request** | [**UploadFileRequest**](UploadFileRequest.md)| | + +### Return type + +[**UploadFile201Response**](UploadFile201Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | File uploaded or presigned URL generated | - | +**400** | Invalid request parameters | - | +**403** | Access denied | - | +**413** | File too large (use requestUploadUrl for large files) | - | +**500** | Failed to upload file | - | + +[[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/AIInferenceApi.md b/docs/AIInferenceApi.md index e04302f1..c3d82034 100644 --- a/docs/AIInferenceApi.md +++ b/docs/AIInferenceApi.md @@ -7,7 +7,9 @@ Method | HTTP request | Description [**chat_inference**](AIInferenceApi.md#chat_inference) | **POST** /api/v3/organizations/{organisation}/ai/chat | Chat inference via API Gateway (buffered responses) with multimodal support [**chat_inference_stream**](AIInferenceApi.md#chat_inference_stream) | **POST** /api/v3/organizations/{organisation}/ai/chat/stream | Chat inference via streaming endpoint (true HTTP streaming) with multimodal support [**embeddings**](AIInferenceApi.md#embeddings) | **POST** /api/v3/organizations/{organisation}/ai/embeddings | Generate text embeddings for semantic search and RAG applications +[**get_durable_execution_status**](AIInferenceApi.md#get_durable_execution_status) | **GET** /api/v3/organizations/{organisation}/ai/chat/executions/{identifier} | Get Durable Execution Status [**image_generation**](AIInferenceApi.md#image_generation) | **POST** /api/v3/organizations/{organisation}/ai/image-generation | Generate images with Amazon Nova Canvas +[**submit_tool_callback**](AIInferenceApi.md#submit_tool_callback) | **POST** /api/v3/organizations/{organisation}/ai/chat/callback | Submit Client Tool Results (Callback) # **chat_inference** @@ -16,6 +18,18 @@ Method | HTTP request | Description Chat inference via API Gateway (buffered responses) with multimodal support Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. + * + * **Execution Modes:** + * - **Sync Mode** (default): Standard JSON response, waits for completion (200 response) + * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running inference + * - Supports client-executed tools via `waiting_callback` state + * - Poll `/ai/chat/executions/{requestId}` for status + * - Submit client tool results via `/ai/chat/callback` + * - Ideal for complex prompts, large contexts, or client-side tools * * **Multimodal Support:** * - **Text**: Simple string content @@ -23,9 +37,10 @@ Sends requests to the AI API Gateway endpoint which buffers responses. Supports * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * - * **Supported Models:** - * - Amazon Nova Lite, Micro, Pro (all support multimodal) - * - Claude models (text only) + * **Supported Models (Multimodal):** + * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) + * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) + * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB @@ -110,7 +125,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Chat inference completed (buffered response) | - | +**200** | Chat inference completed (buffered response, sync mode) | - | +**202** | Async execution started (when `async: true` in request) | - | **500** | Failed to perform chat inference | - | [[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) @@ -121,6 +137,17 @@ Name | Type | Description | Notes Chat inference via streaming endpoint (true HTTP streaming) with multimodal support Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. + * + * **Execution Modes:** + * - **Streaming Mode** (default): Real-time SSE token-by-token responses + * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running inference + * - Supports client-executed tools via `waiting_callback` state + * - Poll `/ai/chat/executions/{requestId}` for status + * - Submit client tool results via `/ai/chat/callback` * * **Multimodal Support:** * - **Text**: Simple string content @@ -128,9 +155,10 @@ Streams responses from the AI streaming subdomain using Server-Sent Events (SSE) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * - * **Supported Models:** - * - Amazon Nova Lite, Micro, Pro (all support multimodal) - * - Claude models (text only) + * **Supported Models (Multimodal):** + * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) + * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) + * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB @@ -202,13 +230,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: text/event-stream + - **Accept**: text/event-stream, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Streaming response (text/event-stream) | - | +**200** | Streaming response (text/event-stream, sync mode) | - | +**202** | Async execution started (when `async: true` in request) | - | **500** | Failed to perform streaming inference | - | [[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) @@ -313,6 +342,110 @@ 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_durable_execution_status** +> GetDurableExecutionStatus200Response get_durable_execution_status(organisation, identifier) + +Get Durable Execution Status + +Poll the status of an async/durable chat execution. + * + * **When to use:** After starting chat inference with `async: true`, poll this endpoint + * to check execution status and retrieve results when complete. + * + * **Identifier:** Accepts either: + * - `requestId` (recommended): The short ID returned from the async request + * - `executionArn`: The full AWS Lambda durable execution ARN (must be URL-encoded) + * + * **Statuses:** + * - `pending`: Execution is starting (retry shortly) + * - `running`: Execution is in progress + * - `waiting_callback`: Execution paused, waiting for client tool results + * - `complete`: Execution finished successfully + * - `failed`: Execution failed with error + * + * **Client Tool Callback:** + * When status is `waiting_callback`, submit tool results via `POST /ai/chat/callback`. + * + * **Polling Recommendations:** + * - Start with 1 second delay, exponential backoff up to 30 seconds + * - Stop polling after 15 minutes (consider failed) + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.get_durable_execution_status200_response import GetDurableExecutionStatus200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIInferenceApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + identifier = 'XkdVWiEfSwMEPrw=' # str | Either the requestId from async response, or full executionArn (URL-encoded) + + try: + # Get Durable Execution Status + api_response = api_instance.get_durable_execution_status(organisation, identifier) + print("The response of AIInferenceApi->get_durable_execution_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIInferenceApi->get_durable_execution_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **identifier** | **str**| Either the requestId from async response, or full executionArn (URL-encoded) | + +### Return type + +[**GetDurableExecutionStatus200Response**](GetDurableExecutionStatus200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Execution status retrieved | - | +**404** | Execution not found | - | +**403** | Access denied | - | +**500** | Failed to retrieve execution status | - | + +[[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) + # **image_generation** > ImageGeneration200Response image_generation(organisation, image_generation_request) @@ -419,3 +552,101 @@ 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) +# **submit_tool_callback** +> SubmitToolCallback200Response submit_tool_callback(organisation, submit_tool_callback_request) + +Submit Client Tool Results (Callback) + +Submit tool execution results to resume a suspended durable execution. + * + * **When to use:** When polling the execution status returns `waiting_callback`, use this endpoint + * to submit the results of client-executed tools. The execution will then resume. + * + * **Flow:** + * 1. Start async chat with client-executed tools (`autoExecute: []` or tools not in autoExecute list) + * 2. Poll status until `waiting_callback` + * 3. Execute tools locally using `pendingTools` from status response + * 4. Submit results here with the `callbackId` + * 5. Poll status until `complete` + * + * **Important:** Each `callbackId` can only be used once. After submission, poll the execution + * status to see the updated state. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.submit_tool_callback200_response import SubmitToolCallback200Response +from quantcdn.models.submit_tool_callback_request import SubmitToolCallbackRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIInferenceApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + submit_tool_callback_request = quantcdn.SubmitToolCallbackRequest() # SubmitToolCallbackRequest | + + try: + # Submit Client Tool Results (Callback) + api_response = api_instance.submit_tool_callback(organisation, submit_tool_callback_request) + print("The response of AIInferenceApi->submit_tool_callback:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIInferenceApi->submit_tool_callback: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **submit_tool_callback_request** | [**SubmitToolCallbackRequest**](SubmitToolCallbackRequest.md)| | + +### Return type + +[**SubmitToolCallback200Response**](SubmitToolCallback200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Callback submitted successfully, execution will resume | - | +**400** | Invalid request (missing callbackId or toolResults) | - | +**404** | Callback not found or already processed | - | +**403** | Access denied | - | +**500** | Failed to submit callback | - | + +[[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/AITaskManagementApi.md b/docs/AITaskManagementApi.md new file mode 100644 index 00000000..97acbabf --- /dev/null +++ b/docs/AITaskManagementApi.md @@ -0,0 +1,589 @@ +# quantcdn.AITaskManagementApi + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_task**](AITaskManagementApi.md#create_task) | **POST** /api/v3/organizations/{organisation}/ai/tasks | Create a new task +[**delete_task**](AITaskManagementApi.md#delete_task) | **DELETE** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Delete a task +[**get_dependency_graph**](AITaskManagementApi.md#get_dependency_graph) | **GET** /api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph | Get dependency graph for a task list +[**get_task**](AITaskManagementApi.md#get_task) | **GET** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Get task details +[**list_tasks**](AITaskManagementApi.md#list_tasks) | **GET** /api/v3/organizations/{organisation}/ai/tasks | List tasks with optional filtering +[**update_task**](AITaskManagementApi.md#update_task) | **PUT** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Update a task + + +# **create_task** +> CreateTask201Response create_task(organisation, create_task_request) + +Create a new task + +Creates a new task for multi-agent coordination and workflow orchestration. + * + * **Key Features:** + * - **Persistent State**: Tasks survive across conversations and sessions + * - **Agent Assignment**: Pre-assign tasks to specific agents + * - **Task Lists**: Group related tasks using taskListId (implicit - no need to create lists first) + * - **Dependencies**: Define task dependencies for workflow orchestration + * - **Metadata**: Store flexible JSON metadata for task-specific data + * - **Progress Tracking**: Track progress from 0.0 to 1.0 + * + * **Use Cases:** + * - Break down complex requests into manageable steps + * - Assign work to specialized agents + * - Track long-running operations + * - Coordinate multi-agent workflows + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.create_task201_response import CreateTask201Response +from quantcdn.models.create_task_request import CreateTaskRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AITaskManagementApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + create_task_request = quantcdn.CreateTaskRequest() # CreateTaskRequest | + + try: + # Create a new task + api_response = api_instance.create_task(organisation, create_task_request) + print("The response of AITaskManagementApi->create_task:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AITaskManagementApi->create_task: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **create_task_request** | [**CreateTaskRequest**](CreateTaskRequest.md)| | + +### Return type + +[**CreateTask201Response**](CreateTask201Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Task created successfully | - | +**400** | Invalid request | - | +**500** | Failed to create task | - | + +[[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_task** +> DeleteTask200Response delete_task(organisation, task_id, cascade=cascade) + +Delete a task + +Permanently deletes a task. This action cannot be undone. + * + * **Dependency Protection:** + * By default, deletion is blocked if other tasks depend on this task (TASK_HAS_DEPENDENTS error). + * This prevents breaking workflows. + * + * **Cascade Delete:** + * Use `?cascade=true` to delete the task AND all tasks that depend on it recursively. + * Useful for cleaning up entire dependency chains. + * + * **Examples:** + * - DELETE /tasks/{id} - Deletes task if no dependents, otherwise returns 409 error + * - DELETE /tasks/{id}?cascade=true - Deletes task and all dependent tasks + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.delete_task200_response import DeleteTask200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AITaskManagementApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + task_id = 'task_id_example' # str | The task UUID + cascade = False # bool | If true, delete task and all dependent tasks recursively (optional) (default to False) + + try: + # Delete a task + api_response = api_instance.delete_task(organisation, task_id, cascade=cascade) + print("The response of AITaskManagementApi->delete_task:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AITaskManagementApi->delete_task: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **task_id** | **str**| The task UUID | + **cascade** | **bool**| If true, delete task and all dependent tasks recursively | [optional] [default to False] + +### Return type + +[**DeleteTask200Response**](DeleteTask200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Task deleted successfully | - | +**409** | Task has dependents - cannot delete without cascade | - | +**404** | Task not found | - | +**500** | Failed to delete task | - | + +[[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_dependency_graph** +> GetDependencyGraph200Response get_dependency_graph(organisation, task_list_id) + +Get dependency graph for a task list + +Returns the full dependency graph for all tasks in a task list. + * + * **Use Cases:** + * - Visualize task dependencies in a UI (DAG diagram) + * - Analyze workflow structure and critical paths + * - Find starting tasks (roots) and terminal tasks (leaves) + * - Plan parallel execution by identifying independent task groups + * + * **Response Structure:** + * - `taskCount`: Total number of tasks in the list + * - `roots`: Task IDs with no dependencies (starting points) + * - `leaves`: Task IDs with no dependents (terminal tasks) + * - `graph`: Adjacency list with each task's dependencies and dependents + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.get_dependency_graph200_response import GetDependencyGraph200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AITaskManagementApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + task_list_id = 'world-1' # str | The task list ID to get the dependency graph for + + try: + # Get dependency graph for a task list + api_response = api_instance.get_dependency_graph(organisation, task_list_id) + print("The response of AITaskManagementApi->get_dependency_graph:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AITaskManagementApi->get_dependency_graph: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **task_list_id** | **str**| The task list ID to get the dependency graph for | + +### Return type + +[**GetDependencyGraph200Response**](GetDependencyGraph200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Dependency graph retrieved successfully | - | +**500** | Failed to get dependency graph | - | + +[[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_task** +> GetTask200Response get_task(organisation, task_id) + +Get task details + +Retrieves detailed information about a specific task including status, progress, dependencies, and results. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.get_task200_response import GetTask200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AITaskManagementApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + task_id = 'task_id_example' # str | The task UUID + + try: + # Get task details + api_response = api_instance.get_task(organisation, task_id) + print("The response of AITaskManagementApi->get_task:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AITaskManagementApi->get_task: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **task_id** | **str**| The task UUID | + +### Return type + +[**GetTask200Response**](GetTask200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Task details retrieved successfully | - | +**404** | Task not found | - | +**500** | Failed to get task | - | + +[[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_tasks** +> ListTasks200Response list_tasks(organisation, task_list_id=task_list_id, status=status, assigned_agent_id=assigned_agent_id, limit=limit, depends_on=depends_on, include_details=include_details) + +List tasks with optional filtering + +Lists tasks for an organization with optional filtering. Filters can be combined for powerful queries. + * + * **Filter Examples:** + * - All tasks in a list: ?taskListId=world-1 + * - Pending tasks in a list: ?taskListId=world-1&status=pending + * - Tasks assigned to an agent: ?assignedAgentId=agent-code-reviewer + * - Combined: ?taskListId=world-1&status=in_progress&assignedAgentId=agent-1 + * + * **Reverse Dependency Lookup:** + * Use `dependsOn` to find tasks that depend on a specific task (waiting for it to complete): + * - ?dependsOn=task-123 - Returns task IDs only (lightweight) + * - ?dependsOn=task-123&includeDetails=true - Returns full task objects + * - ?dependsOn=task-123&status=pending - Pending tasks waiting for task-123 + * + * **Ordering:** + * Tasks are returned in reverse chronological order (most recent first). + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.list_tasks200_response import ListTasks200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AITaskManagementApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + task_list_id = 'world-1' # str | Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. (optional) + status = 'pending' # str | Filter tasks by status (optional) + assigned_agent_id = 'agent-code-reviewer' # str | Filter tasks by assigned agent ID (optional) + limit = 50 # int | Maximum number of tasks to return (default 50, max 100) (optional) (default to 50) + depends_on = '550e8400-e29b-41d4-a716-446655440000' # str | Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. (optional) + include_details = False # bool | When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). (optional) (default to False) + + try: + # List tasks with optional filtering + api_response = api_instance.list_tasks(organisation, task_list_id=task_list_id, status=status, assigned_agent_id=assigned_agent_id, limit=limit, depends_on=depends_on, include_details=include_details) + print("The response of AITaskManagementApi->list_tasks:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AITaskManagementApi->list_tasks: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **task_list_id** | **str**| Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. | [optional] + **status** | **str**| Filter tasks by status | [optional] + **assigned_agent_id** | **str**| Filter tasks by assigned agent ID | [optional] + **limit** | **int**| Maximum number of tasks to return (default 50, max 100) | [optional] [default to 50] + **depends_on** | **str**| Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. | [optional] + **include_details** | **bool**| When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). | [optional] [default to False] + +### Return type + +[**ListTasks200Response**](ListTasks200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Tasks retrieved successfully. Response format varies: standard returns {tasks, count}, with dependsOn returns {taskIds, count, dependsOn}, with dependsOn+includeDetails returns {taskIds, tasks, count, dependsOn} | - | +**500** | Failed to list tasks | - | + +[[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_task** +> UpdateTask200Response update_task(organisation, task_id, update_task_request) + +Update a task + +Updates an existing task. All fields are optional - only provided fields will be updated. + * + * **Status Transitions:** + * - Changing from **pending** to **in_progress** automatically sets startedAt timestamp + * - Changing to **completed**, **failed**, or **cancelled** automatically sets completedAt timestamp + * - Changing to **blocked** automatically sets blockedAt timestamp + * - Changing from **blocked** to **in_progress** or **pending** clears blocked fields + * - Completed tasks get a 30-day TTL for automatic cleanup + * + * **Progress Updates:** + * - Update progress (0.0 to 1.0) to track completion percentage + * - Update progressMessage for human-readable status updates + * - Set result object when task completes successfully + * - Set error string when task fails + * - Set blockedReason and blockedByTaskIds when blocking a task + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.update_task200_response import UpdateTask200Response +from quantcdn.models.update_task_request import UpdateTaskRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AITaskManagementApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + task_id = '550e8400-e29b-41d4-a716-446655440000' # str | The task UUID + update_task_request = quantcdn.UpdateTaskRequest() # UpdateTaskRequest | + + try: + # Update a task + api_response = api_instance.update_task(organisation, task_id, update_task_request) + print("The response of AITaskManagementApi->update_task:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AITaskManagementApi->update_task: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **task_id** | **str**| The task UUID | + **update_task_request** | [**UpdateTaskRequest**](UpdateTaskRequest.md)| | + +### Return type + +[**UpdateTask200Response**](UpdateTask200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Task updated successfully | - | +**400** | Invalid request | - | +**404** | Task not found | - | +**500** | Failed to update task | - | + +[[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/AIToolsApi.md b/docs/AIToolsApi.md index df5b8c99..c52e6584 100644 --- a/docs/AIToolsApi.md +++ b/docs/AIToolsApi.md @@ -4,12 +4,124 @@ All URIs are relative to *https://dashboard.quantcdn.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**get_ai_orchestration_status**](AIToolsApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status [**get_ai_tool_execution_status**](AIToolsApi.md#get_ai_tool_execution_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions/{executionId} | Get async tool execution status and result [**list_ai_tool_executions**](AIToolsApi.md#list_ai_tool_executions) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions | List tool executions for monitoring and debugging [**list_ai_tool_names**](AIToolsApi.md#list_ai_tool_names) | **GET** /api/v3/organizations/{organisation}/ai/tools/names | List tool names only (lightweight response) [**list_ai_tools**](AIToolsApi.md#list_ai_tools) | **GET** /api/v3/organizations/{organisation}/ai/tools | List available built-in tools for function calling +# **get_ai_orchestration_status** +> GetAIOrchestrationStatus200Response get_ai_orchestration_status(organisation, orchestration_id) + +Get Orchestration Status + +Retrieves the status and synthesized result of a multi-tool orchestration. + * + * **Orchestration Pattern:** + * When the AI requests multiple async tools simultaneously, an orchestration is created + * to track all tool executions and synthesize their results into a single coherent response. + * + * **Flow:** + * 1. AI requests multiple async tools (e.g., image generation + web search) + * 2. Chat API creates orchestration and returns orchestrationId + * 3. Tool Orchestrator Lambda polls all async tools + * 4. When all tools complete, Orchestrator synthesizes results using AI + * 5. Client polls this endpoint and receives final synthesized response + * + * **Status Values:** + * - pending: Orchestration created, tools not yet started + * - polling: Orchestrator is actively polling async tools + * - synthesizing: All tools complete, AI is synthesizing response + * - complete: Orchestration finished, synthesizedResponse available + * - failed: Orchestration failed, error available + * + * **Polling Recommendations:** + * - Poll every 2 seconds + * - Maximum poll time: 10 minutes + * - Orchestrator handles tool polling internally + * + * **Benefits over individual polling:** + * - Single poll endpoint for multiple async tools + * - AI synthesizes all results into coherent response + * - Answers the original user question, not just tool summaries + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.get_ai_orchestration_status200_response import GetAIOrchestrationStatus200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIToolsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + orchestration_id = 'orch_abc123def456789012345678901234' # str | Orchestration identifier for aggregated async tool executions + + try: + # Get Orchestration Status + api_response = api_instance.get_ai_orchestration_status(organisation, orchestration_id) + print("The response of AIToolsApi->get_ai_orchestration_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIToolsApi->get_ai_orchestration_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **orchestration_id** | **str**| Orchestration identifier for aggregated async tool executions | + +### Return type + +[**GetAIOrchestrationStatus200Response**](GetAIOrchestrationStatus200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Orchestration status retrieved successfully | - | +**404** | Orchestration not found (may have expired after 24h) | - | +**403** | Access denied | - | +**500** | Failed to retrieve orchestration status | - | + +[[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_tool_execution_status** > GetAIToolExecutionStatus200Response get_ai_tool_execution_status(organisation, execution_id) diff --git a/docs/AIVectorDatabaseApi.md b/docs/AIVectorDatabaseApi.md index eba69f7f..9ba325ae 100644 --- a/docs/AIVectorDatabaseApi.md +++ b/docs/AIVectorDatabaseApi.md @@ -355,11 +355,39 @@ Name | Type | Description | Notes Semantic Search Query Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. + * + * **Three Search Modes:** + * + * 1. **Text Query** - Provide `query` string, server generates embedding + * - Query text is embedded using the collection's embedding model + * - Embeddings are cached for repeated queries + * + * 2. **Vector Query** - Provide pre-computed `vector` array + * - Skip embedding generation (faster) + * - Useful when you've already embedded the query elsewhere + * - Vector dimension must match collection (e.g., 1024 for Titan v2) + * + * 3. **Metadata List** - Set `listByMetadata: true` with `filter` + * - Skip semantic search entirely + * - Return all documents matching the filter + * - Supports cursor-based pagination for large datasets + * - Results ordered by sortBy/sortOrder (default: created_at DESC) + * + * **Filtering:** + * - `filter.exact`: Exact match on metadata fields (AND logic) + * - `filter.contains`: Array contains filter for tags (ANY match) + * - Filters can be combined with semantic search or used alone with listByMetadata + * + * **Pagination (listByMetadata mode only):** + * - Use `cursor` from previous response's `nextCursor` to get next page + * - Uses keyset pagination for efficient traversal of large datasets + * - Control sort with `sortBy` and `sortOrder` * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases + * - List all artifacts by building/worker/tag ### Example diff --git a/docs/ChatInference202Response.md b/docs/ChatInference202Response.md new file mode 100644 index 00000000..76894d60 --- /dev/null +++ b/docs/ChatInference202Response.md @@ -0,0 +1,33 @@ +# ChatInference202Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request_id** | **str** | Unique request identifier for polling | +**session_id** | **str** | Session ID for conversation continuity | [optional] +**status** | **str** | Initial execution status | +**message** | **str** | Human-readable status message | [optional] +**poll_url** | **str** | URL to poll for execution status | + +## Example + +```python +from quantcdn.models.chat_inference202_response import ChatInference202Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ChatInference202Response from a JSON string +chat_inference202_response_instance = ChatInference202Response.from_json(json) +# print the JSON string representation of the object +print(ChatInference202Response.to_json()) + +# convert the object into a dict +chat_inference202_response_dict = chat_inference202_response_instance.to_dict() +# create an instance of ChatInference202Response from a dict +chat_inference202_response_from_dict = ChatInference202Response.from_dict(chat_inference202_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/ChatInferenceRequest.md b/docs/ChatInferenceRequest.md index 525d16b9..fb5bcdd0 100644 --- a/docs/ChatInferenceRequest.md +++ b/docs/ChatInferenceRequest.md @@ -8,13 +8,15 @@ Name | Type | Description | Notes **messages** | [**List[ChatInferenceRequestMessagesInner]**](ChatInferenceRequestMessagesInner.md) | Array of chat messages. Content can be a simple string or an array of content blocks for multimodal input. | **model_id** | **str** | Model ID. Use Nova models for multimodal support. | **temperature** | **float** | | [optional] [default to 0.7] -**max_tokens** | **int** | | [optional] [default to 1024] +**max_tokens** | **int** | Max tokens. Claude 4.5 supports up to 64k. | [optional] [default to 4096] **top_p** | **float** | | [optional] **stream** | **bool** | Ignored in buffered mode, always returns complete response | [optional] **system_prompt** | **str** | Optional custom system prompt. When tools are enabled, this is prepended with tool usage guidance. | [optional] **stop_sequences** | **List[str]** | Custom stop sequences | [optional] **response_format** | [**ChatInferenceRequestResponseFormat**](ChatInferenceRequestResponseFormat.md) | | [optional] **tool_config** | [**ChatInferenceRequestToolConfig**](ChatInferenceRequestToolConfig.md) | | [optional] +**session_id** | **str** | Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. | [optional] +**var_async** | **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of waiting for completion. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to False] ## Example diff --git a/docs/ChatInferenceStreamRequest.md b/docs/ChatInferenceStreamRequest.md index ca6fcb55..79263276 100644 --- a/docs/ChatInferenceStreamRequest.md +++ b/docs/ChatInferenceStreamRequest.md @@ -8,12 +8,14 @@ Name | Type | Description | Notes **messages** | [**List[ChatInferenceStreamRequestMessagesInner]**](ChatInferenceStreamRequestMessagesInner.md) | Array of chat messages. Content can be a simple string or an array of content blocks for multimodal input. | **model_id** | **str** | Model ID. Use Nova models for multimodal support. | **temperature** | **float** | | [optional] [default to 0.7] -**max_tokens** | **int** | | [optional] [default to 1024] +**max_tokens** | **int** | Max tokens. Claude 4.5 supports up to 64k. | [optional] [default to 4096] **top_p** | **float** | | [optional] **system_prompt** | **str** | Optional custom system prompt. When tools are enabled, this is prepended with tool usage guidance. | [optional] **stop_sequences** | **List[str]** | Custom stop sequences | [optional] **response_format** | [**ChatInferenceRequestResponseFormat**](ChatInferenceRequestResponseFormat.md) | | [optional] **tool_config** | [**ChatInferenceRequestToolConfig**](ChatInferenceRequestToolConfig.md) | | [optional] +**session_id** | **str** | Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. | [optional] +**var_async** | **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of streaming. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to False] ## Example diff --git a/docs/ChatWithAIAgent202Response.md b/docs/ChatWithAIAgent202Response.md new file mode 100644 index 00000000..cc99526e --- /dev/null +++ b/docs/ChatWithAIAgent202Response.md @@ -0,0 +1,35 @@ +# ChatWithAIAgent202Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request_id** | **str** | Unique request identifier for polling | +**agent_id** | **str** | The agent processing the request | +**agent_name** | **str** | Human-readable agent name | [optional] +**session_id** | **str** | Session ID (if provided) | [optional] +**status** | **str** | Initial status | +**message** | **str** | | [optional] +**poll_url** | **str** | URL to poll for execution status | + +## Example + +```python +from quantcdn.models.chat_with_ai_agent202_response import ChatWithAIAgent202Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ChatWithAIAgent202Response from a JSON string +chat_with_ai_agent202_response_instance = ChatWithAIAgent202Response.from_json(json) +# print the JSON string representation of the object +print(ChatWithAIAgent202Response.to_json()) + +# convert the object into a dict +chat_with_ai_agent202_response_dict = chat_with_ai_agent202_response_instance.to_dict() +# create an instance of ChatWithAIAgent202Response from a dict +chat_with_ai_agent202_response_from_dict = ChatWithAIAgent202Response.from_dict(chat_with_ai_agent202_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/ChatWithAIAgentRequest.md b/docs/ChatWithAIAgentRequest.md index d6750031..1a432ec1 100644 --- a/docs/ChatWithAIAgentRequest.md +++ b/docs/ChatWithAIAgentRequest.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **session_id** | **str** | Optional session ID to continue a conversation | [optional] **user_id** | **str** | Optional user identifier for session isolation | [optional] **stream** | **bool** | Whether to stream the response (SSE) | [optional] [default to False] +**var_async** | **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl. Use for long-running agent tasks. | [optional] [default to False] +**system** | **str** | Optional additional system prompt (appended to agent's configured prompt) | [optional] ## Example diff --git a/docs/CrawlersApi.md b/docs/CrawlersApi.md index 9aa91771..0ec4b56d 100644 --- a/docs/CrawlersApi.md +++ b/docs/CrawlersApi.md @@ -505,7 +505,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) # **crawlers_run** -> CrawlersRun200Response crawlers_run(organization, project, crawler, crawlers_run_request) +> CrawlersRun200Response crawlers_run(organization, project, crawler, crawlers_run_request=crawlers_run_request) Run a crawler @@ -543,11 +543,11 @@ with quantcdn.ApiClient(configuration) as api_client: organization = 'test-org' # str | Organization identifier project = 'test-project' # str | Project identifier crawler = '00000000-0000-0000-0000-000000000000' # str | Crawler identifier - crawlers_run_request = quantcdn.CrawlersRunRequest() # CrawlersRunRequest | + crawlers_run_request = quantcdn.CrawlersRunRequest() # CrawlersRunRequest | (optional) try: # Run a crawler - api_response = api_instance.crawlers_run(organization, project, crawler, crawlers_run_request) + api_response = api_instance.crawlers_run(organization, project, crawler, crawlers_run_request=crawlers_run_request) print("The response of CrawlersApi->crawlers_run:\n") pprint(api_response) except Exception as e: @@ -564,7 +564,7 @@ Name | Type | Description | Notes **organization** | **str**| Organization identifier | **project** | **str**| Project identifier | **crawler** | **str**| Crawler identifier | - **crawlers_run_request** | [**CrawlersRunRequest**](CrawlersRunRequest.md)| | + **crawlers_run_request** | [**CrawlersRunRequest**](CrawlersRunRequest.md)| | [optional] ### Return type diff --git a/docs/CrawlersRunRequest.md b/docs/CrawlersRunRequest.md index 2ef6a217..8b7e4c3b 100644 --- a/docs/CrawlersRunRequest.md +++ b/docs/CrawlersRunRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**urls** | **List[str]** | URLs to crawl | [optional] +**urls** | **List[str]** | Optional URLs to crawl (overrides crawler's default URL configuration). If not provided, the crawler will use its configured URLs or perform a full crawl. | [optional] ## Example diff --git a/docs/CreateTask201Response.md b/docs/CreateTask201Response.md new file mode 100644 index 00000000..59f0568b --- /dev/null +++ b/docs/CreateTask201Response.md @@ -0,0 +1,33 @@ +# CreateTask201Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_id** | **str** | | [optional] +**org_id** | **str** | | [optional] +**title** | **str** | | [optional] +**status** | **str** | | [optional] +**created_at** | **int** | | [optional] + +## Example + +```python +from quantcdn.models.create_task201_response import CreateTask201Response + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateTask201Response from a JSON string +create_task201_response_instance = CreateTask201Response.from_json(json) +# print the JSON string representation of the object +print(CreateTask201Response.to_json()) + +# convert the object into a dict +create_task201_response_dict = create_task201_response_instance.to_dict() +# create an instance of CreateTask201Response from a dict +create_task201_response_from_dict = CreateTask201Response.from_dict(create_task201_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/CreateTaskRequest.md b/docs/CreateTaskRequest.md new file mode 100644 index 00000000..86f2eab6 --- /dev/null +++ b/docs/CreateTaskRequest.md @@ -0,0 +1,39 @@ +# CreateTaskRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | Task title | +**description** | **str** | Detailed task description | [optional] +**task_list_id** | **str** | Task list ID for grouping related tasks (implicit - lists are created automatically) | [optional] +**status** | **str** | Initial task status | [optional] [default to 'pending'] +**assigned_agent_id** | **str** | Pre-assign task to specific agent | [optional] +**created_by_agent_id** | **str** | Agent ID that created this task | [optional] +**depends_on** | **List[str]** | Task IDs that must complete before this task can start | [optional] +**metadata** | **object** | Flexible JSON metadata for task-specific data | [optional] +**max_retries** | **int** | Maximum retry attempts on failure | [optional] [default to 3] +**blocked_reason** | **str** | Reason task is blocked (when status is blocked) | [optional] +**blocked_by_task_ids** | **List[str]** | Task IDs that are blocking this task | [optional] + +## Example + +```python +from quantcdn.models.create_task_request import CreateTaskRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateTaskRequest from a JSON string +create_task_request_instance = CreateTaskRequest.from_json(json) +# print the JSON string representation of the object +print(CreateTaskRequest.to_json()) + +# convert the object into a dict +create_task_request_dict = create_task_request_instance.to_dict() +# create an instance of CreateTaskRequest from a dict +create_task_request_from_dict = CreateTaskRequest.from_dict(create_task_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/DeleteFile200Response.md b/docs/DeleteFile200Response.md new file mode 100644 index 00000000..6b5741f9 --- /dev/null +++ b/docs/DeleteFile200Response.md @@ -0,0 +1,30 @@ +# DeleteFile200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] +**file_id** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.delete_file200_response import DeleteFile200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteFile200Response from a JSON string +delete_file200_response_instance = DeleteFile200Response.from_json(json) +# print the JSON string representation of the object +print(DeleteFile200Response.to_json()) + +# convert the object into a dict +delete_file200_response_dict = delete_file200_response_instance.to_dict() +# create an instance of DeleteFile200Response from a dict +delete_file200_response_from_dict = DeleteFile200Response.from_dict(delete_file200_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/DeleteTask200Response.md b/docs/DeleteTask200Response.md new file mode 100644 index 00000000..771b016c --- /dev/null +++ b/docs/DeleteTask200Response.md @@ -0,0 +1,31 @@ +# DeleteTask200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted** | **bool** | | [optional] +**deleted_count** | **int** | Number of tasks deleted (more than 1 for cascade) | [optional] +**deleted_task_ids** | **List[str]** | | [optional] + +## Example + +```python +from quantcdn.models.delete_task200_response import DeleteTask200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteTask200Response from a JSON string +delete_task200_response_instance = DeleteTask200Response.from_json(json) +# print the JSON string representation of the object +print(DeleteTask200Response.to_json()) + +# convert the object into a dict +delete_task200_response_dict = delete_task200_response_instance.to_dict() +# create an instance of DeleteTask200Response from a dict +delete_task200_response_from_dict = DeleteTask200Response.from_dict(delete_task200_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/DeleteTask409Response.md b/docs/DeleteTask409Response.md new file mode 100644 index 00000000..589d306e --- /dev/null +++ b/docs/DeleteTask409Response.md @@ -0,0 +1,31 @@ +# DeleteTask409Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | | [optional] +**message** | **str** | | [optional] +**dependent_task_ids** | **List[str]** | | [optional] + +## Example + +```python +from quantcdn.models.delete_task409_response import DeleteTask409Response + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteTask409Response from a JSON string +delete_task409_response_instance = DeleteTask409Response.from_json(json) +# print the JSON string representation of the object +print(DeleteTask409Response.to_json()) + +# convert the object into a dict +delete_task409_response_dict = delete_task409_response_instance.to_dict() +# create an instance of DeleteTask409Response from a dict +delete_task409_response_from_dict = DeleteTask409Response.from_dict(delete_task409_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/GetAIOrchestrationStatus200Response.md b/docs/GetAIOrchestrationStatus200Response.md new file mode 100644 index 00000000..dc5132ae --- /dev/null +++ b/docs/GetAIOrchestrationStatus200Response.md @@ -0,0 +1,37 @@ +# GetAIOrchestrationStatus200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**orchestration_id** | **str** | Unique orchestration identifier | +**status** | **str** | Current orchestration status | +**tool_count** | **int** | Total number of async tools in this orchestration | +**completed_tools** | **int** | Number of tools that have completed | [optional] +**synthesized_response** | **str** | AI-synthesized response combining all tool results (only present when status=complete) | [optional] +**tools** | [**List[GetAIOrchestrationStatus200ResponseToolsInner]**](GetAIOrchestrationStatus200ResponseToolsInner.md) | Status of individual tool executions | [optional] +**error** | **str** | Error message (only present when status=failed) | [optional] +**created_at** | **datetime** | When orchestration was created | +**completed_at** | **datetime** | When orchestration completed (if status in complete or failed) | [optional] + +## Example + +```python +from quantcdn.models.get_ai_orchestration_status200_response import GetAIOrchestrationStatus200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAIOrchestrationStatus200Response from a JSON string +get_ai_orchestration_status200_response_instance = GetAIOrchestrationStatus200Response.from_json(json) +# print the JSON string representation of the object +print(GetAIOrchestrationStatus200Response.to_json()) + +# convert the object into a dict +get_ai_orchestration_status200_response_dict = get_ai_orchestration_status200_response_instance.to_dict() +# create an instance of GetAIOrchestrationStatus200Response from a dict +get_ai_orchestration_status200_response_from_dict = GetAIOrchestrationStatus200Response.from_dict(get_ai_orchestration_status200_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/GetAIOrchestrationStatus200ResponseToolsInner.md b/docs/GetAIOrchestrationStatus200ResponseToolsInner.md new file mode 100644 index 00000000..86838c03 --- /dev/null +++ b/docs/GetAIOrchestrationStatus200ResponseToolsInner.md @@ -0,0 +1,33 @@ +# GetAIOrchestrationStatus200ResponseToolsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**execution_id** | **str** | | [optional] +**tool_name** | **str** | | [optional] +**status** | **str** | | [optional] +**result** | **object** | Tool result (if complete) | [optional] +**error** | **str** | Error message (if failed) | [optional] + +## Example + +```python +from quantcdn.models.get_ai_orchestration_status200_response_tools_inner import GetAIOrchestrationStatus200ResponseToolsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAIOrchestrationStatus200ResponseToolsInner from a JSON string +get_ai_orchestration_status200_response_tools_inner_instance = GetAIOrchestrationStatus200ResponseToolsInner.from_json(json) +# print the JSON string representation of the object +print(GetAIOrchestrationStatus200ResponseToolsInner.to_json()) + +# convert the object into a dict +get_ai_orchestration_status200_response_tools_inner_dict = get_ai_orchestration_status200_response_tools_inner_instance.to_dict() +# create an instance of GetAIOrchestrationStatus200ResponseToolsInner from a dict +get_ai_orchestration_status200_response_tools_inner_from_dict = GetAIOrchestrationStatus200ResponseToolsInner.from_dict(get_ai_orchestration_status200_response_tools_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/GetAIOrchestrationStatus404Response.md b/docs/GetAIOrchestrationStatus404Response.md new file mode 100644 index 00000000..333c02e6 --- /dev/null +++ b/docs/GetAIOrchestrationStatus404Response.md @@ -0,0 +1,30 @@ +# GetAIOrchestrationStatus404Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | | [optional] +**orchestration_id** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.get_ai_orchestration_status404_response import GetAIOrchestrationStatus404Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAIOrchestrationStatus404Response from a JSON string +get_ai_orchestration_status404_response_instance = GetAIOrchestrationStatus404Response.from_json(json) +# print the JSON string representation of the object +print(GetAIOrchestrationStatus404Response.to_json()) + +# convert the object into a dict +get_ai_orchestration_status404_response_dict = get_ai_orchestration_status404_response_instance.to_dict() +# create an instance of GetAIOrchestrationStatus404Response from a dict +get_ai_orchestration_status404_response_from_dict = GetAIOrchestrationStatus404Response.from_dict(get_ai_orchestration_status404_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/GetDependencyGraph200Response.md b/docs/GetDependencyGraph200Response.md new file mode 100644 index 00000000..378efb28 --- /dev/null +++ b/docs/GetDependencyGraph200Response.md @@ -0,0 +1,33 @@ +# GetDependencyGraph200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_list_id** | **str** | | [optional] +**task_count** | **int** | | [optional] +**roots** | **List[str]** | Task IDs with no dependencies | [optional] +**leaves** | **List[str]** | Task IDs with no dependents | [optional] +**graph** | **object** | Adjacency list with task summaries, dependsOn, and dependents arrays | [optional] + +## Example + +```python +from quantcdn.models.get_dependency_graph200_response import GetDependencyGraph200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDependencyGraph200Response from a JSON string +get_dependency_graph200_response_instance = GetDependencyGraph200Response.from_json(json) +# print the JSON string representation of the object +print(GetDependencyGraph200Response.to_json()) + +# convert the object into a dict +get_dependency_graph200_response_dict = get_dependency_graph200_response_instance.to_dict() +# create an instance of GetDependencyGraph200Response from a dict +get_dependency_graph200_response_from_dict = GetDependencyGraph200Response.from_dict(get_dependency_graph200_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/GetDurableExecutionStatus200Response.md b/docs/GetDurableExecutionStatus200Response.md new file mode 100644 index 00000000..72efc022 --- /dev/null +++ b/docs/GetDurableExecutionStatus200Response.md @@ -0,0 +1,36 @@ +# GetDurableExecutionStatus200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request_id** | **str** | | [optional] +**execution_arn** | **str** | | [optional] +**status** | **str** | | [optional] +**aws_status** | **str** | Raw AWS Step Functions status | [optional] +**callback_id** | **str** | Present when status is waiting_callback - use with /chat/callback | [optional] +**pending_tools** | [**List[GetDurableExecutionStatus200ResponsePendingToolsInner]**](GetDurableExecutionStatus200ResponsePendingToolsInner.md) | Present when status is waiting_callback - tools waiting for results | [optional] +**result** | [**GetDurableExecutionStatus200ResponseResult**](GetDurableExecutionStatus200ResponseResult.md) | | [optional] +**error** | [**GetDurableExecutionStatus200ResponseError**](GetDurableExecutionStatus200ResponseError.md) | | [optional] + +## Example + +```python +from quantcdn.models.get_durable_execution_status200_response import GetDurableExecutionStatus200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDurableExecutionStatus200Response from a JSON string +get_durable_execution_status200_response_instance = GetDurableExecutionStatus200Response.from_json(json) +# print the JSON string representation of the object +print(GetDurableExecutionStatus200Response.to_json()) + +# convert the object into a dict +get_durable_execution_status200_response_dict = get_durable_execution_status200_response_instance.to_dict() +# create an instance of GetDurableExecutionStatus200Response from a dict +get_durable_execution_status200_response_from_dict = GetDurableExecutionStatus200Response.from_dict(get_durable_execution_status200_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/GetDurableExecutionStatus200ResponseError.md b/docs/GetDurableExecutionStatus200ResponseError.md new file mode 100644 index 00000000..2b8f5f55 --- /dev/null +++ b/docs/GetDurableExecutionStatus200ResponseError.md @@ -0,0 +1,31 @@ +# GetDurableExecutionStatus200ResponseError + +Present when status is failed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_message** | **str** | | [optional] +**error_type** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.get_durable_execution_status200_response_error import GetDurableExecutionStatus200ResponseError + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDurableExecutionStatus200ResponseError from a JSON string +get_durable_execution_status200_response_error_instance = GetDurableExecutionStatus200ResponseError.from_json(json) +# print the JSON string representation of the object +print(GetDurableExecutionStatus200ResponseError.to_json()) + +# convert the object into a dict +get_durable_execution_status200_response_error_dict = get_durable_execution_status200_response_error_instance.to_dict() +# create an instance of GetDurableExecutionStatus200ResponseError from a dict +get_durable_execution_status200_response_error_from_dict = GetDurableExecutionStatus200ResponseError.from_dict(get_durable_execution_status200_response_error_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/GetDurableExecutionStatus200ResponsePendingToolsInner.md b/docs/GetDurableExecutionStatus200ResponsePendingToolsInner.md new file mode 100644 index 00000000..2a26082e --- /dev/null +++ b/docs/GetDurableExecutionStatus200ResponsePendingToolsInner.md @@ -0,0 +1,31 @@ +# GetDurableExecutionStatus200ResponsePendingToolsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**tool_use_id** | **str** | | [optional] +**input** | **object** | | [optional] + +## Example + +```python +from quantcdn.models.get_durable_execution_status200_response_pending_tools_inner import GetDurableExecutionStatus200ResponsePendingToolsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDurableExecutionStatus200ResponsePendingToolsInner from a JSON string +get_durable_execution_status200_response_pending_tools_inner_instance = GetDurableExecutionStatus200ResponsePendingToolsInner.from_json(json) +# print the JSON string representation of the object +print(GetDurableExecutionStatus200ResponsePendingToolsInner.to_json()) + +# convert the object into a dict +get_durable_execution_status200_response_pending_tools_inner_dict = get_durable_execution_status200_response_pending_tools_inner_instance.to_dict() +# create an instance of GetDurableExecutionStatus200ResponsePendingToolsInner from a dict +get_durable_execution_status200_response_pending_tools_inner_from_dict = GetDurableExecutionStatus200ResponsePendingToolsInner.from_dict(get_durable_execution_status200_response_pending_tools_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/GetDurableExecutionStatus200ResponseResult.md b/docs/GetDurableExecutionStatus200ResponseResult.md new file mode 100644 index 00000000..32d7c35d --- /dev/null +++ b/docs/GetDurableExecutionStatus200ResponseResult.md @@ -0,0 +1,32 @@ +# GetDurableExecutionStatus200ResponseResult + +Present when status is complete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**response** | [**GetDurableExecutionStatus200ResponseResultResponse**](GetDurableExecutionStatus200ResponseResultResponse.md) | | [optional] +**usage** | [**GetDurableExecutionStatus200ResponseResultUsage**](GetDurableExecutionStatus200ResponseResultUsage.md) | | [optional] +**tool_executions** | **List[object]** | | [optional] + +## Example + +```python +from quantcdn.models.get_durable_execution_status200_response_result import GetDurableExecutionStatus200ResponseResult + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDurableExecutionStatus200ResponseResult from a JSON string +get_durable_execution_status200_response_result_instance = GetDurableExecutionStatus200ResponseResult.from_json(json) +# print the JSON string representation of the object +print(GetDurableExecutionStatus200ResponseResult.to_json()) + +# convert the object into a dict +get_durable_execution_status200_response_result_dict = get_durable_execution_status200_response_result_instance.to_dict() +# create an instance of GetDurableExecutionStatus200ResponseResult from a dict +get_durable_execution_status200_response_result_from_dict = GetDurableExecutionStatus200ResponseResult.from_dict(get_durable_execution_status200_response_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/GetDurableExecutionStatus200ResponseResultResponse.md b/docs/GetDurableExecutionStatus200ResponseResultResponse.md new file mode 100644 index 00000000..bef44a05 --- /dev/null +++ b/docs/GetDurableExecutionStatus200ResponseResultResponse.md @@ -0,0 +1,30 @@ +# GetDurableExecutionStatus200ResponseResultResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | **str** | | [optional] +**content** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.get_durable_execution_status200_response_result_response import GetDurableExecutionStatus200ResponseResultResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDurableExecutionStatus200ResponseResultResponse from a JSON string +get_durable_execution_status200_response_result_response_instance = GetDurableExecutionStatus200ResponseResultResponse.from_json(json) +# print the JSON string representation of the object +print(GetDurableExecutionStatus200ResponseResultResponse.to_json()) + +# convert the object into a dict +get_durable_execution_status200_response_result_response_dict = get_durable_execution_status200_response_result_response_instance.to_dict() +# create an instance of GetDurableExecutionStatus200ResponseResultResponse from a dict +get_durable_execution_status200_response_result_response_from_dict = GetDurableExecutionStatus200ResponseResultResponse.from_dict(get_durable_execution_status200_response_result_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/GetDurableExecutionStatus200ResponseResultUsage.md b/docs/GetDurableExecutionStatus200ResponseResultUsage.md new file mode 100644 index 00000000..94217cfa --- /dev/null +++ b/docs/GetDurableExecutionStatus200ResponseResultUsage.md @@ -0,0 +1,31 @@ +# GetDurableExecutionStatus200ResponseResultUsage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input_tokens** | **int** | | [optional] +**output_tokens** | **int** | | [optional] +**total_tokens** | **int** | | [optional] + +## Example + +```python +from quantcdn.models.get_durable_execution_status200_response_result_usage import GetDurableExecutionStatus200ResponseResultUsage + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDurableExecutionStatus200ResponseResultUsage from a JSON string +get_durable_execution_status200_response_result_usage_instance = GetDurableExecutionStatus200ResponseResultUsage.from_json(json) +# print the JSON string representation of the object +print(GetDurableExecutionStatus200ResponseResultUsage.to_json()) + +# convert the object into a dict +get_durable_execution_status200_response_result_usage_dict = get_durable_execution_status200_response_result_usage_instance.to_dict() +# create an instance of GetDurableExecutionStatus200ResponseResultUsage from a dict +get_durable_execution_status200_response_result_usage_from_dict = GetDurableExecutionStatus200ResponseResultUsage.from_dict(get_durable_execution_status200_response_result_usage_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/GetFile200Response.md b/docs/GetFile200Response.md new file mode 100644 index 00000000..0dca04dc --- /dev/null +++ b/docs/GetFile200Response.md @@ -0,0 +1,36 @@ +# GetFile200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_id** | **str** | | [optional] +**s3_uri** | **str** | | [optional] +**url** | **str** | Presigned download URL (1 hour) | [optional] +**filename** | **str** | | [optional] +**content_type** | **str** | | [optional] +**size** | **int** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | | [optional] + +## Example + +```python +from quantcdn.models.get_file200_response import GetFile200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetFile200Response from a JSON string +get_file200_response_instance = GetFile200Response.from_json(json) +# print the JSON string representation of the object +print(GetFile200Response.to_json()) + +# convert the object into a dict +get_file200_response_dict = get_file200_response_instance.to_dict() +# create an instance of GetFile200Response from a dict +get_file200_response_from_dict = GetFile200Response.from_dict(get_file200_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/GetTask200Response.md b/docs/GetTask200Response.md new file mode 100644 index 00000000..5a101619 --- /dev/null +++ b/docs/GetTask200Response.md @@ -0,0 +1,52 @@ +# GetTask200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_id** | **str** | | [optional] +**org_id** | **str** | | [optional] +**task_list_id** | **str** | | [optional] +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**status** | **str** | | [optional] +**assigned_agent_id** | **str** | | [optional] +**created_by_agent_id** | **str** | | [optional] +**depends_on** | **List[str]** | | [optional] +**metadata** | **object** | | [optional] +**progress** | **float** | | [optional] +**progress_message** | **str** | | [optional] +**result** | **object** | Task result data when completed | [optional] +**error** | **str** | Error message if status is failed | [optional] +**retry_count** | **int** | | [optional] +**max_retries** | **int** | | [optional] +**created_at** | **int** | Unix timestamp in milliseconds | [optional] +**updated_at** | **int** | Unix timestamp in milliseconds | [optional] +**started_at** | **int** | When status changed to in_progress | [optional] +**completed_at** | **int** | When task completed/failed/cancelled | [optional] +**expires_at** | **int** | TTL timestamp for completed tasks | [optional] +**blocked_reason** | **str** | Reason task is blocked | [optional] +**blocked_by_task_ids** | **List[str]** | Task IDs that are blocking this task | [optional] +**blocked_at** | **int** | When status changed to blocked | [optional] + +## Example + +```python +from quantcdn.models.get_task200_response import GetTask200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTask200Response from a JSON string +get_task200_response_instance = GetTask200Response.from_json(json) +# print the JSON string representation of the object +print(GetTask200Response.to_json()) + +# convert the object into a dict +get_task200_response_dict = get_task200_response_instance.to_dict() +# create an instance of GetTask200Response from a dict +get_task200_response_from_dict = GetTask200Response.from_dict(get_task200_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/ListFiles200Response.md b/docs/ListFiles200Response.md new file mode 100644 index 00000000..629e2fc1 --- /dev/null +++ b/docs/ListFiles200Response.md @@ -0,0 +1,31 @@ +# ListFiles200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**files** | [**List[ListFiles200ResponseFilesInner]**](ListFiles200ResponseFilesInner.md) | | [optional] +**next_cursor** | **str** | Cursor for next page | [optional] +**has_more** | **bool** | True if more results available | [optional] + +## Example + +```python +from quantcdn.models.list_files200_response import ListFiles200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ListFiles200Response from a JSON string +list_files200_response_instance = ListFiles200Response.from_json(json) +# print the JSON string representation of the object +print(ListFiles200Response.to_json()) + +# convert the object into a dict +list_files200_response_dict = list_files200_response_instance.to_dict() +# create an instance of ListFiles200Response from a dict +list_files200_response_from_dict = ListFiles200Response.from_dict(list_files200_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/ListFiles200ResponseFilesInner.md b/docs/ListFiles200ResponseFilesInner.md new file mode 100644 index 00000000..28159e85 --- /dev/null +++ b/docs/ListFiles200ResponseFilesInner.md @@ -0,0 +1,34 @@ +# ListFiles200ResponseFilesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_id** | **str** | | [optional] +**filename** | **str** | | [optional] +**content_type** | **str** | | [optional] +**size** | **int** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | | [optional] + +## Example + +```python +from quantcdn.models.list_files200_response_files_inner import ListFiles200ResponseFilesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ListFiles200ResponseFilesInner from a JSON string +list_files200_response_files_inner_instance = ListFiles200ResponseFilesInner.from_json(json) +# print the JSON string representation of the object +print(ListFiles200ResponseFilesInner.to_json()) + +# convert the object into a dict +list_files200_response_files_inner_dict = list_files200_response_files_inner_instance.to_dict() +# create an instance of ListFiles200ResponseFilesInner from a dict +list_files200_response_files_inner_from_dict = ListFiles200ResponseFilesInner.from_dict(list_files200_response_files_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/ListTasks200Response.md b/docs/ListTasks200Response.md new file mode 100644 index 00000000..f8c70849 --- /dev/null +++ b/docs/ListTasks200Response.md @@ -0,0 +1,32 @@ +# ListTasks200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tasks** | [**List[ListTasks200ResponseTasksInner]**](ListTasks200ResponseTasksInner.md) | | [optional] +**task_ids** | **List[str]** | Task IDs (only with dependsOn filter) | [optional] +**count** | **int** | | [optional] +**depends_on** | **str** | The queried task ID (only with dependsOn filter) | [optional] + +## Example + +```python +from quantcdn.models.list_tasks200_response import ListTasks200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ListTasks200Response from a JSON string +list_tasks200_response_instance = ListTasks200Response.from_json(json) +# print the JSON string representation of the object +print(ListTasks200Response.to_json()) + +# convert the object into a dict +list_tasks200_response_dict = list_tasks200_response_instance.to_dict() +# create an instance of ListTasks200Response from a dict +list_tasks200_response_from_dict = ListTasks200Response.from_dict(list_tasks200_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/ListTasks200ResponseTasksInner.md b/docs/ListTasks200ResponseTasksInner.md new file mode 100644 index 00000000..2d6c0d61 --- /dev/null +++ b/docs/ListTasks200ResponseTasksInner.md @@ -0,0 +1,40 @@ +# ListTasks200ResponseTasksInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_id** | **str** | | [optional] +**org_id** | **str** | | [optional] +**task_list_id** | **str** | | [optional] +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**status** | **str** | | [optional] +**assigned_agent_id** | **str** | | [optional] +**progress** | **float** | | [optional] +**blocked_reason** | **str** | | [optional] +**blocked_by_task_ids** | **List[str]** | | [optional] +**created_at** | **int** | | [optional] +**updated_at** | **int** | | [optional] + +## Example + +```python +from quantcdn.models.list_tasks200_response_tasks_inner import ListTasks200ResponseTasksInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ListTasks200ResponseTasksInner from a JSON string +list_tasks200_response_tasks_inner_instance = ListTasks200ResponseTasksInner.from_json(json) +# print the JSON string representation of the object +print(ListTasks200ResponseTasksInner.to_json()) + +# convert the object into a dict +list_tasks200_response_tasks_inner_dict = list_tasks200_response_tasks_inner_instance.to_dict() +# create an instance of ListTasks200ResponseTasksInner from a dict +list_tasks200_response_tasks_inner_from_dict = ListTasks200ResponseTasksInner.from_dict(list_tasks200_response_tasks_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/OrchestrationApi.md b/docs/OrchestrationApi.md new file mode 100644 index 00000000..5cb19783 --- /dev/null +++ b/docs/OrchestrationApi.md @@ -0,0 +1,120 @@ +# quantcdn.OrchestrationApi + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_ai_orchestration_status**](OrchestrationApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status + + +# **get_ai_orchestration_status** +> GetAIOrchestrationStatus200Response get_ai_orchestration_status(organisation, orchestration_id) + +Get Orchestration Status + +Retrieves the status and synthesized result of a multi-tool orchestration. + * + * **Orchestration Pattern:** + * When the AI requests multiple async tools simultaneously, an orchestration is created + * to track all tool executions and synthesize their results into a single coherent response. + * + * **Flow:** + * 1. AI requests multiple async tools (e.g., image generation + web search) + * 2. Chat API creates orchestration and returns orchestrationId + * 3. Tool Orchestrator Lambda polls all async tools + * 4. When all tools complete, Orchestrator synthesizes results using AI + * 5. Client polls this endpoint and receives final synthesized response + * + * **Status Values:** + * - pending: Orchestration created, tools not yet started + * - polling: Orchestrator is actively polling async tools + * - synthesizing: All tools complete, AI is synthesizing response + * - complete: Orchestration finished, synthesizedResponse available + * - failed: Orchestration failed, error available + * + * **Polling Recommendations:** + * - Poll every 2 seconds + * - Maximum poll time: 10 minutes + * - Orchestrator handles tool polling internally + * + * **Benefits over individual polling:** + * - Single poll endpoint for multiple async tools + * - AI synthesizes all results into coherent response + * - Answers the original user question, not just tool summaries + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.get_ai_orchestration_status200_response import GetAIOrchestrationStatus200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# 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 Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.OrchestrationApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + orchestration_id = 'orch_abc123def456789012345678901234' # str | Orchestration identifier for aggregated async tool executions + + try: + # Get Orchestration Status + api_response = api_instance.get_ai_orchestration_status(organisation, orchestration_id) + print("The response of OrchestrationApi->get_ai_orchestration_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrchestrationApi->get_ai_orchestration_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **orchestration_id** | **str**| Orchestration identifier for aggregated async tool executions | + +### Return type + +[**GetAIOrchestrationStatus200Response**](GetAIOrchestrationStatus200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Orchestration status retrieved successfully | - | +**404** | Orchestration not found (may have expired after 24h) | - | +**403** | Access denied | - | +**500** | Failed to retrieve orchestration status | - | + +[[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/QueryVectorCollection200Response.md b/docs/QueryVectorCollection200Response.md index fd9a7a67..59fb81b2 100644 --- a/docs/QueryVectorCollection200Response.md +++ b/docs/QueryVectorCollection200Response.md @@ -6,9 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **results** | [**List[QueryVectorCollection200ResponseResultsInner]**](QueryVectorCollection200ResponseResultsInner.md) | | [optional] -**query** | **str** | | [optional] -**count** | **int** | | [optional] -**execution_time_ms** | **int** | | [optional] +**query** | **str** | Original query text (null if vector or metadata search was used) | [optional] +**search_mode** | **str** | Search mode used: text (query provided), vector (pre-computed), metadata (listByMetadata) | [optional] +**filter** | **object** | Filter that was applied (if any) | [optional] +**count** | **int** | Number of results returned | [optional] +**execution_time_ms** | **int** | Query execution time in milliseconds | [optional] +**collection_id** | **str** | | [optional] +**has_more** | **bool** | True if more results available (listByMetadata mode only) | [optional] +**next_cursor** | **str** | Cursor for next page. Pass as cursor param to continue. Null when no more results. Only in listByMetadata mode. | [optional] +**pagination** | [**QueryVectorCollection200ResponsePagination**](QueryVectorCollection200ResponsePagination.md) | | [optional] ## Example diff --git a/docs/QueryVectorCollection200ResponsePagination.md b/docs/QueryVectorCollection200ResponsePagination.md new file mode 100644 index 00000000..f4e8546c --- /dev/null +++ b/docs/QueryVectorCollection200ResponsePagination.md @@ -0,0 +1,32 @@ +# QueryVectorCollection200ResponsePagination + +Pagination info (listByMetadata mode only) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sort_by** | **str** | | [optional] +**sort_order** | **str** | | [optional] +**limit** | **int** | | [optional] + +## Example + +```python +from quantcdn.models.query_vector_collection200_response_pagination import QueryVectorCollection200ResponsePagination + +# TODO update the JSON string below +json = "{}" +# create an instance of QueryVectorCollection200ResponsePagination from a JSON string +query_vector_collection200_response_pagination_instance = QueryVectorCollection200ResponsePagination.from_json(json) +# print the JSON string representation of the object +print(QueryVectorCollection200ResponsePagination.to_json()) + +# convert the object into a dict +query_vector_collection200_response_pagination_dict = query_vector_collection200_response_pagination_instance.to_dict() +# create an instance of QueryVectorCollection200ResponsePagination from a dict +query_vector_collection200_response_pagination_from_dict = QueryVectorCollection200ResponsePagination.from_dict(query_vector_collection200_response_pagination_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/QueryVectorCollection200ResponseResultsInner.md b/docs/QueryVectorCollection200ResponseResultsInner.md index bfa13da4..f69639f1 100644 --- a/docs/QueryVectorCollection200ResponseResultsInner.md +++ b/docs/QueryVectorCollection200ResponseResultsInner.md @@ -5,9 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**content** | **str** | | [optional] -**score** | **float** | | [optional] -**metadata** | [**QueryVectorCollection200ResponseResultsInnerMetadata**](QueryVectorCollection200ResponseResultsInnerMetadata.md) | | [optional] +**document_id** | **str** | | [optional] +**content** | **str** | Document text content | [optional] +**similarity** | **float** | Cosine similarity score (1.0 for metadata-only queries) | [optional] +**metadata** | **Dict[str, object]** | | [optional] +**embedding** | **List[float]** | Vector embedding (only if includeEmbeddings=true) | [optional] ## Example diff --git a/docs/QueryVectorCollection200ResponseResultsInnerMetadata.md b/docs/QueryVectorCollection200ResponseResultsInnerMetadata.md deleted file mode 100644 index 6e8b209c..00000000 --- a/docs/QueryVectorCollection200ResponseResultsInnerMetadata.md +++ /dev/null @@ -1,31 +0,0 @@ -# QueryVectorCollection200ResponseResultsInnerMetadata - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**source_url** | **str** | | [optional] -**section** | **str** | | [optional] - -## Example - -```python -from quantcdn.models.query_vector_collection200_response_results_inner_metadata import QueryVectorCollection200ResponseResultsInnerMetadata - -# TODO update the JSON string below -json = "{}" -# create an instance of QueryVectorCollection200ResponseResultsInnerMetadata from a JSON string -query_vector_collection200_response_results_inner_metadata_instance = QueryVectorCollection200ResponseResultsInnerMetadata.from_json(json) -# print the JSON string representation of the object -print(QueryVectorCollection200ResponseResultsInnerMetadata.to_json()) - -# convert the object into a dict -query_vector_collection200_response_results_inner_metadata_dict = query_vector_collection200_response_results_inner_metadata_instance.to_dict() -# create an instance of QueryVectorCollection200ResponseResultsInnerMetadata from a dict -query_vector_collection200_response_results_inner_metadata_from_dict = QueryVectorCollection200ResponseResultsInnerMetadata.from_dict(query_vector_collection200_response_results_inner_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/QueryVectorCollectionRequest.md b/docs/QueryVectorCollectionRequest.md index d8b96332..9efb6382 100644 --- a/docs/QueryVectorCollectionRequest.md +++ b/docs/QueryVectorCollectionRequest.md @@ -5,8 +5,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**query** | **str** | Natural language search query | -**count** | **int** | Number of results to return | [optional] [default to 5] +**query** | **str** | Natural language search query (mutually exclusive with vector) | [optional] +**vector** | **List[float]** | Pre-computed embedding vector (mutually exclusive with query). Array length must match collection dimension. | [optional] +**limit** | **int** | Maximum number of results to return | [optional] [default to 5] +**threshold** | **float** | Minimum similarity score (0-1, higher = more relevant) | [optional] [default to 0.7] +**include_embeddings** | **bool** | Include embedding vectors in response (for debugging) | [optional] [default to False] +**filter** | [**QueryVectorCollectionRequestFilter**](QueryVectorCollectionRequestFilter.md) | | [optional] +**list_by_metadata** | **bool** | If true, skip semantic search and return all documents matching the filter. Requires filter. Supports cursor pagination. | [optional] [default to False] +**cursor** | **str** | Pagination cursor for listByMetadata mode. Use nextCursor from previous response. Opaque format - do not construct manually. | [optional] +**sort_by** | **str** | Field to sort by in listByMetadata mode | [optional] [default to 'created_at'] +**sort_order** | **str** | Sort direction in listByMetadata mode | [optional] [default to 'desc'] ## Example diff --git a/docs/QueryVectorCollectionRequestFilter.md b/docs/QueryVectorCollectionRequestFilter.md new file mode 100644 index 00000000..a95361e6 --- /dev/null +++ b/docs/QueryVectorCollectionRequestFilter.md @@ -0,0 +1,31 @@ +# QueryVectorCollectionRequestFilter + +Filter results by metadata fields. Applied AFTER semantic search (or alone in listByMetadata mode). All conditions use AND logic. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exact** | **Dict[str, object]** | Exact match on metadata fields. Keys are metadata field names, values are expected values. | [optional] +**contains** | **Dict[str, List[str]]** | Array contains filter for array metadata fields (like tags). Returns documents where the metadata array contains ANY of the specified values. | [optional] + +## Example + +```python +from quantcdn.models.query_vector_collection_request_filter import QueryVectorCollectionRequestFilter + +# TODO update the JSON string below +json = "{}" +# create an instance of QueryVectorCollectionRequestFilter from a JSON string +query_vector_collection_request_filter_instance = QueryVectorCollectionRequestFilter.from_json(json) +# print the JSON string representation of the object +print(QueryVectorCollectionRequestFilter.to_json()) + +# convert the object into a dict +query_vector_collection_request_filter_dict = query_vector_collection_request_filter_instance.to_dict() +# create an instance of QueryVectorCollectionRequestFilter from a dict +query_vector_collection_request_filter_from_dict = QueryVectorCollectionRequestFilter.from_dict(query_vector_collection_request_filter_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/SubmitToolCallback200Response.md b/docs/SubmitToolCallback200Response.md new file mode 100644 index 00000000..67e52fc5 --- /dev/null +++ b/docs/SubmitToolCallback200Response.md @@ -0,0 +1,31 @@ +# SubmitToolCallback200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] +**message** | **str** | | [optional] +**callback_id** | **str** | Echo of the callbackId for confirmation | [optional] + +## Example + +```python +from quantcdn.models.submit_tool_callback200_response import SubmitToolCallback200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SubmitToolCallback200Response from a JSON string +submit_tool_callback200_response_instance = SubmitToolCallback200Response.from_json(json) +# print the JSON string representation of the object +print(SubmitToolCallback200Response.to_json()) + +# convert the object into a dict +submit_tool_callback200_response_dict = submit_tool_callback200_response_instance.to_dict() +# create an instance of SubmitToolCallback200Response from a dict +submit_tool_callback200_response_from_dict = SubmitToolCallback200Response.from_dict(submit_tool_callback200_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/SubmitToolCallbackRequest.md b/docs/SubmitToolCallbackRequest.md new file mode 100644 index 00000000..2b0f9603 --- /dev/null +++ b/docs/SubmitToolCallbackRequest.md @@ -0,0 +1,30 @@ +# SubmitToolCallbackRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**callback_id** | **str** | The callbackId from the waiting_callback status response | +**tool_results** | [**List[SubmitToolCallbackRequestToolResultsInner]**](SubmitToolCallbackRequestToolResultsInner.md) | Results of client-executed tools | + +## Example + +```python +from quantcdn.models.submit_tool_callback_request import SubmitToolCallbackRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SubmitToolCallbackRequest from a JSON string +submit_tool_callback_request_instance = SubmitToolCallbackRequest.from_json(json) +# print the JSON string representation of the object +print(SubmitToolCallbackRequest.to_json()) + +# convert the object into a dict +submit_tool_callback_request_dict = submit_tool_callback_request_instance.to_dict() +# create an instance of SubmitToolCallbackRequest from a dict +submit_tool_callback_request_from_dict = SubmitToolCallbackRequest.from_dict(submit_tool_callback_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/SubmitToolCallbackRequestToolResultsInner.md b/docs/SubmitToolCallbackRequestToolResultsInner.md new file mode 100644 index 00000000..29619884 --- /dev/null +++ b/docs/SubmitToolCallbackRequestToolResultsInner.md @@ -0,0 +1,30 @@ +# SubmitToolCallbackRequestToolResultsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tool_use_id** | **str** | The toolUseId from pendingTools | +**result** | **object** | The result of executing the tool | + +## Example + +```python +from quantcdn.models.submit_tool_callback_request_tool_results_inner import SubmitToolCallbackRequestToolResultsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of SubmitToolCallbackRequestToolResultsInner from a JSON string +submit_tool_callback_request_tool_results_inner_instance = SubmitToolCallbackRequestToolResultsInner.from_json(json) +# print the JSON string representation of the object +print(SubmitToolCallbackRequestToolResultsInner.to_json()) + +# convert the object into a dict +submit_tool_callback_request_tool_results_inner_dict = submit_tool_callback_request_tool_results_inner_instance.to_dict() +# create an instance of SubmitToolCallbackRequestToolResultsInner from a dict +submit_tool_callback_request_tool_results_inner_from_dict = SubmitToolCallbackRequestToolResultsInner.from_dict(submit_tool_callback_request_tool_results_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/UpdateTask200Response.md b/docs/UpdateTask200Response.md new file mode 100644 index 00000000..915103c5 --- /dev/null +++ b/docs/UpdateTask200Response.md @@ -0,0 +1,31 @@ +# UpdateTask200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_id** | **str** | | [optional] +**status** | **str** | | [optional] +**updated_at** | **int** | | [optional] + +## Example + +```python +from quantcdn.models.update_task200_response import UpdateTask200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateTask200Response from a JSON string +update_task200_response_instance = UpdateTask200Response.from_json(json) +# print the JSON string representation of the object +print(UpdateTask200Response.to_json()) + +# convert the object into a dict +update_task200_response_dict = update_task200_response_instance.to_dict() +# create an instance of UpdateTask200Response from a dict +update_task200_response_from_dict = UpdateTask200Response.from_dict(update_task200_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/UpdateTaskRequest.md b/docs/UpdateTaskRequest.md new file mode 100644 index 00000000..e1fb3a3a --- /dev/null +++ b/docs/UpdateTaskRequest.md @@ -0,0 +1,43 @@ +# UpdateTaskRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**task_list_id** | **str** | Move task to different list or remove from list (set null) | [optional] +**status** | **str** | Task status (triggers automatic timestamp updates) | [optional] +**assigned_agent_id** | **str** | Reassign task to different agent | [optional] +**depends_on** | **List[str]** | Update task dependencies | [optional] +**metadata** | **object** | Update task metadata (replaces entire metadata object) | [optional] +**progress** | **float** | Progress from 0.0 to 1.0 | [optional] +**progress_message** | **str** | Human-readable progress message | [optional] +**result** | **object** | Task result data (set when completing task) | [optional] +**error** | **str** | Error message (set when task fails) | [optional] +**retry_count** | **int** | Update retry count | [optional] +**max_retries** | **int** | Update maximum retry attempts | [optional] +**blocked_reason** | **str** | Reason task is blocked (set when status is blocked) | [optional] +**blocked_by_task_ids** | **List[str]** | Task IDs that are blocking this task | [optional] + +## Example + +```python +from quantcdn.models.update_task_request import UpdateTaskRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateTaskRequest from a JSON string +update_task_request_instance = UpdateTaskRequest.from_json(json) +# print the JSON string representation of the object +print(UpdateTaskRequest.to_json()) + +# convert the object into a dict +update_task_request_dict = update_task_request_instance.to_dict() +# create an instance of UpdateTaskRequest from a dict +update_task_request_from_dict = UpdateTaskRequest.from_dict(update_task_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/UploadFile201Response.md b/docs/UploadFile201Response.md new file mode 100644 index 00000000..c9727356 --- /dev/null +++ b/docs/UploadFile201Response.md @@ -0,0 +1,39 @@ +# UploadFile201Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_id** | **str** | | [optional] +**s3_uri** | **str** | S3 URI (direct upload only) | [optional] +**url** | **str** | Presigned download URL (direct upload only) | [optional] +**upload_url** | **str** | Presigned PUT URL (presigned upload only) | [optional] +**s3_key** | **str** | S3 object key (presigned upload only) | [optional] +**expires_in** | **int** | URL expiry in seconds (presigned upload only) | [optional] +**filename** | **str** | | [optional] +**content_type** | **str** | | [optional] +**size** | **int** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | | [optional] + +## Example + +```python +from quantcdn.models.upload_file201_response import UploadFile201Response + +# TODO update the JSON string below +json = "{}" +# create an instance of UploadFile201Response from a JSON string +upload_file201_response_instance = UploadFile201Response.from_json(json) +# print the JSON string representation of the object +print(UploadFile201Response.to_json()) + +# convert the object into a dict +upload_file201_response_dict = upload_file201_response_instance.to_dict() +# create an instance of UploadFile201Response from a dict +upload_file201_response_from_dict = UploadFile201Response.from_dict(upload_file201_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/UploadFileRequest.md b/docs/UploadFileRequest.md new file mode 100644 index 00000000..045f5670 --- /dev/null +++ b/docs/UploadFileRequest.md @@ -0,0 +1,34 @@ +# UploadFileRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | Base64-encoded file content (for direct upload). Required unless using requestUploadUrl. | [optional] +**request_upload_url** | **bool** | Set to true to get a presigned S3 upload URL instead of uploading directly. | [optional] [default to False] +**size** | **int** | File size in bytes. Optional but recommended for presigned uploads. | [optional] +**filename** | **str** | Original filename | [optional] +**content_type** | **str** | MIME type of the file | +**metadata** | **Dict[str, object]** | Custom metadata for filtering. Any fields allowed. | [optional] + +## Example + +```python +from quantcdn.models.upload_file_request import UploadFileRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UploadFileRequest from a JSON string +upload_file_request_instance = UploadFileRequest.from_json(json) +# print the JSON string representation of the object +print(UploadFileRequest.to_json()) + +# convert the object into a dict +upload_file_request_dict = upload_file_request_instance.to_dict() +# create an instance of UploadFileRequest from a dict +upload_file_request_from_dict = UploadFileRequest.from_dict(upload_file_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/pyproject.toml b/pyproject.toml index 6eb605a2..5f9a58bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "quantcdn" -version = "4.8.0" +version = "4.9.0" description = "QuantCDN API" authors = ["OpenAPI Generator Community "] license = "NoLicense" diff --git a/quantcdn/__init__.py b/quantcdn/__init__.py index 0a0fbcdf..2d28adfb 100644 --- a/quantcdn/__init__.py +++ b/quantcdn/__init__.py @@ -7,7 +7,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,10 +19,12 @@ # import apis into sdk package from quantcdn.api.ai_agents_api import AIAgentsApi from quantcdn.api.ai_custom_tools_api import AICustomToolsApi +from quantcdn.api.ai_file_storage_api import AIFileStorageApi from quantcdn.api.ai_inference_api import AIInferenceApi from quantcdn.api.ai_models_api import AIModelsApi from quantcdn.api.ai_monitoring_api import AIMonitoringApi from quantcdn.api.ai_sessions_api import AISessionsApi +from quantcdn.api.ai_task_management_api import AITaskManagementApi from quantcdn.api.ai_tools_api import AIToolsApi from quantcdn.api.ai_vector_database_api import AIVectorDatabaseApi from quantcdn.api.applications_api import ApplicationsApi @@ -37,6 +39,7 @@ from quantcdn.api.environments_api import EnvironmentsApi from quantcdn.api.headers_api import HeadersApi from quantcdn.api.kv_api import KVApi +from quantcdn.api.orchestration_api import OrchestrationApi from quantcdn.api.organizations_api import OrganizationsApi from quantcdn.api.projects_api import ProjectsApi from quantcdn.api.purge_api import PurgeApi @@ -73,6 +76,7 @@ from quantcdn.models.chat_inference200_response_response_tool_use_one_of1_inner import ChatInference200ResponseResponseToolUseOneOf1Inner from quantcdn.models.chat_inference200_response_response_tool_use_one_of_result import ChatInference200ResponseResponseToolUseOneOfResult from quantcdn.models.chat_inference200_response_usage import ChatInference200ResponseUsage +from quantcdn.models.chat_inference202_response import ChatInference202Response from quantcdn.models.chat_inference_request import ChatInferenceRequest from quantcdn.models.chat_inference_request_messages_inner import ChatInferenceRequestMessagesInner from quantcdn.models.chat_inference_request_messages_inner_content import ChatInferenceRequestMessagesInnerContent @@ -98,6 +102,7 @@ from quantcdn.models.chat_with_ai_agent200_response import ChatWithAIAgent200Response from quantcdn.models.chat_with_ai_agent200_response_response import ChatWithAIAgent200ResponseResponse from quantcdn.models.chat_with_ai_agent200_response_response_usage import ChatWithAIAgent200ResponseResponseUsage +from quantcdn.models.chat_with_ai_agent202_response import ChatWithAIAgent202Response from quantcdn.models.chat_with_ai_agent_request import ChatWithAIAgentRequest from quantcdn.models.command import Command from quantcdn.models.compose import Compose @@ -130,6 +135,8 @@ from quantcdn.models.create_environment403_response import CreateEnvironment403Response from quantcdn.models.create_environment_request import CreateEnvironmentRequest from quantcdn.models.create_environment_request_environment_inner import CreateEnvironmentRequestEnvironmentInner +from quantcdn.models.create_task201_response import CreateTask201Response +from quantcdn.models.create_task_request import CreateTaskRequest from quantcdn.models.create_vector_collection201_response import CreateVectorCollection201Response from quantcdn.models.create_vector_collection201_response_collection import CreateVectorCollection201ResponseCollection from quantcdn.models.create_vector_collection_request import CreateVectorCollectionRequest @@ -140,6 +147,9 @@ from quantcdn.models.delete_ai_session200_response import DeleteAISession200Response from quantcdn.models.delete_backup200_response import DeleteBackup200Response from quantcdn.models.delete_custom_tool200_response import DeleteCustomTool200Response +from quantcdn.models.delete_file200_response import DeleteFile200Response +from quantcdn.models.delete_task200_response import DeleteTask200Response +from quantcdn.models.delete_task409_response import DeleteTask409Response from quantcdn.models.delete_vector_collection200_response import DeleteVectorCollection200Response from quantcdn.models.download_backup200_response import DownloadBackup200Response from quantcdn.models.embeddings200_response import Embeddings200Response @@ -158,17 +168,29 @@ from quantcdn.models.get_ai_model200_response_capabilities import GetAIModel200ResponseCapabilities from quantcdn.models.get_ai_model200_response_pricing import GetAIModel200ResponsePricing from quantcdn.models.get_ai_model404_response import GetAIModel404Response +from quantcdn.models.get_ai_orchestration_status200_response import GetAIOrchestrationStatus200Response +from quantcdn.models.get_ai_orchestration_status200_response_tools_inner import GetAIOrchestrationStatus200ResponseToolsInner +from quantcdn.models.get_ai_orchestration_status404_response import GetAIOrchestrationStatus404Response from quantcdn.models.get_ai_session200_response import GetAISession200Response from quantcdn.models.get_ai_tool_execution_status200_response import GetAIToolExecutionStatus200Response from quantcdn.models.get_ai_tool_execution_status200_response_result import GetAIToolExecutionStatus200ResponseResult from quantcdn.models.get_ai_tool_execution_status404_response import GetAIToolExecutionStatus404Response from quantcdn.models.get_ai_usage_stats200_response import GetAIUsageStats200Response from quantcdn.models.get_ai_usage_stats200_response_by_model_value import GetAIUsageStats200ResponseByModelValue +from quantcdn.models.get_dependency_graph200_response import GetDependencyGraph200Response +from quantcdn.models.get_durable_execution_status200_response import GetDurableExecutionStatus200Response +from quantcdn.models.get_durable_execution_status200_response_error import GetDurableExecutionStatus200ResponseError +from quantcdn.models.get_durable_execution_status200_response_pending_tools_inner import GetDurableExecutionStatus200ResponsePendingToolsInner +from quantcdn.models.get_durable_execution_status200_response_result import GetDurableExecutionStatus200ResponseResult +from quantcdn.models.get_durable_execution_status200_response_result_response import GetDurableExecutionStatus200ResponseResultResponse +from quantcdn.models.get_durable_execution_status200_response_result_usage import GetDurableExecutionStatus200ResponseResultUsage from quantcdn.models.get_ecr_login_credentials200_response import GetEcrLoginCredentials200Response from quantcdn.models.get_environment_logs200_response import GetEnvironmentLogs200Response from quantcdn.models.get_environment_logs200_response_log_events_inner import GetEnvironmentLogs200ResponseLogEventsInner +from quantcdn.models.get_file200_response import GetFile200Response from quantcdn.models.get_ssh_access_credentials200_response import GetSshAccessCredentials200Response from quantcdn.models.get_ssh_access_credentials200_response_credentials import GetSshAccessCredentials200ResponseCredentials +from quantcdn.models.get_task200_response import GetTask200Response from quantcdn.models.get_vector_collection200_response import GetVectorCollection200Response from quantcdn.models.get_vector_collection200_response_collection import GetVectorCollection200ResponseCollection from quantcdn.models.image_generation200_response import ImageGeneration200Response @@ -202,6 +224,10 @@ from quantcdn.models.list_backups422_response import ListBackups422Response from quantcdn.models.list_custom_tools200_response import ListCustomTools200Response from quantcdn.models.list_custom_tools200_response_tools_inner import ListCustomTools200ResponseToolsInner +from quantcdn.models.list_files200_response import ListFiles200Response +from quantcdn.models.list_files200_response_files_inner import ListFiles200ResponseFilesInner +from quantcdn.models.list_tasks200_response import ListTasks200Response +from quantcdn.models.list_tasks200_response_tasks_inner import ListTasks200ResponseTasksInner from quantcdn.models.list_vector_collections200_response import ListVectorCollections200Response from quantcdn.models.list_vector_collections200_response_collections_inner import ListVectorCollections200ResponseCollectionsInner from quantcdn.models.organizations_list200_response_inner import OrganizationsList200ResponseInner @@ -212,11 +238,15 @@ from quantcdn.models.patch_environment_compose_request_spot_configuration import PatchEnvironmentComposeRequestSpotConfiguration from quantcdn.models.purge_create_request import PurgeCreateRequest from quantcdn.models.query_vector_collection200_response import QueryVectorCollection200Response +from quantcdn.models.query_vector_collection200_response_pagination import QueryVectorCollection200ResponsePagination from quantcdn.models.query_vector_collection200_response_results_inner import QueryVectorCollection200ResponseResultsInner -from quantcdn.models.query_vector_collection200_response_results_inner_metadata import QueryVectorCollection200ResponseResultsInnerMetadata from quantcdn.models.query_vector_collection_request import QueryVectorCollectionRequest +from quantcdn.models.query_vector_collection_request_filter import QueryVectorCollectionRequestFilter from quantcdn.models.scaling_policy import ScalingPolicy from quantcdn.models.spot_configuration import SpotConfiguration +from quantcdn.models.submit_tool_callback200_response import SubmitToolCallback200Response +from quantcdn.models.submit_tool_callback_request import SubmitToolCallbackRequest +from quantcdn.models.submit_tool_callback_request_tool_results_inner import SubmitToolCallbackRequestToolResultsInner from quantcdn.models.sync_operation import SyncOperation from quantcdn.models.sync_to_environment_request import SyncToEnvironmentRequest from quantcdn.models.update_ai_agent200_response import UpdateAIAgent200Response @@ -228,6 +258,10 @@ from quantcdn.models.update_environment_request import UpdateEnvironmentRequest from quantcdn.models.update_environment_state_request import UpdateEnvironmentStateRequest from quantcdn.models.update_environment_variable_request import UpdateEnvironmentVariableRequest +from quantcdn.models.update_task200_response import UpdateTask200Response +from quantcdn.models.update_task_request import UpdateTaskRequest +from quantcdn.models.upload_file201_response import UploadFile201Response +from quantcdn.models.upload_file_request import UploadFileRequest from quantcdn.models.upload_vector_documents200_response import UploadVectorDocuments200Response from quantcdn.models.upload_vector_documents_request import UploadVectorDocumentsRequest from quantcdn.models.upload_vector_documents_request_documents_inner import UploadVectorDocumentsRequestDocumentsInner diff --git a/quantcdn/__version__.py b/quantcdn/__version__.py index cb91420b..787f0e99 100644 --- a/quantcdn/__version__.py +++ b/quantcdn/__version__.py @@ -1,2 +1,2 @@ """Version information for quantcdn SDK.""" -__version__ = "4.8.0" +__version__ = "4.9.0" diff --git a/quantcdn/api/__init__.py b/quantcdn/api/__init__.py index 10c51b32..5d10a475 100644 --- a/quantcdn/api/__init__.py +++ b/quantcdn/api/__init__.py @@ -3,10 +3,12 @@ # import apis into api package from quantcdn.api.ai_agents_api import AIAgentsApi from quantcdn.api.ai_custom_tools_api import AICustomToolsApi +from quantcdn.api.ai_file_storage_api import AIFileStorageApi from quantcdn.api.ai_inference_api import AIInferenceApi from quantcdn.api.ai_models_api import AIModelsApi from quantcdn.api.ai_monitoring_api import AIMonitoringApi from quantcdn.api.ai_sessions_api import AISessionsApi +from quantcdn.api.ai_task_management_api import AITaskManagementApi from quantcdn.api.ai_tools_api import AIToolsApi from quantcdn.api.ai_vector_database_api import AIVectorDatabaseApi from quantcdn.api.applications_api import ApplicationsApi @@ -21,6 +23,7 @@ from quantcdn.api.environments_api import EnvironmentsApi from quantcdn.api.headers_api import HeadersApi from quantcdn.api.kv_api import KVApi +from quantcdn.api.orchestration_api import OrchestrationApi from quantcdn.api.organizations_api import OrganizationsApi from quantcdn.api.projects_api import ProjectsApi from quantcdn.api.purge_api import PurgeApi diff --git a/quantcdn/api/ai_agents_api.py b/quantcdn/api/ai_agents_api.py index ea9b6428..996b66ae 100644 --- a/quantcdn/api/ai_agents_api.py +++ b/quantcdn/api/ai_agents_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -68,7 +68,7 @@ def chat_with_ai_agent( ) -> ChatWithAIAgent200Response: """Chat with AI Agent - Initiates a chat session with a specific AI agent. The agent's configuration (system prompt, temperature, model, allowed tools) is automatically applied. * * **Key Features:** * - **Session Management**: Automatic session creation and state tracking * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available * - All tools are auto-executed (no client confirmation) * - Temperature and model from agent config * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity * - Use `/sessions/{sessionId}` to retrieve full conversation history + Initiates a chat session with a specific AI agent. The agent's configuration (system prompt, temperature, model, allowed tools) is automatically applied. * * **Key Features:** * - **Session Management**: Automatic session creation and state tracking * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available * - All tools are auto-executed on cloud (no client confirmation needed) * - Temperature and model from agent config * - Supports sync, streaming, and async modes * * **Execution Modes:** * - **Sync Mode** (default): Standard JSON response, waits for completion * - **Streaming Mode**: Set `stream: true` for SSE token-by-token responses * - **Async Mode**: Set `async: true` for long-running tasks with polling * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running agent tasks * - All tools are auto-executed on cloud (no `waiting_callback` state) * - Poll `/ai/chat/executions/{requestId}` for status * - Ideal for agents with slow tools (image generation, web search, etc.) * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity * - Sessions work in all modes (sync, streaming, async) * - Use `/sessions/{sessionId}` to retrieve full conversation history :param organisation: The organisation ID (required) :type organisation: str @@ -110,6 +110,7 @@ def chat_with_ai_agent( _response_types_map: Dict[str, Optional[str]] = { '200': "ChatWithAIAgent200Response", + '202': "ChatWithAIAgent202Response", '400': None, '403': None, '404': None, @@ -147,7 +148,7 @@ def chat_with_ai_agent_with_http_info( ) -> ApiResponse[ChatWithAIAgent200Response]: """Chat with AI Agent - Initiates a chat session with a specific AI agent. The agent's configuration (system prompt, temperature, model, allowed tools) is automatically applied. * * **Key Features:** * - **Session Management**: Automatic session creation and state tracking * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available * - All tools are auto-executed (no client confirmation) * - Temperature and model from agent config * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity * - Use `/sessions/{sessionId}` to retrieve full conversation history + Initiates a chat session with a specific AI agent. The agent's configuration (system prompt, temperature, model, allowed tools) is automatically applied. * * **Key Features:** * - **Session Management**: Automatic session creation and state tracking * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available * - All tools are auto-executed on cloud (no client confirmation needed) * - Temperature and model from agent config * - Supports sync, streaming, and async modes * * **Execution Modes:** * - **Sync Mode** (default): Standard JSON response, waits for completion * - **Streaming Mode**: Set `stream: true` for SSE token-by-token responses * - **Async Mode**: Set `async: true` for long-running tasks with polling * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running agent tasks * - All tools are auto-executed on cloud (no `waiting_callback` state) * - Poll `/ai/chat/executions/{requestId}` for status * - Ideal for agents with slow tools (image generation, web search, etc.) * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity * - Sessions work in all modes (sync, streaming, async) * - Use `/sessions/{sessionId}` to retrieve full conversation history :param organisation: The organisation ID (required) :type organisation: str @@ -189,6 +190,7 @@ def chat_with_ai_agent_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ChatWithAIAgent200Response", + '202': "ChatWithAIAgent202Response", '400': None, '403': None, '404': None, @@ -226,7 +228,7 @@ def chat_with_ai_agent_without_preload_content( ) -> RESTResponseType: """Chat with AI Agent - Initiates a chat session with a specific AI agent. The agent's configuration (system prompt, temperature, model, allowed tools) is automatically applied. * * **Key Features:** * - **Session Management**: Automatic session creation and state tracking * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available * - All tools are auto-executed (no client confirmation) * - Temperature and model from agent config * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity * - Use `/sessions/{sessionId}` to retrieve full conversation history + Initiates a chat session with a specific AI agent. The agent's configuration (system prompt, temperature, model, allowed tools) is automatically applied. * * **Key Features:** * - **Session Management**: Automatic session creation and state tracking * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available * - All tools are auto-executed on cloud (no client confirmation needed) * - Temperature and model from agent config * - Supports sync, streaming, and async modes * * **Execution Modes:** * - **Sync Mode** (default): Standard JSON response, waits for completion * - **Streaming Mode**: Set `stream: true` for SSE token-by-token responses * - **Async Mode**: Set `async: true` for long-running tasks with polling * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running agent tasks * - All tools are auto-executed on cloud (no `waiting_callback` state) * - Poll `/ai/chat/executions/{requestId}` for status * - Ideal for agents with slow tools (image generation, web search, etc.) * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity * - Sessions work in all modes (sync, streaming, async) * - Use `/sessions/{sessionId}` to retrieve full conversation history :param organisation: The organisation ID (required) :type organisation: str @@ -268,6 +270,7 @@ def chat_with_ai_agent_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ChatWithAIAgent200Response", + '202': "ChatWithAIAgent202Response", '400': None, '403': None, '404': None, diff --git a/quantcdn/api/ai_custom_tools_api.py b/quantcdn/api/ai_custom_tools_api.py index 71c742f2..2ae11441 100644 --- a/quantcdn/api/ai_custom_tools_api.py +++ b/quantcdn/api/ai_custom_tools_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_file_storage_api.py b/quantcdn/api/ai_file_storage_api.py new file mode 100644 index 00000000..f81689e9 --- /dev/null +++ b/quantcdn/api/ai_file_storage_api.py @@ -0,0 +1,1235 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, StrictStr +from typing import Optional +from typing_extensions import Annotated +from quantcdn.models.delete_file200_response import DeleteFile200Response +from quantcdn.models.get_file200_response import GetFile200Response +from quantcdn.models.list_files200_response import ListFiles200Response +from quantcdn.models.upload_file201_response import UploadFile201Response +from quantcdn.models.upload_file_request import UploadFileRequest + +from quantcdn.api_client import ApiClient, RequestSerialized +from quantcdn.api_response import ApiResponse +from quantcdn.rest import RESTResponseType + + +class AIFileStorageApi: + """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 delete_file( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + file_id: Annotated[StrictStr, Field(description="The file 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, + ) -> DeleteFile200Response: + """Delete File + + Deletes a file from S3 storage. + + :param organisation: The organisation ID (required) + :type organisation: str + :param file_id: The file ID (required) + :type file_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._delete_file_serialize( + organisation=organisation, + file_id=file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteFile200Response", + '403': None, + '404': None, + '500': None, + } + 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_file_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + file_id: Annotated[StrictStr, Field(description="The file 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[DeleteFile200Response]: + """Delete File + + Deletes a file from S3 storage. + + :param organisation: The organisation ID (required) + :type organisation: str + :param file_id: The file ID (required) + :type file_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._delete_file_serialize( + organisation=organisation, + file_id=file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteFile200Response", + '403': None, + '404': None, + '500': None, + } + 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_file_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + file_id: Annotated[StrictStr, Field(description="The file 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: + """Delete File + + Deletes a file from S3 storage. + + :param organisation: The organisation ID (required) + :type organisation: str + :param file_id: The file ID (required) + :type file_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._delete_file_serialize( + organisation=organisation, + file_id=file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteFile200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_file_serialize( + self, + organisation, + file_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 organisation is not None: + _path_params['organisation'] = organisation + if file_id is not None: + _path_params['fileId'] = file_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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/v3/organizations/{organisation}/ai/files/{fileId}', + 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_file( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + file_id: Annotated[StrictStr, Field(description="The file 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, + ) -> GetFile200Response: + """Get File + + Retrieves file metadata and a presigned download URL (valid for 1 hour). + + :param organisation: The organisation ID (required) + :type organisation: str + :param file_id: The file ID (required) + :type file_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_file_serialize( + organisation=organisation, + file_id=file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetFile200Response", + '403': None, + '404': None, + '500': None, + } + 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_file_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + file_id: Annotated[StrictStr, Field(description="The file 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[GetFile200Response]: + """Get File + + Retrieves file metadata and a presigned download URL (valid for 1 hour). + + :param organisation: The organisation ID (required) + :type organisation: str + :param file_id: The file ID (required) + :type file_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_file_serialize( + organisation=organisation, + file_id=file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetFile200Response", + '403': None, + '404': None, + '500': None, + } + 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_file_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + file_id: Annotated[StrictStr, Field(description="The file 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 File + + Retrieves file metadata and a presigned download URL (valid for 1 hour). + + :param organisation: The organisation ID (required) + :type organisation: str + :param file_id: The file ID (required) + :type file_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_file_serialize( + organisation=organisation, + file_id=file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetFile200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_file_serialize( + self, + organisation, + file_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 organisation is not None: + _path_params['organisation'] = organisation + if file_id is not None: + _path_params['fileId'] = file_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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/files/{fileId}', + 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_files( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + filter: Annotated[Optional[StrictStr], Field(description="JSON-encoded metadata filter. Supports exact match and array contains filters.")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=200, strict=True)]], Field(description="Maximum files to return")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="Pagination cursor from previous response")] = 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, + ) -> ListFiles200Response: + """List Files + + Lists files stored in S3 for this organization with optional metadata filtering and pagination. + + :param organisation: The organisation ID (required) + :type organisation: str + :param filter: JSON-encoded metadata filter. Supports exact match and array contains filters. + :type filter: str + :param limit: Maximum files to return + :type limit: int + :param cursor: Pagination cursor from previous response + :type cursor: 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._list_files_serialize( + organisation=organisation, + filter=filter, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListFiles200Response", + '400': None, + '403': None, + '500': None, + } + 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_files_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + filter: Annotated[Optional[StrictStr], Field(description="JSON-encoded metadata filter. Supports exact match and array contains filters.")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=200, strict=True)]], Field(description="Maximum files to return")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="Pagination cursor from previous response")] = 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[ListFiles200Response]: + """List Files + + Lists files stored in S3 for this organization with optional metadata filtering and pagination. + + :param organisation: The organisation ID (required) + :type organisation: str + :param filter: JSON-encoded metadata filter. Supports exact match and array contains filters. + :type filter: str + :param limit: Maximum files to return + :type limit: int + :param cursor: Pagination cursor from previous response + :type cursor: 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._list_files_serialize( + organisation=organisation, + filter=filter, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListFiles200Response", + '400': None, + '403': None, + '500': None, + } + 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_files_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + filter: Annotated[Optional[StrictStr], Field(description="JSON-encoded metadata filter. Supports exact match and array contains filters.")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=200, strict=True)]], Field(description="Maximum files to return")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="Pagination cursor from previous response")] = 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 Files + + Lists files stored in S3 for this organization with optional metadata filtering and pagination. + + :param organisation: The organisation ID (required) + :type organisation: str + :param filter: JSON-encoded metadata filter. Supports exact match and array contains filters. + :type filter: str + :param limit: Maximum files to return + :type limit: int + :param cursor: Pagination cursor from previous response + :type cursor: 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._list_files_serialize( + organisation=organisation, + filter=filter, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListFiles200Response", + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_files_serialize( + self, + organisation, + filter, + limit, + cursor, + _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 organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + if filter is not None: + + _query_params.append(('filter', filter)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + # 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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/files', + 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, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + upload_file_request: UploadFileRequest, + _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, + ) -> UploadFile201Response: + """Upload File to S3 + + Uploads a file to S3 storage for later retrieval. * * **Two Upload Modes:** * * 1. **Direct Upload (≤7MB):** Send base64-encoded content in request body. * * 2. **Presigned URL Upload (any size):** Set `requestUploadUrl: true` to get a presigned S3 PUT URL, then upload directly to S3. * * **Supported Content Types:** * - Images: image/png, image/jpeg, image/gif, image/webp, image/svg+xml * - Documents: application/pdf, text/plain, text/markdown, text/html * - Code: text/javascript, application/json, text/css, text/yaml * - Archives: application/zip, application/gzip * - Video: video/mp4, video/webm (use presigned URL for large files) * * **Metadata:** * Attach any custom metadata for filtering. `artifactType` is auto-populated from contentType if not provided. + + :param organisation: The organisation ID (required) + :type organisation: str + :param upload_file_request: (required) + :type upload_file_request: UploadFileRequest + :param _request_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( + organisation=organisation, + upload_file_request=upload_file_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "UploadFile201Response", + '400': None, + '403': None, + '413': None, + '500': None, + } + 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, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + upload_file_request: UploadFileRequest, + _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[UploadFile201Response]: + """Upload File to S3 + + Uploads a file to S3 storage for later retrieval. * * **Two Upload Modes:** * * 1. **Direct Upload (≤7MB):** Send base64-encoded content in request body. * * 2. **Presigned URL Upload (any size):** Set `requestUploadUrl: true` to get a presigned S3 PUT URL, then upload directly to S3. * * **Supported Content Types:** * - Images: image/png, image/jpeg, image/gif, image/webp, image/svg+xml * - Documents: application/pdf, text/plain, text/markdown, text/html * - Code: text/javascript, application/json, text/css, text/yaml * - Archives: application/zip, application/gzip * - Video: video/mp4, video/webm (use presigned URL for large files) * * **Metadata:** * Attach any custom metadata for filtering. `artifactType` is auto-populated from contentType if not provided. + + :param organisation: The organisation ID (required) + :type organisation: str + :param upload_file_request: (required) + :type upload_file_request: UploadFileRequest + :param _request_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( + organisation=organisation, + upload_file_request=upload_file_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "UploadFile201Response", + '400': None, + '403': None, + '413': None, + '500': None, + } + 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, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + upload_file_request: UploadFileRequest, + _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 to S3 + + Uploads a file to S3 storage for later retrieval. * * **Two Upload Modes:** * * 1. **Direct Upload (≤7MB):** Send base64-encoded content in request body. * * 2. **Presigned URL Upload (any size):** Set `requestUploadUrl: true` to get a presigned S3 PUT URL, then upload directly to S3. * * **Supported Content Types:** * - Images: image/png, image/jpeg, image/gif, image/webp, image/svg+xml * - Documents: application/pdf, text/plain, text/markdown, text/html * - Code: text/javascript, application/json, text/css, text/yaml * - Archives: application/zip, application/gzip * - Video: video/mp4, video/webm (use presigned URL for large files) * * **Metadata:** * Attach any custom metadata for filtering. `artifactType` is auto-populated from contentType if not provided. + + :param organisation: The organisation ID (required) + :type organisation: str + :param upload_file_request: (required) + :type upload_file_request: UploadFileRequest + :param _request_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( + organisation=organisation, + upload_file_request=upload_file_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "UploadFile201Response", + '400': None, + '403': None, + '413': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _upload_file_serialize( + self, + organisation, + upload_file_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 organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if upload_file_request is not None: + _body_params = upload_file_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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/files', + 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/quantcdn/api/ai_inference_api.py b/quantcdn/api/ai_inference_api.py index 429b2f43..ff9ef81e 100644 --- a/quantcdn/api/ai_inference_api.py +++ b/quantcdn/api/ai_inference_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,8 +23,11 @@ from quantcdn.models.chat_inference_stream_request import ChatInferenceStreamRequest from quantcdn.models.embeddings200_response import Embeddings200Response from quantcdn.models.embeddings_request import EmbeddingsRequest +from quantcdn.models.get_durable_execution_status200_response import GetDurableExecutionStatus200Response from quantcdn.models.image_generation200_response import ImageGeneration200Response from quantcdn.models.image_generation_request import ImageGenerationRequest +from quantcdn.models.submit_tool_callback200_response import SubmitToolCallback200Response +from quantcdn.models.submit_tool_callback_request import SubmitToolCallbackRequest from quantcdn.api_client import ApiClient, RequestSerialized from quantcdn.api_response import ApiResponse @@ -64,7 +67,7 @@ def chat_inference( ) -> ChatInference200Response: """Chat inference via API Gateway (buffered responses) with multimodal support - Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling + Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Execution Modes:** * - **Sync Mode** (default): Standard JSON response, waits for completion (200 response) * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running inference * - Supports client-executed tools via `waiting_callback` state * - Poll `/ai/chat/executions/{requestId}` for status * - Submit client tool results via `/ai/chat/callback` * - Ideal for complex prompts, large contexts, or client-side tools * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models (Multimodal):** * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling :param organisation: The organisation ID (required) :type organisation: str @@ -103,6 +106,7 @@ def chat_inference( _response_types_map: Dict[str, Optional[str]] = { '200': "ChatInference200Response", + '202': "ChatInference202Response", '500': None, } response_data = self.api_client.call_api( @@ -136,7 +140,7 @@ def chat_inference_with_http_info( ) -> ApiResponse[ChatInference200Response]: """Chat inference via API Gateway (buffered responses) with multimodal support - Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling + Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Execution Modes:** * - **Sync Mode** (default): Standard JSON response, waits for completion (200 response) * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running inference * - Supports client-executed tools via `waiting_callback` state * - Poll `/ai/chat/executions/{requestId}` for status * - Submit client tool results via `/ai/chat/callback` * - Ideal for complex prompts, large contexts, or client-side tools * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models (Multimodal):** * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling :param organisation: The organisation ID (required) :type organisation: str @@ -175,6 +179,7 @@ def chat_inference_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ChatInference200Response", + '202': "ChatInference202Response", '500': None, } response_data = self.api_client.call_api( @@ -208,7 +213,7 @@ def chat_inference_without_preload_content( ) -> RESTResponseType: """Chat inference via API Gateway (buffered responses) with multimodal support - Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling + Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Execution Modes:** * - **Sync Mode** (default): Standard JSON response, waits for completion (200 response) * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running inference * - Supports client-executed tools via `waiting_callback` state * - Poll `/ai/chat/executions/{requestId}` for status * - Submit client tool results via `/ai/chat/callback` * - Ideal for complex prompts, large contexts, or client-side tools * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models (Multimodal):** * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling :param organisation: The organisation ID (required) :type organisation: str @@ -247,6 +252,7 @@ def chat_inference_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ChatInference200Response", + '202': "ChatInference202Response", '500': None, } response_data = self.api_client.call_api( @@ -356,7 +362,7 @@ def chat_inference_stream( ) -> str: """Chat inference via streaming endpoint (true HTTP streaming) with multimodal support - Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * - Streaming works with all content types (text, image, video, document) + Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. * * **Execution Modes:** * - **Streaming Mode** (default): Real-time SSE token-by-token responses * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running inference * - Supports client-executed tools via `waiting_callback` state * - Poll `/ai/chat/executions/{requestId}` for status * - Submit client tool results via `/ai/chat/callback` * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models (Multimodal):** * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * - Streaming works with all content types (text, image, video, document) :param organisation: The organisation ID (required) :type organisation: str @@ -395,6 +401,7 @@ def chat_inference_stream( _response_types_map: Dict[str, Optional[str]] = { '200': "str", + '202': "ChatInference202Response", '500': None, } response_data = self.api_client.call_api( @@ -428,7 +435,7 @@ def chat_inference_stream_with_http_info( ) -> ApiResponse[str]: """Chat inference via streaming endpoint (true HTTP streaming) with multimodal support - Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * - Streaming works with all content types (text, image, video, document) + Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. * * **Execution Modes:** * - **Streaming Mode** (default): Real-time SSE token-by-token responses * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running inference * - Supports client-executed tools via `waiting_callback` state * - Poll `/ai/chat/executions/{requestId}` for status * - Submit client tool results via `/ai/chat/callback` * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models (Multimodal):** * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * - Streaming works with all content types (text, image, video, document) :param organisation: The organisation ID (required) :type organisation: str @@ -467,6 +474,7 @@ def chat_inference_stream_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "str", + '202': "ChatInference202Response", '500': None, } response_data = self.api_client.call_api( @@ -500,7 +508,7 @@ def chat_inference_stream_without_preload_content( ) -> RESTResponseType: """Chat inference via streaming endpoint (true HTTP streaming) with multimodal support - Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * - Streaming works with all content types (text, image, video, document) + Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. * * **Execution Modes:** * - **Streaming Mode** (default): Real-time SSE token-by-token responses * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running inference * - Supports client-executed tools via `waiting_callback` state * - Poll `/ai/chat/executions/{requestId}` for status * - Submit client tool results via `/ai/chat/callback` * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models (Multimodal):** * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * - Streaming works with all content types (text, image, video, document) :param organisation: The organisation ID (required) :type organisation: str @@ -539,6 +547,7 @@ def chat_inference_stream_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "str", + '202': "ChatInference202Response", '500': None, } response_data = self.api_client.call_api( @@ -587,7 +596,8 @@ def _chat_inference_stream_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'text/event-stream' + 'text/event-stream', + 'application/json' ] ) @@ -926,6 +936,291 @@ def _embeddings_serialize( + @validate_call + def get_durable_execution_status( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + identifier: Annotated[StrictStr, Field(description="Either the requestId from async response, or full executionArn (URL-encoded)")], + _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, + ) -> GetDurableExecutionStatus200Response: + """Get Durable Execution Status + + Poll the status of an async/durable chat execution. * * **When to use:** After starting chat inference with `async: true`, poll this endpoint * to check execution status and retrieve results when complete. * * **Identifier:** Accepts either: * - `requestId` (recommended): The short ID returned from the async request * - `executionArn`: The full AWS Lambda durable execution ARN (must be URL-encoded) * * **Statuses:** * - `pending`: Execution is starting (retry shortly) * - `running`: Execution is in progress * - `waiting_callback`: Execution paused, waiting for client tool results * - `complete`: Execution finished successfully * - `failed`: Execution failed with error * * **Client Tool Callback:** * When status is `waiting_callback`, submit tool results via `POST /ai/chat/callback`. * * **Polling Recommendations:** * - Start with 1 second delay, exponential backoff up to 30 seconds * - Stop polling after 15 minutes (consider failed) + + :param organisation: The organisation ID (required) + :type organisation: str + :param identifier: Either the requestId from async response, or full executionArn (URL-encoded) (required) + :type identifier: 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_durable_execution_status_serialize( + organisation=organisation, + identifier=identifier, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDurableExecutionStatus200Response", + '404': None, + '403': None, + '500': None, + } + 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_durable_execution_status_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + identifier: Annotated[StrictStr, Field(description="Either the requestId from async response, or full executionArn (URL-encoded)")], + _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[GetDurableExecutionStatus200Response]: + """Get Durable Execution Status + + Poll the status of an async/durable chat execution. * * **When to use:** After starting chat inference with `async: true`, poll this endpoint * to check execution status and retrieve results when complete. * * **Identifier:** Accepts either: * - `requestId` (recommended): The short ID returned from the async request * - `executionArn`: The full AWS Lambda durable execution ARN (must be URL-encoded) * * **Statuses:** * - `pending`: Execution is starting (retry shortly) * - `running`: Execution is in progress * - `waiting_callback`: Execution paused, waiting for client tool results * - `complete`: Execution finished successfully * - `failed`: Execution failed with error * * **Client Tool Callback:** * When status is `waiting_callback`, submit tool results via `POST /ai/chat/callback`. * * **Polling Recommendations:** * - Start with 1 second delay, exponential backoff up to 30 seconds * - Stop polling after 15 minutes (consider failed) + + :param organisation: The organisation ID (required) + :type organisation: str + :param identifier: Either the requestId from async response, or full executionArn (URL-encoded) (required) + :type identifier: 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_durable_execution_status_serialize( + organisation=organisation, + identifier=identifier, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDurableExecutionStatus200Response", + '404': None, + '403': None, + '500': None, + } + 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_durable_execution_status_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + identifier: Annotated[StrictStr, Field(description="Either the requestId from async response, or full executionArn (URL-encoded)")], + _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 Durable Execution Status + + Poll the status of an async/durable chat execution. * * **When to use:** After starting chat inference with `async: true`, poll this endpoint * to check execution status and retrieve results when complete. * * **Identifier:** Accepts either: * - `requestId` (recommended): The short ID returned from the async request * - `executionArn`: The full AWS Lambda durable execution ARN (must be URL-encoded) * * **Statuses:** * - `pending`: Execution is starting (retry shortly) * - `running`: Execution is in progress * - `waiting_callback`: Execution paused, waiting for client tool results * - `complete`: Execution finished successfully * - `failed`: Execution failed with error * * **Client Tool Callback:** * When status is `waiting_callback`, submit tool results via `POST /ai/chat/callback`. * * **Polling Recommendations:** * - Start with 1 second delay, exponential backoff up to 30 seconds * - Stop polling after 15 minutes (consider failed) + + :param organisation: The organisation ID (required) + :type organisation: str + :param identifier: Either the requestId from async response, or full executionArn (URL-encoded) (required) + :type identifier: 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_durable_execution_status_serialize( + organisation=organisation, + identifier=identifier, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDurableExecutionStatus200Response", + '404': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_durable_execution_status_serialize( + self, + organisation, + identifier, + _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 organisation is not None: + _path_params['organisation'] = organisation + if identifier is not None: + _path_params['identifier'] = identifier + # 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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/chat/executions/{identifier}', + 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 image_generation( self, @@ -1222,3 +1517,304 @@ def _image_generation_serialize( ) + + + @validate_call + def submit_tool_callback( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + submit_tool_callback_request: SubmitToolCallbackRequest, + _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, + ) -> SubmitToolCallback200Response: + """Submit Client Tool Results (Callback) + + Submit tool execution results to resume a suspended durable execution. * * **When to use:** When polling the execution status returns `waiting_callback`, use this endpoint * to submit the results of client-executed tools. The execution will then resume. * * **Flow:** * 1. Start async chat with client-executed tools (`autoExecute: []` or tools not in autoExecute list) * 2. Poll status until `waiting_callback` * 3. Execute tools locally using `pendingTools` from status response * 4. Submit results here with the `callbackId` * 5. Poll status until `complete` * * **Important:** Each `callbackId` can only be used once. After submission, poll the execution * status to see the updated state. + + :param organisation: The organisation ID (required) + :type organisation: str + :param submit_tool_callback_request: (required) + :type submit_tool_callback_request: SubmitToolCallbackRequest + :param _request_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_tool_callback_serialize( + organisation=organisation, + submit_tool_callback_request=submit_tool_callback_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SubmitToolCallback200Response", + '400': None, + '404': None, + '403': None, + '500': None, + } + 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_tool_callback_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + submit_tool_callback_request: SubmitToolCallbackRequest, + _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[SubmitToolCallback200Response]: + """Submit Client Tool Results (Callback) + + Submit tool execution results to resume a suspended durable execution. * * **When to use:** When polling the execution status returns `waiting_callback`, use this endpoint * to submit the results of client-executed tools. The execution will then resume. * * **Flow:** * 1. Start async chat with client-executed tools (`autoExecute: []` or tools not in autoExecute list) * 2. Poll status until `waiting_callback` * 3. Execute tools locally using `pendingTools` from status response * 4. Submit results here with the `callbackId` * 5. Poll status until `complete` * * **Important:** Each `callbackId` can only be used once. After submission, poll the execution * status to see the updated state. + + :param organisation: The organisation ID (required) + :type organisation: str + :param submit_tool_callback_request: (required) + :type submit_tool_callback_request: SubmitToolCallbackRequest + :param _request_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_tool_callback_serialize( + organisation=organisation, + submit_tool_callback_request=submit_tool_callback_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SubmitToolCallback200Response", + '400': None, + '404': None, + '403': None, + '500': None, + } + 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_tool_callback_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + submit_tool_callback_request: SubmitToolCallbackRequest, + _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 Client Tool Results (Callback) + + Submit tool execution results to resume a suspended durable execution. * * **When to use:** When polling the execution status returns `waiting_callback`, use this endpoint * to submit the results of client-executed tools. The execution will then resume. * * **Flow:** * 1. Start async chat with client-executed tools (`autoExecute: []` or tools not in autoExecute list) * 2. Poll status until `waiting_callback` * 3. Execute tools locally using `pendingTools` from status response * 4. Submit results here with the `callbackId` * 5. Poll status until `complete` * * **Important:** Each `callbackId` can only be used once. After submission, poll the execution * status to see the updated state. + + :param organisation: The organisation ID (required) + :type organisation: str + :param submit_tool_callback_request: (required) + :type submit_tool_callback_request: SubmitToolCallbackRequest + :param _request_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_tool_callback_serialize( + organisation=organisation, + submit_tool_callback_request=submit_tool_callback_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SubmitToolCallback200Response", + '400': None, + '404': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _submit_tool_callback_serialize( + self, + organisation, + submit_tool_callback_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 organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if submit_tool_callback_request is not None: + _body_params = submit_tool_callback_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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/chat/callback', + 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/quantcdn/api/ai_models_api.py b/quantcdn/api/ai_models_api.py index a1e92138..4d2a5e6e 100644 --- a/quantcdn/api/ai_models_api.py +++ b/quantcdn/api/ai_models_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_monitoring_api.py b/quantcdn/api/ai_monitoring_api.py index f472bb53..25dd5032 100644 --- a/quantcdn/api/ai_monitoring_api.py +++ b/quantcdn/api/ai_monitoring_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_sessions_api.py b/quantcdn/api/ai_sessions_api.py index c2a2dba4..5dcbdbd0 100644 --- a/quantcdn/api/ai_sessions_api.py +++ b/quantcdn/api/ai_sessions_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_task_management_api.py b/quantcdn/api/ai_task_management_api.py new file mode 100644 index 00000000..e689e489 --- /dev/null +++ b/quantcdn/api/ai_task_management_api.py @@ -0,0 +1,1883 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from quantcdn.models.create_task201_response import CreateTask201Response +from quantcdn.models.create_task_request import CreateTaskRequest +from quantcdn.models.delete_task200_response import DeleteTask200Response +from quantcdn.models.get_dependency_graph200_response import GetDependencyGraph200Response +from quantcdn.models.get_task200_response import GetTask200Response +from quantcdn.models.list_tasks200_response import ListTasks200Response +from quantcdn.models.update_task200_response import UpdateTask200Response +from quantcdn.models.update_task_request import UpdateTaskRequest + +from quantcdn.api_client import ApiClient, RequestSerialized +from quantcdn.api_response import ApiResponse +from quantcdn.rest import RESTResponseType + + +class AITaskManagementApi: + """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_task( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + create_task_request: CreateTaskRequest, + _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, + ) -> CreateTask201Response: + """Create a new task + + Creates a new task for multi-agent coordination and workflow orchestration. * * **Key Features:** * - **Persistent State**: Tasks survive across conversations and sessions * - **Agent Assignment**: Pre-assign tasks to specific agents * - **Task Lists**: Group related tasks using taskListId (implicit - no need to create lists first) * - **Dependencies**: Define task dependencies for workflow orchestration * - **Metadata**: Store flexible JSON metadata for task-specific data * - **Progress Tracking**: Track progress from 0.0 to 1.0 * * **Use Cases:** * - Break down complex requests into manageable steps * - Assign work to specialized agents * - Track long-running operations * - Coordinate multi-agent workflows + + :param organisation: The organisation ID (required) + :type organisation: str + :param create_task_request: (required) + :type create_task_request: CreateTaskRequest + :param _request_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_task_serialize( + organisation=organisation, + create_task_request=create_task_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateTask201Response", + '400': None, + '500': None, + } + 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_task_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + create_task_request: CreateTaskRequest, + _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[CreateTask201Response]: + """Create a new task + + Creates a new task for multi-agent coordination and workflow orchestration. * * **Key Features:** * - **Persistent State**: Tasks survive across conversations and sessions * - **Agent Assignment**: Pre-assign tasks to specific agents * - **Task Lists**: Group related tasks using taskListId (implicit - no need to create lists first) * - **Dependencies**: Define task dependencies for workflow orchestration * - **Metadata**: Store flexible JSON metadata for task-specific data * - **Progress Tracking**: Track progress from 0.0 to 1.0 * * **Use Cases:** * - Break down complex requests into manageable steps * - Assign work to specialized agents * - Track long-running operations * - Coordinate multi-agent workflows + + :param organisation: The organisation ID (required) + :type organisation: str + :param create_task_request: (required) + :type create_task_request: CreateTaskRequest + :param _request_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_task_serialize( + organisation=organisation, + create_task_request=create_task_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateTask201Response", + '400': None, + '500': None, + } + 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_task_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + create_task_request: CreateTaskRequest, + _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 new task + + Creates a new task for multi-agent coordination and workflow orchestration. * * **Key Features:** * - **Persistent State**: Tasks survive across conversations and sessions * - **Agent Assignment**: Pre-assign tasks to specific agents * - **Task Lists**: Group related tasks using taskListId (implicit - no need to create lists first) * - **Dependencies**: Define task dependencies for workflow orchestration * - **Metadata**: Store flexible JSON metadata for task-specific data * - **Progress Tracking**: Track progress from 0.0 to 1.0 * * **Use Cases:** * - Break down complex requests into manageable steps * - Assign work to specialized agents * - Track long-running operations * - Coordinate multi-agent workflows + + :param organisation: The organisation ID (required) + :type organisation: str + :param create_task_request: (required) + :type create_task_request: CreateTaskRequest + :param _request_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_task_serialize( + organisation=organisation, + create_task_request=create_task_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateTask201Response", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_task_serialize( + self, + organisation, + create_task_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 organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if create_task_request is not None: + _body_params = create_task_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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/tasks', + 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_task( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_id: Annotated[StrictStr, Field(description="The task UUID")], + cascade: Annotated[Optional[StrictBool], Field(description="If true, delete task and all dependent tasks recursively")] = 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, + ) -> DeleteTask200Response: + """Delete a task + + Permanently deletes a task. This action cannot be undone. * * **Dependency Protection:** * By default, deletion is blocked if other tasks depend on this task (TASK_HAS_DEPENDENTS error). * This prevents breaking workflows. * * **Cascade Delete:** * Use `?cascade=true` to delete the task AND all tasks that depend on it recursively. * Useful for cleaning up entire dependency chains. * * **Examples:** * - DELETE /tasks/{id} - Deletes task if no dependents, otherwise returns 409 error * - DELETE /tasks/{id}?cascade=true - Deletes task and all dependent tasks + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_id: The task UUID (required) + :type task_id: str + :param cascade: If true, delete task and all dependent tasks recursively + :type cascade: 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._delete_task_serialize( + organisation=organisation, + task_id=task_id, + cascade=cascade, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteTask200Response", + '409': "DeleteTask409Response", + '404': None, + '500': None, + } + 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_task_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_id: Annotated[StrictStr, Field(description="The task UUID")], + cascade: Annotated[Optional[StrictBool], Field(description="If true, delete task and all dependent tasks recursively")] = 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[DeleteTask200Response]: + """Delete a task + + Permanently deletes a task. This action cannot be undone. * * **Dependency Protection:** * By default, deletion is blocked if other tasks depend on this task (TASK_HAS_DEPENDENTS error). * This prevents breaking workflows. * * **Cascade Delete:** * Use `?cascade=true` to delete the task AND all tasks that depend on it recursively. * Useful for cleaning up entire dependency chains. * * **Examples:** * - DELETE /tasks/{id} - Deletes task if no dependents, otherwise returns 409 error * - DELETE /tasks/{id}?cascade=true - Deletes task and all dependent tasks + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_id: The task UUID (required) + :type task_id: str + :param cascade: If true, delete task and all dependent tasks recursively + :type cascade: 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._delete_task_serialize( + organisation=organisation, + task_id=task_id, + cascade=cascade, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteTask200Response", + '409': "DeleteTask409Response", + '404': None, + '500': None, + } + 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_task_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_id: Annotated[StrictStr, Field(description="The task UUID")], + cascade: Annotated[Optional[StrictBool], Field(description="If true, delete task and all dependent tasks recursively")] = 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: + """Delete a task + + Permanently deletes a task. This action cannot be undone. * * **Dependency Protection:** * By default, deletion is blocked if other tasks depend on this task (TASK_HAS_DEPENDENTS error). * This prevents breaking workflows. * * **Cascade Delete:** * Use `?cascade=true` to delete the task AND all tasks that depend on it recursively. * Useful for cleaning up entire dependency chains. * * **Examples:** * - DELETE /tasks/{id} - Deletes task if no dependents, otherwise returns 409 error * - DELETE /tasks/{id}?cascade=true - Deletes task and all dependent tasks + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_id: The task UUID (required) + :type task_id: str + :param cascade: If true, delete task and all dependent tasks recursively + :type cascade: 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._delete_task_serialize( + organisation=organisation, + task_id=task_id, + cascade=cascade, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteTask200Response", + '409': "DeleteTask409Response", + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_task_serialize( + self, + organisation, + task_id, + cascade, + _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 organisation is not None: + _path_params['organisation'] = organisation + if task_id is not None: + _path_params['taskId'] = task_id + # process the query parameters + if cascade is not None: + + _query_params.append(('cascade', cascade)) + + # 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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/v3/organizations/{organisation}/ai/tasks/{taskId}', + 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_dependency_graph( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_list_id: Annotated[StrictStr, Field(description="The task list ID to get the dependency graph for")], + _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, + ) -> GetDependencyGraph200Response: + """Get dependency graph for a task list + + Returns the full dependency graph for all tasks in a task list. * * **Use Cases:** * - Visualize task dependencies in a UI (DAG diagram) * - Analyze workflow structure and critical paths * - Find starting tasks (roots) and terminal tasks (leaves) * - Plan parallel execution by identifying independent task groups * * **Response Structure:** * - `taskCount`: Total number of tasks in the list * - `roots`: Task IDs with no dependencies (starting points) * - `leaves`: Task IDs with no dependents (terminal tasks) * - `graph`: Adjacency list with each task's dependencies and dependents + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_list_id: The task list ID to get the dependency graph for (required) + :type task_list_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_dependency_graph_serialize( + organisation=organisation, + task_list_id=task_list_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDependencyGraph200Response", + '500': None, + } + 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_dependency_graph_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_list_id: Annotated[StrictStr, Field(description="The task list ID to get the dependency graph for")], + _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[GetDependencyGraph200Response]: + """Get dependency graph for a task list + + Returns the full dependency graph for all tasks in a task list. * * **Use Cases:** * - Visualize task dependencies in a UI (DAG diagram) * - Analyze workflow structure and critical paths * - Find starting tasks (roots) and terminal tasks (leaves) * - Plan parallel execution by identifying independent task groups * * **Response Structure:** * - `taskCount`: Total number of tasks in the list * - `roots`: Task IDs with no dependencies (starting points) * - `leaves`: Task IDs with no dependents (terminal tasks) * - `graph`: Adjacency list with each task's dependencies and dependents + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_list_id: The task list ID to get the dependency graph for (required) + :type task_list_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_dependency_graph_serialize( + organisation=organisation, + task_list_id=task_list_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDependencyGraph200Response", + '500': None, + } + 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_dependency_graph_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_list_id: Annotated[StrictStr, Field(description="The task list ID to get the dependency graph for")], + _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 dependency graph for a task list + + Returns the full dependency graph for all tasks in a task list. * * **Use Cases:** * - Visualize task dependencies in a UI (DAG diagram) * - Analyze workflow structure and critical paths * - Find starting tasks (roots) and terminal tasks (leaves) * - Plan parallel execution by identifying independent task groups * * **Response Structure:** * - `taskCount`: Total number of tasks in the list * - `roots`: Task IDs with no dependencies (starting points) * - `leaves`: Task IDs with no dependents (terminal tasks) * - `graph`: Adjacency list with each task's dependencies and dependents + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_list_id: The task list ID to get the dependency graph for (required) + :type task_list_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_dependency_graph_serialize( + organisation=organisation, + task_list_id=task_list_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDependencyGraph200Response", + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_dependency_graph_serialize( + self, + organisation, + task_list_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 organisation is not None: + _path_params['organisation'] = organisation + if task_list_id is not None: + _path_params['taskListId'] = task_list_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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph', + 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_task( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_id: Annotated[StrictStr, Field(description="The task UUID")], + _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, + ) -> GetTask200Response: + """Get task details + + Retrieves detailed information about a specific task including status, progress, dependencies, and results. + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_id: The task UUID (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_task_serialize( + organisation=organisation, + 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': "GetTask200Response", + '404': None, + '500': None, + } + 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_task_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_id: Annotated[StrictStr, Field(description="The task UUID")], + _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[GetTask200Response]: + """Get task details + + Retrieves detailed information about a specific task including status, progress, dependencies, and results. + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_id: The task UUID (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_task_serialize( + organisation=organisation, + 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': "GetTask200Response", + '404': None, + '500': None, + } + 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_task_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_id: Annotated[StrictStr, Field(description="The task UUID")], + _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 task details + + Retrieves detailed information about a specific task including status, progress, dependencies, and results. + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_id: The task UUID (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_task_serialize( + organisation=organisation, + 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': "GetTask200Response", + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_task_serialize( + self, + organisation, + 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 organisation is not None: + _path_params['organisation'] = organisation + if task_id is not None: + _path_params['taskId'] = 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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/tasks/{taskId}', + 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_tasks( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_list_id: Annotated[Optional[StrictStr], Field(description="Filter tasks by task list ID. Task lists are implicit groupings - any string can be used.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter tasks by status")] = None, + assigned_agent_id: Annotated[Optional[StrictStr], Field(description="Filter tasks by assigned agent ID")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of tasks to return (default 50, max 100)")] = None, + depends_on: Annotated[Optional[StrictStr], Field(description="Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete.")] = None, + include_details: Annotated[Optional[StrictBool], Field(description="When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses).")] = 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, + ) -> ListTasks200Response: + """List tasks with optional filtering + + Lists tasks for an organization with optional filtering. Filters can be combined for powerful queries. * * **Filter Examples:** * - All tasks in a list: ?taskListId=world-1 * - Pending tasks in a list: ?taskListId=world-1&status=pending * - Tasks assigned to an agent: ?assignedAgentId=agent-code-reviewer * - Combined: ?taskListId=world-1&status=in_progress&assignedAgentId=agent-1 * * **Reverse Dependency Lookup:** * Use `dependsOn` to find tasks that depend on a specific task (waiting for it to complete): * - ?dependsOn=task-123 - Returns task IDs only (lightweight) * - ?dependsOn=task-123&includeDetails=true - Returns full task objects * - ?dependsOn=task-123&status=pending - Pending tasks waiting for task-123 * * **Ordering:** * Tasks are returned in reverse chronological order (most recent first). + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_list_id: Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. + :type task_list_id: str + :param status: Filter tasks by status + :type status: str + :param assigned_agent_id: Filter tasks by assigned agent ID + :type assigned_agent_id: str + :param limit: Maximum number of tasks to return (default 50, max 100) + :type limit: int + :param depends_on: Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. + :type depends_on: str + :param include_details: When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). + :type include_details: 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._list_tasks_serialize( + organisation=organisation, + task_list_id=task_list_id, + status=status, + assigned_agent_id=assigned_agent_id, + limit=limit, + depends_on=depends_on, + include_details=include_details, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListTasks200Response", + '500': None, + } + 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_tasks_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_list_id: Annotated[Optional[StrictStr], Field(description="Filter tasks by task list ID. Task lists are implicit groupings - any string can be used.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter tasks by status")] = None, + assigned_agent_id: Annotated[Optional[StrictStr], Field(description="Filter tasks by assigned agent ID")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of tasks to return (default 50, max 100)")] = None, + depends_on: Annotated[Optional[StrictStr], Field(description="Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete.")] = None, + include_details: Annotated[Optional[StrictBool], Field(description="When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses).")] = 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[ListTasks200Response]: + """List tasks with optional filtering + + Lists tasks for an organization with optional filtering. Filters can be combined for powerful queries. * * **Filter Examples:** * - All tasks in a list: ?taskListId=world-1 * - Pending tasks in a list: ?taskListId=world-1&status=pending * - Tasks assigned to an agent: ?assignedAgentId=agent-code-reviewer * - Combined: ?taskListId=world-1&status=in_progress&assignedAgentId=agent-1 * * **Reverse Dependency Lookup:** * Use `dependsOn` to find tasks that depend on a specific task (waiting for it to complete): * - ?dependsOn=task-123 - Returns task IDs only (lightweight) * - ?dependsOn=task-123&includeDetails=true - Returns full task objects * - ?dependsOn=task-123&status=pending - Pending tasks waiting for task-123 * * **Ordering:** * Tasks are returned in reverse chronological order (most recent first). + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_list_id: Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. + :type task_list_id: str + :param status: Filter tasks by status + :type status: str + :param assigned_agent_id: Filter tasks by assigned agent ID + :type assigned_agent_id: str + :param limit: Maximum number of tasks to return (default 50, max 100) + :type limit: int + :param depends_on: Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. + :type depends_on: str + :param include_details: When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). + :type include_details: 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._list_tasks_serialize( + organisation=organisation, + task_list_id=task_list_id, + status=status, + assigned_agent_id=assigned_agent_id, + limit=limit, + depends_on=depends_on, + include_details=include_details, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListTasks200Response", + '500': None, + } + 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_tasks_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_list_id: Annotated[Optional[StrictStr], Field(description="Filter tasks by task list ID. Task lists are implicit groupings - any string can be used.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter tasks by status")] = None, + assigned_agent_id: Annotated[Optional[StrictStr], Field(description="Filter tasks by assigned agent ID")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of tasks to return (default 50, max 100)")] = None, + depends_on: Annotated[Optional[StrictStr], Field(description="Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete.")] = None, + include_details: Annotated[Optional[StrictBool], Field(description="When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses).")] = 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 tasks with optional filtering + + Lists tasks for an organization with optional filtering. Filters can be combined for powerful queries. * * **Filter Examples:** * - All tasks in a list: ?taskListId=world-1 * - Pending tasks in a list: ?taskListId=world-1&status=pending * - Tasks assigned to an agent: ?assignedAgentId=agent-code-reviewer * - Combined: ?taskListId=world-1&status=in_progress&assignedAgentId=agent-1 * * **Reverse Dependency Lookup:** * Use `dependsOn` to find tasks that depend on a specific task (waiting for it to complete): * - ?dependsOn=task-123 - Returns task IDs only (lightweight) * - ?dependsOn=task-123&includeDetails=true - Returns full task objects * - ?dependsOn=task-123&status=pending - Pending tasks waiting for task-123 * * **Ordering:** * Tasks are returned in reverse chronological order (most recent first). + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_list_id: Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. + :type task_list_id: str + :param status: Filter tasks by status + :type status: str + :param assigned_agent_id: Filter tasks by assigned agent ID + :type assigned_agent_id: str + :param limit: Maximum number of tasks to return (default 50, max 100) + :type limit: int + :param depends_on: Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. + :type depends_on: str + :param include_details: When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). + :type include_details: 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._list_tasks_serialize( + organisation=organisation, + task_list_id=task_list_id, + status=status, + assigned_agent_id=assigned_agent_id, + limit=limit, + depends_on=depends_on, + include_details=include_details, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListTasks200Response", + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_tasks_serialize( + self, + organisation, + task_list_id, + status, + assigned_agent_id, + limit, + depends_on, + include_details, + _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 organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + if task_list_id is not None: + + _query_params.append(('taskListId', task_list_id)) + + if status is not None: + + _query_params.append(('status', status)) + + if assigned_agent_id is not None: + + _query_params.append(('assignedAgentId', assigned_agent_id)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if depends_on is not None: + + _query_params.append(('dependsOn', depends_on)) + + if include_details is not None: + + _query_params.append(('includeDetails', include_details)) + + # 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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/tasks', + 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_task( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_id: Annotated[StrictStr, Field(description="The task UUID")], + update_task_request: UpdateTaskRequest, + _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, + ) -> UpdateTask200Response: + """Update a task + + Updates an existing task. All fields are optional - only provided fields will be updated. * * **Status Transitions:** * - Changing from **pending** to **in_progress** automatically sets startedAt timestamp * - Changing to **completed**, **failed**, or **cancelled** automatically sets completedAt timestamp * - Changing to **blocked** automatically sets blockedAt timestamp * - Changing from **blocked** to **in_progress** or **pending** clears blocked fields * - Completed tasks get a 30-day TTL for automatic cleanup * * **Progress Updates:** * - Update progress (0.0 to 1.0) to track completion percentage * - Update progressMessage for human-readable status updates * - Set result object when task completes successfully * - Set error string when task fails * - Set blockedReason and blockedByTaskIds when blocking a task + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_id: The task UUID (required) + :type task_id: str + :param update_task_request: (required) + :type update_task_request: UpdateTaskRequest + :param _request_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_task_serialize( + organisation=organisation, + task_id=task_id, + update_task_request=update_task_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateTask200Response", + '400': None, + '404': None, + '500': None, + } + 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_task_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_id: Annotated[StrictStr, Field(description="The task UUID")], + update_task_request: UpdateTaskRequest, + _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[UpdateTask200Response]: + """Update a task + + Updates an existing task. All fields are optional - only provided fields will be updated. * * **Status Transitions:** * - Changing from **pending** to **in_progress** automatically sets startedAt timestamp * - Changing to **completed**, **failed**, or **cancelled** automatically sets completedAt timestamp * - Changing to **blocked** automatically sets blockedAt timestamp * - Changing from **blocked** to **in_progress** or **pending** clears blocked fields * - Completed tasks get a 30-day TTL for automatic cleanup * * **Progress Updates:** * - Update progress (0.0 to 1.0) to track completion percentage * - Update progressMessage for human-readable status updates * - Set result object when task completes successfully * - Set error string when task fails * - Set blockedReason and blockedByTaskIds when blocking a task + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_id: The task UUID (required) + :type task_id: str + :param update_task_request: (required) + :type update_task_request: UpdateTaskRequest + :param _request_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_task_serialize( + organisation=organisation, + task_id=task_id, + update_task_request=update_task_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateTask200Response", + '400': None, + '404': None, + '500': None, + } + 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_task_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + task_id: Annotated[StrictStr, Field(description="The task UUID")], + update_task_request: UpdateTaskRequest, + _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 task + + Updates an existing task. All fields are optional - only provided fields will be updated. * * **Status Transitions:** * - Changing from **pending** to **in_progress** automatically sets startedAt timestamp * - Changing to **completed**, **failed**, or **cancelled** automatically sets completedAt timestamp * - Changing to **blocked** automatically sets blockedAt timestamp * - Changing from **blocked** to **in_progress** or **pending** clears blocked fields * - Completed tasks get a 30-day TTL for automatic cleanup * * **Progress Updates:** * - Update progress (0.0 to 1.0) to track completion percentage * - Update progressMessage for human-readable status updates * - Set result object when task completes successfully * - Set error string when task fails * - Set blockedReason and blockedByTaskIds when blocking a task + + :param organisation: The organisation ID (required) + :type organisation: str + :param task_id: The task UUID (required) + :type task_id: str + :param update_task_request: (required) + :type update_task_request: UpdateTaskRequest + :param _request_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_task_serialize( + organisation=organisation, + task_id=task_id, + update_task_request=update_task_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateTask200Response", + '400': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_task_serialize( + self, + organisation, + task_id, + update_task_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 organisation is not None: + _path_params['organisation'] = organisation + if task_id is not None: + _path_params['taskId'] = task_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if update_task_request is not None: + _body_params = update_task_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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/v3/organizations/{organisation}/ai/tasks/{taskId}', + 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/quantcdn/api/ai_tools_api.py b/quantcdn/api/ai_tools_api.py index 63ae1b6b..547341a2 100644 --- a/quantcdn/api/ai_tools_api.py +++ b/quantcdn/api/ai_tools_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,6 +19,7 @@ from pydantic import Field, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated +from quantcdn.models.get_ai_orchestration_status200_response import GetAIOrchestrationStatus200Response from quantcdn.models.get_ai_tool_execution_status200_response import GetAIToolExecutionStatus200Response from quantcdn.models.list_ai_tool_executions200_response import ListAIToolExecutions200Response from quantcdn.models.list_ai_tool_names200_response import ListAIToolNames200Response @@ -42,6 +43,291 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client + @validate_call + def get_ai_orchestration_status( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + orchestration_id: Annotated[str, Field(strict=True, description="Orchestration identifier for aggregated async tool executions")], + _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, + ) -> GetAIOrchestrationStatus200Response: + """Get Orchestration Status + + Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries + + :param organisation: The organisation ID (required) + :type organisation: str + :param orchestration_id: Orchestration identifier for aggregated async tool executions (required) + :type orchestration_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_ai_orchestration_status_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAIOrchestrationStatus200Response", + '404': "GetAIOrchestrationStatus404Response", + '403': None, + '500': None, + } + 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_orchestration_status_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + orchestration_id: Annotated[str, Field(strict=True, description="Orchestration identifier for aggregated async tool executions")], + _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[GetAIOrchestrationStatus200Response]: + """Get Orchestration Status + + Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries + + :param organisation: The organisation ID (required) + :type organisation: str + :param orchestration_id: Orchestration identifier for aggregated async tool executions (required) + :type orchestration_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_ai_orchestration_status_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAIOrchestrationStatus200Response", + '404': "GetAIOrchestrationStatus404Response", + '403': None, + '500': None, + } + 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_orchestration_status_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + orchestration_id: Annotated[str, Field(strict=True, description="Orchestration identifier for aggregated async tool executions")], + _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 Orchestration Status + + Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries + + :param organisation: The organisation ID (required) + :type organisation: str + :param orchestration_id: Orchestration identifier for aggregated async tool executions (required) + :type orchestration_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_ai_orchestration_status_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAIOrchestrationStatus200Response", + '404': "GetAIOrchestrationStatus404Response", + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_ai_orchestration_status_serialize( + self, + organisation, + orchestration_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 organisation is not None: + _path_params['organisation'] = organisation + if orchestration_id is not None: + _path_params['orchestrationId'] = orchestration_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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId}', + 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_tool_execution_status( self, diff --git a/quantcdn/api/ai_vector_database_api.py b/quantcdn/api/ai_vector_database_api.py index d88a90ea..ef8c7dae 100644 --- a/quantcdn/api/ai_vector_database_api.py +++ b/quantcdn/api/ai_vector_database_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -1205,7 +1205,7 @@ def query_vector_collection( ) -> QueryVectorCollection200Response: """Semantic Search Query - Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases + Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. * * **Three Search Modes:** * * 1. **Text Query** - Provide `query` string, server generates embedding * - Query text is embedded using the collection's embedding model * - Embeddings are cached for repeated queries * * 2. **Vector Query** - Provide pre-computed `vector` array * - Skip embedding generation (faster) * - Useful when you've already embedded the query elsewhere * - Vector dimension must match collection (e.g., 1024 for Titan v2) * * 3. **Metadata List** - Set `listByMetadata: true` with `filter` * - Skip semantic search entirely * - Return all documents matching the filter * - Supports cursor-based pagination for large datasets * - Results ordered by sortBy/sortOrder (default: created_at DESC) * * **Filtering:** * - `filter.exact`: Exact match on metadata fields (AND logic) * - `filter.contains`: Array contains filter for tags (ANY match) * - Filters can be combined with semantic search or used alone with listByMetadata * * **Pagination (listByMetadata mode only):** * - Use `cursor` from previous response's `nextCursor` to get next page * - Uses keyset pagination for efficient traversal of large datasets * - Control sort with `sortBy` and `sortOrder` * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases * - List all artifacts by building/worker/tag :param organisation: The organisation ID (required) :type organisation: str @@ -1284,7 +1284,7 @@ def query_vector_collection_with_http_info( ) -> ApiResponse[QueryVectorCollection200Response]: """Semantic Search Query - Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases + Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. * * **Three Search Modes:** * * 1. **Text Query** - Provide `query` string, server generates embedding * - Query text is embedded using the collection's embedding model * - Embeddings are cached for repeated queries * * 2. **Vector Query** - Provide pre-computed `vector` array * - Skip embedding generation (faster) * - Useful when you've already embedded the query elsewhere * - Vector dimension must match collection (e.g., 1024 for Titan v2) * * 3. **Metadata List** - Set `listByMetadata: true` with `filter` * - Skip semantic search entirely * - Return all documents matching the filter * - Supports cursor-based pagination for large datasets * - Results ordered by sortBy/sortOrder (default: created_at DESC) * * **Filtering:** * - `filter.exact`: Exact match on metadata fields (AND logic) * - `filter.contains`: Array contains filter for tags (ANY match) * - Filters can be combined with semantic search or used alone with listByMetadata * * **Pagination (listByMetadata mode only):** * - Use `cursor` from previous response's `nextCursor` to get next page * - Uses keyset pagination for efficient traversal of large datasets * - Control sort with `sortBy` and `sortOrder` * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases * - List all artifacts by building/worker/tag :param organisation: The organisation ID (required) :type organisation: str @@ -1363,7 +1363,7 @@ def query_vector_collection_without_preload_content( ) -> RESTResponseType: """Semantic Search Query - Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases + Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. * * **Three Search Modes:** * * 1. **Text Query** - Provide `query` string, server generates embedding * - Query text is embedded using the collection's embedding model * - Embeddings are cached for repeated queries * * 2. **Vector Query** - Provide pre-computed `vector` array * - Skip embedding generation (faster) * - Useful when you've already embedded the query elsewhere * - Vector dimension must match collection (e.g., 1024 for Titan v2) * * 3. **Metadata List** - Set `listByMetadata: true` with `filter` * - Skip semantic search entirely * - Return all documents matching the filter * - Supports cursor-based pagination for large datasets * - Results ordered by sortBy/sortOrder (default: created_at DESC) * * **Filtering:** * - `filter.exact`: Exact match on metadata fields (AND logic) * - `filter.contains`: Array contains filter for tags (ANY match) * - Filters can be combined with semantic search or used alone with listByMetadata * * **Pagination (listByMetadata mode only):** * - Use `cursor` from previous response's `nextCursor` to get next page * - Uses keyset pagination for efficient traversal of large datasets * - Control sort with `sortBy` and `sortOrder` * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases * - List all artifacts by building/worker/tag :param organisation: The organisation ID (required) :type organisation: str diff --git a/quantcdn/api/applications_api.py b/quantcdn/api/applications_api.py index 3a6a89e4..3229a677 100644 --- a/quantcdn/api/applications_api.py +++ b/quantcdn/api/applications_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/backup_management_api.py b/quantcdn/api/backup_management_api.py index 2fb6506b..400ce571 100644 --- a/quantcdn/api/backup_management_api.py +++ b/quantcdn/api/backup_management_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/commands_api.py b/quantcdn/api/commands_api.py index 991695e8..54ecd966 100644 --- a/quantcdn/api/commands_api.py +++ b/quantcdn/api/commands_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/compose_api.py b/quantcdn/api/compose_api.py index a3c3b77e..1508deee 100644 --- a/quantcdn/api/compose_api.py +++ b/quantcdn/api/compose_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/containers_api.py b/quantcdn/api/containers_api.py index 541ba007..f22b98ab 100644 --- a/quantcdn/api/containers_api.py +++ b/quantcdn/api/containers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/crawler_schedules_api.py b/quantcdn/api/crawler_schedules_api.py index 748046d7..e6f766bf 100644 --- a/quantcdn/api/crawler_schedules_api.py +++ b/quantcdn/api/crawler_schedules_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/crawlers_api.py b/quantcdn/api/crawlers_api.py index a322c46f..03328107 100644 --- a/quantcdn/api/crawlers_api.py +++ b/quantcdn/api/crawlers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictInt, StrictStr -from typing import List +from typing import List, Optional from typing_extensions import Annotated from quantcdn.models.crawlers_run200_response import CrawlersRun200Response from quantcdn.models.crawlers_run_request import CrawlersRunRequest @@ -1835,7 +1835,7 @@ def crawlers_run( organization: Annotated[StrictStr, Field(description="Organization identifier")], project: Annotated[StrictStr, Field(description="Project identifier")], crawler: Annotated[StrictStr, Field(description="Crawler identifier")], - crawlers_run_request: CrawlersRunRequest, + crawlers_run_request: Optional[CrawlersRunRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1858,7 +1858,7 @@ def crawlers_run( :type project: str :param crawler: Crawler identifier (required) :type crawler: str - :param crawlers_run_request: (required) + :param crawlers_run_request: :type crawlers_run_request: CrawlersRunRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1917,7 +1917,7 @@ def crawlers_run_with_http_info( organization: Annotated[StrictStr, Field(description="Organization identifier")], project: Annotated[StrictStr, Field(description="Project identifier")], crawler: Annotated[StrictStr, Field(description="Crawler identifier")], - crawlers_run_request: CrawlersRunRequest, + crawlers_run_request: Optional[CrawlersRunRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1940,7 +1940,7 @@ def crawlers_run_with_http_info( :type project: str :param crawler: Crawler identifier (required) :type crawler: str - :param crawlers_run_request: (required) + :param crawlers_run_request: :type crawlers_run_request: CrawlersRunRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1999,7 +1999,7 @@ def crawlers_run_without_preload_content( organization: Annotated[StrictStr, Field(description="Organization identifier")], project: Annotated[StrictStr, Field(description="Project identifier")], crawler: Annotated[StrictStr, Field(description="Crawler identifier")], - crawlers_run_request: CrawlersRunRequest, + crawlers_run_request: Optional[CrawlersRunRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2022,7 +2022,7 @@ def crawlers_run_without_preload_content( :type project: str :param crawler: Crawler identifier (required) :type crawler: str - :param crawlers_run_request: (required) + :param crawlers_run_request: :type crawlers_run_request: CrawlersRunRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/quantcdn/api/cron_api.py b/quantcdn/api/cron_api.py index c602169e..a497d8b8 100644 --- a/quantcdn/api/cron_api.py +++ b/quantcdn/api/cron_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/domains_api.py b/quantcdn/api/domains_api.py index af3fa5a0..3f15b5dd 100644 --- a/quantcdn/api/domains_api.py +++ b/quantcdn/api/domains_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/environments_api.py b/quantcdn/api/environments_api.py index 3a31f433..7a09d3cf 100644 --- a/quantcdn/api/environments_api.py +++ b/quantcdn/api/environments_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/headers_api.py b/quantcdn/api/headers_api.py index 960d6576..7f481dc3 100644 --- a/quantcdn/api/headers_api.py +++ b/quantcdn/api/headers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/kv_api.py b/quantcdn/api/kv_api.py index aa25d00c..07ff1e31 100644 --- a/quantcdn/api/kv_api.py +++ b/quantcdn/api/kv_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/orchestration_api.py b/quantcdn/api/orchestration_api.py new file mode 100644 index 00000000..9e162a8f --- /dev/null +++ b/quantcdn/api/orchestration_api.py @@ -0,0 +1,323 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, StrictStr, field_validator +from typing_extensions import Annotated +from quantcdn.models.get_ai_orchestration_status200_response import GetAIOrchestrationStatus200Response + +from quantcdn.api_client import ApiClient, RequestSerialized +from quantcdn.api_response import ApiResponse +from quantcdn.rest import RESTResponseType + + +class OrchestrationApi: + """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_ai_orchestration_status( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + orchestration_id: Annotated[str, Field(strict=True, description="Orchestration identifier for aggregated async tool executions")], + _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, + ) -> GetAIOrchestrationStatus200Response: + """Get Orchestration Status + + Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries + + :param organisation: The organisation ID (required) + :type organisation: str + :param orchestration_id: Orchestration identifier for aggregated async tool executions (required) + :type orchestration_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_ai_orchestration_status_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAIOrchestrationStatus200Response", + '404': "GetAIOrchestrationStatus404Response", + '403': None, + '500': None, + } + 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_orchestration_status_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + orchestration_id: Annotated[str, Field(strict=True, description="Orchestration identifier for aggregated async tool executions")], + _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[GetAIOrchestrationStatus200Response]: + """Get Orchestration Status + + Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries + + :param organisation: The organisation ID (required) + :type organisation: str + :param orchestration_id: Orchestration identifier for aggregated async tool executions (required) + :type orchestration_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_ai_orchestration_status_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAIOrchestrationStatus200Response", + '404': "GetAIOrchestrationStatus404Response", + '403': None, + '500': None, + } + 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_orchestration_status_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + orchestration_id: Annotated[str, Field(strict=True, description="Orchestration identifier for aggregated async tool executions")], + _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 Orchestration Status + + Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries + + :param organisation: The organisation ID (required) + :type organisation: str + :param orchestration_id: Orchestration identifier for aggregated async tool executions (required) + :type orchestration_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_ai_orchestration_status_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAIOrchestrationStatus200Response", + '404': "GetAIOrchestrationStatus404Response", + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_ai_orchestration_status_serialize( + self, + organisation, + orchestration_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 organisation is not None: + _path_params['organisation'] = organisation + if orchestration_id is not None: + _path_params['orchestrationId'] = orchestration_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] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId}', + 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/quantcdn/api/organizations_api.py b/quantcdn/api/organizations_api.py index d20d9bb1..7cc85113 100644 --- a/quantcdn/api/organizations_api.py +++ b/quantcdn/api/organizations_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/projects_api.py b/quantcdn/api/projects_api.py index 1e5d245e..ab132e35 100644 --- a/quantcdn/api/projects_api.py +++ b/quantcdn/api/projects_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/purge_api.py b/quantcdn/api/purge_api.py index d337dd97..320c9c3c 100644 --- a/quantcdn/api/purge_api.py +++ b/quantcdn/api/purge_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/rules_api.py b/quantcdn/api/rules_api.py index b6febe93..a4813956 100644 --- a/quantcdn/api/rules_api.py +++ b/quantcdn/api/rules_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/scaling_policy_api.py b/quantcdn/api/scaling_policy_api.py index 2282785a..b0da9ccd 100644 --- a/quantcdn/api/scaling_policy_api.py +++ b/quantcdn/api/scaling_policy_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ssh_access_api.py b/quantcdn/api/ssh_access_api.py index 23580984..ceb8c824 100644 --- a/quantcdn/api/ssh_access_api.py +++ b/quantcdn/api/ssh_access_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/variables_api.py b/quantcdn/api/variables_api.py index ac8702ae..6056171f 100644 --- a/quantcdn/api/variables_api.py +++ b/quantcdn/api/variables_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/volumes_api.py b/quantcdn/api/volumes_api.py index df68b70f..b45c93d3 100644 --- a/quantcdn/api/volumes_api.py +++ b/quantcdn/api/volumes_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api_client.py b/quantcdn/api_client.py index 6f89c1ac..13cae242 100644 --- a/quantcdn/api_client.py +++ b/quantcdn/api_client.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/configuration.py b/quantcdn/configuration.py index e22b2f3d..1a2eb5df 100644 --- a/quantcdn/configuration.py +++ b/quantcdn/configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -510,7 +510,7 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 4.8.0\n"\ + "Version of the API: 4.9.0\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/quantcdn/exceptions.py b/quantcdn/exceptions.py index 2a270ea5..9b78c7c3 100644 --- a/quantcdn/exceptions.py +++ b/quantcdn/exceptions.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/__init__.py b/quantcdn/models/__init__.py index d92c85e8..c4179ae5 100644 --- a/quantcdn/models/__init__.py +++ b/quantcdn/models/__init__.py @@ -6,7 +6,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -29,6 +29,7 @@ from quantcdn.models.chat_inference200_response_response_tool_use_one_of1_inner import ChatInference200ResponseResponseToolUseOneOf1Inner from quantcdn.models.chat_inference200_response_response_tool_use_one_of_result import ChatInference200ResponseResponseToolUseOneOfResult from quantcdn.models.chat_inference200_response_usage import ChatInference200ResponseUsage +from quantcdn.models.chat_inference202_response import ChatInference202Response from quantcdn.models.chat_inference_request import ChatInferenceRequest from quantcdn.models.chat_inference_request_messages_inner import ChatInferenceRequestMessagesInner from quantcdn.models.chat_inference_request_messages_inner_content import ChatInferenceRequestMessagesInnerContent @@ -54,6 +55,7 @@ from quantcdn.models.chat_with_ai_agent200_response import ChatWithAIAgent200Response from quantcdn.models.chat_with_ai_agent200_response_response import ChatWithAIAgent200ResponseResponse from quantcdn.models.chat_with_ai_agent200_response_response_usage import ChatWithAIAgent200ResponseResponseUsage +from quantcdn.models.chat_with_ai_agent202_response import ChatWithAIAgent202Response from quantcdn.models.chat_with_ai_agent_request import ChatWithAIAgentRequest from quantcdn.models.command import Command from quantcdn.models.compose import Compose @@ -86,6 +88,8 @@ from quantcdn.models.create_environment403_response import CreateEnvironment403Response from quantcdn.models.create_environment_request import CreateEnvironmentRequest from quantcdn.models.create_environment_request_environment_inner import CreateEnvironmentRequestEnvironmentInner +from quantcdn.models.create_task201_response import CreateTask201Response +from quantcdn.models.create_task_request import CreateTaskRequest from quantcdn.models.create_vector_collection201_response import CreateVectorCollection201Response from quantcdn.models.create_vector_collection201_response_collection import CreateVectorCollection201ResponseCollection from quantcdn.models.create_vector_collection_request import CreateVectorCollectionRequest @@ -96,6 +100,9 @@ from quantcdn.models.delete_ai_session200_response import DeleteAISession200Response from quantcdn.models.delete_backup200_response import DeleteBackup200Response from quantcdn.models.delete_custom_tool200_response import DeleteCustomTool200Response +from quantcdn.models.delete_file200_response import DeleteFile200Response +from quantcdn.models.delete_task200_response import DeleteTask200Response +from quantcdn.models.delete_task409_response import DeleteTask409Response from quantcdn.models.delete_vector_collection200_response import DeleteVectorCollection200Response from quantcdn.models.download_backup200_response import DownloadBackup200Response from quantcdn.models.embeddings200_response import Embeddings200Response @@ -114,17 +121,29 @@ from quantcdn.models.get_ai_model200_response_capabilities import GetAIModel200ResponseCapabilities from quantcdn.models.get_ai_model200_response_pricing import GetAIModel200ResponsePricing from quantcdn.models.get_ai_model404_response import GetAIModel404Response +from quantcdn.models.get_ai_orchestration_status200_response import GetAIOrchestrationStatus200Response +from quantcdn.models.get_ai_orchestration_status200_response_tools_inner import GetAIOrchestrationStatus200ResponseToolsInner +from quantcdn.models.get_ai_orchestration_status404_response import GetAIOrchestrationStatus404Response from quantcdn.models.get_ai_session200_response import GetAISession200Response from quantcdn.models.get_ai_tool_execution_status200_response import GetAIToolExecutionStatus200Response from quantcdn.models.get_ai_tool_execution_status200_response_result import GetAIToolExecutionStatus200ResponseResult from quantcdn.models.get_ai_tool_execution_status404_response import GetAIToolExecutionStatus404Response from quantcdn.models.get_ai_usage_stats200_response import GetAIUsageStats200Response from quantcdn.models.get_ai_usage_stats200_response_by_model_value import GetAIUsageStats200ResponseByModelValue +from quantcdn.models.get_dependency_graph200_response import GetDependencyGraph200Response +from quantcdn.models.get_durable_execution_status200_response import GetDurableExecutionStatus200Response +from quantcdn.models.get_durable_execution_status200_response_error import GetDurableExecutionStatus200ResponseError +from quantcdn.models.get_durable_execution_status200_response_pending_tools_inner import GetDurableExecutionStatus200ResponsePendingToolsInner +from quantcdn.models.get_durable_execution_status200_response_result import GetDurableExecutionStatus200ResponseResult +from quantcdn.models.get_durable_execution_status200_response_result_response import GetDurableExecutionStatus200ResponseResultResponse +from quantcdn.models.get_durable_execution_status200_response_result_usage import GetDurableExecutionStatus200ResponseResultUsage from quantcdn.models.get_ecr_login_credentials200_response import GetEcrLoginCredentials200Response from quantcdn.models.get_environment_logs200_response import GetEnvironmentLogs200Response from quantcdn.models.get_environment_logs200_response_log_events_inner import GetEnvironmentLogs200ResponseLogEventsInner +from quantcdn.models.get_file200_response import GetFile200Response from quantcdn.models.get_ssh_access_credentials200_response import GetSshAccessCredentials200Response from quantcdn.models.get_ssh_access_credentials200_response_credentials import GetSshAccessCredentials200ResponseCredentials +from quantcdn.models.get_task200_response import GetTask200Response from quantcdn.models.get_vector_collection200_response import GetVectorCollection200Response from quantcdn.models.get_vector_collection200_response_collection import GetVectorCollection200ResponseCollection from quantcdn.models.image_generation200_response import ImageGeneration200Response @@ -158,6 +177,10 @@ from quantcdn.models.list_backups422_response import ListBackups422Response from quantcdn.models.list_custom_tools200_response import ListCustomTools200Response from quantcdn.models.list_custom_tools200_response_tools_inner import ListCustomTools200ResponseToolsInner +from quantcdn.models.list_files200_response import ListFiles200Response +from quantcdn.models.list_files200_response_files_inner import ListFiles200ResponseFilesInner +from quantcdn.models.list_tasks200_response import ListTasks200Response +from quantcdn.models.list_tasks200_response_tasks_inner import ListTasks200ResponseTasksInner from quantcdn.models.list_vector_collections200_response import ListVectorCollections200Response from quantcdn.models.list_vector_collections200_response_collections_inner import ListVectorCollections200ResponseCollectionsInner from quantcdn.models.organizations_list200_response_inner import OrganizationsList200ResponseInner @@ -168,11 +191,15 @@ from quantcdn.models.patch_environment_compose_request_spot_configuration import PatchEnvironmentComposeRequestSpotConfiguration from quantcdn.models.purge_create_request import PurgeCreateRequest from quantcdn.models.query_vector_collection200_response import QueryVectorCollection200Response +from quantcdn.models.query_vector_collection200_response_pagination import QueryVectorCollection200ResponsePagination from quantcdn.models.query_vector_collection200_response_results_inner import QueryVectorCollection200ResponseResultsInner -from quantcdn.models.query_vector_collection200_response_results_inner_metadata import QueryVectorCollection200ResponseResultsInnerMetadata from quantcdn.models.query_vector_collection_request import QueryVectorCollectionRequest +from quantcdn.models.query_vector_collection_request_filter import QueryVectorCollectionRequestFilter from quantcdn.models.scaling_policy import ScalingPolicy from quantcdn.models.spot_configuration import SpotConfiguration +from quantcdn.models.submit_tool_callback200_response import SubmitToolCallback200Response +from quantcdn.models.submit_tool_callback_request import SubmitToolCallbackRequest +from quantcdn.models.submit_tool_callback_request_tool_results_inner import SubmitToolCallbackRequestToolResultsInner from quantcdn.models.sync_operation import SyncOperation from quantcdn.models.sync_to_environment_request import SyncToEnvironmentRequest from quantcdn.models.update_ai_agent200_response import UpdateAIAgent200Response @@ -184,6 +211,10 @@ from quantcdn.models.update_environment_request import UpdateEnvironmentRequest from quantcdn.models.update_environment_state_request import UpdateEnvironmentStateRequest from quantcdn.models.update_environment_variable_request import UpdateEnvironmentVariableRequest +from quantcdn.models.update_task200_response import UpdateTask200Response +from quantcdn.models.update_task_request import UpdateTaskRequest +from quantcdn.models.upload_file201_response import UploadFile201Response +from quantcdn.models.upload_file_request import UploadFileRequest from quantcdn.models.upload_vector_documents200_response import UploadVectorDocuments200Response from quantcdn.models.upload_vector_documents_request import UploadVectorDocumentsRequest from quantcdn.models.upload_vector_documents_request_documents_inner import UploadVectorDocumentsRequestDocumentsInner diff --git a/quantcdn/models/application.py b/quantcdn/models/application.py index da117ede..ddb9fc63 100644 --- a/quantcdn/models/application.py +++ b/quantcdn/models/application.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/application_database.py b/quantcdn/models/application_database.py index 281b7f22..00db1869 100644 --- a/quantcdn/models/application_database.py +++ b/quantcdn/models/application_database.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/application_deployment_information_inner.py b/quantcdn/models/application_deployment_information_inner.py index ee22a0e2..cc2b196d 100644 --- a/quantcdn/models/application_deployment_information_inner.py +++ b/quantcdn/models/application_deployment_information_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/application_environments_inner.py b/quantcdn/models/application_environments_inner.py index b6a8be48..62187a30 100644 --- a/quantcdn/models/application_environments_inner.py +++ b/quantcdn/models/application_environments_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/application_filesystem.py b/quantcdn/models/application_filesystem.py index fc336b4e..12e386b6 100644 --- a/quantcdn/models/application_filesystem.py +++ b/quantcdn/models/application_filesystem.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/application_image_reference.py b/quantcdn/models/application_image_reference.py index 504ba803..876a9a29 100644 --- a/quantcdn/models/application_image_reference.py +++ b/quantcdn/models/application_image_reference.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/bulk_set_environment_variables_request.py b/quantcdn/models/bulk_set_environment_variables_request.py index 02b4a6ca..6475570c 100644 --- a/quantcdn/models/bulk_set_environment_variables_request.py +++ b/quantcdn/models/bulk_set_environment_variables_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/bulk_set_environment_variables_request_environment_inner.py b/quantcdn/models/bulk_set_environment_variables_request_environment_inner.py index d5df47ce..8e5dd36e 100644 --- a/quantcdn/models/bulk_set_environment_variables_request_environment_inner.py +++ b/quantcdn/models/bulk_set_environment_variables_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response.py b/quantcdn/models/chat_inference200_response.py index 18f540db..1560e914 100644 --- a/quantcdn/models/chat_inference200_response.py +++ b/quantcdn/models/chat_inference200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_response.py b/quantcdn/models/chat_inference200_response_response.py index 73e1744e..8a0170aa 100644 --- a/quantcdn/models/chat_inference200_response_response.py +++ b/quantcdn/models/chat_inference200_response_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_response_tool_use.py b/quantcdn/models/chat_inference200_response_response_tool_use.py index 75fa8f36..1af39dc6 100644 --- a/quantcdn/models/chat_inference200_response_response_tool_use.py +++ b/quantcdn/models/chat_inference200_response_response_tool_use.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_response_tool_use_one_of.py b/quantcdn/models/chat_inference200_response_response_tool_use_one_of.py index 7925e561..bc7d1a66 100644 --- a/quantcdn/models/chat_inference200_response_response_tool_use_one_of.py +++ b/quantcdn/models/chat_inference200_response_response_tool_use_one_of.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_response_tool_use_one_of1_inner.py b/quantcdn/models/chat_inference200_response_response_tool_use_one_of1_inner.py index 07008e21..c8b6d395 100644 --- a/quantcdn/models/chat_inference200_response_response_tool_use_one_of1_inner.py +++ b/quantcdn/models/chat_inference200_response_response_tool_use_one_of1_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_response_tool_use_one_of_result.py b/quantcdn/models/chat_inference200_response_response_tool_use_one_of_result.py index 7b5af240..3b765a04 100644 --- a/quantcdn/models/chat_inference200_response_response_tool_use_one_of_result.py +++ b/quantcdn/models/chat_inference200_response_response_tool_use_one_of_result.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_usage.py b/quantcdn/models/chat_inference200_response_usage.py index 7f5db812..bd22513a 100644 --- a/quantcdn/models/chat_inference200_response_usage.py +++ b/quantcdn/models/chat_inference200_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference202_response.py b/quantcdn/models/chat_inference202_response.py new file mode 100644 index 00000000..461b23af --- /dev/null +++ b/quantcdn/models/chat_inference202_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ChatInference202Response(BaseModel): + """ + ChatInference202Response + """ # noqa: E501 + request_id: StrictStr = Field(description="Unique request identifier for polling", alias="requestId") + session_id: Optional[StrictStr] = Field(default=None, description="Session ID for conversation continuity", alias="sessionId") + status: StrictStr = Field(description="Initial execution status") + message: Optional[StrictStr] = Field(default=None, description="Human-readable status message") + poll_url: StrictStr = Field(description="URL to poll for execution status", alias="pollUrl") + __properties: ClassVar[List[str]] = ["requestId", "sessionId", "status", "message", "pollUrl"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['queued']): + raise ValueError("must be one of enum values ('queued')") + 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 ChatInference202Response 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 ChatInference202Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requestId": obj.get("requestId"), + "sessionId": obj.get("sessionId"), + "status": obj.get("status"), + "message": obj.get("message"), + "pollUrl": obj.get("pollUrl") + }) + return _obj + + diff --git a/quantcdn/models/chat_inference_request.py b/quantcdn/models/chat_inference_request.py index 1acbb8d5..a59e6332 100644 --- a/quantcdn/models/chat_inference_request.py +++ b/quantcdn/models/chat_inference_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -33,14 +33,16 @@ class ChatInferenceRequest(BaseModel): messages: Annotated[List[ChatInferenceRequestMessagesInner], Field(min_length=1)] = Field(description="Array of chat messages. Content can be a simple string or an array of content blocks for multimodal input.") model_id: StrictStr = Field(description="Model ID. Use Nova models for multimodal support.", alias="modelId") temperature: Optional[Union[Annotated[float, Field(le=2, strict=True, ge=0)], Annotated[int, Field(le=2, strict=True, ge=0)]]] = 0.7 - max_tokens: Optional[Annotated[int, Field(le=8192, strict=True, ge=1)]] = Field(default=1024, alias="maxTokens") + max_tokens: Optional[Annotated[int, Field(le=65536, strict=True, ge=1)]] = Field(default=4096, description="Max tokens. Claude 4.5 supports up to 64k.", alias="maxTokens") top_p: Optional[Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=None, alias="topP") stream: Optional[StrictBool] = Field(default=None, description="Ignored in buffered mode, always returns complete response") system_prompt: Optional[StrictStr] = Field(default=None, description="Optional custom system prompt. When tools are enabled, this is prepended with tool usage guidance.", alias="systemPrompt") stop_sequences: Optional[Annotated[List[StrictStr], Field(max_length=4)]] = Field(default=None, description="Custom stop sequences", alias="stopSequences") response_format: Optional[ChatInferenceRequestResponseFormat] = Field(default=None, alias="responseFormat") tool_config: Optional[ChatInferenceRequestToolConfig] = Field(default=None, alias="toolConfig") - __properties: ClassVar[List[str]] = ["messages", "modelId", "temperature", "maxTokens", "topP", "stream", "systemPrompt", "stopSequences", "responseFormat", "toolConfig"] + session_id: Optional[StrictStr] = Field(default=None, description="Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session.", alias="sessionId") + var_async: Optional[StrictBool] = Field(default=False, description="Enable async/durable execution mode. When true, returns 202 with pollUrl instead of waiting for completion. Use for long-running inference, client-executed tools, or operations >30 seconds.", alias="async") + __properties: ClassVar[List[str]] = ["messages", "modelId", "temperature", "maxTokens", "topP", "stream", "systemPrompt", "stopSequences", "responseFormat", "toolConfig", "sessionId", "async"] model_config = ConfigDict( populate_by_name=True, @@ -109,13 +111,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "messages": [ChatInferenceRequestMessagesInner.from_dict(_item) for _item in obj["messages"]] if obj.get("messages") is not None else None, "modelId": obj.get("modelId"), "temperature": obj.get("temperature") if obj.get("temperature") is not None else 0.7, - "maxTokens": obj.get("maxTokens") if obj.get("maxTokens") is not None else 1024, + "maxTokens": obj.get("maxTokens") if obj.get("maxTokens") is not None else 4096, "topP": obj.get("topP"), "stream": obj.get("stream"), "systemPrompt": obj.get("systemPrompt"), "stopSequences": obj.get("stopSequences"), "responseFormat": ChatInferenceRequestResponseFormat.from_dict(obj["responseFormat"]) if obj.get("responseFormat") is not None else None, - "toolConfig": ChatInferenceRequestToolConfig.from_dict(obj["toolConfig"]) if obj.get("toolConfig") is not None else None + "toolConfig": ChatInferenceRequestToolConfig.from_dict(obj["toolConfig"]) if obj.get("toolConfig") is not None else None, + "sessionId": obj.get("sessionId"), + "async": obj.get("async") if obj.get("async") is not None else False }) return _obj diff --git a/quantcdn/models/chat_inference_request_messages_inner.py b/quantcdn/models/chat_inference_request_messages_inner.py index bb7c9487..816d56fe 100644 --- a/quantcdn/models/chat_inference_request_messages_inner.py +++ b/quantcdn/models/chat_inference_request_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content.py b/quantcdn/models/chat_inference_request_messages_inner_content.py index 4c038d65..64967f13 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner.py index 1e08558e..0b57d3c4 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of.py index 2b4adaf0..992a46ec 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1.py index f4803d38..0277155f 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py index 68b36dfa..6b092d86 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py index 044e97a5..585aee04 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2.py index 7c876272..d5660058 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py index 390d5745..51475b30 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py index b008397b..32454fb4 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3.py index 59018862..b9ef7626 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py index fec12213..740e44f5 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py index b15f25a9..c4af379d 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_response_format.py b/quantcdn/models/chat_inference_request_response_format.py index c1ecf620..b4bdcb8e 100644 --- a/quantcdn/models/chat_inference_request_response_format.py +++ b/quantcdn/models/chat_inference_request_response_format.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_tool_config.py b/quantcdn/models/chat_inference_request_tool_config.py index 34f7963d..f661c281 100644 --- a/quantcdn/models/chat_inference_request_tool_config.py +++ b/quantcdn/models/chat_inference_request_tool_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_tool_config_tools_inner.py b/quantcdn/models/chat_inference_request_tool_config_tools_inner.py index da6d914e..bbec911a 100644 --- a/quantcdn/models/chat_inference_request_tool_config_tools_inner.py +++ b/quantcdn/models/chat_inference_request_tool_config_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec.py b/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec.py index f31684c1..b9c0b470 100644 --- a/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec.py +++ b/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py b/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py index 7017ed5c..d94ef857 100644 --- a/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py +++ b/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_stream_request.py b/quantcdn/models/chat_inference_stream_request.py index e54a85bc..aed07cd3 100644 --- a/quantcdn/models/chat_inference_stream_request.py +++ b/quantcdn/models/chat_inference_stream_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from quantcdn.models.chat_inference_request_response_format import ChatInferenceRequestResponseFormat @@ -33,13 +33,15 @@ class ChatInferenceStreamRequest(BaseModel): messages: Annotated[List[ChatInferenceStreamRequestMessagesInner], Field(min_length=1)] = Field(description="Array of chat messages. Content can be a simple string or an array of content blocks for multimodal input.") model_id: StrictStr = Field(description="Model ID. Use Nova models for multimodal support.", alias="modelId") temperature: Optional[Union[Annotated[float, Field(le=2, strict=True, ge=0)], Annotated[int, Field(le=2, strict=True, ge=0)]]] = 0.7 - max_tokens: Optional[Annotated[int, Field(le=8192, strict=True, ge=1)]] = Field(default=1024, alias="maxTokens") + max_tokens: Optional[Annotated[int, Field(le=65536, strict=True, ge=1)]] = Field(default=4096, description="Max tokens. Claude 4.5 supports up to 64k.", alias="maxTokens") top_p: Optional[Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=None, alias="topP") system_prompt: Optional[StrictStr] = Field(default=None, description="Optional custom system prompt. When tools are enabled, this is prepended with tool usage guidance.", alias="systemPrompt") stop_sequences: Optional[Annotated[List[StrictStr], Field(max_length=4)]] = Field(default=None, description="Custom stop sequences", alias="stopSequences") response_format: Optional[ChatInferenceRequestResponseFormat] = Field(default=None, alias="responseFormat") tool_config: Optional[ChatInferenceRequestToolConfig] = Field(default=None, alias="toolConfig") - __properties: ClassVar[List[str]] = ["messages", "modelId", "temperature", "maxTokens", "topP", "systemPrompt", "stopSequences", "responseFormat", "toolConfig"] + session_id: Optional[StrictStr] = Field(default=None, description="Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session.", alias="sessionId") + var_async: Optional[StrictBool] = Field(default=False, description="Enable async/durable execution mode. When true, returns 202 with pollUrl instead of streaming. Use for long-running inference, client-executed tools, or operations >30 seconds.", alias="async") + __properties: ClassVar[List[str]] = ["messages", "modelId", "temperature", "maxTokens", "topP", "systemPrompt", "stopSequences", "responseFormat", "toolConfig", "sessionId", "async"] model_config = ConfigDict( populate_by_name=True, @@ -108,12 +110,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "messages": [ChatInferenceStreamRequestMessagesInner.from_dict(_item) for _item in obj["messages"]] if obj.get("messages") is not None else None, "modelId": obj.get("modelId"), "temperature": obj.get("temperature") if obj.get("temperature") is not None else 0.7, - "maxTokens": obj.get("maxTokens") if obj.get("maxTokens") is not None else 1024, + "maxTokens": obj.get("maxTokens") if obj.get("maxTokens") is not None else 4096, "topP": obj.get("topP"), "systemPrompt": obj.get("systemPrompt"), "stopSequences": obj.get("stopSequences"), "responseFormat": ChatInferenceRequestResponseFormat.from_dict(obj["responseFormat"]) if obj.get("responseFormat") is not None else None, - "toolConfig": ChatInferenceRequestToolConfig.from_dict(obj["toolConfig"]) if obj.get("toolConfig") is not None else None + "toolConfig": ChatInferenceRequestToolConfig.from_dict(obj["toolConfig"]) if obj.get("toolConfig") is not None else None, + "sessionId": obj.get("sessionId"), + "async": obj.get("async") if obj.get("async") is not None else False }) return _obj diff --git a/quantcdn/models/chat_inference_stream_request_messages_inner.py b/quantcdn/models/chat_inference_stream_request_messages_inner.py index 02ee8494..0a24001f 100644 --- a/quantcdn/models/chat_inference_stream_request_messages_inner.py +++ b/quantcdn/models/chat_inference_stream_request_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_stream_request_messages_inner_content.py b/quantcdn/models/chat_inference_stream_request_messages_inner_content.py index 7849c36c..018faed2 100644 --- a/quantcdn/models/chat_inference_stream_request_messages_inner_content.py +++ b/quantcdn/models/chat_inference_stream_request_messages_inner_content.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_with_ai_agent200_response.py b/quantcdn/models/chat_with_ai_agent200_response.py index 914eb8c4..c1245cbf 100644 --- a/quantcdn/models/chat_with_ai_agent200_response.py +++ b/quantcdn/models/chat_with_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_with_ai_agent200_response_response.py b/quantcdn/models/chat_with_ai_agent200_response_response.py index 01f9a119..701946f2 100644 --- a/quantcdn/models/chat_with_ai_agent200_response_response.py +++ b/quantcdn/models/chat_with_ai_agent200_response_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_with_ai_agent200_response_response_usage.py b/quantcdn/models/chat_with_ai_agent200_response_response_usage.py index b4596313..1cbef57b 100644 --- a/quantcdn/models/chat_with_ai_agent200_response_response_usage.py +++ b/quantcdn/models/chat_with_ai_agent200_response_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_with_ai_agent202_response.py b/quantcdn/models/chat_with_ai_agent202_response.py new file mode 100644 index 00000000..e5430ac2 --- /dev/null +++ b/quantcdn/models/chat_with_ai_agent202_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ChatWithAIAgent202Response(BaseModel): + """ + ChatWithAIAgent202Response + """ # noqa: E501 + request_id: StrictStr = Field(description="Unique request identifier for polling", alias="requestId") + agent_id: StrictStr = Field(description="The agent processing the request", alias="agentId") + agent_name: Optional[StrictStr] = Field(default=None, description="Human-readable agent name", alias="agentName") + session_id: Optional[StrictStr] = Field(default=None, description="Session ID (if provided)", alias="sessionId") + status: StrictStr = Field(description="Initial status") + message: Optional[StrictStr] = None + poll_url: StrictStr = Field(description="URL to poll for execution status", alias="pollUrl") + __properties: ClassVar[List[str]] = ["requestId", "agentId", "agentName", "sessionId", "status", "message", "pollUrl"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['queued']): + raise ValueError("must be one of enum values ('queued')") + 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 ChatWithAIAgent202Response 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 ChatWithAIAgent202Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requestId": obj.get("requestId"), + "agentId": obj.get("agentId"), + "agentName": obj.get("agentName"), + "sessionId": obj.get("sessionId"), + "status": obj.get("status"), + "message": obj.get("message"), + "pollUrl": obj.get("pollUrl") + }) + return _obj + + diff --git a/quantcdn/models/chat_with_ai_agent_request.py b/quantcdn/models/chat_with_ai_agent_request.py index 2894a35c..51a7e715 100644 --- a/quantcdn/models/chat_with_ai_agent_request.py +++ b/quantcdn/models/chat_with_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -30,7 +30,9 @@ class ChatWithAIAgentRequest(BaseModel): session_id: Optional[StrictStr] = Field(default=None, description="Optional session ID to continue a conversation", alias="sessionId") user_id: Optional[StrictStr] = Field(default=None, description="Optional user identifier for session isolation", alias="userId") stream: Optional[StrictBool] = Field(default=False, description="Whether to stream the response (SSE)") - __properties: ClassVar[List[str]] = ["message", "sessionId", "userId", "stream"] + var_async: Optional[StrictBool] = Field(default=False, description="Enable async/durable execution mode. When true, returns 202 with pollUrl. Use for long-running agent tasks.", alias="async") + system: Optional[StrictStr] = Field(default=None, description="Optional additional system prompt (appended to agent's configured prompt)") + __properties: ClassVar[List[str]] = ["message", "sessionId", "userId", "stream", "async", "system"] model_config = ConfigDict( populate_by_name=True, @@ -86,7 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "message": obj.get("message"), "sessionId": obj.get("sessionId"), "userId": obj.get("userId"), - "stream": obj.get("stream") if obj.get("stream") is not None else False + "stream": obj.get("stream") if obj.get("stream") is not None else False, + "async": obj.get("async") if obj.get("async") is not None else False, + "system": obj.get("system") }) return _obj diff --git a/quantcdn/models/command.py b/quantcdn/models/command.py index 774a8b3a..e64c646e 100644 --- a/quantcdn/models/command.py +++ b/quantcdn/models/command.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/compose.py b/quantcdn/models/compose.py index 18aa7805..e763c073 100644 --- a/quantcdn/models/compose.py +++ b/quantcdn/models/compose.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container.py b/quantcdn/models/container.py index c547e0ec..858504ac 100644 --- a/quantcdn/models/container.py +++ b/quantcdn/models/container.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_depends_on_inner.py b/quantcdn/models/container_depends_on_inner.py index eeb130e9..afa2bf41 100644 --- a/quantcdn/models/container_depends_on_inner.py +++ b/quantcdn/models/container_depends_on_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_environment_inner.py b/quantcdn/models/container_environment_inner.py index 7910f5ef..f21d4bf0 100644 --- a/quantcdn/models/container_environment_inner.py +++ b/quantcdn/models/container_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_health_check.py b/quantcdn/models/container_health_check.py index 52708a0c..64ba8caa 100644 --- a/quantcdn/models/container_health_check.py +++ b/quantcdn/models/container_health_check.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_image_reference.py b/quantcdn/models/container_image_reference.py index 7d51d161..d947034b 100644 --- a/quantcdn/models/container_image_reference.py +++ b/quantcdn/models/container_image_reference.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_mount_points_inner.py b/quantcdn/models/container_mount_points_inner.py index 71553ec3..f7786c83 100644 --- a/quantcdn/models/container_mount_points_inner.py +++ b/quantcdn/models/container_mount_points_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_origin_protection_config.py b/quantcdn/models/container_origin_protection_config.py index f729e6fb..c48b9f18 100644 --- a/quantcdn/models/container_origin_protection_config.py +++ b/quantcdn/models/container_origin_protection_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_secrets_inner.py b/quantcdn/models/container_secrets_inner.py index f1e52c85..a6e74d24 100644 --- a/quantcdn/models/container_secrets_inner.py +++ b/quantcdn/models/container_secrets_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/crawlers_run200_response.py b/quantcdn/models/crawlers_run200_response.py index 50fc1030..1e5b6ce0 100644 --- a/quantcdn/models/crawlers_run200_response.py +++ b/quantcdn/models/crawlers_run200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/crawlers_run_request.py b/quantcdn/models/crawlers_run_request.py index 35082826..fa8d7971 100644 --- a/quantcdn/models/crawlers_run_request.py +++ b/quantcdn/models/crawlers_run_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,7 +26,7 @@ class CrawlersRunRequest(BaseModel): """ CrawlersRunRequest """ # noqa: E501 - urls: Optional[List[StrictStr]] = Field(default=None, description="URLs to crawl") + urls: Optional[List[StrictStr]] = Field(default=None, description="Optional URLs to crawl (overrides crawler's default URL configuration). If not provided, the crawler will use its configured URLs or perform a full crawl.") __properties: ClassVar[List[str]] = ["urls"] model_config = ConfigDict( diff --git a/quantcdn/models/create_ai_agent201_response.py b/quantcdn/models/create_ai_agent201_response.py index 5f0a6aaa..bdccd8df 100644 --- a/quantcdn/models/create_ai_agent201_response.py +++ b/quantcdn/models/create_ai_agent201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_ai_agent_request.py b/quantcdn/models/create_ai_agent_request.py index 81c4b31e..192558ec 100644 --- a/quantcdn/models/create_ai_agent_request.py +++ b/quantcdn/models/create_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_ai_session201_response.py b/quantcdn/models/create_ai_session201_response.py index be660d6e..ad0abb9f 100644 --- a/quantcdn/models/create_ai_session201_response.py +++ b/quantcdn/models/create_ai_session201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_ai_session_request.py b/quantcdn/models/create_ai_session_request.py index efb3bc40..af7f9dfd 100644 --- a/quantcdn/models/create_ai_session_request.py +++ b/quantcdn/models/create_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_ai_session_request_initial_messages_inner.py b/quantcdn/models/create_ai_session_request_initial_messages_inner.py index 75e40bc7..67ad738f 100644 --- a/quantcdn/models/create_ai_session_request_initial_messages_inner.py +++ b/quantcdn/models/create_ai_session_request_initial_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_application403_response.py b/quantcdn/models/create_application403_response.py index 119aa203..1c0f2c89 100644 --- a/quantcdn/models/create_application403_response.py +++ b/quantcdn/models/create_application403_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_application_request.py b/quantcdn/models/create_application_request.py index 40521327..e872b538 100644 --- a/quantcdn/models/create_application_request.py +++ b/quantcdn/models/create_application_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_application_request_database.py b/quantcdn/models/create_application_request_database.py index 73c5ee35..56b6f8eb 100644 --- a/quantcdn/models/create_application_request_database.py +++ b/quantcdn/models/create_application_request_database.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_application_request_environment_inner.py b/quantcdn/models/create_application_request_environment_inner.py index 3dd77139..d22bce60 100644 --- a/quantcdn/models/create_application_request_environment_inner.py +++ b/quantcdn/models/create_application_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_application_request_filesystem.py b/quantcdn/models/create_application_request_filesystem.py index eae82e07..a21c6346 100644 --- a/quantcdn/models/create_application_request_filesystem.py +++ b/quantcdn/models/create_application_request_filesystem.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_backup202_response.py b/quantcdn/models/create_backup202_response.py index f9c050fb..e41e8849 100644 --- a/quantcdn/models/create_backup202_response.py +++ b/quantcdn/models/create_backup202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_backup_request.py b/quantcdn/models/create_backup_request.py index 6c34cc50..30269cb3 100644 --- a/quantcdn/models/create_backup_request.py +++ b/quantcdn/models/create_backup_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_command_request.py b/quantcdn/models/create_command_request.py index d4e81027..32a4b9da 100644 --- a/quantcdn/models/create_command_request.py +++ b/quantcdn/models/create_command_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_cron_job_request.py b/quantcdn/models/create_cron_job_request.py index e0d344fc..7ad1bec2 100644 --- a/quantcdn/models/create_cron_job_request.py +++ b/quantcdn/models/create_cron_job_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_custom_tool201_response.py b/quantcdn/models/create_custom_tool201_response.py index cf84d30a..b9457bc9 100644 --- a/quantcdn/models/create_custom_tool201_response.py +++ b/quantcdn/models/create_custom_tool201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_custom_tool_request.py b/quantcdn/models/create_custom_tool_request.py index 0dbe9e6a..276ea8b4 100644 --- a/quantcdn/models/create_custom_tool_request.py +++ b/quantcdn/models/create_custom_tool_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_environment403_response.py b/quantcdn/models/create_environment403_response.py index a3aca417..9f0884fe 100644 --- a/quantcdn/models/create_environment403_response.py +++ b/quantcdn/models/create_environment403_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_environment_request.py b/quantcdn/models/create_environment_request.py index bf5f7fdf..e7bce86c 100644 --- a/quantcdn/models/create_environment_request.py +++ b/quantcdn/models/create_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_environment_request_environment_inner.py b/quantcdn/models/create_environment_request_environment_inner.py index d0879e9d..5e2553b9 100644 --- a/quantcdn/models/create_environment_request_environment_inner.py +++ b/quantcdn/models/create_environment_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_task201_response.py b/quantcdn/models/create_task201_response.py new file mode 100644 index 00000000..0a6e1058 --- /dev/null +++ b/quantcdn/models/create_task201_response.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 CreateTask201Response(BaseModel): + """ + CreateTask201Response + """ # noqa: E501 + task_id: Optional[StrictStr] = Field(default=None, alias="taskId") + org_id: Optional[StrictStr] = Field(default=None, alias="orgId") + title: Optional[StrictStr] = None + status: Optional[StrictStr] = None + created_at: Optional[StrictInt] = Field(default=None, alias="createdAt") + __properties: ClassVar[List[str]] = ["taskId", "orgId", "title", "status", "createdAt"] + + 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 CreateTask201Response 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 CreateTask201Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "taskId": obj.get("taskId"), + "orgId": obj.get("orgId"), + "title": obj.get("title"), + "status": obj.get("status"), + "createdAt": obj.get("createdAt") + }) + return _obj + + diff --git a/quantcdn/models/create_task_request.py b/quantcdn/models/create_task_request.py new file mode 100644 index 00000000..06b69f0d --- /dev/null +++ b/quantcdn/models/create_task_request.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class CreateTaskRequest(BaseModel): + """ + CreateTaskRequest + """ # noqa: E501 + title: StrictStr = Field(description="Task title") + description: Optional[StrictStr] = Field(default=None, description="Detailed task description") + task_list_id: Optional[StrictStr] = Field(default=None, description="Task list ID for grouping related tasks (implicit - lists are created automatically)", alias="taskListId") + status: Optional[StrictStr] = Field(default='pending', description="Initial task status") + assigned_agent_id: Optional[StrictStr] = Field(default=None, description="Pre-assign task to specific agent", alias="assignedAgentId") + created_by_agent_id: Optional[StrictStr] = Field(default=None, description="Agent ID that created this task", alias="createdByAgentId") + depends_on: Optional[List[StrictStr]] = Field(default=None, description="Task IDs that must complete before this task can start", alias="dependsOn") + metadata: Optional[Dict[str, Any]] = Field(default=None, description="Flexible JSON metadata for task-specific data") + max_retries: Optional[Annotated[int, Field(le=10, strict=True, ge=0)]] = Field(default=3, description="Maximum retry attempts on failure", alias="maxRetries") + blocked_reason: Optional[StrictStr] = Field(default=None, description="Reason task is blocked (when status is blocked)", alias="blockedReason") + blocked_by_task_ids: Optional[List[StrictStr]] = Field(default=None, description="Task IDs that are blocking this task", alias="blockedByTaskIds") + __properties: ClassVar[List[str]] = ["title", "description", "taskListId", "status", "assignedAgentId", "createdByAgentId", "dependsOn", "metadata", "maxRetries", "blockedReason", "blockedByTaskIds"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['pending', 'in_progress', 'completed', 'failed', 'cancelled', 'blocked']): + raise ValueError("must be one of enum values ('pending', 'in_progress', 'completed', 'failed', 'cancelled', 'blocked')") + 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 CreateTaskRequest 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 CreateTaskRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "title": obj.get("title"), + "description": obj.get("description"), + "taskListId": obj.get("taskListId"), + "status": obj.get("status") if obj.get("status") is not None else 'pending', + "assignedAgentId": obj.get("assignedAgentId"), + "createdByAgentId": obj.get("createdByAgentId"), + "dependsOn": obj.get("dependsOn"), + "metadata": obj.get("metadata"), + "maxRetries": obj.get("maxRetries") if obj.get("maxRetries") is not None else 3, + "blockedReason": obj.get("blockedReason"), + "blockedByTaskIds": obj.get("blockedByTaskIds") + }) + return _obj + + diff --git a/quantcdn/models/create_vector_collection201_response.py b/quantcdn/models/create_vector_collection201_response.py index 7cc71272..4b1e1933 100644 --- a/quantcdn/models/create_vector_collection201_response.py +++ b/quantcdn/models/create_vector_collection201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_vector_collection201_response_collection.py b/quantcdn/models/create_vector_collection201_response_collection.py index e5251401..700e7f57 100644 --- a/quantcdn/models/create_vector_collection201_response_collection.py +++ b/quantcdn/models/create_vector_collection201_response_collection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_vector_collection_request.py b/quantcdn/models/create_vector_collection_request.py index 9cd9fd09..d8aecce7 100644 --- a/quantcdn/models/create_vector_collection_request.py +++ b/quantcdn/models/create_vector_collection_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_volume_request.py b/quantcdn/models/create_volume_request.py index 3124c8e1..bea22f37 100644 --- a/quantcdn/models/create_volume_request.py +++ b/quantcdn/models/create_volume_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/cron.py b/quantcdn/models/cron.py index 86dae3dd..cd55d1ae 100644 --- a/quantcdn/models/cron.py +++ b/quantcdn/models/cron.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/cron_run.py b/quantcdn/models/cron_run.py index bd666c03..5d3eda63 100644 --- a/quantcdn/models/cron_run.py +++ b/quantcdn/models/cron_run.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_ai_agent200_response.py b/quantcdn/models/delete_ai_agent200_response.py index d6623b00..fb60fc8c 100644 --- a/quantcdn/models/delete_ai_agent200_response.py +++ b/quantcdn/models/delete_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_ai_session200_response.py b/quantcdn/models/delete_ai_session200_response.py index e6d8a50f..448649c2 100644 --- a/quantcdn/models/delete_ai_session200_response.py +++ b/quantcdn/models/delete_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_backup200_response.py b/quantcdn/models/delete_backup200_response.py index 9d71f39c..9c88192c 100644 --- a/quantcdn/models/delete_backup200_response.py +++ b/quantcdn/models/delete_backup200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_custom_tool200_response.py b/quantcdn/models/delete_custom_tool200_response.py index 0718139a..879fc357 100644 --- a/quantcdn/models/delete_custom_tool200_response.py +++ b/quantcdn/models/delete_custom_tool200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_file200_response.py b/quantcdn/models/delete_file200_response.py new file mode 100644 index 00000000..f683ea62 --- /dev/null +++ b/quantcdn/models/delete_file200_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 DeleteFile200Response(BaseModel): + """ + DeleteFile200Response + """ # noqa: E501 + message: Optional[StrictStr] = None + file_id: Optional[StrictStr] = Field(default=None, alias="fileId") + __properties: ClassVar[List[str]] = ["message", "fileId"] + + 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 DeleteFile200Response 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 DeleteFile200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "fileId": obj.get("fileId") + }) + return _obj + + diff --git a/quantcdn/models/delete_task200_response.py b/quantcdn/models/delete_task200_response.py new file mode 100644 index 00000000..06ba1c8f --- /dev/null +++ b/quantcdn/models/delete_task200_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 DeleteTask200Response(BaseModel): + """ + DeleteTask200Response + """ # noqa: E501 + deleted: Optional[StrictBool] = None + deleted_count: Optional[StrictInt] = Field(default=None, description="Number of tasks deleted (more than 1 for cascade)", alias="deletedCount") + deleted_task_ids: Optional[List[StrictStr]] = Field(default=None, alias="deletedTaskIds") + __properties: ClassVar[List[str]] = ["deleted", "deletedCount", "deletedTaskIds"] + + 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 DeleteTask200Response 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 DeleteTask200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deleted": obj.get("deleted"), + "deletedCount": obj.get("deletedCount"), + "deletedTaskIds": obj.get("deletedTaskIds") + }) + return _obj + + diff --git a/quantcdn/models/delete_task409_response.py b/quantcdn/models/delete_task409_response.py new file mode 100644 index 00000000..2615cd02 --- /dev/null +++ b/quantcdn/models/delete_task409_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 DeleteTask409Response(BaseModel): + """ + DeleteTask409Response + """ # noqa: E501 + error: Optional[StrictStr] = None + message: Optional[StrictStr] = None + dependent_task_ids: Optional[List[StrictStr]] = Field(default=None, alias="dependentTaskIds") + __properties: ClassVar[List[str]] = ["error", "message", "dependentTaskIds"] + + 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 DeleteTask409Response 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 DeleteTask409Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "message": obj.get("message"), + "dependentTaskIds": obj.get("dependentTaskIds") + }) + return _obj + + diff --git a/quantcdn/models/delete_vector_collection200_response.py b/quantcdn/models/delete_vector_collection200_response.py index d11cb1cc..b4c544b6 100644 --- a/quantcdn/models/delete_vector_collection200_response.py +++ b/quantcdn/models/delete_vector_collection200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/download_backup200_response.py b/quantcdn/models/download_backup200_response.py index 496e1592..41b55cdc 100644 --- a/quantcdn/models/download_backup200_response.py +++ b/quantcdn/models/download_backup200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/embeddings200_response.py b/quantcdn/models/embeddings200_response.py index e6a656a8..22a2216e 100644 --- a/quantcdn/models/embeddings200_response.py +++ b/quantcdn/models/embeddings200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/embeddings200_response_embeddings.py b/quantcdn/models/embeddings200_response_embeddings.py index 55204d16..05c1a5d1 100644 --- a/quantcdn/models/embeddings200_response_embeddings.py +++ b/quantcdn/models/embeddings200_response_embeddings.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/embeddings200_response_usage.py b/quantcdn/models/embeddings200_response_usage.py index 202be682..289a71bb 100644 --- a/quantcdn/models/embeddings200_response_usage.py +++ b/quantcdn/models/embeddings200_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/embeddings_request.py b/quantcdn/models/embeddings_request.py index 65f206f2..ba5c782e 100644 --- a/quantcdn/models/embeddings_request.py +++ b/quantcdn/models/embeddings_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/embeddings_request_input.py b/quantcdn/models/embeddings_request_input.py index 9d8f121d..21ae3fd9 100644 --- a/quantcdn/models/embeddings_request_input.py +++ b/quantcdn/models/embeddings_request_input.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/environment.py b/quantcdn/models/environment.py index 164dc1f2..b089de1f 100644 --- a/quantcdn/models/environment.py +++ b/quantcdn/models/environment.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/environment_response.py b/quantcdn/models/environment_response.py index 659ca2dd..60cf9876 100644 --- a/quantcdn/models/environment_response.py +++ b/quantcdn/models/environment_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/environment_summary.py b/quantcdn/models/environment_summary.py index 89fa3967..20df4293 100644 --- a/quantcdn/models/environment_summary.py +++ b/quantcdn/models/environment_summary.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/extend_ai_session200_response.py b/quantcdn/models/extend_ai_session200_response.py index a54f946e..a1bd2b8b 100644 --- a/quantcdn/models/extend_ai_session200_response.py +++ b/quantcdn/models/extend_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/extend_ai_session_request.py b/quantcdn/models/extend_ai_session_request.py index 730edc04..eea1bb33 100644 --- a/quantcdn/models/extend_ai_session_request.py +++ b/quantcdn/models/extend_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_agent200_response.py b/quantcdn/models/get_ai_agent200_response.py index 30ab678a..f74ddf3b 100644 --- a/quantcdn/models/get_ai_agent200_response.py +++ b/quantcdn/models/get_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_agent200_response_agent.py b/quantcdn/models/get_ai_agent200_response_agent.py index 095dc2cf..95dd1abe 100644 --- a/quantcdn/models/get_ai_agent200_response_agent.py +++ b/quantcdn/models/get_ai_agent200_response_agent.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_model200_response.py b/quantcdn/models/get_ai_model200_response.py index 0f7f6d7e..36719140 100644 --- a/quantcdn/models/get_ai_model200_response.py +++ b/quantcdn/models/get_ai_model200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_model200_response_capabilities.py b/quantcdn/models/get_ai_model200_response_capabilities.py index 13e659a4..6d60125e 100644 --- a/quantcdn/models/get_ai_model200_response_capabilities.py +++ b/quantcdn/models/get_ai_model200_response_capabilities.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_model200_response_pricing.py b/quantcdn/models/get_ai_model200_response_pricing.py index c079593d..a1c6a2d6 100644 --- a/quantcdn/models/get_ai_model200_response_pricing.py +++ b/quantcdn/models/get_ai_model200_response_pricing.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_model404_response.py b/quantcdn/models/get_ai_model404_response.py index 54cc3e33..bcc747cf 100644 --- a/quantcdn/models/get_ai_model404_response.py +++ b/quantcdn/models/get_ai_model404_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_orchestration_status200_response.py b/quantcdn/models/get_ai_orchestration_status200_response.py new file mode 100644 index 00000000..ae49d567 --- /dev/null +++ b/quantcdn/models/get_ai_orchestration_status200_response.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from quantcdn.models.get_ai_orchestration_status200_response_tools_inner import GetAIOrchestrationStatus200ResponseToolsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetAIOrchestrationStatus200Response(BaseModel): + """ + GetAIOrchestrationStatus200Response + """ # noqa: E501 + orchestration_id: StrictStr = Field(description="Unique orchestration identifier", alias="orchestrationId") + status: StrictStr = Field(description="Current orchestration status") + tool_count: StrictInt = Field(description="Total number of async tools in this orchestration", alias="toolCount") + completed_tools: Optional[StrictInt] = Field(default=None, description="Number of tools that have completed", alias="completedTools") + synthesized_response: Optional[StrictStr] = Field(default=None, description="AI-synthesized response combining all tool results (only present when status=complete)", alias="synthesizedResponse") + tools: Optional[List[GetAIOrchestrationStatus200ResponseToolsInner]] = Field(default=None, description="Status of individual tool executions") + error: Optional[StrictStr] = Field(default=None, description="Error message (only present when status=failed)") + created_at: datetime = Field(description="When orchestration was created", alias="createdAt") + completed_at: Optional[datetime] = Field(default=None, description="When orchestration completed (if status in complete or failed)", alias="completedAt") + __properties: ClassVar[List[str]] = ["orchestrationId", "status", "toolCount", "completedTools", "synthesizedResponse", "tools", "error", "createdAt", "completedAt"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['pending', 'polling', 'synthesizing', 'complete', 'failed']): + raise ValueError("must be one of enum values ('pending', 'polling', 'synthesizing', 'complete', 'failed')") + 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 GetAIOrchestrationStatus200Response 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 tools (list) + _items = [] + if self.tools: + for _item_tools in self.tools: + if _item_tools: + _items.append(_item_tools.to_dict()) + _dict['tools'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAIOrchestrationStatus200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "orchestrationId": obj.get("orchestrationId"), + "status": obj.get("status"), + "toolCount": obj.get("toolCount"), + "completedTools": obj.get("completedTools"), + "synthesizedResponse": obj.get("synthesizedResponse"), + "tools": [GetAIOrchestrationStatus200ResponseToolsInner.from_dict(_item) for _item in obj["tools"]] if obj.get("tools") is not None else None, + "error": obj.get("error"), + "createdAt": obj.get("createdAt"), + "completedAt": obj.get("completedAt") + }) + return _obj + + diff --git a/quantcdn/models/get_ai_orchestration_status200_response_tools_inner.py b/quantcdn/models/get_ai_orchestration_status200_response_tools_inner.py new file mode 100644 index 00000000..ff6a83d7 --- /dev/null +++ b/quantcdn/models/get_ai_orchestration_status200_response_tools_inner.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAIOrchestrationStatus200ResponseToolsInner(BaseModel): + """ + GetAIOrchestrationStatus200ResponseToolsInner + """ # noqa: E501 + execution_id: Optional[StrictStr] = Field(default=None, alias="executionId") + tool_name: Optional[StrictStr] = Field(default=None, alias="toolName") + status: Optional[StrictStr] = None + result: Optional[Dict[str, Any]] = Field(default=None, description="Tool result (if complete)") + error: Optional[StrictStr] = Field(default=None, description="Error message (if failed)") + __properties: ClassVar[List[str]] = ["executionId", "toolName", "status", "result", "error"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['pending', 'running', 'complete', 'failed']): + raise ValueError("must be one of enum values ('pending', 'running', 'complete', 'failed')") + 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 GetAIOrchestrationStatus200ResponseToolsInner 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 GetAIOrchestrationStatus200ResponseToolsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "executionId": obj.get("executionId"), + "toolName": obj.get("toolName"), + "status": obj.get("status"), + "result": obj.get("result"), + "error": obj.get("error") + }) + return _obj + + diff --git a/quantcdn/models/get_ai_orchestration_status404_response.py b/quantcdn/models/get_ai_orchestration_status404_response.py new file mode 100644 index 00000000..2e66e015 --- /dev/null +++ b/quantcdn/models/get_ai_orchestration_status404_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 GetAIOrchestrationStatus404Response(BaseModel): + """ + GetAIOrchestrationStatus404Response + """ # noqa: E501 + error: Optional[StrictStr] = None + orchestration_id: Optional[StrictStr] = Field(default=None, alias="orchestrationId") + __properties: ClassVar[List[str]] = ["error", "orchestrationId"] + + 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 GetAIOrchestrationStatus404Response 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 GetAIOrchestrationStatus404Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "orchestrationId": obj.get("orchestrationId") + }) + return _obj + + diff --git a/quantcdn/models/get_ai_session200_response.py b/quantcdn/models/get_ai_session200_response.py index 6606f6c2..cdb722a2 100644 --- a/quantcdn/models/get_ai_session200_response.py +++ b/quantcdn/models/get_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_tool_execution_status200_response.py b/quantcdn/models/get_ai_tool_execution_status200_response.py index 8e178622..d8d598ac 100644 --- a/quantcdn/models/get_ai_tool_execution_status200_response.py +++ b/quantcdn/models/get_ai_tool_execution_status200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_tool_execution_status200_response_result.py b/quantcdn/models/get_ai_tool_execution_status200_response_result.py index 352fe931..b8c742e2 100644 --- a/quantcdn/models/get_ai_tool_execution_status200_response_result.py +++ b/quantcdn/models/get_ai_tool_execution_status200_response_result.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_tool_execution_status404_response.py b/quantcdn/models/get_ai_tool_execution_status404_response.py index 886610a9..138fc1d9 100644 --- a/quantcdn/models/get_ai_tool_execution_status404_response.py +++ b/quantcdn/models/get_ai_tool_execution_status404_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_usage_stats200_response.py b/quantcdn/models/get_ai_usage_stats200_response.py index d09d8ab7..c9cbaffa 100644 --- a/quantcdn/models/get_ai_usage_stats200_response.py +++ b/quantcdn/models/get_ai_usage_stats200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_usage_stats200_response_by_model_value.py b/quantcdn/models/get_ai_usage_stats200_response_by_model_value.py index 006f8334..e8b8ba38 100644 --- a/quantcdn/models/get_ai_usage_stats200_response_by_model_value.py +++ b/quantcdn/models/get_ai_usage_stats200_response_by_model_value.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_dependency_graph200_response.py b/quantcdn/models/get_dependency_graph200_response.py new file mode 100644 index 00000000..e7353f6e --- /dev/null +++ b/quantcdn/models/get_dependency_graph200_response.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 GetDependencyGraph200Response(BaseModel): + """ + GetDependencyGraph200Response + """ # noqa: E501 + task_list_id: Optional[StrictStr] = Field(default=None, alias="taskListId") + task_count: Optional[StrictInt] = Field(default=None, alias="taskCount") + roots: Optional[List[StrictStr]] = Field(default=None, description="Task IDs with no dependencies") + leaves: Optional[List[StrictStr]] = Field(default=None, description="Task IDs with no dependents") + graph: Optional[Dict[str, Any]] = Field(default=None, description="Adjacency list with task summaries, dependsOn, and dependents arrays") + __properties: ClassVar[List[str]] = ["taskListId", "taskCount", "roots", "leaves", "graph"] + + 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 GetDependencyGraph200Response 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 GetDependencyGraph200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "taskListId": obj.get("taskListId"), + "taskCount": obj.get("taskCount"), + "roots": obj.get("roots"), + "leaves": obj.get("leaves"), + "graph": obj.get("graph") + }) + return _obj + + diff --git a/quantcdn/models/get_durable_execution_status200_response.py b/quantcdn/models/get_durable_execution_status200_response.py new file mode 100644 index 00000000..444b32f3 --- /dev/null +++ b/quantcdn/models/get_durable_execution_status200_response.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from quantcdn.models.get_durable_execution_status200_response_error import GetDurableExecutionStatus200ResponseError +from quantcdn.models.get_durable_execution_status200_response_pending_tools_inner import GetDurableExecutionStatus200ResponsePendingToolsInner +from quantcdn.models.get_durable_execution_status200_response_result import GetDurableExecutionStatus200ResponseResult +from typing import Optional, Set +from typing_extensions import Self + +class GetDurableExecutionStatus200Response(BaseModel): + """ + GetDurableExecutionStatus200Response + """ # noqa: E501 + request_id: Optional[StrictStr] = Field(default=None, alias="requestId") + execution_arn: Optional[StrictStr] = Field(default=None, alias="executionArn") + status: Optional[StrictStr] = None + aws_status: Optional[StrictStr] = Field(default=None, description="Raw AWS Step Functions status", alias="awsStatus") + callback_id: Optional[StrictStr] = Field(default=None, description="Present when status is waiting_callback - use with /chat/callback", alias="callbackId") + pending_tools: Optional[List[GetDurableExecutionStatus200ResponsePendingToolsInner]] = Field(default=None, description="Present when status is waiting_callback - tools waiting for results", alias="pendingTools") + result: Optional[GetDurableExecutionStatus200ResponseResult] = None + error: Optional[GetDurableExecutionStatus200ResponseError] = None + __properties: ClassVar[List[str]] = ["requestId", "executionArn", "status", "awsStatus", "callbackId", "pendingTools", "result", "error"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['pending', 'running', 'waiting_callback', 'complete', 'failed']): + raise ValueError("must be one of enum values ('pending', 'running', 'waiting_callback', 'complete', 'failed')") + 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 GetDurableExecutionStatus200Response 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 pending_tools (list) + _items = [] + if self.pending_tools: + for _item_pending_tools in self.pending_tools: + if _item_pending_tools: + _items.append(_item_pending_tools.to_dict()) + _dict['pendingTools'] = _items + # override the default output from pydantic by calling `to_dict()` of result + if self.result: + _dict['result'] = self.result.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetDurableExecutionStatus200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requestId": obj.get("requestId"), + "executionArn": obj.get("executionArn"), + "status": obj.get("status"), + "awsStatus": obj.get("awsStatus"), + "callbackId": obj.get("callbackId"), + "pendingTools": [GetDurableExecutionStatus200ResponsePendingToolsInner.from_dict(_item) for _item in obj["pendingTools"]] if obj.get("pendingTools") is not None else None, + "result": GetDurableExecutionStatus200ResponseResult.from_dict(obj["result"]) if obj.get("result") is not None else None, + "error": GetDurableExecutionStatus200ResponseError.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/quantcdn/models/get_durable_execution_status200_response_error.py b/quantcdn/models/get_durable_execution_status200_response_error.py new file mode 100644 index 00000000..9c23434e --- /dev/null +++ b/quantcdn/models/get_durable_execution_status200_response_error.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 GetDurableExecutionStatus200ResponseError(BaseModel): + """ + Present when status is failed + """ # noqa: E501 + error_message: Optional[StrictStr] = Field(default=None, alias="ErrorMessage") + error_type: Optional[StrictStr] = Field(default=None, alias="ErrorType") + __properties: ClassVar[List[str]] = ["ErrorMessage", "ErrorType"] + + 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 GetDurableExecutionStatus200ResponseError 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 GetDurableExecutionStatus200ResponseError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ErrorMessage": obj.get("ErrorMessage"), + "ErrorType": obj.get("ErrorType") + }) + return _obj + + diff --git a/quantcdn/models/get_durable_execution_status200_response_pending_tools_inner.py b/quantcdn/models/get_durable_execution_status200_response_pending_tools_inner.py new file mode 100644 index 00000000..239ce91d --- /dev/null +++ b/quantcdn/models/get_durable_execution_status200_response_pending_tools_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 GetDurableExecutionStatus200ResponsePendingToolsInner(BaseModel): + """ + GetDurableExecutionStatus200ResponsePendingToolsInner + """ # noqa: E501 + name: Optional[StrictStr] = None + tool_use_id: Optional[StrictStr] = Field(default=None, alias="toolUseId") + input: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["name", "toolUseId", "input"] + + 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 GetDurableExecutionStatus200ResponsePendingToolsInner 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 GetDurableExecutionStatus200ResponsePendingToolsInner 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"), + "toolUseId": obj.get("toolUseId"), + "input": obj.get("input") + }) + return _obj + + diff --git a/quantcdn/models/get_durable_execution_status200_response_result.py b/quantcdn/models/get_durable_execution_status200_response_result.py new file mode 100644 index 00000000..eb0e1648 --- /dev/null +++ b/quantcdn/models/get_durable_execution_status200_response_result.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 quantcdn.models.get_durable_execution_status200_response_result_response import GetDurableExecutionStatus200ResponseResultResponse +from quantcdn.models.get_durable_execution_status200_response_result_usage import GetDurableExecutionStatus200ResponseResultUsage +from typing import Optional, Set +from typing_extensions import Self + +class GetDurableExecutionStatus200ResponseResult(BaseModel): + """ + Present when status is complete + """ # noqa: E501 + response: Optional[GetDurableExecutionStatus200ResponseResultResponse] = None + usage: Optional[GetDurableExecutionStatus200ResponseResultUsage] = None + tool_executions: Optional[List[Dict[str, Any]]] = Field(default=None, alias="toolExecutions") + __properties: ClassVar[List[str]] = ["response", "usage", "toolExecutions"] + + 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 GetDurableExecutionStatus200ResponseResult 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 response + if self.response: + _dict['response'] = self.response.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage + if self.usage: + _dict['usage'] = self.usage.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetDurableExecutionStatus200ResponseResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "response": GetDurableExecutionStatus200ResponseResultResponse.from_dict(obj["response"]) if obj.get("response") is not None else None, + "usage": GetDurableExecutionStatus200ResponseResultUsage.from_dict(obj["usage"]) if obj.get("usage") is not None else None, + "toolExecutions": obj.get("toolExecutions") + }) + return _obj + + diff --git a/quantcdn/models/query_vector_collection200_response_results_inner_metadata.py b/quantcdn/models/get_durable_execution_status200_response_result_response.py similarity index 74% rename from quantcdn/models/query_vector_collection200_response_results_inner_metadata.py rename to quantcdn/models/get_durable_execution_status200_response_result_response.py index 3b3626c2..40090b53 100644 --- a/quantcdn/models/query_vector_collection200_response_results_inner_metadata.py +++ b/quantcdn/models/get_durable_execution_status200_response_result_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,14 +22,13 @@ from typing import Optional, Set from typing_extensions import Self -class QueryVectorCollection200ResponseResultsInnerMetadata(BaseModel): +class GetDurableExecutionStatus200ResponseResultResponse(BaseModel): """ - QueryVectorCollection200ResponseResultsInnerMetadata + GetDurableExecutionStatus200ResponseResultResponse """ # noqa: E501 - title: Optional[StrictStr] = None - source_url: Optional[StrictStr] = None - section: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["title", "source_url", "section"] + role: Optional[StrictStr] = None + content: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["role", "content"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QueryVectorCollection200ResponseResultsInnerMetadata from a JSON string""" + """Create an instance of GetDurableExecutionStatus200ResponseResultResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QueryVectorCollection200ResponseResultsInnerMetadata from a dict""" + """Create an instance of GetDurableExecutionStatus200ResponseResultResponse from a dict""" if obj is None: return None @@ -82,9 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "title": obj.get("title"), - "source_url": obj.get("source_url"), - "section": obj.get("section") + "role": obj.get("role"), + "content": obj.get("content") }) return _obj diff --git a/quantcdn/models/get_durable_execution_status200_response_result_usage.py b/quantcdn/models/get_durable_execution_status200_response_result_usage.py new file mode 100644 index 00000000..d154aefd --- /dev/null +++ b/quantcdn/models/get_durable_execution_status200_response_result_usage.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 GetDurableExecutionStatus200ResponseResultUsage(BaseModel): + """ + GetDurableExecutionStatus200ResponseResultUsage + """ # noqa: E501 + input_tokens: Optional[StrictInt] = Field(default=None, alias="inputTokens") + output_tokens: Optional[StrictInt] = Field(default=None, alias="outputTokens") + total_tokens: Optional[StrictInt] = Field(default=None, alias="totalTokens") + __properties: ClassVar[List[str]] = ["inputTokens", "outputTokens", "totalTokens"] + + 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 GetDurableExecutionStatus200ResponseResultUsage 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 GetDurableExecutionStatus200ResponseResultUsage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "inputTokens": obj.get("inputTokens"), + "outputTokens": obj.get("outputTokens"), + "totalTokens": obj.get("totalTokens") + }) + return _obj + + diff --git a/quantcdn/models/get_ecr_login_credentials200_response.py b/quantcdn/models/get_ecr_login_credentials200_response.py index aa77913e..fb725ce8 100644 --- a/quantcdn/models/get_ecr_login_credentials200_response.py +++ b/quantcdn/models/get_ecr_login_credentials200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_environment_logs200_response.py b/quantcdn/models/get_environment_logs200_response.py index c87052f3..83bf0849 100644 --- a/quantcdn/models/get_environment_logs200_response.py +++ b/quantcdn/models/get_environment_logs200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_environment_logs200_response_log_events_inner.py b/quantcdn/models/get_environment_logs200_response_log_events_inner.py index a225dbe6..93f786ae 100644 --- a/quantcdn/models/get_environment_logs200_response_log_events_inner.py +++ b/quantcdn/models/get_environment_logs200_response_log_events_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_file200_response.py b/quantcdn/models/get_file200_response.py new file mode 100644 index 00000000..b6889725 --- /dev/null +++ b/quantcdn/models/get_file200_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 GetFile200Response(BaseModel): + """ + GetFile200Response + """ # noqa: E501 + file_id: Optional[StrictStr] = Field(default=None, alias="fileId") + s3_uri: Optional[StrictStr] = Field(default=None, alias="s3Uri") + url: Optional[StrictStr] = Field(default=None, description="Presigned download URL (1 hour)") + filename: Optional[StrictStr] = None + content_type: Optional[StrictStr] = Field(default=None, alias="contentType") + size: Optional[StrictInt] = None + metadata: Optional[Dict[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + __properties: ClassVar[List[str]] = ["fileId", "s3Uri", "url", "filename", "contentType", "size", "metadata", "createdAt"] + + 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 GetFile200Response 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 GetFile200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fileId": obj.get("fileId"), + "s3Uri": obj.get("s3Uri"), + "url": obj.get("url"), + "filename": obj.get("filename"), + "contentType": obj.get("contentType"), + "size": obj.get("size"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt") + }) + return _obj + + diff --git a/quantcdn/models/get_ssh_access_credentials200_response.py b/quantcdn/models/get_ssh_access_credentials200_response.py index ea5ed18d..5d017613 100644 --- a/quantcdn/models/get_ssh_access_credentials200_response.py +++ b/quantcdn/models/get_ssh_access_credentials200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ssh_access_credentials200_response_credentials.py b/quantcdn/models/get_ssh_access_credentials200_response_credentials.py index 940eb864..35318a2e 100644 --- a/quantcdn/models/get_ssh_access_credentials200_response_credentials.py +++ b/quantcdn/models/get_ssh_access_credentials200_response_credentials.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_task200_response.py b/quantcdn/models/get_task200_response.py new file mode 100644 index 00000000..a9778ef1 --- /dev/null +++ b/quantcdn/models/get_task200_response.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class GetTask200Response(BaseModel): + """ + GetTask200Response + """ # noqa: E501 + task_id: Optional[StrictStr] = Field(default=None, alias="taskId") + org_id: Optional[StrictStr] = Field(default=None, alias="orgId") + task_list_id: Optional[StrictStr] = Field(default=None, alias="taskListId") + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + status: Optional[StrictStr] = None + assigned_agent_id: Optional[StrictStr] = Field(default=None, alias="assignedAgentId") + created_by_agent_id: Optional[StrictStr] = Field(default=None, alias="createdByAgentId") + depends_on: Optional[List[StrictStr]] = Field(default=None, alias="dependsOn") + metadata: Optional[Dict[str, Any]] = None + progress: Optional[Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = None + progress_message: Optional[StrictStr] = Field(default=None, alias="progressMessage") + result: Optional[Dict[str, Any]] = Field(default=None, description="Task result data when completed") + error: Optional[StrictStr] = Field(default=None, description="Error message if status is failed") + retry_count: Optional[StrictInt] = Field(default=None, alias="retryCount") + max_retries: Optional[StrictInt] = Field(default=None, alias="maxRetries") + created_at: Optional[StrictInt] = Field(default=None, description="Unix timestamp in milliseconds", alias="createdAt") + updated_at: Optional[StrictInt] = Field(default=None, description="Unix timestamp in milliseconds", alias="updatedAt") + started_at: Optional[StrictInt] = Field(default=None, description="When status changed to in_progress", alias="startedAt") + completed_at: Optional[StrictInt] = Field(default=None, description="When task completed/failed/cancelled", alias="completedAt") + expires_at: Optional[StrictInt] = Field(default=None, description="TTL timestamp for completed tasks", alias="expiresAt") + blocked_reason: Optional[StrictStr] = Field(default=None, description="Reason task is blocked", alias="blockedReason") + blocked_by_task_ids: Optional[List[StrictStr]] = Field(default=None, description="Task IDs that are blocking this task", alias="blockedByTaskIds") + blocked_at: Optional[StrictInt] = Field(default=None, description="When status changed to blocked", alias="blockedAt") + __properties: ClassVar[List[str]] = ["taskId", "orgId", "taskListId", "title", "description", "status", "assignedAgentId", "createdByAgentId", "dependsOn", "metadata", "progress", "progressMessage", "result", "error", "retryCount", "maxRetries", "createdAt", "updatedAt", "startedAt", "completedAt", "expiresAt", "blockedReason", "blockedByTaskIds", "blockedAt"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['pending', 'in_progress', 'completed', 'failed', 'cancelled', 'blocked']): + raise ValueError("must be one of enum values ('pending', 'in_progress', 'completed', 'failed', 'cancelled', 'blocked')") + 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 GetTask200Response 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 task_list_id (nullable) is None + # and model_fields_set contains the field + if self.task_list_id is None and "task_list_id" in self.model_fields_set: + _dict['taskListId'] = None + + # set to None if assigned_agent_id (nullable) is None + # and model_fields_set contains the field + if self.assigned_agent_id is None and "assigned_agent_id" in self.model_fields_set: + _dict['assignedAgentId'] = None + + # set to None if created_by_agent_id (nullable) is None + # and model_fields_set contains the field + if self.created_by_agent_id is None and "created_by_agent_id" in self.model_fields_set: + _dict['createdByAgentId'] = None + + # set to None if result (nullable) is None + # and model_fields_set contains the field + if self.result is None and "result" in self.model_fields_set: + _dict['result'] = 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 + + # set to None if started_at (nullable) is None + # and model_fields_set contains the field + if self.started_at is None and "started_at" in self.model_fields_set: + _dict['startedAt'] = None + + # set to None if completed_at (nullable) is None + # and model_fields_set contains the field + if self.completed_at is None and "completed_at" in self.model_fields_set: + _dict['completedAt'] = None + + # set to None if expires_at (nullable) is None + # and model_fields_set contains the field + if self.expires_at is None and "expires_at" in self.model_fields_set: + _dict['expiresAt'] = None + + # set to None if blocked_reason (nullable) is None + # and model_fields_set contains the field + if self.blocked_reason is None and "blocked_reason" in self.model_fields_set: + _dict['blockedReason'] = None + + # set to None if blocked_by_task_ids (nullable) is None + # and model_fields_set contains the field + if self.blocked_by_task_ids is None and "blocked_by_task_ids" in self.model_fields_set: + _dict['blockedByTaskIds'] = None + + # set to None if blocked_at (nullable) is None + # and model_fields_set contains the field + if self.blocked_at is None and "blocked_at" in self.model_fields_set: + _dict['blockedAt'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTask200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "taskId": obj.get("taskId"), + "orgId": obj.get("orgId"), + "taskListId": obj.get("taskListId"), + "title": obj.get("title"), + "description": obj.get("description"), + "status": obj.get("status"), + "assignedAgentId": obj.get("assignedAgentId"), + "createdByAgentId": obj.get("createdByAgentId"), + "dependsOn": obj.get("dependsOn"), + "metadata": obj.get("metadata"), + "progress": obj.get("progress"), + "progressMessage": obj.get("progressMessage"), + "result": obj.get("result"), + "error": obj.get("error"), + "retryCount": obj.get("retryCount"), + "maxRetries": obj.get("maxRetries"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "startedAt": obj.get("startedAt"), + "completedAt": obj.get("completedAt"), + "expiresAt": obj.get("expiresAt"), + "blockedReason": obj.get("blockedReason"), + "blockedByTaskIds": obj.get("blockedByTaskIds"), + "blockedAt": obj.get("blockedAt") + }) + return _obj + + diff --git a/quantcdn/models/get_vector_collection200_response.py b/quantcdn/models/get_vector_collection200_response.py index 28b32bd3..4f4208e6 100644 --- a/quantcdn/models/get_vector_collection200_response.py +++ b/quantcdn/models/get_vector_collection200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_vector_collection200_response_collection.py b/quantcdn/models/get_vector_collection200_response_collection.py index b0ca357a..a41cf4a3 100644 --- a/quantcdn/models/get_vector_collection200_response_collection.py +++ b/quantcdn/models/get_vector_collection200_response_collection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation200_response.py b/quantcdn/models/image_generation200_response.py index 0f473b97..2d07da60 100644 --- a/quantcdn/models/image_generation200_response.py +++ b/quantcdn/models/image_generation200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request.py b/quantcdn/models/image_generation_request.py index 113276f2..bac37b42 100644 --- a/quantcdn/models/image_generation_request.py +++ b/quantcdn/models/image_generation_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_background_removal_params.py b/quantcdn/models/image_generation_request_background_removal_params.py index 4e54876e..d326ad9a 100644 --- a/quantcdn/models/image_generation_request_background_removal_params.py +++ b/quantcdn/models/image_generation_request_background_removal_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_color_guided_generation_params.py b/quantcdn/models/image_generation_request_color_guided_generation_params.py index d4c15967..9ed8125f 100644 --- a/quantcdn/models/image_generation_request_color_guided_generation_params.py +++ b/quantcdn/models/image_generation_request_color_guided_generation_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_image_generation_config.py b/quantcdn/models/image_generation_request_image_generation_config.py index 51346eaa..f231ae25 100644 --- a/quantcdn/models/image_generation_request_image_generation_config.py +++ b/quantcdn/models/image_generation_request_image_generation_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_image_variation_params.py b/quantcdn/models/image_generation_request_image_variation_params.py index 6a4044b5..30d8a0c3 100644 --- a/quantcdn/models/image_generation_request_image_variation_params.py +++ b/quantcdn/models/image_generation_request_image_variation_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_in_painting_params.py b/quantcdn/models/image_generation_request_in_painting_params.py index 6e3197ae..0270da6f 100644 --- a/quantcdn/models/image_generation_request_in_painting_params.py +++ b/quantcdn/models/image_generation_request_in_painting_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_out_painting_params.py b/quantcdn/models/image_generation_request_out_painting_params.py index 52166649..447b3976 100644 --- a/quantcdn/models/image_generation_request_out_painting_params.py +++ b/quantcdn/models/image_generation_request_out_painting_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_text_to_image_params.py b/quantcdn/models/image_generation_request_text_to_image_params.py index 015dde28..63e0b0a9 100644 --- a/quantcdn/models/image_generation_request_text_to_image_params.py +++ b/quantcdn/models/image_generation_request_text_to_image_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/kv_items_create200_response.py b/quantcdn/models/kv_items_create200_response.py index ed121670..0e9ba83e 100644 --- a/quantcdn/models/kv_items_create200_response.py +++ b/quantcdn/models/kv_items_create200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/kv_items_delete200_response.py b/quantcdn/models/kv_items_delete200_response.py index 923b9bd9..b07850cb 100644 --- a/quantcdn/models/kv_items_delete200_response.py +++ b/quantcdn/models/kv_items_delete200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/kv_items_show200_response.py b/quantcdn/models/kv_items_show200_response.py index 8d9c5191..8e706c0c 100644 --- a/quantcdn/models/kv_items_show200_response.py +++ b/quantcdn/models/kv_items_show200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/kv_items_show200_response_value.py b/quantcdn/models/kv_items_show200_response_value.py index f37f268a..91b6099f 100644 --- a/quantcdn/models/kv_items_show200_response_value.py +++ b/quantcdn/models/kv_items_show200_response_value.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_agents200_response.py b/quantcdn/models/list_ai_agents200_response.py index 94256cf5..60037c10 100644 --- a/quantcdn/models/list_ai_agents200_response.py +++ b/quantcdn/models/list_ai_agents200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_agents200_response_agents_inner.py b/quantcdn/models/list_ai_agents200_response_agents_inner.py index 780280d3..e2a2442a 100644 --- a/quantcdn/models/list_ai_agents200_response_agents_inner.py +++ b/quantcdn/models/list_ai_agents200_response_agents_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_models200_response.py b/quantcdn/models/list_ai_models200_response.py index 72ee4594..325343a9 100644 --- a/quantcdn/models/list_ai_models200_response.py +++ b/quantcdn/models/list_ai_models200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_models200_response_models_inner.py b/quantcdn/models/list_ai_models200_response_models_inner.py index 3661dffd..6e5afaa8 100644 --- a/quantcdn/models/list_ai_models200_response_models_inner.py +++ b/quantcdn/models/list_ai_models200_response_models_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_models200_response_models_inner_capabilities.py b/quantcdn/models/list_ai_models200_response_models_inner_capabilities.py index 7460cc1c..baad9ed3 100644 --- a/quantcdn/models/list_ai_models200_response_models_inner_capabilities.py +++ b/quantcdn/models/list_ai_models200_response_models_inner_capabilities.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_sessions200_response_inner.py b/quantcdn/models/list_ai_sessions200_response_inner.py index bb4b146b..07647eaf 100644 --- a/quantcdn/models/list_ai_sessions200_response_inner.py +++ b/quantcdn/models/list_ai_sessions200_response_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tool_executions200_response.py b/quantcdn/models/list_ai_tool_executions200_response.py index 437c3cae..b4950a14 100644 --- a/quantcdn/models/list_ai_tool_executions200_response.py +++ b/quantcdn/models/list_ai_tool_executions200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tool_executions200_response_executions_inner.py b/quantcdn/models/list_ai_tool_executions200_response_executions_inner.py index 93229dc5..71feea47 100644 --- a/quantcdn/models/list_ai_tool_executions200_response_executions_inner.py +++ b/quantcdn/models/list_ai_tool_executions200_response_executions_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tool_names200_response.py b/quantcdn/models/list_ai_tool_names200_response.py index 41cb643c..65138b7f 100644 --- a/quantcdn/models/list_ai_tool_names200_response.py +++ b/quantcdn/models/list_ai_tool_names200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tools200_response.py b/quantcdn/models/list_ai_tools200_response.py index b3abd658..e47189ed 100644 --- a/quantcdn/models/list_ai_tools200_response.py +++ b/quantcdn/models/list_ai_tools200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tools200_response_tools_inner.py b/quantcdn/models/list_ai_tools200_response_tools_inner.py index 103e2efb..4354b332 100644 --- a/quantcdn/models/list_ai_tools200_response_tools_inner.py +++ b/quantcdn/models/list_ai_tools200_response_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec.py b/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec.py index 4b04fd6e..18ec90ed 100644 --- a/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec.py +++ b/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec_input_schema.py b/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec_input_schema.py index 36b6d959..553280da 100644 --- a/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec_input_schema.py +++ b/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec_input_schema.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_backups200_response.py b/quantcdn/models/list_backups200_response.py index ecad55aa..d1b40bab 100644 --- a/quantcdn/models/list_backups200_response.py +++ b/quantcdn/models/list_backups200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_backups200_response_backups_inner.py b/quantcdn/models/list_backups200_response_backups_inner.py index 91f44e1c..d6569628 100644 --- a/quantcdn/models/list_backups200_response_backups_inner.py +++ b/quantcdn/models/list_backups200_response_backups_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_backups422_response.py b/quantcdn/models/list_backups422_response.py index 421c7ea4..7c2062d5 100644 --- a/quantcdn/models/list_backups422_response.py +++ b/quantcdn/models/list_backups422_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_custom_tools200_response.py b/quantcdn/models/list_custom_tools200_response.py index 029214b5..c849136f 100644 --- a/quantcdn/models/list_custom_tools200_response.py +++ b/quantcdn/models/list_custom_tools200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_custom_tools200_response_tools_inner.py b/quantcdn/models/list_custom_tools200_response_tools_inner.py index a4c43a44..821acef8 100644 --- a/quantcdn/models/list_custom_tools200_response_tools_inner.py +++ b/quantcdn/models/list_custom_tools200_response_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_files200_response.py b/quantcdn/models/list_files200_response.py new file mode 100644 index 00000000..43ae918c --- /dev/null +++ b/quantcdn/models/list_files200_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 quantcdn.models.list_files200_response_files_inner import ListFiles200ResponseFilesInner +from typing import Optional, Set +from typing_extensions import Self + +class ListFiles200Response(BaseModel): + """ + ListFiles200Response + """ # noqa: E501 + files: Optional[List[ListFiles200ResponseFilesInner]] = None + next_cursor: Optional[StrictStr] = Field(default=None, description="Cursor for next page", alias="nextCursor") + has_more: Optional[StrictBool] = Field(default=None, description="True if more results available", alias="hasMore") + __properties: ClassVar[List[str]] = ["files", "nextCursor", "hasMore"] + + 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 ListFiles200Response 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 files (list) + _items = [] + if self.files: + for _item_files in self.files: + if _item_files: + _items.append(_item_files.to_dict()) + _dict['files'] = _items + # set to None if next_cursor (nullable) is None + # and model_fields_set contains the field + if self.next_cursor is None and "next_cursor" in self.model_fields_set: + _dict['nextCursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListFiles200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "files": [ListFiles200ResponseFilesInner.from_dict(_item) for _item in obj["files"]] if obj.get("files") is not None else None, + "nextCursor": obj.get("nextCursor"), + "hasMore": obj.get("hasMore") + }) + return _obj + + diff --git a/quantcdn/models/list_files200_response_files_inner.py b/quantcdn/models/list_files200_response_files_inner.py new file mode 100644 index 00000000..26ad5719 --- /dev/null +++ b/quantcdn/models/list_files200_response_files_inner.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 ListFiles200ResponseFilesInner(BaseModel): + """ + ListFiles200ResponseFilesInner + """ # noqa: E501 + file_id: Optional[StrictStr] = Field(default=None, alias="fileId") + filename: Optional[StrictStr] = None + content_type: Optional[StrictStr] = Field(default=None, alias="contentType") + size: Optional[StrictInt] = None + metadata: Optional[Dict[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + __properties: ClassVar[List[str]] = ["fileId", "filename", "contentType", "size", "metadata", "createdAt"] + + 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 ListFiles200ResponseFilesInner 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 ListFiles200ResponseFilesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fileId": obj.get("fileId"), + "filename": obj.get("filename"), + "contentType": obj.get("contentType"), + "size": obj.get("size"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt") + }) + return _obj + + diff --git a/quantcdn/models/list_tasks200_response.py b/quantcdn/models/list_tasks200_response.py new file mode 100644 index 00000000..adbd5bd5 --- /dev/null +++ b/quantcdn/models/list_tasks200_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 quantcdn.models.list_tasks200_response_tasks_inner import ListTasks200ResponseTasksInner +from typing import Optional, Set +from typing_extensions import Self + +class ListTasks200Response(BaseModel): + """ + ListTasks200Response + """ # noqa: E501 + tasks: Optional[List[ListTasks200ResponseTasksInner]] = None + task_ids: Optional[List[StrictStr]] = Field(default=None, description="Task IDs (only with dependsOn filter)", alias="taskIds") + count: Optional[StrictInt] = None + depends_on: Optional[StrictStr] = Field(default=None, description="The queried task ID (only with dependsOn filter)", alias="dependsOn") + __properties: ClassVar[List[str]] = ["tasks", "taskIds", "count", "dependsOn"] + + 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 ListTasks200Response 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 tasks (list) + _items = [] + if self.tasks: + for _item_tasks in self.tasks: + if _item_tasks: + _items.append(_item_tasks.to_dict()) + _dict['tasks'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListTasks200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tasks": [ListTasks200ResponseTasksInner.from_dict(_item) for _item in obj["tasks"]] if obj.get("tasks") is not None else None, + "taskIds": obj.get("taskIds"), + "count": obj.get("count"), + "dependsOn": obj.get("dependsOn") + }) + return _obj + + diff --git a/quantcdn/models/list_tasks200_response_tasks_inner.py b/quantcdn/models/list_tasks200_response_tasks_inner.py new file mode 100644 index 00000000..1d15599c --- /dev/null +++ b/quantcdn/models/list_tasks200_response_tasks_inner.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class ListTasks200ResponseTasksInner(BaseModel): + """ + ListTasks200ResponseTasksInner + """ # noqa: E501 + task_id: Optional[StrictStr] = Field(default=None, alias="taskId") + org_id: Optional[StrictStr] = Field(default=None, alias="orgId") + task_list_id: Optional[StrictStr] = Field(default=None, alias="taskListId") + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + status: Optional[StrictStr] = None + assigned_agent_id: Optional[StrictStr] = Field(default=None, alias="assignedAgentId") + progress: Optional[Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = None + blocked_reason: Optional[StrictStr] = Field(default=None, alias="blockedReason") + blocked_by_task_ids: Optional[List[StrictStr]] = Field(default=None, alias="blockedByTaskIds") + created_at: Optional[StrictInt] = Field(default=None, alias="createdAt") + updated_at: Optional[StrictInt] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["taskId", "orgId", "taskListId", "title", "description", "status", "assignedAgentId", "progress", "blockedReason", "blockedByTaskIds", "createdAt", "updatedAt"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['pending', 'in_progress', 'completed', 'failed', 'cancelled', 'blocked']): + raise ValueError("must be one of enum values ('pending', 'in_progress', 'completed', 'failed', 'cancelled', 'blocked')") + 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 ListTasks200ResponseTasksInner 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 task_list_id (nullable) is None + # and model_fields_set contains the field + if self.task_list_id is None and "task_list_id" in self.model_fields_set: + _dict['taskListId'] = None + + # set to None if assigned_agent_id (nullable) is None + # and model_fields_set contains the field + if self.assigned_agent_id is None and "assigned_agent_id" in self.model_fields_set: + _dict['assignedAgentId'] = None + + # set to None if blocked_reason (nullable) is None + # and model_fields_set contains the field + if self.blocked_reason is None and "blocked_reason" in self.model_fields_set: + _dict['blockedReason'] = None + + # set to None if blocked_by_task_ids (nullable) is None + # and model_fields_set contains the field + if self.blocked_by_task_ids is None and "blocked_by_task_ids" in self.model_fields_set: + _dict['blockedByTaskIds'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListTasks200ResponseTasksInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "taskId": obj.get("taskId"), + "orgId": obj.get("orgId"), + "taskListId": obj.get("taskListId"), + "title": obj.get("title"), + "description": obj.get("description"), + "status": obj.get("status"), + "assignedAgentId": obj.get("assignedAgentId"), + "progress": obj.get("progress"), + "blockedReason": obj.get("blockedReason"), + "blockedByTaskIds": obj.get("blockedByTaskIds"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/quantcdn/models/list_vector_collections200_response.py b/quantcdn/models/list_vector_collections200_response.py index ea9e8c4e..85b0d23f 100644 --- a/quantcdn/models/list_vector_collections200_response.py +++ b/quantcdn/models/list_vector_collections200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_vector_collections200_response_collections_inner.py b/quantcdn/models/list_vector_collections200_response_collections_inner.py index a1750472..f761ce2f 100644 --- a/quantcdn/models/list_vector_collections200_response_collections_inner.py +++ b/quantcdn/models/list_vector_collections200_response_collections_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/organizations_list200_response_inner.py b/quantcdn/models/organizations_list200_response_inner.py index c298fef4..6239bd9c 100644 --- a/quantcdn/models/organizations_list200_response_inner.py +++ b/quantcdn/models/organizations_list200_response_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/patch_environment_compose202_response.py b/quantcdn/models/patch_environment_compose202_response.py index 262e9a4f..fc8a9a8b 100644 --- a/quantcdn/models/patch_environment_compose202_response.py +++ b/quantcdn/models/patch_environment_compose202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/patch_environment_compose202_response_spot_configuration.py b/quantcdn/models/patch_environment_compose202_response_spot_configuration.py index d4e5c385..794ef006 100644 --- a/quantcdn/models/patch_environment_compose202_response_spot_configuration.py +++ b/quantcdn/models/patch_environment_compose202_response_spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/patch_environment_compose400_response.py b/quantcdn/models/patch_environment_compose400_response.py index 8996e31a..1ced7a4a 100644 --- a/quantcdn/models/patch_environment_compose400_response.py +++ b/quantcdn/models/patch_environment_compose400_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/patch_environment_compose_request.py b/quantcdn/models/patch_environment_compose_request.py index 97b86739..50d80a17 100644 --- a/quantcdn/models/patch_environment_compose_request.py +++ b/quantcdn/models/patch_environment_compose_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/patch_environment_compose_request_spot_configuration.py b/quantcdn/models/patch_environment_compose_request_spot_configuration.py index a699ed15..2e41e25e 100644 --- a/quantcdn/models/patch_environment_compose_request_spot_configuration.py +++ b/quantcdn/models/patch_environment_compose_request_spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/purge_create_request.py b/quantcdn/models/purge_create_request.py index 155e7f8c..17dea8d1 100644 --- a/quantcdn/models/purge_create_request.py +++ b/quantcdn/models/purge_create_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/query_vector_collection200_response.py b/quantcdn/models/query_vector_collection200_response.py index adc7da30..275a9bba 100644 --- a/quantcdn/models/query_vector_collection200_response.py +++ b/quantcdn/models/query_vector_collection200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,8 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from quantcdn.models.query_vector_collection200_response_pagination import QueryVectorCollection200ResponsePagination from quantcdn.models.query_vector_collection200_response_results_inner import QueryVectorCollection200ResponseResultsInner from typing import Optional, Set from typing_extensions import Self @@ -28,10 +29,26 @@ class QueryVectorCollection200Response(BaseModel): QueryVectorCollection200Response """ # noqa: E501 results: Optional[List[QueryVectorCollection200ResponseResultsInner]] = None - query: Optional[StrictStr] = None - count: Optional[StrictInt] = None - execution_time_ms: Optional[StrictInt] = Field(default=None, alias="executionTimeMs") - __properties: ClassVar[List[str]] = ["results", "query", "count", "executionTimeMs"] + query: Optional[StrictStr] = Field(default=None, description="Original query text (null if vector or metadata search was used)") + search_mode: Optional[StrictStr] = Field(default=None, description="Search mode used: text (query provided), vector (pre-computed), metadata (listByMetadata)", alias="searchMode") + filter: Optional[Dict[str, Any]] = Field(default=None, description="Filter that was applied (if any)") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned") + execution_time_ms: Optional[StrictInt] = Field(default=None, description="Query execution time in milliseconds", alias="executionTimeMs") + collection_id: Optional[StrictStr] = Field(default=None, alias="collectionId") + has_more: Optional[StrictBool] = Field(default=None, description="True if more results available (listByMetadata mode only)", alias="hasMore") + next_cursor: Optional[StrictStr] = Field(default=None, description="Cursor for next page. Pass as cursor param to continue. Null when no more results. Only in listByMetadata mode.", alias="nextCursor") + pagination: Optional[QueryVectorCollection200ResponsePagination] = None + __properties: ClassVar[List[str]] = ["results", "query", "searchMode", "filter", "count", "executionTimeMs", "collectionId", "hasMore", "nextCursor", "pagination"] + + @field_validator('search_mode') + def search_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['text', 'vector', 'metadata']): + raise ValueError("must be one of enum values ('text', 'vector', 'metadata')") + return value model_config = ConfigDict( populate_by_name=True, @@ -79,6 +96,29 @@ def to_dict(self) -> Dict[str, Any]: if _item_results: _items.append(_item_results.to_dict()) _dict['results'] = _items + # 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 query (nullable) is None + # and model_fields_set contains the field + if self.query is None and "query" in self.model_fields_set: + _dict['query'] = None + + # set to None if filter (nullable) is None + # and model_fields_set contains the field + if self.filter is None and "filter" in self.model_fields_set: + _dict['filter'] = None + + # set to None if next_cursor (nullable) is None + # and model_fields_set contains the field + if self.next_cursor is None and "next_cursor" in self.model_fields_set: + _dict['nextCursor'] = None + + # 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 @@ -93,8 +133,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "results": [QueryVectorCollection200ResponseResultsInner.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, "query": obj.get("query"), + "searchMode": obj.get("searchMode"), + "filter": obj.get("filter"), "count": obj.get("count"), - "executionTimeMs": obj.get("executionTimeMs") + "executionTimeMs": obj.get("executionTimeMs"), + "collectionId": obj.get("collectionId"), + "hasMore": obj.get("hasMore"), + "nextCursor": obj.get("nextCursor"), + "pagination": QueryVectorCollection200ResponsePagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None }) return _obj diff --git a/quantcdn/models/query_vector_collection200_response_pagination.py b/quantcdn/models/query_vector_collection200_response_pagination.py new file mode 100644 index 00000000..4b3ff69b --- /dev/null +++ b/quantcdn/models/query_vector_collection200_response_pagination.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 QueryVectorCollection200ResponsePagination(BaseModel): + """ + Pagination info (listByMetadata mode only) + """ # noqa: E501 + sort_by: Optional[StrictStr] = Field(default=None, alias="sortBy") + sort_order: Optional[StrictStr] = Field(default=None, alias="sortOrder") + limit: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["sortBy", "sortOrder", "limit"] + + @field_validator('sort_by') + def sort_by_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['created_at', 'document_id']): + raise ValueError("must be one of enum values ('created_at', 'document_id')") + return value + + @field_validator('sort_order') + def sort_order_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['asc', 'desc']): + raise ValueError("must be one of enum values ('asc', 'desc')") + 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 QueryVectorCollection200ResponsePagination 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 QueryVectorCollection200ResponsePagination from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sortBy": obj.get("sortBy"), + "sortOrder": obj.get("sortOrder"), + "limit": obj.get("limit") + }) + return _obj + + diff --git a/quantcdn/models/query_vector_collection200_response_results_inner.py b/quantcdn/models/query_vector_collection200_response_results_inner.py index d244d600..54fed025 100644 --- a/quantcdn/models/query_vector_collection200_response_results_inner.py +++ b/quantcdn/models/query_vector_collection200_response_results_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,9 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from quantcdn.models.query_vector_collection200_response_results_inner_metadata import QueryVectorCollection200ResponseResultsInnerMetadata +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,10 +27,12 @@ class QueryVectorCollection200ResponseResultsInner(BaseModel): """ QueryVectorCollection200ResponseResultsInner """ # noqa: E501 - content: Optional[StrictStr] = None - score: Optional[Union[StrictFloat, StrictInt]] = None - metadata: Optional[QueryVectorCollection200ResponseResultsInnerMetadata] = None - __properties: ClassVar[List[str]] = ["content", "score", "metadata"] + document_id: Optional[StrictStr] = Field(default=None, alias="documentId") + content: Optional[StrictStr] = Field(default=None, description="Document text content") + similarity: Optional[Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=None, description="Cosine similarity score (1.0 for metadata-only queries)") + metadata: Optional[Dict[str, Any]] = None + embedding: Optional[List[Union[StrictFloat, StrictInt]]] = Field(default=None, description="Vector embedding (only if includeEmbeddings=true)") + __properties: ClassVar[List[str]] = ["documentId", "content", "similarity", "metadata", "embedding"] model_config = ConfigDict( populate_by_name=True, @@ -71,9 +73,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of metadata - if self.metadata: - _dict['metadata'] = self.metadata.to_dict() return _dict @classmethod @@ -86,9 +85,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "documentId": obj.get("documentId"), "content": obj.get("content"), - "score": obj.get("score"), - "metadata": QueryVectorCollection200ResponseResultsInnerMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + "similarity": obj.get("similarity"), + "metadata": obj.get("metadata"), + "embedding": obj.get("embedding") }) return _obj diff --git a/quantcdn/models/query_vector_collection_request.py b/quantcdn/models/query_vector_collection_request.py index a615495e..370c600a 100644 --- a/quantcdn/models/query_vector_collection_request.py +++ b/quantcdn/models/query_vector_collection_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,9 +17,10 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated +from quantcdn.models.query_vector_collection_request_filter import QueryVectorCollectionRequestFilter from typing import Optional, Set from typing_extensions import Self @@ -27,9 +28,37 @@ class QueryVectorCollectionRequest(BaseModel): """ QueryVectorCollectionRequest """ # noqa: E501 - query: StrictStr = Field(description="Natural language search query") - count: Optional[Annotated[int, Field(le=20, strict=True, ge=1)]] = Field(default=5, description="Number of results to return") - __properties: ClassVar[List[str]] = ["query", "count"] + query: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=1000)]] = Field(default=None, description="Natural language search query (mutually exclusive with vector)") + vector: Optional[List[Union[StrictFloat, StrictInt]]] = Field(default=None, description="Pre-computed embedding vector (mutually exclusive with query). Array length must match collection dimension.") + limit: Optional[Annotated[int, Field(le=20, strict=True, ge=1)]] = Field(default=5, description="Maximum number of results to return") + threshold: Optional[Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=0.7, description="Minimum similarity score (0-1, higher = more relevant)") + include_embeddings: Optional[StrictBool] = Field(default=False, description="Include embedding vectors in response (for debugging)", alias="includeEmbeddings") + filter: Optional[QueryVectorCollectionRequestFilter] = None + list_by_metadata: Optional[StrictBool] = Field(default=False, description="If true, skip semantic search and return all documents matching the filter. Requires filter. Supports cursor pagination.", alias="listByMetadata") + cursor: Optional[StrictStr] = Field(default=None, description="Pagination cursor for listByMetadata mode. Use nextCursor from previous response. Opaque format - do not construct manually.") + sort_by: Optional[StrictStr] = Field(default='created_at', description="Field to sort by in listByMetadata mode", alias="sortBy") + sort_order: Optional[StrictStr] = Field(default='desc', description="Sort direction in listByMetadata mode", alias="sortOrder") + __properties: ClassVar[List[str]] = ["query", "vector", "limit", "threshold", "includeEmbeddings", "filter", "listByMetadata", "cursor", "sortBy", "sortOrder"] + + @field_validator('sort_by') + def sort_by_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['created_at', 'document_id']): + raise ValueError("must be one of enum values ('created_at', 'document_id')") + return value + + @field_validator('sort_order') + def sort_order_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['asc', 'desc']): + raise ValueError("must be one of enum values ('asc', 'desc')") + return value model_config = ConfigDict( populate_by_name=True, @@ -70,6 +99,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of filter + if self.filter: + _dict['filter'] = self.filter.to_dict() return _dict @classmethod @@ -83,7 +115,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "query": obj.get("query"), - "count": obj.get("count") if obj.get("count") is not None else 5 + "vector": obj.get("vector"), + "limit": obj.get("limit") if obj.get("limit") is not None else 5, + "threshold": obj.get("threshold") if obj.get("threshold") is not None else 0.7, + "includeEmbeddings": obj.get("includeEmbeddings") if obj.get("includeEmbeddings") is not None else False, + "filter": QueryVectorCollectionRequestFilter.from_dict(obj["filter"]) if obj.get("filter") is not None else None, + "listByMetadata": obj.get("listByMetadata") if obj.get("listByMetadata") is not None else False, + "cursor": obj.get("cursor"), + "sortBy": obj.get("sortBy") if obj.get("sortBy") is not None else 'created_at', + "sortOrder": obj.get("sortOrder") if obj.get("sortOrder") is not None else 'desc' }) return _obj diff --git a/quantcdn/models/query_vector_collection_request_filter.py b/quantcdn/models/query_vector_collection_request_filter.py new file mode 100644 index 00000000..cde3431b --- /dev/null +++ b/quantcdn/models/query_vector_collection_request_filter.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 QueryVectorCollectionRequestFilter(BaseModel): + """ + Filter results by metadata fields. Applied AFTER semantic search (or alone in listByMetadata mode). All conditions use AND logic. + """ # noqa: E501 + exact: Optional[Dict[str, Any]] = Field(default=None, description="Exact match on metadata fields. Keys are metadata field names, values are expected values.") + contains: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Array contains filter for array metadata fields (like tags). Returns documents where the metadata array contains ANY of the specified values.") + __properties: ClassVar[List[str]] = ["exact", "contains"] + + 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 QueryVectorCollectionRequestFilter 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 QueryVectorCollectionRequestFilter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "exact": obj.get("exact"), + "contains": obj.get("contains") + }) + return _obj + + diff --git a/quantcdn/models/scaling_policy.py b/quantcdn/models/scaling_policy.py index 4a6cfebe..9cedec3f 100644 --- a/quantcdn/models/scaling_policy.py +++ b/quantcdn/models/scaling_policy.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/spot_configuration.py b/quantcdn/models/spot_configuration.py index 3699164a..79a04eaf 100644 --- a/quantcdn/models/spot_configuration.py +++ b/quantcdn/models/spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/submit_tool_callback200_response.py b/quantcdn/models/submit_tool_callback200_response.py new file mode 100644 index 00000000..07a89697 --- /dev/null +++ b/quantcdn/models/submit_tool_callback200_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 typing import Optional, Set +from typing_extensions import Self + +class SubmitToolCallback200Response(BaseModel): + """ + SubmitToolCallback200Response + """ # noqa: E501 + success: Optional[StrictBool] = None + message: Optional[StrictStr] = None + callback_id: Optional[StrictStr] = Field(default=None, description="Echo of the callbackId for confirmation", alias="callbackId") + __properties: ClassVar[List[str]] = ["success", "message", "callbackId"] + + 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 SubmitToolCallback200Response 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 SubmitToolCallback200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message"), + "callbackId": obj.get("callbackId") + }) + return _obj + + diff --git a/quantcdn/models/submit_tool_callback_request.py b/quantcdn/models/submit_tool_callback_request.py new file mode 100644 index 00000000..4f04beb9 --- /dev/null +++ b/quantcdn/models/submit_tool_callback_request.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 quantcdn.models.submit_tool_callback_request_tool_results_inner import SubmitToolCallbackRequestToolResultsInner +from typing import Optional, Set +from typing_extensions import Self + +class SubmitToolCallbackRequest(BaseModel): + """ + SubmitToolCallbackRequest + """ # noqa: E501 + callback_id: StrictStr = Field(description="The callbackId from the waiting_callback status response", alias="callbackId") + tool_results: List[SubmitToolCallbackRequestToolResultsInner] = Field(description="Results of client-executed tools", alias="toolResults") + __properties: ClassVar[List[str]] = ["callbackId", "toolResults"] + + 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 SubmitToolCallbackRequest 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 tool_results (list) + _items = [] + if self.tool_results: + for _item_tool_results in self.tool_results: + if _item_tool_results: + _items.append(_item_tool_results.to_dict()) + _dict['toolResults'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SubmitToolCallbackRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "callbackId": obj.get("callbackId"), + "toolResults": [SubmitToolCallbackRequestToolResultsInner.from_dict(_item) for _item in obj["toolResults"]] if obj.get("toolResults") is not None else None + }) + return _obj + + diff --git a/quantcdn/models/submit_tool_callback_request_tool_results_inner.py b/quantcdn/models/submit_tool_callback_request_tool_results_inner.py new file mode 100644 index 00000000..ac5ccaf2 --- /dev/null +++ b/quantcdn/models/submit_tool_callback_request_tool_results_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 SubmitToolCallbackRequestToolResultsInner(BaseModel): + """ + SubmitToolCallbackRequestToolResultsInner + """ # noqa: E501 + tool_use_id: StrictStr = Field(description="The toolUseId from pendingTools", alias="toolUseId") + result: Dict[str, Any] = Field(description="The result of executing the tool") + __properties: ClassVar[List[str]] = ["toolUseId", "result"] + + 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 SubmitToolCallbackRequestToolResultsInner 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 SubmitToolCallbackRequestToolResultsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "toolUseId": obj.get("toolUseId"), + "result": obj.get("result") + }) + return _obj + + diff --git a/quantcdn/models/sync_operation.py b/quantcdn/models/sync_operation.py index 897f4209..95282ffa 100644 --- a/quantcdn/models/sync_operation.py +++ b/quantcdn/models/sync_operation.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/sync_to_environment_request.py b/quantcdn/models/sync_to_environment_request.py index f23b798e..053b5390 100644 --- a/quantcdn/models/sync_to_environment_request.py +++ b/quantcdn/models/sync_to_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_ai_agent200_response.py b/quantcdn/models/update_ai_agent200_response.py index e54f2a36..c386dc46 100644 --- a/quantcdn/models/update_ai_agent200_response.py +++ b/quantcdn/models/update_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_ai_agent_request.py b/quantcdn/models/update_ai_agent_request.py index 57edd461..6c33ac57 100644 --- a/quantcdn/models/update_ai_agent_request.py +++ b/quantcdn/models/update_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_ai_session200_response.py b/quantcdn/models/update_ai_session200_response.py index 1421a143..52c30ffe 100644 --- a/quantcdn/models/update_ai_session200_response.py +++ b/quantcdn/models/update_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_ai_session_request.py b/quantcdn/models/update_ai_session_request.py index 0c566a8c..80617e03 100644 --- a/quantcdn/models/update_ai_session_request.py +++ b/quantcdn/models/update_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_ai_session_request_new_messages_inner.py b/quantcdn/models/update_ai_session_request_new_messages_inner.py index 04cb8add..b66a53e8 100644 --- a/quantcdn/models/update_ai_session_request_new_messages_inner.py +++ b/quantcdn/models/update_ai_session_request_new_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_cron_job_request.py b/quantcdn/models/update_cron_job_request.py index 1c7d8c0b..63665fac 100644 --- a/quantcdn/models/update_cron_job_request.py +++ b/quantcdn/models/update_cron_job_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_environment_request.py b/quantcdn/models/update_environment_request.py index 965d7686..2c075879 100644 --- a/quantcdn/models/update_environment_request.py +++ b/quantcdn/models/update_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_environment_state_request.py b/quantcdn/models/update_environment_state_request.py index 4b2b689e..f29a5d71 100644 --- a/quantcdn/models/update_environment_state_request.py +++ b/quantcdn/models/update_environment_state_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_environment_variable_request.py b/quantcdn/models/update_environment_variable_request.py index 2ed0f2ec..f36e5567 100644 --- a/quantcdn/models/update_environment_variable_request.py +++ b/quantcdn/models/update_environment_variable_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_task200_response.py b/quantcdn/models/update_task200_response.py new file mode 100644 index 00000000..218f84af --- /dev/null +++ b/quantcdn/models/update_task200_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 UpdateTask200Response(BaseModel): + """ + UpdateTask200Response + """ # noqa: E501 + task_id: Optional[StrictStr] = Field(default=None, alias="taskId") + status: Optional[StrictStr] = None + updated_at: Optional[StrictInt] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["taskId", "status", "updatedAt"] + + 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 UpdateTask200Response 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 UpdateTask200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "taskId": obj.get("taskId"), + "status": obj.get("status"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/quantcdn/models/update_task_request.py b/quantcdn/models/update_task_request.py new file mode 100644 index 00000000..8aebe472 --- /dev/null +++ b/quantcdn/models/update_task_request.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class UpdateTaskRequest(BaseModel): + """ + UpdateTaskRequest + """ # noqa: E501 + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + task_list_id: Optional[StrictStr] = Field(default=None, description="Move task to different list or remove from list (set null)", alias="taskListId") + status: Optional[StrictStr] = Field(default=None, description="Task status (triggers automatic timestamp updates)") + assigned_agent_id: Optional[StrictStr] = Field(default=None, description="Reassign task to different agent", alias="assignedAgentId") + depends_on: Optional[List[StrictStr]] = Field(default=None, description="Update task dependencies", alias="dependsOn") + metadata: Optional[Dict[str, Any]] = Field(default=None, description="Update task metadata (replaces entire metadata object)") + progress: Optional[Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=None, description="Progress from 0.0 to 1.0") + progress_message: Optional[StrictStr] = Field(default=None, description="Human-readable progress message", alias="progressMessage") + result: Optional[Dict[str, Any]] = Field(default=None, description="Task result data (set when completing task)") + error: Optional[StrictStr] = Field(default=None, description="Error message (set when task fails)") + retry_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Update retry count", alias="retryCount") + max_retries: Optional[Annotated[int, Field(le=10, strict=True, ge=0)]] = Field(default=None, description="Update maximum retry attempts", alias="maxRetries") + blocked_reason: Optional[StrictStr] = Field(default=None, description="Reason task is blocked (set when status is blocked)", alias="blockedReason") + blocked_by_task_ids: Optional[List[StrictStr]] = Field(default=None, description="Task IDs that are blocking this task", alias="blockedByTaskIds") + __properties: ClassVar[List[str]] = ["title", "description", "taskListId", "status", "assignedAgentId", "dependsOn", "metadata", "progress", "progressMessage", "result", "error", "retryCount", "maxRetries", "blockedReason", "blockedByTaskIds"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['pending', 'in_progress', 'completed', 'failed', 'cancelled', 'blocked']): + raise ValueError("must be one of enum values ('pending', 'in_progress', 'completed', 'failed', 'cancelled', 'blocked')") + 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 UpdateTaskRequest 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 task_list_id (nullable) is None + # and model_fields_set contains the field + if self.task_list_id is None and "task_list_id" in self.model_fields_set: + _dict['taskListId'] = None + + # set to None if assigned_agent_id (nullable) is None + # and model_fields_set contains the field + if self.assigned_agent_id is None and "assigned_agent_id" in self.model_fields_set: + _dict['assignedAgentId'] = 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 + + # set to None if blocked_reason (nullable) is None + # and model_fields_set contains the field + if self.blocked_reason is None and "blocked_reason" in self.model_fields_set: + _dict['blockedReason'] = None + + # set to None if blocked_by_task_ids (nullable) is None + # and model_fields_set contains the field + if self.blocked_by_task_ids is None and "blocked_by_task_ids" in self.model_fields_set: + _dict['blockedByTaskIds'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateTaskRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "title": obj.get("title"), + "description": obj.get("description"), + "taskListId": obj.get("taskListId"), + "status": obj.get("status"), + "assignedAgentId": obj.get("assignedAgentId"), + "dependsOn": obj.get("dependsOn"), + "metadata": obj.get("metadata"), + "progress": obj.get("progress"), + "progressMessage": obj.get("progressMessage"), + "result": obj.get("result"), + "error": obj.get("error"), + "retryCount": obj.get("retryCount"), + "maxRetries": obj.get("maxRetries"), + "blockedReason": obj.get("blockedReason"), + "blockedByTaskIds": obj.get("blockedByTaskIds") + }) + return _obj + + diff --git a/quantcdn/models/upload_file201_response.py b/quantcdn/models/upload_file201_response.py new file mode 100644 index 00000000..afa2d0f4 --- /dev/null +++ b/quantcdn/models/upload_file201_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 UploadFile201Response(BaseModel): + """ + UploadFile201Response + """ # noqa: E501 + file_id: Optional[StrictStr] = Field(default=None, alias="fileId") + s3_uri: Optional[StrictStr] = Field(default=None, description="S3 URI (direct upload only)", alias="s3Uri") + url: Optional[StrictStr] = Field(default=None, description="Presigned download URL (direct upload only)") + upload_url: Optional[StrictStr] = Field(default=None, description="Presigned PUT URL (presigned upload only)", alias="uploadUrl") + s3_key: Optional[StrictStr] = Field(default=None, description="S3 object key (presigned upload only)", alias="s3Key") + expires_in: Optional[StrictInt] = Field(default=None, description="URL expiry in seconds (presigned upload only)", alias="expiresIn") + filename: Optional[StrictStr] = None + content_type: Optional[StrictStr] = Field(default=None, alias="contentType") + size: Optional[StrictInt] = None + metadata: Optional[Dict[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + __properties: ClassVar[List[str]] = ["fileId", "s3Uri", "url", "uploadUrl", "s3Key", "expiresIn", "filename", "contentType", "size", "metadata", "createdAt"] + + 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 UploadFile201Response 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 UploadFile201Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fileId": obj.get("fileId"), + "s3Uri": obj.get("s3Uri"), + "url": obj.get("url"), + "uploadUrl": obj.get("uploadUrl"), + "s3Key": obj.get("s3Key"), + "expiresIn": obj.get("expiresIn"), + "filename": obj.get("filename"), + "contentType": obj.get("contentType"), + "size": obj.get("size"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt") + }) + return _obj + + diff --git a/quantcdn/models/upload_file_request.py b/quantcdn/models/upload_file_request.py new file mode 100644 index 00000000..b57e6af2 --- /dev/null +++ b/quantcdn/models/upload_file_request.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + 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 UploadFileRequest(BaseModel): + """ + UploadFileRequest + """ # noqa: E501 + content: Optional[StrictStr] = Field(default=None, description="Base64-encoded file content (for direct upload). Required unless using requestUploadUrl.") + request_upload_url: Optional[StrictBool] = Field(default=False, description="Set to true to get a presigned S3 upload URL instead of uploading directly.", alias="requestUploadUrl") + size: Optional[StrictInt] = Field(default=None, description="File size in bytes. Optional but recommended for presigned uploads.") + filename: Optional[StrictStr] = Field(default=None, description="Original filename") + content_type: StrictStr = Field(description="MIME type of the file", alias="contentType") + metadata: Optional[Dict[str, Any]] = Field(default=None, description="Custom metadata for filtering. Any fields allowed.") + __properties: ClassVar[List[str]] = ["content", "requestUploadUrl", "size", "filename", "contentType", "metadata"] + + 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 UploadFileRequest 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 UploadFileRequest 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"), + "requestUploadUrl": obj.get("requestUploadUrl") if obj.get("requestUploadUrl") is not None else False, + "size": obj.get("size"), + "filename": obj.get("filename"), + "contentType": obj.get("contentType"), + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/quantcdn/models/upload_vector_documents200_response.py b/quantcdn/models/upload_vector_documents200_response.py index fb3c2b24..8a235d05 100644 --- a/quantcdn/models/upload_vector_documents200_response.py +++ b/quantcdn/models/upload_vector_documents200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/upload_vector_documents_request.py b/quantcdn/models/upload_vector_documents_request.py index b24515bc..876d6bf0 100644 --- a/quantcdn/models/upload_vector_documents_request.py +++ b/quantcdn/models/upload_vector_documents_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/upload_vector_documents_request_documents_inner.py b/quantcdn/models/upload_vector_documents_request_documents_inner.py index 32d0b972..a7ecf496 100644 --- a/quantcdn/models/upload_vector_documents_request_documents_inner.py +++ b/quantcdn/models/upload_vector_documents_request_documents_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/upload_vector_documents_request_documents_inner_metadata.py b/quantcdn/models/upload_vector_documents_request_documents_inner_metadata.py index c428be83..6509c387 100644 --- a/quantcdn/models/upload_vector_documents_request_documents_inner_metadata.py +++ b/quantcdn/models/upload_vector_documents_request_documents_inner_metadata.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_content_item.py b/quantcdn/models/v1_content_item.py index a19c59d1..69744aba 100644 --- a/quantcdn/models/v1_content_item.py +++ b/quantcdn/models/v1_content_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_content_list_response.py b/quantcdn/models/v1_content_list_response.py index e7e46ae6..5a38b959 100644 --- a/quantcdn/models/v1_content_list_response.py +++ b/quantcdn/models/v1_content_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_content_request.py b/quantcdn/models/v1_content_request.py index ad9f7b9e..ec8e187f 100644 --- a/quantcdn/models/v1_content_request.py +++ b/quantcdn/models/v1_content_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_delete_response.py b/quantcdn/models/v1_delete_response.py index 0847c7d8..8395fe62 100644 --- a/quantcdn/models/v1_delete_response.py +++ b/quantcdn/models/v1_delete_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_error.py b/quantcdn/models/v1_error.py index c742d87b..f77e6c07 100644 --- a/quantcdn/models/v1_error.py +++ b/quantcdn/models/v1_error.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_form_submission_item.py b/quantcdn/models/v1_form_submission_item.py index a21ce93a..7166fc73 100644 --- a/quantcdn/models/v1_form_submission_item.py +++ b/quantcdn/models/v1_form_submission_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_form_submission_list_response.py b/quantcdn/models/v1_form_submission_list_response.py index 681b50e5..54d73eed 100644 --- a/quantcdn/models/v1_form_submission_list_response.py +++ b/quantcdn/models/v1_form_submission_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_get_metric_series_response.py b/quantcdn/models/v1_get_metric_series_response.py index 2132c9f0..b9b125c0 100644 --- a/quantcdn/models/v1_get_metric_series_response.py +++ b/quantcdn/models/v1_get_metric_series_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_get_metric_series_response_data.py b/quantcdn/models/v1_get_metric_series_response_data.py index cbb19bb7..15e52a4a 100644 --- a/quantcdn/models/v1_get_metric_series_response_data.py +++ b/quantcdn/models/v1_get_metric_series_response_data.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_get_metrics_response.py b/quantcdn/models/v1_get_metrics_response.py index 76401e50..ee14b7a4 100644 --- a/quantcdn/models/v1_get_metrics_response.py +++ b/quantcdn/models/v1_get_metrics_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_get_metrics_response_data.py b/quantcdn/models/v1_get_metrics_response_data.py index da6a91ab..b519c297 100644 --- a/quantcdn/models/v1_get_metrics_response_data.py +++ b/quantcdn/models/v1_get_metrics_response_data.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_global_meta_response.py b/quantcdn/models/v1_global_meta_response.py index ed41c836..6ec78ece 100644 --- a/quantcdn/models/v1_global_meta_response.py +++ b/quantcdn/models/v1_global_meta_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_global_meta_response_global_meta.py b/quantcdn/models/v1_global_meta_response_global_meta.py index d938402d..4e1c20c0 100644 --- a/quantcdn/models/v1_global_meta_response_global_meta.py +++ b/quantcdn/models/v1_global_meta_response_global_meta.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_info.py b/quantcdn/models/v1_info.py index 680e4223..d778476d 100644 --- a/quantcdn/models/v1_info.py +++ b/quantcdn/models/v1_info.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_meta.py b/quantcdn/models/v1_meta.py index e35f80ad..52dfcfa4 100644 --- a/quantcdn/models/v1_meta.py +++ b/quantcdn/models/v1_meta.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_metric_day_stats.py b/quantcdn/models/v1_metric_day_stats.py index 11ede17e..130c8a1a 100644 --- a/quantcdn/models/v1_metric_day_stats.py +++ b/quantcdn/models/v1_metric_day_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_metric_minute_stats.py b/quantcdn/models/v1_metric_minute_stats.py index 9e7d7ace..c416f892 100644 --- a/quantcdn/models/v1_metric_minute_stats.py +++ b/quantcdn/models/v1_metric_minute_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_metric_month_stats.py b/quantcdn/models/v1_metric_month_stats.py index 9cc6f182..06d89ffe 100644 --- a/quantcdn/models/v1_metric_month_stats.py +++ b/quantcdn/models/v1_metric_month_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_ping_response.py b/quantcdn/models/v1_ping_response.py index 85bfb014..ee94889b 100644 --- a/quantcdn/models/v1_ping_response.py +++ b/quantcdn/models/v1_ping_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_proxy_item.py b/quantcdn/models/v1_proxy_item.py index 81053645..c8074e38 100644 --- a/quantcdn/models/v1_proxy_item.py +++ b/quantcdn/models/v1_proxy_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_proxy_list_response.py b/quantcdn/models/v1_proxy_list_response.py index 1e5e422b..6f4c0821 100644 --- a/quantcdn/models/v1_proxy_list_response.py +++ b/quantcdn/models/v1_proxy_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_redirect_item.py b/quantcdn/models/v1_redirect_item.py index 72afd87d..52d89b04 100644 --- a/quantcdn/models/v1_redirect_item.py +++ b/quantcdn/models/v1_redirect_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_redirect_list_response.py b/quantcdn/models/v1_redirect_list_response.py index 19b42b3b..c36ec659 100644 --- a/quantcdn/models/v1_redirect_list_response.py +++ b/quantcdn/models/v1_redirect_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_redirect_request.py b/quantcdn/models/v1_redirect_request.py index 01ecf8df..656057f0 100644 --- a/quantcdn/models/v1_redirect_request.py +++ b/quantcdn/models/v1_redirect_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_redirect_response.py b/quantcdn/models/v1_redirect_response.py index 390cf800..8797aa29 100644 --- a/quantcdn/models/v1_redirect_response.py +++ b/quantcdn/models/v1_redirect_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_revision.py b/quantcdn/models/v1_revision.py index a27e85da..77e849e3 100644 --- a/quantcdn/models/v1_revision.py +++ b/quantcdn/models/v1_revision.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_revisions_response.py b/quantcdn/models/v1_revisions_response.py index 48b82fab..3930e668 100644 --- a/quantcdn/models/v1_revisions_response.py +++ b/quantcdn/models/v1_revisions_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_search_hit.py b/quantcdn/models/v1_search_hit.py index 1e474938..1454861b 100644 --- a/quantcdn/models/v1_search_hit.py +++ b/quantcdn/models/v1_search_hit.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_search_items_response.py b/quantcdn/models/v1_search_items_response.py index 5616fcef..1faa40c3 100644 --- a/quantcdn/models/v1_search_items_response.py +++ b/quantcdn/models/v1_search_items_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_search_mutation_response.py b/quantcdn/models/v1_search_mutation_response.py index 7b6e9e8c..623485cd 100644 --- a/quantcdn/models/v1_search_mutation_response.py +++ b/quantcdn/models/v1_search_mutation_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_search_record.py b/quantcdn/models/v1_search_record.py index 74dfce25..9d708f95 100644 --- a/quantcdn/models/v1_search_record.py +++ b/quantcdn/models/v1_search_record.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_search_response.py b/quantcdn/models/v1_search_response.py index 5ba4165f..0e6d2593 100644 --- a/quantcdn/models/v1_search_response.py +++ b/quantcdn/models/v1_search_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_series_point_day.py b/quantcdn/models/v1_series_point_day.py index b8d71979..2365afbb 100644 --- a/quantcdn/models/v1_series_point_day.py +++ b/quantcdn/models/v1_series_point_day.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_series_point_month.py b/quantcdn/models/v1_series_point_month.py index 683cb8e3..7014c121 100644 --- a/quantcdn/models/v1_series_point_month.py +++ b/quantcdn/models/v1_series_point_month.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_transition.py b/quantcdn/models/v1_transition.py index 62361225..1d29543b 100644 --- a/quantcdn/models/v1_transition.py +++ b/quantcdn/models/v1_transition.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_upload_response.py b/quantcdn/models/v1_upload_response.py index e4bd0d0b..80e0e7d4 100644 --- a/quantcdn/models/v1_upload_response.py +++ b/quantcdn/models/v1_upload_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_url_meta_request.py b/quantcdn/models/v1_url_meta_request.py index 95bf3046..aaa39ede 100644 --- a/quantcdn/models/v1_url_meta_request.py +++ b/quantcdn/models/v1_url_meta_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_url_meta_response.py b/quantcdn/models/v1_url_meta_response.py index 06955648..9333c40c 100644 --- a/quantcdn/models/v1_url_meta_response.py +++ b/quantcdn/models/v1_url_meta_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_waf_log_item.py b/quantcdn/models/v1_waf_log_item.py index 15fbe475..1f8fa39e 100644 --- a/quantcdn/models/v1_waf_log_item.py +++ b/quantcdn/models/v1_waf_log_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_waf_log_list_response.py b/quantcdn/models/v1_waf_log_list_response.py index e931011e..c30c798e 100644 --- a/quantcdn/models/v1_waf_log_list_response.py +++ b/quantcdn/models/v1_waf_log_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler.py b/quantcdn/models/v2_crawler.py index 8527a8d4..f9c10ac4 100644 --- a/quantcdn/models/v2_crawler.py +++ b/quantcdn/models/v2_crawler.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_assets.py b/quantcdn/models/v2_crawler_assets.py index c0410f50..1dcf8c3b 100644 --- a/quantcdn/models/v2_crawler_assets.py +++ b/quantcdn/models/v2_crawler_assets.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_assets_network_intercept.py b/quantcdn/models/v2_crawler_assets_network_intercept.py index 7876cfb4..39fc803e 100644 --- a/quantcdn/models/v2_crawler_assets_network_intercept.py +++ b/quantcdn/models/v2_crawler_assets_network_intercept.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_assets_parser.py b/quantcdn/models/v2_crawler_assets_parser.py index 16a19058..e2cf8a4f 100644 --- a/quantcdn/models/v2_crawler_assets_parser.py +++ b/quantcdn/models/v2_crawler_assets_parser.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_request.py b/quantcdn/models/v2_crawler_request.py index 72f4982a..9eddb4e3 100644 --- a/quantcdn/models/v2_crawler_request.py +++ b/quantcdn/models/v2_crawler_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_run.py b/quantcdn/models/v2_crawler_run.py index 7a1b2e3a..8aea434b 100644 --- a/quantcdn/models/v2_crawler_run.py +++ b/quantcdn/models/v2_crawler_run.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_schedule.py b/quantcdn/models/v2_crawler_schedule.py index e03732c5..99e73085 100644 --- a/quantcdn/models/v2_crawler_schedule.py +++ b/quantcdn/models/v2_crawler_schedule.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_schedule_request.py b/quantcdn/models/v2_crawler_schedule_request.py index 05632951..cb991315 100644 --- a/quantcdn/models/v2_crawler_schedule_request.py +++ b/quantcdn/models/v2_crawler_schedule_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_sitemap_inner.py b/quantcdn/models/v2_crawler_sitemap_inner.py index 5bd439b9..93b798d0 100644 --- a/quantcdn/models/v2_crawler_sitemap_inner.py +++ b/quantcdn/models/v2_crawler_sitemap_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_custom_header_request.py b/quantcdn/models/v2_custom_header_request.py index 3e103bf5..233e71fd 100644 --- a/quantcdn/models/v2_custom_header_request.py +++ b/quantcdn/models/v2_custom_header_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_domain.py b/quantcdn/models/v2_domain.py index 704e02ab..d8e6f894 100644 --- a/quantcdn/models/v2_domain.py +++ b/quantcdn/models/v2_domain.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_domain_dns_go_live_records_inner.py b/quantcdn/models/v2_domain_dns_go_live_records_inner.py index 82d4be5a..c3c1fdd6 100644 --- a/quantcdn/models/v2_domain_dns_go_live_records_inner.py +++ b/quantcdn/models/v2_domain_dns_go_live_records_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_domain_dns_validation_records_inner.py b/quantcdn/models/v2_domain_dns_validation_records_inner.py index 41a4b1e6..870540cd 100644 --- a/quantcdn/models/v2_domain_dns_validation_records_inner.py +++ b/quantcdn/models/v2_domain_dns_validation_records_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_domain_request.py b/quantcdn/models/v2_domain_request.py index fdd77eac..2337b63d 100644 --- a/quantcdn/models/v2_domain_request.py +++ b/quantcdn/models/v2_domain_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_error.py b/quantcdn/models/v2_error.py index fd0021a3..261ddc4f 100644 --- a/quantcdn/models/v2_error.py +++ b/quantcdn/models/v2_error.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_organization.py b/quantcdn/models/v2_organization.py index 8760fc88..a10455aa 100644 --- a/quantcdn/models/v2_organization.py +++ b/quantcdn/models/v2_organization.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_organization_request.py b/quantcdn/models/v2_organization_request.py index 39208990..b559cbac 100644 --- a/quantcdn/models/v2_organization_request.py +++ b/quantcdn/models/v2_organization_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_project.py b/quantcdn/models/v2_project.py index fbc1ea06..f0b36fd5 100644 --- a/quantcdn/models/v2_project.py +++ b/quantcdn/models/v2_project.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_project_request.py b/quantcdn/models/v2_project_request.py index 5acdb5c5..54b1bc9e 100644 --- a/quantcdn/models/v2_project_request.py +++ b/quantcdn/models/v2_project_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule.py b/quantcdn/models/v2_rule.py index 43f56395..da59caf6 100644 --- a/quantcdn/models/v2_rule.py +++ b/quantcdn/models/v2_rule.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_auth.py b/quantcdn/models/v2_rule_auth.py index 10b709ba..c3a8e583 100644 --- a/quantcdn/models/v2_rule_auth.py +++ b/quantcdn/models/v2_rule_auth.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_auth_action.py b/quantcdn/models/v2_rule_auth_action.py index d8edab31..d20aa286 100644 --- a/quantcdn/models/v2_rule_auth_action.py +++ b/quantcdn/models/v2_rule_auth_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_auth_request.py b/quantcdn/models/v2_rule_auth_request.py index 6d354610..9930d9b7 100644 --- a/quantcdn/models/v2_rule_auth_request.py +++ b/quantcdn/models/v2_rule_auth_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_bot_challenge.py b/quantcdn/models/v2_rule_bot_challenge.py index 3da29ce6..b3828eca 100644 --- a/quantcdn/models/v2_rule_bot_challenge.py +++ b/quantcdn/models/v2_rule_bot_challenge.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_bot_challenge_action.py b/quantcdn/models/v2_rule_bot_challenge_action.py index 674c23a6..403d0fd3 100644 --- a/quantcdn/models/v2_rule_bot_challenge_action.py +++ b/quantcdn/models/v2_rule_bot_challenge_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_bot_challenge_request.py b/quantcdn/models/v2_rule_bot_challenge_request.py index 2bcdf29f..d40e59ba 100644 --- a/quantcdn/models/v2_rule_bot_challenge_request.py +++ b/quantcdn/models/v2_rule_bot_challenge_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_content_filter.py b/quantcdn/models/v2_rule_content_filter.py index 9f9b59af..b98d17a1 100644 --- a/quantcdn/models/v2_rule_content_filter.py +++ b/quantcdn/models/v2_rule_content_filter.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_content_filter_action.py b/quantcdn/models/v2_rule_content_filter_action.py index 50998a07..763ce883 100644 --- a/quantcdn/models/v2_rule_content_filter_action.py +++ b/quantcdn/models/v2_rule_content_filter_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_content_filter_request.py b/quantcdn/models/v2_rule_content_filter_request.py index c8c1f281..48fc0817 100644 --- a/quantcdn/models/v2_rule_content_filter_request.py +++ b/quantcdn/models/v2_rule_content_filter_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_custom_response.py b/quantcdn/models/v2_rule_custom_response.py index ffe2f846..c00bbf62 100644 --- a/quantcdn/models/v2_rule_custom_response.py +++ b/quantcdn/models/v2_rule_custom_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_custom_response_action.py b/quantcdn/models/v2_rule_custom_response_action.py index bf189085..52b43521 100644 --- a/quantcdn/models/v2_rule_custom_response_action.py +++ b/quantcdn/models/v2_rule_custom_response_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_custom_response_request.py b/quantcdn/models/v2_rule_custom_response_request.py index f9caa242..ec64eb13 100644 --- a/quantcdn/models/v2_rule_custom_response_request.py +++ b/quantcdn/models/v2_rule_custom_response_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_function.py b/quantcdn/models/v2_rule_function.py index 7407eb8f..1d79e2f2 100644 --- a/quantcdn/models/v2_rule_function.py +++ b/quantcdn/models/v2_rule_function.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_function_action.py b/quantcdn/models/v2_rule_function_action.py index fbba52f9..4ffbd587 100644 --- a/quantcdn/models/v2_rule_function_action.py +++ b/quantcdn/models/v2_rule_function_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_function_request.py b/quantcdn/models/v2_rule_function_request.py index fdf1b322..531cabfc 100644 --- a/quantcdn/models/v2_rule_function_request.py +++ b/quantcdn/models/v2_rule_function_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_header.py b/quantcdn/models/v2_rule_header.py index 26bbe560..61235524 100644 --- a/quantcdn/models/v2_rule_header.py +++ b/quantcdn/models/v2_rule_header.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_header_action.py b/quantcdn/models/v2_rule_header_action.py index 0666c0ca..9fbf4ef7 100644 --- a/quantcdn/models/v2_rule_header_action.py +++ b/quantcdn/models/v2_rule_header_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_header_request.py b/quantcdn/models/v2_rule_header_request.py index 41a37a7f..1422f003 100644 --- a/quantcdn/models/v2_rule_header_request.py +++ b/quantcdn/models/v2_rule_header_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_proxy.py b/quantcdn/models/v2_rule_proxy.py index 8b08e11a..2cb9dbc9 100644 --- a/quantcdn/models/v2_rule_proxy.py +++ b/quantcdn/models/v2_rule_proxy.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_proxy_action.py b/quantcdn/models/v2_rule_proxy_action.py index c127482e..f3782f34 100644 --- a/quantcdn/models/v2_rule_proxy_action.py +++ b/quantcdn/models/v2_rule_proxy_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_proxy_action_notify_config.py b/quantcdn/models/v2_rule_proxy_action_notify_config.py index 1c747501..8f1b87a3 100644 --- a/quantcdn/models/v2_rule_proxy_action_notify_config.py +++ b/quantcdn/models/v2_rule_proxy_action_notify_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_proxy_action_quant_cloud_selection.py b/quantcdn/models/v2_rule_proxy_action_quant_cloud_selection.py index 38c9b220..7cc2a57b 100644 --- a/quantcdn/models/v2_rule_proxy_action_quant_cloud_selection.py +++ b/quantcdn/models/v2_rule_proxy_action_quant_cloud_selection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_proxy_request.py b/quantcdn/models/v2_rule_proxy_request.py index cdf1c608..309c4881 100644 --- a/quantcdn/models/v2_rule_proxy_request.py +++ b/quantcdn/models/v2_rule_proxy_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_redirect.py b/quantcdn/models/v2_rule_redirect.py index b60559ec..49834882 100644 --- a/quantcdn/models/v2_rule_redirect.py +++ b/quantcdn/models/v2_rule_redirect.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_redirect_action.py b/quantcdn/models/v2_rule_redirect_action.py index 9add8542..b17a02f3 100644 --- a/quantcdn/models/v2_rule_redirect_action.py +++ b/quantcdn/models/v2_rule_redirect_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_redirect_request.py b/quantcdn/models/v2_rule_redirect_request.py index 0e153c4e..4d2a70e4 100644 --- a/quantcdn/models/v2_rule_redirect_request.py +++ b/quantcdn/models/v2_rule_redirect_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_request.py b/quantcdn/models/v2_rule_request.py index 603c33d8..b1a51fb0 100644 --- a/quantcdn/models/v2_rule_request.py +++ b/quantcdn/models/v2_rule_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_serve_static.py b/quantcdn/models/v2_rule_serve_static.py index 307fd24c..487f4fe2 100644 --- a/quantcdn/models/v2_rule_serve_static.py +++ b/quantcdn/models/v2_rule_serve_static.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_serve_static_action.py b/quantcdn/models/v2_rule_serve_static_action.py index 0799335a..c9943ee7 100644 --- a/quantcdn/models/v2_rule_serve_static_action.py +++ b/quantcdn/models/v2_rule_serve_static_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_serve_static_request.py b/quantcdn/models/v2_rule_serve_static_request.py index e3c60cc8..39f22d09 100644 --- a/quantcdn/models/v2_rule_serve_static_request.py +++ b/quantcdn/models/v2_rule_serve_static_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_secret_store.py b/quantcdn/models/v2_secret_store.py index 14646728..73e40562 100644 --- a/quantcdn/models/v2_secret_store.py +++ b/quantcdn/models/v2_secret_store.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_secret_store_request.py b/quantcdn/models/v2_secret_store_request.py index 69758333..28581394 100644 --- a/quantcdn/models/v2_secret_store_request.py +++ b/quantcdn/models/v2_secret_store_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store.py b/quantcdn/models/v2_store.py index 00e6fe96..9e1b7cd6 100644 --- a/quantcdn/models/v2_store.py +++ b/quantcdn/models/v2_store.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store_item.py b/quantcdn/models/v2_store_item.py index 76aa1f9c..ddac216d 100644 --- a/quantcdn/models/v2_store_item.py +++ b/quantcdn/models/v2_store_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store_item_request.py b/quantcdn/models/v2_store_item_request.py index ccbb79ae..b4445e0d 100644 --- a/quantcdn/models/v2_store_item_request.py +++ b/quantcdn/models/v2_store_item_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store_item_update_request.py b/quantcdn/models/v2_store_item_update_request.py index 7f5b065b..d8f780eb 100644 --- a/quantcdn/models/v2_store_item_update_request.py +++ b/quantcdn/models/v2_store_item_update_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store_items_list_response.py b/quantcdn/models/v2_store_items_list_response.py index 9e23811a..808270bc 100644 --- a/quantcdn/models/v2_store_items_list_response.py +++ b/quantcdn/models/v2_store_items_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store_request.py b/quantcdn/models/v2_store_request.py index 98c502d3..5fc5ce95 100644 --- a/quantcdn/models/v2_store_request.py +++ b/quantcdn/models/v2_store_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/validate_compose200_response.py b/quantcdn/models/validate_compose200_response.py index 96a018a1..165ee3eb 100644 --- a/quantcdn/models/validate_compose200_response.py +++ b/quantcdn/models/validate_compose200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/validate_compose422_response.py b/quantcdn/models/validate_compose422_response.py index 9263ca98..254ca7fb 100644 --- a/quantcdn/models/validate_compose422_response.py +++ b/quantcdn/models/validate_compose422_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/validate_compose_request.py b/quantcdn/models/validate_compose_request.py index 70b35b31..6fdd3bc5 100644 --- a/quantcdn/models/validate_compose_request.py +++ b/quantcdn/models/validate_compose_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/variable.py b/quantcdn/models/variable.py index 3d7fa60b..313d250e 100644 --- a/quantcdn/models/variable.py +++ b/quantcdn/models/variable.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/volume.py b/quantcdn/models/volume.py index cff9691b..c8f6f2ba 100644 --- a/quantcdn/models/volume.py +++ b/quantcdn/models/volume.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/waf_config.py b/quantcdn/models/waf_config.py index e783fd75..d67d39d2 100644 --- a/quantcdn/models/waf_config.py +++ b/quantcdn/models/waf_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/waf_config_block_lists.py b/quantcdn/models/waf_config_block_lists.py index a7e75056..84f23615 100644 --- a/quantcdn/models/waf_config_block_lists.py +++ b/quantcdn/models/waf_config_block_lists.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/waf_config_httpbl.py b/quantcdn/models/waf_config_httpbl.py index 153ee110..d3fed9bd 100644 --- a/quantcdn/models/waf_config_httpbl.py +++ b/quantcdn/models/waf_config_httpbl.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/waf_config_thresholds_inner.py b/quantcdn/models/waf_config_thresholds_inner.py index 6b743d6f..2cb69292 100644 --- a/quantcdn/models/waf_config_thresholds_inner.py +++ b/quantcdn/models/waf_config_thresholds_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/rest.py b/quantcdn/rest.py index 168d5781..9269c3dd 100644 --- a/quantcdn/rest.py +++ b/quantcdn/rest.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/setup.py b/setup.py index 3165972d..5e8461b2 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "quantcdn-client" -VERSION = "4.8.0" +VERSION = "4.9.0" PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", diff --git a/test/test_ai_agents_api.py b/test/test_ai_agents_api.py index 0973a781..32c0d6ab 100644 --- a/test/test_ai_agents_api.py +++ b/test/test_ai_agents_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_custom_tools_api.py b/test/test_ai_custom_tools_api.py index 48949606..ccc184ad 100644 --- a/test/test_ai_custom_tools_api.py +++ b/test/test_ai_custom_tools_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_file_storage_api.py b/test/test_ai_file_storage_api.py new file mode 100644 index 00000000..ca714edd --- /dev/null +++ b/test/test_ai_file_storage_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.api.ai_file_storage_api import AIFileStorageApi + + +class TestAIFileStorageApi(unittest.TestCase): + """AIFileStorageApi unit test stubs""" + + def setUp(self) -> None: + self.api = AIFileStorageApi() + + def tearDown(self) -> None: + pass + + def test_delete_file(self) -> None: + """Test case for delete_file + + Delete File + """ + pass + + def test_get_file(self) -> None: + """Test case for get_file + + Get File + """ + pass + + def test_list_files(self) -> None: + """Test case for list_files + + List Files + """ + pass + + def test_upload_file(self) -> None: + """Test case for upload_file + + Upload File to S3 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ai_inference_api.py b/test/test_ai_inference_api.py index a2f7cc02..941fd744 100644 --- a/test/test_ai_inference_api.py +++ b/test/test_ai_inference_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -47,6 +47,13 @@ def test_embeddings(self) -> None: """ pass + def test_get_durable_execution_status(self) -> None: + """Test case for get_durable_execution_status + + Get Durable Execution Status + """ + pass + def test_image_generation(self) -> None: """Test case for image_generation @@ -54,6 +61,13 @@ def test_image_generation(self) -> None: """ pass + def test_submit_tool_callback(self) -> None: + """Test case for submit_tool_callback + + Submit Client Tool Results (Callback) + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_ai_models_api.py b/test/test_ai_models_api.py index 800e1f68..9ca78922 100644 --- a/test/test_ai_models_api.py +++ b/test/test_ai_models_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_monitoring_api.py b/test/test_ai_monitoring_api.py index 6730a6ea..d5895901 100644 --- a/test/test_ai_monitoring_api.py +++ b/test/test_ai_monitoring_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_sessions_api.py b/test/test_ai_sessions_api.py index a115ec95..4e888e6a 100644 --- a/test/test_ai_sessions_api.py +++ b/test/test_ai_sessions_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_task_management_api.py b/test/test_ai_task_management_api.py new file mode 100644 index 00000000..0402fb11 --- /dev/null +++ b/test/test_ai_task_management_api.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.api.ai_task_management_api import AITaskManagementApi + + +class TestAITaskManagementApi(unittest.TestCase): + """AITaskManagementApi unit test stubs""" + + def setUp(self) -> None: + self.api = AITaskManagementApi() + + def tearDown(self) -> None: + pass + + def test_create_task(self) -> None: + """Test case for create_task + + Create a new task + """ + pass + + def test_delete_task(self) -> None: + """Test case for delete_task + + Delete a task + """ + pass + + def test_get_dependency_graph(self) -> None: + """Test case for get_dependency_graph + + Get dependency graph for a task list + """ + pass + + def test_get_task(self) -> None: + """Test case for get_task + + Get task details + """ + pass + + def test_list_tasks(self) -> None: + """Test case for list_tasks + + List tasks with optional filtering + """ + pass + + def test_update_task(self) -> None: + """Test case for update_task + + Update a task + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ai_tools_api.py b/test/test_ai_tools_api.py index 653c8da1..7cae8020 100644 --- a/test/test_ai_tools_api.py +++ b/test/test_ai_tools_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,6 +26,13 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_get_ai_orchestration_status(self) -> None: + """Test case for get_ai_orchestration_status + + Get Orchestration Status + """ + pass + def test_get_ai_tool_execution_status(self) -> None: """Test case for get_ai_tool_execution_status diff --git a/test/test_ai_vector_database_api.py b/test/test_ai_vector_database_api.py index d30a0671..ca10ff62 100644 --- a/test/test_ai_vector_database_api.py +++ b/test/test_ai_vector_database_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_application.py b/test/test_application.py index c571143e..0d6e55a3 100644 --- a/test/test_application.py +++ b/test/test_application.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_application_database.py b/test/test_application_database.py index a511ec01..60d5873e 100644 --- a/test/test_application_database.py +++ b/test/test_application_database.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_application_deployment_information_inner.py b/test/test_application_deployment_information_inner.py index b2f66134..70862aa0 100644 --- a/test/test_application_deployment_information_inner.py +++ b/test/test_application_deployment_information_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_application_environments_inner.py b/test/test_application_environments_inner.py index cf6b929c..0cb50a83 100644 --- a/test/test_application_environments_inner.py +++ b/test/test_application_environments_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_application_filesystem.py b/test/test_application_filesystem.py index 8f939322..74ee292b 100644 --- a/test/test_application_filesystem.py +++ b/test/test_application_filesystem.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_application_image_reference.py b/test/test_application_image_reference.py index dd5688bf..6309ed5d 100644 --- a/test/test_application_image_reference.py +++ b/test/test_application_image_reference.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_applications_api.py b/test/test_applications_api.py index 32160c76..1ee18a92 100644 --- a/test/test_applications_api.py +++ b/test/test_applications_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_backup_management_api.py b/test/test_backup_management_api.py index b6a52709..c0d7a924 100644 --- a/test/test_backup_management_api.py +++ b/test/test_backup_management_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_bulk_set_environment_variables_request.py b/test/test_bulk_set_environment_variables_request.py index 84e28705..7adeebd4 100644 --- a/test/test_bulk_set_environment_variables_request.py +++ b/test/test_bulk_set_environment_variables_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_bulk_set_environment_variables_request_environment_inner.py b/test/test_bulk_set_environment_variables_request_environment_inner.py index e1524555..afbf444e 100644 --- a/test/test_bulk_set_environment_variables_request_environment_inner.py +++ b/test/test_bulk_set_environment_variables_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response.py b/test/test_chat_inference200_response.py index f6561a85..1eff6082 100644 --- a/test/test_chat_inference200_response.py +++ b/test/test_chat_inference200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_response.py b/test/test_chat_inference200_response_response.py index 14687317..14f627a8 100644 --- a/test/test_chat_inference200_response_response.py +++ b/test/test_chat_inference200_response_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_response_tool_use.py b/test/test_chat_inference200_response_response_tool_use.py index 07e9dddd..39b66525 100644 --- a/test/test_chat_inference200_response_response_tool_use.py +++ b/test/test_chat_inference200_response_response_tool_use.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_response_tool_use_one_of.py b/test/test_chat_inference200_response_response_tool_use_one_of.py index ae2322f8..7996fd6a 100644 --- a/test/test_chat_inference200_response_response_tool_use_one_of.py +++ b/test/test_chat_inference200_response_response_tool_use_one_of.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_response_tool_use_one_of1_inner.py b/test/test_chat_inference200_response_response_tool_use_one_of1_inner.py index bbfce664..1e496968 100644 --- a/test/test_chat_inference200_response_response_tool_use_one_of1_inner.py +++ b/test/test_chat_inference200_response_response_tool_use_one_of1_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_response_tool_use_one_of_result.py b/test/test_chat_inference200_response_response_tool_use_one_of_result.py index 305affa2..f25cb3d9 100644 --- a/test/test_chat_inference200_response_response_tool_use_one_of_result.py +++ b/test/test_chat_inference200_response_response_tool_use_one_of_result.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_usage.py b/test/test_chat_inference200_response_usage.py index 22c63ba1..92a6ce4d 100644 --- a/test/test_chat_inference200_response_usage.py +++ b/test/test_chat_inference200_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference202_response.py b/test/test_chat_inference202_response.py new file mode 100644 index 00000000..3bea1ecc --- /dev/null +++ b/test/test_chat_inference202_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.chat_inference202_response import ChatInference202Response + +class TestChatInference202Response(unittest.TestCase): + """ChatInference202Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ChatInference202Response: + """Test ChatInference202Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ChatInference202Response` + """ + model = ChatInference202Response() + if include_optional: + return ChatInference202Response( + request_id = 'XkdVWiEfSwMEPrw=', + session_id = 'session-1769056496430', + status = 'queued', + message = 'Execution started. Poll the status endpoint for updates.', + poll_url = '/ai/chat/executions/XkdVWiEfSwMEPrw%3D' + ) + else: + return ChatInference202Response( + request_id = 'XkdVWiEfSwMEPrw=', + status = 'queued', + poll_url = '/ai/chat/executions/XkdVWiEfSwMEPrw%3D', + ) + """ + + def testChatInference202Response(self): + """Test ChatInference202Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_chat_inference_request.py b/test/test_chat_inference_request.py index 6042bc84..af5dcbcb 100644 --- a/test/test_chat_inference_request.py +++ b/test/test_chat_inference_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -64,7 +64,9 @@ def make_instance(self, include_optional) -> ChatInferenceRequest: auto_execute = True, allowed_tools = [ '' - ], ) + ], ), + session_id = '', + var_async = True ) else: return ChatInferenceRequest( diff --git a/test/test_chat_inference_request_messages_inner.py b/test/test_chat_inference_request_messages_inner.py index b7954c4b..7fc04d9a 100644 --- a/test/test_chat_inference_request_messages_inner.py +++ b/test/test_chat_inference_request_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content.py b/test/test_chat_inference_request_messages_inner_content.py index e00614ca..1eeee407 100644 --- a/test/test_chat_inference_request_messages_inner_content.py +++ b/test/test_chat_inference_request_messages_inner_content.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner.py index 88fd5918..14d36e43 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of.py index b88784cd..5bc64414 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1.py index 90cf6ab8..deec9cf2 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py index feaa9c8b..1bba4d3f 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py index 19517899..78babc52 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2.py index 2afa7060..2d6cc947 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py index 6cadb954..8f37d1b9 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py index 4884d825..1a6bac4f 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3.py index 0f27db2b..b02c9d71 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py index 6f5f5f9f..0f3c5f62 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py index fcb853ff..405e8d62 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_response_format.py b/test/test_chat_inference_request_response_format.py index c5341592..603b8d06 100644 --- a/test/test_chat_inference_request_response_format.py +++ b/test/test_chat_inference_request_response_format.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_tool_config.py b/test/test_chat_inference_request_tool_config.py index 64176c30..f5d13e3b 100644 --- a/test/test_chat_inference_request_tool_config.py +++ b/test/test_chat_inference_request_tool_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_tool_config_tools_inner.py b/test/test_chat_inference_request_tool_config_tools_inner.py index dd324f83..a43b828d 100644 --- a/test/test_chat_inference_request_tool_config_tools_inner.py +++ b/test/test_chat_inference_request_tool_config_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_tool_config_tools_inner_tool_spec.py b/test/test_chat_inference_request_tool_config_tools_inner_tool_spec.py index 89312c24..a9d4b2e0 100644 --- a/test/test_chat_inference_request_tool_config_tools_inner_tool_spec.py +++ b/test/test_chat_inference_request_tool_config_tools_inner_tool_spec.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py b/test/test_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py index c0ed683e..cdcd594e 100644 --- a/test/test_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py +++ b/test/test_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_stream_request.py b/test/test_chat_inference_stream_request.py index e7b7ec25..e548f590 100644 --- a/test/test_chat_inference_stream_request.py +++ b/test/test_chat_inference_stream_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -63,7 +63,9 @@ def make_instance(self, include_optional) -> ChatInferenceStreamRequest: auto_execute = True, allowed_tools = [ '' - ], ) + ], ), + session_id = '', + var_async = True ) else: return ChatInferenceStreamRequest( diff --git a/test/test_chat_inference_stream_request_messages_inner.py b/test/test_chat_inference_stream_request_messages_inner.py index 1038c4bf..b0d58a7c 100644 --- a/test/test_chat_inference_stream_request_messages_inner.py +++ b/test/test_chat_inference_stream_request_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_stream_request_messages_inner_content.py b/test/test_chat_inference_stream_request_messages_inner_content.py index 42009511..b1e717eb 100644 --- a/test/test_chat_inference_stream_request_messages_inner_content.py +++ b/test/test_chat_inference_stream_request_messages_inner_content.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_with_ai_agent200_response.py b/test/test_chat_with_ai_agent200_response.py index b69f2b9c..ab9aa261 100644 --- a/test/test_chat_with_ai_agent200_response.py +++ b/test/test_chat_with_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_with_ai_agent200_response_response.py b/test/test_chat_with_ai_agent200_response_response.py index 89432ec6..3ede8088 100644 --- a/test/test_chat_with_ai_agent200_response_response.py +++ b/test/test_chat_with_ai_agent200_response_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_with_ai_agent200_response_response_usage.py b/test/test_chat_with_ai_agent200_response_response_usage.py index 97fd12eb..ca867d65 100644 --- a/test/test_chat_with_ai_agent200_response_response_usage.py +++ b/test/test_chat_with_ai_agent200_response_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_with_ai_agent202_response.py b/test/test_chat_with_ai_agent202_response.py new file mode 100644 index 00000000..b283fde6 --- /dev/null +++ b/test/test_chat_with_ai_agent202_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.chat_with_ai_agent202_response import ChatWithAIAgent202Response + +class TestChatWithAIAgent202Response(unittest.TestCase): + """ChatWithAIAgent202Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ChatWithAIAgent202Response: + """Test ChatWithAIAgent202Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ChatWithAIAgent202Response` + """ + model = ChatWithAIAgent202Response() + if include_optional: + return ChatWithAIAgent202Response( + request_id = '90fe0c53-a41b-4b28-b19e-5e900b3df959', + agent_id = '', + agent_name = 'Weather Assistant', + session_id = '', + status = 'queued', + message = 'Agent execution started. Poll the status endpoint for updates.', + poll_url = '/ai/chat/executions/90fe0c53-a41b-4b28-b19e-5e900b3df959' + ) + else: + return ChatWithAIAgent202Response( + request_id = '90fe0c53-a41b-4b28-b19e-5e900b3df959', + agent_id = '', + status = 'queued', + poll_url = '/ai/chat/executions/90fe0c53-a41b-4b28-b19e-5e900b3df959', + ) + """ + + def testChatWithAIAgent202Response(self): + """Test ChatWithAIAgent202Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_chat_with_ai_agent_request.py b/test/test_chat_with_ai_agent_request.py index 003c2a3d..1d4f3d02 100644 --- a/test/test_chat_with_ai_agent_request.py +++ b/test/test_chat_with_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,7 +38,9 @@ def make_instance(self, include_optional) -> ChatWithAIAgentRequest: message = '', session_id = '', user_id = '', - stream = True + stream = True, + var_async = True, + system = '' ) else: return ChatWithAIAgentRequest( diff --git a/test/test_command.py b/test/test_command.py index c5bb8a64..977434e0 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_commands_api.py b/test/test_commands_api.py index e73d52d5..c44678ce 100644 --- a/test/test_commands_api.py +++ b/test/test_commands_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_compose.py b/test/test_compose.py index 3a870e19..254737b9 100644 --- a/test/test_compose.py +++ b/test/test_compose.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_compose_api.py b/test/test_compose_api.py index d993ed06..271cd8aa 100644 --- a/test/test_compose_api.py +++ b/test/test_compose_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container.py b/test/test_container.py index ffbe03a4..26ef7b3b 100644 --- a/test/test_container.py +++ b/test/test_container.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_depends_on_inner.py b/test/test_container_depends_on_inner.py index 00b0d424..82fc066b 100644 --- a/test/test_container_depends_on_inner.py +++ b/test/test_container_depends_on_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_environment_inner.py b/test/test_container_environment_inner.py index ec597ec8..3e42d17d 100644 --- a/test/test_container_environment_inner.py +++ b/test/test_container_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_health_check.py b/test/test_container_health_check.py index c0f2d371..8b53e5ad 100644 --- a/test/test_container_health_check.py +++ b/test/test_container_health_check.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_image_reference.py b/test/test_container_image_reference.py index b38a34af..b9e44885 100644 --- a/test/test_container_image_reference.py +++ b/test/test_container_image_reference.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_mount_points_inner.py b/test/test_container_mount_points_inner.py index d21aaf30..1189cf7d 100644 --- a/test/test_container_mount_points_inner.py +++ b/test/test_container_mount_points_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_origin_protection_config.py b/test/test_container_origin_protection_config.py index 1c3cca36..19b4c4b9 100644 --- a/test/test_container_origin_protection_config.py +++ b/test/test_container_origin_protection_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_secrets_inner.py b/test/test_container_secrets_inner.py index 2f18d493..d97081e6 100644 --- a/test/test_container_secrets_inner.py +++ b/test/test_container_secrets_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_containers_api.py b/test/test_containers_api.py index bc4630d1..7d24ed18 100644 --- a/test/test_containers_api.py +++ b/test/test_containers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_crawler_schedules_api.py b/test/test_crawler_schedules_api.py index 544243c7..13351645 100644 --- a/test/test_crawler_schedules_api.py +++ b/test/test_crawler_schedules_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_crawlers_api.py b/test/test_crawlers_api.py index 5f895702..625fb898 100644 --- a/test/test_crawlers_api.py +++ b/test/test_crawlers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_crawlers_run200_response.py b/test/test_crawlers_run200_response.py index d6038a79..71059749 100644 --- a/test/test_crawlers_run200_response.py +++ b/test/test_crawlers_run200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_crawlers_run_request.py b/test/test_crawlers_run_request.py index dda53a3b..739cecba 100644 --- a/test/test_crawlers_run_request.py +++ b/test/test_crawlers_run_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_ai_agent201_response.py b/test/test_create_ai_agent201_response.py index 34c54890..3187c252 100644 --- a/test/test_create_ai_agent201_response.py +++ b/test/test_create_ai_agent201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_ai_agent_request.py b/test/test_create_ai_agent_request.py index 885e60a8..cd55b39d 100644 --- a/test/test_create_ai_agent_request.py +++ b/test/test_create_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_ai_session201_response.py b/test/test_create_ai_session201_response.py index fa4e95b8..d41f6a89 100644 --- a/test/test_create_ai_session201_response.py +++ b/test/test_create_ai_session201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_ai_session_request.py b/test/test_create_ai_session_request.py index df5c9cff..4c02ba88 100644 --- a/test/test_create_ai_session_request.py +++ b/test/test_create_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_ai_session_request_initial_messages_inner.py b/test/test_create_ai_session_request_initial_messages_inner.py index c06af227..bdd58c2b 100644 --- a/test/test_create_ai_session_request_initial_messages_inner.py +++ b/test/test_create_ai_session_request_initial_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_application403_response.py b/test/test_create_application403_response.py index 91eef0c4..f409086a 100644 --- a/test/test_create_application403_response.py +++ b/test/test_create_application403_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_application_request.py b/test/test_create_application_request.py index 508f1988..e1a6d9bf 100644 --- a/test/test_create_application_request.py +++ b/test/test_create_application_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_application_request_database.py b/test/test_create_application_request_database.py index 5b0d99ab..03cc5cad 100644 --- a/test/test_create_application_request_database.py +++ b/test/test_create_application_request_database.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_application_request_environment_inner.py b/test/test_create_application_request_environment_inner.py index 2788ea60..322854d6 100644 --- a/test/test_create_application_request_environment_inner.py +++ b/test/test_create_application_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_application_request_filesystem.py b/test/test_create_application_request_filesystem.py index c1aecc5d..98b66bb8 100644 --- a/test/test_create_application_request_filesystem.py +++ b/test/test_create_application_request_filesystem.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_backup202_response.py b/test/test_create_backup202_response.py index 3cfc984d..b0ca2307 100644 --- a/test/test_create_backup202_response.py +++ b/test/test_create_backup202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_backup_request.py b/test/test_create_backup_request.py index 7ad2e656..7c2e24b7 100644 --- a/test/test_create_backup_request.py +++ b/test/test_create_backup_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_command_request.py b/test/test_create_command_request.py index 29e2979a..221f2b76 100644 --- a/test/test_create_command_request.py +++ b/test/test_create_command_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_cron_job_request.py b/test/test_create_cron_job_request.py index 86725d03..3922166f 100644 --- a/test/test_create_cron_job_request.py +++ b/test/test_create_cron_job_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_custom_tool201_response.py b/test/test_create_custom_tool201_response.py index dab2fb04..9d9ed488 100644 --- a/test/test_create_custom_tool201_response.py +++ b/test/test_create_custom_tool201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_custom_tool_request.py b/test/test_create_custom_tool_request.py index 6f1301a5..babba144 100644 --- a/test/test_create_custom_tool_request.py +++ b/test/test_create_custom_tool_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_environment403_response.py b/test/test_create_environment403_response.py index 387bdffc..94cb8915 100644 --- a/test/test_create_environment403_response.py +++ b/test/test_create_environment403_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_environment_request.py b/test/test_create_environment_request.py index 4962a185..c227484a 100644 --- a/test/test_create_environment_request.py +++ b/test/test_create_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_environment_request_environment_inner.py b/test/test_create_environment_request_environment_inner.py index eb118eba..e75388f9 100644 --- a/test/test_create_environment_request_environment_inner.py +++ b/test/test_create_environment_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_task201_response.py b/test/test_create_task201_response.py new file mode 100644 index 00000000..41cf7b3e --- /dev/null +++ b/test/test_create_task201_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.create_task201_response import CreateTask201Response + +class TestCreateTask201Response(unittest.TestCase): + """CreateTask201Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateTask201Response: + """Test CreateTask201Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateTask201Response` + """ + model = CreateTask201Response() + if include_optional: + return CreateTask201Response( + task_id = '', + org_id = '', + title = '', + status = '', + created_at = 56 + ) + else: + return CreateTask201Response( + ) + """ + + def testCreateTask201Response(self): + """Test CreateTask201Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_task_request.py b/test/test_create_task_request.py new file mode 100644 index 00000000..d62ccc19 --- /dev/null +++ b/test/test_create_task_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.create_task_request import CreateTaskRequest + +class TestCreateTaskRequest(unittest.TestCase): + """CreateTaskRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateTaskRequest: + """Test CreateTaskRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateTaskRequest` + """ + model = CreateTaskRequest() + if include_optional: + return CreateTaskRequest( + title = 'Process document and create summary', + description = 'Extract text from PDF, analyze content, and generate executive summary', + task_list_id = 'world-1', + status = 'pending', + assigned_agent_id = 'agent-code-reviewer', + created_by_agent_id = 'agent-coordinator', + depends_on = ["550e8400-e29b-41d4-a716-446655440000"], + metadata = {"priority":"high","tags":["document-processing"],"workflow":"document-pipeline"}, + max_retries = 0, + blocked_reason = 'Waiting for approval', + blocked_by_task_ids = [ + '' + ] + ) + else: + return CreateTaskRequest( + title = 'Process document and create summary', + ) + """ + + def testCreateTaskRequest(self): + """Test CreateTaskRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_vector_collection201_response.py b/test/test_create_vector_collection201_response.py index cf6cdf61..425118cf 100644 --- a/test/test_create_vector_collection201_response.py +++ b/test/test_create_vector_collection201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_vector_collection201_response_collection.py b/test/test_create_vector_collection201_response_collection.py index 657b2168..7e55f46b 100644 --- a/test/test_create_vector_collection201_response_collection.py +++ b/test/test_create_vector_collection201_response_collection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_vector_collection_request.py b/test/test_create_vector_collection_request.py index 8b5b4479..3ece7cbf 100644 --- a/test/test_create_vector_collection_request.py +++ b/test/test_create_vector_collection_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_volume_request.py b/test/test_create_volume_request.py index 4dbc428b..8ca2d344 100644 --- a/test/test_create_volume_request.py +++ b/test/test_create_volume_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_cron.py b/test/test_cron.py index 714ded53..e7e9d4bd 100644 --- a/test/test_cron.py +++ b/test/test_cron.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_cron_api.py b/test/test_cron_api.py index 709f5f9d..e4bdc3cb 100644 --- a/test/test_cron_api.py +++ b/test/test_cron_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_cron_run.py b/test/test_cron_run.py index 91b2d655..601d077e 100644 --- a/test/test_cron_run.py +++ b/test/test_cron_run.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_ai_agent200_response.py b/test/test_delete_ai_agent200_response.py index 163d1c70..e19835af 100644 --- a/test/test_delete_ai_agent200_response.py +++ b/test/test_delete_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_ai_session200_response.py b/test/test_delete_ai_session200_response.py index 391bca0d..ba926cc8 100644 --- a/test/test_delete_ai_session200_response.py +++ b/test/test_delete_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_backup200_response.py b/test/test_delete_backup200_response.py index 26704da0..0062858f 100644 --- a/test/test_delete_backup200_response.py +++ b/test/test_delete_backup200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_custom_tool200_response.py b/test/test_delete_custom_tool200_response.py index 11ec659d..f07d1a7e 100644 --- a/test/test_delete_custom_tool200_response.py +++ b/test/test_delete_custom_tool200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_file200_response.py b/test/test_delete_file200_response.py new file mode 100644 index 00000000..6cb0cbb4 --- /dev/null +++ b/test/test_delete_file200_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.delete_file200_response import DeleteFile200Response + +class TestDeleteFile200Response(unittest.TestCase): + """DeleteFile200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteFile200Response: + """Test DeleteFile200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteFile200Response` + """ + model = DeleteFile200Response() + if include_optional: + return DeleteFile200Response( + message = 'File deleted', + file_id = '' + ) + else: + return DeleteFile200Response( + ) + """ + + def testDeleteFile200Response(self): + """Test DeleteFile200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_delete_task200_response.py b/test/test_delete_task200_response.py new file mode 100644 index 00000000..26037595 --- /dev/null +++ b/test/test_delete_task200_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.delete_task200_response import DeleteTask200Response + +class TestDeleteTask200Response(unittest.TestCase): + """DeleteTask200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteTask200Response: + """Test DeleteTask200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteTask200Response` + """ + model = DeleteTask200Response() + if include_optional: + return DeleteTask200Response( + deleted = True, + deleted_count = 1, + deleted_task_ids = [ + '' + ] + ) + else: + return DeleteTask200Response( + ) + """ + + def testDeleteTask200Response(self): + """Test DeleteTask200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_delete_task409_response.py b/test/test_delete_task409_response.py new file mode 100644 index 00000000..2a1450b5 --- /dev/null +++ b/test/test_delete_task409_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.delete_task409_response import DeleteTask409Response + +class TestDeleteTask409Response(unittest.TestCase): + """DeleteTask409Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteTask409Response: + """Test DeleteTask409Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteTask409Response` + """ + model = DeleteTask409Response() + if include_optional: + return DeleteTask409Response( + error = 'TASK_HAS_DEPENDENTS', + message = 'Cannot delete task with 3 dependent task(s). Use cascade=true to delete all.', + dependent_task_ids = [ + '' + ] + ) + else: + return DeleteTask409Response( + ) + """ + + def testDeleteTask409Response(self): + """Test DeleteTask409Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_delete_vector_collection200_response.py b/test/test_delete_vector_collection200_response.py index bde318a0..65fc64c1 100644 --- a/test/test_delete_vector_collection200_response.py +++ b/test/test_delete_vector_collection200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_domains_api.py b/test/test_domains_api.py index e421a7d1..c971298d 100644 --- a/test/test_domains_api.py +++ b/test/test_domains_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_download_backup200_response.py b/test/test_download_backup200_response.py index 4bbaeda1..88bb40ae 100644 --- a/test/test_download_backup200_response.py +++ b/test/test_download_backup200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_embeddings200_response.py b/test/test_embeddings200_response.py index 6569aba2..99b5f129 100644 --- a/test/test_embeddings200_response.py +++ b/test/test_embeddings200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_embeddings200_response_embeddings.py b/test/test_embeddings200_response_embeddings.py index d30ce728..44d405a8 100644 --- a/test/test_embeddings200_response_embeddings.py +++ b/test/test_embeddings200_response_embeddings.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_embeddings200_response_usage.py b/test/test_embeddings200_response_usage.py index 09b12c20..b8de7f40 100644 --- a/test/test_embeddings200_response_usage.py +++ b/test/test_embeddings200_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_embeddings_request.py b/test/test_embeddings_request.py index a3158f39..510a2c4e 100644 --- a/test/test_embeddings_request.py +++ b/test/test_embeddings_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_embeddings_request_input.py b/test/test_embeddings_request_input.py index d8f5905d..930ae7c5 100644 --- a/test/test_embeddings_request_input.py +++ b/test/test_embeddings_request_input.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_environment.py b/test/test_environment.py index 7d4b67d4..b780cd50 100644 --- a/test/test_environment.py +++ b/test/test_environment.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_environment_response.py b/test/test_environment_response.py index 92fd8df3..f4eaad93 100644 --- a/test/test_environment_response.py +++ b/test/test_environment_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_environment_summary.py b/test/test_environment_summary.py index 9300b8b1..6be0d163 100644 --- a/test/test_environment_summary.py +++ b/test/test_environment_summary.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_environments_api.py b/test/test_environments_api.py index 437b6f88..3ea91b00 100644 --- a/test/test_environments_api.py +++ b/test/test_environments_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_extend_ai_session200_response.py b/test/test_extend_ai_session200_response.py index 4480d66d..2520e301 100644 --- a/test/test_extend_ai_session200_response.py +++ b/test/test_extend_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_extend_ai_session_request.py b/test/test_extend_ai_session_request.py index a31ca8c8..9cb9b590 100644 --- a/test/test_extend_ai_session_request.py +++ b/test/test_extend_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_agent200_response.py b/test/test_get_ai_agent200_response.py index d817ed7a..075d99aa 100644 --- a/test/test_get_ai_agent200_response.py +++ b/test/test_get_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_agent200_response_agent.py b/test/test_get_ai_agent200_response_agent.py index 6b1bf90a..7e42022b 100644 --- a/test/test_get_ai_agent200_response_agent.py +++ b/test/test_get_ai_agent200_response_agent.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_model200_response.py b/test/test_get_ai_model200_response.py index d3b61821..615d8cd0 100644 --- a/test/test_get_ai_model200_response.py +++ b/test/test_get_ai_model200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_model200_response_capabilities.py b/test/test_get_ai_model200_response_capabilities.py index b6ac4f42..90df8111 100644 --- a/test/test_get_ai_model200_response_capabilities.py +++ b/test/test_get_ai_model200_response_capabilities.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_model200_response_pricing.py b/test/test_get_ai_model200_response_pricing.py index 6c95d8fe..20da82df 100644 --- a/test/test_get_ai_model200_response_pricing.py +++ b/test/test_get_ai_model200_response_pricing.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_model404_response.py b/test/test_get_ai_model404_response.py index 2b29073b..2110a3c2 100644 --- a/test/test_get_ai_model404_response.py +++ b/test/test_get_ai_model404_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_orchestration_status200_response.py b/test/test_get_ai_orchestration_status200_response.py new file mode 100644 index 00000000..27e37c69 --- /dev/null +++ b/test/test_get_ai_orchestration_status200_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_ai_orchestration_status200_response import GetAIOrchestrationStatus200Response + +class TestGetAIOrchestrationStatus200Response(unittest.TestCase): + """GetAIOrchestrationStatus200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAIOrchestrationStatus200Response: + """Test GetAIOrchestrationStatus200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAIOrchestrationStatus200Response` + """ + model = GetAIOrchestrationStatus200Response() + if include_optional: + return GetAIOrchestrationStatus200Response( + orchestration_id = 'orch_abc123def456789012345678901234', + status = 'complete', + tool_count = 2, + completed_tools = 2, + synthesized_response = 'Based on the image I generated and the web research...', + tools = [ + quantcdn.models.get_ai_orchestration_status_200_response_tools_inner.getAIOrchestrationStatus_200_response_tools_inner( + execution_id = 'exec_abc123def456', + tool_name = 'generate_image', + status = 'complete', + result = quantcdn.models.result.result(), + error = '', ) + ], + error = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + completed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return GetAIOrchestrationStatus200Response( + orchestration_id = 'orch_abc123def456789012345678901234', + status = 'complete', + tool_count = 2, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ) + """ + + def testGetAIOrchestrationStatus200Response(self): + """Test GetAIOrchestrationStatus200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_ai_orchestration_status200_response_tools_inner.py b/test/test_get_ai_orchestration_status200_response_tools_inner.py new file mode 100644 index 00000000..3d429373 --- /dev/null +++ b/test/test_get_ai_orchestration_status200_response_tools_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_ai_orchestration_status200_response_tools_inner import GetAIOrchestrationStatus200ResponseToolsInner + +class TestGetAIOrchestrationStatus200ResponseToolsInner(unittest.TestCase): + """GetAIOrchestrationStatus200ResponseToolsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAIOrchestrationStatus200ResponseToolsInner: + """Test GetAIOrchestrationStatus200ResponseToolsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAIOrchestrationStatus200ResponseToolsInner` + """ + model = GetAIOrchestrationStatus200ResponseToolsInner() + if include_optional: + return GetAIOrchestrationStatus200ResponseToolsInner( + execution_id = 'exec_abc123def456', + tool_name = 'generate_image', + status = 'complete', + result = None, + error = '' + ) + else: + return GetAIOrchestrationStatus200ResponseToolsInner( + ) + """ + + def testGetAIOrchestrationStatus200ResponseToolsInner(self): + """Test GetAIOrchestrationStatus200ResponseToolsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_ai_orchestration_status404_response.py b/test/test_get_ai_orchestration_status404_response.py new file mode 100644 index 00000000..15756ba8 --- /dev/null +++ b/test/test_get_ai_orchestration_status404_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_ai_orchestration_status404_response import GetAIOrchestrationStatus404Response + +class TestGetAIOrchestrationStatus404Response(unittest.TestCase): + """GetAIOrchestrationStatus404Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAIOrchestrationStatus404Response: + """Test GetAIOrchestrationStatus404Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAIOrchestrationStatus404Response` + """ + model = GetAIOrchestrationStatus404Response() + if include_optional: + return GetAIOrchestrationStatus404Response( + error = 'Orchestration not found', + orchestration_id = 'orch_abc123def456789012345678901234' + ) + else: + return GetAIOrchestrationStatus404Response( + ) + """ + + def testGetAIOrchestrationStatus404Response(self): + """Test GetAIOrchestrationStatus404Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_ai_session200_response.py b/test/test_get_ai_session200_response.py index 75325902..b5ae658f 100644 --- a/test/test_get_ai_session200_response.py +++ b/test/test_get_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_tool_execution_status200_response.py b/test/test_get_ai_tool_execution_status200_response.py index b5e5d606..5cc39834 100644 --- a/test/test_get_ai_tool_execution_status200_response.py +++ b/test/test_get_ai_tool_execution_status200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_tool_execution_status200_response_result.py b/test/test_get_ai_tool_execution_status200_response_result.py index ef1ff9b0..85444fcc 100644 --- a/test/test_get_ai_tool_execution_status200_response_result.py +++ b/test/test_get_ai_tool_execution_status200_response_result.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_tool_execution_status404_response.py b/test/test_get_ai_tool_execution_status404_response.py index 00b3cfab..58010315 100644 --- a/test/test_get_ai_tool_execution_status404_response.py +++ b/test/test_get_ai_tool_execution_status404_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_usage_stats200_response.py b/test/test_get_ai_usage_stats200_response.py index 8116468d..1985b819 100644 --- a/test/test_get_ai_usage_stats200_response.py +++ b/test/test_get_ai_usage_stats200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_usage_stats200_response_by_model_value.py b/test/test_get_ai_usage_stats200_response_by_model_value.py index e264dc3f..8bbf1fd0 100644 --- a/test/test_get_ai_usage_stats200_response_by_model_value.py +++ b/test/test_get_ai_usage_stats200_response_by_model_value.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_dependency_graph200_response.py b/test/test_get_dependency_graph200_response.py new file mode 100644 index 00000000..c39900ce --- /dev/null +++ b/test/test_get_dependency_graph200_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_dependency_graph200_response import GetDependencyGraph200Response + +class TestGetDependencyGraph200Response(unittest.TestCase): + """GetDependencyGraph200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetDependencyGraph200Response: + """Test GetDependencyGraph200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetDependencyGraph200Response` + """ + model = GetDependencyGraph200Response() + if include_optional: + return GetDependencyGraph200Response( + task_list_id = 'world-1', + task_count = 4, + roots = [ + '' + ], + leaves = [ + '' + ], + graph = None + ) + else: + return GetDependencyGraph200Response( + ) + """ + + def testGetDependencyGraph200Response(self): + """Test GetDependencyGraph200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_durable_execution_status200_response.py b/test/test_get_durable_execution_status200_response.py new file mode 100644 index 00000000..37b8fef4 --- /dev/null +++ b/test/test_get_durable_execution_status200_response.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_durable_execution_status200_response import GetDurableExecutionStatus200Response + +class TestGetDurableExecutionStatus200Response(unittest.TestCase): + """GetDurableExecutionStatus200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetDurableExecutionStatus200Response: + """Test GetDurableExecutionStatus200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetDurableExecutionStatus200Response` + """ + model = GetDurableExecutionStatus200Response() + if include_optional: + return GetDurableExecutionStatus200Response( + request_id = 'XkdVWiEfSwMEPrw=', + execution_arn = 'arn:aws:lambda:ap-southeast-2:...', + status = 'complete', + aws_status = 'SUCCEEDED', + callback_id = 'Ab9hZXi/YXJuOmF3czpsYW1iZGE...', + pending_tools = [ + quantcdn.models.get_durable_execution_status_200_response_pending_tools_inner.getDurableExecutionStatus_200_response_pendingTools_inner( + name = 'get_weather', + tool_use_id = 'toolu_bdrk_012KTC8NCG...', + input = {"location":"Sydney"}, ) + ], + result = quantcdn.models.get_durable_execution_status_200_response_result.getDurableExecutionStatus_200_response_result( + response = quantcdn.models.get_durable_execution_status_200_response_result_response.getDurableExecutionStatus_200_response_result_response( + role = 'assistant', + content = 'The weather in Sydney is sunny.', ), + usage = quantcdn.models.get_durable_execution_status_200_response_result_usage.getDurableExecutionStatus_200_response_result_usage( + input_tokens = 56, + output_tokens = 56, + total_tokens = 56, ), + tool_executions = [ + None + ], ), + error = quantcdn.models.get_durable_execution_status_200_response_error.getDurableExecutionStatus_200_response_error( + error_message = '', + error_type = '', ) + ) + else: + return GetDurableExecutionStatus200Response( + ) + """ + + def testGetDurableExecutionStatus200Response(self): + """Test GetDurableExecutionStatus200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_durable_execution_status200_response_error.py b/test/test_get_durable_execution_status200_response_error.py new file mode 100644 index 00000000..52428959 --- /dev/null +++ b/test/test_get_durable_execution_status200_response_error.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_durable_execution_status200_response_error import GetDurableExecutionStatus200ResponseError + +class TestGetDurableExecutionStatus200ResponseError(unittest.TestCase): + """GetDurableExecutionStatus200ResponseError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetDurableExecutionStatus200ResponseError: + """Test GetDurableExecutionStatus200ResponseError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetDurableExecutionStatus200ResponseError` + """ + model = GetDurableExecutionStatus200ResponseError() + if include_optional: + return GetDurableExecutionStatus200ResponseError( + error_message = '', + error_type = '' + ) + else: + return GetDurableExecutionStatus200ResponseError( + ) + """ + + def testGetDurableExecutionStatus200ResponseError(self): + """Test GetDurableExecutionStatus200ResponseError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_durable_execution_status200_response_pending_tools_inner.py b/test/test_get_durable_execution_status200_response_pending_tools_inner.py new file mode 100644 index 00000000..093faeb7 --- /dev/null +++ b/test/test_get_durable_execution_status200_response_pending_tools_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_durable_execution_status200_response_pending_tools_inner import GetDurableExecutionStatus200ResponsePendingToolsInner + +class TestGetDurableExecutionStatus200ResponsePendingToolsInner(unittest.TestCase): + """GetDurableExecutionStatus200ResponsePendingToolsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetDurableExecutionStatus200ResponsePendingToolsInner: + """Test GetDurableExecutionStatus200ResponsePendingToolsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetDurableExecutionStatus200ResponsePendingToolsInner` + """ + model = GetDurableExecutionStatus200ResponsePendingToolsInner() + if include_optional: + return GetDurableExecutionStatus200ResponsePendingToolsInner( + name = 'get_weather', + tool_use_id = 'toolu_bdrk_012KTC8NCG...', + input = {"location":"Sydney"} + ) + else: + return GetDurableExecutionStatus200ResponsePendingToolsInner( + ) + """ + + def testGetDurableExecutionStatus200ResponsePendingToolsInner(self): + """Test GetDurableExecutionStatus200ResponsePendingToolsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_durable_execution_status200_response_result.py b/test/test_get_durable_execution_status200_response_result.py new file mode 100644 index 00000000..de27299d --- /dev/null +++ b/test/test_get_durable_execution_status200_response_result.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_durable_execution_status200_response_result import GetDurableExecutionStatus200ResponseResult + +class TestGetDurableExecutionStatus200ResponseResult(unittest.TestCase): + """GetDurableExecutionStatus200ResponseResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetDurableExecutionStatus200ResponseResult: + """Test GetDurableExecutionStatus200ResponseResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetDurableExecutionStatus200ResponseResult` + """ + model = GetDurableExecutionStatus200ResponseResult() + if include_optional: + return GetDurableExecutionStatus200ResponseResult( + response = quantcdn.models.get_durable_execution_status_200_response_result_response.getDurableExecutionStatus_200_response_result_response( + role = 'assistant', + content = 'The weather in Sydney is sunny.', ), + usage = quantcdn.models.get_durable_execution_status_200_response_result_usage.getDurableExecutionStatus_200_response_result_usage( + input_tokens = 56, + output_tokens = 56, + total_tokens = 56, ), + tool_executions = [ + None + ] + ) + else: + return GetDurableExecutionStatus200ResponseResult( + ) + """ + + def testGetDurableExecutionStatus200ResponseResult(self): + """Test GetDurableExecutionStatus200ResponseResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_durable_execution_status200_response_result_response.py b/test/test_get_durable_execution_status200_response_result_response.py new file mode 100644 index 00000000..b1e34e1a --- /dev/null +++ b/test/test_get_durable_execution_status200_response_result_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_durable_execution_status200_response_result_response import GetDurableExecutionStatus200ResponseResultResponse + +class TestGetDurableExecutionStatus200ResponseResultResponse(unittest.TestCase): + """GetDurableExecutionStatus200ResponseResultResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetDurableExecutionStatus200ResponseResultResponse: + """Test GetDurableExecutionStatus200ResponseResultResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetDurableExecutionStatus200ResponseResultResponse` + """ + model = GetDurableExecutionStatus200ResponseResultResponse() + if include_optional: + return GetDurableExecutionStatus200ResponseResultResponse( + role = 'assistant', + content = 'The weather in Sydney is sunny.' + ) + else: + return GetDurableExecutionStatus200ResponseResultResponse( + ) + """ + + def testGetDurableExecutionStatus200ResponseResultResponse(self): + """Test GetDurableExecutionStatus200ResponseResultResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_durable_execution_status200_response_result_usage.py b/test/test_get_durable_execution_status200_response_result_usage.py new file mode 100644 index 00000000..2d89f483 --- /dev/null +++ b/test/test_get_durable_execution_status200_response_result_usage.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_durable_execution_status200_response_result_usage import GetDurableExecutionStatus200ResponseResultUsage + +class TestGetDurableExecutionStatus200ResponseResultUsage(unittest.TestCase): + """GetDurableExecutionStatus200ResponseResultUsage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetDurableExecutionStatus200ResponseResultUsage: + """Test GetDurableExecutionStatus200ResponseResultUsage + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetDurableExecutionStatus200ResponseResultUsage` + """ + model = GetDurableExecutionStatus200ResponseResultUsage() + if include_optional: + return GetDurableExecutionStatus200ResponseResultUsage( + input_tokens = 56, + output_tokens = 56, + total_tokens = 56 + ) + else: + return GetDurableExecutionStatus200ResponseResultUsage( + ) + """ + + def testGetDurableExecutionStatus200ResponseResultUsage(self): + """Test GetDurableExecutionStatus200ResponseResultUsage""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_ecr_login_credentials200_response.py b/test/test_get_ecr_login_credentials200_response.py index daccbe4e..248e1960 100644 --- a/test/test_get_ecr_login_credentials200_response.py +++ b/test/test_get_ecr_login_credentials200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_environment_logs200_response.py b/test/test_get_environment_logs200_response.py index 5a76865a..ec6bd18d 100644 --- a/test/test_get_environment_logs200_response.py +++ b/test/test_get_environment_logs200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_environment_logs200_response_log_events_inner.py b/test/test_get_environment_logs200_response_log_events_inner.py index 01715237..3187a8e6 100644 --- a/test/test_get_environment_logs200_response_log_events_inner.py +++ b/test/test_get_environment_logs200_response_log_events_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_file200_response.py b/test/test_get_file200_response.py new file mode 100644 index 00000000..d09cf11d --- /dev/null +++ b/test/test_get_file200_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_file200_response import GetFile200Response + +class TestGetFile200Response(unittest.TestCase): + """GetFile200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetFile200Response: + """Test GetFile200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetFile200Response` + """ + model = GetFile200Response() + if include_optional: + return GetFile200Response( + file_id = '', + s3_uri = '', + url = '', + filename = '', + content_type = '', + size = 56, + metadata = None, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return GetFile200Response( + ) + """ + + def testGetFile200Response(self): + """Test GetFile200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_ssh_access_credentials200_response.py b/test/test_get_ssh_access_credentials200_response.py index d783514c..2fa73589 100644 --- a/test/test_get_ssh_access_credentials200_response.py +++ b/test/test_get_ssh_access_credentials200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ssh_access_credentials200_response_credentials.py b/test/test_get_ssh_access_credentials200_response_credentials.py index c27a1a06..01cfa109 100644 --- a/test/test_get_ssh_access_credentials200_response_credentials.py +++ b/test/test_get_ssh_access_credentials200_response_credentials.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_task200_response.py b/test/test_get_task200_response.py new file mode 100644 index 00000000..0c676345 --- /dev/null +++ b/test/test_get_task200_response.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_task200_response import GetTask200Response + +class TestGetTask200Response(unittest.TestCase): + """GetTask200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTask200Response: + """Test GetTask200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTask200Response` + """ + model = GetTask200Response() + if include_optional: + return GetTask200Response( + task_id = '550e8400-e29b-41d4-a716-446655440000', + org_id = 'quant', + task_list_id = 'world-1', + title = 'Process document and create summary', + description = 'Extract text from PDF, analyze content', + status = 'in_progress', + assigned_agent_id = 'agent-123', + created_by_agent_id = 'agent-coordinator', + depends_on = [ + '' + ], + metadata = {"priority":"high"}, + progress = 0.5, + progress_message = 'Extracted text, analyzing content...', + result = None, + error = '', + retry_count = 0, + max_retries = 3, + created_at = 1735689600000, + updated_at = 1735689700000, + started_at = 56, + completed_at = 56, + expires_at = 56, + blocked_reason = '', + blocked_by_task_ids = [ + '' + ], + blocked_at = 56 + ) + else: + return GetTask200Response( + ) + """ + + def testGetTask200Response(self): + """Test GetTask200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_vector_collection200_response.py b/test/test_get_vector_collection200_response.py index 66780094..26f55f35 100644 --- a/test/test_get_vector_collection200_response.py +++ b/test/test_get_vector_collection200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_vector_collection200_response_collection.py b/test/test_get_vector_collection200_response_collection.py index f38f8992..772e4198 100644 --- a/test/test_get_vector_collection200_response_collection.py +++ b/test/test_get_vector_collection200_response_collection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_headers_api.py b/test/test_headers_api.py index e970c759..0d0feee1 100644 --- a/test/test_headers_api.py +++ b/test/test_headers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation200_response.py b/test/test_image_generation200_response.py index 43b1b787..f3294bfa 100644 --- a/test/test_image_generation200_response.py +++ b/test/test_image_generation200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request.py b/test/test_image_generation_request.py index 436d7e61..498443c8 100644 --- a/test/test_image_generation_request.py +++ b/test/test_image_generation_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_background_removal_params.py b/test/test_image_generation_request_background_removal_params.py index ddd25f85..b053beef 100644 --- a/test/test_image_generation_request_background_removal_params.py +++ b/test/test_image_generation_request_background_removal_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_color_guided_generation_params.py b/test/test_image_generation_request_color_guided_generation_params.py index bf5de059..0a6316c0 100644 --- a/test/test_image_generation_request_color_guided_generation_params.py +++ b/test/test_image_generation_request_color_guided_generation_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_image_generation_config.py b/test/test_image_generation_request_image_generation_config.py index 2c363732..bf4f2f9b 100644 --- a/test/test_image_generation_request_image_generation_config.py +++ b/test/test_image_generation_request_image_generation_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_image_variation_params.py b/test/test_image_generation_request_image_variation_params.py index ca585857..0b8ea429 100644 --- a/test/test_image_generation_request_image_variation_params.py +++ b/test/test_image_generation_request_image_variation_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_in_painting_params.py b/test/test_image_generation_request_in_painting_params.py index 60193e8c..c91f1d61 100644 --- a/test/test_image_generation_request_in_painting_params.py +++ b/test/test_image_generation_request_in_painting_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_out_painting_params.py b/test/test_image_generation_request_out_painting_params.py index d10bb8c1..1220c7b9 100644 --- a/test/test_image_generation_request_out_painting_params.py +++ b/test/test_image_generation_request_out_painting_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_text_to_image_params.py b/test/test_image_generation_request_text_to_image_params.py index b5697a69..51a5cdb6 100644 --- a/test/test_image_generation_request_text_to_image_params.py +++ b/test/test_image_generation_request_text_to_image_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_kv_api.py b/test/test_kv_api.py index 5eb72390..fecfcf85 100644 --- a/test/test_kv_api.py +++ b/test/test_kv_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_kv_items_create200_response.py b/test/test_kv_items_create200_response.py index c19b8761..3fbac1ce 100644 --- a/test/test_kv_items_create200_response.py +++ b/test/test_kv_items_create200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_kv_items_delete200_response.py b/test/test_kv_items_delete200_response.py index 30526262..b764098d 100644 --- a/test/test_kv_items_delete200_response.py +++ b/test/test_kv_items_delete200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_kv_items_show200_response.py b/test/test_kv_items_show200_response.py index 285ab9c0..0f607801 100644 --- a/test/test_kv_items_show200_response.py +++ b/test/test_kv_items_show200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_kv_items_show200_response_value.py b/test/test_kv_items_show200_response_value.py index c95eb9bf..df52e083 100644 --- a/test/test_kv_items_show200_response_value.py +++ b/test/test_kv_items_show200_response_value.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_agents200_response.py b/test/test_list_ai_agents200_response.py index 62be2ba8..f5c97b74 100644 --- a/test/test_list_ai_agents200_response.py +++ b/test/test_list_ai_agents200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_agents200_response_agents_inner.py b/test/test_list_ai_agents200_response_agents_inner.py index e8bc7364..45ccae59 100644 --- a/test/test_list_ai_agents200_response_agents_inner.py +++ b/test/test_list_ai_agents200_response_agents_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_models200_response.py b/test/test_list_ai_models200_response.py index f8187875..7999c8b3 100644 --- a/test/test_list_ai_models200_response.py +++ b/test/test_list_ai_models200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_models200_response_models_inner.py b/test/test_list_ai_models200_response_models_inner.py index 7ea07de6..23ffdd59 100644 --- a/test/test_list_ai_models200_response_models_inner.py +++ b/test/test_list_ai_models200_response_models_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_models200_response_models_inner_capabilities.py b/test/test_list_ai_models200_response_models_inner_capabilities.py index 6bd6b3d4..9f77829e 100644 --- a/test/test_list_ai_models200_response_models_inner_capabilities.py +++ b/test/test_list_ai_models200_response_models_inner_capabilities.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_sessions200_response_inner.py b/test/test_list_ai_sessions200_response_inner.py index 8c933103..313ed303 100644 --- a/test/test_list_ai_sessions200_response_inner.py +++ b/test/test_list_ai_sessions200_response_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tool_executions200_response.py b/test/test_list_ai_tool_executions200_response.py index 6d4a4d57..848968e2 100644 --- a/test/test_list_ai_tool_executions200_response.py +++ b/test/test_list_ai_tool_executions200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tool_executions200_response_executions_inner.py b/test/test_list_ai_tool_executions200_response_executions_inner.py index c0436652..03f8ef4a 100644 --- a/test/test_list_ai_tool_executions200_response_executions_inner.py +++ b/test/test_list_ai_tool_executions200_response_executions_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tool_names200_response.py b/test/test_list_ai_tool_names200_response.py index 84d032c3..1f501c99 100644 --- a/test/test_list_ai_tool_names200_response.py +++ b/test/test_list_ai_tool_names200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tools200_response.py b/test/test_list_ai_tools200_response.py index 7f91dc20..eaf87068 100644 --- a/test/test_list_ai_tools200_response.py +++ b/test/test_list_ai_tools200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tools200_response_tools_inner.py b/test/test_list_ai_tools200_response_tools_inner.py index 9c560836..1e90114d 100644 --- a/test/test_list_ai_tools200_response_tools_inner.py +++ b/test/test_list_ai_tools200_response_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tools200_response_tools_inner_tool_spec.py b/test/test_list_ai_tools200_response_tools_inner_tool_spec.py index 0d7a281a..3ef7e7a6 100644 --- a/test/test_list_ai_tools200_response_tools_inner_tool_spec.py +++ b/test/test_list_ai_tools200_response_tools_inner_tool_spec.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tools200_response_tools_inner_tool_spec_input_schema.py b/test/test_list_ai_tools200_response_tools_inner_tool_spec_input_schema.py index d805a7dc..dd8836c0 100644 --- a/test/test_list_ai_tools200_response_tools_inner_tool_spec_input_schema.py +++ b/test/test_list_ai_tools200_response_tools_inner_tool_spec_input_schema.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_backups200_response.py b/test/test_list_backups200_response.py index 9d7d782a..fd85ce15 100644 --- a/test/test_list_backups200_response.py +++ b/test/test_list_backups200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_backups200_response_backups_inner.py b/test/test_list_backups200_response_backups_inner.py index c03a7796..3d0d0fcb 100644 --- a/test/test_list_backups200_response_backups_inner.py +++ b/test/test_list_backups200_response_backups_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_backups422_response.py b/test/test_list_backups422_response.py index 114d2563..abb8f906 100644 --- a/test/test_list_backups422_response.py +++ b/test/test_list_backups422_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_custom_tools200_response.py b/test/test_list_custom_tools200_response.py index 5453ea07..0cd2c622 100644 --- a/test/test_list_custom_tools200_response.py +++ b/test/test_list_custom_tools200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_custom_tools200_response_tools_inner.py b/test/test_list_custom_tools200_response_tools_inner.py index c3c6926e..8c446d58 100644 --- a/test/test_list_custom_tools200_response_tools_inner.py +++ b/test/test_list_custom_tools200_response_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_files200_response.py b/test/test_list_files200_response.py new file mode 100644 index 00000000..83a961a8 --- /dev/null +++ b/test/test_list_files200_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.list_files200_response import ListFiles200Response + +class TestListFiles200Response(unittest.TestCase): + """ListFiles200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListFiles200Response: + """Test ListFiles200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListFiles200Response` + """ + model = ListFiles200Response() + if include_optional: + return ListFiles200Response( + files = [ + quantcdn.models.list_files_200_response_files_inner.listFiles_200_response_files_inner( + file_id = '', + filename = '', + content_type = '', + size = 56, + metadata = quantcdn.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + next_cursor = '', + has_more = True + ) + else: + return ListFiles200Response( + ) + """ + + def testListFiles200Response(self): + """Test ListFiles200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_files200_response_files_inner.py b/test/test_list_files200_response_files_inner.py new file mode 100644 index 00000000..9db4650c --- /dev/null +++ b/test/test_list_files200_response_files_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.list_files200_response_files_inner import ListFiles200ResponseFilesInner + +class TestListFiles200ResponseFilesInner(unittest.TestCase): + """ListFiles200ResponseFilesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListFiles200ResponseFilesInner: + """Test ListFiles200ResponseFilesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListFiles200ResponseFilesInner` + """ + model = ListFiles200ResponseFilesInner() + if include_optional: + return ListFiles200ResponseFilesInner( + file_id = '', + filename = '', + content_type = '', + size = 56, + metadata = None, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return ListFiles200ResponseFilesInner( + ) + """ + + def testListFiles200ResponseFilesInner(self): + """Test ListFiles200ResponseFilesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_tasks200_response.py b/test/test_list_tasks200_response.py new file mode 100644 index 00000000..f5ae3e21 --- /dev/null +++ b/test/test_list_tasks200_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.list_tasks200_response import ListTasks200Response + +class TestListTasks200Response(unittest.TestCase): + """ListTasks200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListTasks200Response: + """Test ListTasks200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListTasks200Response` + """ + model = ListTasks200Response() + if include_optional: + return ListTasks200Response( + tasks = [ + quantcdn.models.list_tasks_200_response_tasks_inner.listTasks_200_response_tasks_inner( + task_id = '550e8400-e29b-41d4-a716-446655440000', + org_id = 'quant', + task_list_id = 'world-1', + title = 'Process document and create summary', + description = 'Extract text from PDF, analyze content', + status = 'in_progress', + assigned_agent_id = 'agent-123', + progress = 0.5, + blocked_reason = '', + blocked_by_task_ids = [ + '' + ], + created_at = 1735689600000, + updated_at = 1735689700000, ) + ], + task_ids = [ + '' + ], + count = 2, + depends_on = '' + ) + else: + return ListTasks200Response( + ) + """ + + def testListTasks200Response(self): + """Test ListTasks200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_tasks200_response_tasks_inner.py b/test/test_list_tasks200_response_tasks_inner.py new file mode 100644 index 00000000..e569a4f6 --- /dev/null +++ b/test/test_list_tasks200_response_tasks_inner.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.list_tasks200_response_tasks_inner import ListTasks200ResponseTasksInner + +class TestListTasks200ResponseTasksInner(unittest.TestCase): + """ListTasks200ResponseTasksInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListTasks200ResponseTasksInner: + """Test ListTasks200ResponseTasksInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListTasks200ResponseTasksInner` + """ + model = ListTasks200ResponseTasksInner() + if include_optional: + return ListTasks200ResponseTasksInner( + task_id = '550e8400-e29b-41d4-a716-446655440000', + org_id = 'quant', + task_list_id = 'world-1', + title = 'Process document and create summary', + description = 'Extract text from PDF, analyze content', + status = 'in_progress', + assigned_agent_id = 'agent-123', + progress = 0.5, + blocked_reason = '', + blocked_by_task_ids = [ + '' + ], + created_at = 1735689600000, + updated_at = 1735689700000 + ) + else: + return ListTasks200ResponseTasksInner( + ) + """ + + def testListTasks200ResponseTasksInner(self): + """Test ListTasks200ResponseTasksInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_vector_collections200_response.py b/test/test_list_vector_collections200_response.py index a81ca663..53b28e4f 100644 --- a/test/test_list_vector_collections200_response.py +++ b/test/test_list_vector_collections200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_vector_collections200_response_collections_inner.py b/test/test_list_vector_collections200_response_collections_inner.py index f3e80b78..91f5bb56 100644 --- a/test/test_list_vector_collections200_response_collections_inner.py +++ b/test/test_list_vector_collections200_response_collections_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_orchestration_api.py b/test/test_orchestration_api.py new file mode 100644 index 00000000..9f2c5ba5 --- /dev/null +++ b/test/test_orchestration_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.api.orchestration_api import OrchestrationApi + + +class TestOrchestrationApi(unittest.TestCase): + """OrchestrationApi unit test stubs""" + + def setUp(self) -> None: + self.api = OrchestrationApi() + + def tearDown(self) -> None: + pass + + def test_get_ai_orchestration_status(self) -> None: + """Test case for get_ai_orchestration_status + + Get Orchestration Status + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_organizations_api.py b/test/test_organizations_api.py index 9ae5b1b1..5375d380 100644 --- a/test/test_organizations_api.py +++ b/test/test_organizations_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_organizations_list200_response_inner.py b/test/test_organizations_list200_response_inner.py index c2cd95d0..a7622842 100644 --- a/test/test_organizations_list200_response_inner.py +++ b/test/test_organizations_list200_response_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_patch_environment_compose202_response.py b/test/test_patch_environment_compose202_response.py index 583fb061..385976bd 100644 --- a/test/test_patch_environment_compose202_response.py +++ b/test/test_patch_environment_compose202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_patch_environment_compose202_response_spot_configuration.py b/test/test_patch_environment_compose202_response_spot_configuration.py index 9cc2b690..6a07b32a 100644 --- a/test/test_patch_environment_compose202_response_spot_configuration.py +++ b/test/test_patch_environment_compose202_response_spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_patch_environment_compose400_response.py b/test/test_patch_environment_compose400_response.py index 5912eb0f..bf460bc5 100644 --- a/test/test_patch_environment_compose400_response.py +++ b/test/test_patch_environment_compose400_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_patch_environment_compose_request.py b/test/test_patch_environment_compose_request.py index 3aba00ee..b2ba78ba 100644 --- a/test/test_patch_environment_compose_request.py +++ b/test/test_patch_environment_compose_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_patch_environment_compose_request_spot_configuration.py b/test/test_patch_environment_compose_request_spot_configuration.py index 21444e64..bd0eb3da 100644 --- a/test/test_patch_environment_compose_request_spot_configuration.py +++ b/test/test_patch_environment_compose_request_spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_projects_api.py b/test/test_projects_api.py index 541ae6d1..0fe58ed4 100644 --- a/test/test_projects_api.py +++ b/test/test_projects_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_purge_api.py b/test/test_purge_api.py index 15777789..336fccbf 100644 --- a/test/test_purge_api.py +++ b/test/test_purge_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_purge_create_request.py b/test/test_purge_create_request.py index da09b6ef..f25ab803 100644 --- a/test/test_purge_create_request.py +++ b/test/test_purge_create_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_query_vector_collection200_response.py b/test/test_query_vector_collection200_response.py index 4dd76802..759ac198 100644 --- a/test/test_query_vector_collection200_response.py +++ b/test/test_query_vector_collection200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,16 +37,26 @@ def make_instance(self, include_optional) -> QueryVectorCollection200Response: return QueryVectorCollection200Response( results = [ quantcdn.models.query_vector_collection_200_response_results_inner.queryVectorCollection_200_response_results_inner( + document_id = '', content = '', - score = 1.337, - metadata = quantcdn.models.query_vector_collection_200_response_results_inner_metadata.queryVectorCollection_200_response_results_inner_metadata( - title = '', - source_url = '', - section = '', ), ) + similarity = 0, + metadata = { }, + embedding = [ + 1.337 + ], ) ], query = '', + search_mode = 'text', + filter = None, count = 56, - execution_time_ms = 56 + execution_time_ms = 56, + collection_id = '', + has_more = True, + next_cursor = '', + pagination = quantcdn.models.query_vector_collection_200_response_pagination.queryVectorCollection_200_response_pagination( + sort_by = 'created_at', + sort_order = 'asc', + limit = 56, ) ) else: return QueryVectorCollection200Response( diff --git a/test/test_query_vector_collection200_response_pagination.py b/test/test_query_vector_collection200_response_pagination.py new file mode 100644 index 00000000..53c4c937 --- /dev/null +++ b/test/test_query_vector_collection200_response_pagination.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.query_vector_collection200_response_pagination import QueryVectorCollection200ResponsePagination + +class TestQueryVectorCollection200ResponsePagination(unittest.TestCase): + """QueryVectorCollection200ResponsePagination unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QueryVectorCollection200ResponsePagination: + """Test QueryVectorCollection200ResponsePagination + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `QueryVectorCollection200ResponsePagination` + """ + model = QueryVectorCollection200ResponsePagination() + if include_optional: + return QueryVectorCollection200ResponsePagination( + sort_by = 'created_at', + sort_order = 'asc', + limit = 56 + ) + else: + return QueryVectorCollection200ResponsePagination( + ) + """ + + def testQueryVectorCollection200ResponsePagination(self): + """Test QueryVectorCollection200ResponsePagination""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_query_vector_collection200_response_results_inner.py b/test/test_query_vector_collection200_response_results_inner.py index c9b13eb2..136ad428 100644 --- a/test/test_query_vector_collection200_response_results_inner.py +++ b/test/test_query_vector_collection200_response_results_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,12 +35,13 @@ def make_instance(self, include_optional) -> QueryVectorCollection200ResponseRes model = QueryVectorCollection200ResponseResultsInner() if include_optional: return QueryVectorCollection200ResponseResultsInner( + document_id = '', content = '', - score = 1.337, - metadata = quantcdn.models.query_vector_collection_200_response_results_inner_metadata.queryVectorCollection_200_response_results_inner_metadata( - title = '', - source_url = '', - section = '', ) + similarity = 0, + metadata = { }, + embedding = [ + 1.337 + ] ) else: return QueryVectorCollection200ResponseResultsInner( diff --git a/test/test_query_vector_collection200_response_results_inner_metadata.py b/test/test_query_vector_collection200_response_results_inner_metadata.py deleted file mode 100644 index 9f4843de..00000000 --- a/test/test_query_vector_collection200_response_results_inner_metadata.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - QuantCDN API - - Unified API for QuantCDN Admin and QuantCloud Platform services - - The version of the OpenAPI document: 4.8.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from quantcdn.models.query_vector_collection200_response_results_inner_metadata import QueryVectorCollection200ResponseResultsInnerMetadata - -class TestQueryVectorCollection200ResponseResultsInnerMetadata(unittest.TestCase): - """QueryVectorCollection200ResponseResultsInnerMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueryVectorCollection200ResponseResultsInnerMetadata: - """Test QueryVectorCollection200ResponseResultsInnerMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `QueryVectorCollection200ResponseResultsInnerMetadata` - """ - model = QueryVectorCollection200ResponseResultsInnerMetadata() - if include_optional: - return QueryVectorCollection200ResponseResultsInnerMetadata( - title = '', - source_url = '', - section = '' - ) - else: - return QueryVectorCollection200ResponseResultsInnerMetadata( - ) - """ - - def testQueryVectorCollection200ResponseResultsInnerMetadata(self): - """Test QueryVectorCollection200ResponseResultsInnerMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_query_vector_collection_request.py b/test/test_query_vector_collection_request.py index 30e77896..748d4e22 100644 --- a/test/test_query_vector_collection_request.py +++ b/test/test_query_vector_collection_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,11 +36,20 @@ def make_instance(self, include_optional) -> QueryVectorCollectionRequest: if include_optional: return QueryVectorCollectionRequest( query = 'How do I authenticate with the API?', - count = 1 + vector = [0.0234,-0.0891,0.0456], + limit = 1, + threshold = 0, + include_embeddings = True, + filter = quantcdn.models.query_vector_collection_request_filter.queryVectorCollection_request_filter( + exact = {"buildingId":"building-123","type":"research-report"}, + contains = {"tags":["important","reviewed"]}, ), + list_by_metadata = True, + cursor = '', + sort_by = 'created_at', + sort_order = 'desc' ) else: return QueryVectorCollectionRequest( - query = 'How do I authenticate with the API?', ) """ diff --git a/test/test_query_vector_collection_request_filter.py b/test/test_query_vector_collection_request_filter.py new file mode 100644 index 00000000..23cab6e4 --- /dev/null +++ b/test/test_query_vector_collection_request_filter.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.query_vector_collection_request_filter import QueryVectorCollectionRequestFilter + +class TestQueryVectorCollectionRequestFilter(unittest.TestCase): + """QueryVectorCollectionRequestFilter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QueryVectorCollectionRequestFilter: + """Test QueryVectorCollectionRequestFilter + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `QueryVectorCollectionRequestFilter` + """ + model = QueryVectorCollectionRequestFilter() + if include_optional: + return QueryVectorCollectionRequestFilter( + exact = {"buildingId":"building-123","type":"research-report"}, + contains = {"tags":["important","reviewed"]} + ) + else: + return QueryVectorCollectionRequestFilter( + ) + """ + + def testQueryVectorCollectionRequestFilter(self): + """Test QueryVectorCollectionRequestFilter""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_rules_api.py b/test/test_rules_api.py index ccfc07ae..ae59ff97 100644 --- a/test/test_rules_api.py +++ b/test/test_rules_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_scaling_policy.py b/test/test_scaling_policy.py index 6e180f15..a7edf138 100644 --- a/test/test_scaling_policy.py +++ b/test/test_scaling_policy.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_scaling_policy_api.py b/test/test_scaling_policy_api.py index ff08f4be..f7782c91 100644 --- a/test/test_scaling_policy_api.py +++ b/test/test_scaling_policy_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_spot_configuration.py b/test/test_spot_configuration.py index 924727c0..6aec5826 100644 --- a/test/test_spot_configuration.py +++ b/test/test_spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ssh_access_api.py b/test/test_ssh_access_api.py index e0d35bbf..92c1574f 100644 --- a/test/test_ssh_access_api.py +++ b/test/test_ssh_access_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_submit_tool_callback200_response.py b/test/test_submit_tool_callback200_response.py new file mode 100644 index 00000000..d1d25583 --- /dev/null +++ b/test/test_submit_tool_callback200_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.submit_tool_callback200_response import SubmitToolCallback200Response + +class TestSubmitToolCallback200Response(unittest.TestCase): + """SubmitToolCallback200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SubmitToolCallback200Response: + """Test SubmitToolCallback200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SubmitToolCallback200Response` + """ + model = SubmitToolCallback200Response() + if include_optional: + return SubmitToolCallback200Response( + success = True, + message = 'Callback submitted successfully', + callback_id = '' + ) + else: + return SubmitToolCallback200Response( + ) + """ + + def testSubmitToolCallback200Response(self): + """Test SubmitToolCallback200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_submit_tool_callback_request.py b/test/test_submit_tool_callback_request.py new file mode 100644 index 00000000..f2827212 --- /dev/null +++ b/test/test_submit_tool_callback_request.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.submit_tool_callback_request import SubmitToolCallbackRequest + +class TestSubmitToolCallbackRequest(unittest.TestCase): + """SubmitToolCallbackRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SubmitToolCallbackRequest: + """Test SubmitToolCallbackRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SubmitToolCallbackRequest` + """ + model = SubmitToolCallbackRequest() + if include_optional: + return SubmitToolCallbackRequest( + callback_id = 'Ab9hZXi/YXJuOmF3czpsYW1iZGE...', + tool_results = [ + quantcdn.models.submit_tool_callback_request_tool_results_inner.submitToolCallback_request_toolResults_inner( + tool_use_id = 'toolu_bdrk_012KTC8NCG...', + result = {"temperature":"24C","conditions":"Sunny"}, ) + ] + ) + else: + return SubmitToolCallbackRequest( + callback_id = 'Ab9hZXi/YXJuOmF3czpsYW1iZGE...', + tool_results = [ + quantcdn.models.submit_tool_callback_request_tool_results_inner.submitToolCallback_request_toolResults_inner( + tool_use_id = 'toolu_bdrk_012KTC8NCG...', + result = {"temperature":"24C","conditions":"Sunny"}, ) + ], + ) + """ + + def testSubmitToolCallbackRequest(self): + """Test SubmitToolCallbackRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_submit_tool_callback_request_tool_results_inner.py b/test/test_submit_tool_callback_request_tool_results_inner.py new file mode 100644 index 00000000..89d673db --- /dev/null +++ b/test/test_submit_tool_callback_request_tool_results_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.submit_tool_callback_request_tool_results_inner import SubmitToolCallbackRequestToolResultsInner + +class TestSubmitToolCallbackRequestToolResultsInner(unittest.TestCase): + """SubmitToolCallbackRequestToolResultsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SubmitToolCallbackRequestToolResultsInner: + """Test SubmitToolCallbackRequestToolResultsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SubmitToolCallbackRequestToolResultsInner` + """ + model = SubmitToolCallbackRequestToolResultsInner() + if include_optional: + return SubmitToolCallbackRequestToolResultsInner( + tool_use_id = 'toolu_bdrk_012KTC8NCG...', + result = {"temperature":"24C","conditions":"Sunny"} + ) + else: + return SubmitToolCallbackRequestToolResultsInner( + tool_use_id = 'toolu_bdrk_012KTC8NCG...', + result = {"temperature":"24C","conditions":"Sunny"}, + ) + """ + + def testSubmitToolCallbackRequestToolResultsInner(self): + """Test SubmitToolCallbackRequestToolResultsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sync_operation.py b/test/test_sync_operation.py index a51e7eee..cac07f6c 100644 --- a/test/test_sync_operation.py +++ b/test/test_sync_operation.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_sync_to_environment_request.py b/test/test_sync_to_environment_request.py index 38a4504c..7fc1bb04 100644 --- a/test/test_sync_to_environment_request.py +++ b/test/test_sync_to_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_ai_agent200_response.py b/test/test_update_ai_agent200_response.py index 124522e0..534550fc 100644 --- a/test/test_update_ai_agent200_response.py +++ b/test/test_update_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_ai_agent_request.py b/test/test_update_ai_agent_request.py index 0803bf2b..bbe2d8c9 100644 --- a/test/test_update_ai_agent_request.py +++ b/test/test_update_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_ai_session200_response.py b/test/test_update_ai_session200_response.py index ca353b9c..d40f73f7 100644 --- a/test/test_update_ai_session200_response.py +++ b/test/test_update_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_ai_session_request.py b/test/test_update_ai_session_request.py index d7edfe05..f58139ee 100644 --- a/test/test_update_ai_session_request.py +++ b/test/test_update_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_ai_session_request_new_messages_inner.py b/test/test_update_ai_session_request_new_messages_inner.py index 23ebc7ec..6c669289 100644 --- a/test/test_update_ai_session_request_new_messages_inner.py +++ b/test/test_update_ai_session_request_new_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_cron_job_request.py b/test/test_update_cron_job_request.py index 7f1a16ac..44b2420b 100644 --- a/test/test_update_cron_job_request.py +++ b/test/test_update_cron_job_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_environment_request.py b/test/test_update_environment_request.py index bc668d98..d9a44101 100644 --- a/test/test_update_environment_request.py +++ b/test/test_update_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_environment_state_request.py b/test/test_update_environment_state_request.py index 96ac9135..a0f63077 100644 --- a/test/test_update_environment_state_request.py +++ b/test/test_update_environment_state_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_environment_variable_request.py b/test/test_update_environment_variable_request.py index 176cfb7c..b97289ee 100644 --- a/test/test_update_environment_variable_request.py +++ b/test/test_update_environment_variable_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_task200_response.py b/test/test_update_task200_response.py new file mode 100644 index 00000000..3230accf --- /dev/null +++ b/test/test_update_task200_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.update_task200_response import UpdateTask200Response + +class TestUpdateTask200Response(unittest.TestCase): + """UpdateTask200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateTask200Response: + """Test UpdateTask200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateTask200Response` + """ + model = UpdateTask200Response() + if include_optional: + return UpdateTask200Response( + task_id = '', + status = '', + updated_at = 56 + ) + else: + return UpdateTask200Response( + ) + """ + + def testUpdateTask200Response(self): + """Test UpdateTask200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_task_request.py b/test/test_update_task_request.py new file mode 100644 index 00000000..b3d29864 --- /dev/null +++ b/test/test_update_task_request.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.update_task_request import UpdateTaskRequest + +class TestUpdateTaskRequest(unittest.TestCase): + """UpdateTaskRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateTaskRequest: + """Test UpdateTaskRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateTaskRequest` + """ + model = UpdateTaskRequest() + if include_optional: + return UpdateTaskRequest( + title = 'Updated task title', + description = 'Updated description with more details', + task_list_id = 'world-2', + status = 'in_progress', + assigned_agent_id = 'agent-specialist', + depends_on = ["550e8400-e29b-41d4-a716-446655440000"], + metadata = {"priority":"urgent"}, + progress = 0.75, + progress_message = 'Processing document 3 of 4...', + result = {"summary":"Document processed successfully","wordCount":1500}, + error = 'Failed to connect to external API', + retry_count = 1, + max_retries = 5, + blocked_reason = 'Waiting for external approval', + blocked_by_task_ids = [ + '' + ] + ) + else: + return UpdateTaskRequest( + ) + """ + + def testUpdateTaskRequest(self): + """Test UpdateTaskRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upload_file201_response.py b/test/test_upload_file201_response.py new file mode 100644 index 00000000..9466a805 --- /dev/null +++ b/test/test_upload_file201_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.upload_file201_response import UploadFile201Response + +class TestUploadFile201Response(unittest.TestCase): + """UploadFile201Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UploadFile201Response: + """Test UploadFile201Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UploadFile201Response` + """ + model = UploadFile201Response() + if include_optional: + return UploadFile201Response( + file_id = '', + s3_uri = '', + url = '', + upload_url = '', + s3_key = '', + expires_in = 56, + filename = '', + content_type = '', + size = 56, + metadata = None, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return UploadFile201Response( + ) + """ + + def testUploadFile201Response(self): + """Test UploadFile201Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upload_file_request.py b/test/test_upload_file_request.py new file mode 100644 index 00000000..591bb9f3 --- /dev/null +++ b/test/test_upload_file_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.9.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.upload_file_request import UploadFileRequest + +class TestUploadFileRequest(unittest.TestCase): + """UploadFileRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UploadFileRequest: + """Test UploadFileRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UploadFileRequest` + """ + model = UploadFileRequest() + if include_optional: + return UploadFileRequest( + content = '', + request_upload_url = True, + size = 56, + filename = 'diagram.png', + content_type = 'image/png', + metadata = {"collectionId":"col-123","tags":["architecture","generated"]} + ) + else: + return UploadFileRequest( + content_type = 'image/png', + ) + """ + + def testUploadFileRequest(self): + """Test UploadFileRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upload_vector_documents200_response.py b/test/test_upload_vector_documents200_response.py index 0ab48e54..d0876af8 100644 --- a/test/test_upload_vector_documents200_response.py +++ b/test/test_upload_vector_documents200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upload_vector_documents_request.py b/test/test_upload_vector_documents_request.py index fc1645f9..cfd3730a 100644 --- a/test/test_upload_vector_documents_request.py +++ b/test/test_upload_vector_documents_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upload_vector_documents_request_documents_inner.py b/test/test_upload_vector_documents_request_documents_inner.py index 1daef261..731c397b 100644 --- a/test/test_upload_vector_documents_request_documents_inner.py +++ b/test/test_upload_vector_documents_request_documents_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upload_vector_documents_request_documents_inner_metadata.py b/test/test_upload_vector_documents_request_documents_inner_metadata.py index 3515ae60..9358a410 100644 --- a/test/test_upload_vector_documents_request_documents_inner_metadata.py +++ b/test/test_upload_vector_documents_request_documents_inner_metadata.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_content_item.py b/test/test_v1_content_item.py index 440fd8d5..16ce6b6d 100644 --- a/test/test_v1_content_item.py +++ b/test/test_v1_content_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_content_list_response.py b/test/test_v1_content_list_response.py index efec0c18..8c0cea0d 100644 --- a/test/test_v1_content_list_response.py +++ b/test/test_v1_content_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_content_request.py b/test/test_v1_content_request.py index 1241e8e7..38af269c 100644 --- a/test/test_v1_content_request.py +++ b/test/test_v1_content_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_delete_response.py b/test/test_v1_delete_response.py index 8f95c0e5..0d63de99 100644 --- a/test/test_v1_delete_response.py +++ b/test/test_v1_delete_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_error.py b/test/test_v1_error.py index 038d3680..63414865 100644 --- a/test/test_v1_error.py +++ b/test/test_v1_error.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_form_submission_item.py b/test/test_v1_form_submission_item.py index ec617f82..1bd3e5b7 100644 --- a/test/test_v1_form_submission_item.py +++ b/test/test_v1_form_submission_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_form_submission_list_response.py b/test/test_v1_form_submission_list_response.py index 7ba61262..e7301b8b 100644 --- a/test/test_v1_form_submission_list_response.py +++ b/test/test_v1_form_submission_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_get_metric_series_response.py b/test/test_v1_get_metric_series_response.py index 7b0e3fda..071d2d80 100644 --- a/test/test_v1_get_metric_series_response.py +++ b/test/test_v1_get_metric_series_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_get_metric_series_response_data.py b/test/test_v1_get_metric_series_response_data.py index 94e3df62..3b4fc8fc 100644 --- a/test/test_v1_get_metric_series_response_data.py +++ b/test/test_v1_get_metric_series_response_data.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_get_metrics_response.py b/test/test_v1_get_metrics_response.py index 52f27e3a..00e48807 100644 --- a/test/test_v1_get_metrics_response.py +++ b/test/test_v1_get_metrics_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_get_metrics_response_data.py b/test/test_v1_get_metrics_response_data.py index 8c2f9da4..6868bc25 100644 --- a/test/test_v1_get_metrics_response_data.py +++ b/test/test_v1_get_metrics_response_data.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_global_meta_response.py b/test/test_v1_global_meta_response.py index 92649179..0d76f714 100644 --- a/test/test_v1_global_meta_response.py +++ b/test/test_v1_global_meta_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_global_meta_response_global_meta.py b/test/test_v1_global_meta_response_global_meta.py index 821d3be5..c2a686ad 100644 --- a/test/test_v1_global_meta_response_global_meta.py +++ b/test/test_v1_global_meta_response_global_meta.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_info.py b/test/test_v1_info.py index 91b65e70..b00e8133 100644 --- a/test/test_v1_info.py +++ b/test/test_v1_info.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_meta.py b/test/test_v1_meta.py index d199714b..651d1313 100644 --- a/test/test_v1_meta.py +++ b/test/test_v1_meta.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_metric_day_stats.py b/test/test_v1_metric_day_stats.py index 6168a317..abb96283 100644 --- a/test/test_v1_metric_day_stats.py +++ b/test/test_v1_metric_day_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_metric_minute_stats.py b/test/test_v1_metric_minute_stats.py index 70944841..18e49d53 100644 --- a/test/test_v1_metric_minute_stats.py +++ b/test/test_v1_metric_minute_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_metric_month_stats.py b/test/test_v1_metric_month_stats.py index 4622fcab..78d13e0d 100644 --- a/test/test_v1_metric_month_stats.py +++ b/test/test_v1_metric_month_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_ping_response.py b/test/test_v1_ping_response.py index ca55c89c..95a2e9a2 100644 --- a/test/test_v1_ping_response.py +++ b/test/test_v1_ping_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_proxy_item.py b/test/test_v1_proxy_item.py index c8f6a52e..dbf09747 100644 --- a/test/test_v1_proxy_item.py +++ b/test/test_v1_proxy_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_proxy_list_response.py b/test/test_v1_proxy_list_response.py index 9f031fe4..56f6782e 100644 --- a/test/test_v1_proxy_list_response.py +++ b/test/test_v1_proxy_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_redirect_item.py b/test/test_v1_redirect_item.py index fa0eec66..c9794b18 100644 --- a/test/test_v1_redirect_item.py +++ b/test/test_v1_redirect_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_redirect_list_response.py b/test/test_v1_redirect_list_response.py index 9a835401..6651cabd 100644 --- a/test/test_v1_redirect_list_response.py +++ b/test/test_v1_redirect_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_redirect_request.py b/test/test_v1_redirect_request.py index d863be13..b37e616e 100644 --- a/test/test_v1_redirect_request.py +++ b/test/test_v1_redirect_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_redirect_response.py b/test/test_v1_redirect_response.py index 0f563df9..e5c4693f 100644 --- a/test/test_v1_redirect_response.py +++ b/test/test_v1_redirect_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_revision.py b/test/test_v1_revision.py index 73658156..ea9f310c 100644 --- a/test/test_v1_revision.py +++ b/test/test_v1_revision.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_revisions_response.py b/test/test_v1_revisions_response.py index 999a2e28..e6db565d 100644 --- a/test/test_v1_revisions_response.py +++ b/test/test_v1_revisions_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_search_hit.py b/test/test_v1_search_hit.py index 26223e24..32f45dbf 100644 --- a/test/test_v1_search_hit.py +++ b/test/test_v1_search_hit.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_search_items_response.py b/test/test_v1_search_items_response.py index 88d635e6..ed4c6243 100644 --- a/test/test_v1_search_items_response.py +++ b/test/test_v1_search_items_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_search_mutation_response.py b/test/test_v1_search_mutation_response.py index d4e5b611..9dd01e78 100644 --- a/test/test_v1_search_mutation_response.py +++ b/test/test_v1_search_mutation_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_search_record.py b/test/test_v1_search_record.py index e8f1233a..0d98639d 100644 --- a/test/test_v1_search_record.py +++ b/test/test_v1_search_record.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_search_response.py b/test/test_v1_search_response.py index b2ce7e0a..cbb436b3 100644 --- a/test/test_v1_search_response.py +++ b/test/test_v1_search_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_series_point_day.py b/test/test_v1_series_point_day.py index c17057be..8f3443b5 100644 --- a/test/test_v1_series_point_day.py +++ b/test/test_v1_series_point_day.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_series_point_month.py b/test/test_v1_series_point_month.py index c819abd8..884c2d5c 100644 --- a/test/test_v1_series_point_month.py +++ b/test/test_v1_series_point_month.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_transition.py b/test/test_v1_transition.py index d09aa958..38318bd7 100644 --- a/test/test_v1_transition.py +++ b/test/test_v1_transition.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_upload_response.py b/test/test_v1_upload_response.py index a317b37f..b86f9063 100644 --- a/test/test_v1_upload_response.py +++ b/test/test_v1_upload_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_url_meta_request.py b/test/test_v1_url_meta_request.py index 94e53691..b4c2d7dc 100644 --- a/test/test_v1_url_meta_request.py +++ b/test/test_v1_url_meta_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_url_meta_response.py b/test/test_v1_url_meta_response.py index 68a49dd9..9a135aac 100644 --- a/test/test_v1_url_meta_response.py +++ b/test/test_v1_url_meta_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_waf_log_item.py b/test/test_v1_waf_log_item.py index 83c065cd..571953e6 100644 --- a/test/test_v1_waf_log_item.py +++ b/test/test_v1_waf_log_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_waf_log_list_response.py b/test/test_v1_waf_log_list_response.py index 7e49d6ee..e66e98cb 100644 --- a/test/test_v1_waf_log_list_response.py +++ b/test/test_v1_waf_log_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler.py b/test/test_v2_crawler.py index 2384c32b..8c5078dc 100644 --- a/test/test_v2_crawler.py +++ b/test/test_v2_crawler.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_assets.py b/test/test_v2_crawler_assets.py index 4a59f33b..45c9b50a 100644 --- a/test/test_v2_crawler_assets.py +++ b/test/test_v2_crawler_assets.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_assets_network_intercept.py b/test/test_v2_crawler_assets_network_intercept.py index 2b93b708..bad50766 100644 --- a/test/test_v2_crawler_assets_network_intercept.py +++ b/test/test_v2_crawler_assets_network_intercept.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_assets_parser.py b/test/test_v2_crawler_assets_parser.py index 43383ff0..52ebfb2c 100644 --- a/test/test_v2_crawler_assets_parser.py +++ b/test/test_v2_crawler_assets_parser.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_request.py b/test/test_v2_crawler_request.py index bbe4217b..f92299e8 100644 --- a/test/test_v2_crawler_request.py +++ b/test/test_v2_crawler_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_run.py b/test/test_v2_crawler_run.py index afc72e57..e2ae45fb 100644 --- a/test/test_v2_crawler_run.py +++ b/test/test_v2_crawler_run.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_schedule.py b/test/test_v2_crawler_schedule.py index 617ba9ff..92190866 100644 --- a/test/test_v2_crawler_schedule.py +++ b/test/test_v2_crawler_schedule.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_schedule_request.py b/test/test_v2_crawler_schedule_request.py index 089be1d7..247684c8 100644 --- a/test/test_v2_crawler_schedule_request.py +++ b/test/test_v2_crawler_schedule_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_sitemap_inner.py b/test/test_v2_crawler_sitemap_inner.py index 6322aa79..95833424 100644 --- a/test/test_v2_crawler_sitemap_inner.py +++ b/test/test_v2_crawler_sitemap_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_custom_header_request.py b/test/test_v2_custom_header_request.py index 2bb3847d..9674c717 100644 --- a/test/test_v2_custom_header_request.py +++ b/test/test_v2_custom_header_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_domain.py b/test/test_v2_domain.py index df1ac855..bf5f1468 100644 --- a/test/test_v2_domain.py +++ b/test/test_v2_domain.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_domain_dns_go_live_records_inner.py b/test/test_v2_domain_dns_go_live_records_inner.py index 0755fc5e..a96d90de 100644 --- a/test/test_v2_domain_dns_go_live_records_inner.py +++ b/test/test_v2_domain_dns_go_live_records_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_domain_dns_validation_records_inner.py b/test/test_v2_domain_dns_validation_records_inner.py index 6bc69c3a..e6f43611 100644 --- a/test/test_v2_domain_dns_validation_records_inner.py +++ b/test/test_v2_domain_dns_validation_records_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_domain_request.py b/test/test_v2_domain_request.py index 6a6a8eee..9074b7f1 100644 --- a/test/test_v2_domain_request.py +++ b/test/test_v2_domain_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_error.py b/test/test_v2_error.py index eebefc1f..02f96492 100644 --- a/test/test_v2_error.py +++ b/test/test_v2_error.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_organization.py b/test/test_v2_organization.py index 36fe943c..1ce4bc19 100644 --- a/test/test_v2_organization.py +++ b/test/test_v2_organization.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_organization_request.py b/test/test_v2_organization_request.py index 19a0ab6f..cc49338d 100644 --- a/test/test_v2_organization_request.py +++ b/test/test_v2_organization_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_project.py b/test/test_v2_project.py index 7e21955f..35556502 100644 --- a/test/test_v2_project.py +++ b/test/test_v2_project.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_project_request.py b/test/test_v2_project_request.py index 80cccf9d..e8d40fee 100644 --- a/test/test_v2_project_request.py +++ b/test/test_v2_project_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule.py b/test/test_v2_rule.py index 9a1204fe..064c0836 100644 --- a/test/test_v2_rule.py +++ b/test/test_v2_rule.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_auth.py b/test/test_v2_rule_auth.py index ed890d3a..9252944e 100644 --- a/test/test_v2_rule_auth.py +++ b/test/test_v2_rule_auth.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_auth_action.py b/test/test_v2_rule_auth_action.py index 8c6d81a4..eaeb561c 100644 --- a/test/test_v2_rule_auth_action.py +++ b/test/test_v2_rule_auth_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_auth_request.py b/test/test_v2_rule_auth_request.py index bfbc91d3..16d1b80a 100644 --- a/test/test_v2_rule_auth_request.py +++ b/test/test_v2_rule_auth_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_bot_challenge.py b/test/test_v2_rule_bot_challenge.py index c68ee7eb..a4657972 100644 --- a/test/test_v2_rule_bot_challenge.py +++ b/test/test_v2_rule_bot_challenge.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_bot_challenge_action.py b/test/test_v2_rule_bot_challenge_action.py index c9609845..4a3497ae 100644 --- a/test/test_v2_rule_bot_challenge_action.py +++ b/test/test_v2_rule_bot_challenge_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_bot_challenge_request.py b/test/test_v2_rule_bot_challenge_request.py index cbfa725e..cb785d35 100644 --- a/test/test_v2_rule_bot_challenge_request.py +++ b/test/test_v2_rule_bot_challenge_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_content_filter.py b/test/test_v2_rule_content_filter.py index dd95ead1..fbe54011 100644 --- a/test/test_v2_rule_content_filter.py +++ b/test/test_v2_rule_content_filter.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_content_filter_action.py b/test/test_v2_rule_content_filter_action.py index 949a11c1..5de4b448 100644 --- a/test/test_v2_rule_content_filter_action.py +++ b/test/test_v2_rule_content_filter_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_content_filter_request.py b/test/test_v2_rule_content_filter_request.py index 50f51350..3d421eba 100644 --- a/test/test_v2_rule_content_filter_request.py +++ b/test/test_v2_rule_content_filter_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_custom_response.py b/test/test_v2_rule_custom_response.py index f4cd0d37..236cea0e 100644 --- a/test/test_v2_rule_custom_response.py +++ b/test/test_v2_rule_custom_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_custom_response_action.py b/test/test_v2_rule_custom_response_action.py index 3bf899d7..8673155e 100644 --- a/test/test_v2_rule_custom_response_action.py +++ b/test/test_v2_rule_custom_response_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_custom_response_request.py b/test/test_v2_rule_custom_response_request.py index aaea9dfa..8d82e500 100644 --- a/test/test_v2_rule_custom_response_request.py +++ b/test/test_v2_rule_custom_response_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_function.py b/test/test_v2_rule_function.py index 6ef88e25..ca080775 100644 --- a/test/test_v2_rule_function.py +++ b/test/test_v2_rule_function.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_function_action.py b/test/test_v2_rule_function_action.py index 3c492cb9..6171a2b8 100644 --- a/test/test_v2_rule_function_action.py +++ b/test/test_v2_rule_function_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_function_request.py b/test/test_v2_rule_function_request.py index 83ee5762..3549a6b6 100644 --- a/test/test_v2_rule_function_request.py +++ b/test/test_v2_rule_function_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_header.py b/test/test_v2_rule_header.py index bc75bd14..faaa7e7c 100644 --- a/test/test_v2_rule_header.py +++ b/test/test_v2_rule_header.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_header_action.py b/test/test_v2_rule_header_action.py index 7d121ad2..e44e01b0 100644 --- a/test/test_v2_rule_header_action.py +++ b/test/test_v2_rule_header_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_header_request.py b/test/test_v2_rule_header_request.py index b3fdc1f2..0e4dc791 100644 --- a/test/test_v2_rule_header_request.py +++ b/test/test_v2_rule_header_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_proxy.py b/test/test_v2_rule_proxy.py index d3a58d4e..8bf70cdb 100644 --- a/test/test_v2_rule_proxy.py +++ b/test/test_v2_rule_proxy.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_proxy_action.py b/test/test_v2_rule_proxy_action.py index 230e5546..362dcc2c 100644 --- a/test/test_v2_rule_proxy_action.py +++ b/test/test_v2_rule_proxy_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_proxy_action_notify_config.py b/test/test_v2_rule_proxy_action_notify_config.py index 242166aa..4c6f1958 100644 --- a/test/test_v2_rule_proxy_action_notify_config.py +++ b/test/test_v2_rule_proxy_action_notify_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_proxy_action_quant_cloud_selection.py b/test/test_v2_rule_proxy_action_quant_cloud_selection.py index 14cb83cf..df0a4aea 100644 --- a/test/test_v2_rule_proxy_action_quant_cloud_selection.py +++ b/test/test_v2_rule_proxy_action_quant_cloud_selection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_proxy_request.py b/test/test_v2_rule_proxy_request.py index 53893cc4..7eb10215 100644 --- a/test/test_v2_rule_proxy_request.py +++ b/test/test_v2_rule_proxy_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_redirect.py b/test/test_v2_rule_redirect.py index 8ff3e9b4..559b1caf 100644 --- a/test/test_v2_rule_redirect.py +++ b/test/test_v2_rule_redirect.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_redirect_action.py b/test/test_v2_rule_redirect_action.py index cb50735f..7d7be7e6 100644 --- a/test/test_v2_rule_redirect_action.py +++ b/test/test_v2_rule_redirect_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_redirect_request.py b/test/test_v2_rule_redirect_request.py index 2d346128..f2896276 100644 --- a/test/test_v2_rule_redirect_request.py +++ b/test/test_v2_rule_redirect_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_request.py b/test/test_v2_rule_request.py index d2d8eb70..390044d4 100644 --- a/test/test_v2_rule_request.py +++ b/test/test_v2_rule_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_serve_static.py b/test/test_v2_rule_serve_static.py index 1a786719..7cbfb8f3 100644 --- a/test/test_v2_rule_serve_static.py +++ b/test/test_v2_rule_serve_static.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_serve_static_action.py b/test/test_v2_rule_serve_static_action.py index e49fdb9c..227efc70 100644 --- a/test/test_v2_rule_serve_static_action.py +++ b/test/test_v2_rule_serve_static_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_serve_static_request.py b/test/test_v2_rule_serve_static_request.py index 064fc099..2f36a6f1 100644 --- a/test/test_v2_rule_serve_static_request.py +++ b/test/test_v2_rule_serve_static_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_secret_store.py b/test/test_v2_secret_store.py index baf487d4..b58235a7 100644 --- a/test/test_v2_secret_store.py +++ b/test/test_v2_secret_store.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_secret_store_request.py b/test/test_v2_secret_store_request.py index 00b9dcd4..f17f7ced 100644 --- a/test/test_v2_secret_store_request.py +++ b/test/test_v2_secret_store_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store.py b/test/test_v2_store.py index 54ec0385..4c9a8797 100644 --- a/test/test_v2_store.py +++ b/test/test_v2_store.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store_item.py b/test/test_v2_store_item.py index ff9caa74..da3445fe 100644 --- a/test/test_v2_store_item.py +++ b/test/test_v2_store_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store_item_request.py b/test/test_v2_store_item_request.py index f841197c..6a681ef2 100644 --- a/test/test_v2_store_item_request.py +++ b/test/test_v2_store_item_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store_item_update_request.py b/test/test_v2_store_item_update_request.py index e82344cc..0610b7bb 100644 --- a/test/test_v2_store_item_update_request.py +++ b/test/test_v2_store_item_update_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store_items_list_response.py b/test/test_v2_store_items_list_response.py index 326939e8..3966ffc4 100644 --- a/test/test_v2_store_items_list_response.py +++ b/test/test_v2_store_items_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store_request.py b/test/test_v2_store_request.py index 84b32f37..5410ffa4 100644 --- a/test/test_v2_store_request.py +++ b/test/test_v2_store_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_validate_compose200_response.py b/test/test_validate_compose200_response.py index a584cdbd..2b3c9bfe 100644 --- a/test/test_validate_compose200_response.py +++ b/test/test_validate_compose200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_validate_compose422_response.py b/test/test_validate_compose422_response.py index c87d6264..ce824bbe 100644 --- a/test/test_validate_compose422_response.py +++ b/test/test_validate_compose422_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_validate_compose_request.py b/test/test_validate_compose_request.py index 0e587b0c..4acff94d 100644 --- a/test/test_validate_compose_request.py +++ b/test/test_validate_compose_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_variable.py b/test/test_variable.py index c1063c79..eac26452 100644 --- a/test/test_variable.py +++ b/test/test_variable.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_variables_api.py b/test/test_variables_api.py index f3cf6be5..032b139c 100644 --- a/test/test_variables_api.py +++ b/test/test_variables_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_volume.py b/test/test_volume.py index 95044055..a834403a 100644 --- a/test/test_volume.py +++ b/test/test_volume.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_volumes_api.py b/test/test_volumes_api.py index 68b051b5..eda04370 100644 --- a/test/test_volumes_api.py +++ b/test/test_volumes_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_waf_config.py b/test/test_waf_config.py index c6b3b9d5..61f6be70 100644 --- a/test/test_waf_config.py +++ b/test/test_waf_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_waf_config_block_lists.py b/test/test_waf_config_block_lists.py index ad45de5b..dddc2768 100644 --- a/test/test_waf_config_block_lists.py +++ b/test/test_waf_config_block_lists.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_waf_config_httpbl.py b/test/test_waf_config_httpbl.py index 4bb92014..7ba0b147 100644 --- a/test/test_waf_config_httpbl.py +++ b/test/test_waf_config_httpbl.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_waf_config_thresholds_inner.py b/test/test_waf_config_thresholds_inner.py index 540c4553..fc20bd87 100644 --- a/test/test_waf_config_thresholds_inner.py +++ b/test/test_waf_config_thresholds_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.8.0 + The version of the OpenAPI document: 4.9.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.