Skip to content

Commit 526c62f

Browse files
release: 1.22.0 (#652)
* feat(api): api update * chore(internal): update pyright settings * chore(client): minor internal fixes * release: 1.22.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent a183c96 commit 526c62f

7 files changed

+33
-6
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.21.1"
2+
".": "1.22.0"
33
}

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-bf858f37d7ab420841ddc6329dad8c46377308b6a5c8e935908011d0f9845e22.yml
3-
openapi_spec_hash: 2523952a32436e3c7fd3b55508c2e7ee
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-ff61a38530dfae03860bceb49379e84bfc7434eeb5d2f1dc9677cb162014faf1.yml
3+
openapi_spec_hash: df3bdaf4acf575bb07767cae7ca24d69
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 1.22.0 (2025-04-14)
4+
5+
Full Changelog: [v1.21.1...v1.22.0](https://github.com/Finch-API/finch-api-python/compare/v1.21.1...v1.22.0)
6+
7+
### Features
8+
9+
* **api:** api update ([5315bac](https://github.com/Finch-API/finch-api-python/commit/5315bacbbdfd7c52b2aa58f2f48537f234e5e1bd))
10+
11+
12+
### Chores
13+
14+
* **client:** minor internal fixes ([92fff7e](https://github.com/Finch-API/finch-api-python/commit/92fff7e2050e32f8d008bc543542f54e680e4713))
15+
* **internal:** update pyright settings ([249e51a](https://github.com/Finch-API/finch-api-python/commit/249e51ae23b625f6ac3c7b6b901f6d82a830ca81))
16+
317
## 1.21.1 (2025-04-11)
418

519
Full Changelog: [v1.21.0...v1.21.1](https://github.com/Finch-API/finch-api-python/compare/v1.21.0...v1.21.1)

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "finch-api"
3-
version = "1.21.1"
3+
version = "1.22.0"
44
description = "The official Python library for the Finch API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
@@ -147,6 +147,7 @@ exclude = [
147147
]
148148

149149
reportImplicitOverride = true
150+
reportOverlappingOverload = false
150151

151152
reportImportCycles = false
152153
reportPrivateUsage = false

src/finch/_base_client.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,8 @@ def _build_headers(self, options: FinalRequestOptions, *, retries_taken: int = 0
410410

411411
idempotency_header = self._idempotency_header
412412
if idempotency_header and options.method.lower() != "get" and idempotency_header not in headers:
413-
headers[idempotency_header] = options.idempotency_key or self._idempotency_key()
413+
options.idempotency_key = options.idempotency_key or self._idempotency_key()
414+
headers[idempotency_header] = options.idempotency_key
414415

415416
# Don't set these headers if they were already set or removed by the caller. We check
416417
# `custom_headers`, which can contain `Omit()`, instead of `headers` to account for the removal case.
@@ -944,6 +945,10 @@ def _request(
944945
request = self._build_request(options, retries_taken=retries_taken)
945946
self._prepare_request(request)
946947

948+
if options.idempotency_key:
949+
# ensure the idempotency key is reused between requests
950+
input_options.idempotency_key = options.idempotency_key
951+
947952
kwargs: HttpxSendArgs = {}
948953
if self.custom_auth is not None:
949954
kwargs["auth"] = self.custom_auth
@@ -1490,6 +1495,10 @@ async def _request(
14901495
request = self._build_request(options, retries_taken=retries_taken)
14911496
await self._prepare_request(request)
14921497

1498+
if options.idempotency_key:
1499+
# ensure the idempotency key is reused between requests
1500+
input_options.idempotency_key = options.idempotency_key
1501+
14931502
kwargs: HttpxSendArgs = {}
14941503
if self.custom_auth is not None:
14951504
kwargs["auth"] = self.custom_auth

src/finch/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "finch"
4-
__version__ = "1.21.1" # x-release-please-version
4+
__version__ = "1.22.0" # x-release-please-version

src/finch/types/introspection.py

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class ConnectionStatus(BaseModel):
3636

3737

3838
class Introspection(BaseModel):
39+
id: str
40+
"""The Finch UUID of the token being introspected."""
41+
3942
account_id: str
4043
"""
4144
[DEPRECATED] Use `connection_id` to associate tokens with a Finch connection

0 commit comments

Comments
 (0)