Skip to content

Commit 97eec0f

Browse files
release: 0.1.0-alpha.30 (#162)
* feat(api): api update * feat(api): make client id, client secret optional again * release: 0.1.0-alpha.30 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent c0b44e5 commit 97eec0f

File tree

16 files changed

+188
-466
lines changed

16 files changed

+188
-466
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.29"
2+
".": "0.1.0-alpha.30"
33
}

.stats.yml

Lines changed: 3 additions & 3 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-bf86910e96e83e583689cf5d1a5c583268754026ec68288994fa6a969dc248f2.yml
3-
openapi_spec_hash: 195038e056891afec204c49dadce3b95
4-
config_hash: 5146b12344dae76238940989dac1e8a0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-bb50c0ae41ff5036adf72344d33057941f6de67c5fae811eba2e758bfa4ffd31.yml
3+
openapi_spec_hash: 1b21e4bfc46daeef1613e410e5aa8f28
4+
config_hash: 6d3585c0032e08d723d077d660fc8448

CHANGELOG.md

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

3+
## 0.1.0-alpha.30 (2025-09-08)
4+
5+
Full Changelog: [v0.1.0-alpha.29...v0.1.0-alpha.30](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.29...v0.1.0-alpha.30)
6+
7+
### Features
8+
9+
* **api:** api update ([a67b714](https://github.com/Finch-API/finch-api-ruby/commit/a67b7140a175c5091a52ef82b90860b39a74075f))
10+
* **api:** make client id, client secret optional again ([d1b769f](https://github.com/Finch-API/finch-api-ruby/commit/d1b769f81ce16d27fe940f647c19d6f6e4b1b2b4))
11+
312
## 0.1.0-alpha.29 (2025-08-24)
413

514
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)

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.29)
14+
finch-api (0.1.0.pre.alpha.30)
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.29"
20+
gem "finch-api", "~> 0.1.0.pre.alpha.30"
2121
```
2222

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

lib/finch_api/models/access_token_create_params.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,37 @@ class AccessTokenCreateParams < FinchAPI::Internal::Type::BaseModel
77
extend FinchAPI::Internal::Type::RequestParameters::Converter
88
include FinchAPI::Internal::Type::RequestParameters
99

10+
# @!attribute code
11+
# The authorization code received from the authorization server
12+
#
13+
# @return [String]
14+
required :code, String
15+
1016
# @!attribute client_id
1117
# The client ID for your application
1218
#
13-
# @return [String]
14-
required :client_id, String
19+
# @return [String, nil]
20+
optional :client_id, String
1521

1622
# @!attribute client_secret
1723
# The client secret for your application
1824
#
19-
# @return [String]
20-
required :client_secret, String
21-
22-
# @!attribute code
23-
# The authorization code received from the authorization server
24-
#
25-
# @return [String]
26-
required :code, String
25+
# @return [String, nil]
26+
optional :client_secret, String
2727

2828
# @!attribute redirect_uri
2929
# The redirect URI used in the authorization request (optional)
3030
#
3131
# @return [String, nil]
3232
optional :redirect_uri, String
3333

34-
# @!method initialize(client_id:, client_secret:, code:, redirect_uri: nil, request_options: {})
34+
# @!method initialize(code:, client_id: nil, client_secret: nil, redirect_uri: nil, request_options: {})
35+
# @param code [String] The authorization code received from the authorization server
36+
#
3537
# @param client_id [String] The client ID for your application
3638
#
3739
# @param client_secret [String] The client secret for your application
3840
#
39-
# @param code [String] The authorization code received from the authorization server
40-
#
4141
# @param redirect_uri [String] The redirect URI used in the authorization request (optional)
4242
#
4343
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]

lib/finch_api/models/hris/pay_statement.rb

Lines changed: 42 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -176,31 +176,19 @@ module Type
176176
# @see FinchAPI::Models::HRIS::PayStatement::Earning#attributes
177177
class Attributes < FinchAPI::Internal::Type::BaseModel
178178
# @!attribute metadata
179+
# The metadata to be attached to the entity by existing rules. It is a key-value
180+
# pairs where the values can be of any type (string, number, boolean, object,
181+
# array, etc.).
179182
#
180-
# @return [FinchAPI::Models::HRIS::PayStatement::Earning::Attributes::Metadata]
181-
required :metadata, -> { FinchAPI::HRIS::PayStatement::Earning::Attributes::Metadata }
183+
# @return [Hash{Symbol=>Object, nil}]
184+
required :metadata,
185+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
182186

183187
# @!method initialize(metadata:)
184-
# @param metadata [FinchAPI::Models::HRIS::PayStatement::Earning::Attributes::Metadata]
185-
186-
# @see FinchAPI::Models::HRIS::PayStatement::Earning::Attributes#metadata
187-
class Metadata < FinchAPI::Internal::Type::BaseModel
188-
# @!attribute metadata
189-
# The metadata to be attached to the entity by existing rules. It is a key-value
190-
# pairs where the values can be of any type (string, number, boolean, object,
191-
# array, etc.).
192-
#
193-
# @return [Hash{Symbol=>Object, nil}]
194-
required :metadata,
195-
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
196-
197-
# @!method initialize(metadata:)
198-
# Some parameter documentations has been truncated, see
199-
# {FinchAPI::Models::HRIS::PayStatement::Earning::Attributes::Metadata} for more
200-
# details.
201-
#
202-
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
203-
end
188+
# Some parameter documentations has been truncated, see
189+
# {FinchAPI::Models::HRIS::PayStatement::Earning::Attributes} for more details.
190+
#
191+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
204192
end
205193
end
206194

@@ -256,31 +244,20 @@ class EmployeeDeduction < FinchAPI::Internal::Type::BaseModel
256244
# @see FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction#attributes
257245
class Attributes < FinchAPI::Internal::Type::BaseModel
258246
# @!attribute metadata
247+
# The metadata to be attached to the entity by existing rules. It is a key-value
248+
# pairs where the values can be of any type (string, number, boolean, object,
249+
# array, etc.).
259250
#
260-
# @return [FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes::Metadata]
261-
required :metadata, -> { FinchAPI::HRIS::PayStatement::EmployeeDeduction::Attributes::Metadata }
251+
# @return [Hash{Symbol=>Object, nil}]
252+
required :metadata,
253+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
262254

263255
# @!method initialize(metadata:)
264-
# @param metadata [FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes::Metadata]
265-
266-
# @see FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes#metadata
267-
class Metadata < FinchAPI::Internal::Type::BaseModel
268-
# @!attribute metadata
269-
# The metadata to be attached to the entity by existing rules. It is a key-value
270-
# pairs where the values can be of any type (string, number, boolean, object,
271-
# array, etc.).
272-
#
273-
# @return [Hash{Symbol=>Object, nil}]
274-
required :metadata,
275-
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
276-
277-
# @!method initialize(metadata:)
278-
# Some parameter documentations has been truncated, see
279-
# {FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes::Metadata}
280-
# for more details.
281-
#
282-
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
283-
end
256+
# Some parameter documentations has been truncated, see
257+
# {FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes} for more
258+
# details.
259+
#
260+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
284261
end
285262
end
286263

@@ -332,31 +309,20 @@ class EmployerContribution < FinchAPI::Internal::Type::BaseModel
332309
# @see FinchAPI::Models::HRIS::PayStatement::EmployerContribution#attributes
333310
class Attributes < FinchAPI::Internal::Type::BaseModel
334311
# @!attribute metadata
312+
# The metadata to be attached to the entity by existing rules. It is a key-value
313+
# pairs where the values can be of any type (string, number, boolean, object,
314+
# array, etc.).
335315
#
336-
# @return [FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes::Metadata]
337-
required :metadata, -> { FinchAPI::HRIS::PayStatement::EmployerContribution::Attributes::Metadata }
316+
# @return [Hash{Symbol=>Object, nil}]
317+
required :metadata,
318+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
338319

339320
# @!method initialize(metadata:)
340-
# @param metadata [FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes::Metadata]
341-
342-
# @see FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes#metadata
343-
class Metadata < FinchAPI::Internal::Type::BaseModel
344-
# @!attribute metadata
345-
# The metadata to be attached to the entity by existing rules. It is a key-value
346-
# pairs where the values can be of any type (string, number, boolean, object,
347-
# array, etc.).
348-
#
349-
# @return [Hash{Symbol=>Object, nil}]
350-
required :metadata,
351-
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
352-
353-
# @!method initialize(metadata:)
354-
# Some parameter documentations has been truncated, see
355-
# {FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes::Metadata}
356-
# for more details.
357-
#
358-
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
359-
end
321+
# Some parameter documentations has been truncated, see
322+
# {FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes} for
323+
# more details.
324+
#
325+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
360326
end
361327
end
362328

@@ -441,31 +407,19 @@ module Type
441407
# @see FinchAPI::Models::HRIS::PayStatement::Tax#attributes
442408
class Attributes < FinchAPI::Internal::Type::BaseModel
443409
# @!attribute metadata
410+
# The metadata to be attached to the entity by existing rules. It is a key-value
411+
# pairs where the values can be of any type (string, number, boolean, object,
412+
# array, etc.).
444413
#
445-
# @return [FinchAPI::Models::HRIS::PayStatement::Tax::Attributes::Metadata]
446-
required :metadata, -> { FinchAPI::HRIS::PayStatement::Tax::Attributes::Metadata }
414+
# @return [Hash{Symbol=>Object, nil}]
415+
required :metadata,
416+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
447417

448418
# @!method initialize(metadata:)
449-
# @param metadata [FinchAPI::Models::HRIS::PayStatement::Tax::Attributes::Metadata]
450-
451-
# @see FinchAPI::Models::HRIS::PayStatement::Tax::Attributes#metadata
452-
class Metadata < FinchAPI::Internal::Type::BaseModel
453-
# @!attribute metadata
454-
# The metadata to be attached to the entity by existing rules. It is a key-value
455-
# pairs where the values can be of any type (string, number, boolean, object,
456-
# array, etc.).
457-
#
458-
# @return [Hash{Symbol=>Object, nil}]
459-
required :metadata,
460-
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
461-
462-
# @!method initialize(metadata:)
463-
# Some parameter documentations has been truncated, see
464-
# {FinchAPI::Models::HRIS::PayStatement::Tax::Attributes::Metadata} for more
465-
# details.
466-
#
467-
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
468-
end
419+
# Some parameter documentations has been truncated, see
420+
# {FinchAPI::Models::HRIS::PayStatement::Tax::Attributes} for more details.
421+
#
422+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
469423
end
470424
end
471425

lib/finch_api/resources/access_tokens.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ module Resources
55
class AccessTokens
66
# Exchange the authorization code for an access token
77
#
8-
# @overload create(client_id:, client_secret:, code:, redirect_uri: nil, request_options: {})
8+
# @overload create(code:, client_id: nil, client_secret: nil, redirect_uri: nil, request_options: {})
9+
#
10+
# @param code [String] The authorization code received from the authorization server
911
#
1012
# @param client_id [String] The client ID for your application
1113
#
1214
# @param client_secret [String] The client secret for your application
1315
#
14-
# @param code [String] The authorization code received from the authorization server
15-
#
1616
# @param redirect_uri [String] The redirect URI used in the authorization request (optional)
1717
#
1818
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]

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.29"
4+
VERSION = "0.1.0.pre.alpha.30"
55
end

rbi/finch_api/models/access_token_create_params.rbi

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,23 @@ module FinchAPI
1111
T.any(FinchAPI::AccessTokenCreateParams, FinchAPI::Internal::AnyHash)
1212
end
1313

14-
# The client ID for your application
14+
# The authorization code received from the authorization server
1515
sig { returns(String) }
16-
attr_accessor :client_id
16+
attr_accessor :code
17+
18+
# The client ID for your application
19+
sig { returns(T.nilable(String)) }
20+
attr_reader :client_id
21+
22+
sig { params(client_id: String).void }
23+
attr_writer :client_id
1724

1825
# The client secret for your application
19-
sig { returns(String) }
20-
attr_accessor :client_secret
26+
sig { returns(T.nilable(String)) }
27+
attr_reader :client_secret
2128

22-
# The authorization code received from the authorization server
23-
sig { returns(String) }
24-
attr_accessor :code
29+
sig { params(client_secret: String).void }
30+
attr_writer :client_secret
2531

2632
# The redirect URI used in the authorization request (optional)
2733
sig { returns(T.nilable(String)) }
@@ -32,20 +38,20 @@ module FinchAPI
3238

3339
sig do
3440
params(
41+
code: String,
3542
client_id: String,
3643
client_secret: String,
37-
code: String,
3844
redirect_uri: String,
3945
request_options: FinchAPI::RequestOptions::OrHash
4046
).returns(T.attached_class)
4147
end
4248
def self.new(
43-
# The client ID for your application
44-
client_id:,
45-
# The client secret for your application
46-
client_secret:,
4749
# The authorization code received from the authorization server
4850
code:,
51+
# The client ID for your application
52+
client_id: nil,
53+
# The client secret for your application
54+
client_secret: nil,
4955
# The redirect URI used in the authorization request (optional)
5056
redirect_uri: nil,
5157
request_options: {}
@@ -55,9 +61,9 @@ module FinchAPI
5561
sig do
5662
override.returns(
5763
{
64+
code: String,
5865
client_id: String,
5966
client_secret: String,
60-
code: String,
6167
redirect_uri: String,
6268
request_options: FinchAPI::RequestOptions
6369
}

0 commit comments

Comments
 (0)