anthropic 1.75.0 → 1.76.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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/helpers/aws/client.rb +3 -2
  5. data/lib/anthropic/helpers/bedrock/client.rb +3 -2
  6. data/lib/anthropic/helpers/bedrock/mantle_client.rb +3 -2
  7. data/lib/anthropic/helpers/google_cloud/client.rb +3 -2
  8. data/lib/anthropic/helpers/vertex/client.rb +3 -2
  9. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  10. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +8 -0
  11. data/lib/anthropic/models/beta/organization/beta_spend_limit.rb +11 -1
  12. data/lib/anthropic/models/beta/organization/spend_limit_list_params.rb +75 -0
  13. data/lib/anthropic/models/model.rb +8 -0
  14. data/lib/anthropic/resources/beta/messages.rb +2 -4
  15. data/lib/anthropic/resources/beta/organization/spend_limits.rb +40 -0
  16. data/lib/anthropic/resources/messages.rb +1 -3
  17. data/lib/anthropic/version.rb +1 -1
  18. data/lib/anthropic.rb +1 -0
  19. data/rbi/anthropic/helpers/aws/client.rbi +4 -2
  20. data/rbi/anthropic/helpers/bedrock/client.rbi +4 -2
  21. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +4 -2
  22. data/rbi/anthropic/helpers/google_cloud/client.rbi +4 -2
  23. data/rbi/anthropic/helpers/vertex/client.rbi +4 -2
  24. data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
  25. data/rbi/anthropic/models/beta/organization/beta_spend_limit.rbi +12 -0
  26. data/rbi/anthropic/models/beta/organization/spend_limit_list_params.rbi +172 -0
  27. data/rbi/anthropic/resources/beta/organization/spend_limits.rbi +42 -0
  28. data/sig/anthropic/helpers/bedrock/client.rbs +1 -1
  29. data/sig/anthropic/helpers/google_cloud/client.rbs +1 -1
  30. data/sig/anthropic/helpers/vertex/client.rbs +1 -1
  31. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  32. data/sig/anthropic/models/beta/organization/beta_spend_limit.rbs +5 -0
  33. data/sig/anthropic/models/beta/organization/spend_limit_list_params.rbs +72 -0
  34. data/sig/anthropic/resources/beta/organization/spend_limits.rbs +8 -0
  35. metadata +4 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f0c8378ce11741b0f54cc6e30a7938642b1342a45cda2a711e61757fbf60348
4
- data.tar.gz: 1b1cf5ddfbe56445e6341836e87e0d234b677f21b2192e2d5a2696bf77c205f2
3
+ metadata.gz: '09ff36118d7aa420c0a8f33acdce65de37f4a8001edf46c797b3d01edbad31d2'
4
+ data.tar.gz: c3bf5fc7fd0534a8af63254b8a68bea96b3b4b6eb6f6aeb05e7f495e44c269c1
5
5
  SHA512:
6
- metadata.gz: 88dd297f1f15fb01c7aa6bf19afc886d220f37314de35ff45f045ca00ec476c704d90e7bdbdedfdbe5ca792c3654530be473dc022acf93385b0abfaef0f0ccee
7
- data.tar.gz: 66ea4c3da5ad8ab2c03a117fca7f095ca86833610a68d381514f461046d5dc3911ec4994958dac29f6c7f32d419416166e6cb52cf7eb51968463dce8d06bfaf5
6
+ metadata.gz: c993722ed2ad77ee5bc8c7674f3cedd88b2eed19fb3078b3587277bdf9ecfc6a5d1f3d871ffc69c89eea7f416aa30503f7eacdd7f667d688e776b962c9938cec
7
+ data.tar.gz: f88e6af617f9d6a5f6c5c7ee90772d4d0e35d91e4396181c16e9dc2b6cf9ff122ed62f6d0e8546a6ca36523d639430d1cc32c20a3a1185ffe6c2826d5de258a3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.76.0 (2026-09-30)
4
+
5
+ Full Changelog: [v1.75.0...v1.76.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.75.0...v1.76.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** add list spend limits endpoint ([06d65a0](https://github.com/anthropics/anthropic-sdk-ruby/commit/06d65a06b8217f2149717059ff4b2290174fee1a))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **client:** let the client timeout apply to messages.create and the streaming methods ([#249](https://github.com/anthropics/anthropic-sdk-ruby/issues/249)) ([78e491d](https://github.com/anthropics/anthropic-sdk-ruby/commit/78e491d8c231f6e5b0ab1c190a6078b038ebb470))
15
+ * **client:** treat a timeout the caller passed as set even when it equals the default ([#282](https://github.com/anthropics/anthropic-sdk-ruby/issues/282)) ([8484c29](https://github.com/anthropics/anthropic-sdk-ruby/commit/8484c29736916b55eb35c53e0138700f26734051))
16
+
17
+
18
+ ### Chores
19
+
20
+ * **api:** mark Claude Sonnet 4.5 as deprecated (end-of-life November 30, 2026) ([f7277ac](https://github.com/anthropics/anthropic-sdk-ruby/commit/f7277ac8bdfd66841ed3c8ba77fb6d9c98ada3d6))
21
+
3
22
  ## 1.75.0 (2026-09-30)
4
23
 
5
24
  Full Changelog: [v1.74.0...v1.75.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.74.0...v1.75.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ Add to your application's Gemfile:
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "anthropic", "~> 1.75.0"
18
+ gem "anthropic", "~> 1.76.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -47,7 +47,8 @@ module Anthropic
47
47
  #
48
48
  # @param max_retries [Integer] Max number of retries to attempt after a failed retryable request.
49
49
  #
50
- # @param timeout [Float]
50
+ # @param timeout [Float, nil] Request timeout in seconds. Defaults to
51
+ # `Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS` when `nil`.
51
52
  #
52
53
  # @param initial_retry_delay [Float]
53
54
  #
@@ -64,7 +65,7 @@ module Anthropic
64
65
  skip_auth: false,
65
66
  base_url: ENV["ANTHROPIC_AWS_BASE_URL"],
66
67
  max_retries: self.class::DEFAULT_MAX_RETRIES,
67
- timeout: self.class::DEFAULT_TIMEOUT_IN_SECONDS,
68
+ timeout: nil,
68
69
  initial_retry_delay: self.class::DEFAULT_INITIAL_RETRY_DELAY,
69
70
  max_retry_delay: self.class::DEFAULT_MAX_RETRY_DELAY
70
71
  )
@@ -49,7 +49,8 @@ module Anthropic
49
49
  #
50
50
  # @param max_retries [Integer] The maximum number of times to retry a request if it fails
51
51
  #
52
- # @param timeout [Float] The number of seconds to wait for a response before timing out
52
+ # @param timeout [Float, nil] Request timeout in seconds. Defaults to
53
+ # `Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS` when `nil`.
53
54
  #
54
55
  # @param initial_retry_delay [Float] The number of seconds to wait before retrying a request
55
56
  #
@@ -64,7 +65,7 @@ module Anthropic
64
65
  aws_region: nil,
65
66
  base_url: nil,
66
67
  max_retries: self.class::DEFAULT_MAX_RETRIES,
67
- timeout: self.class::DEFAULT_TIMEOUT_IN_SECONDS,
68
+ timeout: nil,
68
69
  initial_retry_delay: self.class::DEFAULT_INITIAL_RETRY_DELAY,
69
70
  max_retry_delay: self.class::DEFAULT_MAX_RETRY_DELAY,
70
71
  aws_access_key: nil,
@@ -51,7 +51,8 @@ module Anthropic
51
51
  #
52
52
  # @param max_retries [Integer] Max number of retries to attempt after a failed retryable request.
53
53
  #
54
- # @param timeout [Float]
54
+ # @param timeout [Float, nil] Request timeout in seconds. Defaults to
55
+ # `Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS` when `nil`.
55
56
  #
56
57
  # @param initial_retry_delay [Float]
57
58
  #
@@ -67,7 +68,7 @@ module Anthropic
67
68
  skip_auth: false,
68
69
  base_url: ENV["ANTHROPIC_BEDROCK_MANTLE_BASE_URL"],
69
70
  max_retries: self.class::DEFAULT_MAX_RETRIES,
70
- timeout: self.class::DEFAULT_TIMEOUT_IN_SECONDS,
71
+ timeout: nil,
71
72
  initial_retry_delay: self.class::DEFAULT_INITIAL_RETRY_DELAY,
72
73
  max_retry_delay: self.class::DEFAULT_MAX_RETRY_DELAY
73
74
  )
@@ -75,7 +75,8 @@ module Anthropic
75
75
  # @param max_retries [Integer] Max number of retries to attempt after a
76
76
  # failed retryable request.
77
77
  #
78
- # @param timeout [Float]
78
+ # @param timeout [Float, nil] Request timeout in seconds. Defaults to
79
+ # `Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS` when `nil`.
79
80
  #
80
81
  # @param initial_retry_delay [Float]
81
82
  #
@@ -95,7 +96,7 @@ module Anthropic
95
96
  token_provider: nil,
96
97
  skip_auth: false,
97
98
  max_retries: self.class::DEFAULT_MAX_RETRIES,
98
- timeout: self.class::DEFAULT_TIMEOUT_IN_SECONDS,
99
+ timeout: nil,
99
100
  initial_retry_delay: self.class::DEFAULT_INITIAL_RETRY_DELAY,
100
101
  max_retry_delay: self.class::DEFAULT_MAX_RETRY_DELAY,
101
102
  middleware: nil
@@ -31,7 +31,8 @@ module Anthropic
31
31
  #
32
32
  # @param max_retries [Integer] The maximum number of times to retry a request if it fails
33
33
  #
34
- # @param timeout [Float] The number of seconds to wait for a response before timing out
34
+ # @param timeout [Float, nil] Request timeout in seconds. Defaults to
35
+ # `Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS` when `nil`.
35
36
  #
36
37
  # @param initial_retry_delay [Float] The number of seconds to wait before retrying a request
37
38
  #
@@ -47,7 +48,7 @@ module Anthropic
47
48
  project_id: ENV["ANTHROPIC_VERTEX_PROJECT_ID"],
48
49
  base_url: nil,
49
50
  max_retries: DEFAULT_MAX_RETRIES,
50
- timeout: DEFAULT_TIMEOUT_IN_SECONDS,
51
+ timeout: nil,
51
52
  initial_retry_delay: DEFAULT_INITIAL_RETRY_DELAY,
52
53
  max_retry_delay: DEFAULT_MAX_RETRY_DELAY,
53
54
  middleware: nil
@@ -103,6 +103,8 @@ module Anthropic
103
103
 
104
104
  variant const: -> { Anthropic::Models::AnthropicBeta::CE_PLUGINS_2026_09_01 }
105
105
 
106
+ variant const: -> { Anthropic::Models::AnthropicBeta::SPEND_LIMIT_READS_2026_09_26 }
107
+
106
108
  variant String
107
109
 
108
110
  # @!method self.variants
@@ -163,6 +165,7 @@ module Anthropic
163
165
  INLINE_TOOLS_2026_09_15 = :"inline-tools-2026-09-15"
164
166
  MCP_CLIENT_2026_09_15 = :"mcp-client-2026-09-15"
165
167
  CE_PLUGINS_2026_09_01 = :"ce-plugins-2026-09-01"
168
+ SPEND_LIMIT_READS_2026_09_26 = :"spend-limit-reads-2026-09-26"
166
169
 
167
170
  # @!endgroup
168
171
  end
@@ -96,9 +96,17 @@ module Anthropic
96
96
  CLAUDE_OPUS_4_5_20251101 = :"claude-opus-4-5-20251101"
97
97
 
98
98
  # High-performance model for agents and coding
99
+ # @deprecated Will reach end-of-life on November 30, 2026. Please migrate to
100
+ # claude-sonnet-5-5. Visit
101
+ # https://docs.anthropic.com/en/docs/resources/model-deprecations for more
102
+ # information.
99
103
  CLAUDE_SONNET_4_5 = :"claude-sonnet-4-5"
100
104
 
101
105
  # High-performance model for agents and coding
106
+ # @deprecated Will reach end-of-life on November 30, 2026. Please migrate to
107
+ # claude-sonnet-5-5. Visit
108
+ # https://docs.anthropic.com/en/docs/resources/model-deprecations for more
109
+ # information.
102
110
  CLAUDE_SONNET_4_5_20250929 = :"claude-sonnet-4-5-20250929"
103
111
 
104
112
  # @!endgroup
@@ -32,6 +32,14 @@ module Anthropic
32
32
  # @return [String]
33
33
  required :currency, String
34
34
 
35
+ # @!attribute is_enabled
36
+ # Read-only. `false` when extra usage is switched off for this organization
37
+ # (`organization` limit) or for this member (`user` limit); `amount` is kept and
38
+ # applies again when it's switched back on. Always `true` for other limits.
39
+ #
40
+ # @return [Boolean]
41
+ required :is_enabled, Anthropic::Internal::Type::Boolean
42
+
35
43
  # @!attribute period
36
44
  # Length of the window the limit resets over. `amount` caps spend within each
37
45
  # period.
@@ -58,7 +66,7 @@ module Anthropic
58
66
  # @return [Time]
59
67
  required :updated_at, Time
60
68
 
61
- # @!method initialize(id:, amount:, created_at:, currency:, period:, scope:, updated_at:, type: :spend_limit)
69
+ # @!method initialize(id:, amount:, created_at:, currency:, is_enabled:, period:, scope:, updated_at:, type: :spend_limit)
62
70
  # A configured spend limit: a cap on metered spend for one scope and period.
63
71
  #
64
72
  # Some parameter documentations has been truncated, see
@@ -72,6 +80,8 @@ module Anthropic
72
80
  #
73
81
  # @param currency [String] ISO 4217 code of the organization's billing currency; the unit for `amount`.
74
82
  #
83
+ # @param is_enabled [Boolean] Read-only. `false` when extra usage is switched off for this organization (`orga
84
+ #
75
85
  # @param period [Symbol, Anthropic::Models::Beta::Organization::BetaSpendLimitPeriod] Length of the window the limit resets over. `amount` caps spend within each peri
76
86
  #
77
87
  # @param scope [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope] What the limit applies to. A tagged union on `type`; each variant carries the id
@@ -0,0 +1,75 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ # @see Anthropic::Resources::Beta::Organization::SpendLimits#list
8
+ class SpendLimitListParams < Anthropic::Internal::Type::BaseModel
9
+ extend Anthropic::Internal::Type::RequestParameters::Converter
10
+ include Anthropic::Internal::Type::RequestParameters
11
+
12
+ # @!attribute limit
13
+ # Maximum number of limits per page. Defaults to `20`.
14
+ #
15
+ # @return [Integer, nil]
16
+ optional :limit, Integer
17
+
18
+ # @!attribute page
19
+ # Opaque cursor from a previous response's `next_page` field.
20
+ #
21
+ # @return [String, nil]
22
+ optional :page, String, nil?: true
23
+
24
+ # @!attribute scope_type
25
+ # Return only limits with these scope types. A Claude Console organization has
26
+ # `organization` and `workspace` limits; a Claude Enterprise organization has
27
+ # `organization`, `seat_tier`, `rbac_group`, `organization_service` and `user`
28
+ # limits. Omit for all.
29
+ #
30
+ # @return [Array<Symbol, Anthropic::Models::Beta::Organization::SpendLimitListParams::ScopeType>, nil]
31
+ optional :scope_type,
32
+ -> {
33
+ Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Organization::SpendLimitListParams::ScopeType]
34
+ },
35
+ nil?: true
36
+
37
+ # @!attribute betas
38
+ # This endpoint is in beta: requests must send `spend-limit-reads-2026-09-26` in
39
+ # this header.
40
+ #
41
+ # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
42
+ optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
43
+
44
+ # @!method initialize(limit: nil, page: nil, scope_type: nil, betas: nil, request_options: {})
45
+ # Some parameter documentations has been truncated, see
46
+ # {Anthropic::Models::Beta::Organization::SpendLimitListParams} for more details.
47
+ #
48
+ # @param limit [Integer] Maximum number of limits per page. Defaults to `20`.
49
+ #
50
+ # @param page [String, nil] Opaque cursor from a previous response's `next_page` field.
51
+ #
52
+ # @param scope_type [Array<Symbol, Anthropic::Models::Beta::Organization::SpendLimitListParams::ScopeType>, nil] Return only limits with these scope types. A Claude Console organization has `or
53
+ #
54
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `spend-limit-reads-2026-09-26` in t
55
+ #
56
+ # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
57
+
58
+ module ScopeType
59
+ extend Anthropic::Internal::Type::Enum
60
+
61
+ ORGANIZATION = :organization
62
+ ORGANIZATION_SERVICE = :organization_service
63
+ RBAC_GROUP = :rbac_group
64
+ SEAT_TIER = :seat_tier
65
+ USER = :user
66
+ WORKSPACE = :workspace
67
+
68
+ # @!method self.values
69
+ # @return [Array<Symbol>]
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
75
+ end
@@ -113,9 +113,17 @@ module Anthropic
113
113
  CLAUDE_OPUS_4_5_20251101 = :"claude-opus-4-5-20251101"
114
114
 
115
115
  # High-performance model for agents and coding
116
+ # @deprecated Will reach end-of-life on November 30, 2026. Please migrate to
117
+ # claude-sonnet-5-5. Visit
118
+ # https://docs.anthropic.com/en/docs/resources/model-deprecations for more
119
+ # information.
116
120
  CLAUDE_SONNET_4_5 = :"claude-sonnet-4-5"
117
121
 
118
122
  # High-performance model for agents and coding
123
+ # @deprecated Will reach end-of-life on November 30, 2026. Please migrate to
124
+ # claude-sonnet-5-5. Visit
125
+ # https://docs.anthropic.com/en/docs/resources/model-deprecations for more
126
+ # information.
119
127
  CLAUDE_SONNET_4_5_20250929 = :"claude-sonnet-4-5-20250929"
120
128
 
121
129
  # @!endgroup
@@ -117,7 +117,7 @@ module Anthropic
117
117
 
118
118
  unwrap = ->(raw) { Anthropic::Helpers::Messages.parse_input_schemas!(raw, tools:, models:) }
119
119
 
120
- if options.empty? && @client.timeout == Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS
120
+ if options.empty? && !@client.timeout_overridden?
121
121
  model = parsed[:model]&.to_sym
122
122
  max_tokens = parsed[:max_tokens].to_i
123
123
  timeout = @client.calculate_nonstreaming_timeout(
@@ -125,8 +125,6 @@ module Anthropic
125
125
  Anthropic::Client::MODEL_NONSTREAMING_TOKENS[model]
126
126
  )
127
127
  options = {timeout: timeout}
128
- else
129
- options = {timeout: 600, **options}
130
128
  end
131
129
 
132
130
  header_params =
@@ -256,7 +254,7 @@ module Anthropic
256
254
  body: parsed.except(*header_params.keys),
257
255
  stream: Anthropic::Internal::Stream,
258
256
  model: Anthropic::Beta::BetaRawMessageStreamEvent,
259
- options: {timeout: 600, **options}
257
+ options: options
260
258
  )
261
259
  Anthropic::Streaming::MessageStream.new(raw_stream:, tools:, models:)
262
260
  end
@@ -31,6 +31,46 @@ module Anthropic
31
31
  )
32
32
  end
33
33
 
34
+ # List the organization's spend limits.
35
+ #
36
+ # A Claude Console organization's limits come in an order that is stable across
37
+ # pages. A Claude Enterprise organization's are grouped by scope type, in the
38
+ # order `organization`, `seat_tier`, `rbac_group`, `organization_service`, `user`;
39
+ # within a type they come in a fixed order that is not creation order.
40
+ #
41
+ # Some parameter documentations has been truncated, see
42
+ # {Anthropic::Models::Beta::Organization::SpendLimitListParams} for more details.
43
+ #
44
+ # @overload list(limit: nil, page: nil, scope_type: nil, betas: nil, request_options: {})
45
+ #
46
+ # @param limit [Integer] Query param: Maximum number of limits per page. Defaults to `20`.
47
+ #
48
+ # @param page [String, nil] Query param: Opaque cursor from a previous response's `next_page` field.
49
+ #
50
+ # @param scope_type [Array<Symbol, Anthropic::Models::Beta::Organization::SpendLimitListParams::ScopeType>, nil] Query param: Return only limits with these scope types. A Claude Console organiz
51
+ #
52
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Header param: This endpoint is in beta: requests must send `spend-limit-reads-20
53
+ #
54
+ # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}, nil]
55
+ #
56
+ # @return [Anthropic::Internal::PageCursor<Anthropic::Models::Beta::Organization::BetaSpendLimit>]
57
+ #
58
+ # @see Anthropic::Models::Beta::Organization::SpendLimitListParams
59
+ def list(params = {})
60
+ query_params = [:limit, :page, :scope_type]
61
+ parsed, options = Anthropic::Beta::Organization::SpendLimitListParams.dump_request(params)
62
+ query = Anthropic::Internal::Util.encode_query_params(parsed.slice(*query_params))
63
+ @client.request(
64
+ method: :get,
65
+ path: "v1/organizations/spend_limits?beta=true",
66
+ query: query,
67
+ headers: parsed.except(*query_params).transform_keys(betas: "anthropic-beta"),
68
+ page: Anthropic::Internal::PageCursor,
69
+ model: Anthropic::Beta::Organization::BetaSpendLimit,
70
+ options: options
71
+ )
72
+ end
73
+
34
74
  # Delete a spend limit.
35
75
  #
36
76
  # For a Claude Enterprise organization, this deletes a per-user override, and the
@@ -82,7 +82,7 @@ module Anthropic
82
82
 
83
83
  unwrap = ->(raw) { Anthropic::Helpers::Messages.parse_input_schemas!(raw, tools:, models:) }
84
84
 
85
- if options.empty? && @client.timeout == Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS
85
+ if options.empty? && !@client.timeout_overridden?
86
86
  model = parsed[:model]&.to_sym
87
87
  max_tokens = parsed[:max_tokens].to_i
88
88
  timeout = @client.calculate_nonstreaming_timeout(
@@ -90,8 +90,6 @@ module Anthropic
90
90
  Anthropic::Client::MODEL_NONSTREAMING_TOKENS[model]
91
91
  )
92
92
  options = {timeout: timeout}
93
- else
94
- options = {timeout: 600, **options}
95
93
  end
96
94
 
97
95
  header_params = {user_profile_id: "anthropic-user-profile-id", workspace_id: "anthropic-workspace-id"}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anthropic
4
- VERSION = "1.75.0"
4
+ VERSION = "1.76.0"
5
5
  end
data/lib/anthropic.rb CHANGED
@@ -1008,6 +1008,7 @@ require_relative "anthropic/models/beta/organization/service_accounts/workspace_
1008
1008
  require_relative "anthropic/models/beta/organization/service_account_update_params"
1009
1009
  require_relative "anthropic/models/beta/organization/spend_limit_delete_params"
1010
1010
  require_relative "anthropic/models/beta/organization/spend_limit_delete_response"
1011
+ require_relative "anthropic/models/beta/organization/spend_limit_list_params"
1011
1012
  require_relative "anthropic/models/beta/organization/spend_limit_retrieve_params"
1012
1013
  require_relative "anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request"
1013
1014
  require_relative "anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_status"
@@ -22,7 +22,7 @@ module Anthropic
22
22
  skip_auth: T::Boolean,
23
23
  base_url: T.nilable(String),
24
24
  max_retries: Integer,
25
- timeout: Float,
25
+ timeout: T.nilable(Float),
26
26
  initial_retry_delay: Float,
27
27
  max_retry_delay: Float
28
28
  ).returns(T.attached_class)
@@ -38,7 +38,9 @@ module Anthropic
38
38
  skip_auth: false,
39
39
  base_url: nil,
40
40
  max_retries: Anthropic::Client::DEFAULT_MAX_RETRIES,
41
- timeout: Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS,
41
+ # Request timeout in seconds. Defaults to
42
+ # `Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS` when `nil`.
43
+ timeout: nil,
42
44
  initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
43
45
  max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY
44
46
  )
@@ -81,7 +81,7 @@ module Anthropic
81
81
  aws_region: T.nilable(String),
82
82
  base_url: T.nilable(String),
83
83
  max_retries: Integer,
84
- timeout: Float,
84
+ timeout: T.nilable(Float),
85
85
  initial_retry_delay: Float,
86
86
  max_retry_delay: Float,
87
87
  aws_access_key: T.nilable(String),
@@ -96,7 +96,9 @@ module Anthropic
96
96
  aws_region: nil,
97
97
  base_url: nil,
98
98
  max_retries: Anthropic::Client::DEFAULT_MAX_RETRIES,
99
- timeout: Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS,
99
+ # Request timeout in seconds. Defaults to
100
+ # `Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS` when `nil`.
101
+ timeout: nil,
100
102
  initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
101
103
  max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY,
102
104
  aws_access_key: nil,
@@ -24,7 +24,7 @@ module Anthropic
24
24
  skip_auth: T::Boolean,
25
25
  base_url: T.nilable(String),
26
26
  max_retries: Integer,
27
- timeout: Float,
27
+ timeout: T.nilable(Float),
28
28
  initial_retry_delay: Float,
29
29
  max_retry_delay: Float
30
30
  ).returns(T.attached_class)
@@ -39,7 +39,9 @@ module Anthropic
39
39
  skip_auth: false,
40
40
  base_url: nil,
41
41
  max_retries: Anthropic::Client::DEFAULT_MAX_RETRIES,
42
- timeout: Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS,
42
+ # Request timeout in seconds. Defaults to
43
+ # `Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS` when `nil`.
44
+ timeout: nil,
43
45
  initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
44
46
  max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY
45
47
  )
@@ -54,7 +54,7 @@ module Anthropic
54
54
  token_provider: T.nilable(T.proc.returns(String)),
55
55
  skip_auth: T::Boolean,
56
56
  max_retries: Integer,
57
- timeout: Float,
57
+ timeout: T.nilable(Float),
58
58
  initial_retry_delay: Float,
59
59
  max_retry_delay: Float,
60
60
  middleware: T.nilable(Anthropic::Middleware::EntryOrArray)
@@ -69,7 +69,9 @@ module Anthropic
69
69
  token_provider: nil,
70
70
  skip_auth: false,
71
71
  max_retries: Anthropic::Client::DEFAULT_MAX_RETRIES,
72
- timeout: Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS,
72
+ # Request timeout in seconds. Defaults to
73
+ # `Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS` when `nil`.
74
+ timeout: nil,
73
75
  initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
74
76
  max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY,
75
77
  # Per-attempt HTTP around-middleware. The Google bearer is applied
@@ -76,7 +76,7 @@ module Anthropic
76
76
  project_id: T.nilable(String),
77
77
  base_url: T.nilable(String),
78
78
  max_retries: Integer,
79
- timeout: Float,
79
+ timeout: T.nilable(Float),
80
80
  initial_retry_delay: Float,
81
81
  max_retry_delay: Float,
82
82
  middleware: T.nilable(Anthropic::Middleware::EntryOrArray)
@@ -87,7 +87,9 @@ module Anthropic
87
87
  project_id: ENV["ANTHROPIC_VERTEX_PROJECT_ID"],
88
88
  base_url: nil,
89
89
  max_retries: Anthropic::Client::DEFAULT_MAX_RETRIES,
90
- timeout: Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS,
90
+ # Request timeout in seconds. Defaults to
91
+ # `Anthropic::Client::DEFAULT_TIMEOUT_IN_SECONDS` when `nil`.
92
+ timeout: nil,
91
93
  initial_retry_delay: Anthropic::Client::DEFAULT_INITIAL_RETRY_DELAY,
92
94
  max_retry_delay: Anthropic::Client::DEFAULT_MAX_RETRY_DELAY,
93
95
  # Per-attempt HTTP around-middleware. Middleware sees the canonical
@@ -215,6 +215,11 @@ module Anthropic
215
215
  T.let(:"mcp-client-2026-09-15", Anthropic::AnthropicBeta::TaggedSymbol)
216
216
  CE_PLUGINS_2026_09_01 =
217
217
  T.let(:"ce-plugins-2026-09-01", Anthropic::AnthropicBeta::TaggedSymbol)
218
+ SPEND_LIMIT_READS_2026_09_26 =
219
+ T.let(
220
+ :"spend-limit-reads-2026-09-26",
221
+ Anthropic::AnthropicBeta::TaggedSymbol
222
+ )
218
223
  end
219
224
  end
220
225
  end
@@ -31,6 +31,12 @@ module Anthropic
31
31
  sig { returns(String) }
32
32
  attr_accessor :currency
33
33
 
34
+ # Read-only. `false` when extra usage is switched off for this organization
35
+ # (`organization` limit) or for this member (`user` limit); `amount` is kept and
36
+ # applies again when it's switched back on. Always `true` for other limits.
37
+ sig { returns(T::Boolean) }
38
+ attr_accessor :is_enabled
39
+
34
40
  # Length of the window the limit resets over. `amount` caps spend within each
35
41
  # period.
36
42
  sig do
@@ -64,6 +70,7 @@ module Anthropic
64
70
  amount: T.nilable(String),
65
71
  created_at: Time,
66
72
  currency: String,
73
+ is_enabled: T::Boolean,
67
74
  period:
68
75
  Anthropic::Beta::Organization::BetaSpendLimitPeriod::OrSymbol,
69
76
  scope:
@@ -90,6 +97,10 @@ module Anthropic
90
97
  created_at:,
91
98
  # ISO 4217 code of the organization's billing currency; the unit for `amount`.
92
99
  currency:,
100
+ # Read-only. `false` when extra usage is switched off for this organization
101
+ # (`organization` limit) or for this member (`user` limit); `amount` is kept and
102
+ # applies again when it's switched back on. Always `true` for other limits.
103
+ is_enabled:,
93
104
  # Length of the window the limit resets over. `amount` caps spend within each
94
105
  # period.
95
106
  period:,
@@ -110,6 +121,7 @@ module Anthropic
110
121
  amount: T.nilable(String),
111
122
  created_at: Time,
112
123
  currency: String,
124
+ is_enabled: T::Boolean,
113
125
  period:
114
126
  Anthropic::Beta::Organization::BetaSpendLimitPeriod::TaggedSymbol,
115
127
  scope:
@@ -0,0 +1,172 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class SpendLimitListParams < Anthropic::Internal::Type::BaseModel
8
+ extend Anthropic::Internal::Type::RequestParameters::Converter
9
+ include Anthropic::Internal::Type::RequestParameters
10
+
11
+ OrHash =
12
+ T.type_alias do
13
+ T.any(
14
+ Anthropic::Beta::Organization::SpendLimitListParams,
15
+ Anthropic::Internal::AnyHash
16
+ )
17
+ end
18
+
19
+ # Maximum number of limits per page. Defaults to `20`.
20
+ sig { returns(T.nilable(Integer)) }
21
+ attr_reader :limit
22
+
23
+ sig { params(limit: Integer).void }
24
+ attr_writer :limit
25
+
26
+ # Opaque cursor from a previous response's `next_page` field.
27
+ sig { returns(T.nilable(String)) }
28
+ attr_accessor :page
29
+
30
+ # Return only limits with these scope types. A Claude Console organization has
31
+ # `organization` and `workspace` limits; a Claude Enterprise organization has
32
+ # `organization`, `seat_tier`, `rbac_group`, `organization_service` and `user`
33
+ # limits. Omit for all.
34
+ sig do
35
+ returns(
36
+ T.nilable(
37
+ T::Array[
38
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::OrSymbol
39
+ ]
40
+ )
41
+ )
42
+ end
43
+ attr_accessor :scope_type
44
+
45
+ # This endpoint is in beta: requests must send `spend-limit-reads-2026-09-26` in
46
+ # this header.
47
+ sig do
48
+ returns(
49
+ T.nilable(
50
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
51
+ )
52
+ )
53
+ end
54
+ attr_reader :betas
55
+
56
+ sig do
57
+ params(
58
+ betas: T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)]
59
+ ).void
60
+ end
61
+ attr_writer :betas
62
+
63
+ sig do
64
+ params(
65
+ limit: Integer,
66
+ page: T.nilable(String),
67
+ scope_type:
68
+ T.nilable(
69
+ T::Array[
70
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::OrSymbol
71
+ ]
72
+ ),
73
+ betas:
74
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
75
+ request_options: Anthropic::RequestOptions::OrHash
76
+ ).returns(T.attached_class)
77
+ end
78
+ def self.new(
79
+ # Maximum number of limits per page. Defaults to `20`.
80
+ limit: nil,
81
+ # Opaque cursor from a previous response's `next_page` field.
82
+ page: nil,
83
+ # Return only limits with these scope types. A Claude Console organization has
84
+ # `organization` and `workspace` limits; a Claude Enterprise organization has
85
+ # `organization`, `seat_tier`, `rbac_group`, `organization_service` and `user`
86
+ # limits. Omit for all.
87
+ scope_type: nil,
88
+ # This endpoint is in beta: requests must send `spend-limit-reads-2026-09-26` in
89
+ # this header.
90
+ betas: nil,
91
+ request_options: {}
92
+ )
93
+ end
94
+
95
+ sig do
96
+ override.returns(
97
+ {
98
+ limit: Integer,
99
+ page: T.nilable(String),
100
+ scope_type:
101
+ T.nilable(
102
+ T::Array[
103
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::OrSymbol
104
+ ]
105
+ ),
106
+ betas:
107
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
108
+ request_options: Anthropic::RequestOptions
109
+ }
110
+ )
111
+ end
112
+ def to_hash
113
+ end
114
+
115
+ module ScopeType
116
+ extend Anthropic::Internal::Type::Enum
117
+
118
+ TaggedSymbol =
119
+ T.type_alias do
120
+ T.all(
121
+ Symbol,
122
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType
123
+ )
124
+ end
125
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
126
+
127
+ ORGANIZATION =
128
+ T.let(
129
+ :organization,
130
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::TaggedSymbol
131
+ )
132
+ ORGANIZATION_SERVICE =
133
+ T.let(
134
+ :organization_service,
135
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::TaggedSymbol
136
+ )
137
+ RBAC_GROUP =
138
+ T.let(
139
+ :rbac_group,
140
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::TaggedSymbol
141
+ )
142
+ SEAT_TIER =
143
+ T.let(
144
+ :seat_tier,
145
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::TaggedSymbol
146
+ )
147
+ USER =
148
+ T.let(
149
+ :user,
150
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::TaggedSymbol
151
+ )
152
+ WORKSPACE =
153
+ T.let(
154
+ :workspace,
155
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::TaggedSymbol
156
+ )
157
+
158
+ sig do
159
+ override.returns(
160
+ T::Array[
161
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::TaggedSymbol
162
+ ]
163
+ )
164
+ end
165
+ def self.values
166
+ end
167
+ end
168
+ end
169
+ end
170
+ end
171
+ end
172
+ end
@@ -33,6 +33,48 @@ module Anthropic
33
33
  )
34
34
  end
35
35
 
36
+ # List the organization's spend limits.
37
+ #
38
+ # A Claude Console organization's limits come in an order that is stable across
39
+ # pages. A Claude Enterprise organization's are grouped by scope type, in the
40
+ # order `organization`, `seat_tier`, `rbac_group`, `organization_service`, `user`;
41
+ # within a type they come in a fixed order that is not creation order.
42
+ sig do
43
+ params(
44
+ limit: Integer,
45
+ page: T.nilable(String),
46
+ scope_type:
47
+ T.nilable(
48
+ T::Array[
49
+ Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::OrSymbol
50
+ ]
51
+ ),
52
+ betas:
53
+ T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
54
+ request_options: Anthropic::RequestOptions::OrHash
55
+ ).returns(
56
+ Anthropic::Internal::PageCursor[
57
+ Anthropic::Beta::Organization::BetaSpendLimit
58
+ ]
59
+ )
60
+ end
61
+ def list(
62
+ # Query param: Maximum number of limits per page. Defaults to `20`.
63
+ limit: nil,
64
+ # Query param: Opaque cursor from a previous response's `next_page` field.
65
+ page: nil,
66
+ # Query param: Return only limits with these scope types. A Claude Console
67
+ # organization has `organization` and `workspace` limits; a Claude Enterprise
68
+ # organization has `organization`, `seat_tier`, `rbac_group`,
69
+ # `organization_service` and `user` limits. Omit for all.
70
+ scope_type: nil,
71
+ # Header param: This endpoint is in beta: requests must send
72
+ # `spend-limit-reads-2026-09-26` in this header.
73
+ betas: nil,
74
+ request_options: {}
75
+ )
76
+ end
77
+
36
78
  # Delete a spend limit.
37
79
  #
38
80
  # For a Claude Enterprise organization, this deletes a per-user override, and the
@@ -41,7 +41,7 @@ module Anthropic
41
41
  aws_region: String?,
42
42
  base_url: String?,
43
43
  max_retries: Integer,
44
- timeout: Float,
44
+ timeout: Float?,
45
45
  initial_retry_delay: Float,
46
46
  max_retry_delay: Float,
47
47
  aws_access_key: String?,
@@ -37,7 +37,7 @@ module Anthropic
37
37
  ?token_provider: (^-> String)?,
38
38
  ?skip_auth: bool,
39
39
  ?max_retries: Integer,
40
- ?timeout: Float,
40
+ ?timeout: Float?,
41
41
  ?initial_retry_delay: Float,
42
42
  ?max_retry_delay: Float,
43
43
  ?middleware: Anthropic::Middleware::entry_or_array?
@@ -44,7 +44,7 @@ module Anthropic
44
44
  project_id: String?,
45
45
  base_url: String?,
46
46
  max_retries: Integer,
47
- timeout: Float,
47
+ timeout: Float?,
48
48
  initial_retry_delay: Float,
49
49
  max_retry_delay: Float,
50
50
  middleware: Anthropic::Middleware::entry_or_array?
@@ -50,6 +50,7 @@ module Anthropic
50
50
  | :"inline-tools-2026-09-15"
51
51
  | :"mcp-client-2026-09-15"
52
52
  | :"ce-plugins-2026-09-01"
53
+ | :"spend-limit-reads-2026-09-26"
53
54
  | String
54
55
 
55
56
  module AnthropicBeta
@@ -106,6 +107,7 @@ module Anthropic
106
107
  INLINE_TOOLS_2026_09_15: :"inline-tools-2026-09-15"
107
108
  MCP_CLIENT_2026_09_15: :"mcp-client-2026-09-15"
108
109
  CE_PLUGINS_2026_09_01: :"ce-plugins-2026-09-01"
110
+ SPEND_LIMIT_READS_2026_09_26: :"spend-limit-reads-2026-09-26"
109
111
  end
110
112
  end
111
113
  end
@@ -8,6 +8,7 @@ module Anthropic
8
8
  amount: String?,
9
9
  created_at: Time,
10
10
  currency: String,
11
+ is_enabled: bool,
11
12
  period: Anthropic::Models::Beta::Organization::beta_spend_limit_period,
12
13
  scope: Anthropic::Models::Beta::Organization::BetaSpendLimit::scope,
13
14
  type: :spend_limit,
@@ -23,6 +24,8 @@ module Anthropic
23
24
 
24
25
  attr_accessor currency: String
25
26
 
27
+ attr_accessor is_enabled: bool
28
+
26
29
  attr_accessor period: Anthropic::Models::Beta::Organization::beta_spend_limit_period
27
30
 
28
31
  attr_accessor scope: Anthropic::Models::Beta::Organization::BetaSpendLimit::scope
@@ -36,6 +39,7 @@ module Anthropic
36
39
  amount: String?,
37
40
  created_at: Time,
38
41
  currency: String,
42
+ is_enabled: bool,
39
43
  period: Anthropic::Models::Beta::Organization::beta_spend_limit_period,
40
44
  scope: Anthropic::Models::Beta::Organization::BetaSpendLimit::scope,
41
45
  updated_at: Time,
@@ -47,6 +51,7 @@ module Anthropic
47
51
  amount: String?,
48
52
  created_at: Time,
49
53
  currency: String,
54
+ is_enabled: bool,
50
55
  period: Anthropic::Models::Beta::Organization::beta_spend_limit_period,
51
56
  scope: Anthropic::Models::Beta::Organization::BetaSpendLimit::scope,
52
57
  type: :spend_limit,
@@ -0,0 +1,72 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ module Organization
5
+ type spend_limit_list_params =
6
+ {
7
+ limit: Integer,
8
+ page: String?,
9
+ scope_type: ::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type]?,
10
+ betas: ::Array[Anthropic::Models::anthropic_beta]
11
+ }
12
+ & Anthropic::Internal::Type::request_parameters
13
+
14
+ class SpendLimitListParams < Anthropic::Internal::Type::BaseModel
15
+ extend Anthropic::Internal::Type::RequestParameters::Converter
16
+ include Anthropic::Internal::Type::RequestParameters
17
+
18
+ attr_reader limit: Integer?
19
+
20
+ def limit=: (Integer) -> Integer
21
+
22
+ attr_accessor page: String?
23
+
24
+ attr_accessor scope_type: ::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type]?
25
+
26
+ attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
27
+
28
+ def betas=: (
29
+ ::Array[Anthropic::Models::anthropic_beta]
30
+ ) -> ::Array[Anthropic::Models::anthropic_beta]
31
+
32
+ def initialize: (
33
+ ?limit: Integer,
34
+ ?page: String?,
35
+ ?scope_type: ::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type]?,
36
+ ?betas: ::Array[Anthropic::Models::anthropic_beta],
37
+ ?request_options: Anthropic::request_opts
38
+ ) -> void
39
+
40
+ def to_hash: -> {
41
+ limit: Integer,
42
+ page: String?,
43
+ scope_type: ::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type]?,
44
+ betas: ::Array[Anthropic::Models::anthropic_beta],
45
+ request_options: Anthropic::RequestOptions
46
+ }
47
+
48
+ type scope_type =
49
+ :organization
50
+ | :organization_service
51
+ | :rbac_group
52
+ | :seat_tier
53
+ | :user
54
+ | :workspace
55
+
56
+ module ScopeType
57
+ extend Anthropic::Internal::Type::Enum
58
+
59
+ ORGANIZATION: :organization
60
+ ORGANIZATION_SERVICE: :organization_service
61
+ RBAC_GROUP: :rbac_group
62
+ SEAT_TIER: :seat_tier
63
+ USER: :user
64
+ WORKSPACE: :workspace
65
+
66
+ def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type]
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
@@ -12,6 +12,14 @@ module Anthropic
12
12
  ?request_options: Anthropic::request_opts
13
13
  ) -> Anthropic::Beta::Organization::BetaSpendLimit
14
14
 
15
+ def list: (
16
+ ?limit: Integer,
17
+ ?page: String?,
18
+ ?scope_type: ::Array[Anthropic::Models::Beta::Organization::SpendLimitListParams::scope_type]?,
19
+ ?betas: ::Array[Anthropic::Models::anthropic_beta],
20
+ ?request_options: Anthropic::request_opts
21
+ ) -> Anthropic::Internal::PageCursor[Anthropic::Beta::Organization::BetaSpendLimit]
22
+
15
23
  def delete: (
16
24
  String spend_limit_id,
17
25
  ?request_options: Anthropic::request_opts
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anthropic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.75.0
4
+ version: 1.76.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthropic
@@ -1053,6 +1053,7 @@ files:
1053
1053
  - lib/anthropic/models/beta/organization/service_accounts/workspace_remove_response.rb
1054
1054
  - lib/anthropic/models/beta/organization/spend_limit_delete_params.rb
1055
1055
  - lib/anthropic/models/beta/organization/spend_limit_delete_response.rb
1056
+ - lib/anthropic/models/beta/organization/spend_limit_list_params.rb
1056
1057
  - lib/anthropic/models/beta/organization/spend_limit_retrieve_params.rb
1057
1058
  - lib/anthropic/models/beta/organization/spend_limit_set_params.rb
1058
1059
  - lib/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request.rb
@@ -2783,6 +2784,7 @@ files:
2783
2784
  - rbi/anthropic/models/beta/organization/service_accounts/workspace_remove_response.rbi
2784
2785
  - rbi/anthropic/models/beta/organization/spend_limit_delete_params.rbi
2785
2786
  - rbi/anthropic/models/beta/organization/spend_limit_delete_response.rbi
2787
+ - rbi/anthropic/models/beta/organization/spend_limit_list_params.rbi
2786
2788
  - rbi/anthropic/models/beta/organization/spend_limit_retrieve_params.rbi
2787
2789
  - rbi/anthropic/models/beta/organization/spend_limit_set_params.rbi
2788
2790
  - rbi/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request.rbi
@@ -4497,6 +4499,7 @@ files:
4497
4499
  - sig/anthropic/models/beta/organization/service_accounts/workspace_remove_response.rbs
4498
4500
  - sig/anthropic/models/beta/organization/spend_limit_delete_params.rbs
4499
4501
  - sig/anthropic/models/beta/organization/spend_limit_delete_response.rbs
4502
+ - sig/anthropic/models/beta/organization/spend_limit_list_params.rbs
4500
4503
  - sig/anthropic/models/beta/organization/spend_limit_retrieve_params.rbs
4501
4504
  - sig/anthropic/models/beta/organization/spend_limit_set_params.rbs
4502
4505
  - sig/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request.rbs