anthropic 2.12.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 +22 -0
- data/README.md +1 -1
- data/lib/anthropic/client.rb +3 -0
- data/lib/anthropic/error_classes.rb +25 -0
- 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/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 +172 -3
- 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/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 +8 -0
- data/lib/anthropic/resources/beta/messages/batches.rb +1 -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/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 +83 -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/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 +167 -2
- 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/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 +11 -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 +177 -1
- 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 +8 -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 +251 -2
|
@@ -120,6 +120,9 @@ module Anthropic
|
|
|
120
120
|
# The compaction could not be completed for a transient server reason. Retry the request.
|
|
121
121
|
variant :compaction_unavailable, -> { Anthropic::CompactionUnavailableErrorDetails }
|
|
122
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
|
+
|
|
123
126
|
# The organization's file storage quota is exhausted. Delete files to free up space, then retry the upload.
|
|
124
127
|
variant :storage_quota_exceeded, -> { Anthropic::StorageQuotaExceededErrorDetails }
|
|
125
128
|
|
|
@@ -196,6 +199,20 @@ module Anthropic
|
|
|
196
199
|
# The external key changed while the request was validating it. Send the request again.
|
|
197
200
|
variant :external_key_changed, -> { Anthropic::Organization::ExternalKeyChangedErrorDetails }
|
|
198
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
|
+
|
|
199
216
|
# The workspace has reached the member limit that Anthropic set for it.
|
|
200
217
|
variant :workspace_member_limit_exceeded,
|
|
201
218
|
-> { Anthropic::Organization::WorkspaceMemberLimitExceededErrorDetails }
|
|
@@ -228,6 +245,41 @@ module Anthropic
|
|
|
228
245
|
# `metadata` has too many keys, a key or value that is too long, or a reserved key. The message names each problem.
|
|
229
246
|
variant :invalid_metadata, -> { Anthropic::Beta::BetaInvalidMetadataErrorDetails }
|
|
230
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
|
+
|
|
231
283
|
# The member is the organization's primary owner, whom no API key or token can sign out.
|
|
232
284
|
variant :cannot_sign_out_primary_owner,
|
|
233
285
|
-> { Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails }
|
|
@@ -254,6 +306,44 @@ module Anthropic
|
|
|
254
306
|
variant :cannot_sign_out_privileged_member,
|
|
255
307
|
-> { Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails }
|
|
256
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
|
+
|
|
257
347
|
# The organization cannot retrieve, set or delete spend limits with an Admin API credential.
|
|
258
348
|
variant :spend_limits_admin_api_writes_not_enabled,
|
|
259
349
|
-> { Anthropic::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails }
|
|
@@ -378,6 +468,7 @@ module Anthropic
|
|
|
378
468
|
RAMP_LIMIT_EXCEEDED = :ramp_limit_exceeded
|
|
379
469
|
CMEK_KEY_UNREACHABLE = :cmek_key_unreachable
|
|
380
470
|
COMPACTION_UNAVAILABLE = :compaction_unavailable
|
|
471
|
+
WORKSPACE_HUMAN_REVIEW_DISABLED = :workspace_human_review_disabled
|
|
381
472
|
STORAGE_QUOTA_EXCEEDED = :storage_quota_exceeded
|
|
382
473
|
FILE_NOT_DOWNLOADABLE = :file_not_downloadable
|
|
383
474
|
FILE_EXPIRED = :file_expired
|
|
@@ -401,6 +492,10 @@ module Anthropic
|
|
|
401
492
|
KEY_PROFILE_MISMATCH = :key_profile_mismatch
|
|
402
493
|
WORKSPACE_POLICY_VIOLATION = :workspace_policy_violation
|
|
403
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
|
|
404
499
|
WORKSPACE_MEMBER_LIMIT_EXCEEDED = :workspace_member_limit_exceeded
|
|
405
500
|
ORGANIZATION_TYPE_NOT_SUPPORTED = :organization_type_not_supported
|
|
406
501
|
PARENT_ORGANIZATION_REQUIRED = :parent_organization_required
|
|
@@ -411,6 +506,16 @@ module Anthropic
|
|
|
411
506
|
ENVIRONMENT_UPDATE_DISABLED = :environment_update_disabled
|
|
412
507
|
HEARTBEAT_PRECONDITION_FAILED = :heartbeat_precondition_failed
|
|
413
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
|
|
414
519
|
CANNOT_SIGN_OUT_PRIMARY_OWNER = :cannot_sign_out_primary_owner
|
|
415
520
|
CANNOT_SIGN_OUT_SELF = :cannot_sign_out_self
|
|
416
521
|
ORGANIZATION_NOT_ENROLLED_IN_BETA = :organization_not_enrolled_in_beta
|
|
@@ -418,6 +523,16 @@ module Anthropic
|
|
|
418
523
|
CANNOT_SIGN_OUT_MEMBERSHIP_ADMIN = :cannot_sign_out_membership_admin
|
|
419
524
|
CANNOT_SIGN_OUT_OWNER = :cannot_sign_out_owner
|
|
420
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
|
|
421
536
|
SPEND_LIMITS_ADMIN_API_WRITES_NOT_ENABLED = :spend_limits_admin_api_writes_not_enabled
|
|
422
537
|
UNSUPPORTED_CHARSET = :unsupported_charset
|
|
423
538
|
PLUGIN_NAME_TAKEN = :plugin_name_taken
|
|
@@ -448,7 +563,7 @@ module Anthropic
|
|
|
448
563
|
end
|
|
449
564
|
|
|
450
565
|
# @!method self.variants
|
|
451
|
-
# @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::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)]
|
|
452
567
|
|
|
453
568
|
# Creates a new instance of the variant class whose `error_code` matches the given
|
|
454
569
|
# value, passing the remaining arguments to its constructor.
|
|
@@ -468,10 +583,14 @@ module Anthropic
|
|
|
468
583
|
#
|
|
469
584
|
# @option args [Array<Symbol, Anthropic::Models::ThreadUnsupportedFeatureName>, nil] :unsupported Each entry names a request field or an organization setting that Threads do not
|
|
470
585
|
#
|
|
471
|
-
# @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.
|
|
472
589
|
#
|
|
473
590
|
# @option args [Anthropic::Models::Beta::Environments::BetaWorkLeaseState] :current_state The lease as the server holds it.
|
|
474
591
|
#
|
|
592
|
+
# @option args [Array<Anthropic::Models::Beta::Organization::BetaExternalStorageFailedCheck>] :failed_checks One entry for each check that failed.
|
|
593
|
+
#
|
|
475
594
|
# @option args [String, nil, String] :plugin_id
|
|
476
595
|
#
|
|
477
596
|
# @option args [String] :skill_name
|
|
@@ -481,7 +600,7 @@ module Anthropic
|
|
|
481
600
|
# @option args [String] :slack_channel_id The identifier of the channel the request set up, starting with `slch_`.
|
|
482
601
|
#
|
|
483
602
|
# @raise [ArgumentError]
|
|
484
|
-
# @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::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]
|
|
485
604
|
def self.new(error_code:, **args)
|
|
486
605
|
case error_code.to_sym
|
|
487
606
|
when :available_tools_limit_exceeded
|
|
@@ -556,6 +675,8 @@ module Anthropic
|
|
|
556
675
|
Anthropic::CMEKKeyUnreachableErrorDetails.new(**args)
|
|
557
676
|
when :compaction_unavailable
|
|
558
677
|
Anthropic::CompactionUnavailableErrorDetails.new(**args)
|
|
678
|
+
when :workspace_human_review_disabled
|
|
679
|
+
Anthropic::WorkspaceHumanReviewDisabledErrorDetails.new(**args)
|
|
559
680
|
when :storage_quota_exceeded
|
|
560
681
|
Anthropic::StorageQuotaExceededErrorDetails.new(**args)
|
|
561
682
|
when :file_not_downloadable
|
|
@@ -602,6 +723,14 @@ module Anthropic
|
|
|
602
723
|
Anthropic::Organization::WorkspacePolicyViolationErrorDetails.new(**args)
|
|
603
724
|
when :external_key_changed
|
|
604
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)
|
|
605
734
|
when :workspace_member_limit_exceeded
|
|
606
735
|
Anthropic::Organization::WorkspaceMemberLimitExceededErrorDetails.new(**args)
|
|
607
736
|
when :organization_type_not_supported
|
|
@@ -622,6 +751,26 @@ module Anthropic
|
|
|
622
751
|
Anthropic::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails.new(**args)
|
|
623
752
|
when :invalid_metadata
|
|
624
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)
|
|
625
774
|
when :cannot_sign_out_primary_owner
|
|
626
775
|
Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails.new(**args)
|
|
627
776
|
when :cannot_sign_out_self
|
|
@@ -636,6 +785,26 @@ module Anthropic
|
|
|
636
785
|
Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails.new(**args)
|
|
637
786
|
when :cannot_sign_out_privileged_member
|
|
638
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)
|
|
639
808
|
when :spend_limits_admin_api_writes_not_enabled
|
|
640
809
|
Anthropic::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails.new(**args)
|
|
641
810
|
when :unsupported_charset
|
|
@@ -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
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The request's Workspace has Human Review turned off, and this operation is not
|
|
6
|
+
# available there. Use a Workspace with Human Review on.
|
|
7
|
+
class WorkspaceHumanReviewDisabledError < Anthropic::Errors::BadRequestError
|
|
8
|
+
# @!method error_code
|
|
9
|
+
# @return [Symbol, :workspace_human_review_disabled]
|
|
10
|
+
|
|
11
|
+
# @return [Anthropic::Models::WorkspaceHumanReviewDisabledErrorDetails]
|
|
12
|
+
def details
|
|
13
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
14
|
+
Anthropic::WorkspaceHumanReviewDisabledErrorDetails,
|
|
15
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class WorkspaceHumanReviewDisabledErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, :workspace_human_review_disabled]
|
|
9
|
+
required :error_code, const: :workspace_human_review_disabled
|
|
10
|
+
|
|
11
|
+
# @!method initialize(error_code: :workspace_human_review_disabled)
|
|
12
|
+
# The request's Workspace has Human Review turned off, and this operation is not
|
|
13
|
+
# available there. Use a Workspace with Human Review on.
|
|
14
|
+
#
|
|
15
|
+
# @param error_code [Symbol, :workspace_human_review_disabled]
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
data/lib/anthropic/models.rb
CHANGED
|
@@ -380,6 +380,10 @@ module Anthropic
|
|
|
380
380
|
|
|
381
381
|
CapabilitySupport = Anthropic::Models::CapabilitySupport
|
|
382
382
|
|
|
383
|
+
ChangeOutcomeUnknownError = Anthropic::Models::ChangeOutcomeUnknownError
|
|
384
|
+
|
|
385
|
+
ChangeOutcomeUnknownErrorDetails = Anthropic::Models::ChangeOutcomeUnknownErrorDetails
|
|
386
|
+
|
|
383
387
|
CitationCharLocation = Anthropic::Models::CitationCharLocation
|
|
384
388
|
|
|
385
389
|
CitationCharLocationParam = Anthropic::Models::CitationCharLocationParam
|
|
@@ -1189,4 +1193,8 @@ module Anthropic
|
|
|
1189
1193
|
WebSearchToolResultErrorCode = Anthropic::Models::WebSearchToolResultErrorCode
|
|
1190
1194
|
|
|
1191
1195
|
WebSearchToolResultErrorObject = Anthropic::Models::WebSearchToolResultErrorObject
|
|
1196
|
+
|
|
1197
|
+
WorkspaceHumanReviewDisabledError = Anthropic::Models::WorkspaceHumanReviewDisabledError
|
|
1198
|
+
|
|
1199
|
+
WorkspaceHumanReviewDisabledErrorDetails = Anthropic::Models::WorkspaceHumanReviewDisabledErrorDetails
|
|
1192
1200
|
end
|
|
@@ -32,6 +32,7 @@ module Anthropic
|
|
|
32
32
|
# @raise [Anthropic::Models::ClaudeCodeKeyCreatorNotMemberError]
|
|
33
33
|
# @raise [Anthropic::Models::CMEKKeyDisabledError]
|
|
34
34
|
# @raise [Anthropic::Models::OrganizationOnHoldError]
|
|
35
|
+
# @raise [Anthropic::Models::WorkspaceHumanReviewDisabledError]
|
|
35
36
|
# @raise [Anthropic::Models::EnforcedSpendLimitReachedError]
|
|
36
37
|
#
|
|
37
38
|
# @return [Anthropic::Models::Beta::Messages::BetaMessageBatch]
|
|
@@ -14,6 +14,12 @@ module Anthropic
|
|
|
14
14
|
# With no `group_by[]` and no `time_bucket_width`, a single row aggregates the
|
|
15
15
|
# whole range. Includes all cost, whether or not it is attributable to a seat
|
|
16
16
|
# user. Requires an API key with the `read:analytics` scope, or an Admin API key.
|
|
17
|
+
# This endpoint is in beta and is not available to organizations with HIPAA
|
|
18
|
+
# readiness enabled: their API requests return a 400 error. A parent
|
|
19
|
+
# organization's report across its child organizations leaves out the child
|
|
20
|
+
# organizations that have HIPAA readiness enabled. If the parent has child
|
|
21
|
+
# organizations and all of them have HIPAA readiness enabled, the request returns
|
|
22
|
+
# a 400 error.
|
|
17
23
|
#
|
|
18
24
|
# Some parameter documentations has been truncated, see
|
|
19
25
|
# {Anthropic::Models::Beta::Organization::Analytics::CostListParams} for more
|
|
@@ -14,7 +14,12 @@ module Anthropic
|
|
|
14
14
|
# returned across pages. With no `group_by[]` and no `time_bucket_width`, a single
|
|
15
15
|
# row aggregates the whole range. Includes all usage, whether or not it is
|
|
16
16
|
# attributable to a seat user. Requires an API key with the `read:analytics`
|
|
17
|
-
# scope, or an Admin API key.
|
|
17
|
+
# scope, or an Admin API key. This endpoint is in beta and is not available to
|
|
18
|
+
# organizations with HIPAA readiness enabled: their API requests return a 400
|
|
19
|
+
# error. A parent organization's report across its child organizations leaves out
|
|
20
|
+
# the child organizations that have HIPAA readiness enabled. If the parent has
|
|
21
|
+
# child organizations and all of them have HIPAA readiness enabled, the request
|
|
22
|
+
# returns a 400 error.
|
|
18
23
|
#
|
|
19
24
|
# Some parameter documentations has been truncated, see
|
|
20
25
|
# {Anthropic::Models::Beta::Organization::Analytics::UsageListParams} for more
|