blaxel 0.2.31rc120__py3-none-any.whl → 0.2.32__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- blaxel/__init__.py +3 -3
- blaxel/core/agents/__init__.py +16 -7
- blaxel/core/authentication/__init__.py +2 -1
- blaxel/core/authentication/devicemode.py +9 -1
- blaxel/core/authentication/oauth.py +13 -6
- blaxel/core/authentication/types.py +1 -0
- blaxel/core/cache/cache.py +10 -3
- blaxel/core/client/api/agents/create_agent.py +5 -5
- blaxel/core/client/api/agents/delete_agent.py +5 -5
- blaxel/core/client/api/agents/get_agent.py +4 -4
- blaxel/core/client/api/agents/list_agent_revisions.py +8 -6
- blaxel/core/client/api/agents/list_agents.py +5 -5
- blaxel/core/client/api/agents/update_agent.py +5 -5
- blaxel/core/client/api/compute/create_sandbox.py +5 -5
- blaxel/core/client/api/compute/create_sandbox_preview.py +5 -5
- blaxel/core/client/api/compute/create_sandbox_preview_token.py +5 -5
- blaxel/core/client/api/compute/delete_sandbox.py +5 -5
- blaxel/core/client/api/compute/delete_sandbox_preview.py +5 -5
- blaxel/core/client/api/compute/delete_sandbox_preview_token.py +11 -7
- blaxel/core/client/api/compute/get_sandbox.py +4 -4
- blaxel/core/client/api/compute/get_sandbox_preview.py +5 -5
- blaxel/core/client/api/compute/list_sandbox_preview_tokens.py +5 -5
- blaxel/core/client/api/compute/list_sandbox_previews.py +5 -5
- blaxel/core/client/api/compute/list_sandboxes.py +5 -5
- blaxel/core/client/api/compute/update_sandbox.py +5 -5
- blaxel/core/client/api/compute/update_sandbox_preview.py +5 -5
- blaxel/core/client/api/configurations/get_configuration.py +5 -5
- blaxel/core/client/api/customdomains/create_custom_domain.py +5 -5
- blaxel/core/client/api/customdomains/delete_custom_domain.py +5 -5
- blaxel/core/client/api/customdomains/get_custom_domain.py +5 -5
- blaxel/core/client/api/customdomains/list_custom_domains.py +5 -5
- blaxel/core/client/api/customdomains/update_custom_domain.py +5 -5
- blaxel/core/client/api/customdomains/verify_custom_domain.py +5 -5
- blaxel/core/client/api/default/get_template.py +5 -5
- blaxel/core/client/api/default/list_mcp_hub_definitions.py +5 -5
- blaxel/core/client/api/default/list_sandbox_hub_definitions.py +11 -7
- blaxel/core/client/api/functions/create_function.py +5 -5
- blaxel/core/client/api/functions/delete_function.py +5 -5
- blaxel/core/client/api/functions/get_function.py +4 -4
- blaxel/core/client/api/functions/list_function_revisions.py +8 -6
- blaxel/core/client/api/functions/list_functions.py +5 -5
- blaxel/core/client/api/functions/update_function.py +5 -5
- blaxel/core/client/api/images/cleanup_images.py +8 -6
- blaxel/core/client/api/images/delete_image.py +4 -4
- blaxel/core/client/api/images/delete_image_tag.py +4 -4
- blaxel/core/client/api/images/get_image.py +5 -5
- blaxel/core/client/api/images/list_images.py +5 -5
- blaxel/core/client/api/integrations/create_integration_connection.py +5 -5
- blaxel/core/client/api/integrations/delete_integration_connection.py +5 -5
- blaxel/core/client/api/integrations/get_integration.py +5 -5
- blaxel/core/client/api/integrations/get_integration_connection.py +5 -5
- blaxel/core/client/api/integrations/get_integration_connection_model.py +3 -3
- blaxel/core/client/api/integrations/get_integration_connection_model_endpoint_configurations.py +3 -3
- blaxel/core/client/api/integrations/list_integration_connection_models.py +3 -3
- blaxel/core/client/api/integrations/list_integration_connections.py +11 -7
- blaxel/core/client/api/integrations/update_integration_connection.py +5 -5
- blaxel/core/client/api/invitations/list_all_pending_invitations.py +7 -5
- blaxel/core/client/api/jobs/create_job.py +5 -5
- blaxel/core/client/api/jobs/create_job_execution.py +7 -5
- blaxel/core/client/api/jobs/delete_job.py +5 -5
- blaxel/core/client/api/jobs/delete_job_execution.py +7 -5
- blaxel/core/client/api/jobs/get_job.py +4 -4
- blaxel/core/client/api/jobs/get_job_execution.py +7 -5
- blaxel/core/client/api/jobs/list_job_executions.py +10 -6
- blaxel/core/client/api/jobs/list_job_revisions.py +8 -6
- blaxel/core/client/api/jobs/list_jobs.py +5 -5
- blaxel/core/client/api/jobs/update_job.py +5 -5
- blaxel/core/client/api/locations/list_locations.py +8 -6
- blaxel/core/client/api/models/create_model.py +5 -5
- blaxel/core/client/api/models/delete_model.py +5 -5
- blaxel/core/client/api/models/get_model.py +5 -5
- blaxel/core/client/api/models/list_model_revisions.py +8 -6
- blaxel/core/client/api/models/list_models.py +5 -5
- blaxel/core/client/api/models/update_model.py +5 -5
- blaxel/core/client/api/policies/create_policy.py +5 -5
- blaxel/core/client/api/policies/delete_policy.py +5 -5
- blaxel/core/client/api/policies/get_policy.py +5 -5
- blaxel/core/client/api/policies/list_policies.py +5 -5
- blaxel/core/client/api/policies/update_policy.py +5 -5
- blaxel/core/client/api/public_ipslist/list_public_ips.py +5 -5
- blaxel/core/client/api/service_accounts/create_api_key_for_service_account.py +5 -5
- blaxel/core/client/api/service_accounts/create_workspace_service_account.py +11 -7
- blaxel/core/client/api/service_accounts/delete_api_key_for_service_account.py +3 -3
- blaxel/core/client/api/service_accounts/delete_workspace_service_account.py +11 -7
- blaxel/core/client/api/service_accounts/get_workspace_service_accounts.py +8 -6
- blaxel/core/client/api/service_accounts/list_api_keys_for_service_account.py +5 -5
- blaxel/core/client/api/service_accounts/update_workspace_service_account.py +11 -7
- blaxel/core/client/api/templates/list_templates.py +5 -5
- blaxel/core/client/api/volume_templates/create_volume_template.py +4 -4
- blaxel/core/client/api/volume_templates/delete_volume_template.py +5 -5
- blaxel/core/client/api/volume_templates/delete_volume_template_version.py +4 -4
- blaxel/core/client/api/volume_templates/get_volume_template.py +5 -5
- blaxel/core/client/api/volume_templates/list_volume_templates.py +8 -6
- blaxel/core/client/api/volume_templates/update_volume_template.py +4 -4
- blaxel/core/client/api/volumes/create_volume.py +5 -5
- blaxel/core/client/api/volumes/delete_volume.py +5 -5
- blaxel/core/client/api/volumes/get_volume.py +5 -5
- blaxel/core/client/api/volumes/list_volumes.py +5 -5
- blaxel/core/client/api/workspaces/accept_workspace_invitation.py +10 -6
- blaxel/core/client/api/workspaces/check_workspace_availability.py +5 -5
- blaxel/core/client/api/workspaces/create_workspace.py +5 -5
- blaxel/core/client/api/workspaces/decline_workspace_invitation.py +5 -5
- blaxel/core/client/api/workspaces/delete_workspace.py +5 -5
- blaxel/core/client/api/workspaces/get_workspace.py +5 -5
- blaxel/core/client/api/workspaces/invite_workspace_user.py +10 -6
- blaxel/core/client/api/workspaces/leave_workspace.py +4 -4
- blaxel/core/client/api/workspaces/list_workspace_users.py +5 -5
- blaxel/core/client/api/workspaces/list_workspaces.py +5 -5
- blaxel/core/client/api/workspaces/remove_workspace_user.py +3 -3
- blaxel/core/client/api/workspaces/update_workspace.py +5 -5
- blaxel/core/client/api/workspaces/update_workspace_user_role.py +10 -6
- blaxel/core/client/client.py +5 -19
- blaxel/core/client/models/acl.py +3 -3
- blaxel/core/client/models/agent.py +12 -5
- blaxel/core/client/models/agent_spec.py +22 -7
- blaxel/core/client/models/api_key.py +6 -6
- blaxel/core/client/models/billable_time_metric.py +3 -4
- blaxel/core/client/models/check_workspace_availability_body.py +1 -1
- blaxel/core/client/models/cleanup_images_response_200.py +1 -1
- blaxel/core/client/models/configuration.py +2 -3
- blaxel/core/client/models/continent.py +2 -2
- blaxel/core/client/models/core_event.py +3 -3
- blaxel/core/client/models/core_spec.py +14 -5
- blaxel/core/client/models/core_spec_configurations.py +1 -2
- blaxel/core/client/models/country.py +2 -2
- blaxel/core/client/models/create_api_key_for_service_account_body.py +1 -1
- blaxel/core/client/models/create_job_execution_request.py +4 -5
- blaxel/core/client/models/create_job_execution_request_tasks_item.py +1 -1
- blaxel/core/client/models/create_job_execution_response.py +4 -5
- blaxel/core/client/models/create_job_execution_response_tasks_item.py +1 -1
- blaxel/core/client/models/create_workspace_service_account_body.py +1 -1
- blaxel/core/client/models/create_workspace_service_account_response_200.py +1 -1
- blaxel/core/client/models/custom_domain.py +6 -3
- blaxel/core/client/models/custom_domain_metadata.py +6 -7
- blaxel/core/client/models/custom_domain_spec.py +10 -7
- blaxel/core/client/models/custom_domain_spec_txt_records.py +1 -1
- blaxel/core/client/models/delete_sandbox_preview_token_response_200.py +1 -1
- blaxel/core/client/models/delete_volume_template_version_response_200.py +6 -3
- blaxel/core/client/models/delete_workspace_service_account_response_200.py +1 -1
- blaxel/core/client/models/entrypoint.py +4 -3
- blaxel/core/client/models/entrypoint_env.py +1 -1
- blaxel/core/client/models/expiration_policy.py +2 -2
- blaxel/core/client/models/flavor.py +2 -2
- blaxel/core/client/models/form.py +6 -3
- blaxel/core/client/models/form_config.py +1 -1
- blaxel/core/client/models/form_oauth.py +1 -1
- blaxel/core/client/models/form_secrets.py +1 -1
- blaxel/core/client/models/function.py +12 -5
- blaxel/core/client/models/function_spec.py +17 -6
- blaxel/core/client/models/get_workspace_service_accounts_response_200_item.py +1 -1
- blaxel/core/client/models/histogram_bucket.py +1 -1
- blaxel/core/client/models/histogram_stats.py +1 -1
- blaxel/core/client/models/image.py +6 -3
- blaxel/core/client/models/image_metadata.py +6 -6
- blaxel/core/client/models/image_spec.py +1 -2
- blaxel/core/client/models/image_tag.py +3 -3
- blaxel/core/client/models/integration.py +12 -5
- blaxel/core/client/models/integration_additional_infos.py +1 -1
- blaxel/core/client/models/integration_connection.py +6 -3
- blaxel/core/client/models/integration_connection_spec.py +1 -2
- blaxel/core/client/models/integration_connection_spec_config.py +1 -1
- blaxel/core/client/models/integration_connection_spec_secret.py +1 -1
- blaxel/core/client/models/integration_endpoint.py +9 -6
- blaxel/core/client/models/integration_endpoint_token.py +1 -1
- blaxel/core/client/models/integration_endpoints.py +1 -3
- blaxel/core/client/models/integration_headers.py +1 -1
- blaxel/core/client/models/integration_model.py +1 -1
- blaxel/core/client/models/integration_organization.py +2 -2
- blaxel/core/client/models/integration_query_params.py +1 -1
- blaxel/core/client/models/integration_repository.py +2 -2
- blaxel/core/client/models/invite_workspace_user_body.py +1 -1
- blaxel/core/client/models/job.py +12 -5
- blaxel/core/client/models/job_execution.py +6 -3
- blaxel/core/client/models/job_execution_config.py +3 -3
- blaxel/core/client/models/job_execution_metadata.py +7 -7
- blaxel/core/client/models/job_execution_spec.py +1 -2
- blaxel/core/client/models/job_execution_stats.py +1 -1
- blaxel/core/client/models/job_execution_task.py +6 -3
- blaxel/core/client/models/job_execution_task_condition.py +3 -3
- blaxel/core/client/models/job_execution_task_metadata.py +6 -6
- blaxel/core/client/models/job_execution_task_spec.py +2 -2
- blaxel/core/client/models/job_metrics.py +15 -12
- blaxel/core/client/models/job_metrics_executions_total.py +1 -1
- blaxel/core/client/models/job_metrics_tasks_total.py +1 -1
- blaxel/core/client/models/job_spec.py +17 -6
- blaxel/core/client/models/jobs_chart_value.py +1 -1
- blaxel/core/client/models/jobs_network_chart.py +1 -2
- blaxel/core/client/models/jobs_success_failed_chart.py +11 -4
- blaxel/core/client/models/jobs_total.py +1 -1
- blaxel/core/client/models/last_n_requests_metric.py +4 -4
- blaxel/core/client/models/latency_metric.py +10 -7
- blaxel/core/client/models/location_response.py +1 -2
- blaxel/core/client/models/logs_response.py +1 -1
- blaxel/core/client/models/logs_response_data.py +4 -4
- blaxel/core/client/models/mcp_definition.py +11 -8
- blaxel/core/client/models/mcp_definition_entrypoint.py +1 -1
- blaxel/core/client/models/mcp_definition_form.py +1 -1
- blaxel/core/client/models/memory_allocation_by_name.py +1 -1
- blaxel/core/client/models/memory_allocation_metric.py +2 -2
- blaxel/core/client/models/metadata.py +6 -7
- blaxel/core/client/models/metadata_labels.py +1 -1
- blaxel/core/client/models/metric.py +2 -2
- blaxel/core/client/models/metrics.py +24 -11
- blaxel/core/client/models/metrics_models.py +1 -1
- blaxel/core/client/models/metrics_request_total_per_code.py +1 -1
- blaxel/core/client/models/metrics_rps_per_code.py +1 -1
- blaxel/core/client/models/model.py +12 -5
- blaxel/core/client/models/model_spec.py +14 -5
- blaxel/core/client/models/o_auth.py +2 -2
- blaxel/core/client/models/owner_fields.py +3 -3
- blaxel/core/client/models/pending_invitation.py +6 -6
- blaxel/core/client/models/pending_invitation_accept.py +6 -3
- blaxel/core/client/models/pending_invitation_render.py +14 -7
- blaxel/core/client/models/pending_invitation_render_invited_by.py +1 -1
- blaxel/core/client/models/pending_invitation_render_workspace.py +2 -2
- blaxel/core/client/models/pending_invitation_workspace_details.py +1 -1
- blaxel/core/client/models/pod_template_spec.py +1 -1
- blaxel/core/client/models/policy.py +6 -3
- blaxel/core/client/models/policy_location.py +2 -2
- blaxel/core/client/models/policy_max_tokens.py +5 -3
- blaxel/core/client/models/policy_spec.py +15 -8
- blaxel/core/client/models/port.py +1 -1
- blaxel/core/client/models/preview.py +6 -3
- blaxel/core/client/models/preview_metadata.py +8 -8
- blaxel/core/client/models/preview_spec.py +5 -6
- blaxel/core/client/models/preview_spec_request_headers.py +1 -1
- blaxel/core/client/models/preview_spec_response_headers.py +1 -1
- blaxel/core/client/models/preview_token.py +6 -3
- blaxel/core/client/models/preview_token_metadata.py +4 -4
- blaxel/core/client/models/preview_token_spec.py +2 -2
- blaxel/core/client/models/private_location.py +1 -1
- blaxel/core/client/models/public_ip.py +3 -3
- blaxel/core/client/models/public_ips.py +1 -2
- blaxel/core/client/models/region.py +2 -2
- blaxel/core/client/models/repository.py +2 -2
- blaxel/core/client/models/request_duration_over_time_metric.py +1 -1
- blaxel/core/client/models/request_duration_over_time_metrics.py +4 -3
- blaxel/core/client/models/request_total_by_origin_metric.py +23 -10
- blaxel/core/client/models/request_total_by_origin_metric_request_total_by_origin.py +1 -1
- blaxel/core/client/models/request_total_by_origin_metric_request_total_by_origin_and_code.py +1 -1
- blaxel/core/client/models/request_total_metric.py +14 -7
- blaxel/core/client/models/request_total_metric_request_total_per_code.py +1 -1
- blaxel/core/client/models/request_total_metric_rps_per_code.py +1 -1
- blaxel/core/client/models/request_total_response_data.py +5 -5
- blaxel/core/client/models/resource.py +6 -4
- blaxel/core/client/models/resource_log.py +1 -1
- blaxel/core/client/models/resource_log_chart.py +1 -1
- blaxel/core/client/models/resource_log_response.py +2 -2
- blaxel/core/client/models/resource_metrics.py +95 -40
- blaxel/core/client/models/resource_metrics_request_total_per_code.py +1 -1
- blaxel/core/client/models/resource_metrics_request_total_per_code_previous.py +1 -1
- blaxel/core/client/models/resource_metrics_rps_per_code.py +1 -1
- blaxel/core/client/models/resource_metrics_rps_per_code_previous.py +1 -1
- blaxel/core/client/models/resource_trace.py +5 -5
- blaxel/core/client/models/revision_configuration.py +3 -3
- blaxel/core/client/models/revision_metadata.py +5 -5
- blaxel/core/client/models/runtime.py +9 -10
- blaxel/core/client/models/runtime_configuration.py +1 -1
- blaxel/core/client/models/runtime_startup_probe.py +1 -1
- blaxel/core/client/models/sandbox.py +13 -6
- blaxel/core/client/models/sandbox_definition.py +3 -4
- blaxel/core/client/models/sandbox_lifecycle.py +2 -3
- blaxel/core/client/models/sandbox_metrics.py +1 -1
- blaxel/core/client/models/sandbox_spec.py +25 -8
- blaxel/core/client/models/serverless_config.py +4 -5
- blaxel/core/client/models/serverless_config_configuration.py +1 -1
- blaxel/core/client/models/spec_configuration.py +1 -1
- blaxel/core/client/models/start_sandbox.py +6 -3
- blaxel/core/client/models/stop_sandbox.py +6 -3
- blaxel/core/client/models/store_agent.py +6 -7
- blaxel/core/client/models/store_agent_labels.py +1 -1
- blaxel/core/client/models/store_configuration.py +7 -6
- blaxel/core/client/models/store_configuration_option.py +2 -2
- blaxel/core/client/models/template.py +6 -7
- blaxel/core/client/models/template_variable.py +1 -1
- blaxel/core/client/models/time_fields.py +3 -3
- blaxel/core/client/models/time_to_first_token_over_time_metrics.py +7 -4
- blaxel/core/client/models/token_rate_metric.py +3 -3
- blaxel/core/client/models/token_rate_metrics.py +4 -5
- blaxel/core/client/models/token_total_metric.py +13 -7
- blaxel/core/client/models/trace_ids_response.py +1 -1
- blaxel/core/client/models/trigger.py +2 -3
- blaxel/core/client/models/trigger_configuration.py +4 -5
- blaxel/core/client/models/trigger_configuration_task.py +1 -1
- blaxel/core/client/models/update_workspace_service_account_body.py +1 -1
- blaxel/core/client/models/update_workspace_service_account_response_200.py +1 -1
- blaxel/core/client/models/update_workspace_user_role_body.py +1 -1
- blaxel/core/client/models/volume.py +13 -6
- blaxel/core/client/models/volume_attachment.py +3 -3
- blaxel/core/client/models/volume_spec.py +2 -2
- blaxel/core/client/models/volume_state.py +2 -2
- blaxel/core/client/models/volume_template.py +6 -3
- blaxel/core/client/models/volume_template_spec.py +2 -2
- blaxel/core/client/models/volume_template_state.py +6 -4
- blaxel/core/client/models/volume_template_version.py +4 -4
- blaxel/core/client/models/websocket_channel.py +4 -4
- blaxel/core/client/models/websocket_message.py +3 -3
- blaxel/core/client/models/workspace.py +13 -10
- blaxel/core/client/models/workspace_labels.py +1 -1
- blaxel/core/client/models/workspace_runtime.py +1 -1
- blaxel/core/client/models/workspace_user.py +1 -1
- blaxel/core/client/response_interceptor.py +3 -1
- blaxel/core/common/autoload.py +9 -11
- blaxel/core/common/env.py +10 -8
- blaxel/core/common/settings.py +7 -5
- blaxel/core/common/webhook.py +0 -1
- blaxel/core/jobs/__init__.py +13 -3
- blaxel/core/mcp/client.py +8 -2
- blaxel/core/mcp/server.py +8 -2
- blaxel/core/models/__init__.py +6 -5
- blaxel/core/sandbox/__init__.py +1 -1
- blaxel/core/sandbox/client/api/codegen/get_codegen_reranking_path.py +10 -6
- blaxel/core/sandbox/client/api/fastapply/put_codegen_fastapply_path.py +10 -6
- blaxel/core/sandbox/client/api/filesystem/delete_filesystem_multipart_upload_id_abort.py +10 -6
- blaxel/core/sandbox/client/api/filesystem/delete_filesystem_path.py +10 -6
- blaxel/core/sandbox/client/api/filesystem/delete_filesystem_tree_path.py +10 -6
- blaxel/core/sandbox/client/api/filesystem/get_filesystem_content_search_path.py +7 -5
- blaxel/core/sandbox/client/api/filesystem/get_filesystem_find_path.py +10 -6
- blaxel/core/sandbox/client/api/filesystem/get_filesystem_multipart.py +4 -4
- blaxel/core/sandbox/client/api/filesystem/get_filesystem_multipart_upload_id_parts.py +4 -4
- blaxel/core/sandbox/client/api/filesystem/get_filesystem_path.py +4 -4
- blaxel/core/sandbox/client/api/filesystem/get_filesystem_search_path.py +10 -6
- blaxel/core/sandbox/client/api/filesystem/get_filesystem_tree_path.py +4 -4
- blaxel/core/sandbox/client/api/filesystem/get_watch_filesystem_path.py +10 -6
- blaxel/core/sandbox/client/api/filesystem/post_filesystem_multipart_initiate_path.py +4 -4
- blaxel/core/sandbox/client/api/filesystem/post_filesystem_multipart_upload_id_complete.py +10 -6
- blaxel/core/sandbox/client/api/filesystem/put_filesystem_multipart_upload_id_part.py +4 -4
- blaxel/core/sandbox/client/api/filesystem/put_filesystem_path.py +10 -6
- blaxel/core/sandbox/client/api/filesystem/put_filesystem_tree_path.py +4 -4
- blaxel/core/sandbox/client/api/network/delete_network_process_pid_monitor.py +4 -4
- blaxel/core/sandbox/client/api/network/get_network_process_pid_ports.py +4 -4
- blaxel/core/sandbox/client/api/network/post_network_process_pid_monitor.py +4 -4
- blaxel/core/sandbox/client/api/process/delete_process_identifier.py +10 -6
- blaxel/core/sandbox/client/api/process/delete_process_identifier_kill.py +10 -6
- blaxel/core/sandbox/client/api/process/get_process.py +8 -6
- blaxel/core/sandbox/client/api/process/get_process_identifier.py +10 -6
- blaxel/core/sandbox/client/api/process/get_process_identifier_logs.py +10 -6
- blaxel/core/sandbox/client/api/process/get_process_identifier_logs_stream.py +10 -6
- blaxel/core/sandbox/client/api/process/post_process.py +10 -6
- blaxel/core/sandbox/client/api/root/delete.py +5 -5
- blaxel/core/sandbox/client/api/root/get.py +5 -5
- blaxel/core/sandbox/client/api/root/options.py +5 -5
- blaxel/core/sandbox/client/api/root/patch.py +5 -5
- blaxel/core/sandbox/client/api/root/post.py +5 -5
- blaxel/core/sandbox/client/api/root/put.py +5 -5
- blaxel/core/sandbox/client/client.py +3 -1
- blaxel/core/sandbox/client/models/apply_edit_request.py +2 -2
- blaxel/core/sandbox/client/models/apply_edit_response.py +3 -3
- blaxel/core/sandbox/client/models/content_search_match.py +1 -1
- blaxel/core/sandbox/client/models/content_search_response.py +1 -1
- blaxel/core/sandbox/client/models/delete_network_process_pid_monitor_response_200.py +1 -1
- blaxel/core/sandbox/client/models/directory.py +1 -1
- blaxel/core/sandbox/client/models/error_response.py +1 -1
- blaxel/core/sandbox/client/models/file.py +2 -2
- blaxel/core/sandbox/client/models/file_request.py +2 -2
- blaxel/core/sandbox/client/models/file_with_content.py +2 -2
- blaxel/core/sandbox/client/models/filesystem_multipart_upload.py +3 -3
- blaxel/core/sandbox/client/models/filesystem_multipart_upload_parts.py +4 -2
- blaxel/core/sandbox/client/models/filesystem_uploaded_part.py +3 -3
- blaxel/core/sandbox/client/models/find_match.py +2 -2
- blaxel/core/sandbox/client/models/find_response.py +1 -1
- blaxel/core/sandbox/client/models/fuzzy_search_match.py +2 -2
- blaxel/core/sandbox/client/models/fuzzy_search_response.py +1 -1
- blaxel/core/sandbox/client/models/get_network_process_pid_ports_response_200.py +1 -1
- blaxel/core/sandbox/client/models/multipart_complete_request.py +1 -1
- blaxel/core/sandbox/client/models/multipart_initiate_request.py +1 -1
- blaxel/core/sandbox/client/models/multipart_initiate_response.py +2 -2
- blaxel/core/sandbox/client/models/multipart_list_parts_response.py +2 -2
- blaxel/core/sandbox/client/models/multipart_list_uploads_response.py +1 -1
- blaxel/core/sandbox/client/models/multipart_part_info.py +2 -2
- blaxel/core/sandbox/client/models/multipart_upload_part_response.py +2 -2
- blaxel/core/sandbox/client/models/port_monitor_request.py +1 -1
- blaxel/core/sandbox/client/models/post_network_process_pid_monitor_response_200.py +1 -1
- blaxel/core/sandbox/client/models/process_logs.py +1 -1
- blaxel/core/sandbox/client/models/process_request.py +6 -6
- blaxel/core/sandbox/client/models/process_request_env.py +1 -1
- blaxel/core/sandbox/client/models/process_response.py +8 -8
- blaxel/core/sandbox/client/models/put_filesystem_multipart_upload_id_part_body.py +1 -1
- blaxel/core/sandbox/client/models/ranked_file.py +1 -1
- blaxel/core/sandbox/client/models/reranking_response.py +1 -1
- blaxel/core/sandbox/client/models/subdirectory.py +1 -1
- blaxel/core/sandbox/client/models/success_response.py +1 -1
- blaxel/core/sandbox/client/models/tree_request.py +1 -1
- blaxel/core/sandbox/client/models/tree_request_files.py +1 -1
- blaxel/core/sandbox/client/models/welcome_response.py +1 -1
- blaxel/core/sandbox/default/__init__.py +0 -1
- blaxel/core/sandbox/default/action.py +3 -3
- blaxel/core/sandbox/default/codegen.py +2 -4
- blaxel/core/sandbox/default/filesystem.py +38 -82
- blaxel/core/sandbox/default/interpreter.py +17 -10
- blaxel/core/sandbox/default/preview.py +6 -2
- blaxel/core/sandbox/default/process.py +20 -11
- blaxel/core/sandbox/default/sandbox.py +24 -14
- blaxel/core/sandbox/sync/__init__.py +0 -2
- blaxel/core/sandbox/sync/action.py +2 -3
- blaxel/core/sandbox/sync/codegen.py +1 -5
- blaxel/core/sandbox/sync/filesystem.py +17 -6
- blaxel/core/sandbox/sync/interpreter.py +10 -6
- blaxel/core/sandbox/sync/network.py +0 -2
- blaxel/core/sandbox/sync/preview.py +76 -33
- blaxel/core/sandbox/sync/process.py +27 -12
- blaxel/core/sandbox/sync/sandbox.py +30 -18
- blaxel/core/sandbox/sync/session.py +6 -4
- blaxel/core/sandbox/types.py +2 -1
- blaxel/core/tools/__init__.py +30 -6
- blaxel/core/tools/common.py +1 -1
- blaxel/core/tools/types.py +2 -1
- blaxel/crewai/model.py +20 -5
- blaxel/googleadk/__init__.py +1 -1
- blaxel/googleadk/tools.py +3 -5
- blaxel/langgraph/custom/gemini.py +126 -133
- blaxel/langgraph/model.py +54 -50
- blaxel/langgraph/tools.py +9 -3
- blaxel/llamaindex/custom/cohere.py +25 -16
- blaxel/llamaindex/model.py +44 -57
- blaxel/llamaindex/tools.py +2 -3
- blaxel/pydantic/custom/gemini.py +3 -3
- blaxel/pydantic/tools.py +2 -4
- blaxel/telemetry/exporters.py +10 -3
- blaxel/telemetry/instrumentation/blaxel_langgraph.py +4 -2
- blaxel/telemetry/instrumentation/blaxel_langgraph_gemini.py +22 -5
- blaxel/telemetry/instrumentation/utils.py +3 -3
- blaxel/telemetry/log/log.py +2 -3
- blaxel/telemetry/log/logger.py +21 -15
- blaxel/telemetry/span.py +10 -6
- {blaxel-0.2.31rc120.dist-info → blaxel-0.2.32.dist-info}/METADATA +2 -2
- blaxel-0.2.32.dist-info/RECORD +506 -0
- blaxel/core/client/api/compute/start_sandbox.py +0 -157
- blaxel/core/client/api/compute/stop_sandbox.py +0 -157
- blaxel-0.2.31rc120.dist-info/RECORD +0 -508
- {blaxel-0.2.31rc120.dist-info → blaxel-0.2.32.dist-info}/WHEEL +0 -0
- {blaxel-0.2.31rc120.dist-info → blaxel-0.2.32.dist-info}/licenses/LICENSE +0 -0
blaxel/core/common/settings.py
CHANGED
|
@@ -69,23 +69,25 @@ class Settings:
|
|
|
69
69
|
return "https://run.blaxel.ai"
|
|
70
70
|
return "https://run.blaxel.dev"
|
|
71
71
|
|
|
72
|
-
|
|
73
72
|
@property
|
|
74
73
|
def sentry_dsn(self) -> str:
|
|
75
74
|
"""Get the Sentry DSN (injected at build time)."""
|
|
76
75
|
import blaxel
|
|
76
|
+
|
|
77
77
|
return blaxel.__sentry_dsn__
|
|
78
78
|
|
|
79
79
|
@property
|
|
80
80
|
def version(self) -> str:
|
|
81
81
|
"""Get the package version (injected at build time)."""
|
|
82
82
|
import blaxel
|
|
83
|
+
|
|
83
84
|
return blaxel.__version__ or "unknown"
|
|
84
85
|
|
|
85
86
|
@property
|
|
86
87
|
def commit(self) -> str:
|
|
87
88
|
"""Get the commit hash (injected at build time)."""
|
|
88
89
|
import blaxel
|
|
90
|
+
|
|
89
91
|
return blaxel.__commit__ or "unknown"
|
|
90
92
|
|
|
91
93
|
@property
|
|
@@ -96,7 +98,6 @@ class Settings:
|
|
|
96
98
|
headers["User-Agent"] = f"blaxel/sdk/python/{self.version} ({os_arch}) blaxel/{self.commit}"
|
|
97
99
|
return headers
|
|
98
100
|
|
|
99
|
-
|
|
100
101
|
@property
|
|
101
102
|
def name(self) -> str:
|
|
102
103
|
"""Get the name."""
|
|
@@ -145,13 +146,13 @@ class Settings:
|
|
|
145
146
|
Get the tracking setting.
|
|
146
147
|
|
|
147
148
|
Priority:
|
|
148
|
-
1. Environment variable
|
|
149
|
+
1. Environment variable DO_NOT_TRACK (true/1 to disable, false/0 to enable)
|
|
149
150
|
2. config.yaml tracking field
|
|
150
151
|
3. Default: true
|
|
151
152
|
"""
|
|
152
|
-
env_value = os.environ.get("
|
|
153
|
+
env_value = os.environ.get("DO_NOT_TRACK")
|
|
153
154
|
if env_value is not None:
|
|
154
|
-
return env_value.lower()
|
|
155
|
+
return env_value.lower() not in ("true", "1")
|
|
155
156
|
|
|
156
157
|
try:
|
|
157
158
|
home_dir = Path.home()
|
|
@@ -165,4 +166,5 @@ class Settings:
|
|
|
165
166
|
|
|
166
167
|
return True
|
|
167
168
|
|
|
169
|
+
|
|
168
170
|
settings = Settings()
|
blaxel/core/common/webhook.py
CHANGED
blaxel/core/jobs/__init__.py
CHANGED
|
@@ -14,7 +14,9 @@ from ..client.api.jobs import (
|
|
|
14
14
|
get_job_execution,
|
|
15
15
|
list_job_executions,
|
|
16
16
|
)
|
|
17
|
-
from ..client.models.create_job_execution_request import
|
|
17
|
+
from ..client.models.create_job_execution_request import (
|
|
18
|
+
CreateJobExecutionRequest,
|
|
19
|
+
)
|
|
18
20
|
from ..client.models.job_execution import JobExecution
|
|
19
21
|
from ..common.internal import get_forced_url, get_global_unique_hash
|
|
20
22
|
from ..common.settings import settings
|
|
@@ -105,7 +107,11 @@ class BlJob:
|
|
|
105
107
|
body = {"tasks": input_data}
|
|
106
108
|
|
|
107
109
|
# Merge settings headers with provided headers
|
|
108
|
-
merged_headers = {
|
|
110
|
+
merged_headers = {
|
|
111
|
+
**settings.headers,
|
|
112
|
+
"Content-Type": "application/json",
|
|
113
|
+
**headers,
|
|
114
|
+
}
|
|
109
115
|
|
|
110
116
|
return client.get_httpx_client().post(
|
|
111
117
|
url + "/executions",
|
|
@@ -119,7 +125,11 @@ class BlJob:
|
|
|
119
125
|
body = {"tasks": input_data}
|
|
120
126
|
|
|
121
127
|
# Merge settings headers with provided headers
|
|
122
|
-
merged_headers = {
|
|
128
|
+
merged_headers = {
|
|
129
|
+
**settings.headers,
|
|
130
|
+
"Content-Type": "application/json",
|
|
131
|
+
**headers,
|
|
132
|
+
}
|
|
123
133
|
|
|
124
134
|
return await client.get_async_httpx_client().post(
|
|
125
135
|
url + "/executions",
|
blaxel/core/mcp/client.py
CHANGED
|
@@ -6,7 +6,10 @@ from urllib.parse import urljoin, urlparse
|
|
|
6
6
|
import anyio
|
|
7
7
|
import mcp.types as types
|
|
8
8
|
from anyio.abc import TaskStatus
|
|
9
|
-
from anyio.streams.memory import
|
|
9
|
+
from anyio.streams.memory import (
|
|
10
|
+
MemoryObjectReceiveStream,
|
|
11
|
+
MemoryObjectSendStream,
|
|
12
|
+
)
|
|
10
13
|
from mcp.shared.message import SessionMessage
|
|
11
14
|
from websockets.asyncio.client import ClientConnection
|
|
12
15
|
from websockets.asyncio.client import connect as ws_connect
|
|
@@ -47,7 +50,10 @@ async def websocket_client(
|
|
|
47
50
|
logger.debug(f"Connecting to WebSocket endpoint: {remove_request_params(ws_url)}")
|
|
48
51
|
|
|
49
52
|
# Use different parameters based on websockets version
|
|
50
|
-
connection_kwargs = {
|
|
53
|
+
connection_kwargs = {
|
|
54
|
+
"additional_headers": headers,
|
|
55
|
+
"open_timeout": timeout,
|
|
56
|
+
}
|
|
51
57
|
|
|
52
58
|
async with ws_connect(ws_url, **connection_kwargs) as websocket:
|
|
53
59
|
logger.debug("WebSocket connection established")
|
blaxel/core/mcp/server.py
CHANGED
|
@@ -6,7 +6,10 @@ from typing import Literal
|
|
|
6
6
|
|
|
7
7
|
import anyio
|
|
8
8
|
import mcp.types as types
|
|
9
|
-
from anyio.streams.memory import
|
|
9
|
+
from anyio.streams.memory import (
|
|
10
|
+
MemoryObjectReceiveStream,
|
|
11
|
+
MemoryObjectSendStream,
|
|
12
|
+
)
|
|
10
13
|
from mcp.server.fastmcp import FastMCP as FastMCPBase
|
|
11
14
|
from mcp.shared.message import SessionMessage
|
|
12
15
|
from websockets.asyncio.server import ServerConnection, serve
|
|
@@ -134,7 +137,10 @@ class FastMCP(FastMCPBase):
|
|
|
134
137
|
anyio.run(self.run_sse_async)
|
|
135
138
|
|
|
136
139
|
async def run_ws_async(self) -> None:
|
|
137
|
-
async with BlaxelMcpServerTransport().websocket_server() as (
|
|
140
|
+
async with BlaxelMcpServerTransport().websocket_server() as (
|
|
141
|
+
read_stream,
|
|
142
|
+
write_stream,
|
|
143
|
+
):
|
|
138
144
|
await self._mcp_server.run(
|
|
139
145
|
read_stream,
|
|
140
146
|
write_stream,
|
blaxel/core/models/__init__.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
from ..cache import find_from_cache
|
|
3
2
|
from ..client import client
|
|
4
3
|
from ..client.api.models import get_model
|
|
@@ -23,21 +22,21 @@ class BLModel:
|
|
|
23
22
|
model_data = await self._get_model_metadata()
|
|
24
23
|
if not model_data:
|
|
25
24
|
raise Exception(f"Model {self.model_name} not found")
|
|
26
|
-
runtime =
|
|
25
|
+
runtime = model_data.spec and model_data.spec.runtime
|
|
27
26
|
if not runtime:
|
|
28
27
|
raise Exception(f"Model {self.model_name} has no runtime")
|
|
29
28
|
|
|
30
|
-
type = runtime.type_ or
|
|
29
|
+
type = runtime.type_ or "openai"
|
|
31
30
|
model = runtime.model
|
|
32
31
|
self.models[self.model_name] = {
|
|
33
32
|
"url": url,
|
|
34
33
|
"type": type,
|
|
35
|
-
"model": model
|
|
34
|
+
"model": model,
|
|
36
35
|
}
|
|
37
36
|
return url, type, model
|
|
38
37
|
|
|
39
38
|
async def _get_model_metadata(self) -> Model | None:
|
|
40
|
-
cache_data = await find_from_cache(
|
|
39
|
+
cache_data = await find_from_cache("Model", self.model_name)
|
|
41
40
|
if cache_data:
|
|
42
41
|
return Model.from_dict(cache_data)
|
|
43
42
|
|
|
@@ -46,7 +45,9 @@ class BLModel:
|
|
|
46
45
|
except Exception:
|
|
47
46
|
return None
|
|
48
47
|
|
|
48
|
+
|
|
49
49
|
def bl_model(model_name, **kwargs):
|
|
50
50
|
return BLModel(model_name, **kwargs)
|
|
51
51
|
|
|
52
|
+
|
|
52
53
|
__all__ = ["bl_model"]
|
blaxel/core/sandbox/__init__.py
CHANGED
|
@@ -39,7 +39,9 @@ def _get_kwargs(
|
|
|
39
39
|
return _kwargs
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
def _parse_response(
|
|
42
|
+
def _parse_response(
|
|
43
|
+
*, client: Client, response: httpx.Response
|
|
44
|
+
) -> Union[ErrorResponse, RerankingResponse] | None:
|
|
43
45
|
if response.status_code == 200:
|
|
44
46
|
response_200 = RerankingResponse.from_dict(response.json())
|
|
45
47
|
|
|
@@ -62,7 +64,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Union[ErrorR
|
|
|
62
64
|
return None
|
|
63
65
|
|
|
64
66
|
|
|
65
|
-
def _build_response(
|
|
67
|
+
def _build_response(
|
|
68
|
+
*, client: Client, response: httpx.Response
|
|
69
|
+
) -> Response[Union[ErrorResponse, RerankingResponse]]:
|
|
66
70
|
return Response(
|
|
67
71
|
status_code=HTTPStatus(response.status_code),
|
|
68
72
|
content=response.content,
|
|
@@ -74,7 +78,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Uni
|
|
|
74
78
|
def sync_detailed(
|
|
75
79
|
path: str,
|
|
76
80
|
*,
|
|
77
|
-
client:
|
|
81
|
+
client: Client,
|
|
78
82
|
query: str,
|
|
79
83
|
score_threshold: Union[Unset, float] = UNSET,
|
|
80
84
|
token_limit: Union[Unset, int] = UNSET,
|
|
@@ -129,7 +133,7 @@ def sync_detailed(
|
|
|
129
133
|
def sync(
|
|
130
134
|
path: str,
|
|
131
135
|
*,
|
|
132
|
-
client:
|
|
136
|
+
client: Client,
|
|
133
137
|
query: str,
|
|
134
138
|
score_threshold: Union[Unset, float] = UNSET,
|
|
135
139
|
token_limit: Union[Unset, int] = UNSET,
|
|
@@ -179,7 +183,7 @@ def sync(
|
|
|
179
183
|
async def asyncio_detailed(
|
|
180
184
|
path: str,
|
|
181
185
|
*,
|
|
182
|
-
client:
|
|
186
|
+
client: Client,
|
|
183
187
|
query: str,
|
|
184
188
|
score_threshold: Union[Unset, float] = UNSET,
|
|
185
189
|
token_limit: Union[Unset, int] = UNSET,
|
|
@@ -232,7 +236,7 @@ async def asyncio_detailed(
|
|
|
232
236
|
async def asyncio(
|
|
233
237
|
path: str,
|
|
234
238
|
*,
|
|
235
|
-
client:
|
|
239
|
+
client: Client,
|
|
236
240
|
query: str,
|
|
237
241
|
score_threshold: Union[Unset, float] = UNSET,
|
|
238
242
|
token_limit: Union[Unset, int] = UNSET,
|
|
@@ -35,7 +35,9 @@ def _get_kwargs(
|
|
|
35
35
|
return _kwargs
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
def _parse_response(
|
|
38
|
+
def _parse_response(
|
|
39
|
+
*, client: Client, response: httpx.Response
|
|
40
|
+
) -> Union[ApplyEditResponse, ErrorResponse] | None:
|
|
39
41
|
if response.status_code == 200:
|
|
40
42
|
response_200 = ApplyEditResponse.from_dict(response.json())
|
|
41
43
|
|
|
@@ -58,7 +60,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Union[ApplyE
|
|
|
58
60
|
return None
|
|
59
61
|
|
|
60
62
|
|
|
61
|
-
def _build_response(
|
|
63
|
+
def _build_response(
|
|
64
|
+
*, client: Client, response: httpx.Response
|
|
65
|
+
) -> Response[Union[ApplyEditResponse, ErrorResponse]]:
|
|
62
66
|
return Response(
|
|
63
67
|
status_code=HTTPStatus(response.status_code),
|
|
64
68
|
content=response.content,
|
|
@@ -70,7 +74,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Uni
|
|
|
70
74
|
def sync_detailed(
|
|
71
75
|
path: str,
|
|
72
76
|
*,
|
|
73
|
-
client:
|
|
77
|
+
client: Client,
|
|
74
78
|
body: ApplyEditRequest,
|
|
75
79
|
) -> Response[Union[ApplyEditResponse, ErrorResponse]]:
|
|
76
80
|
r"""Apply code edit
|
|
@@ -138,7 +142,7 @@ def sync_detailed(
|
|
|
138
142
|
def sync(
|
|
139
143
|
path: str,
|
|
140
144
|
*,
|
|
141
|
-
client:
|
|
145
|
+
client: Client,
|
|
142
146
|
body: ApplyEditRequest,
|
|
143
147
|
) -> Union[ApplyEditResponse, ErrorResponse] | None:
|
|
144
148
|
r"""Apply code edit
|
|
@@ -201,7 +205,7 @@ def sync(
|
|
|
201
205
|
async def asyncio_detailed(
|
|
202
206
|
path: str,
|
|
203
207
|
*,
|
|
204
|
-
client:
|
|
208
|
+
client: Client,
|
|
205
209
|
body: ApplyEditRequest,
|
|
206
210
|
) -> Response[Union[ApplyEditResponse, ErrorResponse]]:
|
|
207
211
|
r"""Apply code edit
|
|
@@ -267,7 +271,7 @@ async def asyncio_detailed(
|
|
|
267
271
|
async def asyncio(
|
|
268
272
|
path: str,
|
|
269
273
|
*,
|
|
270
|
-
client:
|
|
274
|
+
client: Client,
|
|
271
275
|
body: ApplyEditRequest,
|
|
272
276
|
) -> Union[ApplyEditResponse, ErrorResponse] | None:
|
|
273
277
|
r"""Apply code edit
|
|
@@ -21,7 +21,9 @@ def _get_kwargs(
|
|
|
21
21
|
return _kwargs
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
def _parse_response(
|
|
24
|
+
def _parse_response(
|
|
25
|
+
*, client: Client, response: httpx.Response
|
|
26
|
+
) -> Union[ErrorResponse, SuccessResponse] | None:
|
|
25
27
|
if response.status_code == 200:
|
|
26
28
|
response_200 = SuccessResponse.from_dict(response.json())
|
|
27
29
|
|
|
@@ -44,7 +46,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Union[ErrorR
|
|
|
44
46
|
return None
|
|
45
47
|
|
|
46
48
|
|
|
47
|
-
def _build_response(
|
|
49
|
+
def _build_response(
|
|
50
|
+
*, client: Client, response: httpx.Response
|
|
51
|
+
) -> Response[Union[ErrorResponse, SuccessResponse]]:
|
|
48
52
|
return Response(
|
|
49
53
|
status_code=HTTPStatus(response.status_code),
|
|
50
54
|
content=response.content,
|
|
@@ -56,7 +60,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Uni
|
|
|
56
60
|
def sync_detailed(
|
|
57
61
|
upload_id: str,
|
|
58
62
|
*,
|
|
59
|
-
client:
|
|
63
|
+
client: Client,
|
|
60
64
|
) -> Response[Union[ErrorResponse, SuccessResponse]]:
|
|
61
65
|
"""Abort multipart upload
|
|
62
66
|
|
|
@@ -87,7 +91,7 @@ def sync_detailed(
|
|
|
87
91
|
def sync(
|
|
88
92
|
upload_id: str,
|
|
89
93
|
*,
|
|
90
|
-
client:
|
|
94
|
+
client: Client,
|
|
91
95
|
) -> Union[ErrorResponse, SuccessResponse] | None:
|
|
92
96
|
"""Abort multipart upload
|
|
93
97
|
|
|
@@ -113,7 +117,7 @@ def sync(
|
|
|
113
117
|
async def asyncio_detailed(
|
|
114
118
|
upload_id: str,
|
|
115
119
|
*,
|
|
116
|
-
client:
|
|
120
|
+
client: Client,
|
|
117
121
|
) -> Response[Union[ErrorResponse, SuccessResponse]]:
|
|
118
122
|
"""Abort multipart upload
|
|
119
123
|
|
|
@@ -142,7 +146,7 @@ async def asyncio_detailed(
|
|
|
142
146
|
async def asyncio(
|
|
143
147
|
upload_id: str,
|
|
144
148
|
*,
|
|
145
|
-
client:
|
|
149
|
+
client: Client,
|
|
146
150
|
) -> Union[ErrorResponse, SuccessResponse] | None:
|
|
147
151
|
"""Abort multipart upload
|
|
148
152
|
|
|
@@ -30,7 +30,9 @@ def _get_kwargs(
|
|
|
30
30
|
return _kwargs
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
def _parse_response(
|
|
33
|
+
def _parse_response(
|
|
34
|
+
*, client: Client, response: httpx.Response
|
|
35
|
+
) -> Union[ErrorResponse, SuccessResponse] | None:
|
|
34
36
|
if response.status_code == 200:
|
|
35
37
|
response_200 = SuccessResponse.from_dict(response.json())
|
|
36
38
|
|
|
@@ -53,7 +55,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Union[ErrorR
|
|
|
53
55
|
return None
|
|
54
56
|
|
|
55
57
|
|
|
56
|
-
def _build_response(
|
|
58
|
+
def _build_response(
|
|
59
|
+
*, client: Client, response: httpx.Response
|
|
60
|
+
) -> Response[Union[ErrorResponse, SuccessResponse]]:
|
|
57
61
|
return Response(
|
|
58
62
|
status_code=HTTPStatus(response.status_code),
|
|
59
63
|
content=response.content,
|
|
@@ -65,7 +69,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Uni
|
|
|
65
69
|
def sync_detailed(
|
|
66
70
|
path: str,
|
|
67
71
|
*,
|
|
68
|
-
client:
|
|
72
|
+
client: Client,
|
|
69
73
|
recursive: Union[Unset, bool] = UNSET,
|
|
70
74
|
) -> Response[Union[ErrorResponse, SuccessResponse]]:
|
|
71
75
|
"""Delete file or directory
|
|
@@ -99,7 +103,7 @@ def sync_detailed(
|
|
|
99
103
|
def sync(
|
|
100
104
|
path: str,
|
|
101
105
|
*,
|
|
102
|
-
client:
|
|
106
|
+
client: Client,
|
|
103
107
|
recursive: Union[Unset, bool] = UNSET,
|
|
104
108
|
) -> Union[ErrorResponse, SuccessResponse] | None:
|
|
105
109
|
"""Delete file or directory
|
|
@@ -128,7 +132,7 @@ def sync(
|
|
|
128
132
|
async def asyncio_detailed(
|
|
129
133
|
path: str,
|
|
130
134
|
*,
|
|
131
|
-
client:
|
|
135
|
+
client: Client,
|
|
132
136
|
recursive: Union[Unset, bool] = UNSET,
|
|
133
137
|
) -> Response[Union[ErrorResponse, SuccessResponse]]:
|
|
134
138
|
"""Delete file or directory
|
|
@@ -160,7 +164,7 @@ async def asyncio_detailed(
|
|
|
160
164
|
async def asyncio(
|
|
161
165
|
path: str,
|
|
162
166
|
*,
|
|
163
|
-
client:
|
|
167
|
+
client: Client,
|
|
164
168
|
recursive: Union[Unset, bool] = UNSET,
|
|
165
169
|
) -> Union[ErrorResponse, SuccessResponse] | None:
|
|
166
170
|
"""Delete file or directory
|
|
@@ -30,7 +30,9 @@ def _get_kwargs(
|
|
|
30
30
|
return _kwargs
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
def _parse_response(
|
|
33
|
+
def _parse_response(
|
|
34
|
+
*, client: Client, response: httpx.Response
|
|
35
|
+
) -> Union[ErrorResponse, SuccessResponse] | None:
|
|
34
36
|
if response.status_code == 200:
|
|
35
37
|
response_200 = SuccessResponse.from_dict(response.json())
|
|
36
38
|
|
|
@@ -53,7 +55,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Union[ErrorR
|
|
|
53
55
|
return None
|
|
54
56
|
|
|
55
57
|
|
|
56
|
-
def _build_response(
|
|
58
|
+
def _build_response(
|
|
59
|
+
*, client: Client, response: httpx.Response
|
|
60
|
+
) -> Response[Union[ErrorResponse, SuccessResponse]]:
|
|
57
61
|
return Response(
|
|
58
62
|
status_code=HTTPStatus(response.status_code),
|
|
59
63
|
content=response.content,
|
|
@@ -65,7 +69,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Uni
|
|
|
65
69
|
def sync_detailed(
|
|
66
70
|
path: str,
|
|
67
71
|
*,
|
|
68
|
-
client:
|
|
72
|
+
client: Client,
|
|
69
73
|
recursive: Union[Unset, bool] = UNSET,
|
|
70
74
|
) -> Response[Union[ErrorResponse, SuccessResponse]]:
|
|
71
75
|
"""Delete directory tree
|
|
@@ -99,7 +103,7 @@ def sync_detailed(
|
|
|
99
103
|
def sync(
|
|
100
104
|
path: str,
|
|
101
105
|
*,
|
|
102
|
-
client:
|
|
106
|
+
client: Client,
|
|
103
107
|
recursive: Union[Unset, bool] = UNSET,
|
|
104
108
|
) -> Union[ErrorResponse, SuccessResponse] | None:
|
|
105
109
|
"""Delete directory tree
|
|
@@ -128,7 +132,7 @@ def sync(
|
|
|
128
132
|
async def asyncio_detailed(
|
|
129
133
|
path: str,
|
|
130
134
|
*,
|
|
131
|
-
client:
|
|
135
|
+
client: Client,
|
|
132
136
|
recursive: Union[Unset, bool] = UNSET,
|
|
133
137
|
) -> Response[Union[ErrorResponse, SuccessResponse]]:
|
|
134
138
|
"""Delete directory tree
|
|
@@ -160,7 +164,7 @@ async def asyncio_detailed(
|
|
|
160
164
|
async def asyncio(
|
|
161
165
|
path: str,
|
|
162
166
|
*,
|
|
163
|
-
client:
|
|
167
|
+
client: Client,
|
|
164
168
|
recursive: Union[Unset, bool] = UNSET,
|
|
165
169
|
) -> Union[ErrorResponse, SuccessResponse] | None:
|
|
166
170
|
"""Delete directory tree
|
|
@@ -42,7 +42,9 @@ def _get_kwargs(
|
|
|
42
42
|
return _kwargs
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
def _parse_response(
|
|
45
|
+
def _parse_response(
|
|
46
|
+
*, client: Client, response: httpx.Response
|
|
47
|
+
) -> Union[ContentSearchResponse, ErrorResponse] | None:
|
|
46
48
|
if response.status_code == 200:
|
|
47
49
|
response_200 = ContentSearchResponse.from_dict(response.json())
|
|
48
50
|
|
|
@@ -79,7 +81,7 @@ def _build_response(
|
|
|
79
81
|
def sync_detailed(
|
|
80
82
|
path: str,
|
|
81
83
|
*,
|
|
82
|
-
client:
|
|
84
|
+
client: Client,
|
|
83
85
|
query: str,
|
|
84
86
|
case_sensitive: Union[Unset, bool] = UNSET,
|
|
85
87
|
max_results: Union[Unset, int] = UNSET,
|
|
@@ -125,7 +127,7 @@ def sync_detailed(
|
|
|
125
127
|
def sync(
|
|
126
128
|
path: str,
|
|
127
129
|
*,
|
|
128
|
-
client:
|
|
130
|
+
client: Client,
|
|
129
131
|
query: str,
|
|
130
132
|
case_sensitive: Union[Unset, bool] = UNSET,
|
|
131
133
|
max_results: Union[Unset, int] = UNSET,
|
|
@@ -166,7 +168,7 @@ def sync(
|
|
|
166
168
|
async def asyncio_detailed(
|
|
167
169
|
path: str,
|
|
168
170
|
*,
|
|
169
|
-
client:
|
|
171
|
+
client: Client,
|
|
170
172
|
query: str,
|
|
171
173
|
case_sensitive: Union[Unset, bool] = UNSET,
|
|
172
174
|
max_results: Union[Unset, int] = UNSET,
|
|
@@ -210,7 +212,7 @@ async def asyncio_detailed(
|
|
|
210
212
|
async def asyncio(
|
|
211
213
|
path: str,
|
|
212
214
|
*,
|
|
213
|
-
client:
|
|
215
|
+
client: Client,
|
|
214
216
|
query: str,
|
|
215
217
|
case_sensitive: Union[Unset, bool] = UNSET,
|
|
216
218
|
max_results: Union[Unset, int] = UNSET,
|
|
@@ -42,7 +42,9 @@ def _get_kwargs(
|
|
|
42
42
|
return _kwargs
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
def _parse_response(
|
|
45
|
+
def _parse_response(
|
|
46
|
+
*, client: Client, response: httpx.Response
|
|
47
|
+
) -> Union[ErrorResponse, FindResponse] | None:
|
|
46
48
|
if response.status_code == 200:
|
|
47
49
|
response_200 = FindResponse.from_dict(response.json())
|
|
48
50
|
|
|
@@ -65,7 +67,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Union[ErrorR
|
|
|
65
67
|
return None
|
|
66
68
|
|
|
67
69
|
|
|
68
|
-
def _build_response(
|
|
70
|
+
def _build_response(
|
|
71
|
+
*, client: Client, response: httpx.Response
|
|
72
|
+
) -> Response[Union[ErrorResponse, FindResponse]]:
|
|
69
73
|
return Response(
|
|
70
74
|
status_code=HTTPStatus(response.status_code),
|
|
71
75
|
content=response.content,
|
|
@@ -77,7 +81,7 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Uni
|
|
|
77
81
|
def sync_detailed(
|
|
78
82
|
path: str,
|
|
79
83
|
*,
|
|
80
|
-
client:
|
|
84
|
+
client: Client,
|
|
81
85
|
type_: Union[Unset, str] = UNSET,
|
|
82
86
|
patterns: Union[Unset, str] = UNSET,
|
|
83
87
|
max_results: Union[Unset, int] = UNSET,
|
|
@@ -123,7 +127,7 @@ def sync_detailed(
|
|
|
123
127
|
def sync(
|
|
124
128
|
path: str,
|
|
125
129
|
*,
|
|
126
|
-
client:
|
|
130
|
+
client: Client,
|
|
127
131
|
type_: Union[Unset, str] = UNSET,
|
|
128
132
|
patterns: Union[Unset, str] = UNSET,
|
|
129
133
|
max_results: Union[Unset, int] = UNSET,
|
|
@@ -164,7 +168,7 @@ def sync(
|
|
|
164
168
|
async def asyncio_detailed(
|
|
165
169
|
path: str,
|
|
166
170
|
*,
|
|
167
|
-
client:
|
|
171
|
+
client: Client,
|
|
168
172
|
type_: Union[Unset, str] = UNSET,
|
|
169
173
|
patterns: Union[Unset, str] = UNSET,
|
|
170
174
|
max_results: Union[Unset, int] = UNSET,
|
|
@@ -208,7 +212,7 @@ async def asyncio_detailed(
|
|
|
208
212
|
async def asyncio(
|
|
209
213
|
path: str,
|
|
210
214
|
*,
|
|
211
|
-
client:
|
|
215
|
+
client: Client,
|
|
212
216
|
type_: Union[Unset, str] = UNSET,
|
|
213
217
|
patterns: Union[Unset, str] = UNSET,
|
|
214
218
|
max_results: Union[Unset, int] = UNSET,
|
|
@@ -49,7 +49,7 @@ def _build_response(
|
|
|
49
49
|
|
|
50
50
|
def sync_detailed(
|
|
51
51
|
*,
|
|
52
|
-
client:
|
|
52
|
+
client: Client,
|
|
53
53
|
) -> Response[Union[ErrorResponse, MultipartListUploadsResponse]]:
|
|
54
54
|
"""List multipart uploads
|
|
55
55
|
|
|
@@ -74,7 +74,7 @@ def sync_detailed(
|
|
|
74
74
|
|
|
75
75
|
def sync(
|
|
76
76
|
*,
|
|
77
|
-
client:
|
|
77
|
+
client: Client,
|
|
78
78
|
) -> Union[ErrorResponse, MultipartListUploadsResponse] | None:
|
|
79
79
|
"""List multipart uploads
|
|
80
80
|
|
|
@@ -95,7 +95,7 @@ def sync(
|
|
|
95
95
|
|
|
96
96
|
async def asyncio_detailed(
|
|
97
97
|
*,
|
|
98
|
-
client:
|
|
98
|
+
client: Client,
|
|
99
99
|
) -> Response[Union[ErrorResponse, MultipartListUploadsResponse]]:
|
|
100
100
|
"""List multipart uploads
|
|
101
101
|
|
|
@@ -118,7 +118,7 @@ async def asyncio_detailed(
|
|
|
118
118
|
|
|
119
119
|
async def asyncio(
|
|
120
120
|
*,
|
|
121
|
-
client:
|
|
121
|
+
client: Client,
|
|
122
122
|
) -> Union[ErrorResponse, MultipartListUploadsResponse] | None:
|
|
123
123
|
"""List multipart uploads
|
|
124
124
|
|
|
@@ -60,7 +60,7 @@ def _build_response(
|
|
|
60
60
|
def sync_detailed(
|
|
61
61
|
upload_id: str,
|
|
62
62
|
*,
|
|
63
|
-
client:
|
|
63
|
+
client: Client,
|
|
64
64
|
) -> Response[Union[ErrorResponse, MultipartListPartsResponse]]:
|
|
65
65
|
"""List parts
|
|
66
66
|
|
|
@@ -91,7 +91,7 @@ def sync_detailed(
|
|
|
91
91
|
def sync(
|
|
92
92
|
upload_id: str,
|
|
93
93
|
*,
|
|
94
|
-
client:
|
|
94
|
+
client: Client,
|
|
95
95
|
) -> Union[ErrorResponse, MultipartListPartsResponse] | None:
|
|
96
96
|
"""List parts
|
|
97
97
|
|
|
@@ -117,7 +117,7 @@ def sync(
|
|
|
117
117
|
async def asyncio_detailed(
|
|
118
118
|
upload_id: str,
|
|
119
119
|
*,
|
|
120
|
-
client:
|
|
120
|
+
client: Client,
|
|
121
121
|
) -> Response[Union[ErrorResponse, MultipartListPartsResponse]]:
|
|
122
122
|
"""List parts
|
|
123
123
|
|
|
@@ -146,7 +146,7 @@ async def asyncio_detailed(
|
|
|
146
146
|
async def asyncio(
|
|
147
147
|
upload_id: str,
|
|
148
148
|
*,
|
|
149
|
-
client:
|
|
149
|
+
client: Client,
|
|
150
150
|
) -> Union[ErrorResponse, MultipartListPartsResponse] | None:
|
|
151
151
|
"""List parts
|
|
152
152
|
|