Skip to content

Commit f9957bf

Browse files
feat(api): manual updates
1 parent e07fd1e commit f9957bf

File tree

8 files changed

+38
-792
lines changed

8 files changed

+38
-792
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: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-1b1307440ce6a9c07a2f4ab03a2847b6f9956e90bed0113760074679d5615047.yml
3-
openapi_spec_hash: 89963dbf1083714cd8945900af667b7a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-70ca78f3dbacd1f8145c633b64c2d9eec9f390db6110ce98705427248a22f19f.yml
3+
openapi_spec_hash: 877617cbe6e7a48410632dbb57ff5488
44
config_hash: 6a16116c579cf9a3739083c24b10534d

src/parallel/resources/beta/findall.py

Lines changed: 9 additions & 303 deletions
Large diffs are not rendered by default.

src/parallel/types/beta/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from .beta_search_params import BetaSearchParams as BetaSearchParams
2424
from .fetch_policy_param import FetchPolicyParam as FetchPolicyParam
2525
from .findall_run_result import FindallRunResult as FindallRunResult
26-
from .ingest_input_param import IngestInputParam as IngestInputParam
2726
from .beta_extract_params import BetaExtractParams as BetaExtractParams
2827
from .parallel_beta_param import ParallelBetaParam as ParallelBetaParam
2928
from .beta_run_input_param import BetaRunInputParam as BetaRunInputParam
@@ -38,7 +37,6 @@
3837
from .task_run_create_params import TaskRunCreateParams as TaskRunCreateParams
3938
from .task_run_result_params import TaskRunResultParams as TaskRunResultParams
4039
from .findall_events_response import FindallEventsResponse as FindallEventsResponse
41-
from .findall_run_input_param import FindallRunInputParam as FindallRunInputParam
4240
from .task_group_run_response import TaskGroupRunResponse as TaskGroupRunResponse
4341
from .findall_run_status_event import FindallRunStatusEvent as FindallRunStatusEvent
4442
from .task_group_create_params import TaskGroupCreateParams as TaskGroupCreateParams

src/parallel/types/beta/findall_create_params.py

Lines changed: 7 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,23 @@
33
from __future__ import annotations
44

55
from typing import Dict, List, Union, Iterable, Optional
6-
from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
6+
from typing_extensions import Literal, Required, Annotated, TypedDict
77

8-
from ..._types import SequenceNotStr
98
from ..._utils import PropertyInfo
109
from .webhook_param import WebhookParam
1110
from .parallel_beta_param import ParallelBetaParam
1211

13-
__all__ = [
14-
"FindallCreateParams",
15-
"FindallRunInput",
16-
"FindallRunInputMatchCondition",
17-
"FindallRunInputExcludeList",
18-
"FindAllRunPayload",
19-
"FindAllRunPayloadFindallSpec",
20-
"FindAllRunPayloadFindallSpecColumn",
21-
"FindAllRunPayloadUpdatesWebhook",
22-
"FindAllRunPayloadWebhook",
23-
]
12+
__all__ = ["FindallCreateParams", "MatchCondition", "ExcludeList"]
2413

2514

26-
class FindallRunInput(TypedDict, total=False):
15+
class FindallCreateParams(TypedDict, total=False):
2716
entity_type: Required[str]
2817
"""Type of the entity for the FindAll run."""
2918

3019
generator: Required[Literal["base", "core", "pro", "preview"]]
3120
"""Generator for the FindAll run."""
3221

33-
match_conditions: Required[Iterable[FindallRunInputMatchCondition]]
22+
match_conditions: Required[Iterable[MatchCondition]]
3423
"""List of match conditions for the FindAll run."""
3524

3625
match_limit: Required[int]
@@ -39,7 +28,7 @@ class FindallRunInput(TypedDict, total=False):
3928
objective: Required[str]
4029
"""Natural language objective of the FindAll run."""
4130

42-
exclude_list: Optional[Iterable[FindallRunInputExcludeList]]
31+
exclude_list: Optional[Iterable[ExcludeList]]
4332
"""List of entity names/IDs to exclude from results."""
4433

4534
metadata: Optional[Dict[str, Union[str, float, bool]]]
@@ -52,7 +41,7 @@ class FindallRunInput(TypedDict, total=False):
5241
"""Optional header to specify the beta version(s) to enable."""
5342

5443

