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
|
@@ -50,6 +50,57 @@ module Anthropic
|
|
|
50
50
|
)
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
# Change a Bundle's instructions. The update is partial: a field left out is
|
|
54
|
+
# unchanged, and `instructions` sent as null or as an empty string clears them.
|
|
55
|
+
# The later of two updates wins. Sessions that start after the change use the new
|
|
56
|
+
# instructions; sessions already running keep the ones they started with. Some
|
|
57
|
+
# Bundles are managed in claude.ai, and an update of one returns 400.
|
|
58
|
+
#
|
|
59
|
+
# Some parameter documentations has been truncated, see
|
|
60
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::BundleUpdateParams} for more
|
|
61
|
+
# details.
|
|
62
|
+
#
|
|
63
|
+
# @overload update(bundle_id, instructions: nil, betas: nil, request_options: {})
|
|
64
|
+
#
|
|
65
|
+
# @param bundle_id [String] Path param: The Bundle's identifier, starting with `capp_`.
|
|
66
|
+
#
|
|
67
|
+
# @param instructions [String, nil] Body param: Instructions for Claude, up to 10,000 bytes (UTF-8), added to the in
|
|
68
|
+
#
|
|
69
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
|
|
70
|
+
#
|
|
71
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
72
|
+
#
|
|
73
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedError]
|
|
74
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaBundleOnCallError]
|
|
75
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
|
|
76
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
|
|
77
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
|
|
78
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
|
|
79
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError]
|
|
80
|
+
#
|
|
81
|
+
# @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagBundle]
|
|
82
|
+
#
|
|
83
|
+
# @see Anthropic::Models::Beta::Organization::ClaudeTag::BundleUpdateParams
|
|
84
|
+
def update(bundle_id, params = {})
|
|
85
|
+
parsed, options = Anthropic::Beta::Organization::ClaudeTag::BundleUpdateParams.dump_request(params)
|
|
86
|
+
header_params = {betas: "anthropic-beta"}
|
|
87
|
+
@client.request(
|
|
88
|
+
qualifiers: {beta: "true"},
|
|
89
|
+
span_name: Anthropic::Internal::Tracing::SpanName::ORGANIZATION_CLAUDE_TAG_BUNDLES_UPDATE,
|
|
90
|
+
span_attributes: {"anthropic.organization.claude_tag.bundle.id" => bundle_id},
|
|
91
|
+
span_route: "/v1/organizations/claude_tag/bundles/{bundle_id}",
|
|
92
|
+
method: :post,
|
|
93
|
+
path: ["v1/organizations/claude_tag/bundles/%1$s", bundle_id],
|
|
94
|
+
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
95
|
+
body: parsed.except(*header_params.keys),
|
|
96
|
+
model: Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagBundle,
|
|
97
|
+
options: {
|
|
98
|
+
extra_headers: {"anthropic-beta" => "experimental-claude-tag-2026-10-21"},
|
|
99
|
+
**options
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
53
104
|
# List the organization's Bundles, newest first by `created_at`. A Bundle that
|
|
54
105
|
# Claude Tag manages for itself is not listed.
|
|
55
106
|
#
|
|
@@ -148,8 +148,12 @@ module Anthropic
|
|
|
148
148
|
|
|
149
149
|
# Change which stored version of an organization-owned Plugin is served to
|
|
150
150
|
# members, for example to roll back to an earlier one. This pins the served
|
|
151
|
-
# version: later uploads are stored but no longer change what is
|
|
152
|
-
# pinning cannot currently be undone, here or in claude.ai.
|
|
151
|
+
# version: later uploads through this API are stored but no longer change what is
|
|
152
|
+
# served, and pinning cannot currently be undone, here or in claude.ai.
|
|
153
|
+
#
|
|
154
|
+
# A version from claude.ai might still change what is served: see
|
|
155
|
+
# [Versions and the served version](/docs/en/manage-claude/plugins-api#versions-and-the-served-version)
|
|
156
|
+
# in the Plugins API guide.
|
|
153
157
|
#
|
|
154
158
|
# Pass the version as `served_version_id`: an earlier one to roll back, a later
|
|
155
159
|
# one to start serving a version that was stored without being served, or the one
|
|
@@ -24,6 +24,10 @@ module Anthropic
|
|
|
24
24
|
#
|
|
25
25
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
26
26
|
#
|
|
27
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
28
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
29
|
+
# @raise [Anthropic::Models::RBACRoleNotFoundError]
|
|
30
|
+
#
|
|
27
31
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::RBACRoles::BetaRBACRolePermission>]
|
|
28
32
|
#
|
|
29
33
|
# @see Anthropic::Models::Beta::Organization::RBACRoles::PermissionListParams
|
|
@@ -18,6 +18,10 @@ module Anthropic
|
|
|
18
18
|
#
|
|
19
19
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
20
20
|
#
|
|
21
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
22
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
23
|
+
# @raise [Anthropic::Models::RBACRoleNotFoundError]
|
|
24
|
+
#
|
|
21
25
|
# @return [Anthropic::Models::Beta::Organization::BetaRBACRole]
|
|
22
26
|
#
|
|
23
27
|
# @see Anthropic::Models::Beta::Organization::RBACRoleRetrieveParams
|
|
@@ -49,6 +53,9 @@ module Anthropic
|
|
|
49
53
|
#
|
|
50
54
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
51
55
|
#
|
|
56
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
57
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
58
|
+
#
|
|
52
59
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::BetaRBACRole>]
|
|
53
60
|
#
|
|
54
61
|
# @see Anthropic::Models::Beta::Organization::RBACRoleListParams
|
|
@@ -84,9 +84,15 @@ module Anthropic
|
|
|
84
84
|
# @raise [Anthropic::Models::ThreadUnsupportedRequestError]
|
|
85
85
|
# @raise [Anthropic::Models::ToolNameConflictError]
|
|
86
86
|
# @raise [Anthropic::Models::ToolReferenceUnresolvedError]
|
|
87
|
+
# @raise [Anthropic::Models::UserProfileRequiredError]
|
|
88
|
+
# @raise [Anthropic::Models::LinkedOrganizationBillingUnavailableError]
|
|
89
|
+
# @raise [Anthropic::Models::LinkedOrganizationSpendLimitReachedError]
|
|
90
|
+
# @raise [Anthropic::Models::UserProfileBillingNotAuthorizedError]
|
|
91
|
+
# @raise [Anthropic::Models::UserProfileNotBillableError]
|
|
87
92
|
# @raise [Anthropic::Models::ThreadNotFoundError]
|
|
88
93
|
# @raise [Anthropic::Models::SkillReadBlockedUndecryptableError]
|
|
89
94
|
# @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
|
|
95
|
+
# @raise [Anthropic::Models::ContractSpendLimitReachedError]
|
|
90
96
|
# @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
|
|
91
97
|
# @raise [Anthropic::Models::RampLimitExceededError]
|
|
92
98
|
# @raise [Anthropic::Models::CMEKKeyUnreachableError]
|
|
@@ -210,9 +216,15 @@ module Anthropic
|
|
|
210
216
|
# @raise [Anthropic::Models::ThreadUnsupportedRequestError]
|
|
211
217
|
# @raise [Anthropic::Models::ToolNameConflictError]
|
|
212
218
|
# @raise [Anthropic::Models::ToolReferenceUnresolvedError]
|
|
219
|
+
# @raise [Anthropic::Models::UserProfileRequiredError]
|
|
220
|
+
# @raise [Anthropic::Models::LinkedOrganizationBillingUnavailableError]
|
|
221
|
+
# @raise [Anthropic::Models::LinkedOrganizationSpendLimitReachedError]
|
|
222
|
+
# @raise [Anthropic::Models::UserProfileBillingNotAuthorizedError]
|
|
223
|
+
# @raise [Anthropic::Models::UserProfileNotBillableError]
|
|
213
224
|
# @raise [Anthropic::Models::ThreadNotFoundError]
|
|
214
225
|
# @raise [Anthropic::Models::SkillReadBlockedUndecryptableError]
|
|
215
226
|
# @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
|
|
227
|
+
# @raise [Anthropic::Models::ContractSpendLimitReachedError]
|
|
216
228
|
# @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
|
|
217
229
|
# @raise [Anthropic::Models::RampLimitExceededError]
|
|
218
230
|
# @raise [Anthropic::Models::CMEKKeyUnreachableError]
|
|
@@ -367,6 +379,42 @@ module Anthropic
|
|
|
367
379
|
#
|
|
368
380
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
369
381
|
#
|
|
382
|
+
# @raise [Anthropic::Models::AvailableToolsLimitExceededError]
|
|
383
|
+
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
384
|
+
# @raise [Anthropic::Models::ClaudeCodeVersionTooOldError]
|
|
385
|
+
# @raise [Anthropic::Models::CMEKKeyDisabledError]
|
|
386
|
+
# @raise [Anthropic::Models::CMEKKeyNetworkBlockedError]
|
|
387
|
+
# @raise [Anthropic::Models::CompactionBlockAmbiguousError]
|
|
388
|
+
# @raise [Anthropic::Models::CompactionBlockMisplacedError]
|
|
389
|
+
# @raise [Anthropic::Models::CompactionContentMismatchError]
|
|
390
|
+
# @raise [Anthropic::Models::CompactionIncompleteTurnError]
|
|
391
|
+
# @raise [Anthropic::Models::CompactionNothingToSummarizeError]
|
|
392
|
+
# @raise [Anthropic::Models::CompactionSignatureInvalidError]
|
|
393
|
+
# @raise [Anthropic::Models::CompactionTooManyToolReferencesError]
|
|
394
|
+
# @raise [Anthropic::Models::CompactionToolChangesMismatchError]
|
|
395
|
+
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
396
|
+
# @raise [Anthropic::Models::RequestBodyEncodingInvalidError]
|
|
397
|
+
# @raise [Anthropic::Models::RequestBodyEncodingUnsupportedError]
|
|
398
|
+
# @raise [Anthropic::Models::ThreadAlreadyContinuedError]
|
|
399
|
+
# @raise [Anthropic::Models::ThreadContinueInFlightError]
|
|
400
|
+
# @raise [Anthropic::Models::ThreadFingerprintMismatchError]
|
|
401
|
+
# @raise [Anthropic::Models::ThreadUnsupportedRequestError]
|
|
402
|
+
# @raise [Anthropic::Models::ToolNameConflictError]
|
|
403
|
+
# @raise [Anthropic::Models::ToolReferenceUnresolvedError]
|
|
404
|
+
# @raise [Anthropic::Models::UserProfileRequiredError]
|
|
405
|
+
# @raise [Anthropic::Models::LinkedOrganizationBillingUnavailableError]
|
|
406
|
+
# @raise [Anthropic::Models::LinkedOrganizationSpendLimitReachedError]
|
|
407
|
+
# @raise [Anthropic::Models::UserProfileBillingNotAuthorizedError]
|
|
408
|
+
# @raise [Anthropic::Models::UserProfileNotBillableError]
|
|
409
|
+
# @raise [Anthropic::Models::ThreadNotFoundError]
|
|
410
|
+
# @raise [Anthropic::Models::SkillReadBlockedUndecryptableError]
|
|
411
|
+
# @raise [Anthropic::Models::RequestBodyTooLargeAfterDecodingError]
|
|
412
|
+
# @raise [Anthropic::Models::ContractSpendLimitReachedError]
|
|
413
|
+
# @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
|
|
414
|
+
# @raise [Anthropic::Models::RampLimitExceededError]
|
|
415
|
+
# @raise [Anthropic::Models::CMEKKeyUnreachableError]
|
|
416
|
+
# @raise [Anthropic::Models::CompactionUnavailableError]
|
|
417
|
+
#
|
|
370
418
|
# @return [Anthropic::Helpers::Streaming::MessageStream]
|
|
371
419
|
def stream(params)
|
|
372
420
|
parsed = Anthropic::Models::MessageCreateParams.dump_request(params).first
|
|
@@ -23,6 +23,10 @@ module Anthropic
|
|
|
23
23
|
#
|
|
24
24
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
25
25
|
#
|
|
26
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
27
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
28
|
+
# @raise [Anthropic::Models::RBACRoleNotFoundError]
|
|
29
|
+
#
|
|
26
30
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Organization::RBACRoles::RBACRolePermission>]
|
|
27
31
|
#
|
|
28
32
|
# @see Anthropic::Models::Organization::RBACRoles::PermissionListParams
|
|
@@ -17,6 +17,10 @@ module Anthropic
|
|
|
17
17
|
#
|
|
18
18
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
19
19
|
#
|
|
20
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
21
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
22
|
+
# @raise [Anthropic::Models::RBACRoleNotFoundError]
|
|
23
|
+
#
|
|
20
24
|
# @return [Anthropic::Models::Organization::RBACRole]
|
|
21
25
|
#
|
|
22
26
|
# @see Anthropic::Models::Organization::RBACRoleRetrieveParams
|
|
@@ -47,6 +51,9 @@ module Anthropic
|
|
|
47
51
|
#
|
|
48
52
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
49
53
|
#
|
|
54
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
55
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
56
|
+
#
|
|
50
57
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Organization::RBACRole>]
|
|
51
58
|
#
|
|
52
59
|
# @see Anthropic::Models::Organization::RBACRoleListParams
|
data/lib/anthropic/version.rb
CHANGED
data/lib/anthropic.rb
CHANGED
|
@@ -119,6 +119,8 @@ require_relative "anthropic/models/beta/beta_invalid_config_type_change_error"
|
|
|
119
119
|
require_relative "anthropic/models/beta/beta_invalid_metadata_error"
|
|
120
120
|
require_relative "anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error"
|
|
121
121
|
require_relative "anthropic/models/beta/organization/beta_api_key_scope_missing_error"
|
|
122
|
+
require_relative "anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error"
|
|
123
|
+
require_relative "anthropic/models/beta/organization/beta_bundle_on_call_error"
|
|
122
124
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error"
|
|
123
125
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error"
|
|
124
126
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_owner_error"
|
|
@@ -155,9 +157,12 @@ require_relative "anthropic/models/compaction_tool_changes_mismatch_error"
|
|
|
155
157
|
require_relative "anthropic/models/compaction_too_many_tool_references_error"
|
|
156
158
|
require_relative "anthropic/models/compaction_unavailable_error"
|
|
157
159
|
require_relative "anthropic/models/concurrent_membership_change_error"
|
|
160
|
+
require_relative "anthropic/models/contract_spend_limit_reached_error"
|
|
158
161
|
require_relative "anthropic/models/enforced_spend_limit_reached_error"
|
|
159
162
|
require_relative "anthropic/models/file_expired_error"
|
|
160
163
|
require_relative "anthropic/models/file_not_downloadable_error"
|
|
164
|
+
require_relative "anthropic/models/linked_organization_billing_unavailable_error"
|
|
165
|
+
require_relative "anthropic/models/linked_organization_spend_limit_reached_error"
|
|
161
166
|
require_relative "anthropic/models/organization/already_member_error"
|
|
162
167
|
require_relative "anthropic/models/organization/cannot_invite_emails_with_unverified_domains_error"
|
|
163
168
|
require_relative "anthropic/models/organization/cannot_remove_last_member_error"
|
|
@@ -177,7 +182,9 @@ require_relative "anthropic/models/organization/workspace_policy_violation_error
|
|
|
177
182
|
require_relative "anthropic/models/organization_on_hold_error"
|
|
178
183
|
require_relative "anthropic/models/organization_type_not_supported_error"
|
|
179
184
|
require_relative "anthropic/models/org_member_limit_exceeded_error"
|
|
185
|
+
require_relative "anthropic/models/parent_organization_required_error"
|
|
180
186
|
require_relative "anthropic/models/ramp_limit_exceeded_error"
|
|
187
|
+
require_relative "anthropic/models/rbac_role_not_found_error"
|
|
181
188
|
require_relative "anthropic/models/request_body_encoding_invalid_error"
|
|
182
189
|
require_relative "anthropic/models/request_body_encoding_unsupported_error"
|
|
183
190
|
require_relative "anthropic/models/request_body_too_large_after_decoding_error"
|
|
@@ -191,13 +198,108 @@ require_relative "anthropic/models/thread_not_found_error"
|
|
|
191
198
|
require_relative "anthropic/models/thread_unsupported_request_error"
|
|
192
199
|
require_relative "anthropic/models/tool_name_conflict_error"
|
|
193
200
|
require_relative "anthropic/models/tool_reference_unresolved_error"
|
|
201
|
+
require_relative "anthropic/models/user_profile_billing_not_authorized_error"
|
|
202
|
+
require_relative "anthropic/models/user_profile_not_billable_error"
|
|
194
203
|
require_relative "anthropic/models/user_profile_not_found_error"
|
|
204
|
+
require_relative "anthropic/models/user_profile_required_error"
|
|
205
|
+
require_relative "anthropic/models/authentication_error_object"
|
|
206
|
+
require_relative "anthropic/models/bash_code_execution_tool_result_error_object"
|
|
207
|
+
require_relative "anthropic/models/beta/beta_advisor_tool_result_error_object"
|
|
195
208
|
require_relative "anthropic/models/beta/beta_request_document_block"
|
|
209
|
+
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_error_object"
|
|
210
|
+
require_relative "anthropic/models/beta/beta_code_execution_tool_result_error_object"
|
|
211
|
+
require_relative "anthropic/models/beta/beta_dream_error_object"
|
|
212
|
+
require_relative "anthropic/models/beta/beta_dreaming_error_object"
|
|
213
|
+
require_relative "anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object"
|
|
214
|
+
require_relative "anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object"
|
|
215
|
+
require_relative "anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object"
|
|
216
|
+
require_relative "anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object"
|
|
217
|
+
require_relative "anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object"
|
|
218
|
+
require_relative "anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object"
|
|
219
|
+
require_relative "anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object"
|
|
220
|
+
require_relative "anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object"
|
|
221
|
+
require_relative "anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object"
|
|
222
|
+
require_relative "anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object"
|
|
223
|
+
require_relative "anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object"
|
|
224
|
+
require_relative "anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object"
|
|
225
|
+
require_relative "anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object"
|
|
226
|
+
require_relative "anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object"
|
|
227
|
+
require_relative "anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object"
|
|
228
|
+
require_relative "anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object"
|
|
229
|
+
require_relative "anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object"
|
|
230
|
+
require_relative "anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object"
|
|
231
|
+
require_relative "anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object"
|
|
232
|
+
require_relative "anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object"
|
|
233
|
+
require_relative "anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object"
|
|
234
|
+
require_relative "anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object"
|
|
235
|
+
require_relative "anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object"
|
|
236
|
+
require_relative "anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object"
|
|
237
|
+
require_relative "anthropic/models/beta/beta_managed_agents_unknown_run_error_object"
|
|
238
|
+
require_relative "anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object"
|
|
239
|
+
require_relative "anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object"
|
|
240
|
+
require_relative "anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object"
|
|
241
|
+
require_relative "anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object"
|
|
242
|
+
require_relative "anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object"
|
|
243
|
+
require_relative "anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object"
|
|
244
|
+
require_relative "anthropic/models/beta/beta_target_store_held_error_object"
|
|
245
|
+
require_relative "anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object"
|
|
246
|
+
require_relative "anthropic/models/beta/beta_tool_search_tool_result_error_object"
|
|
247
|
+
require_relative "anthropic/models/beta/beta_web_search_tool_request_error_object"
|
|
248
|
+
require_relative "anthropic/models/beta/beta_web_search_tool_result_error_object"
|
|
196
249
|
require_relative "anthropic/models/beta/environments/beta_self_hosted_work_stop_request"
|
|
197
250
|
require_relative "anthropic/models/beta/environments/beta_self_hosted_work_update_request"
|
|
251
|
+
require_relative "anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object"
|
|
252
|
+
require_relative "anthropic/models/beta/memory_stores/beta_managed_agents_error_object"
|
|
253
|
+
require_relative "anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object"
|
|
254
|
+
require_relative "anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object"
|
|
255
|
+
require_relative "anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object"
|
|
198
256
|
require_relative "anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target_create"
|
|
257
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_billing_error_object"
|
|
258
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object"
|
|
259
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object"
|
|
260
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object"
|
|
261
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object"
|
|
262
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object"
|
|
263
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object"
|
|
264
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object"
|
|
265
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object"
|
|
266
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object"
|
|
267
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object"
|
|
268
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object"
|
|
269
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object"
|
|
270
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object"
|
|
271
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object"
|
|
272
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object"
|
|
273
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object"
|
|
274
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object"
|
|
275
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object"
|
|
276
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object"
|
|
277
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object"
|
|
278
|
+
require_relative "anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object"
|
|
199
279
|
require_relative "anthropic/models/beta/beta_managed_agents_file_resource_params"
|
|
200
280
|
require_relative "anthropic/models/beta/beta_webhook_event"
|
|
281
|
+
require_relative "anthropic/models/beta_api_error_object"
|
|
282
|
+
require_relative "anthropic/models/beta_authentication_error_object"
|
|
283
|
+
require_relative "anthropic/models/beta_billing_error_object"
|
|
284
|
+
require_relative "anthropic/models/beta_error_object"
|
|
285
|
+
require_relative "anthropic/models/beta_gateway_timeout_error_object"
|
|
286
|
+
require_relative "anthropic/models/beta_invalid_request_error_object"
|
|
287
|
+
require_relative "anthropic/models/beta_not_found_error_object"
|
|
288
|
+
require_relative "anthropic/models/beta_overloaded_error_object"
|
|
289
|
+
require_relative "anthropic/models/beta_permission_error_object"
|
|
290
|
+
require_relative "anthropic/models/beta_rate_limit_error_object"
|
|
291
|
+
require_relative "anthropic/models/billing_error_object"
|
|
292
|
+
require_relative "anthropic/models/code_execution_tool_result_error_object"
|
|
293
|
+
require_relative "anthropic/models/gateway_timeout_error_object"
|
|
294
|
+
require_relative "anthropic/models/invalid_request_error_object"
|
|
295
|
+
require_relative "anthropic/models/not_found_error_object"
|
|
296
|
+
require_relative "anthropic/models/overloaded_error_object"
|
|
297
|
+
require_relative "anthropic/models/permission_error_object"
|
|
298
|
+
require_relative "anthropic/models/rate_limit_error_object"
|
|
299
|
+
require_relative "anthropic/models/text_editor_code_execution_tool_result_error_object"
|
|
300
|
+
require_relative "anthropic/models/tool_search_tool_result_error_object"
|
|
301
|
+
require_relative "anthropic/models/web_search_tool_request_error_object"
|
|
302
|
+
require_relative "anthropic/models/web_search_tool_result_error_object"
|
|
201
303
|
require_relative "anthropic/models/anthropic_beta"
|
|
202
304
|
require_relative "anthropic/models/api_error_object"
|
|
203
305
|
require_relative "anthropic/models/assistant_message_param"
|
|
@@ -243,6 +345,8 @@ require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_blo
|
|
|
243
345
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_block_param"
|
|
244
346
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_error"
|
|
245
347
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_error_param"
|
|
348
|
+
require_relative "anthropic/models/beta/beta_billing_policy"
|
|
349
|
+
require_relative "anthropic/models/beta/beta_bill_to"
|
|
246
350
|
require_relative "anthropic/models/beta/beta_browser_click_target"
|
|
247
351
|
require_relative "anthropic/models/beta/beta_browser_close_tab_config"
|
|
248
352
|
require_relative "anthropic/models/beta/beta_browser_close_tab_input"
|
|
@@ -932,6 +1036,8 @@ require_relative "anthropic/models/beta/beta_webhook_environment_created_event_d
|
|
|
932
1036
|
require_relative "anthropic/models/beta/beta_webhook_environment_deleted_event_data"
|
|
933
1037
|
require_relative "anthropic/models/beta/beta_webhook_environment_updated_event_data"
|
|
934
1038
|
require_relative "anthropic/models/beta/beta_webhook_event_data"
|
|
1039
|
+
require_relative "anthropic/models/beta/beta_webhook_external_key_failed_event_data"
|
|
1040
|
+
require_relative "anthropic/models/beta/beta_webhook_external_key_recovered_event_data"
|
|
935
1041
|
require_relative "anthropic/models/beta/beta_webhook_memory_store_archived_event_data"
|
|
936
1042
|
require_relative "anthropic/models/beta/beta_webhook_memory_store_created_event_data"
|
|
937
1043
|
require_relative "anthropic/models/beta/beta_webhook_memory_store_deleted_event_data"
|
|
@@ -1184,6 +1290,8 @@ require_relative "anthropic/models/beta/organization/beta_api_key_workspace_scop
|
|
|
1184
1290
|
require_relative "anthropic/models/beta/organization/beta_aws_external_key_config"
|
|
1185
1291
|
require_relative "anthropic/models/beta/organization/beta_azure_external_key_config"
|
|
1186
1292
|
require_relative "anthropic/models/beta/organization/beta_azure_external_key_config_param"
|
|
1293
|
+
require_relative "anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details"
|
|
1294
|
+
require_relative "anthropic/models/beta/organization/beta_bundle_on_call_error_details"
|
|
1187
1295
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details"
|
|
1188
1296
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details"
|
|
1189
1297
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details"
|
|
@@ -1266,6 +1374,9 @@ require_relative "anthropic/models/beta/organization/beta_plugin_target_rbac_gro
|
|
|
1266
1374
|
require_relative "anthropic/models/beta/organization/beta_plugin_user_actor"
|
|
1267
1375
|
require_relative "anthropic/models/beta/organization/beta_rbac_group"
|
|
1268
1376
|
require_relative "anthropic/models/beta/organization/beta_rbac_role"
|
|
1377
|
+
require_relative "anthropic/models/beta/organization/beta_rbac_role_source"
|
|
1378
|
+
require_relative "anthropic/models/beta/organization/beta_rbac_role_source_built_in"
|
|
1379
|
+
require_relative "anthropic/models/beta/organization/beta_rbac_role_source_custom"
|
|
1269
1380
|
require_relative "anthropic/models/beta/organization/beta_registration_pending_error_details"
|
|
1270
1381
|
require_relative "anthropic/models/beta/organization/beta_scan_failed_error_details"
|
|
1271
1382
|
require_relative "anthropic/models/beta/organization/beta_scan_pending_error_details"
|
|
@@ -1335,6 +1446,7 @@ require_relative "anthropic/models/beta/organization/claude_tag/bundles/target_c
|
|
|
1335
1446
|
require_relative "anthropic/models/beta/organization/claude_tag/bundles/target_delete_params"
|
|
1336
1447
|
require_relative "anthropic/models/beta/organization/claude_tag/bundles/target_list_params"
|
|
1337
1448
|
require_relative "anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params"
|
|
1449
|
+
require_relative "anthropic/models/beta/organization/claude_tag/bundle_update_params"
|
|
1338
1450
|
require_relative "anthropic/models/beta/organization/claude_tag/slack_channel_create_params"
|
|
1339
1451
|
require_relative "anthropic/models/beta/organization/claude_tag/slack_channel_delete_params"
|
|
1340
1452
|
require_relative "anthropic/models/beta/organization/claude_tag/slack_channel_list_params"
|
|
@@ -1968,6 +2080,7 @@ require_relative "anthropic/models/content_block_param"
|
|
|
1968
2080
|
require_relative "anthropic/models/content_block_source"
|
|
1969
2081
|
require_relative "anthropic/models/content_block_source_content"
|
|
1970
2082
|
require_relative "anthropic/models/context_management_capability"
|
|
2083
|
+
require_relative "anthropic/models/contract_spend_limit_reached_error_details"
|
|
1971
2084
|
require_relative "anthropic/models/deleted_file"
|
|
1972
2085
|
require_relative "anthropic/models/deleted_skill"
|
|
1973
2086
|
require_relative "anthropic/models/deleted_user_profile"
|
|
@@ -2000,6 +2113,8 @@ require_relative "anthropic/models/image_transformations_param"
|
|
|
2000
2113
|
require_relative "anthropic/models/input_json_delta"
|
|
2001
2114
|
require_relative "anthropic/models/invalid_request_error"
|
|
2002
2115
|
require_relative "anthropic/models/json_output_format"
|
|
2116
|
+
require_relative "anthropic/models/linked_organization_billing_unavailable_error_details"
|
|
2117
|
+
require_relative "anthropic/models/linked_organization_spend_limit_reached_error_details"
|
|
2003
2118
|
require_relative "anthropic/models/memory_tool_20250818"
|
|
2004
2119
|
require_relative "anthropic/models/message"
|
|
2005
2120
|
require_relative "anthropic/models/message_content_param"
|
|
@@ -2201,6 +2316,9 @@ require_relative "anthropic/models/organization/rbac_roles/rbac_connector_scope_
|
|
|
2201
2316
|
require_relative "anthropic/models/organization/rbac_roles/rbac_connector_tool_permission_resource"
|
|
2202
2317
|
require_relative "anthropic/models/organization/rbac_roles/rbac_organization_permission_resource"
|
|
2203
2318
|
require_relative "anthropic/models/organization/rbac_roles/rbac_role_permission"
|
|
2319
|
+
require_relative "anthropic/models/organization/rbac_role_source"
|
|
2320
|
+
require_relative "anthropic/models/organization/rbac_role_source_built_in"
|
|
2321
|
+
require_relative "anthropic/models/organization/rbac_role_source_custom"
|
|
2204
2322
|
require_relative "anthropic/models/organization/service_account"
|
|
2205
2323
|
require_relative "anthropic/models/organization/service_account_archive_params"
|
|
2206
2324
|
require_relative "anthropic/models/organization/service_account_create_params"
|
|
@@ -2280,6 +2398,7 @@ require_relative "anthropic/models/org_member_limit_exceeded_error_details"
|
|
|
2280
2398
|
require_relative "anthropic/models/output_config"
|
|
2281
2399
|
require_relative "anthropic/models/output_tokens_details"
|
|
2282
2400
|
require_relative "anthropic/models/overloaded_error"
|
|
2401
|
+
require_relative "anthropic/models/parent_organization_required_error_details"
|
|
2283
2402
|
require_relative "anthropic/models/permission_error"
|
|
2284
2403
|
require_relative "anthropic/models/plain_text_source"
|
|
2285
2404
|
require_relative "anthropic/models/ramp_limit_exceeded_error_details"
|
|
@@ -2292,6 +2411,7 @@ require_relative "anthropic/models/raw_message_delta_event"
|
|
|
2292
2411
|
require_relative "anthropic/models/raw_message_start_event"
|
|
2293
2412
|
require_relative "anthropic/models/raw_message_stop_event"
|
|
2294
2413
|
require_relative "anthropic/models/raw_message_stream_event"
|
|
2414
|
+
require_relative "anthropic/models/rbac_role_not_found_error_details"
|
|
2295
2415
|
require_relative "anthropic/models/redacted_thinking_block"
|
|
2296
2416
|
require_relative "anthropic/models/redacted_thinking_block_param"
|
|
2297
2417
|
require_relative "anthropic/models/refusal_stop_details"
|
|
@@ -2392,6 +2512,7 @@ require_relative "anthropic/models/user_location"
|
|
|
2392
2512
|
require_relative "anthropic/models/user_message_param"
|
|
2393
2513
|
require_relative "anthropic/models/user_profile"
|
|
2394
2514
|
require_relative "anthropic/models/user_profile_access_type"
|
|
2515
|
+
require_relative "anthropic/models/user_profile_billing_not_authorized_error_details"
|
|
2395
2516
|
require_relative "anthropic/models/user_profile_create_params"
|
|
2396
2517
|
require_relative "anthropic/models/user_profile_cyber_program"
|
|
2397
2518
|
require_relative "anthropic/models/user_profile_cyber_requirements"
|
|
@@ -2412,9 +2533,11 @@ require_relative "anthropic/models/user_profile_external_user_entity_type"
|
|
|
2412
2533
|
require_relative "anthropic/models/user_profile_list_order"
|
|
2413
2534
|
require_relative "anthropic/models/user_profile_list_order_by"
|
|
2414
2535
|
require_relative "anthropic/models/user_profile_list_params"
|
|
2536
|
+
require_relative "anthropic/models/user_profile_not_billable_error_details"
|
|
2415
2537
|
require_relative "anthropic/models/user_profile_not_found_error_details"
|
|
2416
2538
|
require_relative "anthropic/models/user_profile_programs"
|
|
2417
2539
|
require_relative "anthropic/models/user_profile_program_status"
|
|
2540
|
+
require_relative "anthropic/models/user_profile_required_error_details"
|
|
2418
2541
|
require_relative "anthropic/models/user_profile_retrieve_params"
|
|
2419
2542
|
require_relative "anthropic/models/user_profiles/action_url_create_params"
|
|
2420
2543
|
require_relative "anthropic/models/user_profiles/user_profile_action_url"
|
data/rbi/anthropic/errors.rbi
CHANGED
|
@@ -222,6 +222,10 @@ module Anthropic
|
|
|
222
222
|
HTTP_STATUS = 401
|
|
223
223
|
end
|
|
224
224
|
|
|
225
|
+
class PaymentRequiredError < Anthropic::Errors::APIStatusError
|
|
226
|
+
HTTP_STATUS = 402
|
|
227
|
+
end
|
|
228
|
+
|
|
225
229
|
class PermissionDeniedError < Anthropic::Errors::APIStatusError
|
|
226
230
|
HTTP_STATUS = 403
|
|
227
231
|
end
|
|
@@ -53,12 +53,16 @@ module Anthropic
|
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
# @api private
|
|
56
|
-
sig
|
|
56
|
+
sig do
|
|
57
|
+
params(req: Anthropic::APIRequest).returns(Anthropic::APIRequest)
|
|
58
|
+
end
|
|
57
59
|
private def adapt_request(req)
|
|
58
60
|
end
|
|
59
61
|
|
|
60
62
|
# @api private
|
|
61
|
-
sig
|
|
63
|
+
sig do
|
|
64
|
+
params(req: Anthropic::APIRequest).returns(Anthropic::APIRequest)
|
|
65
|
+
end
|
|
62
66
|
private def sign_request(req)
|
|
63
67
|
end
|
|
64
68
|
|
|
@@ -4,14 +4,23 @@ module Anthropic
|
|
|
4
4
|
module Helpers
|
|
5
5
|
module Bedrock
|
|
6
6
|
module EventStream
|
|
7
|
-
AWS_CONTENT_TYPE =
|
|
7
|
+
AWS_CONTENT_TYPE =
|
|
8
|
+
T.let(%r{^application/vnd\.amazon\.eventstream}, Regexp)
|
|
8
9
|
|
|
9
10
|
class << self
|
|
10
|
-
sig
|
|
11
|
+
sig do
|
|
12
|
+
params(chunks: T::Enumerable[String]).returns(T::Enumerable[String])
|
|
13
|
+
end
|
|
11
14
|
def to_sse(chunks)
|
|
12
15
|
end
|
|
13
16
|
|
|
14
|
-
sig
|
|
17
|
+
sig do
|
|
18
|
+
params(
|
|
19
|
+
decoder: T.untyped,
|
|
20
|
+
chunk: T.nilable(String),
|
|
21
|
+
y: Enumerator::Yielder
|
|
22
|
+
).void
|
|
23
|
+
end
|
|
15
24
|
def drain(decoder, chunk, y)
|
|
16
25
|
end
|
|
17
26
|
|
|
@@ -23,9 +23,13 @@ module Anthropic
|
|
|
23
23
|
|
|
24
24
|
sig do
|
|
25
25
|
params(
|
|
26
|
-
fallbacks:
|
|
27
|
-
T
|
|
28
|
-
|
|
26
|
+
fallbacks:
|
|
27
|
+
T::Array[
|
|
28
|
+
T.any(
|
|
29
|
+
Anthropic::Models::Beta::BetaFallbackParam,
|
|
30
|
+
T::Hash[Symbol, T.anything]
|
|
31
|
+
)
|
|
32
|
+
],
|
|
29
33
|
betas: T::Array[String]
|
|
30
34
|
).void
|
|
31
35
|
end
|
|
@@ -36,7 +40,11 @@ module Anthropic
|
|
|
36
40
|
override
|
|
37
41
|
.params(
|
|
38
42
|
request: Anthropic::APIRequest,
|
|
39
|
-
nxt:
|
|
43
|
+
nxt:
|
|
44
|
+
T
|
|
45
|
+
.proc
|
|
46
|
+
.params(req: Anthropic::APIRequest)
|
|
47
|
+
.returns(Anthropic::APIResponse)
|
|
40
48
|
)
|
|
41
49
|
.returns(Anthropic::APIResponse)
|
|
42
50
|
end
|
|
@@ -57,12 +57,16 @@ module Anthropic
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
# @api private
|
|
60
|
-
sig
|
|
60
|
+
sig do
|
|
61
|
+
params(req: Anthropic::APIRequest).returns(Anthropic::APIRequest)
|
|
62
|
+
end
|
|
61
63
|
private def adapt_request(req)
|
|
62
64
|
end
|
|
63
65
|
|
|
64
66
|
# @api private
|
|
65
|
-
sig
|
|
67
|
+
sig do
|
|
68
|
+
params(req: Anthropic::APIRequest).returns(Anthropic::APIRequest)
|
|
69
|
+
end
|
|
66
70
|
private def apply_google_auth(req)
|
|
67
71
|
end
|
|
68
72
|
|
|
@@ -477,6 +477,8 @@ module Anthropic
|
|
|
477
477
|
"anthropic.organization.claude_tag.slack_workspaces.list"
|
|
478
478
|
ORGANIZATION_CLAUDE_TAG_BUNDLES_RETRIEVE =
|
|
479
479
|
"anthropic.organization.claude_tag.bundles.retrieve"
|
|
480
|
+
ORGANIZATION_CLAUDE_TAG_BUNDLES_UPDATE =
|
|
481
|
+
"anthropic.organization.claude_tag.bundles.update"
|
|
480
482
|
ORGANIZATION_CLAUDE_TAG_BUNDLES_LIST =
|
|
481
483
|
"anthropic.organization.claude_tag.bundles.list"
|
|
482
484
|
ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_CREATE =
|
|
@@ -72,6 +72,11 @@ module Anthropic
|
|
|
72
72
|
private def resolve_variant(value)
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
+
# @api private
|
|
76
|
+
sig { params(value: T.anything).returns(T.nilable(T.anything)) }
|
|
77
|
+
private def resolve_untagged_variant(value)
|
|
78
|
+
end
|
|
79
|
+
|
|
75
80
|
sig { params(other: T.anything).returns(T::Boolean) }
|
|
76
81
|
def ===(other)
|
|
77
82
|
end
|