Skip to content

Commit 5e89196

Browse files
author
stlc-bot
committed
feat(batches): let sitemap crawls choose which paths count as non-pages (#2796)
Stainless-Generated-From: 46407fc9c541f3c27829ad5006e258083de1413e
1 parent bcf9f7b commit 5e89196

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎src/resources/batch.ts‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4660,6 +4660,14 @@ export namespace BatchSubmitParams {
46604660
* URLs and never follows links off them, so there is no crawl depth here.
46614661
*/
46624662
export interface Controls {
4663+
/**
4664+
* Path fragments that skip a sitemap URL in a crawl. Works separately from any
4665+
* regex inclusion or exclusion you define. Defaults to
4666+
* ["/feed","/rss","/atom","/api/","/cdn-cgi/","/_next/","/__"]. Pass `[]` to keep
4667+
* every listed URL.
4668+
*/
4669+
excludePaths?: Array<string>;
4670+
46634671
/**
46644672
* Regex pattern; sitemap URLs matching it are not scraped, even when they match
46654673
* `regex`.
@@ -5171,6 +5179,14 @@ export namespace BatchSubmitParams {
51715179
* URLs and never follows links off them, so there is no crawl depth here.
51725180
*/
51735181
export interface Controls {
5182+
/**
5183+
* Path fragments that skip a sitemap URL in a crawl. Works separately from any
5184+
* regex inclusion or exclusion you define. Defaults to
5185+
* ["/feed","/rss","/atom","/api/","/cdn-cgi/","/_next/","/__"]. Pass `[]` to keep
5186+
* every listed URL.
5187+
*/
5188+
excludePaths?: Array<string>;
5189+
51745190
/**
51755191
* Regex pattern; sitemap URLs matching it are not scraped, even when they match
51765192
* `regex`.
@@ -5766,6 +5782,14 @@ export namespace BatchSubmitParams {
57665782
* URLs and never follows links off them, so there is no crawl depth here.
57675783
*/
57685784
export interface Controls {
5785+
/**
5786+
* Path fragments that skip a sitemap URL in a crawl. Works separately from any
5787+
* regex inclusion or exclusion you define. Defaults to
5788+
* ["/feed","/rss","/atom","/api/","/cdn-cgi/","/_next/","/__"]. Pass `[]` to keep
5789+
* every listed URL.
5790+
*/
5791+
excludePaths?: Array<string>;
5792+
57695793
/**
57705794
* Regex pattern; sitemap URLs matching it are not scraped, even when they match
57715795
* `regex`.

0 commit comments

Comments
 (0)