Skip to content

Commit e07fd1e

Browse files
feat(api): FindAll sdk updates
1 parent cf9de5f commit e07fd1e

24 files changed

Lines changed: 3879 additions & 5 deletions

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-a2d634b57a8ea2e6392d23d6fcc5d3cbdbb4aac3f372a3553a7d63c3f2fc884e.yml
3-
openapi_spec_hash: 021a33c8bbfe7b052b2d285867be258f
4-
config_hash: 677d555754b79eb922f6bf64bccd9559
1+
configured_endpoints: 22
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-1b1307440ce6a9c07a2f4ab03a2847b6f9956e90bed0113760074679d5615047.yml
3+
openapi_spec_hash: 89963dbf1083714cd8945900af667b7a
4+
config_hash: 6a16116c579cf9a3739083c24b10534d

api.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,36 @@ Methods:
102102
- <code title="post /v1beta/tasks/groups/{taskgroup_id}/runs">client.beta.task_group.<a href="./src/parallel/resources/beta/task_group.py">add_runs</a>(task_group_id, \*\*<a href="src/parallel/types/beta/task_group_add_runs_params.py">params</a>) -> <a href="./src/parallel/types/beta/task_group_run_response.py">TaskGroupRunResponse</a></code>
103103
- <code title="get /v1beta/tasks/groups/{taskgroup_id}/events">client.beta.task_group.<a href="./src/parallel/resources/beta/task_group.py">events</a>(task_group_id, \*\*<a href="src/parallel/types/beta/task_group_events_params.py">params</a>) -> <a href="./src/parallel/types/beta/task_group_events_response.py">TaskGroupEventsResponse</a></code>
104104
- <code title="get /v1beta/tasks/groups/{taskgroup_id}/runs">client.beta.task_group.<a href="./src/parallel/resources/beta/task_group.py">get_runs</a>(task_group_id, \*\*<a href="src/parallel/types/beta/task_group_get_runs_params.py">params</a>) -> <a href="./src/parallel/types/beta/task_group_get_runs_response.py">TaskGroupGetRunsResponse</a></code>
105+
106+
## Findall
107+
108+
Types:
109+
110+
```python
111+
from parallel.types.beta import (
112+
FindallCandidateMatchStatusEvent,
113+
FindallEnrichInput,
114+
FindallExtendInput,
115+
FindallRun,
116+
FindallRunInput,
117+
FindallRunResult,
118+
FindallRunStatusEvent,
119+
FindallSchema,
120+
FindallSchemaUpdatedEvent,
121+
IngestInput,
122+
FindallRetrieveResponse,
123+
FindallEventsResponse,
124+
)
125+
```
126+
127+
Methods:
128+
129+
- <code title="post /v1beta/findall/runs">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">create</a>(\*\*<a href="src/parallel/types/beta/findall_create_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_run.py">FindallRun</a></code>
130+
- <code title="get /v1beta/findall/runs/{findall_id}">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">retrieve</a>(findall_id) -> <a href="./src/parallel/types/beta/findall_retrieve_response.py">FindallRetrieveResponse</a></code>
131+
- <code title="post /v1beta/findall/runs/{findall_id}/cancel">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">cancel</a>(findall_id) -> object</code>
132+
- <code title="post /v1beta/findall/runs/{findall_id}/enrich">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">enrich</a>(findall_id, \*\*<a href="src/parallel/types/beta/findall_enrich_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_schema.py">FindallSchema</a></code>
133+
- <code title="get /v1beta/findall/runs/{findall_id}/events">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">events</a>(findall_id, \*\*<a href="src/parallel/types/beta/findall_events_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_events_response.py">FindallEventsResponse</a></code>
134+
- <code title="post /v1beta/findall/runs/{findall_id}/extend">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">extend</a>(findall_id, \*\*<a href="src/parallel/types/beta/findall_extend_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_schema.py">FindallSchema</a></code>
135+
- <code title="post /v1beta/findall/ingest">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">ingest</a>(\*\*<a href="src/parallel/types/beta/findall_ingest_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_schema.py">FindallSchema</a></code>
136+
- <code title="get /v1beta/findall/runs/{findall_id}/result">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">result</a>(findall_id) -> <a href="./src/parallel/types/beta/findall_run_result.py">FindallRunResult</a></code>
137+
- <code title="get /v1beta/findall/runs/{findall_id}/schema">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">schema</a>(findall_id) -> <a href="./src/parallel/types/beta/findall_schema.py">FindallSchema</a></code>

