finch-api 0.1.0.pre.alpha.51 → 0.1.0.pre.alpha.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fedf074700f6c1952cc49e8650c2031f14a560d425219e36a7cdbcbb13bafbb
4
- data.tar.gz: f61c97c50eef3d45cbb8fb6abb3a5dc484fa2dedfab839d09809e54656adc010
3
+ metadata.gz: e0d9261f34506bfef4ca99dc81cb63d8f50725777bd384079bcea8fac1739b3c
4
+ data.tar.gz: '0109404f9138252e1ffc5454dcee408699f4e6f46efc8b52c510a8d746ddafcf'
5
5
  SHA512:
6
- metadata.gz: 530a046eac056b05c97b905355eae14c75cea1aec368411a2c2ad518051a022361ce86737aa0f76bdfc4b7c6fe8a028734766ab84203a2a474e14932b3884a40
7
- data.tar.gz: e1c769c89fee0645604936ddacd29bee7f74a8e7a1c6f0e5218ed194f2ebbfe3ccd41a85eac8eb929946433eb46c0631e1435ace9a6870828aabf630516a5214
6
+ metadata.gz: 396a988d943b86e32bc28e6b2a6b7b5cfaf10993e08a2fa0cd8c7447f910f273d201ca2bb8c3b8fcb8618f8c04c68b6a4e7b517e941c9805af98771897e682d8
7
+ data.tar.gz: ce82d17d00d395a98fa9ae2ee12c9d2e0f600091b5e3e8c59cd3d9e7590b2db1f97c23583bf90070b630e377b18f54b6b04913d6d6f0479d97d634d57de2a816
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.53 (2026-08-07)
4
+
5
+ Full Changelog: [v0.1.0-alpha.52...v0.1.0-alpha.53](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.52...v0.1.0-alpha.53)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([0ae86ca](https://github.com/Finch-API/finch-api-ruby/commit/0ae86ca2a8be5ead22bba86a13f661f409bf724e))
10
+
11
+ ## 0.1.0-alpha.52 (2026-08-05)
12
+
13
+ Full Changelog: [v0.1.0-alpha.51...v0.1.0-alpha.52](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.51...v0.1.0-alpha.52)
14
+
3
15
  ## 0.1.0-alpha.51 (2026-07-29)
4
16
 
5
17
  Full Changelog: [v0.1.0-alpha.50...v0.1.0-alpha.51](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.50...v0.1.0-alpha.51)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "finch-api", "~> 0.1.0.pre.alpha.51"
29
+ gem "finch-api", "~> 0.1.0.pre.alpha.53"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -49,10 +49,10 @@ module FinchAPI
49
49
  module AuthenticationType
50
50
  extend FinchAPI::Internal::Type::Enum
51
51
 
52
- CREDENTIAL = :credential
53
52
  API_TOKEN = :api_token
54
- OAUTH = :oauth
55
53
  ASSISTED = :assisted
54
+ CREDENTIAL = :credential
55
+ OAUTH = :oauth
56
56
 
57
57
  # @!method self.values
58
58
  # @return [Array<Symbol>]
@@ -11,9 +11,6 @@ module FinchAPI
11
11
  required :access_token, String
12
12
 
13
13
  # @!attribute account_id
14
- # @deprecated
15
- #
16
- # [DEPRECATED] Use `connection_id` to associate a connection with an access token
17
14
  #
18
15
  # @return [String]
19
16
  required :account_id, String
@@ -25,19 +22,16 @@ module FinchAPI
25
22
  enum: -> { FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType }
26
23
 
27
24
  # @!attribute company_id
28
- # The Finch UUID of the company associated with the `access_token`.
29
25
  #
30
- # @return [String]
31
- required :company_id, String
26
+ # @return [String, nil]
27
+ required :company_id, String, nil?: true
32
28
 
33
29
  # @!attribute connection_id
34
- # The ID of the new connection
35
30
  #
36
31
  # @return [String]
37
32
  required :connection_id, String
38
33
 
39
34
  # @!attribute entity_id
40
- # The ID of the entity for this connection
41
35
  #
42
36
  # @return [String]
43
37
  required :entity_id, String
@@ -48,43 +42,34 @@ module FinchAPI
48
42
  required :products, FinchAPI::Internal::Type::ArrayOf[String]
49
43
 
50
44
  # @!attribute provider_id
51
- # The ID of the provider associated with the `access_token`.
52
45
  #
53
46
  # @return [String]
54
47
  required :provider_id, String
55
48
 
56
49
  # @!attribute token_type
57
50
  #
58
- # @return [String, nil]
59
- optional :token_type, String
51
+ # @return [String]
52
+ required :token_type, String
60
53
 
61
- # @!method initialize(access_token:, account_id:, authentication_type:, company_id:, connection_id:, entity_id:, products:, provider_id:, token_type: nil)
54
+ # @!method initialize(access_token:, account_id:, authentication_type:, company_id:, connection_id:, entity_id:, products:, provider_id:, token_type:)
62
55
  # @param access_token [String]
63
- #
64
- # @param account_id [String] [DEPRECATED] Use `connection_id` to associate a connection with an access token
65
- #
56
+ # @param account_id [String]
66
57
  # @param authentication_type [Symbol, FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType]
67
- #
68
- # @param company_id [String] The Finch UUID of the company associated with the `access_token`.
69
- #
70
- # @param connection_id [String] The ID of the new connection
71
- #
72
- # @param entity_id [String] The ID of the entity for this connection
73
- #
58
+ # @param company_id [String, nil]
59
+ # @param connection_id [String]
60
+ # @param entity_id [String]
74
61
  # @param products [Array<String>]
75
- #
76
- # @param provider_id [String] The ID of the provider associated with the `access_token`.
77
- #
62
+ # @param provider_id [String]
78
63
  # @param token_type [String]
79
64
 
80
65
  # @see FinchAPI::Models::Sandbox::ConnectionCreateResponse#authentication_type
81
66
  module AuthenticationType
82
67
  extend FinchAPI::Internal::Type::Enum
83
68
 
84
- CREDENTIAL = :credential
85
69
  API_TOKEN = :api_token
86
- OAUTH = :oauth
87
70
  ASSISTED = :assisted
71
+ CREDENTIAL = :credential
72
+ OAUTH = :oauth
88
73
 
89
74
  # @!method self.values
90
75
  # @return [Array<Symbol>]
@@ -50,10 +50,10 @@ module FinchAPI
50
50
  module AuthenticationType
51
51
  extend FinchAPI::Internal::Type::Enum
52
52
 
53
- CREDENTIAL = :credential
54
53
  API_TOKEN = :api_token
55
- OAUTH = :oauth
56
54
  ASSISTED = :assisted
55
+ CREDENTIAL = :credential
56
+ OAUTH = :oauth
57
57
 
58
58
  # @!method self.values
59
59
  # @return [Array<Symbol>]
@@ -75,10 +75,10 @@ module FinchAPI
75
75
  module AuthenticationType
76
76
  extend FinchAPI::Internal::Type::Enum
77
77
 
78
- CREDENTIAL = :credential
79
78
  API_TOKEN = :api_token
80
- OAUTH = :oauth
81
79
  ASSISTED = :assisted
80
+ CREDENTIAL = :credential
81
+ OAUTH = :oauth
82
82
 
83
83
  # @!method self.values
84
84
  # @return [Array<Symbol>]
@@ -68,10 +68,10 @@ module FinchAPI
68
68
  module AuthenticationType
69
69
  extend FinchAPI::Internal::Type::Enum
70
70
 
71
- CREDENTIAL = :credential
72
71
  API_TOKEN = :api_token
73
- OAUTH = :oauth
74
72
  ASSISTED = :assisted
73
+ CREDENTIAL = :credential
74
+ OAUTH = :oauth
75
75
 
76
76
  # @!method self.values
77
77
  # @return [Array<Symbol>]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinchAPI
4
- VERSION = "0.1.0.pre.alpha.51"
4
+ VERSION = "0.1.0.pre.alpha.53"
5
5
  end
@@ -101,24 +101,24 @@ module FinchAPI
101
101
  end
102
102
  OrSymbol = T.type_alias { T.any(Symbol, String) }
103
103
 
104
- CREDENTIAL =
104
+ API_TOKEN =
105
105
  T.let(
106
- :credential,
106
+ :api_token,
107
107
  FinchAPI::Sandbox::ConnectionCreateParams::AuthenticationType::TaggedSymbol
108
108
  )
109
- API_TOKEN =
109
+ ASSISTED =
110
110
  T.let(
111
- :api_token,
111
+ :assisted,
112
112
  FinchAPI::Sandbox::ConnectionCreateParams::AuthenticationType::TaggedSymbol
113
113
  )
114
- OAUTH =
114
+ CREDENTIAL =
115
115
  T.let(
116
- :oauth,
116
+ :credential,
117
117
  FinchAPI::Sandbox::ConnectionCreateParams::AuthenticationType::TaggedSymbol
118
118
  )
119
- ASSISTED =
119
+ OAUTH =
120
120
  T.let(
121
- :assisted,
121
+ :oauth,
122
122
  FinchAPI::Sandbox::ConnectionCreateParams::AuthenticationType::TaggedSymbol
123
123
  )
124
124
 
@@ -15,7 +15,6 @@ module FinchAPI
15
15
  sig { returns(String) }
16
16
  attr_accessor :access_token
17
17
 
18
- # [DEPRECATED] Use `connection_id` to associate a connection with an access token
19
18
  sig { returns(String) }
20
19
  attr_accessor :account_id
21
20
 
@@ -26,30 +25,23 @@ module FinchAPI
26
25
  end
27
26
  attr_accessor :authentication_type
28
27
 
29
- # The Finch UUID of the company associated with the `access_token`.
30
- sig { returns(String) }
28
+ sig { returns(T.nilable(String)) }
31
29
  attr_accessor :company_id
32
30
 
33
- # The ID of the new connection
34
31
  sig { returns(String) }
35
32
  attr_accessor :connection_id
36
33
 
37
- # The ID of the entity for this connection
38
34
  sig { returns(String) }
39
35
  attr_accessor :entity_id
40
36
 
41
37
  sig { returns(T::Array[String]) }
42
38
  attr_accessor :products
43
39
 
44
- # The ID of the provider associated with the `access_token`.
45
40
  sig { returns(String) }
46
41
  attr_accessor :provider_id
47
42
 
48
- sig { returns(T.nilable(String)) }
49
- attr_reader :token_type
50
-
51
- sig { params(token_type: String).void }
52
- attr_writer :token_type
43
+ sig { returns(String) }
44
+ attr_accessor :token_type
53
45
 
54
46
  sig do
55
47
  params(
@@ -57,7 +49,7 @@ module FinchAPI
57
49
  account_id: String,
58
50
  authentication_type:
59
51
  FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType::OrSymbol,
60
- company_id: String,
52
+ company_id: T.nilable(String),
61
53
  connection_id: String,
62
54
  entity_id: String,
63
55
  products: T::Array[String],
@@ -67,19 +59,14 @@ module FinchAPI
67
59
  end
68
60
  def self.new(
69
61
  access_token:,
70
- # [DEPRECATED] Use `connection_id` to associate a connection with an access token
71
62
  account_id:,
72
63
  authentication_type:,
73
- # The Finch UUID of the company associated with the `access_token`.
74
64
  company_id:,
75
- # The ID of the new connection
76
65
  connection_id:,
77
- # The ID of the entity for this connection
78
66
  entity_id:,
79
67
  products:,
80
- # The ID of the provider associated with the `access_token`.
81
68
  provider_id:,
82
- token_type: nil
69
+ token_type:
83
70
  )
84
71
  end
85
72
 
@@ -90,7 +77,7 @@ module FinchAPI
90
77
  account_id: String,
91
78
  authentication_type:
92
79
  FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType::TaggedSymbol,
93
- company_id: String,
80
+ company_id: T.nilable(String),
94
81
  connection_id: String,
95
82
  entity_id: String,
96
83
  products: T::Array[String],
@@ -114,24 +101,24 @@ module FinchAPI
114
101
  end
115
102
  OrSymbol = T.type_alias { T.any(Symbol, String) }
116
103
 
117
- CREDENTIAL =
104
+ API_TOKEN =
118
105
  T.let(
119
- :credential,
106
+ :api_token,
120
107
  FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType::TaggedSymbol
121
108
  )
122
- API_TOKEN =
109
+ ASSISTED =
123
110
  T.let(
124
- :api_token,
111
+ :assisted,
125
112
  FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType::TaggedSymbol
126
113
  )
127
- OAUTH =
114
+ CREDENTIAL =
128
115
  T.let(
129
- :oauth,
116
+ :credential,
130
117
  FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType::TaggedSymbol
131
118
  )
132
- ASSISTED =
119
+ OAUTH =
133
120
  T.let(
134
- :assisted,
121
+ :oauth,
135
122
  FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType::TaggedSymbol
136
123
  )
137
124
 
@@ -97,24 +97,24 @@ module FinchAPI
97
97
  end
98
98
  OrSymbol = T.type_alias { T.any(Symbol, String) }
99
99
 
100
- CREDENTIAL =
100
+ API_TOKEN =
101
101
  T.let(
102
- :credential,
102
+ :api_token,
103
103
  FinchAPI::Sandbox::Connections::AccountCreateParams::AuthenticationType::TaggedSymbol
104
104
  )
105
- API_TOKEN =
105
+ ASSISTED =
106
106
  T.let(
107
- :api_token,
107
+ :assisted,
108
108
  FinchAPI::Sandbox::Connections::AccountCreateParams::AuthenticationType::TaggedSymbol
109
109
  )
110
- OAUTH =
110
+ CREDENTIAL =
111
111
  T.let(
112
- :oauth,
112
+ :credential,
113
113
  FinchAPI::Sandbox::Connections::AccountCreateParams::AuthenticationType::TaggedSymbol
114
114
  )
115
- ASSISTED =
115
+ OAUTH =
116
116
  T.let(
117
- :assisted,
117
+ :oauth,
118
118
  FinchAPI::Sandbox::Connections::AccountCreateParams::AuthenticationType::TaggedSymbol
119
119
  )
120
120
 
@@ -106,24 +106,24 @@ module FinchAPI
106
106
  end
107
107
  OrSymbol = T.type_alias { T.any(Symbol, String) }
108
108
 
109
- CREDENTIAL =
109
+ API_TOKEN =
110
110
  T.let(
111
- :credential,
111
+ :api_token,
112
112
  FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::AuthenticationType::TaggedSymbol
113
113
  )
114
- API_TOKEN =
114
+ ASSISTED =
115
115
  T.let(
116
- :api_token,
116
+ :assisted,
117
117
  FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::AuthenticationType::TaggedSymbol
118
118
  )
119
- OAUTH =
119
+ CREDENTIAL =
120
120
  T.let(
121
- :oauth,
121
+ :credential,
122
122
  FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::AuthenticationType::TaggedSymbol
123
123
  )
124
- ASSISTED =
124
+ OAUTH =
125
125
  T.let(
126
- :assisted,
126
+ :oauth,
127
127
  FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::AuthenticationType::TaggedSymbol
128
128
  )
129
129
 
@@ -100,24 +100,24 @@ module FinchAPI
100
100
  end
101
101
  OrSymbol = T.type_alias { T.any(Symbol, String) }
102
102
 
103
- CREDENTIAL =
103
+ API_TOKEN =
104
104
  T.let(
105
- :credential,
105
+ :api_token,
106
106
  FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::AuthenticationType::TaggedSymbol
107
107
  )
108
- API_TOKEN =
108
+ ASSISTED =
109
109
  T.let(
110
- :api_token,
110
+ :assisted,
111
111
  FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::AuthenticationType::TaggedSymbol
112
112
  )
113
- OAUTH =
113
+ CREDENTIAL =
114
114
  T.let(
115
- :oauth,
115
+ :credential,
116
116
  FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::AuthenticationType::TaggedSymbol
117
117
  )
118
- ASSISTED =
118
+ OAUTH =
119
119
  T.let(
120
- :assisted,
120
+ :oauth,
121
121
  FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::AuthenticationType::TaggedSymbol
122
122
  )
123
123
 
@@ -46,15 +46,15 @@ module FinchAPI
46
46
  request_options: FinchAPI::RequestOptions
47
47
  }
48
48
 
49
- type authentication_type = :credential | :api_token | :oauth | :assisted
49
+ type authentication_type = :api_token | :assisted | :credential | :oauth
50
50
 
51
51
  module AuthenticationType
52
52
  extend FinchAPI::Internal::Type::Enum
53
53
 
54
- CREDENTIAL: :credential
55
54
  API_TOKEN: :api_token
56
- OAUTH: :oauth
57
55
  ASSISTED: :assisted
56
+ CREDENTIAL: :credential
57
+ OAUTH: :oauth
58
58
 
59
59
  def self?.values: -> ::Array[FinchAPI::Models::Sandbox::ConnectionCreateParams::authentication_type]
60
60
  end
@@ -6,7 +6,7 @@ module FinchAPI
6
6
  access_token: String,
7
7
  account_id: String,
8
8
  authentication_type: FinchAPI::Models::Sandbox::ConnectionCreateResponse::authentication_type,
9
- company_id: String,
9
+ company_id: String?,
10
10
  connection_id: String,
11
11
  entity_id: String,
12
12
  products: ::Array[String],
@@ -21,7 +21,7 @@ module FinchAPI
21
21
 
22
22
  attr_accessor authentication_type: FinchAPI::Models::Sandbox::ConnectionCreateResponse::authentication_type
23
23
 
24
- attr_accessor company_id: String
24
+ attr_accessor company_id: String?
25
25
 
26
26
  attr_accessor connection_id: String
27
27
 
@@ -31,27 +31,25 @@ module FinchAPI
31
31
 
32
32
  attr_accessor provider_id: String
33
33
 
34
- attr_reader token_type: String?
35
-
36
- def token_type=: (String) -> String
34
+ attr_accessor token_type: String
37
35
 
38
36
  def initialize: (
39
37
  access_token: String,
40
38
  account_id: String,
41
39
  authentication_type: FinchAPI::Models::Sandbox::ConnectionCreateResponse::authentication_type,
42
- company_id: String,
40
+ company_id: String?,
43
41
  connection_id: String,
44
42
  entity_id: String,
45
43
  products: ::Array[String],
46
44
  provider_id: String,
47
- ?token_type: String
45
+ token_type: String
48
46
  ) -> void
49
47
 
50
48
  def to_hash: -> {
51
49
  access_token: String,
52
50
  account_id: String,
53
51
  authentication_type: FinchAPI::Models::Sandbox::ConnectionCreateResponse::authentication_type,
54
- company_id: String,
52
+ company_id: String?,
55
53
  connection_id: String,
56
54
  entity_id: String,
57
55
  products: ::Array[String],
@@ -59,15 +57,15 @@ module FinchAPI
59
57
  token_type: String
60
58
  }
61
59
 
62
- type authentication_type = :credential | :api_token | :oauth | :assisted
60
+ type authentication_type = :api_token | :assisted | :credential | :oauth
63
61
 
64
62
  module AuthenticationType
65
63
  extend FinchAPI::Internal::Type::Enum
66
64
 
67
- CREDENTIAL: :credential
68
65
  API_TOKEN: :api_token
69
- OAUTH: :oauth
70
66
  ASSISTED: :assisted
67
+ CREDENTIAL: :credential
68
+ OAUTH: :oauth
71
69
 
72
70
  def self?.values: -> ::Array[FinchAPI::Models::Sandbox::ConnectionCreateResponse::authentication_type]
73
71
  end
@@ -46,15 +46,15 @@ module FinchAPI
46
46
  }
47
47
 
48
48
  type authentication_type =
49
- :credential | :api_token | :oauth | :assisted
49
+ :api_token | :assisted | :credential | :oauth
50
50
 
51
51
  module AuthenticationType
52
52
  extend FinchAPI::Internal::Type::Enum
53
53
 
54
- CREDENTIAL: :credential
55
54
  API_TOKEN: :api_token
56
- OAUTH: :oauth
57
55
  ASSISTED: :assisted
56
+ CREDENTIAL: :credential
57
+ OAUTH: :oauth
58
58
 
59
59
  def self?.values: -> ::Array[FinchAPI::Models::Sandbox::Connections::AccountCreateParams::authentication_type]
60
60
  end
@@ -54,15 +54,15 @@ module FinchAPI
54
54
  }
