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
Copy file name to clipboardExpand all lines: pkg/cmd/ai.go
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,12 @@ var aiExtractProduct = requestflag.WithInnerFlags(cli.Command{
41
41
Usage: "Optional request deadline and behavior on timeout. For GET requests, use timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded timeoutOpts object.",
42
42
BodyPath: "timeoutOpts",
43
43
},
44
+
&requestflag.Flag[string]{
45
+
Name: "zdr",
46
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
Copy file name to clipboardExpand all lines: pkg/cmd/industry.go
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,12 @@ var industryRetrieveNaics = requestflag.WithInnerFlags(cli.Command{
47
47
Usage: "Optional request deadline and behavior on timeout. For GET requests, use timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded timeoutOpts object.",
48
48
QueryPath: "timeoutOpts",
49
49
},
50
+
&requestflag.Flag[string]{
51
+
Name: "zdr",
52
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
53
+
Default: "disabled",
54
+
QueryPath: "zdr",
55
+
},
50
56
},
51
57
Action: handleIndustryRetrieveNaics,
52
58
HideHelpCommand: true,
@@ -104,6 +110,12 @@ var industryRetrieveSic = requestflag.WithInnerFlags(cli.Command{
104
110
Default: "original_sic",
105
111
QueryPath: "type",
106
112
},
113
+
&requestflag.Flag[string]{
114
+
Name: "zdr",
115
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
Copy file name to clipboardExpand all lines: pkg/cmd/parse.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ var parseHandle = requestflag.WithInnerFlags(cli.Command{
79
79
},
80
80
&requestflag.Flag[string]{
81
81
Name: "zdr",
82
-
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
82
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
Copy file name to clipboardExpand all lines: pkg/cmd/person.go
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,11 @@ var peopleEnrich = requestflag.WithInnerFlags(cli.Command{
53
53
Usage: "Optional request deadline and behavior on timeout. For GET requests, use timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded timeoutOpts object.",
54
54
BodyPath: "timeoutOpts",
55
55
},
56
+
&requestflag.Flag[string]{
57
+
Name: "zdr",
58
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
Copy file name to clipboardExpand all lines: pkg/cmd/web.go
+41-6Lines changed: 41 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,11 @@ var webAnswers = requestflag.WithInnerFlags(cli.Command{
45
45
Usage: "Optional request deadline and behavior on timeout. For GET requests, use timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded timeoutOpts object.",
46
46
BodyPath: "timeoutOpts",
47
47
},
48
+
&requestflag.Flag[string]{
49
+
Name: "zdr",
50
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
51
+
BodyPath: "zdr",
52
+
},
48
53
},
49
54
Action: handleWebAnswers,
50
55
HideHelpCommand: true,
@@ -157,6 +162,12 @@ var webExtract = requestflag.WithInnerFlags(cli.Command{
157
162
Usage: "Optional browser wait time in milliseconds after initial page load for each crawled page.",
158
163
BodyPath: "waitForMs",
159
164
},
165
+
&requestflag.Flag[string]{
166
+
Name: "zdr",
167
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
168
+
Default: "disabled",
169
+
BodyPath: "zdr",
170
+
},
160
171
},
161
172
Action: handleWebExtract,
162
173
HideHelpCommand: true,
@@ -219,6 +230,12 @@ var webExtractCompetitors = requestflag.WithInnerFlags(cli.Command{
219
230
Usage: "Optional request deadline and behavior on timeout. For GET requests, use timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded timeoutOpts object.",
220
231
QueryPath: "timeoutOpts",
221
232
},
233
+
&requestflag.Flag[string]{
234
+
Name: "zdr",
235
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
236
+
Default: "disabled",
237
+
QueryPath: "zdr",
238
+
},
222
239
},
223
240
Action: handleWebExtractCompetitors,
224
241
HideHelpCommand: true,
@@ -322,6 +339,12 @@ var webExtractStyleguide = requestflag.WithInnerFlags(cli.Command{
322
339
Usage: "Optional request deadline and behavior on timeout. For GET requests, use timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded timeoutOpts object.",
323
340
QueryPath: "timeoutOpts",
324
341
},
342
+
&requestflag.Flag[string]{
343
+
Name: "zdr",
344
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
345
+
Default: "disabled",
346
+
QueryPath: "zdr",
347
+
},
325
348
},
326
349
Action: handleWebExtractStyleguide,
327
350
HideHelpCommand: true,
@@ -422,7 +445,7 @@ var webScreenshot = requestflag.WithInnerFlags(cli.Command{
422
445
},
423
446
&requestflag.Flag[string]{
424
447
Name: "zdr",
425
-
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
448
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
426
449
Default: "disabled",
427
450
QueryPath: "zdr",
428
451
},
@@ -513,6 +536,12 @@ var webSearch = requestflag.WithInnerFlags(cli.Command{
513
536
Usage: "Optional request deadline and behavior on timeout. For GET requests, use timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded timeoutOpts object.",
514
537
BodyPath: "timeoutOpts",
515
538
},
539
+
&requestflag.Flag[string]{
540
+
Name: "zdr",
541
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
542
+
Default: "disabled",
543
+
BodyPath: "zdr",
544
+
},
516
545
},
517
546
Action: handleWebSearch,
518
547
HideHelpCommand: true,
@@ -780,7 +809,7 @@ var webWebScrapeBytes = requestflag.WithInnerFlags(cli.Command{
780
809
},
781
810
&requestflag.Flag[string]{
782
811
Name: "zdr",
783
-
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
812
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
784
813
Default: "disabled",
785
814
QueryPath: "zdr",
786
815
},
@@ -890,7 +919,7 @@ var webWebScrapeHTML = requestflag.WithInnerFlags(cli.Command{
890
919
},
891
920
&requestflag.Flag[string]{
892
921
Name: "zdr",
893
-
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
922
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
894
923
Default: "disabled",
895
924
QueryPath: "zdr",
896
925
},
@@ -987,6 +1016,12 @@ var webWebScrapeImages = requestflag.WithInnerFlags(cli.Command{
987
1016
Usage: "Optional browser wait time in milliseconds after initial page load before collecting images. Min: 0. Max: 30000 (30 seconds). When combined with timeoutOpts, timeoutOpts.milliseconds must be at least waitForMs + 10000 ms; a shorter deadline is rejected with 400 TIMEOUT_TOO_SHORT_FOR_WAIT.",
988
1017
QueryPath: "waitForMs",
989
1018
},
1019
+
&requestflag.Flag[string]{
1020
+
Name: "zdr",
1021
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
1022
+
Default: "disabled",
1023
+
QueryPath: "zdr",
1024
+
},
990
1025
},
991
1026
Action: handleWebWebScrapeImages,
992
1027
HideHelpCommand: true,
@@ -999,7 +1034,7 @@ var webWebScrapeImages = requestflag.WithInnerFlags(cli.Command{
999
1034
},
1000
1035
&requestflag.InnerFlag[bool]{
1001
1036
Name: "enrichment.hosted-url",
1002
-
Usage: "Host materializable images on the Brand.dev CDN and return their URL and MIME type.",
1037
+
Usage: "Host materializable images on the Brand.dev CDN and return their URL and MIME type. Ignored when zero data retention is enabled.",
1003
1038
InnerField: "hostedUrl",
1004
1039
},
1005
1040
&requestflag.InnerFlag[int64]{
@@ -1134,7 +1169,7 @@ var webWebScrapeMd = requestflag.WithInnerFlags(cli.Command{
1134
1169
},
1135
1170
&requestflag.Flag[string]{
1136
1171
Name: "zdr",
1137
-
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
1172
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
1138
1173
Default: "disabled",
1139
1174
QueryPath: "zdr",
1140
1175
},
@@ -1233,7 +1268,7 @@ var webWebScrapeSitemap = requestflag.WithInnerFlags(cli.Command{
1233
1268
},
1234
1269
&requestflag.Flag[string]{
1235
1270
Name: "zdr",
1236
-
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
1271
+
Usage: "Set to enabled to bypass shared caches and omit request and response content from retained usage logs. Asset uploads are skipped, so hosted image URLs are omitted. Requires zero data retention to be enabled for your organization (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.",
0 commit comments