Skip to content

Commit 697c5ad

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
fix(api)!: authentication method type is an enum, not a plain string (#442)
# Migration `AuthenticationMethod.type` was incorrectly defined as a string. Instead the API defines it as a string enum with values `assisted, credential, api_token, api_credential, oauth`
1 parent 1c8248c commit 697c5ad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 37
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-6c0cb9620225dbe9e7180b514e51b2cd94753565749de1603e77d065cb531be1.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-aeb62bc4875f4eb1b2ae1f75ef9521e92022e863cba2ae67f907ed27ca93d527.yml

src/finch/types/introspection.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class AuthenticationMethodConnectionStatus(BaseModel):
1818
class AuthenticationMethod(BaseModel):
1919
connection_status: Optional[AuthenticationMethodConnectionStatus] = None
2020

21-
type: Optional[str] = None
21+
type: Optional[Literal["assisted", "credential", "api_token", "api_credential", "oauth"]] = None
22+
"""The type of authentication method."""
2223

2324

2425
class Introspection(BaseModel):

0 commit comments

Comments
 (0)