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,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagGuestPolicyAllow < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :allow]
|
|
11
|
+
required :type, const: :allow
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :allow)
|
|
14
|
+
# Claude answers in the channel.
|
|
15
|
+
#
|
|
16
|
+
# @param type [Symbol, :allow]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagGuestPolicyChannelOnly < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :channel_only]
|
|
11
|
+
required :type, const: :channel_only
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :channel_only)
|
|
14
|
+
# Claude answers with only the Bundles attached to the channel itself.
|
|
15
|
+
#
|
|
16
|
+
# @param type [Symbol, :channel_only]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagGuestPolicyRestrict < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :restrict]
|
|
11
|
+
required :type, const: :restrict
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :restrict)
|
|
14
|
+
# Claude does not answer in the channel.
|
|
15
|
+
#
|
|
16
|
+
# @param type [Symbol, :restrict]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# The settings level a value comes from. More types can be added.
|
|
8
|
+
module BetaClaudeTagSettingSource
|
|
9
|
+
extend Anthropic::Internal::Type::Union
|
|
10
|
+
|
|
11
|
+
discriminator :type
|
|
12
|
+
|
|
13
|
+
# The value comes from the addressed Slack channel itself.
|
|
14
|
+
variant :slack_channel, -> { Anthropic::Beta::Organization::BetaClaudeTagSlackChannelSettingSource }
|
|
15
|
+
|
|
16
|
+
# The value comes from a Slack workspace of the organization.
|
|
17
|
+
variant :slack_workspace, -> { Anthropic::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource }
|
|
18
|
+
|
|
19
|
+
# The value comes from the channel that a code channel was started from. A parent channel contributes `instructions` and `environment_id` only.
|
|
20
|
+
variant :slack_parent_channel,
|
|
21
|
+
-> { Anthropic::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource }
|
|
22
|
+
|
|
23
|
+
# The value comes from the organization's Slack defaults, which have no identifier.
|
|
24
|
+
variant :slack_default, -> { Anthropic::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource }
|
|
25
|
+
|
|
26
|
+
# No settings level sets a value, and the built-in default applies.
|
|
27
|
+
variant :default, -> { Anthropic::Beta::Organization::BetaClaudeTagDefaultSettingSource }
|
|
28
|
+
|
|
29
|
+
# The value comes from the addressed channel as it is set up under another workspace of its Enterprise Grid: a channel shared across the Grid keeps one Slack channel identifier in every workspace that sees it.
|
|
30
|
+
variant :slack_grid_channel,
|
|
31
|
+
-> { Anthropic::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource }
|
|
32
|
+
|
|
33
|
+
module Type
|
|
34
|
+
extend Anthropic::Internal::Type::Enum
|
|
35
|
+
|
|
36
|
+
SLACK_CHANNEL = :slack_channel
|
|
37
|
+
SLACK_WORKSPACE = :slack_workspace
|
|
38
|
+
SLACK_PARENT_CHANNEL = :slack_parent_channel
|
|
39
|
+
SLACK_DEFAULT = :slack_default
|
|
40
|
+
DEFAULT = :default
|
|
41
|
+
SLACK_GRID_CHANNEL = :slack_grid_channel
|
|
42
|
+
|
|
43
|
+
# @!method self.values
|
|
44
|
+
# @return [Array<Symbol>]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# @!method self.variants
|
|
48
|
+
# @return [Array(Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource)]
|
|
49
|
+
|
|
50
|
+
# Creates a new instance of the variant class whose `type` matches the given
|
|
51
|
+
# value, passing the remaining arguments to its constructor.
|
|
52
|
+
#
|
|
53
|
+
# @param type [Symbol, Anthropic::Models::Beta::Organization::BetaClaudeTagSettingSource::Type, String]
|
|
54
|
+
#
|
|
55
|
+
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
56
|
+
#
|
|
57
|
+
# @option args [String] :slack_channel_id The channel's identifier, starting with `slch_`.
|
|
58
|
+
#
|
|
59
|
+
# @option args [String] :slack_workspace_id The workspace's identifier, starting with `slws_`.
|
|
60
|
+
#
|
|
61
|
+
# @option args [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers] :slack Slack's own identifiers for the channel under that other workspace.
|
|
62
|
+
#
|
|
63
|
+
# @raise [ArgumentError]
|
|
64
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource]
|
|
65
|
+
def self.new(type:, **args)
|
|
66
|
+
case type.to_sym
|
|
67
|
+
when :slack_channel
|
|
68
|
+
Anthropic::Beta::Organization::BetaClaudeTagSlackChannelSettingSource.new(**args)
|
|
69
|
+
when :slack_workspace
|
|
70
|
+
Anthropic::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource.new(**args)
|
|
71
|
+
when :slack_parent_channel
|
|
72
|
+
Anthropic::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource.new(**args)
|
|
73
|
+
when :slack_default
|
|
74
|
+
Anthropic::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource.new(**args)
|
|
75
|
+
when :default
|
|
76
|
+
Anthropic::Beta::Organization::BetaClaudeTagDefaultSettingSource.new(**args)
|
|
77
|
+
when :slack_grid_channel
|
|
78
|
+
Anthropic::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource.new(**args)
|
|
79
|
+
else
|
|
80
|
+
raise ArgumentError, "unknown type: #{type}"
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagSettingSources < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute enabled
|
|
9
|
+
# The settings level `enabled` comes from.
|
|
10
|
+
#
|
|
11
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil]
|
|
12
|
+
required :enabled,
|
|
13
|
+
union: -> {
|
|
14
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingSource
|
|
15
|
+
},
|
|
16
|
+
nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute environment_id
|
|
19
|
+
# The settings level `environment_id` comes from.
|
|
20
|
+
#
|
|
21
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil]
|
|
22
|
+
required :environment_id,
|
|
23
|
+
union: -> { Anthropic::Beta::Organization::BetaClaudeTagSettingSource },
|
|
24
|
+
nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute guest_policy
|
|
27
|
+
# The settings level `guest_policy` comes from.
|
|
28
|
+
#
|
|
29
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil]
|
|
30
|
+
required :guest_policy,
|
|
31
|
+
union: -> { Anthropic::Beta::Organization::BetaClaudeTagSettingSource },
|
|
32
|
+
nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute instructions
|
|
35
|
+
# Every settings level that contributes text to `instructions`, broadest first, in
|
|
36
|
+
# the order their text is joined. Empty when none does.
|
|
37
|
+
#
|
|
38
|
+
# @return [Array<Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource>]
|
|
39
|
+
required :instructions,
|
|
40
|
+
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::Organization::BetaClaudeTagSettingSource] }
|
|
41
|
+
|
|
42
|
+
# @!attribute model
|
|
43
|
+
# The settings level `model` comes from.
|
|
44
|
+
#
|
|
45
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil]
|
|
46
|
+
required :model, union: -> { Anthropic::Beta::Organization::BetaClaudeTagSettingSource }, nil?: true
|
|
47
|
+
|
|
48
|
+
# @!method initialize(enabled:, environment_id:, guest_policy:, instructions:, model:)
|
|
49
|
+
# For each setting, the settings level its value in `settings` comes from. Without
|
|
50
|
+
# `include_inherited`, a setting the channel or workspace stores has a source that
|
|
51
|
+
# names the channel or workspace itself, and one it does not store has null, or an
|
|
52
|
+
# empty list for `instructions`. With `include_inherited=true` no member is null:
|
|
53
|
+
# a value that no settings level sets has the source `default`.
|
|
54
|
+
#
|
|
55
|
+
# Some parameter documentations has been truncated, see
|
|
56
|
+
# {Anthropic::Models::Beta::Organization::BetaClaudeTagSettingSources} for more
|
|
57
|
+
# details.
|
|
58
|
+
#
|
|
59
|
+
# @param enabled [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil] The settings level `enabled` comes from.
|
|
60
|
+
#
|
|
61
|
+
# @param environment_id [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil] The settings level `environment_id` comes from.
|
|
62
|
+
#
|
|
63
|
+
# @param guest_policy [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil] The settings level `guest_policy` comes from.
|
|
64
|
+
#
|
|
65
|
+
# @param instructions [Array<Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource>] Every settings level that contributes text to `instructions`, broadest first, in
|
|
66
|
+
#
|
|
67
|
+
# @param model [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackParentChannelSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagDefaultSettingSource, Anthropic::Models::Beta::Organization::BetaClaudeTagSlackGridChannelSettingSource, nil] The settings level `model` comes from.
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagSettings < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute enabled
|
|
9
|
+
# Whether Claude is on. The nearest settings level that sets it decides.
|
|
10
|
+
#
|
|
11
|
+
# @return [Boolean, nil]
|
|
12
|
+
required :enabled, Anthropic::Internal::Type::Boolean, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!attribute environment_id
|
|
15
|
+
# The environment Claude's sessions run in, starting with `env_`, or the
|
|
16
|
+
# identifier of a self-hosted runner pool, starting with `ccpool_`. The nearest
|
|
17
|
+
# settings level that sets it decides.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
required :environment_id, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute guest_policy
|
|
23
|
+
# What Claude does in a channel while a Slack guest is in it. The nearest settings
|
|
24
|
+
# level that sets it decides.
|
|
25
|
+
#
|
|
26
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil]
|
|
27
|
+
required :guest_policy,
|
|
28
|
+
union: -> {
|
|
29
|
+
Anthropic::Beta::Organization::BetaClaudeTagGuestPolicy
|
|
30
|
+
},
|
|
31
|
+
nil?: true
|
|
32
|
+
|
|
33
|
+
# @!attribute instructions
|
|
34
|
+
# Instructions for Claude. Instructions add up: the text of every settings level
|
|
35
|
+
# that sets it is joined, broadest first.
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
required :instructions, String, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute model
|
|
41
|
+
# The model Claude uses: a model identifier or the name of a model line. The
|
|
42
|
+
# nearest settings level that sets it decides. When none does, Claude uses the
|
|
43
|
+
# product's default model.
|
|
44
|
+
#
|
|
45
|
+
# @return [String, nil]
|
|
46
|
+
required :model, String, nil?: true
|
|
47
|
+
|
|
48
|
+
# @!method initialize(enabled:, environment_id:, guest_policy:, instructions:, model:)
|
|
49
|
+
# Claude Tag settings. Without `include_inherited`, a setting that is null is not
|
|
50
|
+
# set on the settings level and is inherited. With it, `enabled` and
|
|
51
|
+
# `guest_policy` are never null, and `instructions`, `model` and `environment_id`
|
|
52
|
+
# are null when no settings level sets them.
|
|
53
|
+
#
|
|
54
|
+
# Some parameter documentations has been truncated, see
|
|
55
|
+
# {Anthropic::Models::Beta::Organization::BetaClaudeTagSettings} for more details.
|
|
56
|
+
#
|
|
57
|
+
# @param enabled [Boolean, nil] Whether Claude is on. The nearest settings level that sets it decides.
|
|
58
|
+
#
|
|
59
|
+
# @param environment_id [String, nil] The environment Claude's sessions run in, starting with `env_`, or the identifie
|
|
60
|
+
#
|
|
61
|
+
# @param guest_policy [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil] What Claude does in a channel while a Slack guest is in it. The nearest settings
|
|
62
|
+
#
|
|
63
|
+
# @param instructions [String, nil] Instructions for Claude. Instructions add up: the text of every settings level t
|
|
64
|
+
#
|
|
65
|
+
# @param model [String, nil] The model Claude uses: a model identifier or the name of a model line. The neare
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagSettingsCreate < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute enabled
|
|
9
|
+
# Whether Claude is on. `true` on a channel turns Claude on in it even when its
|
|
10
|
+
# workspace stores `false`. Null clears it.
|
|
11
|
+
#
|
|
12
|
+
# @return [Boolean, nil]
|
|
13
|
+
optional :enabled, Anthropic::Internal::Type::Boolean, nil?: true
|
|
14
|
+
|
|
15
|
+
# @!attribute environment_id
|
|
16
|
+
# The environment Claude's sessions run in: the identifier of an active
|
|
17
|
+
# environment of the organization, starting with `env_`. Null clears it.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :environment_id, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute guest_policy
|
|
23
|
+
# What Claude does in a channel while a Slack guest is in it. Null clears it.
|
|
24
|
+
#
|
|
25
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil]
|
|
26
|
+
optional :guest_policy,
|
|
27
|
+
union: -> {
|
|
28
|
+
Anthropic::Beta::Organization::BetaClaudeTagGuestPolicy
|
|
29
|
+
},
|
|
30
|
+
nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute instructions
|
|
33
|
+
# Instructions for Claude, up to 8,192 characters after leading and trailing white
|
|
34
|
+
# space is trimmed. Null or blank text clears them.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :instructions, String, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute model
|
|
40
|
+
# The model Claude uses: the identifier of a model, or the name of a model line,
|
|
41
|
+
# that the organization is entitled to for Claude Tag. Null clears it.
|
|
42
|
+
#
|
|
43
|
+
# @return [String, nil]
|
|
44
|
+
optional :model, String, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!method initialize(enabled: nil, environment_id: nil, guest_policy: nil, instructions: nil, model: nil)
|
|
47
|
+
# The settings in a request that sets a Slack channel up. A setting left out is
|
|
48
|
+
# not set. A setting sent as null is cleared.
|
|
49
|
+
#
|
|
50
|
+
# Some parameter documentations has been truncated, see
|
|
51
|
+
# {Anthropic::Models::Beta::Organization::BetaClaudeTagSettingsCreate} for more
|
|
52
|
+
# details.
|
|
53
|
+
#
|
|
54
|
+
# @param enabled [Boolean, nil] Whether Claude is on. `true` on a channel turns Claude on in it even when its wo
|
|
55
|
+
#
|
|
56
|
+
# @param environment_id [String, nil] The environment Claude's sessions run in: the identifier of an active environmen
|
|
57
|
+
#
|
|
58
|
+
# @param guest_policy [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil] What Claude does in a channel while a Slack guest is in it. Null clears it.
|
|
59
|
+
#
|
|
60
|
+
# @param instructions [String, nil] Instructions for Claude, up to 8,192 characters after leading and trailing white
|
|
61
|
+
#
|
|
62
|
+
# @param model [String, nil] The model Claude uses: the identifier of a model, or the name of a model line, t
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagSettingsUpdate < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute enabled
|
|
9
|
+
# Whether Claude is on. `true` on a channel turns Claude on in it even when its
|
|
10
|
+
# workspace stores `false`. Null clears it.
|
|
11
|
+
#
|
|
12
|
+
# @return [Boolean, nil]
|
|
13
|
+
optional :enabled, Anthropic::Internal::Type::Boolean, nil?: true
|
|
14
|
+
|
|
15
|
+
# @!attribute environment_id
|
|
16
|
+
# The environment Claude's sessions run in: the identifier of an active
|
|
17
|
+
# environment of the organization, starting with `env_`. Null clears it.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :environment_id, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute guest_policy
|
|
23
|
+
# What Claude does in a channel while a Slack guest is in it. Null clears it.
|
|
24
|
+
#
|
|
25
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil]
|
|
26
|
+
optional :guest_policy,
|
|
27
|
+
union: -> {
|
|
28
|
+
Anthropic::Beta::Organization::BetaClaudeTagGuestPolicy
|
|
29
|
+
},
|
|
30
|
+
nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute instructions
|
|
33
|
+
# Instructions for Claude, up to 8,192 characters after leading and trailing white
|
|
34
|
+
# space is trimmed. Null or blank text clears them.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :instructions, String, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute model
|
|
40
|
+
# The model Claude uses: the identifier of a model, or the name of a model line,
|
|
41
|
+
# that the organization is entitled to for Claude Tag. Null clears it.
|
|
42
|
+
#
|
|
43
|
+
# @return [String, nil]
|
|
44
|
+
optional :model, String, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!method initialize(enabled: nil, environment_id: nil, guest_policy: nil, instructions: nil, model: nil)
|
|
47
|
+
# The settings to change. A setting left out is unchanged. A setting sent as null
|
|
48
|
+
# is cleared, so it is inherited.
|
|
49
|
+
#
|
|
50
|
+
# Some parameter documentations has been truncated, see
|
|
51
|
+
# {Anthropic::Models::Beta::Organization::BetaClaudeTagSettingsUpdate} for more
|
|
52
|
+
# details.
|
|
53
|
+
#
|
|
54
|
+
# @param enabled [Boolean, nil] Whether Claude is on. `true` on a channel turns Claude on in it even when its wo
|
|
55
|
+
#
|
|
56
|
+
# @param environment_id [String, nil] The environment Claude's sessions run in: the identifier of an active environmen
|
|
57
|
+
#
|
|
58
|
+
# @param guest_policy [Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyAllow, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyRestrict, Anthropic::Models::Beta::Organization::BetaClaudeTagGuestPolicyChannelOnly, nil] What Claude does in a channel while a Slack guest is in it. Null clears it.
|
|
59
|
+
#
|
|
60
|
+
# @param instructions [String, nil] Instructions for Claude, up to 8,192 characters after leading and trailing white
|
|
61
|
+
#
|
|
62
|
+
# @param model [String, nil] The model Claude uses: the identifier of a model, or the name of a model line, t
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagSlackChannelIdentifiers < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute channel_id
|
|
9
|
+
# Slack's identifier for the channel, starting with `C` or `G`, such as
|
|
10
|
+
# `C0456EFGH`.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :channel_id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute workspace_id
|
|
16
|
+
# Slack's identifier for the workspace the channel is in, starting with `T`, such
|
|
17
|
+
# as `T0123ABCD`.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :workspace_id, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(channel_id:, workspace_id:)
|
|
23
|
+
# The identifiers Slack shows for a channel. They are Slack's own, not identifiers
|
|
24
|
+
# of this API.
|
|
25
|
+
#
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers}
|
|
28
|
+
# for more details.
|
|
29
|
+
#
|
|
30
|
+
# @param channel_id [String] Slack's identifier for the channel, starting with `C` or `G`, such as `C0456EFGH
|
|
31
|
+
#
|
|
32
|
+
# @param workspace_id [String] Slack's identifier for the workspace the channel is in, starting with `T`, such
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagSlackChannelSettingSource < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute slack_channel_id
|
|
9
|
+
# The channel's identifier, starting with `slch_`.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :slack_channel_id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute type
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, :slack_channel]
|
|
17
|
+
required :type, const: :slack_channel
|
|
18
|
+
|
|
19
|
+
# @!method initialize(slack_channel_id:, type: :slack_channel)
|
|
20
|
+
# The value comes from the addressed Slack channel itself.
|
|
21
|
+
#
|
|
22
|
+
# @param slack_channel_id [String] The channel's identifier, starting with `slch_`.
|
|
23
|
+
#
|
|
24
|
+
# @param type [Symbol, :slack_channel]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagSlackDefaultSettingSource < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :slack_default]
|
|
11
|
+
required :type, const: :slack_default
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :slack_default)
|
|
14
|
+
# The value comes from the organization's Slack defaults, which have no
|
|
15
|
+
# identifier.
|
|
16
|
+
#
|
|
17
|
+
# @param type [Symbol, :slack_default]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_grid_channel_setting_source.rb
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagSlackGridChannelSettingSource < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute slack
|
|
9
|
+
# Slack's own identifiers for the channel under that other workspace.
|
|
10
|
+
#
|
|
11
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers]
|
|
12
|
+
required :slack, -> { Anthropic::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers }
|
|
13
|
+
|
|
14
|
+
# @!attribute type
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, :slack_grid_channel]
|
|
17
|
+
required :type, const: :slack_grid_channel
|
|
18
|
+
|
|
19
|
+
# @!method initialize(slack:, type: :slack_grid_channel)
|
|
20
|
+
# The value comes from the addressed channel as it is set up under another
|
|
21
|
+
# workspace of its Enterprise Grid: a channel shared across the Grid keeps one
|
|
22
|
+
# Slack channel identifier in every workspace that sees it.
|
|
23
|
+
#
|
|
24
|
+
# @param slack [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers] Slack's own identifiers for the channel under that other workspace.
|
|
25
|
+
#
|
|
26
|
+
# @param type [Symbol, :slack_grid_channel]
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
data/lib/anthropic/models/beta/organization/beta_claude_tag_slack_parent_channel_setting_source.rb
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagSlackParentChannelSettingSource < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute slack_channel_id
|
|
9
|
+
# The parent channel's identifier, starting with `slch_`.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :slack_channel_id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute type
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, :slack_parent_channel]
|
|
17
|
+
required :type, const: :slack_parent_channel
|
|
18
|
+
|
|
19
|
+
# @!method initialize(slack_channel_id:, type: :slack_parent_channel)
|
|
20
|
+
# The value comes from the channel that a code channel was started from. A parent
|
|
21
|
+
# channel contributes `instructions` and `environment_id` only.
|
|
22
|
+
#
|
|
23
|
+
# @param slack_channel_id [String] The parent channel's identifier, starting with `slch_`.
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :slack_parent_channel]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagSlackWorkspaceIdentifiers < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute workspace_id
|
|
9
|
+
# Slack's identifier for the workspace, starting with `T`, such as `T0123ABCD`.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :workspace_id, String
|
|
13
|
+
|
|
14
|
+
# @!method initialize(workspace_id:)
|
|
15
|
+
# The identifier Slack shows for a workspace. It is Slack's own, not an identifier
|
|
16
|
+
# of this API.
|
|
17
|
+
#
|
|
18
|
+
# @param workspace_id [String] Slack's identifier for the workspace, starting with `T`, such as `T0123ABCD`.
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaClaudeTagSlackWorkspaceSettingSource < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute slack_workspace_id
|
|
9
|
+
# The workspace's identifier, starting with `slws_`.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :slack_workspace_id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute type
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, :slack_workspace]
|
|
17
|
+
required :type, const: :slack_workspace
|
|
18
|
+
|
|
19
|
+
# @!method initialize(slack_workspace_id:, type: :slack_workspace)
|
|
20
|
+
# The value comes from a Slack workspace of the organization.
|
|
21
|
+
#
|
|
22
|
+
# @param slack_workspace_id [String] The workspace's identifier, starting with `slws_`.
|
|
23
|
+
#
|
|
24
|
+
# @param type [Symbol, :slack_workspace]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|