You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d2a0ffb
Browse filesBrowse the repository at this point in the historyBrowse files
stlc-bot
committed
fix(openapi): keep legacy batch inputs in the spec as deprecated (#2225)
feat(access-policies): limit which websites API requests can reach (#2213)
feat(brand): support log-free brand and styleguide requests (#2231)
fix(brand): keep metadata-only usage logs for ZDR brand requests (#2234)
feat(monitors): add search target to watch the web for new developments (#2215)
Stainless-Generated-From: e9cdf82d83cd475d9dc2cd5ede9284207a0559f9
Search the web on every run and report results not seen before, listed in the change’s `matched_urls` and `evidence`. Semantic detection reports only results describing a new development that matches `instructions`; exact detection reports every new result.
215
+
"""
216
+
217
+
query: Required[str]
218
+
"""Web search query to run on every check.
219
+
220
+
Supports operators such as `site:`, `-site:`, and quoted phrases.
221
+
"""
222
+
223
+
type: Required[Literal["search"]]
224
+
"""Use `search` to watch the whole web for new results about a topic."""
225
+
226
+
instructions: str
227
+
"""Plain-language description of which new results matter. Defaults to the query."""
For page targets, this means visible text diffs. For sitemap targets, this means URL additions and removals.
238
+
For page targets, this means visible text diffs. For sitemap targets, this means URL additions and removals. For search targets, this means every new result.
215
239
"""
216
240
217
241
type: Required[Literal["exact"]]
218
-
"""Use `exact` to compare visible text or sitemap URLs."""
242
+
"""Use `exact` to compare visible text, sitemap URLs, or search results."""
For page targets, this means visible text diffs. For sitemap targets, this means URL additions and removals.
44
+
For page targets, this means visible text diffs. For sitemap targets, this means URL additions and removals. For search targets, this means every new result.
42
45
"""
43
46
44
47
type: Literal["exact"]
45
-
"""Use `exact` to compare visible text or sitemap URLs."""
48
+
"""Use `exact` to compare visible text, sitemap URLs, or search results."""
@@ -210,8 +213,28 @@ class TargetMonitorsExtractTarget(BaseModel):
210
213
"""
211
214
212
215
216
+
classTargetMonitorsSearchTarget(BaseModel):
217
+
"""
218
+
Search the web on every run and report results not seen before, listed in the change’s `matched_urls` and `evidence`. Semantic detection reports only results describing a new development that matches `instructions`; exact detection reports every new result.
219
+
"""
220
+
221
+
query: str
222
+
"""Web search query to run on every check.
223
+
224
+
Supports operators such as `site:`, `-site:`, and quoted phrases.
225
+
"""
226
+
227
+
type: Literal["search"]
228
+
"""Use `search` to watch the whole web for new results about a topic."""
229
+
230
+
instructions: Optional[str] =None
231
+
"""Plain-language description of which new results matter. Defaults to the query."""
0 commit comments