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
|
@@ -36,6 +36,10 @@ module Anthropic
|
|
|
36
36
|
),
|
|
37
37
|
display_color: T.nilable(String),
|
|
38
38
|
external_key_id: T.nilable(String),
|
|
39
|
+
inference_data_privacy:
|
|
40
|
+
T.nilable(
|
|
41
|
+
Anthropic::Beta::Organization::BetaInferenceDataPrivacyCreateParam::OrHash
|
|
42
|
+
),
|
|
39
43
|
tags: T.nilable(T::Hash[Symbol, String]),
|
|
40
44
|
user_profile_id: T.nilable(String),
|
|
41
45
|
betas:
|
|
@@ -66,6 +70,13 @@ module Anthropic
|
|
|
66
70
|
# material, rotate the underlying key on your cloud KMS; the `external_key_id`
|
|
67
71
|
# stays the same.
|
|
68
72
|
external_key_id: nil,
|
|
73
|
+
# Body param: Where the Workspace's retained inference data and transcript copies
|
|
74
|
+
# go, and whether Anthropic's human review applies. Requires the `efs-2026-10-01`
|
|
75
|
+
# `anthropic-beta` value. When omitted, `safeguards_storage` and
|
|
76
|
+
# `transcripts_storage` are `internal` and `human_review` is `enabled`. Cannot be
|
|
77
|
+
# null. An Admin API key can't set this field, because it doesn't belong to a user
|
|
78
|
+
# or a service account. Use an API key that belongs to one, or an OAuth token.
|
|
79
|
+
inference_data_privacy: nil,
|
|
69
80
|
# Body param: User-defined tags as string key-value pairs. Keys may not begin with
|
|
70
81
|
# `anthropic`.
|
|
71
82
|
tags: nil,
|
|
@@ -84,12 +95,17 @@ module Anthropic
|
|
|
84
95
|
sig do
|
|
85
96
|
params(
|
|
86
97
|
workspace_id: String,
|
|
98
|
+
betas:
|
|
99
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
87
100
|
request_options: Anthropic::RequestOptions::OrHash
|
|
88
101
|
).returns(Anthropic::Beta::Organization::BetaWorkspace)
|
|
89
102
|
end
|
|
90
103
|
def retrieve(
|
|
91
104
|
# ID of the Workspace.
|
|
92
105
|
workspace_id,
|
|
106
|
+
# Optional. Send `efs-2026-10-01` in this header to use this endpoint's beta
|
|
107
|
+
# features: additional parameters, accepted values and response fields.
|
|
108
|
+
betas: nil,
|
|
93
109
|
request_options: {}
|
|
94
110
|
)
|
|
95
111
|
end
|
|
@@ -104,43 +120,62 @@ module Anthropic
|
|
|
104
120
|
),
|
|
105
121
|
display_color: String,
|
|
106
122
|
external_key_id: String,
|
|
123
|
+
inference_data_privacy:
|
|
124
|
+
T.nilable(
|
|
125
|
+
Anthropic::Beta::Organization::BetaInferenceDataPrivacyUpdateParam::OrHash
|
|
126
|
+
),
|
|
107
127
|
name: String,
|
|
108
128
|
tags: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
109
129
|
user_profile_id: String,
|
|
130
|
+
betas:
|
|
131
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
110
132
|
request_options: Anthropic::RequestOptions::OrHash
|
|
111
133
|
).returns(Anthropic::Beta::Organization::BetaWorkspace)
|
|
112
134
|
end
|
|
113
135
|
def update(
|
|
136
|
+
# Path param
|
|
114
137
|
workspace_id,
|
|
115
|
-
# Data residency configuration for the workspace.
|
|
138
|
+
# Body param: Data residency configuration for the workspace.
|
|
116
139
|
data_residency: nil,
|
|
117
|
-
# Hex color code representing the Workspace in the Anthropic Console.
|
|
140
|
+
# Body param: Hex color code representing the Workspace in the Anthropic Console.
|
|
118
141
|
display_color: nil,
|
|
119
|
-
# ID of the customer-managed encryption key (CMEK) configuration to
|
|
120
|
-
# Workspace. Setting this field requires CMEK to be enabled for your
|
|
121
|
-
# When set, data stored for this Workspace is encrypted with the
|
|
122
|
-
# Create key configurations with the External Keys API. On Claude
|
|
123
|
-
# the value for an AWS KMS key is the key's ARN, and your
|
|
124
|
-
# must be a single-Region key in the same Region as the
|
|
125
|
-
# outside the Workspace's AWS account, it can be
|
|
126
|
-
# active Workspace. On that platform the key is
|
|
127
|
-
# when it is attached, so a key-policy problem is
|
|
128
|
-
# request. This field is write-once: once a key is
|
|
129
|
-
# cannot be detached or replaced. To rotate key
|
|
130
|
-
# key on your cloud KMS; the `external_key_id`
|
|
142
|
+
# Body param: ID of the customer-managed encryption key (CMEK) configuration to
|
|
143
|
+
# use for this Workspace. Setting this field requires CMEK to be enabled for your
|
|
144
|
+
# organization. When set, data stored for this Workspace is encrypted with the
|
|
145
|
+
# referenced key. Create key configurations with the External Keys API. On Claude
|
|
146
|
+
# Platform on AWS the value for an AWS KMS key is the key's ARN, and your
|
|
147
|
+
# organization's own key must be a single-Region key in the same Region as the
|
|
148
|
+
# Workspace. If that key is outside the Workspace's AWS account, it can be
|
|
149
|
+
# attached only by updating an active Workspace. On that platform the key is
|
|
150
|
+
# validated against this Workspace when it is attached, so a key-policy problem is
|
|
151
|
+
# reported as an error on this request. This field is write-once: once a key is
|
|
152
|
+
# attached to a Workspace it cannot be detached or replaced. To rotate key
|
|
153
|
+
# material, rotate the underlying key on your cloud KMS; the `external_key_id`
|
|
154
|
+
# stays the same.
|
|
131
155
|
external_key_id: nil,
|
|
132
|
-
#
|
|
156
|
+
# Body param: Changes to where the Workspace's retained inference data and
|
|
157
|
+
# transcript copies go, and to whether Anthropic's human review applies. Requires
|
|
158
|
+
# the `efs-2026-10-01` `anthropic-beta` value. An omitted member is unchanged.
|
|
159
|
+
# Cannot be null. An Admin API key can't set this field, because it doesn't belong
|
|
160
|
+
# to a user or a service account. Use an API key that belongs to one, or an OAuth
|
|
161
|
+
# token.
|
|
162
|
+
inference_data_privacy: nil,
|
|
163
|
+
# Body param: Name of the Workspace.
|
|
133
164
|
name: nil,
|
|
134
|
-
# User-defined tags as string key-value pairs. Keys may not begin with
|
|
165
|
+
# Body param: User-defined tags as string key-value pairs. Keys may not begin with
|
|
135
166
|
# `anthropic`.
|
|
136
167
|
tags: nil,
|
|
137
|
-
# ID of a user profile to attach to the Workspace. Every inference
|
|
138
|
-
# the Workspace must then name this user profile; the API rejects
|
|
139
|
-
# names none or a different one. Once set, it can't be replaced or
|
|
140
|
-
# (sending the same ID again changes nothing); only deleting the user
|
|
141
|
-
# clears it. It can't be set on a Workspace whose External Key isn't bound
|
|
142
|
-
# user profile. The default Workspace can't have a user profile.
|
|
168
|
+
# Body param: ID of a user profile to attach to the Workspace. Every inference
|
|
169
|
+
# request through the Workspace must then name this user profile; the API rejects
|
|
170
|
+
# a request that names none or a different one. Once set, it can't be replaced or
|
|
171
|
+
# removed (sending the same ID again changes nothing); only deleting the user
|
|
172
|
+
# profile clears it. It can't be set on a Workspace whose External Key isn't bound
|
|
173
|
+
# to this user profile. The default Workspace can't have a user profile.
|
|
143
174
|
user_profile_id: nil,
|
|
175
|
+
# Header param: Optional. Send `efs-2026-10-01` in this header to use this
|
|
176
|
+
# endpoint's beta features: additional parameters, accepted values and response
|
|
177
|
+
# fields.
|
|
178
|
+
betas: nil,
|
|
144
179
|
request_options: {}
|
|
145
180
|
)
|
|
146
181
|
end
|
|
@@ -154,6 +189,8 @@ module Anthropic
|
|
|
154
189
|
include_archived: T::Boolean,
|
|
155
190
|
include_default: T::Boolean,
|
|
156
191
|
limit: Integer,
|
|
192
|
+
betas:
|
|
193
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
157
194
|
request_options: Anthropic::RequestOptions::OrHash
|
|
158
195
|
).returns(
|
|
159
196
|
Anthropic::Internal::Page[
|
|
@@ -162,24 +199,30 @@ module Anthropic
|
|
|
162
199
|
)
|
|
163
200
|
end
|
|
164
201
|
def list(
|
|
165
|
-
# ID of the object to use as a cursor for pagination. When provided,
|
|
166
|
-
# page of results immediately after this object.
|
|
202
|
+
# Query param: ID of the object to use as a cursor for pagination. When provided,
|
|
203
|
+
# returns the page of results immediately after this object.
|
|
167
204
|
after_id: nil,
|
|
168
|
-
# ID of the object to use as a cursor for pagination. When provided,
|
|
169
|
-
# page of results immediately before this object.
|
|
205
|
+
# Query param: ID of the object to use as a cursor for pagination. When provided,
|
|
206
|
+
# returns the page of results immediately before this object.
|
|
170
207
|
before_id: nil,
|
|
171
|
-
# Only the Workspaces with these IDs, at most 100. `include_archived`
|
|
172
|
-
# `include_default` still apply, and IDs of Workspaces the caller can't list
|
|
173
|
-
# left out.
|
|
208
|
+
# Query param: Only the Workspaces with these IDs, at most 100. `include_archived`
|
|
209
|
+
# and `include_default` still apply, and IDs of Workspaces the caller can't list
|
|
210
|
+
# are left out.
|
|
174
211
|
ids: nil,
|
|
175
|
-
# Whether to include Workspaces that have been archived in the
|
|
212
|
+
# Query param: Whether to include Workspaces that have been archived in the
|
|
213
|
+
# response
|
|
176
214
|
include_archived: nil,
|
|
177
|
-
# Whether to include the organization's default Workspace in the
|
|
215
|
+
# Query param: Whether to include the organization's default Workspace in the
|
|
216
|
+
# response
|
|
178
217
|
include_default: nil,
|
|
179
|
-
# Number of items to return per page.
|
|
218
|
+
# Query param: Number of items to return per page.
|
|
180
219
|
#
|
|
181
220
|
# Defaults to `20`. Ranges from `1` to `1000`.
|
|
182
221
|
limit: nil,
|
|
222
|
+
# Header param: Optional. Send `efs-2026-10-01` in this header to use this
|
|
223
|
+
# endpoint's beta features: additional parameters, accepted values and response
|
|
224
|
+
# fields.
|
|
225
|
+
betas: nil,
|
|
183
226
|
request_options: {}
|
|
184
227
|
)
|
|
185
228
|
end
|
|
@@ -188,10 +231,18 @@ module Anthropic
|
|
|
188
231
|
sig do
|
|
189
232
|
params(
|
|
190
233
|
workspace_id: String,
|
|
234
|
+
betas:
|
|
235
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
191
236
|
request_options: Anthropic::RequestOptions::OrHash
|
|
192
237
|
).returns(Anthropic::Beta::Organization::BetaWorkspace)
|
|
193
238
|
end
|
|
194
|
-
def archive(
|
|
239
|
+
def archive(
|
|
240
|
+
workspace_id,
|
|
241
|
+
# Optional. Send `efs-2026-10-01` in this header to use this endpoint's beta
|
|
242
|
+
# features: additional parameters, accepted values and response fields.
|
|
243
|
+
betas: nil,
|
|
244
|
+
request_options: {}
|
|
245
|
+
)
|
|
195
246
|
end
|
|
196
247
|
|
|
197
248
|
# @api private
|
|
@@ -21,6 +21,11 @@ module Anthropic
|
|
|
21
21
|
end
|
|
22
22
|
attr_reader :service_accounts
|
|
23
23
|
|
|
24
|
+
sig do
|
|
25
|
+
returns(Anthropic::Resources::Beta::Organization::ExternalStorage)
|
|
26
|
+
end
|
|
27
|
+
attr_reader :external_storage
|
|
28
|
+
|
|
24
29
|
sig { returns(Anthropic::Resources::Beta::Organization::Users) }
|
|
25
30
|
attr_reader :users
|
|
26
31
|
|
|
@@ -5,7 +5,11 @@ module Anthropic
|
|
|
5
5
|
class Beta
|
|
6
6
|
class UserProfiles
|
|
7
7
|
class ActionURLs
|
|
8
|
-
# Create
|
|
8
|
+
# Create a link that sends the profile's end customer to the Verification Portal.
|
|
9
|
+
#
|
|
10
|
+
# See
|
|
11
|
+
# [Send an end customer a link to the Verification Portal](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal)
|
|
12
|
+
# for when to create the link and what the end customer sees.
|
|
9
13
|
sig do
|
|
10
14
|
params(
|
|
11
15
|
user_profile_id: String,
|
|
@@ -3,11 +3,19 @@
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Resources
|
|
5
5
|
class Beta
|
|
6
|
+
# Register the end customers that your platform serves, so each request can name
|
|
7
|
+
# who it's for. To get started, see the
|
|
8
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles).
|
|
6
9
|
class UserProfiles
|
|
7
10
|
sig { returns(Anthropic::Resources::Beta::UserProfiles::ActionURLs) }
|
|
8
11
|
attr_reader :action_urls
|
|
9
12
|
|
|
10
|
-
#
|
|
13
|
+
# Register one of your end customers and get the ID to send on the requests you
|
|
14
|
+
# make for them.
|
|
15
|
+
#
|
|
16
|
+
# See the
|
|
17
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#create-a-profile-for-each-end-customer)
|
|
18
|
+
# for what to send.
|
|
11
19
|
sig do
|
|
12
20
|
params(
|
|
13
21
|
access_type:
|
|
@@ -69,7 +77,11 @@ module Anthropic
|
|
|
69
77
|
)
|
|
70
78
|
end
|
|
71
79
|
|
|
72
|
-
# Get
|
|
80
|
+
# Get a user profile by ID to check the details stored for it.
|
|
81
|
+
#
|
|
82
|
+
# See the
|
|
83
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles)
|
|
84
|
+
# for how to set up and manage profiles.
|
|
73
85
|
sig do
|
|
74
86
|
params(
|
|
75
87
|
user_profile_id: String,
|
|
@@ -94,7 +106,12 @@ module Anthropic
|
|
|
94
106
|
)
|
|
95
107
|
end
|
|
96
108
|
|
|
97
|
-
#
|
|
109
|
+
# Change the details of a user profile, leaving the fields that you don't send as
|
|
110
|
+
# they are.
|
|
111
|
+
#
|
|
112
|
+
# See the
|
|
113
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#update-a-profile)
|
|
114
|
+
# for how each field is updated.
|
|
98
115
|
sig do
|
|
99
116
|
params(
|
|
100
117
|
user_profile_id: String,
|
|
@@ -157,7 +174,11 @@ module Anthropic
|
|
|
157
174
|
)
|
|
158
175
|
end
|
|
159
176
|
|
|
160
|
-
# List
|
|
177
|
+
# List the user profiles in your organization, newest first by default.
|
|
178
|
+
#
|
|
179
|
+
# See the
|
|
180
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles)
|
|
181
|
+
# for how to set up and manage profiles.
|
|
161
182
|
sig do
|
|
162
183
|
params(
|
|
163
184
|
limit: Integer,
|
|
@@ -199,7 +220,11 @@ module Anthropic
|
|
|
199
220
|
)
|
|
200
221
|
end
|
|
201
222
|
|
|
202
|
-
# Delete
|
|
223
|
+
# Delete a user profile, for example when the end customer closes their account.
|
|
224
|
+
#
|
|
225
|
+
# Stop sending the profile's ID first. See the
|
|
226
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#delete-a-profile)
|
|
227
|
+
# for what happens after a delete.
|
|
203
228
|
sig do
|
|
204
229
|
params(
|
|
205
230
|
user_profile_id: String,
|
|
@@ -224,7 +249,12 @@ module Anthropic
|
|
|
224
249
|
)
|
|
225
250
|
end
|
|
226
251
|
|
|
227
|
-
# Create
|
|
252
|
+
# Create a link that sends the profile's end customer to the Verification Portal
|
|
253
|
+
# from Claude Platform on AWS.
|
|
254
|
+
#
|
|
255
|
+
# On the Claude API, create an action URL instead. See
|
|
256
|
+
# [Send an end customer a link to the Verification Portal](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal)
|
|
257
|
+
# for when to create the link and what the end customer sees.
|
|
228
258
|
sig do
|
|
229
259
|
params(
|
|
230
260
|
user_profile_id: String,
|
|
@@ -39,6 +39,9 @@ module Anthropic
|
|
|
39
39
|
sig { returns(Anthropic::Resources::Beta::Webhooks) }
|
|
40
40
|
attr_reader :webhooks
|
|
41
41
|
|
|
42
|
+
# Register the end customers that your platform serves, so each request can name
|
|
43
|
+
# who it's for. To get started, see the
|
|
44
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles).
|
|
42
45
|
sig { returns(Anthropic::Resources::Beta::UserProfiles) }
|
|
43
46
|
attr_reader :user_profiles
|
|
44
47
|
|
|
@@ -4,7 +4,11 @@ module Anthropic
|
|
|
4
4
|
module Resources
|
|
5
5
|
class UserProfiles
|
|
6
6
|
class ActionURLs
|
|
7
|
-
# Create
|
|
7
|
+
# Create a link that sends the profile's end customer to the Verification Portal.
|
|
8
|
+
#
|
|
9
|
+
# See
|
|
10
|
+
# [Send an end customer a link to the Verification Portal](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal)
|
|
11
|
+
# for when to create the link and what the end customer sees.
|
|
8
12
|
sig do
|
|
9
13
|
params(
|
|
10
14
|
user_profile_id: String,
|
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Resources
|
|
5
|
+
# Register the end customers that your platform serves, so each request can name
|
|
6
|
+
# who it's for. To get started, see the
|
|
7
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles).
|
|
5
8
|
class UserProfiles
|
|
6
9
|
sig { returns(Anthropic::Resources::UserProfiles::ActionURLs) }
|
|
7
10
|
attr_reader :action_urls
|
|
8
11
|
|
|
9
|
-
#
|
|
12
|
+
# Register one of your end customers and get the ID to send on the requests you
|
|
13
|
+
# make for them.
|
|
14
|
+
#
|
|
15
|
+
# See the
|
|
16
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#create-a-profile-for-each-end-customer)
|
|
17
|
+
# for what to send.
|
|
10
18
|
sig do
|
|
11
19
|
params(
|
|
12
20
|
access_type: Anthropic::UserProfileAccessType::OrSymbol,
|
|
@@ -50,7 +58,11 @@ module Anthropic
|
|
|
50
58
|
)
|
|
51
59
|
end
|
|
52
60
|
|
|
53
|
-
# Get
|
|
61
|
+
# Get a user profile by ID to check the details stored for it.
|
|
62
|
+
#
|
|
63
|
+
# See the
|
|
64
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles)
|
|
65
|
+
# for how to set up and manage profiles.
|
|
54
66
|
sig do
|
|
55
67
|
params(
|
|
56
68
|
user_profile_id: String,
|
|
@@ -72,7 +84,12 @@ module Anthropic
|
|
|
72
84
|
)
|
|
73
85
|
end
|
|
74
86
|
|
|
75
|
-
#
|
|
87
|
+
# Change the details of a user profile, leaving the fields that you don't send as
|
|
88
|
+
# they are.
|
|
89
|
+
#
|
|
90
|
+
# See the
|
|
91
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#update-a-profile)
|
|
92
|
+
# for how each field is updated.
|
|
76
93
|
sig do
|
|
77
94
|
params(
|
|
78
95
|
user_profile_id: String,
|
|
@@ -116,7 +133,11 @@ module Anthropic
|
|
|
116
133
|
)
|
|
117
134
|
end
|
|
118
135
|
|
|
119
|
-
# List
|
|
136
|
+
# List the user profiles in your organization, newest first by default.
|
|
137
|
+
#
|
|
138
|
+
# See the
|
|
139
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles)
|
|
140
|
+
# for how to set up and manage profiles.
|
|
120
141
|
sig do
|
|
121
142
|
params(
|
|
122
143
|
enforcement_status:
|
|
@@ -165,7 +186,11 @@ module Anthropic
|
|
|
165
186
|
)
|
|
166
187
|
end
|
|
167
188
|
|
|
168
|
-
# Delete
|
|
189
|
+
# Delete a user profile, for example when the end customer closes their account.
|
|
190
|
+
#
|
|
191
|
+
# Stop sending the profile's ID first. See the
|
|
192
|
+
# [User profiles guide](https://platform.claude.com/docs/en/manage-claude/user-profiles#delete-a-profile)
|
|
193
|
+
# for what happens after a delete.
|
|
169
194
|
sig do
|
|
170
195
|
params(
|
|
171
196
|
user_profile_id: String,
|
|
@@ -262,6 +262,12 @@ module Anthropic
|
|
|
262
262
|
TUNNELS_CERTIFICATES_RETRIEVE: "anthropic.tunnels.certificates.retrieve"
|
|
263
263
|
TUNNELS_CERTIFICATES_LIST: "anthropic.tunnels.certificates.list"
|
|
264
264
|
TUNNELS_CERTIFICATES_ARCHIVE: "anthropic.tunnels.certificates.archive"
|
|
265
|
+
ORGANIZATION_EXTERNAL_STORAGE_CREATE: "anthropic.organization.external_storage.create"
|
|
266
|
+
ORGANIZATION_EXTERNAL_STORAGE_RETRIEVE: "anthropic.organization.external_storage.retrieve"
|
|
267
|
+
ORGANIZATION_EXTERNAL_STORAGE_UPDATE: "anthropic.organization.external_storage.update"
|
|
268
|
+
ORGANIZATION_EXTERNAL_STORAGE_LIST: "anthropic.organization.external_storage.list"
|
|
269
|
+
ORGANIZATION_EXTERNAL_STORAGE_DELETE: "anthropic.organization.external_storage.delete"
|
|
270
|
+
ORGANIZATION_EXTERNAL_STORAGE_ACTIVATE: "anthropic.organization.external_storage.activate"
|
|
265
271
|
ORGANIZATION_USERS_SIGN_OUT: "anthropic.organization.users.sign_out"
|
|
266
272
|
ORGANIZATION_ANALYTICS_USAGE_LIST: "anthropic.organization.analytics.usage.list"
|
|
267
273
|
ORGANIZATION_ANALYTICS_COST_LIST: "anthropic.organization.analytics.cost.list"
|
|
@@ -58,6 +58,7 @@ module Anthropic
|
|
|
58
58
|
| :"cache-diagnosis-2026-04-07"
|
|
59
59
|
| :"ce-user-management-2026-07-13"
|
|
60
60
|
| :"ce-claude-code-managed-settings-2026-10-06"
|
|
61
|
+
| :"efs-2026-10-01"
|
|
61
62
|
| :"user-profiles-billing-2026-10-01"
|
|
62
63
|
| String
|
|
63
64
|
|
|
@@ -123,6 +124,7 @@ module Anthropic
|
|
|
123
124
|
CACHE_DIAGNOSIS_2026_04_07: :"cache-diagnosis-2026-04-07"
|
|
124
125
|
CE_USER_MANAGEMENT_2026_07_13: :"ce-user-management-2026-07-13"
|
|
125
126
|
CE_CLAUDE_CODE_MANAGED_SETTINGS_2026_10_06: :"ce-claude-code-managed-settings-2026-10-06"
|
|
127
|
+
EFS_2026_10_01: :"efs-2026-10-01"
|
|
126
128
|
USER_PROFILES_BILLING_2026_10_01: :"user-profiles-billing-2026-10-01"
|
|
127
129
|
end
|
|
128
130
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaApprovalRequiredErrorDetails = Beta::BetaApprovalRequiredErrorDetails
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_approval_required_error_details =
|
|
7
|
+
{ error_code: :approval_required, field: String }
|
|
8
|
+
|
|
9
|
+
class BetaApprovalRequiredErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor error_code: :approval_required
|
|
11
|
+
|
|
12
|
+
attr_accessor field: String
|
|
13
|
+
|
|
14
|
+
def initialize: (field: String, ?error_code: :approval_required) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> { error_code: :approval_required, field: String }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
class BetaAuthorizationCheckUnavailableError < Anthropic::Errors::ServiceUnavailableError
|
|
5
|
+
def error_code: -> :authorization_check_unavailable
|
|
6
|
+
|
|
7
|
+
def details: -> Anthropic::Beta::BetaAuthorizationCheckUnavailableErrorDetails
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaAuthorizationCheckUnavailableErrorDetails = Beta::BetaAuthorizationCheckUnavailableErrorDetails
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_authorization_check_unavailable_error_details =
|
|
7
|
+
{ error_code: :authorization_check_unavailable }
|
|
8
|
+
|
|
9
|
+
class BetaAuthorizationCheckUnavailableErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor error_code: :authorization_check_unavailable
|
|
11
|
+
|
|
12
|
+
def initialize: (?error_code: :authorization_check_unavailable) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { error_code: :authorization_check_unavailable }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
class BetaHumanReviewNotAvailableError < Anthropic::Errors::BadRequestError
|
|
5
|
+
def error_code: -> :human_review_not_available
|
|
6
|
+
|
|
7
|
+
def details: -> Anthropic::Beta::BetaHumanReviewNotAvailableErrorDetails
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaHumanReviewNotAvailableErrorDetails = Beta::BetaHumanReviewNotAvailableErrorDetails
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_human_review_not_available_error_details =
|
|
7
|
+
{ error_code: :human_review_not_available }
|
|
8
|
+
|
|
9
|
+
class BetaHumanReviewNotAvailableErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor error_code: :human_review_not_available
|
|
11
|
+
|
|
12
|
+
def initialize: (?error_code: :human_review_not_available) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { error_code: :human_review_not_available }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
class BetaOrganizationNotEligibleError < Anthropic::Errors::BadRequestError
|
|
5
|
+
def error_code: -> :organization_not_eligible
|
|
6
|
+
|
|
7
|
+
def details: -> Anthropic::Beta::BetaOrganizationNotEligibleErrorDetails
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaOrganizationNotEligibleErrorDetails = Beta::BetaOrganizationNotEligibleErrorDetails
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_organization_not_eligible_error_details =
|
|
7
|
+
{ error_code: :organization_not_eligible }
|
|
8
|
+
|
|
9
|
+
class BetaOrganizationNotEligibleErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor error_code: :organization_not_eligible
|
|
11
|
+
|
|
12
|
+
def initialize: (?error_code: :organization_not_eligible) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { error_code: :organization_not_eligible }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -53,6 +53,8 @@ module Anthropic
|
|
|
53
53
|
| Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData
|
|
54
54
|
| Anthropic::Beta::BetaWebhookExternalKeyFailedEventData
|
|
55
55
|
| Anthropic::Beta::BetaWebhookExternalKeyRecoveredEventData
|
|
56
|
+
| Anthropic::Beta::BetaWebhookExternalStorageFailedEventData
|
|
57
|
+
| Anthropic::Beta::BetaWebhookExternalStorageRecoveredEventData
|
|
56
58
|
|
|
57
59
|
module BetaWebhookEventData
|
|
58
60
|
extend Anthropic::Internal::Type::Union
|
|
@@ -107,6 +109,8 @@ module Anthropic
|
|
|
107
109
|
| :"user_profile.program_status_updated"
|
|
108
110
|
| :"external_key.failed"
|
|
109
111
|
| :"external_key.recovered"
|
|
112
|
+
| :"external_storage.failed"
|
|
113
|
+
| :"external_storage.recovered"
|
|
110
114
|
|
|
111
115
|
module Type
|
|
112
116
|
extend Anthropic::Internal::Type::Enum
|
|
@@ -160,6 +164,8 @@ module Anthropic
|
|
|
160
164
|
USER_PROFILE_PROGRAM_STATUS_UPDATED: :"user_profile.program_status_updated"
|
|
161
165
|
EXTERNAL_KEY_FAILED: :"external_key.failed"
|
|
162
166
|
EXTERNAL_KEY_RECOVERED: :"external_key.recovered"
|
|
167
|
+
EXTERNAL_STORAGE_FAILED: :"external_storage.failed"
|
|
168
|
+
EXTERNAL_STORAGE_RECOVERED: :"external_storage.recovered"
|
|
163
169
|
|
|
164
170
|
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaWebhookEventData::type_]
|
|
165
171
|
end
|
|
@@ -470,6 +476,16 @@ module Anthropic
|
|
|
470
476
|
id: String,
|
|
471
477
|
organization_id: String
|
|
472
478
|
) -> Anthropic::Beta::BetaWebhookExternalKeyRecoveredEventData
|
|
479
|
+
| (
|
|
480
|
+
type: :"external_storage.failed" | "external_storage.failed",
|
|
481
|
+
id: String,
|
|
482
|
+
organization_id: String
|
|
483
|
+
) -> Anthropic::Beta::BetaWebhookExternalStorageFailedEventData
|
|
484
|
+
| (
|
|
485
|
+
type: :"external_storage.recovered" | "external_storage.recovered",
|
|
486
|
+
id: String,
|
|
487
|
+
organization_id: String
|
|
488
|
+
) -> Anthropic::Beta::BetaWebhookExternalStorageRecoveredEventData
|
|
473
489
|
| (
|
|
474
490
|
type: Anthropic::Models::Beta::BetaWebhookEventData::type_ | String,
|
|
475
491
|
id: String,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaWebhookExternalStorageFailedEventData = Beta::BetaWebhookExternalStorageFailedEventData
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_webhook_external_storage_failed_event_data =
|
|
7
|
+
{
|
|
8
|
+
id: String,
|
|
9
|
+
organization_id: String,
|
|
10
|
+
type: :"external_storage.failed"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class BetaWebhookExternalStorageFailedEventData < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor organization_id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor type: :"external_storage.failed"
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
id: String,
|
|
22
|
+
organization_id: String,
|
|
23
|
+
?type: :"external_storage.failed"
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
id: String,
|
|
28
|
+
organization_id: String,
|
|
29
|
+
type: :"external_storage.failed"
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|