anthropic 2.7.0 → 2.9.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 +62 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +4 -0
- data/lib/anthropic/helpers/bedrock/client.rb +17 -5
- data/lib/anthropic/helpers/google_cloud/client.rb +4 -1
- data/lib/anthropic/helpers/threads/beta_message_thread.rb +30 -6
- data/lib/anthropic/helpers/tools/runner.rb +21 -4
- data/lib/anthropic/helpers/tracing/streamed_message.rb +8 -1
- data/lib/anthropic/helpers/vertex/client.rb +26 -12
- data/lib/anthropic/internal/tracing.rb +1 -0
- data/lib/anthropic/internal/type/file_input.rb +11 -0
- data/lib/anthropic/internal/util.rb +43 -11
- data/lib/anthropic/models/anthropic_beta.rb +44 -30
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_auto_policy.rb +3 -1
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +3 -2
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rb +42 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rb +43 -1
- data/lib/anthropic/models/beta/organization/beta_analytics_user_activity.rb +14 -1
- data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rb +68 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rb +14 -1
- data/lib/anthropic/models/beta/organization/beta_claude_tag_settings.rb +20 -3
- data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_create.rb +22 -2
- data/lib/anthropic/models/beta/organization/beta_claude_tag_settings_update.rb +22 -2
- data/lib/anthropic/models/beta/organization/beta_external_key.rb +2 -2
- data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +13 -4
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source.rb +52 -0
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_rbac_role_source_custom.rb +20 -0
- data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rb +15 -2
- data/lib/anthropic/models/beta/organization/claude_tag/bundle_update_params.rb +50 -0
- data/lib/anthropic/models/beta/organization/external_key_create_params.rb +8 -5
- data/lib/anthropic/models/beta/organization/plugin_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_marketplace_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugin_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/installation_setting_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/share_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_download_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_list_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/workspace_update_params.rb +2 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb +7 -4
- data/lib/anthropic/models/error_details.rb +28 -3
- data/lib/anthropic/models/model.rb +2 -2
- data/lib/anthropic/models/organization/analytics_claude_tag_metrics.rb +39 -0
- data/lib/anthropic/models/organization/analytics_single_day_activity_summary.rb +43 -1
- data/lib/anthropic/models/organization/analytics_user_activity.rb +12 -1
- data/lib/anthropic/models/organization/external_key.rb +2 -2
- data/lib/anthropic/models/organization/external_key_create_params.rb +8 -5
- data/lib/anthropic/models/organization/key_profile_mismatch_error.rb +3 -3
- data/lib/anthropic/models/organization/key_profile_mismatch_error_details.rb +3 -3
- data/lib/anthropic/models/organization/rbac_role.rb +13 -4
- data/lib/anthropic/models/organization/rbac_role_source.rb +50 -0
- data/lib/anthropic/models/organization/rbac_role_source_built_in.rb +22 -0
- data/lib/anthropic/models/organization/rbac_role_source_custom.rb +18 -0
- data/lib/anthropic/models/organization/workspace_update_params.rb +2 -1
- data/lib/anthropic/models/parent_organization_required_error.rb +20 -0
- data/lib/anthropic/models/parent_organization_required_error_details.rb +18 -0
- data/lib/anthropic/models/rbac_role_not_found_error.rb +19 -0
- data/lib/anthropic/models/rbac_role_not_found_error_details.rb +17 -0
- data/lib/anthropic/models.rb +8 -0
- data/lib/anthropic/resources/beta/messages/batches.rb +6 -6
- data/lib/anthropic/resources/beta/messages.rb +5 -1
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +51 -0
- data/lib/anthropic/resources/beta/organization/external_keys.rb +1 -1
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +4 -5
- data/lib/anthropic/resources/beta/organization/plugins.rb +13 -12
- data/lib/anthropic/resources/beta/organization/rbac_roles/permissions.rb +4 -0
- data/lib/anthropic/resources/beta/organization/rbac_roles.rb +7 -0
- data/lib/anthropic/resources/organization/external_keys.rb +1 -1
- data/lib/anthropic/resources/organization/rbac_roles/permissions.rb +4 -0
- data/lib/anthropic/resources/organization/rbac_roles.rb +7 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +22 -0
- data/rbi/anthropic/helpers/bedrock/client.rbi +6 -2
- data/rbi/anthropic/helpers/bedrock/event_stream.rbi +12 -3
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +3 -1
- data/rbi/anthropic/helpers/google_cloud/client.rbi +3 -1
- data/rbi/anthropic/helpers/refusal_fallback.rbi +12 -4
- data/rbi/anthropic/helpers/vertex/client.rbi +6 -2
- data/rbi/anthropic/internal/tracing.rbi +2 -0
- data/rbi/anthropic/internal/util.rbi +2 -2
- data/rbi/anthropic/models/anthropic_beta.rbi +41 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_auto_policy.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +3 -2
- data/rbi/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbi +69 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbi +60 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_user_activity.rbi +36 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error.rbi +23 -0
- data/rbi/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbi +92 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbi +30 -1
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings.rbi +39 -5
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbi +56 -5
- data/rbi/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbi +56 -5
- data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +21 -4
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source.rbi +78 -0
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbi +36 -0
- data/rbi/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbi +11 -1
- data/rbi/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbi +88 -0
- data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +14 -8
- data/rbi/anthropic/models/beta/organization/plugin_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_marketplace_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_marketplace_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugin_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/installation_setting_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/share_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_download_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/plugins/version_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbi +10 -6
- data/rbi/anthropic/models/error_details.rbi +25 -1
- data/rbi/anthropic/models/model.rbi +2 -2
- data/rbi/anthropic/models/organization/analytics_claude_tag_metrics.rbi +67 -0
- data/rbi/anthropic/models/organization/analytics_single_day_activity_summary.rbi +60 -0
- data/rbi/anthropic/models/organization/analytics_user_activity.rbi +30 -0
- data/rbi/anthropic/models/organization/external_key.rbi +4 -4
- data/rbi/anthropic/models/organization/external_key_create_params.rbi +14 -8
- data/rbi/anthropic/models/organization/key_profile_mismatch_error.rbi +3 -3
- data/rbi/anthropic/models/organization/key_profile_mismatch_error_details.rbi +3 -3
- data/rbi/anthropic/models/organization/rbac_role.rbi +18 -4
- data/rbi/anthropic/models/organization/rbac_role_source.rbi +68 -0
- data/rbi/anthropic/models/organization/rbac_role_source_built_in.rbi +34 -0
- data/rbi/anthropic/models/organization/rbac_role_source_custom.rbi +32 -0
- data/rbi/anthropic/models/organization/workspace_update_params.rbi +4 -2
- data/rbi/anthropic/models/parent_organization_required_error.rbi +17 -0
- data/rbi/anthropic/models/parent_organization_required_error_details.rbi +28 -0
- data/rbi/anthropic/models/rbac_role_not_found_error.rbi +16 -0
- data/rbi/anthropic/models/rbac_role_not_found_error_details.rbi +27 -0
- data/rbi/anthropic/models.rbi +10 -0
- data/rbi/anthropic/resources/beta/organization/claude_tag/bundles.rbi +30 -0
- data/rbi/anthropic/resources/beta/organization/external_keys.rbi +7 -4
- data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +4 -2
- data/rbi/anthropic/resources/beta/organization/plugins/installation_settings.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/plugins/shares.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/plugins/versions.rbi +10 -8
- data/rbi/anthropic/resources/beta/organization/plugins.rbi +17 -14
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +2 -1
- data/rbi/anthropic/resources/organization/external_keys.rbi +7 -4
- data/rbi/anthropic/resources/organization/workspaces.rbi +2 -1
- data/rbi/lib/anthropic/helpers/stainless_helper_header.rbi +6 -1
- data/sig/anthropic/helpers/sessions/event_accumulator.rbs +6 -2
- data/sig/anthropic/internal/tracing.rbs +1 -0
- data/sig/anthropic/internal/util.rbs +1 -1
- data/sig/anthropic/models/anthropic_beta.rbs +21 -21
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +1 -1
- data/sig/anthropic/models/beta/organization/beta_analytics_claude_tag_metrics.rbs +26 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_single_day_activity_summary.rbs +15 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_user_activity.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_bundle_on_call_error_details.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbs +50 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_claude_tag_setting_sources.rbs +8 -3
- data/sig/anthropic/models/beta/organization/beta_claude_tag_settings.rbs +8 -3
- data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_create.rbs +8 -3
- data/sig/anthropic/models/beta/organization/beta_claude_tag_settings_update.rbs +8 -3
- data/sig/anthropic/models/beta/organization/beta_rbac_role.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source.rbs +40 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source_built_in.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role_source_custom.rbs +17 -0
- data/sig/anthropic/models/beta/organization/claude_tag/beta_claude_tag_bundle.rbs +5 -0
- data/sig/anthropic/models/beta/organization/claude_tag/bundle_update_params.rbs +46 -0
- data/sig/anthropic/models/error_details.rbs +26 -0
- data/sig/anthropic/models/model.rbs +2 -2
- data/sig/anthropic/models/organization/analytics_claude_tag_metrics.rbs +24 -0
- data/sig/anthropic/models/organization/analytics_single_day_activity_summary.rbs +15 -0
- data/sig/anthropic/models/organization/analytics_user_activity.rbs +5 -0
- data/sig/anthropic/models/organization/rbac_role.rbs +5 -0
- data/sig/anthropic/models/organization/rbac_role_source.rbs +38 -0
- data/sig/anthropic/models/organization/rbac_role_source_built_in.rbs +15 -0
- data/sig/anthropic/models/organization/rbac_role_source_custom.rbs +15 -0
- data/sig/anthropic/models/parent_organization_required_error.rbs +9 -0
- data/sig/anthropic/models/parent_organization_required_error_details.rbs +14 -0
- data/sig/anthropic/models/rbac_role_not_found_error.rbs +9 -0
- data/sig/anthropic/models/rbac_role_not_found_error_details.rbs +14 -0
- data/sig/anthropic/models.rbs +8 -0
- data/sig/anthropic/resources/beta/organization/claude_tag/bundles.rbs +7 -0
- metadata +68 -2
data/lib/anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details.rb
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaBundleAttachmentNotSupportedErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute error_code
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :bundle_attachment_not_supported]
|
|
11
|
+
required :error_code, const: :bundle_attachment_not_supported
|
|
12
|
+
|
|
13
|
+
# @!method initialize(error_code: :bundle_attachment_not_supported)
|
|
14
|
+
# The Bundle has an attachment this API does not support editing, so its
|
|
15
|
+
# instructions can be changed only in claude.ai.
|
|
16
|
+
#
|
|
17
|
+
# @param error_code [Symbol, :bundle_attachment_not_supported]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# This Bundle's instructions are managed in claude.ai and can't be changed through
|
|
8
|
+
# the API.
|
|
9
|
+
class BetaBundleOnCallError < Anthropic::Errors::BadRequestError
|
|
10
|
+
# @!method error_code
|
|
11
|
+
# @return [Symbol, :bundle_on_call]
|
|
12
|
+
|
|
13
|
+
# @return [Anthropic::Models::Beta::Organization::BetaBundleOnCallErrorDetails]
|
|
14
|
+
def details
|
|
15
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
16
|
+
Anthropic::Beta::Organization::BetaBundleOnCallErrorDetails,
|
|
17
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
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 BetaBundleOnCallErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute error_code
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :bundle_on_call]
|
|
11
|
+
required :error_code, const: :bundle_on_call
|
|
12
|
+
|
|
13
|
+
# @!method initialize(error_code: :bundle_on_call)
|
|
14
|
+
# This Bundle's instructions are managed in claude.ai and can't be changed through
|
|
15
|
+
# the API.
|
|
16
|
+
#
|
|
17
|
+
# @param error_code [Symbol, :bundle_on_call]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# How Claude takes part in a Slack channel. A channel alone stores one. More types
|
|
8
|
+
# can be added.
|
|
9
|
+
module BetaClaudeTagReplyMode
|
|
10
|
+
extend Anthropic::Internal::Type::Union
|
|
11
|
+
|
|
12
|
+
discriminator :type
|
|
13
|
+
|
|
14
|
+
# Claude reads along and joins in when it can help, and pauses on its own in quiet or busy channels.
|
|
15
|
+
variant :automatic, -> { Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic }
|
|
16
|
+
|
|
17
|
+
# Claude replies only when it is @-mentioned.
|
|
18
|
+
variant :mention_only, -> { Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly }
|
|
19
|
+
|
|
20
|
+
# Like `automatic`, but Claude never pauses on its own. Available where it is enabled for the channel.
|
|
21
|
+
variant :always_awake, -> { Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake }
|
|
22
|
+
|
|
23
|
+
# Every new top-level message in the channel gets its own reply from Claude, in a thread under it. Available where it is enabled for the channel, and only once Claude has been used in the channel.
|
|
24
|
+
variant :thread, -> { Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread }
|
|
25
|
+
|
|
26
|
+
module Type
|
|
27
|
+
extend Anthropic::Internal::Type::Enum
|
|
28
|
+
|
|
29
|
+
AUTOMATIC = :automatic
|
|
30
|
+
MENTION_ONLY = :mention_only
|
|
31
|
+
ALWAYS_AWAKE = :always_awake
|
|
32
|
+
THREAD = :thread
|
|
33
|
+
|
|
34
|
+
# @!method self.values
|
|
35
|
+
# @return [Array<Symbol>]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# @!method self.variants
|
|
39
|
+
# @return [Array(Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread)]
|
|
40
|
+
|
|
41
|
+
# Creates a new instance of the variant class whose `type` matches the given
|
|
42
|
+
# value, passing the remaining arguments to its constructor.
|
|
43
|
+
#
|
|
44
|
+
# @param type [Symbol, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyMode::Type, String]
|
|
45
|
+
#
|
|
46
|
+
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
47
|
+
#
|
|
48
|
+
# @raise [ArgumentError]
|
|
49
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread]
|
|
50
|
+
def self.new(type:, **args)
|
|
51
|
+
case type.to_sym
|
|
52
|
+
when :automatic
|
|
53
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic.new(**args)
|
|
54
|
+
when :mention_only
|
|
55
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly.new(**args)
|
|
56
|
+
when :always_awake
|
|
57
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake.new(**args)
|
|
58
|
+
when :thread
|
|
59
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread.new(**args)
|
|
60
|
+
else
|
|
61
|
+
raise ArgumentError, "unknown type: #{type}"
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
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 BetaClaudeTagReplyModeAlwaysAwake < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :always_awake]
|
|
11
|
+
required :type, const: :always_awake
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :always_awake)
|
|
14
|
+
# Like `automatic`, but Claude never pauses on its own. Available where it is
|
|
15
|
+
# enabled for the channel.
|
|
16
|
+
#
|
|
17
|
+
# @param type [Symbol, :always_awake]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
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 BetaClaudeTagReplyModeAutomatic < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :automatic]
|
|
11
|
+
required :type, const: :automatic
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :automatic)
|
|
14
|
+
# Claude reads along and joins in when it can help, and pauses on its own in quiet
|
|
15
|
+
# or busy channels.
|
|
16
|
+
#
|
|
17
|
+
# @param type [Symbol, :automatic]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
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 BetaClaudeTagReplyModeMentionOnly < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :mention_only]
|
|
11
|
+
required :type, const: :mention_only
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :mention_only)
|
|
14
|
+
# Claude replies only when it is @-mentioned.
|
|
15
|
+
#
|
|
16
|
+
# @param type [Symbol, :mention_only]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
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 BetaClaudeTagReplyModeThread < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :thread]
|
|
11
|
+
required :type, const: :thread
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :thread)
|
|
14
|
+
# Every new top-level message in the channel gets its own reply from Claude, in a
|
|
15
|
+
# thread under it. Available where it is enabled for the channel, and only once
|
|
16
|
+
# Claude has been used in the channel.
|
|
17
|
+
#
|
|
18
|
+
# @param type [Symbol, :thread]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -45,7 +45,18 @@ module Anthropic
|
|
|
45
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
46
|
required :model, union: -> { Anthropic::Beta::Organization::BetaClaudeTagSettingSource }, nil?: true
|
|
47
47
|
|
|
48
|
-
# @!
|
|
48
|
+
# @!attribute reply_mode
|
|
49
|
+
# The settings level `reply_mode` comes from: the channel when it stores one. With
|
|
50
|
+
# `include_inherited=true` and no stored mode it is `default`.
|
|
51
|
+
#
|
|
52
|
+
# @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]
|
|
53
|
+
required :reply_mode,
|
|
54
|
+
union: -> {
|
|
55
|
+
Anthropic::Beta::Organization::BetaClaudeTagSettingSource
|
|
56
|
+
},
|
|
57
|
+
nil?: true
|
|
58
|
+
|
|
59
|
+
# @!method initialize(enabled:, environment_id:, guest_policy:, instructions:, model:, reply_mode:)
|
|
49
60
|
# For each setting, the settings level its value in `settings` comes from. Without
|
|
50
61
|
# `include_inherited`, a setting the channel or workspace stores has a source that
|
|
51
62
|
# names the channel or workspace itself, and one it does not store has null, or an
|
|
@@ -65,6 +76,8 @@ module Anthropic
|
|
|
65
76
|
# @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
77
|
#
|
|
67
78
|
# @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.
|
|
79
|
+
#
|
|
80
|
+
# @param reply_mode [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 `reply_mode` comes from: the channel when it stores one. With
|
|
68
81
|
end
|
|
69
82
|
end
|
|
70
83
|
end
|
|
@@ -45,11 +45,26 @@ module Anthropic
|
|
|
45
45
|
# @return [String, nil]
|
|
46
46
|
required :model, String, nil?: true
|
|
47
47
|
|
|
48
|
-
# @!
|
|
48
|
+
# @!attribute reply_mode
|
|
49
|
+
# How Claude takes part in the channel. Only a channel stores one, and no settings
|
|
50
|
+
# level passes one on, so it is always null on a workspace. Null on a channel
|
|
51
|
+
# means the channel stores none yet: Claude then follows the reply mode chosen in
|
|
52
|
+
# Slack, if one was, else `automatic`. A stored reply mode can be changed but
|
|
53
|
+
# never cleared.
|
|
54
|
+
#
|
|
55
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil]
|
|
56
|
+
required :reply_mode,
|
|
57
|
+
union: -> {
|
|
58
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode
|
|
59
|
+
},
|
|
60
|
+
nil?: true
|
|
61
|
+
|
|
62
|
+
# @!method initialize(enabled:, environment_id:, guest_policy:, instructions:, model:, reply_mode:)
|
|
49
63
|
# Claude Tag settings. Without `include_inherited`, a setting that is null is not
|
|
50
64
|
# set on the settings level and is inherited. With it, `enabled` and
|
|
51
|
-
# `guest_policy` are never null,
|
|
52
|
-
#
|
|
65
|
+
# `guest_policy` are never null, `instructions`, `model` and `environment_id` are
|
|
66
|
+
# null when no settings level sets them, and `reply_mode` is null unless the
|
|
67
|
+
# channel itself stores one.
|
|
53
68
|
#
|
|
54
69
|
# Some parameter documentations has been truncated, see
|
|
55
70
|
# {Anthropic::Models::Beta::Organization::BetaClaudeTagSettings} for more details.
|
|
@@ -63,6 +78,8 @@ module Anthropic
|
|
|
63
78
|
# @param instructions [String, nil] Instructions for Claude. Instructions add up: the text of every settings level t
|
|
64
79
|
#
|
|
65
80
|
# @param model [String, nil] The model Claude uses: a model identifier or the name of a model line. The neare
|
|
81
|
+
#
|
|
82
|
+
# @param reply_mode [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil] How Claude takes part in the channel. Only a channel stores one, and no settings
|
|
66
83
|
end
|
|
67
84
|
end
|
|
68
85
|
end
|
|
@@ -14,7 +14,9 @@ module Anthropic
|
|
|
14
14
|
|
|
15
15
|
# @!attribute environment_id
|
|
16
16
|
# The environment Claude's sessions run in: the identifier of an active
|
|
17
|
-
# environment of the organization, starting with `env_
|
|
17
|
+
# environment of the organization, starting with `env_`, or of a self-hosted
|
|
18
|
+
# runner pool of the organization that every member may use, starting with
|
|
19
|
+
# `ccpool_`. Null clears it.
|
|
18
20
|
#
|
|
19
21
|
# @return [String, nil]
|
|
20
22
|
optional :environment_id, String, nil?: true
|
|
@@ -43,7 +45,23 @@ module Anthropic
|
|
|
43
45
|
# @return [String, nil]
|
|
44
46
|
optional :model, String, nil?: true
|
|
45
47
|
|
|
46
|
-
# @!
|
|
48
|
+
# @!attribute reply_mode
|
|
49
|
+
# How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
50
|
+
# `always_awake` or `thread`. Only a channel takes one: an update of a workspace
|
|
51
|
+
# that sends a value is refused, and one that sends null changes nothing. Null
|
|
52
|
+
# never clears it: sent to a channel that stores none it changes nothing, and sent
|
|
53
|
+
# to a channel that stores one it is refused, because a stored reply mode can be
|
|
54
|
+
# changed but never cleared; a caller that wants Claude's default behavior sends
|
|
55
|
+
# `automatic`.
|
|
56
|
+
#
|
|
57
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil]
|
|
58
|
+
optional :reply_mode,
|
|
59
|
+
union: -> {
|
|
60
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode
|
|
61
|
+
},
|
|
62
|
+
nil?: true
|
|
63
|
+
|
|
64
|
+
# @!method initialize(enabled: nil, environment_id: nil, guest_policy: nil, instructions: nil, model: nil, reply_mode: nil)
|
|
47
65
|
# The settings in a request that sets a Slack channel up. A setting left out is
|
|
48
66
|
# not set. A setting sent as null is cleared.
|
|
49
67
|
#
|
|
@@ -60,6 +78,8 @@ module Anthropic
|
|
|
60
78
|
# @param instructions [String, nil] Instructions for Claude, up to 8,192 characters after leading and trailing white
|
|
61
79
|
#
|
|
62
80
|
# @param model [String, nil] The model Claude uses: the identifier of a model, or the name of a model line, t
|
|
81
|
+
#
|
|
82
|
+
# @param reply_mode [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil] How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
63
83
|
end
|
|
64
84
|
end
|
|
65
85
|
end
|
|
@@ -14,7 +14,9 @@ module Anthropic
|
|
|
14
14
|
|
|
15
15
|
# @!attribute environment_id
|
|
16
16
|
# The environment Claude's sessions run in: the identifier of an active
|
|
17
|
-
# environment of the organization, starting with `env_
|
|
17
|
+
# environment of the organization, starting with `env_`, or of a self-hosted
|
|
18
|
+
# runner pool of the organization that every member may use, starting with
|
|
19
|
+
# `ccpool_`. Null clears it.
|
|
18
20
|
#
|
|
19
21
|
# @return [String, nil]
|
|
20
22
|
optional :environment_id, String, nil?: true
|
|
@@ -43,7 +45,23 @@ module Anthropic
|
|
|
43
45
|
# @return [String, nil]
|
|
44
46
|
optional :model, String, nil?: true
|
|
45
47
|
|
|
46
|
-
# @!
|
|
48
|
+
# @!attribute reply_mode
|
|
49
|
+
# How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
50
|
+
# `always_awake` or `thread`. Only a channel takes one: an update of a workspace
|
|
51
|
+
# that sends a value is refused, and one that sends null changes nothing. Null
|
|
52
|
+
# never clears it: sent to a channel that stores none it changes nothing, and sent
|
|
53
|
+
# to a channel that stores one it is refused, because a stored reply mode can be
|
|
54
|
+
# changed but never cleared; a caller that wants Claude's default behavior sends
|
|
55
|
+
# `automatic`.
|
|
56
|
+
#
|
|
57
|
+
# @return [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil]
|
|
58
|
+
optional :reply_mode,
|
|
59
|
+
union: -> {
|
|
60
|
+
Anthropic::Beta::Organization::BetaClaudeTagReplyMode
|
|
61
|
+
},
|
|
62
|
+
nil?: true
|
|
63
|
+
|
|
64
|
+
# @!method initialize(enabled: nil, environment_id: nil, guest_policy: nil, instructions: nil, model: nil, reply_mode: nil)
|
|
47
65
|
# The settings to change. A setting left out is unchanged. A setting sent as null
|
|
48
66
|
# is cleared, so it is inherited.
|
|
49
67
|
#
|
|
@@ -60,6 +78,8 @@ module Anthropic
|
|
|
60
78
|
# @param instructions [String, nil] Instructions for Claude, up to 8,192 characters after leading and trailing white
|
|
61
79
|
#
|
|
62
80
|
# @param model [String, nil] The model Claude uses: the identifier of a model, or the name of a model line, t
|
|
81
|
+
#
|
|
82
|
+
# @param reply_mode [Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread, nil] How Claude takes part in the channel: `automatic`, `mention_only`,
|
|
63
83
|
end
|
|
64
84
|
end
|
|
65
85
|
end
|
|
@@ -58,8 +58,8 @@ module Anthropic
|
|
|
58
58
|
# @!attribute user_profile_id
|
|
59
59
|
# ID of the user profile the key is bound to, or null if the key is not bound to
|
|
60
60
|
# one. A key bound to a user profile can only be attached to a Workspace that has
|
|
61
|
-
# the same user profile. A key that isn't bound can be attached to a
|
|
62
|
-
#
|
|
61
|
+
# the same user profile. A key that isn't bound can only be attached to a
|
|
62
|
+
# Workspace that has no user profile.
|
|
63
63
|
#
|
|
64
64
|
# @return [String, nil]
|
|
65
65
|
required :user_profile_id, String, nil?: true
|
|
@@ -19,13 +19,20 @@ module Anthropic
|
|
|
19
19
|
required :created_at, Time
|
|
20
20
|
|
|
21
21
|
# @!attribute display_name
|
|
22
|
-
# Name of the RBAC Role. For a role
|
|
23
|
-
#
|
|
22
|
+
# Name of the RBAC Role. For a built-in role, this is Anthropic's name for the
|
|
23
|
+
# access that the role grants. Anthropic may change this name, so to keep a
|
|
24
24
|
# lasting reference to a role, store its `id`.
|
|
25
25
|
#
|
|
26
26
|
# @return [String]
|
|
27
27
|
required :display_name, String
|
|
28
28
|
|
|
29
|
+
# @!attribute source
|
|
30
|
+
# Whether the RBAC Role is built-in or custom. More values of `type` may be added,
|
|
31
|
+
# so do not treat every role that is not `built_in` as `custom`.
|
|
32
|
+
#
|
|
33
|
+
# @return [Anthropic::Models::Beta::Organization::BetaRBACRoleSourceBuiltIn, Anthropic::Models::Beta::Organization::BetaRBACRoleSourceCustom]
|
|
34
|
+
required :source, union: -> { Anthropic::Beta::Organization::BetaRBACRoleSource }
|
|
35
|
+
|
|
29
36
|
# @!attribute type
|
|
30
37
|
# Object type.
|
|
31
38
|
#
|
|
@@ -40,7 +47,7 @@ module Anthropic
|
|
|
40
47
|
# @return [Time]
|
|
41
48
|
required :updated_at, Time
|
|
42
49
|
|
|
43
|
-
# @!method initialize(id:, created_at:, display_name:, updated_at:, type: :rbac_role)
|
|
50
|
+
# @!method initialize(id:, created_at:, display_name:, source:, updated_at:, type: :rbac_role)
|
|
44
51
|
# Some parameter documentations has been truncated, see
|
|
45
52
|
# {Anthropic::Models::Beta::Organization::BetaRBACRole} for more details.
|
|
46
53
|
#
|
|
@@ -48,7 +55,9 @@ module Anthropic
|
|
|
48
55
|
#
|
|
49
56
|
# @param created_at [Time] RFC 3339 datetime string indicating when the RBAC Role was created.
|
|
50
57
|
#
|
|
51
|
-
# @param display_name [String] Name of the RBAC Role. For a role
|
|
58
|
+
# @param display_name [String] Name of the RBAC Role. For a built-in role, this is Anthropic's name for the acc
|
|
59
|
+
#
|
|
60
|
+
# @param source [Anthropic::Models::Beta::Organization::BetaRBACRoleSourceBuiltIn, Anthropic::Models::Beta::Organization::BetaRBACRoleSourceCustom] Whether the RBAC Role is built-in or custom. More values of `type` may be added,
|
|
52
61
|
#
|
|
53
62
|
# @param updated_at [Time] RFC 3339 datetime string indicating when the RBAC Role was last updated.
|
|
54
63
|
#
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module BetaRBACRoleSource
|
|
8
|
+
extend Anthropic::Internal::Type::Union
|
|
9
|
+
|
|
10
|
+
discriminator :type
|
|
11
|
+
|
|
12
|
+
variant :built_in, -> { Anthropic::Beta::Organization::BetaRBACRoleSourceBuiltIn }
|
|
13
|
+
|
|
14
|
+
variant :custom, -> { Anthropic::Beta::Organization::BetaRBACRoleSourceCustom }
|
|
15
|
+
|
|
16
|
+
module Type
|
|
17
|
+
extend Anthropic::Internal::Type::Enum
|
|
18
|
+
|
|
19
|
+
BUILT_IN = :built_in
|
|
20
|
+
CUSTOM = :custom
|
|
21
|
+
|
|
22
|
+
# @!method self.values
|
|
23
|
+
# @return [Array<Symbol>]
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# @!method self.variants
|
|
27
|
+
# @return [Array(Anthropic::Models::Beta::Organization::BetaRBACRoleSourceBuiltIn, Anthropic::Models::Beta::Organization::BetaRBACRoleSourceCustom)]
|
|
28
|
+
|
|
29
|
+
# Creates a new instance of the variant class whose `type` matches the given
|
|
30
|
+
# value, passing the remaining arguments to its constructor.
|
|
31
|
+
#
|
|
32
|
+
# @param type [Symbol, Anthropic::Models::Beta::Organization::BetaRBACRoleSource::Type, String]
|
|
33
|
+
#
|
|
34
|
+
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
35
|
+
#
|
|
36
|
+
# @raise [ArgumentError]
|
|
37
|
+
# @return [Anthropic::Models::Beta::Organization::BetaRBACRoleSourceBuiltIn, Anthropic::Models::Beta::Organization::BetaRBACRoleSourceCustom]
|
|
38
|
+
def self.new(type:, **args)
|
|
39
|
+
case type.to_sym
|
|
40
|
+
when :built_in
|
|
41
|
+
Anthropic::Beta::Organization::BetaRBACRoleSourceBuiltIn.new(**args)
|
|
42
|
+
when :custom
|
|
43
|
+
Anthropic::Beta::Organization::BetaRBACRoleSourceCustom.new(**args)
|
|
44
|
+
else
|
|
45
|
+
raise ArgumentError, "unknown type: #{type}"
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaRBACRoleSourceBuiltIn < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
# Anthropic provisions the RBAC Role, and the organization's administrators cannot
|
|
10
|
+
# change or delete it.
|
|
11
|
+
#
|
|
12
|
+
# @return [Symbol, :built_in]
|
|
13
|
+
required :type, const: :built_in
|
|
14
|
+
|
|
15
|
+
# @!method initialize(type: :built_in)
|
|
16
|
+
# Some parameter documentations has been truncated, see
|
|
17
|
+
# {Anthropic::Models::Beta::Organization::BetaRBACRoleSourceBuiltIn} for more
|
|
18
|
+
# details.
|
|
19
|
+
#
|
|
20
|
+
# @param type [Symbol, :built_in] Anthropic provisions the RBAC Role, and the organization's administrators cannot
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaRBACRoleSourceCustom < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
# The organization's administrators can change and delete the RBAC Role.
|
|
10
|
+
#
|
|
11
|
+
# @return [Symbol, :custom]
|
|
12
|
+
required :type, const: :custom
|
|
13
|
+
|
|
14
|
+
# @!method initialize(type: :custom)
|
|
15
|
+
# @param type [Symbol, :custom] The organization's administrators can change and delete the RBAC Role.
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -31,6 +31,13 @@ module Anthropic
|
|
|
31
31
|
# @return [String]
|
|
32
32
|
required :display_name, String
|
|
33
33
|
|
|
34
|
+
# @!attribute instructions
|
|
35
|
+
# Instructions for Claude, added to the instructions of every session that can use
|
|
36
|
+
# the Bundle. Null when it has none.
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
required :instructions, String, nil?: true
|
|
40
|
+
|
|
34
41
|
# @!attribute type
|
|
35
42
|
#
|
|
36
43
|
# @return [Symbol, :bundle]
|
|
@@ -42,10 +49,14 @@ module Anthropic
|
|
|
42
49
|
# @return [Time]
|
|
43
50
|
required :updated_at, Time
|
|
44
51
|
|
|
45
|
-
# @!method initialize(id:, created_at:, description:, display_name:, updated_at:, type: :bundle)
|
|
52
|
+
# @!method initialize(id:, created_at:, description:, display_name:, instructions:, updated_at:, type: :bundle)
|
|
46
53
|
# A named set of access that Claude can use in a Slack channel or a Slack
|
|
47
54
|
# workspace: connectors, repositories and credentials. Created and edited in
|
|
48
|
-
# claude.ai.
|
|
55
|
+
# claude.ai; Update Bundle also changes its instructions.
|
|
56
|
+
#
|
|
57
|
+
# Some parameter documentations has been truncated, see
|
|
58
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagBundle} for more
|
|
59
|
+
# details.
|
|
49
60
|
#
|
|
50
61
|
# @param id [String] The Bundle's identifier. Starts with `capp_`.
|
|
51
62
|
#
|
|
@@ -55,6 +66,8 @@ module Anthropic
|
|
|
55
66
|
#
|
|
56
67
|
# @param display_name [String] The Bundle's name. Always set. Read-only.
|
|
57
68
|
#
|
|
69
|
+
# @param instructions [String, nil] Instructions for Claude, added to the instructions of every session that can use
|
|
70
|
+
#
|
|
58
71
|
# @param updated_at [Time] Time of the last change to the Bundle.
|
|
59
72
|
#
|
|
60
73
|
# @param type [Symbol, :bundle]
|
|
@@ -0,0 +1,50 @@
|
|
|
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#update
|
|
9
|
+
class BundleUpdateParams < 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 instructions
|
|
20
|
+
# Instructions for Claude, up to 10,000 bytes (UTF-8), added to the instructions
|
|
21
|
+
# of every session that can use the Bundle. Null or an empty string clears them.
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :instructions, String, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute betas
|
|
27
|
+
# This endpoint is in beta: requests must send
|
|
28
|
+
# `experimental-claude-tag-2026-10-21` in this header.
|
|
29
|
+
#
|
|
30
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
31
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
32
|
+
|
|
33
|
+
# @!method initialize(bundle_id:, instructions: nil, betas: nil, request_options: {})
|
|
34
|
+
# Some parameter documentations has been truncated, see
|
|
35
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::BundleUpdateParams} for more
|
|
36
|
+
# details.
|
|
37
|
+
#
|
|
38
|
+
# @param bundle_id [String] The Bundle's identifier, starting with `capp_`.
|
|
39
|
+
#
|
|
40
|
+
# @param instructions [String, nil] Instructions for Claude, up to 10,000 bytes (UTF-8), added to the instructions o
|
|
41
|
+
#
|
|
42
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send
|
|
43
|
+
#
|
|
44
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|