Skip to content

Commit 5daf298

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) fix(brand): keep metadata-only usage logs for ZDR brand requests (#2234) Stainless-Generated-From: 105a8e18e087845013cc8b5ae2426df22dc73158
1 parent 03a296d commit 5daf298

4 files changed

Lines changed: 70 additions & 70 deletions

File tree

‎src/context/dev/resources/brand.py‎

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ def retrieve(
211211
212212
timeout_opts: Request deadline and what to return when it passes.
213213
214-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
215-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
216-
organization has ZDR.
214+
zdr: `enabled` disables request logs and traces and omits request and response
215+
content from usage logs. Brand data and hosted assets may still be stored.
216+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
217217
218218
extra_headers: Send extra headers
219219
@@ -636,9 +636,9 @@ def retrieve(
636636
637637
timeout_opts: Request deadline and what to return when it passes.
638638
639-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
640-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
641-
organization has ZDR.
639+
zdr: `enabled` disables request logs and traces and omits request and response
640+
content from usage logs. Brand data and hosted assets may still be stored.
641+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
642642
643643
extra_headers: Send extra headers
644644
@@ -816,9 +816,9 @@ def retrieve(
816816
817817
timeout_opts: Request deadline and what to return when it passes.
818818
819-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
820-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
821-
organization has ZDR.
819+
zdr: `enabled` disables request logs and traces and omits request and response
820+
content from usage logs. Brand data and hosted assets may still be stored.
821+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
822822
823823
extra_headers: Send extra headers
824824
@@ -1073,9 +1073,9 @@ def retrieve(
10731073
10741074
timeout_opts: Request deadline and what to return when it passes.
10751075
1076-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
1077-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
1078-
organization has ZDR.
1076+
zdr: `enabled` disables request logs and traces and omits request and response
1077+
content from usage logs. Brand data and hosted assets may still be stored.
1078+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
10791079
10801080
extra_headers: Send extra headers
10811081
@@ -1121,9 +1121,9 @@ def retrieve(
11211121
11221122
timeout_opts: Request deadline and what to return when it passes.
11231123
1124-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
1125-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
1126-
organization has ZDR.
1124+
zdr: `enabled` disables request logs and traces and omits request and response
1125+
content from usage logs. Brand data and hosted assets may still be stored.
1126+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
11271127
11281128
extra_headers: Send extra headers
11291129
@@ -1556,9 +1556,9 @@ def retrieve(
15561556
15571557
timeout_opts: Request deadline and what to return when it passes.
15581558
1559-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
1560-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
1561-
organization has ZDR.
1559+
zdr: `enabled` disables request logs and traces and omits request and response
1560+
content from usage logs. Brand data and hosted assets may still be stored.
1561+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
15621562
15631563
extra_headers: Send extra headers
15641564
@@ -2726,9 +2726,9 @@ async def retrieve(
27262726
27272727
timeout_opts: Request deadline and what to return when it passes.
27282728
2729-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
2730-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
2731-
organization has ZDR.
2729+
zdr: `enabled` disables request logs and traces and omits request and response
2730+
content from usage logs. Brand data and hosted assets may still be stored.
2731+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
27322732
27332733
extra_headers: Send extra headers
27342734
@@ -3151,9 +3151,9 @@ async def retrieve(
31513151
31523152
timeout_opts: Request deadline and what to return when it passes.
31533153
3154-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
3155-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
3156-
organization has ZDR.
3154+
zdr: `enabled` disables request logs and traces and omits request and response
3155+
content from usage logs. Brand data and hosted assets may still be stored.
3156+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
31573157
31583158
extra_headers: Send extra headers
31593159
@@ -3331,9 +3331,9 @@ async def retrieve(
33313331
33323332
timeout_opts: Request deadline and what to return when it passes.
33333333
3334-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
3335-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
3336-
organization has ZDR.
3334+
zdr: `enabled` disables request logs and traces and omits request and response
3335+
content from usage logs. Brand data and hosted assets may still be stored.
3336+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
33373337
33383338
extra_headers: Send extra headers
33393339
@@ -3588,9 +3588,9 @@ async def retrieve(
35883588
35893589
timeout_opts: Request deadline and what to return when it passes.
35903590
3591-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
3592-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
3593-
organization has ZDR.
3591+
zdr: `enabled` disables request logs and traces and omits request and response
3592+
content from usage logs. Brand data and hosted assets may still be stored.
3593+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
35943594
35953595
extra_headers: Send extra headers
35963596
@@ -3636,9 +3636,9 @@ async def retrieve(
36363636
36373637
timeout_opts: Request deadline and what to return when it passes.
36383638
3639-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
3640-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
3641-
organization has ZDR.
3639+
zdr: `enabled` disables request logs and traces and omits request and response
3640+
content from usage logs. Brand data and hosted assets may still be stored.
3641+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
36423642
36433643
extra_headers: Send extra headers
36443644
@@ -4071,9 +4071,9 @@ async def retrieve(
40714071
40724072
timeout_opts: Request deadline and what to return when it passes.
40734073
4074-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
4075-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
4076-
organization has ZDR.
4074+
zdr: `enabled` disables request logs and traces and omits request and response
4075+
content from usage logs. Brand data and hosted assets may still be stored.
4076+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
40774077
40784078
extra_headers: Send extra headers
40794079

‎src/context/dev/resources/web.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ def extract_styleguide(
230230
231231
timeout_opts: Request deadline and what to return when it passes.
232232
233-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
234-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
235-
organization has ZDR.
233+
zdr: `enabled` disables request logs and traces and omits request and response
234+
content from usage logs. Brand data and hosted assets may still be stored.
235+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
236236
237237
extra_headers: Send extra headers
238238
@@ -1769,9 +1769,9 @@ async def extract_styleguide(
17691769
17701770
timeout_opts: Request deadline and what to return when it passes.
17711771
1772-
zdr: `enabled` disables request logs, usage logs, and traces. Brand data and hosted
1773-
assets may still be stored. Returns 403 `ZDR_NOT_ENABLED` unless your
1774-
organization has ZDR.
1772+
zdr: `enabled` disables request logs and traces and omits request and response
1773+
content from usage logs. Brand data and hosted assets may still be stored.
1774+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
17751775
17761776
extra_headers: Send extra headers
17771777

‎src/context/dev/types/brand_retrieve_params.py‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ class BrandRetrieveByDomainRequest(TypedDict, total=False):
180180
"""Request deadline and what to return when it passes."""
181181

182182
zdr: Literal["enabled", "disabled"]
183-
"""`enabled` disables request logs, usage logs, and traces.
184-
185-
Brand data and hosted assets may still be stored. Returns 403 `ZDR_NOT_ENABLED`
186-
unless your organization has ZDR.
183+
"""
184+
`enabled` disables request logs and traces and omits request and response
185+
content from usage logs. Brand data and hosted assets may still be stored.
186+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
187187
"""
188188

189189

@@ -601,10 +601,10 @@ class BrandRetrieveByNameRequest(TypedDict, total=False):
601601
"""Request deadline and what to return when it passes."""
602602

603603
zdr: Literal["enabled", "disabled"]
604-
"""`enabled` disables request logs, usage logs, and traces.
605-
606-
Brand data and hosted assets may still be stored. Returns 403 `ZDR_NOT_ENABLED`
607-
unless your organization has ZDR.
604+
"""
605+
`enabled` disables request logs and traces and omits request and response
606+
content from usage logs. Brand data and hosted assets may still be stored.
607+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
608608
"""
609609

610610

@@ -776,10 +776,10 @@ class BrandRetrieveByEmailRequest(TypedDict, total=False):
776776
"""Request deadline and what to return when it passes."""
777777

778778
zdr: Literal["enabled", "disabled"]
779-
"""`enabled` disables request logs, usage logs, and traces.
780-
781-
Brand data and hosted assets may still be stored. Returns 403 `ZDR_NOT_ENABLED`
782-
unless your organization has ZDR.
779+
"""
780+
`enabled` disables request logs and traces and omits request and response
781+
content from usage logs. Brand data and hosted assets may still be stored.
782+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
783783
"""
784784

785785

@@ -1027,10 +1027,10 @@ class BrandRetrieveByTickerRequest(TypedDict, total=False):
10271027
"""Request deadline and what to return when it passes."""
10281028

10291029
zdr: Literal["enabled", "disabled"]
1030-
"""`enabled` disables request logs, usage logs, and traces.
1031-
1032-
Brand data and hosted assets may still be stored. Returns 403 `ZDR_NOT_ENABLED`
1033-
unless your organization has ZDR.
1030+
"""
1031+
`enabled` disables request logs and traces and omits request and response
1032+
content from usage logs. Brand data and hosted assets may still be stored.
1033+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
10341034
"""
10351035

10361036

@@ -1068,10 +1068,10 @@ class BrandRetrieveByDirectURLRequest(TypedDict, total=False):
10681068
"""Request deadline and what to return when it passes."""
10691069

10701070
zdr: Literal["enabled", "disabled"]
1071-
"""`enabled` disables request logs, usage logs, and traces.
1072-
1073-
Brand data and hosted assets may still be stored. Returns 403 `ZDR_NOT_ENABLED`
1074-
unless your organization has ZDR.
1071+
"""
1072+
`enabled` disables request logs and traces and omits request and response
1073+
content from usage logs. Brand data and hosted assets may still be stored.
1074+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
10751075
"""
10761076

10771077

@@ -1501,10 +1501,10 @@ class BrandRetrieveFromTransactionRequest(TypedDict, total=False):
15011501
"""Request deadline and what to return when it passes."""
15021502

15031503
zdr: Literal["enabled", "disabled"]
1504-
"""`enabled` disables request logs, usage logs, and traces.
1505-
1506-
Brand data and hosted assets may still be stored. Returns 403 `ZDR_NOT_ENABLED`
1507-
unless your organization has ZDR.
1504+
"""
1505+
`enabled` disables request logs and traces and omits request and response
1506+
content from usage logs. Brand data and hosted assets may still be stored.
1507+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
15081508
"""
15091509

15101510

‎src/context/dev/types/web_extract_styleguide_params.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ class WebExtractStyleguideParams(TypedDict, total=False):
4444
"""Request deadline and what to return when it passes."""
4545

4646
zdr: Literal["enabled", "disabled"]
47-
"""`enabled` disables request logs, usage logs, and traces.
48-
49-
Brand data and hosted assets may still be stored. Returns 403 `ZDR_NOT_ENABLED`
50-
unless your organization has ZDR.
47+
"""
48+
`enabled` disables request logs and traces and omits request and response
49+
content from usage logs. Brand data and hosted assets may still be stored.
50+
Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
5151
"""
5252

5353

0 commit comments

Comments
 (0)