Skip to content

Commit fd6d42e

Browse files
author
stlc-bot
committed
chore: sync sdk-openapi.json from shapleyai/code@1072344fee
Stainless-Generated-From: 933972ee747dc8ef21816e8660bba070a6f1a297
1 parent 3762bf9 commit fd6d42e

14 files changed

Lines changed: 103 additions & 51 deletions

scripts/mock

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/parallel/resources/task_run.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,12 @@ def create(
131131
132132
source_policy: Source policy for web search results.
133133
134-
This policy governs which sources are allowed/disallowed in results.
134+
Plain domains match that domain and its subdomains. Domain/path entries use
135+
case-sensitive path matching at segment boundaries; trailing slashes are
136+
ignored, dot segments are normalized, and other percent-encoded path spelling is
137+
preserved. Entries omit schemes, ports, query strings, and fragments. When
138+
include_domains is non-empty, it defines the complete allowlist and
139+
exclude_domains is ignored.
135140
136141
task_spec: Specification for a task.
137142
@@ -551,7 +556,12 @@ async def create(
551556
552557
source_policy: Source policy for web search results.
553558
554-
This policy governs which sources are allowed/disallowed in results.
559+
Plain domains match that domain and its subdomains. Domain/path entries use
560+
case-sensitive path matching at segment boundaries; trailing slashes are
561+
ignored, dot segments are normalized, and other percent-encoded path spelling is
562+
preserved. Entries omit schemes, ports, query strings, and fragments. When
563+
include_domains is non-empty, it defines the complete allowlist and
564+
exclude_domains is ignored.
555565
556566
task_spec: Specification for a task.
557567

src/parallel/types/advanced_monitor_settings.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,10 @@ class AdvancedMonitorSettings(BaseModel):
1717
source_policy: Optional[SourcePolicy] = None
1818
"""Source policy for web search results.
1919
20-
This policy governs which sources are allowed/disallowed in results.
20+
Plain domains match that domain and its subdomains. Domain/path entries use
21+
case-sensitive path matching at segment boundaries; trailing slashes are
22+
ignored, dot segments are normalized, and other percent-encoded path spelling is
23+
preserved. Entries omit schemes, ports, query strings, and fragments. When
24+
include_domains is non-empty, it defines the complete allowlist and
25+
exclude_domains is ignored.
2126
"""

src/parallel/types/advanced_monitor_settings_param.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@ class AdvancedMonitorSettingsParam(TypedDict, total=False):
1919
source_policy: Optional[SourcePolicy]
2020
"""Source policy for web search results.
2121
22-
This policy governs which sources are allowed/disallowed in results.
22+
Plain domains match that domain and its subdomains. Domain/path entries use
23+
case-sensitive path matching at segment boundaries; trailing slashes are
24+
ignored, dot segments are normalized, and other percent-encoded path spelling is
25+
preserved. Entries omit schemes, ports, query strings, and fragments. When
26+
include_domains is non-empty, it defines the complete allowlist and
27+
exclude_domains is ignored.
2328
"""

src/parallel/types/advanced_search_settings_param.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,10 @@ class AdvancedSearchSettingsParam(TypedDict, total=False):
3434
source_policy: Optional[SourcePolicy]
3535
"""Source policy for web search results.
3636
37-
This policy governs which sources are allowed/disallowed in results.
37+
Plain domains match that domain and its subdomains. Domain/path entries use
38+
case-sensitive path matching at segment boundaries; trailing slashes are
39+
ignored, dot segments are normalized, and other percent-encoded path spelling is
40+
preserved. Entries omit schemes, ports, query strings, and fragments. When
41+
include_domains is non-empty, it defines the complete allowlist and
42+
exclude_domains is ignored.
3843
"""

src/parallel/types/run_input.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ class RunInput(BaseModel):
5656
source_policy: Optional[SourcePolicy] = None
5757
"""Source policy for web search results.
5858
59-
This policy governs which sources are allowed/disallowed in results.
59+
Plain domains match that domain and its subdomains. Domain/path entries use
60+
case-sensitive path matching at segment boundaries; trailing slashes are
61+
ignored, dot segments are normalized, and other percent-encoded path spelling is
62+
preserved. Entries omit schemes, ports, query strings, and fragments. When
63+
include_domains is non-empty, it defines the complete allowlist and
64+
exclude_domains is ignored.
6065
"""
6166

6267
task_spec: Optional[TaskSpec] = None

src/parallel/types/run_input_param.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ class RunInputParam(TypedDict, total=False):
5858
source_policy: Optional[SourcePolicy]
5959
"""Source policy for web search results.
6060
61-
This policy governs which sources are allowed/disallowed in results.
61+
Plain domains match that domain and its subdomains. Domain/path entries use
62+
case-sensitive path matching at segment boundaries; trailing slashes are
63+
ignored, dot segments are normalized, and other percent-encoded path spelling is
64+
preserved. Entries omit schemes, ports, query strings, and fragments. When
65+
include_domains is non-empty, it defines the complete allowlist and
66+
exclude_domains is ignored.
6267
"""
6368

6469
task_spec: Optional[TaskSpecParam]

src/parallel/types/shared/source_policy.py

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
class SourcePolicy(BaseModel):
1212
"""Source policy for web search results.
1313
14-
This policy governs which sources are allowed/disallowed in results.
14+
Plain domains match that domain and its subdomains. Domain/path entries use
15+
case-sensitive path matching at segment boundaries; trailing slashes are ignored,
16+
dot segments are normalized, and other percent-encoded path spelling is preserved.
17+
Entries omit schemes, ports, query strings, and fragments. When include_domains is
18+
non-empty, it defines the complete allowlist and exclude_domains is ignored.
1519
"""
1620

1721
after_date: Optional[date] = None
@@ -22,19 +26,21 @@ class SourcePolicy(BaseModel):
2226
"""
2327

2428
exclude_domains: Optional[List[str]] = None
25-
"""List of domains to exclude from results.
29+
"""List of domains or domain/path prefixes to exclude from results.
2630
27-
If specified, sources from these domains will be excluded. Accepts plain domains
28-
(e.g., example.com, subdomain.example.gov) or bare domain extension starting
29-
with a period (e.g., .gov, .edu, .co.uk). The combined number of domains in
30-
include_domains and exclude_domains cannot exceed 200.
31+
Applied only when include_domains is empty. If specified, matching sources will
32+
be excluded. Accepts plain domains (e.g., reddit.com), domain/path prefixes
33+
(e.g., youtube.com/shorts), or bare domain extensions (e.g., .gov, .edu,
34+
.co.uk). The combined number of entries in include_domains and exclude_domains
35+
cannot exceed 200.
3136
"""
3237

3338
include_domains: Optional[List[str]] = None
34-
"""List of domains to restrict the results to.
39+
"""List of domains or domain/path prefixes to restrict results to.
3540
36-
If specified, only sources from these domains will be included. Accepts plain
37-
domains (e.g., example.com, subdomain.example.gov) or bare domain extension
38-
starting with a period (e.g., .gov, .edu, .co.uk). The combined number of
39-
domains in include_domains and exclude_domains cannot exceed 200.
41+
If specified, only matching sources will be included and exclude_domains will be
42+
ignored. Accepts plain domains (e.g., wikipedia.org), domain/path prefixes
43+
(e.g., docs.python.org/3), or bare domain extensions (e.g., .gov, .edu, .co.uk).
44+
The combined number of entries in include_domains and exclude_domains cannot
45+
exceed 200.
4046
"""

src/parallel/types/shared_params/source_policy.py

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
class SourcePolicy(TypedDict, total=False):
1616
"""Source policy for web search results.
1717
18-
This policy governs which sources are allowed/disallowed in results.
18+
Plain domains match that domain and its subdomains. Domain/path entries use
19+
case-sensitive path matching at segment boundaries; trailing slashes are ignored,
20+
dot segments are normalized, and other percent-encoded path spelling is preserved.
21+
Entries omit schemes, ports, query strings, and fragments. When include_domains is
22+
non-empty, it defines the complete allowlist and exclude_domains is ignored.
1923
"""
2024

2125
after_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")]
@@ -26,19 +30,21 @@ class SourcePolicy(TypedDict, total=False):
2630
"""
2731

2832
exclude_domains: SequenceNotStr[str]
29-
"""List of domains to exclude from results.
33+
"""List of domains or domain/path prefixes to exclude from results.
3034
31-
If specified, sources from these domains will be excluded. Accepts plain domains
32-
(e.g., example.com, subdomain.example.gov) or bare domain extension starting
33-
with a period (e.g., .gov, .edu, .co.uk). The combined number of domains in
34-
include_domains and exclude_domains cannot exceed 200.
35+
Applied only when include_domains is empty. If specified, matching sources will
36+
be excluded. Accepts plain domains (e.g., reddit.com), domain/path prefixes
37+
(e.g., youtube.com/shorts), or bare domain extensions (e.g., .gov, .edu,
38+
.co.uk). The combined number of entries in include_domains and exclude_domains
39+
cannot exceed 200.
3540
"""
3641

3742
include_domains: SequenceNotStr[str]
38-
"""List of domains to restrict the results to.
43+
"""List of domains or domain/path prefixes to restrict results to.
3944
40-
If specified, only sources from these domains will be included. Accepts plain
41-
domains (e.g., example.com, subdomain.example.gov) or bare domain extension
42-
starting with a period (e.g., .gov, .edu, .co.uk). The combined number of
43-
domains in include_domains and exclude_domains cannot exceed 200.
45+
If specified, only matching sources will be included and exclude_domains will be
46+
ignored. Accepts plain domains (e.g., wikipedia.org), domain/path prefixes
47+
(e.g., docs.python.org/3), or bare domain extensions (e.g., .gov, .edu, .co.uk).
48+
The combined number of entries in include_domains and exclude_domains cannot
49+
exceed 200.
4450
"""

src/parallel/types/task_run_create_params.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ class TaskRunCreateParams(TypedDict, total=False):
5858
source_policy: Optional[SourcePolicy]
5959
"""Source policy for web search results.
6060
61-
This policy governs which sources are allowed/disallowed in results.
61+
Plain domains match that domain and its subdomains. Domain/path entries use
62+
case-sensitive path matching at segment boundaries; trailing slashes are
63+
ignored, dot segments are normalized, and other percent-encoded path spelling is
64+
preserved. Entries omit schemes, ports, query strings, and fragments. When
65+
include_domains is non-empty, it defines the complete allowlist and
66+
exclude_domains is ignored.
6267
"""
6368

6469
task_spec: Optional[TaskSpecParam]

0 commit comments

Comments
 (0)