Skip to content

Commit 96fee52

Browse files
feat(api): api update
1 parent c9d7471 commit 96fee52

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
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: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-3a8af8deb24e840300df2b1a74edfb075287af9f38e6d343960ba75fce00ab68.yml
3-
openapi_spec_hash: acc99bb843c5c7d630bc2a80b1b97444
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-5ccec8151205f9db00c9218a6c903ddb337cbbb51384876fb2090a181b92cdf5.yml
3+
openapi_spec_hash: d82bad84c8896bf48e3c3522cf9e37f8
44
config_hash: 80cc0bee9b5635f8cd6ec09e92226d88

src/resources/web.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,12 @@ export interface WebWebScrapeSitemapParams {
284284
* automatically normalized and validated.
285285
*/
286286
domain: string;
287+
288+
/**
289+
* Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
290+
* Minimum is 1, maximum is 100,000.
291+
*/
292+
maxLinks?: number;
287293
}
288294

289295
export declare namespace Web {

tests/api-resources/web.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ describe('resource web', () => {
100100

101101
// Mock server tests are disabled
102102
test.skip('webScrapeSitemap: required and optional params', async () => {
103-
const response = await client.web.webScrapeSitemap({ domain: 'domain' });
103+
const response = await client.web.webScrapeSitemap({ domain: 'domain', maxLinks: 1 });
104104
});
105105
});

0 commit comments

Comments
 (0)