diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7deae338..cce9d1c6 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.6.0" + ".": "1.7.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 416903c1..860efd9c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 39 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-ea62ee98f625bf64ae053b9d966dfd8a62d7dca686f86e3825b117c53e10ad16.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-6a3981b3fb38fe3ebae980af27e09f31d22db3659699afdd61f336594209ce42.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 0096da83..419e5205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.7.0 (2024-10-03) + +Full Changelog: [v1.6.0...v1.7.0](https://github.com/Finch-API/finch-api-python/compare/v1.6.0...v1.7.0) + +### Features + +* **api:** api update ([#508](https://github.com/Finch-API/finch-api-python/issues/508)) ([9f99841](https://github.com/Finch-API/finch-api-python/commit/9f99841fe0afefaf51c535b145cebdb013d7e6be)) + ## 1.6.0 (2024-09-25) Full Changelog: [v1.5.0...v1.6.0](https://github.com/Finch-API/finch-api-python/compare/v1.5.0...v1.6.0) diff --git a/pyproject.toml b/pyproject.toml index 983834bd..e8d61188 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "finch-api" -version = "1.6.0" +version = "1.7.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 b1a448b2..47b1a5aa 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__ = "1.6.0" # x-release-please-version +__version__ = "1.7.0" # x-release-please-version diff --git a/src/finch/resources/connect/sessions.py b/src/finch/resources/connect/sessions.py index 7ff62b0e..1a4f3893 100644 --- a/src/finch/resources/connect/sessions.py +++ b/src/finch/resources/connect/sessions.py @@ -69,7 +69,7 @@ def new( Create a new connect session for an employer Args: - minutes_to_expire: The number of minutes until the session expires (defaults to 10,080, which is 7 + minutes_to_expire: The number of minutes until the session expires (defaults to 20,160, which is 14 days) extra_headers: Send extra headers @@ -129,7 +129,7 @@ def reauthenticate( Args: connection_id: The ID of the existing connection to reauthenticate - minutes_to_expire: The number of minutes until the session expires (defaults to 10,080, which is 7 + minutes_to_expire: The number of minutes until the session expires (defaults to 20,160, which is 14 days) products: The products to request access to (optional for reauthentication) @@ -207,7 +207,7 @@ async def new( Create a new connect session for an employer Args: - minutes_to_expire: The number of minutes until the session expires (defaults to 10,080, which is 7 + minutes_to_expire: The number of minutes until the session expires (defaults to 20,160, which is 14 days) extra_headers: Send extra headers @@ -267,7 +267,7 @@ async def reauthenticate( Args: connection_id: The ID of the existing connection to reauthenticate - minutes_to_expire: The number of minutes until the session expires (defaults to 10,080, which is 7 + minutes_to_expire: The number of minutes until the session expires (defaults to 20,160, which is 14 days) products: The products to request access to (optional for reauthentication) diff --git a/src/finch/types/connect/session_new_params.py b/src/finch/types/connect/session_new_params.py index 4de7c7e6..f9dfef35 100644 --- a/src/finch/types/connect/session_new_params.py +++ b/src/finch/types/connect/session_new_params.py @@ -25,7 +25,7 @@ class SessionNewParams(TypedDict, total=False): minutes_to_expire: Optional[float] """ - The number of minutes until the session expires (defaults to 10,080, which is 7 + The number of minutes until the session expires (defaults to 20,160, which is 14 days) """ diff --git a/src/finch/types/connect/session_reauthenticate_params.py b/src/finch/types/connect/session_reauthenticate_params.py index bb6cfca6..2738eb7a 100644 --- a/src/finch/types/connect/session_reauthenticate_params.py +++ b/src/finch/types/connect/session_reauthenticate_params.py @@ -14,7 +14,7 @@ class SessionReauthenticateParams(TypedDict, total=False): minutes_to_expire: Optional[int] """ - The number of minutes until the session expires (defaults to 10,080, which is 7 + The number of minutes until the session expires (defaults to 20,160, which is 14 days) """ diff --git a/src/finch/types/create_access_token_response.py b/src/finch/types/create_access_token_response.py index 221ea4e8..2a1b685a 100644 --- a/src/finch/types/create_access_token_response.py +++ b/src/finch/types/create_access_token_response.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List +from typing import List, Optional from typing_extensions import Literal from .._models import BaseModel @@ -42,3 +42,9 @@ class CreateAccessTokenResponse(BaseModel): provider_id: str """The ID of the provider associated with the `access_token`.""" + + customer_id: Optional[str] = None + """ + The ID of your customer you provided to Finch when a connect session was created + for this connection. + """ diff --git a/src/finch/types/introspection.py b/src/finch/types/introspection.py index c5f7f860..d2356265 100644 --- a/src/finch/types/introspection.py +++ b/src/finch/types/introspection.py @@ -64,6 +64,24 @@ class Introspection(BaseModel): - `finch` - finch-generated data. """ + customer_email: Optional[str] = None + """ + The email of your customer you provided to Finch when a connect session was + created for this connection. + """ + + customer_id: Optional[str] = None + """ + The ID of your customer you provided to Finch when a connect session was created + for this connection. + """ + + customer_name: Optional[str] = None + """ + The name of your customer you provided to Finch when a connect session was + created for this connection. + """ + manual: bool """ Whether the connection associated with the `access_token` uses the Assisted