Skip to content

Commit 82c2483

Browse files
feat(api): api update
1 parent 74a742a commit 82c2483

File tree

12 files changed

+100
-39
lines changed

12 files changed

+100
-39
lines changed

.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-d5c3e3934333478f55af69889eafaea9b0eeae82a1597c5dec34426e9d55efd5.yml
3-
openapi_spec_hash: 9ec42fee7f3124b3050846f74404b398
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-ded87cb73affcaff9cf779d9cfd119a4026cfc1757b39be95d933edea48a0328.yml
3+
openapi_spec_hash: 0e6394b222fc68d7607114e70b72d23e
44
config_hash: 0892e2e0eeb0343a022afa62e9080dd1

lib/finch_api/models/sandbox/connection_create_response.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ class ConnectionCreateResponse < FinchAPI::Internal::Type::BaseModel
3838
# @return [String]
3939
required :connection_id, String
4040

41+
# @!attribute entity_id
42+
# The ID of the entity for this connection
43+
#
44+
# @return [String]
45+
required :entity_id, String
46+
4147
# @!attribute products
4248
#
4349
# @return [Array<String>]
@@ -54,7 +60,7 @@ class ConnectionCreateResponse < FinchAPI::Internal::Type::BaseModel
5460
# @return [String, nil]
5561
optional :token_type, String
5662

57-
# @!method initialize(access_token:, account_id:, authentication_type:, company_id:, connection_id:, products:, provider_id:, token_type: nil)
63+
# @!method initialize(access_token:, account_id:, authentication_type:, company_id:, connection_id:, entity_id:, products:, provider_id:, token_type: nil)
5864
# @param access_token [String]
5965
#
6066
# @param account_id [String] [DEPRECATED] Use `connection_id` to associate a connection with an access token
@@ -65,6 +71,8 @@ class ConnectionCreateResponse < FinchAPI::Internal::Type::BaseModel
6571
#
6672
# @param connection_id [String] The ID of the new connection
6773
#
74+
# @param entity_id [String] The ID of the entity for this connection
75+
#
6876
# @param products [Array<String>]
6977
#
7078
# @param provider_id [String] The ID of the provider associated with the `access_token`.

lib/finch_api/models/sandbox/connections/account_create_response.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ class AccountCreateResponse < FinchAPI::Internal::Type::BaseModel
3939
# @return [String]
4040
required :connection_id, String
4141

42+
# @!attribute entity_id
43+
# The ID of the entity for this connection
44+
#
45+
# @return [String]
46+
required :entity_id, String
47+
4248
# @!attribute products
4349
#
4450
# @return [Array<String>]
@@ -50,7 +56,7 @@ class AccountCreateResponse < FinchAPI::Internal::Type::BaseModel
5056
# @return [String]
5157
required :provider_id, String
5258

53-
# @!method initialize(access_token:, account_id:, authentication_type:, company_id:, connection_id:, products:, provider_id:)
59+
# @!method initialize(access_token:, account_id:, authentication_type:, company_id:, connection_id:, entity_id:, products:, provider_id:)
5460
# @param access_token [String]
5561
#
5662
# @param account_id [String] [DEPRECATED] Use `connection_id` to associate a connection with an access token
@@ -61,6 +67,8 @@ class AccountCreateResponse < FinchAPI::Internal::Type::BaseModel
6167
#
6268
# @param connection_id [String] The ID of the new connection
6369
#
70+
# @param entity_id [String] The ID of the entity for this connection
71+
#
6472
# @param products [Array<String>]
6573
#
6674
# @param provider_id [String] The ID of the provider associated with the `access_token`

lib/finch_api/models/sandbox/connections/account_update_response.rb

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ class AccountUpdateResponse < FinchAPI::Internal::Type::BaseModel
2828
# @return [String]
2929
required :company_id, String
3030

31+
# @!attribute connection_id
32+
# The ID of the new connection
33+
#
34+
# @return [String]
35+
required :connection_id, String
36+
37+
# @!attribute entity_id
38+
# The ID of the entity whose status was updated
39+
#
40+
# @return [String]
41+
required :entity_id, String
42+
3143
# @!attribute products
3244
#
3345
# @return [Array<String>]
@@ -39,24 +51,20 @@ class AccountUpdateResponse < FinchAPI::Internal::Type::BaseModel
3951
# @return [String]
4052
required :provider_id, String
4153

