diff --git a/src/cloudflare/types/pagerules/target.py b/src/cloudflare/types/pagerules/target.py index f15c3acef68..497c176cb88 100644 --- a/src/cloudflare/types/pagerules/target.py +++ b/src/cloudflare/types/pagerules/target.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Optional from typing_extensions import Literal from ..._models import BaseModel @@ -21,8 +22,8 @@ class Constraint(BaseModel): class Target(BaseModel): - constraint: Constraint + constraint: Optional[Constraint] = None """String constraint.""" - target: Literal["url"] + target: Optional[Literal["url"]] = None """A target based on the URL of the request.""" diff --git a/src/cloudflare/types/pagerules/target_param.py b/src/cloudflare/types/pagerules/target_param.py index 2977b64466f..9d6e179693e 100644 --- a/src/cloudflare/types/pagerules/target_param.py +++ b/src/cloudflare/types/pagerules/target_param.py @@ -21,8 +21,8 @@ class Constraint(TypedDict, total=False): class TargetParam(TypedDict, total=False): - constraint: Required[Constraint] + constraint: Constraint """String constraint.""" - target: Required[Literal["url"]] + target: Literal["url"] """A target based on the URL of the request."""