Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.10"
".": "0.1.0-alpha.11"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "finch-api", "~> 0.1.0.pre.alpha.10"
gem "finch-api", "~> 0.1.0.pre.alpha.11"
```

<!-- x-release-please-end -->
Expand Down
8 changes: 8 additions & 0 deletions lib/finch_api/models/introspection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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<FinchAPI::Models::Introspection::AuthenticationMethod>]
# # @param client_id [String]
Expand All @@ -129,6 +136,7 @@ class Introspection < FinchAPI::Internal::Type::BaseModel
# # @param username [String]
# #
# def initialize(
# id:,
# account_id:,
# authentication_methods:,
# client_id:,
Expand Down
2 changes: 1 addition & 1 deletion lib/finch_api/version.rb
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions rbi/lib/finch_api/models/introspection.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down Expand Up @@ -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,
Expand All @@ -106,6 +111,7 @@ module FinchAPI
.returns(T.attached_class)
end
def self.new(
id:,
account_id:,
authentication_methods:,
client_id:,
Expand All @@ -127,6 +133,7 @@ module FinchAPI
override
.returns(
{
id: String,
account_id: String,
authentication_methods: T::Array[FinchAPI::Models::Introspection::AuthenticationMethod],
client_id: String,
Expand Down
4 changes: 4 additions & 0 deletions sig/finch_api/models/introspection.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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]
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions test/finch_api/resources/account_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading