anthropic 2.8.0 → 2.10.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +72 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +11 -0
- data/lib/anthropic/errors.rb +4 -0
- data/lib/anthropic/helpers/bedrock/client.rb +6 -6
- data/lib/anthropic/helpers/threads/beta_message_thread.rb +30 -6
- data/lib/anthropic/helpers/tools/runner.rb +21 -4
- data/lib/anthropic/helpers/tracing/streamed_message.rb +8 -1
- data/lib/anthropic/internal/tracing.rb +1 -0
- data/lib/anthropic/internal/type/file_input.rb +11 -0
- data/lib/anthropic/internal/type/union.rb +26 -0
- data/lib/anthropic/internal/util.rb +46 -12
- data/lib/anthropic/models/anthropic_beta.rb +47 -30
- data/lib/anthropic/models/authentication_error.rb +2 -22
- data/lib/anthropic/models/authentication_error_object.rb +28 -0
- data/lib/anthropic/models/bash_code_execution_tool_result_block.rb +4 -4
- data/lib/anthropic/models/bash_code_execution_tool_result_error.rb +3 -15
- data/lib/anthropic/models/bash_code_execution_tool_result_error_object.rb +21 -0
- data/lib/anthropic/models/beta/beta_advisor_tool_result_block.rb +4 -4
- data/lib/anthropic/models/beta/beta_advisor_tool_result_error.rb +2 -31
- data/lib/anthropic/models/beta/beta_advisor_tool_result_error_object.rb +41 -0
- data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rb +4 -4
- data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rb +4 -29
- data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rb +39 -0
- data/lib/anthropic/models/beta/beta_bill_to.rb +20 -0
- data/lib/anthropic/models/beta/beta_billing_policy.rb +36 -0
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_block.rb +2 -2
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_content.rb +2 -2
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_error.rb +3 -15
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_error_object.rb +25 -0
- data/lib/anthropic/models/beta/beta_content_block.rb +1 -1
- data/lib/anthropic/models/beta/beta_content_block_param.rb +1 -1
- data/lib/anthropic/models/beta/beta_dream.rb +3 -3
- data/lib/anthropic/models/beta/beta_dream_error.rb +2 -27
- data/lib/anthropic/models/beta/beta_dream_error_object.rb +37 -0
- data/lib/anthropic/models/beta/beta_dreaming_error.rb +2 -90
- data/lib/anthropic/models/beta/beta_dreaming_error_object.rb +100 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_auto_policy.rb +3 -1
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rb +4 -130
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rb +143 -0
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +41 -36
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rb +4 -12
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rb +23 -0
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rb +4 -20
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +3 -2
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rb +5 -11
- data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rb +5 -12
- data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rb +23 -0
- data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rb +4 -20
- data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rb +31 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rb +4 -20
- data/lib/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rb +31 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rb +5 -11
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rb +4 -12
- data/lib/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rb +23 -0
- data/lib/anthropic/models/beta/beta_managed_agents_unknown_run_error.rb +3 -20
- data/lib/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +1 -1
- data/lib/anthropic/models/beta/beta_target_store_held_error.rb +2 -26
- data/lib/anthropic/models/beta/beta_target_store_held_error_object.rb +36 -0
- data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rb +4 -4
- data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb +4 -35
- data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rb +46 -0
- data/lib/anthropic/models/beta/beta_tool_search_tool_result_block.rb +4 -4
- data/lib/anthropic/models/beta/beta_tool_search_tool_result_error.rb +3 -34
- data/lib/anthropic/models/beta/beta_tool_search_tool_result_error_object.rb +44 -0
- data/lib/anthropic/models/beta/beta_web_search_tool_request_error.rb +3 -15
- data/lib/anthropic/models/beta/beta_web_search_tool_request_error_object.rb +25 -0
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block.rb +2 -2
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block_content.rb +2 -2
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param.rb +2 -2
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rb +2 -2
- data/lib/anthropic/models/beta/beta_web_search_tool_result_error.rb +3 -15
- data/lib/anthropic/models/beta/beta_web_search_tool_result_error_object.rb +25 -0
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +12 -2
- data/lib/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rb +34 -0
- data/lib/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rb +34 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rb +4 -15
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rb +25 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +2 -114
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rb +124 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +4 -52
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rb +62 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +4 -26
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rb +36 -0
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +12 -1
- data/lib/anthropic/models/beta/message_create_params.rb +15 -1
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +15 -1
- data/lib/anthropic/models/beta/organization/beta_aws_external_key_config.rb +1 -2
- data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_external_key.rb +2 -2
- data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +2 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +2 -0
- data/lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb +11 -2
- data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rb +4 -26
- data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rb +3 -3
- data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +14 -5
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source.rb +52 -0
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source_custom.rb +20 -0
- data/lib/anthropic/models/beta/organization/beta_workspace.rb +7 -6
- data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rb +15 -2
- data/lib/anthropic/models/beta/organization/claude_tag/bundle_update_params.rb +50 -0
- data/lib/anthropic/models/beta/organization/external_key_create_params.rb +3 -2
- data/lib/anthropic/models/beta/organization/plugin_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_marketplace_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/installation_setting_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/share_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_download_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/webhook_create_params.rb +2 -0
- data/lib/anthropic/models/beta/organization/webhook_update_params.rb +2 -0
- data/lib/anthropic/models/beta/organization/workspace_create_params.rb +7 -6
- data/lib/anthropic/models/beta/organization/workspace_update_params.rb +9 -7
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb +7 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +3 -84
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rb +94 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rb +4 -85
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rb +95 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +4 -99
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rb +109 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rb +4 -25
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rb +35 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +4 -90
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rb +100 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +4 -90
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rb +100 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +4 -83
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rb +93 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +4 -82
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rb +92 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +4 -82
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rb +92 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rb +4 -24
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rb +4 -98
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rb +108 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rb +4 -97
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rb +107 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rb +4 -97
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rb +107 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rb +4 -97
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rb +107 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rb +4 -97
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rb +107 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +36 -34
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rb +4 -24
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rb +4 -24
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rb +4 -86
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rb +96 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +3 -84
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rb +94 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rb +4 -24
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rb +4 -73
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rb +83 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rb +5 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rb +4 -19
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rb +29 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rb +2 -2
- data/lib/anthropic/models/beta_api_error.rb +2 -22
- data/lib/anthropic/models/beta_api_error_object.rb +28 -0
- data/lib/anthropic/models/beta_authentication_error.rb +2 -22
- data/lib/anthropic/models/beta_authentication_error_object.rb +28 -0
- data/lib/anthropic/models/beta_billing_error.rb +2 -22
- data/lib/anthropic/models/beta_billing_error_object.rb +28 -0
- data/lib/anthropic/models/beta_error.rb +2 -82
- data/lib/anthropic/models/beta_error_object.rb +88 -0
- data/lib/anthropic/models/beta_error_response.rb +3 -3
- data/lib/anthropic/models/beta_gateway_timeout_error.rb +2 -22
- data/lib/anthropic/models/beta_gateway_timeout_error_object.rb +28 -0
- data/lib/anthropic/models/beta_invalid_request_error.rb +2 -22
- data/lib/anthropic/models/beta_invalid_request_error_object.rb +28 -0
- data/lib/anthropic/models/beta_not_found_error.rb +2 -22
- data/lib/anthropic/models/beta_not_found_error_object.rb +28 -0
- data/lib/anthropic/models/beta_overloaded_error.rb +2 -22
- data/lib/anthropic/models/beta_overloaded_error_object.rb +28 -0
- data/lib/anthropic/models/beta_permission_error.rb +2 -22
- data/lib/anthropic/models/beta_permission_error_object.rb +28 -0
- data/lib/anthropic/models/beta_rate_limit_error.rb +2 -22
- data/lib/anthropic/models/beta_rate_limit_error_object.rb +28 -0
- data/lib/anthropic/models/billing_error.rb +2 -22
- data/lib/anthropic/models/billing_error_object.rb +28 -0
- data/lib/anthropic/models/code_execution_tool_result_block.rb +2 -2
- data/lib/anthropic/models/code_execution_tool_result_block_content.rb +2 -2
- data/lib/anthropic/models/code_execution_tool_result_error.rb +3 -15
- data/lib/anthropic/models/code_execution_tool_result_error_object.rb +21 -0
- data/lib/anthropic/models/content_block.rb +1 -1
- data/lib/anthropic/models/content_block_param.rb +1 -1
- data/lib/anthropic/models/contract_spend_limit_reached_error.rb +19 -0
- data/lib/anthropic/models/contract_spend_limit_reached_error_details.rb +17 -0
- data/lib/anthropic/models/error_details.rb +67 -3
- data/lib/anthropic/models/error_object.rb +18 -18
- data/lib/anthropic/models/error_response.rb +2 -2
- data/lib/anthropic/models/gateway_timeout_error.rb +2 -22
- data/lib/anthropic/models/gateway_timeout_error_object.rb +28 -0
- data/lib/anthropic/models/invalid_request_error.rb +2 -22
- data/lib/anthropic/models/invalid_request_error_object.rb +28 -0
- data/lib/anthropic/models/linked_organization_billing_unavailable_error.rb +21 -0
- data/lib/anthropic/models/linked_organization_billing_unavailable_error_details.rb +19 -0
- data/lib/anthropic/models/linked_organization_spend_limit_reached_error.rb +21 -0
- data/lib/anthropic/models/linked_organization_spend_limit_reached_error_details.rb +19 -0
- data/lib/anthropic/models/not_found_error.rb +2 -22
- data/lib/anthropic/models/not_found_error_object.rb +28 -0
- data/lib/anthropic/models/organization/aws_external_key_config.rb +1 -2
- data/lib/anthropic/models/organization/external_key.rb +2 -2
- data/lib/anthropic/models/organization/external_key_create_params.rb +3 -2
- data/lib/anthropic/models/organization/key_profile_mismatch_error.rb +3 -3
- data/lib/anthropic/models/organization/key_profile_mismatch_error_details.rb +3 -3
- data/lib/anthropic/models/organization/rbac_role.rb +14 -5
- data/lib/anthropic/models/organization/rbac_role_source.rb +50 -0
- data/lib/anthropic/models/organization/rbac_role_source_built_in.rb +22 -0
- data/lib/anthropic/models/organization/rbac_role_source_custom.rb +18 -0
- data/lib/anthropic/models/organization/workspace.rb +7 -6
- data/lib/anthropic/models/organization/workspace_create_params.rb +7 -6
- data/lib/anthropic/models/organization/workspace_update_params.rb +9 -7
- data/lib/anthropic/models/overloaded_error.rb +2 -22
- data/lib/anthropic/models/overloaded_error_object.rb +28 -0
- data/lib/anthropic/models/parent_organization_required_error.rb +20 -0
- data/lib/anthropic/models/parent_organization_required_error_details.rb +18 -0
- data/lib/anthropic/models/permission_error.rb +2 -22
- data/lib/anthropic/models/permission_error_object.rb +28 -0
- data/lib/anthropic/models/rate_limit_error.rb +2 -22
- data/lib/anthropic/models/rate_limit_error_object.rb +28 -0
- data/lib/anthropic/models/raw_content_block_start_event.rb +1 -1
- data/lib/anthropic/models/rbac_role_not_found_error.rb +19 -0
- data/lib/anthropic/models/rbac_role_not_found_error_details.rb +17 -0
- data/lib/anthropic/models/text_editor_code_execution_tool_result_block.rb +4 -4
- data/lib/anthropic/models/text_editor_code_execution_tool_result_error.rb +3 -21
- data/lib/anthropic/models/text_editor_code_execution_tool_result_error_object.rb +27 -0
- data/lib/anthropic/models/tool_search_tool_result_block.rb +4 -4
- data/lib/anthropic/models/tool_search_tool_result_error.rb +2 -21
- data/lib/anthropic/models/tool_search_tool_result_error_object.rb +27 -0
- data/lib/anthropic/models/user_profile_billing_not_authorized_error.rb +21 -0
- data/lib/anthropic/models/user_profile_billing_not_authorized_error_details.rb +19 -0
- data/lib/anthropic/models/user_profile_not_billable_error.rb +20 -0
- data/lib/anthropic/models/user_profile_not_billable_error_details.rb +18 -0
- data/lib/anthropic/models/user_profile_required_error.rb +20 -0
- data/lib/anthropic/models/user_profile_required_error_details.rb +18 -0
- data/lib/anthropic/models/web_search_tool_request_error.rb +2 -15
- data/lib/anthropic/models/web_search_tool_request_error_object.rb +21 -0
- data/lib/anthropic/models/web_search_tool_result_block.rb +2 -2
- data/lib/anthropic/models/web_search_tool_result_block_content.rb +2 -2
- data/lib/anthropic/models/web_search_tool_result_block_param.rb +2 -2
- data/lib/anthropic/models/web_search_tool_result_block_param_content.rb +2 -2
- data/lib/anthropic/models/web_search_tool_result_error.rb +2 -15
- data/lib/anthropic/models/web_search_tool_result_error_object.rb +21 -0
- data/lib/anthropic/models.rb +84 -0
- data/lib/anthropic/resources/beta/environments/work.rb +21 -20
- data/lib/anthropic/resources/beta/messages/batches.rb +6 -6
- data/lib/anthropic/resources/beta/messages.rb +65 -5
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +51 -0
- data/lib/anthropic/resources/beta/organization/plugins.rb +6 -2
- data/lib/anthropic/resources/beta/organization/rbac_roles/permissions.rb +4 -0
- data/lib/anthropic/resources/beta/organization/rbac_roles.rb +7 -0
- data/lib/anthropic/resources/messages.rb +48 -0
- data/lib/anthropic/resources/organization/rbac_roles/permissions.rb +4 -0
- data/lib/anthropic/resources/organization/rbac_roles.rb +7 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +123 -0
- data/rbi/anthropic/errors.rbi +4 -0
- data/rbi/anthropic/helpers/bedrock/client.rbi +6 -2
- data/rbi/anthropic/helpers/bedrock/event_stream.rbi +12 -3
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +3 -1
- data/rbi/anthropic/helpers/google_cloud/client.rbi +3 -1
- data/rbi/anthropic/helpers/refusal_fallback.rbi +12 -4
- data/rbi/anthropic/helpers/vertex/client.rbi +6 -2
- data/rbi/anthropic/internal/tracing.rbi +2 -0
- data/rbi/anthropic/internal/type/union.rbi +5 -0
- data/rbi/anthropic/internal/util.rbi +2 -2
- data/rbi/anthropic/models/anthropic_beta.rbi +46 -41
- data/rbi/anthropic/models/authentication_error.rbi +1 -29
- data/rbi/anthropic/models/authentication_error_object.rbi +38 -0
- data/rbi/anthropic/models/bash_code_execution_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/bash_code_execution_tool_result_error.rbi +2 -38
- data/rbi/anthropic/models/bash_code_execution_tool_result_error_object.rbi +44 -0
- data/rbi/anthropic/models/beta/beta_advisor_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_advisor_tool_result_error.rbi +2 -100
- data/rbi/anthropic/models/beta/beta_advisor_tool_result_error_object.rbi +110 -0
- data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbi +2 -90
- data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rbi +101 -0
- data/rbi/anthropic/models/beta/beta_bill_to.rbi +28 -0
- data/rbi/anthropic/models/beta/beta_billing_policy.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_error.rbi +2 -41
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_error_object.rbi +52 -0
- data/rbi/anthropic/models/beta/beta_content_block.rbi +6 -6
- data/rbi/anthropic/models/beta/beta_content_block_param.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_dream.rbi +6 -4
- data/rbi/anthropic/models/beta/beta_dream_error.rbi +1 -36
- data/rbi/anthropic/models/beta/beta_dream_error_object.rbi +49 -0
- data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +1 -112
- data/rbi/anthropic/models/beta/beta_dreaming_error_object.rbi +124 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_auto_policy.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbi +14 -14
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbi +2 -141
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rbi +152 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +32 -32
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbi +16 -16
- data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbi +2 -22
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbi +2 -30
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rbi +41 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +3 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbi +2 -22
- data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbi +2 -30
- data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rbi +41 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbi +2 -30
- data/rbi/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rbi +41 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbi +2 -22
- data/rbi/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbi +2 -30
- data/rbi/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rbi +41 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +6 -6
- data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +2 -36
- data/rbi/anthropic/models/beta/beta_target_store_held_error_object.rbi +46 -0
- data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbi +2 -99
- data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rbi +110 -0
- data/rbi/anthropic/models/beta/beta_tool_search_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_tool_search_tool_result_error.rbi +2 -94
- data/rbi/anthropic/models/beta/beta_tool_search_tool_result_error_object.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_web_search_tool_request_error.rbi +2 -39
- data/rbi/anthropic/models/beta/beta_web_search_tool_request_error_object.rbi +50 -0
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_content.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_error.rbi +2 -41
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_error_object.rbi +52 -0
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +13 -1
- data/rbi/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rbi +51 -0
- data/rbi/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rbi +51 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbi +2 -28
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +2 -144
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rbi +154 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +2 -82
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rbi +92 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +2 -38
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rbi +48 -0
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +23 -0
- data/rbi/anthropic/models/beta/message_create_params.rbi +29 -0
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +30 -0
- data/rbi/anthropic/models/beta/organization/beta_aws_external_key_config.rbi +2 -4
- data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error.rbi +23 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +5 -6
- data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/beta_plugin_content_scan.rbi +22 -4
- data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rbi +2 -44
- data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rbi +54 -0
- data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rbi +3 -3
- data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +23 -6
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source.rbi +78 -0
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbi +36 -0
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace.rbi +14 -12
- data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbi +11 -1
- data/rbi/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbi +88 -0
- data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +7 -6
- data/rbi/anthropic/models/beta/organization/external_key_update_params.rbi +1 -2
- data/rbi/anthropic/models/beta/organization/plugin_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_marketplace_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/installation_setting_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/share_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_download_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +14 -12
- data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +18 -14
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbi +10 -6
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +2 -137
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rbi +147 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rbi +2 -138
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rbi +148 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +2 -152
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rbi +162 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbi +2 -34
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rbi +44 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +2 -143
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rbi +153 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +2 -143
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rbi +153 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +2 -136
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rbi +146 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +2 -135
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rbi +145 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +2 -135
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rbi +145 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbi +2 -33
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rbi +2 -149
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rbi +159 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rbi +2 -148
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rbi +158 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rbi +2 -148
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rbi +158 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rbi +2 -148
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rbi +158 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rbi +2 -148
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rbi +158 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +30 -30
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +21 -21
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +21 -21
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +21 -21
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbi +2 -33
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbi +2 -33
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rbi +2 -139
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rbi +149 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +2 -137
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rbi +147 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbi +2 -33
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbi +2 -95
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbi +7 -7
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rbi +105 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbi +6 -6
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbi +2 -53
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rbi +63 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rbi +1 -1
- data/rbi/anthropic/models/beta_api_error.rbi +1 -29
- data/rbi/anthropic/models/beta_api_error_object.rbi +35 -0
- data/rbi/anthropic/models/beta_authentication_error.rbi +1 -32
- data/rbi/anthropic/models/beta_authentication_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_billing_error.rbi +1 -29
- data/rbi/anthropic/models/beta_billing_error_object.rbi +35 -0
- data/rbi/anthropic/models/beta_error.rbi +1 -73
- data/rbi/anthropic/models/beta_error_object.rbi +97 -0
- data/rbi/anthropic/models/beta_error_response.rbi +11 -11
- data/rbi/anthropic/models/beta_gateway_timeout_error.rbi +1 -32
- data/rbi/anthropic/models/beta_gateway_timeout_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_invalid_request_error.rbi +1 -32
- data/rbi/anthropic/models/beta_invalid_request_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_not_found_error.rbi +1 -29
- data/rbi/anthropic/models/beta_not_found_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_overloaded_error.rbi +1 -29
- data/rbi/anthropic/models/beta_overloaded_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_permission_error.rbi +1 -29
- data/rbi/anthropic/models/beta_permission_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_rate_limit_error.rbi +1 -29
- data/rbi/anthropic/models/beta_rate_limit_error_object.rbi +38 -0
- data/rbi/anthropic/models/billing_error.rbi +1 -29
- data/rbi/anthropic/models/billing_error_object.rbi +35 -0
- data/rbi/anthropic/models/code_execution_tool_result_block.rbi +1 -1
- data/rbi/anthropic/models/code_execution_tool_result_block_content.rbi +1 -1
- data/rbi/anthropic/models/code_execution_tool_result_error.rbi +2 -36
- data/rbi/anthropic/models/code_execution_tool_result_error_object.rbi +42 -0
- data/rbi/anthropic/models/content_block.rbi +5 -5
- data/rbi/anthropic/models/content_block_param.rbi +1 -1
- data/rbi/anthropic/models/contract_spend_limit_reached_error.rbi +16 -0
- data/rbi/anthropic/models/contract_spend_limit_reached_error_details.rbi +27 -0
- data/rbi/anthropic/models/error_details.rbi +61 -1
- data/rbi/anthropic/models/error_object.rbi +8 -8
- data/rbi/anthropic/models/error_response.rbi +8 -8
- data/rbi/anthropic/models/gateway_timeout_error.rbi +1 -29
- data/rbi/anthropic/models/gateway_timeout_error_object.rbi +38 -0
- data/rbi/anthropic/models/invalid_request_error.rbi +1 -29
- data/rbi/anthropic/models/invalid_request_error_object.rbi +38 -0
- data/rbi/anthropic/models/linked_organization_billing_unavailable_error.rbi +20 -0
- data/rbi/anthropic/models/linked_organization_billing_unavailable_error_details.rbi +29 -0
- data/rbi/anthropic/models/linked_organization_spend_limit_reached_error.rbi +20 -0
- data/rbi/anthropic/models/linked_organization_spend_limit_reached_error_details.rbi +29 -0
- data/rbi/anthropic/models/not_found_error.rbi +1 -29
- data/rbi/anthropic/models/not_found_error_object.rbi +35 -0
- data/rbi/anthropic/models/organization/aws_external_key_config.rbi +2 -4
- data/rbi/anthropic/models/organization/external_key.rbi +5 -6
- data/rbi/anthropic/models/organization/external_key_create_params.rbi +7 -6
- data/rbi/anthropic/models/organization/external_key_update_params.rbi +1 -2
- data/rbi/anthropic/models/organization/key_profile_mismatch_error.rbi +3 -3
- data/rbi/anthropic/models/organization/key_profile_mismatch_error_details.rbi +3 -3
- data/rbi/anthropic/models/organization/rbac_role.rbi +20 -6
- data/rbi/anthropic/models/organization/rbac_role_source.rbi +68 -0
- data/rbi/anthropic/models/organization/rbac_role_source_built_in.rbi +34 -0
- data/rbi/anthropic/models/organization/rbac_role_source_custom.rbi +32 -0
- data/rbi/anthropic/models/organization/workspace.rbi +14 -12
- data/rbi/anthropic/models/organization/workspace_create_params.rbi +14 -12
- data/rbi/anthropic/models/organization/workspace_update_params.rbi +18 -14
- data/rbi/anthropic/models/overloaded_error.rbi +1 -29
- data/rbi/anthropic/models/overloaded_error_object.rbi +35 -0
- data/rbi/anthropic/models/parent_organization_required_error.rbi +17 -0
- data/rbi/anthropic/models/parent_organization_required_error_details.rbi +28 -0
- data/rbi/anthropic/models/permission_error.rbi +1 -29
- data/rbi/anthropic/models/permission_error_object.rbi +35 -0
- data/rbi/anthropic/models/rate_limit_error.rbi +1 -29
- data/rbi/anthropic/models/rate_limit_error_object.rbi +35 -0
- data/rbi/anthropic/models/raw_content_block_start_event.rbi +5 -5
- data/rbi/anthropic/models/rbac_role_not_found_error.rbi +16 -0
- data/rbi/anthropic/models/rbac_role_not_found_error_details.rbi +27 -0
- data/rbi/anthropic/models/text_editor_code_execution_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/text_editor_code_execution_tool_result_error.rbi +2 -50
- data/rbi/anthropic/models/text_editor_code_execution_tool_result_error_object.rbi +56 -0
- data/rbi/anthropic/models/tool_search_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/tool_search_tool_result_error.rbi +2 -44
- data/rbi/anthropic/models/tool_search_tool_result_error_object.rbi +50 -0
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error.rbi +18 -0
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error_details.rbi +29 -0
- data/rbi/anthropic/models/user_profile_not_billable_error.rbi +17 -0
- data/rbi/anthropic/models/user_profile_not_billable_error_details.rbi +28 -0
- data/rbi/anthropic/models/user_profile_required_error.rbi +17 -0
- data/rbi/anthropic/models/user_profile_required_error_details.rbi +28 -0
- data/rbi/anthropic/models/web_search_tool_request_error.rbi +2 -35
- data/rbi/anthropic/models/web_search_tool_request_error_object.rbi +41 -0
- data/rbi/anthropic/models/web_search_tool_result_block.rbi +1 -1
- data/rbi/anthropic/models/web_search_tool_result_block_content.rbi +1 -1
- data/rbi/anthropic/models/web_search_tool_result_block_param.rbi +3 -3
- data/rbi/anthropic/models/web_search_tool_result_block_param_content.rbi +1 -1
- data/rbi/anthropic/models/web_search_tool_result_error.rbi +1 -35
- data/rbi/anthropic/models/web_search_tool_result_error_object.rbi +41 -0
- data/rbi/anthropic/models.rbi +101 -0
- data/rbi/anthropic/resources/beta/environments/work.rbi +21 -20
- data/rbi/anthropic/resources/beta/messages.rbi +50 -0
- data/rbi/anthropic/resources/beta/organization/claude_tag/bundles.rbi +30 -0
- data/rbi/anthropic/resources/beta/organization/external_keys.rbi +3 -2
- data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +4 -2
- data/rbi/anthropic/resources/beta/organization/plugins/installation_settings.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +6 -3
- data/rbi/anthropic/resources/beta/organization/plugins.rbi +10 -4
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +17 -13
- data/rbi/anthropic/resources/organization/external_keys.rbi +3 -2
- data/rbi/anthropic/resources/organization/workspaces.rbi +16 -13
- data/rbi/lib/anthropic/helpers/stainless_helper_header.rbi +6 -1
- data/sig/anthropic/errors.rbs +4 -0
- data/sig/anthropic/helpers/sessions/event_accumulator.rbs +6 -2
- data/sig/anthropic/internal/tracing.rbs +1 -0
- data/sig/anthropic/internal/type/union.rbs +4 -0
- data/sig/anthropic/internal/util.rbs +1 -1
- data/sig/anthropic/models/anthropic_beta.rbs +23 -21
- data/sig/anthropic/models/authentication_error.rbs +1 -11
- data/sig/anthropic/models/authentication_error_object.rbs +16 -0
- data/sig/anthropic/models/bash_code_execution_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/bash_code_execution_tool_result_error.rbs +1 -21
- data/sig/anthropic/models/bash_code_execution_tool_result_error_object.rbs +25 -0
- data/sig/anthropic/models/beta/beta_advisor_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/beta/beta_advisor_tool_result_error.rbs +1 -44
- data/sig/anthropic/models/beta/beta_advisor_tool_result_error_object.rbs +52 -0
- data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbs +1 -40
- data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rbs +48 -0
- data/sig/anthropic/models/beta/beta_bill_to.rbs +18 -0
- data/sig/anthropic/models/beta/beta_billing_policy.rbs +33 -0
- data/sig/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbs +1 -1
- data/sig/anthropic/models/beta/beta_code_execution_tool_result_error.rbs +1 -21
- data/sig/anthropic/models/beta/beta_code_execution_tool_result_error_object.rbs +29 -0
- data/sig/anthropic/models/beta/beta_dream.rbs +4 -4
- data/sig/anthropic/models/beta/beta_dream_error.rbs +1 -11
- data/sig/anthropic/models/beta/beta_dream_error_object.rbs +19 -0
- data/sig/anthropic/models/beta/beta_dreaming_error.rbs +1 -92
- data/sig/anthropic/models/beta/beta_dreaming_error_object.rbs +101 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbs +2 -2
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbs +1 -108
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rbs +116 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_run.rbs +32 -32
- data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbs +4 -4
- data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbs +1 -18
- data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rbs +26 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbs +1 -18
- data/sig/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rbs +26 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbs +1 -18
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rbs +26 -0
- data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_target_store_held_error.rbs +1 -14
- data/sig/anthropic/models/beta/beta_target_store_held_error_object.rbs +22 -0
- data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbs +1 -45
- data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rbs +53 -0
- data/sig/anthropic/models/beta/beta_tool_search_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/beta/beta_tool_search_tool_result_error.rbs +1 -43
- data/sig/anthropic/models/beta/beta_tool_search_tool_result_error_object.rbs +51 -0
- data/sig/anthropic/models/beta/beta_web_search_tool_request_error.rbs +1 -21
- data/sig/anthropic/models/beta/beta_web_search_tool_request_error_object.rbs +29 -0
- data/sig/anthropic/models/beta/beta_web_search_tool_result_block_content.rbs +1 -1
- data/sig/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbs +1 -1
- data/sig/anthropic/models/beta/beta_web_search_tool_result_error.rbs +1 -21
- data/sig/anthropic/models/beta/beta_web_search_tool_result_error_object.rbs +29 -0
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +16 -0
- data/sig/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rbs +30 -0
- data/sig/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rbs +30 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbs +1 -14
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rbs +22 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbs +1 -112
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rbs +120 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbs +1 -37
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rbs +45 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbs +1 -20
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rbs +28 -0
- data/sig/anthropic/models/beta/message_count_tokens_params.rbs +5 -0
- data/sig/anthropic/models/beta/message_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/messages/batch_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +5 -1
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +5 -1
- data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rbs +1 -18
- data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rbs +26 -0
- data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rbs +4 -4
- data/sig/anthropic/models/beta/organization/beta_rbac_role.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source.rbs +40 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbs +17 -0
- data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbs +5 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbs +46 -0
- data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +5 -1
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +5 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbs +1 -74
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rbs +82 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbs +60 -60
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +2 -2
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +2 -2
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +2 -2
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbs +1 -58
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbs +4 -4
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rbs +66 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbs +4 -4
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbs +1 -21
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rbs +29 -0
- data/sig/anthropic/models/beta_api_error.rbs +1 -11
- data/sig/anthropic/models/beta_api_error_object.rbs +15 -0
- data/sig/anthropic/models/beta_authentication_error.rbs +1 -12
- data/sig/anthropic/models/beta_authentication_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_billing_error.rbs +1 -11
- data/sig/anthropic/models/beta_billing_error_object.rbs +15 -0
- data/sig/anthropic/models/beta_error.rbs +1 -85
- data/sig/anthropic/models/beta_error_object.rbs +89 -0
- data/sig/anthropic/models/beta_error_response.rbs +4 -4
- data/sig/anthropic/models/beta_gateway_timeout_error.rbs +1 -11
- data/sig/anthropic/models/beta_gateway_timeout_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_invalid_request_error.rbs +1 -12
- data/sig/anthropic/models/beta_invalid_request_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_not_found_error.rbs +1 -11
- data/sig/anthropic/models/beta_not_found_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_overloaded_error.rbs +1 -11
- data/sig/anthropic/models/beta_overloaded_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_permission_error.rbs +1 -11
- data/sig/anthropic/models/beta_permission_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_rate_limit_error.rbs +1 -11
- data/sig/anthropic/models/beta_rate_limit_error_object.rbs +16 -0
- data/sig/anthropic/models/billing_error.rbs +1 -11
- data/sig/anthropic/models/billing_error_object.rbs +15 -0
- data/sig/anthropic/models/code_execution_tool_result_block_content.rbs +1 -1
- data/sig/anthropic/models/code_execution_tool_result_error.rbs +1 -21
- data/sig/anthropic/models/code_execution_tool_result_error_object.rbs +25 -0
- data/sig/anthropic/models/contract_spend_limit_reached_error.rbs +9 -0
- data/sig/anthropic/models/contract_spend_limit_reached_error_details.rbs +14 -0
- data/sig/anthropic/models/error_details.rbs +66 -0
- data/sig/anthropic/models/error_object.rbs +16 -16
- data/sig/anthropic/models/gateway_timeout_error.rbs +1 -11
- data/sig/anthropic/models/gateway_timeout_error_object.rbs +16 -0
- data/sig/anthropic/models/invalid_request_error.rbs +1 -12
- data/sig/anthropic/models/invalid_request_error_object.rbs +16 -0
- data/sig/anthropic/models/linked_organization_billing_unavailable_error.rbs +9 -0
- data/sig/anthropic/models/linked_organization_billing_unavailable_error_details.rbs +16 -0
- data/sig/anthropic/models/linked_organization_spend_limit_reached_error.rbs +9 -0
- data/sig/anthropic/models/linked_organization_spend_limit_reached_error_details.rbs +16 -0
- data/sig/anthropic/models/not_found_error.rbs +1 -11
- data/sig/anthropic/models/not_found_error_object.rbs +15 -0
- data/sig/anthropic/models/organization/rbac_role.rbs +5 -0
- data/sig/anthropic/models/organization/rbac_role_source.rbs +38 -0
- data/sig/anthropic/models/organization/rbac_role_source_built_in.rbs +15 -0
- data/sig/anthropic/models/organization/rbac_role_source_custom.rbs +15 -0
- data/sig/anthropic/models/overloaded_error.rbs +1 -11
- data/sig/anthropic/models/overloaded_error_object.rbs +15 -0
- data/sig/anthropic/models/parent_organization_required_error.rbs +9 -0
- data/sig/anthropic/models/parent_organization_required_error_details.rbs +14 -0
- data/sig/anthropic/models/permission_error.rbs +1 -11
- data/sig/anthropic/models/permission_error_object.rbs +15 -0
- data/sig/anthropic/models/rate_limit_error.rbs +1 -11
- data/sig/anthropic/models/rate_limit_error_object.rbs +15 -0
- data/sig/anthropic/models/rbac_role_not_found_error.rbs +9 -0
- data/sig/anthropic/models/rbac_role_not_found_error_details.rbs +14 -0
- data/sig/anthropic/models/text_editor_code_execution_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/text_editor_code_execution_tool_result_error.rbs +1 -26
- data/sig/anthropic/models/text_editor_code_execution_tool_result_error_object.rbs +30 -0
- data/sig/anthropic/models/tool_search_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/tool_search_tool_result_error.rbs +1 -26
- data/sig/anthropic/models/tool_search_tool_result_error_object.rbs +30 -0
- data/sig/anthropic/models/user_profile_billing_not_authorized_error.rbs +9 -0
- data/sig/anthropic/models/user_profile_billing_not_authorized_error_details.rbs +16 -0
- data/sig/anthropic/models/user_profile_not_billable_error.rbs +9 -0
- data/sig/anthropic/models/user_profile_not_billable_error_details.rbs +14 -0
- data/sig/anthropic/models/user_profile_required_error.rbs +9 -0
- data/sig/anthropic/models/user_profile_required_error_details.rbs +14 -0
- data/sig/anthropic/models/web_search_tool_request_error.rbs +1 -21
- data/sig/anthropic/models/web_search_tool_request_error_object.rbs +25 -0
- data/sig/anthropic/models/web_search_tool_result_block_content.rbs +1 -1
- data/sig/anthropic/models/web_search_tool_result_block_param_content.rbs +1 -1
- data/sig/anthropic/models/web_search_tool_result_error.rbs +1 -21
- data/sig/anthropic/models/web_search_tool_result_error_object.rbs +25 -0
- data/sig/anthropic/models.rbs +80 -0
- data/sig/anthropic/resources/beta/messages.rbs +5 -0
- data/sig/anthropic/resources/beta/organization/claude_tag/bundles.rbs +7 -0
- metadata +371 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaNotFoundErrorObject < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :message, String
|
|
12
|
+
|
|
13
|
+
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, :not_found_error]
|
|
17
|
+
required :type, const: :not_found_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :not_found_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaNotFoundErrorObject} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :not_found_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -2,27 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
-
# match on it.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :message, String
|
|
12
|
-
|
|
13
|
-
# @!attribute type
|
|
14
|
-
# The broad category of the error.
|
|
15
|
-
#
|
|
16
|
-
# @return [Symbol, :overloaded_error]
|
|
17
|
-
required :type, const: :overloaded_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :overloaded_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::BetaOverloadedError} for more details.
|
|
22
|
-
#
|
|
23
|
-
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
-
#
|
|
25
|
-
# @param type [Symbol, :overloaded_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated BetaOverloadedError has been renamed to BetaOverloadedErrorObject
|
|
6
|
+
BetaOverloadedError = Anthropic::Models::BetaOverloadedErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaOverloadedErrorObject < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :message, String
|
|
12
|
+
|
|
13
|
+
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, :overloaded_error]
|
|
17
|
+
required :type, const: :overloaded_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :overloaded_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaOverloadedErrorObject} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :overloaded_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -2,27 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
-
# match on it.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :message, String
|
|
12
|
-
|
|
13
|
-
# @!attribute type
|
|
14
|
-
# The broad category of the error.
|
|
15
|
-
#
|
|
16
|
-
# @return [Symbol, :permission_error]
|
|
17
|
-
required :type, const: :permission_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :permission_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::BetaPermissionError} for more details.
|
|
22
|
-
#
|
|
23
|
-
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
-
#
|
|
25
|
-
# @param type [Symbol, :permission_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated BetaPermissionError has been renamed to BetaPermissionErrorObject
|
|
6
|
+
BetaPermissionError = Anthropic::Models::BetaPermissionErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaPermissionErrorObject < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :message, String
|
|
12
|
+
|
|
13
|
+
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, :permission_error]
|
|
17
|
+
required :type, const: :permission_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :permission_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaPermissionErrorObject} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :permission_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -2,27 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
-
# match on it.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :message, String
|
|
12
|
-
|
|
13
|
-
# @!attribute type
|
|
14
|
-
# The broad category of the error.
|
|
15
|
-
#
|
|
16
|
-
# @return [Symbol, :rate_limit_error]
|
|
17
|
-
required :type, const: :rate_limit_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :rate_limit_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::BetaRateLimitError} for more details.
|
|
22
|
-
#
|
|
23
|
-
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
-
#
|
|
25
|
-
# @param type [Symbol, :rate_limit_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated BetaRateLimitError has been renamed to BetaRateLimitErrorObject
|
|
6
|
+
BetaRateLimitError = Anthropic::Models::BetaRateLimitErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaRateLimitErrorObject < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :message, String
|
|
12
|
+
|
|
13
|
+
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, :rate_limit_error]
|
|
17
|
+
required :type, const: :rate_limit_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :rate_limit_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaRateLimitErrorObject} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :rate_limit_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -2,27 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
-
# match on it.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :message, String
|
|
12
|
-
|
|
13
|
-
# @!attribute type
|
|
14
|
-
# The broad category of the error.
|
|
15
|
-
#
|
|
16
|
-
# @return [Symbol, :billing_error]
|
|
17
|
-
required :type, const: :billing_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :billing_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::BillingError} for more details.
|
|
22
|
-
#
|
|
23
|
-
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
-
#
|
|
25
|
-
# @param type [Symbol, :billing_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated BillingError has been renamed to BillingErrorObject
|
|
6
|
+
BillingError = Anthropic::Models::BillingErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BillingErrorObject < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :message, String
|
|
12
|
+
|
|
13
|
+
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, :billing_error]
|
|
17
|
+
required :type, const: :billing_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :billing_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BillingErrorObject} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :billing_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
class CodeExecutionToolResultBlock < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute content
|
|
7
7
|
#
|
|
8
|
-
# @return [Anthropic::Models::
|
|
8
|
+
# @return [Anthropic::Models::CodeExecutionToolResultErrorObject, Anthropic::Models::CodeExecutionResultBlock, Anthropic::Models::EncryptedCodeExecutionResultBlock]
|
|
9
9
|
required :content, union: -> { Anthropic::CodeExecutionToolResultBlockContent }
|
|
10
10
|
|
|
11
11
|
# @!attribute tool_use_id
|
|
@@ -19,7 +19,7 @@ module Anthropic
|
|
|
19
19
|
required :type, const: :code_execution_tool_result
|
|
20
20
|
|
|
21
21
|
# @!method initialize(content:, tool_use_id:, type: :code_execution_tool_result)
|
|
22
|
-
# @param content [Anthropic::Models::
|
|
22
|
+
# @param content [Anthropic::Models::CodeExecutionToolResultErrorObject, Anthropic::Models::CodeExecutionResultBlock, Anthropic::Models::EncryptedCodeExecutionResultBlock]
|
|
23
23
|
# @param tool_use_id [String]
|
|
24
24
|
# @param type [Symbol, :code_execution_tool_result]
|
|
25
25
|
end
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module CodeExecutionToolResultBlockContent
|
|
6
6
|
extend Anthropic::Internal::Type::Union
|
|
7
7
|
|
|
8
|
-
variant -> { Anthropic::
|
|
8
|
+
variant -> { Anthropic::CodeExecutionToolResultErrorObject }
|
|
9
9
|
|
|
10
10
|
variant -> { Anthropic::CodeExecutionResultBlock }
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ module Anthropic
|
|
|
17
17
|
variant -> { Anthropic::EncryptedCodeExecutionResultBlock }
|
|
18
18
|
|
|
19
19
|
# @!method self.variants
|
|
20
|
-
# @return [Array(Anthropic::Models::
|
|
20
|
+
# @return [Array(Anthropic::Models::CodeExecutionToolResultErrorObject, Anthropic::Models::CodeExecutionResultBlock, Anthropic::Models::EncryptedCodeExecutionResultBlock)]
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
end
|
|
@@ -2,20 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# @return [Symbol, Anthropic::Models::CodeExecutionToolResultErrorCode]
|
|
9
|
-
required :error_code, enum: -> { Anthropic::CodeExecutionToolResultErrorCode }
|
|
10
|
-
|
|
11
|
-
# @!attribute type
|
|
12
|
-
#
|
|
13
|
-
# @return [Symbol, :code_execution_tool_result_error]
|
|
14
|
-
required :type, const: :code_execution_tool_result_error
|
|
15
|
-
|
|
16
|
-
# @!method initialize(error_code:, type: :code_execution_tool_result_error)
|
|
17
|
-
# @param error_code [Symbol, Anthropic::Models::CodeExecutionToolResultErrorCode]
|
|
18
|
-
# @param type [Symbol, :code_execution_tool_result_error]
|
|
19
|
-
end
|
|
5
|
+
# @deprecated CodeExecutionToolResultError has been renamed to
|
|
6
|
+
# CodeExecutionToolResultErrorObject
|
|
7
|
+
CodeExecutionToolResultError = Anthropic::Models::CodeExecutionToolResultErrorObject
|
|
20
8
|
end
|
|
21
9
|
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class CodeExecutionToolResultErrorObject < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, Anthropic::Models::CodeExecutionToolResultErrorCode]
|
|
9
|
+
required :error_code, enum: -> { Anthropic::CodeExecutionToolResultErrorCode }
|
|
10
|
+
|
|
11
|
+
# @!attribute type
|
|
12
|
+
#
|
|
13
|
+
# @return [Symbol, :code_execution_tool_result_error]
|
|
14
|
+
required :type, const: :code_execution_tool_result_error
|
|
15
|
+
|
|
16
|
+
# @!method initialize(error_code:, type: :code_execution_tool_result_error)
|
|
17
|
+
# @param error_code [Symbol, Anthropic::Models::CodeExecutionToolResultErrorCode]
|
|
18
|
+
# @param type [Symbol, :code_execution_tool_result_error]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -85,7 +85,7 @@ module Anthropic
|
|
|
85
85
|
#
|
|
86
86
|
# @option args [String, nil] :toolset_name For a toolset member tool_use, the toolset family.
|
|
87
87
|
#
|
|
88
|
-
# @option args [Anthropic::Models::
|
|
88
|
+
# @option args [Anthropic::Models::WebSearchToolResultErrorObject, Array<Anthropic::Models::WebSearchResultBlock>, Anthropic::Models::WebFetchToolResultErrorBlock, Anthropic::Models::WebFetchBlock, Anthropic::Models::CodeExecutionToolResultErrorObject, Anthropic::Models::CodeExecutionResultBlock, Anthropic::Models::EncryptedCodeExecutionResultBlock, Anthropic::Models::BashCodeExecutionToolResultErrorObject, Anthropic::Models::BashCodeExecutionResultBlock, Anthropic::Models::TextEditorCodeExecutionToolResultErrorObject, Anthropic::Models::TextEditorCodeExecutionViewResultBlock, Anthropic::Models::TextEditorCodeExecutionCreateResultBlock, Anthropic::Models::TextEditorCodeExecutionStrReplaceResultBlock, Anthropic::Models::ToolSearchToolResultErrorObject, Anthropic::Models::ToolSearchToolSearchResultBlock] :content
|
|
89
89
|
#
|
|
90
90
|
# @option args [String] :tool_use_id
|
|
91
91
|
#
|
|
@@ -101,7 +101,7 @@ module Anthropic
|
|
|
101
101
|
#
|
|
102
102
|
# @option args [String, nil, String] :title
|
|
103
103
|
#
|
|
104
|
-
# @option args [Array<Anthropic::Models::TextBlockParam>, String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::SearchResultBlockParam, Anthropic::Models::DocumentBlockParam, Anthropic::Models::ToolReferenceBlockParam, Anthropic::Models::BrowserStateBlockParam>, Anthropic::Models::
|
|
104
|
+
# @option args [Array<Anthropic::Models::TextBlockParam>, String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::SearchResultBlockParam, Anthropic::Models::DocumentBlockParam, Anthropic::Models::ToolReferenceBlockParam, Anthropic::Models::BrowserStateBlockParam>, Anthropic::Models::WebSearchToolRequestErrorObject, Array<Anthropic::Models::WebSearchResultBlockParam>, Anthropic::Models::WebFetchToolResultErrorBlockParam, Anthropic::Models::WebFetchBlockParam, Anthropic::Models::CodeExecutionToolResultErrorParam, Anthropic::Models::CodeExecutionResultBlockParam, Anthropic::Models::EncryptedCodeExecutionResultBlockParam, Anthropic::Models::BashCodeExecutionToolResultErrorParam, Anthropic::Models::BashCodeExecutionResultBlockParam, Anthropic::Models::TextEditorCodeExecutionToolResultErrorParam, Anthropic::Models::TextEditorCodeExecutionViewResultBlockParam, Anthropic::Models::TextEditorCodeExecutionCreateResultBlockParam, Anthropic::Models::TextEditorCodeExecutionStrReplaceResultBlockParam, Anthropic::Models::ToolSearchToolResultErrorParam, Anthropic::Models::ToolSearchToolSearchResultBlockParam] :content
|
|
105
105
|
#
|
|
106
106
|
# @option args [String] :signature The `signature` value of this thinking block, exactly as returned by the API in
|
|
107
107
|
#
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The organization has reached the spend limit of its contract.
|
|
6
|
+
class ContractSpendLimitReachedError < Anthropic::Errors::RateLimitError
|
|
7
|
+
# @!method error_code
|
|
8
|
+
# @return [Symbol, :contract_spend_limit_reached]
|
|
9
|
+
|
|
10
|
+
# @return [Anthropic::Models::ContractSpendLimitReachedErrorDetails]
|
|
11
|
+
def details
|
|
12
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
13
|
+
Anthropic::ContractSpendLimitReachedErrorDetails,
|
|
14
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class ContractSpendLimitReachedErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, :contract_spend_limit_reached]
|
|
9
|
+
required :error_code, const: :contract_spend_limit_reached
|
|
10
|
+
|
|
11
|
+
# @!method initialize(error_code: :contract_spend_limit_reached)
|
|
12
|
+
# The organization has reached the spend limit of its contract.
|
|
13
|
+
#
|
|
14
|
+
# @param error_code [Symbol, :contract_spend_limit_reached]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -74,6 +74,24 @@ module Anthropic
|
|
|
74
74
|
# A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation.
|
|
75
75
|
variant :tool_reference_unresolved, -> { Anthropic::ToolReferenceUnresolvedErrorDetails }
|
|
76
76
|
|
|
77
|
+
# The request sets `billing_policy.bill_to` to `"user_profile"` but names no user profile. Name the profile to bill in the `anthropic-user-profile-id` header.
|
|
78
|
+
variant :user_profile_required, -> { Anthropic::UserProfileRequiredErrorDetails }
|
|
79
|
+
|
|
80
|
+
# Anthropic cannot currently bill the organization linked to the request's user profile, for a reason that lies with that organization's own account. The response does not say what the reason is.
|
|
81
|
+
variant :linked_organization_billing_unavailable,
|
|
82
|
+
-> { Anthropic::LinkedOrganizationBillingUnavailableErrorDetails }
|
|
83
|
+
|
|
84
|
+
# The organization linked to the request's user profile has reached a spend limit that it set, or lacks credit for the request. The response does not say which applies.
|
|
85
|
+
variant :linked_organization_spend_limit_reached,
|
|
86
|
+
-> { Anthropic::LinkedOrganizationSpendLimitReachedErrorDetails }
|
|
87
|
+
|
|
88
|
+
# The customer that the named user profile represents has not authorized the caller to bill them, or the authorization that the request's credential uses has ended. The response does not say which applies.
|
|
89
|
+
variant :user_profile_billing_not_authorized,
|
|
90
|
+
-> { Anthropic::UserProfileBillingNotAuthorizedErrorDetails }
|
|
91
|
+
|
|
92
|
+
# The caller is not allowed to bill the user profile that the request names. The response gives no more specific error code and does not say what the reason is.
|
|
93
|
+
variant :user_profile_not_billable, -> { Anthropic::UserProfileNotBillableErrorDetails }
|
|
94
|
+
|
|
77
95
|
# No usable Thread state was found for `previous_message_id`. Replay the full conversation with `thread: {"type": "create"}` to start a new Thread.
|
|
78
96
|
variant :thread_not_found, -> { Anthropic::ThreadNotFoundErrorDetails }
|
|
79
97
|
|
|
@@ -84,6 +102,9 @@ module Anthropic
|
|
|
84
102
|
variant :request_body_too_large_after_decoding,
|
|
85
103
|
-> { Anthropic::RequestBodyTooLargeAfterDecodingErrorDetails }
|
|
86
104
|
|
|
105
|
+
# The organization has reached the spend limit of its contract.
|
|
106
|
+
variant :contract_spend_limit_reached, -> { Anthropic::ContractSpendLimitReachedErrorDetails }
|
|
107
|
+
|
|
87
108
|
# The organization has crossed the monthly API usage threshold of its API tier.
|
|
88
109
|
variant :enforced_spend_limit_reached, -> { Anthropic::EnforcedSpendLimitReachedErrorDetails }
|
|
89
110
|
|
|
@@ -163,7 +184,7 @@ module Anthropic
|
|
|
163
184
|
variant :external_key_validation_timed_out,
|
|
164
185
|
-> { Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails }
|
|
165
186
|
|
|
166
|
-
#
|
|
187
|
+
# After this request, the External Key and the Workspace would not have the same user profile. A key and its Workspace must have the same user profile, or both have none.
|
|
167
188
|
variant :key_profile_mismatch, -> { Anthropic::Organization::KeyProfileMismatchErrorDetails }
|
|
168
189
|
|
|
169
190
|
# The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
|
|
@@ -179,6 +200,12 @@ module Anthropic
|
|
|
179
200
|
# The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
|
|
180
201
|
variant :organization_type_not_supported, -> { Anthropic::OrganizationTypeNotSupportedErrorDetails }
|
|
181
202
|
|
|
203
|
+
# The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none.
|
|
204
|
+
variant :parent_organization_required, -> { Anthropic::ParentOrganizationRequiredErrorDetails }
|
|
205
|
+
|
|
206
|
+
# No RBAC Role with this ID was found.
|
|
207
|
+
variant :rbac_role_not_found, -> { Anthropic::RBACRoleNotFoundErrorDetails }
|
|
208
|
+
|
|
182
209
|
# Anthropic has turned off creating environments for this organization. Existing environments still work.
|
|
183
210
|
variant :environment_create_disabled, -> { Anthropic::Beta::BetaEnvironmentCreateDisabledErrorDetails }
|
|
184
211
|
|
|
@@ -276,6 +303,13 @@ module Anthropic
|
|
|
276
303
|
variant :slack_channel_set_up_settings_conflict,
|
|
277
304
|
-> { Anthropic::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails }
|
|
278
305
|
|
|
306
|
+
# The Bundle has an attachment this API does not support editing, so its instructions can be changed only in claude.ai.
|
|
307
|
+
variant :bundle_attachment_not_supported,
|
|
308
|
+
-> { Anthropic::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails }
|
|
309
|
+
|
|
310
|
+
# This Bundle's instructions are managed in claude.ai and can't be changed through the API.
|
|
311
|
+
variant :bundle_on_call, -> { Anthropic::Beta::Organization::BetaBundleOnCallErrorDetails }
|
|
312
|
+
|
|
279
313
|
module ErrorCode
|
|
280
314
|
extend Anthropic::Internal::Type::Enum
|
|
281
315
|
|
|
@@ -301,9 +335,15 @@ module Anthropic
|
|
|
301
335
|
THREAD_UNSUPPORTED_REQUEST = :thread_unsupported_request
|
|
302
336
|
TOOL_NAME_CONFLICT = :tool_name_conflict
|
|
303
337
|
TOOL_REFERENCE_UNRESOLVED = :tool_reference_unresolved
|
|
338
|
+
USER_PROFILE_REQUIRED = :user_profile_required
|
|
339
|
+
LINKED_ORGANIZATION_BILLING_UNAVAILABLE = :linked_organization_billing_unavailable
|
|
340
|
+
LINKED_ORGANIZATION_SPEND_LIMIT_REACHED = :linked_organization_spend_limit_reached
|
|
341
|
+
USER_PROFILE_BILLING_NOT_AUTHORIZED = :user_profile_billing_not_authorized
|
|
342
|
+
USER_PROFILE_NOT_BILLABLE = :user_profile_not_billable
|
|
304
343
|
THREAD_NOT_FOUND = :thread_not_found
|
|
305
344
|
SKILL_READ_BLOCKED_UNDECRYPTABLE = :skill_read_blocked_undecryptable
|
|
306
345
|
REQUEST_BODY_TOO_LARGE_AFTER_DECODING = :request_body_too_large_after_decoding
|
|
346
|
+
CONTRACT_SPEND_LIMIT_REACHED = :contract_spend_limit_reached
|
|
307
347
|
ENFORCED_SPEND_LIMIT_REACHED = :enforced_spend_limit_reached
|
|
308
348
|
RAMP_LIMIT_EXCEEDED = :ramp_limit_exceeded
|
|
309
349
|
CMEK_KEY_UNREACHABLE = :cmek_key_unreachable
|
|
@@ -333,6 +373,8 @@ module Anthropic
|
|
|
333
373
|
EXTERNAL_KEY_CHANGED = :external_key_changed
|
|
334
374
|
WORKSPACE_MEMBER_LIMIT_EXCEEDED = :workspace_member_limit_exceeded
|
|
335
375
|
ORGANIZATION_TYPE_NOT_SUPPORTED = :organization_type_not_supported
|
|
376
|
+
PARENT_ORGANIZATION_REQUIRED = :parent_organization_required
|
|
377
|
+
RBAC_ROLE_NOT_FOUND = :rbac_role_not_found
|
|
336
378
|
ENVIRONMENT_CREATE_DISABLED = :environment_create_disabled
|
|
337
379
|
ENVIRONMENT_ARCHIVED = :environment_archived
|
|
338
380
|
INVALID_CONFIG_TYPE_CHANGE = :invalid_config_type_change
|
|
@@ -361,13 +403,15 @@ module Anthropic
|
|
|
361
403
|
ENVIRONMENT_NOT_FOUND = :environment_not_found
|
|
362
404
|
SLACK_CHANNEL_SET_UP_ENVIRONMENT_NOT_FOUND = :slack_channel_set_up_environment_not_found
|
|
363
405
|
SLACK_CHANNEL_SET_UP_SETTINGS_CONFLICT = :slack_channel_set_up_settings_conflict
|
|
406
|
+
BUNDLE_ATTACHMENT_NOT_SUPPORTED = :bundle_attachment_not_supported
|
|
407
|
+
BUNDLE_ON_CALL = :bundle_on_call
|
|
364
408
|
|
|
365
409
|
# @!method self.values
|
|
366
410
|
# @return [Array<Symbol>]
|
|
367
411
|
end
|
|
368
412
|
|
|
369
413
|
# @!method self.variants
|
|
370
|
-
# @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails)]
|
|
414
|
+
# @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::UserProfileRequiredErrorDetails, Anthropic::Models::LinkedOrganizationBillingUnavailableErrorDetails, Anthropic::Models::LinkedOrganizationSpendLimitReachedErrorDetails, Anthropic::Models::UserProfileBillingNotAuthorizedErrorDetails, Anthropic::Models::UserProfileNotBillableErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::ContractSpendLimitReachedErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::ParentOrganizationRequiredErrorDetails, Anthropic::Models::RBACRoleNotFoundErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails)]
|
|
371
415
|
|
|
372
416
|
# Creates a new instance of the variant class whose `error_code` matches the given
|
|
373
417
|
# value, passing the remaining arguments to its constructor.
|
|
@@ -396,7 +440,7 @@ module Anthropic
|
|
|
396
440
|
# @option args [String] :slack_channel_id The identifier of the channel the request set up, starting with `slch_`.
|
|
397
441
|
#
|
|
398
442
|
# @raise [ArgumentError]
|
|
399
|
-
# @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails]
|
|
443
|
+
# @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::UserProfileRequiredErrorDetails, Anthropic::Models::LinkedOrganizationBillingUnavailableErrorDetails, Anthropic::Models::LinkedOrganizationSpendLimitReachedErrorDetails, Anthropic::Models::UserProfileBillingNotAuthorizedErrorDetails, Anthropic::Models::UserProfileNotBillableErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::ContractSpendLimitReachedErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::ParentOrganizationRequiredErrorDetails, Anthropic::Models::RBACRoleNotFoundErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails]
|
|
400
444
|
def self.new(error_code:, **args)
|
|
401
445
|
case error_code.to_sym
|
|
402
446
|
when :available_tools_limit_exceeded
|
|
@@ -443,12 +487,24 @@ module Anthropic
|
|
|
443
487
|
Anthropic::ToolNameConflictErrorDetails.new(**args)
|
|
444
488
|
when :tool_reference_unresolved
|
|
445
489
|
Anthropic::ToolReferenceUnresolvedErrorDetails.new(**args)
|
|
490
|
+
when :user_profile_required
|
|
491
|
+
Anthropic::UserProfileRequiredErrorDetails.new(**args)
|
|
492
|
+
when :linked_organization_billing_unavailable
|
|
493
|
+
Anthropic::LinkedOrganizationBillingUnavailableErrorDetails.new(**args)
|
|
494
|
+
when :linked_organization_spend_limit_reached
|
|
495
|
+
Anthropic::LinkedOrganizationSpendLimitReachedErrorDetails.new(**args)
|
|
496
|
+
when :user_profile_billing_not_authorized
|
|
497
|
+
Anthropic::UserProfileBillingNotAuthorizedErrorDetails.new(**args)
|
|
498
|
+
when :user_profile_not_billable
|
|
499
|
+
Anthropic::UserProfileNotBillableErrorDetails.new(**args)
|
|
446
500
|
when :thread_not_found
|
|
447
501
|
Anthropic::ThreadNotFoundErrorDetails.new(**args)
|
|
448
502
|
when :skill_read_blocked_undecryptable
|
|
449
503
|
Anthropic::SkillReadBlockedUndecryptableErrorDetails.new(**args)
|
|
450
504
|
when :request_body_too_large_after_decoding
|
|
451
505
|
Anthropic::RequestBodyTooLargeAfterDecodingErrorDetails.new(**args)
|
|
506
|
+
when :contract_spend_limit_reached
|
|
507
|
+
Anthropic::ContractSpendLimitReachedErrorDetails.new(**args)
|
|
452
508
|
when :enforced_spend_limit_reached
|
|
453
509
|
Anthropic::EnforcedSpendLimitReachedErrorDetails.new(**args)
|
|
454
510
|
when :ramp_limit_exceeded
|
|
@@ -507,6 +563,10 @@ module Anthropic
|
|
|
507
563
|
Anthropic::Organization::WorkspaceMemberLimitExceededErrorDetails.new(**args)
|
|
508
564
|
when :organization_type_not_supported
|
|
509
565
|
Anthropic::OrganizationTypeNotSupportedErrorDetails.new(**args)
|
|
566
|
+
when :parent_organization_required
|
|
567
|
+
Anthropic::ParentOrganizationRequiredErrorDetails.new(**args)
|
|
568
|
+
when :rbac_role_not_found
|
|
569
|
+
Anthropic::RBACRoleNotFoundErrorDetails.new(**args)
|
|
510
570
|
when :environment_create_disabled
|
|
511
571
|
Anthropic::Beta::BetaEnvironmentCreateDisabledErrorDetails.new(**args)
|
|
512
572
|
when :environment_archived
|
|
@@ -563,6 +623,10 @@ module Anthropic
|
|
|
563
623
|
Anthropic::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails.new(**args)
|
|
564
624
|
when :slack_channel_set_up_settings_conflict
|
|
565
625
|
Anthropic::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails.new(**args)
|
|
626
|
+
when :bundle_attachment_not_supported
|
|
627
|
+
Anthropic::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails.new(**args)
|
|
628
|
+
when :bundle_on_call
|
|
629
|
+
Anthropic::Beta::Organization::BetaBundleOnCallErrorDetails.new(**args)
|
|
566
630
|
else
|
|
567
631
|
raise ArgumentError, "unknown error_code: #{error_code}"
|
|
568
632
|
end
|