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,75 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Resources
|
|
5
|
+
class Beta
|
|
6
|
+
class Organization
|
|
7
|
+
class ClaudeTag
|
|
8
|
+
class Bundles
|
|
9
|
+
sig do
|
|
10
|
+
returns(
|
|
11
|
+
Anthropic::Resources::Beta::Organization::ClaudeTag::Bundles::Targets
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
attr_reader :targets
|
|
15
|
+
|
|
16
|
+
# Get one Bundle. What the Bundle grants (connectors, repositories and
|
|
17
|
+
# credentials) is never returned.
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
bundle_id: String,
|
|
21
|
+
betas:
|
|
22
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
23
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
24
|
+
).returns(
|
|
25
|
+
Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagBundle
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
def retrieve(
|
|
29
|
+
# The Bundle's identifier, starting with `capp_`.
|
|
30
|
+
bundle_id,
|
|
31
|
+
# This endpoint is in beta: requests must send
|
|
32
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
33
|
+
betas: nil,
|
|
34
|
+
request_options: {}
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# List the organization's Bundles, newest first by `created_at`. A Bundle that
|
|
39
|
+
# Claude Tag manages for itself is not listed.
|
|
40
|
+
sig do
|
|
41
|
+
params(
|
|
42
|
+
limit: Integer,
|
|
43
|
+
page: String,
|
|
44
|
+
betas:
|
|
45
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
46
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
47
|
+
).returns(
|
|
48
|
+
Anthropic::Internal::PageCursor[
|
|
49
|
+
Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagBundle
|
|
50
|
+
]
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
def list(
|
|
54
|
+
# Query param: Number of items to return per page, between 1 and 100. Defaults
|
|
55
|
+
# to 20.
|
|
56
|
+
limit: nil,
|
|
57
|
+
# Query param: Opaque cursor from a previous response's `next_page`.
|
|
58
|
+
page: nil,
|
|
59
|
+
# Header param: This endpoint is in beta: requests must send
|
|
60
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
61
|
+
betas: nil,
|
|
62
|
+
request_options: {}
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# @api private
|
|
67
|
+
sig { params(client: Anthropic::Client).returns(T.attached_class) }
|
|
68
|
+
def self.new(client:)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Resources
|
|
5
|
+
class Beta
|
|
6
|
+
class Organization
|
|
7
|
+
class ClaudeTag
|
|
8
|
+
class SlackChannels
|
|
9
|
+
# Set a Slack channel up for Claude Tag and return it with its identifier. If the
|
|
10
|
+
# channel is already set up, whether in claude.ai, by Claude's first use in it or
|
|
11
|
+
# by an earlier request, the existing channel is returned, so the request can be
|
|
12
|
+
# repeated. `settings`, when sent, is applied as an update applies it. Before a
|
|
13
|
+
# channel is set up, Claude's Slack app confirms with Slack that the channel is in
|
|
14
|
+
# the workspace, is not archived and is visible to the app; a channel that fails
|
|
15
|
+
# the confirmation returns 404. Setting the channel up and applying `settings` are
|
|
16
|
+
# two steps: when the second is refused, the response is the refusal, the channel
|
|
17
|
+
# stays set up with every setting unset, and the error's
|
|
18
|
+
# `details.slack_channel_id` holds the channel's identifier.
|
|
19
|
+
sig do
|
|
20
|
+
params(
|
|
21
|
+
slack:
|
|
22
|
+
Anthropic::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers::OrHash,
|
|
23
|
+
settings:
|
|
24
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingsCreate::OrHash,
|
|
25
|
+
betas:
|
|
26
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
27
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
28
|
+
).returns(
|
|
29
|
+
Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
def create(
|
|
33
|
+
# Body param: Slack's own identifiers for the channel to set up. The organization
|
|
34
|
+
# must own the workspace.
|
|
35
|
+
slack:,
|
|
36
|
+
# Body param: Settings to store on the channel, applied as Update Slack Channel
|
|
37
|
+
# applies them.
|
|
38
|
+
settings: nil,
|
|
39
|
+
# Header param: This endpoint is in beta: requests must send
|
|
40
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
41
|
+
betas: nil,
|
|
42
|
+
request_options: {}
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Get one Slack channel and its settings. By default `settings` holds what the
|
|
47
|
+
# channel itself stores: a setting that is null there is not set on the channel
|
|
48
|
+
# and is inherited. With `include_inherited=true`, `settings` holds what applies
|
|
49
|
+
# in the channel once the settings levels above it are taken into account, and the
|
|
50
|
+
# request fails with 503 rather than resolve against a settings level that could
|
|
51
|
+
# not be read. Either way `sources` names the settings level each value comes
|
|
52
|
+
# from, so a caller tells the channel's own value from an inherited one by its
|
|
53
|
+
# source, not by whether it is null.
|
|
54
|
+
sig do
|
|
55
|
+
params(
|
|
56
|
+
id: String,
|
|
57
|
+
include_inherited: T::Boolean,
|
|
58
|
+
betas:
|
|
59
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
60
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
61
|
+
).returns(
|
|
62
|
+
Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
def retrieve(
|
|
66
|
+
# Path param: The channel's identifier, starting with `slch_`.
|
|
67
|
+
id,
|
|
68
|
+
# Query param: When `true`, `settings` holds what applies in the channel once the
|
|
69
|
+
# settings levels above it are taken into account, and every member of `sources`
|
|
70
|
+
# names the level a value comes from. When `false` or left out, `settings` holds
|
|
71
|
+
# what the channel itself stores.
|
|
72
|
+
include_inherited: nil,
|
|
73
|
+
# Header param: This endpoint is in beta: requests must send
|
|
74
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
75
|
+
betas: nil,
|
|
76
|
+
request_options: {}
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Change the settings a Slack channel stores. The update is partial: a setting
|
|
81
|
+
# left out is unchanged, and a setting sent as null is cleared, so the channel
|
|
82
|
+
# inherits it. If any value is refused, no setting in the request is stored. A
|
|
83
|
+
# group direct message takes no settings and returns 400.
|
|
84
|
+
sig do
|
|
85
|
+
params(
|
|
86
|
+
id: String,
|
|
87
|
+
settings:
|
|
88
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate::OrHash,
|
|
89
|
+
betas:
|
|
90
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
91
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
92
|
+
).returns(
|
|
93
|
+
Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel
|
|
94
|
+
)
|
|
95
|
+
end
|
|
96
|
+
def update(
|
|
97
|
+
# Path param: The channel's identifier, starting with `slch_`.
|
|
98
|
+
id,
|
|
99
|
+
# Body param: The settings to change.
|
|
100
|
+
settings:,
|
|
101
|
+
# Header param: This endpoint is in beta: requests must send
|
|
102
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
103
|
+
betas: nil,
|
|
104
|
+
request_options: {}
|
|
105
|
+
)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# List the set-up Slack channels of one Slack workspace, newest first by
|
|
109
|
+
# `created_at`. A channel that is not set up is not listed: Slack holds the full
|
|
110
|
+
# list of a workspace's channels. Pass `slack_channel_id` as well to look one
|
|
111
|
+
# channel up by its Slack identifiers: `data` then holds that channel, or is empty
|
|
112
|
+
# when it is not set up, and `limit` and `page` are ignored. A workspace that the
|
|
113
|
+
# organization owns only through a Slack Enterprise Grid returns 404 until it is
|
|
114
|
+
# set up. With `include_inherited=true` each channel's `settings` holds what
|
|
115
|
+
# applies in it, and the request fails with 503 rather than resolve against a
|
|
116
|
+
# settings level that could not be read. A `page` cursor resumes only a request
|
|
117
|
+
# with the same `include_inherited`.
|
|
118
|
+
sig do
|
|
119
|
+
params(
|
|
120
|
+
slack_workspace_id: String,
|
|
121
|
+
include_inherited: T::Boolean,
|
|
122
|
+
limit: Integer,
|
|
123
|
+
page: String,
|
|
124
|
+
slack_channel_id: String,
|
|
125
|
+
betas:
|
|
126
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
127
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
128
|
+
).returns(
|
|
129
|
+
Anthropic::Internal::PageCursor[
|
|
130
|
+
Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel
|
|
131
|
+
]
|
|
132
|
+
)
|
|
133
|
+
end
|
|
134
|
+
def list(
|
|
135
|
+
# Query param: The Slack workspace whose channels to list: Slack's identifier for
|
|
136
|
+
# it, as in the channel object's `slack.workspace_id`, not the workspace object's
|
|
137
|
+
# `id`.
|
|
138
|
+
slack_workspace_id:,
|
|
139
|
+
# Query param: When `true`, `settings` holds what applies in each channel once the
|
|
140
|
+
# settings levels above it are taken into account, and every member of `sources`
|
|
141
|
+
# names the level a value comes from. When `false` or left out, `settings` holds
|
|
142
|
+
# what each channel itself stores.
|
|
143
|
+
include_inherited: nil,
|
|
144
|
+
# Query param: Number of items to return per page, between 1 and 100. Defaults
|
|
145
|
+
# to 20.
|
|
146
|
+
limit: nil,
|
|
147
|
+
# Query param: Opaque cursor from a previous response's `next_page`.
|
|
148
|
+
page: nil,
|
|
149
|
+
# Query param: Slack's identifier for one channel of that workspace, as in the
|
|
150
|
+
# channel object's `slack.channel_id`. It is not the channel object's `id`. With
|
|
151
|
+
# it `data` holds that channel alone, or nothing when the channel is not set up.
|
|
152
|
+
slack_channel_id: nil,
|
|
153
|
+
# Header param: This endpoint is in beta: requests must send
|
|
154
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
155
|
+
betas: nil,
|
|
156
|
+
request_options: {}
|
|
157
|
+
)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Remove a Slack channel from Claude Tag. This deletes the channel's stored
|
|
161
|
+
# settings and its Bundle Targets at once, and then, in the background, the
|
|
162
|
+
# channel's sessions and their transcripts, its memory, its routines and the
|
|
163
|
+
# artifacts published from it. None of it can be restored. The channel in Slack
|
|
164
|
+
# and its messages are unchanged. The request is refused with 400 and
|
|
165
|
+
# `error.details.error_code` `slack_channel_enabled` while `enabled` resolves to
|
|
166
|
+
# `true` for the channel, as a read with `include_inherited=true` returns it: set
|
|
167
|
+
# `enabled` to `false` on the channel first. This guards against removing a
|
|
168
|
+
# channel in use by mistake; it is not a way to keep Claude out, because the
|
|
169
|
+
# removal deletes the channel's own `enabled: false` with its other settings,
|
|
170
|
+
# after which the channel inherits again and Claude's next use of it can set it up
|
|
171
|
+
# anew with a new identifier. The identifier returns 404 as soon as the request
|
|
172
|
+
# returns, so a repeated removal returns 404. A group direct message returns 400,
|
|
173
|
+
# and so does a channel that holds configuration this API does not manage.
|
|
174
|
+
sig do
|
|
175
|
+
params(
|
|
176
|
+
id: String,
|
|
177
|
+
betas:
|
|
178
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
179
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
180
|
+
).returns(
|
|
181
|
+
Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagDeletedSlackChannel
|
|
182
|
+
)
|
|
183
|
+
end
|
|
184
|
+
def delete(
|
|
185
|
+
# The channel's identifier, starting with `slch_`.
|
|
186
|
+
id,
|
|
187
|
+
# This endpoint is in beta: requests must send
|
|
188
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
189
|
+
betas: nil,
|
|
190
|
+
request_options: {}
|
|
191
|
+
)
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# @api private
|
|
195
|
+
sig { params(client: Anthropic::Client).returns(T.attached_class) }
|
|
196
|
+
def self.new(client:)
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
end
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Resources
|
|
5
|
+
class Beta
|
|
6
|
+
class Organization
|
|
7
|
+
class ClaudeTag
|
|
8
|
+
class SlackWorkspaces
|
|
9
|
+
# Get one Slack workspace and its settings. By default `settings` holds what the
|
|
10
|
+
# workspace itself stores: a setting that is null there is not set on the
|
|
11
|
+
# workspace and is inherited. With `include_inherited=true`, `settings` holds what
|
|
12
|
+
# applies in the workspace once the organization's Slack defaults are taken into
|
|
13
|
+
# account, and the request fails with 503 rather than resolve against a settings
|
|
14
|
+
# level that could not be read. Either way `sources` names the settings level each
|
|
15
|
+
# value comes from.
|
|
16
|
+
sig do
|
|
17
|
+
params(
|
|
18
|
+
id: String,
|
|
19
|
+
include_inherited: T::Boolean,
|
|
20
|
+
betas:
|
|
21
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
22
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
23
|
+
).returns(
|
|
24
|
+
Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackWorkspace
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
def retrieve(
|
|
28
|
+
# Path param: The workspace's identifier, starting with `slws_`.
|
|
29
|
+
id,
|
|
30
|
+
# Query param: When `true`, `settings` holds what applies in the workspace once
|
|
31
|
+
# the organization's Slack defaults are taken into account, and every member of
|
|
32
|
+
# `sources` names the level a value comes from. When `false` or left out,
|
|
33
|
+
# `settings` holds what the workspace itself stores.
|
|
34
|
+
include_inherited: nil,
|
|
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
|
+
# Change the settings a Slack workspace stores. The update is partial: a setting
|
|
43
|
+
# left out is unchanged, and a setting sent as null is cleared, so the workspace
|
|
44
|
+
# inherits it. If any value is refused, no setting in the request is stored.
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
id: String,
|
|
48
|
+
settings:
|
|
49
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingsUpdate::OrHash,
|
|
50
|
+
betas:
|
|
51
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
52
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
53
|
+
).returns(
|
|
54
|
+
Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackWorkspace
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
def update(
|
|
58
|
+
# Path param: The workspace's identifier, starting with `slws_`.
|
|
59
|
+
id,
|
|
60
|
+
# Body param: The settings to change.
|
|
61
|
+
settings:,
|
|
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 set-up Slack workspaces the organization owns, newest first by
|
|
70
|
+
# `created_at`. Pass `slack_workspace_id` to look one workspace up by its Slack
|
|
71
|
+
# identifier: `data` then holds that workspace, or is empty when it is not set up.
|
|
72
|
+
# A workspace of a Slack Enterprise Grid the organization has connected returns
|
|
73
|
+
# 404 until it is set up. With `include_inherited=true` each workspace's
|
|
74
|
+
# `settings` holds what applies in it, and the request fails with 503 rather than
|
|
75
|
+
# resolve against a settings level that could not be read. A `page` cursor resumes
|
|
76
|
+
# only a request with the same `include_inherited`.
|
|
77
|
+
sig do
|
|
78
|
+
params(
|
|
79
|
+
include_inherited: T::Boolean,
|
|
80
|
+
limit: Integer,
|
|
81
|
+
page: String,
|
|
82
|
+
slack_workspace_id: String,
|
|
83
|
+
betas:
|
|
84
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
85
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
86
|
+
).returns(
|
|
87
|
+
Anthropic::Internal::PageCursor[
|
|
88
|
+
Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagSlackWorkspace
|
|
89
|
+
]
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
def list(
|
|
93
|
+
# Query param: When `true`, `settings` holds what applies in each workspace once
|
|
94
|
+
# the organization's Slack defaults are taken into account, and every member of
|
|
95
|
+
# `sources` names the level a value comes from. When `false` or left out,
|
|
96
|
+
# `settings` holds what each workspace itself stores.
|
|
97
|
+
include_inherited: nil,
|
|
98
|
+
# Query param: Number of items to return per page, between 1 and 100. Defaults
|
|
99
|
+
# to 20.
|
|
100
|
+
limit: nil,
|
|
101
|
+
# Query param: Opaque cursor from a previous response's `next_page`.
|
|
102
|
+
page: nil,
|
|
103
|
+
# Query param: Slack's identifier for one workspace, as in the workspace object's
|
|
104
|
+
# `slack.workspace_id`, not its `id`. With it `data` holds that workspace alone,
|
|
105
|
+
# or nothing when it is not set up.
|
|
106
|
+
slack_workspace_id: nil,
|
|
107
|
+
# Header param: This endpoint is in beta: requests must send
|
|
108
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
109
|
+
betas: nil,
|
|
110
|
+
request_options: {}
|
|
111
|
+
)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# @api private
|
|
115
|
+
sig { params(client: Anthropic::Client).returns(T.attached_class) }
|
|
116
|
+
def self.new(client:)
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Resources
|
|
5
|
+
class Beta
|
|
6
|
+
class Organization
|
|
7
|
+
class ClaudeTag
|
|
8
|
+
sig do
|
|
9
|
+
returns(
|
|
10
|
+
Anthropic::Resources::Beta::Organization::ClaudeTag::SlackChannels
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
attr_reader :slack_channels
|
|
14
|
+
|
|
15
|
+
sig do
|
|
16
|
+
returns(
|
|
17
|
+
Anthropic::Resources::Beta::Organization::ClaudeTag::SlackWorkspaces
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
attr_reader :slack_workspaces
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
returns(
|
|
24
|
+
Anthropic::Resources::Beta::Organization::ClaudeTag::Bundles
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
attr_reader :bundles
|
|
28
|
+
|
|
29
|
+
# @api private
|
|
30
|
+
sig { params(client: Anthropic::Client).returns(T.attached_class) }
|
|
31
|
+
def self.new(client:)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -65,6 +65,9 @@ module Anthropic
|
|
|
65
65
|
sig { returns(Anthropic::Resources::Beta::Organization::Webhooks) }
|
|
66
66
|
attr_reader :webhooks
|
|
67
67
|
|
|
68
|
+
sig { returns(Anthropic::Resources::Beta::Organization::ClaudeTag) }
|
|
69
|
+
attr_reader :claude_tag
|
|
70
|
+
|
|
68
71
|
# Retrieve information about the organization associated with the authenticated
|
|
69
72
|
# API key.
|
|
70
73
|
sig do
|
|
@@ -305,6 +305,20 @@ module Anthropic
|
|
|
305
305
|
ORGANIZATION_WEBHOOKS_LIST: "anthropic.organization.webhooks.list"
|
|
306
306
|
ORGANIZATION_WEBHOOKS_DELETE: "anthropic.organization.webhooks.delete"
|
|
307
307
|
ORGANIZATION_WEBHOOKS_REGENERATE_SIGNING_SECRET: "anthropic.organization.webhooks.regenerate_signing_secret"
|
|
308
|
+
ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_CREATE: "anthropic.organization.claude_tag.slack_channels.create"
|
|
309
|
+
ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_RETRIEVE: "anthropic.organization.claude_tag.slack_channels.retrieve"
|
|
310
|
+
ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_UPDATE: "anthropic.organization.claude_tag.slack_channels.update"
|
|
311
|
+
ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_LIST: "anthropic.organization.claude_tag.slack_channels.list"
|
|
312
|
+
ORGANIZATION_CLAUDE_TAG_SLACK_CHANNELS_DELETE: "anthropic.organization.claude_tag.slack_channels.delete"
|
|
313
|
+
ORGANIZATION_CLAUDE_TAG_SLACK_WORKSPACES_RETRIEVE: "anthropic.organization.claude_tag.slack_workspaces.retrieve"
|
|
314
|
+
ORGANIZATION_CLAUDE_TAG_SLACK_WORKSPACES_UPDATE: "anthropic.organization.claude_tag.slack_workspaces.update"
|
|
315
|
+
ORGANIZATION_CLAUDE_TAG_SLACK_WORKSPACES_LIST: "anthropic.organization.claude_tag.slack_workspaces.list"
|
|
316
|
+
ORGANIZATION_CLAUDE_TAG_BUNDLES_RETRIEVE: "anthropic.organization.claude_tag.bundles.retrieve"
|
|
317
|
+
ORGANIZATION_CLAUDE_TAG_BUNDLES_LIST: "anthropic.organization.claude_tag.bundles.list"
|
|
318
|
+
ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_CREATE: "anthropic.organization.claude_tag.bundles.targets.create"
|
|
319
|
+
ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_RETRIEVE: "anthropic.organization.claude_tag.bundles.targets.retrieve"
|
|
320
|
+
ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_LIST: "anthropic.organization.claude_tag.bundles.targets.list"
|
|
321
|
+
ORGANIZATION_CLAUDE_TAG_BUNDLES_TARGETS_DELETE: "anthropic.organization.claude_tag.bundles.targets.delete"
|
|
308
322
|
end
|
|
309
323
|
|
|
310
324
|
CLIENT_ATTRIBUTES: ::Hash[String, String]
|
|
@@ -20,6 +20,7 @@ module Anthropic
|
|
|
20
20
|
page: Class?,
|
|
21
21
|
stream: Class?,
|
|
22
22
|
model: Anthropic::Internal::Type::Converter::input?,
|
|
23
|
+
qualifiers: ::Hash[Symbol, String]?,
|
|
23
24
|
span_name: String?,
|
|
24
25
|
span_attributes: ::Hash[String, top]?,
|
|
25
26
|
span_created_id: (String | ::Hash[String, Symbol])?,
|
|
@@ -36,6 +37,7 @@ module Anthropic
|
|
|
36
37
|
body: top,
|
|
37
38
|
max_retries: Integer,
|
|
38
39
|
timeout: Float,
|
|
40
|
+
qualifiers: ::Hash[Symbol, String]?,
|
|
39
41
|
user_header_keys: ::Array[String],
|
|
40
42
|
cast_to: Anthropic::Internal::Type::Converter::input?,
|
|
41
43
|
stream: Class?,
|
|
@@ -167,6 +169,7 @@ module Anthropic
|
|
|
167
169
|
?page: Class?,
|
|
168
170
|
?stream: Class?,
|
|
169
171
|
?model: Anthropic::Internal::Type::Converter::input?,
|
|
172
|
+
?qualifiers: ::Hash[Symbol, String]?,
|
|
170
173
|
?span_name: String?,
|
|
171
174
|
?span_attributes: ::Hash[String, top]?,
|
|
172
175
|
?span_created_id: (String | ::Hash[String, Symbol])?,
|
|
@@ -55,6 +55,7 @@ module Anthropic
|
|
|
55
55
|
| :"webhooks-2026-10-07"
|
|
56
56
|
| :"message-threads-2026-08-12"
|
|
57
57
|
| :"analytics-usage-cost-2026-08-24"
|
|
58
|
+
| :"experimental-claude-tag-2026-10-21"
|
|
58
59
|
| String
|
|
59
60
|
|
|
60
61
|
module AnthropicBeta
|
|
@@ -116,6 +117,7 @@ module Anthropic
|
|
|
116
117
|
WEBHOOKS_2026_10_07: :"webhooks-2026-10-07"
|
|
117
118
|
MESSAGE_THREADS_2026_08_12: :"message-threads-2026-08-12"
|
|
118
119
|
ANALYTICS_USAGE_COST_2026_08_24: :"analytics-usage-cost-2026-08-24"
|
|
120
|
+
EXPERIMENTAL_CLAUDE_TAG_2026_10_21: :"experimental-claude-tag-2026-10-21"
|
|
119
121
|
end
|
|
120
122
|
end
|
|
121
123
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_claude_tag_default_setting_source = { type: :default }
|
|
6
|
+
|
|
7
|
+
class BetaClaudeTagDefaultSettingSource < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor type: :default
|
|
9
|
+
|
|
10
|
+
def initialize: (?type: :default) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { type: :default }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_claude_tag_guest_policy =
|
|
6
|
+
Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyAllow
|
|
7
|
+
| Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyRestrict
|
|
8
|
+
| Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly
|
|
9
|
+
|
|
10
|
+
module BetaClaudeTagGuestPolicy
|
|
11
|
+
extend Anthropic::Internal::Type::Union
|
|
12
|
+
|
|
13
|
+
type type_ = :allow | :restrict | :channel_only
|
|
14
|
+
|
|
15
|
+
module Type
|
|
16
|
+
extend Anthropic::Internal::Type::Enum
|
|
17
|
+
|
|
18
|
+
ALLOW: :allow
|
|
19
|
+
RESTRICT: :restrict
|
|
20
|
+
CHANNEL_ONLY: :channel_only
|
|
21
|
+
|
|
22
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicy::type_]
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::Organization::beta_claude_tag_guest_policy]
|
|
26
|
+
|
|
27
|
+
def self.new:
|
|
28
|
+
(
|
|
29
|
+
type: :allow | "allow"
|
|
30
|
+
) -> Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyAllow
|
|
31
|
+
| (
|
|
32
|
+
type: :restrict | "restrict"
|
|
33
|
+
) -> Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyRestrict
|
|
34
|
+
| (
|
|
35
|
+
type: :channel_only | "channel_only"
|
|
36
|
+
) -> Anthropic::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly
|
|
37
|
+
| (
|
|
38
|
+
type: Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicy::type_
|
|
39
|
+
| String
|
|
40
|
+
) -> Anthropic::Models::Beta::Organization::beta_claude_tag_guest_policy
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_claude_tag_guest_policy_allow = { type: :allow }
|
|
6
|
+
|
|
7
|
+
class BetaClaudeTagGuestPolicyAllow < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor type: :allow
|
|
9
|
+
|
|
10
|
+
def initialize: (?type: :allow) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { type: :allow }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_claude_tag_guest_policy_channel_only = { type: :channel_only }
|
|
6
|
+
|
|
7
|
+
class BetaClaudeTagGuestPolicyChannelOnly < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor type: :channel_only
|
|
9
|
+
|
|
10
|
+
def initialize: (?type: :channel_only) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { type: :channel_only }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_claude_tag_guest_policy_restrict = { type: :restrict }
|
|
6
|
+
|
|
7
|
+
class BetaClaudeTagGuestPolicyRestrict < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor type: :restrict
|
|
9
|
+
|
|
10
|
+
def initialize: (?type: :restrict) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { type: :restrict }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|