42-
# @!attribute connection_id
43-
# The ID of the new connection
44-
#
45-
# @return [String, nil]
46-
optional :connection_id, String
47-
48-
# @!method initialize(account_id:, authentication_type:, company_id:, products:, provider_id:, connection_id: nil)
54+
# @!method initialize(account_id:, authentication_type:, company_id:, connection_id:, entity_id:, products:, provider_id:)
4955
# @param account_id [String] [DEPRECATED] Use `connection_id` to associate a connection with an access token
5056
#
5157
# @param authentication_type [Symbol, FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::AuthenticationType]
5258
#
5359
# @param company_id [String] [DEPRECATED] Use `connection_id` to associate a connection with an access token
5460
#
61+
# @param connection_id [String] The ID of the new connection
62+
#
63+
# @param entity_id [String] The ID of the entity whose status was updated
64+
#
5565
# @param products [Array<String>]
5666
#
5767
# @param provider_id [String] The ID of the provider associated with the `access_token`
58-
#
59-
# @param connection_id [String] The ID of the new connection
6068

6169
# @see FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse#authentication_type
6270
module AuthenticationType

rbi/finch_api/models/sandbox/connection_create_response.rbi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ module FinchAPI
3434
sig { returns(String) }
3535
attr_accessor :connection_id
3636

37+
# The ID of the entity for this connection
38+
sig { returns(String) }
39+
attr_accessor :entity_id
40+
3741
sig { returns(T::Array[String]) }
3842
attr_accessor :products
3943

@@ -55,6 +59,7 @@ module FinchAPI
5559
FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType::OrSymbol,
5660
company_id: String,
5761
connection_id: String,
62+
entity_id: String,
5863
products: T::Array[String],
5964
provider_id: String,
6065
token_type: String
@@ -69,6 +74,8 @@ module FinchAPI
6974
company_id:,
7075
# The ID of the new connection
7176
connection_id:,
77+
# The ID of the entity for this connection
78+
entity_id:,
7279
products:,
7380
# The ID of the provider associated with the `access_token`.
7481
provider_id:,
@@ -85,6 +92,7 @@ module FinchAPI
8592
FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType::TaggedSymbol,
8693
company_id: String,
8794
connection_id: String,
95+
entity_id: String,
8896
products: T::Array[String],
8997
provider_id: String,
9098
token_type: String

rbi/finch_api/models/sandbox/connections/account_create_response.rbi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ module FinchAPI
3535
sig { returns(String) }
3636
attr_accessor :connection_id
3737

38+
# The ID of the entity for this connection
39+
sig { returns(String) }
40+
attr_accessor :entity_id
41+
3842
sig { returns(T::Array[String]) }
3943
attr_accessor :products
4044

@@ -50,6 +54,7 @@ module FinchAPI
5054
FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::AuthenticationType::OrSymbol,
5155
company_id: String,
5256
connection_id: String,
57+
entity_id: String,
5358
products: T::Array[String],
5459
provider_id: String
5560
).returns(T.attached_class)
@@ -63,6 +68,8 @@ module FinchAPI
6368
company_id:,
6469
# The ID of the new connection
6570
connection_id:,
71+
# The ID of the entity for this connection
72+
entity_id:,
6673
products:,
6774
# The ID of the provider associated with the `access_token`
6875
provider_id:
@@ -78,6 +85,7 @@ module FinchAPI
7885
FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::AuthenticationType::TaggedSymbol,
7986
company_id: String,
8087
connection_id: String,
88+
entity_id: String,
8189
products: T::Array[String],
8290
provider_id: String
8391
}

rbi/finch_api/models/sandbox/connections/account_update_response.rbi

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,31 @@ module FinchAPI
2828
sig { returns(String) }
2929
attr_accessor :company_id
3030

31+
# The ID of the new connection
32+
sig { returns(String) }
33+
attr_accessor :connection_id
34+
35+
# The ID of the entity whose status was updated
36+
sig { returns(String) }
37+
attr_accessor :entity_id
38+
3139
sig { returns(T::Array[String]) }
3240
attr_accessor :products
3341

3442
# The ID of the provider associated with the `access_token`
3543
sig { returns(String) }
3644
attr_accessor :provider_id
3745

38-
# The ID of the new connection
39-
sig { returns(T.nilable(String)) }
40-
attr_reader :connection_id
41-
42-
sig { params(connection_id: String).void }
43-
attr_writer :connection_id
44-
4546
sig do
4647
params(
4748
account_id: String,
4849
authentication_type:
4950
FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::AuthenticationType::OrSymbol,
5051
company_id: String,
52+
connection_id: String,
53+
entity_id: String,
5154
products: T::Array[String],
52-
provider_id: String,
53-
connection_id: String
55+
provider_id: String
5456
).returns(T.attached_class)
5557
end
5658
def self.new(
@@ -59,11 +61,13 @@ module FinchAPI
5961
authentication_type:,
6062
# [DEPRECATED] Use `connection_id` to associate a connection with an access token
6163
company_id:,
64+
# The ID of the new connection
65+
connection_id:,
66+
# The ID of the entity whose status was updated
67+
entity_id:,
6268
products:,
6369
# The ID of the provider associated with the `access_token`
64-
provider_id:,
65-
# The ID of the new connection
66-
connection_id: nil
70+
provider_id:
6771
)
6872
end
6973

