anthropic 2.11.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +42 -0
- data/README.md +1 -1
- data/lib/anthropic/client.rb +3 -0
- data/lib/anthropic/error_classes.rb +26 -0
- data/lib/anthropic/helpers/bedrock/client.rb +12 -2
- data/lib/anthropic/internal/tracing.rb +6 -0
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/beta_approval_required_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_approval_required_error_details.rb +30 -0
- data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rb +22 -0
- data/lib/anthropic/models/beta/beta_human_review_not_available_error.rb +22 -0
- data/lib/anthropic/models/beta/beta_human_review_not_available_error_details.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +6 -0
- data/lib/anthropic/models/beta/beta_organization_not_eligible_error.rb +23 -0
- data/lib/anthropic/models/beta/beta_organization_not_eligible_error_details.rb +23 -0
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +13 -2
- data/lib/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rb +39 -0
- data/lib/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rb +39 -0
- data/lib/anthropic/models/beta/message_create_params.rb +6 -0
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +6 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +7 -7
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +7 -7
- data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +11 -13
- data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +11 -13
- data/lib/anthropic/models/beta/organization/beta_access_transparency.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_active_external_storage_status.rb +42 -0
- data/lib/anthropic/models/beta/organization/beta_anthropic_human_review.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_anthropic_human_review_param.rb +32 -0
- data/lib/anthropic/models/beta/organization/beta_available_external_storage_status.rb +43 -0
- data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config.rb +45 -0
- data/lib/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rb +51 -0
- data/lib/anthropic/models/beta/organization/beta_compliance_settings.rb +18 -1
- data/lib/anthropic/models/beta/organization/beta_deleted_external_storage.rb +35 -0
- data/lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb +52 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage.rb +217 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_failed_check.rb +119 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_member.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_member_param.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config.rb +45 -0
- data/lib/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_grant_required_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_grant_required_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy.rb +48 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rb +53 -0
- data/lib/anthropic/models/beta/organization/beta_internal_storage.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_internal_storage_param.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +2 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +2 -0
- data/lib/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rb +31 -0
- data/lib/anthropic/models/beta/organization/beta_storage_member.rb +59 -0
- data/lib/anthropic/models/beta/organization/beta_storage_member_param.rb +60 -0
- data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rb +30 -0
- data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rb +44 -0
- data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_unsupported_region_error.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_unsupported_region_error_details.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_workspace.rb +12 -1
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rb +26 -0
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rb +37 -0
- data/lib/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rb +18 -0
- data/lib/anthropic/models/beta/organization/compliance_setting_retrieve_params.rb +14 -1
- data/lib/anthropic/models/beta/organization/compliance_setting_update_params.rb +10 -1
- data/lib/anthropic/models/beta/organization/external_storage_activate_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_create_params.rb +113 -0
- data/lib/anthropic/models/beta/organization/external_storage_delete_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_list_params.rb +56 -0
- data/lib/anthropic/models/beta/organization/external_storage_retrieve_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/external_storage_update_params.rb +49 -0
- data/lib/anthropic/models/beta/organization/plugins/beta_plugin_share.rb +2 -2
- data/lib/anthropic/models/beta/organization/webhook_create_params.rb +2 -0
- data/lib/anthropic/models/beta/organization/webhook_update_params.rb +2 -0
- data/lib/anthropic/models/beta/organization/workspace_archive_params.rb +15 -1
- data/lib/anthropic/models/beta/organization/workspace_create_params.rb +16 -1
- data/lib/anthropic/models/beta/organization/workspace_list_params.rb +10 -1
- data/lib/anthropic/models/beta/organization/workspace_retrieve_params.rb +14 -1
- data/lib/anthropic/models/beta/organization/workspace_update_params.rb +25 -1
- data/lib/anthropic/models/change_outcome_unknown_error.rb +20 -0
- data/lib/anthropic/models/change_outcome_unknown_error_details.rb +18 -0
- data/lib/anthropic/models/error_details.rb +184 -5
- data/lib/anthropic/models/image_dimensions_too_large_error.rb +21 -0
- data/lib/anthropic/models/image_dimensions_too_large_error_details.rb +41 -0
- data/lib/anthropic/models/model.rb +6 -0
- data/lib/anthropic/models/organization/storage_attached_during_archive_error.rb +23 -0
- data/lib/anthropic/models/organization/storage_attached_during_archive_error_details.rb +21 -0
- data/lib/anthropic/models/organization/storage_profile_mismatch_error.rb +22 -0
- data/lib/anthropic/models/organization/storage_profile_mismatch_error_details.rb +28 -0
- data/lib/anthropic/models/organization/workspace_created_incomplete_error.rb +23 -0
- data/lib/anthropic/models/organization/workspace_created_incomplete_error_details.rb +29 -0
- data/lib/anthropic/models/organization/workspace_policy_violation_error_details.rb +2 -2
- data/lib/anthropic/models/user_profile_billing_not_authorized_error.rb +1 -1
- data/lib/anthropic/models/user_profile_billing_not_authorized_error_details.rb +1 -1
- data/lib/anthropic/models/user_profile_not_billable_error.rb +2 -2
- data/lib/anthropic/models/user_profile_not_billable_error_details.rb +2 -2
- data/lib/anthropic/models/workspace_human_review_disabled_error.rb +20 -0
- data/lib/anthropic/models/workspace_human_review_disabled_error_details.rb +18 -0
- data/lib/anthropic/models.rb +12 -0
- data/lib/anthropic/resources/beta/messages/batches.rb +1 -0
- data/lib/anthropic/resources/beta/messages.rb +3 -0
- data/lib/anthropic/resources/beta/organization/analytics/cost.rb +6 -0
- data/lib/anthropic/resources/beta/organization/analytics/usage.rb +6 -1
- data/lib/anthropic/resources/beta/organization/compliance_settings.rb +17 -5
- data/lib/anthropic/resources/beta/organization/external_storage.rb +263 -0
- data/lib/anthropic/resources/beta/organization/plugins/shares.rb +3 -4
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +9 -6
- data/lib/anthropic/resources/beta/organization/plugins.rb +2 -2
- data/lib/anthropic/resources/beta/organization/workspaces.rb +82 -22
- data/lib/anthropic/resources/beta/organization.rb +4 -0
- data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +5 -1
- data/lib/anthropic/resources/beta/user_profiles.rb +36 -6
- data/lib/anthropic/resources/beta.rb +3 -0
- data/lib/anthropic/resources/messages/batches.rb +1 -0
- data/lib/anthropic/resources/messages.rb +3 -0
- data/lib/anthropic/resources/organization/workspaces.rb +4 -0
- data/lib/anthropic/resources/user_profiles/action_urls.rb +5 -1
- data/lib/anthropic/resources/user_profiles.rb +30 -5
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +85 -0
- data/rbi/anthropic/client.rbi +3 -0
- data/rbi/anthropic/internal/tracing.rbi +12 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_approval_required_error.rbi +19 -0
- data/rbi/anthropic/models/beta/beta_approval_required_error_details.rbi +42 -0
- data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error.rbi +23 -0
- data/rbi/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_human_review_not_available_error.rbi +21 -0
- data/rbi/anthropic/models/beta/beta_human_review_not_available_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_organization_not_eligible_error.rbi +22 -0
- data/rbi/anthropic/models/beta/beta_organization_not_eligible_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +13 -1
- data/rbi/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rbi +53 -0
- data/rbi/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbi +53 -0
- data/rbi/anthropic/models/beta/message_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +12 -12
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +12 -12
- data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +22 -26
- data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +22 -26
- data/rbi/anthropic/models/beta/organization/beta_access_transparency.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_active_external_storage_status.rbi +57 -0
- data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_available_external_storage_status.rbi +58 -0
- data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config.rbi +67 -0
- data/rbi/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbi +71 -0
- data/rbi/anthropic/models/beta/organization/beta_compliance_settings.rbi +33 -1
- data/rbi/anthropic/models/beta/organization/beta_deleted_external_storage.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_draining_external_storage_status.rbi +72 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage.rbi +307 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_failed_check.rbi +359 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_member.rbi +51 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_member_param.rbi +51 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbi +67 -0
- data/rbi/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/beta_grant_required_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_grant_required_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbi +28 -0
- data/rbi/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbi +35 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy.rbi +134 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbi +153 -0
- data/rbi/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbi +153 -0
- data/rbi/anthropic/models/beta/organization/beta_internal_storage.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_internal_storage_param.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbi +43 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_member.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_member_param.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbi +42 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbi +74 -0
- data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbi +28 -0
- data/rbi/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbi +35 -0
- data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error.rbi +24 -0
- data/rbi/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace.rbi +29 -1
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbi +27 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbi +62 -0
- data/rbi/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbi +35 -4
- data/rbi/anthropic/models/beta/organization/compliance_setting_update_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/external_storage_activate_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_create_params.rbi +192 -0
- data/rbi/anthropic/models/beta/organization/external_storage_delete_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_list_params.rbi +96 -0
- data/rbi/anthropic/models/beta/organization/external_storage_retrieve_params.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/external_storage_update_params.rbi +87 -0
- data/rbi/anthropic/models/beta/organization/plugins/beta_plugin_share.rbi +2 -2
- data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/workspace_archive_params.rbi +29 -1
- data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +40 -0
- data/rbi/anthropic/models/beta/organization/workspace_list_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/workspace_retrieve_params.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +65 -0
- data/rbi/anthropic/models/change_outcome_unknown_error.rbi +17 -0
- data/rbi/anthropic/models/change_outcome_unknown_error_details.rbi +28 -0
- data/rbi/anthropic/models/error_details.rbi +182 -2
- data/rbi/anthropic/models/image_dimensions_too_large_error.rbi +18 -0
- data/rbi/anthropic/models/image_dimensions_too_large_error_details.rbi +63 -0
- data/rbi/anthropic/models/organization/storage_attached_during_archive_error.rbi +24 -0
- data/rbi/anthropic/models/organization/storage_attached_during_archive_error_details.rbi +31 -0
- data/rbi/anthropic/models/organization/storage_profile_mismatch_error.rbi +21 -0
- data/rbi/anthropic/models/organization/storage_profile_mismatch_error_details.rbi +40 -0
- data/rbi/anthropic/models/organization/workspace_created_incomplete_error.rbi +24 -0
- data/rbi/anthropic/models/organization/workspace_created_incomplete_error_details.rbi +43 -0
- data/rbi/anthropic/models/organization/workspace_policy_violation_error_details.rbi +2 -2
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error.rbi +1 -1
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error_details.rbi +1 -1
- data/rbi/anthropic/models/user_profile_not_billable_error.rbi +2 -2
- data/rbi/anthropic/models/user_profile_not_billable_error_details.rbi +2 -2
- data/rbi/anthropic/models/workspace_human_review_disabled_error.rbi +17 -0
- data/rbi/anthropic/models/workspace_human_review_disabled_error_details.rbi +28 -0
- data/rbi/anthropic/models.rbi +16 -0
- data/rbi/anthropic/resources/beta/messages.rbi +18 -0
- data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +17 -14
- data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +17 -15
- data/rbi/anthropic/resources/beta/organization/compliance_settings.rbi +20 -6
- data/rbi/anthropic/resources/beta/organization/external_storage.rbi +173 -0
- data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +3 -4
- data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +9 -6
- data/rbi/anthropic/resources/beta/organization/plugins.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +84 -33
- data/rbi/anthropic/resources/beta/organization.rbi +5 -0
- data/rbi/anthropic/resources/beta/user_profiles/action_urls.rbi +5 -1
- data/rbi/anthropic/resources/beta/user_profiles.rbi +36 -6
- data/rbi/anthropic/resources/beta.rbi +3 -0
- data/rbi/anthropic/resources/user_profiles/action_urls.rbi +5 -1
- data/rbi/anthropic/resources/user_profiles.rbi +30 -5
- data/sig/anthropic/internal/tracing.rbs +6 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_approval_required_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_approval_required_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_authorization_check_unavailable_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_human_review_not_available_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_human_review_not_available_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_organization_not_eligible_error.rbs +11 -0
- data/sig/anthropic/models/beta/beta_organization_not_eligible_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +16 -0
- data/sig/anthropic/models/beta/beta_webhook_external_storage_failed_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/beta_webhook_external_storage_recovered_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/organization/beta_access_transparency.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_active_external_storage_status.rbs +30 -0
- data/sig/anthropic/models/beta/organization/beta_anthropic_human_review.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_anthropic_human_review_param.rbs +35 -0
- data/sig/anthropic/models/beta/organization/beta_available_external_storage_status.rbs +30 -0
- data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_aws_external_storage_config_param.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_compliance_settings.rbs +11 -2
- data/sig/anthropic/models/beta/organization/beta_deleted_external_storage.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_draining_external_storage_status.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage.rbs +161 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_failed_check.rbs +138 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_use_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_in_workspace_policy_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_member.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_member_param.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_external_storage_not_available_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_gcp_external_storage_config_param.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_grant_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_grant_required_error_details.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_human_review_on_with_external_storage_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_create_param.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_inference_data_privacy_update_param.rbs +46 -0
- data/sig/anthropic/models/beta/organization/beta_internal_storage.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_internal_storage_param.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_invalid_storage_arn_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +4 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +4 -0
- data/sig/anthropic/models/beta/organization/beta_pending_configuration_external_storage_status.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_provider_not_allowed_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_already_registered_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_attach_limit_reached_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_changed_concurrently_error_details.rbs +26 -0
- data/sig/anthropic/models/beta/organization/beta_storage_member.rbs +42 -0
- data/sig/anthropic/models/beta/organization/beta_storage_member_param.rbs +42 -0
- data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_not_attachable_error_details.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_profile_still_required_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_storage_verification_failed_error_details.rbs +34 -0
- data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_transcripts_storage_required_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_unsupported_region_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_unsupported_region_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_workspace.rbs +11 -2
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_error_details.rbs +29 -0
- data/sig/anthropic/models/beta/organization/beta_workspace_changed_concurrently_field.rbs +18 -0
- data/sig/anthropic/models/beta/organization/compliance_setting_retrieve_params.rbs +16 -3
- data/sig/anthropic/models/beta/organization/compliance_setting_update_params.rbs +10 -1
- data/sig/anthropic/models/beta/organization/external_storage_activate_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_create_params.rbs +92 -0
- data/sig/anthropic/models/beta/organization/external_storage_delete_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_list_params.rbs +51 -0
- data/sig/anthropic/models/beta/organization/external_storage_retrieve_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/external_storage_update_params.rbs +44 -0
- data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +4 -0
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +4 -0
- data/sig/anthropic/models/beta/organization/workspace_archive_params.rbs +12 -1
- data/sig/anthropic/models/beta/organization/workspace_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/workspace_list_params.rbs +10 -1
- data/sig/anthropic/models/beta/organization/workspace_retrieve_params.rbs +12 -1
- data/sig/anthropic/models/beta/organization/workspace_update_params.rbs +15 -1
- data/sig/anthropic/models/change_outcome_unknown_error.rbs +9 -0
- data/sig/anthropic/models/change_outcome_unknown_error_details.rbs +14 -0
- data/sig/anthropic/models/error_details.rbs +188 -1
- data/sig/anthropic/models/image_dimensions_too_large_error.rbs +9 -0
- data/sig/anthropic/models/image_dimensions_too_large_error_details.rbs +30 -0
- data/sig/anthropic/models/organization/storage_attached_during_archive_error.rbs +11 -0
- data/sig/anthropic/models/organization/storage_attached_during_archive_error_details.rbs +16 -0
- data/sig/anthropic/models/organization/storage_profile_mismatch_error.rbs +11 -0
- data/sig/anthropic/models/organization/storage_profile_mismatch_error_details.rbs +21 -0
- data/sig/anthropic/models/organization/workspace_created_incomplete_error.rbs +11 -0
- data/sig/anthropic/models/organization/workspace_created_incomplete_error_details.rbs +24 -0
- data/sig/anthropic/models/workspace_human_review_disabled_error.rbs +9 -0
- data/sig/anthropic/models/workspace_human_review_disabled_error_details.rbs +14 -0
- data/sig/anthropic/models.rbs +12 -0
- data/sig/anthropic/resources/beta/organization/compliance_settings.rbs +2 -0
- data/sig/anthropic/resources/beta/organization/external_storage.rbs +52 -0
- data/sig/anthropic/resources/beta/organization/workspaces.rbs +6 -0
- data/sig/anthropic/resources/beta/organization.rbs +2 -0
- metadata +257 -2
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
BetaWebhookExternalStorageFailedEventData =
|
|
6
|
+
Beta::BetaWebhookExternalStorageFailedEventData
|
|
7
|
+
|
|
8
|
+
module Beta
|
|
9
|
+
class BetaWebhookExternalStorageFailedEventData < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Anthropic::Beta::BetaWebhookExternalStorageFailedEventData,
|
|
14
|
+
Anthropic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# ID (`estrg_...`) of the External Storage whose bucket failed Anthropic's check
|
|
19
|
+
# or passes it again.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :id
|
|
22
|
+
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :organization_id
|
|
25
|
+
|
|
26
|
+
sig { returns(Symbol) }
|
|
27
|
+
attr_accessor :type
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
params(id: String, organization_id: String, type: Symbol).returns(
|
|
31
|
+
T.attached_class
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
def self.new(
|
|
35
|
+
# ID (`estrg_...`) of the External Storage whose bucket failed Anthropic's check
|
|
36
|
+
# or passes it again.
|
|
37
|
+
id:,
|
|
38
|
+
organization_id:,
|
|
39
|
+
type: :"external_storage.failed"
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
sig do
|
|
44
|
+
override.returns(
|
|
45
|
+
{ id: String, organization_id: String, type: Symbol }
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
def to_hash
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
BetaWebhookExternalStorageRecoveredEventData =
|
|
6
|
+
Beta::BetaWebhookExternalStorageRecoveredEventData
|
|
7
|
+
|
|
8
|
+
module Beta
|
|
9
|
+
class BetaWebhookExternalStorageRecoveredEventData < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Anthropic::Beta::BetaWebhookExternalStorageRecoveredEventData,
|
|
14
|
+
Anthropic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# ID (`estrg_...`) of the External Storage whose bucket failed Anthropic's check
|
|
19
|
+
# or passes it again.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :id
|
|
22
|
+
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :organization_id
|
|
25
|
+
|
|
26
|
+
sig { returns(Symbol) }
|
|
27
|
+
attr_accessor :type
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
params(id: String, organization_id: String, type: Symbol).returns(
|
|
31
|
+
T.attached_class
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
def self.new(
|
|
35
|
+
# ID (`estrg_...`) of the External Storage whose bucket failed Anthropic's check
|
|
36
|
+
# or passes it again.
|
|
37
|
+
id:,
|
|
38
|
+
organization_id:,
|
|
39
|
+
type: :"external_storage.recovered"
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
sig do
|
|
44
|
+
override.returns(
|
|
45
|
+
{ id: String, organization_id: String, type: Symbol }
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
def to_hash
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -126,6 +126,12 @@ module Anthropic
|
|
|
126
126
|
# to the profile, or has not allowed your organization to bill it, the request is
|
|
127
127
|
# rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
|
|
128
128
|
# (the default), to be billed as usual.
|
|
129
|
+
#
|
|
130
|
+
# Message Batches does not currently support billing the customer behind a user
|
|
131
|
+
# profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
|
|
132
|
+
# batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
|
|
133
|
+
# `invalid_request_error`, nobody is billed for it, and the batch's other requests
|
|
134
|
+
# run as usual.
|
|
129
135
|
sig { returns(T.nilable(Anthropic::Beta::BetaBillingPolicy)) }
|
|
130
136
|
attr_reader :billing_policy
|
|
131
137
|
|
|
@@ -866,6 +872,12 @@ module Anthropic
|
|
|
866
872
|
# to the profile, or has not allowed your organization to bill it, the request is
|
|
867
873
|
# rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
|
|
868
874
|
# (the default), to be billed as usual.
|
|
875
|
+
#
|
|
876
|
+
# Message Batches does not currently support billing the customer behind a user
|
|
877
|
+
# profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
|
|
878
|
+
# batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
|
|
879
|
+
# `invalid_request_error`, nobody is billed for it, and the batch's other requests
|
|
880
|
+
# run as usual.
|
|
869
881
|
billing_policy: nil,
|
|
870
882
|
# Top-level cache control automatically applies a cache_control marker to the last
|
|
871
883
|
# cacheable block in the request.
|
|
@@ -307,6 +307,12 @@ module Anthropic
|
|
|
307
307
|
# to the profile, or has not allowed your organization to bill it, the request is
|
|
308
308
|
# rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
|
|
309
309
|
# (the default), to be billed as usual.
|
|
310
|
+
#
|
|
311
|
+
# Message Batches does not currently support billing the customer behind a user
|
|
312
|
+
# profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
|
|
313
|
+
# batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
|
|
314
|
+
# `invalid_request_error`, nobody is billed for it, and the batch's other requests
|
|
315
|
+
# run as usual.
|
|
310
316
|
sig { returns(T.nilable(Anthropic::Beta::BetaBillingPolicy)) }
|
|
311
317
|
attr_reader :billing_policy
|
|
312
318
|
|
|
@@ -1054,6 +1060,12 @@ module Anthropic
|
|
|
1054
1060
|
# to the profile, or has not allowed your organization to bill it, the request is
|
|
1055
1061
|
# rejected rather than billed to you. Omit the field, or send `"bill_to": "self"`
|
|
1056
1062
|
# (the default), to be billed as usual.
|
|
1063
|
+
#
|
|
1064
|
+
# Message Batches does not currently support billing the customer behind a user
|
|
1065
|
+
# profile. In a batch, omit the field or send `"bill_to": "self"`. A request in a
|
|
1066
|
+
# batch that sets `"bill_to": "user_profile"` gets an `errored` result with an
|
|
1067
|
+
# `invalid_request_error`, nobody is billed for it, and the batch's other requests
|
|
1068
|
+
# run as usual.
|
|
1057
1069
|
billing_policy: nil,
|
|
1058
1070
|
# Top-level cache control automatically applies a cache_control marker to the last
|
|
1059
1071
|
# cacheable block in the request.
|
|
@@ -160,8 +160,7 @@ module Anthropic
|
|
|
160
160
|
attr_accessor :rbac_group_id
|
|
161
161
|
|
|
162
162
|
# Service tier the usage was served at. Populated only when `service_tier` is in
|
|
163
|
-
# `group_by[]`; null for usage with no service tier (for example, code execution)
|
|
164
|
-
# and for Claude Enterprise usage.
|
|
163
|
+
# `group_by[]`; null for usage with no service tier (for example, code execution).
|
|
165
164
|
sig do
|
|
166
165
|
returns(
|
|
167
166
|
T.nilable(
|
|
@@ -206,13 +205,14 @@ module Anthropic
|
|
|
206
205
|
|
|
207
206
|
# User profile the usage was attributed to, as a tagged `uprof_` ID. Populated
|
|
208
207
|
# only when `user_profile_id` is in `group_by[]`; null for usage that named no
|
|
209
|
-
# profile
|
|
208
|
+
# profile.
|
|
210
209
|
sig { returns(T.nilable(String)) }
|
|
211
210
|
attr_accessor :user_profile_id
|
|
212
211
|
|
|
213
|
-
# Workspace the usage occurred in, as a tagged workspace ID, including
|
|
214
|
-
# organization's default workspace. Populated only when `workspace_id` is
|
|
215
|
-
# `group_by[]`; null for Claude Enterprise
|
|
212
|
+
# Workspace the usage occurred in, as a tagged workspace ID, including a Claude
|
|
213
|
+
# Platform organization's default workspace. Populated only when `workspace_id` is
|
|
214
|
+
# in `group_by[]`; null for usage in a Claude Enterprise organization's default
|
|
215
|
+
# workspace, which is its only workspace.
|
|
216
216
|
sig { returns(T.nilable(String)) }
|
|
217
217
|
attr_accessor :workspace_id
|
|
218
218
|
|
|
@@ -357,8 +357,7 @@ module Anthropic
|
|
|
357
357
|
# query without `group_by[]`.
|
|
358
358
|
rbac_group_id:,
|
|
359
359
|
# Service tier the usage was served at. Populated only when `service_tier` is in
|
|
360
|
-
# `group_by[]`; null for usage with no service tier (for example, code execution)
|
|
361
|
-
# and for Claude Enterprise usage.
|
|
360
|
+
# `group_by[]`; null for usage with no service tier (for example, code execution).
|
|
362
361
|
service_tier:,
|
|
363
362
|
# Claude Managed Agents session that incurred the usage. Populated only when
|
|
364
363
|
# `session_id` is in `group_by[]`; null for usage outside a managed session.
|
|
@@ -375,11 +374,12 @@ module Anthropic
|
|
|
375
374
|
token_type:,
|
|
376
375
|
# User profile the usage was attributed to, as a tagged `uprof_` ID. Populated
|
|
377
376
|
# only when `user_profile_id` is in `group_by[]`; null for usage that named no
|
|
378
|
-
# profile
|
|
377
|
+
# profile.
|
|
379
378
|
user_profile_id:,
|
|
380
|
-
# Workspace the usage occurred in, as a tagged workspace ID, including
|
|
381
|
-
# organization's default workspace. Populated only when `workspace_id` is
|
|
382
|
-
# `group_by[]`; null for Claude Enterprise
|
|
379
|
+
# Workspace the usage occurred in, as a tagged workspace ID, including a Claude
|
|
380
|
+
# Platform organization's default workspace. Populated only when `workspace_id` is
|
|
381
|
+
# in `group_by[]`; null for usage in a Claude Enterprise organization's default
|
|
382
|
+
# workspace, which is its only workspace.
|
|
383
383
|
workspace_id:
|
|
384
384
|
)
|
|
385
385
|
end
|
|
@@ -150,8 +150,7 @@ module Anthropic
|
|
|
150
150
|
attr_accessor :rbac_group_id
|
|
151
151
|
|
|
152
152
|
# Service tier the usage was served at. Populated only when `service_tier` is in
|
|
153
|
-
# `group_by[]`; null for usage with no service tier (for example, code execution)
|
|
154
|
-
# and for Claude Enterprise usage.
|
|
153
|
+
# `group_by[]`; null for usage with no service tier (for example, code execution).
|
|
155
154
|
sig do
|
|
156
155
|
returns(
|
|
157
156
|
T.nilable(
|
|
@@ -186,13 +185,14 @@ module Anthropic
|
|
|
186
185
|
|
|
187
186
|
# User profile the usage was attributed to, as a tagged `uprof_` ID. Populated
|
|
188
187
|
# only when `user_profile_id` is in `group_by[]`; null for usage that named no
|
|
189
|
-
# profile
|
|
188
|
+
# profile.
|
|
190
189
|
sig { returns(T.nilable(String)) }
|
|
191
190
|
attr_accessor :user_profile_id
|
|
192
191
|
|
|
193
|
-
# Workspace the usage occurred in, as a tagged workspace ID, including
|
|
194
|
-
# organization's default workspace. Populated only when `workspace_id` is
|
|
195
|
-
# `group_by[]`; null for Claude Enterprise
|
|
192
|
+
# Workspace the usage occurred in, as a tagged workspace ID, including a Claude
|
|
193
|
+
# Platform organization's default workspace. Populated only when `workspace_id` is
|
|
194
|
+
# in `group_by[]`; null for usage in a Claude Enterprise organization's default
|
|
195
|
+
# workspace, which is its only workspace.
|
|
196
196
|
sig { returns(T.nilable(String)) }
|
|
197
197
|
attr_accessor :workspace_id
|
|
198
198
|
|
|
@@ -327,8 +327,7 @@ module Anthropic
|
|
|
327
327
|
# query without `group_by[]`.
|
|
328
328
|
rbac_group_id:,
|
|
329
329
|
# Service tier the usage was served at. Populated only when `service_tier` is in
|
|
330
|
-
# `group_by[]`; null for usage with no service tier (for example, code execution)
|
|
331
|
-
# and for Claude Enterprise usage.
|
|
330
|
+
# `group_by[]`; null for usage with no service tier (for example, code execution).
|
|
332
331
|
service_tier:,
|
|
333
332
|
# Claude Managed Agents session that incurred the usage. Populated only when
|
|
334
333
|
# `session_id` is in `group_by[]`; null for usage outside a managed session.
|
|
@@ -343,11 +342,12 @@ module Anthropic
|
|
|
343
342
|
speed:,
|
|
344
343
|
# User profile the usage was attributed to, as a tagged `uprof_` ID. Populated
|
|
345
344
|
# only when `user_profile_id` is in `group_by[]`; null for usage that named no
|
|
346
|
-
# profile
|
|
345
|
+
# profile.
|
|
347
346
|
user_profile_id:,
|
|
348
|
-
# Workspace the usage occurred in, as a tagged workspace ID, including
|
|
349
|
-
# organization's default workspace. Populated only when `workspace_id` is
|
|
350
|
-
# `group_by[]`; null for Claude Enterprise
|
|
347
|
+
# Workspace the usage occurred in, as a tagged workspace ID, including a Claude
|
|
348
|
+
# Platform organization's default workspace. Populated only when `workspace_id` is
|
|
349
|
+
# in `group_by[]`; null for usage in a Claude Enterprise organization's default
|
|
350
|
+
# workspace, which is its only workspace.
|
|
351
351
|
workspace_id:
|
|
352
352
|
)
|
|
353
353
|
end
|
|
@@ -45,8 +45,7 @@ module Anthropic
|
|
|
45
45
|
attr_accessor :actor_types
|
|
46
46
|
|
|
47
47
|
# Filter to usage incurred by sessions of specific Claude Managed Agents agents.
|
|
48
|
-
# Use `group_by[]=agent_id` to break out per-agent values.
|
|
49
|
-
# organizations only.
|
|
48
|
+
# Use `group_by[]=agent_id` to break out per-agent values.
|
|
50
49
|
sig { returns(T.nilable(T::Array[String])) }
|
|
51
50
|
attr_accessor :agent_ids
|
|
52
51
|
|
|
@@ -54,7 +53,7 @@ module Anthropic
|
|
|
54
53
|
# (`apikey_...`), whichever identity the usage is attributed to. Include an empty
|
|
55
54
|
# entry (`api_key_ids[]=`) to also match usage that no API key authenticated. Use
|
|
56
55
|
# `group_by[]=api_key_id` to break out per-key values; usage without a key has a
|
|
57
|
-
# null `api_key_id`.
|
|
56
|
+
# null `api_key_id`.
|
|
58
57
|
sig { returns(T.nilable(T::Array[String])) }
|
|
59
58
|
attr_accessor :api_key_ids
|
|
60
59
|
|
|
@@ -94,7 +93,7 @@ module Anthropic
|
|
|
94
93
|
|
|
95
94
|
# Filter to usage incurred by Claude Managed Agents sessions that specific
|
|
96
95
|
# deployments started. Use `group_by[]=deployment_id` to break out per-deployment
|
|
97
|
-
# values.
|
|
96
|
+
# values.
|
|
98
97
|
sig { returns(T.nilable(T::Array[String])) }
|
|
99
98
|
attr_accessor :deployment_ids
|
|
100
99
|
|
|
@@ -106,7 +105,7 @@ module Anthropic
|
|
|
106
105
|
|
|
107
106
|
# Filter to usage incurred by Claude Managed Agents sessions that ran in specific
|
|
108
107
|
# environments. Use `group_by[]=environment_id` to break out per-environment
|
|
109
|
-
# values.
|
|
108
|
+
# values.
|
|
110
109
|
sig { returns(T.nilable(T::Array[String])) }
|
|
111
110
|
attr_accessor :environment_ids
|
|
112
111
|
|
|
@@ -211,8 +210,10 @@ module Anthropic
|
|
|
211
210
|
|
|
212
211
|
# Filter a parent organization's report to specific child organizations, by
|
|
213
212
|
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
214
|
-
# matches nothing.
|
|
215
|
-
#
|
|
213
|
+
# matches nothing. The report leaves out child organizations with HIPAA readiness
|
|
214
|
+
# enabled, and naming one returns a 400 error. Requires an API key created at the
|
|
215
|
+
# parent organization level. Use `group_by[]=organization_id` to break out
|
|
216
|
+
# per-organization values.
|
|
216
217
|
sig { returns(T.nilable(T::Array[String])) }
|
|
217
218
|
attr_accessor :organization_ids
|
|
218
219
|
|
|
@@ -240,8 +241,7 @@ module Anthropic
|
|
|
240
241
|
attr_accessor :rbac_group_ids
|
|
241
242
|
|
|
242
243
|
# Filter to specific service tiers. Use `group_by[]=service_tier` to break out
|
|
243
|
-
# per-tier values.
|
|
244
|
-
# Claude Enterprise organization.
|
|
244
|
+
# per-tier values.
|
|
245
245
|
sig do
|
|
246
246
|
returns(
|
|
247
247
|
T.nilable(
|
|
@@ -255,7 +255,7 @@ module Anthropic
|
|
|
255
255
|
|
|
256
256
|
# Filter to usage incurred by specific Claude Managed Agents sessions, by tagged
|
|
257
257
|
# session ID (`sesn_...`). Use `group_by[]=session_id` to break out per-session
|
|
258
|
-
# values.
|
|
258
|
+
# values.
|
|
259
259
|
sig { returns(T.nilable(T::Array[String])) }
|
|
260
260
|
attr_accessor :session_ids
|
|
261
261
|
|
|
@@ -295,13 +295,11 @@ module Anthropic
|
|
|
295
295
|
|
|
296
296
|
# Filter to usage attributed to specific user profiles, by tagged user profile ID
|
|
297
297
|
# (`uprof_...`). Use `group_by[]=user_profile_id` to break out per-profile values.
|
|
298
|
-
# Claude Platform organizations only.
|
|
299
298
|
sig { returns(T.nilable(T::Array[String])) }
|
|
300
299
|
attr_accessor :user_profile_ids
|
|
301
300
|
|
|
302
301
|
# Filter to usage in specific workspaces, by tagged workspace ID (`wrkspc_...`).
|
|
303
|
-
# Use `group_by[]=workspace_id` to break out per-workspace values.
|
|
304
|
-
# organizations only; matches nothing for a Claude Enterprise organization.
|
|
302
|
+
# Use `group_by[]=workspace_id` to break out per-workspace values.
|
|
305
303
|
sig { returns(T.nilable(T::Array[String])) }
|
|
306
304
|
attr_accessor :workspace_ids
|
|
307
305
|
|
|
@@ -420,14 +418,13 @@ module Anthropic
|
|
|
420
418
|
# `group_by[]=actor_type` to break out per-kind values.
|
|
421
419
|
actor_types: nil,
|
|
422
420
|
# Filter to usage incurred by sessions of specific Claude Managed Agents agents.
|
|
423
|
-
# Use `group_by[]=agent_id` to break out per-agent values.
|
|
424
|
-
# organizations only.
|
|
421
|
+
# Use `group_by[]=agent_id` to break out per-agent values.
|
|
425
422
|
agent_ids: nil,
|
|
426
423
|
# Filter to usage authenticated by specific API keys, by tagged API key ID
|
|
427
424
|
# (`apikey_...`), whichever identity the usage is attributed to. Include an empty
|
|
428
425
|
# entry (`api_key_ids[]=`) to also match usage that no API key authenticated. Use
|
|
429
426
|
# `group_by[]=api_key_id` to break out per-key values; usage without a key has a
|
|
430
|
-
# null `api_key_id`.
|
|
427
|
+
# null `api_key_id`.
|
|
431
428
|
api_key_ids: nil,
|
|
432
429
|
# Filter to Claude Tag (Claude in Slack) usage in specific spend categories. Usage
|
|
433
430
|
# with no category never matches. Use `group_by[]=claude_tag_category` to break
|
|
@@ -443,7 +440,7 @@ module Anthropic
|
|
|
443
440
|
context_windows: nil,
|
|
444
441
|
# Filter to usage incurred by Claude Managed Agents sessions that specific
|
|
445
442
|
# deployments started. Use `group_by[]=deployment_id` to break out per-deployment
|
|
446
|
-
# values.
|
|
443
|
+
# values.
|
|
447
444
|
deployment_ids: nil,
|
|
448
445
|
# End of range, exclusive. Required when `time_bucket_width` is set. Without
|
|
449
446
|
# `time_bucket_width`, defaults to the earlier of now and `starting_at` + 31 days.
|
|
@@ -451,7 +448,7 @@ module Anthropic
|
|
|
451
448
|
ending_at: nil,
|
|
452
449
|
# Filter to usage incurred by Claude Managed Agents sessions that ran in specific
|
|
453
450
|
# environments. Use `group_by[]=environment_id` to break out per-environment
|
|
454
|
-
# values.
|
|
451
|
+
# values.
|
|
455
452
|
environment_ids: nil,
|
|
456
453
|
# If true, omit rows whose `actor` is a `user_actor` with `deleted: true`.
|
|
457
454
|
# Requires `group_by[]=actor`. Rows for other actor types, and rows whose `actor`
|
|
@@ -490,8 +487,10 @@ module Anthropic
|
|
|
490
487
|
order_by: nil,
|
|
491
488
|
# Filter a parent organization's report to specific child organizations, by
|
|
492
489
|
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
493
|
-
# matches nothing.
|
|
494
|
-
#
|
|
490
|
+
# matches nothing. The report leaves out child organizations with HIPAA readiness
|
|
491
|
+
# enabled, and naming one returns a 400 error. Requires an API key created at the
|
|
492
|
+
# parent organization level. Use `group_by[]=organization_id` to break out
|
|
493
|
+
# per-organization values.
|
|
495
494
|
organization_ids: nil,
|
|
496
495
|
# Opaque cursor from a previous response's `next_page` field.
|
|
497
496
|
page: nil,
|
|
@@ -503,12 +502,11 @@ module Anthropic
|
|
|
503
502
|
# group attribution never matches.
|
|
504
503
|
rbac_group_ids: nil,
|
|
505
504
|
# Filter to specific service tiers. Use `group_by[]=service_tier` to break out
|
|
506
|
-
# per-tier values.
|
|
507
|
-
# Claude Enterprise organization.
|
|
505
|
+
# per-tier values.
|
|
508
506
|
service_tiers: nil,
|
|
509
507
|
# Filter to usage incurred by specific Claude Managed Agents sessions, by tagged
|
|
510
508
|
# session ID (`sesn_...`). Use `group_by[]=session_id` to break out per-session
|
|
511
|
-
# values.
|
|
509
|
+
# values.
|
|
512
510
|
session_ids: nil,
|
|
513
511
|
# Filter to usage originating from specific Slack channels. Use
|
|
514
512
|
# `group_by[]=slack_channel_id` to break out per-channel values.
|
|
@@ -526,11 +524,9 @@ module Anthropic
|
|
|
526
524
|
time_bucket_width: nil,
|
|
527
525
|
# Filter to usage attributed to specific user profiles, by tagged user profile ID
|
|
528
526
|
# (`uprof_...`). Use `group_by[]=user_profile_id` to break out per-profile values.
|
|
529
|
-
# Claude Platform organizations only.
|
|
530
527
|
user_profile_ids: nil,
|
|
531
528
|
# Filter to usage in specific workspaces, by tagged workspace ID (`wrkspc_...`).
|
|
532
|
-
# Use `group_by[]=workspace_id` to break out per-workspace values.
|
|
533
|
-
# organizations only; matches nothing for a Claude Enterprise organization.
|
|
529
|
+
# Use `group_by[]=workspace_id` to break out per-workspace values.
|
|
534
530
|
workspace_ids: nil,
|
|
535
531
|
# This endpoint is in beta: requests must send `analytics-usage-cost-2026-08-24`
|
|
536
532
|
# in this header.
|
|
@@ -45,8 +45,7 @@ module Anthropic
|
|
|
45
45
|
attr_accessor :actor_types
|
|
46
46
|
|
|
47
47
|
# Filter to usage incurred by sessions of specific Claude Managed Agents agents.
|
|
48
|
-
# Use `group_by[]=agent_id` to break out per-agent values.
|
|
49
|
-
# organizations only.
|
|
48
|
+
# Use `group_by[]=agent_id` to break out per-agent values.
|
|
50
49
|
sig { returns(T.nilable(T::Array[String])) }
|
|
51
50
|
attr_accessor :agent_ids
|
|
52
51
|
|
|
@@ -54,7 +53,7 @@ module Anthropic
|
|
|
54
53
|
# (`apikey_...`), whichever identity the usage is attributed to. Include an empty
|
|
55
54
|
# entry (`api_key_ids[]=`) to also match usage that no API key authenticated. Use
|
|
56
55
|
# `group_by[]=api_key_id` to break out per-key values; usage without a key has a
|
|
57
|
-
# null `api_key_id`.
|
|
56
|
+
# null `api_key_id`.
|
|
58
57
|
sig { returns(T.nilable(T::Array[String])) }
|
|
59
58
|
attr_accessor :api_key_ids
|
|
60
59
|
|
|
@@ -94,7 +93,7 @@ module Anthropic
|
|
|
94
93
|
|
|
95
94
|
# Filter to usage incurred by Claude Managed Agents sessions that specific
|
|
96
95
|
# deployments started. Use `group_by[]=deployment_id` to break out per-deployment
|
|
97
|
-
# values.
|
|
96
|
+
# values.
|
|
98
97
|
sig { returns(T.nilable(T::Array[String])) }
|
|
99
98
|
attr_accessor :deployment_ids
|
|
100
99
|
|
|
@@ -106,7 +105,7 @@ module Anthropic
|
|
|
106
105
|
|
|
107
106
|
# Filter to usage incurred by Claude Managed Agents sessions that ran in specific
|
|
108
107
|
# environments. Use `group_by[]=environment_id` to break out per-environment
|
|
109
|
-
# values.
|
|
108
|
+
# values.
|
|
110
109
|
sig { returns(T.nilable(T::Array[String])) }
|
|
111
110
|
attr_accessor :environment_ids
|
|
112
111
|
|
|
@@ -205,8 +204,10 @@ module Anthropic
|
|
|
205
204
|
|
|
206
205
|
# Filter a parent organization's report to specific child organizations, by
|
|
207
206
|
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
208
|
-
# matches nothing.
|
|
209
|
-
#
|
|
207
|
+
# matches nothing. The report leaves out child organizations with HIPAA readiness
|
|
208
|
+
# enabled, and naming one returns a 400 error. Requires an API key created at the
|
|
209
|
+
# parent organization level. Use `group_by[]=organization_id` to break out
|
|
210
|
+
# per-organization values.
|
|
210
211
|
sig { returns(T.nilable(T::Array[String])) }
|
|
211
212
|
attr_accessor :organization_ids
|
|
212
213
|
|
|
@@ -234,8 +235,7 @@ module Anthropic
|
|
|
234
235
|
attr_accessor :rbac_group_ids
|
|
235
236
|
|
|
236
237
|
# Filter to specific service tiers. Use `group_by[]=service_tier` to break out
|
|
237
|
-
# per-tier values.
|
|
238
|
-
# Claude Enterprise organization.
|
|
238
|
+
# per-tier values.
|
|
239
239
|
sig do
|
|
240
240
|
returns(
|
|
241
241
|
T.nilable(
|
|
@@ -249,7 +249,7 @@ module Anthropic
|
|
|
249
249
|
|
|
250
250
|
# Filter to usage incurred by specific Claude Managed Agents sessions, by tagged
|
|
251
251
|
# session ID (`sesn_...`). Use `group_by[]=session_id` to break out per-session
|
|
252
|
-
# values.
|
|
252
|
+
# values.
|
|
253
253
|
sig { returns(T.nilable(T::Array[String])) }
|
|
254
254
|
attr_accessor :session_ids
|
|
255
255
|
|
|
@@ -289,13 +289,11 @@ module Anthropic
|
|
|
289
289
|
|
|
290
290
|
# Filter to usage attributed to specific user profiles, by tagged user profile ID
|
|
291
291
|
# (`uprof_...`). Use `group_by[]=user_profile_id` to break out per-profile values.
|
|
292
|
-
# Claude Platform organizations only.
|
|
293
292
|
sig { returns(T.nilable(T::Array[String])) }
|
|
294
293
|
attr_accessor :user_profile_ids
|
|
295
294
|
|
|
296
295
|
# Filter to usage in specific workspaces, by tagged workspace ID (`wrkspc_...`).
|
|
297
|
-
# Use `group_by[]=workspace_id` to break out per-workspace values.
|
|
298
|
-
# organizations only; matches nothing for a Claude Enterprise organization.
|
|
296
|
+
# Use `group_by[]=workspace_id` to break out per-workspace values.
|
|
299
297
|
sig { returns(T.nilable(T::Array[String])) }
|
|
300
298
|
attr_accessor :workspace_ids
|
|
301
299
|
|
|
@@ -414,14 +412,13 @@ module Anthropic
|
|
|
414
412
|
# `group_by[]=actor_type` to break out per-kind values.
|
|
415
413
|
actor_types: nil,
|
|
416
414
|
# Filter to usage incurred by sessions of specific Claude Managed Agents agents.
|
|
417
|
-
# Use `group_by[]=agent_id` to break out per-agent values.
|
|
418
|
-
# organizations only.
|
|
415
|
+
# Use `group_by[]=agent_id` to break out per-agent values.
|
|
419
416
|
agent_ids: nil,
|
|
420
417
|
# Filter to usage authenticated by specific API keys, by tagged API key ID
|
|
421
418
|
# (`apikey_...`), whichever identity the usage is attributed to. Include an empty
|
|
422
419
|
# entry (`api_key_ids[]=`) to also match usage that no API key authenticated. Use
|
|
423
420
|
# `group_by[]=api_key_id` to break out per-key values; usage without a key has a
|
|
424
|
-
# null `api_key_id`.
|
|
421
|
+
# null `api_key_id`.
|
|
425
422
|
api_key_ids: nil,
|
|
426
423
|
# Filter to Claude Tag (Claude in Slack) usage in specific spend categories. Usage
|
|
427
424
|
# with no category never matches. Use `group_by[]=claude_tag_category` to break
|
|
@@ -437,7 +434,7 @@ module Anthropic
|
|
|
437
434
|
context_windows: nil,
|
|
438
435
|
# Filter to usage incurred by Claude Managed Agents sessions that specific
|
|
439
436
|
# deployments started. Use `group_by[]=deployment_id` to break out per-deployment
|
|
440
|
-
# values.
|
|
437
|
+
# values.
|
|
441
438
|
deployment_ids: nil,
|
|
442
439
|
# End of range, exclusive. Required when `time_bucket_width` is set. Without
|
|
443
440
|
# `time_bucket_width`, defaults to the earlier of now and `starting_at` + 31 days.
|
|
@@ -445,7 +442,7 @@ module Anthropic
|
|
|
445
442
|
ending_at: nil,
|
|
446
443
|
# Filter to usage incurred by Claude Managed Agents sessions that ran in specific
|
|
447
444
|
# environments. Use `group_by[]=environment_id` to break out per-environment
|
|
448
|
-
# values.
|
|
445
|
+
# values.
|
|
449
446
|
environment_ids: nil,
|
|
450
447
|
# If true, omit rows whose `actor` is a `user_actor` with `deleted: true`.
|
|
451
448
|
# Requires `group_by[]=actor`. Rows for other actor types, and rows whose `actor`
|
|
@@ -478,8 +475,10 @@ module Anthropic
|
|
|
478
475
|
order_by: nil,
|
|
479
476
|
# Filter a parent organization's report to specific child organizations, by
|
|
480
477
|
# organization UUID or `org_` ID; an ID that is not one of its child organizations
|
|
481
|
-
# matches nothing.
|
|
482
|
-
#
|
|
478
|
+
# matches nothing. The report leaves out child organizations with HIPAA readiness
|
|
479
|
+
# enabled, and naming one returns a 400 error. Requires an API key created at the
|
|
480
|
+
# parent organization level. Use `group_by[]=organization_id` to break out
|
|
481
|
+
# per-organization values.
|
|
483
482
|
organization_ids: nil,
|
|
484
483
|
# Opaque cursor from a previous response's `next_page` field.
|
|
485
484
|
page: nil,
|
|
@@ -491,12 +490,11 @@ module Anthropic
|
|
|
491
490
|
# group attribution never matches.
|
|
492
491
|
rbac_group_ids: nil,
|
|
493
492
|
# Filter to specific service tiers. Use `group_by[]=service_tier` to break out
|
|
494
|
-
# per-tier values.
|
|
495
|
-
# Claude Enterprise organization.
|
|
493
|
+
# per-tier values.
|
|
496
494
|
service_tiers: nil,
|
|
497
495
|
# Filter to usage incurred by specific Claude Managed Agents sessions, by tagged
|
|
498
496
|
# session ID (`sesn_...`). Use `group_by[]=session_id` to break out per-session
|
|
499
|
-
# values.
|
|
497
|
+
# values.
|
|
500
498
|
session_ids: nil,
|
|
501
499
|
# Filter to usage originating from specific Slack channels. Use
|
|
502
500
|
# `group_by[]=slack_channel_id` to break out per-channel values.
|
|
@@ -514,11 +512,9 @@ module Anthropic
|
|
|
514
512
|
time_bucket_width: nil,
|
|
515
513
|
# Filter to usage attributed to specific user profiles, by tagged user profile ID
|
|
516
514
|
# (`uprof_...`). Use `group_by[]=user_profile_id` to break out per-profile values.
|
|
517
|
-
# Claude Platform organizations only.
|
|
518
515
|
user_profile_ids: nil,
|
|
519
516
|
# Filter to usage in specific workspaces, by tagged workspace ID (`wrkspc_...`).
|
|
520
|
-
# Use `group_by[]=workspace_id` to break out per-workspace values.
|
|
521
|
-
# organizations only; matches nothing for a Claude Enterprise organization.
|
|
517
|
+
# Use `group_by[]=workspace_id` to break out per-workspace values.
|
|
522
518
|
workspace_ids: nil,
|
|
523
519
|
# This endpoint is in beta: requests must send `analytics-usage-cost-2026-08-24`
|
|
524
520
|
# in this header.
|