anthropic 2.6.0 → 2.7.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 +23 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +1 -1
- data/lib/anthropic/helpers/aws/client.rb +6 -0
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +6 -0
- data/lib/anthropic/helpers/streaming/message_stream.rb +6 -4
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +8 -2
- data/lib/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rb +35 -0
- data/lib/anthropic/models/beta/environments/work_heartbeat_params.rb +2 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +10 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rb +1 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +10 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rb +1 -0
- data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +12 -1
- data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +12 -1
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rb +2 -2
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb +2 -2
- data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +1 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +1 -0
- data/lib/anthropic/models/beta/organization/webhook_create_params.rb +1 -0
- data/lib/anthropic/models/beta/organization/webhook_update_params.rb +1 -0
- data/lib/anthropic/models/error_details.rb +9 -9
- data/lib/anthropic/models/model.rb +10 -0
- data/lib/anthropic/models/sandbox_egress_restricted_error.rb +21 -0
- data/lib/anthropic/models/sandbox_egress_restricted_error_details.rb +19 -0
- data/lib/anthropic/models/thread_unsupported_feature_name.rb +0 -1
- data/lib/anthropic/models.rb +4 -0
- data/lib/anthropic/resources/beta/organization/analytics/cost.rb +5 -1
- data/lib/anthropic/resources/beta/organization/analytics/usage.rb +5 -1
- data/lib/anthropic/resources/beta/organization/api_keys.rb +1 -0
- data/lib/anthropic/resources/beta/organization/compliance_settings.rb +2 -0
- data/lib/anthropic/resources/beta/organization/external_keys.rb +5 -0
- data/lib/anthropic/resources/beta/organization/federation/issuers.rb +6 -0
- data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +4 -0
- data/lib/anthropic/resources/beta/organization/federation/rules.rb +6 -0
- data/lib/anthropic/resources/beta/organization/invites.rb +3 -0
- data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +2 -0
- data/lib/anthropic/resources/beta/organization/rbac_groups.rb +5 -0
- data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +4 -0
- data/lib/anthropic/resources/beta/organization/service_accounts.rb +6 -0
- data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +4 -0
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +2 -2
- data/lib/anthropic/resources/beta/organization/users.rb +8 -4
- data/lib/anthropic/resources/beta/organization/webhooks.rb +4 -0
- data/lib/anthropic/resources/beta/organization/workspaces/members.rb +4 -0
- data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +2 -0
- data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +6 -0
- data/lib/anthropic/resources/beta/organization/workspaces.rb +4 -0
- data/lib/anthropic/resources/organization/api_keys.rb +1 -0
- data/lib/anthropic/resources/organization/compliance_settings.rb +2 -0
- data/lib/anthropic/resources/organization/external_keys.rb +5 -0
- data/lib/anthropic/resources/organization/federation/issuers.rb +6 -0
- data/lib/anthropic/resources/organization/federation/rules/workspaces.rb +4 -0
- data/lib/anthropic/resources/organization/federation/rules.rb +6 -0
- data/lib/anthropic/resources/organization/invites.rb +3 -0
- data/lib/anthropic/resources/organization/rbac_groups/members.rb +2 -0
- data/lib/anthropic/resources/organization/rbac_groups.rb +5 -0
- data/lib/anthropic/resources/organization/service_accounts/workspaces.rb +4 -0
- data/lib/anthropic/resources/organization/service_accounts.rb +6 -0
- data/lib/anthropic/resources/organization/spend_limits/increase_requests.rb +4 -0
- data/lib/anthropic/resources/organization/users.rb +3 -0
- data/lib/anthropic/resources/organization/workspaces/members.rb +4 -0
- data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +2 -0
- data/lib/anthropic/resources/organization/workspaces/service_accounts.rb +6 -0
- data/lib/anthropic/resources/organization/workspaces.rb +4 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +3 -2
- data/rbi/anthropic/helpers/aws/client.rbi +5 -0
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +5 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +7 -1
- data/rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi +51 -0
- data/rbi/anthropic/models/beta/environments/work_heartbeat_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +14 -0
- data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +14 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbi +2 -2
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi +2 -2
- data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +5 -0
- data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +5 -0
- data/rbi/anthropic/models/error_details.rbi +6 -6
- data/rbi/anthropic/models/model.rbi +8 -0
- data/rbi/anthropic/models/sandbox_egress_restricted_error.rbi +18 -0
- data/rbi/anthropic/models/sandbox_egress_restricted_error_details.rbi +29 -0
- data/rbi/anthropic/models/thread_unsupported_feature_name.rbi +0 -1
- data/rbi/anthropic/models.rbi +5 -0
- data/rbi/anthropic/resources/beta/environments/work.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +7 -0
- data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +7 -0
- data/rbi/anthropic/resources/beta/organization/users.rbi +4 -4
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +9 -0
- data/sig/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbs +34 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbs +2 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbs +2 -0
- data/sig/anthropic/models/beta/organization/analytics/cost_list_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/usage_list_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +2 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +2 -0
- data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +2 -0
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +2 -0
- data/sig/anthropic/models/error_details.rbs +6 -6
- data/sig/anthropic/models/model.rbs +9 -1
- data/sig/anthropic/models/sandbox_egress_restricted_error.rbs +9 -0
- data/sig/anthropic/models/sandbox_egress_restricted_error_details.rbs +14 -0
- data/sig/anthropic/models/thread_unsupported_feature_name.rbs +0 -2
- data/sig/anthropic/models.rbs +4 -0
- data/sig/anthropic/resources/beta/organization/analytics/cost.rbs +1 -0
- data/sig/anthropic/resources/beta/organization/analytics/usage.rbs +1 -0
- metadata +11 -8
- data/lib/anthropic/models/beta/beta_billing_frozen_error.rb +0 -22
- data/lib/anthropic/models/beta/beta_billing_frozen_error_details.rb +0 -22
- data/rbi/anthropic/models/beta/beta_billing_frozen_error.rbi +0 -19
- data/rbi/anthropic/models/beta/beta_billing_frozen_error_details.rbi +0 -32
- data/sig/anthropic/models/beta/beta_billing_frozen_error.rbs +0 -11
- data/sig/anthropic/models/beta/beta_billing_frozen_error_details.rbs +0 -17
|
@@ -23,6 +23,7 @@ module Anthropic
|
|
|
23
23
|
models: ::Array[String]?,
|
|
24
24
|
order: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_sort_order,
|
|
25
25
|
order_by: Anthropic::Models::Beta::Organization::Analytics::beta_analytics_cost_order_by,
|
|
26
|
+
organization_ids: ::Array[String]?,
|
|
26
27
|
page: String?,
|
|
27
28
|
products: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]?,
|
|
28
29
|
rbac_group_ids: ::Array[String]?,
|
|
@@ -89,6 +90,8 @@ module Anthropic
|
|
|
89
90
|
Anthropic::Models::Beta::Organization::Analytics::beta_analytics_cost_order_by
|
|
90
91
|
) -> Anthropic::Models::Beta::Organization::Analytics::beta_analytics_cost_order_by
|
|
91
92
|
|
|
93
|
+
attr_accessor organization_ids: ::Array[String]?
|
|
94
|
+
|
|
92
95
|
attr_accessor page: String?
|
|
93
96
|
|
|
94
97
|
attr_accessor products: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]?
|
|
@@ -134,6 +137,7 @@ module Anthropic
|
|
|
134
137
|
?models: ::Array[String]?,
|
|
135
138
|
?order: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_sort_order,
|
|
136
139
|
?order_by: Anthropic::Models::Beta::Organization::Analytics::beta_analytics_cost_order_by,
|
|
140
|
+
?organization_ids: ::Array[String]?,
|
|
137
141
|
?page: String?,
|
|
138
142
|
?products: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]?,
|
|
139
143
|
?rbac_group_ids: ::Array[String]?,
|
|
@@ -167,6 +171,7 @@ module Anthropic
|
|
|
167
171
|
models: ::Array[String]?,
|
|
168
172
|
order: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_sort_order,
|
|
169
173
|
order_by: Anthropic::Models::Beta::Organization::Analytics::beta_analytics_cost_order_by,
|
|
174
|
+
organization_ids: ::Array[String]?,
|
|
170
175
|
page: String?,
|
|
171
176
|
products: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]?,
|
|
172
177
|
rbac_group_ids: ::Array[String]?,
|
|
@@ -23,6 +23,7 @@ module Anthropic
|
|
|
23
23
|
models: ::Array[String]?,
|
|
24
24
|
order: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_sort_order,
|
|
25
25
|
order_by: Anthropic::Models::Beta::Organization::Analytics::beta_analytics_usage_order_by,
|
|
26
|
+
organization_ids: ::Array[String]?,
|
|
26
27
|
page: String?,
|
|
27
28
|
products: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]?,
|
|
28
29
|
rbac_group_ids: ::Array[String]?,
|
|
@@ -89,6 +90,8 @@ module Anthropic
|
|
|
89
90
|
Anthropic::Models::Beta::Organization::Analytics::beta_analytics_usage_order_by
|
|
90
91
|
) -> Anthropic::Models::Beta::Organization::Analytics::beta_analytics_usage_order_by
|
|
91
92
|
|
|
93
|
+
attr_accessor organization_ids: ::Array[String]?
|
|
94
|
+
|
|
92
95
|
attr_accessor page: String?
|
|
93
96
|
|
|
94
97
|
attr_accessor products: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]?
|
|
@@ -134,6 +137,7 @@ module Anthropic
|
|
|
134
137
|
?models: ::Array[String]?,
|
|
135
138
|
?order: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_sort_order,
|
|
136
139
|
?order_by: Anthropic::Models::Beta::Organization::Analytics::beta_analytics_usage_order_by,
|
|
140
|
+
?organization_ids: ::Array[String]?,
|
|
137
141
|
?page: String?,
|
|
138
142
|
?products: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]?,
|
|
139
143
|
?rbac_group_ids: ::Array[String]?,
|
|
@@ -167,6 +171,7 @@ module Anthropic
|
|
|
167
171
|
models: ::Array[String]?,
|
|
168
172
|
order: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_sort_order,
|
|
169
173
|
order_by: Anthropic::Models::Beta::Organization::Analytics::beta_analytics_usage_order_by,
|
|
174
|
+
organization_ids: ::Array[String]?,
|
|
170
175
|
page: String?,
|
|
171
176
|
products: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]?,
|
|
172
177
|
rbac_group_ids: ::Array[String]?,
|
|
@@ -66,12 +66,14 @@ module Anthropic
|
|
|
66
66
|
type enabled_event =
|
|
67
67
|
:"user_profile.enforcement_action_opened"
|
|
68
68
|
| :"user_profile.enforcement_action_resolved"
|
|
69
|
+
| :"user_profile.program_status_updated"
|
|
69
70
|
|
|
70
71
|
module EnabledEvent
|
|
71
72
|
extend Anthropic::Internal::Type::Enum
|
|
72
73
|
|
|
73
74
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED: :"user_profile.enforcement_action_opened"
|
|
74
75
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED: :"user_profile.enforcement_action_resolved"
|
|
76
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED: :"user_profile.program_status_updated"
|
|
75
77
|
|
|
76
78
|
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint::enabled_event]
|
|
77
79
|
end
|
|
@@ -61,12 +61,14 @@ module Anthropic
|
|
|
61
61
|
type enabled_event =
|
|
62
62
|
:"user_profile.enforcement_action_opened"
|
|
63
63
|
| :"user_profile.enforcement_action_resolved"
|
|
64
|
+
| :"user_profile.program_status_updated"
|
|
64
65
|
|
|
65
66
|
module EnabledEvent
|
|
66
67
|
extend Anthropic::Internal::Type::Enum
|
|
67
68
|
|
|
68
69
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED: :"user_profile.enforcement_action_opened"
|
|
69
70
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED: :"user_profile.enforcement_action_resolved"
|
|
71
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED: :"user_profile.program_status_updated"
|
|
70
72
|
|
|
71
73
|
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpoint::enabled_event]
|
|
72
74
|
end
|
|
@@ -55,12 +55,14 @@ module Anthropic
|
|
|
55
55
|
type enabled_event =
|
|
56
56
|
:"user_profile.enforcement_action_opened"
|
|
57
57
|
| :"user_profile.enforcement_action_resolved"
|
|
58
|
+
| :"user_profile.program_status_updated"
|
|
58
59
|
|
|
59
60
|
module EnabledEvent
|
|
60
61
|
extend Anthropic::Internal::Type::Enum
|
|
61
62
|
|
|
62
63
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED: :"user_profile.enforcement_action_opened"
|
|
63
64
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED: :"user_profile.enforcement_action_resolved"
|
|
65
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED: :"user_profile.program_status_updated"
|
|
64
66
|
|
|
65
67
|
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event]
|
|
66
68
|
end
|
|
@@ -75,12 +75,14 @@ module Anthropic
|
|
|
75
75
|
type enabled_event =
|
|
76
76
|
:"user_profile.enforcement_action_opened"
|
|
77
77
|
| :"user_profile.enforcement_action_resolved"
|
|
78
|
+
| :"user_profile.program_status_updated"
|
|
78
79
|
|
|
79
80
|
module EnabledEvent
|
|
80
81
|
extend Anthropic::Internal::Type::Enum
|
|
81
82
|
|
|
82
83
|
USER_PROFILE_ENFORCEMENT_ACTION_OPENED: :"user_profile.enforcement_action_opened"
|
|
83
84
|
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED: :"user_profile.enforcement_action_resolved"
|
|
85
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED: :"user_profile.program_status_updated"
|
|
84
86
|
|
|
85
87
|
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::WebhookUpdateParams::enabled_event]
|
|
86
88
|
end
|
|
@@ -36,6 +36,7 @@ module Anthropic
|
|
|
36
36
|
| Anthropic::CMEKContextUnavailableErrorDetails
|
|
37
37
|
| Anthropic::Organization::OrgAPIKeyLimitExceededErrorDetails
|
|
38
38
|
| Anthropic::Organization::WorkspaceAPIKeyLimitExceededErrorDetails
|
|
39
|
+
| Anthropic::SandboxEgressRestrictedErrorDetails
|
|
39
40
|
| Anthropic::UserProfileNotFoundErrorDetails
|
|
40
41
|
| Anthropic::Organization::ExternalKeyInWorkspacePolicyErrorDetails
|
|
41
42
|
| Anthropic::Organization::AlreadyMemberErrorDetails
|
|
@@ -67,7 +68,6 @@ module Anthropic
|
|
|
67
68
|
| Anthropic::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails
|
|
68
69
|
| Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails
|
|
69
70
|
| Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails
|
|
70
|
-
| Anthropic::Beta::BetaBillingFrozenErrorDetails
|
|
71
71
|
| Anthropic::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails
|
|
72
72
|
| Anthropic::BetaUnsupportedCharsetErrorDetails
|
|
73
73
|
| Anthropic::Beta::Organization::BetaPluginNameTakenErrorDetails
|
|
@@ -123,6 +123,7 @@ module Anthropic
|
|
|
123
123
|
| :cmek_context_unavailable
|
|
124
124
|
| :org_api_key_limit_exceeded
|
|
125
125
|
| :workspace_api_key_limit_exceeded
|
|
126
|
+
| :sandbox_egress_restricted
|
|
126
127
|
| :user_profile_not_found
|
|
127
128
|
| :external_key_in_workspace_policy
|
|
128
129
|
| :already_member
|
|
@@ -154,7 +155,6 @@ module Anthropic
|
|
|
154
155
|
| :cannot_sign_out_membership_admin
|
|
155
156
|
| :cannot_sign_out_owner
|
|
156
157
|
| :cannot_sign_out_privileged_member
|
|
157
|
-
| :billing_frozen
|
|
158
158
|
| :spend_limits_admin_api_writes_not_enabled
|
|
159
159
|
| :unsupported_charset
|
|
160
160
|
| :plugin_name_taken
|
|
@@ -209,6 +209,7 @@ module Anthropic
|
|
|
209
209
|
CMEK_CONTEXT_UNAVAILABLE: :cmek_context_unavailable
|
|
210
210
|
ORG_API_KEY_LIMIT_EXCEEDED: :org_api_key_limit_exceeded
|
|
211
211
|
WORKSPACE_API_KEY_LIMIT_EXCEEDED: :workspace_api_key_limit_exceeded
|
|
212
|
+
SANDBOX_EGRESS_RESTRICTED: :sandbox_egress_restricted
|
|
212
213
|
USER_PROFILE_NOT_FOUND: :user_profile_not_found
|
|
213
214
|
EXTERNAL_KEY_IN_WORKSPACE_POLICY: :external_key_in_workspace_policy
|
|
214
215
|
ALREADY_MEMBER: :already_member
|
|
@@ -240,7 +241,6 @@ module Anthropic
|
|
|
240
241
|
CANNOT_SIGN_OUT_MEMBERSHIP_ADMIN: :cannot_sign_out_membership_admin
|
|
241
242
|
CANNOT_SIGN_OUT_OWNER: :cannot_sign_out_owner
|
|
242
243
|
CANNOT_SIGN_OUT_PRIVILEGED_MEMBER: :cannot_sign_out_privileged_member
|
|
243
|
-
BILLING_FROZEN: :billing_frozen
|
|
244
244
|
SPEND_LIMITS_ADMIN_API_WRITES_NOT_ENABLED: :spend_limits_admin_api_writes_not_enabled
|
|
245
245
|
UNSUPPORTED_CHARSET: :unsupported_charset
|
|
246
246
|
PLUGIN_NAME_TAKEN: :plugin_name_taken
|
|
@@ -386,6 +386,9 @@ module Anthropic
|
|
|
386
386
|
error_code: :workspace_api_key_limit_exceeded
|
|
387
387
|
| "workspace_api_key_limit_exceeded"
|
|
388
388
|
) -> Anthropic::Organization::WorkspaceAPIKeyLimitExceededErrorDetails
|
|
389
|
+
| (
|
|
390
|
+
error_code: :sandbox_egress_restricted | "sandbox_egress_restricted"
|
|
391
|
+
) -> Anthropic::SandboxEgressRestrictedErrorDetails
|
|
389
392
|
| (
|
|
390
393
|
error_code: :user_profile_not_found | "user_profile_not_found"
|
|
391
394
|
) -> Anthropic::UserProfileNotFoundErrorDetails
|
|
@@ -499,9 +502,6 @@ module Anthropic
|
|
|
499
502
|
error_code: :cannot_sign_out_privileged_member
|
|
500
503
|
| "cannot_sign_out_privileged_member"
|
|
501
504
|
) -> Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails
|
|
502
|
-
| (
|
|
503
|
-
error_code: :billing_frozen | "billing_frozen"
|
|
504
|
-
) -> Anthropic::Beta::BetaBillingFrozenErrorDetails
|
|
505
505
|
| (
|
|
506
506
|
error_code: :spend_limits_admin_api_writes_not_enabled
|
|
507
507
|
| "spend_limits_admin_api_writes_not_enabled"
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
module Anthropic
|
|
2
2
|
module Models
|
|
3
3
|
type model =
|
|
4
|
-
:"claude-
|
|
4
|
+
:"claude-fable-5-2"
|
|
5
|
+
| :"claude-mythos-5-2"
|
|
6
|
+
| :"claude-haiku-5-5"
|
|
5
7
|
| :"claude-sonnet-5-5"
|
|
6
8
|
| :"claude-fable-5-1"
|
|
7
9
|
| :"claude-opus-5-5"
|
|
@@ -28,6 +30,12 @@ module Anthropic
|
|
|
28
30
|
|
|
29
31
|
def self?.variants: -> ::Array[Anthropic::Models::model]
|
|
30
32
|
|
|
33
|
+
# Frontier intelligence for ambitious work in coding, enterprise workflows, and the sciences
|
|
34
|
+
CLAUDE_FABLE_5_2: :"claude-fable-5-2"
|
|
35
|
+
|
|
36
|
+
# Frontier intelligence for cybersecurity and life sciences research, available through verification programs
|
|
37
|
+
CLAUDE_MYTHOS_5_2: :"claude-mythos-5-2"
|
|
38
|
+
|
|
31
39
|
# Fastest model for high-volume, real-time tasks
|
|
32
40
|
CLAUDE_HAIKU_5_5: :"claude-haiku-5-5"
|
|
33
41
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type sandbox_egress_restricted_error_details =
|
|
4
|
+
{ error_code: :sandbox_egress_restricted }
|
|
5
|
+
|
|
6
|
+
class SandboxEgressRestrictedErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor error_code: :sandbox_egress_restricted
|
|
8
|
+
|
|
9
|
+
def initialize: (?error_code: :sandbox_egress_restricted) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { error_code: :sandbox_egress_restricted }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -7,7 +7,6 @@ module Anthropic
|
|
|
7
7
|
| :hipaa
|
|
8
8
|
| :inference_hooks
|
|
9
9
|
| :thinking
|
|
10
|
-
| :zdr
|
|
11
10
|
|
|
12
11
|
module ThreadUnsupportedFeatureName
|
|
13
12
|
extend Anthropic::Internal::Type::Enum
|
|
@@ -18,7 +17,6 @@ module Anthropic
|
|
|
18
17
|
HIPAA: :hipaa
|
|
19
18
|
INFERENCE_HOOKS: :inference_hooks
|
|
20
19
|
THINKING: :thinking
|
|
21
|
-
ZDR: :zdr
|
|
22
20
|
|
|
23
21
|
def self?.values: -> ::Array[Anthropic::Models::thread_unsupported_feature_name]
|
|
24
22
|
end
|
data/sig/anthropic/models.rbs
CHANGED
|
@@ -737,6 +737,10 @@ module Anthropic
|
|
|
737
737
|
|
|
738
738
|
class RequestBodyTooLargeAfterDecodingErrorDetails = Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails
|
|
739
739
|
|
|
740
|
+
class SandboxEgressRestrictedError = Anthropic::Models::SandboxEgressRestrictedError
|
|
741
|
+
|
|
742
|
+
class SandboxEgressRestrictedErrorDetails = Anthropic::Models::SandboxEgressRestrictedErrorDetails
|
|
743
|
+
|
|
740
744
|
class SearchResultBlockParam = Anthropic::Models::SearchResultBlockParam
|
|
741
745
|
|
|
742
746
|
class ServerToolCaller = Anthropic::Models::ServerToolCaller
|
|
@@ -23,6 +23,7 @@ module Anthropic
|
|
|
23
23
|
?models: ::Array[String]?,
|
|
24
24
|
?order: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_sort_order,
|
|
25
25
|
?order_by: Anthropic::Models::Beta::Organization::Analytics::beta_analytics_cost_order_by,
|
|
26
|
+
?organization_ids: ::Array[String]?,
|
|
26
27
|
?page: String?,
|
|
27
28
|
?products: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]?,
|
|
28
29
|
?rbac_group_ids: ::Array[String]?,
|
|
@@ -23,6 +23,7 @@ module Anthropic
|
|
|
23
23
|
?models: ::Array[String]?,
|
|
24
24
|
?order: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_sort_order,
|
|
25
25
|
?order_by: Anthropic::Models::Beta::Organization::Analytics::beta_analytics_usage_order_by,
|
|
26
|
+
?organization_ids: ::Array[String]?,
|
|
26
27
|
?page: String?,
|
|
27
28
|
?products: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]?,
|
|
28
29
|
?rbac_group_ids: ::Array[String]?,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: anthropic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anthropic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -223,8 +223,6 @@ files:
|
|
|
223
223
|
- lib/anthropic/models/beta/beta_bash_code_execution_tool_result_block_param.rb
|
|
224
224
|
- lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rb
|
|
225
225
|
- lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rb
|
|
226
|
-
- lib/anthropic/models/beta/beta_billing_frozen_error.rb
|
|
227
|
-
- lib/anthropic/models/beta/beta_billing_frozen_error_details.rb
|
|
228
226
|
- lib/anthropic/models/beta/beta_browser_click_target.rb
|
|
229
227
|
- lib/anthropic/models/beta/beta_browser_close_tab_config.rb
|
|
230
228
|
- lib/anthropic/models/beta/beta_browser_close_tab_input.rb
|
|
@@ -957,6 +955,7 @@ files:
|
|
|
957
955
|
- lib/anthropic/models/beta/beta_webhook_session_updated_event_data.rb
|
|
958
956
|
- lib/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rb
|
|
959
957
|
- lib/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rb
|
|
958
|
+
- lib/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rb
|
|
960
959
|
- lib/anthropic/models/beta/beta_webhook_vault_archived_event_data.rb
|
|
961
960
|
- lib/anthropic/models/beta/beta_webhook_vault_created_event_data.rb
|
|
962
961
|
- lib/anthropic/models/beta/beta_webhook_vault_credential_archived_event_data.rb
|
|
@@ -2348,6 +2347,8 @@ files:
|
|
|
2348
2347
|
- lib/anthropic/models/request_body_encoding_unsupported_error_details.rb
|
|
2349
2348
|
- lib/anthropic/models/request_body_too_large_after_decoding_error.rb
|
|
2350
2349
|
- lib/anthropic/models/request_body_too_large_after_decoding_error_details.rb
|
|
2350
|
+
- lib/anthropic/models/sandbox_egress_restricted_error.rb
|
|
2351
|
+
- lib/anthropic/models/sandbox_egress_restricted_error_details.rb
|
|
2351
2352
|
- lib/anthropic/models/search_result_block_param.rb
|
|
2352
2353
|
- lib/anthropic/models/server_tool_caller.rb
|
|
2353
2354
|
- lib/anthropic/models/server_tool_caller_20260120.rb
|
|
@@ -2742,8 +2743,6 @@ files:
|
|
|
2742
2743
|
- rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_block_param.rbi
|
|
2743
2744
|
- rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbi
|
|
2744
2745
|
- rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rbi
|
|
2745
|
-
- rbi/anthropic/models/beta/beta_billing_frozen_error.rbi
|
|
2746
|
-
- rbi/anthropic/models/beta/beta_billing_frozen_error_details.rbi
|
|
2747
2746
|
- rbi/anthropic/models/beta/beta_browser_click_target.rbi
|
|
2748
2747
|
- rbi/anthropic/models/beta/beta_browser_close_tab_config.rbi
|
|
2749
2748
|
- rbi/anthropic/models/beta/beta_browser_close_tab_input.rbi
|
|
@@ -3476,6 +3475,7 @@ files:
|
|
|
3476
3475
|
- rbi/anthropic/models/beta/beta_webhook_session_updated_event_data.rbi
|
|
3477
3476
|
- rbi/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rbi
|
|
3478
3477
|
- rbi/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rbi
|
|
3478
|
+
- rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi
|
|
3479
3479
|
- rbi/anthropic/models/beta/beta_webhook_vault_archived_event_data.rbi
|
|
3480
3480
|
- rbi/anthropic/models/beta/beta_webhook_vault_created_event_data.rbi
|
|
3481
3481
|
- rbi/anthropic/models/beta/beta_webhook_vault_credential_archived_event_data.rbi
|
|
@@ -4867,6 +4867,8 @@ files:
|
|
|
4867
4867
|
- rbi/anthropic/models/request_body_encoding_unsupported_error_details.rbi
|
|
4868
4868
|
- rbi/anthropic/models/request_body_too_large_after_decoding_error.rbi
|
|
4869
4869
|
- rbi/anthropic/models/request_body_too_large_after_decoding_error_details.rbi
|
|
4870
|
+
- rbi/anthropic/models/sandbox_egress_restricted_error.rbi
|
|
4871
|
+
- rbi/anthropic/models/sandbox_egress_restricted_error_details.rbi
|
|
4870
4872
|
- rbi/anthropic/models/search_result_block_param.rbi
|
|
4871
4873
|
- rbi/anthropic/models/server_tool_caller.rbi
|
|
4872
4874
|
- rbi/anthropic/models/server_tool_caller_20260120.rbi
|
|
@@ -5246,8 +5248,6 @@ files:
|
|
|
5246
5248
|
- sig/anthropic/models/beta/beta_bash_code_execution_tool_result_block_param.rbs
|
|
5247
5249
|
- sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbs
|
|
5248
5250
|
- sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rbs
|
|
5249
|
-
- sig/anthropic/models/beta/beta_billing_frozen_error.rbs
|
|
5250
|
-
- sig/anthropic/models/beta/beta_billing_frozen_error_details.rbs
|
|
5251
5251
|
- sig/anthropic/models/beta/beta_browser_click_target.rbs
|
|
5252
5252
|
- sig/anthropic/models/beta/beta_browser_close_tab_config.rbs
|
|
5253
5253
|
- sig/anthropic/models/beta/beta_browser_close_tab_input.rbs
|
|
@@ -5980,6 +5980,7 @@ files:
|
|
|
5980
5980
|
- sig/anthropic/models/beta/beta_webhook_session_updated_event_data.rbs
|
|
5981
5981
|
- sig/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rbs
|
|
5982
5982
|
- sig/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rbs
|
|
5983
|
+
- sig/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbs
|
|
5983
5984
|
- sig/anthropic/models/beta/beta_webhook_vault_archived_event_data.rbs
|
|
5984
5985
|
- sig/anthropic/models/beta/beta_webhook_vault_created_event_data.rbs
|
|
5985
5986
|
- sig/anthropic/models/beta/beta_webhook_vault_credential_archived_event_data.rbs
|
|
@@ -7371,6 +7372,8 @@ files:
|
|
|
7371
7372
|
- sig/anthropic/models/request_body_encoding_unsupported_error_details.rbs
|
|
7372
7373
|
- sig/anthropic/models/request_body_too_large_after_decoding_error.rbs
|
|
7373
7374
|
- sig/anthropic/models/request_body_too_large_after_decoding_error_details.rbs
|
|
7375
|
+
- sig/anthropic/models/sandbox_egress_restricted_error.rbs
|
|
7376
|
+
- sig/anthropic/models/sandbox_egress_restricted_error_details.rbs
|
|
7374
7377
|
- sig/anthropic/models/search_result_block_param.rbs
|
|
7375
7378
|
- sig/anthropic/models/server_tool_caller.rbs
|
|
7376
7379
|
- sig/anthropic/models/server_tool_caller_20260120.rbs
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Anthropic
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
# Anthropic has temporarily disabled billing changes for the user account the
|
|
7
|
-
# credential belongs to. Contact support.
|
|
8
|
-
class BetaBillingFrozenError < Anthropic::Errors::PermissionDeniedError
|
|
9
|
-
# @!method error_code
|
|
10
|
-
# @return [Symbol, :billing_frozen]
|
|
11
|
-
|
|
12
|
-
# @return [Anthropic::Models::Beta::BetaBillingFrozenErrorDetails]
|
|
13
|
-
def details
|
|
14
|
-
Anthropic::Internal::Type::Converter.coerce(
|
|
15
|
-
Anthropic::Beta::BetaBillingFrozenErrorDetails,
|
|
16
|
-
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
17
|
-
)
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Anthropic
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
class BetaBillingFrozenErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute error_code
|
|
8
|
-
#
|
|
9
|
-
# @return [Symbol, :billing_frozen]
|
|
10
|
-
required :error_code, const: :billing_frozen
|
|
11
|
-
|
|
12
|
-
# @!method initialize(error_code: :billing_frozen)
|
|
13
|
-
# Anthropic has temporarily disabled billing changes for the user account the
|
|
14
|
-
# credential belongs to. Contact support.
|
|
15
|
-
#
|
|
16
|
-
# @param error_code [Symbol, :billing_frozen]
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
BetaBillingFrozenErrorDetails = Beta::BetaBillingFrozenErrorDetails
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Anthropic
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
# Anthropic has temporarily disabled billing changes for the user account the
|
|
7
|
-
# credential belongs to. Contact support.
|
|
8
|
-
class BetaBillingFrozenError < Anthropic::Errors::PermissionDeniedError
|
|
9
|
-
sig { returns(Symbol) }
|
|
10
|
-
def error_code
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
sig { returns(Anthropic::Beta::BetaBillingFrozenErrorDetails) }
|
|
14
|
-
def details
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Anthropic
|
|
4
|
-
module Models
|
|
5
|
-
BetaBillingFrozenErrorDetails = Beta::BetaBillingFrozenErrorDetails
|
|
6
|
-
|
|
7
|
-
module Beta
|
|
8
|
-
class BetaBillingFrozenErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
9
|
-
OrHash =
|
|
10
|
-
T.type_alias do
|
|
11
|
-
T.any(
|
|
12
|
-
Anthropic::Beta::BetaBillingFrozenErrorDetails,
|
|
13
|
-
Anthropic::Internal::AnyHash
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
sig { returns(Symbol) }
|
|
18
|
-
attr_accessor :error_code
|
|
19
|
-
|
|
20
|
-
# Anthropic has temporarily disabled billing changes for the user account the
|
|
21
|
-
# credential belongs to. Contact support.
|
|
22
|
-
sig { params(error_code: Symbol).returns(T.attached_class) }
|
|
23
|
-
def self.new(error_code: :billing_frozen)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
sig { override.returns({ error_code: Symbol }) }
|
|
27
|
-
def to_hash
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
module Anthropic
|
|
2
|
-
module Models
|
|
3
|
-
class BetaBillingFrozenErrorDetails = Beta::BetaBillingFrozenErrorDetails
|
|
4
|
-
|
|
5
|
-
module Beta
|
|
6
|
-
type beta_billing_frozen_error_details = { error_code: :billing_frozen }
|
|
7
|
-
|
|
8
|
-
class BetaBillingFrozenErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
9
|
-
attr_accessor error_code: :billing_frozen
|
|
10
|
-
|
|
11
|
-
def initialize: (?error_code: :billing_frozen) -> void
|
|
12
|
-
|
|
13
|
-
def to_hash: -> { error_code: :billing_frozen }
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|