Skip to content

fix(api): correct authentication methods type #381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 35
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-f3cab810772df12f57fc7a4a7e27e4fa6fb4a8022fd52178b5116b4089f0544b.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-55ff507660a4f8b4a1809ca01861098c7bc72e8e6ea038fb3aa8c0a3b9a954e2.yml
10 changes: 5 additions & 5 deletions src/finch/types/introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
from .._models import BaseModel
from .shared.connection_status_type import ConnectionStatusType

__all__ = ["Introspection", "AuthenticationMethods", "AuthenticationMethodsConnectionStatus"]
__all__ = ["Introspection", "AuthenticationMethod", "AuthenticationMethodConnectionStatus"]


class AuthenticationMethodsConnectionStatus(BaseModel):
class AuthenticationMethodConnectionStatus(BaseModel):
message: Optional[str] = None

status: Optional[ConnectionStatusType] = None


class AuthenticationMethods(BaseModel):
connection_status: Optional[AuthenticationMethodsConnectionStatus] = None
class AuthenticationMethod(BaseModel):
connection_status: Optional[AuthenticationMethodConnectionStatus] = None

type: Optional[str] = None

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

authentication_methods: AuthenticationMethods
authentication_methods: List[AuthenticationMethod]

client_id: str
"""The client id of the application associated with the `access_token`."""
Expand Down