55
55
 
56
56
  type authentication_type =
57
- :credential | :api_token | :oauth | :assisted
57
+ :api_token | :assisted | :credential | :oauth
58
58
 
59
59
  module AuthenticationType
60
60
  extend FinchAPI::Internal::Type::Enum
61
61
 
62
- CREDENTIAL: :credential
63
62
  API_TOKEN: :api_token
64
- OAUTH: :oauth
65
63
  ASSISTED: :assisted
64
+ CREDENTIAL: :credential
65
+ OAUTH: :oauth
66
66
 
67
67
  def self?.values: -> ::Array[FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::authentication_type]
68
68
  end
@@ -49,15 +49,15 @@ module FinchAPI
49
49
  }
50
50
 
51
51
  type authentication_type =
52
- :credential | :api_token | :oauth | :assisted
52
+ :api_token | :assisted | :credential | :oauth
53
53
 
54
54
  module AuthenticationType
55
55
  extend FinchAPI::Internal::Type::Enum
56
56
 
57
- CREDENTIAL: :credential
58
57
  API_TOKEN: :api_token
59
- OAUTH: :oauth
60
58
  ASSISTED: :assisted
59
+ CREDENTIAL: :credential
60
+ OAUTH: :oauth
61
61
 
62
62
  def self?.values: -> ::Array[FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::authentication_type]
63
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.51
4
+ version: 0.1.0.pre.alpha.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-05 00:00:00.000000000 Z
11
+ date: 2026-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi