Skip to content

Commit 1fe529d

Browse files
chore(api): update composite API spec
1 parent d1f357b commit 1fe529d

25 files changed

Lines changed: 185 additions & 5 deletions

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2276
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: 5cb356a7285c13aebeecc5b9e9a89f39
3+
openapi_spec_hash: 1eb5ca50c3a6934eeb13505783d992bf
44
config_hash: 0148d517bb02129e9e259f11db3933eb

src/cloudflare/types/workers/beta/worker.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from typing import List, Optional
44
from datetime import datetime
5+
from typing_extensions import Literal
56

67
from ...._models import BaseModel
78

@@ -59,6 +60,15 @@ class ObservabilityTraces(BaseModel):
5960
persist: Optional[bool] = None
6061
"""Whether trace persistence is enabled for the Worker."""
6162

63+
propagation_policy: Optional[Literal["authenticated", "accept"]] = None
64+
"""
65+
Controls how inbound trace context (traceparent/tracestate) headers on incoming
66+
requests are handled. "authenticated" (default) honors inbound trace context
67+
only when accompanied by a valid trace auth token. "accept" unconditionally
68+
accepts inbound trace context. Requires the trace propagation feature to be
69+
enabled.
70+
"""
71+
6272

6373
class Observability(BaseModel):
6474
"""Observability settings for the Worker."""

src/cloudflare/types/workers/beta/worker_create_params.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from typing import Iterable
6-
from typing_extensions import Required, TypedDict
6+
from typing_extensions import Literal, Required, TypedDict
77

88
from ...._types import SequenceNotStr
99

@@ -78,6 +78,15 @@ class ObservabilityTraces(TypedDict, total=False):
7878
persist: bool
7979
"""Whether trace persistence is enabled for the Worker."""
8080

81+
propagation_policy: Literal["authenticated", "accept"]
82+
"""
83+
Controls how inbound trace context (traceparent/tracestate) headers on incoming
84+
requests are handled. "authenticated" (default) honors inbound trace context
85+
only when accompanied by a valid trace auth token. "accept" unconditionally
86+
accepts inbound trace context. Requires the trace propagation feature to be
87+
enabled.
88+
"""
89+
8190

8291
class Observability(TypedDict, total=False):
8392
"""Observability settings for the Worker."""

src/cloudflare/types/workers/beta/worker_edit_params.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from typing import Iterable
6-
from typing_extensions import Required, TypedDict
6+
from typing_extensions import Literal, Required, TypedDict
77

88
from ...._types import SequenceNotStr
99

@@ -71,6 +71,15 @@ class ObservabilityTraces(TypedDict, total=False):
7171
persist: bool
7272
"""Whether trace persistence is enabled for the Worker."""
7373

74+
propagation_policy: Literal["authenticated", "accept"]
75+
"""
76+
Controls how inbound trace context (traceparent/tracestate) headers on incoming
77+
requests are handled. "authenticated" (default) honors inbound trace context
78+
only when accompanied by a valid trace auth token. "accept" unconditionally
79+
accepts inbound trace context. Requires the trace propagation feature to be
80+
enabled.
81+
"""
82+
7483

7584
class Observability(TypedDict, total=False):
7685
"""Observability settings for the Worker."""

src/cloudflare/types/workers/beta/worker_update_params.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from typing import Iterable
6-
from typing_extensions import Required, TypedDict
6+
from typing_extensions import Literal, Required, TypedDict
77

88
from ...._types import SequenceNotStr
99

@@ -78,6 +78,15 @@ class ObservabilityTraces(TypedDict, total=False):
7878
persist: bool
7979
"""Whether trace persistence is enabled for the Worker."""
8080

81+
propagation_policy: Literal["authenticated", "accept"]
82+
"""
83+
Controls how inbound trace context (traceparent/tracestate) headers on incoming
84+
requests are handled. "authenticated" (default) honors inbound trace context
85+
only when accompanied by a valid trace auth token. "accept" unconditionally
86+
accepts inbound trace context. Requires the trace propagation feature to be
87+
enabled.
88+
"""
89+
8190