@@ -74,9 +78,10 @@ module FinchAPI
7478
authentication_type:
7579
FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::AuthenticationType::TaggedSymbol,
7680
company_id: String,
81+
connection_id: String,
82+
entity_id: String,
7783
products: T::Array[String],
78-
provider_id: String,
79-
connection_id: String
84+
provider_id: String
8085
}
8186
)
8287
end

sig/finch_api/models/sandbox/connection_create_response.rbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module FinchAPI
88
authentication_type: FinchAPI::Models::Sandbox::ConnectionCreateResponse::authentication_type,
99
company_id: String,
1010
connection_id: String,
11+
entity_id: String,
1112
products: ::Array[String],
1213
provider_id: String,
1314
token_type: String
@@ -24,6 +25,8 @@ module FinchAPI
2425

2526
attr_accessor connection_id: String
2627

28+
attr_accessor entity_id: String
29+
2730
attr_accessor products: ::Array[String]
2831

2932
attr_accessor provider_id: String
@@ -38,6 +41,7 @@ module FinchAPI
3841
authentication_type: FinchAPI::Models::Sandbox::ConnectionCreateResponse::authentication_type,
3942
company_id: String,
4043
connection_id: String,
44+
entity_id: String,
4145
products: ::Array[String],
4246
provider_id: String,
4347
?token_type: String
@@ -49,6 +53,7 @@ module FinchAPI
4953
authentication_type: FinchAPI::Models::Sandbox::ConnectionCreateResponse::authentication_type,
5054
company_id: String,
5155
connection_id: String,
56+
entity_id: String,
5257
products: ::Array[String],
5358
provider_id: String,
5459
token_type: String

sig/finch_api/models/sandbox/connections/account_create_response.rbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module FinchAPI
99
authentication_type: FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::authentication_type,
1010
company_id: String,
1111
connection_id: String,
12+
entity_id: String,
1213
products: ::Array[String],
1314
provider_id: String
1415
}
@@ -24,6 +25,8 @@ module FinchAPI
2425

2526
attr_accessor connection_id: String
2627

28+
attr_accessor entity_id: String
29+
2730
attr_accessor products: ::Array[String]
2831

2932
attr_accessor provider_id: String
@@ -34,6 +37,7 @@ module FinchAPI
3437
authentication_type: FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::authentication_type,
3538
company_id: String,
3639
connection_id: String,
40+
entity_id: String,
3741
products: ::Array[String],
3842
provider_id: String
3943
) -> void
@@ -44,6 +48,7 @@ module FinchAPI
4448
authentication_type: FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::authentication_type,
4549
company_id: String,
4650
connection_id: String,
51+
entity_id: String,
4752
products: ::Array[String],
4853
provider_id: String
4954
}

sig/finch_api/models/sandbox/connections/account_update_response.rbs

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ module FinchAPI
77
account_id: String,
88
authentication_type: FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::authentication_type,
99
company_id: String,
10+
connection_id: String,
11+
entity_id: String,
1012
products: ::Array[String],
11-
provider_id: String,
12-
connection_id: String
13+
provider_id: String
1314
}
1415

1516
class AccountUpdateResponse < FinchAPI::Internal::Type::BaseModel
@@ -19,30 +20,32 @@ module FinchAPI
1920

2021
attr_accessor company_id: String
2122

22-
attr_accessor products: ::Array[String]
23+
attr_accessor connection_id: String
2324

24-
attr_accessor provider_id: String
25+
attr_accessor entity_id: String
2526

26-
attr_reader connection_id: String?
27+
attr_accessor products: ::Array[String]
2728

28-
def connection_id=: (String) -> String
29+
attr_accessor provider_id: String
2930

3031
def initialize: (
3132
account_id: String,
3233
authentication_type: FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::authentication_type,
3334
company_id: String,
35+
connection_id: String,
36+
entity_id: String,
3437
products: ::Array[String],
35-
provider_id: String,
36-
?connection_id: String
38+
provider_id: String
3739
) -> void
3840

3941
def to_hash: -> {
4042
account_id: String,
4143
authentication_type: FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::authentication_type,
4244
company_id: String,
45+
connection_id: String,
46+
entity_id: String,
4347
products: ::Array[String],
44-
provider_id: String,
45-
connection_id: String
48+
provider_id: String
4649
}
4750

4851
type authentication_type =

0 commit comments

Comments
 (0)