From 3fa3e1396480c27aaae01a7533b59d3c3279a789 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 10:57:06 +0000 Subject: [PATCH 1/4] chore(client): send user-agent header --- lib/increase/internal/transport/base_client.rb | 8 +++++++- rbi/increase/internal/transport/base_client.rbi | 5 +++++ sig/increase/internal/transport/base_client.rbs | 2 ++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/increase/internal/transport/base_client.rb b/lib/increase/internal/transport/base_client.rb index 16a2cf02d..378b2d368 100644 --- a/lib/increase/internal/transport/base_client.rb +++ b/lib/increase/internal/transport/base_client.rb @@ -201,7 +201,8 @@ def initialize( self.class::PLATFORM_HEADERS, { "accept" => "application/json", - "content-type" => "application/json" + "content-type" => "application/json", + "user-agent" => user_agent }, headers ) @@ -219,6 +220,11 @@ def initialize( # @return [Hash{String=>String}] private def auth_headers = {} + # @api private + # + # @return [String] + private def user_agent = "#{self.class.name}/Ruby #{Increase::VERSION}" + # @api private # # @return [String] diff --git a/rbi/increase/internal/transport/base_client.rbi b/rbi/increase/internal/transport/base_client.rbi index 4e9a0b498..d4616c597 100644 --- a/rbi/increase/internal/transport/base_client.rbi +++ b/rbi/increase/internal/transport/base_client.rbi @@ -176,6 +176,11 @@ module Increase private def auth_headers end + # @api private + sig { returns(String) } + private def user_agent + end + # @api private sig { returns(String) } private def generate_idempotency_key diff --git a/sig/increase/internal/transport/base_client.rbs b/sig/increase/internal/transport/base_client.rbs index 28fbe09cc..a04bb95af 100644 --- a/sig/increase/internal/transport/base_client.rbs +++ b/sig/increase/internal/transport/base_client.rbs @@ -87,6 +87,8 @@ module Increase private def auth_headers: -> ::Hash[String, String] + private def user_agent: -> String + private def generate_idempotency_key: -> String private def build_request: ( From eab9d7e7c99706e45739fe8b828ba6b5f8bfe88a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 22:35:48 +0000 Subject: [PATCH 2/4] chore: bump dependency version and update sorbet types --- Gemfile | 3 +- Gemfile.lock | 82 +++++++++++------------ rbi/increase/internal/type/base_model.rbi | 12 ++-- 3 files changed, 50 insertions(+), 47 deletions(-) diff --git a/Gemfile b/Gemfile index 0d76364b9..1be178cb4 100644 --- a/Gemfile +++ b/Gemfile @@ -11,8 +11,7 @@ group :development do gem "sorbet" gem "steep" gem "syntax_tree" - # TODO: using a fork for now, the prettier below has a bug - gem "syntax_tree-rbs", github: "stainless-api/syntax_tree-rbs", branch: "main" + gem "syntax_tree-rbs", github: "ruby-syntax-tree/syntax_tree-rbs", branch: "main" gem "tapioca" end diff --git a/Gemfile.lock b/Gemfile.lock index d714fc35b..4316af812 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT - remote: https://github.com/stainless-api/syntax_tree-rbs.git - revision: c30b50219918be7cfe3ef803a00b59d1e77fcada + remote: https://github.com/ruby-syntax-tree/syntax_tree-rbs.git + revision: f94bc3060682ffbd126e4d5086ffedc89073d626 branch: main specs: syntax_tree-rbs (1.0.0) @@ -17,14 +17,14 @@ PATH GEM remote: https://rubygems.org/ specs: - activesupport (8.0.2.1) + activesupport (8.1.1) base64 - benchmark (>= 0.3) bigdecimal concurrent-ruby (~> 1.0, >= 1.3.1) connection_pool (>= 2.2.5) drb i18n (>= 1.6, < 2) + json logger (>= 1.4.2) minitest (>= 5.1) securerandom (>= 0.3) @@ -33,22 +33,22 @@ GEM addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) ast (2.4.3) - async (2.27.3) + async (2.34.0) console (~> 1.29) fiber-annotation io-event (~> 1.11) metrics (~> 0.12) - traces (~> 0.15) + traces (~> 0.18) base64 (0.3.0) - benchmark (0.4.1) - bigdecimal (3.2.2) + benchmark (0.5.0) + bigdecimal (3.3.1) concurrent-ruby (1.3.5) - connection_pool (2.5.3) - console (1.33.0) + connection_pool (2.5.4) + console (1.34.2) fiber-annotation fiber-local (~> 1.1) json - crack (1.0.0) + crack (1.0.1) bigdecimal rexml csv (3.3.5) @@ -64,20 +64,20 @@ GEM fiber-local (1.1.0) fiber-storage fiber-storage (1.0.1) - fileutils (1.7.3) - hashdiff (1.2.0) + fileutils (1.8.0) + hashdiff (1.2.1) i18n (1.14.7) concurrent-ruby (~> 1.0) io-event (1.11.2) - json (2.13.2) + json (2.15.2) language_server-protocol (3.17.0.5) lint_roller (1.1.0) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) logger (1.7.0) - metrics (0.13.0) - minitest (5.25.5) + metrics (0.15.0) + minitest (5.26.0) minitest-focus (1.4.0) minitest (>= 4, < 6) minitest-hooks (1.5.2) @@ -89,27 +89,27 @@ GEM mutex_m (0.3.0) netrc (0.11.0) parallel (1.27.0) - parser (3.3.9.0) + parser (3.3.10.0) ast (~> 2.4.1) racc prettier_print (1.2.1) - prism (1.4.0) + prism (1.6.0) public_suffix (6.0.2) racc (1.8.1) rainbow (3.1.1) - rake (13.3.0) + rake (13.3.1) rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rbi (0.3.6) + rbi (0.3.7) prism (~> 1.0) rbs (>= 3.4.4) - rbs (3.9.4) + rbs (3.9.5) logger redcarpet (3.6.1) - regexp_parser (2.11.2) - rexml (3.4.1) - rubocop (1.79.2) + regexp_parser (2.11.3) + rexml (3.4.4) + rubocop (1.81.7) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -117,23 +117,23 @@ GEM parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.46.0, < 2.0) + rubocop-ast (>= 1.47.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.46.0) + rubocop-ast (1.47.1) parser (>= 3.3.7.2) prism (~> 1.4) ruby-progressbar (1.13.0) securerandom (0.4.1) - sorbet (0.5.12424) - sorbet-static (= 0.5.12424) - sorbet-runtime (0.5.12424) - sorbet-static (0.5.12424-aarch64-linux) - sorbet-static (0.5.12424-universal-darwin) - sorbet-static (0.5.12424-x86_64-linux) - sorbet-static-and-runtime (0.5.12424) - sorbet (= 0.5.12424) - sorbet-runtime (= 0.5.12424) + sorbet (0.6.12690) + sorbet-static (= 0.6.12690) + sorbet-runtime (0.6.12690) + sorbet-static (0.6.12690-aarch64-linux) + sorbet-static (0.6.12690-universal-darwin) + sorbet-static (0.6.12690-x86_64-linux) + sorbet-static-and-runtime (0.6.12690) + sorbet (= 0.6.12690) + sorbet-runtime (= 0.6.12690) spoom (1.6.3) erubi (>= 1.10.0) prism (>= 0.28.0) @@ -174,14 +174,14 @@ GEM terminal-table (4.0.0) unicode-display_width (>= 1.1.1, < 4) thor (1.4.0) - traces (0.17.0) + traces (0.18.2) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (3.1.5) - unicode-emoji (~> 4.0, >= 4.0.4) - unicode-emoji (4.0.4) - uri (1.0.3) - webmock (3.25.1) + unicode-display_width (3.2.0) + unicode-emoji (~> 4.1) + unicode-emoji (4.1.0) + uri (1.1.0) + webmock (3.26.1) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) diff --git a/rbi/increase/internal/type/base_model.rbi b/rbi/increase/internal/type/base_model.rbi index 5bedf1d27..35155ced2 100644 --- a/rbi/increase/internal/type/base_model.rbi +++ b/rbi/increase/internal/type/base_model.rbi @@ -31,7 +31,7 @@ module Increase # # Assumes superclass fields are totally defined before fields are accessed / # defined on subclasses. - sig { params(child: T.self_type).void } + sig { params(child: Increase::Internal::Type::BaseModel).void } def inherited(child) end @@ -274,9 +274,13 @@ module Increase # Create a new instance of a model. sig do - params(data: T.any(T::Hash[Symbol, T.anything], T.self_type)).returns( - T.attached_class - ) + params( + data: + T.any( + T::Hash[Symbol, T.anything], + Increase::Internal::Type::BaseModel + ) + ).returns(T.attached_class) end def self.new(data = {}) end From 4a2efb2b33bd395db1c66e459ba895683dc91366 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 4 Nov 2025 15:38:08 +0000 Subject: [PATCH 3/4] feat(api): api update --- .stats.yml | 4 ++-- lib/increase/models/wire_drawdown_request.rb | 6 +++--- .../models/wire_drawdown_request_list_params.rb | 6 +++--- rbi/increase/models/wire_drawdown_request.rbi | 8 ++++---- .../models/wire_drawdown_request_list_params.rbi | 12 ++++++------ sig/increase/models/wire_drawdown_request.rbs | 8 ++++---- .../models/wire_drawdown_request_list_params.rbs | 8 ++++---- 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.stats.yml b/.stats.yml index fff512bc2..d73422845 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 228 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e9e51b3c9b5c8d9e6e0267b62a12a00fedbce419b765192aa4e2470984192e1f.yml -openapi_spec_hash: 84bc91dd8b8a80edf447dddad15c23fc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-776b1bee3036836b954fa0db1e6d0349a04f76799402089994a9147a05967c0e.yml +openapi_spec_hash: 185a637305e75b302860dce8d352f54f config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/lib/increase/models/wire_drawdown_request.rb b/lib/increase/models/wire_drawdown_request.rb index c8b767585..cbd5a5581 100644 --- a/lib/increase/models/wire_drawdown_request.rb +++ b/lib/increase/models/wire_drawdown_request.rb @@ -294,12 +294,12 @@ module Status # The drawdown request is queued to be submitted to Fedwire. PENDING_SUBMISSION = :pending_submission - # The drawdown request has been sent and the recipient should respond in some way. - PENDING_RESPONSE = :pending_response - # The drawdown request has been fulfilled by the recipient. FULFILLED = :fulfilled + # The drawdown request has been sent and the recipient should respond in some way. + PENDING_RESPONSE = :pending_response + # The drawdown request has been refused by the recipient. REFUSED = :refused diff --git a/lib/increase/models/wire_drawdown_request_list_params.rb b/lib/increase/models/wire_drawdown_request_list_params.rb index 643664b24..d8d1c8a8f 100644 --- a/lib/increase/models/wire_drawdown_request_list_params.rb +++ b/lib/increase/models/wire_drawdown_request_list_params.rb @@ -73,12 +73,12 @@ module In # The drawdown request is queued to be submitted to Fedwire. PENDING_SUBMISSION = :pending_submission - # The drawdown request has been sent and the recipient should respond in some way. - PENDING_RESPONSE = :pending_response - # The drawdown request has been fulfilled by the recipient. FULFILLED = :fulfilled + # The drawdown request has been sent and the recipient should respond in some way. + PENDING_RESPONSE = :pending_response + # The drawdown request has been refused by the recipient. REFUSED = :refused diff --git a/rbi/increase/models/wire_drawdown_request.rbi b/rbi/increase/models/wire_drawdown_request.rbi index 40877c323..9ab6abefc 100644 --- a/rbi/increase/models/wire_drawdown_request.rbi +++ b/rbi/increase/models/wire_drawdown_request.rbi @@ -391,6 +391,10 @@ module Increase Increase::WireDrawdownRequest::Status::TaggedSymbol ) + # The drawdown request has been fulfilled by the recipient. + FULFILLED = + T.let(:fulfilled, Increase::WireDrawdownRequest::Status::TaggedSymbol) + # The drawdown request has been sent and the recipient should respond in some way. PENDING_RESPONSE = T.let( @@ -398,10 +402,6 @@ module Increase Increase::WireDrawdownRequest::Status::TaggedSymbol ) - # The drawdown request has been fulfilled by the recipient. - FULFILLED = - T.let(:fulfilled, Increase::WireDrawdownRequest::Status::TaggedSymbol) - # The drawdown request has been refused by the recipient. REFUSED = T.let(:refused, Increase::WireDrawdownRequest::Status::TaggedSymbol) diff --git a/rbi/increase/models/wire_drawdown_request_list_params.rbi b/rbi/increase/models/wire_drawdown_request_list_params.rbi index 0ee88d137..3de0fa442 100644 --- a/rbi/increase/models/wire_drawdown_request_list_params.rbi +++ b/rbi/increase/models/wire_drawdown_request_list_params.rbi @@ -168,17 +168,17 @@ module Increase Increase::WireDrawdownRequestListParams::Status::In::TaggedSymbol ) - # The drawdown request has been sent and the recipient should respond in some way. - PENDING_RESPONSE = + # The drawdown request has been fulfilled by the recipient. + FULFILLED = T.let( - :pending_response, + :fulfilled, Increase::WireDrawdownRequestListParams::Status::In::TaggedSymbol ) - # The drawdown request has been fulfilled by the recipient. - FULFILLED = + # The drawdown request has been sent and the recipient should respond in some way. + PENDING_RESPONSE = T.let( - :fulfilled, + :pending_response, Increase::WireDrawdownRequestListParams::Status::In::TaggedSymbol ) diff --git a/sig/increase/models/wire_drawdown_request.rbs b/sig/increase/models/wire_drawdown_request.rbs index 57e011c12..817b7a44c 100644 --- a/sig/increase/models/wire_drawdown_request.rbs +++ b/sig/increase/models/wire_drawdown_request.rbs @@ -186,7 +186,7 @@ module Increase end type status = - :pending_submission | :pending_response | :fulfilled | :refused + :pending_submission | :fulfilled | :pending_response | :refused module Status extend Increase::Internal::Type::Enum @@ -194,12 +194,12 @@ module Increase # The drawdown request is queued to be submitted to Fedwire. PENDING_SUBMISSION: :pending_submission - # The drawdown request has been sent and the recipient should respond in some way. - PENDING_RESPONSE: :pending_response - # The drawdown request has been fulfilled by the recipient. FULFILLED: :fulfilled + # The drawdown request has been sent and the recipient should respond in some way. + PENDING_RESPONSE: :pending_response + # The drawdown request has been refused by the recipient. REFUSED: :refused diff --git a/sig/increase/models/wire_drawdown_request_list_params.rbs b/sig/increase/models/wire_drawdown_request_list_params.rbs index 8ae19a542..c0e149842 100644 --- a/sig/increase/models/wire_drawdown_request_list_params.rbs +++ b/sig/increase/models/wire_drawdown_request_list_params.rbs @@ -68,7 +68,7 @@ module Increase } type in_ = - :pending_submission | :pending_response | :fulfilled | :refused + :pending_submission | :fulfilled | :pending_response | :refused module In extend Increase::Internal::Type::Enum @@ -76,12 +76,12 @@ module Increase # The drawdown request is queued to be submitted to Fedwire. PENDING_SUBMISSION: :pending_submission - # The drawdown request has been sent and the recipient should respond in some way. - PENDING_RESPONSE: :pending_response - # The drawdown request has been fulfilled by the recipient. FULFILLED: :fulfilled + # The drawdown request has been sent and the recipient should respond in some way. + PENDING_RESPONSE: :pending_response + # The drawdown request has been refused by the recipient. REFUSED: :refused From 058e1a86ebd9be65508d612a4e7f7b6648968e96 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 4 Nov 2025 15:38:37 +0000 Subject: [PATCH 4/4] release: 1.129.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 45db88ff5..042a000d5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.128.0" + ".": "1.129.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3919aea39..dc6a1aa6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 1.129.0 (2025-11-04) + +Full Changelog: [v1.128.0...v1.129.0](https://github.com/Increase/increase-ruby/compare/v1.128.0...v1.129.0) + +### Features + +* **api:** api update ([4a2efb2](https://github.com/Increase/increase-ruby/commit/4a2efb2b33bd395db1c66e459ba895683dc91366)) + + +### Chores + +* bump dependency version and update sorbet types ([eab9d7e](https://github.com/Increase/increase-ruby/commit/eab9d7e7c99706e45739fe8b828ba6b5f8bfe88a)) +* **client:** send user-agent header ([3fa3e13](https://github.com/Increase/increase-ruby/commit/3fa3e1396480c27aaae01a7533b59d3c3279a789)) + ## 1.128.0 (2025-10-31) Full Changelog: [v1.127.0...v1.128.0](https://github.com/Increase/increase-ruby/compare/v1.127.0...v1.128.0) diff --git a/Gemfile.lock b/Gemfile.lock index 4316af812..23d48decb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.128.0) + increase (1.129.0) connection_pool GEM diff --git a/README.md b/README.md index 6bf47ff49..4de0ab107 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.128.0" +gem "increase", "~> 1.129.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 82fb87d33..100c744db 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.128.0" + VERSION = "1.129.0" end