From ed4e9191ba201f5f19afd33f5f1a76bdd80c90e6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 9 Nov 2025 18:22:41 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../types/hris/benefits/individual_benefit.py | 62 ++++++++++++++++--- .../request_forwarding_forward_response.py | 2 +- 3 files changed, 55 insertions(+), 13 deletions(-) diff --git a/.stats.yml b/.stats.yml index 51e32ae9..8d224370 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 46 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-6190639c909b62f2e182a32dc56a80a87ca470e8970efd6ce8d3d7bd659d237c.yml -openapi_spec_hash: c4078fa61a4ab0b480a2c7b40e495104 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-970ab04a97244c68824c0c52e06925cba14fb7dbfc36c03167c1afe74cd1b150.yml +openapi_spec_hash: 315e7859c3f77311261fb824b74a8247 config_hash: f2846563903bf75ab0858872154df0f7 diff --git a/src/finch/types/hris/benefits/individual_benefit.py b/src/finch/types/hris/benefits/individual_benefit.py index c230f16f..14278f19 100644 --- a/src/finch/types/hris/benefits/individual_benefit.py +++ b/src/finch/types/hris/benefits/individual_benefit.py @@ -23,18 +23,32 @@ class BodyUnionMember0CompanyContributionUnionMember0(BaseModel): amount: int - """Contribution amount in cents.""" + """ + Contribution amount in cents (for type=fixed) or basis points (for type=percent, + where 100 = 1%). Not used for type=tiered. + """ type: Literal["fixed"] - """Fixed contribution type.""" + """Contribution type. + + Supported values: "fixed" (amount in cents), "percent" (amount in basis points), + or "tiered" (multi-tier matching). + """ class BodyUnionMember0CompanyContributionUnionMember1(BaseModel): amount: int - """Contribution amount in basis points (1/100th of a percent).""" + """ + Contribution amount in cents (for type=fixed) or basis points (for type=percent, + where 100 = 1%). Not used for type=tiered. + """ type: Literal["percent"] - """Percentage contribution type.""" + """Contribution type. + + Supported values: "fixed" (amount in cents), "percent" (amount in basis points), + or "tiered" (multi-tier matching). + """ class BodyUnionMember0CompanyContributionUnionMember2Tier(BaseModel): @@ -47,11 +61,15 @@ class BodyUnionMember0CompanyContributionUnionMember2(BaseModel): tiers: List[BodyUnionMember0CompanyContributionUnionMember2Tier] """ Array of tier objects defining employer match tiers based on employee - contribution thresholds. + contribution thresholds. Required when type=tiered. """ type: Literal["tiered"] - """Tiered contribution type (only valid for company_contribution).""" + """Contribution type. + + Supported values: "fixed" (amount in cents), "percent" (amount in basis points), + or "tiered" (multi-tier matching). + """ BodyUnionMember0CompanyContribution: TypeAlias = Union[ @@ -64,18 +82,32 @@ class BodyUnionMember0CompanyContributionUnionMember2(BaseModel): class BodyUnionMember0EmployeeDeductionUnionMember0(BaseModel): amount: int - """Contribution amount in cents.""" + """ + Contribution amount in cents (for type=fixed) or basis points (for type=percent, + where 100 = 1%). + """ type: Literal["fixed"] - """Fixed contribution type.""" + """Contribution type. + + Supported values: "fixed" (amount in cents) or "percent" (amount in basis + points). + """ class BodyUnionMember0EmployeeDeductionUnionMember1(BaseModel): amount: int - """Contribution amount in basis points (1/100th of a percent).""" + """ + Contribution amount in cents (for type=fixed) or basis points (for type=percent, + where 100 = 1%). + """ type: Literal["percent"] - """Percentage contribution type.""" + """Contribution type. + + Supported values: "fixed" (amount in cents) or "percent" (amount in basis + points). + """ BodyUnionMember0EmployeeDeduction: TypeAlias = Union[ @@ -96,8 +128,18 @@ class BodyUnionMember0(BaseModel): """ company_contribution: Optional[BodyUnionMember0CompanyContribution] = None + """Company contribution configuration. + + Supports fixed amounts (in cents), percentage-based contributions (in basis + points where 100 = 1%), or tiered matching structures. + """ employee_deduction: Optional[BodyUnionMember0EmployeeDeduction] = None + """Employee deduction configuration. + + Supports both fixed amounts (in cents) and percentage-based contributions (in + basis points where 100 = 1%). + """ hsa_contribution_limit: Optional[Literal["individual", "family"]] = None """Type for HSA contribution limit if the benefit is a HSA.""" diff --git a/src/finch/types/request_forwarding_forward_response.py b/src/finch/types/request_forwarding_forward_response.py index c9777e09..14871f26 100644 --- a/src/finch/types/request_forwarding_forward_response.py +++ b/src/finch/types/request_forwarding_forward_response.py @@ -22,7 +22,7 @@ class Request(BaseModel): data: Union[str, Dict[str, Optional[object]], None] = None """The body that was specified for the forwarded request.""" - headers: Optional[Dict[str, Optional[object]]] = None + headers: Optional[Dict[str, str]] = None """The HTTP headers that were specified for the forwarded request.""" params: Optional[Dict[str, Optional[object]]] = None From 76a0ccdd07da70ebb8ee20c7bfc5218a896dd045 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 9 Nov 2025 18:22:59 +0000 Subject: [PATCH 2/2] release: 1.41.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 0c37ae42..4bce58a1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.40.0" + ".": "1.41.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 6745d453..8a549d9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.41.0 (2025-11-09) + +Full Changelog: [v1.40.0...v1.41.0](https://github.com/Finch-API/finch-api-python/compare/v1.40.0...v1.41.0) + +### Features + +* **api:** api update ([ed4e919](https://github.com/Finch-API/finch-api-python/commit/ed4e9191ba201f5f19afd33f5f1a76bdd80c90e6)) + ## 1.40.0 (2025-11-04) Full Changelog: [v1.39.0...v1.40.0](https://github.com/Finch-API/finch-api-python/compare/v1.39.0...v1.40.0) diff --git a/pyproject.toml b/pyproject.toml index d1c07255..a95127ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "finch-api" -version = "1.40.0" +version = "1.41.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 ac892492..1ed7af9a 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.40.0" # x-release-please-version +__version__ = "1.41.0" # x-release-please-version