Skip to content

Commit 661e86b

Browse files
release: 1.27.0 (#660)
* chore(ci): upload sdks to package manager * chore(ci): fix installation instructions * feat(api): api update * feat(api): api update * feat(api): api update * release: 1.27.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 971a278 commit 661e86b

File tree

9 files changed

+72
-7
lines changed

9 files changed

+72
-7
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,30 @@ jobs:
3030
- name: Run lints
3131
run: ./scripts/lint
3232

33+
upload:
34+
if: github.repository == 'stainless-sdks/finch-python'
35+
timeout-minutes: 10
36+
name: upload
37+
permissions:
38+
contents: read
39+
id-token: write
40+
runs-on: depot-ubuntu-24.04
41+
steps:
42+
- uses: actions/checkout@v4
43+
44+
- name: Get GitHub OIDC Token
45+
id: github-oidc
46+
uses: actions/github-script@v6
47+
with:
48+
script: core.setOutput('github_token', await core.getIDToken());
49+
50+
- name: Upload tarball
51+
env:
52+
URL: https://pkg.stainless.com/s
53+
AUTH: ${{ steps.github-oidc.outputs.github_token }}
54+
SHA: ${{ github.sha }}
55+
run: ./scripts/utils/upload-artifact.sh
56+
3357
test:
3458
timeout-minutes: 10
3559
name: test

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.26.1"
2+
".": "1.27.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
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-f09e5f2c555d7ee764478b7bc73e92cd21f403d6ec189be14574c8367bc131ce.yml
3-
openapi_spec_hash: bd0a8e001f14132c105992d40149909a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-5b00a0bc705b1d5bfcb5ea79c7af544766d51ec12ccc4721825664ab397789d8.yml
3+
openapi_spec_hash: 34891659cff31395ba7683a8153b1db5
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 1.27.0 (2025-05-16)
4+
5+
Full Changelog: [v1.26.1...v1.27.0](https://github.com/Finch-API/finch-api-python/compare/v1.26.1...v1.27.0)
6+
7+
### Features
8+
9+
* **api:** api update ([abc60a2](https://github.com/Finch-API/finch-api-python/commit/abc60a28fc9fe40464299491ae8209259f8bca78))
10+
* **api:** api update ([fd20b60](https://github.com/Finch-API/finch-api-python/commit/fd20b60e775673b78edeb40771d8af7f7a55bb08))
11+
* **api:** api update ([0af1c84](https://github.com/Finch-API/finch-api-python/commit/0af1c8443ffd922047b0f4f892f712668c9f54c9))
12+
13+
14+
### Chores
15+
16+
* **ci:** fix installation instructions ([ac6a9d8](https://github.com/Finch-API/finch-api-python/commit/ac6a9d8edf95f3343dd38f09693fc7ff22cebd91))
17+
* **ci:** upload sdks to package manager ([c867997](https://github.com/Finch-API/finch-api-python/commit/c86799760455e97fca934c83e2eef0986d7f8e89))
18+
319
## 1.26.1 (2025-05-09)
420

521
Full Changelog: [v1.26.0...v1.26.1](https://github.com/Finch-API/finch-api-python/compare/v1.26.0...v1.26.1)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "finch-api"
3-
version = "1.26.1"
3+
version = "1.27.0"
44
description = "The official Python library for the Finch API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

scripts/utils/upload-artifact.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
set -exuo pipefail
3+
4+
RESPONSE=$(curl -X POST "$URL" \
5+
-H "Authorization: Bearer $AUTH" \
6+
-H "Content-Type: application/json")
7+
8+
SIGNED_URL=$(echo "$RESPONSE" | jq -r '.url')
9+
10+
if [[ "$SIGNED_URL" == "null" ]]; then
11+
echo -e "\033[31mFailed to get signed URL.\033[0m"
12+
exit 1
13+
fi
14+
15+
UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \
16+
-H "Content-Type: application/gzip" \
17+
--data-binary @- "$SIGNED_URL" 2>&1)
18+
19+
if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
20+
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
21+
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/finch-python/$SHA'\033[0m"
22+
else
23+
echo -e "\033[31mFailed to upload artifact.\033[0m"
24+
exit 1
25+
fi

src/finch/_version.py

Lines changed: 1 addition & 1 deletion
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.26.1" # x-release-please-version
4+
__version__ = "1.27.0" # x-release-please-version

src/finch/types/hris/pay_statement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class PayStatement(BaseModel):
185185

186186
net_pay: Optional[Money] = None
187187

188-
payment_method: Optional[Literal["check", "direct_deposit"]] = None
188+
payment_method: Optional[Literal["check", "direct_deposit", "other"]] = None
189189
"""The payment method."""
190190

191191
taxes: Optional[List[Optional[Tax]]] = None

src/finch/types/sandbox/payment_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class PayStatement(TypedDict, total=False):
195195

196196
net_pay: Optional[MoneyParam]
197197

198-
payment_method: Optional[Literal["check", "direct_deposit"]]
198+
payment_method: Optional[Literal["check", "direct_deposit", "other"]]
199199
"""The payment method."""
200200

201201
taxes: Optional[Iterable[Optional[PayStatementTax]]]

0 commit comments

Comments
 (0)