From e280040979bfc139c7dec7df7f4578d0398f067c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 7 Aug 2026 21:57:05 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/finch/resources/sandbox/connections/accounts.py | 4 ++-- .../resources/sandbox/connections/connections.py | 4 ++-- src/finch/types/sandbox/connection_create_params.py | 2 +- src/finch/types/sandbox/connection_create_response.py | 11 +++-------- .../sandbox/connections/account_create_params.py | 2 +- .../sandbox/connections/account_create_response.py | 2 +- .../sandbox/connections/account_update_response.py | 2 +- .../sandbox/connections/test_accounts.py | 4 ++-- tests/api_resources/sandbox/test_connections.py | 4 ++-- 10 files changed, 17 insertions(+), 22 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8d08e99c..61dc8329 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 48 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-c64363d1edd148f74b9e6f3bf2b89348a5be16ee45110a9fd4a96e364b7b85e5.yml -openapi_spec_hash: c6f18b85810ffad38fe9e7b40a3228a4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-58339a014fbada05305ebed9864e8718fe807754d3daa59614cf59a402d72f25.yml +openapi_spec_hash: 36924e46789a614a30982dee8c45ff08 config_hash: 9ae56f40cec7304896138bfad5caf748 diff --git a/src/finch/resources/sandbox/connections/accounts.py b/src/finch/resources/sandbox/connections/accounts.py index 046beb43..e5ab24d3 100644 --- a/src/finch/resources/sandbox/connections/accounts.py +++ b/src/finch/resources/sandbox/connections/accounts.py @@ -46,7 +46,7 @@ def create( *, company_id: str, provider_id: str, - authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | Omit = omit, + authentication_type: Literal["api_token", "assisted", "credential", "oauth"] | Omit = omit, products: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -157,7 +157,7 @@ async def create( *, company_id: str, provider_id: str, - authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | Omit = omit, + authentication_type: Literal["api_token", "assisted", "credential", "oauth"] | Omit = omit, products: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. diff --git a/src/finch/resources/sandbox/connections/connections.py b/src/finch/resources/sandbox/connections/connections.py index a99c22f7..1a4a823c 100644 --- a/src/finch/resources/sandbox/connections/connections.py +++ b/src/finch/resources/sandbox/connections/connections.py @@ -55,7 +55,7 @@ def create( self, *, provider_id: str, - authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | Omit = omit, + authentication_type: Literal["api_token", "assisted", "credential", "oauth"] | Omit = omit, employee_size: int | Omit = omit, products: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -133,7 +133,7 @@ async def create( self, *, provider_id: str, - authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | Omit = omit, + authentication_type: Literal["api_token", "assisted", "credential", "oauth"] | Omit = omit, employee_size: int | Omit = omit, products: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. diff --git a/src/finch/types/sandbox/connection_create_params.py b/src/finch/types/sandbox/connection_create_params.py index 959e4ff0..0483c3af 100644 --- a/src/finch/types/sandbox/connection_create_params.py +++ b/src/finch/types/sandbox/connection_create_params.py @@ -13,7 +13,7 @@ class ConnectionCreateParams(TypedDict, total=False): provider_id: Required[str] """The provider associated with the connection""" - authentication_type: Literal["credential", "api_token", "oauth", "assisted"] + authentication_type: Literal["api_token", "assisted", "credential", "oauth"] employee_size: int """Optional: the size of the employer to be created with this connection. diff --git a/src/finch/types/sandbox/connection_create_response.py b/src/finch/types/sandbox/connection_create_response.py index 9067d15c..25f1f3fd 100644 --- a/src/finch/types/sandbox/connection_create_response.py +++ b/src/finch/types/sandbox/connection_create_response.py @@ -12,22 +12,17 @@ class ConnectionCreateResponse(BaseModel): access_token: str account_id: str - """[DEPRECATED] Use `connection_id` to associate a connection with an access token""" - authentication_type: Literal["credential", "api_token", "oauth", "assisted"] + authentication_type: Literal["api_token", "assisted", "credential", "oauth"] - company_id: str - """The Finch UUID of the company associated with the `access_token`.""" + company_id: Optional[str] = None connection_id: str - """The ID of the new connection""" entity_id: str - """The ID of the entity for this connection""" products: List[str] provider_id: str - """The ID of the provider associated with the `access_token`.""" - token_type: Optional[str] = None + token_type: str diff --git a/src/finch/types/sandbox/connections/account_create_params.py b/src/finch/types/sandbox/connections/account_create_params.py index d0536bc7..5620cd24 100644 --- a/src/finch/types/sandbox/connections/account_create_params.py +++ b/src/finch/types/sandbox/connections/account_create_params.py @@ -15,7 +15,7 @@ class AccountCreateParams(TypedDict, total=False): provider_id: Required[str] """The provider associated with the `access_token`""" - authentication_type: Literal["credential", "api_token", "oauth", "assisted"] + authentication_type: Literal["api_token", "assisted", "credential", "oauth"] products: SequenceNotStr[str] """ diff --git a/src/finch/types/sandbox/connections/account_create_response.py b/src/finch/types/sandbox/connections/account_create_response.py index 4907de92..5002a58d 100644 --- a/src/finch/types/sandbox/connections/account_create_response.py +++ b/src/finch/types/sandbox/connections/account_create_response.py @@ -14,7 +14,7 @@ class AccountCreateResponse(BaseModel): account_id: str """[DEPRECATED] Use `connection_id` to associate a connection with an access token""" - authentication_type: Literal["credential", "api_token", "oauth", "assisted"] + authentication_type: Literal["api_token", "assisted", "credential", "oauth"] company_id: str """The Finch UUID of the company associated with the `access_token`.""" diff --git a/src/finch/types/sandbox/connections/account_update_response.py b/src/finch/types/sandbox/connections/account_update_response.py index a62e370a..8487231a 100644 --- a/src/finch/types/sandbox/connections/account_update_response.py +++ b/src/finch/types/sandbox/connections/account_update_response.py @@ -12,7 +12,7 @@ class AccountUpdateResponse(BaseModel): account_id: str """[DEPRECATED] Use `connection_id` to associate a connection with an access token""" - authentication_type: Literal["credential", "api_token", "oauth", "assisted"] + authentication_type: Literal["api_token", "assisted", "credential", "oauth"] company_id: str """The Finch UUID of the company associated with the `access_token`.""" diff --git a/tests/api_resources/sandbox/connections/test_accounts.py b/tests/api_resources/sandbox/connections/test_accounts.py index c10e33a2..97c31b5e 100644 --- a/tests/api_resources/sandbox/connections/test_accounts.py +++ b/tests/api_resources/sandbox/connections/test_accounts.py @@ -35,7 +35,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None: account = client.sandbox.connections.accounts.create( company_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", provider_id="provider_id", - authentication_type="credential", + authentication_type="api_token", products=["string"], ) assert_matches_type(AccountCreateResponse, account, path=["response"]) @@ -121,7 +121,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> account = await async_client.sandbox.connections.accounts.create( company_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", provider_id="provider_id", - authentication_type="credential", + authentication_type="api_token", products=["string"], ) assert_matches_type(AccountCreateResponse, account, path=["response"]) diff --git a/tests/api_resources/sandbox/test_connections.py b/tests/api_resources/sandbox/test_connections.py index d240af9f..3b607618 100644 --- a/tests/api_resources/sandbox/test_connections.py +++ b/tests/api_resources/sandbox/test_connections.py @@ -30,7 +30,7 @@ def test_method_create(self, client: Finch) -> None: def test_method_create_with_all_params(self, client: Finch) -> None: connection = client.sandbox.connections.create( provider_id="provider_id", - authentication_type="credential", + authentication_type="api_token", employee_size=0, products=["string"], ) @@ -81,7 +81,7 @@ async def test_method_create(self, async_client: AsyncFinch) -> None: async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> None: connection = await async_client.sandbox.connections.create( provider_id="provider_id", - authentication_type="credential", + authentication_type="api_token", employee_size=0, products=["string"], ) From d7b562bed0e15e1a6e7337964b4a6c0660ee4b7a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 7 Aug 2026 21:57:33 +0000 Subject: [PATCH 2/2] release: 2.6.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/finch/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fe26beef..511dd516 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.5.1" + ".": "2.6.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 412bbab0..40349c9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 2.6.0 (2026-08-07) + +Full Changelog: [v2.5.1...v2.6.0](https://github.com/Finch-API/finch-api-python/compare/v2.5.1...v2.6.0) + +### Features + +* **api:** api update ([e280040](https://github.com/Finch-API/finch-api-python/commit/e280040979bfc139c7dec7df7f4578d0398f067c)) + ## 2.5.1 (2026-08-05) Full Changelog: [v2.5.0...v2.5.1](https://github.com/Finch-API/finch-api-python/compare/v2.5.0...v2.5.1) diff --git a/pyproject.toml b/pyproject.toml index 6052686e..4d9193d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "finch-api" -version = "2.5.1" +version = "2.6.0" description = "The official Python library for the Finch API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/finch/_version.py b/src/finch/_version.py index 44ea4571..0df4d59b 100644 --- a/src/finch/_version.py +++ b/src/finch/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "finch" -__version__ = "2.5.1" # x-release-please-version +__version__ = "2.6.0" # x-release-please-version