8291
class Observability(TypedDict, total=False):
8392
"""Observability settings for the Worker."""

src/cloudflare/types/workers/script.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ class ObservabilityTraces(BaseModel):
7575
persist: Optional[bool] = None
7676
"""Whether trace persistence is enabled for the Worker."""
7777

78+
propagation_policy: Optional[Literal["authenticated", "accept"]] = None
79+
"""
80+
Controls how inbound trace context (traceparent/tracestate) headers on incoming
81+
requests are handled. "authenticated" (default) honors inbound trace context
82+
only when accompanied by a valid trace auth token. "accept" unconditionally
83+
accepts inbound trace context. Requires the trace propagation feature to be
84+
enabled.
85+
"""
86+
7887

7988
class Observability(BaseModel):
8089
"""Observability settings for the Worker."""

src/cloudflare/types/workers/script_list_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ class ObservabilityTraces(BaseModel):
7676
persist: Optional[bool] = None
7777
"""Whether trace persistence is enabled for the Worker."""
7878

79+
propagation_policy: Optional[Literal["authenticated", "accept"]] = None
80+
"""
81+
Controls how inbound trace context (traceparent/tracestate) headers on incoming
82+
requests are handled. "authenticated" (default) honors inbound trace context
83+
only when accompanied by a valid trace auth token. "accept" unconditionally
84+
accepts inbound trace context. Requires the trace propagation feature to be
85+
enabled.
86+
"""
87+
7988

8089
class Observability(BaseModel):
8190
"""Observability settings for the Worker."""

src/cloudflare/types/workers/script_setting.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Optional
4+
from typing_extensions import Literal
45

56
from ..._models import BaseModel
67
from .scripts.consumer_script import ConsumerScript
@@ -46,6 +47,15 @@ class ObservabilityTraces(BaseModel):
4647
persist: Optional[bool] = None
4748
"""Whether trace persistence is enabled for the Worker."""
4849

50+
propagation_policy: Optional[Literal["authenticated", "accept"]] = None
51+
"""
52+
Controls how inbound trace context (traceparent/tracestate) headers on incoming
53+
requests are handled. "authenticated" (default) honors inbound trace context
54+
only when accompanied by a valid trace auth token. "accept" unconditionally
55+
accepts inbound trace context. Requires the trace propagation feature to be
56+
enabled.
57+
"""
58+
4959

5060
class Observability(BaseModel):
5161
"""Observability settings for the Worker."""

src/cloudflare/types/workers/script_update_params.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,15 @@ class MetadataObservabilityTraces(TypedDict, total=False):
812812
persist: bool
813813
"""Whether trace persistence is enabled for the Worker."""
814814

815+
propagation_policy: Literal["authenticated", "accept"]
816+
"""
817+
Controls how inbound trace context (traceparent/tracestate) headers on incoming
818+
requests are handled. "authenticated" (default) honors inbound trace context
819+
only when accompanied by a valid trace auth token. "accept" unconditionally
820+
accepts inbound trace context. Requires the trace propagation feature to be
821+
enabled.
822+
"""
823+
815824

816825
class MetadataObservability(TypedDict, total=False):
817826
"""Observability settings for the Worker."""

src/cloudflare/types/workers/script_update_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ class ObservabilityTraces(BaseModel):
7575
persist: Optional[bool] = None
7676
"""Whether trace persistence is enabled for the Worker."""
7777

78+
propagation_policy: Optional[Literal["authenticated", "accept"]] = None
79+
"""
80+
Controls how inbound trace context (traceparent/tracestate) headers on incoming
81+
requests are handled. "authenticated" (default) honors inbound trace context
82+
only when accompanied by a valid trace auth token. "accept" unconditionally
83+
accepts inbound trace context. Requires the trace propagation feature to be
84+
enabled.
85+
"""
86+
7887

7988
class Observability(BaseModel):
8089
"""Observability settings for the Worker."""

0 commit comments

Comments
 (0)