Skip to content

Commit 85c0e90

Browse files
fix(api): fix authentication_type enum (#276)
1 parent 7c8a13b commit 85c0e90

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

src/finch/resources/sandbox/connections/accounts.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def create(
4141
*,
4242
company_id: str,
4343
provider_id: str,
44-
authentication_type: Literal["credentials", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN,
44+
authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN,
4545
products: List[str] | NotGiven = NOT_GIVEN,
4646
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
4747
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -131,7 +131,7 @@ async def create(
131131
*,
132132
company_id: str,
133133
provider_id: str,
134-
authentication_type: Literal["credentials", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN,
134+
authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN,
135135
products: List[str] | NotGiven = NOT_GIVEN,
136136
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
137137
# The extra values given here take precedence over values defined on the client or passed to this method.

src/finch/resources/sandbox/connections/connections.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def create(
4646
self,
4747
*,
4848
provider_id: str,
49-
authentication_type: Literal["credentials", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN,
49+
authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN,
5050
employer_size: int | NotGiven = NOT_GIVEN,
5151
products: List[str] | NotGiven = NOT_GIVEN,
5252
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -106,7 +106,7 @@ async def create(
106106
self,
107107
*,
108108
provider_id: str,
109-
authentication_type: Literal["credentials", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN,
109+
authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN,
110110
employer_size: int | NotGiven = NOT_GIVEN,
111111
products: List[str] | NotGiven = NOT_GIVEN,
112112
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/finch/types/sandbox/connection_create_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class ConnectionCreateParams(TypedDict, total=False):
1212
provider_id: Required[str]
1313

14-
authentication_type: Literal["credentials", "api_token", "oauth", "assisted"]
14+
authentication_type: Literal["credential", "api_token", "oauth", "assisted"]
1515

1616
employer_size: int
1717
"""Optional: the size of the employer to be created with this connection.

src/finch/types/sandbox/connection_create_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ConnectionCreateResponse(BaseModel):
1313

1414
account_id: str
1515

16-
authentication_type: Literal["credentials", "api_token", "oauth", "assisted"]
16+
authentication_type: Literal["credential", "api_token", "oauth", "assisted"]
1717

1818
company_id: str
1919

src/finch/types/sandbox/connections/account_create_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AccountCreateParams(TypedDict, total=False):
1313

1414
provider_id: Required[str]
1515

16-
authentication_type: Literal["credentials", "api_token", "oauth", "assisted"]
16+
authentication_type: Literal["credential", "api_token", "oauth", "assisted"]
1717

1818
products: List[str]
1919
"""

src/finch/types/sandbox/connections/account_create_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AccountCreateResponse(BaseModel):
1313

1414
account_id: str
1515

16-
authentication_type: Literal["credentials", "api_token", "oauth", "assisted"]
16+
authentication_type: Literal["credential", "api_token", "oauth", "assisted"]
1717

1818
company_id: str
1919

src/finch/types/sandbox/connections/account_update_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class AccountUpdateResponse(BaseModel):
1212
account_id: str
1313

14-
authentication_type: Literal["credentials", "api_token", "oauth", "assisted"]
14+
authentication_type: Literal["credential", "api_token", "oauth", "assisted"]
1515

1616
company_id: str
1717

tests/api_resources/sandbox/connections/test_accounts.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
3535
account = client.sandbox.connections.accounts.create(
3636
company_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
3737
provider_id="string",
38-
authentication_type="credentials",
38+
authentication_type="credential",
3939
products=["string", "string", "string"],
4040
)
4141
assert_matches_type(AccountCreateResponse, account, path=["response"])
@@ -119,7 +119,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
119119
account = await async_client.sandbox.connections.accounts.create(
120120
company_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
121121
provider_id="string",
122-
authentication_type="credentials",
122+
authentication_type="credential",
123123
products=["string", "string", "string"],
124124
)
125125
assert_matches_type(AccountCreateResponse, account, path=["response"])

tests/api_resources/sandbox/test_connections.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_method_create(self, client: Finch) -> None:
3030
def test_method_create_with_all_params(self, client: Finch) -> None:
3131
connection = client.sandbox.connections.create(
3232
provider_id="string",
33-
authentication_type="credentials",
33+
authentication_type="credential",
3434
employer_size=0,
3535
products=["string", "string", "string"],
3636
)
@@ -79,7 +79,7 @@ async def test_method_create(self, async_client: AsyncFinch) -> None:
7979
async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> None:
8080
connection = await async_client.sandbox.connections.create(
8181
provider_id="string",
82-
authentication_type="credentials",
82+
authentication_type="credential",
8383
employer_size=0,
8484
products=["string", "string", "string"],
8585
)

0 commit comments

Comments
 (0)