Skip to content

Commit 71a35c2

Browse files
add alias for old findall objects
1 parent 3641ac6 commit 71a35c2

17 files changed

+188
-68
lines changed

src/parallel/resources/beta/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,17 @@
1010
)
1111
from .findall import (
1212
FindAllResource,
13+
FindallResource,
1314
AsyncFindAllResource,
15+
AsyncFindallResource,
1416
FindAllResourceWithRawResponse,
17+
FindallResourceWithRawResponse,
1518
AsyncFindAllResourceWithRawResponse,
19+
AsyncFindallResourceWithRawResponse,
1620
FindAllResourceWithStreamingResponse,
21+
FindallResourceWithStreamingResponse,
1722
AsyncFindAllResourceWithStreamingResponse,
23+
AsyncFindallResourceWithStreamingResponse,
1824
)
1925
from .task_run import (
2026
TaskRunResource,
@@ -52,6 +58,12 @@
5258
"AsyncFindAllResourceWithRawResponse",
5359
"FindAllResourceWithStreamingResponse",
5460
"AsyncFindAllResourceWithStreamingResponse",
61+
"FindallResource",
62+
"AsyncFindallResource",
63+
"FindallResourceWithRawResponse",
64+
"AsyncFindallResourceWithRawResponse",
65+
"FindallResourceWithStreamingResponse",
66+
"AsyncFindallResourceWithStreamingResponse",
5567
"BetaResource",
5668
"AsyncBetaResource",
5769
"BetaResourceWithRawResponse",

src/parallel/resources/beta/findall.py

Lines changed: 71 additions & 37 deletions
Large diffs are not rendered by default.

src/parallel/types/beta/__init__.py

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,71 @@
77
from .task_group import TaskGroup as TaskGroup
88
from .usage_item import UsageItem as UsageItem
99
from .error_event import ErrorEvent as ErrorEvent
10-
from .findall_run import FindAllRun as FindAllRun
10+
from .findall_run import FindAllRun as FindAllRun, FindallRun as FindallRun
1111
from .extract_error import ExtractError as ExtractError
1212
from .mcp_tool_call import McpToolCall as McpToolCall
1313
from .search_result import SearchResult as SearchResult
1414
from .webhook_param import WebhookParam as WebhookParam
1515
from .beta_run_input import BetaRunInput as BetaRunInput
1616
from .extract_result import ExtractResult as ExtractResult
17-
from .findall_schema import FindAllSchema as FindAllSchema
17+
from .findall_schema import FindAllSchema as FindAllSchema, FindallSchema as FindallSchema
1818
from .task_run_event import TaskRunEvent as TaskRunEvent
1919
from .extract_response import ExtractResponse as ExtractResponse
2020
from .mcp_server_param import McpServerParam as McpServerParam
2121
from .task_group_status import TaskGroupStatus as TaskGroupStatus
2222
from .web_search_result import WebSearchResult as WebSearchResult
2323
from .beta_search_params import BetaSearchParams as BetaSearchParams
2424
from .fetch_policy_param import FetchPolicyParam as FetchPolicyParam
25-
from .findall_run_result import FindAllRunResult as FindAllRunResult
25+
from .findall_run_result import FindAllRunResult as FindAllRunResult, FindallRunResult as FindallRunResult
2626
from .beta_extract_params import BetaExtractParams as BetaExtractParams
2727
from .parallel_beta_param import ParallelBetaParam as ParallelBetaParam
2828
from .beta_run_input_param import BetaRunInputParam as BetaRunInputParam
2929
from .beta_task_run_result import BetaTaskRunResult as BetaTaskRunResult
30-
from .findall_enrich_input import FindAllEnrichInput as FindAllEnrichInput
31-
from .findall_create_params import FindAllCreateParams as FindAllCreateParams
32-
from .findall_enrich_params import FindAllEnrichParams as FindAllEnrichParams
33-
from .findall_events_params import FindAllEventsParams as FindAllEventsParams
34-
from .findall_extend_params import FindAllExtendParams as FindAllExtendParams
35-
from .findall_ingest_params import FindAllIngestParams as FindAllIngestParams
30+
from .findall_enrich_input import FindAllEnrichInput as FindAllEnrichInput, FindallEnrichInput as FindallEnrichInput
31+
from .findall_create_params import (
32+
FindAllCreateParams as FindAllCreateParams,
33+
FindallCreateParams as FindallCreateParams,
34+
)
35+
from .findall_enrich_params import (
36+
FindAllEnrichParams as FindAllEnrichParams,
37+
FindallEnrichParams as FindallEnrichParams,
38+
)
39+
from .findall_events_params import (
40+
FindAllEventsParams as FindAllEventsParams,
41+
FindallEventsParams as FindallEventsParams,
42+
)
43+
from .findall_extend_params import (
44+
FindAllExtendParams as FindAllExtendParams,
45+
FindallExtendParams as FindallExtendParams,
46+
)
47+
from .findall_ingest_params import (
48+
FindAllIngestParams as FindAllIngestParams,
49+
FindallIngestParams as FindallIngestParams,
50+
)
3651
from .excerpt_settings_param import ExcerptSettingsParam as ExcerptSettingsParam
3752
from .task_run_create_params import TaskRunCreateParams as TaskRunCreateParams
3853
from .task_run_result_params import TaskRunResultParams as TaskRunResultParams
39-
from .findall_events_response import FindAllEventsResponse as FindAllEventsResponse
54+
from .findall_events_response import (
55+
FindAllEventsResponse as FindAllEventsResponse,
56+
FindallEventsResponse as FindallEventsResponse,
57+
)
4058
from .task_group_run_response import TaskGroupRunResponse as TaskGroupRunResponse
41-
from .findall_run_status_event import FindAllRunStatusEvent as FindAllRunStatusEvent
59+
from .findall_run_status_event import (
60+
FindAllRunStatusEvent as FindAllRunStatusEvent,
61+
FindallRunStatusEvent as FindallRunStatusEvent,
62+
)
4263
from .task_group_create_params import TaskGroupCreateParams as TaskGroupCreateParams
4364
from .task_group_events_params import TaskGroupEventsParams as TaskGroupEventsParams
4465
from .task_run_events_response import TaskRunEventsResponse as TaskRunEventsResponse
45-
from .findall_retrieve_response import FindallRetrieveResponse as FindallRetrieveResponse
4666
from .task_group_add_runs_params import TaskGroupAddRunsParams as TaskGroupAddRunsParams
4767
from .task_group_events_response import TaskGroupEventsResponse as TaskGroupEventsResponse
4868
from .task_group_get_runs_params import TaskGroupGetRunsParams as TaskGroupGetRunsParams
49-
from .findall_schema_updated_event import FindAllSchemaUpdatedEvent as FindAllSchemaUpdatedEvent
69+
from .findall_schema_updated_event import (
70+
FindAllSchemaUpdatedEvent as FindAllSchemaUpdatedEvent,
71+
FindallSchemaUpdatedEvent as FindallSchemaUpdatedEvent,
72+
)
5073
from .task_group_get_runs_response import TaskGroupGetRunsResponse as TaskGroupGetRunsResponse
51-
from .findall_candidate_match_status_event import FindAllCandidateMatchStatusEvent as FindAllCandidateMatchStatusEvent
74+
from .findall_candidate_match_status_event import (
75+
FindAllCandidateMatchStatusEvent as FindAllCandidateMatchStatusEvent,
76+
FindallCandidateMatchStatusEvent as FindallCandidateMatchStatusEvent,
77+
)

src/parallel/types/beta/findall_candidate_match_status_event.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from ..._models import BaseModel
88
from ..field_basis import FieldBasis
99

10-
__all__ = ["FindAllCandidateMatchStatusEvent", "Data"]
10+
__all__ = ["FindAllCandidateMatchStatusEvent", "FindallCandidateMatchStatusEvent", "Data"]
1111

1212

1313
class Data(BaseModel):
@@ -66,3 +66,7 @@ class FindAllCandidateMatchStatusEvent(BaseModel):
6666
findall.candidate.unmatched, findall.candidate.discarded,
6767
findall.candidate.enriched.
6868
"""
69+
70+
71+
FindallCandidateMatchStatusEvent = FindAllCandidateMatchStatusEvent # for backwards compatibility with v0.3.4
72+
"""This is deprecated, `FindAllCandidateMatchStatusEvent` should be used instead"""

src/parallel/types/beta/findall_create_params.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .webhook_param import WebhookParam
1010
from .parallel_beta_param import ParallelBetaParam
1111

12-
__all__ = ["FindAllCreateParams", "MatchCondition", "ExcludeList"]
12+
__all__ = ["FindAllCreateParams", "FindallCreateParams", "MatchCondition", "ExcludeList"]
1313

1414

1515
class FindAllCreateParams(TypedDict, total=False):
@@ -66,3 +66,7 @@ class ExcludeList(TypedDict, total=False):
6666

6767
url: Required[str]
6868
"""URL of the entity to exclude from results."""
69+
70+
71+
FindallCreateParams = FindAllCreateParams # for backwards compatibility with v0.3.4
72+
"""This is deprecated, `FindAllCreateParams` should be used instead"""

src/parallel/types/beta/findall_enrich_input.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from .mcp_server import McpServer
77
from ..json_schema import JsonSchema
88

9-
__all__ = ["FindAllEnrichInput"]
9+
__all__ = ["FindAllEnrichInput", "FindallEnrichInput"]
1010

1111

1212
class FindAllEnrichInput(BaseModel):
@@ -20,3 +20,7 @@ class FindAllEnrichInput(BaseModel):
2020

2121
processor: Optional[str] = None
2222
"""Processor to use for the task."""
23+
24+
25+
FindallEnrichInput = FindAllEnrichInput # for backwards compatibility with v0.3.4
26+
"""This is deprecated, `FindAllEnrichInput` should be used instead"""

src/parallel/types/beta/findall_enrich_params.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from ..json_schema_param import JsonSchemaParam
1111
from .parallel_beta_param import ParallelBetaParam
1212

13-
__all__ = ["FindAllEnrichParams"]
13+
__all__ = ["FindAllEnrichParams", "FindallEnrichParams"]
1414

1515

1616
class FindAllEnrichParams(TypedDict, total=False):
@@ -25,3 +25,7 @@ class FindAllEnrichParams(TypedDict, total=False):
2525

2626
betas: Annotated[List[ParallelBetaParam], PropertyInfo(alias="parallel-beta")]
2727
"""Optional header to specify the beta version(s) to enable."""
28+
29+
30+
FindallEnrichParams = FindAllEnrichParams # for backwards compatibility with v0.3.4
31+
"""This is deprecated, `FindAllEnrichParams` should be used instead"""

src/parallel/types/beta/findall_events_params.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ..._utils import PropertyInfo
99
from .parallel_beta_param import ParallelBetaParam
1010

11-
__all__ = ["FindAllEventsParams"]
11+
__all__ = ["FindAllEventsParams", "FindallEventsParams"]
1212

1313

1414
class FindAllEventsParams(TypedDict, total=False):
@@ -18,3 +18,7 @@ class FindAllEventsParams(TypedDict, total=False):
1818

1919
betas: Annotated[List[ParallelBetaParam], PropertyInfo(alias="parallel-beta")]
2020
"""Optional header to specify the beta version(s) to enable."""
21+
22+
23+
FindallEventsParams = FindAllEventsParams # for backwards compatibility with v0.3.4
24+
"""This is deprecated, `FindAllEventsParams` should be used instead"""

src/parallel/types/beta/findall_events_response.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
from .findall_schema_updated_event import FindAllSchemaUpdatedEvent
1010
from .findall_candidate_match_status_event import FindAllCandidateMatchStatusEvent
1111

12-
__all__ = ["FindAllEventsResponse"]
12+
__all__ = ["FindAllEventsResponse", "FindallEventsResponse"]
1313

1414
FindAllEventsResponse: TypeAlias = Annotated[
1515
Union[FindAllSchemaUpdatedEvent, FindAllRunStatusEvent, FindAllCandidateMatchStatusEvent, ErrorEvent],
1616
PropertyInfo(discriminator="type"),
1717
]
18+
19+
20+
FindallEventsResponse = FindAllEventsResponse # for backwards compatibility with v0.3.4
21+
"""This is deprecated, `FindAllEventsResponse` should be used instead"""

src/parallel/types/beta/findall_extend_params.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ..._utils import PropertyInfo
99
from .parallel_beta_param import ParallelBetaParam
1010

11-
__all__ = ["FindAllExtendParams"]
11+
__all__ = ["FindAllExtendParams", "FindallExtendParams"]
1212

1313

1414
class FindAllExtendParams(TypedDict, total=False):
@@ -21,3 +21,7 @@ class FindAllExtendParams(TypedDict, total=False):
2121

2222
betas: Annotated[List[ParallelBetaParam], PropertyInfo(alias="parallel-beta")]
2323
"""Optional header to specify the beta version(s) to enable."""
24+
25+
26+
FindallExtendParams = FindAllExtendParams # for backwards compatibility with v0.3.4
27+
"""This is deprecated, `FindAllExtendParams` should be used instead"""

0 commit comments

Comments
 (0)