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
data/rbi/anthropic/models.rbi
CHANGED
|
@@ -375,6 +375,11 @@ module Anthropic
|
|
|
375
375
|
|
|
376
376
|
CapabilitySupport = Anthropic::Models::CapabilitySupport
|
|
377
377
|
|
|
378
|
+
ChangeOutcomeUnknownError = Anthropic::Models::ChangeOutcomeUnknownError
|
|
379
|
+
|
|
380
|
+
ChangeOutcomeUnknownErrorDetails =
|
|
381
|
+
Anthropic::Models::ChangeOutcomeUnknownErrorDetails
|
|
382
|
+
|
|
378
383
|
CitationCharLocation = Anthropic::Models::CitationCharLocation
|
|
379
384
|
|
|
380
385
|
CitationCharLocationParam = Anthropic::Models::CitationCharLocationParam
|
|
@@ -751,6 +756,11 @@ module Anthropic
|
|
|
751
756
|
|
|
752
757
|
ImageBlockParam = Anthropic::Models::ImageBlockParam
|
|
753
758
|
|
|
759
|
+
ImageDimensionsTooLargeError = Anthropic::Models::ImageDimensionsTooLargeError
|
|
760
|
+
|
|
761
|
+
ImageDimensionsTooLargeErrorDetails =
|
|
762
|
+
Anthropic::Models::ImageDimensionsTooLargeErrorDetails
|
|
763
|
+
|
|
754
764
|
ImageTransformationsParam = Anthropic::Models::ImageTransformationsParam
|
|
755
765
|
|
|
756
766
|
InputJSONDelta = Anthropic::Models::InputJSONDelta
|
|
@@ -1288,4 +1298,10 @@ module Anthropic
|
|
|
1288
1298
|
|
|
1289
1299
|
WebSearchToolResultErrorObject =
|
|
1290
1300
|
Anthropic::Models::WebSearchToolResultErrorObject
|
|
1301
|
+
|
|
1302
|
+
WorkspaceHumanReviewDisabledError =
|
|
1303
|
+
Anthropic::Models::WorkspaceHumanReviewDisabledError
|
|
1304
|
+
|
|
1305
|
+
WorkspaceHumanReviewDisabledErrorDetails =
|
|
1306
|
+
Anthropic::Models::WorkspaceHumanReviewDisabledErrorDetails
|
|
1291
1307
|
end
|
|
@@ -668,6 +668,12 @@ module Anthropic
|
|
|
668
668
|
# to the profile, or has not allowed your organization to bill it, the request is
|
|
669
669
|
# rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
|
|
670
670
|
# (the default), to be billed as usual.
|
|
671
|
+
#
|
|
672
|
+
# Message Batches does not currently support billing the customer behind a user
|
|
673
|
+
# profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
|
|
674
|
+
# batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
|
|
675
|
+
# `invalid_request_error`, nobody is billed for it, and the batch's other requests
|
|
676
|
+
# run as usual.
|
|
671
677
|
billing_policy: nil,
|
|
672
678
|
# Body param: Top-level cache control automatically applies a cache_control marker
|
|
673
679
|
# to the last cacheable block in the request.
|
|
@@ -1113,6 +1119,12 @@ module Anthropic
|
|
|
1113
1119
|
# to the profile, or has not allowed your organization to bill it, the request is
|
|
1114
1120
|
# rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
|
|
1115
1121
|
# (the default), to be billed as usual.
|
|
1122
|
+
#
|
|
1123
|
+
# Message Batches does not currently support billing the customer behind a user
|
|
1124
|
+
# profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
|
|
1125
|
+
# batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
|
|
1126
|
+
# `invalid_request_error`, nobody is billed for it, and the batch's other requests
|
|
1127
|
+
# run as usual.
|
|
1116
1128
|
billing_policy: nil,
|
|
1117
1129
|
# Body param: Top-level cache control automatically applies a cache_control marker
|
|
1118
1130
|
# to the last cacheable block in the request.
|
|
@@ -1868,6 +1880,12 @@ module Anthropic
|
|
|
1868
1880
|
# to the profile, or has not allowed your organization to bill it, the request is
|
|
1869
1881
|
# rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
|
|
1870
1882
|
# (the default), to be billed as usual.
|
|
1883
|
+
#
|
|
1884
|
+
# Message Batches does not currently support billing the customer behind a user
|
|
1885
|
+
# profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
|
|
1886
|
+
# batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
|
|
1887
|
+
# `invalid_request_error`, nobody is billed for it, and the batch's other requests
|
|
1888
|
+
# run as usual.
|
|
1871
1889
|
billing_policy: nil,
|
|
1872
1890
|
# Body param: Top-level cache control automatically applies a cache_control marker
|
|
1873
1891
|
# to the last cacheable block in the request.
|
|
@@ -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
|
sig do
|
|
18
24
|
params(
|
|
19
25
|
starting_at: Time,
|
|
@@ -114,14 +120,13 @@ module Anthropic
|
|
|
114
120
|
# `group_by[]=actor_type` to break out per-kind values.
|
|
115
121
|
actor_types: nil,
|
|
116
122
|
# Query param: Filter to usage incurred by sessions of specific Claude Managed
|
|
117
|
-
# Agents agents. Use `group_by[]=agent_id` to break out per-agent values.
|
|
118
|
-
# Platform organizations only.
|
|
123
|
+
# Agents agents. Use `group_by[]=agent_id` to break out per-agent values.
|
|
119
124
|
agent_ids: nil,
|
|
120
125
|
# Query param: Filter to usage authenticated by specific API keys, by tagged API
|
|
121
126
|
# key ID (`apikey_...`), whichever identity the usage is attributed to. Include an
|
|
122
127
|
# empty entry (`api_key_ids[]=`) to also match usage that no API key
|
|
123
128
|
# authenticated. Use `group_by[]=api_key_id` to break out per-key values; usage
|
|
124
|
-
# without a key has a null `api_key_id`.
|
|
129
|
+
# without a key has a null `api_key_id`.
|
|
125
130
|
api_key_ids: nil,
|
|
126
131
|
# Query param: Filter to Claude Tag (Claude in Slack) usage in specific spend
|
|
127
132
|
# categories. Usage with no category never matches. Use
|
|
@@ -138,7 +143,7 @@ module Anthropic
|
|
|
138
143
|
context_windows: nil,
|
|
139
144
|
# Query param: Filter to usage incurred by Claude Managed Agents sessions that
|
|
140
145
|
# specific deployments started. Use `group_by[]=deployment_id` to break out
|
|
141
|
-
# per-deployment values.
|
|
146
|
+
# per-deployment values.
|
|
142
147
|
deployment_ids: nil,
|
|
143
148
|
# Query param: End of range, exclusive. Required when `time_bucket_width` is set.
|
|
144
149
|
# Without `time_bucket_width`, defaults to the earlier of now and `starting_at` +
|
|
@@ -146,7 +151,7 @@ module Anthropic
|
|
|
146
151
|
ending_at: nil,
|
|
147
152
|
# Query param: Filter to usage incurred by Claude Managed Agents sessions that ran
|
|
148
153
|
# in specific environments. Use `group_by[]=environment_id` to break out
|
|
149
|
-
# per-environment values.
|
|
154
|
+
# per-environment values.
|
|
150
155
|
environment_ids: nil,
|
|
151
156
|
# Query param: If true, omit rows whose `actor` is a `user_actor` with
|
|
152
157
|
# `deleted: true`. Requires `group_by[]=actor`. Rows for other actor types, and
|
|
@@ -186,9 +191,10 @@ module Anthropic
|
|
|
186
191
|
order_by: nil,
|
|
187
192
|
# Query param: Filter a parent organization's report to specific child
|
|
188
193
|
# organizations, by organization UUID or `org_` ID; an ID that is not one of its
|
|
189
|
-
# child organizations matches nothing.
|
|
190
|
-
#
|
|
191
|
-
#
|
|
194
|
+
# child organizations matches nothing. The report leaves out child organizations
|
|
195
|
+
# with HIPAA readiness enabled, and naming one returns a 400 error. Requires an
|
|
196
|
+
# API key created at the parent organization level. Use
|
|
197
|
+
# `group_by[]=organization_id` to break out per-organization values.
|
|
192
198
|
organization_ids: nil,
|
|
193
199
|
# Query param: Opaque cursor from a previous response's `next_page` field.
|
|
194
200
|
page: nil,
|
|
@@ -200,12 +206,11 @@ module Anthropic
|
|
|
200
206
|
# usage with no group attribution never matches.
|
|
201
207
|
rbac_group_ids: nil,
|
|
202
208
|
# Query param: Filter to specific service tiers. Use `group_by[]=service_tier` to
|
|
203
|
-
# break out per-tier values.
|
|
204
|
-
# for a Claude Enterprise organization.
|
|
209
|
+
# break out per-tier values.
|
|
205
210
|
service_tiers: nil,
|
|
206
211
|
# Query param: Filter to usage incurred by specific Claude Managed Agents
|
|
207
212
|
# sessions, by tagged session ID (`sesn_...`). Use `group_by[]=session_id` to
|
|
208
|
-
# break out per-session values.
|
|
213
|
+
# break out per-session values.
|
|
209
214
|
session_ids: nil,
|
|
210
215
|
# Query param: Filter to usage originating from specific Slack channels. Use
|
|
211
216
|
# `group_by[]=slack_channel_id` to break out per-channel values.
|
|
@@ -223,12 +228,10 @@ module Anthropic
|
|
|
223
228
|
time_bucket_width: nil,
|
|
224
229
|
# Query param: Filter to usage attributed to specific user profiles, by tagged
|
|
225
230
|
# user profile ID (`uprof_...`). Use `group_by[]=user_profile_id` to break out
|
|
226
|
-
# per-profile values.
|
|
231
|
+
# per-profile values.
|
|
227
232
|
user_profile_ids: nil,
|
|
228
233
|
# Query param: Filter to usage in specific workspaces, by tagged workspace ID
|
|
229
234
|
# (`wrkspc_...`). Use `group_by[]=workspace_id` to break out per-workspace values.
|
|
230
|
-
# Claude Platform organizations only; matches nothing for a Claude Enterprise
|
|
231
|
-
# organization.
|
|
232
235
|
workspace_ids: nil,
|
|
233
236
|
# Header param: This endpoint is in beta: requests must send
|
|
234
237
|
# `analytics-usage-cost-2026-08-24` in this header.
|
|
@@ -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
|
sig do
|
|
19
24
|
params(
|
|
20
25
|
starting_at: Time,
|
|
@@ -115,14 +120,13 @@ module Anthropic
|
|
|
115
120
|
# `group_by[]=actor_type` to break out per-kind values.
|
|
116
121
|
actor_types: nil,
|
|
117
122
|
# Query param: Filter to usage incurred by sessions of specific Claude Managed
|
|
118
|
-
# Agents agents. Use `group_by[]=agent_id` to break out per-agent values.
|
|
119
|
-
# Platform organizations only.
|
|
123
|
+
# Agents agents. Use `group_by[]=agent_id` to break out per-agent values.
|
|
120
124
|
agent_ids: nil,
|
|
121
125
|
# Query param: Filter to usage authenticated by specific API keys, by tagged API
|
|
122
126
|
# key ID (`apikey_...`), whichever identity the usage is attributed to. Include an
|
|
123
127
|
# empty entry (`api_key_ids[]=`) to also match usage that no API key
|
|
124
128
|
# authenticated. Use `group_by[]=api_key_id` to break out per-key values; usage
|
|
125
|
-
# without a key has a null `api_key_id`.
|
|
129
|
+
# without a key has a null `api_key_id`.
|
|
126
130
|
api_key_ids: nil,
|
|
127
131
|
# Query param: Filter to Claude Tag (Claude in Slack) usage in specific spend
|
|
128
132
|
# categories. Usage with no category never matches. Use
|
|
@@ -139,7 +143,7 @@ module Anthropic
|
|
|
139
143
|
context_windows: nil,
|
|
140
144
|
# Query param: Filter to usage incurred by Claude Managed Agents sessions that
|
|
141
145
|
# specific deployments started. Use `group_by[]=deployment_id` to break out
|
|
142
|
-
# per-deployment values.
|
|
146
|
+
# per-deployment values.
|
|
143
147
|
deployment_ids: nil,
|
|
144
148
|
# Query param: End of range, exclusive. Required when `time_bucket_width` is set.
|
|
145
149
|
# Without `time_bucket_width`, defaults to the earlier of now and `starting_at` +
|
|
@@ -147,7 +151,7 @@ module Anthropic
|
|
|
147
151
|
ending_at: nil,
|
|
148
152
|
# Query param: Filter to usage incurred by Claude Managed Agents sessions that ran
|
|
149
153
|
# in specific environments. Use `group_by[]=environment_id` to break out
|
|
150
|
-
# per-environment values.
|
|
154
|
+
# per-environment values.
|
|
151
155
|
environment_ids: nil,
|
|
152
156
|
# Query param: If true, omit rows whose `actor` is a `user_actor` with
|
|
153
157
|
# `deleted: true`. Requires `group_by[]=actor`. Rows for other actor types, and
|
|
@@ -181,9 +185,10 @@ module Anthropic
|
|
|
181
185
|
order_by: nil,
|
|
182
186
|
# Query param: Filter a parent organization's report to specific child
|
|
183
187
|
# organizations, by organization UUID or `org_` ID; an ID that is not one of its
|
|
184
|
-
# child organizations matches nothing.
|
|
185
|
-
#
|
|
186
|
-
#
|
|
188
|
+
# child organizations matches nothing. The report leaves out child organizations
|
|
189
|
+
# with HIPAA readiness enabled, and naming one returns a 400 error. Requires an
|
|
190
|
+
# API key created at the parent organization level. Use
|
|
191
|
+
# `group_by[]=organization_id` to break out per-organization values.
|
|
187
192
|
organization_ids: nil,
|
|
188
193
|
# Query param: Opaque cursor from a previous response's `next_page` field.
|
|
189
194
|
page: nil,
|
|
@@ -195,12 +200,11 @@ module Anthropic
|
|
|
195
200
|
# usage with no group attribution never matches.
|
|
196
201
|
rbac_group_ids: nil,
|
|
197
202
|
# Query param: Filter to specific service tiers. Use `group_by[]=service_tier` to
|
|
198
|
-
# break out per-tier values.
|
|
199
|
-
# for a Claude Enterprise organization.
|
|
203
|
+
# break out per-tier values.
|
|
200
204
|
service_tiers: nil,
|
|
201
205
|
# Query param: Filter to usage incurred by specific Claude Managed Agents
|
|
202
206
|
# sessions, by tagged session ID (`sesn_...`). Use `group_by[]=session_id` to
|
|
203
|
-
# break out per-session values.
|
|
207
|
+
# break out per-session values.
|
|
204
208
|
session_ids: nil,
|
|
205
209
|
# Query param: Filter to usage originating from specific Slack channels. Use
|
|
206
210
|
# `group_by[]=slack_channel_id` to break out per-channel values.
|
|
@@ -218,12 +222,10 @@ module Anthropic
|
|
|
218
222
|
time_bucket_width: nil,
|
|
219
223
|
# Query param: Filter to usage attributed to specific user profiles, by tagged
|
|
220
224
|
# user profile ID (`uprof_...`). Use `group_by[]=user_profile_id` to break out
|
|
221
|
-
# per-profile values.
|
|
225
|
+
# per-profile values.
|
|
222
226
|
user_profile_ids: nil,
|
|
223
227
|
# Query param: Filter to usage in specific workspaces, by tagged workspace ID
|
|
224
228
|
# (`wrkspc_...`). Use `group_by[]=workspace_id` to break out per-workspace values.
|
|
225
|
-
# Claude Platform organizations only; matches nothing for a Claude Enterprise
|
|
226
|
-
# organization.
|
|
227
229
|
workspace_ids: nil,
|
|
228
230
|
# Header param: This endpoint is in beta: requests must send
|
|
229
231
|
# `analytics-usage-cost-2026-08-24` in this header.
|
|
@@ -12,11 +12,18 @@ module Anthropic
|
|
|
12
12
|
# whether the Compliance API is enabled. An organization with a parent
|
|
13
13
|
# organization reads the state inherited from the parent's configuration.
|
|
14
14
|
sig do
|
|
15
|
-
params(
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
params(
|
|
16
|
+
betas:
|
|
17
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
18
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
19
|
+
).returns(Anthropic::Beta::Organization::BetaComplianceSettings)
|
|
18
20
|
end
|
|
19
|
-
def retrieve(
|
|
21
|
+
def retrieve(
|
|
22
|
+
# Optional. Send `efs-2026-10-01` in this header to use this endpoint's beta
|
|
23
|
+
# features: additional parameters, accepted values and response fields.
|
|
24
|
+
betas: nil,
|
|
25
|
+
request_options: {}
|
|
26
|
+
)
|
|
20
27
|
end
|
|
21
28
|
|
|
22
29
|
# Update your organization's Compliance Settings.
|
|
@@ -42,13 +49,20 @@ module Anthropic
|
|
|
42
49
|
Anthropic::Beta::Organization::BetaComplianceSettingsStateEnabledParam::OrHash,
|
|
43
50
|
Anthropic::Beta::Organization::BetaComplianceSettingsStateDisabledParam::OrHash
|
|
44
51
|
),
|
|
52
|
+
betas:
|
|
53
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
45
54
|
request_options: Anthropic::RequestOptions::OrHash
|
|
46
55
|
).returns(Anthropic::Beta::Organization::BetaComplianceSettings)
|
|
47
56
|
end
|
|
48
57
|
def update(
|
|
49
|
-
# Desired state. Accepts the string shorthand "enabled" or "disabled"
|
|
50
|
-
# the object form; the response always returns the canonical object
|
|
58
|
+
# Body param: Desired state. Accepts the string shorthand "enabled" or "disabled"
|
|
59
|
+
# in place of the object form; the response always returns the canonical object
|
|
60
|
+
# form.
|
|
51
61
|
state:,
|
|
62
|
+
# Header param: Optional. Send `efs-2026-10-01` in this header to use this
|
|
63
|
+
# endpoint's beta features: additional parameters, accepted values and response
|
|
64
|
+
# fields.
|
|
65
|
+
betas: nil,
|
|
52
66
|
request_options: {}
|
|
53
67
|
)
|
|
54
68
|
end
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Resources
|
|
5
|
+
class Beta
|
|
6
|
+
class Organization
|
|
7
|
+
class ExternalStorage
|
|
8
|
+
# Register a bucket in the organization's own cloud account. It is saved as
|
|
9
|
+
# `pending_configuration` and verified when activated.
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
provider_config:
|
|
13
|
+
T.any(
|
|
14
|
+
Anthropic::Beta::Organization::BetaAWSExternalStorageConfigParam::OrHash,
|
|
15
|
+
Anthropic::Beta::Organization::BetaGCPExternalStorageConfigParam::OrHash
|
|
16
|
+
),
|
|
17
|
+
display_name: T.nilable(String),
|
|
18
|
+
user_profile_id: T.nilable(String),
|
|
19
|
+
betas:
|
|
20
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
21
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
22
|
+
).returns(Anthropic::Beta::Organization::BetaExternalStorage)
|
|
23
|
+
end
|
|
24
|
+
def create(
|
|
25
|
+
# Body param
|
|
26
|
+
provider_config:,
|
|
27
|
+
# Body param: Human-friendly display name.
|
|
28
|
+
display_name: nil,
|
|
29
|
+
# Body param: The user profile to bind the storage to. It can't be changed later.
|
|
30
|
+
# The storage can be attached only to Workspaces with this profile, and the
|
|
31
|
+
# bucket's setup must name the same ID.
|
|
32
|
+
user_profile_id: nil,
|
|
33
|
+
# Header param: This endpoint is in beta: requests must send `efs-2026-10-01` in
|
|
34
|
+
# this header.
|
|
35
|
+
betas: nil,
|
|
36
|
+
request_options: {}
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Get one External Storage in the organization.
|
|
41
|
+
sig do
|
|
42
|
+
params(
|
|
43
|
+
external_storage_id: String,
|
|
44
|
+
betas:
|
|
45
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
46
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
47
|
+
).returns(Anthropic::Beta::Organization::BetaExternalStorage)
|
|
48
|
+
end
|
|
49
|
+
def retrieve(
|
|
50
|
+
# The External Storage ID, which starts with `estrg_`. Through Claude Platform on
|
|
51
|
+
# AWS, storage whose `provider_config.type` is `aws` has its bucket ARN as its ID
|
|
52
|
+
# instead: `arn:<partition>:s3:::<bucket_name>`, where `<partition>` is the
|
|
53
|
+
# partition of the bucket's region.
|
|
54
|
+
external_storage_id,
|
|
55
|
+
# This endpoint is in beta: requests must send `efs-2026-10-01` in this header.
|
|
56
|
+
betas: nil,
|
|
57
|
+
request_options: {}
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Rename External Storage or clear its name, in any status.
|
|
62
|
+
sig do
|
|
63
|
+
params(
|
|
64
|
+
external_storage_id: String,
|
|
65
|
+
display_name: T.nilable(String),
|
|
66
|
+
betas:
|
|
67
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
68
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
69
|
+
).returns(Anthropic::Beta::Organization::BetaExternalStorage)
|
|
70
|
+
end
|
|
71
|
+
def update(
|
|
72
|
+
# Path param: The External Storage ID, which starts with `estrg_`. Through Claude
|
|
73
|
+
# Platform on AWS, storage whose `provider_config.type` is `aws` has its bucket
|
|
74
|
+
# ARN as its ID instead: `arn:<partition>:s3:::<bucket_name>`, where `<partition>`
|
|
75
|
+
# is the partition of the bucket's region.
|
|
76
|
+
external_storage_id,
|
|
77
|
+
# Body param: Human-friendly display name; null clears it.
|
|
78
|
+
display_name:,
|
|
79
|
+
# Header param: This endpoint is in beta: requests must send `efs-2026-10-01` in
|
|
80
|
+
# this header.
|
|
81
|
+
betas: nil,
|
|
82
|
+
request_options: {}
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# List the organization's External Storage, newest first.
|
|
87
|
+
sig do
|
|
88
|
+
params(
|
|
89
|
+
limit: Integer,
|
|
90
|
+
page: T.nilable(String),
|
|
91
|
+
user_profile_ids: T.nilable(T::Array[String]),
|
|
92
|
+
betas:
|
|
93
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
94
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
95
|
+
).returns(
|
|
96
|
+
Anthropic::Internal::PageCursor[
|
|
97
|
+
Anthropic::Beta::Organization::BetaExternalStorage
|
|
98
|
+
]
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
def list(
|
|
102
|
+
# Query param: Number of results per page.
|
|
103
|
+
limit: nil,
|
|
104
|
+
# Query param: Opaque cursor from a previous response's `next_page`.
|
|
105
|
+
page: nil,
|
|
106
|
+
# Query param: Returns only External Storage bound to one of these user profile
|
|
107
|
+
# IDs (`uprof_...`). An empty entry matches storage bound to no user profile. At
|
|
108
|
+
# most 10 entries, counting repeats.
|
|
109
|
+
user_profile_ids: nil,
|
|
110
|
+
# Header param: This endpoint is in beta: requests must send `efs-2026-10-01` in
|
|
111
|
+
# this header.
|
|
112
|
+
betas: nil,
|
|
113
|
+
request_options: {}
|
|
114
|
+
)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Delete External Storage. Storage that is pending configuration, available, or
|
|
118
|
+
# active but never attached is deleted at once, unless an Enterprise Frontier
|
|
119
|
+
# Safeguards workspace policy lists it. Other storage gets a 400 that says what to
|
|
120
|
+
# do next. On `draining` storage that 400 can mean this delete started a removal
|
|
121
|
+
# that can't be undone. To check, get the storage: if `status.removal_started` is
|
|
122
|
+
# true, delete it again later to finish.
|
|
123
|
+
sig do
|
|
124
|
+
params(
|
|
125
|
+
external_storage_id: String,
|
|
126
|
+
betas:
|
|
127
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
128
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
129
|
+
).returns(Anthropic::Beta::Organization::BetaDeletedExternalStorage)
|
|
130
|
+
end
|
|
131
|
+
def delete(
|
|
132
|
+
# The External Storage ID, which starts with `estrg_`. Through Claude Platform on
|
|
133
|
+
# AWS, storage whose `provider_config.type` is `aws` has its bucket ARN as its ID
|
|
134
|
+
# instead: `arn:<partition>:s3:::<bucket_name>`, where `<partition>` is the
|
|
135
|
+
# partition of the bucket's region.
|
|
136
|
+
external_storage_id,
|
|
137
|
+
# This endpoint is in beta: requests must send `efs-2026-10-01` in this header.
|
|
138
|
+
betas: nil,
|
|
139
|
+
request_options: {}
|
|
140
|
+
)
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Verify pending External Storage and make it available. Storage that is already
|
|
144
|
+
# available, active or draining comes back unchanged, without any check.
|
|
145
|
+
sig do
|
|
146
|
+
params(
|
|
147
|
+
external_storage_id: String,
|
|
148
|
+
betas:
|
|
149
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
150
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
151
|
+
).returns(Anthropic::Beta::Organization::BetaExternalStorage)
|
|
152
|
+
end
|
|
153
|
+
def activate(
|
|
154
|
+
# The External Storage ID, which starts with `estrg_`. Through Claude Platform on
|
|
155
|
+
# AWS, storage whose `provider_config.type` is `aws` has its bucket ARN as its ID
|
|
156
|
+
# instead: `arn:<partition>:s3:::<bucket_name>`, where `<partition>` is the
|
|
157
|
+
# partition of the bucket's region.
|
|
158
|
+
external_storage_id,
|
|
159
|
+
# This endpoint is in beta: requests must send `efs-2026-10-01` in this header.
|
|
160
|
+
betas: nil,
|
|
161
|
+
request_options: {}
|
|
162
|
+
)
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# @api private
|
|
166
|
+
sig { params(client: Anthropic::Client).returns(T.attached_class) }
|
|
167
|
+
def self.new(client:)
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
end
|
|
@@ -10,10 +10,9 @@ module Anthropic
|
|
|
10
10
|
# of the organization, to an RBAC Group, or to one member — most recently granted
|
|
11
11
|
# first.
|
|
12
12
|
#
|
|
13
|
-
# Shares are read-only in this API: members give and withdraw them in claude.ai
|
|
14
|
-
#
|
|
15
|
-
#
|
|
16
|
-
# this path returns 404 for one.
|
|
13
|
+
# Shares are read-only in this API: members give and withdraw them in claude.ai.
|
|
14
|
+
# The Plugin's `owner` gave each share listed. An organization-owned Plugin has
|
|
15
|
+
# installation settings instead of shares, so this path returns 404 for one.
|
|
17
16
|
#
|
|
18
17
|
# **Accepted credentials:** an Admin API key with the `read:plugins` or
|
|
19
18
|
# `read:org_audit` scope, or a Compliance Access Key with the
|
|
@@ -168,9 +168,9 @@ module Anthropic
|
|
|
168
168
|
)
|
|
169
169
|
end
|
|
170
170
|
|
|
171
|
-
# Download one version's `.zip` archive, exactly as stored.
|
|
172
|
-
#
|
|
173
|
-
#
|
|
171
|
+
# Download one version's `.zip` archive, exactly as stored. Downloads of Plugins
|
|
172
|
+
# from members' personal plugin marketplaces can be recorded on the Compliance API
|
|
173
|
+
# activity feed.
|
|
174
174
|
#
|
|
175
175
|
# The response body is the archive (`Content-Type: application/zip`), sent as an
|
|
176
176
|
# attachment whose filename is derived from the Plugin's name; name saved files
|
|
@@ -186,9 +186,12 @@ module Anthropic
|
|
|
186
186
|
# show, and a `read:org_audit` or `read:compliance_org_data` key created for all
|
|
187
187
|
# of your parent organization's linked organizations can do this in any
|
|
188
188
|
# organization under it that has access to this API, by passing `organization_id`.
|
|
189
|
-
#
|
|
190
|
-
#
|
|
191
|
-
# the member.
|
|
189
|
+
# The Compliance API activity feed can record such a download as a
|
|
190
|
+
# `claude_plugin_archive_accessed` event, which identifies the key, the plugin,
|
|
191
|
+
# the version, and the member. It does so only while activity events are captured
|
|
192
|
+
# for the plugin's organization, and a record is not guaranteed even then. The
|
|
193
|
+
# files are served whether or not the download is recorded. Downloads of
|
|
194
|
+
# organization-owned plugins are not recorded.
|
|
192
195
|
#
|
|
193
196
|
# Every request must include the beta header
|
|
194
197
|
# `anthropic-beta: ce-plugins-2026-09-01`. A request without it returns `404`,
|
|
@@ -197,8 +197,8 @@ module Anthropic
|
|
|
197
197
|
#
|
|
198
198
|
# Plugins in members' personal marketplaces are listed with the same detail as the
|
|
199
199
|
# organization's own, and their files can be downloaded through the version
|
|
200
|
-
# archive endpoint
|
|
201
|
-
#
|
|
200
|
+
# archive endpoint. Those downloads can be recorded on the Compliance API activity
|
|
201
|
+
# feed; the version archive endpoint says when.
|
|
202
202
|
#
|
|
203
203
|
# **Accepted credentials:** an Admin API key with the `read:plugins` or
|
|
204
204
|
# `read:org_audit` scope, or a Compliance Access Key with the
|