Skip to content

Commit c0b44e5

Browse files
release: 0.1.0-alpha.29 (#161)
* feat(api): api update * chore: add json schema comment for rubocop.yml * release: 0.1.0-alpha.29 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 7807743 commit c0b44e5

File tree

11 files changed

+127
-8
lines changed

11 files changed

+127
-8
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.28"
2+
".": "0.1.0-alpha.29"
33
}

.rubocop.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://www.rubyschema.org/rubocop.json
12
---
23
# Explicitly disable pending cops for now. This is the default behaviour but
34
# this avoids a large warning every time we run it.
@@ -8,7 +9,7 @@ AllCops:
89
- "bin/*"
910
NewCops: enable
1011
SuggestExtensions: false
11-
TargetRubyVersion: 3.2.0
12+
TargetRubyVersion: 3.2
1213

1314
# Whether MFA is required or not should be left to the token configuration.
1415
Gemspec/RequireMFA:

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-6d0c6a1feba5ccb895a6779cd98c2a0ae87d6394f5e98a9da51f17258c4eb297.yml
3-
openapi_spec_hash: ac3be0c8a992103e5f467fe1bcb20a81
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-bf86910e96e83e583689cf5d1a5c583268754026ec68288994fa6a969dc248f2.yml
3+
openapi_spec_hash: 195038e056891afec204c49dadce3b95
44
config_hash: 5146b12344dae76238940989dac1e8a0

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 0.1.0-alpha.29 (2025-08-24)
4+
5+
Full Changelog: [v0.1.0-alpha.28...v0.1.0-alpha.29](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.28...v0.1.0-alpha.29)
6+
7+
### Features
8+
9+
* **api:** api update ([a8f432a](https://github.com/Finch-API/finch-api-ruby/commit/a8f432a47e2e5ffbb1be53637b672383301d1baf))
10+
11+
12+
### Chores
13+
14+
* add json schema comment for rubocop.yml ([9c458ab](https://github.com/Finch-API/finch-api-ruby/commit/9c458abf8ac902197c09eb4be5612d48d8d0723e))
15+
316
## 0.1.0-alpha.28 (2025-08-20)
417

518
Full Changelog: [v0.1.0-alpha.27...v0.1.0-alpha.28](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.27...v0.1.0-alpha.28)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
finch-api (0.1.0.pre.alpha.28)
14+
finch-api (0.1.0.pre.alpha.29)
1515
connection_pool
1616

1717
GEM

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
1717
<!-- x-release-please-start-version -->
1818

1919
```ruby
20-
gem "finch-api", "~> 0.1.0.pre.alpha.28"
20+
gem "finch-api", "~> 0.1.0.pre.alpha.29"
2121
```
2222

2323
<!-- x-release-please-end -->

lib/finch_api/models/introspection.rb

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,18 @@ class Introspection < FinchAPI::Internal::Type::BaseModel
9999
# @return [String, nil]
100100
optional :customer_name, String, nil?: true
101101

102+
# @!attribute entity_ids
103+
# Array of entity IDs associated with this connection.
104+
#
105+
# @return [Array<String>, nil]
106+
optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
107+
108+
# @!attribute entity_mode
109+
# Indicates whether this connection manages a single entity or multiple entities.
110+
#
111+
# @return [Symbol, FinchAPI::Models::Introspection::EntityMode, nil]
112+
optional :entity_mode, enum: -> { FinchAPI::Introspection::EntityMode }
113+
102114
# @!attribute manual
103115
# Whether the connection associated with the `access_token` uses the Assisted
104116
# Connect Flow. (`true` if using Assisted Connect, `false` if connection is
@@ -122,7 +134,7 @@ class Introspection < FinchAPI::Internal::Type::BaseModel
122134
# @return [String, nil]
123135
optional :username, String, nil?: true
124136

125-
# @!method initialize(id:, client_id:, client_type:, connection_id:, connection_status:, connection_type:, products:, provider_id:, account_id: nil, authentication_methods: nil, company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, manual: nil, payroll_provider_id: nil, username: nil)
137+
# @!method initialize(id:, client_id:, client_type:, connection_id:, connection_status:, connection_type:, products:, provider_id:, account_id: nil, authentication_methods: nil, company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, entity_ids: nil, entity_mode: nil, manual: nil, payroll_provider_id: nil, username: nil)
126138
# Some parameter documentations has been truncated, see
127139
# {FinchAPI::Models::Introspection} for more details.
128140
#
@@ -154,6 +166,10 @@ class Introspection < FinchAPI::Internal::Type::BaseModel
154166
#
155167
# @param customer_name [String, nil] The name of your customer you provided to Finch when a connect session was creat
156168
#
169+
# @param entity_ids [Array<String>] Array of entity IDs associated with this connection.
170+
#
171+
# @param entity_mode [Symbol, FinchAPI::Models::Introspection::EntityMode] Indicates whether this connection manages a single entity or multiple entities.
172+
#
157173
# @param manual [Boolean] Whether the connection associated with the `access_token` uses the Assisted Conn
158174
#
159175
# @param payroll_provider_id [String] [DEPRECATED] Use `provider_id` to identify the provider instead of this payroll
@@ -317,6 +333,19 @@ module LastSuccessfulSync
317333
end
318334
end
319335
end
336+
337+
# Indicates whether this connection manages a single entity or multiple entities.
338+
#
339+
# @see FinchAPI::Models::Introspection#entity_mode
340+
module EntityMode
341+
extend FinchAPI::Internal::Type::Enum
342+
343+
SINGLE = :single
344+
MULTI = :multi
345+
346+
# @!method self.values
347+
# @return [Array<Symbol>]
348+
end
320349
end
321350
end
322351
end

lib/finch_api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module FinchAPI
4-
VERSION = "0.1.0.pre.alpha.28"
4+
VERSION = "0.1.0.pre.alpha.29"
55
end

rbi/finch_api/models/introspection.rbi

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,24 @@ module FinchAPI
9595
sig { returns(T.nilable(String)) }
9696
attr_accessor :customer_name
9797

98+
# Array of entity IDs associated with this connection.
99+
sig { returns(T.nilable(T::Array[String])) }
100+
attr_reader :entity_ids
101+
102+
sig { params(entity_ids: T::Array[String]).void }
103+
attr_writer :entity_ids
104+
105+
# Indicates whether this connection manages a single entity or multiple entities.
106+
sig do
107+
returns(T.nilable(FinchAPI::Introspection::EntityMode::TaggedSymbol))
108+
end
109+
attr_reader :entity_mode
110+
111+
sig do
112+
params(entity_mode: FinchAPI::Introspection::EntityMode::OrSymbol).void
113+
end
114+
attr_writer :entity_mode
115+
98116
# Whether the connection associated with the `access_token` uses the Assisted
99117
# Connect Flow. (`true` if using Assisted Connect, `false` if connection is
100118
# automated)
@@ -133,6 +151,8 @@ module FinchAPI
133151
customer_email: T.nilable(String),
134152
customer_id: T.nilable(String),
135153
customer_name: T.nilable(String),
154+
entity_ids: T::Array[String],
155+
entity_mode: FinchAPI::Introspection::EntityMode::OrSymbol,
136156
manual: T::Boolean,
137157
payroll_provider_id: String,
138158
username: T.nilable(String)
@@ -173,6 +193,10 @@ module FinchAPI
173193
# The name of your customer you provided to Finch when a connect session was
174194
# created for this connection
175195
customer_name: nil,
196+
# Array of entity IDs associated with this connection.
197+
entity_ids: nil,
198+
# Indicates whether this connection manages a single entity or multiple entities.
199+
entity_mode: nil,
176200
# Whether the connection associated with the `access_token` uses the Assisted
177201
# Connect Flow. (`true` if using Assisted Connect, `false` if connection is
178202
# automated)
@@ -204,6 +228,8 @@ module FinchAPI
204228
customer_email: T.nilable(String),
205229
customer_id: T.nilable(String),
206230
customer_name: T.nilable(String),
231+
entity_ids: T::Array[String],
232+
entity_mode: FinchAPI::Introspection::EntityMode::TaggedSymbol,
207233
manual: T::Boolean,
208234
payroll_provider_id: String,
209235
username: T.nilable(String)
@@ -544,6 +570,27 @@ module FinchAPI
544570
end
545571
end
546572
end
573+
574+
# Indicates whether this connection manages a single entity or multiple entities.
575+
module EntityMode
576+
extend FinchAPI::Internal::Type::Enum
577+
578+
TaggedSymbol =
579+
T.type_alias { T.all(Symbol, FinchAPI::Introspection::EntityMode) }
580+
OrSymbol = T.type_alias { T.any(Symbol, String) }
581+
582+
SINGLE =
583+
T.let(:single, FinchAPI::Introspection::EntityMode::TaggedSymbol)
584+
MULTI = T.let(:multi, FinchAPI::Introspection::EntityMode::TaggedSymbol)
585+
586+
sig do
587+
override.returns(
588+
T::Array[FinchAPI::Introspection::EntityMode::TaggedSymbol]
589+
)
590+
end
591+
def self.values
592+
end
593+
end
547594
end
548595
end
549596
end

sig/finch_api/models/introspection.rbs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ module FinchAPI
1616
customer_email: String?,
1717
customer_id: String?,
1818
customer_name: String?,
19+
entity_ids: ::Array[String],
20+
entity_mode: FinchAPI::Models::Introspection::entity_mode,
1921
manual: bool,
2022
payroll_provider_id: String,
2123
username: String?
@@ -58,6 +60,16 @@ module FinchAPI
5860

5961
attr_accessor customer_name: String?
6062

63+
attr_reader entity_ids: ::Array[String]?
64+
65+
def entity_ids=: (::Array[String]) -> ::Array[String]
66+
67+
attr_reader entity_mode: FinchAPI::Models::Introspection::entity_mode?
68+
69+
def entity_mode=: (
70+
FinchAPI::Models::Introspection::entity_mode
71+
) -> FinchAPI::Models::Introspection::entity_mode
72+
6173
attr_reader manual: bool?
6274

6375
def manual=: (bool) -> bool
@@ -83,6 +95,8 @@ module FinchAPI
8395
?customer_email: String?,
8496
?customer_id: String?,
8597
?customer_name: String?,
98+
?entity_ids: ::Array[String],
99+
?entity_mode: FinchAPI::Models::Introspection::entity_mode,
86100
?manual: bool,
87101
?payroll_provider_id: String,
88102
?username: String?
@@ -103,6 +117,8 @@ module FinchAPI
103117
customer_email: String?,
104118
customer_id: String?,
105119
customer_name: String?,
120+
entity_ids: ::Array[String],
121+
entity_mode: FinchAPI::Models::Introspection::entity_mode,
106122
manual: bool,
107123
payroll_provider_id: String,
108124
username: String?
@@ -252,6 +268,17 @@ module FinchAPI
252268
end
253269
end
254270
end
271+
272+
type entity_mode = :single | :multi
273+
274+
module EntityMode
275+
extend FinchAPI::Internal::Type::Enum
276+
277+
SINGLE: :single
278+
MULTI: :multi
279+
280+
def self?.values: -> ::Array[FinchAPI::Models::Introspection::entity_mode]
281+
end
255282
end
256283
end
257284
end

0 commit comments

Comments
 (0)