From b96fe0db00aa778a0d53520bc466d857be97637b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 11 Apr 2025 18:39:54 +0000 Subject: [PATCH 1/3] chore(internal): version bump --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 853fddc6..d0cc5a20 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - finch-api (0.1.0.pre.alpha.9) + finch-api (0.1.0.pre.alpha.10) connection_pool GEM From acc0a3b0cdb3043411a137b2a0eade329588953b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 12 Apr 2025 17:12:12 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 ++-- lib/finch_api/models/introspection.rb | 8 ++++++++ rbi/lib/finch_api/models/introspection.rbi | 7 +++++++ sig/finch_api/models/introspection.rbs | 4 ++++ test/finch_api/resources/account_test.rb | 1 + 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f9cf330b..4ba48165 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 46 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-bf858f37d7ab420841ddc6329dad8c46377308b6a5c8e935908011d0f9845e22.yml -openapi_spec_hash: 2523952a32436e3c7fd3b55508c2e7ee +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-ff61a38530dfae03860bceb49379e84bfc7434eeb5d2f1dc9677cb162014faf1.yml +openapi_spec_hash: df3bdaf4acf575bb07767cae7ca24d69 config_hash: 53778a0b839c4f6ad34fbba051f5e8a6 diff --git a/lib/finch_api/models/introspection.rb b/lib/finch_api/models/introspection.rb index dc118ba8..8411bead 100644 --- a/lib/finch_api/models/introspection.rb +++ b/lib/finch_api/models/introspection.rb @@ -4,6 +4,12 @@ module FinchAPI module Models # @see FinchAPI::Resources::Account#introspect class Introspection < FinchAPI::Internal::Type::BaseModel + # @!attribute id + # The Finch UUID of the token being introspected. + # + # @return [String] + required :id, String + # @!attribute account_id # [DEPRECATED] Use `connection_id` to associate tokens with a Finch connection # instead of this account ID. @@ -111,6 +117,7 @@ class Introspection < FinchAPI::Internal::Type::BaseModel required :username, String # @!parse + # # @param id [String] # # @param account_id [String] # # @param authentication_methods [Array] # # @param client_id [String] @@ -129,6 +136,7 @@ class Introspection < FinchAPI::Internal::Type::BaseModel # # @param username [String] # # # def initialize( + # id:, # account_id:, # authentication_methods:, # client_id:, diff --git a/rbi/lib/finch_api/models/introspection.rbi b/rbi/lib/finch_api/models/introspection.rbi index 36804325..4da49a38 100644 --- a/rbi/lib/finch_api/models/introspection.rbi +++ b/rbi/lib/finch_api/models/introspection.rbi @@ -3,6 +3,10 @@ module FinchAPI module Models class Introspection < FinchAPI::Internal::Type::BaseModel + # The Finch UUID of the token being introspected. + sig { returns(String) } + attr_accessor :id + # [DEPRECATED] Use `connection_id` to associate tokens with a Finch connection # instead of this account ID. sig { returns(String) } @@ -86,6 +90,7 @@ module FinchAPI sig do params( + id: String, account_id: String, authentication_methods: T::Array[T.any(FinchAPI::Models::Introspection::AuthenticationMethod, FinchAPI::Internal::AnyHash)], client_id: String, @@ -106,6 +111,7 @@ module FinchAPI .returns(T.attached_class) end def self.new( + id:, account_id:, authentication_methods:, client_id:, @@ -127,6 +133,7 @@ module FinchAPI override .returns( { + id: String, account_id: String, authentication_methods: T::Array[FinchAPI::Models::Introspection::AuthenticationMethod], client_id: String, diff --git a/sig/finch_api/models/introspection.rbs b/sig/finch_api/models/introspection.rbs index 11c0ad50..d4a00fdc 100644 --- a/sig/finch_api/models/introspection.rbs +++ b/sig/finch_api/models/introspection.rbs @@ -2,6 +2,7 @@ module FinchAPI module Models type introspection = { + id: String, account_id: String, authentication_methods: ::Array[FinchAPI::Models::Introspection::AuthenticationMethod], client_id: String, @@ -21,6 +22,8 @@ module FinchAPI } class Introspection < FinchAPI::Internal::Type::BaseModel + attr_accessor id: String + attr_accessor account_id: String attr_accessor authentication_methods: ::Array[FinchAPI::Models::Introspection::AuthenticationMethod] @@ -54,6 +57,7 @@ module FinchAPI attr_accessor username: String def initialize: ( + id: String, account_id: String, authentication_methods: ::Array[FinchAPI::Models::Introspection::AuthenticationMethod], client_id: String, diff --git a/test/finch_api/resources/account_test.rb b/test/finch_api/resources/account_test.rb index e1f8ea83..730f24f5 100644 --- a/test/finch_api/resources/account_test.rb +++ b/test/finch_api/resources/account_test.rb @@ -26,6 +26,7 @@ def test_introspect assert_pattern do response => { + id: String, account_id: String, authentication_methods: ^(FinchAPI::Internal::Type::ArrayOf[FinchAPI::Models::Introspection::AuthenticationMethod]), client_id: String, From e99ba56a5591890d9d43ad89e2ee8d9462543d7c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 12 Apr 2025 17:12:30 +0000 Subject: [PATCH 3/3] release: 0.1.0-alpha.11 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ README.md | 2 +- lib/finch_api/version.rb | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3b005e52..ee49ac2d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.10" + ".": "0.1.0-alpha.11" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 57e86f53..a71e50d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.1.0-alpha.11 (2025-04-12) + +Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.10...v0.1.0-alpha.11) + +### Features + +* **api:** api update ([acc0a3b](https://github.com/Finch-API/finch-api-ruby/commit/acc0a3b0cdb3043411a137b2a0eade329588953b)) + + +### Chores + +* **internal:** version bump ([b96fe0d](https://github.com/Finch-API/finch-api-ruby/commit/b96fe0db00aa778a0d53520bc466d857be97637b)) + ## 0.1.0-alpha.10 (2025-04-11) Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.9...v0.1.0-alpha.10) diff --git a/README.md b/README.md index ae1a19e9..5b7f96f7 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "finch-api", "~> 0.1.0.pre.alpha.10" +gem "finch-api", "~> 0.1.0.pre.alpha.11" ``` diff --git a/lib/finch_api/version.rb b/lib/finch_api/version.rb index 3af95498..861a7d62 100644 --- a/lib/finch_api/version.rb +++ b/lib/finch_api/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module FinchAPI - VERSION = "0.1.0.pre.alpha.10" + VERSION = "0.1.0.pre.alpha.11" end