anthropic 2.11.0 → 2.13.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 +42 -0
- data/README.md +1 -1
- data/lib/anthropic/client.rb +3 -0
- data/lib/anthropic/error_classes.rb +26 -0
- data/lib/anthropic/helpers/bedrock/client.rb +12 -2
- data/lib/anthropic/internal/tracing.rb +6 -0
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/beta_approval_required_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_approval_required_error_details.rb +30 -0
- data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rb +22 -0
- data/lib/anthropic/models/beta/beta_human_review_not_available_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_human_review_not_available_error_details.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +6 -0
- data/lib/anthropic/models/beta/beta_organization_not_eligible_error.rb +23 -0
- data/lib/anthropic/models/beta/beta_organization_not_eligible_error_details.rb +23 -0
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +13 -2
- data/lib/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rb +39 -0
- data/lib/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rb +39 -0
- data/lib/anthropic/models/beta/message_create_params.rb +6 -0
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +6 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +7 -7
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +7 -7
- data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +11 -13
- data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +11 -13
- data/lib/anthropic/models/beta/organization/beta_access_transparency.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_active_external_storage_status.rb +42 -0
- data/lib/anthropic/models/beta/organization/beta_anthropic_human_review.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_anthropic_human_review_param.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_available_external_storage_status.rb +43 -0
- data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config.rb +45 -0
- data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rb +51 -0
- data/lib/anthropic/models/beta/organization/beta_compliance_settings.rb +18 -1
- data/lib/anthropic/models/beta/organization/beta_deleted_external_storage.rb +35 -0
- data/lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb +52 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage.rb +217 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_failed_check.rb +119 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_member.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_member_param.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config.rb +45 -0
- data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_grant_required_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_grant_required_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy.rb +48 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_internal_storage.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_internal_storage_param.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rb +24 -0
- 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_pending_configuration_external_storage_status.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rb +31 -0
- data/lib/anthropic/models/beta/organization/beta_storage_member.rb +59 -0
- data/lib/anthropic/models/beta/organization/beta_storage_member_param.rb +60 -0
- data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rb +30 -0
- data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rb +44 -0
- data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_unsupported_region_error.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_unsupported_region_error_details.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_workspace.rb +12 -1
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rb +37 -0
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rb +18 -0
- data/lib/anthropic/models/beta/organization/compliance_setting_retrieve_params.rb +14 -1
- data/lib/anthropic/models/beta/organization/compliance_setting_update_params.rb +10 -1
- data/lib/anthropic/models/beta/organization/external_storage_activate_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_create_params.rb +113 -0
- data/lib/anthropic/models/beta/organization/external_storage_delete_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_list_params.rb +56 -0
- data/lib/anthropic/models/beta/organization/external_storage_retrieve_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_update_params.rb +49 -0
- data/lib/anthropic/models/beta/organization/plugins/beta_plugin_share.rb +2 -2
- 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_archive_params.rb +15 -1
- data/lib/anthropic/models/beta/organization/workspace_create_params.rb +16 -1
- data/lib/anthropic/models/beta/organization/workspace_list_params.rb +10 -1
- data/lib/anthropic/models/beta/organization/workspace_retrieve_params.rb +14 -1
- data/lib/anthropic/models/beta/organization/workspace_update_params.rb +25 -1
- data/lib/anthropic/models/change_outcome_unknown_error.rb +20 -0
- data/lib/anthropic/models/change_outcome_unknown_error_details.rb +18 -0
- data/lib/anthropic/models/error_details.rb +184 -5
- data/lib/anthropic/models/image_dimensions_too_large_error.rb +21 -0
- data/lib/anthropic/models/image_dimensions_too_large_error_details.rb +41 -0
- data/lib/anthropic/models/model.rb +6 -0
- data/lib/anthropic/models/organization/storage_attached_during_archive_error.rb +23 -0
- data/lib/anthropic/models/organization/storage_attached_during_archive_error_details.rb +21 -0
- data/lib/anthropic/models/organization/storage_profile_mismatch_error.rb +22 -0
- data/lib/anthropic/models/organization/storage_profile_mismatch_error_details.rb +28 -0
- data/lib/anthropic/models/organization/workspace_created_incomplete_error.rb +23 -0
- data/lib/anthropic/models/organization/workspace_created_incomplete_error_details.rb +29 -0
- data/lib/anthropic/models/organization/workspace_policy_violation_error_details.rb +2 -2
- data/lib/anthropic/models/user_profile_billing_not_authorized_error.rb +1 -1
- data/lib/anthropic/models/user_profile_billing_not_authorized_error_details.rb +1 -1
- data/lib/anthropic/models/user_profile_not_billable_error.rb +2 -2
- data/lib/anthropic/models/user_profile_not_billable_error_details.rb +2 -2
- data/lib/anthropic/models/workspace_human_review_disabled_error.rb +20 -0
- data/lib/anthropic/models/workspace_human_review_disabled_error_details.rb +18 -0
- data/lib/anthropic/models.rb +12 -0
- data/lib/anthropic/resources/beta/messages/batches.rb +1 -0
- data/lib/anthropic/resources/beta/messages.rb +3 -0
- data/lib/anthropic/resources/beta/organization/analytics/cost.rb +6 -0
- data/lib/anthropic/resources/beta/organization/analytics/usage.rb +6 -1
- data/lib/anthropic/resources/beta/organization/compliance_settings.rb +17 -5
- data/lib/anthropic/resources/beta/organization/external_storage.rb +263 -0
- data/lib/anthropic/resources/beta/organization/plugins/shares.rb +3 -4
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +9 -6
- data/lib/anthropic/resources/beta/organization/plugins.rb +2 -2
- data/lib/anthropic/resources/beta/organization/workspaces.rb +82 -22
- data/lib/anthropic/resources/beta/organization.rb +4 -0
- data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +5 -1
- data/lib/anthropic/resources/beta/user_profiles.rb +36 -6
- data/lib/anthropic/resources/beta.rb +3 -0
- data/lib/anthropic/resources/messages/batches.rb +1 -0
- data/lib/anthropic/resources/messages.rb +3 -0
- data/lib/anthropic/resources/organization/workspaces.rb +4 -0
- data/lib/anthropic/resources/user_profiles/action_urls.rb +5 -1
- data/lib/anthropic/resources/user_profiles.rb +30 -5
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +85 -0
- data/rbi/anthropic/client.rbi +3 -0
- data/rbi/anthropic/internal/tracing.rbi +12 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_approval_required_error.rbi +19 -0
- data/rbi/anthropic/models/beta/beta_approval_required_error_details.rbi +42 -0
- data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error.rbi +23 -0
- data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_human_review_not_available_error.rbi +21 -0
- data/rbi/anthropic/models/beta/beta_human_review_not_available_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_organization_not_eligible_error.rbi +22 -0
- data/rbi/anthropic/models/beta/beta_organization_not_eligible_error_details.rbi +34 -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_storage_failed_event_data.rbi +53 -0
- data/rbi/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbi +53 -0
- data/rbi/anthropic/models/beta/message_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +12 -12
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +12 -12
- data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +22 -26
- data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +22 -26
- data/rbi/anthropic/models/beta/organization/beta_access_transparency.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_active_external_storage_status.rbi +57 -0
- data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_available_external_storage_status.rbi +58 -0
- data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config.rbi +67 -0
- data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbi +71 -0
- data/rbi/anthropic/models/beta/organization/beta_compliance_settings.rbi +33 -1
- data/rbi/anthropic/models/beta/organization/beta_deleted_external_storage.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_draining_external_storage_status.rbi +72 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage.rbi +307 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_failed_check.rbi +359 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_member.rbi +51 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_member_param.rbi +51 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbi +67 -0
- data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/beta_grant_required_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_grant_required_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbi +28 -0
- data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbi +35 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy.rbi +134 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbi +153 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbi +153 -0
- data/rbi/anthropic/models/beta/organization/beta_internal_storage.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_internal_storage_param.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbi +34 -0
- 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_pending_configuration_external_storage_status.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbi +43 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_member.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_member_param.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbi +42 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbi +74 -0
- data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbi +28 -0
- data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbi +35 -0
- data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error.rbi +24 -0
- data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace.rbi +29 -1
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbi +62 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbi +35 -4
- data/rbi/anthropic/models/beta/organization/compliance_setting_update_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/external_storage_activate_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_create_params.rbi +192 -0
- data/rbi/anthropic/models/beta/organization/external_storage_delete_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_list_params.rbi +96 -0
- data/rbi/anthropic/models/beta/organization/external_storage_retrieve_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_update_params.rbi +87 -0
- data/rbi/anthropic/models/beta/organization/plugins/beta_plugin_share.rbi +2 -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_archive_params.rbi +29 -1
- data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +40 -0
- data/rbi/anthropic/models/beta/organization/workspace_list_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/workspace_retrieve_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +65 -0
- data/rbi/anthropic/models/change_outcome_unknown_error.rbi +17 -0
- data/rbi/anthropic/models/change_outcome_unknown_error_details.rbi +28 -0
- data/rbi/anthropic/models/error_details.rbi +182 -2
- data/rbi/anthropic/models/image_dimensions_too_large_error.rbi +18 -0
- data/rbi/anthropic/models/image_dimensions_too_large_error_details.rbi +63 -0
- data/rbi/anthropic/models/organization/storage_attached_during_archive_error.rbi +24 -0
- data/rbi/anthropic/models/organization/storage_attached_during_archive_error_details.rbi +31 -0
- data/rbi/anthropic/models/organization/storage_profile_mismatch_error.rbi +21 -0
- data/rbi/anthropic/models/organization/storage_profile_mismatch_error_details.rbi +40 -0
- data/rbi/anthropic/models/organization/workspace_created_incomplete_error.rbi +24 -0
- data/rbi/anthropic/models/organization/workspace_created_incomplete_error_details.rbi +43 -0
- data/rbi/anthropic/models/organization/workspace_policy_violation_error_details.rbi +2 -2
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error.rbi +1 -1
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error_details.rbi +1 -1
- data/rbi/anthropic/models/user_profile_not_billable_error.rbi +2 -2
- data/rbi/anthropic/models/user_profile_not_billable_error_details.rbi +2 -2
- data/rbi/anthropic/models/workspace_human_review_disabled_error.rbi +17 -0
- data/rbi/anthropic/models/workspace_human_review_disabled_error_details.rbi +28 -0
- data/rbi/anthropic/models.rbi +16 -0
- data/rbi/anthropic/resources/beta/messages.rbi +18 -0
- data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +17 -14
- data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +17 -15
- data/rbi/anthropic/resources/beta/organization/compliance_settings.rbi +20 -6
- data/rbi/anthropic/resources/beta/organization/external_storage.rbi +173 -0
- data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +3 -4
- data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +9 -6
- data/rbi/anthropic/resources/beta/organization/plugins.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +84 -33
- data/rbi/anthropic/resources/beta/organization.rbi +5 -0
- data/rbi/anthropic/resources/beta/user_profiles/action_urls.rbi +5 -1
- data/rbi/anthropic/resources/beta/user_profiles.rbi +36 -6
- data/rbi/anthropic/resources/beta.rbi +3 -0
- data/rbi/anthropic/resources/user_profiles/action_urls.rbi +5 -1
- data/rbi/anthropic/resources/user_profiles.rbi +30 -5
- data/sig/anthropic/internal/tracing.rbs +6 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_approval_required_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_approval_required_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_human_review_not_available_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_human_review_not_available_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_organization_not_eligible_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_organization_not_eligible_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +16 -0
- data/sig/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/organization/beta_access_transparency.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_active_external_storage_status.rbs +30 -0
- data/sig/anthropic/models/beta/organization/beta_anthropic_human_review.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_available_external_storage_status.rbs +30 -0
- data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_compliance_settings.rbs +11 -2
- data/sig/anthropic/models/beta/organization/beta_deleted_external_storage.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_draining_external_storage_status.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage.rbs +161 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_failed_check.rbs +138 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_member.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_member_param.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_grant_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_grant_required_error_details.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_internal_storage.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_internal_storage_param.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +4 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +4 -0
- data/sig/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbs +26 -0
- data/sig/anthropic/models/beta/organization/beta_storage_member.rbs +42 -0
- data/sig/anthropic/models/beta/organization/beta_storage_member_param.rbs +42 -0
- data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbs +34 -0
- data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_unsupported_region_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_workspace.rbs +11 -2
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbs +29 -0
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbs +18 -0
- data/sig/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbs +16 -3
- data/sig/anthropic/models/beta/organization/compliance_setting_update_params.rbs +10 -1
- data/sig/anthropic/models/beta/organization/external_storage_activate_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_create_params.rbs +92 -0
- data/sig/anthropic/models/beta/organization/external_storage_delete_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_list_params.rbs +51 -0
- data/sig/anthropic/models/beta/organization/external_storage_retrieve_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_update_params.rbs +44 -0
- data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +4 -0
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +4 -0
- data/sig/anthropic/models/beta/organization/workspace_archive_params.rbs +12 -1
- data/sig/anthropic/models/beta/organization/workspace_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/workspace_list_params.rbs +10 -1
- data/sig/anthropic/models/beta/organization/workspace_retrieve_params.rbs +12 -1
- data/sig/anthropic/models/beta/organization/workspace_update_params.rbs +15 -1
- data/sig/anthropic/models/change_outcome_unknown_error.rbs +9 -0
- data/sig/anthropic/models/change_outcome_unknown_error_details.rbs +14 -0
- data/sig/anthropic/models/error_details.rbs +188 -1
- data/sig/anthropic/models/image_dimensions_too_large_error.rbs +9 -0
- data/sig/anthropic/models/image_dimensions_too_large_error_details.rbs +30 -0
- data/sig/anthropic/models/organization/storage_attached_during_archive_error.rbs +11 -0
- data/sig/anthropic/models/organization/storage_attached_during_archive_error_details.rbs +16 -0
- data/sig/anthropic/models/organization/storage_profile_mismatch_error.rbs +11 -0
- data/sig/anthropic/models/organization/storage_profile_mismatch_error_details.rbs +21 -0
- data/sig/anthropic/models/organization/workspace_created_incomplete_error.rbs +11 -0
- data/sig/anthropic/models/organization/workspace_created_incomplete_error_details.rbs +24 -0
- data/sig/anthropic/models/workspace_human_review_disabled_error.rbs +9 -0
- data/sig/anthropic/models/workspace_human_review_disabled_error_details.rbs +14 -0
- data/sig/anthropic/models.rbs +12 -0
- data/sig/anthropic/resources/beta/organization/compliance_settings.rbs +2 -0
- data/sig/anthropic/resources/beta/organization/external_storage.rbs +52 -0
- data/sig/anthropic/resources/beta/organization/workspaces.rbs +6 -0
- data/sig/anthropic/resources/beta/organization.rbs +2 -0
- metadata +257 -2
|
@@ -47,6 +47,9 @@ module Anthropic
|
|
|
47
47
|
# The `compaction` block's `tool_changes` differs from what was returned with the block.
|
|
48
48
|
variant :compaction_tool_changes_mismatch, -> { Anthropic::CompactionToolChangesMismatchErrorDetails }
|
|
49
49
|
|
|
50
|
+
# The longest side of one or more images in the request exceeds the image size limit. Scale each image in `paths` so that neither side exceeds `max_side_length_pixels`, or remove it, then retry.
|
|
51
|
+
variant :image_dimensions_too_large, -> { Anthropic::ImageDimensionsTooLargeErrorDetails }
|
|
52
|
+
|
|
50
53
|
# Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
|
|
51
54
|
variant :organization_on_hold, -> { Anthropic::OrganizationOnHoldErrorDetails }
|
|
52
55
|
|
|
@@ -85,11 +88,11 @@ module Anthropic
|
|
|
85
88
|
variant :linked_organization_spend_limit_reached,
|
|
86
89
|
-> { Anthropic::LinkedOrganizationSpendLimitReachedErrorDetails }
|
|
87
90
|
|
|
88
|
-
# The customer that the
|
|
91
|
+
# The customer that the request's user profile represents has not authorized the caller to bill them, or the authorization that the request's credential uses has ended. The response does not say which applies.
|
|
89
92
|
variant :user_profile_billing_not_authorized,
|
|
90
93
|
-> { Anthropic::UserProfileBillingNotAuthorizedErrorDetails }
|
|
91
94
|
|
|
92
|
-
# The
|
|
95
|
+
# The request's user profile cannot be billed. The response gives no more specific error code and does not say what the reason is.
|
|
93
96
|
variant :user_profile_not_billable, -> { Anthropic::UserProfileNotBillableErrorDetails }
|
|
94
97
|
|
|
95
98
|
# No usable Thread state was found for `previous_message_id`. Replay the full conversation with `thread: {"type": "create"}` to start a new Thread.
|
|
@@ -117,6 +120,9 @@ module Anthropic
|
|
|
117
120
|
# The compaction could not be completed for a transient server reason. Retry the request.
|
|
118
121
|
variant :compaction_unavailable, -> { Anthropic::CompactionUnavailableErrorDetails }
|
|
119
122
|
|
|
123
|
+
# The request's Workspace has Human Review turned off, and this operation is not available there. Use a Workspace with Human Review on.
|
|
124
|
+
variant :workspace_human_review_disabled, -> { Anthropic::WorkspaceHumanReviewDisabledErrorDetails }
|
|
125
|
+
|
|
120
126
|
# The organization's file storage quota is exhausted. Delete files to free up space, then retry the upload.
|
|
121
127
|
variant :storage_quota_exceeded, -> { Anthropic::StorageQuotaExceededErrorDetails }
|
|
122
128
|
|
|
@@ -193,6 +199,20 @@ module Anthropic
|
|
|
193
199
|
# The external key changed while the request was validating it. Send the request again.
|
|
194
200
|
variant :external_key_changed, -> { Anthropic::Organization::ExternalKeyChangedErrorDetails }
|
|
195
201
|
|
|
202
|
+
# The Workspace was created, but some of what the request asked for did not take effect, or may not have. Don't send the create again. The error's `message` says what to do with the Workspace at `workspace_id`.
|
|
203
|
+
variant :workspace_created_incomplete,
|
|
204
|
+
-> { Anthropic::Organization::WorkspaceCreatedIncompleteErrorDetails }
|
|
205
|
+
|
|
206
|
+
# The Workspace's storage and its user profile don't match: the Workspace and its storage must have the same user profile, or both have none.
|
|
207
|
+
variant :storage_profile_mismatch, -> { Anthropic::Organization::StorageProfileMismatchErrorDetails }
|
|
208
|
+
|
|
209
|
+
# Some of the request's changes may have been saved and others not. Send the same request again to finish it; changes already saved aren't repeated.
|
|
210
|
+
variant :change_outcome_unknown, -> { Anthropic::ChangeOutcomeUnknownErrorDetails }
|
|
211
|
+
|
|
212
|
+
# The Workspace was archived, but External Storage was attached to it during the archive and is still attached. To detach it, archive the Workspace again as a caller with the `org:external-storage:use` permission.
|
|
213
|
+
variant :storage_attached_during_archive,
|
|
214
|
+
-> { Anthropic::Organization::StorageAttachedDuringArchiveErrorDetails }
|
|
215
|
+
|
|
196
216
|
# The workspace has reached the member limit that Anthropic set for it.
|
|
197
217
|
variant :workspace_member_limit_exceeded,
|
|
198
218
|
-> { Anthropic::Organization::WorkspaceMemberLimitExceededErrorDetails }
|
|
@@ -225,6 +245,41 @@ module Anthropic
|
|
|
225
245
|
# `metadata` has too many keys, a key or value that is too long, or a reserved key. The message names each problem.
|
|
226
246
|
variant :invalid_metadata, -> { Anthropic::Beta::BetaInvalidMetadataErrorDetails }
|
|
227
247
|
|
|
248
|
+
# Anthropic has not approved External Storage for the organization, for the Workspace or, for storage bound to a user profile, for that user profile. Contact your Anthropic account team.
|
|
249
|
+
variant :grant_required, -> { Anthropic::Beta::Organization::BetaGrantRequiredErrorDetails }
|
|
250
|
+
|
|
251
|
+
# The feature isn't offered to this organization. The error's `message` names the kind of organization or, when it names none, says to contact your Anthropic account team.
|
|
252
|
+
variant :organization_not_eligible, -> { Anthropic::Beta::BetaOrganizationNotEligibleErrorDetails }
|
|
253
|
+
|
|
254
|
+
# The request can't use External Storage on this cloud provider. The error's message says why.
|
|
255
|
+
variant :provider_not_allowed, -> { Anthropic::Beta::Organization::BetaProviderNotAllowedErrorDetails }
|
|
256
|
+
|
|
257
|
+
# `provider_config.region` is not a region where External Storage is available.
|
|
258
|
+
variant :unsupported_region, -> { Anthropic::Beta::Organization::BetaUnsupportedRegionErrorDetails }
|
|
259
|
+
|
|
260
|
+
# The organization already has External Storage for this bucket that it has not deleted. List the organization's External Storage to find it.
|
|
261
|
+
variant :storage_already_registered,
|
|
262
|
+
-> { Anthropic::Beta::Organization::BetaStorageAlreadyRegisteredErrorDetails }
|
|
263
|
+
|
|
264
|
+
# One of the organization's approvals from Anthropic could not be read right now, so nothing was done. Retry after the `Retry-After` delay.
|
|
265
|
+
variant :authorization_check_unavailable,
|
|
266
|
+
-> { Anthropic::Beta::BetaAuthorizationCheckUnavailableErrorDetails }
|
|
267
|
+
|
|
268
|
+
# On Claude Platform on AWS, the External Storage ID in the request is neither a bucket ARN nor an `estrg_` ID, or is the `estrg_` ID of AWS storage. Name AWS storage by its bucket ARN, `arn:<partition>:s3:::<bucket_name>`, which responses return as its `id`.
|
|
269
|
+
variant :invalid_storage_arn, -> { Anthropic::Beta::Organization::BetaInvalidStorageARNErrorDetails }
|
|
270
|
+
|
|
271
|
+
# The External Storage is `active` or `draining`, so this delete didn't erase it. The message says what to do next. On `draining` storage this delete may have started a removal that can't be undone: get the storage and read `status.removal_started`.
|
|
272
|
+
variant :external_storage_in_use,
|
|
273
|
+
-> { Anthropic::Beta::Organization::BetaExternalStorageInUseErrorDetails }
|
|
274
|
+
|
|
275
|
+
# The External Storage can't be deleted while an Enterprise Frontier Safeguards workspace policy lists it as allowed storage.
|
|
276
|
+
variant :external_storage_in_workspace_policy,
|
|
277
|
+
-> { Anthropic::Beta::Organization::BetaExternalStorageInWorkspacePolicyErrorDetails }
|
|
278
|
+
|
|
279
|
+
# The External Storage failed verification, so the request changed nothing. `failed_checks` lists what to fix.
|
|
280
|
+
variant :storage_verification_failed,
|
|
281
|
+
-> { Anthropic::Beta::Organization::BetaStorageVerificationFailedErrorDetails }
|
|
282
|
+
|
|
228
283
|
# The member is the organization's primary owner, whom no API key or token can sign out.
|
|
229
284
|
variant :cannot_sign_out_primary_owner,
|
|
230
285
|
-> { Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails }
|
|
@@ -251,6 +306,44 @@ module Anthropic
|
|
|
251
306
|
variant :cannot_sign_out_privileged_member,
|
|
252
307
|
-> { Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails }
|
|
253
308
|
|
|
309
|
+
# Turning human review off needs Anthropic's approval for the organization, and the organization doesn't have it. Contact Anthropic support to request approval.
|
|
310
|
+
variant :approval_required, -> { Anthropic::Beta::BetaApprovalRequiredErrorDetails }
|
|
311
|
+
|
|
312
|
+
# External Storage isn't available for this Workspace, so only `internal` storage is accepted. The error's `message` says why.
|
|
313
|
+
variant :external_storage_not_available,
|
|
314
|
+
-> { Anthropic::Beta::Organization::BetaExternalStorageNotAvailableErrorDetails }
|
|
315
|
+
|
|
316
|
+
# Human review can't be set as requested on this Workspace, so the request changed nothing. The error's `message` says what to do instead.
|
|
317
|
+
variant :human_review_not_available, -> { Anthropic::Beta::BetaHumanReviewNotAvailableErrorDetails }
|
|
318
|
+
|
|
319
|
+
# The request would leave the Workspace with `inference_data_privacy.safeguards_storage` set to External Storage and `inference_data_privacy.human_review` enabled. Anthropic doesn't offer human review of data in a customer's own storage. Set `human_review` to `disabled`, or `safeguards_storage` to `internal`.
|
|
320
|
+
variant :human_review_on_with_external_storage,
|
|
321
|
+
-> { Anthropic::Beta::Organization::BetaHumanReviewOnWithExternalStorageErrorDetails }
|
|
322
|
+
|
|
323
|
+
# This External Storage can't be attached to the setting named in `field`. The error's `message` says why.
|
|
324
|
+
variant :storage_not_attachable,
|
|
325
|
+
-> { Anthropic::Beta::Organization::BetaStorageNotAttachableErrorDetails }
|
|
326
|
+
|
|
327
|
+
# In an organization managed through AWS or Google Cloud, the request would leave the Workspace with `inference_data_privacy.human_review` disabled and `inference_data_privacy.transcripts_storage` not set to External Storage. With human review disabled, the organization reviews its own flagged requests, and it receives them only in that storage.
|
|
328
|
+
variant :transcripts_storage_required,
|
|
329
|
+
-> { Anthropic::Beta::Organization::BetaTranscriptsStorageRequiredErrorDetails }
|
|
330
|
+
|
|
331
|
+
# The Workspace has reached its limit of 100 different External Storage resources attached over its lifetime. Detached storage counts toward the limit until it is deleted.
|
|
332
|
+
variant :storage_attach_limit_reached,
|
|
333
|
+
-> { Anthropic::Beta::Organization::BetaStorageAttachLimitReachedErrorDetails }
|
|
334
|
+
|
|
335
|
+
# This storage is bound to a different user profile from storage the Workspace has attached, or from active or draining storage it once had for safeguards data. Detaching storage the Workspace uses only for transcripts clears this. Detaching safeguards storage doesn't, so use a new Workspace instead.
|
|
336
|
+
variant :storage_profile_still_required,
|
|
337
|
+
-> { Anthropic::Beta::Organization::BetaStorageProfileStillRequiredErrorDetails }
|
|
338
|
+
|
|
339
|
+
# Another request changed this storage setting while this one was running, so this request left it as it is. Read the Workspace and send the request again if you still want the change.
|
|
340
|
+
variant :storage_changed_concurrently,
|
|
341
|
+
-> { Anthropic::Beta::Organization::BetaStorageChangedConcurrentlyErrorDetails }
|
|
342
|
+
|
|
343
|
+
# Another request changed the Workspace, so this request left the setting named in `field` as it is. The error's `message` says which of this request's other changes are in place. Read the Workspace and send the request again if you still want the change.
|
|
344
|
+
variant :workspace_changed_concurrently,
|
|
345
|
+
-> { Anthropic::Beta::Organization::BetaWorkspaceChangedConcurrentlyErrorDetails }
|
|
346
|
+
|
|
254
347
|
# The organization cannot retrieve, set or delete spend limits with an Admin API credential.
|
|
255
348
|
variant :spend_limits_admin_api_writes_not_enabled,
|
|
256
349
|
-> { Anthropic::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails }
|
|
@@ -352,6 +445,7 @@ module Anthropic
|
|
|
352
445
|
COMPACTION_SIGNATURE_INVALID = :compaction_signature_invalid
|
|
353
446
|
COMPACTION_TOO_MANY_TOOL_REFERENCES = :compaction_too_many_tool_references
|
|
354
447
|
COMPACTION_TOOL_CHANGES_MISMATCH = :compaction_tool_changes_mismatch
|
|
448
|
+
IMAGE_DIMENSIONS_TOO_LARGE = :image_dimensions_too_large
|
|
355
449
|
ORGANIZATION_ON_HOLD = :organization_on_hold
|
|
356
450
|
REQUEST_BODY_ENCODING_INVALID = :request_body_encoding_invalid
|
|
357
451
|
REQUEST_BODY_ENCODING_UNSUPPORTED = :request_body_encoding_unsupported
|
|
@@ -374,6 +468,7 @@ module Anthropic
|
|
|
374
468
|
RAMP_LIMIT_EXCEEDED = :ramp_limit_exceeded
|
|
375
469
|
CMEK_KEY_UNREACHABLE = :cmek_key_unreachable
|
|
376
470
|
COMPACTION_UNAVAILABLE = :compaction_unavailable
|
|
471
|
+
WORKSPACE_HUMAN_REVIEW_DISABLED = :workspace_human_review_disabled
|
|
377
472
|
STORAGE_QUOTA_EXCEEDED = :storage_quota_exceeded
|
|
378
473
|
FILE_NOT_DOWNLOADABLE = :file_not_downloadable
|
|
379
474
|
FILE_EXPIRED = :file_expired
|
|
@@ -397,6 +492,10 @@ module Anthropic
|
|
|
397
492
|
KEY_PROFILE_MISMATCH = :key_profile_mismatch
|
|
398
493
|
WORKSPACE_POLICY_VIOLATION = :workspace_policy_violation
|
|
399
494
|
EXTERNAL_KEY_CHANGED = :external_key_changed
|
|
495
|
+
WORKSPACE_CREATED_INCOMPLETE = :workspace_created_incomplete
|
|
496
|
+
STORAGE_PROFILE_MISMATCH = :storage_profile_mismatch
|
|
497
|
+
CHANGE_OUTCOME_UNKNOWN = :change_outcome_unknown
|
|
498
|
+
STORAGE_ATTACHED_DURING_ARCHIVE = :storage_attached_during_archive
|
|
400
499
|
WORKSPACE_MEMBER_LIMIT_EXCEEDED = :workspace_member_limit_exceeded
|
|
401
500
|
ORGANIZATION_TYPE_NOT_SUPPORTED = :organization_type_not_supported
|
|
402
501
|
PARENT_ORGANIZATION_REQUIRED = :parent_organization_required
|
|
@@ -407,6 +506,16 @@ module Anthropic
|
|
|
407
506
|
ENVIRONMENT_UPDATE_DISABLED = :environment_update_disabled
|
|
408
507
|
HEARTBEAT_PRECONDITION_FAILED = :heartbeat_precondition_failed
|
|
409
508
|
INVALID_METADATA = :invalid_metadata
|
|
509
|
+
GRANT_REQUIRED = :grant_required
|
|
510
|
+
ORGANIZATION_NOT_ELIGIBLE = :organization_not_eligible
|
|
511
|
+
PROVIDER_NOT_ALLOWED = :provider_not_allowed
|
|
512
|
+
UNSUPPORTED_REGION = :unsupported_region
|
|
513
|
+
STORAGE_ALREADY_REGISTERED = :storage_already_registered
|
|
514
|
+
AUTHORIZATION_CHECK_UNAVAILABLE = :authorization_check_unavailable
|
|
515
|
+
INVALID_STORAGE_ARN = :invalid_storage_arn
|
|
516
|
+
EXTERNAL_STORAGE_IN_USE = :external_storage_in_use
|
|
517
|
+
EXTERNAL_STORAGE_IN_WORKSPACE_POLICY = :external_storage_in_workspace_policy
|
|
518
|
+
STORAGE_VERIFICATION_FAILED = :storage_verification_failed
|
|
410
519
|
CANNOT_SIGN_OUT_PRIMARY_OWNER = :cannot_sign_out_primary_owner
|
|
411
520
|
CANNOT_SIGN_OUT_SELF = :cannot_sign_out_self
|
|
412
521
|
ORGANIZATION_NOT_ENROLLED_IN_BETA = :organization_not_enrolled_in_beta
|
|
@@ -414,6 +523,16 @@ module Anthropic
|
|
|
414
523
|
CANNOT_SIGN_OUT_MEMBERSHIP_ADMIN = :cannot_sign_out_membership_admin
|
|
415
524
|
CANNOT_SIGN_OUT_OWNER = :cannot_sign_out_owner
|
|
416
525
|
CANNOT_SIGN_OUT_PRIVILEGED_MEMBER = :cannot_sign_out_privileged_member
|
|
526
|
+
APPROVAL_REQUIRED = :approval_required
|
|
527
|
+
EXTERNAL_STORAGE_NOT_AVAILABLE = :external_storage_not_available
|
|
528
|
+
HUMAN_REVIEW_NOT_AVAILABLE = :human_review_not_available
|
|
529
|
+
HUMAN_REVIEW_ON_WITH_EXTERNAL_STORAGE = :human_review_on_with_external_storage
|
|
530
|
+
STORAGE_NOT_ATTACHABLE = :storage_not_attachable
|
|
531
|
+
TRANSCRIPTS_STORAGE_REQUIRED = :transcripts_storage_required
|
|
532
|
+
STORAGE_ATTACH_LIMIT_REACHED = :storage_attach_limit_reached
|
|
533
|
+
STORAGE_PROFILE_STILL_REQUIRED = :storage_profile_still_required
|
|
534
|
+
STORAGE_CHANGED_CONCURRENTLY = :storage_changed_concurrently
|
|
535
|
+
WORKSPACE_CHANGED_CONCURRENTLY = :workspace_changed_concurrently
|
|
417
536
|
SPEND_LIMITS_ADMIN_API_WRITES_NOT_ENABLED = :spend_limits_admin_api_writes_not_enabled
|
|
418
537
|
UNSUPPORTED_CHARSET = :unsupported_charset
|
|
419
538
|
PLUGIN_NAME_TAKEN = :plugin_name_taken
|
|
@@ -444,7 +563,7 @@ module Anthropic
|
|
|
444
563
|
end
|
|
445
564
|
|
|
446
565
|
# @!method self.variants
|
|
447
|
-
# @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::UserProfileRequiredErrorDetails, Anthropic::Models::LinkedOrganizationBillingUnavailableErrorDetails, Anthropic::Models::LinkedOrganizationSpendLimitReachedErrorDetails, Anthropic::Models::UserProfileBillingNotAuthorizedErrorDetails, Anthropic::Models::UserProfileNotBillableErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::ContractSpendLimitReachedErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::ParentOrganizationRequiredErrorDetails, Anthropic::Models::RBACRoleNotFoundErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::BetaRequestBodyTimeoutErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsDocumentLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsHistoryLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaCMEKFeatureUnsupportedErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupManagedSettingsNotFoundErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupOrderLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::BetaRBACGroupNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails)]
|
|
566
|
+
# @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::ImageDimensionsTooLargeErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::UserProfileRequiredErrorDetails, Anthropic::Models::LinkedOrganizationBillingUnavailableErrorDetails, Anthropic::Models::LinkedOrganizationSpendLimitReachedErrorDetails, Anthropic::Models::UserProfileBillingNotAuthorizedErrorDetails, Anthropic::Models::UserProfileNotBillableErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::ContractSpendLimitReachedErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::WorkspaceHumanReviewDisabledErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceCreatedIncompleteErrorDetails, Anthropic::Models::Organization::StorageProfileMismatchErrorDetails, Anthropic::Models::ChangeOutcomeUnknownErrorDetails, Anthropic::Models::Organization::StorageAttachedDuringArchiveErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::ParentOrganizationRequiredErrorDetails, Anthropic::Models::RBACRoleNotFoundErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaGrantRequiredErrorDetails, Anthropic::Models::Beta::BetaOrganizationNotEligibleErrorDetails, Anthropic::Models::Beta::Organization::BetaProviderNotAllowedErrorDetails, Anthropic::Models::Beta::Organization::BetaUnsupportedRegionErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageAlreadyRegisteredErrorDetails, Anthropic::Models::Beta::BetaAuthorizationCheckUnavailableErrorDetails, Anthropic::Models::Beta::Organization::BetaInvalidStorageARNErrorDetails, Anthropic::Models::Beta::Organization::BetaExternalStorageInUseErrorDetails, Anthropic::Models::Beta::Organization::BetaExternalStorageInWorkspacePolicyErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageVerificationFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::BetaApprovalRequiredErrorDetails, Anthropic::Models::Beta::Organization::BetaExternalStorageNotAvailableErrorDetails, Anthropic::Models::Beta::BetaHumanReviewNotAvailableErrorDetails, Anthropic::Models::Beta::Organization::BetaHumanReviewOnWithExternalStorageErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageNotAttachableErrorDetails, Anthropic::Models::Beta::Organization::BetaTranscriptsStorageRequiredErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageAttachLimitReachedErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageProfileStillRequiredErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageChangedConcurrentlyErrorDetails, Anthropic::Models::Beta::Organization::BetaWorkspaceChangedConcurrentlyErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::BetaRequestBodyTimeoutErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsDocumentLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsHistoryLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaCMEKFeatureUnsupportedErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupManagedSettingsNotFoundErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupOrderLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::BetaRBACGroupNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails)]
|
|
448
567
|
|
|
449
568
|
# Creates a new instance of the variant class whose `error_code` matches the given
|
|
450
569
|
# value, passing the remaining arguments to its constructor.
|
|
@@ -456,14 +575,22 @@ module Anthropic
|
|
|
456
575
|
#
|
|
457
576
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
458
577
|
#
|
|
578
|
+
# @option args [Integer] :max_side_length_pixels The limit the images exceeded: the largest width or height, in pixels, that an i
|
|
579
|
+
#
|
|
580
|
+
# @option args [Array<String>] :paths The position of every image over the limit, in the order you sent them, nested b
|
|
581
|
+
#
|
|
459
582
|
# @option args [String, nil] :appeal_url
|
|
460
583
|
#
|
|
461
584
|
# @option args [Array<Symbol, Anthropic::Models::ThreadUnsupportedFeatureName>, nil] :unsupported Each entry names a request field or an organization setting that Threads do not
|
|
462
585
|
#
|
|
463
|
-
# @option args [Symbol, Anthropic::Models::Organization::WorkspacePolicyField] :field The request field the broken rule applies to.
|
|
586
|
+
# @option args [Symbol, Anthropic::Models::Organization::WorkspacePolicyField, String, String, nil, Symbol, Anthropic::Models::Beta::Organization::BetaWorkspaceChangedConcurrentlyField] :field The request field the broken rule applies to. Other values may be returned.
|
|
587
|
+
#
|
|
588
|
+
# @option args [String] :workspace_id ID of the Workspace the request created.
|
|
464
589
|
#
|
|
465
590
|
# @option args [Anthropic::Models::Beta::Environments::BetaWorkLeaseState] :current_state The lease as the server holds it.
|
|
466
591
|
#
|
|
592
|
+
# @option args [Array<Anthropic::Models::Beta::Organization::BetaExternalStorageFailedCheck>] :failed_checks One entry for each check that failed.
|
|
593
|
+
#
|
|
467
594
|
# @option args [String, nil, String] :plugin_id
|
|
468
595
|
#
|
|
469
596
|
# @option args [String] :skill_name
|
|
@@ -473,7 +600,7 @@ module Anthropic
|
|
|
473
600
|
# @option args [String] :slack_channel_id The identifier of the channel the request set up, starting with `slch_`.
|
|
474
601
|
#
|
|
475
602
|
# @raise [ArgumentError]
|
|
476
|
-
# @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::UserProfileRequiredErrorDetails, Anthropic::Models::LinkedOrganizationBillingUnavailableErrorDetails, Anthropic::Models::LinkedOrganizationSpendLimitReachedErrorDetails, Anthropic::Models::UserProfileBillingNotAuthorizedErrorDetails, Anthropic::Models::UserProfileNotBillableErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::ContractSpendLimitReachedErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::ParentOrganizationRequiredErrorDetails, Anthropic::Models::RBACRoleNotFoundErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::BetaRequestBodyTimeoutErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsDocumentLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsHistoryLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaCMEKFeatureUnsupportedErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupManagedSettingsNotFoundErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupOrderLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::BetaRBACGroupNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails]
|
|
603
|
+
# @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::ImageDimensionsTooLargeErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::UserProfileRequiredErrorDetails, Anthropic::Models::LinkedOrganizationBillingUnavailableErrorDetails, Anthropic::Models::LinkedOrganizationSpendLimitReachedErrorDetails, Anthropic::Models::UserProfileBillingNotAuthorizedErrorDetails, Anthropic::Models::UserProfileNotBillableErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::ContractSpendLimitReachedErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::WorkspaceHumanReviewDisabledErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::SandboxEgressRestrictedErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceCreatedIncompleteErrorDetails, Anthropic::Models::Organization::StorageProfileMismatchErrorDetails, Anthropic::Models::ChangeOutcomeUnknownErrorDetails, Anthropic::Models::Organization::StorageAttachedDuringArchiveErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::ParentOrganizationRequiredErrorDetails, Anthropic::Models::RBACRoleNotFoundErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaGrantRequiredErrorDetails, Anthropic::Models::Beta::BetaOrganizationNotEligibleErrorDetails, Anthropic::Models::Beta::Organization::BetaProviderNotAllowedErrorDetails, Anthropic::Models::Beta::Organization::BetaUnsupportedRegionErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageAlreadyRegisteredErrorDetails, Anthropic::Models::Beta::BetaAuthorizationCheckUnavailableErrorDetails, Anthropic::Models::Beta::Organization::BetaInvalidStorageARNErrorDetails, Anthropic::Models::Beta::Organization::BetaExternalStorageInUseErrorDetails, Anthropic::Models::Beta::Organization::BetaExternalStorageInWorkspacePolicyErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageVerificationFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::BetaApprovalRequiredErrorDetails, Anthropic::Models::Beta::Organization::BetaExternalStorageNotAvailableErrorDetails, Anthropic::Models::Beta::BetaHumanReviewNotAvailableErrorDetails, Anthropic::Models::Beta::Organization::BetaHumanReviewOnWithExternalStorageErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageNotAttachableErrorDetails, Anthropic::Models::Beta::Organization::BetaTranscriptsStorageRequiredErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageAttachLimitReachedErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageProfileStillRequiredErrorDetails, Anthropic::Models::Beta::Organization::BetaStorageChangedConcurrentlyErrorDetails, Anthropic::Models::Beta::Organization::BetaWorkspaceChangedConcurrentlyErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::BetaRequestBodyTimeoutErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsDocumentLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaSettingsHistoryLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaCMEKFeatureUnsupportedErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupManagedSettingsNotFoundErrorDetails, Anthropic::Models::Beta::Organization::ClaudeCode::BetaRBACGroupOrderLimitExceededErrorDetails, Anthropic::Models::Beta::Organization::BetaRBACGroupNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedErrorDetails, Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails]
|
|
477
604
|
def self.new(error_code:, **args)
|
|
478
605
|
case error_code.to_sym
|
|
479
606
|
when :available_tools_limit_exceeded
|
|
@@ -502,6 +629,8 @@ module Anthropic
|
|
|
502
629
|
Anthropic::CompactionTooManyToolReferencesErrorDetails.new(**args)
|
|
503
630
|
when :compaction_tool_changes_mismatch
|
|
504
631
|
Anthropic::CompactionToolChangesMismatchErrorDetails.new(**args)
|
|
632
|
+
when :image_dimensions_too_large
|
|
633
|
+
Anthropic::ImageDimensionsTooLargeErrorDetails.new(**args)
|
|
505
634
|
when :organization_on_hold
|
|
506
635
|
Anthropic::OrganizationOnHoldErrorDetails.new(**args)
|
|
507
636
|
when :request_body_encoding_invalid
|
|
@@ -546,6 +675,8 @@ module Anthropic
|
|
|
546
675
|
Anthropic::CMEKKeyUnreachableErrorDetails.new(**args)
|
|
547
676
|
when :compaction_unavailable
|
|
548
677
|
Anthropic::CompactionUnavailableErrorDetails.new(**args)
|
|
678
|
+
when :workspace_human_review_disabled
|
|
679
|
+
Anthropic::WorkspaceHumanReviewDisabledErrorDetails.new(**args)
|
|
549
680
|
when :storage_quota_exceeded
|
|
550
681
|
Anthropic::StorageQuotaExceededErrorDetails.new(**args)
|
|
551
682
|
when :file_not_downloadable
|
|
@@ -592,6 +723,14 @@ module Anthropic
|
|
|
592
723
|
Anthropic::Organization::WorkspacePolicyViolationErrorDetails.new(**args)
|
|
593
724
|
when :external_key_changed
|
|
594
725
|
Anthropic::Organization::ExternalKeyChangedErrorDetails.new(**args)
|
|
726
|
+
when :workspace_created_incomplete
|
|
727
|
+
Anthropic::Organization::WorkspaceCreatedIncompleteErrorDetails.new(**args)
|
|
728
|
+
when :storage_profile_mismatch
|
|
729
|
+
Anthropic::Organization::StorageProfileMismatchErrorDetails.new(**args)
|
|
730
|
+
when :change_outcome_unknown
|
|
731
|
+
Anthropic::ChangeOutcomeUnknownErrorDetails.new(**args)
|
|
732
|
+
when :storage_attached_during_archive
|
|
733
|
+
Anthropic::Organization::StorageAttachedDuringArchiveErrorDetails.new(**args)
|
|
595
734
|
when :workspace_member_limit_exceeded
|
|
596
735
|
Anthropic::Organization::WorkspaceMemberLimitExceededErrorDetails.new(**args)
|
|
597
736
|
when :organization_type_not_supported
|
|
@@ -612,6 +751,26 @@ module Anthropic
|
|
|
612
751
|
Anthropic::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails.new(**args)
|
|
613
752
|
when :invalid_metadata
|
|
614
753
|
Anthropic::Beta::BetaInvalidMetadataErrorDetails.new(**args)
|
|
754
|
+
when :grant_required
|
|
755
|
+
Anthropic::Beta::Organization::BetaGrantRequiredErrorDetails.new(**args)
|
|
756
|
+
when :organization_not_eligible
|
|
757
|
+
Anthropic::Beta::BetaOrganizationNotEligibleErrorDetails.new(**args)
|
|
758
|
+
when :provider_not_allowed
|
|
759
|
+
Anthropic::Beta::Organization::BetaProviderNotAllowedErrorDetails.new(**args)
|
|
760
|
+
when :unsupported_region
|
|
761
|
+
Anthropic::Beta::Organization::BetaUnsupportedRegionErrorDetails.new(**args)
|
|
762
|
+
when :storage_already_registered
|
|
763
|
+
Anthropic::Beta::Organization::BetaStorageAlreadyRegisteredErrorDetails.new(**args)
|
|
764
|
+
when :authorization_check_unavailable
|
|
765
|
+
Anthropic::Beta::BetaAuthorizationCheckUnavailableErrorDetails.new(**args)
|
|
766
|
+
when :invalid_storage_arn
|
|
767
|
+
Anthropic::Beta::Organization::BetaInvalidStorageARNErrorDetails.new(**args)
|
|
768
|
+
when :external_storage_in_use
|
|
769
|
+
Anthropic::Beta::Organization::BetaExternalStorageInUseErrorDetails.new(**args)
|
|
770
|
+
when :external_storage_in_workspace_policy
|
|
771
|
+
Anthropic::Beta::Organization::BetaExternalStorageInWorkspacePolicyErrorDetails.new(**args)
|
|
772
|
+
when :storage_verification_failed
|
|
773
|
+
Anthropic::Beta::Organization::BetaStorageVerificationFailedErrorDetails.new(**args)
|
|
615
774
|
when :cannot_sign_out_primary_owner
|
|
616
775
|
Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails.new(**args)
|
|
617
776
|
when :cannot_sign_out_self
|
|
@@ -626,6 +785,26 @@ module Anthropic
|
|
|
626
785
|
Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails.new(**args)
|
|
627
786
|
when :cannot_sign_out_privileged_member
|
|
628
787
|
Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails.new(**args)
|
|
788
|
+
when :approval_required
|
|
789
|
+
Anthropic::Beta::BetaApprovalRequiredErrorDetails.new(**args)
|
|
790
|
+
when :external_storage_not_available
|
|
791
|
+
Anthropic::Beta::Organization::BetaExternalStorageNotAvailableErrorDetails.new(**args)
|
|
792
|
+
when :human_review_not_available
|
|
793
|
+
Anthropic::Beta::BetaHumanReviewNotAvailableErrorDetails.new(**args)
|
|
794
|
+
when :human_review_on_with_external_storage
|
|
795
|
+
Anthropic::Beta::Organization::BetaHumanReviewOnWithExternalStorageErrorDetails.new(**args)
|
|
796
|
+
when :storage_not_attachable
|
|
797
|
+
Anthropic::Beta::Organization::BetaStorageNotAttachableErrorDetails.new(**args)
|
|
798
|
+
when :transcripts_storage_required
|
|
799
|
+
Anthropic::Beta::Organization::BetaTranscriptsStorageRequiredErrorDetails.new(**args)
|
|
800
|
+
when :storage_attach_limit_reached
|
|
801
|
+
Anthropic::Beta::Organization::BetaStorageAttachLimitReachedErrorDetails.new(**args)
|
|
802
|
+
when :storage_profile_still_required
|
|
803
|
+
Anthropic::Beta::Organization::BetaStorageProfileStillRequiredErrorDetails.new(**args)
|
|
804
|
+
when :storage_changed_concurrently
|
|
805
|
+
Anthropic::Beta::Organization::BetaStorageChangedConcurrentlyErrorDetails.new(**args)
|
|
806
|
+
when :workspace_changed_concurrently
|
|
807
|
+
Anthropic::Beta::Organization::BetaWorkspaceChangedConcurrentlyErrorDetails.new(**args)
|
|
629
808
|
when :spend_limits_admin_api_writes_not_enabled
|
|
630
809
|
Anthropic::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails.new(**args)
|
|
631
810
|
when :unsupported_charset
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The longest side of one or more images in the request exceeds the image size
|
|
6
|
+
# limit. Scale each image in `paths` so that neither side exceeds
|
|
7
|
+
# `max_side_length_pixels`, or remove it, then retry.
|
|
8
|
+
class ImageDimensionsTooLargeError < Anthropic::Errors::BadRequestError
|
|
9
|
+
# @!method error_code
|
|
10
|
+
# @return [Symbol, :image_dimensions_too_large]
|
|
11
|
+
|
|
12
|
+
# @return [Anthropic::Models::ImageDimensionsTooLargeErrorDetails]
|
|
13
|
+
def details
|
|
14
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
15
|
+
Anthropic::ImageDimensionsTooLargeErrorDetails,
|
|
16
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class ImageDimensionsTooLargeErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, :image_dimensions_too_large]
|
|
9
|
+
required :error_code, const: :image_dimensions_too_large
|
|
10
|
+
|
|
11
|
+
# @!attribute max_side_length_pixels
|
|
12
|
+
# The limit the images exceeded: the largest width or height, in pixels, that an
|
|
13
|
+
# image on this request may have.
|
|
14
|
+
#
|
|
15
|
+
# @return [Integer]
|
|
16
|
+
required :max_side_length_pixels, Integer
|
|
17
|
+
|
|
18
|
+
# @!attribute paths
|
|
19
|
+
# The position of every image over the limit, in the order you sent them, nested
|
|
20
|
+
# blocks included, such as `messages.0.content.1`, or
|
|
21
|
+
# `messages.0.content.1.content.0` for an image in a `tool_result` block.
|
|
22
|
+
#
|
|
23
|
+
# @return [Array<String>]
|
|
24
|
+
required :paths, Anthropic::Internal::Type::ArrayOf[String]
|
|
25
|
+
|
|
26
|
+
# @!method initialize(max_side_length_pixels:, paths:, error_code: :image_dimensions_too_large)
|
|
27
|
+
# The longest side of one or more images in the request exceeds the image size
|
|
28
|
+
# limit. Scale each image in `paths` so that neither side exceeds
|
|
29
|
+
# `max_side_length_pixels`, or remove it, then retry.
|
|
30
|
+
#
|
|
31
|
+
# Some parameter documentations has been truncated, see
|
|
32
|
+
# {Anthropic::Models::ImageDimensionsTooLargeErrorDetails} for more details.
|
|
33
|
+
#
|
|
34
|
+
# @param max_side_length_pixels [Integer] The limit the images exceeded: the largest width or height, in pixels, that an i
|
|
35
|
+
#
|
|
36
|
+
# @param paths [Array<String>] The position of every image over the limit, in the order you sent them, nested b
|
|
37
|
+
#
|
|
38
|
+
# @param error_code [Symbol, :image_dimensions_too_large]
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -120,9 +120,15 @@ module Anthropic
|
|
|
120
120
|
CLAUDE_HAIKU_4_5_20251001 = :"claude-haiku-4-5-20251001"
|
|
121
121
|
|
|
122
122
|
# Powerful intelligence for long-running agents and coding
|
|
123
|
+
# @deprecated Will reach end-of-life on January 22, 2027. Please migrate to claude-opus-5-5.
|
|
124
|
+
# Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
|
|
125
|
+
# information.
|
|
123
126
|
CLAUDE_OPUS_4_5 = :"claude-opus-4-5"
|
|
124
127
|
|
|
125
128
|
# Powerful intelligence for long-running agents and coding
|
|
129
|
+
# @deprecated Will reach end-of-life on January 22, 2027. Please migrate to claude-opus-5-5.
|
|
130
|
+
# Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
|
|
131
|
+
# information.
|
|
126
132
|
CLAUDE_OPUS_4_5_20251101 = :"claude-opus-4-5-20251101"
|
|
127
133
|
|
|
128
134
|
# High-performance model for agents and coding
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
# The Workspace was archived, but External Storage was attached to it during the
|
|
7
|
+
# archive and is still attached. To detach it, archive the Workspace again as a
|
|
8
|
+
# caller with the `org:external-storage:use` permission.
|
|
9
|
+
class StorageAttachedDuringArchiveError < Anthropic::Errors::ConflictError
|
|
10
|
+
# @!method error_code
|
|
11
|
+
# @return [Symbol, :storage_attached_during_archive]
|
|
12
|
+
|
|
13
|
+
# @return [Anthropic::Models::Organization::StorageAttachedDuringArchiveErrorDetails]
|
|
14
|
+
def details
|
|
15
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
16
|
+
Anthropic::Organization::StorageAttachedDuringArchiveErrorDetails,
|
|
17
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class StorageAttachedDuringArchiveErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute error_code
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, :storage_attached_during_archive]
|
|
10
|
+
required :error_code, const: :storage_attached_during_archive
|
|
11
|
+
|
|
12
|
+
# @!method initialize(error_code: :storage_attached_during_archive)
|
|
13
|
+
# The Workspace was archived, but External Storage was attached to it during the
|
|
14
|
+
# archive and is still attached. To detach it, archive the Workspace again as a
|
|
15
|
+
# caller with the `org:external-storage:use` permission.
|
|
16
|
+
#
|
|
17
|
+
# @param error_code [Symbol, :storage_attached_during_archive]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
# The Workspace's storage and its user profile don't match: the Workspace and its
|
|
7
|
+
# storage must have the same user profile, or both have none.
|
|
8
|
+
class StorageProfileMismatchError < Anthropic::Errors::BadRequestError
|
|
9
|
+
# @!method error_code
|
|
10
|
+
# @return [Symbol, :storage_profile_mismatch]
|
|
11
|
+
|
|
12
|
+
# @return [Anthropic::Models::Organization::StorageProfileMismatchErrorDetails]
|
|
13
|
+
def details
|
|
14
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
15
|
+
Anthropic::Organization::StorageProfileMismatchErrorDetails,
|
|
16
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class StorageProfileMismatchErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute error_code
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, :storage_profile_mismatch]
|
|
10
|
+
required :error_code, const: :storage_profile_mismatch
|
|
11
|
+
|
|
12
|
+
# @!attribute field
|
|
13
|
+
# The storage setting that doesn't match the Workspace's user profile.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :field, String
|
|
17
|
+
|
|
18
|
+
# @!method initialize(field:, error_code: :storage_profile_mismatch)
|
|
19
|
+
# The Workspace's storage and its user profile don't match: the Workspace and its
|
|
20
|
+
# storage must have the same user profile, or both have none.
|
|
21
|
+
#
|
|
22
|
+
# @param field [String] The storage setting that doesn't match the Workspace's user profile.
|
|
23
|
+
#
|
|
24
|
+
# @param error_code [Symbol, :storage_profile_mismatch]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
# The Workspace was created, but some of what the request asked for did not take
|
|
7
|
+
# effect, or may not have. Don't send the create again. The error's `message` says
|
|
8
|
+
# what to do with the Workspace at `workspace_id`.
|
|
9
|
+
class WorkspaceCreatedIncompleteError < Anthropic::Errors::ServiceUnavailableError
|
|
10
|
+
# @!method error_code
|
|
11
|
+
# @return [Symbol, :workspace_created_incomplete]
|
|
12
|
+
|
|
13
|
+
# @return [Anthropic::Models::Organization::WorkspaceCreatedIncompleteErrorDetails]
|
|
14
|
+
def details
|
|
15
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
16
|
+
Anthropic::Organization::WorkspaceCreatedIncompleteErrorDetails,
|
|
17
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class WorkspaceCreatedIncompleteErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute error_code
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, :workspace_created_incomplete]
|
|
10
|
+
required :error_code, const: :workspace_created_incomplete
|
|
11
|
+
|
|
12
|
+
# @!attribute workspace_id
|
|
13
|
+
# ID of the Workspace the request created.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :workspace_id, String
|
|
17
|
+
|
|
18
|
+
# @!method initialize(workspace_id:, error_code: :workspace_created_incomplete)
|
|
19
|
+
# The Workspace was created, but some of what the request asked for did not take
|
|
20
|
+
# effect, or may not have. Don't send the create again. The error's `message` says
|
|
21
|
+
# what to do with the Workspace at `workspace_id`.
|
|
22
|
+
#
|
|
23
|
+
# @param workspace_id [String] ID of the Workspace the request created.
|
|
24
|
+
#
|
|
25
|
+
# @param error_code [Symbol, :workspace_created_incomplete]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -10,7 +10,7 @@ module Anthropic
|
|
|
10
10
|
required :error_code, const: :workspace_policy_violation
|
|
11
11
|
|
|
12
12
|
# @!attribute field
|
|
13
|
-
# The request field the broken rule applies to.
|
|
13
|
+
# The request field the broken rule applies to. Other values may be returned.
|
|
14
14
|
#
|
|
15
15
|
# @return [Symbol, Anthropic::Models::Organization::WorkspacePolicyField]
|
|
16
16
|
required :field, enum: -> { Anthropic::Organization::WorkspacePolicyField }
|
|
@@ -20,7 +20,7 @@ module Anthropic
|
|
|
20
20
|
# rule it broke; an organization admin can see and change the policy in the
|
|
21
21
|
# Console.
|
|
22
22
|
#
|
|
23
|
-
# @param field [Symbol, Anthropic::Models::Organization::WorkspacePolicyField] The request field the broken rule applies to.
|
|
23
|
+
# @param field [Symbol, Anthropic::Models::Organization::WorkspacePolicyField] The request field the broken rule applies to. Other values may be returned.
|
|
24
24
|
#
|
|
25
25
|
# @param error_code [Symbol, :workspace_policy_violation]
|
|
26
26
|
end
|