55-
class FindallRunInputMatchCondition(TypedDict, total=False):
44+
class MatchCondition(TypedDict, total=False):
5645
description: Required[str]
5746
"""Detailed description of the match condition.
5847
@@ -64,100 +53,9 @@ class FindallRunInputMatchCondition(TypedDict, total=False):
6453
"""Name of the match condition."""
6554

6655

67-
class FindallRunInputExcludeList(TypedDict, total=False):
56+
class ExcludeList(TypedDict, total=False):
6857
name: Required[str]
6958
"""Name of the entity to exclude from results."""
7059

7160
url: Required[str]
7261
"""URL of the entity to exclude from results."""
73-
74-
75-
class FindAllRunPayload(TypedDict, total=False):
76-
findall_spec: Required[FindAllRunPayloadFindallSpec]
77-
"""Represents a view in the database with a title."""
78-
79-
processor: Required[Literal["lite", "base", "pro", "preview"]]
80-
81-
candidates: SequenceNotStr[str]
82-
83-
metadata: Dict[str, Union[str, float, bool]]
84-
85-
result_limit: int
86-
87-
updates_webhook: Optional[FindAllRunPayloadUpdatesWebhook]
88-
"""FindAll Webhooks for Clay."""
89-
90-
webhook: Optional[FindAllRunPayloadWebhook]
91-
"""Webhooks for FindAll."""
92-
93-
betas: Annotated[List[ParallelBetaParam], PropertyInfo(alias="parallel-beta")]
94-
"""Optional header to specify the beta version(s) to enable."""
95-
96-
97-
class FindAllRunPayloadFindallSpecColumn(TypedDict, total=False):
98-
description: Required[str]
99-
"""The description of the column"""
100-
101-
name: Required[str]
102-
"""The name of the column"""
103-
104-
order_direction: Optional[Literal["ASC", "DESC"]]
105-
"""Direction for ordering results."""
106-
107-
type: Literal["enrichment", "constraint", "order_by"]
108-
"""Types of columns in a view."""
109-
110-
111-
class FindAllRunPayloadFindallSpec(TypedDict, total=False):
112-
columns: Required[Iterable[FindAllRunPayloadFindallSpecColumn]]
113-
"""The columns of the view"""
114-
115-
name: Required[str]
116-
"""The name of the view"""
117-
118-
query: Required[str]
119-
"""The query of the findall"""
120-
121-
title: Required[str]
122-
"""The title of the findall query"""
123-
124-
125-
class FindAllRunPayloadUpdatesWebhook(TypedDict, total=False):
126-
url: Required[str]
127-
"""URL for the webhook."""
128-
129-
event_types: List[Literal["findall.result"]]
130-
"""The type of event that triggered the webhook."""
131-
132-
secret: Optional[str]
133-
"""Secret for HMAC signature of the webhook.
134-
135-
If not provided, webhook signature is generated from the secret created when the
136-
domain is registered.
137-
"""
138-
139-
140-
class FindAllRunPayloadWebhook(TypedDict, total=False):
141-
url: Required[str]
142-
"""URL for the webhook."""
143-
144-
event_types: List[
145-
Literal[
146-
"findall.entity.created",
147-
"findall.entity.discarded",
148-
"findall.entity.completed",
149-
"findall.run.completed",
150-
"findall.run.canceled",
151-
]
152-
]
153-
"""The type of event that triggered the webhook."""
154-
155-
secret: Optional[str]
156-
"""Secret for HMAC signature of the webhook.
157-
158-
If not provided, webhook signature is generated from the secret created when the
159-
domain is registered.
160-
"""
161-
162-
163-
FindallCreateParams: TypeAlias = Union[FindallRunInput, FindAllRunPayload]

src/parallel/types/beta/findall_ingest_params.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,18 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Union
6-
from typing_extensions import Required, Annotated, TypeAlias, TypedDict
5+
from typing import List
6+
from typing_extensions import Required, Annotated, TypedDict
77

88
from ..._utils import PropertyInfo
99
from .parallel_beta_param import ParallelBetaParam
1010

11-
__all__ = ["FindallIngestParams", "IngestInput", "IngestPayload"]
11+
__all__ = ["FindallIngestParams"]
1212

1313

14-
class IngestInput(TypedDict, total=False):
14+
class FindallIngestParams(TypedDict, total=False):
1515
objective: Required[str]
1616
"""Natural language objective to create a FindAll run spec."""
1717

1818
betas: Annotated[List[ParallelBetaParam], PropertyInfo(alias="parallel-beta")]
1919
"""Optional header to specify the beta version(s) to enable."""
20-
21-
22-
class IngestPayload(TypedDict, total=False):
23-
query: Required[str]
24-
25-
return_evidence_enrichments: bool
26-
27-
betas: Annotated[List[ParallelBetaParam], PropertyInfo(alias="parallel-beta")]
28-
"""Optional header to specify the beta version(s) to enable."""
29-
30-
31-
FindallIngestParams: TypeAlias = Union[IngestInput, IngestPayload]

src/parallel/types/beta/findall_run_input_param.py

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

src/parallel/types/beta/ingest_input_param.py

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

0 commit comments

Comments
 (0)