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
|
@@ -31,6 +31,8 @@ module Anthropic
|
|
|
31
31
|
#
|
|
32
32
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
33
33
|
#
|
|
34
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
35
|
+
#
|
|
34
36
|
# @return [Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimit]
|
|
35
37
|
#
|
|
36
38
|
# @see Anthropic::Models::Beta::Organization::Workspaces::RateLimitUpdateParams
|
|
@@ -84,6 +84,8 @@ module Anthropic
|
|
|
84
84
|
#
|
|
85
85
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
86
86
|
#
|
|
87
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
88
|
+
#
|
|
87
89
|
# @return [Anthropic::Models::Beta::Organization::BetaServiceAccountWorkspaceMember]
|
|
88
90
|
#
|
|
89
91
|
# @see Anthropic::Models::Beta::Organization::Workspaces::ServiceAccountUpdateParams
|
|
@@ -192,6 +194,8 @@ module Anthropic
|
|
|
192
194
|
#
|
|
193
195
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
194
196
|
#
|
|
197
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
198
|
+
#
|
|
195
199
|
# @return [Anthropic::Models::Beta::Organization::BetaServiceAccountWorkspaceMember]
|
|
196
200
|
#
|
|
197
201
|
# @see Anthropic::Models::Beta::Organization::Workspaces::ServiceAccountAddParams
|
|
@@ -236,6 +240,8 @@ module Anthropic
|
|
|
236
240
|
#
|
|
237
241
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
238
242
|
#
|
|
243
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
244
|
+
#
|
|
239
245
|
# @return [Anthropic::Models::Beta::Organization::Workspaces::ServiceAccountRemoveResponse]
|
|
240
246
|
#
|
|
241
247
|
# @see Anthropic::Models::Beta::Organization::Workspaces::ServiceAccountRemoveParams
|
|
@@ -42,6 +42,7 @@ module Anthropic
|
|
|
42
42
|
# @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
|
|
43
43
|
# @raise [Anthropic::Models::UserProfileNotFoundError]
|
|
44
44
|
# @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
|
|
45
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
45
46
|
# @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
|
|
46
47
|
#
|
|
47
48
|
# @return [Anthropic::Models::Beta::Organization::BetaWorkspace]
|
|
@@ -116,6 +117,7 @@ module Anthropic
|
|
|
116
117
|
# @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
|
|
117
118
|
# @raise [Anthropic::Models::UserProfileNotFoundError]
|
|
118
119
|
# @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
|
|
120
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
119
121
|
# @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
|
|
120
122
|
#
|
|
121
123
|
# @return [Anthropic::Models::Beta::Organization::BetaWorkspace]
|
|
@@ -184,6 +186,8 @@ module Anthropic
|
|
|
184
186
|
# @param workspace_id [String]
|
|
185
187
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
186
188
|
#
|
|
189
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
190
|
+
#
|
|
187
191
|
# @return [Anthropic::Models::Beta::Organization::BetaWorkspace]
|
|
188
192
|
#
|
|
189
193
|
# @see Anthropic::Models::Beta::Organization::WorkspaceArchiveParams
|
|
@@ -41,6 +41,7 @@ module Anthropic
|
|
|
41
41
|
#
|
|
42
42
|
# @raise [Anthropic::Models::Organization::OrgAPIKeyLimitExceededError]
|
|
43
43
|
# @raise [Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededError]
|
|
44
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
44
45
|
#
|
|
45
46
|
# @return [Anthropic::Models::Organization::APIKey]
|
|
46
47
|
#
|
|
@@ -56,6 +56,8 @@ module Anthropic
|
|
|
56
56
|
#
|
|
57
57
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
58
58
|
#
|
|
59
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
60
|
+
#
|
|
59
61
|
# @return [Anthropic::Models::Organization::OrganizationComplianceSettings]
|
|
60
62
|
#
|
|
61
63
|
# @see Anthropic::Models::Organization::ComplianceSettingUpdateParams
|
|
@@ -22,6 +22,7 @@ module Anthropic
|
|
|
22
22
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
23
23
|
#
|
|
24
24
|
# @raise [Anthropic::Models::UserProfileNotFoundError]
|
|
25
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
25
26
|
#
|
|
26
27
|
# @return [Anthropic::Models::Organization::ExternalKey]
|
|
27
28
|
#
|
|
@@ -82,6 +83,7 @@ module Anthropic
|
|
|
82
83
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
83
84
|
#
|
|
84
85
|
# @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError]
|
|
86
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
85
87
|
#
|
|
86
88
|
# @return [Anthropic::Models::Organization::ExternalKey]
|
|
87
89
|
#
|
|
@@ -143,6 +145,7 @@ module Anthropic
|
|
|
143
145
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
144
146
|
#
|
|
145
147
|
# @raise [Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyError]
|
|
148
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
146
149
|
#
|
|
147
150
|
# @return [Anthropic::Models::Organization::ExternalKeyDeleteResponse]
|
|
148
151
|
#
|
|
@@ -172,6 +175,8 @@ module Anthropic
|
|
|
172
175
|
#
|
|
173
176
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
174
177
|
#
|
|
178
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
179
|
+
#
|
|
175
180
|
# @return [Anthropic::Models::Organization::ExternalKeyValidateResponse]
|
|
176
181
|
#
|
|
177
182
|
# @see Anthropic::Models::Organization::ExternalKeyValidateParams
|
|
@@ -40,6 +40,8 @@ module Anthropic
|
|
|
40
40
|
#
|
|
41
41
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
42
|
#
|
|
43
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
44
|
+
#
|
|
43
45
|
# @return [Anthropic::Models::Organization::Federation::FederationIssuer]
|
|
44
46
|
#
|
|
45
47
|
# @see Anthropic::Models::Organization::Federation::IssuerCreateParams
|
|
@@ -120,6 +122,8 @@ module Anthropic
|
|
|
120
122
|
#
|
|
121
123
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
122
124
|
#
|
|
125
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
126
|
+
#
|
|
123
127
|
# @return [Anthropic::Models::Organization::Federation::FederationIssuer]
|
|
124
128
|
#
|
|
125
129
|
# @see Anthropic::Models::Organization::Federation::IssuerUpdateParams
|
|
@@ -193,6 +197,8 @@ module Anthropic
|
|
|
193
197
|
#
|
|
194
198
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
195
199
|
#
|
|
200
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
201
|
+
#
|
|
196
202
|
# @return [Anthropic::Models::Organization::Federation::FederationIssuer]
|
|
197
203
|
#
|
|
198
204
|
# @see Anthropic::Models::Organization::Federation::IssuerArchiveParams
|
|
@@ -72,6 +72,8 @@ module Anthropic
|
|
|
72
72
|
#
|
|
73
73
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
74
74
|
#
|
|
75
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
76
|
+
#
|
|
75
77
|
# @return [Anthropic::Models::Organization::Federation::FederationRuleWorkspace]
|
|
76
78
|
#
|
|
77
79
|
# @see Anthropic::Models::Organization::Federation::Rules::WorkspaceAddParams
|
|
@@ -109,6 +111,8 @@ module Anthropic
|
|
|
109
111
|
#
|
|
110
112
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
111
113
|
#
|
|
114
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
115
|
+
#
|
|
112
116
|
# @return [Anthropic::Models::Organization::Federation::Rules::WorkspaceRemoveResponse]
|
|
113
117
|
#
|
|
114
118
|
# @see Anthropic::Models::Organization::Federation::Rules::WorkspaceRemoveParams
|
|
@@ -54,6 +54,8 @@ module Anthropic
|
|
|
54
54
|
#
|
|
55
55
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
56
56
|
#
|
|
57
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
58
|
+
#
|
|
57
59
|
# @return [Anthropic::Models::Organization::Federation::FederationRule]
|
|
58
60
|
#
|
|
59
61
|
# @see Anthropic::Models::Organization::Federation::RuleCreateParams
|
|
@@ -147,6 +149,8 @@ module Anthropic
|
|
|
147
149
|
#
|
|
148
150
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
149
151
|
#
|
|
152
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
153
|
+
#
|
|
150
154
|
# @return [Anthropic::Models::Organization::Federation::FederationRule]
|
|
151
155
|
#
|
|
152
156
|
# @see Anthropic::Models::Organization::Federation::RuleUpdateParams
|
|
@@ -225,6 +229,8 @@ module Anthropic
|
|
|
225
229
|
#
|
|
226
230
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
227
231
|
#
|
|
232
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
233
|
+
#
|
|
228
234
|
# @return [Anthropic::Models::Organization::Federation::FederationRule]
|
|
229
235
|
#
|
|
230
236
|
# @see Anthropic::Models::Organization::Federation::RuleArchiveParams
|
|
@@ -31,6 +31,7 @@ module Anthropic
|
|
|
31
31
|
# @raise [Anthropic::Models::OrgMemberLimitExceededError]
|
|
32
32
|
# @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
|
|
33
33
|
# @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
|
|
34
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
34
35
|
#
|
|
35
36
|
# @return [Anthropic::Models::Organization::OrganizationInvite]
|
|
36
37
|
#
|
|
@@ -120,6 +121,8 @@ module Anthropic
|
|
|
120
121
|
#
|
|
121
122
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
122
123
|
#
|
|
124
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
125
|
+
#
|
|
123
126
|
# @return [Anthropic::Models::Organization::InviteDeleteResponse]
|
|
124
127
|
#
|
|
125
128
|
# @see Anthropic::Models::Organization::InviteDeleteParams
|
|
@@ -59,6 +59,7 @@ module Anthropic
|
|
|
59
59
|
#
|
|
60
60
|
# @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
|
|
61
61
|
# @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
|
|
62
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
62
63
|
#
|
|
63
64
|
# @return [Anthropic::Models::Organization::RBACGroups::RBACGroupMember]
|
|
64
65
|
#
|
|
@@ -94,6 +95,7 @@ module Anthropic
|
|
|
94
95
|
#
|
|
95
96
|
# @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
|
|
96
97
|
# @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
|
|
98
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
97
99
|
#
|
|
98
100
|
# @return [Anthropic::Models::Organization::RBACGroups::DeletedRBACGroupMember]
|
|
99
101
|
#
|
|
@@ -18,6 +18,8 @@ module Anthropic
|
|
|
18
18
|
#
|
|
19
19
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
20
20
|
#
|
|
21
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
22
|
+
#
|
|
21
23
|
# @return [Anthropic::Models::Organization::RBACGroup]
|
|
22
24
|
#
|
|
23
25
|
# @see Anthropic::Models::Organization::RBACGroupCreateParams
|
|
@@ -74,6 +76,8 @@ module Anthropic
|
|
|
74
76
|
#
|
|
75
77
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
76
78
|
#
|
|
79
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
80
|
+
#
|
|
77
81
|
# @return [Anthropic::Models::Organization::RBACGroup]
|
|
78
82
|
#
|
|
79
83
|
# @see Anthropic::Models::Organization::RBACGroupUpdateParams
|
|
@@ -139,6 +143,7 @@ module Anthropic
|
|
|
139
143
|
#
|
|
140
144
|
# @raise [Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessError]
|
|
141
145
|
# @raise [Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedError]
|
|
146
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
142
147
|
#
|
|
143
148
|
# @return [Anthropic::Models::Organization::DeletedRBACGroup]
|
|
144
149
|
#
|
|
@@ -77,6 +77,8 @@ module Anthropic
|
|
|
77
77
|
#
|
|
78
78
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
79
79
|
#
|
|
80
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
81
|
+
#
|
|
80
82
|
# @return [Anthropic::Models::Organization::ServiceAccountWorkspaceMember]
|
|
81
83
|
#
|
|
82
84
|
# @see Anthropic::Models::Organization::ServiceAccounts::WorkspaceAddParams
|
|
@@ -118,6 +120,8 @@ module Anthropic
|
|
|
118
120
|
#
|
|
119
121
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
120
122
|
#
|
|
123
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
124
|
+
#
|
|
121
125
|
# @return [Anthropic::Models::Organization::ServiceAccounts::WorkspaceRemoveResponse]
|
|
122
126
|
#
|
|
123
127
|
# @see Anthropic::Models::Organization::ServiceAccounts::WorkspaceRemoveParams
|
|
@@ -34,6 +34,8 @@ module Anthropic
|
|
|
34
34
|
#
|
|
35
35
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
36
36
|
#
|
|
37
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
38
|
+
#
|
|
37
39
|
# @return [Anthropic::Models::Organization::ServiceAccount]
|
|
38
40
|
#
|
|
39
41
|
# @see Anthropic::Models::Organization::ServiceAccountCreateParams
|
|
@@ -104,6 +106,8 @@ module Anthropic
|
|
|
104
106
|
#
|
|
105
107
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
106
108
|
#
|
|
109
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
110
|
+
#
|
|
107
111
|
# @return [Anthropic::Models::Organization::ServiceAccount]
|
|
108
112
|
#
|
|
109
113
|
# @see Anthropic::Models::Organization::ServiceAccountUpdateParams
|
|
@@ -179,6 +183,8 @@ module Anthropic
|
|
|
179
183
|
#
|
|
180
184
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
181
185
|
#
|
|
186
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
187
|
+
#
|
|
182
188
|
# @return [Anthropic::Models::Organization::ServiceAccount]
|
|
183
189
|
#
|
|
184
190
|
# @see Anthropic::Models::Organization::ServiceAccountArchiveParams
|
|
@@ -89,6 +89,8 @@ module Anthropic
|
|
|
89
89
|
#
|
|
90
90
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
91
91
|
#
|
|
92
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
93
|
+
#
|
|
92
94
|
# @return [Anthropic::Models::Organization::SpendLimits::IncreaseRequestApproveResponse]
|
|
93
95
|
#
|
|
94
96
|
# @see Anthropic::Models::Organization::SpendLimits::IncreaseRequestApproveParams
|
|
@@ -122,6 +124,8 @@ module Anthropic
|
|
|
122
124
|
#
|
|
123
125
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
124
126
|
#
|
|
127
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
128
|
+
#
|
|
125
129
|
# @return [Anthropic::Models::Organization::SpendLimits::SpendLimitIncreaseRequest]
|
|
126
130
|
#
|
|
127
131
|
# @see Anthropic::Models::Organization::SpendLimits::IncreaseRequestDenyParams
|
|
@@ -40,6 +40,8 @@ module Anthropic
|
|
|
40
40
|
#
|
|
41
41
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
42
|
#
|
|
43
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
44
|
+
#
|
|
43
45
|
# @return [Anthropic::Models::Organization::OrganizationUser]
|
|
44
46
|
#
|
|
45
47
|
# @see Anthropic::Models::Organization::UserUpdateParams
|
|
@@ -104,6 +106,7 @@ module Anthropic
|
|
|
104
106
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
105
107
|
#
|
|
106
108
|
# @raise [Anthropic::Models::Organization::CannotRemoveLastMemberError]
|
|
109
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
107
110
|
# @raise [Anthropic::Models::ConcurrentMembershipChangeError]
|
|
108
111
|
#
|
|
109
112
|
# @return [Anthropic::Models::Organization::UserRemoveResponse]
|
|
@@ -51,6 +51,7 @@ module Anthropic
|
|
|
51
51
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
52
52
|
#
|
|
53
53
|
# @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
|
|
54
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
54
55
|
#
|
|
55
56
|
# @return [Anthropic::Models::Organization::WorkspaceMember]
|
|
56
57
|
#
|
|
@@ -127,6 +128,7 @@ module Anthropic
|
|
|
127
128
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
128
129
|
#
|
|
129
130
|
# @raise [Anthropic::Models::Organization::WorkspaceMemberLimitExceededError]
|
|
131
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
130
132
|
#
|
|
131
133
|
# @return [Anthropic::Models::Organization::WorkspaceMember]
|
|
132
134
|
#
|
|
@@ -156,6 +158,8 @@ module Anthropic
|
|
|
156
158
|
#
|
|
157
159
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
158
160
|
#
|
|
161
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
162
|
+
#
|
|
159
163
|
# @return [Anthropic::Models::Organization::Workspaces::MemberRemoveResponse]
|
|
160
164
|
#
|
|
161
165
|
# @see Anthropic::Models::Organization::Workspaces::MemberRemoveParams
|
|
@@ -30,6 +30,8 @@ module Anthropic
|
|
|
30
30
|
#
|
|
31
31
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
32
32
|
#
|
|
33
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
34
|
+
#
|
|
33
35
|
# @return [Anthropic::Models::Organization::Workspaces::WorkspaceRateLimit]
|
|
34
36
|
#
|
|
35
37
|
# @see Anthropic::Models::Organization::Workspaces::RateLimitUpdateParams
|
|
@@ -76,6 +76,8 @@ module Anthropic
|
|
|
76
76
|
#
|
|
77
77
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
78
78
|
#
|
|
79
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
80
|
+
#
|
|
79
81
|
# @return [Anthropic::Models::Organization::ServiceAccountWorkspaceMember]
|
|
80
82
|
#
|
|
81
83
|
# @see Anthropic::Models::Organization::Workspaces::ServiceAccountUpdateParams
|
|
@@ -172,6 +174,8 @@ module Anthropic
|
|
|
172
174
|
#
|
|
173
175
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
174
176
|
#
|
|
177
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
178
|
+
#
|
|
175
179
|
# @return [Anthropic::Models::Organization::ServiceAccountWorkspaceMember]
|
|
176
180
|
#
|
|
177
181
|
# @see Anthropic::Models::Organization::Workspaces::ServiceAccountAddParams
|
|
@@ -211,6 +215,8 @@ module Anthropic
|
|
|
211
215
|
#
|
|
212
216
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
213
217
|
#
|
|
218
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
219
|
+
#
|
|
214
220
|
# @return [Anthropic::Models::Organization::Workspaces::ServiceAccountRemoveResponse]
|
|
215
221
|
#
|
|
216
222
|
# @see Anthropic::Models::Organization::Workspaces::ServiceAccountRemoveParams
|
|
@@ -39,6 +39,7 @@ module Anthropic
|
|
|
39
39
|
# @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
|
|
40
40
|
# @raise [Anthropic::Models::UserProfileNotFoundError]
|
|
41
41
|
# @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
|
|
42
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
42
43
|
# @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
|
|
43
44
|
#
|
|
44
45
|
# @return [Anthropic::Models::Organization::Workspace]
|
|
@@ -109,6 +110,7 @@ module Anthropic
|
|
|
109
110
|
# @raise [Anthropic::Models::Organization::KeyProfileMismatchError]
|
|
110
111
|
# @raise [Anthropic::Models::UserProfileNotFoundError]
|
|
111
112
|
# @raise [Anthropic::Models::Organization::WorkspacePolicyViolationError]
|
|
113
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
112
114
|
# @raise [Anthropic::Models::Organization::ExternalKeyChangedError]
|
|
113
115
|
#
|
|
114
116
|
# @return [Anthropic::Models::Organization::Workspace]
|
|
@@ -175,6 +177,8 @@ module Anthropic
|
|
|
175
177
|
# @param workspace_id [String]
|
|
176
178
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
177
179
|
#
|
|
180
|
+
# @raise [Anthropic::Models::SandboxEgressRestrictedError]
|
|
181
|
+
#
|
|
178
182
|
# @return [Anthropic::Models::Organization::Workspace]
|
|
179
183
|
#
|
|
180
184
|
# @see Anthropic::Models::Organization::WorkspaceArchiveParams
|
data/lib/anthropic/version.rb
CHANGED
data/lib/anthropic.rb
CHANGED
|
@@ -111,7 +111,6 @@ require_relative "anthropic/internal/page_cursor"
|
|
|
111
111
|
require_relative "anthropic/internal/report_page_cursor"
|
|
112
112
|
require_relative "anthropic/internal/token_page"
|
|
113
113
|
require_relative "anthropic/models/available_tools_limit_exceeded_error"
|
|
114
|
-
require_relative "anthropic/models/beta/beta_billing_frozen_error"
|
|
115
114
|
require_relative "anthropic/models/beta/beta_environment_archived_error"
|
|
116
115
|
require_relative "anthropic/models/beta/beta_environment_create_disabled_error"
|
|
117
116
|
require_relative "anthropic/models/beta/beta_environment_not_found_error"
|
|
@@ -182,6 +181,7 @@ require_relative "anthropic/models/ramp_limit_exceeded_error"
|
|
|
182
181
|
require_relative "anthropic/models/request_body_encoding_invalid_error"
|
|
183
182
|
require_relative "anthropic/models/request_body_encoding_unsupported_error"
|
|
184
183
|
require_relative "anthropic/models/request_body_too_large_after_decoding_error"
|
|
184
|
+
require_relative "anthropic/models/sandbox_egress_restricted_error"
|
|
185
185
|
require_relative "anthropic/models/skill_read_blocked_undecryptable_error"
|
|
186
186
|
require_relative "anthropic/models/storage_quota_exceeded_error"
|
|
187
187
|
require_relative "anthropic/models/thread_already_continued_error"
|
|
@@ -243,7 +243,6 @@ require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_blo
|
|
|
243
243
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_block_param"
|
|
244
244
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_error"
|
|
245
245
|
require_relative "anthropic/models/beta/beta_bash_code_execution_tool_result_error_param"
|
|
246
|
-
require_relative "anthropic/models/beta/beta_billing_frozen_error_details"
|
|
247
246
|
require_relative "anthropic/models/beta/beta_browser_click_target"
|
|
248
247
|
require_relative "anthropic/models/beta/beta_browser_close_tab_config"
|
|
249
248
|
require_relative "anthropic/models/beta/beta_browser_close_tab_input"
|
|
@@ -955,6 +954,7 @@ require_relative "anthropic/models/beta/beta_webhook_session_thread_terminated_e
|
|
|
955
954
|
require_relative "anthropic/models/beta/beta_webhook_session_updated_event_data"
|
|
956
955
|
require_relative "anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data"
|
|
957
956
|
require_relative "anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data"
|
|
957
|
+
require_relative "anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data"
|
|
958
958
|
require_relative "anthropic/models/beta/beta_webhook_vault_archived_event_data"
|
|
959
959
|
require_relative "anthropic/models/beta/beta_webhook_vault_created_event_data"
|
|
960
960
|
require_relative "anthropic/models/beta/beta_webhook_vault_credential_archived_event_data"
|
|
@@ -2291,6 +2291,7 @@ require_relative "anthropic/models/refusal_stop_details"
|
|
|
2291
2291
|
require_relative "anthropic/models/request_body_encoding_invalid_error_details"
|
|
2292
2292
|
require_relative "anthropic/models/request_body_encoding_unsupported_error_details"
|
|
2293
2293
|
require_relative "anthropic/models/request_body_too_large_after_decoding_error_details"
|
|
2294
|
+
require_relative "anthropic/models/sandbox_egress_restricted_error_details"
|
|
2294
2295
|
require_relative "anthropic/models/search_result_block_param"
|
|
2295
2296
|
require_relative "anthropic/models/server_tool_caller"
|
|
2296
2297
|
require_relative "anthropic/models/server_tool_caller_20260120"
|
|
@@ -25,6 +25,7 @@ module Anthropic
|
|
|
25
25
|
timeout: T.nilable(Float),
|
|
26
26
|
initial_retry_delay: Float,
|
|
27
27
|
max_retry_delay: Float,
|
|
28
|
+
middleware: T.nilable(Anthropic::Middleware::EntryOrArray),
|
|
28
29
|
open_telemetry:
|
|
29
30
|
T.nilable(T.any(T::Boolean, Anthropic::Internal::AnyHash))
|
|
30
31
|
).returns(T.attached_class)
|
|
@@ -45,6 +46,10 @@ module Anthropic
|
|
|
45
46
|
timeout: nil,
|
|
46
47
|
initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
|
|
47
48
|
max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY,
|
|
49
|
+
# Per-attempt HTTP around-middleware. See {Anthropic::Middleware}. The
|
|
50
|
+
# workspace ID header and SigV4 signing are applied per attempt, after
|
|
51
|
+
# user middleware.
|
|
52
|
+
middleware: nil,
|
|
48
53
|
# OpenTelemetry tracing of this client's API calls. See {Anthropic::Client}.
|
|
49
54
|
open_telemetry: nil
|
|
50
55
|
)
|
|
@@ -27,6 +27,7 @@ module Anthropic
|
|
|
27
27
|
timeout: T.nilable(Float),
|
|
28
28
|
initial_retry_delay: Float,
|
|
29
29
|
max_retry_delay: Float,
|
|
30
|
+
middleware: T.nilable(Anthropic::Middleware::EntryOrArray),
|
|
30
31
|
open_telemetry:
|
|
31
32
|
T.nilable(T.any(T::Boolean, Anthropic::Internal::AnyHash))
|
|
32
33
|
).returns(T.attached_class)
|
|
@@ -46,6 +47,10 @@ module Anthropic
|
|
|
46
47
|
timeout: nil,
|
|
47
48
|
initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
|
|
48
49
|
max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY,
|
|
50
|
+
# Per-attempt HTTP around-middleware. See {Anthropic::Middleware}. The user
|
|
51
|
+
# profile ID moves into the body and the request is SigV4-signed per
|
|
52
|
+
# attempt, after user middleware.
|
|
53
|
+
middleware: nil,
|
|
49
54
|
# OpenTelemetry tracing of this client's API calls. See {Anthropic::Client}.
|
|
50
55
|
open_telemetry: nil
|
|
51
56
|
)
|
|
@@ -31,6 +31,13 @@ module Anthropic
|
|
|
31
31
|
end
|
|
32
32
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
33
33
|
|
|
34
|
+
# Frontier intelligence for ambitious work in coding, enterprise workflows, and the sciences
|
|
35
|
+
CLAUDE_FABLE_5_2 =
|
|
36
|
+
T.let(
|
|
37
|
+
:"claude-fable-5-2",
|
|
38
|
+
Anthropic::Beta::BetaManagedAgentsModel::TaggedSymbol
|
|
39
|
+
)
|
|
40
|
+
|
|
34
41
|
# Fastest model for high-volume, real-time tasks
|
|
35
42
|
CLAUDE_HAIKU_5_5 =
|
|
36
43
|
T.let(
|
|
@@ -80,7 +80,8 @@ module Anthropic
|
|
|
80
80
|
Anthropic::Beta::BetaWebhookMemoryStoreDeletedEventData::OrHash,
|
|
81
81
|
Anthropic::Beta::BetaWebhookSessionBudgetReachedEventData::OrHash,
|
|
82
82
|
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData::OrHash,
|
|
83
|
-
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData::OrHash
|
|
83
|
+
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData::OrHash,
|
|
84
|
+
Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData::OrHash
|
|
84
85
|
),
|
|
85
86
|
type: Symbol
|
|
86
87
|
).returns(T.attached_class)
|
|
@@ -56,7 +56,8 @@ module Anthropic
|
|
|
56
56
|
Anthropic::Beta::BetaWebhookMemoryStoreDeletedEventData,
|
|
57
57
|
Anthropic::Beta::BetaWebhookSessionBudgetReachedEventData,
|
|
58
58
|
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData,
|
|
59
|
-
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData
|
|
59
|
+
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData,
|
|
60
|
+
Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData
|
|
60
61
|
)
|
|
61
62
|
end
|
|
62
63
|
|
|
@@ -299,6 +300,11 @@ module Anthropic
|
|
|
299
300
|
:"user_profile.enforcement_action_resolved",
|
|
300
301
|
Anthropic::Beta::BetaWebhookEventData::Type::TaggedSymbol
|
|
301
302
|
)
|
|
303
|
+
USER_PROFILE_PROGRAM_STATUS_UPDATED =
|
|
304
|
+
T.let(
|
|
305
|
+
:"user_profile.program_status_updated",
|
|
306
|
+
Anthropic::Beta::BetaWebhookEventData::Type::TaggedSymbol
|
|
307
|
+
)
|
|
302
308
|
|
|
303
309
|
sig do
|
|
304
310
|
override.returns(
|
data/rbi/anthropic/models/beta/beta_webhook_user_profile_program_status_updated_event_data.rbi
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
BetaWebhookUserProfileProgramStatusUpdatedEventData =
|
|
6
|
+
Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData
|
|
7
|
+
|
|
8
|
+
module Beta
|
|
9
|
+
class BetaWebhookUserProfileProgramStatusUpdatedEventData < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Anthropic::Beta::BetaWebhookUserProfileProgramStatusUpdatedEventData,
|
|
14
|
+
Anthropic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# ID of the user profile that triggered the event.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :organization_id
|
|
24
|
+
|
|
25
|
+
sig { returns(Symbol) }
|
|
26
|
+
attr_accessor :type
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
params(id: String, organization_id: String, type: Symbol).returns(
|
|
30
|
+
T.attached_class
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
def self.new(
|
|
34
|
+
# ID of the user profile that triggered the event.
|
|
35
|
+
id:,
|
|
36
|
+
organization_id:,
|
|
37
|
+
type: :"user_profile.program_status_updated"
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
override.returns(
|
|
43
|
+
{ id: String, organization_id: String, type: Symbol }
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
def to_hash
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -29,7 +29,8 @@ module Anthropic
|
|
|
29
29
|
# Expected last_heartbeat for conditional update (optimistic concurrency). Use
|
|
30
30
|
# literal 'NO_HEARTBEAT' to claim an unclaimed lease (first heartbeat). For
|
|
31
31
|
# subsequent heartbeats, echo the server's previous last_heartbeat value exactly.
|
|
32
|
-
# Returns 412 Precondition Failed if the actual value doesn't match.
|
|
32
|
+
# Returns 412 Precondition Failed if the actual value doesn't match. The server
|
|
33
|
+
# does not compare the value when the work item is 'stopping' or 'stopped'.
|
|
33
34
|
sig { returns(T.nilable(String)) }
|
|
34
35
|
attr_accessor :expected_last_heartbeat
|
|
35
36
|
|
|
@@ -69,7 +70,8 @@ module Anthropic
|
|
|
69
70
|
# Expected last_heartbeat for conditional update (optimistic concurrency). Use
|
|
70
71
|
# literal 'NO_HEARTBEAT' to claim an unclaimed lease (first heartbeat). For
|
|
71
72
|
# subsequent heartbeats, echo the server's previous last_heartbeat value exactly.
|
|
72
|
-
# Returns 412 Precondition Failed if the actual value doesn't match.
|
|
73
|
+
# Returns 412 Precondition Failed if the actual value doesn't match. The server
|
|
74
|
+
# does not compare the value when the work item is 'stopping' or 'stopped'.
|
|
73
75
|
expected_last_heartbeat: nil,
|
|
74
76
|
# Optional header to specify the beta version(s) you want to use.
|
|
75
77
|
betas: nil,
|