anthropic 2.2.0 → 2.3.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 +34 -0
- data/README.md +2 -2
- data/lib/anthropic/client.rb +1 -1
- data/lib/anthropic/helpers/bedrock/client.rb +6 -3
- data/lib/anthropic/helpers/google_cloud/client.rb +9 -25
- data/lib/anthropic/helpers/refusal_fallback.rb +1 -2
- data/lib/anthropic/helpers/stainless_helper_header.rb +3 -2
- data/lib/anthropic/internal/tracing.rb +20 -0
- data/lib/anthropic/internal/transport/base_client.rb +16 -2
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/beta_code_execution_tool_20260120.rb +10 -2
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_content.rb +5 -1
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_param_content.rb +1 -1
- data/lib/anthropic/models/beta/beta_encrypted_code_execution_result_block.rb +9 -1
- data/lib/anthropic/models/beta/beta_encrypted_code_execution_result_block_param.rb +2 -1
- data/lib/anthropic/models/beta/beta_response_tool_union.rb +5 -1
- data/lib/anthropic/models/beta/beta_skill_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_tool_union.rb +5 -1
- data/lib/anthropic/models/beta/environments/beta_self_hosted_work_heartbeat_response.rb +7 -2
- data/lib/anthropic/models/beta/environments/beta_self_hosted_work_queue_stats.rb +2 -4
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +5 -1
- data/lib/anthropic/models/beta/organization/beta_claude_tag_default_setting_source.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy.rb +63 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_source.rb +87 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rb +72 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_settings.rb +70 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_create.rb +67 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_update.rb +67 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_channel_identifiers.rb +37 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_channel_setting_source.rb +29 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_default_setting_source.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_grid_channel_setting_source.rb +31 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_parent_channel_setting_source.rb +30 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_identifiers.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_setting_source.rb +29 -0
- data/lib/anthropic/models/beta/organization/beta_external_key.rb +3 -3
- data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rb +66 -0
- data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_deleted_slack_channel.rb +32 -0
- data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel.rb +87 -0
- data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_workspace.rb +86 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundle_list_params.rb +49 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundle_retrieve_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target.rb +76 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target_create.rb +70 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_deleted_bundle_target.rb +34 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target.rb +57 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target_create.rb +38 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target.rb +57 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target_create.rb +38 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_create_params.rb +43 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_delete_params.rb +53 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_list_params.rb +59 -0
- data/lib/anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params.rb +53 -0
- data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_create_params.rb +50 -0
- data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_delete_params.rb +41 -0
- data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_list_params.rb +79 -0
- data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_retrieve_params.rb +52 -0
- data/lib/anthropic/models/beta/organization/claude_tag/slack_channel_update_params.rb +49 -0
- data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_list_params.rb +70 -0
- data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_retrieve_params.rb +52 -0
- data/lib/anthropic/models/beta/organization/claude_tag/slack_workspace_update_params.rb +49 -0
- data/lib/anthropic/models/code_execution_tool_20260120.rb +10 -2
- data/lib/anthropic/models/code_execution_tool_result_block_content.rb +5 -1
- data/lib/anthropic/models/code_execution_tool_result_block_param_content.rb +1 -1
- data/lib/anthropic/models/encrypted_code_execution_result_block.rb +9 -1
- data/lib/anthropic/models/encrypted_code_execution_result_block_param.rb +2 -1
- data/lib/anthropic/models/message_count_tokens_tool.rb +5 -1
- data/lib/anthropic/models/organization/external_key.rb +3 -3
- data/lib/anthropic/models/skill_params.rb +1 -1
- data/lib/anthropic/models/tool_union.rb +5 -1
- data/lib/anthropic/resources/beta/agents/versions.rb +2 -1
- data/lib/anthropic/resources/beta/agents.rb +10 -5
- data/lib/anthropic/resources/beta/deployment_runs.rb +4 -2
- data/lib/anthropic/resources/beta/deployments.rb +16 -8
- data/lib/anthropic/resources/beta/dreams.rb +10 -5
- data/lib/anthropic/resources/beta/environments/work.rb +16 -8
- data/lib/anthropic/resources/beta/environments.rb +12 -6
- data/lib/anthropic/resources/beta/files.rb +10 -5
- data/lib/anthropic/resources/beta/memory_stores/memories.rb +10 -5
- data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +6 -11
- data/lib/anthropic/resources/beta/memory_stores.rb +12 -6
- data/lib/anthropic/resources/beta/messages/batches.rb +12 -6
- data/lib/anthropic/resources/beta/messages.rb +6 -3
- data/lib/anthropic/resources/beta/models.rb +4 -2
- data/lib/anthropic/resources/beta/organization/analytics/apps/chat/projects.rb +2 -1
- data/lib/anthropic/resources/beta/organization/analytics/artifacts.rb +2 -1
- data/lib/anthropic/resources/beta/organization/analytics/connectors.rb +2 -1
- data/lib/anthropic/resources/beta/organization/analytics/cost.rb +2 -1
- data/lib/anthropic/resources/beta/organization/analytics/cost_report.rb +2 -1
- data/lib/anthropic/resources/beta/organization/analytics/plugins.rb +2 -1
- data/lib/anthropic/resources/beta/organization/analytics/skills.rb +2 -1
- data/lib/anthropic/resources/beta/organization/analytics/summaries.rb +2 -1
- data/lib/anthropic/resources/beta/organization/analytics/usage.rb +2 -1
- data/lib/anthropic/resources/beta/organization/analytics/usage_report.rb +2 -1
- data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +5 -4
- data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +5 -4
- data/lib/anthropic/resources/beta/organization/analytics/users.rb +2 -1
- data/lib/anthropic/resources/beta/organization/api_keys.rb +6 -3
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles/targets.rb +204 -0
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +102 -0
- data/lib/anthropic/resources/beta/organization/claude_tag/slack_channels.rb +263 -0
- data/lib/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rb +162 -0
- data/lib/anthropic/resources/beta/organization/claude_tag.rb +31 -0
- data/lib/anthropic/resources/beta/organization/compliance_settings.rb +4 -2
- data/lib/anthropic/resources/beta/organization/external_keys.rb +12 -6
- data/lib/anthropic/resources/beta/organization/federation/issuers.rb +10 -5
- data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +6 -3
- data/lib/anthropic/resources/beta/organization/federation/rules.rb +10 -5
- data/lib/anthropic/resources/beta/organization/invites.rb +8 -4
- data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +10 -5
- data/lib/anthropic/resources/beta/organization/plugins/installation_settings.rb +6 -11
- data/lib/anthropic/resources/beta/organization/plugins/shares.rb +2 -1
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +8 -4
- data/lib/anthropic/resources/beta/organization/plugins.rb +10 -5
- data/lib/anthropic/resources/beta/organization/rate_limits.rb +2 -1
- data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +6 -3
- data/lib/anthropic/resources/beta/organization/rbac_groups.rb +10 -5
- data/lib/anthropic/resources/beta/organization/rbac_roles/permissions.rb +2 -1
- data/lib/anthropic/resources/beta/organization/rbac_roles.rb +4 -2
- data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +6 -3
- data/lib/anthropic/resources/beta/organization/service_accounts.rb +10 -5
- data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +2 -1
- data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +8 -4
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +8 -4
- data/lib/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rb +6 -3
- data/lib/anthropic/resources/beta/organization/telemetry_destinations.rb +12 -6
- data/lib/anthropic/resources/beta/organization/users.rb +8 -4
- data/lib/anthropic/resources/beta/organization/webhooks.rb +12 -9
- data/lib/anthropic/resources/beta/organization/workspaces/members.rb +10 -5
- data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +4 -6
- data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +10 -5
- data/lib/anthropic/resources/beta/organization/workspaces.rb +10 -5
- data/lib/anthropic/resources/beta/organization.rb +6 -1
- data/lib/anthropic/resources/beta/sessions/events.rb +6 -3
- data/lib/anthropic/resources/beta/sessions/resources.rb +10 -5
- data/lib/anthropic/resources/beta/sessions/threads/events.rb +4 -2
- data/lib/anthropic/resources/beta/sessions/threads.rb +6 -3
- data/lib/anthropic/resources/beta/sessions.rb +12 -6
- data/lib/anthropic/resources/beta/skills/versions.rb +10 -5
- data/lib/anthropic/resources/beta/skills.rb +8 -4
- data/lib/anthropic/resources/beta/tunnels/certificates.rb +8 -4
- data/lib/anthropic/resources/beta/tunnels.rb +12 -6
- data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +2 -1
- data/lib/anthropic/resources/beta/user_profiles.rb +12 -6
- data/lib/anthropic/resources/beta/vaults/credentials.rb +14 -7
- data/lib/anthropic/resources/beta/vaults.rb +12 -6
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +47 -0
- data/rbi/anthropic/helpers/google_cloud/client.rbi +0 -4
- data/rbi/anthropic/internal/tracing.rbi +28 -0
- data/rbi/anthropic/internal/transport/base_client.rbi +5 -1
- data/rbi/anthropic/internal/type/base_page.rbi +2 -0
- data/rbi/anthropic/internal/type/base_stream.rbi +2 -0
- data/rbi/anthropic/internal/type/request_parameters.rbi +4 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
- data/rbi/anthropic/models/beta/beta_code_execution_tool_20260120.rbi +10 -2
- data/rbi/anthropic/models/beta/beta_encrypted_code_execution_result_block.rbi +9 -1
- data/rbi/anthropic/models/beta/beta_encrypted_code_execution_result_block_param.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_skill_params.rbi +1 -1
- data/rbi/anthropic/models/beta/environments/beta_self_hosted_work_heartbeat_response.rbi +4 -2
- data/rbi/anthropic/models/beta/environments/beta_self_hosted_work_queue_stats.rbi +2 -4
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_default_setting_source.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy.rbi +87 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_source.rbi +115 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbi +178 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings.rbi +108 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbi +110 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbi +110 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_channel_identifiers.rbi +50 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_channel_setting_source.rbi +43 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_default_setting_source.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_grid_channel_setting_source.rbi +67 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_parent_channel_setting_source.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_identifiers.rbi +36 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_setting_source.rbi +43 -0
- data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbi +87 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_deleted_slack_channel.rbi +41 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel.rbi +154 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_workspace.rbi +151 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundle_list_params.rbi +92 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundle_retrieve_params.rbi +78 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target.rbi +102 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target_create.rbi +92 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_deleted_bundle_target.rbi +43 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target.rbi +78 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target_create.rbi +51 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target.rbi +78 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target_create.rbi +51 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_create_params.rbi +82 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_delete_params.rbi +94 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_list_params.rbi +104 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params.rbi +94 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_create_params.rbi +118 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_delete_params.rbi +78 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_list_params.rbi +134 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_retrieve_params.rbi +95 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/slack_channel_update_params.rbi +100 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/slack_workspace_list_params.rbi +124 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/slack_workspace_retrieve_params.rbi +95 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/slack_workspace_update_params.rbi +100 -0
- data/rbi/anthropic/models/code_execution_tool_20260120.rbi +10 -2
- data/rbi/anthropic/models/encrypted_code_execution_result_block.rbi +9 -1
- data/rbi/anthropic/models/encrypted_code_execution_result_block_param.rbi +2 -1
- data/rbi/anthropic/models/organization/external_key.rbi +4 -4
- data/rbi/anthropic/models/skill_params.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/analytics/user_cost_report.rbi +3 -3
- data/rbi/anthropic/resources/beta/organization/analytics/user_usage_report.rbi +3 -3
- data/rbi/anthropic/resources/beta/organization/claude_tag/bundles/targets.rbi +140 -0
- data/rbi/anthropic/resources/beta/organization/claude_tag/bundles.rbi +75 -0
- data/rbi/anthropic/resources/beta/organization/claude_tag/slack_channels.rbi +203 -0
- data/rbi/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rbi +123 -0
- data/rbi/anthropic/resources/beta/organization/claude_tag.rbi +37 -0
- data/rbi/anthropic/resources/beta/organization.rbi +3 -0
- data/sig/anthropic/helpers/google_cloud/client.rbs +0 -2
- data/sig/anthropic/internal/tracing.rbs +14 -0
- data/sig/anthropic/internal/transport/base_client.rbs +3 -0
- data/sig/anthropic/internal/type/request_parameters.rbs +2 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_default_setting_source.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy.rbs +45 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_source.rbs +73 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbs +44 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_settings.rbs +44 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbs +44 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbs +44 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_channel_identifiers.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_channel_setting_source.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_default_setting_source.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_grid_channel_setting_source.rbs +29 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_parent_channel_setting_source.rbs +26 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_identifiers.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_slack_workspace_setting_source.rbs +23 -0
- data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbs +51 -0
- data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_deleted_slack_channel.rbs +22 -0
- data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel.rbs +56 -0
- data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_workspace.rbs +56 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundle_list_params.rbs +50 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundle_retrieve_params.rbs +41 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target.rbs +54 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target_create.rbs +48 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_deleted_bundle_target.rbs +27 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target.rbs +43 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_channel_bundle_target_create.rbs +27 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target.rbs +43 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_slack_workspace_bundle_target_create.rbs +30 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_create_params.rbs +43 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_delete_params.rbs +48 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_list_params.rbs +57 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params.rbs +48 -0
- data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_create_params.rbs +50 -0
- data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_delete_params.rbs +38 -0
- data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_list_params.rbs +69 -0
- data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_retrieve_params.rbs +48 -0
- data/sig/anthropic/models/beta/organization/claude_tag/slack_channel_update_params.rbs +46 -0
- data/sig/anthropic/models/beta/organization/claude_tag/slack_workspace_list_params.rbs +64 -0
- data/sig/anthropic/models/beta/organization/claude_tag/slack_workspace_retrieve_params.rbs +48 -0
- data/sig/anthropic/models/beta/organization/claude_tag/slack_workspace_update_params.rbs +46 -0
- data/sig/anthropic/resources/beta/organization/claude_tag/bundles/targets.rbs +44 -0
- data/sig/anthropic/resources/beta/organization/claude_tag/bundles.rbs +28 -0
- data/sig/anthropic/resources/beta/organization/claude_tag/slack_channels.rbs +50 -0
- data/sig/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rbs +36 -0
- data/sig/anthropic/resources/beta/organization/claude_tag.rbs +17 -0
- data/sig/anthropic/resources/beta/organization.rbs +2 -0
- metadata +142 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
class SlackChannelUpdateParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
OrHash =
|
|
13
|
+
T.type_alias do
|
|
14
|
+
T.any(
|
|
15
|
+
Anthropic::Beta::Organization::ClaudeTag::SlackChannelUpdateParams,
|
|
16
|
+
Anthropic::Internal::AnyHash
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# The channel's identifier, starting with `slch_`.
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :id
|
|
23
|
+
|
|
24
|
+
# The settings to change.
|
|
25
|
+
sig do
|
|
26
|
+
returns(
|
|
27
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
attr_reader :settings
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
settings:
|
|
35
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate::OrHash
|
|
36
|
+
).void
|
|
37
|
+
end
|
|
38
|
+
attr_writer :settings
|
|
39
|
+
|
|
40
|
+
# This endpoint is in beta: requests must send
|
|
41
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
42
|
+
sig do
|
|
43
|
+
returns(
|
|
44
|
+
T.nilable(
|
|
45
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
attr_reader :betas
|
|
50
|
+
|
|
51
|
+
sig do
|
|
52
|
+
params(
|
|
53
|
+
betas:
|
|
54
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
55
|
+
).void
|
|
56
|
+
end
|
|
57
|
+
attr_writer :betas
|
|
58
|
+
|
|
59
|
+
sig do
|
|
60
|
+
params(
|
|
61
|
+
id: String,
|
|
62
|
+
settings:
|
|
63
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate::OrHash,
|
|
64
|
+
betas:
|
|
65
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
66
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
67
|
+
).returns(T.attached_class)
|
|
68
|
+
end
|
|
69
|
+
def self.new(
|
|
70
|
+
# The channel's identifier, starting with `slch_`.
|
|
71
|
+
id:,
|
|
72
|
+
# The settings to change.
|
|
73
|
+
settings:,
|
|
74
|
+
# This endpoint is in beta: requests must send
|
|
75
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
76
|
+
betas: nil,
|
|
77
|
+
request_options: {}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
sig do
|
|
82
|
+
override.returns(
|
|
83
|
+
{
|
|
84
|
+
id: String,
|
|
85
|
+
settings:
|
|
86
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate,
|
|
87
|
+
betas:
|
|
88
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
89
|
+
request_options: Anthropic::RequestOptions
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
def to_hash
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
class SlackWorkspaceListParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
OrHash =
|
|
13
|
+
T.type_alias do
|
|
14
|
+
T.any(
|
|
15
|
+
Anthropic::Beta::Organization::ClaudeTag::SlackWorkspaceListParams,
|
|
16
|
+
Anthropic::Internal::AnyHash
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# When `true`, `settings` holds what applies in each workspace once the
|
|
21
|
+
# organization's Slack defaults are taken into account, and every member of
|
|
22
|
+
# `sources` names the level a value comes from. When `false` or left out,
|
|
23
|
+
# `settings` holds what each workspace itself stores.
|
|
24
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
25
|
+
attr_reader :include_inherited
|
|
26
|
+
|
|
27
|
+
sig { params(include_inherited: T::Boolean).void }
|
|
28
|
+
attr_writer :include_inherited
|
|
29
|
+
|
|
30
|
+
# Number of items to return per page, between 1 and 100. Defaults to 20.
|
|
31
|
+
sig { returns(T.nilable(Integer)) }
|
|
32
|
+
attr_reader :limit
|
|
33
|
+
|
|
34
|
+
sig { params(limit: Integer).void }
|
|
35
|
+
attr_writer :limit
|
|
36
|
+
|
|
37
|
+
# Opaque cursor from a previous response's `next_page`.
|
|
38
|
+
sig { returns(T.nilable(String)) }
|
|
39
|
+
attr_reader :page
|
|
40
|
+
|
|
41
|
+
sig { params(page: String).void }
|
|
42
|
+
attr_writer :page
|
|
43
|
+
|
|
44
|
+
# Slack's identifier for one workspace, as in the workspace object's
|
|
45
|
+
# `slack.workspace_id`, not its `id`. With it `data` holds that workspace alone,
|
|
46
|
+
# or nothing when it is not set up.
|
|
47
|
+
sig { returns(T.nilable(String)) }
|
|
48
|
+
attr_reader :slack_workspace_id
|
|
49
|
+
|
|
50
|
+
sig { params(slack_workspace_id: String).void }
|
|
51
|
+
attr_writer :slack_workspace_id
|
|
52
|
+
|
|
53
|
+
# This endpoint is in beta: requests must send
|
|
54
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
55
|
+
sig do
|
|
56
|
+
returns(
|
|
57
|
+
T.nilable(
|
|
58
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
59
|
+
)
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
attr_reader :betas
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
params(
|
|
66
|
+
betas:
|
|
67
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
68
|
+
).void
|
|
69
|
+
end
|
|
70
|
+
attr_writer :betas
|
|
71
|
+
|
|
72
|
+
sig do
|
|
73
|
+
params(
|
|
74
|
+
include_inherited: T::Boolean,
|
|
75
|
+
limit: Integer,
|
|
76
|
+
page: String,
|
|
77
|
+
slack_workspace_id: String,
|
|
78
|
+
betas:
|
|
79
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
80
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
81
|
+
).returns(T.attached_class)
|
|
82
|
+
end
|
|
83
|
+
def self.new(
|
|
84
|
+
# When `true`, `settings` holds what applies in each workspace once the
|
|
85
|
+
# organization's Slack defaults are taken into account, and every member of
|
|
86
|
+
# `sources` names the level a value comes from. When `false` or left out,
|
|
87
|
+
# `settings` holds what each workspace itself stores.
|
|
88
|
+
include_inherited: nil,
|
|
89
|
+
# Number of items to return per page, between 1 and 100. Defaults to 20.
|
|
90
|
+
limit: nil,
|
|
91
|
+
# Opaque cursor from a previous response's `next_page`.
|
|
92
|
+
page: nil,
|
|
93
|
+
# Slack's identifier for one workspace, as in the workspace object's
|
|
94
|
+
# `slack.workspace_id`, not its `id`. With it `data` holds that workspace alone,
|
|
95
|
+
# or nothing when it is not set up.
|
|
96
|
+
slack_workspace_id: nil,
|
|
97
|
+
# This endpoint is in beta: requests must send
|
|
98
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
99
|
+
betas: nil,
|
|
100
|
+
request_options: {}
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
sig do
|
|
105
|
+
override.returns(
|
|
106
|
+
{
|
|
107
|
+
include_inherited: T::Boolean,
|
|
108
|
+
limit: Integer,
|
|
109
|
+
page: String,
|
|
110
|
+
slack_workspace_id: String,
|
|
111
|
+
betas:
|
|
112
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
113
|
+
request_options: Anthropic::RequestOptions
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
end
|
|
117
|
+
def to_hash
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
class SlackWorkspaceRetrieveParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
OrHash =
|
|
13
|
+
T.type_alias do
|
|
14
|
+
T.any(
|
|
15
|
+
Anthropic::Beta::Organization::ClaudeTag::SlackWorkspaceRetrieveParams,
|
|
16
|
+
Anthropic::Internal::AnyHash
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# The workspace's identifier, starting with `slws_`.
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :id
|
|
23
|
+
|
|
24
|
+
# When `true`, `settings` holds what applies in the workspace once the
|
|
25
|
+
# organization's Slack defaults are taken into account, and every member of
|
|
26
|
+
# `sources` names the level a value comes from. When `false` or left out,
|
|
27
|
+
# `settings` holds what the workspace itself stores.
|
|
28
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
29
|
+
attr_reader :include_inherited
|
|
30
|
+
|
|
31
|
+
sig { params(include_inherited: T::Boolean).void }
|
|
32
|
+
attr_writer :include_inherited
|
|
33
|
+
|
|
34
|
+
# This endpoint is in beta: requests must send
|
|
35
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
36
|
+
sig do
|
|
37
|
+
returns(
|
|
38
|
+
T.nilable(
|
|
39
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
attr_reader :betas
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
betas:
|
|
48
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
49
|
+
).void
|
|
50
|
+
end
|
|
51
|
+
attr_writer :betas
|
|
52
|
+
|
|
53
|
+
sig do
|
|
54
|
+
params(
|
|
55
|
+
id: String,
|
|
56
|
+
include_inherited: T::Boolean,
|
|
57
|
+
betas:
|
|
58
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
59
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
60
|
+
).returns(T.attached_class)
|
|
61
|
+
end
|
|
62
|
+
def self.new(
|
|
63
|
+
# The workspace's identifier, starting with `slws_`.
|
|
64
|
+
id:,
|
|
65
|
+
# When `true`, `settings` holds what applies in the workspace once the
|
|
66
|
+
# organization's Slack defaults are taken into account, and every member of
|
|
67
|
+
# `sources` names the level a value comes from. When `false` or left out,
|
|
68
|
+
# `settings` holds what the workspace itself stores.
|
|
69
|
+
include_inherited: nil,
|
|
70
|
+
# This endpoint is in beta: requests must send
|
|
71
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
72
|
+
betas: nil,
|
|
73
|
+
request_options: {}
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
sig do
|
|
78
|
+
override.returns(
|
|
79
|
+
{
|
|
80
|
+
id: String,
|
|
81
|
+
include_inherited: T::Boolean,
|
|
82
|
+
betas:
|
|
83
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
84
|
+
request_options: Anthropic::RequestOptions
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
def to_hash
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
class SlackWorkspaceUpdateParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
OrHash =
|
|
13
|
+
T.type_alias do
|
|
14
|
+
T.any(
|
|
15
|
+
Anthropic::Beta::Organization::ClaudeTag::SlackWorkspaceUpdateParams,
|
|
16
|
+
Anthropic::Internal::AnyHash
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# The workspace's identifier, starting with `slws_`.
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :id
|
|
23
|
+
|
|
24
|
+
# The settings to change.
|
|
25
|
+
sig do
|
|
26
|
+
returns(
|
|
27
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
attr_reader :settings
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
settings:
|
|
35
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate::OrHash
|
|
36
|
+
).void
|
|
37
|
+
end
|
|
38
|
+
attr_writer :settings
|
|
39
|
+
|
|
40
|
+
# This endpoint is in beta: requests must send
|
|
41
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
42
|
+
sig do
|
|
43
|
+
returns(
|
|
44
|
+
T.nilable(
|
|
45
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
attr_reader :betas
|
|
50
|
+
|
|
51
|
+
sig do
|
|
52
|
+
params(
|
|
53
|
+
betas:
|
|
54
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
|
|
55
|
+
).void
|
|
56
|
+
end
|
|
57
|
+
attr_writer :betas
|
|
58
|
+
|
|
59
|
+
sig do
|
|
60
|
+
params(
|
|
61
|
+
id: String,
|
|
62
|
+
settings:
|
|
63
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate::OrHash,
|
|
64
|
+
betas:
|
|
65
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
66
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
67
|
+
).returns(T.attached_class)
|
|
68
|
+
end
|
|
69
|
+
def self.new(
|
|
70
|
+
# The workspace's identifier, starting with `slws_`.
|
|
71
|
+
id:,
|
|
72
|
+
# The settings to change.
|
|
73
|
+
settings:,
|
|
74
|
+
# This endpoint is in beta: requests must send
|
|
75
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
76
|
+
betas: nil,
|
|
77
|
+
request_options: {}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
sig do
|
|
82
|
+
override.returns(
|
|
83
|
+
{
|
|
84
|
+
id: String,
|
|
85
|
+
settings:
|
|
86
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate,
|
|
87
|
+
betas:
|
|
88
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
89
|
+
request_options: Anthropic::RequestOptions
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
def to_hash
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -67,8 +67,16 @@ module Anthropic
|
|
|
67
67
|
sig { params(strict: T::Boolean).void }
|
|
68
68
|
attr_writer :strict
|
|
69
69
|
|
|
70
|
-
#
|
|
71
|
-
#
|
|
70
|
+
# A `tools` entry for the code execution tool, version `code_execution_20260120`.
|
|
71
|
+
# It adds REPL state persistence to version `code_execution_20250825`.
|
|
72
|
+
#
|
|
73
|
+
# REPL state persistence applies with programmatic tool calling. With it, the
|
|
74
|
+
# Python interpreter state, such as variable bindings, persists across requests
|
|
75
|
+
# that reuse the container.
|
|
76
|
+
#
|
|
77
|
+
# See the
|
|
78
|
+
# [code execution tool guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool#tool-versions)
|
|
79
|
+
# to learn what each tool version adds.
|
|
72
80
|
sig do
|
|
73
81
|
params(
|
|
74
82
|
allowed_callers:
|
|
@@ -26,7 +26,15 @@ module Anthropic
|
|
|
26
26
|
sig { returns(Symbol) }
|
|
27
27
|
attr_accessor :type
|
|
28
28
|
|
|
29
|
-
#
|
|
29
|
+
# The output and exit code of Python code that Claude ran with the code execution
|
|
30
|
+
# tool, with standard output in encrypted form.
|
|
31
|
+
#
|
|
32
|
+
# The API returns this block in place of `code_execution_result` when the code
|
|
33
|
+
# called the web search tool.
|
|
34
|
+
#
|
|
35
|
+
# See the
|
|
36
|
+
# [programmatic tool calling guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling)
|
|
37
|
+
# to learn more about programmatic tool calling.
|
|
30
38
|
sig do
|
|
31
39
|
params(
|
|
32
40
|
content: T::Array[Anthropic::CodeExecutionOutputBlock::OrHash],
|
|
@@ -26,7 +26,8 @@ module Anthropic
|
|
|
26
26
|
sig { returns(Symbol) }
|
|
27
27
|
attr_accessor :type
|
|
28
28
|
|
|
29
|
-
#
|
|
29
|
+
# The output and exit code of Python code that Claude ran with the code execution
|
|
30
|
+
# tool, with standard output in encrypted form, sent back in a later request.
|
|
30
31
|
sig do
|
|
31
32
|
params(
|
|
32
33
|
content: T::Array[Anthropic::CodeExecutionOutputBlockParam::OrHash],
|
|
@@ -33,8 +33,8 @@ module Anthropic
|
|
|
33
33
|
sig { returns(T.nilable(String)) }
|
|
34
34
|
attr_accessor :display_name
|
|
35
35
|
|
|
36
|
-
# Data residency geo. Selects
|
|
37
|
-
#
|
|
36
|
+
# Data residency geo. Selects the region that handles this key's encrypt/decrypt
|
|
37
|
+
# roundtrips.
|
|
38
38
|
sig { returns(String) }
|
|
39
39
|
attr_accessor :geo
|
|
40
40
|
|
|
@@ -90,8 +90,8 @@ module Anthropic
|
|
|
90
90
|
created_at:,
|
|
91
91
|
# Human-friendly display name. Null if none was set.
|
|
92
92
|
display_name:,
|
|
93
|
-
# Data residency geo. Selects
|
|
94
|
-
#
|
|
93
|
+
# Data residency geo. Selects the region that handles this key's encrypt/decrypt
|
|
94
|
+
# roundtrips.
|
|
95
95
|
geo:,
|
|
96
96
|
# KMS provider identity and auth coordinates.
|
|
97
97
|
provider_config:,
|
|
@@ -23,7 +23,7 @@ module Anthropic
|
|
|
23
23
|
sig { params(version: String).void }
|
|
24
24
|
attr_writer :version
|
|
25
25
|
|
|
26
|
-
# Specification for a skill to be loaded in a container
|
|
26
|
+
# Specification for a skill to be loaded in a container.
|
|
27
27
|
sig do
|
|
28
28
|
params(
|
|
29
29
|
skill_id: String,
|
|
@@ -11,9 +11,9 @@ module Anthropic
|
|
|
11
11
|
# Returns cost per user, ranked by spend; `group_by[]` or `bucket_width` splits a
|
|
12
12
|
# user across several rows. Use this to see which users account for the most cost.
|
|
13
13
|
# Only cost attributed to a user account is included; cost with no user attributed
|
|
14
|
-
# to it, such as
|
|
15
|
-
# organizations on a Claude Enterprise plan. Requires an API key
|
|
16
|
-
# `read:analytics` scope.
|
|
14
|
+
# to it, such as Code Review usage and Claude Tag usage in Slack channels, is left
|
|
15
|
+
# out. Available to organizations on a Claude Enterprise plan. Requires an API key
|
|
16
|
+
# with the `read:analytics` scope.
|
|
17
17
|
#
|
|
18
18
|
# This endpoint is one of the legacy Claude Enterprise usage and cost reports. For
|
|
19
19
|
# new integrations, use
|
|
@@ -11,9 +11,9 @@ module Anthropic
|
|
|
11
11
|
# Returns usage per user, ranked by the chosen token metric; `group_by[]` or
|
|
12
12
|
# `bucket_width` splits a user across several rows. Use this to see which users
|
|
13
13
|
# consume the most tokens. Only usage attributed to a user account is included;
|
|
14
|
-
# usage with no user attributed to it, such as
|
|
15
|
-
#
|
|
16
|
-
# Requires an API key with the `read:analytics` scope.
|
|
14
|
+
# usage with no user attributed to it, such as Code Review usage and Claude Tag
|
|
15
|
+
# usage in Slack channels, is left out. Available to organizations on a Claude
|
|
16
|
+
# Enterprise plan. Requires an API key with the `read:analytics` scope.
|
|
17
17
|
#
|
|
18
18
|
# This endpoint is one of the legacy Claude Enterprise usage and cost reports. For
|
|
19
19
|
# new integrations, use
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Resources
|
|
5
|
+
class Beta
|
|
6
|
+
class Organization
|
|
7
|
+
class ClaudeTag
|
|
8
|
+
class Bundles
|
|
9
|
+
class Targets
|
|
10
|
+
# Attach a Bundle to a Slack channel or a Slack workspace. A Bundle attached to a
|
|
11
|
+
# workspace can be used in the workspace and in every channel in it. Attaching a
|
|
12
|
+
# Bundle to a channel or workspace it is already attached to returns the existing
|
|
13
|
+
# Bundle Target. The channel or workspace must be set up: attaching never sets a
|
|
14
|
+
# channel up. A group direct message takes no Bundle and returns 400.
|
|
15
|
+
sig do
|
|
16
|
+
params(
|
|
17
|
+
bundle_id: String,
|
|
18
|
+
target:
|
|
19
|
+
T.any(
|
|
20
|
+
Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTargetCreate::OrHash,
|
|
21
|
+
Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTargetCreate::OrHash
|
|
22
|
+
),
|
|
23
|
+
betas:
|
|
24
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
25
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
26
|
+
).returns(
|
|
27
|
+
Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagBundleTarget::Variants
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
def create(
|
|
31
|
+
# Path param: The Bundle's identifier, starting with `capp_`.
|
|
32
|
+
bundle_id,
|
|
33
|
+
# Body param
|
|
34
|
+
target:,
|
|
35
|
+
# Header param: This endpoint is in beta: requests must send
|
|
36
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
37
|
+
betas: nil,
|
|
38
|
+
request_options: {}
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Get one Bundle Target. Returns 404 when `target_id` is the identifier of another
|
|
43
|
+
# Bundle's Bundle Target, or the Bundle Target was detached.
|
|
44
|
+
sig do
|
|
45
|
+
params(
|
|
46
|
+
target_id: String,
|
|
47
|
+
bundle_id: String,
|
|
48
|
+
betas:
|
|
49
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
50
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
51
|
+
).returns(
|
|
52
|
+
Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagBundleTarget::Variants
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
def retrieve(
|
|
56
|
+
# Path param: The Bundle Target's identifier, starting with `btgt_`. Attach Bundle
|
|
57
|
+
# and List Bundle Targets return it. It is never the identifier of the channel or
|
|
58
|
+
# workspace.
|
|
59
|
+
target_id,
|
|
60
|
+
# Path param: The Bundle's identifier, starting with `capp_`.
|
|
61
|
+
bundle_id:,
|
|
62
|
+
# Header param: This endpoint is in beta: requests must send
|
|
63
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
64
|
+
betas: nil,
|
|
65
|
+
request_options: {}
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# List the Slack channels and Slack workspaces a Bundle is attached to, newest
|
|
70
|
+
# first by `created_at`. Only channels and workspaces the organization owns are
|
|
71
|
+
# listed; a Bundle that is attached to anything else has no Bundle Target for it.
|
|
72
|
+
sig do
|
|
73
|
+
params(
|
|
74
|
+
bundle_id: String,
|
|
75
|
+
limit: Integer,
|
|
76
|
+
page: String,
|
|
77
|
+
betas:
|
|
78
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
79
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
80
|
+
).returns(
|
|
81
|
+
Anthropic::Internal::PageCursor[
|
|
82
|
+
Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagBundleTarget::Variants
|
|
83
|
+
]
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
def list(
|
|
87
|
+
# Path param: The Bundle's identifier, starting with `capp_`.
|
|
88
|
+
bundle_id,
|
|
89
|
+
# Query param: Number of items to return per page, between 1 and 100. Defaults
|
|
90
|
+
# to 20.
|
|
91
|
+
limit: nil,
|
|
92
|
+
# Query param: Opaque cursor from a previous response's `next_page`.
|
|
93
|
+
page: nil,
|
|
94
|
+
# Header param: This endpoint is in beta: requests must send
|
|
95
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
96
|
+
betas: nil,
|
|
97
|
+
request_options: {}
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Detach a Bundle from a Slack channel or a Slack workspace. A repeated detach
|
|
102
|
+
# returns 404.
|
|
103
|
+
sig do
|
|
104
|
+
params(
|
|
105
|
+
target_id: String,
|
|
106
|
+
bundle_id: String,
|
|
107
|
+
betas:
|
|
108
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
109
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
110
|
+
).returns(
|
|
111
|
+
Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagDeletedBundleTarget
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
def delete(
|
|
115
|
+
# Path param: The Bundle Target's identifier, starting with `btgt_`. Attach Bundle
|
|
116
|
+
# and List Bundle Targets return it. It is never the identifier of the channel or
|
|
117
|
+
# workspace.
|
|
118
|
+
target_id,
|
|
119
|
+
# Path param: The Bundle's identifier, starting with `capp_`.
|
|
120
|
+
bundle_id:,
|
|
121
|
+
# Header param: This endpoint is in beta: requests must send
|
|
122
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
123
|
+
betas: nil,
|
|
124
|
+
request_options: {}
|
|
125
|
+
)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# @api private
|
|
129
|
+
sig do
|
|
130
|
+
params(client: Anthropic::Client).returns(T.attached_class)
|
|
131
|
+
end
|
|
132
|
+
def self.new(client:)
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|