Skip to content

Commit 8d08d1b

Browse files
feat(api): api update
1 parent 647e7c6 commit 8d08d1b

File tree

11 files changed

+26
-161
lines changed

11 files changed

+26
-161
lines changed

.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-ef0b0fb4ec85648855da514cbc53018cb429fb37bce8570bc6c44254eb32c62f.yml
3-
openapi_spec_hash: 38622a4a3cdef04686053018329616f2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-df44cda9b18320f8a8117d5c8dfa02ebd6739fc77fc87eb284748c987a7412a4.yml
3+
openapi_spec_hash: 69524ddfedf3c4492e77826561f7c7d8
44
config_hash: 6d3585c0032e08d723d077d660fc8448

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_retrieve_params.py">params</a>) -> <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_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_retrieve_params.py">params</a>) -> <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_async_job.py">ManualAsyncJob</a></code>
298298

299299
# Sandbox
300300

src/finch/resources/jobs/automated.py

Lines changed: 3 additions & 35 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, automated_retrieve_params
15+
from ...types.jobs import automated_list_params, automated_create_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,7 +156,6 @@ def retrieve(
156156
self,
157157
job_id: str,
158158
*,
159-
entity_id: str | Omit = omit,
160159
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
161160
# The extra values given here take precedence over values defined on the client or passed to this method.
162161
extra_headers: Headers | None = None,
@@ -168,10 +167,6 @@ def retrieve(
168167
Get an automated job by `job_id`.
169168
170169
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-
175170
extra_headers: Send extra headers
176171
177172
extra_query: Add additional query parameters to the request
@@ -185,19 +180,14 @@ def retrieve(
185180
return self._get(
186181
f"/jobs/automated/{job_id}",
187182
options=make_request_options(
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),
183+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
193184
),
194185
cast_to=AutomatedAsyncJob,
195186
)
196187

197188
def list(
198189
self,
199190
*,
200-
entity_id: str | Omit = omit,
201191
limit: int | Omit = omit,
202192
offset: int | Omit = omit,
203193
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -214,10 +204,6 @@ def list(
214204
as data syncs, only the next scheduled job is shown.
215205
216206
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-
221207
limit: Number of items to return
222208
223209
offset: Index to start from (defaults to 0)
@@ -239,7 +225,6 @@ def list(
239225
timeout=timeout,
240226
query=maybe_transform(
241227
{
242-
"entity_id": entity_id,
243228
"limit": limit,
244229
"offset": offset,
245230
},
@@ -385,7 +370,6 @@ async def retrieve(
385370
self,
386371
job_id: str,
387372
*,
388-
entity_id: str | Omit = omit,
389373
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
390374
# The extra values given here take precedence over values defined on the client or passed to this method.
391375
extra_headers: Headers | None = None,
@@ -397,10 +381,6 @@ async def retrieve(
397381
Get an automated job by `job_id`.
398382
399383
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-
404384
extra_headers: Send extra headers
405385
406386
extra_query: Add additional query parameters to the request
@@ -414,21 +394,14 @@ async def retrieve(
414394
return await self._get(
415395
f"/jobs/automated/{job_id}",
416396
options=make_request_options(
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-
),
397+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
424398
),
425399
cast_to=AutomatedAsyncJob,
426400
)
427401

428402
async def list(
429403
self,
430404
*,
431-
entity_id: str | Omit = omit,
432405
limit: int | Omit = omit,
433406
offset: int | Omit = omit,
434407
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -445,10 +418,6 @@ async def list(
445418
as data syncs, only the next scheduled job is shown.
446419
447420
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-
452421
limit: Number of items to return
453422
454423
offset: Index to start from (defaults to 0)
@@ -470,7 +439,6 @@ async def list(
470439
timeout=timeout,
471440
query=await async_maybe_transform(
472441
{
473-
"entity_id": entity_id,
474442
"limit": limit,
475443
"offset": offset,
476444
},

src/finch/resources/jobs/manual.py

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
import httpx
66

77
from ... import _legacy_response
8-
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
9-
from ..._utils import maybe_transform, async_maybe_transform
8+
from ..._types import Body, Query, Headers, NotGiven, not_given
109
from ..._compat import cached_property
1110
from ..._resource import SyncAPIResource, AsyncAPIResource
1211
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
13-
from ...types.jobs import manual_retrieve_params
1412
from ..._base_client import make_request_options
1513
from ...types.jobs.manual_async_job import ManualAsyncJob
1614

@@ -41,7 +39,6 @@ def retrieve(
4139
self,
4240
job_id: str,
4341
*,
44-
entity_id: str | Omit = omit,
4542
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
4643
# The extra values given here take precedence over values defined on the client or passed to this method.
4744
extra_headers: Headers | None = None,
@@ -55,10 +52,6 @@ def retrieve(
5552
Assisted Benefits jobs.
5653
5754
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-
6255
extra_headers: Send extra headers
6356
6457
extra_query: Add additional query parameters to the request
@@ -72,11 +65,7 @@ def retrieve(
7265
return self._get(
7366
f"/jobs/manual/{job_id}",
7467
options=make_request_options(
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),
68+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
8069
),
8170
cast_to=ManualAsyncJob,
8271
)
@@ -106,7 +95,6 @@ async def retrieve(
10695
self,
10796
job_id: str,
10897
*,
109-
entity_id: str | Omit = omit,
11098
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
11199
# The extra values given here take precedence over values defined on the client or passed to this method.
112100
extra_headers: Headers | None = None,
@@ -120,10 +108,6 @@ async def retrieve(
120108
Assisted Benefits jobs.
121109
122110
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-
127111
extra_headers: Send extra headers
128112
129113
extra_query: Add additional query parameters to the request
@@ -137,13 +121,7 @@ async def retrieve(
137121
return await self._get(
138122
f"/jobs/manual/{job_id}",
139123
options=make_request_options(
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-
),
124+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
147125
),
148126
cast_to=ManualAsyncJob,
149127
)

src/finch/types/introspection.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@ class Introspection(BaseModel):
9898
created for this connection
9999
"""
100100

101-
entity_ids: Optional[List[str]] = None
102-
"""Array of entity IDs associated with this connection."""
103-
104-
entity_mode: Optional[Literal["single", "multi"]] = None
105-
"""Indicates whether this connection manages a single entity or multiple entities."""
106-
107101
manual: Optional[bool] = None
108102
"""
109103
Whether the connection associated with the `access_token` uses the Assisted

src/finch/types/jobs/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from .manual_async_job import ManualAsyncJob as ManualAsyncJob
66
from .automated_async_job import AutomatedAsyncJob as AutomatedAsyncJob
77
from .automated_list_params import AutomatedListParams as AutomatedListParams
8-
from .manual_retrieve_params import ManualRetrieveParams as ManualRetrieveParams
98
from .automated_create_params import AutomatedCreateParams as AutomatedCreateParams
109
from .automated_list_response import AutomatedListResponse as AutomatedListResponse
1110
from .automated_create_response import AutomatedCreateResponse as AutomatedCreateResponse
12-
from .automated_retrieve_params import AutomatedRetrieveParams as AutomatedRetrieveParams

src/finch/types/jobs/automated_list_params.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88

99

1010
class AutomatedListParams(TypedDict, total=False):
11-
entity_id: str
12-
"""The entity ID to use when authenticating with a multi-account token.
13-
14-
Required when using a multi-account token to specify which entity's data to
15-
access. Example: `123e4567-e89b-12d3-a456-426614174000`
16-
"""
17-
1811
limit: int
1912
"""Number of items to return"""
2013

src/finch/types/jobs/automated_retrieve_params.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/finch/types/jobs/manual_retrieve_params.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)