Skip to content

Commit 9616abc

Browse files
fix(api): correct authentication methods type (#381)
1 parent f12d45a commit 9616abc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 35
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-f3cab810772df12f57fc7a4a7e27e4fa6fb4a8022fd52178b5116b4089f0544b.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-55ff507660a4f8b4a1809ca01861098c7bc72e8e6ea038fb3aa8c0a3b9a954e2.yml

src/finch/types/introspection.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
from .._models import BaseModel
77
from .shared.connection_status_type import ConnectionStatusType
88

9-
__all__ = ["Introspection", "AuthenticationMethods", "AuthenticationMethodsConnectionStatus"]
9+
__all__ = ["Introspection", "AuthenticationMethod", "AuthenticationMethodConnectionStatus"]
1010

1111

12-
class AuthenticationMethodsConnectionStatus(BaseModel):
12+
class AuthenticationMethodConnectionStatus(BaseModel):
1313
message: Optional[str] = None
1414

1515
status: Optional[ConnectionStatusType] = None
1616

1717

18-
class AuthenticationMethods(BaseModel):
19-
connection_status: Optional[AuthenticationMethodsConnectionStatus] = None
18+
class AuthenticationMethod(BaseModel):
19+
connection_status: Optional[AuthenticationMethodConnectionStatus] = None
2020

2121
type: Optional[str] = None
2222

@@ -25,7 +25,7 @@ class Introspection(BaseModel):
2525
account_id: str
2626
"""The Finch uuid of the account used to connect this company."""
2727

28-
authentication_methods: AuthenticationMethods
28+
authentication_methods: List[AuthenticationMethod]
2929

3030
client_id: str
3131
"""The client id of the application associated with the `access_token`."""

0 commit comments

Comments
 (0)