Skip to content

Commit e21218b

Browse files
feat(api): api update
1 parent d55d529 commit e21218b

6 files changed

Lines changed: 18 additions & 9 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 30
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-d49b84cf1125618f171698ff1ee4ff9a8d04151619cb4a56d650103869834465.yml
3-
openapi_spec_hash: 49b7a6f59dcdff1e2bf88feb6474a562
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-8cd70a2b5bd380b75e5f94dc376bd8c704ee0431bdfe8af1b017facc2b883097.yml
3+
openapi_spec_hash: bb1d32ae5c46be85ee8bb3b13f5b1150
44
config_hash: daabb160675d86b354711da1e77e5129

‎pkg/cmd/ai.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var aiExtractProduct = cli.Command{
3333
},
3434
&requestflag.Flag[[]string]{
3535
Name: "tag",
36-
Usage: "Optional caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
36+
Usage: "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
3737
BodyPath: "tags",
3838
},
3939
&requestflag.Flag[int64]{
@@ -69,7 +69,7 @@ var aiExtractProducts = cli.Command{
6969
},
7070
&requestflag.Flag[[]string]{
7171
Name: "tag",
72-
Usage: "Optional caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
72+
Usage: "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
7373
BodyPath: "tags",
7474
},
7575
&requestflag.Flag[int64]{

‎pkg/cmd/brand.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var brandRetrieve = cli.Command{
4747
},
4848
&requestflag.Flag[[]string]{
4949
Name: "tag",
50-
Usage: "Optional caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
50+
Usage: "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
5151
BodyPath: "tags",
5252
},
5353
&requestflag.Flag[int64]{

‎pkg/cmd/utility.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var utilityPrefetch = cli.Command{
3333
},
3434
&requestflag.Flag[[]string]{
3535
Name: "tag",
36-
Usage: "Optional caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
36+
Usage: "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
3737
BodyPath: "tags",
3838
},
3939
&requestflag.Flag[int64]{

‎pkg/cmd/web.go‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ var webExtract = requestflag.WithInnerFlags(cli.Command{
7676
Default: map[string]any{"shouldParse": true},
7777
BodyPath: "pdf",
7878
},
79+
&requestflag.Flag[bool]{
80+
Name: "settle-animations",
81+
Usage: "When true, waits briefly for CSS and transition animations to settle before extracting each crawled page. Defaults to false. This adds a bit of latency in exchange for more stable output on animated pages.",
82+
Default: false,
83+
BodyPath: "settleAnimations",
84+
},
7985
&requestflag.Flag[int64]{
8086
Name: "stop-after-ms",
8187
Usage: "Soft time budget for the crawl in milliseconds. Min: 10000 (10s). Max: 110000 (110s). Default: 80000 (80s).",
@@ -84,7 +90,7 @@ var webExtract = requestflag.WithInnerFlags(cli.Command{
8490
},
8591
&requestflag.Flag[[]string]{
8692
Name: "tag",
87-
Usage: "Optional caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
93+
Usage: "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
8894
BodyPath: "tags",
8995
},
9096
&requestflag.Flag[int64]{
@@ -370,7 +376,7 @@ var webSearch = requestflag.WithInnerFlags(cli.Command{
370376
},
371377
&requestflag.Flag[[]string]{
372378
Name: "tag",
373-
Usage: "Optional caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
379+
Usage: "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
374380
BodyPath: "tags",
375381
},
376382
&requestflag.Flag[int64]{
@@ -529,7 +535,7 @@ var webWebCrawlMd = requestflag.WithInnerFlags(cli.Command{
529535
},
530536
&requestflag.Flag[[]string]{
531537
Name: "tag",
532-
Usage: "Optional caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
538+
Usage: "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
533539
BodyPath: "tags",
534540
},
535541
&requestflag.Flag[int64]{

‎pkg/cmd/web_test.go‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func TestWebExtract(t *testing.T) {
2626
"--max-depth", "0",
2727
"--max-pages", "1",
2828
"--pdf", "{end: 1, shouldParse: true, start: 1}",
29+
"--settle-animations=true",
2930
"--stop-after-ms", "10000",
3031
"--tag", "production",
3132
"--tag", "team-alpha",
@@ -55,6 +56,7 @@ func TestWebExtract(t *testing.T) {
5556
"--pdf.end", "1",
5657
"--pdf.should-parse=true",
5758
"--pdf.start", "1",
59+
"--settle-animations=true",
5860
"--stop-after-ms", "10000",
5961
"--tag", "production",
6062
"--tag", "team-alpha",
@@ -83,6 +85,7 @@ func TestWebExtract(t *testing.T) {
8385
" end: 1\n" +
8486
" shouldParse: true\n" +
8587
" start: 1\n" +
88+
"settleAnimations: true\n" +
8689
"stopAfterMs: 10000\n" +
8790
"tags:\n" +
8891
" - production\n" +

0 commit comments

Comments
 (0)