src/parallel/resources/beta/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
BetaResourceWithStreamingResponse,
99
AsyncBetaResourceWithStreamingResponse,
1010
)
11+
from .findall import (
12+
FindallResource,
13+
AsyncFindallResource,
14+
FindallResourceWithRawResponse,
15+
AsyncFindallResourceWithRawResponse,
16+
FindallResourceWithStreamingResponse,
17+
AsyncFindallResourceWithStreamingResponse,
18+
)
1119
from .task_run import (
1220
TaskRunResource,
1321
AsyncTaskRunResource,
@@ -38,6 +46,12 @@
3846
"AsyncTaskGroupResourceWithRawResponse",
3947
"TaskGroupResourceWithStreamingResponse",
4048
"AsyncTaskGroupResourceWithStreamingResponse",
49+
"FindallResource",
50+
"AsyncFindallResource",
51+
"FindallResourceWithRawResponse",
52+
"AsyncFindallResourceWithRawResponse",
53+
"FindallResourceWithStreamingResponse",
54+
"AsyncFindallResourceWithStreamingResponse",
4155
"BetaResource",
4256
"AsyncBetaResource",
4357
"BetaResourceWithRawResponse",

src/parallel/resources/beta/beta.py

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

99
import httpx
1010

11+
from .findall import (
12+
FindallResource,
13+
AsyncFindallResource,
14+
FindallResourceWithRawResponse,
15+
AsyncFindallResourceWithRawResponse,
16+
FindallResourceWithStreamingResponse,
17+
AsyncFindallResourceWithStreamingResponse,
18+
)
1119
from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
1220
from ..._utils import is_given, maybe_transform, strip_not_given, async_maybe_transform
1321
from .task_run import (
@@ -55,6 +63,10 @@ def task_run(self) -> TaskRunResource:
5563
def task_group(self) -> TaskGroupResource:
5664
return TaskGroupResource(self._client)
5765

66+
@cached_property
67+
def findall(self) -> FindallResource:
68+
return FindallResource(self._client)
69+
5870
@cached_property
5971
def with_raw_response(self) -> BetaResourceWithRawResponse:
6072
"""
@@ -259,6 +271,10 @@ def task_run(self) -> AsyncTaskRunResource:
259271
def task_group(self) -> AsyncTaskGroupResource:
260272
return AsyncTaskGroupResource(self._client)
261273

274+
@cached_property
275+
def findall(self) -> AsyncFindallResource:
276+
return AsyncFindallResource(self._client)
277+
262278
@cached_property
263279
def with_raw_response(self) -> AsyncBetaResourceWithRawResponse:
264280
"""
@@ -473,6 +489,10 @@ def task_run(self) -> TaskRunResourceWithRawResponse:
473489
def task_group(self) -> TaskGroupResourceWithRawResponse:
474490
return TaskGroupResourceWithRawResponse(self._beta.task_group)
475491

492+
@cached_property
493+
def findall(self) -> FindallResourceWithRawResponse:
494+
return FindallResourceWithRawResponse(self._beta.findall)
495+
476496

477497
class AsyncBetaResourceWithRawResponse:
478498
def __init__(self, beta: AsyncBetaResource) -> None:
@@ -493,6 +513,10 @@ def task_run(self) -> AsyncTaskRunResourceWithRawResponse:
493513
def task_group(self) -> AsyncTaskGroupResourceWithRawResponse:
494514
return AsyncTaskGroupResourceWithRawResponse(self._beta.task_group)
495515

516+
@cached_property
517+
def findall(self) -> AsyncFindallResourceWithRawResponse:
518+
return AsyncFindallResourceWithRawResponse(self._beta.findall)
519+
496520

497521
class BetaResourceWithStreamingResponse:
498522
def __init__(self, beta: BetaResource) -> None:
@@ -513,6 +537,10 @@ def task_run(self) -> TaskRunResourceWithStreamingResponse:
513537
def task_group(self) -> TaskGroupResourceWithStreamingResponse:
514538
return TaskGroupResourceWithStreamingResponse(self._beta.task_group)
515539

540+
@cached_property
541+
def findall(self) -> FindallResourceWithStreamingResponse:
542+
return FindallResourceWithStreamingResponse(self._beta.findall)
543+
516544

517545
class AsyncBetaResourceWithStreamingResponse:
518546
def __init__(self, beta: AsyncBetaResource) -> None:
@@ -532,3 +560,7 @@ def task_run(self) -> AsyncTaskRunResourceWithStreamingResponse:
532560
@cached_property
533561
def task_group(self) -> AsyncTaskGroupResourceWithStreamingResponse:
534562
return AsyncTaskGroupResourceWithStreamingResponse(self._beta.task_group)
563+
564+
@cached_property
565+
def findall(self) -> AsyncFindallResourceWithStreamingResponse:
566+
return AsyncFindallResourceWithStreamingResponse(self._beta.findall)

0 commit comments

Comments
 (0)