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
|
@@ -34,8 +34,8 @@ module Anthropic
|
|
|
34
34
|
required :display_name, String, nil?: true
|
|
35
35
|
|
|
36
36
|
# @!attribute geo
|
|
37
|
-
# Data residency geo. Selects
|
|
38
|
-
#
|
|
37
|
+
# Data residency geo. Selects the region that handles this key's encrypt/decrypt
|
|
38
|
+
# roundtrips.
|
|
39
39
|
#
|
|
40
40
|
# @return [String]
|
|
41
41
|
required :geo, String
|
|
@@ -74,7 +74,7 @@ module Anthropic
|
|
|
74
74
|
#
|
|
75
75
|
# @param display_name [String, nil] Human-friendly display name. Null if none was set.
|
|
76
76
|
#
|
|
77
|
-
# @param geo [String] Data residency geo. Selects
|
|
77
|
+
# @param geo [String] Data residency geo. Selects the region that handles this key's encrypt/decrypt r
|
|
78
78
|
#
|
|
79
79
|
# @param provider_config [Anthropic::Models::Beta::Organization::BetaAWSExternalKeyConfig, Anthropic::Models::Beta::Organization::BetaGCPExternalKeyConfig, Anthropic::Models::Beta::Organization::BetaAzureExternalKeyConfig] KMS provider identity and auth coordinates.
|
|
80
80
|
#
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
# @see Anthropic::Resources::Beta::Organization::ClaudeTag::Bundles#retrieve
|
|
9
|
+
class BetaClaudeTagBundle < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute id
|
|
11
|
+
# The Bundle's identifier. Starts with `capp_`.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute created_at
|
|
17
|
+
# Time the Bundle was created.
|
|
18
|
+
#
|
|
19
|
+
# @return [Time]
|
|
20
|
+
required :created_at, Time
|
|
21
|
+
|
|
22
|
+
# @!attribute description
|
|
23
|
+
# What the Bundle is for. Null when it has none. Read-only.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
required :description, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute display_name
|
|
29
|
+
# The Bundle's name. Always set. Read-only.
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :display_name, String
|
|
33
|
+
|
|
34
|
+
# @!attribute type
|
|
35
|
+
#
|
|
36
|
+
# @return [Symbol, :bundle]
|
|
37
|
+
required :type, const: :bundle
|
|
38
|
+
|
|
39
|
+
# @!attribute updated_at
|
|
40
|
+
# Time of the last change to the Bundle.
|
|
41
|
+
#
|
|
42
|
+
# @return [Time]
|
|
43
|
+
required :updated_at, Time
|
|
44
|
+
|
|
45
|
+
# @!method initialize(id:, created_at:, description:, display_name:, updated_at:, type: :bundle)
|
|
46
|
+
# A named set of access that Claude can use in a Slack channel or a Slack
|
|
47
|
+
# workspace: connectors, repositories and credentials. Created and edited in
|
|
48
|
+
# claude.ai.
|
|
49
|
+
#
|
|
50
|
+
# @param id [String] The Bundle's identifier. Starts with `capp_`.
|
|
51
|
+
#
|
|
52
|
+
# @param created_at [Time] Time the Bundle was created.
|
|
53
|
+
#
|
|
54
|
+
# @param description [String, nil] What the Bundle is for. Null when it has none. Read-only.
|
|
55
|
+
#
|
|
56
|
+
# @param display_name [String] The Bundle's name. Always set. Read-only.
|
|
57
|
+
#
|
|
58
|
+
# @param updated_at [Time] Time of the last change to the Bundle.
|
|
59
|
+
#
|
|
60
|
+
# @param type [Symbol, :bundle]
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_deleted_slack_channel.rb
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
# @see Anthropic::Resources::Beta::Organization::ClaudeTag::SlackChannels#delete
|
|
9
|
+
class BetaClaudeTagDeletedSlackChannel < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute id
|
|
11
|
+
# The removed channel's identifier.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute type
|
|
17
|
+
#
|
|
18
|
+
# @return [Symbol, :slack_channel_deleted]
|
|
19
|
+
required :type, const: :slack_channel_deleted
|
|
20
|
+
|
|
21
|
+
# @!method initialize(id:, type: :slack_channel_deleted)
|
|
22
|
+
# Confirms that a Slack channel was removed from Claude Tag.
|
|
23
|
+
#
|
|
24
|
+
# @param id [String] The removed channel's identifier.
|
|
25
|
+
#
|
|
26
|
+
# @param type [Symbol, :slack_channel_deleted]
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
# @see Anthropic::Resources::Beta::Organization::ClaudeTag::SlackChannels#create
|
|
9
|
+
class BetaClaudeTagSlackChannel < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute id
|
|
11
|
+
# The channel's identifier. Starts with `slch_`. It does not change for as long as
|
|
12
|
+
# the channel is set up, with one exception: a channel that is not configured gets
|
|
13
|
+
# a new one when claude.ai replaces its record, which happens only while the
|
|
14
|
+
# organization's read-only mode is off. A channel that is removed and set up again
|
|
15
|
+
# also has a new one. The old one keeps returning 404; look the channel up by its
|
|
16
|
+
# Slack identifiers for the new one.
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :id, String
|
|
20
|
+
|
|
21
|
+
# @!attribute created_at
|
|
22
|
+
# Time the channel was set up, by whichever route. It does not change for as long
|
|
23
|
+
# as `id` does not.
|
|
24
|
+
#
|
|
25
|
+
# @return [Time]
|
|
26
|
+
required :created_at, Time
|
|
27
|
+
|
|
28
|
+
# @!attribute settings
|
|
29
|
+
# What the channel itself stores or, with `include_inherited`, what applies in it.
|
|
30
|
+
# `sources` says which.
|
|
31
|
+
#
|
|
32
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSettings]
|
|
33
|
+
required :settings, -> { Anthropic::Beta::Organization::BetaClaudeTagSettings }
|
|
34
|
+
|
|
35
|
+
# @!attribute slack
|
|
36
|
+
# Slack's own identifiers for the channel.
|
|
37
|
+
#
|
|
38
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers]
|
|
39
|
+
required :slack, -> { Anthropic::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers }
|
|
40
|
+
|
|
41
|
+
# @!attribute sources
|
|
42
|
+
# For each setting, the settings level its value in `settings` comes from.
|
|
43
|
+
#
|
|
44
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSettingSources]
|
|
45
|
+
required :sources, -> { Anthropic::Beta::Organization::BetaClaudeTagSettingSources }
|
|
46
|
+
|
|
47
|
+
# @!attribute type
|
|
48
|
+
#
|
|
49
|
+
# @return [Symbol, :slack_channel]
|
|
50
|
+
required :type, const: :slack_channel
|
|
51
|
+
|
|
52
|
+
# @!attribute updated_at
|
|
53
|
+
# Time Claude Tag's record of the channel last changed. It moves on every change
|
|
54
|
+
# to a setting, and can also move when something no response holds changes, so a
|
|
55
|
+
# later value says to read the channel again, not that a setting changed.
|
|
56
|
+
# Attaching or detaching a Bundle does not by itself move it.
|
|
57
|
+
#
|
|
58
|
+
# @return [Time]
|
|
59
|
+
required :updated_at, Time
|
|
60
|
+
|
|
61
|
+
# @!method initialize(id:, created_at:, settings:, slack:, sources:, updated_at:, type: :slack_channel)
|
|
62
|
+
# A Slack channel set up for Claude Tag, with the settings it stores or, with
|
|
63
|
+
# `include_inherited`, the settings that apply in it.
|
|
64
|
+
#
|
|
65
|
+
# Some parameter documentations has been truncated, see
|
|
66
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackChannel}
|
|
67
|
+
# for more details.
|
|
68
|
+
#
|
|
69
|
+
# @param id [String] The channel's identifier. Starts with `slch_`. It does not change for as long as
|
|
70
|
+
#
|
|
71
|
+
# @param created_at [Time] Time the channel was set up, by whichever route. It does not change for as long
|
|
72
|
+
#
|
|
73
|
+
# @param settings [Anthropic::Models::Beta::Organization::BetaClaudeTagSettings] What the channel itself stores or, with `include_inherited`, what applies in it.
|
|
74
|
+
#
|
|
75
|
+
# @param slack [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackChannelIdentifiers] Slack's own identifiers for the channel.
|
|
76
|
+
#
|
|
77
|
+
# @param sources [Anthropic::Models::Beta::Organization::BetaClaudeTagSettingSources] For each setting, the settings level its value in `settings` comes from.
|
|
78
|
+
#
|
|
79
|
+
# @param updated_at [Time] Time Claude Tag's record of the channel last changed. It moves on every change t
|
|
80
|
+
#
|
|
81
|
+
# @param type [Symbol, :slack_channel]
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
# @see Anthropic::Resources::Beta::Organization::ClaudeTag::SlackWorkspaces#retrieve
|
|
9
|
+
class BetaClaudeTagSlackWorkspace < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute id
|
|
11
|
+
# The workspace's identifier. Starts with `slws_`. It does not change for as long
|
|
12
|
+
# as the workspace is set up. A workspace that is removed and set up again has a
|
|
13
|
+
# new one, and the old one keeps returning 404; look the workspace up by its Slack
|
|
14
|
+
# identifier for the new one.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute created_at
|
|
20
|
+
# Time the workspace was set up, by whichever route. It does not change for as
|
|
21
|
+
# long as `id` does not.
|
|
22
|
+
#
|
|
23
|
+
# @return [Time]
|
|
24
|
+
required :created_at, Time
|
|
25
|
+
|
|
26
|
+
# @!attribute settings
|
|
27
|
+
# What the workspace itself stores or, with `include_inherited`, what applies in
|
|
28
|
+
# it. `sources` says which.
|
|
29
|
+
#
|
|
30
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSettings]
|
|
31
|
+
required :settings, -> { Anthropic::Beta::Organization::BetaClaudeTagSettings }
|
|
32
|
+
|
|
33
|
+
# @!attribute slack
|
|
34
|
+
# Slack's own identifier for the workspace.
|
|
35
|
+
#
|
|
36
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceIdentifiers]
|
|
37
|
+
required :slack, -> { Anthropic::Beta::Organization::BetaClaudeTagSlackWorkspaceIdentifiers }
|
|
38
|
+
|
|
39
|
+
# @!attribute sources
|
|
40
|
+
# For each setting, the settings level its value in `settings` comes from.
|
|
41
|
+
#
|
|
42
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagSettingSources]
|
|
43
|
+
required :sources, -> { Anthropic::Beta::Organization::BetaClaudeTagSettingSources }
|
|
44
|
+
|
|
45
|
+
# @!attribute type
|
|
46
|
+
#
|
|
47
|
+
# @return [Symbol, :slack_workspace]
|
|
48
|
+
required :type, const: :slack_workspace
|
|
49
|
+
|
|
50
|
+
# @!attribute updated_at
|
|
51
|
+
# Time Claude Tag's record of the workspace last changed. It moves on every change
|
|
52
|
+
# to a setting, and can also move when something no response holds changes, so a
|
|
53
|
+
# later value says to read the workspace again, not that a setting changed.
|
|
54
|
+
# Attaching or detaching a Bundle does not by itself move it.
|
|
55
|
+
#
|
|
56
|
+
# @return [Time]
|
|
57
|
+
required :updated_at, Time
|
|
58
|
+
|
|
59
|
+
# @!method initialize(id:, created_at:, settings:, slack:, sources:, updated_at:, type: :slack_workspace)
|
|
60
|
+
# A Slack workspace the organization has connected, itself or through its Slack
|
|
61
|
+
# Enterprise Grid, with the settings it stores or, with `include_inherited`, the
|
|
62
|
+
# settings that apply in it.
|
|
63
|
+
#
|
|
64
|
+
# Some parameter documentations has been truncated, see
|
|
65
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagSlackWorkspace}
|
|
66
|
+
# for more details.
|
|
67
|
+
#
|
|
68
|
+
# @param id [String] The workspace's identifier. Starts with `slws_`. It does not change for as long
|
|
69
|
+
#
|
|
70
|
+
# @param created_at [Time] Time the workspace was set up, by whichever route. It does not change for as lon
|
|
71
|
+
#
|
|
72
|
+
# @param settings [Anthropic::Models::Beta::Organization::BetaClaudeTagSettings] What the workspace itself stores or, with `include_inherited`, what applies in i
|
|
73
|
+
#
|
|
74
|
+
# @param slack [Anthropic::Models::Beta::Organization::BetaClaudeTagSlackWorkspaceIdentifiers] Slack's own identifier for the workspace.
|
|
75
|
+
#
|
|
76
|
+
# @param sources [Anthropic::Models::Beta::Organization::BetaClaudeTagSettingSources] For each setting, the settings level its value in `settings` comes from.
|
|
77
|
+
#
|
|
78
|
+
# @param updated_at [Time] Time Claude Tag's record of the workspace last changed. It moves on every change
|
|
79
|
+
#
|
|
80
|
+
# @param type [Symbol, :slack_workspace]
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
# @see Anthropic::Resources::Beta::Organization::ClaudeTag::Bundles#list
|
|
9
|
+
class BundleListParams < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute limit
|
|
14
|
+
# Number of items to return per page, between 1 and 100. Defaults to 20.
|
|
15
|
+
#
|
|
16
|
+
# @return [Integer, nil]
|
|
17
|
+
optional :limit, Integer
|
|
18
|
+
|
|
19
|
+
# @!attribute page
|
|
20
|
+
# Opaque cursor from a previous response's `next_page`.
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
optional :page, String
|
|
24
|
+
|
|
25
|
+
# @!attribute betas
|
|
26
|
+
# This endpoint is in beta: requests must send
|
|
27
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
28
|
+
#
|
|
29
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
30
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
31
|
+
|
|
32
|
+
# @!method initialize(limit: nil, page: nil, betas: nil, request_options: {})
|
|
33
|
+
# Some parameter documentations has been truncated, see
|
|
34
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::BundleListParams} for more
|
|
35
|
+
# details.
|
|
36
|
+
#
|
|
37
|
+
# @param limit [Integer] Number of items to return per page, between 1 and 100. Defaults to 20.
|
|
38
|
+
#
|
|
39
|
+
# @param page [String] Opaque cursor from a previous response's `next_page`.
|
|
40
|
+
#
|
|
41
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `experimental-claude-tag-2026-10-21
|
|
42
|
+
#
|
|
43
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
# @see Anthropic::Resources::Beta::Organization::ClaudeTag::Bundles#retrieve
|
|
9
|
+
class BundleRetrieveParams < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute bundle_id
|
|
14
|
+
# The Bundle's identifier, starting with `capp_`.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :bundle_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute betas
|
|
20
|
+
# This endpoint is in beta: requests must send
|
|
21
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
22
|
+
#
|
|
23
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
24
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
25
|
+
|
|
26
|
+
# @!method initialize(bundle_id:, betas: nil, request_options: {})
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::BundleRetrieveParams} for
|
|
29
|
+
# more details.
|
|
30
|
+
#
|
|
31
|
+
# @param bundle_id [String] The Bundle's identifier, starting with `capp_`.
|
|
32
|
+
#
|
|
33
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `experimental-claude-tag-2026-10-21
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
data/lib/anthropic/models/beta/organization/claude_tag/bundles/beta_claude_tag_bundle_target.rb
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
module Bundles
|
|
9
|
+
# One Bundle attached to one Slack channel or one Slack workspace. More types of
|
|
10
|
+
# target can be added.
|
|
11
|
+
#
|
|
12
|
+
# @see Anthropic::Resources::Beta::Organization::ClaudeTag::Bundles::Targets#create
|
|
13
|
+
module BetaClaudeTagBundleTarget
|
|
14
|
+
extend Anthropic::Internal::Type::Union
|
|
15
|
+
|
|
16
|
+
discriminator :type
|
|
17
|
+
|
|
18
|
+
# One Bundle attached to one Slack channel. The Bundle can be used in that channel only.
|
|
19
|
+
variant :slack_channel,
|
|
20
|
+
-> { Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTarget }
|
|
21
|
+
|
|
22
|
+
# One Bundle attached to one Slack workspace. The Bundle can be used in the workspace and in every channel in it.
|
|
23
|
+
variant :slack_workspace,
|
|
24
|
+
-> { Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTarget }
|
|
25
|
+
|
|
26
|
+
module Type
|
|
27
|
+
extend Anthropic::Internal::Type::Enum
|
|
28
|
+
|
|
29
|
+
SLACK_CHANNEL = :slack_channel
|
|
30
|
+
SLACK_WORKSPACE = :slack_workspace
|
|
31
|
+
|
|
32
|
+
# @!method self.values
|
|
33
|
+
# @return [Array<Symbol>]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# @!method self.variants
|
|
37
|
+
# @return [Array(Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTarget, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTarget)]
|
|
38
|
+
|
|
39
|
+
# Creates a new instance of the variant class whose `type` matches the given
|
|
40
|
+
# value, passing the remaining arguments to its constructor.
|
|
41
|
+
#
|
|
42
|
+
# Some parameter documentations has been truncated, see
|
|
43
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagBundleTarget}
|
|
44
|
+
# for more details.
|
|
45
|
+
#
|
|
46
|
+
# @param type [Symbol, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagBundleTarget::Type, String]
|
|
47
|
+
#
|
|
48
|
+
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
49
|
+
#
|
|
50
|
+
# @option args [String] :id The Bundle Target's identifier. Starts with `btgt_`. No two Bundle Targets have
|
|
51
|
+
#
|
|
52
|
+
# @option args [Time] :created_at Time the Bundle was attached.
|
|
53
|
+
#
|
|
54
|
+
# @option args [String] :slack_channel_id The identifier of the Slack channel the Bundle is attached to, starting with `sl
|
|
55
|
+
#
|
|
56
|
+
# @option args [String] :slack_workspace_id The identifier of the Slack workspace the Bundle is attached to, starting with `
|
|
57
|
+
#
|
|
58
|
+
# @raise [ArgumentError]
|
|
59
|
+
# @return [Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTarget, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTarget]
|
|
60
|
+
def self.new(type:, **args)
|
|
61
|
+
case type.to_sym
|
|
62
|
+
when :slack_channel
|
|
63
|
+
Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTarget.new(**args)
|
|
64
|
+
when :slack_workspace
|
|
65
|
+
Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTarget.new(**args)
|
|
66
|
+
else
|
|
67
|
+
raise ArgumentError, "unknown type: #{type}"
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
module Bundles
|
|
9
|
+
module BetaClaudeTagBundleTargetCreate
|
|
10
|
+
extend Anthropic::Internal::Type::Union
|
|
11
|
+
|
|
12
|
+
discriminator :type
|
|
13
|
+
|
|
14
|
+
# Attach the Bundle to a Slack channel.
|
|
15
|
+
variant :slack_channel,
|
|
16
|
+
-> { Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTargetCreate }
|
|
17
|
+
|
|
18
|
+
# Attach the Bundle to a Slack workspace.
|
|
19
|
+
variant :slack_workspace,
|
|
20
|
+
-> { Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTargetCreate }
|
|
21
|
+
|
|
22
|
+
module Type
|
|
23
|
+
extend Anthropic::Internal::Type::Enum
|
|
24
|
+
|
|
25
|
+
SLACK_CHANNEL = :slack_channel
|
|
26
|
+
SLACK_WORKSPACE = :slack_workspace
|
|
27
|
+
|
|
28
|
+
# @!method self.values
|
|
29
|
+
# @return [Array<Symbol>]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# @!method self.variants
|
|
33
|
+
# @return [Array(Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTargetCreate, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTargetCreate)]
|
|
34
|
+
|
|
35
|
+
# Creates a new instance of the variant class whose `type` matches the given
|
|
36
|
+
# value, passing the remaining arguments to its constructor.
|
|
37
|
+
#
|
|
38
|
+
# Some parameter documentations has been truncated, see
|
|
39
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagBundleTargetCreate}
|
|
40
|
+
# for more details.
|
|
41
|
+
#
|
|
42
|
+
# @param type [Symbol, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagBundleTargetCreate::Type, String]
|
|
43
|
+
#
|
|
44
|
+
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
45
|
+
#
|
|
46
|
+
# @option args [String] :slack_channel_id The identifier of the Slack channel to attach the Bundle to, starting with `slch
|
|
47
|
+
#
|
|
48
|
+
# @option args [String] :slack_workspace_id The identifier of the Slack workspace to attach the Bundle to, starting with `sl
|
|
49
|
+
#
|
|
50
|
+
# @raise [ArgumentError]
|
|
51
|
+
# @return [Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTargetCreate, Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTargetCreate]
|
|
52
|
+
def self.new(type:, **args)
|
|
53
|
+
case type.to_sym
|
|
54
|
+
when :slack_channel
|
|
55
|
+
Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTargetCreate.new(**args)
|
|
56
|
+
when :slack_workspace
|
|
57
|
+
Anthropic::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackWorkspaceBundleTargetCreate.new(
|
|
58
|
+
**args
|
|
59
|
+
)
|
|
60
|
+
else
|
|
61
|
+
raise ArgumentError, "unknown type: #{type}"
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
module Bundles
|
|
9
|
+
# @see Anthropic::Resources::Beta::Organization::ClaudeTag::Bundles::Targets#delete
|
|
10
|
+
class BetaClaudeTagDeletedBundleTarget < Anthropic::Internal::Type::BaseModel
|
|
11
|
+
# @!attribute id
|
|
12
|
+
# The identifier the Bundle Target had.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute type
|
|
18
|
+
#
|
|
19
|
+
# @return [Symbol, :bundle_target_deleted]
|
|
20
|
+
required :type, const: :bundle_target_deleted
|
|
21
|
+
|
|
22
|
+
# @!method initialize(id:, type: :bundle_target_deleted)
|
|
23
|
+
# Confirms that a Bundle was detached.
|
|
24
|
+
#
|
|
25
|
+
# @param id [String] The identifier the Bundle Target had.
|
|
26
|
+
#
|
|
27
|
+
# @param type [Symbol, :bundle_target_deleted]
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
module Bundles
|
|
9
|
+
class BetaClaudeTagSlackChannelBundleTarget < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute id
|
|
11
|
+
# The Bundle Target's identifier. Starts with `btgt_`. No two Bundle Targets have
|
|
12
|
+
# the same one, and the same Bundle and target always give the same one, also
|
|
13
|
+
# after a detach and a new attach. It is opaque.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute created_at
|
|
19
|
+
# Time the Bundle was attached.
|
|
20
|
+
#
|
|
21
|
+
# @return [Time]
|
|
22
|
+
required :created_at, Time
|
|
23
|
+
|
|
24
|
+
# @!attribute slack_channel_id
|
|
25
|
+
# The identifier of the Slack channel the Bundle is attached to, starting with
|
|
26
|
+
# `slch_`. It is the channel object's `id`, not Slack's `channel_id`.
|
|
27
|
+
#
|
|
28
|
+
# @return [String]
|
|
29
|
+
required :slack_channel_id, String
|
|
30
|
+
|
|
31
|
+
# @!attribute type
|
|
32
|
+
#
|
|
33
|
+
# @return [Symbol, :slack_channel]
|
|
34
|
+
required :type, const: :slack_channel
|
|
35
|
+
|
|
36
|
+
# @!method initialize(id:, created_at:, slack_channel_id:, type: :slack_channel)
|
|
37
|
+
# One Bundle attached to one Slack channel. The Bundle can be used in that channel
|
|
38
|
+
# only.
|
|
39
|
+
#
|
|
40
|
+
# Some parameter documentations has been truncated, see
|
|
41
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTarget}
|
|
42
|
+
# for more details.
|
|
43
|
+
#
|
|
44
|
+
# @param id [String] The Bundle Target's identifier. Starts with `btgt_`. No two Bundle Targets have
|
|
45
|
+
#
|
|
46
|
+
# @param created_at [Time] Time the Bundle was attached.
|
|
47
|
+
#
|
|
48
|
+
# @param slack_channel_id [String] The identifier of the Slack channel the Bundle is attached to, starting with `sl
|
|
49
|
+
#
|
|
50
|
+
# @param type [Symbol, :slack_channel]
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module ClaudeTag
|
|
8
|
+
module Bundles
|
|
9
|
+
class BetaClaudeTagSlackChannelBundleTargetCreate < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute slack_channel_id
|
|
11
|
+
# The identifier of the Slack channel to attach the Bundle to, starting with
|
|
12
|
+
# `slch_`. It is the channel object's `id`, not Slack's `channel_id`.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :slack_channel_id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute type
|
|
18
|
+
#
|
|
19
|
+
# @return [Symbol, :slack_channel]
|
|
20
|
+
required :type, const: :slack_channel
|
|
21
|
+
|
|
22
|
+
# @!method initialize(slack_channel_id:, type: :slack_channel)
|
|
23
|
+
# Attach the Bundle to a Slack channel.
|
|
24
|
+
#
|
|
25
|
+
# Some parameter documentations has been truncated, see
|
|
26
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::Bundles::BetaClaudeTagSlackChannelBundleTargetCreate}
|
|
27
|
+
# for more details.
|
|
28
|
+
#
|
|
29
|
+
# @param slack_channel_id [String] The identifier of the Slack channel to attach the Bundle to, starting with `slch
|
|
30
|
+
#
|
|
31
|
+
# @param type [Symbol, :slack_channel]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|