-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathintrospection.py
112 lines (79 loc) · 3.3 KB
/
introspection.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
from datetime import datetime
from typing_extensions import Literal
from .._models import BaseModel
from .shared.connection_status_type import ConnectionStatusType
__all__ = ["Introspection", "AuthenticationMethod", "AuthenticationMethodConnectionStatus", "ConnectionStatus"]
class AuthenticationMethodConnectionStatus(BaseModel):
message: Optional[str] = None
status: Optional[ConnectionStatusType] = None
class AuthenticationMethod(BaseModel):
connection_status: Optional[AuthenticationMethodConnectionStatus] = None
products: Optional[List[str]] = None
"""An array of the authorized products associated with the `access_token`."""
type: Optional[Literal["assisted", "credential", "api_token", "api_credential", "oauth"]] = None
"""The type of authentication method."""
class ConnectionStatus(BaseModel):
last_successful_sync: Optional[datetime] = None
"""The datetime when the connection was last successfully synced."""
message: Optional[str] = None
status: Optional[ConnectionStatusType] = None
class Introspection(BaseModel):
id: str
"""The Finch UUID of the token being introspected."""
account_id: str
"""
[DEPRECATED] Use `connection_id` to associate tokens with a Finch connection
instead of this account ID.
"""
authentication_methods: List[AuthenticationMethod]
client_id: str
"""The client ID of the application associated with the `access_token`."""
client_type: Literal["production", "development", "sandbox"]
"""The type of application associated with a token."""
company_id: str
"""
[DEPRECATED] Use `connection_id` to associate tokens with a Finch connection
instead of this company ID.
"""
connection_id: str
"""The Finch UUID of the connection associated with the `access_token`."""
connection_status: ConnectionStatus
connection_type: Literal["provider", "finch"]
"""The type of the connection associated with the token.
- `provider` - connection to an external provider
- `finch` - finch-generated data.
"""
customer_email: Optional[str] = None
"""
The email of your customer you provided to Finch when a connect session was
created for this connection.
"""
customer_id: Optional[str] = None
"""
The ID of your customer you provided to Finch when a connect session was created
for this connection.
"""
customer_name: Optional[str] = None
"""
The name of your customer you provided to Finch when a connect session was
created for this connection.
"""
manual: bool
"""
Whether the connection associated with the `access_token` uses the Assisted
Connect Flow. (`true` if using Assisted Connect, `false` if connection is
automated)
"""
payroll_provider_id: str
"""
[DEPRECATED] Use `provider_id` to identify the provider instead of this payroll
provider ID.
"""
products: List[str]
"""An array of the authorized products associated with the `access_token`."""
provider_id: str
"""The ID of the provider associated with the `access_token`."""
username: str
"""The account username used for login associated with the `access_token`."""