Skip to content

Commit 8bcacae

Browse files
author
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) Stainless-Generated-From: 877ae208f4f229e77ee99db0a9bd5c63d425c0b2
1 parent b45f902 commit 8bcacae

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

‎pkg/cmd/brand.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ var brandRetrieve = requestflag.WithInnerFlags(cli.Command{
6060
Usage: "Request deadline and what to return when it passes.",
6161
BodyPath: "timeoutOpts",
6262
},
63+
&requestflag.Flag[string]{
64+
Name: "zdr",
65+
Usage: "`enabled` disables request logs, usage logs, and traces. Brand data and hosted assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.",
66+
BodyPath: "zdr",
67+
},
6368
&requestflag.Flag[string]{
6469
Name: "name",
6570
Usage: "Company name to retrieve brand data for (e.g., 'Apple Inc').",

‎pkg/cmd/brand_test.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func TestBrandRetrieve(t *testing.T) {
2525
"--tag", "production",
2626
"--tag", "team-alpha",
2727
"--timeout-opts", "{milliseconds: 1000, behavior: fail}",
28+
"--zdr", "enabled",
2829
)
2930
})
3031

@@ -47,6 +48,7 @@ func TestBrandRetrieve(t *testing.T) {
4748
"--tag", "team-alpha",
4849
"--timeout-opts.milliseconds", "1000",
4950
"--timeout-opts.behavior", "fail",
51+
"--zdr", "enabled",
5052
)
5153
})
5254

@@ -65,7 +67,8 @@ func TestBrandRetrieve(t *testing.T) {
6567
" - team-alpha\n" +
6668
"timeoutOpts:\n" +
6769
" milliseconds: 1000\n" +
68-
" behavior: fail\n")
70+
" behavior: fail\n" +
71+
"zdr: enabled\n")
6972
mocktest.TestRunMockTestWithPipeAndFlags(
7073
t, pipeData,
7174
"--api-key", "string",

‎pkg/cmd/web.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ var webExtractStyleguide = requestflag.WithInnerFlags(cli.Command{
167167
},
168168
&requestflag.Flag[string]{
169169
Name: "zdr",
170-
Usage: "`enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.",
171-
Default: "disabled",
170+
Usage: "`enabled` disables request logs, usage logs, and traces. Brand data and hosted assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.",
172171
QueryPath: "zdr",
173172
},
174173
},

0 commit comments

Comments
 (0)