66from .._models import BaseModel
77from .shared .connection_status_type import ConnectionStatusType
88
9- __all__ = ["Introspection" , "AuthenticationMethod" , "AuthenticationMethodConnectionStatus" ]
9+ __all__ = ["Introspection" , "AuthenticationMethod" , "AuthenticationMethodConnectionStatus" , "ConnectionStatus" ]
1010
1111
1212class AuthenticationMethodConnectionStatus (BaseModel ):
@@ -18,24 +18,44 @@ class AuthenticationMethodConnectionStatus(BaseModel):
1818class AuthenticationMethod (BaseModel ):
1919 connection_status : Optional [AuthenticationMethodConnectionStatus ] = None
2020
21+ products : Optional [List [str ]] = None
22+ """An array of the authorized products associated with the `access_token`."""
23+
2124 type : Optional [Literal ["assisted" , "credential" , "api_token" , "api_credential" , "oauth" ]] = None
2225 """The type of authentication method."""
2326
2427
28+ class ConnectionStatus (BaseModel ):
29+ message : Optional [str ] = None
30+
31+ status : Optional [ConnectionStatusType ] = None
32+
33+
2534class Introspection (BaseModel ):
2635 account_id : str
27- """The Finch uuid of the account used to connect this company."""
36+ """
37+ [DEPRECATED] Use `connection_id` to associate tokens with a Finch connection
38+ instead of this account ID.
39+ """
2840
2941 authentication_methods : List [AuthenticationMethod ]
3042
3143 client_id : str
32- """The client id of the application associated with the `access_token`."""
44+ """The client ID of the application associated with the `access_token`."""
3345
3446 client_type : Literal ["production" , "development" , "sandbox" ]
3547 """The type of application associated with a token."""
3648
3749 company_id : str
38- """The Finch uuid of the company associated with the `access_token`."""
50+ """
51+ [DEPRECATED] Use `connection_id` to associate tokens with a Finch connection
52+ instead of this company ID.
53+ """
54+
55+ connection_id : str
56+ """The Finch UUID of the connection associated with the `access_token`."""
57+
58+ connection_status : ConnectionStatus
3959
4060 connection_type : Literal ["provider" , "finch" ]
4161 """The type of the connection associated with the token.
@@ -52,10 +72,16 @@ class Introspection(BaseModel):
5272 """
5373
5474 payroll_provider_id : str
55- """The payroll provider associated with the `access_token`."""
75+ """
76+ [DEPRECATED] Use `provider_id` to identify the provider instead of this payroll
77+ provider ID.
78+ """
5679
5780 products : List [str ]
5881 """An array of the authorized products associated with the `access_token`."""
5982
83+ provider_id : str
84+ """The ID of the provider associated with the `access_token`."""
85+
6086 username : str
6187 """The account username used for login associated with the `access_token`."""
0 commit comments