Skip to content

Commit cd5a119

Browse files
release: 1.33.0 (#669)
* chore: update @stainless-api/prism-cli to v5.15.0 * chore(internal): update comment in script * feat(api): api update * feat(api): api update * release: 1.33.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 2087cd6 commit cd5a119

21 files changed

+189
-45
lines changed

.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.32.0"
2+
".": "1.33.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-73c284d36c1ed2d9963fc733e421005fad76e559de8efe9baa6511a43dd72668.yml
3-
openapi_spec_hash: 1e58c4445919b71c77e5c7f16bd6fa7d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-e8b684dbd61d1724b5e516a573a952bb6906d63840e27ebda7731a2f71061aff.yml
3+
openapi_spec_hash: 8baff9577d4e721d0494ff315da267ca
44
config_hash: 5146b12344dae76238940989dac1e8a0

CHANGELOG.md

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

3+
## 1.33.0 (2025-08-12)
4+
5+
Full Changelog: [v1.32.0...v1.33.0](https://github.com/Finch-API/finch-api-python/compare/v1.32.0...v1.33.0)
6+
7+
### Features
8+
9+
* **api:** api update ([030c07d](https://github.com/Finch-API/finch-api-python/commit/030c07d05d08d04d4732134e285c51f74ce06d5a))
10+
* **api:** api update ([00792da](https://github.com/Finch-API/finch-api-python/commit/00792da673687c39f2f15a522b00cd54508a956c))
11+
12+
13+
### Chores
14+
15+
* **internal:** update comment in script ([9efeb7a](https://github.com/Finch-API/finch-api-python/commit/9efeb7a90337849c2cf09fc40884f8943d31714c))
16+
* update @stainless-api/prism-cli to v5.15.0 ([0a5c874](https://github.com/Finch-API/finch-api-python/commit/0a5c874efeed941fa4fca1f5237ffee632b00ba0))
17+
318
## 1.32.0 (2025-08-05)
419

520
Full Changelog: [v1.31.0...v1.32.0](https://github.com/Finch-API/finch-api-python/compare/v1.31.0...v1.32.0)

api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ from finch.types.jobs import AutomatedAsyncJob, AutomatedCreateResponse, Automat
281281
Methods:
282282

283283
- <code title="post /jobs/automated">client.jobs.automated.<a href="./src/finch/resources/jobs/automated.py">create</a>(\*\*<a href="src/finch/types/jobs/automated_create_params.py">params</a>) -> <a href="./src/finch/types/jobs/automated_create_response.py">AutomatedCreateResponse</a></code>
284-
- <code title="get /jobs/automated/{job_id}">client.jobs.automated.<a href="./src/finch/resources/jobs/automated.py">retrieve</a>(job_id) -> <a href="./src/finch/types/jobs/automated_async_job.py">AutomatedAsyncJob</a></code>
284+
- <code title="get /jobs/automated/{job_id}">client.jobs.automated.<a href="./src/finch/resources/jobs/automated.py">retrieve</a>(job_id, \*\*<a href="src/finch/types/jobs/automated_retrieve_params.py">params</a>) -> <a href="./src/finch/types/jobs/automated_async_job.py">AutomatedAsyncJob</a></code>
285285
- <code title="get /jobs/automated">client.jobs.automated.<a href="./src/finch/resources/jobs/automated.py">list</a>(\*\*<a href="src/finch/types/jobs/automated_list_params.py">params</a>) -> <a href="./src/finch/types/jobs/automated_list_response.py">AutomatedListResponse</a></code>
286286

287287
## Manual
@@ -294,7 +294,7 @@ from finch.types.jobs import ManualAsyncJob
294294

295295
Methods:
296296

297-
- <code title="get /jobs/manual/{job_id}">client.jobs.manual.<a href="./src/finch/resources/jobs/manual.py">retrieve</a>(job_id) -> <a href="./src/finch/types/jobs/manual_async_job.py">ManualAsyncJob</a></code>
297+
- <code title="get /jobs/manual/{job_id}">client.jobs.manual.<a href="./src/finch/resources/jobs/manual.py">retrieve</a>(job_id, \*\*<a href="src/finch/types/jobs/manual_retrieve_params.py">params</a>) -> <a href="./src/finch/types/jobs/manual_async_job.py">ManualAsyncJob</a></code>
298298

299299
# Sandbox
300300

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.32.0"
3+
version = "1.33.0"
44
description = "The official Python library for the Finch API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

scripts/mock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"
2121

2222
# Run prism mock on the given spec
2323
if [ "$1" == "--daemon" ]; then
24-
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log &
24+
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &
2525

2626
# Wait for server to come online
2727
echo -n "Waiting for server"
@@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then
3737

3838
echo
3939
else
40-
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL"
40+
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL"
4141
fi

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ elif ! prism_is_running ; then
4343
echo -e "To run the server, pass in the path or url of your OpenAPI"
4444
echo -e "spec to the prism command:"
4545
echo
46-
echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}"
46+
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
4747
echo
4848

4949
exit 1

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.32.0" # x-release-please-version
4+
__version__ = "1.33.0" # x-release-please-version

src/finch/resources/jobs/automated.py

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from ..._compat import cached_property
1313
from ..._resource import SyncAPIResource, AsyncAPIResource
1414
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
15-
from ...types.jobs import automated_list_params, automated_create_params
15+
from ...types.jobs import automated_list_params, automated_create_params, automated_retrieve_params
1616
from ..._base_client import make_request_options
1717
from ...types.jobs.automated_async_job import AutomatedAsyncJob
1818
from ...types.jobs.automated_list_response import AutomatedListResponse
@@ -156,6 +156,7 @@ def retrieve(
156156
self,
157157
job_id: str,
158158
*,
159+
entity_id: str | NotGiven = NOT_GIVEN,
159160
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
160161
# The extra values given here take precedence over values defined on the client or passed to this method.
161162
extra_headers: Headers | None = None,
@@ -167,6 +168,10 @@ def retrieve(
167168
Get an automated job by `job_id`.
168169
169170
Args:
171+
entity_id: The entity ID to use when authenticating with a multi-account token. Required
172+
when using a multi-account token to specify which entity's data to access.
173+
Example: `123e4567-e89b-12d3-a456-426614174000`
174+
170175
extra_headers: Send extra headers
171176
172177
extra_query: Add additional query parameters to the request
@@ -180,14 +185,19 @@ def retrieve(
180185
return self._get(
181186
f"/jobs/automated/{job_id}",
182187
options=make_request_options(
183-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
188+
extra_headers=extra_headers,
189+
extra_query=extra_query,
190+
extra_body=extra_body,
191+
timeout=timeout,
192+
query=maybe_transform({"entity_id": entity_id}, automated_retrieve_params.AutomatedRetrieveParams),
184193
),
185194
cast_to=AutomatedAsyncJob,
186195
)
187196

188197
def list(
189198
self,
190199
*,
200+
entity_id: str | NotGiven = NOT_GIVEN,
191201
limit: int | NotGiven = NOT_GIVEN,
192202
offset: int | NotGiven = NOT_GIVEN,
193203
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -204,6 +214,10 @@ def list(
204214
as data syncs, only the next scheduled job is shown.
205215
206216
Args:
217+
entity_id: The entity ID to use when authenticating with a multi-account token. Required
218+
when using a multi-account token to specify which entity's data to access.
219+
Example: `123e4567-e89b-12d3-a456-426614174000`
220+
207221
limit: Number of items to return
208222
209223
offset: Index to start from (defaults to 0)
@@ -225,6 +239,7 @@ def list(
225239
timeout=timeout,
226240
query=maybe_transform(
227241
{
242+
"entity_id": entity_id,
228243
"limit": limit,
229244
"offset": offset,
230245
},
@@ -370,6 +385,7 @@ async def retrieve(
370385
self,
371386
job_id: str,
372387
*,
388+
entity_id: str | NotGiven = NOT_GIVEN,
373389
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
374390
# The extra values given here take precedence over values defined on the client or passed to this method.
375391
extra_headers: Headers | None = None,
@@ -381,6 +397,10 @@ async def retrieve(
381397
Get an automated job by `job_id`.
382398
383399
Args:
400+
entity_id: The entity ID to use when authenticating with a multi-account token. Required
401+
when using a multi-account token to specify which entity's data to access.
402+
Example: `123e4567-e89b-12d3-a456-426614174000`
403+
384404
extra_headers: Send extra headers
385405
386406
extra_query: Add additional query parameters to the request
@@ -394,14 +414,21 @@ async def retrieve(
394414
return await self._get(
395415
f"/jobs/automated/{job_id}",
396416
options=make_request_options(
397-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
417+
extra_headers=extra_headers,
418+
extra_query=extra_query,
419+
extra_body=extra_body,
420+
timeout=timeout,
421+
query=await async_maybe_transform(
422+
{"entity_id": entity_id}, automated_retrieve_params.AutomatedRetrieveParams
423+
),
398424
),
399425
cast_to=AutomatedAsyncJob,
400426
)
401427

402428
async def list(
403429
self,
404430
*,
431+
entity_id: str | NotGiven = NOT_GIVEN,
405432
limit: int | NotGiven = NOT_GIVEN,
406433
offset: int | NotGiven = NOT_GIVEN,
407434
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -418,6 +445,10 @@ async def list(
418445
as data syncs, only the next scheduled job is shown.
419446
420447
Args:
448+
entity_id: The entity ID to use when authenticating with a multi-account token. Required
449+
when using a multi-account token to specify which entity's data to access.
450+
Example: `123e4567-e89b-12d3-a456-426614174000`
451+
421452
limit: Number of items to return
422453
423454
offset: Index to start from (defaults to 0)
@@ -439,6 +470,7 @@ async def list(
439470
timeout=timeout,
440471
query=await async_maybe_transform(
441472
{
473+
"entity_id": entity_id,
442474
"limit": limit,
443475
"offset": offset,
444476
},

src/finch/resources/jobs/manual.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66

77
from ... import _legacy_response
88
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
9+
from ..._utils import maybe_transform, async_maybe_transform
910
from ..._compat import cached_property
1011
from ..._resource import SyncAPIResource, AsyncAPIResource
1112
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
13+
from ...types.jobs import manual_retrieve_params
1214
from ..._base_client import make_request_options
1315
from ...types.jobs.manual_async_job import ManualAsyncJob
1416

@@ -39,6 +41,7 @@ def retrieve(
3941
self,
4042
job_id: str,
4143
*,
44+
entity_id: str | NotGiven = NOT_GIVEN,
4245
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
4346
# The extra values given here take precedence over values defined on the client or passed to this method.
4447
extra_headers: Headers | None = None,
@@ -52,6 +55,10 @@ def retrieve(
5255
Assisted Benefits jobs.
5356
5457
Args:
58+
entity_id: The entity ID to use when authenticating with a multi-account token. Required
59+
when using a multi-account token to specify which entity's data to access.
60+
Example: `123e4567-e89b-12d3-a456-426614174000`
61+
5562
extra_headers: Send extra headers
5663
5764
extra_query: Add additional query parameters to the request
@@ -65,7 +72,11 @@ def retrieve(
6572
return self._get(
6673
f"/jobs/manual/{job_id}",
6774
options=make_request_options(
68-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
75+
extra_headers=extra_headers,
76+
extra_query=extra_query,
77+
extra_body=extra_body,
78+
timeout=timeout,
79+
query=maybe_transform({"entity_id": entity_id}, manual_retrieve_params.ManualRetrieveParams),
6980
),
7081
cast_to=ManualAsyncJob,
7182
)
@@ -95,6 +106,7 @@ async def retrieve(
95106
self,
96107
job_id: str,
97108
*,
109+
entity_id: str | NotGiven = NOT_GIVEN,
98110
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
99111
# The extra values given here take precedence over values defined on the client or passed to this method.
100112
extra_headers: Headers | None = None,
@@ -108,6 +120,10 @@ async def retrieve(
108120
Assisted Benefits jobs.
109121
110122
Args:
123+
entity_id: The entity ID to use when authenticating with a multi-account token. Required
124+
when using a multi-account token to specify which entity's data to access.
125+
Example: `123e4567-e89b-12d3-a456-426614174000`
126+
111127
extra_headers: Send extra headers
112128
113129
extra_query: Add additional query parameters to the request
@@ -121,7 +137,13 @@ async def retrieve(
121137
return await self._get(
122138
f"/jobs/manual/{job_id}",
123139
options=make_request_options(
124-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
140+
extra_headers=extra_headers,
141+
extra_query=extra_query,
142+
extra_body=extra_body,
143+
timeout=timeout,
144+
query=await async_maybe_transform(
145+
{"entity_id": entity_id}, manual_retrieve_params.ManualRetrieveParams
146+
),
125147
),
126148
cast_to=ManualAsyncJob,
127149
)

0 commit comments

Comments
 (0)