6
6
from .._models import BaseModel
7
7
from .shared .connection_status_type import ConnectionStatusType
8
8
9
- __all__ = ["Introspection" , "AuthenticationMethod" , "AuthenticationMethodConnectionStatus" ]
9
+ __all__ = ["Introspection" , "AuthenticationMethod" , "AuthenticationMethodConnectionStatus" , "ConnectionStatus" ]
10
10
11
11
12
12
class AuthenticationMethodConnectionStatus (BaseModel ):
@@ -18,24 +18,44 @@ class AuthenticationMethodConnectionStatus(BaseModel):
18
18
class AuthenticationMethod (BaseModel ):
19
19
connection_status : Optional [AuthenticationMethodConnectionStatus ] = None
20
20
21
+ products : Optional [List [str ]] = None
22
+ """An array of the authorized products associated with the `access_token`."""
23
+
21
24
type : Optional [Literal ["assisted" , "credential" , "api_token" , "api_credential" , "oauth" ]] = None
22
25
"""The type of authentication method."""
23
26
24
27
28
+ class ConnectionStatus (BaseModel ):
29
+ message : Optional [str ] = None
30
+
31
+ status : Optional [ConnectionStatusType ] = None
32
+
33
+
25
34
class Introspection (BaseModel ):
26
35
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
+ """
28
40
29
41
authentication_methods : List [AuthenticationMethod ]
30
42
31
43
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`."""
33
45
34
46
client_type : Literal ["production" , "development" , "sandbox" ]
35
47
"""The type of application associated with a token."""
36
48
37
49
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
39
59
40
60
connection_type : Literal ["provider" , "finch" ]
41
61
"""The type of the connection associated with the token.
@@ -52,10 +72,16 @@ class Introspection(BaseModel):
52
72
"""
53
73
54
74
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
+ """
56
79
57
80
products : List [str ]
58
81
"""An array of the authorized products associated with the `access_token`."""
59
82
83
+ provider_id : str
84
+ """The ID of the provider associated with the `access_token`."""
85
+
60
86
username : str
61
87
"""The account username used for login associated with the `access_token`."""
0 commit comments