1616 "ScriptUpdateParams" ,
1717 "Variant0" ,
1818 "Variant0Metadata" ,
19+ "Variant0MetadataAssets" ,
20+ "Variant0MetadataAssetsConfig" ,
1921 "Variant0MetadataBinding" ,
2022 "Variant0MetadataMigrations" ,
2123 "Variant0MetadataObservability" ,
@@ -48,6 +50,25 @@ class Variant0(TypedDict, total=False):
4850 """JSON encoded metadata about the uploaded parts and Worker configuration."""
4951
5052
53+ class Variant0MetadataAssetsConfig (TypedDict , total = False ):
54+ html_handling : Literal ["auto-trailing-slash" , "force-trailing-slash" , "drop-trailing-slash" , "none" ]
55+ """Determines the redirects and rewrites of requests for HTML content."""
56+
57+ not_found_handling : Literal ["none" , "404-page" , "single-page-application" ]
58+ """
59+ Determines the response when a request does not match a static asset, and there
60+ is no Worker script.
61+ """
62+
63+
64+ class Variant0MetadataAssets (TypedDict , total = False ):
65+ config : Variant0MetadataAssetsConfig
66+ """Configuration for assets within a Worker."""
67+
68+ jwt : str
69+ """Token provided upon successful upload of all files from a registered manifest."""
70+
71+
5172class Variant0MetadataBindingTyped (TypedDict , total = False ):
5273 name : str
5374 """Name of the binding variable."""
@@ -67,7 +88,7 @@ class Variant0MetadataBindingTyped(TypedDict, total=False):
6788
6889class Variant0MetadataObservability (TypedDict , total = False ):
6990 enabled : Required [bool ]
70- """Whether observability is enabled for the Worker"""
91+ """Whether observability is enabled for the Worker. """
7192
7293 head_sampling_rate : Optional [float ]
7394 """The sampling rate for incoming requests.
@@ -77,6 +98,9 @@ class Variant0MetadataObservability(TypedDict, total=False):
7798
7899
79100class Variant0Metadata (TypedDict , total = False ):
101+ assets : Variant0MetadataAssets
102+ """Configuration for assets within a Worker"""
103+
80104 bindings : Iterable [Variant0MetadataBinding ]
81105 """List of bindings available to the worker."""
82106
@@ -101,6 +125,12 @@ class Variant0Metadata(TypedDict, total=False):
101125 included in a `compatibility_date`.
102126 """
103127
128+ keep_assets : bool
129+ """
130+ Retain assets which exist for a previously uploaded Worker version; used in lieu
131+ of providing a completion token.
132+ """
133+
104134 keep_bindings : List [str ]
105135 """List of binding types to keep from previous_upload."""
106136
@@ -117,12 +147,12 @@ class Variant0Metadata(TypedDict, total=False):
117147 """Migrations to apply for Durable Objects associated with this Worker."""
118148
119149 observability : Variant0MetadataObservability
120- """Observability settings for the Worker"""
150+ """Observability settings for the Worker. """
121151
122152 placement : PlacementConfigurationParam
123153
124154 tags : List [str ]
125- """List of strings to use as tags for this Worker"""
155+ """List of strings to use as tags for this Worker. """
126156
127157 tail_consumers : Iterable [ConsumerScriptParam ]
128158 """List of Workers that will consume logs from the attached Worker."""
@@ -131,7 +161,7 @@ class Variant0Metadata(TypedDict, total=False):
131161 """Usage model to apply to invocations."""
132162
133163 version_tags : Dict [str , str ]
134- """Key-value pairs to use as tags for this version of this Worker"""
164+ """Key-value pairs to use as tags for this version of this Worker. """
135165
136166
137167class Variant1 (TypedDict , total = False ):
0 commit comments