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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
module RBACRoleSource
|
|
7
|
+
extend Anthropic::Internal::Type::Union
|
|
8
|
+
|
|
9
|
+
discriminator :type
|
|
10
|
+
|
|
11
|
+
variant :built_in, -> { Anthropic::Organization::RBACRoleSourceBuiltIn }
|
|
12
|
+
|
|
13
|
+
variant :custom, -> { Anthropic::Organization::RBACRoleSourceCustom }
|
|
14
|
+
|
|
15
|
+
module Type
|
|
16
|
+
extend Anthropic::Internal::Type::Enum
|
|
17
|
+
|
|
18
|
+
BUILT_IN = :built_in
|
|
19
|
+
CUSTOM = :custom
|
|
20
|
+
|
|
21
|
+
# @!method self.values
|
|
22
|
+
# @return [Array<Symbol>]
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# @!method self.variants
|
|
26
|
+
# @return [Array(Anthropic::Models::Organization::RBACRoleSourceBuiltIn, Anthropic::Models::Organization::RBACRoleSourceCustom)]
|
|
27
|
+
|
|
28
|
+
# Creates a new instance of the variant class whose `type` matches the given
|
|
29
|
+
# value, passing the remaining arguments to its constructor.
|
|
30
|
+
#
|
|
31
|
+
# @param type [Symbol, Anthropic::Models::Organization::RBACRoleSource::Type, String]
|
|
32
|
+
#
|
|
33
|
+
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
34
|
+
#
|
|
35
|
+
# @raise [ArgumentError]
|
|
36
|
+
# @return [Anthropic::Models::Organization::RBACRoleSourceBuiltIn, Anthropic::Models::Organization::RBACRoleSourceCustom]
|
|
37
|
+
def self.new(type:, **args)
|
|
38
|
+
case type.to_sym
|
|
39
|
+
when :built_in
|
|
40
|
+
Anthropic::Organization::RBACRoleSourceBuiltIn.new(**args)
|
|
41
|
+
when :custom
|
|
42
|
+
Anthropic::Organization::RBACRoleSourceCustom.new(**args)
|
|
43
|
+
else
|
|
44
|
+
raise ArgumentError, "unknown type: #{type}"
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class RBACRoleSourceBuiltIn < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute type
|
|
8
|
+
# Anthropic provisions the RBAC Role, and the organization's administrators cannot
|
|
9
|
+
# change or delete it.
|
|
10
|
+
#
|
|
11
|
+
# @return [Symbol, :built_in]
|
|
12
|
+
required :type, const: :built_in
|
|
13
|
+
|
|
14
|
+
# @!method initialize(type: :built_in)
|
|
15
|
+
# Some parameter documentations has been truncated, see
|
|
16
|
+
# {Anthropic::Models::Organization::RBACRoleSourceBuiltIn} for more details.
|
|
17
|
+
#
|
|
18
|
+
# @param type [Symbol, :built_in] Anthropic provisions the RBAC Role, and the organization's administrators cannot
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class RBACRoleSourceCustom < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute type
|
|
8
|
+
# The organization's administrators can change and delete the RBAC Role.
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :custom]
|
|
11
|
+
required :type, const: :custom
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :custom)
|
|
14
|
+
# @param type [Symbol, :custom] The organization's administrators can change and delete the RBAC Role.
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -59,7 +59,8 @@ module Anthropic
|
|
|
59
59
|
# the Workspace must then name this user profile; the API rejects a request that
|
|
60
60
|
# names none or a different one. Once set, it can't be replaced or removed
|
|
61
61
|
# (sending the same ID again changes nothing); only deleting the user profile
|
|
62
|
-
# clears it.
|
|
62
|
+
# clears it. It can't be set on a Workspace whose External Key isn't bound to this
|
|
63
|
+
# user profile. The default Workspace can't have a user profile.
|
|
63
64
|
#
|
|
64
65
|
# @return [String, nil]
|
|
65
66
|
optional :user_profile_id, String
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The endpoint serves only organizations that belong to a parent organization, and
|
|
6
|
+
# this organization belongs to none.
|
|
7
|
+
class ParentOrganizationRequiredError < Anthropic::Errors::BadRequestError
|
|
8
|
+
# @!method error_code
|
|
9
|
+
# @return [Symbol, :parent_organization_required]
|
|
10
|
+
|
|
11
|
+
# @return [Anthropic::Models::ParentOrganizationRequiredErrorDetails]
|
|
12
|
+
def details
|
|
13
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
14
|
+
Anthropic::ParentOrganizationRequiredErrorDetails,
|
|
15
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class ParentOrganizationRequiredErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, :parent_organization_required]
|
|
9
|
+
required :error_code, const: :parent_organization_required
|
|
10
|
+
|
|
11
|
+
# @!method initialize(error_code: :parent_organization_required)
|
|
12
|
+
# The endpoint serves only organizations that belong to a parent organization, and
|
|
13
|
+
# this organization belongs to none.
|
|
14
|
+
#
|
|
15
|
+
# @param error_code [Symbol, :parent_organization_required]
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# No RBAC Role with this ID was found.
|
|
6
|
+
class RBACRoleNotFoundError < Anthropic::Errors::NotFoundError
|
|
7
|
+
# @!method error_code
|
|
8
|
+
# @return [Symbol, :rbac_role_not_found]
|
|
9
|
+
|
|
10
|
+
# @return [Anthropic::Models::RBACRoleNotFoundErrorDetails]
|
|
11
|
+
def details
|
|
12
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
13
|
+
Anthropic::RBACRoleNotFoundErrorDetails,
|
|
14
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class RBACRoleNotFoundErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, :rbac_role_not_found]
|
|
9
|
+
required :error_code, const: :rbac_role_not_found
|
|
10
|
+
|
|
11
|
+
# @!method initialize(error_code: :rbac_role_not_found)
|
|
12
|
+
# No RBAC Role with this ID was found.
|
|
13
|
+
#
|
|
14
|
+
# @param error_code [Symbol, :rbac_role_not_found]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
data/lib/anthropic/models.rb
CHANGED
|
@@ -735,6 +735,10 @@ module Anthropic
|
|
|
735
735
|
|
|
736
736
|
OverloadedError = Anthropic::Models::OverloadedError
|
|
737
737
|
|
|
738
|
+
ParentOrganizationRequiredError = Anthropic::Models::ParentOrganizationRequiredError
|
|
739
|
+
|
|
740
|
+
ParentOrganizationRequiredErrorDetails = Anthropic::Models::ParentOrganizationRequiredErrorDetails
|
|
741
|
+
|
|
738
742
|
PermissionError = Anthropic::Models::PermissionError
|
|
739
743
|
|
|
740
744
|
PlainTextSource = Anthropic::Models::PlainTextSource
|
|
@@ -761,6 +765,10 @@ module Anthropic
|
|
|
761
765
|
|
|
762
766
|
RawMessageStreamEvent = Anthropic::Models::RawMessageStreamEvent
|
|
763
767
|
|
|
768
|
+
RBACRoleNotFoundError = Anthropic::Models::RBACRoleNotFoundError
|
|
769
|
+
|
|
770
|
+
RBACRoleNotFoundErrorDetails = Anthropic::Models::RBACRoleNotFoundErrorDetails
|
|
771
|
+
|
|
764
772
|
RedactedThinkingBlock = Anthropic::Models::RedactedThinkingBlock
|
|
765
773
|
|
|
766
774
|
RedactedThinkingBlockParam = Anthropic::Models::RedactedThinkingBlockParam
|
|
@@ -55,7 +55,7 @@ module Anthropic
|
|
|
55
55
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
56
56
|
body: parsed.except(*header_params.keys),
|
|
57
57
|
model: Anthropic::Beta::Messages::BetaMessageBatch,
|
|
58
|
-
options:
|
|
58
|
+
options: options
|
|
59
59
|
)
|
|
60
60
|
end
|
|
61
61
|
|
|
@@ -96,7 +96,7 @@ module Anthropic
|
|
|
96
96
|
path: ["v1/messages/batches/%1$s", message_batch_id],
|
|
97
97
|
headers: parsed.transform_keys(betas: "anthropic-beta", workspace_id: "anthropic-workspace-id"),
|
|
98
98
|
model: Anthropic::Beta::Messages::BetaMessageBatch,
|
|
99
|
-
options:
|
|
99
|
+
options: options
|
|
100
100
|
)
|
|
101
101
|
end
|
|
102
102
|
|
|
@@ -147,7 +147,7 @@ module Anthropic
|
|
|
147
147
|
),
|
|
148
148
|
page: Anthropic::Internal::Page,
|
|
149
149
|
model: Anthropic::Beta::Messages::BetaMessageBatch,
|
|
150
|
-
options:
|
|
150
|
+
options: options
|
|
151
151
|
)
|
|
152
152
|
end
|
|
153
153
|
|
|
@@ -189,7 +189,7 @@ module Anthropic
|
|
|
189
189
|
path: ["v1/messages/batches/%1$s", message_batch_id],
|
|
190
190
|
headers: parsed.transform_keys(betas: "anthropic-beta", workspace_id: "anthropic-workspace-id"),
|
|
191
191
|
model: Anthropic::Beta::Messages::BetaDeletedMessageBatch,
|
|
192
|
-
options:
|
|
192
|
+
options: options
|
|
193
193
|
)
|
|
194
194
|
end
|
|
195
195
|
|
|
@@ -236,7 +236,7 @@ module Anthropic
|
|
|
236
236
|
path: ["v1/messages/batches/%1$s/cancel", message_batch_id],
|
|
237
237
|
headers: parsed.transform_keys(betas: "anthropic-beta", workspace_id: "anthropic-workspace-id"),
|
|
238
238
|
model: Anthropic::Beta::Messages::BetaMessageBatch,
|
|
239
|
-
options:
|
|
239
|
+
options: options
|
|
240
240
|
)
|
|
241
241
|
end
|
|
242
242
|
|
|
@@ -284,7 +284,7 @@ module Anthropic
|
|
|
284
284
|
),
|
|
285
285
|
stream: Anthropic::Internal::JsonLStream,
|
|
286
286
|
model: Anthropic::Beta::Messages::BetaMessageBatchIndividualResponse,
|
|
287
|
-
options:
|
|
287
|
+
options: options
|
|
288
288
|
)
|
|
289
289
|
end
|
|
290
290
|
|
|
@@ -506,7 +506,11 @@ module Anthropic
|
|
|
506
506
|
# @return [Anthropic::Helpers::Streaming::MessageStream]
|
|
507
507
|
def stream(params)
|
|
508
508
|
parsed = Anthropic::Models::Beta::MessageCreateParams.dump_request(params).first
|
|
509
|
-
tools, models = Anthropic::Helpers::Messages.distill_input_schema_models!(
|
|
509
|
+
tools, models = Anthropic::Helpers::Messages.distill_input_schema_models!(
|
|
510
|
+
parsed,
|
|
511
|
+
strict: nil,
|
|
512
|
+
is_beta: true
|
|
513
|
+
)
|
|
510
514
|
Anthropic::Streaming::MessageStream.new(raw_stream: stream_raw(params), tools:, models:)
|
|
511
515
|
end
|
|
512
516
|
|
|
@@ -50,6 +50,57 @@ module Anthropic
|
|
|
50
50
|
)
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
# Change a Bundle's instructions. The update is partial: a field left out is
|
|
54
|
+
# unchanged, and `instructions` sent as null or as an empty string clears them.
|
|
55
|
+
# The later of two updates wins. Sessions that start after the change use the new
|
|
56
|
+
# instructions; sessions already running keep the ones they started with. Some
|
|
57
|
+
# Bundles are managed in claude.ai, and an update of one returns 400.
|
|
58
|
+
#
|
|
59
|
+
# Some parameter documentations has been truncated, see
|
|
60
|
+
# {Anthropic::Models::Beta::Organization::ClaudeTag::BundleUpdateParams} for more
|
|
61
|
+
# details.
|
|
62
|
+
#
|
|
63
|
+
# @overload update(bundle_id, instructions: nil, betas: nil, request_options: {})
|
|
64
|
+
#
|
|
65
|
+
# @param bundle_id [String] Path param: The Bundle's identifier, starting with `capp_`.
|
|
66
|
+
#
|
|
67
|
+
# @param instructions [String, nil] Body param: Instructions for Claude, up to 10,000 bytes (UTF-8), added to the in
|
|
68
|
+
#
|
|
69
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send
|
|
70
|
+
#
|
|
71
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
72
|
+
#
|
|
73
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaBundleAttachmentNotSupportedError]
|
|
74
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaBundleOnCallError]
|
|
75
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError]
|
|
76
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledError]
|
|
77
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedError]
|
|
78
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError]
|
|
79
|
+
# @raise [Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError]
|
|
80
|
+
#
|
|
81
|
+
# @return [Anthropic::Models::Beta::Organization::ClaudeTag::BetaClaudeTagBundle]
|
|
82
|
+
#
|
|
83
|
+
# @see Anthropic::Models::Beta::Organization::ClaudeTag::BundleUpdateParams
|
|
84
|
+
def update(bundle_id, params = {})
|
|
85
|
+
parsed, options = Anthropic::Beta::Organization::ClaudeTag::BundleUpdateParams.dump_request(params)
|
|
86
|
+
header_params = {betas: "anthropic-beta"}
|
|
87
|
+
@client.request(
|
|
88
|
+
qualifiers: {beta: "true"},
|
|
89
|
+
span_name: Anthropic::Internal::Tracing::SpanName::ORGANIZATION_CLAUDE_TAG_BUNDLES_UPDATE,
|
|
90
|
+
span_attributes: {"anthropic.organization.claude_tag.bundle.id" => bundle_id},
|
|
91
|
+
span_route: "/v1/organizations/claude_tag/bundles/{bundle_id}",
|
|
92
|
+
method: :post,
|
|
93
|
+
path: ["v1/organizations/claude_tag/bundles/%1$s", bundle_id],
|
|
94
|
+
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
95
|
+
body: parsed.except(*header_params.keys),
|
|
96
|
+
model: Anthropic::Beta::Organization::ClaudeTag::BetaClaudeTagBundle,
|
|
97
|
+
options: {
|
|
98
|
+
extra_headers: {"anthropic-beta" => "experimental-claude-tag-2026-10-21"},
|
|
99
|
+
**options
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
53
104
|
# List the organization's Bundles, newest first by `created_at`. A Bundle that
|
|
54
105
|
# Claude Tag manages for itself is not listed.
|
|
55
106
|
#
|
|
@@ -19,7 +19,7 @@ module Anthropic
|
|
|
19
19
|
#
|
|
20
20
|
# @param geo [Symbol, Anthropic::Models::Beta::Organization::ExternalKeyCreateParams::Geo] Data residency geo. Only `us` is supported.
|
|
21
21
|
#
|
|
22
|
-
# @param user_profile_id [String, nil] ID of a user profile to bind the key to.
|
|
22
|
+
# @param user_profile_id [String, nil] ID of a user profile to bind the key to. A user profile represents one of your c
|
|
23
23
|
#
|
|
24
24
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
25
25
|
#
|
|
@@ -18,11 +18,10 @@ module Anthropic
|
|
|
18
18
|
# Only a Plugin in a `manual` marketplace takes uploads; a Plugin synchronized
|
|
19
19
|
# from a repository gets its versions from the repository. When the Plugin is in
|
|
20
20
|
# the organization's library marketplace, a version that adds a skill with the
|
|
21
|
-
# name of an organization skill
|
|
22
|
-
#
|
|
23
|
-
# `
|
|
24
|
-
#
|
|
25
|
-
# usable; a later version create on the Plugin completes it.
|
|
21
|
+
# name of an organization skill that this API does not list is refused with a 409:
|
|
22
|
+
# `error_code` `skill_name_taken`, with that name in `details.skill_name`. A 503
|
|
23
|
+
# with `error_code` `registration_pending` means the version was stored but is not
|
|
24
|
+
# yet usable; a later version create on the Plugin completes it.
|
|
26
25
|
#
|
|
27
26
|
# For a worked example, see
|
|
28
27
|
# [Create a version](/docs/en/manage-claude/plugins-api#create-a-version) in the
|
|
@@ -30,13 +30,13 @@ module Anthropic
|
|
|
30
30
|
# 409 with `error_code` `plugin_name_taken` and, when a Plugin holds it, that
|
|
31
31
|
# Plugin's ID in `details.plugin_id`. A Plugin going into the organization's
|
|
32
32
|
# library marketplace is also refused with a 409 when one of its skills has the
|
|
33
|
-
# name of an organization skill
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
39
|
-
#
|
|
33
|
+
# name of an organization skill that this API does not list: `error_code`
|
|
34
|
+
# `skill_name_taken`, with that name in `details.skill_name`; rename the skill, or
|
|
35
|
+
# remove the organization skill in claude.ai. A 503 with `error_code`
|
|
36
|
+
# `registration_pending` means the Plugin and its version were stored (their IDs
|
|
37
|
+
# are in `details`) but are not yet usable in claude.ai: do not retry the create
|
|
38
|
+
# (the retry would return `plugin_name_taken`); create a version on the stored
|
|
39
|
+
# Plugin instead, which completes it.
|
|
40
40
|
#
|
|
41
41
|
# For a worked example, see
|
|
42
42
|
# [Create a plugin](/docs/en/manage-claude/plugins-api#create-a-plugin) in the
|
|
@@ -164,10 +164,9 @@ module Anthropic
|
|
|
164
164
|
# accepted. If the scan outcome cannot be read at that moment, the request fails
|
|
165
165
|
# with a retryable 503 instead. When the Plugin is in the organization's library
|
|
166
166
|
# marketplace, a version other than the one served is also refused with a 409 when
|
|
167
|
-
#
|
|
168
|
-
#
|
|
169
|
-
# `
|
|
170
|
-
# Plugin cannot be updated here (403).
|
|
167
|
+
# an organization skill that this API does not list has since taken the name of
|
|
168
|
+
# one of its skills: `error_code` `skill_name_taken`, with that name in
|
|
169
|
+
# `details.skill_name`. A member-owned Plugin cannot be updated here (403).
|
|
171
170
|
#
|
|
172
171
|
# This endpoint does not write installation settings; they are written at
|
|
173
172
|
# `/v1/organizations/plugins/{plugin_id}/installation_settings/{target}`.
|
|
@@ -321,7 +320,9 @@ module Anthropic
|
|
|
321
320
|
|
|
322
321
|
# Permanently delete a Plugin and every version it holds, exactly as when an
|
|
323
322
|
# administrator deletes it in claude.ai. The Plugin may belong to the organization
|
|
324
|
-
# or to a member, including a member who has since left the organization.
|
|
323
|
+
# or to a member, including a member who has since left the organization. Do not
|
|
324
|
+
# delete a Plugin only because your pipeline did not create it: a member or an
|
|
325
|
+
# administrator might have added it in claude.ai.
|
|
325
326
|
#
|
|
326
327
|
# An organization-owned Plugin's installation settings go with it; a member-owned
|
|
327
328
|
# Plugin's shares are withdrawn and its owner no longer has it.
|
|
@@ -24,6 +24,10 @@ module Anthropic
|
|
|
24
24
|
#
|
|
25
25
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
26
26
|
#
|
|
27
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
28
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
29
|
+
# @raise [Anthropic::Models::RBACRoleNotFoundError]
|
|
30
|
+
#
|
|
27
31
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::RBACRoles::BetaRBACRolePermission>]
|
|
28
32
|
#
|
|
29
33
|
# @see Anthropic::Models::Beta::Organization::RBACRoles::PermissionListParams
|
|
@@ -18,6 +18,10 @@ module Anthropic
|
|
|
18
18
|
#
|
|
19
19
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
20
20
|
#
|
|
21
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
22
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
23
|
+
# @raise [Anthropic::Models::RBACRoleNotFoundError]
|
|
24
|
+
#
|
|
21
25
|
# @return [Anthropic::Models::Beta::Organization::BetaRBACRole]
|
|
22
26
|
#
|
|
23
27
|
# @see Anthropic::Models::Beta::Organization::RBACRoleRetrieveParams
|
|
@@ -49,6 +53,9 @@ module Anthropic
|
|
|
49
53
|
#
|
|
50
54
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
51
55
|
#
|
|
56
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
57
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
58
|
+
#
|
|
52
59
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::BetaRBACRole>]
|
|
53
60
|
#
|
|
54
61
|
# @see Anthropic::Models::Beta::Organization::RBACRoleListParams
|
|
@@ -17,7 +17,7 @@ module Anthropic
|
|
|
17
17
|
#
|
|
18
18
|
# @param geo [Symbol, Anthropic::Models::Organization::ExternalKeyCreateParams::Geo] Data residency geo. Only `us` is supported.
|
|
19
19
|
#
|
|
20
|
-
# @param user_profile_id [String, nil] ID of a user profile to bind the key to.
|
|
20
|
+
# @param user_profile_id [String, nil] ID of a user profile to bind the key to. A user profile represents one of your c
|
|
21
21
|
#
|
|
22
22
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
23
23
|
#
|
|
@@ -23,6 +23,10 @@ module Anthropic
|
|
|
23
23
|
#
|
|
24
24
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
25
25
|
#
|
|
26
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
27
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
28
|
+
# @raise [Anthropic::Models::RBACRoleNotFoundError]
|
|
29
|
+
#
|
|
26
30
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Organization::RBACRoles::RBACRolePermission>]
|
|
27
31
|
#
|
|
28
32
|
# @see Anthropic::Models::Organization::RBACRoles::PermissionListParams
|
|
@@ -17,6 +17,10 @@ module Anthropic
|
|
|
17
17
|
#
|
|
18
18
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
19
19
|
#
|
|
20
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
21
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
22
|
+
# @raise [Anthropic::Models::RBACRoleNotFoundError]
|
|
23
|
+
#
|
|
20
24
|
# @return [Anthropic::Models::Organization::RBACRole]
|
|
21
25
|
#
|
|
22
26
|
# @see Anthropic::Models::Organization::RBACRoleRetrieveParams
|
|
@@ -47,6 +51,9 @@ module Anthropic
|
|
|
47
51
|
#
|
|
48
52
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
49
53
|
#
|
|
54
|
+
# @raise [Anthropic::Models::OrganizationTypeNotSupportedError]
|
|
55
|
+
# @raise [Anthropic::Models::ParentOrganizationRequiredError]
|
|
56
|
+
#
|
|
50
57
|
# @return [Anthropic::Internal::PageCursor<Anthropic::Models::Organization::RBACRole>]
|
|
51
58
|
#
|
|
52
59
|
# @see Anthropic::Models::Organization::RBACRoleListParams
|
data/lib/anthropic/version.rb
CHANGED
data/lib/anthropic.rb
CHANGED
|
@@ -119,6 +119,8 @@ require_relative "anthropic/models/beta/beta_invalid_config_type_change_error"
|
|
|
119
119
|
require_relative "anthropic/models/beta/beta_invalid_metadata_error"
|
|
120
120
|
require_relative "anthropic/models/beta/environments/beta_heartbeat_precondition_failed_error"
|
|
121
121
|
require_relative "anthropic/models/beta/organization/beta_api_key_scope_missing_error"
|
|
122
|
+
require_relative "anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error"
|
|
123
|
+
require_relative "anthropic/models/beta/organization/beta_bundle_on_call_error"
|
|
122
124
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error"
|
|
123
125
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error"
|
|
124
126
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_owner_error"
|
|
@@ -177,7 +179,9 @@ require_relative "anthropic/models/organization/workspace_policy_violation_error
|
|
|
177
179
|
require_relative "anthropic/models/organization_on_hold_error"
|
|
178
180
|
require_relative "anthropic/models/organization_type_not_supported_error"
|
|
179
181
|
require_relative "anthropic/models/org_member_limit_exceeded_error"
|
|
182
|
+
require_relative "anthropic/models/parent_organization_required_error"
|
|
180
183
|
require_relative "anthropic/models/ramp_limit_exceeded_error"
|
|
184
|
+
require_relative "anthropic/models/rbac_role_not_found_error"
|
|
181
185
|
require_relative "anthropic/models/request_body_encoding_invalid_error"
|
|
182
186
|
require_relative "anthropic/models/request_body_encoding_unsupported_error"
|
|
183
187
|
require_relative "anthropic/models/request_body_too_large_after_decoding_error"
|
|
@@ -1104,6 +1108,7 @@ require_relative "anthropic/models/beta/organization/beta_analytics_chat_cowork_
|
|
|
1104
1108
|
require_relative "anthropic/models/beta/organization/beta_analytics_chat_metrics"
|
|
1105
1109
|
require_relative "anthropic/models/beta/organization/beta_analytics_claude_code_metrics"
|
|
1106
1110
|
require_relative "anthropic/models/beta/organization/beta_analytics_claude_tag_category"
|
|
1111
|
+
require_relative "anthropic/models/beta/organization/beta_analytics_claude_tag_metrics"
|
|
1107
1112
|
require_relative "anthropic/models/beta/organization/beta_analytics_connector_activity"
|
|
1108
1113
|
require_relative "anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_chat_metrics"
|
|
1109
1114
|
require_relative "anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_metrics"
|
|
@@ -1183,6 +1188,8 @@ require_relative "anthropic/models/beta/organization/beta_api_key_workspace_scop
|
|
|
1183
1188
|
require_relative "anthropic/models/beta/organization/beta_aws_external_key_config"
|
|
1184
1189
|
require_relative "anthropic/models/beta/organization/beta_azure_external_key_config"
|
|
1185
1190
|
require_relative "anthropic/models/beta/organization/beta_azure_external_key_config_param"
|
|
1191
|
+
require_relative "anthropic/models/beta/organization/beta_bundle_attachment_not_supported_error_details"
|
|
1192
|
+
require_relative "anthropic/models/beta/organization/beta_bundle_on_call_error_details"
|
|
1186
1193
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details"
|
|
1187
1194
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details"
|
|
1188
1195
|
require_relative "anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details"
|
|
@@ -1194,6 +1201,11 @@ require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_polic
|
|
|
1194
1201
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_allow"
|
|
1195
1202
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_channel_only"
|
|
1196
1203
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_guest_policy_restrict"
|
|
1204
|
+
require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode"
|
|
1205
|
+
require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_always_awake"
|
|
1206
|
+
require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_automatic"
|
|
1207
|
+
require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_mention_only"
|
|
1208
|
+
require_relative "anthropic/models/beta/organization/beta_claude_tag_reply_mode_thread"
|
|
1197
1209
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_settings"
|
|
1198
1210
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_settings_create"
|
|
1199
1211
|
require_relative "anthropic/models/beta/organization/beta_claude_tag_setting_source"
|
|
@@ -1260,6 +1272,9 @@ require_relative "anthropic/models/beta/organization/beta_plugin_target_rbac_gro
|
|
|
1260
1272
|
require_relative "anthropic/models/beta/organization/beta_plugin_user_actor"
|
|
1261
1273
|
require_relative "anthropic/models/beta/organization/beta_rbac_group"
|
|
1262
1274
|
require_relative "anthropic/models/beta/organization/beta_rbac_role"
|
|
1275
|
+
require_relative "anthropic/models/beta/organization/beta_rbac_role_source"
|
|
1276
|
+
require_relative "anthropic/models/beta/organization/beta_rbac_role_source_built_in"
|
|
1277
|
+
require_relative "anthropic/models/beta/organization/beta_rbac_role_source_custom"
|
|
1263
1278
|
require_relative "anthropic/models/beta/organization/beta_registration_pending_error_details"
|
|
1264
1279
|
require_relative "anthropic/models/beta/organization/beta_scan_failed_error_details"
|
|
1265
1280
|
require_relative "anthropic/models/beta/organization/beta_scan_pending_error_details"
|
|
@@ -1329,6 +1344,7 @@ require_relative "anthropic/models/beta/organization/claude_tag/bundles/target_c
|
|
|
1329
1344
|
require_relative "anthropic/models/beta/organization/claude_tag/bundles/target_delete_params"
|
|
1330
1345
|
require_relative "anthropic/models/beta/organization/claude_tag/bundles/target_list_params"
|
|
1331
1346
|
require_relative "anthropic/models/beta/organization/claude_tag/bundles/target_retrieve_params"
|
|
1347
|
+
require_relative "anthropic/models/beta/organization/claude_tag/bundle_update_params"
|
|
1332
1348
|
require_relative "anthropic/models/beta/organization/claude_tag/slack_channel_create_params"
|
|
1333
1349
|
require_relative "anthropic/models/beta/organization/claude_tag/slack_channel_delete_params"
|
|
1334
1350
|
require_relative "anthropic/models/beta/organization/claude_tag/slack_channel_list_params"
|
|
@@ -2043,6 +2059,7 @@ require_relative "anthropic/models/organization/analytics_chat_cowork_unified_me
|
|
|
2043
2059
|
require_relative "anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics"
|
|
2044
2060
|
require_relative "anthropic/models/organization/analytics_chat_metrics"
|
|
2045
2061
|
require_relative "anthropic/models/organization/analytics_claude_code_metrics"
|
|
2062
|
+
require_relative "anthropic/models/organization/analytics_claude_tag_metrics"
|
|
2046
2063
|
require_relative "anthropic/models/organization/analytics_connector_activity"
|
|
2047
2064
|
require_relative "anthropic/models/organization/analytics_connector_chat_cowork_unified_chat_metrics"
|
|
2048
2065
|
require_relative "anthropic/models/organization/analytics_connector_chat_cowork_unified_metrics"
|
|
@@ -2194,6 +2211,9 @@ require_relative "anthropic/models/organization/rbac_roles/rbac_connector_scope_
|
|
|
2194
2211
|
require_relative "anthropic/models/organization/rbac_roles/rbac_connector_tool_permission_resource"
|
|
2195
2212
|
require_relative "anthropic/models/organization/rbac_roles/rbac_organization_permission_resource"
|
|
2196
2213
|
require_relative "anthropic/models/organization/rbac_roles/rbac_role_permission"
|
|
2214
|
+
require_relative "anthropic/models/organization/rbac_role_source"
|
|
2215
|
+
require_relative "anthropic/models/organization/rbac_role_source_built_in"
|
|
2216
|
+
require_relative "anthropic/models/organization/rbac_role_source_custom"
|
|
2197
2217
|
require_relative "anthropic/models/organization/service_account"
|
|
2198
2218
|
require_relative "anthropic/models/organization/service_account_archive_params"
|
|
2199
2219
|
require_relative "anthropic/models/organization/service_account_create_params"
|
|
@@ -2273,6 +2293,7 @@ require_relative "anthropic/models/org_member_limit_exceeded_error_details"
|
|
|
2273
2293
|
require_relative "anthropic/models/output_config"
|
|
2274
2294
|
require_relative "anthropic/models/output_tokens_details"
|
|
2275
2295
|
require_relative "anthropic/models/overloaded_error"
|
|
2296
|
+
require_relative "anthropic/models/parent_organization_required_error_details"
|
|
2276
2297
|
require_relative "anthropic/models/permission_error"
|
|
2277
2298
|
require_relative "anthropic/models/plain_text_source"
|
|
2278
2299
|
require_relative "anthropic/models/ramp_limit_exceeded_error_details"
|
|
@@ -2285,6 +2306,7 @@ require_relative "anthropic/models/raw_message_delta_event"
|
|
|
2285
2306
|
require_relative "anthropic/models/raw_message_start_event"
|
|
2286
2307
|
require_relative "anthropic/models/raw_message_stop_event"
|
|
2287
2308
|
require_relative "anthropic/models/raw_message_stream_event"
|
|
2309
|
+
require_relative "anthropic/models/rbac_role_not_found_error_details"
|
|
2288
2310
|
require_relative "anthropic/models/redacted_thinking_block"
|
|
2289
2311
|
require_relative "anthropic/models/redacted_thinking_block_param"
|
|
2290
2312
|
require_relative "anthropic/models/refusal_stop_details"
|
|
@@ -53,12 +53,16 @@ module Anthropic
|
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
# @api private
|
|
56
|
-
sig
|
|
56
|
+
sig do
|
|
57
|
+
params(req: Anthropic::APIRequest).returns(Anthropic::APIRequest)
|
|
58
|
+
end
|
|
57
59
|
private def adapt_request(req)
|
|
58
60
|
end
|
|
59
61
|
|
|
60
62
|
# @api private
|
|
61
|
-
sig
|
|
63
|
+
sig do
|
|
64
|
+
params(req: Anthropic::APIRequest).returns(Anthropic::APIRequest)
|
|
65
|
+
end
|
|
62
66
|
private def sign_request(req)
|
|
63
67
|
end
|
|
64
68
|
|