anthropic 2.12.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/README.md +1 -1
- data/lib/anthropic/client.rb +3 -0
- data/lib/anthropic/error_classes.rb +25 -0
- data/lib/anthropic/internal/tracing.rb +6 -0
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/beta_approval_required_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_approval_required_error_details.rb +30 -0
- data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rb +22 -0
- data/lib/anthropic/models/beta/beta_human_review_not_available_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_human_review_not_available_error_details.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +6 -0
- data/lib/anthropic/models/beta/beta_organization_not_eligible_error.rb +23 -0
- data/lib/anthropic/models/beta/beta_organization_not_eligible_error_details.rb +23 -0
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +13 -2
- data/lib/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rb +39 -0
- data/lib/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rb +39 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +7 -7
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +7 -7
- data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +11 -13
- data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +11 -13
- data/lib/anthropic/models/beta/organization/beta_access_transparency.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_active_external_storage_status.rb +42 -0
- data/lib/anthropic/models/beta/organization/beta_anthropic_human_review.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_anthropic_human_review_param.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_available_external_storage_status.rb +43 -0
- data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config.rb +45 -0
- data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rb +51 -0
- data/lib/anthropic/models/beta/organization/beta_compliance_settings.rb +18 -1
- data/lib/anthropic/models/beta/organization/beta_deleted_external_storage.rb +35 -0
- data/lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb +52 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage.rb +217 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_failed_check.rb +119 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_member.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_member_param.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config.rb +45 -0
- data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_grant_required_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_grant_required_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy.rb +48 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_internal_storage.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_internal_storage_param.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +2 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +2 -0
- data/lib/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rb +31 -0
- data/lib/anthropic/models/beta/organization/beta_storage_member.rb +59 -0
- data/lib/anthropic/models/beta/organization/beta_storage_member_param.rb +60 -0
- data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rb +30 -0
- data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rb +44 -0
- data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_unsupported_region_error.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_unsupported_region_error_details.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_workspace.rb +12 -1
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rb +37 -0
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rb +18 -0
- data/lib/anthropic/models/beta/organization/compliance_setting_retrieve_params.rb +14 -1
- data/lib/anthropic/models/beta/organization/compliance_setting_update_params.rb +10 -1
- data/lib/anthropic/models/beta/organization/external_storage_activate_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_create_params.rb +113 -0
- data/lib/anthropic/models/beta/organization/external_storage_delete_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_list_params.rb +56 -0
- data/lib/anthropic/models/beta/organization/external_storage_retrieve_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_update_params.rb +49 -0
- data/lib/anthropic/models/beta/organization/plugins/beta_plugin_share.rb +2 -2
- data/lib/anthropic/models/beta/organization/webhook_create_params.rb +2 -0
- data/lib/anthropic/models/beta/organization/webhook_update_params.rb +2 -0
- data/lib/anthropic/models/beta/organization/workspace_archive_params.rb +15 -1
- data/lib/anthropic/models/beta/organization/workspace_create_params.rb +16 -1
- data/lib/anthropic/models/beta/organization/workspace_list_params.rb +10 -1
- data/lib/anthropic/models/beta/organization/workspace_retrieve_params.rb +14 -1
- data/lib/anthropic/models/beta/organization/workspace_update_params.rb +25 -1
- data/lib/anthropic/models/change_outcome_unknown_error.rb +20 -0
- data/lib/anthropic/models/change_outcome_unknown_error_details.rb +18 -0
- data/lib/anthropic/models/error_details.rb +172 -3
- data/lib/anthropic/models/model.rb +6 -0
- data/lib/anthropic/models/organization/storage_attached_during_archive_error.rb +23 -0
- data/lib/anthropic/models/organization/storage_attached_during_archive_error_details.rb +21 -0
- data/lib/anthropic/models/organization/storage_profile_mismatch_error.rb +22 -0
- data/lib/anthropic/models/organization/storage_profile_mismatch_error_details.rb +28 -0
- data/lib/anthropic/models/organization/workspace_created_incomplete_error.rb +23 -0
- data/lib/anthropic/models/organization/workspace_created_incomplete_error_details.rb +29 -0
- data/lib/anthropic/models/organization/workspace_policy_violation_error_details.rb +2 -2
- data/lib/anthropic/models/workspace_human_review_disabled_error.rb +20 -0
- data/lib/anthropic/models/workspace_human_review_disabled_error_details.rb +18 -0
- data/lib/anthropic/models.rb +8 -0
- data/lib/anthropic/resources/beta/messages/batches.rb +1 -0
- data/lib/anthropic/resources/beta/organization/analytics/cost.rb +6 -0
- data/lib/anthropic/resources/beta/organization/analytics/usage.rb +6 -1
- data/lib/anthropic/resources/beta/organization/compliance_settings.rb +17 -5
- data/lib/anthropic/resources/beta/organization/external_storage.rb +263 -0
- data/lib/anthropic/resources/beta/organization/plugins/shares.rb +3 -4
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +9 -6
- data/lib/anthropic/resources/beta/organization/plugins.rb +2 -2
- data/lib/anthropic/resources/beta/organization/workspaces.rb +82 -22
- data/lib/anthropic/resources/beta/organization.rb +4 -0
- data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +5 -1
- data/lib/anthropic/resources/beta/user_profiles.rb +36 -6
- data/lib/anthropic/resources/beta.rb +3 -0
- data/lib/anthropic/resources/messages/batches.rb +1 -0
- data/lib/anthropic/resources/organization/workspaces.rb +4 -0
- data/lib/anthropic/resources/user_profiles/action_urls.rb +5 -1
- data/lib/anthropic/resources/user_profiles.rb +30 -5
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +83 -0
- data/rbi/anthropic/client.rbi +3 -0
- data/rbi/anthropic/internal/tracing.rbi +12 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_approval_required_error.rbi +19 -0
- data/rbi/anthropic/models/beta/beta_approval_required_error_details.rbi +42 -0
- data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error.rbi +23 -0
- data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_human_review_not_available_error.rbi +21 -0
- data/rbi/anthropic/models/beta/beta_human_review_not_available_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_organization_not_eligible_error.rbi +22 -0
- data/rbi/anthropic/models/beta/beta_organization_not_eligible_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +13 -1
- data/rbi/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rbi +53 -0
- data/rbi/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbi +53 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +12 -12
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +12 -12
- data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +22 -26
- data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +22 -26
- data/rbi/anthropic/models/beta/organization/beta_access_transparency.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_active_external_storage_status.rbi +57 -0
- data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_available_external_storage_status.rbi +58 -0
- data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config.rbi +67 -0
- data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbi +71 -0
- data/rbi/anthropic/models/beta/organization/beta_compliance_settings.rbi +33 -1
- data/rbi/anthropic/models/beta/organization/beta_deleted_external_storage.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_draining_external_storage_status.rbi +72 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage.rbi +307 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_failed_check.rbi +359 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_member.rbi +51 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_member_param.rbi +51 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbi +67 -0
- data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/beta_grant_required_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_grant_required_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbi +28 -0
- data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbi +35 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy.rbi +134 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbi +153 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbi +153 -0
- data/rbi/anthropic/models/beta/organization/beta_internal_storage.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_internal_storage_param.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbi +43 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_member.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_member_param.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbi +42 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbi +74 -0
- data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbi +28 -0
- data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbi +35 -0
- data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error.rbi +24 -0
- data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace.rbi +29 -1
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbi +62 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbi +35 -4
- data/rbi/anthropic/models/beta/organization/compliance_setting_update_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/external_storage_activate_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_create_params.rbi +192 -0
- data/rbi/anthropic/models/beta/organization/external_storage_delete_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_list_params.rbi +96 -0
- data/rbi/anthropic/models/beta/organization/external_storage_retrieve_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_update_params.rbi +87 -0
- data/rbi/anthropic/models/beta/organization/plugins/beta_plugin_share.rbi +2 -2
- data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/workspace_archive_params.rbi +29 -1
- data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +40 -0
- data/rbi/anthropic/models/beta/organization/workspace_list_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/workspace_retrieve_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +65 -0
- data/rbi/anthropic/models/change_outcome_unknown_error.rbi +17 -0
- data/rbi/anthropic/models/change_outcome_unknown_error_details.rbi +28 -0
- data/rbi/anthropic/models/error_details.rbi +167 -2
- data/rbi/anthropic/models/organization/storage_attached_during_archive_error.rbi +24 -0
- data/rbi/anthropic/models/organization/storage_attached_during_archive_error_details.rbi +31 -0
- data/rbi/anthropic/models/organization/storage_profile_mismatch_error.rbi +21 -0
- data/rbi/anthropic/models/organization/storage_profile_mismatch_error_details.rbi +40 -0
- data/rbi/anthropic/models/organization/workspace_created_incomplete_error.rbi +24 -0
- data/rbi/anthropic/models/organization/workspace_created_incomplete_error_details.rbi +43 -0
- data/rbi/anthropic/models/organization/workspace_policy_violation_error_details.rbi +2 -2
- data/rbi/anthropic/models/workspace_human_review_disabled_error.rbi +17 -0
- data/rbi/anthropic/models/workspace_human_review_disabled_error_details.rbi +28 -0
- data/rbi/anthropic/models.rbi +11 -0
- data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +17 -14
- data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +17 -15
- data/rbi/anthropic/resources/beta/organization/compliance_settings.rbi +20 -6
- data/rbi/anthropic/resources/beta/organization/external_storage.rbi +173 -0
- data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +3 -4
- data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +9 -6
- data/rbi/anthropic/resources/beta/organization/plugins.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +84 -33
- data/rbi/anthropic/resources/beta/organization.rbi +5 -0
- data/rbi/anthropic/resources/beta/user_profiles/action_urls.rbi +5 -1
- data/rbi/anthropic/resources/beta/user_profiles.rbi +36 -6
- data/rbi/anthropic/resources/beta.rbi +3 -0
- data/rbi/anthropic/resources/user_profiles/action_urls.rbi +5 -1
- data/rbi/anthropic/resources/user_profiles.rbi +30 -5
- data/sig/anthropic/internal/tracing.rbs +6 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_approval_required_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_approval_required_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_human_review_not_available_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_human_review_not_available_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_organization_not_eligible_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_organization_not_eligible_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +16 -0
- data/sig/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/organization/beta_access_transparency.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_active_external_storage_status.rbs +30 -0
- data/sig/anthropic/models/beta/organization/beta_anthropic_human_review.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_available_external_storage_status.rbs +30 -0
- data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_compliance_settings.rbs +11 -2
- data/sig/anthropic/models/beta/organization/beta_deleted_external_storage.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_draining_external_storage_status.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage.rbs +161 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_failed_check.rbs +138 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_member.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_member_param.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_grant_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_grant_required_error_details.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_internal_storage.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_internal_storage_param.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +4 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +4 -0
- data/sig/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbs +26 -0
- data/sig/anthropic/models/beta/organization/beta_storage_member.rbs +42 -0
- data/sig/anthropic/models/beta/organization/beta_storage_member_param.rbs +42 -0
- data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbs +34 -0
- data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_unsupported_region_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_workspace.rbs +11 -2
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbs +29 -0
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbs +18 -0
- data/sig/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbs +16 -3
- data/sig/anthropic/models/beta/organization/compliance_setting_update_params.rbs +10 -1
- data/sig/anthropic/models/beta/organization/external_storage_activate_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_create_params.rbs +92 -0
- data/sig/anthropic/models/beta/organization/external_storage_delete_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_list_params.rbs +51 -0
- data/sig/anthropic/models/beta/organization/external_storage_retrieve_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_update_params.rbs +44 -0
- data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +4 -0
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +4 -0
- data/sig/anthropic/models/beta/organization/workspace_archive_params.rbs +12 -1
- data/sig/anthropic/models/beta/organization/workspace_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/workspace_list_params.rbs +10 -1
- data/sig/anthropic/models/beta/organization/workspace_retrieve_params.rbs +12 -1
- data/sig/anthropic/models/beta/organization/workspace_update_params.rbs +15 -1
- data/sig/anthropic/models/change_outcome_unknown_error.rbs +9 -0
- data/sig/anthropic/models/change_outcome_unknown_error_details.rbs +14 -0
- data/sig/anthropic/models/error_details.rbs +177 -1
- data/sig/anthropic/models/organization/storage_attached_during_archive_error.rbs +11 -0
- data/sig/anthropic/models/organization/storage_attached_during_archive_error_details.rbs +16 -0
- data/sig/anthropic/models/organization/storage_profile_mismatch_error.rbs +11 -0
- data/sig/anthropic/models/organization/storage_profile_mismatch_error_details.rbs +21 -0
- data/sig/anthropic/models/organization/workspace_created_incomplete_error.rbs +11 -0
- data/sig/anthropic/models/organization/workspace_created_incomplete_error_details.rbs +24 -0
- data/sig/anthropic/models/workspace_human_review_disabled_error.rbs +9 -0
- data/sig/anthropic/models/workspace_human_review_disabled_error_details.rbs +14 -0
- data/sig/anthropic/models.rbs +8 -0
- data/sig/anthropic/resources/beta/organization/compliance_settings.rbs +2 -0
- data/sig/anthropic/resources/beta/organization/external_storage.rbs +52 -0
- data/sig/anthropic/resources/beta/organization/workspaces.rbs +6 -0
- data/sig/anthropic/resources/beta/organization.rbs +2 -0
- metadata +251 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class StorageAttachedDuringArchiveErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Anthropic::Organization::StorageAttachedDuringArchiveErrorDetails,
|
|
11
|
+
Anthropic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :error_code
|
|
17
|
+
|
|
18
|
+
# The Workspace was archived, but External Storage was attached to it during the
|
|
19
|
+
# archive and is still attached. To detach it, archive the Workspace again as a
|
|
20
|
+
# caller with the `org:external-storage:use` permission.
|
|
21
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
22
|
+
def self.new(error_code: :storage_attached_during_archive)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
# The Workspace's storage and its user profile don't match: the Workspace and its
|
|
7
|
+
# storage must have the same user profile, or both have none.
|
|
8
|
+
class StorageProfileMismatchError < Anthropic::Errors::BadRequestError
|
|
9
|
+
sig { returns(Symbol) }
|
|
10
|
+
def error_code
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
sig do
|
|
14
|
+
returns(Anthropic::Organization::StorageProfileMismatchErrorDetails)
|
|
15
|
+
end
|
|
16
|
+
def details
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class StorageProfileMismatchErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Anthropic::Organization::StorageProfileMismatchErrorDetails,
|
|
11
|
+
Anthropic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :error_code
|
|
17
|
+
|
|
18
|
+
# The storage setting that doesn't match the Workspace's user profile.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :field
|
|
21
|
+
|
|
22
|
+
# The Workspace's storage and its user profile don't match: the Workspace and its
|
|
23
|
+
# storage must have the same user profile, or both have none.
|
|
24
|
+
sig do
|
|
25
|
+
params(field: String, error_code: Symbol).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(
|
|
28
|
+
# The storage setting that doesn't match the Workspace's user profile.
|
|
29
|
+
field:,
|
|
30
|
+
error_code: :storage_profile_mismatch
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
sig { override.returns({ error_code: Symbol, field: String }) }
|
|
35
|
+
def to_hash
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
# The Workspace was created, but some of what the request asked for did not take
|
|
7
|
+
# effect, or may not have. Don't send the create again. The error's `message` says
|
|
8
|
+
# what to do with the Workspace at `workspace_id`.
|
|
9
|
+
class WorkspaceCreatedIncompleteError < Anthropic::Errors::ServiceUnavailableError
|
|
10
|
+
sig { returns(Symbol) }
|
|
11
|
+
def error_code
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
returns(
|
|
16
|
+
Anthropic::Organization::WorkspaceCreatedIncompleteErrorDetails
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def details
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class WorkspaceCreatedIncompleteErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Anthropic::Organization::WorkspaceCreatedIncompleteErrorDetails,
|
|
11
|
+
Anthropic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :error_code
|
|
17
|
+
|
|
18
|
+
# ID of the Workspace the request created.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :workspace_id
|
|
21
|
+
|
|
22
|
+
# The Workspace was created, but some of what the request asked for did not take
|
|
23
|
+
# effect, or may not have. Don't send the create again. The error's `message` says
|
|
24
|
+
# what to do with the Workspace at `workspace_id`.
|
|
25
|
+
sig do
|
|
26
|
+
params(workspace_id: String, error_code: Symbol).returns(
|
|
27
|
+
T.attached_class
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
def self.new(
|
|
31
|
+
# ID of the Workspace the request created.
|
|
32
|
+
workspace_id:,
|
|
33
|
+
error_code: :workspace_created_incomplete
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
sig { override.returns({ error_code: Symbol, workspace_id: String }) }
|
|
38
|
+
def to_hash
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -15,7 +15,7 @@ module Anthropic
|
|
|
15
15
|
sig { returns(Symbol) }
|
|
16
16
|
attr_accessor :error_code
|
|
17
17
|
|
|
18
|
-
# The request field the broken rule applies to.
|
|
18
|
+
# The request field the broken rule applies to. Other values may be returned.
|
|
19
19
|
sig do
|
|
20
20
|
returns(Anthropic::Organization::WorkspacePolicyField::TaggedSymbol)
|
|
21
21
|
end
|
|
@@ -31,7 +31,7 @@ module Anthropic
|
|
|
31
31
|
).returns(T.attached_class)
|
|
32
32
|
end
|
|
33
33
|
def self.new(
|
|
34
|
-
# The request field the broken rule applies to.
|
|
34
|
+
# The request field the broken rule applies to. Other values may be returned.
|
|
35
35
|
field:,
|
|
36
36
|
error_code: :workspace_policy_violation
|
|
37
37
|
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The request's Workspace has Human Review turned off, and this operation is not
|
|
6
|
+
# available there. Use a Workspace with Human Review on.
|
|
7
|
+
class WorkspaceHumanReviewDisabledError < Anthropic::Errors::BadRequestError
|
|
8
|
+
sig { returns(Symbol) }
|
|
9
|
+
def error_code
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig { returns(Anthropic::WorkspaceHumanReviewDisabledErrorDetails) }
|
|
13
|
+
def details
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class WorkspaceHumanReviewDisabledErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::WorkspaceHumanReviewDisabledErrorDetails,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(Symbol) }
|
|
15
|
+
attr_accessor :error_code
|
|
16
|
+
|
|
17
|
+
# The request's Workspace has Human Review turned off, and this operation is not
|
|
18
|
+
# available there. Use a Workspace with Human Review on.
|
|
19
|
+
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
20
|
+
def self.new(error_code: :workspace_human_review_disabled)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
sig { override.returns({ error_code: Symbol }) }
|
|
24
|
+
def to_hash
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
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
|
|
@@ -1293,4 +1298,10 @@ module Anthropic
|
|
|
1293
1298
|
|
|
1294
1299
|
WebSearchToolResultErrorObject =
|
|
1295
1300
|
Anthropic::Models::WebSearchToolResultErrorObject
|
|
1301
|
+
|
|
1302
|
+
WorkspaceHumanReviewDisabledError =
|
|
1303
|
+
Anthropic::Models::WorkspaceHumanReviewDisabledError
|
|
1304
|
+
|
|
1305
|
+
WorkspaceHumanReviewDisabledErrorDetails =
|
|
1306
|
+
Anthropic::Models::WorkspaceHumanReviewDisabledErrorDetails
|
|
1296
1307
|
end
|
|
@@ -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
|