Skip to content
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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.5.1"
".": "2.6.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/finch/_version.py
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions src/finch/resources/sandbox/connections/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/finch/resources/sandbox/connections/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/finch/types/sandbox/connection_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
11 changes: 3 additions & 8 deletions src/finch/types/sandbox/connection_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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]
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`."""
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/sandbox/connections/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down Expand Up @@ -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"])
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/sandbox/test_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)
Expand Down Expand Up @@ -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"],
)
Expand Down