anthropic 2.11.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +42 -0
- data/README.md +1 -1
- data/lib/anthropic/client.rb +3 -0
- data/lib/anthropic/error_classes.rb +26 -0
- data/lib/anthropic/helpers/bedrock/client.rb +12 -2
- data/lib/anthropic/internal/tracing.rb +6 -0
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/beta_approval_required_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_approval_required_error_details.rb +30 -0
- data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rb +22 -0
- data/lib/anthropic/models/beta/beta_human_review_not_available_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_human_review_not_available_error_details.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +6 -0
- data/lib/anthropic/models/beta/beta_organization_not_eligible_error.rb +23 -0
- data/lib/anthropic/models/beta/beta_organization_not_eligible_error_details.rb +23 -0
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +13 -2
- data/lib/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rb +39 -0
- data/lib/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rb +39 -0
- data/lib/anthropic/models/beta/message_create_params.rb +6 -0
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +6 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +7 -7
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +7 -7
- data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +11 -13
- data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +11 -13
- data/lib/anthropic/models/beta/organization/beta_access_transparency.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_active_external_storage_status.rb +42 -0
- data/lib/anthropic/models/beta/organization/beta_anthropic_human_review.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_anthropic_human_review_param.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_available_external_storage_status.rb +43 -0
- data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config.rb +45 -0
- data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rb +51 -0
- data/lib/anthropic/models/beta/organization/beta_compliance_settings.rb +18 -1
- data/lib/anthropic/models/beta/organization/beta_deleted_external_storage.rb +35 -0
- data/lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb +52 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage.rb +217 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_failed_check.rb +119 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_member.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_member_param.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config.rb +45 -0
- data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_grant_required_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_grant_required_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy.rb +48 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_internal_storage.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_internal_storage_param.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +2 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +2 -0
- data/lib/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rb +31 -0
- data/lib/anthropic/models/beta/organization/beta_storage_member.rb +59 -0
- data/lib/anthropic/models/beta/organization/beta_storage_member_param.rb +60 -0
- data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rb +30 -0
- data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rb +44 -0
- data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_unsupported_region_error.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_unsupported_region_error_details.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_workspace.rb +12 -1
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rb +37 -0
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rb +18 -0
- data/lib/anthropic/models/beta/organization/compliance_setting_retrieve_params.rb +14 -1
- data/lib/anthropic/models/beta/organization/compliance_setting_update_params.rb +10 -1
- data/lib/anthropic/models/beta/organization/external_storage_activate_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_create_params.rb +113 -0
- data/lib/anthropic/models/beta/organization/external_storage_delete_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_list_params.rb +56 -0
- data/lib/anthropic/models/beta/organization/external_storage_retrieve_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_update_params.rb +49 -0
- data/lib/anthropic/models/beta/organization/plugins/beta_plugin_share.rb +2 -2
- data/lib/anthropic/models/beta/organization/webhook_create_params.rb +2 -0
- data/lib/anthropic/models/beta/organization/webhook_update_params.rb +2 -0
- data/lib/anthropic/models/beta/organization/workspace_archive_params.rb +15 -1
- data/lib/anthropic/models/beta/organization/workspace_create_params.rb +16 -1
- data/lib/anthropic/models/beta/organization/workspace_list_params.rb +10 -1
- data/lib/anthropic/models/beta/organization/workspace_retrieve_params.rb +14 -1
- data/lib/anthropic/models/beta/organization/workspace_update_params.rb +25 -1
- data/lib/anthropic/models/change_outcome_unknown_error.rb +20 -0
- data/lib/anthropic/models/change_outcome_unknown_error_details.rb +18 -0
- data/lib/anthropic/models/error_details.rb +184 -5
- data/lib/anthropic/models/image_dimensions_too_large_error.rb +21 -0
- data/lib/anthropic/models/image_dimensions_too_large_error_details.rb +41 -0
- data/lib/anthropic/models/model.rb +6 -0
- data/lib/anthropic/models/organization/storage_attached_during_archive_error.rb +23 -0
- data/lib/anthropic/models/organization/storage_attached_during_archive_error_details.rb +21 -0
- data/lib/anthropic/models/organization/storage_profile_mismatch_error.rb +22 -0
- data/lib/anthropic/models/organization/storage_profile_mismatch_error_details.rb +28 -0
- data/lib/anthropic/models/organization/workspace_created_incomplete_error.rb +23 -0
- data/lib/anthropic/models/organization/workspace_created_incomplete_error_details.rb +29 -0
- data/lib/anthropic/models/organization/workspace_policy_violation_error_details.rb +2 -2
- data/lib/anthropic/models/user_profile_billing_not_authorized_error.rb +1 -1
- data/lib/anthropic/models/user_profile_billing_not_authorized_error_details.rb +1 -1
- data/lib/anthropic/models/user_profile_not_billable_error.rb +2 -2
- data/lib/anthropic/models/user_profile_not_billable_error_details.rb +2 -2
- data/lib/anthropic/models/workspace_human_review_disabled_error.rb +20 -0
- data/lib/anthropic/models/workspace_human_review_disabled_error_details.rb +18 -0
- data/lib/anthropic/models.rb +12 -0
- data/lib/anthropic/resources/beta/messages/batches.rb +1 -0
- data/lib/anthropic/resources/beta/messages.rb +3 -0
- data/lib/anthropic/resources/beta/organization/analytics/cost.rb +6 -0
- data/lib/anthropic/resources/beta/organization/analytics/usage.rb +6 -1
- data/lib/anthropic/resources/beta/organization/compliance_settings.rb +17 -5
- data/lib/anthropic/resources/beta/organization/external_storage.rb +263 -0
- data/lib/anthropic/resources/beta/organization/plugins/shares.rb +3 -4
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +9 -6
- data/lib/anthropic/resources/beta/organization/plugins.rb +2 -2
- data/lib/anthropic/resources/beta/organization/workspaces.rb +82 -22
- data/lib/anthropic/resources/beta/organization.rb +4 -0
- data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +5 -1
- data/lib/anthropic/resources/beta/user_profiles.rb +36 -6
- data/lib/anthropic/resources/beta.rb +3 -0
- data/lib/anthropic/resources/messages/batches.rb +1 -0
- data/lib/anthropic/resources/messages.rb +3 -0
- data/lib/anthropic/resources/organization/workspaces.rb +4 -0
- data/lib/anthropic/resources/user_profiles/action_urls.rb +5 -1
- data/lib/anthropic/resources/user_profiles.rb +30 -5
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +85 -0
- data/rbi/anthropic/client.rbi +3 -0
- data/rbi/anthropic/internal/tracing.rbi +12 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_approval_required_error.rbi +19 -0
- data/rbi/anthropic/models/beta/beta_approval_required_error_details.rbi +42 -0
- data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error.rbi +23 -0
- data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_human_review_not_available_error.rbi +21 -0
- data/rbi/anthropic/models/beta/beta_human_review_not_available_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_organization_not_eligible_error.rbi +22 -0
- data/rbi/anthropic/models/beta/beta_organization_not_eligible_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +13 -1
- data/rbi/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rbi +53 -0
- data/rbi/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbi +53 -0
- data/rbi/anthropic/models/beta/message_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +12 -12
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +12 -12
- data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +22 -26
- data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +22 -26
- data/rbi/anthropic/models/beta/organization/beta_access_transparency.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_active_external_storage_status.rbi +57 -0
- data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_available_external_storage_status.rbi +58 -0
- data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config.rbi +67 -0
- data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbi +71 -0
- data/rbi/anthropic/models/beta/organization/beta_compliance_settings.rbi +33 -1
- data/rbi/anthropic/models/beta/organization/beta_deleted_external_storage.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_draining_external_storage_status.rbi +72 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage.rbi +307 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_failed_check.rbi +359 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_member.rbi +51 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_member_param.rbi +51 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbi +67 -0
- data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/beta_grant_required_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_grant_required_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbi +28 -0
- data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbi +35 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy.rbi +134 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbi +153 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbi +153 -0
- data/rbi/anthropic/models/beta/organization/beta_internal_storage.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_internal_storage_param.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbi +43 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_member.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_member_param.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbi +42 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbi +74 -0
- data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbi +28 -0
- data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbi +35 -0
- data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error.rbi +24 -0
- data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace.rbi +29 -1
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbi +62 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbi +35 -4
- data/rbi/anthropic/models/beta/organization/compliance_setting_update_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/external_storage_activate_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_create_params.rbi +192 -0
- data/rbi/anthropic/models/beta/organization/external_storage_delete_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_list_params.rbi +96 -0
- data/rbi/anthropic/models/beta/organization/external_storage_retrieve_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_update_params.rbi +87 -0
- data/rbi/anthropic/models/beta/organization/plugins/beta_plugin_share.rbi +2 -2
- data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/workspace_archive_params.rbi +29 -1
- data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +40 -0
- data/rbi/anthropic/models/beta/organization/workspace_list_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/workspace_retrieve_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +65 -0
- data/rbi/anthropic/models/change_outcome_unknown_error.rbi +17 -0
- data/rbi/anthropic/models/change_outcome_unknown_error_details.rbi +28 -0
- data/rbi/anthropic/models/error_details.rbi +182 -2
- data/rbi/anthropic/models/image_dimensions_too_large_error.rbi +18 -0
- data/rbi/anthropic/models/image_dimensions_too_large_error_details.rbi +63 -0
- data/rbi/anthropic/models/organization/storage_attached_during_archive_error.rbi +24 -0
- data/rbi/anthropic/models/organization/storage_attached_during_archive_error_details.rbi +31 -0
- data/rbi/anthropic/models/organization/storage_profile_mismatch_error.rbi +21 -0
- data/rbi/anthropic/models/organization/storage_profile_mismatch_error_details.rbi +40 -0
- data/rbi/anthropic/models/organization/workspace_created_incomplete_error.rbi +24 -0
- data/rbi/anthropic/models/organization/workspace_created_incomplete_error_details.rbi +43 -0
- data/rbi/anthropic/models/organization/workspace_policy_violation_error_details.rbi +2 -2
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error.rbi +1 -1
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error_details.rbi +1 -1
- data/rbi/anthropic/models/user_profile_not_billable_error.rbi +2 -2
- data/rbi/anthropic/models/user_profile_not_billable_error_details.rbi +2 -2
- data/rbi/anthropic/models/workspace_human_review_disabled_error.rbi +17 -0
- data/rbi/anthropic/models/workspace_human_review_disabled_error_details.rbi +28 -0
- data/rbi/anthropic/models.rbi +16 -0
- data/rbi/anthropic/resources/beta/messages.rbi +18 -0
- data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +17 -14
- data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +17 -15
- data/rbi/anthropic/resources/beta/organization/compliance_settings.rbi +20 -6
- data/rbi/anthropic/resources/beta/organization/external_storage.rbi +173 -0
- data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +3 -4
- data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +9 -6
- data/rbi/anthropic/resources/beta/organization/plugins.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +84 -33
- data/rbi/anthropic/resources/beta/organization.rbi +5 -0
- data/rbi/anthropic/resources/beta/user_profiles/action_urls.rbi +5 -1
- data/rbi/anthropic/resources/beta/user_profiles.rbi +36 -6
- data/rbi/anthropic/resources/beta.rbi +3 -0
- data/rbi/anthropic/resources/user_profiles/action_urls.rbi +5 -1
- data/rbi/anthropic/resources/user_profiles.rbi +30 -5
- data/sig/anthropic/internal/tracing.rbs +6 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_approval_required_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_approval_required_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_human_review_not_available_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_human_review_not_available_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_organization_not_eligible_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_organization_not_eligible_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +16 -0
- data/sig/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/organization/beta_access_transparency.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_active_external_storage_status.rbs +30 -0
- data/sig/anthropic/models/beta/organization/beta_anthropic_human_review.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_available_external_storage_status.rbs +30 -0
- data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_compliance_settings.rbs +11 -2
- data/sig/anthropic/models/beta/organization/beta_deleted_external_storage.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_draining_external_storage_status.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage.rbs +161 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_failed_check.rbs +138 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_member.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_member_param.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_grant_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_grant_required_error_details.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_internal_storage.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_internal_storage_param.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +4 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +4 -0
- data/sig/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbs +26 -0
- data/sig/anthropic/models/beta/organization/beta_storage_member.rbs +42 -0
- data/sig/anthropic/models/beta/organization/beta_storage_member_param.rbs +42 -0
- data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbs +34 -0
- data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_unsupported_region_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_workspace.rbs +11 -2
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbs +29 -0
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbs +18 -0
- data/sig/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbs +16 -3
- data/sig/anthropic/models/beta/organization/compliance_setting_update_params.rbs +10 -1
- data/sig/anthropic/models/beta/organization/external_storage_activate_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_create_params.rbs +92 -0
- data/sig/anthropic/models/beta/organization/external_storage_delete_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_list_params.rbs +51 -0
- data/sig/anthropic/models/beta/organization/external_storage_retrieve_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_update_params.rbs +44 -0
- data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +4 -0
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +4 -0
- data/sig/anthropic/models/beta/organization/workspace_archive_params.rbs +12 -1
- data/sig/anthropic/models/beta/organization/workspace_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/workspace_list_params.rbs +10 -1
- data/sig/anthropic/models/beta/organization/workspace_retrieve_params.rbs +12 -1
- data/sig/anthropic/models/beta/organization/workspace_update_params.rbs +15 -1
- data/sig/anthropic/models/change_outcome_unknown_error.rbs +9 -0
- data/sig/anthropic/models/change_outcome_unknown_error_details.rbs +14 -0
- data/sig/anthropic/models/error_details.rbs +188 -1
- data/sig/anthropic/models/image_dimensions_too_large_error.rbs +9 -0
- data/sig/anthropic/models/image_dimensions_too_large_error_details.rbs +30 -0
- data/sig/anthropic/models/organization/storage_attached_during_archive_error.rbs +11 -0
- data/sig/anthropic/models/organization/storage_attached_during_archive_error_details.rbs +16 -0
- data/sig/anthropic/models/organization/storage_profile_mismatch_error.rbs +11 -0
- data/sig/anthropic/models/organization/storage_profile_mismatch_error_details.rbs +21 -0
- data/sig/anthropic/models/organization/workspace_created_incomplete_error.rbs +11 -0
- data/sig/anthropic/models/organization/workspace_created_incomplete_error_details.rbs +24 -0
- data/sig/anthropic/models/workspace_human_review_disabled_error.rbs +9 -0
- data/sig/anthropic/models/workspace_human_review_disabled_error_details.rbs +14 -0
- data/sig/anthropic/models.rbs +12 -0
- data/sig/anthropic/resources/beta/organization/compliance_settings.rbs +2 -0
- data/sig/anthropic/resources/beta/organization/external_storage.rbs +52 -0
- data/sig/anthropic/resources/beta/organization/workspaces.rbs +6 -0
- data/sig/anthropic/resources/beta/organization.rbs +2 -0
- metadata +257 -2
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAccessTransparency < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaAccessTransparency,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig do
|
|
17
|
+
returns(
|
|
18
|
+
Anthropic::Beta::Organization::BetaAccessTransparency::Type::TaggedSymbol
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_accessor :type
|
|
22
|
+
|
|
23
|
+
# Whether Access Transparency is on. Read-only.
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
type:
|
|
27
|
+
Anthropic::Beta::Organization::BetaAccessTransparency::Type::OrSymbol
|
|
28
|
+
).returns(T.attached_class)
|
|
29
|
+
end
|
|
30
|
+
def self.new(type:)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
override.returns(
|
|
35
|
+
{
|
|
36
|
+
type:
|
|
37
|
+
Anthropic::Beta::Organization::BetaAccessTransparency::Type::TaggedSymbol
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
def to_hash
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
module Type
|
|
45
|
+
extend Anthropic::Internal::Type::Enum
|
|
46
|
+
|
|
47
|
+
TaggedSymbol =
|
|
48
|
+
T.type_alias do
|
|
49
|
+
T.all(
|
|
50
|
+
Symbol,
|
|
51
|
+
Anthropic::Beta::Organization::BetaAccessTransparency::Type
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
55
|
+
|
|
56
|
+
DISABLED =
|
|
57
|
+
T.let(
|
|
58
|
+
:disabled,
|
|
59
|
+
Anthropic::Beta::Organization::BetaAccessTransparency::Type::TaggedSymbol
|
|
60
|
+
)
|
|
61
|
+
ENABLED =
|
|
62
|
+
T.let(
|
|
63
|
+
:enabled,
|
|
64
|
+
Anthropic::Beta::Organization::BetaAccessTransparency::Type::TaggedSymbol
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
sig do
|
|
68
|
+
override.returns(
|
|
69
|
+
T::Array[
|
|
70
|
+
Anthropic::Beta::Organization::BetaAccessTransparency::Type::TaggedSymbol
|
|
71
|
+
]
|
|
72
|
+
)
|
|
73
|
+
end
|
|
74
|
+
def self.values
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaActiveExternalStorageStatus < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaActiveExternalStorageStatus,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Whether the bucket passed its latest recorded check. It can stay `true` after
|
|
17
|
+
# the bucket stops working, so don't use it for monitoring.
|
|
18
|
+
sig { returns(T::Boolean) }
|
|
19
|
+
attr_accessor :healthy
|
|
20
|
+
|
|
21
|
+
# When the bucket's latest recorded check ran, in RFC 3339.
|
|
22
|
+
sig { returns(Time) }
|
|
23
|
+
attr_accessor :last_checked_at
|
|
24
|
+
|
|
25
|
+
sig { returns(Symbol) }
|
|
26
|
+
attr_accessor :type
|
|
27
|
+
|
|
28
|
+
# At least one Workspace has the storage attached.
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
healthy: T::Boolean,
|
|
32
|
+
last_checked_at: Time,
|
|
33
|
+
type: Symbol
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(
|
|
37
|
+
# Whether the bucket passed its latest recorded check. It can stay `true` after
|
|
38
|
+
# the bucket stops working, so don't use it for monitoring.
|
|
39
|
+
healthy:,
|
|
40
|
+
# When the bucket's latest recorded check ran, in RFC 3339.
|
|
41
|
+
last_checked_at:,
|
|
42
|
+
type: :active
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
sig do
|
|
47
|
+
override.returns(
|
|
48
|
+
{ healthy: T::Boolean, last_checked_at: Time, type: Symbol }
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
def to_hash
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAnthropicHumanReview < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReview,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig do
|
|
17
|
+
returns(
|
|
18
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReview::Type::TaggedSymbol
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_accessor :type
|
|
22
|
+
|
|
23
|
+
# The Workspace's human review setting.
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
type:
|
|
27
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReview::Type::OrSymbol
|
|
28
|
+
).returns(T.attached_class)
|
|
29
|
+
end
|
|
30
|
+
def self.new(type:)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
override.returns(
|
|
35
|
+
{
|
|
36
|
+
type:
|
|
37
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReview::Type::TaggedSymbol
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
def to_hash
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
module Type
|
|
45
|
+
extend Anthropic::Internal::Type::Enum
|
|
46
|
+
|
|
47
|
+
TaggedSymbol =
|
|
48
|
+
T.type_alias do
|
|
49
|
+
T.all(
|
|
50
|
+
Symbol,
|
|
51
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReview::Type
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
55
|
+
|
|
56
|
+
DISABLED =
|
|
57
|
+
T.let(
|
|
58
|
+
:disabled,
|
|
59
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReview::Type::TaggedSymbol
|
|
60
|
+
)
|
|
61
|
+
ENABLED =
|
|
62
|
+
T.let(
|
|
63
|
+
:enabled,
|
|
64
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReview::Type::TaggedSymbol
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
sig do
|
|
68
|
+
override.returns(
|
|
69
|
+
T::Array[
|
|
70
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReview::Type::TaggedSymbol
|
|
71
|
+
]
|
|
72
|
+
)
|
|
73
|
+
end
|
|
74
|
+
def self.values
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAnthropicHumanReviewParam < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReviewParam,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig do
|
|
17
|
+
returns(
|
|
18
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReviewParam::Type::OrSymbol
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_accessor :type
|
|
22
|
+
|
|
23
|
+
# Whether Anthropic's human review applies to the Workspace's inference data.
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
type:
|
|
27
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReviewParam::Type::OrSymbol
|
|
28
|
+
).returns(T.attached_class)
|
|
29
|
+
end
|
|
30
|
+
def self.new(type:)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
override.returns(
|
|
35
|
+
{
|
|
36
|
+
type:
|
|
37
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReviewParam::Type::OrSymbol
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
def to_hash
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
module Type
|
|
45
|
+
extend Anthropic::Internal::Type::Enum
|
|
46
|
+
|
|
47
|
+
TaggedSymbol =
|
|
48
|
+
T.type_alias do
|
|
49
|
+
T.all(
|
|
50
|
+
Symbol,
|
|
51
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReviewParam::Type
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
55
|
+
|
|
56
|
+
DISABLED =
|
|
57
|
+
T.let(
|
|
58
|
+
:disabled,
|
|
59
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReviewParam::Type::TaggedSymbol
|
|
60
|
+
)
|
|
61
|
+
ENABLED =
|
|
62
|
+
T.let(
|
|
63
|
+
:enabled,
|
|
64
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReviewParam::Type::TaggedSymbol
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
sig do
|
|
68
|
+
override.returns(
|
|
69
|
+
T::Array[
|
|
70
|
+
Anthropic::Beta::Organization::BetaAnthropicHumanReviewParam::Type::TaggedSymbol
|
|
71
|
+
]
|
|
72
|
+
)
|
|
73
|
+
end
|
|
74
|
+
def self.values
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAvailableExternalStorageStatus < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaAvailableExternalStorageStatus,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Whether the bucket passed its latest recorded check. It can stay `true` after
|
|
17
|
+
# the bucket stops working, so don't use it for monitoring.
|
|
18
|
+
sig { returns(T::Boolean) }
|
|
19
|
+
attr_accessor :healthy
|
|
20
|
+
|
|
21
|
+
# When the bucket's latest recorded check ran, in RFC 3339.
|
|
22
|
+
sig { returns(Time) }
|
|
23
|
+
attr_accessor :last_checked_at
|
|
24
|
+
|
|
25
|
+
sig { returns(Symbol) }
|
|
26
|
+
attr_accessor :type
|
|
27
|
+
|
|
28
|
+
# The storage is verified, no Workspace has it attached, and Anthropic doesn't use
|
|
29
|
+
# the bucket.
|
|
30
|
+
sig do
|
|
31
|
+
params(
|
|
32
|
+
healthy: T::Boolean,
|
|
33
|
+
last_checked_at: Time,
|
|
34
|
+
type: Symbol
|
|
35
|
+
).returns(T.attached_class)
|
|
36
|
+
end
|
|
37
|
+
def self.new(
|
|
38
|
+
# Whether the bucket passed its latest recorded check. It can stay `true` after
|
|
39
|
+
# the bucket stops working, so don't use it for monitoring.
|
|
40
|
+
healthy:,
|
|
41
|
+
# When the bucket's latest recorded check ran, in RFC 3339.
|
|
42
|
+
last_checked_at:,
|
|
43
|
+
type: :available
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
sig do
|
|
48
|
+
override.returns(
|
|
49
|
+
{ healthy: T::Boolean, last_checked_at: Time, type: Symbol }
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
def to_hash
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAWSExternalStorageConfig < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaAWSExternalStorageConfig,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# 12-digit ID of the AWS account that owns the bucket.
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :account_id
|
|
19
|
+
|
|
20
|
+
# The bucket's name, without `s3://`.
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :bucket_name
|
|
23
|
+
|
|
24
|
+
# The bucket's AWS region.
|
|
25
|
+
sig { returns(String) }
|
|
26
|
+
attr_accessor :region
|
|
27
|
+
|
|
28
|
+
sig { returns(Symbol) }
|
|
29
|
+
attr_accessor :type
|
|
30
|
+
|
|
31
|
+
# An Amazon S3 bucket.
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
account_id: String,
|
|
35
|
+
bucket_name: String,
|
|
36
|
+
region: String,
|
|
37
|
+
type: Symbol
|
|
38
|
+
).returns(T.attached_class)
|
|
39
|
+
end
|
|
40
|
+
def self.new(
|
|
41
|
+
# 12-digit ID of the AWS account that owns the bucket.
|
|
42
|
+
account_id:,
|
|
43
|
+
# The bucket's name, without `s3://`.
|
|
44
|
+
bucket_name:,
|
|
45
|
+
# The bucket's AWS region.
|
|
46
|
+
region:,
|
|
47
|
+
type: :aws
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
sig do
|
|
52
|
+
override.returns(
|
|
53
|
+
{
|
|
54
|
+
account_id: String,
|
|
55
|
+
bucket_name: String,
|
|
56
|
+
region: String,
|
|
57
|
+
type: Symbol
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
def to_hash
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAWSExternalStorageConfigParam < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaAWSExternalStorageConfigParam,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# 12-digit ID of the AWS account that owns the bucket.
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :account_id
|
|
19
|
+
|
|
20
|
+
# The bucket's name, without `s3://`: 3 to 63 lower-case letters, digits and
|
|
21
|
+
# hyphens, starting and ending with a letter or digit.
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :bucket_name
|
|
24
|
+
|
|
25
|
+
# The bucket's AWS region. Activating the storage fails if Anthropic can't use
|
|
26
|
+
# buckets in that region.
|
|
27
|
+
sig { returns(String) }
|
|
28
|
+
attr_accessor :region
|
|
29
|
+
|
|
30
|
+
sig { returns(Symbol) }
|
|
31
|
+
attr_accessor :type
|
|
32
|
+
|
|
33
|
+
# An Amazon S3 bucket.
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
account_id: String,
|
|
37
|
+
bucket_name: String,
|
|
38
|
+
region: String,
|
|
39
|
+
type: Symbol
|
|
40
|
+
).returns(T.attached_class)
|
|
41
|
+
end
|
|
42
|
+
def self.new(
|
|
43
|
+
# 12-digit ID of the AWS account that owns the bucket.
|
|
44
|
+
account_id:,
|
|
45
|
+
# The bucket's name, without `s3://`: 3 to 63 lower-case letters, digits and
|
|
46
|
+
# hyphens, starting and ending with a letter or digit.
|
|
47
|
+
bucket_name:,
|
|
48
|
+
# The bucket's AWS region. Activating the storage fails if Anthropic can't use
|
|
49
|
+
# buckets in that region.
|
|
50
|
+
region:,
|
|
51
|
+
type: :aws
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
override.returns(
|
|
57
|
+
{
|
|
58
|
+
account_id: String,
|
|
59
|
+
bucket_name: String,
|
|
60
|
+
region: String,
|
|
61
|
+
type: Symbol
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
def to_hash
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -24,6 +24,27 @@ module Anthropic
|
|
|
24
24
|
sig { returns(Symbol) }
|
|
25
25
|
attr_accessor :type
|
|
26
26
|
|
|
27
|
+
# Read-only. Whether Access Transparency is on for the organization. Returned only
|
|
28
|
+
# when the request sends the `anthropic-beta: efs-2026-10-01` header and Access
|
|
29
|
+
# Transparency is available to the organization; otherwise omitted. If the status
|
|
30
|
+
# can't be read, getting Compliance Settings returns an error; an update still
|
|
31
|
+
# saves, but then reports `disabled` whatever the real status, so get the settings
|
|
32
|
+
# again to check it.
|
|
33
|
+
sig do
|
|
34
|
+
returns(
|
|
35
|
+
T.nilable(Anthropic::Beta::Organization::BetaAccessTransparency)
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
attr_reader :access_transparency
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
params(
|
|
42
|
+
access_transparency:
|
|
43
|
+
Anthropic::Beta::Organization::BetaAccessTransparency::OrHash
|
|
44
|
+
).void
|
|
45
|
+
end
|
|
46
|
+
attr_writer :access_transparency
|
|
47
|
+
|
|
27
48
|
sig do
|
|
28
49
|
params(
|
|
29
50
|
state:
|
|
@@ -31,12 +52,21 @@ module Anthropic
|
|
|
31
52
|
Anthropic::Beta::Organization::BetaComplianceSettingsStateEnabled::OrHash,
|
|
32
53
|
Anthropic::Beta::Organization::BetaComplianceSettingsStateDisabled::OrHash
|
|
33
54
|
),
|
|
55
|
+
access_transparency:
|
|
56
|
+
Anthropic::Beta::Organization::BetaAccessTransparency::OrHash,
|
|
34
57
|
type: Symbol
|
|
35
58
|
).returns(T.attached_class)
|
|
36
59
|
end
|
|
37
60
|
def self.new(
|
|
38
61
|
# Whether the Compliance API is enabled for this organization.
|
|
39
62
|
state:,
|
|
63
|
+
# Read-only. Whether Access Transparency is on for the organization. Returned only
|
|
64
|
+
# when the request sends the `anthropic-beta: efs-2026-10-01` header and Access
|
|
65
|
+
# Transparency is available to the organization; otherwise omitted. If the status
|
|
66
|
+
# can't be read, getting Compliance Settings returns an error; an update still
|
|
67
|
+
# saves, but then reports `disabled` whatever the real status, so get the settings
|
|
68
|
+
# again to check it.
|
|
69
|
+
access_transparency: nil,
|
|
40
70
|
type: :compliance_settings
|
|
41
71
|
)
|
|
42
72
|
end
|
|
@@ -46,7 +76,9 @@ module Anthropic
|
|
|
46
76
|
{
|
|
47
77
|
state:
|
|
48
78
|
Anthropic::Beta::Organization::BetaComplianceSettingsState::Variants,
|
|
49
|
-
type: Symbol
|
|
79
|
+
type: Symbol,
|
|
80
|
+
access_transparency:
|
|
81
|
+
Anthropic::Beta::Organization::BetaAccessTransparency
|
|
50
82
|
}
|
|
51
83
|
)
|
|
52
84
|
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaDeletedExternalStorage < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaDeletedExternalStorage,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# The External Storage ID, which starts with `estrg_`. Through Claude Platform on
|
|
17
|
+
# AWS, storage whose `provider_config.type` is `aws` has its bucket ARN as its ID
|
|
18
|
+
# instead: `arn:<partition>:s3:::<bucket_name>`, where `<partition>` is the
|
|
19
|
+
# partition of the bucket's region.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :id
|
|
22
|
+
|
|
23
|
+
sig { returns(Symbol) }
|
|
24
|
+
attr_accessor :type
|
|
25
|
+
|
|
26
|
+
sig { params(id: String, type: Symbol).returns(T.attached_class) }
|
|
27
|
+
def self.new(
|
|
28
|
+
# The External Storage ID, which starts with `estrg_`. Through Claude Platform on
|
|
29
|
+
# AWS, storage whose `provider_config.type` is `aws` has its bucket ARN as its ID
|
|
30
|
+
# instead: `arn:<partition>:s3:::<bucket_name>`, where `<partition>` is the
|
|
31
|
+
# partition of the bucket's region.
|
|
32
|
+
id:,
|
|
33
|
+
type: :external_storage_deleted
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
sig { override.returns({ id: String, type: Symbol }) }
|
|
38
|
+
def to_hash
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaDrainingExternalStorageStatus < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaDrainingExternalStorageStatus,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Whether the bucket passed its latest recorded check. It can stay `true` after
|
|
17
|
+
# the bucket stops working, so don't use it for monitoring.
|
|
18
|
+
sig { returns(T::Boolean) }
|
|
19
|
+
attr_accessor :healthy
|
|
20
|
+
|
|
21
|
+
# When the bucket's latest recorded check ran, in RFC 3339.
|
|
22
|
+
sig { returns(Time) }
|
|
23
|
+
attr_accessor :last_checked_at
|
|
24
|
+
|
|
25
|
+
# True once a delete has started removing this storage, which can't be undone. It
|
|
26
|
+
# then can't be attached, and another delete finishes the removal.
|
|
27
|
+
sig { returns(T::Boolean) }
|
|
28
|
+
attr_accessor :removal_started
|
|
29
|
+
|
|
30
|
+
sig { returns(Symbol) }
|
|
31
|
+
attr_accessor :type
|
|
32
|
+
|
|
33
|
+
# No Workspace has the storage attached. A Workspace can attach it again, unless
|
|
34
|
+
# `removal_started` is true.
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
healthy: T::Boolean,
|
|
38
|
+
last_checked_at: Time,
|
|
39
|
+
removal_started: T::Boolean,
|
|
40
|
+
type: Symbol
|
|
41
|
+
).returns(T.attached_class)
|
|
42
|
+
end
|
|
43
|
+
def self.new(
|
|
44
|
+
# Whether the bucket passed its latest recorded check. It can stay `true` after
|
|
45
|
+
# the bucket stops working, so don't use it for monitoring.
|
|
46
|
+
healthy:,
|
|
47
|
+
# When the bucket's latest recorded check ran, in RFC 3339.
|
|
48
|
+
last_checked_at:,
|
|
49
|
+
# True once a delete has started removing this storage, which can't be undone. It
|
|
50
|
+
# then can't be attached, and another delete finishes the removal.
|
|
51
|
+
removal_started:,
|
|
52
|
+
type: :draining
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
sig do
|
|
57
|
+
override.returns(
|
|
58
|
+
{
|
|
59
|
+
healthy: T::Boolean,
|
|
60
|
+
last_checked_at: Time,
|
|
61
|
+
removal_started: T::Boolean,
|
|
62
|
+
type: Symbol
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
end
|
|
66
|
+
def to_hash
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|