@distilled.cloud/cloudflare 0.6.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/lib/services/accounts.d.ts +901 -36
  2. package/lib/services/accounts.d.ts.map +1 -1
  3. package/lib/services/accounts.js +1386 -32
  4. package/lib/services/accounts.js.map +1 -1
  5. package/lib/services/addressing.d.ts +8 -2
  6. package/lib/services/addressing.d.ts.map +1 -1
  7. package/lib/services/addressing.js +14 -2
  8. package/lib/services/addressing.js.map +1 -1
  9. package/lib/services/ai-gateway.d.ts.map +1 -1
  10. package/lib/services/ai-gateway.js +7 -7
  11. package/lib/services/ai-gateway.js.map +1 -1
  12. package/lib/services/aisearch.d.ts.map +1 -1
  13. package/lib/services/aisearch.js +24 -9
  14. package/lib/services/aisearch.js.map +1 -1
  15. package/lib/services/alerting.js +2 -2
  16. package/lib/services/alerting.js.map +1 -1
  17. package/lib/services/api-gateway.d.ts +114 -16
  18. package/lib/services/api-gateway.d.ts.map +1 -1
  19. package/lib/services/api-gateway.js +187 -15
  20. package/lib/services/api-gateway.js.map +1 -1
  21. package/lib/services/audit-logs.d.ts +63 -3
  22. package/lib/services/audit-logs.d.ts.map +1 -1
  23. package/lib/services/audit-logs.js +62 -3
  24. package/lib/services/audit-logs.js.map +1 -1
  25. package/lib/services/bot-management.d.ts +54 -8
  26. package/lib/services/bot-management.d.ts.map +1 -1
  27. package/lib/services/bot-management.js +128 -16
  28. package/lib/services/bot-management.js.map +1 -1
  29. package/lib/services/brand-protection.d.ts.map +1 -1
  30. package/lib/services/brand-protection.js +26 -8
  31. package/lib/services/brand-protection.js.map +1 -1
  32. package/lib/services/browser-rendering.d.ts.map +1 -1
  33. package/lib/services/browser-rendering.js +13 -10
  34. package/lib/services/browser-rendering.js.map +1 -1
  35. package/lib/services/cloudforce-one.d.ts +61 -6
  36. package/lib/services/cloudforce-one.d.ts.map +1 -1
  37. package/lib/services/cloudforce-one.js +107 -6
  38. package/lib/services/cloudforce-one.js.map +1 -1
  39. package/lib/services/custom-certificates.d.ts +145 -8
  40. package/lib/services/custom-certificates.d.ts.map +1 -1
  41. package/lib/services/custom-certificates.js +226 -7
  42. package/lib/services/custom-certificates.js.map +1 -1
  43. package/lib/services/custom-hostnames.d.ts +8 -8
  44. package/lib/services/custom-hostnames.d.ts.map +1 -1
  45. package/lib/services/custom-hostnames.js +17 -14
  46. package/lib/services/custom-hostnames.js.map +1 -1
  47. package/lib/services/d1.d.ts +68 -8
  48. package/lib/services/d1.d.ts.map +1 -1
  49. package/lib/services/d1.js +96 -8
  50. package/lib/services/d1.js.map +1 -1
  51. package/lib/services/dns-firewall.d.ts +57 -4
  52. package/lib/services/dns-firewall.d.ts.map +1 -1
  53. package/lib/services/dns-firewall.js +86 -5
  54. package/lib/services/dns-firewall.js.map +1 -1
  55. package/lib/services/dns.d.ts +85 -745
  56. package/lib/services/dns.d.ts.map +1 -1
  57. package/lib/services/dns.js +118 -1424
  58. package/lib/services/dns.js.map +1 -1
  59. package/lib/services/email-routing.d.ts +59 -7
  60. package/lib/services/email-routing.d.ts.map +1 -1
  61. package/lib/services/email-routing.js +165 -7
  62. package/lib/services/email-routing.js.map +1 -1
  63. package/lib/services/firewall.d.ts +228 -39
  64. package/lib/services/firewall.d.ts.map +1 -1
  65. package/lib/services/firewall.js +220 -33
  66. package/lib/services/firewall.js.map +1 -1
  67. package/lib/services/healthchecks.d.ts +112 -6
  68. package/lib/services/healthchecks.d.ts.map +1 -1
  69. package/lib/services/healthchecks.js +248 -14
  70. package/lib/services/healthchecks.js.map +1 -1
  71. package/lib/services/hostnames.d.ts +5 -5
  72. package/lib/services/hostnames.d.ts.map +1 -1
  73. package/lib/services/hostnames.js +16 -4
  74. package/lib/services/hostnames.js.map +1 -1
  75. package/lib/services/hyperdrive.d.ts +223 -11
  76. package/lib/services/hyperdrive.d.ts.map +1 -1
  77. package/lib/services/hyperdrive.js +351 -11
  78. package/lib/services/hyperdrive.js.map +1 -1
  79. package/lib/services/iam.d.ts +62 -2
  80. package/lib/services/iam.d.ts.map +1 -1
  81. package/lib/services/iam.js +82 -11
  82. package/lib/services/iam.js.map +1 -1
  83. package/lib/services/images.d.ts +9 -1
  84. package/lib/services/images.d.ts.map +1 -1
  85. package/lib/services/images.js +12 -1
  86. package/lib/services/images.js.map +1 -1
  87. package/lib/services/intel.d.ts +4 -4
  88. package/lib/services/intel.d.ts.map +1 -1
  89. package/lib/services/intel.js +2 -3
  90. package/lib/services/intel.js.map +1 -1
  91. package/lib/services/kv.d.ts.map +1 -1
  92. package/lib/services/kv.js +2 -2
  93. package/lib/services/kv.js.map +1 -1
  94. package/lib/services/load-balancers.d.ts +537 -108
  95. package/lib/services/load-balancers.d.ts.map +1 -1
  96. package/lib/services/load-balancers.js +1266 -161
  97. package/lib/services/load-balancers.js.map +1 -1
  98. package/lib/services/logpush.d.ts +153 -9
  99. package/lib/services/logpush.d.ts.map +1 -1
  100. package/lib/services/logpush.js +246 -9
  101. package/lib/services/logpush.js.map +1 -1
  102. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  103. package/lib/services/magic-cloud-networking.js +54 -30
  104. package/lib/services/magic-cloud-networking.js.map +1 -1
  105. package/lib/services/magic-network-monitoring.d.ts +46 -5
  106. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  107. package/lib/services/magic-network-monitoring.js +79 -5
  108. package/lib/services/magic-network-monitoring.js.map +1 -1
  109. package/lib/services/magic-transit.d.ts +127 -21
  110. package/lib/services/magic-transit.d.ts.map +1 -1
  111. package/lib/services/magic-transit.js +291 -29
  112. package/lib/services/magic-transit.js.map +1 -1
  113. package/lib/services/memberships.d.ts +248 -52
  114. package/lib/services/memberships.d.ts.map +1 -1
  115. package/lib/services/memberships.js +360 -39
  116. package/lib/services/memberships.js.map +1 -1
  117. package/lib/services/page-rules.d.ts +432 -8
  118. package/lib/services/page-rules.d.ts.map +1 -1
  119. package/lib/services/page-rules.js +877 -33
  120. package/lib/services/page-rules.js.map +1 -1
  121. package/lib/services/pages.d.ts +457 -297
  122. package/lib/services/pages.d.ts.map +1 -1
  123. package/lib/services/pages.js +1366 -491
  124. package/lib/services/pages.js.map +1 -1
  125. package/lib/services/pipelines.d.ts +96 -76
  126. package/lib/services/pipelines.d.ts.map +1 -1
  127. package/lib/services/pipelines.js +145 -197
  128. package/lib/services/pipelines.js.map +1 -1
  129. package/lib/services/queues.d.ts +228 -12
  130. package/lib/services/queues.d.ts.map +1 -1
  131. package/lib/services/queues.js +487 -11
  132. package/lib/services/queues.js.map +1 -1
  133. package/lib/services/radar.d.ts +82 -18
  134. package/lib/services/radar.d.ts.map +1 -1
  135. package/lib/services/radar.js +111 -47
  136. package/lib/services/radar.js.map +1 -1
  137. package/lib/services/realtime-kit.d.ts +650 -334
  138. package/lib/services/realtime-kit.d.ts.map +1 -1
  139. package/lib/services/realtime-kit.js +1472 -693
  140. package/lib/services/realtime-kit.js.map +1 -1
  141. package/lib/services/request-tracers.d.ts +12 -1
  142. package/lib/services/request-tracers.d.ts.map +1 -1
  143. package/lib/services/request-tracers.js +28 -3
  144. package/lib/services/request-tracers.js.map +1 -1
  145. package/lib/services/rules.d.ts +65 -10
  146. package/lib/services/rules.d.ts.map +1 -1
  147. package/lib/services/rules.js +102 -8
  148. package/lib/services/rules.js.map +1 -1
  149. package/lib/services/rulesets.d.ts +7892 -1806
  150. package/lib/services/rulesets.d.ts.map +1 -1
  151. package/lib/services/rulesets.js +18720 -4149
  152. package/lib/services/rulesets.js.map +1 -1
  153. package/lib/services/rum.d.ts +45 -5
  154. package/lib/services/rum.d.ts.map +1 -1
  155. package/lib/services/rum.js +80 -4
  156. package/lib/services/rum.js.map +1 -1
  157. package/lib/services/schema-validation.js +2 -2
  158. package/lib/services/schema-validation.js.map +1 -1
  159. package/lib/services/spectrum.d.ts +139 -33
  160. package/lib/services/spectrum.d.ts.map +1 -1
  161. package/lib/services/spectrum.js +190 -34
  162. package/lib/services/spectrum.js.map +1 -1
  163. package/lib/services/speed.d.ts +345 -24
  164. package/lib/services/speed.d.ts.map +1 -1
  165. package/lib/services/speed.js +785 -19
  166. package/lib/services/speed.js.map +1 -1
  167. package/lib/services/ssl.d.ts +6 -6
  168. package/lib/services/ssl.d.ts.map +1 -1
  169. package/lib/services/ssl.js +5 -5
  170. package/lib/services/ssl.js.map +1 -1
  171. package/lib/services/stream.d.ts +171 -17
  172. package/lib/services/stream.d.ts.map +1 -1
  173. package/lib/services/stream.js +164 -11
  174. package/lib/services/stream.js.map +1 -1
  175. package/lib/services/token-validation.d.ts +16 -2
  176. package/lib/services/token-validation.d.ts.map +1 -1
  177. package/lib/services/token-validation.js +32 -2
  178. package/lib/services/token-validation.js.map +1 -1
  179. package/lib/services/url-scanner.d.ts +43 -11
  180. package/lib/services/url-scanner.d.ts.map +1 -1
  181. package/lib/services/url-scanner.js +46 -11
  182. package/lib/services/url-scanner.js.map +1 -1
  183. package/lib/services/user.d.ts +312 -21
  184. package/lib/services/user.d.ts.map +1 -1
  185. package/lib/services/user.js +442 -19
  186. package/lib/services/user.js.map +1 -1
  187. package/lib/services/workers-for-platforms.d.ts +223 -13
  188. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  189. package/lib/services/workers-for-platforms.js +481 -13
  190. package/lib/services/workers-for-platforms.js.map +1 -1
  191. package/lib/services/workers.d.ts +345 -31
  192. package/lib/services/workers.d.ts.map +1 -1
  193. package/lib/services/workers.js +649 -34
  194. package/lib/services/workers.js.map +1 -1
  195. package/lib/services/zaraz.d.ts +212 -11
  196. package/lib/services/zaraz.d.ts.map +1 -1
  197. package/lib/services/zaraz.js +311 -30
  198. package/lib/services/zaraz.js.map +1 -1
  199. package/lib/services/zero-trust.d.ts +19333 -1905
  200. package/lib/services/zero-trust.d.ts.map +1 -1
  201. package/lib/services/zero-trust.js +30269 -5710
  202. package/lib/services/zero-trust.js.map +1 -1
  203. package/lib/services/zones.d.ts +61 -7
  204. package/lib/services/zones.d.ts.map +1 -1
  205. package/lib/services/zones.js +188 -7
  206. package/lib/services/zones.js.map +1 -1
  207. package/package.json +2 -2
  208. package/src/services/accounts.ts +2897 -63
  209. package/src/services/addressing.ts +28 -4
  210. package/src/services/ai-gateway.ts +9 -7
  211. package/src/services/aisearch.ts +28 -9
  212. package/src/services/alerting.ts +2 -2
  213. package/src/services/api-gateway.ts +410 -27
  214. package/src/services/audit-logs.ts +135 -5
  215. package/src/services/bot-management.ts +282 -24
  216. package/src/services/brand-protection.ts +28 -8
  217. package/src/services/browser-rendering.ts +31 -11
  218. package/src/services/cloudforce-one.ts +201 -9
  219. package/src/services/custom-certificates.ts +405 -14
  220. package/src/services/custom-hostnames.ts +29 -22
  221. package/src/services/d1.ts +180 -12
  222. package/src/services/dns-firewall.ts +163 -7
  223. package/src/services/dns.ts +213 -2389
  224. package/src/services/email-routing.ts +346 -12
  225. package/src/services/firewall.ts +556 -72
  226. package/src/services/healthchecks.ts +463 -18
  227. package/src/services/hostnames.ts +21 -9
  228. package/src/services/hyperdrive.ts +730 -17
  229. package/src/services/iam.ts +228 -24
  230. package/src/services/images.ts +29 -2
  231. package/src/services/intel.ts +6 -5
  232. package/src/services/kv.ts +6 -2
  233. package/src/services/load-balancers.ts +2387 -294
  234. package/src/services/logpush.ts +659 -15
  235. package/src/services/magic-cloud-networking.ts +74 -30
  236. package/src/services/magic-network-monitoring.ts +170 -8
  237. package/src/services/magic-transit.ts +631 -62
  238. package/src/services/memberships.ts +710 -91
  239. package/src/services/page-rules.ts +1592 -88
  240. package/src/services/pages.ts +2011 -1098
  241. package/src/services/pipelines.ts +285 -331
  242. package/src/services/queues.ts +1110 -22
  243. package/src/services/radar.ts +128 -64
  244. package/src/services/realtime-kit.ts +2829 -1603
  245. package/src/services/request-tracers.ts +54 -4
  246. package/src/services/rules.ts +214 -18
  247. package/src/services/rulesets.ts +34524 -6913
  248. package/src/services/rum.ts +187 -9
  249. package/src/services/schema-validation.ts +2 -2
  250. package/src/services/spectrum.ts +357 -67
  251. package/src/services/speed.ts +1845 -42
  252. package/src/services/ssl.ts +11 -11
  253. package/src/services/stream.ts +397 -22
  254. package/src/services/token-validation.ts +64 -4
  255. package/src/services/url-scanner.ts +92 -20
  256. package/src/services/user.ts +973 -34
  257. package/src/services/workers-for-platforms.ts +1012 -39
  258. package/src/services/workers.ts +1472 -120
  259. package/src/services/zaraz.ts +640 -37
  260. package/src/services/zero-trust.ts +55498 -12667
  261. package/src/services/zones.ts +360 -14
@@ -103,30 +103,40 @@ export interface GetProjectResponse {
103
103
  envVars: Record<string, unknown> | null;
104
104
  environment: "preview" | "production";
105
105
  isSkipped: boolean;
106
- latestStage: unknown;
106
+ latestStage: {
107
+ endedOn: string | null;
108
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
109
+ startedOn: string | null;
110
+ status: "success" | "idle" | "active" | "failure" | "canceled";
111
+ };
107
112
  modifiedOn: string;
108
113
  projectId: string;
109
114
  projectName: string;
110
115
  shortId: string;
111
116
  source: {
112
117
  config: {
113
- deploymentsEnabled?: boolean | null;
114
- owner?: string | null;
115
- ownerId?: string | null;
116
- pathExcludes?: string[] | null;
117
- pathIncludes?: string[] | null;
118
- prCommentsEnabled?: boolean | null;
119
- previewBranchExcludes?: string[] | null;
120
- previewBranchIncludes?: string[] | null;
121
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
122
- productionBranch?: string | null;
123
- productionDeploymentsEnabled?: boolean | null;
124
- repoId?: string | null;
125
- repoName?: string | null;
118
+ deploymentsEnabled: boolean;
119
+ owner: string;
120
+ ownerId: string;
121
+ pathExcludes: string[];
122
+ pathIncludes: string[];
123
+ prCommentsEnabled: boolean;
124
+ previewBranchExcludes: string[];
125
+ previewBranchIncludes: string[];
126
+ previewDeploymentSetting: "all" | "none" | "custom";
127
+ productionBranch: string;
128
+ productionDeploymentsEnabled: boolean;
129
+ repoId: string;
130
+ repoName: string;
126
131
  };
127
132
  type: "github" | "gitlab";
128
133
  };
129
- stages: unknown[];
134
+ stages: {
135
+ endedOn: string | null;
136
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
137
+ startedOn: string | null;
138
+ status: "success" | "idle" | "active" | "failure" | "canceled";
139
+ }[];
130
140
  url: string;
131
141
  usesFunctions?: boolean | null;
132
142
  } | null;
@@ -135,17 +145,18 @@ export interface GetProjectResponse {
135
145
  /** Configs for deployments in a project. */
136
146
  deploymentConfigs: {
137
147
  preview: {
148
+ alwaysUseLatestCompatibilityDate: boolean;
149
+ buildImageMajorVersion: number;
150
+ compatibilityDate: string;
151
+ compatibilityFlags: string[];
152
+ envVars: Record<string, unknown> | null;
153
+ failOpen: boolean;
154
+ usageModel: "standard" | "bundled" | "unbound";
138
155
  aiBindings?: Record<string, unknown> | null;
139
- alwaysUseLatestCompatibilityDate?: boolean | null;
140
156
  analyticsEngineDatasets?: Record<string, unknown> | null;
141
157
  browsers?: Record<string, unknown> | null;
142
- buildImageMajorVersion?: number | null;
143
- compatibilityDate?: string | null;
144
- compatibilityFlags?: string[] | null;
145
158
  d1Databases?: Record<string, unknown> | null;
146
159
  durableObjectNamespaces?: Record<string, unknown> | null;
147
- envVars?: Record<string, unknown> | null;
148
- failOpen?: boolean | null;
149
160
  hyperdriveBindings?: Record<string, unknown> | null;
150
161
  kvNamespaces?: Record<string, unknown> | null;
151
162
  limits?: { cpuMs: number } | null;
@@ -154,22 +165,22 @@ export interface GetProjectResponse {
154
165
  queueProducers?: Record<string, unknown> | null;
155
166
  r2Buckets?: Record<string, unknown> | null;
156
167
  services?: Record<string, unknown> | null;
157
- usageModel?: "standard" | "bundled" | "unbound" | null;
158
168
  vectorizeBindings?: Record<string, unknown> | null;
159
169
  wranglerConfigHash?: string | null;
160
170
  };
161
171
  production: {
172
+ alwaysUseLatestCompatibilityDate: boolean;
173
+ buildImageMajorVersion: number;
174
+ compatibilityDate: string;
175
+ compatibilityFlags: string[];
176
+ envVars: Record<string, unknown> | null;
177
+ failOpen: boolean;
178
+ usageModel: "standard" | "bundled" | "unbound";
162
179
  aiBindings?: Record<string, unknown> | null;
163
- alwaysUseLatestCompatibilityDate?: boolean | null;
164
180
  analyticsEngineDatasets?: Record<string, unknown> | null;
165
181
  browsers?: Record<string, unknown> | null;
166
- buildImageMajorVersion?: number | null;
167
- compatibilityDate?: string | null;
168
- compatibilityFlags?: string[] | null;
169
182
  d1Databases?: Record<string, unknown> | null;
170
183
  durableObjectNamespaces?: Record<string, unknown> | null;
171
- envVars?: Record<string, unknown> | null;
172
- failOpen?: boolean | null;
173
184
  hyperdriveBindings?: Record<string, unknown> | null;
174
185
  kvNamespaces?: Record<string, unknown> | null;
175
186
  limits?: { cpuMs: number } | null;
@@ -178,7 +189,6 @@ export interface GetProjectResponse {
178
189
  queueProducers?: Record<string, unknown> | null;
179
190
  r2Buckets?: Record<string, unknown> | null;
180
191
  services?: Record<string, unknown> | null;
181
- usageModel?: "standard" | "bundled" | "unbound" | null;
182
192
  vectorizeBindings?: Record<string, unknown> | null;
183
193
  wranglerConfigHash?: string | null;
184
194
  };
@@ -212,30 +222,40 @@ export interface GetProjectResponse {
212
222
  envVars: Record<string, unknown> | null;
213
223
  environment: "preview" | "production";
214
224
  isSkipped: boolean;
215
- latestStage: unknown;
225
+ latestStage: {
226
+ endedOn: string | null;
227
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
228
+ startedOn: string | null;
229
+ status: "success" | "idle" | "active" | "failure" | "canceled";
230
+ };
216
231
  modifiedOn: string;
217
232
  projectId: string;
218
233
  projectName: string;
219
234
  shortId: string;
220
235
  source: {
221
236
  config: {
222
- deploymentsEnabled?: boolean | null;
223
- owner?: string | null;
224
- ownerId?: string | null;
225
- pathExcludes?: string[] | null;
226
- pathIncludes?: string[] | null;
227
- prCommentsEnabled?: boolean | null;
228
- previewBranchExcludes?: string[] | null;
229
- previewBranchIncludes?: string[] | null;
230
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
231
- productionBranch?: string | null;
232
- productionDeploymentsEnabled?: boolean | null;
233
- repoId?: string | null;
234
- repoName?: string | null;
237
+ deploymentsEnabled: boolean;
238
+ owner: string;
239
+ ownerId: string;
240
+ pathExcludes: string[];
241
+ pathIncludes: string[];
242
+ prCommentsEnabled: boolean;
243
+ previewBranchExcludes: string[];
244
+ previewBranchIncludes: string[];
245
+ previewDeploymentSetting: "all" | "none" | "custom";
246
+ productionBranch: string;
247
+ productionDeploymentsEnabled: boolean;
248
+ repoId: string;
249
+ repoName: string;
235
250
  };
236
251
  type: "github" | "gitlab";
237
252
  };
238
- stages: unknown[];
253
+ stages: {
254
+ endedOn: string | null;
255
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
256
+ startedOn: string | null;
257
+ status: "success" | "idle" | "active" | "failure" | "canceled";
258
+ }[];
239
259
  url: string;
240
260
  usesFunctions?: boolean | null;
241
261
  } | null;
@@ -263,19 +283,19 @@ export interface GetProjectResponse {
263
283
  /** Configs for the project source control. */
264
284
  source?: {
265
285
  config: {
266
- deploymentsEnabled?: boolean | null;
267
- owner?: string | null;
268
- ownerId?: string | null;
269
- pathExcludes?: string[] | null;
270
- pathIncludes?: string[] | null;
271
- prCommentsEnabled?: boolean | null;
272
- previewBranchExcludes?: string[] | null;
273
- previewBranchIncludes?: string[] | null;
274
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
275
- productionBranch?: string | null;
276
- productionDeploymentsEnabled?: boolean | null;
277
- repoId?: string | null;
278
- repoName?: string | null;
286
+ deploymentsEnabled: boolean;
287
+ owner: string;
288
+ ownerId: string;
289
+ pathExcludes: string[];
290
+ pathIncludes: string[];
291
+ prCommentsEnabled: boolean;
292
+ previewBranchExcludes: string[];
293
+ previewBranchIncludes: string[];
294
+ previewDeploymentSetting: "all" | "none" | "custom";
295
+ productionBranch: string;
296
+ productionDeploymentsEnabled: boolean;
297
+ repoId: string;
298
+ repoName: string;
279
299
  };
280
300
  type: "github" | "gitlab";
281
301
  } | null;
@@ -329,50 +349,56 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
329
349
  ),
330
350
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
331
351
  }),
332
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
352
+ envVars: Schema.Union([
353
+ Schema.Record(Schema.String, Schema.Unknown),
354
+ Schema.Null,
355
+ ]),
333
356
  environment: Schema.Literals(["preview", "production"]),
334
357
  isSkipped: Schema.Boolean,
335
- latestStage: Schema.Unknown,
358
+ latestStage: Schema.Struct({
359
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
360
+ name: Schema.Literals([
361
+ "queued",
362
+ "initialize",
363
+ "clone_repo",
364
+ "build",
365
+ "deploy",
366
+ ]),
367
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
368
+ status: Schema.Literals([
369
+ "success",
370
+ "idle",
371
+ "active",
372
+ "failure",
373
+ "canceled",
374
+ ]),
375
+ }).pipe(
376
+ Schema.encodeKeys({
377
+ endedOn: "ended_on",
378
+ name: "name",
379
+ startedOn: "started_on",
380
+ status: "status",
381
+ }),
382
+ ),
336
383
  modifiedOn: Schema.String,
337
384
  projectId: Schema.String,
338
385
  projectName: Schema.String,
339
386
  shortId: Schema.String,
340
387
  source: Schema.Struct({
341
388
  config: Schema.Struct({
342
- deploymentsEnabled: Schema.optional(
343
- Schema.Union([Schema.Boolean, Schema.Null]),
344
- ),
345
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
346
- ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
347
- pathExcludes: Schema.optional(
348
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
349
- ),
350
- pathIncludes: Schema.optional(
351
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
352
- ),
353
- prCommentsEnabled: Schema.optional(
354
- Schema.Union([Schema.Boolean, Schema.Null]),
355
- ),
356
- previewBranchExcludes: Schema.optional(
357
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
358
- ),
359
- previewBranchIncludes: Schema.optional(
360
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
361
- ),
362
- previewDeploymentSetting: Schema.optional(
363
- Schema.Union([
364
- Schema.Literals(["all", "none", "custom"]),
365
- Schema.Null,
366
- ]),
367
- ),
368
- productionBranch: Schema.optional(
369
- Schema.Union([Schema.String, Schema.Null]),
370
- ),
371
- productionDeploymentsEnabled: Schema.optional(
372
- Schema.Union([Schema.Boolean, Schema.Null]),
373
- ),
374
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
375
- repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
389
+ deploymentsEnabled: Schema.Boolean,
390
+ owner: Schema.String,
391
+ ownerId: Schema.String,
392
+ pathExcludes: Schema.Array(Schema.String),
393
+ pathIncludes: Schema.Array(Schema.String),
394
+ prCommentsEnabled: Schema.Boolean,
395
+ previewBranchExcludes: Schema.Array(Schema.String),
396
+ previewBranchIncludes: Schema.Array(Schema.String),
397
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
398
+ productionBranch: Schema.String,
399
+ productionDeploymentsEnabled: Schema.Boolean,
400
+ repoId: Schema.String,
401
+ repoName: Schema.String,
376
402
  }).pipe(
377
403
  Schema.encodeKeys({
378
404
  deploymentsEnabled: "deployments_enabled",
@@ -392,7 +418,33 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
392
418
  ),
393
419
  type: Schema.Literals(["github", "gitlab"]),
394
420
  }),
395
- stages: Schema.Array(Schema.Unknown),
421
+ stages: Schema.Array(
422
+ Schema.Struct({
423
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
424
+ name: Schema.Literals([
425
+ "queued",
426
+ "initialize",
427
+ "clone_repo",
428
+ "build",
429
+ "deploy",
430
+ ]),
431
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
432
+ status: Schema.Literals([
433
+ "success",
434
+ "idle",
435
+ "active",
436
+ "failure",
437
+ "canceled",
438
+ ]),
439
+ }).pipe(
440
+ Schema.encodeKeys({
441
+ endedOn: "ended_on",
442
+ name: "name",
443
+ startedOn: "started_on",
444
+ status: "status",
445
+ }),
446
+ ),
447
+ ),
396
448
  url: Schema.String,
397
449
  usesFunctions: Schema.optional(
398
450
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -423,38 +475,57 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
423
475
  createdOn: Schema.String,
424
476
  deploymentConfigs: Schema.Struct({
425
477
  preview: Schema.Struct({
478
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
479
+ buildImageMajorVersion: Schema.Number,
480
+ compatibilityDate: Schema.String,
481
+ compatibilityFlags: Schema.Array(Schema.String),
482
+ envVars: Schema.Union([
483
+ Schema.Record(Schema.String, Schema.Unknown),
484
+ Schema.Null,
485
+ ]),
486
+ failOpen: Schema.Boolean,
487
+ usageModel: Schema.Literals(["standard", "bundled", "unbound"]),
426
488
  aiBindings: Schema.optional(
427
- Schema.Union([Schema.Struct({}), Schema.Null]),
428
- ),
429
- alwaysUseLatestCompatibilityDate: Schema.optional(
430
- Schema.Union([Schema.Boolean, Schema.Null]),
489
+ Schema.Union([
490
+ Schema.Record(Schema.String, Schema.Unknown),
491
+ Schema.Null,
492
+ ]),
431
493
  ),
432
494
  analyticsEngineDatasets: Schema.optional(
433
- Schema.Union([Schema.Struct({}), Schema.Null]),
434
- ),
435
- browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
436
- buildImageMajorVersion: Schema.optional(
437
- Schema.Union([Schema.Number, Schema.Null]),
438
- ),
439
- compatibilityDate: Schema.optional(
440
- Schema.Union([Schema.String, Schema.Null]),
495
+ Schema.Union([
496
+ Schema.Record(Schema.String, Schema.Unknown),
497
+ Schema.Null,
498
+ ]),
441
499
  ),
442
- compatibilityFlags: Schema.optional(
443
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
500
+ browsers: Schema.optional(
501
+ Schema.Union([
502
+ Schema.Record(Schema.String, Schema.Unknown),
503
+ Schema.Null,
504
+ ]),
444
505
  ),
445
506
  d1Databases: Schema.optional(
446
- Schema.Union([Schema.Struct({}), Schema.Null]),
507
+ Schema.Union([
508
+ Schema.Record(Schema.String, Schema.Unknown),
509
+ Schema.Null,
510
+ ]),
447
511
  ),
448
512
  durableObjectNamespaces: Schema.optional(
449
- Schema.Union([Schema.Struct({}), Schema.Null]),
513
+ Schema.Union([
514
+ Schema.Record(Schema.String, Schema.Unknown),
515
+ Schema.Null,
516
+ ]),
450
517
  ),
451
- envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
452
- failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
453
518
  hyperdriveBindings: Schema.optional(
454
- Schema.Union([Schema.Struct({}), Schema.Null]),
519
+ Schema.Union([
520
+ Schema.Record(Schema.String, Schema.Unknown),
521
+ Schema.Null,
522
+ ]),
455
523
  ),
456
524
  kvNamespaces: Schema.optional(
457
- Schema.Union([Schema.Struct({}), Schema.Null]),
525
+ Schema.Union([
526
+ Schema.Record(Schema.String, Schema.Unknown),
527
+ Schema.Null,
528
+ ]),
458
529
  ),
459
530
  limits: Schema.optional(
460
531
  Schema.Union([
@@ -465,7 +536,10 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
465
536
  ]),
466
537
  ),
467
538
  mtlsCertificates: Schema.optional(
468
- Schema.Union([Schema.Struct({}), Schema.Null]),
539
+ Schema.Union([
540
+ Schema.Record(Schema.String, Schema.Unknown),
541
+ Schema.Null,
542
+ ]),
469
543
  ),
470
544
  placement: Schema.optional(
471
545
  Schema.Union([
@@ -476,38 +550,47 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
476
550
  ]),
477
551
  ),
478
552
  queueProducers: Schema.optional(
479
- Schema.Union([Schema.Struct({}), Schema.Null]),
553
+ Schema.Union([
554
+ Schema.Record(Schema.String, Schema.Unknown),
555
+ Schema.Null,
556
+ ]),
480
557
  ),
481
558
  r2Buckets: Schema.optional(
482
- Schema.Union([Schema.Struct({}), Schema.Null]),
559
+ Schema.Union([
560
+ Schema.Record(Schema.String, Schema.Unknown),
561
+ Schema.Null,
562
+ ]),
483
563
  ),
484
- services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
485
- usageModel: Schema.optional(
564
+ services: Schema.optional(
486
565
  Schema.Union([
487
- Schema.Literals(["standard", "bundled", "unbound"]),
566
+ Schema.Record(Schema.String, Schema.Unknown),
488
567
  Schema.Null,
489
568
  ]),
490
569
  ),
491
570
  vectorizeBindings: Schema.optional(
492
- Schema.Union([Schema.Struct({}), Schema.Null]),
571
+ Schema.Union([
572
+ Schema.Record(Schema.String, Schema.Unknown),
573
+ Schema.Null,
574
+ ]),
493
575
  ),
494
576
  wranglerConfigHash: Schema.optional(
495
577
  Schema.Union([Schema.String, Schema.Null]),
496
578
  ),
497
579
  }).pipe(
498
580
  Schema.encodeKeys({
499
- aiBindings: "ai_bindings",
500
581
  alwaysUseLatestCompatibilityDate:
501
582
  "always_use_latest_compatibility_date",
502
- analyticsEngineDatasets: "analytics_engine_datasets",
503
- browsers: "browsers",
504
583
  buildImageMajorVersion: "build_image_major_version",
505
584
  compatibilityDate: "compatibility_date",
506
585
  compatibilityFlags: "compatibility_flags",
507
- d1Databases: "d1_databases",
508
- durableObjectNamespaces: "durable_object_namespaces",
509
586
  envVars: "env_vars",
510
587
  failOpen: "fail_open",
588
+ usageModel: "usage_model",
589
+ aiBindings: "ai_bindings",
590
+ analyticsEngineDatasets: "analytics_engine_datasets",
591
+ browsers: "browsers",
592
+ d1Databases: "d1_databases",
593
+ durableObjectNamespaces: "durable_object_namespaces",
511
594
  hyperdriveBindings: "hyperdrive_bindings",
512
595
  kvNamespaces: "kv_namespaces",
513
596
  limits: "limits",
@@ -516,44 +599,62 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
516
599
  queueProducers: "queue_producers",
517
600
  r2Buckets: "r2_buckets",
518
601
  services: "services",
519
- usageModel: "usage_model",
520
602
  vectorizeBindings: "vectorize_bindings",
521
603
  wranglerConfigHash: "wrangler_config_hash",
522
604
  }),
523
605
  ),
524
606
  production: Schema.Struct({
607
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
608
+ buildImageMajorVersion: Schema.Number,
609
+ compatibilityDate: Schema.String,
610
+ compatibilityFlags: Schema.Array(Schema.String),
611
+ envVars: Schema.Union([
612
+ Schema.Record(Schema.String, Schema.Unknown),
613
+ Schema.Null,
614
+ ]),
615
+ failOpen: Schema.Boolean,
616
+ usageModel: Schema.Literals(["standard", "bundled", "unbound"]),
525
617
  aiBindings: Schema.optional(
526
- Schema.Union([Schema.Struct({}), Schema.Null]),
527
- ),
528
- alwaysUseLatestCompatibilityDate: Schema.optional(
529
- Schema.Union([Schema.Boolean, Schema.Null]),
618
+ Schema.Union([
619
+ Schema.Record(Schema.String, Schema.Unknown),
620
+ Schema.Null,
621
+ ]),
530
622
  ),
531
623
  analyticsEngineDatasets: Schema.optional(
532
- Schema.Union([Schema.Struct({}), Schema.Null]),
533
- ),
534
- browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
535
- buildImageMajorVersion: Schema.optional(
536
- Schema.Union([Schema.Number, Schema.Null]),
537
- ),
538
- compatibilityDate: Schema.optional(
539
- Schema.Union([Schema.String, Schema.Null]),
624
+ Schema.Union([
625
+ Schema.Record(Schema.String, Schema.Unknown),
626
+ Schema.Null,
627
+ ]),
540
628
  ),
541
- compatibilityFlags: Schema.optional(
542
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
629
+ browsers: Schema.optional(
630
+ Schema.Union([
631
+ Schema.Record(Schema.String, Schema.Unknown),
632
+ Schema.Null,
633
+ ]),
543
634
  ),
544
635
  d1Databases: Schema.optional(
545
- Schema.Union([Schema.Struct({}), Schema.Null]),
636
+ Schema.Union([
637
+ Schema.Record(Schema.String, Schema.Unknown),
638
+ Schema.Null,
639
+ ]),
546
640
  ),
547
641
  durableObjectNamespaces: Schema.optional(
548
- Schema.Union([Schema.Struct({}), Schema.Null]),
642
+ Schema.Union([
643
+ Schema.Record(Schema.String, Schema.Unknown),
644
+ Schema.Null,
645
+ ]),
549
646
  ),
550
- envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
551
- failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
552
647
  hyperdriveBindings: Schema.optional(
553
- Schema.Union([Schema.Struct({}), Schema.Null]),
648
+ Schema.Union([
649
+ Schema.Record(Schema.String, Schema.Unknown),
650
+ Schema.Null,
651
+ ]),
554
652
  ),
555
653
  kvNamespaces: Schema.optional(
556
- Schema.Union([Schema.Struct({}), Schema.Null]),
654
+ Schema.Union([
655
+ Schema.Record(Schema.String, Schema.Unknown),
656
+ Schema.Null,
657
+ ]),
557
658
  ),
558
659
  limits: Schema.optional(
559
660
  Schema.Union([
@@ -564,7 +665,10 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
564
665
  ]),
565
666
  ),
566
667
  mtlsCertificates: Schema.optional(
567
- Schema.Union([Schema.Struct({}), Schema.Null]),
668
+ Schema.Union([
669
+ Schema.Record(Schema.String, Schema.Unknown),
670
+ Schema.Null,
671
+ ]),
568
672
  ),
569
673
  placement: Schema.optional(
570
674
  Schema.Union([
@@ -575,38 +679,47 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
575
679
  ]),
576
680
  ),
577
681
  queueProducers: Schema.optional(
578
- Schema.Union([Schema.Struct({}), Schema.Null]),
682
+ Schema.Union([
683
+ Schema.Record(Schema.String, Schema.Unknown),
684
+ Schema.Null,
685
+ ]),
579
686
  ),
580
687
  r2Buckets: Schema.optional(
581
- Schema.Union([Schema.Struct({}), Schema.Null]),
688
+ Schema.Union([
689
+ Schema.Record(Schema.String, Schema.Unknown),
690
+ Schema.Null,
691
+ ]),
582
692
  ),
583
- services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
584
- usageModel: Schema.optional(
693
+ services: Schema.optional(
585
694
  Schema.Union([
586
- Schema.Literals(["standard", "bundled", "unbound"]),
695
+ Schema.Record(Schema.String, Schema.Unknown),
587
696
  Schema.Null,
588
697
  ]),
589
698
  ),
590
699
  vectorizeBindings: Schema.optional(
591
- Schema.Union([Schema.Struct({}), Schema.Null]),
700
+ Schema.Union([
701
+ Schema.Record(Schema.String, Schema.Unknown),
702
+ Schema.Null,
703
+ ]),
592
704
  ),
593
705
  wranglerConfigHash: Schema.optional(
594
706
  Schema.Union([Schema.String, Schema.Null]),
595
707
  ),
596
708
  }).pipe(
597
709
  Schema.encodeKeys({
598
- aiBindings: "ai_bindings",
599
710
  alwaysUseLatestCompatibilityDate:
600
711
  "always_use_latest_compatibility_date",
601
- analyticsEngineDatasets: "analytics_engine_datasets",
602
- browsers: "browsers",
603
712
  buildImageMajorVersion: "build_image_major_version",
604
713
  compatibilityDate: "compatibility_date",
605
714
  compatibilityFlags: "compatibility_flags",
606
- d1Databases: "d1_databases",
607
- durableObjectNamespaces: "durable_object_namespaces",
608
715
  envVars: "env_vars",
609
716
  failOpen: "fail_open",
717
+ usageModel: "usage_model",
718
+ aiBindings: "ai_bindings",
719
+ analyticsEngineDatasets: "analytics_engine_datasets",
720
+ browsers: "browsers",
721
+ d1Databases: "d1_databases",
722
+ durableObjectNamespaces: "durable_object_namespaces",
610
723
  hyperdriveBindings: "hyperdrive_bindings",
611
724
  kvNamespaces: "kv_namespaces",
612
725
  limits: "limits",
@@ -615,7 +728,6 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
615
728
  queueProducers: "queue_producers",
616
729
  r2Buckets: "r2_buckets",
617
730
  services: "services",
618
- usageModel: "usage_model",
619
731
  vectorizeBindings: "vectorize_bindings",
620
732
  wranglerConfigHash: "wrangler_config_hash",
621
733
  }),
@@ -667,50 +779,56 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
667
779
  ),
668
780
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
669
781
  }),
670
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
782
+ envVars: Schema.Union([
783
+ Schema.Record(Schema.String, Schema.Unknown),
784
+ Schema.Null,
785
+ ]),
671
786
  environment: Schema.Literals(["preview", "production"]),
672
787
  isSkipped: Schema.Boolean,
673
- latestStage: Schema.Unknown,
788
+ latestStage: Schema.Struct({
789
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
790
+ name: Schema.Literals([
791
+ "queued",
792
+ "initialize",
793
+ "clone_repo",
794
+ "build",
795
+ "deploy",
796
+ ]),
797
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
798
+ status: Schema.Literals([
799
+ "success",
800
+ "idle",
801
+ "active",
802
+ "failure",
803
+ "canceled",
804
+ ]),
805
+ }).pipe(
806
+ Schema.encodeKeys({
807
+ endedOn: "ended_on",
808
+ name: "name",
809
+ startedOn: "started_on",
810
+ status: "status",
811
+ }),
812
+ ),
674
813
  modifiedOn: Schema.String,
675
814
  projectId: Schema.String,
676
815
  projectName: Schema.String,
677
816
  shortId: Schema.String,
678
817
  source: Schema.Struct({
679
818
  config: Schema.Struct({
680
- deploymentsEnabled: Schema.optional(
681
- Schema.Union([Schema.Boolean, Schema.Null]),
682
- ),
683
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
684
- ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
685
- pathExcludes: Schema.optional(
686
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
687
- ),
688
- pathIncludes: Schema.optional(
689
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
690
- ),
691
- prCommentsEnabled: Schema.optional(
692
- Schema.Union([Schema.Boolean, Schema.Null]),
693
- ),
694
- previewBranchExcludes: Schema.optional(
695
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
696
- ),
697
- previewBranchIncludes: Schema.optional(
698
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
699
- ),
700
- previewDeploymentSetting: Schema.optional(
701
- Schema.Union([
702
- Schema.Literals(["all", "none", "custom"]),
703
- Schema.Null,
704
- ]),
705
- ),
706
- productionBranch: Schema.optional(
707
- Schema.Union([Schema.String, Schema.Null]),
708
- ),
709
- productionDeploymentsEnabled: Schema.optional(
710
- Schema.Union([Schema.Boolean, Schema.Null]),
711
- ),
712
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
713
- repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
819
+ deploymentsEnabled: Schema.Boolean,
820
+ owner: Schema.String,
821
+ ownerId: Schema.String,
822
+ pathExcludes: Schema.Array(Schema.String),
823
+ pathIncludes: Schema.Array(Schema.String),
824
+ prCommentsEnabled: Schema.Boolean,
825
+ previewBranchExcludes: Schema.Array(Schema.String),
826
+ previewBranchIncludes: Schema.Array(Schema.String),
827
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
828
+ productionBranch: Schema.String,
829
+ productionDeploymentsEnabled: Schema.Boolean,
830
+ repoId: Schema.String,
831
+ repoName: Schema.String,
714
832
  }).pipe(
715
833
  Schema.encodeKeys({
716
834
  deploymentsEnabled: "deployments_enabled",
@@ -730,7 +848,33 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
730
848
  ),
731
849
  type: Schema.Literals(["github", "gitlab"]),
732
850
  }),
733
- stages: Schema.Array(Schema.Unknown),
851
+ stages: Schema.Array(
852
+ Schema.Struct({
853
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
854
+ name: Schema.Literals([
855
+ "queued",
856
+ "initialize",
857
+ "clone_repo",
858
+ "build",
859
+ "deploy",
860
+ ]),
861
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
862
+ status: Schema.Literals([
863
+ "success",
864
+ "idle",
865
+ "active",
866
+ "failure",
867
+ "canceled",
868
+ ]),
869
+ }).pipe(
870
+ Schema.encodeKeys({
871
+ endedOn: "ended_on",
872
+ name: "name",
873
+ startedOn: "started_on",
874
+ status: "status",
875
+ }),
876
+ ),
877
+ ),
734
878
  url: Schema.String,
735
879
  usesFunctions: Schema.optional(
736
880
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -798,40 +942,19 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
798
942
  Schema.Union([
799
943
  Schema.Struct({
800
944
  config: Schema.Struct({
801
- deploymentsEnabled: Schema.optional(
802
- Schema.Union([Schema.Boolean, Schema.Null]),
803
- ),
804
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
805
- ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
806
- pathExcludes: Schema.optional(
807
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
808
- ),
809
- pathIncludes: Schema.optional(
810
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
811
- ),
812
- prCommentsEnabled: Schema.optional(
813
- Schema.Union([Schema.Boolean, Schema.Null]),
814
- ),
815
- previewBranchExcludes: Schema.optional(
816
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
817
- ),
818
- previewBranchIncludes: Schema.optional(
819
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
820
- ),
821
- previewDeploymentSetting: Schema.optional(
822
- Schema.Union([
823
- Schema.Literals(["all", "none", "custom"]),
824
- Schema.Null,
825
- ]),
826
- ),
827
- productionBranch: Schema.optional(
828
- Schema.Union([Schema.String, Schema.Null]),
829
- ),
830
- productionDeploymentsEnabled: Schema.optional(
831
- Schema.Union([Schema.Boolean, Schema.Null]),
832
- ),
833
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
834
- repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
945
+ deploymentsEnabled: Schema.Boolean,
946
+ owner: Schema.String,
947
+ ownerId: Schema.String,
948
+ pathExcludes: Schema.Array(Schema.String),
949
+ pathIncludes: Schema.Array(Schema.String),
950
+ prCommentsEnabled: Schema.Boolean,
951
+ previewBranchExcludes: Schema.Array(Schema.String),
952
+ previewBranchIncludes: Schema.Array(Schema.String),
953
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
954
+ productionBranch: Schema.String,
955
+ productionDeploymentsEnabled: Schema.Boolean,
956
+ repoId: Schema.String,
957
+ repoName: Schema.String,
835
958
  }).pipe(
836
959
  Schema.encodeKeys({
837
960
  deploymentsEnabled: "deployments_enabled",
@@ -931,47 +1054,58 @@ export interface ListProjectsResponse {
931
1054
  envVars: Record<string, unknown> | null;
932
1055
  environment: "preview" | "production";
933
1056
  isSkipped: boolean;
934
- latestStage: unknown;
1057
+ latestStage: {
1058
+ endedOn: string | null;
1059
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1060
+ startedOn: string | null;
1061
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1062
+ };
935
1063
  modifiedOn: string;
936
1064
  projectId: string;
937
1065
  projectName: string;
938
1066
  shortId: string;
939
1067
  source: {
940
1068
  config: {
941
- deploymentsEnabled?: boolean | null;
942
- owner?: string | null;
943
- ownerId?: string | null;
944
- pathExcludes?: string[] | null;
945
- pathIncludes?: string[] | null;
946
- prCommentsEnabled?: boolean | null;
947
- previewBranchExcludes?: string[] | null;
948
- previewBranchIncludes?: string[] | null;
949
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
950
- productionBranch?: string | null;
951
- productionDeploymentsEnabled?: boolean | null;
952
- repoId?: string | null;
953
- repoName?: string | null;
1069
+ deploymentsEnabled: boolean;
1070
+ owner: string;
1071
+ ownerId: string;
1072
+ pathExcludes: string[];
1073
+ pathIncludes: string[];
1074
+ prCommentsEnabled: boolean;
1075
+ previewBranchExcludes: string[];
1076
+ previewBranchIncludes: string[];
1077
+ previewDeploymentSetting: "all" | "none" | "custom";
1078
+ productionBranch: string;
1079
+ productionDeploymentsEnabled: boolean;
1080
+ repoId: string;
1081
+ repoName: string;
954
1082
  };
955
1083
  type: "github" | "gitlab";
956
1084
  };
957
- stages: unknown[];
1085
+ stages: {
1086
+ endedOn: string | null;
1087
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1088
+ startedOn: string | null;
1089
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1090
+ }[];
958
1091
  url: string;
959
1092
  usesFunctions?: boolean | null;
960
1093
  } | null;
961
1094
  createdOn: string;
962
1095
  deploymentConfigs: {
963
1096
  preview: {
1097
+ alwaysUseLatestCompatibilityDate: boolean;
1098
+ buildImageMajorVersion: number;
1099
+ compatibilityDate: string;
1100
+ compatibilityFlags: string[];
1101
+ envVars: Record<string, unknown> | null;
1102
+ failOpen: boolean;
1103
+ usageModel: "standard" | "bundled" | "unbound";
964
1104
  aiBindings?: Record<string, unknown> | null;
965
- alwaysUseLatestCompatibilityDate?: boolean | null;
966
1105
  analyticsEngineDatasets?: Record<string, unknown> | null;
967
1106
  browsers?: Record<string, unknown> | null;
968
- buildImageMajorVersion?: number | null;
969
- compatibilityDate?: string | null;
970
- compatibilityFlags?: string[] | null;
971
1107
  d1Databases?: Record<string, unknown> | null;
972
1108
  durableObjectNamespaces?: Record<string, unknown> | null;
973
- envVars?: Record<string, unknown> | null;
974
- failOpen?: boolean | null;
975
1109
  hyperdriveBindings?: Record<string, unknown> | null;
976
1110
  kvNamespaces?: Record<string, unknown> | null;
977
1111
  limits?: { cpuMs: number } | null;
@@ -980,22 +1114,22 @@ export interface ListProjectsResponse {
980
1114
  queueProducers?: Record<string, unknown> | null;
981
1115
  r2Buckets?: Record<string, unknown> | null;
982
1116
  services?: Record<string, unknown> | null;
983
- usageModel?: "standard" | "bundled" | "unbound" | null;
984
1117
  vectorizeBindings?: Record<string, unknown> | null;
985
1118
  wranglerConfigHash?: string | null;
986
1119
  };
987
1120
  production: {
1121
+ alwaysUseLatestCompatibilityDate: boolean;
1122
+ buildImageMajorVersion: number;
1123
+ compatibilityDate: string;
1124
+ compatibilityFlags: string[];
1125
+ envVars: Record<string, unknown> | null;
1126
+ failOpen: boolean;
1127
+ usageModel: "standard" | "bundled" | "unbound";
988
1128
  aiBindings?: Record<string, unknown> | null;
989
- alwaysUseLatestCompatibilityDate?: boolean | null;
990
1129
  analyticsEngineDatasets?: Record<string, unknown> | null;
991
1130
  browsers?: Record<string, unknown> | null;
992
- buildImageMajorVersion?: number | null;
993
- compatibilityDate?: string | null;
994
- compatibilityFlags?: string[] | null;
995
1131
  d1Databases?: Record<string, unknown> | null;
996
1132
  durableObjectNamespaces?: Record<string, unknown> | null;
997
- envVars?: Record<string, unknown> | null;
998
- failOpen?: boolean | null;
999
1133
  hyperdriveBindings?: Record<string, unknown> | null;
1000
1134
  kvNamespaces?: Record<string, unknown> | null;
1001
1135
  limits?: { cpuMs: number } | null;
@@ -1004,7 +1138,6 @@ export interface ListProjectsResponse {
1004
1138
  queueProducers?: Record<string, unknown> | null;
1005
1139
  r2Buckets?: Record<string, unknown> | null;
1006
1140
  services?: Record<string, unknown> | null;
1007
- usageModel?: "standard" | "bundled" | "unbound" | null;
1008
1141
  vectorizeBindings?: Record<string, unknown> | null;
1009
1142
  wranglerConfigHash?: string | null;
1010
1143
  };
@@ -1035,30 +1168,40 @@ export interface ListProjectsResponse {
1035
1168
  envVars: Record<string, unknown> | null;
1036
1169
  environment: "preview" | "production";
1037
1170
  isSkipped: boolean;
1038
- latestStage: unknown;
1171
+ latestStage: {
1172
+ endedOn: string | null;
1173
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1174
+ startedOn: string | null;
1175
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1176
+ };
1039
1177
  modifiedOn: string;
1040
1178
  projectId: string;
1041
1179
  projectName: string;
1042
1180
  shortId: string;
1043
1181
  source: {
1044
1182
  config: {
1045
- deploymentsEnabled?: boolean | null;
1046
- owner?: string | null;
1047
- ownerId?: string | null;
1048
- pathExcludes?: string[] | null;
1049
- pathIncludes?: string[] | null;
1050
- prCommentsEnabled?: boolean | null;
1051
- previewBranchExcludes?: string[] | null;
1052
- previewBranchIncludes?: string[] | null;
1053
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
1054
- productionBranch?: string | null;
1055
- productionDeploymentsEnabled?: boolean | null;
1056
- repoId?: string | null;
1057
- repoName?: string | null;
1183
+ deploymentsEnabled: boolean;
1184
+ owner: string;
1185
+ ownerId: string;
1186
+ pathExcludes: string[];
1187
+ pathIncludes: string[];
1188
+ prCommentsEnabled: boolean;
1189
+ previewBranchExcludes: string[];
1190
+ previewBranchIncludes: string[];
1191
+ previewDeploymentSetting: "all" | "none" | "custom";
1192
+ productionBranch: string;
1193
+ productionDeploymentsEnabled: boolean;
1194
+ repoId: string;
1195
+ repoName: string;
1058
1196
  };
1059
1197
  type: "github" | "gitlab";
1060
1198
  };
1061
- stages: unknown[];
1199
+ stages: {
1200
+ endedOn: string | null;
1201
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1202
+ startedOn: string | null;
1203
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1204
+ }[];
1062
1205
  url: string;
1063
1206
  usesFunctions?: boolean | null;
1064
1207
  } | null;
@@ -1078,19 +1221,19 @@ export interface ListProjectsResponse {
1078
1221
  domains?: string[] | null;
1079
1222
  source?: {
1080
1223
  config: {
1081
- deploymentsEnabled?: boolean | null;
1082
- owner?: string | null;
1083
- ownerId?: string | null;
1084
- pathExcludes?: string[] | null;
1085
- pathIncludes?: string[] | null;
1086
- prCommentsEnabled?: boolean | null;
1087
- previewBranchExcludes?: string[] | null;
1088
- previewBranchIncludes?: string[] | null;
1089
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
1090
- productionBranch?: string | null;
1091
- productionDeploymentsEnabled?: boolean | null;
1092
- repoId?: string | null;
1093
- repoName?: string | null;
1224
+ deploymentsEnabled: boolean;
1225
+ owner: string;
1226
+ ownerId: string;
1227
+ pathExcludes: string[];
1228
+ pathIncludes: string[];
1229
+ prCommentsEnabled: boolean;
1230
+ previewBranchExcludes: string[];
1231
+ previewBranchIncludes: string[];
1232
+ previewDeploymentSetting: "all" | "none" | "custom";
1233
+ productionBranch: string;
1234
+ productionDeploymentsEnabled: boolean;
1235
+ repoId: string;
1236
+ repoName: string;
1094
1237
  };
1095
1238
  type: "github" | "gitlab";
1096
1239
  } | null;
@@ -1154,58 +1297,60 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1154
1297
  ),
1155
1298
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1156
1299
  }),
1157
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
1300
+ envVars: Schema.Union([
1301
+ Schema.Record(Schema.String, Schema.Unknown),
1302
+ Schema.Null,
1303
+ ]),
1158
1304
  environment: Schema.Literals(["preview", "production"]),
1159
1305
  isSkipped: Schema.Boolean,
1160
- latestStage: Schema.Unknown,
1306
+ latestStage: Schema.Struct({
1307
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
1308
+ name: Schema.Literals([
1309
+ "queued",
1310
+ "initialize",
1311
+ "clone_repo",
1312
+ "build",
1313
+ "deploy",
1314
+ ]),
1315
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
1316
+ status: Schema.Literals([
1317
+ "success",
1318
+ "idle",
1319
+ "active",
1320
+ "failure",
1321
+ "canceled",
1322
+ ]),
1323
+ }).pipe(
1324
+ Schema.encodeKeys({
1325
+ endedOn: "ended_on",
1326
+ name: "name",
1327
+ startedOn: "started_on",
1328
+ status: "status",
1329
+ }),
1330
+ ),
1161
1331
  modifiedOn: Schema.String,
1162
1332
  projectId: Schema.String,
1163
1333
  projectName: Schema.String,
1164
1334
  shortId: Schema.String,
1165
1335
  source: Schema.Struct({
1166
1336
  config: Schema.Struct({
1167
- deploymentsEnabled: Schema.optional(
1168
- Schema.Union([Schema.Boolean, Schema.Null]),
1169
- ),
1170
- owner: Schema.optional(
1171
- Schema.Union([Schema.String, Schema.Null]),
1172
- ),
1173
- ownerId: Schema.optional(
1174
- Schema.Union([Schema.String, Schema.Null]),
1175
- ),
1176
- pathExcludes: Schema.optional(
1177
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1178
- ),
1179
- pathIncludes: Schema.optional(
1180
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1181
- ),
1182
- prCommentsEnabled: Schema.optional(
1183
- Schema.Union([Schema.Boolean, Schema.Null]),
1184
- ),
1185
- previewBranchExcludes: Schema.optional(
1186
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1187
- ),
1188
- previewBranchIncludes: Schema.optional(
1189
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1190
- ),
1191
- previewDeploymentSetting: Schema.optional(
1192
- Schema.Union([
1193
- Schema.Literals(["all", "none", "custom"]),
1194
- Schema.Null,
1195
- ]),
1196
- ),
1197
- productionBranch: Schema.optional(
1198
- Schema.Union([Schema.String, Schema.Null]),
1199
- ),
1200
- productionDeploymentsEnabled: Schema.optional(
1201
- Schema.Union([Schema.Boolean, Schema.Null]),
1202
- ),
1203
- repoId: Schema.optional(
1204
- Schema.Union([Schema.String, Schema.Null]),
1205
- ),
1206
- repoName: Schema.optional(
1207
- Schema.Union([Schema.String, Schema.Null]),
1208
- ),
1337
+ deploymentsEnabled: Schema.Boolean,
1338
+ owner: Schema.String,
1339
+ ownerId: Schema.String,
1340
+ pathExcludes: Schema.Array(Schema.String),
1341
+ pathIncludes: Schema.Array(Schema.String),
1342
+ prCommentsEnabled: Schema.Boolean,
1343
+ previewBranchExcludes: Schema.Array(Schema.String),
1344
+ previewBranchIncludes: Schema.Array(Schema.String),
1345
+ previewDeploymentSetting: Schema.Literals([
1346
+ "all",
1347
+ "none",
1348
+ "custom",
1349
+ ]),
1350
+ productionBranch: Schema.String,
1351
+ productionDeploymentsEnabled: Schema.Boolean,
1352
+ repoId: Schema.String,
1353
+ repoName: Schema.String,
1209
1354
  }).pipe(
1210
1355
  Schema.encodeKeys({
1211
1356
  deploymentsEnabled: "deployments_enabled",
@@ -1225,7 +1370,33 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1225
1370
  ),
1226
1371
  type: Schema.Literals(["github", "gitlab"]),
1227
1372
  }),
1228
- stages: Schema.Array(Schema.Unknown),
1373
+ stages: Schema.Array(
1374
+ Schema.Struct({
1375
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
1376
+ name: Schema.Literals([
1377
+ "queued",
1378
+ "initialize",
1379
+ "clone_repo",
1380
+ "build",
1381
+ "deploy",
1382
+ ]),
1383
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
1384
+ status: Schema.Literals([
1385
+ "success",
1386
+ "idle",
1387
+ "active",
1388
+ "failure",
1389
+ "canceled",
1390
+ ]),
1391
+ }).pipe(
1392
+ Schema.encodeKeys({
1393
+ endedOn: "ended_on",
1394
+ name: "name",
1395
+ startedOn: "started_on",
1396
+ status: "status",
1397
+ }),
1398
+ ),
1399
+ ),
1229
1400
  url: Schema.String,
1230
1401
  usesFunctions: Schema.optional(
1231
1402
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -1256,44 +1427,57 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1256
1427
  createdOn: Schema.String,
1257
1428
  deploymentConfigs: Schema.Struct({
1258
1429
  preview: Schema.Struct({
1430
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
1431
+ buildImageMajorVersion: Schema.Number,
1432
+ compatibilityDate: Schema.String,
1433
+ compatibilityFlags: Schema.Array(Schema.String),
1434
+ envVars: Schema.Union([
1435
+ Schema.Record(Schema.String, Schema.Unknown),
1436
+ Schema.Null,
1437
+ ]),
1438
+ failOpen: Schema.Boolean,
1439
+ usageModel: Schema.Literals(["standard", "bundled", "unbound"]),
1259
1440
  aiBindings: Schema.optional(
1260
- Schema.Union([Schema.Struct({}), Schema.Null]),
1261
- ),
1262
- alwaysUseLatestCompatibilityDate: Schema.optional(
1263
- Schema.Union([Schema.Boolean, Schema.Null]),
1441
+ Schema.Union([
1442
+ Schema.Record(Schema.String, Schema.Unknown),
1443
+ Schema.Null,
1444
+ ]),
1264
1445
  ),
1265
1446
  analyticsEngineDatasets: Schema.optional(
1266
- Schema.Union([Schema.Struct({}), Schema.Null]),
1447
+ Schema.Union([
1448
+ Schema.Record(Schema.String, Schema.Unknown),
1449
+ Schema.Null,
1450
+ ]),
1267
1451
  ),
1268
1452
  browsers: Schema.optional(
1269
- Schema.Union([Schema.Struct({}), Schema.Null]),
1270
- ),
1271
- buildImageMajorVersion: Schema.optional(
1272
- Schema.Union([Schema.Number, Schema.Null]),
1273
- ),
1274
- compatibilityDate: Schema.optional(
1275
- Schema.Union([Schema.String, Schema.Null]),
1276
- ),
1277
- compatibilityFlags: Schema.optional(
1278
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1453
+ Schema.Union([
1454
+ Schema.Record(Schema.String, Schema.Unknown),
1455
+ Schema.Null,
1456
+ ]),
1279
1457
  ),
1280
1458
  d1Databases: Schema.optional(
1281
- Schema.Union([Schema.Struct({}), Schema.Null]),
1459
+ Schema.Union([
1460
+ Schema.Record(Schema.String, Schema.Unknown),
1461
+ Schema.Null,
1462
+ ]),
1282
1463
  ),
1283
1464
  durableObjectNamespaces: Schema.optional(
1284
- Schema.Union([Schema.Struct({}), Schema.Null]),
1285
- ),
1286
- envVars: Schema.optional(
1287
- Schema.Union([Schema.Struct({}), Schema.Null]),
1288
- ),
1289
- failOpen: Schema.optional(
1290
- Schema.Union([Schema.Boolean, Schema.Null]),
1465
+ Schema.Union([
1466
+ Schema.Record(Schema.String, Schema.Unknown),
1467
+ Schema.Null,
1468
+ ]),
1291
1469
  ),
1292
1470
  hyperdriveBindings: Schema.optional(
1293
- Schema.Union([Schema.Struct({}), Schema.Null]),
1471
+ Schema.Union([
1472
+ Schema.Record(Schema.String, Schema.Unknown),
1473
+ Schema.Null,
1474
+ ]),
1294
1475
  ),
1295
1476
  kvNamespaces: Schema.optional(
1296
- Schema.Union([Schema.Struct({}), Schema.Null]),
1477
+ Schema.Union([
1478
+ Schema.Record(Schema.String, Schema.Unknown),
1479
+ Schema.Null,
1480
+ ]),
1297
1481
  ),
1298
1482
  limits: Schema.optional(
1299
1483
  Schema.Union([
@@ -1304,7 +1488,10 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1304
1488
  ]),
1305
1489
  ),
1306
1490
  mtlsCertificates: Schema.optional(
1307
- Schema.Union([Schema.Struct({}), Schema.Null]),
1491
+ Schema.Union([
1492
+ Schema.Record(Schema.String, Schema.Unknown),
1493
+ Schema.Null,
1494
+ ]),
1308
1495
  ),
1309
1496
  placement: Schema.optional(
1310
1497
  Schema.Union([
@@ -1315,40 +1502,47 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1315
1502
  ]),
1316
1503
  ),
1317
1504
  queueProducers: Schema.optional(
1318
- Schema.Union([Schema.Struct({}), Schema.Null]),
1505
+ Schema.Union([
1506
+ Schema.Record(Schema.String, Schema.Unknown),
1507
+ Schema.Null,
1508
+ ]),
1319
1509
  ),
1320
1510
  r2Buckets: Schema.optional(
1321
- Schema.Union([Schema.Struct({}), Schema.Null]),
1511
+ Schema.Union([
1512
+ Schema.Record(Schema.String, Schema.Unknown),
1513
+ Schema.Null,
1514
+ ]),
1322
1515
  ),
1323
1516
  services: Schema.optional(
1324
- Schema.Union([Schema.Struct({}), Schema.Null]),
1325
- ),
1326
- usageModel: Schema.optional(
1327
1517
  Schema.Union([
1328
- Schema.Literals(["standard", "bundled", "unbound"]),
1518
+ Schema.Record(Schema.String, Schema.Unknown),
1329
1519
  Schema.Null,
1330
1520
  ]),
1331
1521
  ),
1332
1522
  vectorizeBindings: Schema.optional(
1333
- Schema.Union([Schema.Struct({}), Schema.Null]),
1523
+ Schema.Union([
1524
+ Schema.Record(Schema.String, Schema.Unknown),
1525
+ Schema.Null,
1526
+ ]),
1334
1527
  ),
1335
1528
  wranglerConfigHash: Schema.optional(
1336
1529
  Schema.Union([Schema.String, Schema.Null]),
1337
1530
  ),
1338
1531
  }).pipe(
1339
1532
  Schema.encodeKeys({
1340
- aiBindings: "ai_bindings",
1341
1533
  alwaysUseLatestCompatibilityDate:
1342
1534
  "always_use_latest_compatibility_date",
1343
- analyticsEngineDatasets: "analytics_engine_datasets",
1344
- browsers: "browsers",
1345
1535
  buildImageMajorVersion: "build_image_major_version",
1346
1536
  compatibilityDate: "compatibility_date",
1347
1537
  compatibilityFlags: "compatibility_flags",
1348
- d1Databases: "d1_databases",
1349
- durableObjectNamespaces: "durable_object_namespaces",
1350
1538
  envVars: "env_vars",
1351
1539
  failOpen: "fail_open",
1540
+ usageModel: "usage_model",
1541
+ aiBindings: "ai_bindings",
1542
+ analyticsEngineDatasets: "analytics_engine_datasets",
1543
+ browsers: "browsers",
1544
+ d1Databases: "d1_databases",
1545
+ durableObjectNamespaces: "durable_object_namespaces",
1352
1546
  hyperdriveBindings: "hyperdrive_bindings",
1353
1547
  kvNamespaces: "kv_namespaces",
1354
1548
  limits: "limits",
@@ -1357,50 +1551,62 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1357
1551
  queueProducers: "queue_producers",
1358
1552
  r2Buckets: "r2_buckets",
1359
1553
  services: "services",
1360
- usageModel: "usage_model",
1361
1554
  vectorizeBindings: "vectorize_bindings",
1362
1555
  wranglerConfigHash: "wrangler_config_hash",
1363
1556
  }),
1364
1557
  ),
1365
1558
  production: Schema.Struct({
1559
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
1560
+ buildImageMajorVersion: Schema.Number,
1561
+ compatibilityDate: Schema.String,
1562
+ compatibilityFlags: Schema.Array(Schema.String),
1563
+ envVars: Schema.Union([
1564
+ Schema.Record(Schema.String, Schema.Unknown),
1565
+ Schema.Null,
1566
+ ]),
1567
+ failOpen: Schema.Boolean,
1568
+ usageModel: Schema.Literals(["standard", "bundled", "unbound"]),
1366
1569
  aiBindings: Schema.optional(
1367
- Schema.Union([Schema.Struct({}), Schema.Null]),
1368
- ),
1369
- alwaysUseLatestCompatibilityDate: Schema.optional(
1370
- Schema.Union([Schema.Boolean, Schema.Null]),
1570
+ Schema.Union([
1571
+ Schema.Record(Schema.String, Schema.Unknown),
1572
+ Schema.Null,
1573
+ ]),
1371
1574
  ),
1372
1575
  analyticsEngineDatasets: Schema.optional(
1373
- Schema.Union([Schema.Struct({}), Schema.Null]),
1576
+ Schema.Union([
1577
+ Schema.Record(Schema.String, Schema.Unknown),
1578
+ Schema.Null,
1579
+ ]),
1374
1580
  ),
1375
1581
  browsers: Schema.optional(
1376
- Schema.Union([Schema.Struct({}), Schema.Null]),
1377
- ),
1378
- buildImageMajorVersion: Schema.optional(
1379
- Schema.Union([Schema.Number, Schema.Null]),
1380
- ),
1381
- compatibilityDate: Schema.optional(
1382
- Schema.Union([Schema.String, Schema.Null]),
1383
- ),
1384
- compatibilityFlags: Schema.optional(
1385
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1582
+ Schema.Union([
1583
+ Schema.Record(Schema.String, Schema.Unknown),
1584
+ Schema.Null,
1585
+ ]),
1386
1586
  ),
1387
1587
  d1Databases: Schema.optional(
1388
- Schema.Union([Schema.Struct({}), Schema.Null]),
1588
+ Schema.Union([
1589
+ Schema.Record(Schema.String, Schema.Unknown),
1590
+ Schema.Null,
1591
+ ]),
1389
1592
  ),
1390
1593
  durableObjectNamespaces: Schema.optional(
1391
- Schema.Union([Schema.Struct({}), Schema.Null]),
1392
- ),
1393
- envVars: Schema.optional(
1394
- Schema.Union([Schema.Struct({}), Schema.Null]),
1395
- ),
1396
- failOpen: Schema.optional(
1397
- Schema.Union([Schema.Boolean, Schema.Null]),
1594
+ Schema.Union([
1595
+ Schema.Record(Schema.String, Schema.Unknown),
1596
+ Schema.Null,
1597
+ ]),
1398
1598
  ),
1399
1599
  hyperdriveBindings: Schema.optional(
1400
- Schema.Union([Schema.Struct({}), Schema.Null]),
1600
+ Schema.Union([
1601
+ Schema.Record(Schema.String, Schema.Unknown),
1602
+ Schema.Null,
1603
+ ]),
1401
1604
  ),
1402
1605
  kvNamespaces: Schema.optional(
1403
- Schema.Union([Schema.Struct({}), Schema.Null]),
1606
+ Schema.Union([
1607
+ Schema.Record(Schema.String, Schema.Unknown),
1608
+ Schema.Null,
1609
+ ]),
1404
1610
  ),
1405
1611
  limits: Schema.optional(
1406
1612
  Schema.Union([
@@ -1411,7 +1617,10 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1411
1617
  ]),
1412
1618
  ),
1413
1619
  mtlsCertificates: Schema.optional(
1414
- Schema.Union([Schema.Struct({}), Schema.Null]),
1620
+ Schema.Union([
1621
+ Schema.Record(Schema.String, Schema.Unknown),
1622
+ Schema.Null,
1623
+ ]),
1415
1624
  ),
1416
1625
  placement: Schema.optional(
1417
1626
  Schema.Union([
@@ -1422,40 +1631,47 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1422
1631
  ]),
1423
1632
  ),
1424
1633
  queueProducers: Schema.optional(
1425
- Schema.Union([Schema.Struct({}), Schema.Null]),
1634
+ Schema.Union([
1635
+ Schema.Record(Schema.String, Schema.Unknown),
1636
+ Schema.Null,
1637
+ ]),
1426
1638
  ),
1427
1639
  r2Buckets: Schema.optional(
1428
- Schema.Union([Schema.Struct({}), Schema.Null]),
1640
+ Schema.Union([
1641
+ Schema.Record(Schema.String, Schema.Unknown),
1642
+ Schema.Null,
1643
+ ]),
1429
1644
  ),
1430
1645
  services: Schema.optional(
1431
- Schema.Union([Schema.Struct({}), Schema.Null]),
1432
- ),
1433
- usageModel: Schema.optional(
1434
1646
  Schema.Union([
1435
- Schema.Literals(["standard", "bundled", "unbound"]),
1647
+ Schema.Record(Schema.String, Schema.Unknown),
1436
1648
  Schema.Null,
1437
1649
  ]),
1438
1650
  ),
1439
1651
  vectorizeBindings: Schema.optional(
1440
- Schema.Union([Schema.Struct({}), Schema.Null]),
1652
+ Schema.Union([
1653
+ Schema.Record(Schema.String, Schema.Unknown),
1654
+ Schema.Null,
1655
+ ]),
1441
1656
  ),
1442
1657
  wranglerConfigHash: Schema.optional(
1443
1658
  Schema.Union([Schema.String, Schema.Null]),
1444
1659
  ),
1445
1660
  }).pipe(
1446
1661
  Schema.encodeKeys({
1447
- aiBindings: "ai_bindings",
1448
1662
  alwaysUseLatestCompatibilityDate:
1449
1663
  "always_use_latest_compatibility_date",
1450
- analyticsEngineDatasets: "analytics_engine_datasets",
1451
- browsers: "browsers",
1452
1664
  buildImageMajorVersion: "build_image_major_version",
1453
1665
  compatibilityDate: "compatibility_date",
1454
1666
  compatibilityFlags: "compatibility_flags",
1455
- d1Databases: "d1_databases",
1456
- durableObjectNamespaces: "durable_object_namespaces",
1457
1667
  envVars: "env_vars",
1458
1668
  failOpen: "fail_open",
1669
+ usageModel: "usage_model",
1670
+ aiBindings: "ai_bindings",
1671
+ analyticsEngineDatasets: "analytics_engine_datasets",
1672
+ browsers: "browsers",
1673
+ d1Databases: "d1_databases",
1674
+ durableObjectNamespaces: "durable_object_namespaces",
1459
1675
  hyperdriveBindings: "hyperdrive_bindings",
1460
1676
  kvNamespaces: "kv_namespaces",
1461
1677
  limits: "limits",
@@ -1464,7 +1680,6 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1464
1680
  queueProducers: "queue_producers",
1465
1681
  r2Buckets: "r2_buckets",
1466
1682
  services: "services",
1467
- usageModel: "usage_model",
1468
1683
  vectorizeBindings: "vectorize_bindings",
1469
1684
  wranglerConfigHash: "wrangler_config_hash",
1470
1685
  }),
@@ -1518,58 +1733,60 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1518
1733
  ),
1519
1734
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1520
1735
  }),
1521
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
1736
+ envVars: Schema.Union([
1737
+ Schema.Record(Schema.String, Schema.Unknown),
1738
+ Schema.Null,
1739
+ ]),
1522
1740
  environment: Schema.Literals(["preview", "production"]),
1523
1741
  isSkipped: Schema.Boolean,
1524
- latestStage: Schema.Unknown,
1742
+ latestStage: Schema.Struct({
1743
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
1744
+ name: Schema.Literals([
1745
+ "queued",
1746
+ "initialize",
1747
+ "clone_repo",
1748
+ "build",
1749
+ "deploy",
1750
+ ]),
1751
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
1752
+ status: Schema.Literals([
1753
+ "success",
1754
+ "idle",
1755
+ "active",
1756
+ "failure",
1757
+ "canceled",
1758
+ ]),
1759
+ }).pipe(
1760
+ Schema.encodeKeys({
1761
+ endedOn: "ended_on",
1762
+ name: "name",
1763
+ startedOn: "started_on",
1764
+ status: "status",
1765
+ }),
1766
+ ),
1525
1767
  modifiedOn: Schema.String,
1526
1768
  projectId: Schema.String,
1527
1769
  projectName: Schema.String,
1528
1770
  shortId: Schema.String,
1529
1771
  source: Schema.Struct({
1530
1772
  config: Schema.Struct({
1531
- deploymentsEnabled: Schema.optional(
1532
- Schema.Union([Schema.Boolean, Schema.Null]),
1533
- ),
1534
- owner: Schema.optional(
1535
- Schema.Union([Schema.String, Schema.Null]),
1536
- ),
1537
- ownerId: Schema.optional(
1538
- Schema.Union([Schema.String, Schema.Null]),
1539
- ),
1540
- pathExcludes: Schema.optional(
1541
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1542
- ),
1543
- pathIncludes: Schema.optional(
1544
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1545
- ),
1546
- prCommentsEnabled: Schema.optional(
1547
- Schema.Union([Schema.Boolean, Schema.Null]),
1548
- ),
1549
- previewBranchExcludes: Schema.optional(
1550
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1551
- ),
1552
- previewBranchIncludes: Schema.optional(
1553
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1554
- ),
1555
- previewDeploymentSetting: Schema.optional(
1556
- Schema.Union([
1557
- Schema.Literals(["all", "none", "custom"]),
1558
- Schema.Null,
1559
- ]),
1560
- ),
1561
- productionBranch: Schema.optional(
1562
- Schema.Union([Schema.String, Schema.Null]),
1563
- ),
1564
- productionDeploymentsEnabled: Schema.optional(
1565
- Schema.Union([Schema.Boolean, Schema.Null]),
1566
- ),
1567
- repoId: Schema.optional(
1568
- Schema.Union([Schema.String, Schema.Null]),
1569
- ),
1570
- repoName: Schema.optional(
1571
- Schema.Union([Schema.String, Schema.Null]),
1572
- ),
1773
+ deploymentsEnabled: Schema.Boolean,
1774
+ owner: Schema.String,
1775
+ ownerId: Schema.String,
1776
+ pathExcludes: Schema.Array(Schema.String),
1777
+ pathIncludes: Schema.Array(Schema.String),
1778
+ prCommentsEnabled: Schema.Boolean,
1779
+ previewBranchExcludes: Schema.Array(Schema.String),
1780
+ previewBranchIncludes: Schema.Array(Schema.String),
1781
+ previewDeploymentSetting: Schema.Literals([
1782
+ "all",
1783
+ "none",
1784
+ "custom",
1785
+ ]),
1786
+ productionBranch: Schema.String,
1787
+ productionDeploymentsEnabled: Schema.Boolean,
1788
+ repoId: Schema.String,
1789
+ repoName: Schema.String,
1573
1790
  }).pipe(
1574
1791
  Schema.encodeKeys({
1575
1792
  deploymentsEnabled: "deployments_enabled",
@@ -1589,7 +1806,33 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1589
1806
  ),
1590
1807
  type: Schema.Literals(["github", "gitlab"]),
1591
1808
  }),
1592
- stages: Schema.Array(Schema.Unknown),
1809
+ stages: Schema.Array(
1810
+ Schema.Struct({
1811
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
1812
+ name: Schema.Literals([
1813
+ "queued",
1814
+ "initialize",
1815
+ "clone_repo",
1816
+ "build",
1817
+ "deploy",
1818
+ ]),
1819
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
1820
+ status: Schema.Literals([
1821
+ "success",
1822
+ "idle",
1823
+ "active",
1824
+ "failure",
1825
+ "canceled",
1826
+ ]),
1827
+ }).pipe(
1828
+ Schema.encodeKeys({
1829
+ endedOn: "ended_on",
1830
+ name: "name",
1831
+ startedOn: "started_on",
1832
+ status: "status",
1833
+ }),
1834
+ ),
1835
+ ),
1593
1836
  url: Schema.String,
1594
1837
  usesFunctions: Schema.optional(
1595
1838
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -1659,48 +1902,23 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1659
1902
  Schema.Union([
1660
1903
  Schema.Struct({
1661
1904
  config: Schema.Struct({
1662
- deploymentsEnabled: Schema.optional(
1663
- Schema.Union([Schema.Boolean, Schema.Null]),
1664
- ),
1665
- owner: Schema.optional(
1666
- Schema.Union([Schema.String, Schema.Null]),
1667
- ),
1668
- ownerId: Schema.optional(
1669
- Schema.Union([Schema.String, Schema.Null]),
1670
- ),
1671
- pathExcludes: Schema.optional(
1672
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1673
- ),
1674
- pathIncludes: Schema.optional(
1675
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1676
- ),
1677
- prCommentsEnabled: Schema.optional(
1678
- Schema.Union([Schema.Boolean, Schema.Null]),
1679
- ),
1680
- previewBranchExcludes: Schema.optional(
1681
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1682
- ),
1683
- previewBranchIncludes: Schema.optional(
1684
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1685
- ),
1686
- previewDeploymentSetting: Schema.optional(
1687
- Schema.Union([
1688
- Schema.Literals(["all", "none", "custom"]),
1689
- Schema.Null,
1690
- ]),
1691
- ),
1692
- productionBranch: Schema.optional(
1693
- Schema.Union([Schema.String, Schema.Null]),
1694
- ),
1695
- productionDeploymentsEnabled: Schema.optional(
1696
- Schema.Union([Schema.Boolean, Schema.Null]),
1697
- ),
1698
- repoId: Schema.optional(
1699
- Schema.Union([Schema.String, Schema.Null]),
1700
- ),
1701
- repoName: Schema.optional(
1702
- Schema.Union([Schema.String, Schema.Null]),
1703
- ),
1905
+ deploymentsEnabled: Schema.Boolean,
1906
+ owner: Schema.String,
1907
+ ownerId: Schema.String,
1908
+ pathExcludes: Schema.Array(Schema.String),
1909
+ pathIncludes: Schema.Array(Schema.String),
1910
+ prCommentsEnabled: Schema.Boolean,
1911
+ previewBranchExcludes: Schema.Array(Schema.String),
1912
+ previewBranchIncludes: Schema.Array(Schema.String),
1913
+ previewDeploymentSetting: Schema.Literals([
1914
+ "all",
1915
+ "none",
1916
+ "custom",
1917
+ ]),
1918
+ productionBranch: Schema.String,
1919
+ productionDeploymentsEnabled: Schema.Boolean,
1920
+ repoId: Schema.String,
1921
+ repoName: Schema.String,
1704
1922
  }).pipe(
1705
1923
  Schema.encodeKeys({
1706
1924
  deploymentsEnabled: "deployments_enabled",
@@ -1804,47 +2022,58 @@ export const listProjects: API.PaginatedOperationMethod<
1804
2022
  envVars: Record<string, unknown> | null;
1805
2023
  environment: "preview" | "production";
1806
2024
  isSkipped: boolean;
1807
- latestStage: unknown;
2025
+ latestStage: {
2026
+ endedOn: string | null;
2027
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
2028
+ startedOn: string | null;
2029
+ status: "success" | "idle" | "active" | "failure" | "canceled";
2030
+ };
1808
2031
  modifiedOn: string;
1809
2032
  projectId: string;
1810
2033
  projectName: string;
1811
2034
  shortId: string;
1812
2035
  source: {
1813
2036
  config: {
1814
- deploymentsEnabled?: boolean | null;
1815
- owner?: string | null;
1816
- ownerId?: string | null;
1817
- pathExcludes?: string[] | null;
1818
- pathIncludes?: string[] | null;
1819
- prCommentsEnabled?: boolean | null;
1820
- previewBranchExcludes?: string[] | null;
1821
- previewBranchIncludes?: string[] | null;
1822
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
1823
- productionBranch?: string | null;
1824
- productionDeploymentsEnabled?: boolean | null;
1825
- repoId?: string | null;
1826
- repoName?: string | null;
2037
+ deploymentsEnabled: boolean;
2038
+ owner: string;
2039
+ ownerId: string;
2040
+ pathExcludes: string[];
2041
+ pathIncludes: string[];
2042
+ prCommentsEnabled: boolean;
2043
+ previewBranchExcludes: string[];
2044
+ previewBranchIncludes: string[];
2045
+ previewDeploymentSetting: "all" | "none" | "custom";
2046
+ productionBranch: string;
2047
+ productionDeploymentsEnabled: boolean;
2048
+ repoId: string;
2049
+ repoName: string;
1827
2050
  };
1828
2051
  type: "github" | "gitlab";
1829
2052
  };
1830
- stages: unknown[];
2053
+ stages: {
2054
+ endedOn: string | null;
2055
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
2056
+ startedOn: string | null;
2057
+ status: "success" | "idle" | "active" | "failure" | "canceled";
2058
+ }[];
1831
2059
  url: string;
1832
2060
  usesFunctions?: boolean | null;
1833
2061
  } | null;
1834
2062
  createdOn: string;
1835
2063
  deploymentConfigs: {
1836
2064
  preview: {
2065
+ alwaysUseLatestCompatibilityDate: boolean;
2066
+ buildImageMajorVersion: number;
2067
+ compatibilityDate: string;
2068
+ compatibilityFlags: string[];
2069
+ envVars: Record<string, unknown> | null;
2070
+ failOpen: boolean;
2071
+ usageModel: "standard" | "bundled" | "unbound";
1837
2072
  aiBindings?: Record<string, unknown> | null;
1838
- alwaysUseLatestCompatibilityDate?: boolean | null;
1839
2073
  analyticsEngineDatasets?: Record<string, unknown> | null;
1840
2074
  browsers?: Record<string, unknown> | null;
1841
- buildImageMajorVersion?: number | null;
1842
- compatibilityDate?: string | null;
1843
- compatibilityFlags?: string[] | null;
1844
2075
  d1Databases?: Record<string, unknown> | null;
1845
2076
  durableObjectNamespaces?: Record<string, unknown> | null;
1846
- envVars?: Record<string, unknown> | null;
1847
- failOpen?: boolean | null;
1848
2077
  hyperdriveBindings?: Record<string, unknown> | null;
1849
2078
  kvNamespaces?: Record<string, unknown> | null;
1850
2079
  limits?: { cpuMs: number } | null;
@@ -1853,22 +2082,22 @@ export const listProjects: API.PaginatedOperationMethod<
1853
2082
  queueProducers?: Record<string, unknown> | null;
1854
2083
  r2Buckets?: Record<string, unknown> | null;
1855
2084
  services?: Record<string, unknown> | null;
1856
- usageModel?: "standard" | "bundled" | "unbound" | null;
1857
2085
  vectorizeBindings?: Record<string, unknown> | null;
1858
2086
  wranglerConfigHash?: string | null;
1859
2087
  };
1860
2088
  production: {
2089
+ alwaysUseLatestCompatibilityDate: boolean;
2090
+ buildImageMajorVersion: number;
2091
+ compatibilityDate: string;
2092
+ compatibilityFlags: string[];
2093
+ envVars: Record<string, unknown> | null;
2094
+ failOpen: boolean;
2095
+ usageModel: "standard" | "bundled" | "unbound";
1861
2096
  aiBindings?: Record<string, unknown> | null;
1862
- alwaysUseLatestCompatibilityDate?: boolean | null;
1863
2097
  analyticsEngineDatasets?: Record<string, unknown> | null;
1864
2098
  browsers?: Record<string, unknown> | null;
1865
- buildImageMajorVersion?: number | null;
1866
- compatibilityDate?: string | null;
1867
- compatibilityFlags?: string[] | null;
1868
2099
  d1Databases?: Record<string, unknown> | null;
1869
2100
  durableObjectNamespaces?: Record<string, unknown> | null;
1870
- envVars?: Record<string, unknown> | null;
1871
- failOpen?: boolean | null;
1872
2101
  hyperdriveBindings?: Record<string, unknown> | null;
1873
2102
  kvNamespaces?: Record<string, unknown> | null;
1874
2103
  limits?: { cpuMs: number } | null;
@@ -1877,7 +2106,6 @@ export const listProjects: API.PaginatedOperationMethod<
1877
2106
  queueProducers?: Record<string, unknown> | null;
1878
2107
  r2Buckets?: Record<string, unknown> | null;
1879
2108
  services?: Record<string, unknown> | null;
1880
- usageModel?: "standard" | "bundled" | "unbound" | null;
1881
2109
  vectorizeBindings?: Record<string, unknown> | null;
1882
2110
  wranglerConfigHash?: string | null;
1883
2111
  };
@@ -1908,30 +2136,40 @@ export const listProjects: API.PaginatedOperationMethod<
1908
2136
  envVars: Record<string, unknown> | null;
1909
2137
  environment: "preview" | "production";
1910
2138
  isSkipped: boolean;
1911
- latestStage: unknown;
2139
+ latestStage: {
2140
+ endedOn: string | null;
2141
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
2142
+ startedOn: string | null;
2143
+ status: "success" | "idle" | "active" | "failure" | "canceled";
2144
+ };
1912
2145
  modifiedOn: string;
1913
2146
  projectId: string;
1914
2147
  projectName: string;
1915
2148
  shortId: string;
1916
2149
  source: {
1917
2150
  config: {
1918
- deploymentsEnabled?: boolean | null;
1919
- owner?: string | null;
1920
- ownerId?: string | null;
1921
- pathExcludes?: string[] | null;
1922
- pathIncludes?: string[] | null;
1923
- prCommentsEnabled?: boolean | null;
1924
- previewBranchExcludes?: string[] | null;
1925
- previewBranchIncludes?: string[] | null;
1926
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
1927
- productionBranch?: string | null;
1928
- productionDeploymentsEnabled?: boolean | null;
1929
- repoId?: string | null;
1930
- repoName?: string | null;
2151
+ deploymentsEnabled: boolean;
2152
+ owner: string;
2153
+ ownerId: string;
2154
+ pathExcludes: string[];
2155
+ pathIncludes: string[];
2156
+ prCommentsEnabled: boolean;
2157
+ previewBranchExcludes: string[];
2158
+ previewBranchIncludes: string[];
2159
+ previewDeploymentSetting: "all" | "none" | "custom";
2160
+ productionBranch: string;
2161
+ productionDeploymentsEnabled: boolean;
2162
+ repoId: string;
2163
+ repoName: string;
1931
2164
  };
1932
2165
  type: "github" | "gitlab";
1933
2166
  };
1934
- stages: unknown[];
2167
+ stages: {
2168
+ endedOn: string | null;
2169
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
2170
+ startedOn: string | null;
2171
+ status: "success" | "idle" | "active" | "failure" | "canceled";
2172
+ }[];
1935
2173
  url: string;
1936
2174
  usesFunctions?: boolean | null;
1937
2175
  } | null;
@@ -1951,19 +2189,19 @@ export const listProjects: API.PaginatedOperationMethod<
1951
2189
  domains?: string[] | null;
1952
2190
  source?: {
1953
2191
  config: {
1954
- deploymentsEnabled?: boolean | null;
1955
- owner?: string | null;
1956
- ownerId?: string | null;
1957
- pathExcludes?: string[] | null;
1958
- pathIncludes?: string[] | null;
1959
- prCommentsEnabled?: boolean | null;
1960
- previewBranchExcludes?: string[] | null;
1961
- previewBranchIncludes?: string[] | null;
1962
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
1963
- productionBranch?: string | null;
1964
- productionDeploymentsEnabled?: boolean | null;
1965
- repoId?: string | null;
1966
- repoName?: string | null;
2192
+ deploymentsEnabled: boolean;
2193
+ owner: string;
2194
+ ownerId: string;
2195
+ pathExcludes: string[];
2196
+ pathIncludes: string[];
2197
+ prCommentsEnabled: boolean;
2198
+ previewBranchExcludes: string[];
2199
+ previewBranchIncludes: string[];
2200
+ previewDeploymentSetting: "all" | "none" | "custom";
2201
+ productionBranch: string;
2202
+ productionDeploymentsEnabled: boolean;
2203
+ repoId: string;
2204
+ repoName: string;
1967
2205
  };
1968
2206
  type: "github" | "gitlab";
1969
2207
  } | null;
@@ -2104,37 +2342,63 @@ export const CreateProjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2104
2342
  Schema.Struct({
2105
2343
  preview: Schema.optional(
2106
2344
  Schema.Struct({
2107
- aiBindings: Schema.optional(Schema.Struct({})),
2345
+ aiBindings: Schema.optional(
2346
+ Schema.Record(Schema.String, Schema.Unknown),
2347
+ ),
2108
2348
  alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Boolean),
2109
- analyticsEngineDatasets: Schema.optional(Schema.Struct({})),
2110
- browsers: Schema.optional(Schema.Struct({})),
2349
+ analyticsEngineDatasets: Schema.optional(
2350
+ Schema.Record(Schema.String, Schema.Unknown),
2351
+ ),
2352
+ browsers: Schema.optional(
2353
+ Schema.Record(Schema.String, Schema.Unknown),
2354
+ ),
2111
2355
  buildImageMajorVersion: Schema.optional(Schema.Number),
2112
2356
  compatibilityDate: Schema.optional(Schema.String),
2113
2357
  compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
2114
- d1Databases: Schema.optional(Schema.Struct({})),
2115
- durableObjectNamespaces: Schema.optional(Schema.Struct({})),
2116
- envVars: Schema.optional(Schema.Struct({})),
2358
+ d1Databases: Schema.optional(
2359
+ Schema.Record(Schema.String, Schema.Unknown),
2360
+ ),
2361
+ durableObjectNamespaces: Schema.optional(
2362
+ Schema.Record(Schema.String, Schema.Unknown),
2363
+ ),
2364
+ envVars: Schema.optional(
2365
+ Schema.Record(Schema.String, Schema.Unknown),
2366
+ ),
2117
2367
  failOpen: Schema.optional(Schema.Boolean),
2118
- hyperdriveBindings: Schema.optional(Schema.Struct({})),
2119
- kvNamespaces: Schema.optional(Schema.Struct({})),
2368
+ hyperdriveBindings: Schema.optional(
2369
+ Schema.Record(Schema.String, Schema.Unknown),
2370
+ ),
2371
+ kvNamespaces: Schema.optional(
2372
+ Schema.Record(Schema.String, Schema.Unknown),
2373
+ ),
2120
2374
  limits: Schema.optional(
2121
2375
  Schema.Struct({
2122
2376
  cpuMs: Schema.Number,
2123
2377
  }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
2124
2378
  ),
2125
- mtlsCertificates: Schema.optional(Schema.Struct({})),
2379
+ mtlsCertificates: Schema.optional(
2380
+ Schema.Record(Schema.String, Schema.Unknown),
2381
+ ),
2126
2382
  placement: Schema.optional(
2127
2383
  Schema.Struct({
2128
2384
  mode: Schema.String,
2129
2385
  }),
2130
2386
  ),
2131
- queueProducers: Schema.optional(Schema.Struct({})),
2132
- r2Buckets: Schema.optional(Schema.Struct({})),
2133
- services: Schema.optional(Schema.Struct({})),
2387
+ queueProducers: Schema.optional(
2388
+ Schema.Record(Schema.String, Schema.Unknown),
2389
+ ),
2390
+ r2Buckets: Schema.optional(
2391
+ Schema.Record(Schema.String, Schema.Unknown),
2392
+ ),
2393
+ services: Schema.optional(
2394
+ Schema.Record(Schema.String, Schema.Unknown),
2395
+ ),
2134
2396
  usageModel: Schema.optional(
2135
2397
  Schema.Literals(["standard", "bundled", "unbound"]),
2136
2398
  ),
2137
- vectorizeBindings: Schema.optional(Schema.Struct({})),
2399
+ vectorizeBindings: Schema.optional(
2400
+ Schema.Record(Schema.String, Schema.Unknown),
2401
+ ),
2138
2402
  wranglerConfigHash: Schema.optional(Schema.String),
2139
2403
  }).pipe(
2140
2404
  Schema.encodeKeys({
@@ -2166,37 +2430,63 @@ export const CreateProjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2166
2430
  ),
2167
2431
  production: Schema.optional(
2168
2432
  Schema.Struct({
2169
- aiBindings: Schema.optional(Schema.Struct({})),
2433
+ aiBindings: Schema.optional(
2434
+ Schema.Record(Schema.String, Schema.Unknown),
2435
+ ),
2170
2436
  alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Boolean),
2171
- analyticsEngineDatasets: Schema.optional(Schema.Struct({})),
2172
- browsers: Schema.optional(Schema.Struct({})),
2437
+ analyticsEngineDatasets: Schema.optional(
2438
+ Schema.Record(Schema.String, Schema.Unknown),
2439
+ ),
2440
+ browsers: Schema.optional(
2441
+ Schema.Record(Schema.String, Schema.Unknown),
2442
+ ),
2173
2443
  buildImageMajorVersion: Schema.optional(Schema.Number),
2174
2444
  compatibilityDate: Schema.optional(Schema.String),
2175
2445
  compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
2176
- d1Databases: Schema.optional(Schema.Struct({})),
2177
- durableObjectNamespaces: Schema.optional(Schema.Struct({})),
2178
- envVars: Schema.optional(Schema.Struct({})),
2446
+ d1Databases: Schema.optional(
2447
+ Schema.Record(Schema.String, Schema.Unknown),
2448
+ ),
2449
+ durableObjectNamespaces: Schema.optional(
2450
+ Schema.Record(Schema.String, Schema.Unknown),
2451
+ ),
2452
+ envVars: Schema.optional(
2453
+ Schema.Record(Schema.String, Schema.Unknown),
2454
+ ),
2179
2455
  failOpen: Schema.optional(Schema.Boolean),
2180
- hyperdriveBindings: Schema.optional(Schema.Struct({})),
2181
- kvNamespaces: Schema.optional(Schema.Struct({})),
2456
+ hyperdriveBindings: Schema.optional(
2457
+ Schema.Record(Schema.String, Schema.Unknown),
2458
+ ),
2459
+ kvNamespaces: Schema.optional(
2460
+ Schema.Record(Schema.String, Schema.Unknown),
2461
+ ),
2182
2462
  limits: Schema.optional(
2183
2463
  Schema.Struct({
2184
2464
  cpuMs: Schema.Number,
2185
2465
  }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
2186
2466
  ),
2187
- mtlsCertificates: Schema.optional(Schema.Struct({})),
2467
+ mtlsCertificates: Schema.optional(
2468
+ Schema.Record(Schema.String, Schema.Unknown),
2469
+ ),
2188
2470
  placement: Schema.optional(
2189
2471
  Schema.Struct({
2190
2472
  mode: Schema.String,
2191
2473
  }),
2192
2474
  ),
2193
- queueProducers: Schema.optional(Schema.Struct({})),
2194
- r2Buckets: Schema.optional(Schema.Struct({})),
2195
- services: Schema.optional(Schema.Struct({})),
2475
+ queueProducers: Schema.optional(
2476
+ Schema.Record(Schema.String, Schema.Unknown),
2477
+ ),
2478
+ r2Buckets: Schema.optional(
2479
+ Schema.Record(Schema.String, Schema.Unknown),
2480
+ ),
2481
+ services: Schema.optional(
2482
+ Schema.Record(Schema.String, Schema.Unknown),
2483
+ ),
2196
2484
  usageModel: Schema.optional(
2197
2485
  Schema.Literals(["standard", "bundled", "unbound"]),
2198
2486
  ),
2199
- vectorizeBindings: Schema.optional(Schema.Struct({})),
2487
+ vectorizeBindings: Schema.optional(
2488
+ Schema.Record(Schema.String, Schema.Unknown),
2489
+ ),
2200
2490
  wranglerConfigHash: Schema.optional(Schema.String),
2201
2491
  }).pipe(
2202
2492
  Schema.encodeKeys({
@@ -2305,30 +2595,40 @@ export interface CreateProjectResponse {
2305
2595
  envVars: Record<string, unknown> | null;
2306
2596
  environment: "preview" | "production";
2307
2597
  isSkipped: boolean;
2308
- latestStage: unknown;
2598
+ latestStage: {
2599
+ endedOn: string | null;
2600
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
2601
+ startedOn: string | null;
2602
+ status: "success" | "idle" | "active" | "failure" | "canceled";
2603
+ };
2309
2604
  modifiedOn: string;
2310
2605
  projectId: string;
2311
2606
  projectName: string;
2312
2607
  shortId: string;
2313
2608
  source: {
2314
2609
  config: {
2315
- deploymentsEnabled?: boolean | null;
2316
- owner?: string | null;
2317
- ownerId?: string | null;
2318
- pathExcludes?: string[] | null;
2319
- pathIncludes?: string[] | null;
2320
- prCommentsEnabled?: boolean | null;
2321
- previewBranchExcludes?: string[] | null;
2322
- previewBranchIncludes?: string[] | null;
2323
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
2324
- productionBranch?: string | null;
2325
- productionDeploymentsEnabled?: boolean | null;
2326
- repoId?: string | null;
2327
- repoName?: string | null;
2610
+ deploymentsEnabled: boolean;
2611
+ owner: string;
2612
+ ownerId: string;
2613
+ pathExcludes: string[];
2614
+ pathIncludes: string[];
2615
+ prCommentsEnabled: boolean;
2616
+ previewBranchExcludes: string[];
2617
+ previewBranchIncludes: string[];
2618
+ previewDeploymentSetting: "all" | "none" | "custom";
2619
+ productionBranch: string;
2620
+ productionDeploymentsEnabled: boolean;
2621
+ repoId: string;
2622
+ repoName: string;
2328
2623
  };
2329
2624
  type: "github" | "gitlab";
2330
2625
  };
2331
- stages: unknown[];
2626
+ stages: {
2627
+ endedOn: string | null;
2628
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
2629
+ startedOn: string | null;
2630
+ status: "success" | "idle" | "active" | "failure" | "canceled";
2631
+ }[];
2332
2632
  url: string;
2333
2633
  usesFunctions?: boolean | null;
2334
2634
  } | null;
@@ -2337,17 +2637,18 @@ export interface CreateProjectResponse {
2337
2637
  /** Configs for deployments in a project. */
2338
2638
  deploymentConfigs: {
2339
2639
  preview: {
2640
+ alwaysUseLatestCompatibilityDate: boolean;
2641
+ buildImageMajorVersion: number;
2642
+ compatibilityDate: string;
2643
+ compatibilityFlags: string[];
2644
+ envVars: Record<string, unknown> | null;
2645
+ failOpen: boolean;
2646
+ usageModel: "standard" | "bundled" | "unbound";
2340
2647
  aiBindings?: Record<string, unknown> | null;
2341
- alwaysUseLatestCompatibilityDate?: boolean | null;
2342
2648
  analyticsEngineDatasets?: Record<string, unknown> | null;
2343
2649
  browsers?: Record<string, unknown> | null;
2344
- buildImageMajorVersion?: number | null;
2345
- compatibilityDate?: string | null;
2346
- compatibilityFlags?: string[] | null;
2347
2650
  d1Databases?: Record<string, unknown> | null;
2348
2651
  durableObjectNamespaces?: Record<string, unknown> | null;
2349
- envVars?: Record<string, unknown> | null;
2350
- failOpen?: boolean | null;
2351
2652
  hyperdriveBindings?: Record<string, unknown> | null;
2352
2653
  kvNamespaces?: Record<string, unknown> | null;
2353
2654
  limits?: { cpuMs: number } | null;
@@ -2356,22 +2657,22 @@ export interface CreateProjectResponse {
2356
2657
  queueProducers?: Record<string, unknown> | null;
2357
2658
  r2Buckets?: Record<string, unknown> | null;
2358
2659
  services?: Record<string, unknown> | null;
2359
- usageModel?: "standard" | "bundled" | "unbound" | null;
2360
2660
  vectorizeBindings?: Record<string, unknown> | null;
2361
2661
  wranglerConfigHash?: string | null;
2362
2662
  };
2363
2663
  production: {
2664
+ alwaysUseLatestCompatibilityDate: boolean;
2665
+ buildImageMajorVersion: number;
2666
+ compatibilityDate: string;
2667
+ compatibilityFlags: string[];
2668
+ envVars: Record<string, unknown> | null;
2669
+ failOpen: boolean;
2670
+ usageModel: "standard" | "bundled" | "unbound";
2364
2671
  aiBindings?: Record<string, unknown> | null;
2365
- alwaysUseLatestCompatibilityDate?: boolean | null;
2366
2672
  analyticsEngineDatasets?: Record<string, unknown> | null;
2367
2673
  browsers?: Record<string, unknown> | null;
2368
- buildImageMajorVersion?: number | null;
2369
- compatibilityDate?: string | null;
2370
- compatibilityFlags?: string[] | null;
2371
2674
  d1Databases?: Record<string, unknown> | null;
2372
2675
  durableObjectNamespaces?: Record<string, unknown> | null;
2373
- envVars?: Record<string, unknown> | null;
2374
- failOpen?: boolean | null;
2375
2676
  hyperdriveBindings?: Record<string, unknown> | null;
2376
2677
  kvNamespaces?: Record<string, unknown> | null;
2377
2678
  limits?: { cpuMs: number } | null;
@@ -2380,7 +2681,6 @@ export interface CreateProjectResponse {
2380
2681
  queueProducers?: Record<string, unknown> | null;
2381
2682
  r2Buckets?: Record<string, unknown> | null;
2382
2683
  services?: Record<string, unknown> | null;
2383
- usageModel?: "standard" | "bundled" | "unbound" | null;
2384
2684
  vectorizeBindings?: Record<string, unknown> | null;
2385
2685
  wranglerConfigHash?: string | null;
2386
2686
  };
@@ -2414,30 +2714,40 @@ export interface CreateProjectResponse {
2414
2714
  envVars: Record<string, unknown> | null;
2415
2715
  environment: "preview" | "production";
2416
2716
  isSkipped: boolean;
2417
- latestStage: unknown;
2717
+ latestStage: {
2718
+ endedOn: string | null;
2719
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
2720
+ startedOn: string | null;
2721
+ status: "success" | "idle" | "active" | "failure" | "canceled";
2722
+ };
2418
2723
  modifiedOn: string;
2419
2724
  projectId: string;
2420
2725
  projectName: string;
2421
2726
  shortId: string;
2422
2727
  source: {
2423
2728
  config: {
2424
- deploymentsEnabled?: boolean | null;
2425
- owner?: string | null;
2426
- ownerId?: string | null;
2427
- pathExcludes?: string[] | null;
2428
- pathIncludes?: string[] | null;
2429
- prCommentsEnabled?: boolean | null;
2430
- previewBranchExcludes?: string[] | null;
2431
- previewBranchIncludes?: string[] | null;
2432
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
2433
- productionBranch?: string | null;
2434
- productionDeploymentsEnabled?: boolean | null;
2435
- repoId?: string | null;
2436
- repoName?: string | null;
2729
+ deploymentsEnabled: boolean;
2730
+ owner: string;
2731
+ ownerId: string;
2732
+ pathExcludes: string[];
2733
+ pathIncludes: string[];
2734
+ prCommentsEnabled: boolean;
2735
+ previewBranchExcludes: string[];
2736
+ previewBranchIncludes: string[];
2737
+ previewDeploymentSetting: "all" | "none" | "custom";
2738
+ productionBranch: string;
2739
+ productionDeploymentsEnabled: boolean;
2740
+ repoId: string;
2741
+ repoName: string;
2437
2742
  };
2438
2743
  type: "github" | "gitlab";
2439
2744
  };
2440
- stages: unknown[];
2745
+ stages: {
2746
+ endedOn: string | null;
2747
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
2748
+ startedOn: string | null;
2749
+ status: "success" | "idle" | "active" | "failure" | "canceled";
2750
+ }[];
2441
2751
  url: string;
2442
2752
  usesFunctions?: boolean | null;
2443
2753
  } | null;
@@ -2465,19 +2775,19 @@ export interface CreateProjectResponse {
2465
2775
  /** Configs for the project source control. */
2466
2776
  source?: {
2467
2777
  config: {
2468
- deploymentsEnabled?: boolean | null;
2469
- owner?: string | null;
2470
- ownerId?: string | null;
2471
- pathExcludes?: string[] | null;
2472
- pathIncludes?: string[] | null;
2473
- prCommentsEnabled?: boolean | null;
2474
- previewBranchExcludes?: string[] | null;
2475
- previewBranchIncludes?: string[] | null;
2476
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
2477
- productionBranch?: string | null;
2478
- productionDeploymentsEnabled?: boolean | null;
2479
- repoId?: string | null;
2480
- repoName?: string | null;
2778
+ deploymentsEnabled: boolean;
2779
+ owner: string;
2780
+ ownerId: string;
2781
+ pathExcludes: string[];
2782
+ pathIncludes: string[];
2783
+ prCommentsEnabled: boolean;
2784
+ previewBranchExcludes: string[];
2785
+ previewBranchIncludes: string[];
2786
+ previewDeploymentSetting: "all" | "none" | "custom";
2787
+ productionBranch: string;
2788
+ productionDeploymentsEnabled: boolean;
2789
+ repoId: string;
2790
+ repoName: string;
2481
2791
  };
2482
2792
  type: "github" | "gitlab";
2483
2793
  } | null;
@@ -2531,50 +2841,56 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2531
2841
  ),
2532
2842
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
2533
2843
  }),
2534
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
2844
+ envVars: Schema.Union([
2845
+ Schema.Record(Schema.String, Schema.Unknown),
2846
+ Schema.Null,
2847
+ ]),
2535
2848
  environment: Schema.Literals(["preview", "production"]),
2536
2849
  isSkipped: Schema.Boolean,
2537
- latestStage: Schema.Unknown,
2850
+ latestStage: Schema.Struct({
2851
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
2852
+ name: Schema.Literals([
2853
+ "queued",
2854
+ "initialize",
2855
+ "clone_repo",
2856
+ "build",
2857
+ "deploy",
2858
+ ]),
2859
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
2860
+ status: Schema.Literals([
2861
+ "success",
2862
+ "idle",
2863
+ "active",
2864
+ "failure",
2865
+ "canceled",
2866
+ ]),
2867
+ }).pipe(
2868
+ Schema.encodeKeys({
2869
+ endedOn: "ended_on",
2870
+ name: "name",
2871
+ startedOn: "started_on",
2872
+ status: "status",
2873
+ }),
2874
+ ),
2538
2875
  modifiedOn: Schema.String,
2539
2876
  projectId: Schema.String,
2540
2877
  projectName: Schema.String,
2541
2878
  shortId: Schema.String,
2542
2879
  source: Schema.Struct({
2543
2880
  config: Schema.Struct({
2544
- deploymentsEnabled: Schema.optional(
2545
- Schema.Union([Schema.Boolean, Schema.Null]),
2546
- ),
2547
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2548
- ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2549
- pathExcludes: Schema.optional(
2550
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2551
- ),
2552
- pathIncludes: Schema.optional(
2553
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2554
- ),
2555
- prCommentsEnabled: Schema.optional(
2556
- Schema.Union([Schema.Boolean, Schema.Null]),
2557
- ),
2558
- previewBranchExcludes: Schema.optional(
2559
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2560
- ),
2561
- previewBranchIncludes: Schema.optional(
2562
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2563
- ),
2564
- previewDeploymentSetting: Schema.optional(
2565
- Schema.Union([
2566
- Schema.Literals(["all", "none", "custom"]),
2567
- Schema.Null,
2568
- ]),
2569
- ),
2570
- productionBranch: Schema.optional(
2571
- Schema.Union([Schema.String, Schema.Null]),
2572
- ),
2573
- productionDeploymentsEnabled: Schema.optional(
2574
- Schema.Union([Schema.Boolean, Schema.Null]),
2575
- ),
2576
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2577
- repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2881
+ deploymentsEnabled: Schema.Boolean,
2882
+ owner: Schema.String,
2883
+ ownerId: Schema.String,
2884
+ pathExcludes: Schema.Array(Schema.String),
2885
+ pathIncludes: Schema.Array(Schema.String),
2886
+ prCommentsEnabled: Schema.Boolean,
2887
+ previewBranchExcludes: Schema.Array(Schema.String),
2888
+ previewBranchIncludes: Schema.Array(Schema.String),
2889
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
2890
+ productionBranch: Schema.String,
2891
+ productionDeploymentsEnabled: Schema.Boolean,
2892
+ repoId: Schema.String,
2893
+ repoName: Schema.String,
2578
2894
  }).pipe(
2579
2895
  Schema.encodeKeys({
2580
2896
  deploymentsEnabled: "deployments_enabled",
@@ -2594,7 +2910,33 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2594
2910
  ),
2595
2911
  type: Schema.Literals(["github", "gitlab"]),
2596
2912
  }),
2597
- stages: Schema.Array(Schema.Unknown),
2913
+ stages: Schema.Array(
2914
+ Schema.Struct({
2915
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
2916
+ name: Schema.Literals([
2917
+ "queued",
2918
+ "initialize",
2919
+ "clone_repo",
2920
+ "build",
2921
+ "deploy",
2922
+ ]),
2923
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
2924
+ status: Schema.Literals([
2925
+ "success",
2926
+ "idle",
2927
+ "active",
2928
+ "failure",
2929
+ "canceled",
2930
+ ]),
2931
+ }).pipe(
2932
+ Schema.encodeKeys({
2933
+ endedOn: "ended_on",
2934
+ name: "name",
2935
+ startedOn: "started_on",
2936
+ status: "status",
2937
+ }),
2938
+ ),
2939
+ ),
2598
2940
  url: Schema.String,
2599
2941
  usesFunctions: Schema.optional(
2600
2942
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -2625,38 +2967,57 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2625
2967
  createdOn: Schema.String,
2626
2968
  deploymentConfigs: Schema.Struct({
2627
2969
  preview: Schema.Struct({
2970
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
2971
+ buildImageMajorVersion: Schema.Number,
2972
+ compatibilityDate: Schema.String,
2973
+ compatibilityFlags: Schema.Array(Schema.String),
2974
+ envVars: Schema.Union([
2975
+ Schema.Record(Schema.String, Schema.Unknown),
2976
+ Schema.Null,
2977
+ ]),
2978
+ failOpen: Schema.Boolean,
2979
+ usageModel: Schema.Literals(["standard", "bundled", "unbound"]),
2628
2980
  aiBindings: Schema.optional(
2629
- Schema.Union([Schema.Struct({}), Schema.Null]),
2630
- ),
2631
- alwaysUseLatestCompatibilityDate: Schema.optional(
2632
- Schema.Union([Schema.Boolean, Schema.Null]),
2981
+ Schema.Union([
2982
+ Schema.Record(Schema.String, Schema.Unknown),
2983
+ Schema.Null,
2984
+ ]),
2633
2985
  ),
2634
2986
  analyticsEngineDatasets: Schema.optional(
2635
- Schema.Union([Schema.Struct({}), Schema.Null]),
2636
- ),
2637
- browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2638
- buildImageMajorVersion: Schema.optional(
2639
- Schema.Union([Schema.Number, Schema.Null]),
2640
- ),
2641
- compatibilityDate: Schema.optional(
2642
- Schema.Union([Schema.String, Schema.Null]),
2987
+ Schema.Union([
2988
+ Schema.Record(Schema.String, Schema.Unknown),
2989
+ Schema.Null,
2990
+ ]),
2643
2991
  ),
2644
- compatibilityFlags: Schema.optional(
2645
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2992
+ browsers: Schema.optional(
2993
+ Schema.Union([
2994
+ Schema.Record(Schema.String, Schema.Unknown),
2995
+ Schema.Null,
2996
+ ]),
2646
2997
  ),
2647
2998
  d1Databases: Schema.optional(
2648
- Schema.Union([Schema.Struct({}), Schema.Null]),
2999
+ Schema.Union([
3000
+ Schema.Record(Schema.String, Schema.Unknown),
3001
+ Schema.Null,
3002
+ ]),
2649
3003
  ),
2650
3004
  durableObjectNamespaces: Schema.optional(
2651
- Schema.Union([Schema.Struct({}), Schema.Null]),
3005
+ Schema.Union([
3006
+ Schema.Record(Schema.String, Schema.Unknown),
3007
+ Schema.Null,
3008
+ ]),
2652
3009
  ),
2653
- envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2654
- failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2655
3010
  hyperdriveBindings: Schema.optional(
2656
- Schema.Union([Schema.Struct({}), Schema.Null]),
3011
+ Schema.Union([
3012
+ Schema.Record(Schema.String, Schema.Unknown),
3013
+ Schema.Null,
3014
+ ]),
2657
3015
  ),
2658
3016
  kvNamespaces: Schema.optional(
2659
- Schema.Union([Schema.Struct({}), Schema.Null]),
3017
+ Schema.Union([
3018
+ Schema.Record(Schema.String, Schema.Unknown),
3019
+ Schema.Null,
3020
+ ]),
2660
3021
  ),
2661
3022
  limits: Schema.optional(
2662
3023
  Schema.Union([
@@ -2667,7 +3028,10 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2667
3028
  ]),
2668
3029
  ),
2669
3030
  mtlsCertificates: Schema.optional(
2670
- Schema.Union([Schema.Struct({}), Schema.Null]),
3031
+ Schema.Union([
3032
+ Schema.Record(Schema.String, Schema.Unknown),
3033
+ Schema.Null,
3034
+ ]),
2671
3035
  ),
2672
3036
  placement: Schema.optional(
2673
3037
  Schema.Union([
@@ -2678,38 +3042,47 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2678
3042
  ]),
2679
3043
  ),
2680
3044
  queueProducers: Schema.optional(
2681
- Schema.Union([Schema.Struct({}), Schema.Null]),
3045
+ Schema.Union([
3046
+ Schema.Record(Schema.String, Schema.Unknown),
3047
+ Schema.Null,
3048
+ ]),
2682
3049
  ),
2683
3050
  r2Buckets: Schema.optional(
2684
- Schema.Union([Schema.Struct({}), Schema.Null]),
3051
+ Schema.Union([
3052
+ Schema.Record(Schema.String, Schema.Unknown),
3053
+ Schema.Null,
3054
+ ]),
2685
3055
  ),
2686
- services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2687
- usageModel: Schema.optional(
3056
+ services: Schema.optional(
2688
3057
  Schema.Union([
2689
- Schema.Literals(["standard", "bundled", "unbound"]),
3058
+ Schema.Record(Schema.String, Schema.Unknown),
2690
3059
  Schema.Null,
2691
3060
  ]),
2692
3061
  ),
2693
3062
  vectorizeBindings: Schema.optional(
2694
- Schema.Union([Schema.Struct({}), Schema.Null]),
3063
+ Schema.Union([
3064
+ Schema.Record(Schema.String, Schema.Unknown),
3065
+ Schema.Null,
3066
+ ]),
2695
3067
  ),
2696
3068
  wranglerConfigHash: Schema.optional(
2697
3069
  Schema.Union([Schema.String, Schema.Null]),
2698
3070
  ),
2699
3071
  }).pipe(
2700
3072
  Schema.encodeKeys({
2701
- aiBindings: "ai_bindings",
2702
3073
  alwaysUseLatestCompatibilityDate:
2703
3074
  "always_use_latest_compatibility_date",
2704
- analyticsEngineDatasets: "analytics_engine_datasets",
2705
- browsers: "browsers",
2706
3075
  buildImageMajorVersion: "build_image_major_version",
2707
3076
  compatibilityDate: "compatibility_date",
2708
3077
  compatibilityFlags: "compatibility_flags",
2709
- d1Databases: "d1_databases",
2710
- durableObjectNamespaces: "durable_object_namespaces",
2711
3078
  envVars: "env_vars",
2712
3079
  failOpen: "fail_open",
3080
+ usageModel: "usage_model",
3081
+ aiBindings: "ai_bindings",
3082
+ analyticsEngineDatasets: "analytics_engine_datasets",
3083
+ browsers: "browsers",
3084
+ d1Databases: "d1_databases",
3085
+ durableObjectNamespaces: "durable_object_namespaces",
2713
3086
  hyperdriveBindings: "hyperdrive_bindings",
2714
3087
  kvNamespaces: "kv_namespaces",
2715
3088
  limits: "limits",
@@ -2718,44 +3091,62 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2718
3091
  queueProducers: "queue_producers",
2719
3092
  r2Buckets: "r2_buckets",
2720
3093
  services: "services",
2721
- usageModel: "usage_model",
2722
3094
  vectorizeBindings: "vectorize_bindings",
2723
3095
  wranglerConfigHash: "wrangler_config_hash",
2724
3096
  }),
2725
3097
  ),
2726
3098
  production: Schema.Struct({
3099
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
3100
+ buildImageMajorVersion: Schema.Number,
3101
+ compatibilityDate: Schema.String,
3102
+ compatibilityFlags: Schema.Array(Schema.String),
3103
+ envVars: Schema.Union([
3104
+ Schema.Record(Schema.String, Schema.Unknown),
3105
+ Schema.Null,
3106
+ ]),
3107
+ failOpen: Schema.Boolean,
3108
+ usageModel: Schema.Literals(["standard", "bundled", "unbound"]),
2727
3109
  aiBindings: Schema.optional(
2728
- Schema.Union([Schema.Struct({}), Schema.Null]),
2729
- ),
2730
- alwaysUseLatestCompatibilityDate: Schema.optional(
2731
- Schema.Union([Schema.Boolean, Schema.Null]),
3110
+ Schema.Union([
3111
+ Schema.Record(Schema.String, Schema.Unknown),
3112
+ Schema.Null,
3113
+ ]),
2732
3114
  ),
2733
3115
  analyticsEngineDatasets: Schema.optional(
2734
- Schema.Union([Schema.Struct({}), Schema.Null]),
2735
- ),
2736
- browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2737
- buildImageMajorVersion: Schema.optional(
2738
- Schema.Union([Schema.Number, Schema.Null]),
2739
- ),
2740
- compatibilityDate: Schema.optional(
2741
- Schema.Union([Schema.String, Schema.Null]),
3116
+ Schema.Union([
3117
+ Schema.Record(Schema.String, Schema.Unknown),
3118
+ Schema.Null,
3119
+ ]),
2742
3120
  ),
2743
- compatibilityFlags: Schema.optional(
2744
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3121
+ browsers: Schema.optional(
3122
+ Schema.Union([
3123
+ Schema.Record(Schema.String, Schema.Unknown),
3124
+ Schema.Null,
3125
+ ]),
2745
3126
  ),
2746
3127
  d1Databases: Schema.optional(
2747
- Schema.Union([Schema.Struct({}), Schema.Null]),
3128
+ Schema.Union([
3129
+ Schema.Record(Schema.String, Schema.Unknown),
3130
+ Schema.Null,
3131
+ ]),
2748
3132
  ),
2749
3133
  durableObjectNamespaces: Schema.optional(
2750
- Schema.Union([Schema.Struct({}), Schema.Null]),
3134
+ Schema.Union([
3135
+ Schema.Record(Schema.String, Schema.Unknown),
3136
+ Schema.Null,
3137
+ ]),
2751
3138
  ),
2752
- envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2753
- failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2754
3139
  hyperdriveBindings: Schema.optional(
2755
- Schema.Union([Schema.Struct({}), Schema.Null]),
3140
+ Schema.Union([
3141
+ Schema.Record(Schema.String, Schema.Unknown),
3142
+ Schema.Null,
3143
+ ]),
2756
3144
  ),
2757
3145
  kvNamespaces: Schema.optional(
2758
- Schema.Union([Schema.Struct({}), Schema.Null]),
3146
+ Schema.Union([
3147
+ Schema.Record(Schema.String, Schema.Unknown),
3148
+ Schema.Null,
3149
+ ]),
2759
3150
  ),
2760
3151
  limits: Schema.optional(
2761
3152
  Schema.Union([
@@ -2766,7 +3157,10 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2766
3157
  ]),
2767
3158
  ),
2768
3159
  mtlsCertificates: Schema.optional(
2769
- Schema.Union([Schema.Struct({}), Schema.Null]),
3160
+ Schema.Union([
3161
+ Schema.Record(Schema.String, Schema.Unknown),
3162
+ Schema.Null,
3163
+ ]),
2770
3164
  ),
2771
3165
  placement: Schema.optional(
2772
3166
  Schema.Union([
@@ -2777,38 +3171,47 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2777
3171
  ]),
2778
3172
  ),
2779
3173
  queueProducers: Schema.optional(
2780
- Schema.Union([Schema.Struct({}), Schema.Null]),
3174
+ Schema.Union([
3175
+ Schema.Record(Schema.String, Schema.Unknown),
3176
+ Schema.Null,
3177
+ ]),
2781
3178
  ),
2782
3179
  r2Buckets: Schema.optional(
2783
- Schema.Union([Schema.Struct({}), Schema.Null]),
3180
+ Schema.Union([
3181
+ Schema.Record(Schema.String, Schema.Unknown),
3182
+ Schema.Null,
3183
+ ]),
2784
3184
  ),
2785
- services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2786
- usageModel: Schema.optional(
3185
+ services: Schema.optional(
2787
3186
  Schema.Union([
2788
- Schema.Literals(["standard", "bundled", "unbound"]),
3187
+ Schema.Record(Schema.String, Schema.Unknown),
2789
3188
  Schema.Null,
2790
3189
  ]),
2791
3190
  ),
2792
3191
  vectorizeBindings: Schema.optional(
2793
- Schema.Union([Schema.Struct({}), Schema.Null]),
3192
+ Schema.Union([
3193
+ Schema.Record(Schema.String, Schema.Unknown),
3194
+ Schema.Null,
3195
+ ]),
2794
3196
  ),
2795
3197
  wranglerConfigHash: Schema.optional(
2796
3198
  Schema.Union([Schema.String, Schema.Null]),
2797
3199
  ),
2798
3200
  }).pipe(
2799
3201
  Schema.encodeKeys({
2800
- aiBindings: "ai_bindings",
2801
3202
  alwaysUseLatestCompatibilityDate:
2802
3203
  "always_use_latest_compatibility_date",
2803
- analyticsEngineDatasets: "analytics_engine_datasets",
2804
- browsers: "browsers",
2805
3204
  buildImageMajorVersion: "build_image_major_version",
2806
3205
  compatibilityDate: "compatibility_date",
2807
3206
  compatibilityFlags: "compatibility_flags",
2808
- d1Databases: "d1_databases",
2809
- durableObjectNamespaces: "durable_object_namespaces",
2810
3207
  envVars: "env_vars",
2811
3208
  failOpen: "fail_open",
3209
+ usageModel: "usage_model",
3210
+ aiBindings: "ai_bindings",
3211
+ analyticsEngineDatasets: "analytics_engine_datasets",
3212
+ browsers: "browsers",
3213
+ d1Databases: "d1_databases",
3214
+ durableObjectNamespaces: "durable_object_namespaces",
2812
3215
  hyperdriveBindings: "hyperdrive_bindings",
2813
3216
  kvNamespaces: "kv_namespaces",
2814
3217
  limits: "limits",
@@ -2817,7 +3220,6 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2817
3220
  queueProducers: "queue_producers",
2818
3221
  r2Buckets: "r2_buckets",
2819
3222
  services: "services",
2820
- usageModel: "usage_model",
2821
3223
  vectorizeBindings: "vectorize_bindings",
2822
3224
  wranglerConfigHash: "wrangler_config_hash",
2823
3225
  }),
@@ -2869,50 +3271,56 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2869
3271
  ),
2870
3272
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
2871
3273
  }),
2872
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
3274
+ envVars: Schema.Union([
3275
+ Schema.Record(Schema.String, Schema.Unknown),
3276
+ Schema.Null,
3277
+ ]),
2873
3278
  environment: Schema.Literals(["preview", "production"]),
2874
3279
  isSkipped: Schema.Boolean,
2875
- latestStage: Schema.Unknown,
3280
+ latestStage: Schema.Struct({
3281
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
3282
+ name: Schema.Literals([
3283
+ "queued",
3284
+ "initialize",
3285
+ "clone_repo",
3286
+ "build",
3287
+ "deploy",
3288
+ ]),
3289
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
3290
+ status: Schema.Literals([
3291
+ "success",
3292
+ "idle",
3293
+ "active",
3294
+ "failure",
3295
+ "canceled",
3296
+ ]),
3297
+ }).pipe(
3298
+ Schema.encodeKeys({
3299
+ endedOn: "ended_on",
3300
+ name: "name",
3301
+ startedOn: "started_on",
3302
+ status: "status",
3303
+ }),
3304
+ ),
2876
3305
  modifiedOn: Schema.String,
2877
3306
  projectId: Schema.String,
2878
3307
  projectName: Schema.String,
2879
3308
  shortId: Schema.String,
2880
3309
  source: Schema.Struct({
2881
3310
  config: Schema.Struct({
2882
- deploymentsEnabled: Schema.optional(
2883
- Schema.Union([Schema.Boolean, Schema.Null]),
2884
- ),
2885
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2886
- ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2887
- pathExcludes: Schema.optional(
2888
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2889
- ),
2890
- pathIncludes: Schema.optional(
2891
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2892
- ),
2893
- prCommentsEnabled: Schema.optional(
2894
- Schema.Union([Schema.Boolean, Schema.Null]),
2895
- ),
2896
- previewBranchExcludes: Schema.optional(
2897
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2898
- ),
2899
- previewBranchIncludes: Schema.optional(
2900
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2901
- ),
2902
- previewDeploymentSetting: Schema.optional(
2903
- Schema.Union([
2904
- Schema.Literals(["all", "none", "custom"]),
2905
- Schema.Null,
2906
- ]),
2907
- ),
2908
- productionBranch: Schema.optional(
2909
- Schema.Union([Schema.String, Schema.Null]),
2910
- ),
2911
- productionDeploymentsEnabled: Schema.optional(
2912
- Schema.Union([Schema.Boolean, Schema.Null]),
2913
- ),
2914
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2915
- repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3311
+ deploymentsEnabled: Schema.Boolean,
3312
+ owner: Schema.String,
3313
+ ownerId: Schema.String,
3314
+ pathExcludes: Schema.Array(Schema.String),
3315
+ pathIncludes: Schema.Array(Schema.String),
3316
+ prCommentsEnabled: Schema.Boolean,
3317
+ previewBranchExcludes: Schema.Array(Schema.String),
3318
+ previewBranchIncludes: Schema.Array(Schema.String),
3319
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
3320
+ productionBranch: Schema.String,
3321
+ productionDeploymentsEnabled: Schema.Boolean,
3322
+ repoId: Schema.String,
3323
+ repoName: Schema.String,
2916
3324
  }).pipe(
2917
3325
  Schema.encodeKeys({
2918
3326
  deploymentsEnabled: "deployments_enabled",
@@ -2932,7 +3340,33 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2932
3340
  ),
2933
3341
  type: Schema.Literals(["github", "gitlab"]),
2934
3342
  }),
2935
- stages: Schema.Array(Schema.Unknown),
3343
+ stages: Schema.Array(
3344
+ Schema.Struct({
3345
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
3346
+ name: Schema.Literals([
3347
+ "queued",
3348
+ "initialize",
3349
+ "clone_repo",
3350
+ "build",
3351
+ "deploy",
3352
+ ]),
3353
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
3354
+ status: Schema.Literals([
3355
+ "success",
3356
+ "idle",
3357
+ "active",
3358
+ "failure",
3359
+ "canceled",
3360
+ ]),
3361
+ }).pipe(
3362
+ Schema.encodeKeys({
3363
+ endedOn: "ended_on",
3364
+ name: "name",
3365
+ startedOn: "started_on",
3366
+ status: "status",
3367
+ }),
3368
+ ),
3369
+ ),
2936
3370
  url: Schema.String,
2937
3371
  usesFunctions: Schema.optional(
2938
3372
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -3000,40 +3434,19 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3000
3434
  Schema.Union([
3001
3435
  Schema.Struct({
3002
3436
  config: Schema.Struct({
3003
- deploymentsEnabled: Schema.optional(
3004
- Schema.Union([Schema.Boolean, Schema.Null]),
3005
- ),
3006
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3007
- ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3008
- pathExcludes: Schema.optional(
3009
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3010
- ),
3011
- pathIncludes: Schema.optional(
3012
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3013
- ),
3014
- prCommentsEnabled: Schema.optional(
3015
- Schema.Union([Schema.Boolean, Schema.Null]),
3016
- ),
3017
- previewBranchExcludes: Schema.optional(
3018
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3019
- ),
3020
- previewBranchIncludes: Schema.optional(
3021
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3022
- ),
3023
- previewDeploymentSetting: Schema.optional(
3024
- Schema.Union([
3025
- Schema.Literals(["all", "none", "custom"]),
3026
- Schema.Null,
3027
- ]),
3028
- ),
3029
- productionBranch: Schema.optional(
3030
- Schema.Union([Schema.String, Schema.Null]),
3031
- ),
3032
- productionDeploymentsEnabled: Schema.optional(
3033
- Schema.Union([Schema.Boolean, Schema.Null]),
3034
- ),
3035
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3036
- repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3437
+ deploymentsEnabled: Schema.Boolean,
3438
+ owner: Schema.String,
3439
+ ownerId: Schema.String,
3440
+ pathExcludes: Schema.Array(Schema.String),
3441
+ pathIncludes: Schema.Array(Schema.String),
3442
+ prCommentsEnabled: Schema.Boolean,
3443
+ previewBranchExcludes: Schema.Array(Schema.String),
3444
+ previewBranchIncludes: Schema.Array(Schema.String),
3445
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
3446
+ productionBranch: Schema.String,
3447
+ productionDeploymentsEnabled: Schema.Boolean,
3448
+ repoId: Schema.String,
3449
+ repoName: Schema.String,
3037
3450
  }).pipe(
3038
3451
  Schema.encodeKeys({
3039
3452
  deploymentsEnabled: "deployments_enabled",
@@ -3214,37 +3627,63 @@ export const PatchProjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3214
3627
  Schema.Struct({
3215
3628
  preview: Schema.optional(
3216
3629
  Schema.Struct({
3217
- aiBindings: Schema.optional(Schema.Struct({})),
3630
+ aiBindings: Schema.optional(
3631
+ Schema.Record(Schema.String, Schema.Unknown),
3632
+ ),
3218
3633
  alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Boolean),
3219
- analyticsEngineDatasets: Schema.optional(Schema.Struct({})),
3220
- browsers: Schema.optional(Schema.Struct({})),
3634
+ analyticsEngineDatasets: Schema.optional(
3635
+ Schema.Record(Schema.String, Schema.Unknown),
3636
+ ),
3637
+ browsers: Schema.optional(
3638
+ Schema.Record(Schema.String, Schema.Unknown),
3639
+ ),
3221
3640
  buildImageMajorVersion: Schema.optional(Schema.Number),
3222
3641
  compatibilityDate: Schema.optional(Schema.String),
3223
3642
  compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
3224
- d1Databases: Schema.optional(Schema.Struct({})),
3225
- durableObjectNamespaces: Schema.optional(Schema.Struct({})),
3226
- envVars: Schema.optional(Schema.Struct({})),
3643
+ d1Databases: Schema.optional(
3644
+ Schema.Record(Schema.String, Schema.Unknown),
3645
+ ),
3646
+ durableObjectNamespaces: Schema.optional(
3647
+ Schema.Record(Schema.String, Schema.Unknown),
3648
+ ),
3649
+ envVars: Schema.optional(
3650
+ Schema.Record(Schema.String, Schema.Unknown),
3651
+ ),
3227
3652
  failOpen: Schema.optional(Schema.Boolean),
3228
- hyperdriveBindings: Schema.optional(Schema.Struct({})),
3229
- kvNamespaces: Schema.optional(Schema.Struct({})),
3653
+ hyperdriveBindings: Schema.optional(
3654
+ Schema.Record(Schema.String, Schema.Unknown),
3655
+ ),
3656
+ kvNamespaces: Schema.optional(
3657
+ Schema.Record(Schema.String, Schema.Unknown),
3658
+ ),
3230
3659
  limits: Schema.optional(
3231
3660
  Schema.Struct({
3232
3661
  cpuMs: Schema.Number,
3233
3662
  }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
3234
3663
  ),
3235
- mtlsCertificates: Schema.optional(Schema.Struct({})),
3664
+ mtlsCertificates: Schema.optional(
3665
+ Schema.Record(Schema.String, Schema.Unknown),
3666
+ ),
3236
3667
  placement: Schema.optional(
3237
3668
  Schema.Struct({
3238
3669
  mode: Schema.String,
3239
3670
  }),
3240
3671
  ),
3241
- queueProducers: Schema.optional(Schema.Struct({})),
3242
- r2Buckets: Schema.optional(Schema.Struct({})),
3243
- services: Schema.optional(Schema.Struct({})),
3672
+ queueProducers: Schema.optional(
3673
+ Schema.Record(Schema.String, Schema.Unknown),
3674
+ ),
3675
+ r2Buckets: Schema.optional(
3676
+ Schema.Record(Schema.String, Schema.Unknown),
3677
+ ),
3678
+ services: Schema.optional(
3679
+ Schema.Record(Schema.String, Schema.Unknown),
3680
+ ),
3244
3681
  usageModel: Schema.optional(
3245
3682
  Schema.Literals(["standard", "bundled", "unbound"]),
3246
3683
  ),
3247
- vectorizeBindings: Schema.optional(Schema.Struct({})),
3684
+ vectorizeBindings: Schema.optional(
3685
+ Schema.Record(Schema.String, Schema.Unknown),
3686
+ ),
3248
3687
  wranglerConfigHash: Schema.optional(Schema.String),
3249
3688
  }).pipe(
3250
3689
  Schema.encodeKeys({
@@ -3276,37 +3715,63 @@ export const PatchProjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3276
3715
  ),
3277
3716
  production: Schema.optional(
3278
3717
  Schema.Struct({
3279
- aiBindings: Schema.optional(Schema.Struct({})),
3718
+ aiBindings: Schema.optional(
3719
+ Schema.Record(Schema.String, Schema.Unknown),
3720
+ ),
3280
3721
  alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Boolean),
3281
- analyticsEngineDatasets: Schema.optional(Schema.Struct({})),
3282
- browsers: Schema.optional(Schema.Struct({})),
3722
+ analyticsEngineDatasets: Schema.optional(
3723
+ Schema.Record(Schema.String, Schema.Unknown),
3724
+ ),
3725
+ browsers: Schema.optional(
3726
+ Schema.Record(Schema.String, Schema.Unknown),
3727
+ ),
3283
3728
  buildImageMajorVersion: Schema.optional(Schema.Number),
3284
3729
  compatibilityDate: Schema.optional(Schema.String),
3285
3730
  compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
3286
- d1Databases: Schema.optional(Schema.Struct({})),
3287
- durableObjectNamespaces: Schema.optional(Schema.Struct({})),
3288
- envVars: Schema.optional(Schema.Struct({})),
3731
+ d1Databases: Schema.optional(
3732
+ Schema.Record(Schema.String, Schema.Unknown),
3733
+ ),
3734
+ durableObjectNamespaces: Schema.optional(
3735
+ Schema.Record(Schema.String, Schema.Unknown),
3736
+ ),
3737
+ envVars: Schema.optional(
3738
+ Schema.Record(Schema.String, Schema.Unknown),
3739
+ ),
3289
3740
  failOpen: Schema.optional(Schema.Boolean),
3290
- hyperdriveBindings: Schema.optional(Schema.Struct({})),
3291
- kvNamespaces: Schema.optional(Schema.Struct({})),
3741
+ hyperdriveBindings: Schema.optional(
3742
+ Schema.Record(Schema.String, Schema.Unknown),
3743
+ ),
3744
+ kvNamespaces: Schema.optional(
3745
+ Schema.Record(Schema.String, Schema.Unknown),
3746
+ ),
3292
3747
  limits: Schema.optional(
3293
3748
  Schema.Struct({
3294
3749
  cpuMs: Schema.Number,
3295
3750
  }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
3296
3751
  ),
3297
- mtlsCertificates: Schema.optional(Schema.Struct({})),
3752
+ mtlsCertificates: Schema.optional(
3753
+ Schema.Record(Schema.String, Schema.Unknown),
3754
+ ),
3298
3755
  placement: Schema.optional(
3299
3756
  Schema.Struct({
3300
3757
  mode: Schema.String,
3301
3758
  }),
3302
3759
  ),
3303
- queueProducers: Schema.optional(Schema.Struct({})),
3304
- r2Buckets: Schema.optional(Schema.Struct({})),
3305
- services: Schema.optional(Schema.Struct({})),
3760
+ queueProducers: Schema.optional(
3761
+ Schema.Record(Schema.String, Schema.Unknown),
3762
+ ),
3763
+ r2Buckets: Schema.optional(
3764
+ Schema.Record(Schema.String, Schema.Unknown),
3765
+ ),
3766
+ services: Schema.optional(
3767
+ Schema.Record(Schema.String, Schema.Unknown),
3768
+ ),
3306
3769
  usageModel: Schema.optional(
3307
3770
  Schema.Literals(["standard", "bundled", "unbound"]),
3308
3771
  ),
3309
- vectorizeBindings: Schema.optional(Schema.Struct({})),
3772
+ vectorizeBindings: Schema.optional(
3773
+ Schema.Record(Schema.String, Schema.Unknown),
3774
+ ),
3310
3775
  wranglerConfigHash: Schema.optional(Schema.String),
3311
3776
  }).pipe(
3312
3777
  Schema.encodeKeys({
@@ -3420,30 +3885,40 @@ export interface PatchProjectResponse {
3420
3885
  envVars: Record<string, unknown> | null;
3421
3886
  environment: "preview" | "production";
3422
3887
  isSkipped: boolean;
3423
- latestStage: unknown;
3888
+ latestStage: {
3889
+ endedOn: string | null;
3890
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
3891
+ startedOn: string | null;
3892
+ status: "success" | "idle" | "active" | "failure" | "canceled";
3893
+ };
3424
3894
  modifiedOn: string;
3425
3895
  projectId: string;
3426
3896
  projectName: string;
3427
3897
  shortId: string;
3428
3898
  source: {
3429
3899
  config: {
3430
- deploymentsEnabled?: boolean | null;
3431
- owner?: string | null;
3432
- ownerId?: string | null;
3433
- pathExcludes?: string[] | null;
3434
- pathIncludes?: string[] | null;
3435
- prCommentsEnabled?: boolean | null;
3436
- previewBranchExcludes?: string[] | null;
3437
- previewBranchIncludes?: string[] | null;
3438
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
3439
- productionBranch?: string | null;
3440
- productionDeploymentsEnabled?: boolean | null;
3441
- repoId?: string | null;
3442
- repoName?: string | null;
3900
+ deploymentsEnabled: boolean;
3901
+ owner: string;
3902
+ ownerId: string;
3903
+ pathExcludes: string[];
3904
+ pathIncludes: string[];
3905
+ prCommentsEnabled: boolean;
3906
+ previewBranchExcludes: string[];
3907
+ previewBranchIncludes: string[];
3908
+ previewDeploymentSetting: "all" | "none" | "custom";
3909
+ productionBranch: string;
3910
+ productionDeploymentsEnabled: boolean;
3911
+ repoId: string;
3912
+ repoName: string;
3443
3913
  };
3444
3914
  type: "github" | "gitlab";
3445
3915
  };
3446
- stages: unknown[];
3916
+ stages: {
3917
+ endedOn: string | null;
3918
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
3919
+ startedOn: string | null;
3920
+ status: "success" | "idle" | "active" | "failure" | "canceled";
3921
+ }[];
3447
3922
  url: string;
3448
3923
  usesFunctions?: boolean | null;
3449
3924
  } | null;
@@ -3452,17 +3927,18 @@ export interface PatchProjectResponse {
3452
3927
  /** Configs for deployments in a project. */
3453
3928
  deploymentConfigs: {
3454
3929
  preview: {
3930
+ alwaysUseLatestCompatibilityDate: boolean;
3931
+ buildImageMajorVersion: number;
3932
+ compatibilityDate: string;
3933
+ compatibilityFlags: string[];
3934
+ envVars: Record<string, unknown> | null;
3935
+ failOpen: boolean;
3936
+ usageModel: "standard" | "bundled" | "unbound";
3455
3937
  aiBindings?: Record<string, unknown> | null;
3456
- alwaysUseLatestCompatibilityDate?: boolean | null;
3457
3938
  analyticsEngineDatasets?: Record<string, unknown> | null;
3458
3939
  browsers?: Record<string, unknown> | null;
3459
- buildImageMajorVersion?: number | null;
3460
- compatibilityDate?: string | null;
3461
- compatibilityFlags?: string[] | null;
3462
3940
  d1Databases?: Record<string, unknown> | null;
3463
3941
  durableObjectNamespaces?: Record<string, unknown> | null;
3464
- envVars?: Record<string, unknown> | null;
3465
- failOpen?: boolean | null;
3466
3942
  hyperdriveBindings?: Record<string, unknown> | null;
3467
3943
  kvNamespaces?: Record<string, unknown> | null;
3468
3944
  limits?: { cpuMs: number } | null;
@@ -3471,22 +3947,22 @@ export interface PatchProjectResponse {
3471
3947
  queueProducers?: Record<string, unknown> | null;
3472
3948
  r2Buckets?: Record<string, unknown> | null;
3473
3949
  services?: Record<string, unknown> | null;
3474
- usageModel?: "standard" | "bundled" | "unbound" | null;
3475
3950
  vectorizeBindings?: Record<string, unknown> | null;
3476
3951
  wranglerConfigHash?: string | null;
3477
3952
  };
3478
3953
  production: {
3954
+ alwaysUseLatestCompatibilityDate: boolean;
3955
+ buildImageMajorVersion: number;
3956
+ compatibilityDate: string;
3957
+ compatibilityFlags: string[];
3958
+ envVars: Record<string, unknown> | null;
3959
+ failOpen: boolean;
3960
+ usageModel: "standard" | "bundled" | "unbound";
3479
3961
  aiBindings?: Record<string, unknown> | null;
3480
- alwaysUseLatestCompatibilityDate?: boolean | null;
3481
3962
  analyticsEngineDatasets?: Record<string, unknown> | null;
3482
3963
  browsers?: Record<string, unknown> | null;
3483
- buildImageMajorVersion?: number | null;
3484
- compatibilityDate?: string | null;
3485
- compatibilityFlags?: string[] | null;
3486
3964
  d1Databases?: Record<string, unknown> | null;
3487
3965
  durableObjectNamespaces?: Record<string, unknown> | null;
3488
- envVars?: Record<string, unknown> | null;
3489
- failOpen?: boolean | null;
3490
3966
  hyperdriveBindings?: Record<string, unknown> | null;
3491
3967
  kvNamespaces?: Record<string, unknown> | null;
3492
3968
  limits?: { cpuMs: number } | null;
@@ -3495,7 +3971,6 @@ export interface PatchProjectResponse {
3495
3971
  queueProducers?: Record<string, unknown> | null;
3496
3972
  r2Buckets?: Record<string, unknown> | null;
3497
3973
  services?: Record<string, unknown> | null;
3498
- usageModel?: "standard" | "bundled" | "unbound" | null;
3499
3974
  vectorizeBindings?: Record<string, unknown> | null;
3500
3975
  wranglerConfigHash?: string | null;
3501
3976
  };
@@ -3529,30 +4004,40 @@ export interface PatchProjectResponse {
3529
4004
  envVars: Record<string, unknown> | null;
3530
4005
  environment: "preview" | "production";
3531
4006
  isSkipped: boolean;
3532
- latestStage: unknown;
4007
+ latestStage: {
4008
+ endedOn: string | null;
4009
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
4010
+ startedOn: string | null;
4011
+ status: "success" | "idle" | "active" | "failure" | "canceled";
4012
+ };
3533
4013
  modifiedOn: string;
3534
4014
  projectId: string;
3535
4015
  projectName: string;
3536
4016
  shortId: string;
3537
4017
  source: {
3538
4018
  config: {
3539
- deploymentsEnabled?: boolean | null;
3540
- owner?: string | null;
3541
- ownerId?: string | null;
3542
- pathExcludes?: string[] | null;
3543
- pathIncludes?: string[] | null;
3544
- prCommentsEnabled?: boolean | null;
3545
- previewBranchExcludes?: string[] | null;
3546
- previewBranchIncludes?: string[] | null;
3547
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
3548
- productionBranch?: string | null;
3549
- productionDeploymentsEnabled?: boolean | null;
3550
- repoId?: string | null;
3551
- repoName?: string | null;
4019
+ deploymentsEnabled: boolean;
4020
+ owner: string;
4021
+ ownerId: string;
4022
+ pathExcludes: string[];
4023
+ pathIncludes: string[];
4024
+ prCommentsEnabled: boolean;
4025
+ previewBranchExcludes: string[];
4026
+ previewBranchIncludes: string[];
4027
+ previewDeploymentSetting: "all" | "none" | "custom";
4028
+ productionBranch: string;
4029
+ productionDeploymentsEnabled: boolean;
4030
+ repoId: string;
4031
+ repoName: string;
3552
4032
  };
3553
4033
  type: "github" | "gitlab";
3554
4034
  };
3555
- stages: unknown[];
4035
+ stages: {
4036
+ endedOn: string | null;
4037
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
4038
+ startedOn: string | null;
4039
+ status: "success" | "idle" | "active" | "failure" | "canceled";
4040
+ }[];
3556
4041
  url: string;
3557
4042
  usesFunctions?: boolean | null;
3558
4043
  } | null;
@@ -3580,19 +4065,19 @@ export interface PatchProjectResponse {
3580
4065
  /** Configs for the project source control. */
3581
4066
  source?: {
3582
4067
  config: {
3583
- deploymentsEnabled?: boolean | null;
3584
- owner?: string | null;
3585
- ownerId?: string | null;
3586
- pathExcludes?: string[] | null;
3587
- pathIncludes?: string[] | null;
3588
- prCommentsEnabled?: boolean | null;
3589
- previewBranchExcludes?: string[] | null;
3590
- previewBranchIncludes?: string[] | null;
3591
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
3592
- productionBranch?: string | null;
3593
- productionDeploymentsEnabled?: boolean | null;
3594
- repoId?: string | null;
3595
- repoName?: string | null;
4068
+ deploymentsEnabled: boolean;
4069
+ owner: string;
4070
+ ownerId: string;
4071
+ pathExcludes: string[];
4072
+ pathIncludes: string[];
4073
+ prCommentsEnabled: boolean;
4074
+ previewBranchExcludes: string[];
4075
+ previewBranchIncludes: string[];
4076
+ previewDeploymentSetting: "all" | "none" | "custom";
4077
+ productionBranch: string;
4078
+ productionDeploymentsEnabled: boolean;
4079
+ repoId: string;
4080
+ repoName: string;
3596
4081
  };
3597
4082
  type: "github" | "gitlab";
3598
4083
  } | null;
@@ -3646,50 +4131,56 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3646
4131
  ),
3647
4132
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
3648
4133
  }),
3649
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
4134
+ envVars: Schema.Union([
4135
+ Schema.Record(Schema.String, Schema.Unknown),
4136
+ Schema.Null,
4137
+ ]),
3650
4138
  environment: Schema.Literals(["preview", "production"]),
3651
4139
  isSkipped: Schema.Boolean,
3652
- latestStage: Schema.Unknown,
4140
+ latestStage: Schema.Struct({
4141
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
4142
+ name: Schema.Literals([
4143
+ "queued",
4144
+ "initialize",
4145
+ "clone_repo",
4146
+ "build",
4147
+ "deploy",
4148
+ ]),
4149
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
4150
+ status: Schema.Literals([
4151
+ "success",
4152
+ "idle",
4153
+ "active",
4154
+ "failure",
4155
+ "canceled",
4156
+ ]),
4157
+ }).pipe(
4158
+ Schema.encodeKeys({
4159
+ endedOn: "ended_on",
4160
+ name: "name",
4161
+ startedOn: "started_on",
4162
+ status: "status",
4163
+ }),
4164
+ ),
3653
4165
  modifiedOn: Schema.String,
3654
4166
  projectId: Schema.String,
3655
4167
  projectName: Schema.String,
3656
4168
  shortId: Schema.String,
3657
4169
  source: Schema.Struct({
3658
4170
  config: Schema.Struct({
3659
- deploymentsEnabled: Schema.optional(
3660
- Schema.Union([Schema.Boolean, Schema.Null]),
3661
- ),
3662
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3663
- ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3664
- pathExcludes: Schema.optional(
3665
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3666
- ),
3667
- pathIncludes: Schema.optional(
3668
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3669
- ),
3670
- prCommentsEnabled: Schema.optional(
3671
- Schema.Union([Schema.Boolean, Schema.Null]),
3672
- ),
3673
- previewBranchExcludes: Schema.optional(
3674
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3675
- ),
3676
- previewBranchIncludes: Schema.optional(
3677
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3678
- ),
3679
- previewDeploymentSetting: Schema.optional(
3680
- Schema.Union([
3681
- Schema.Literals(["all", "none", "custom"]),
3682
- Schema.Null,
3683
- ]),
3684
- ),
3685
- productionBranch: Schema.optional(
3686
- Schema.Union([Schema.String, Schema.Null]),
3687
- ),
3688
- productionDeploymentsEnabled: Schema.optional(
3689
- Schema.Union([Schema.Boolean, Schema.Null]),
3690
- ),
3691
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3692
- repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4171
+ deploymentsEnabled: Schema.Boolean,
4172
+ owner: Schema.String,
4173
+ ownerId: Schema.String,
4174
+ pathExcludes: Schema.Array(Schema.String),
4175
+ pathIncludes: Schema.Array(Schema.String),
4176
+ prCommentsEnabled: Schema.Boolean,
4177
+ previewBranchExcludes: Schema.Array(Schema.String),
4178
+ previewBranchIncludes: Schema.Array(Schema.String),
4179
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
4180
+ productionBranch: Schema.String,
4181
+ productionDeploymentsEnabled: Schema.Boolean,
4182
+ repoId: Schema.String,
4183
+ repoName: Schema.String,
3693
4184
  }).pipe(
3694
4185
  Schema.encodeKeys({
3695
4186
  deploymentsEnabled: "deployments_enabled",
@@ -3709,7 +4200,33 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3709
4200
  ),
3710
4201
  type: Schema.Literals(["github", "gitlab"]),
3711
4202
  }),
3712
- stages: Schema.Array(Schema.Unknown),
4203
+ stages: Schema.Array(
4204
+ Schema.Struct({
4205
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
4206
+ name: Schema.Literals([
4207
+ "queued",
4208
+ "initialize",
4209
+ "clone_repo",
4210
+ "build",
4211
+ "deploy",
4212
+ ]),
4213
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
4214
+ status: Schema.Literals([
4215
+ "success",
4216
+ "idle",
4217
+ "active",
4218
+ "failure",
4219
+ "canceled",
4220
+ ]),
4221
+ }).pipe(
4222
+ Schema.encodeKeys({
4223
+ endedOn: "ended_on",
4224
+ name: "name",
4225
+ startedOn: "started_on",
4226
+ status: "status",
4227
+ }),
4228
+ ),
4229
+ ),
3713
4230
  url: Schema.String,
3714
4231
  usesFunctions: Schema.optional(
3715
4232
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -3740,38 +4257,57 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3740
4257
  createdOn: Schema.String,
3741
4258
  deploymentConfigs: Schema.Struct({
3742
4259
  preview: Schema.Struct({
4260
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
4261
+ buildImageMajorVersion: Schema.Number,
4262
+ compatibilityDate: Schema.String,
4263
+ compatibilityFlags: Schema.Array(Schema.String),
4264
+ envVars: Schema.Union([
4265
+ Schema.Record(Schema.String, Schema.Unknown),
4266
+ Schema.Null,
4267
+ ]),
4268
+ failOpen: Schema.Boolean,
4269
+ usageModel: Schema.Literals(["standard", "bundled", "unbound"]),
3743
4270
  aiBindings: Schema.optional(
3744
- Schema.Union([Schema.Struct({}), Schema.Null]),
3745
- ),
3746
- alwaysUseLatestCompatibilityDate: Schema.optional(
3747
- Schema.Union([Schema.Boolean, Schema.Null]),
4271
+ Schema.Union([
4272
+ Schema.Record(Schema.String, Schema.Unknown),
4273
+ Schema.Null,
4274
+ ]),
3748
4275
  ),
3749
4276
  analyticsEngineDatasets: Schema.optional(
3750
- Schema.Union([Schema.Struct({}), Schema.Null]),
3751
- ),
3752
- browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
3753
- buildImageMajorVersion: Schema.optional(
3754
- Schema.Union([Schema.Number, Schema.Null]),
3755
- ),
3756
- compatibilityDate: Schema.optional(
3757
- Schema.Union([Schema.String, Schema.Null]),
4277
+ Schema.Union([
4278
+ Schema.Record(Schema.String, Schema.Unknown),
4279
+ Schema.Null,
4280
+ ]),
3758
4281
  ),
3759
- compatibilityFlags: Schema.optional(
3760
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4282
+ browsers: Schema.optional(
4283
+ Schema.Union([
4284
+ Schema.Record(Schema.String, Schema.Unknown),
4285
+ Schema.Null,
4286
+ ]),
3761
4287
  ),
3762
4288
  d1Databases: Schema.optional(
3763
- Schema.Union([Schema.Struct({}), Schema.Null]),
4289
+ Schema.Union([
4290
+ Schema.Record(Schema.String, Schema.Unknown),
4291
+ Schema.Null,
4292
+ ]),
3764
4293
  ),
3765
4294
  durableObjectNamespaces: Schema.optional(
3766
- Schema.Union([Schema.Struct({}), Schema.Null]),
4295
+ Schema.Union([
4296
+ Schema.Record(Schema.String, Schema.Unknown),
4297
+ Schema.Null,
4298
+ ]),
3767
4299
  ),
3768
- envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
3769
- failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3770
4300
  hyperdriveBindings: Schema.optional(
3771
- Schema.Union([Schema.Struct({}), Schema.Null]),
4301
+ Schema.Union([
4302
+ Schema.Record(Schema.String, Schema.Unknown),
4303
+ Schema.Null,
4304
+ ]),
3772
4305
  ),
3773
4306
  kvNamespaces: Schema.optional(
3774
- Schema.Union([Schema.Struct({}), Schema.Null]),
4307
+ Schema.Union([
4308
+ Schema.Record(Schema.String, Schema.Unknown),
4309
+ Schema.Null,
4310
+ ]),
3775
4311
  ),
3776
4312
  limits: Schema.optional(
3777
4313
  Schema.Union([
@@ -3781,9 +4317,12 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3781
4317
  Schema.Null,
3782
4318
  ]),
3783
4319
  ),
3784
- mtlsCertificates: Schema.optional(
3785
- Schema.Union([Schema.Struct({}), Schema.Null]),
3786
- ),
4320
+ mtlsCertificates: Schema.optional(
4321
+ Schema.Union([
4322
+ Schema.Record(Schema.String, Schema.Unknown),
4323
+ Schema.Null,
4324
+ ]),
4325
+ ),
3787
4326
  placement: Schema.optional(
3788
4327
  Schema.Union([
3789
4328
  Schema.Struct({
@@ -3793,38 +4332,47 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3793
4332
  ]),
3794
4333
  ),
3795
4334
  queueProducers: Schema.optional(
3796
- Schema.Union([Schema.Struct({}), Schema.Null]),
4335
+ Schema.Union([
4336
+ Schema.Record(Schema.String, Schema.Unknown),
4337
+ Schema.Null,
4338
+ ]),
3797
4339
  ),
3798
4340
  r2Buckets: Schema.optional(
3799
- Schema.Union([Schema.Struct({}), Schema.Null]),
4341
+ Schema.Union([
4342
+ Schema.Record(Schema.String, Schema.Unknown),
4343
+ Schema.Null,
4344
+ ]),
3800
4345
  ),
3801
- services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
3802
- usageModel: Schema.optional(
4346
+ services: Schema.optional(
3803
4347
  Schema.Union([
3804
- Schema.Literals(["standard", "bundled", "unbound"]),
4348
+ Schema.Record(Schema.String, Schema.Unknown),
3805
4349
  Schema.Null,
3806
4350
  ]),
3807
4351
  ),
3808
4352
  vectorizeBindings: Schema.optional(
3809
- Schema.Union([Schema.Struct({}), Schema.Null]),
4353
+ Schema.Union([
4354
+ Schema.Record(Schema.String, Schema.Unknown),
4355
+ Schema.Null,
4356
+ ]),
3810
4357
  ),
3811
4358
  wranglerConfigHash: Schema.optional(
3812
4359
  Schema.Union([Schema.String, Schema.Null]),
3813
4360
  ),
3814
4361
  }).pipe(
3815
4362
  Schema.encodeKeys({
3816
- aiBindings: "ai_bindings",
3817
4363
  alwaysUseLatestCompatibilityDate:
3818
4364
  "always_use_latest_compatibility_date",
3819
- analyticsEngineDatasets: "analytics_engine_datasets",
3820
- browsers: "browsers",
3821
4365
  buildImageMajorVersion: "build_image_major_version",
3822
4366
  compatibilityDate: "compatibility_date",
3823
4367
  compatibilityFlags: "compatibility_flags",
3824
- d1Databases: "d1_databases",
3825
- durableObjectNamespaces: "durable_object_namespaces",
3826
4368
  envVars: "env_vars",
3827
4369
  failOpen: "fail_open",
4370
+ usageModel: "usage_model",
4371
+ aiBindings: "ai_bindings",
4372
+ analyticsEngineDatasets: "analytics_engine_datasets",
4373
+ browsers: "browsers",
4374
+ d1Databases: "d1_databases",
4375
+ durableObjectNamespaces: "durable_object_namespaces",
3828
4376
  hyperdriveBindings: "hyperdrive_bindings",
3829
4377
  kvNamespaces: "kv_namespaces",
3830
4378
  limits: "limits",
@@ -3833,44 +4381,62 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3833
4381
  queueProducers: "queue_producers",
3834
4382
  r2Buckets: "r2_buckets",
3835
4383
  services: "services",
3836
- usageModel: "usage_model",
3837
4384
  vectorizeBindings: "vectorize_bindings",
3838
4385
  wranglerConfigHash: "wrangler_config_hash",
3839
4386
  }),
3840
4387
  ),
3841
4388
  production: Schema.Struct({
4389
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
4390
+ buildImageMajorVersion: Schema.Number,
4391
+ compatibilityDate: Schema.String,
4392
+ compatibilityFlags: Schema.Array(Schema.String),
4393
+ envVars: Schema.Union([
4394
+ Schema.Record(Schema.String, Schema.Unknown),
4395
+ Schema.Null,
4396
+ ]),
4397
+ failOpen: Schema.Boolean,
4398
+ usageModel: Schema.Literals(["standard", "bundled", "unbound"]),
3842
4399
  aiBindings: Schema.optional(
3843
- Schema.Union([Schema.Struct({}), Schema.Null]),
3844
- ),
3845
- alwaysUseLatestCompatibilityDate: Schema.optional(
3846
- Schema.Union([Schema.Boolean, Schema.Null]),
4400
+ Schema.Union([
4401
+ Schema.Record(Schema.String, Schema.Unknown),
4402
+ Schema.Null,
4403
+ ]),
3847
4404
  ),
3848
4405
  analyticsEngineDatasets: Schema.optional(
3849
- Schema.Union([Schema.Struct({}), Schema.Null]),
3850
- ),
3851
- browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
3852
- buildImageMajorVersion: Schema.optional(
3853
- Schema.Union([Schema.Number, Schema.Null]),
3854
- ),
3855
- compatibilityDate: Schema.optional(
3856
- Schema.Union([Schema.String, Schema.Null]),
4406
+ Schema.Union([
4407
+ Schema.Record(Schema.String, Schema.Unknown),
4408
+ Schema.Null,
4409
+ ]),
3857
4410
  ),
3858
- compatibilityFlags: Schema.optional(
3859
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4411
+ browsers: Schema.optional(
4412
+ Schema.Union([
4413
+ Schema.Record(Schema.String, Schema.Unknown),
4414
+ Schema.Null,
4415
+ ]),
3860
4416
  ),
3861
4417
  d1Databases: Schema.optional(
3862
- Schema.Union([Schema.Struct({}), Schema.Null]),
4418
+ Schema.Union([
4419
+ Schema.Record(Schema.String, Schema.Unknown),
4420
+ Schema.Null,
4421
+ ]),
3863
4422
  ),
3864
4423
  durableObjectNamespaces: Schema.optional(
3865
- Schema.Union([Schema.Struct({}), Schema.Null]),
4424
+ Schema.Union([
4425
+ Schema.Record(Schema.String, Schema.Unknown),
4426
+ Schema.Null,
4427
+ ]),
3866
4428
  ),
3867
- envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
3868
- failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3869
4429
  hyperdriveBindings: Schema.optional(
3870
- Schema.Union([Schema.Struct({}), Schema.Null]),
4430
+ Schema.Union([
4431
+ Schema.Record(Schema.String, Schema.Unknown),
4432
+ Schema.Null,
4433
+ ]),
3871
4434
  ),
3872
4435
  kvNamespaces: Schema.optional(
3873
- Schema.Union([Schema.Struct({}), Schema.Null]),
4436
+ Schema.Union([
4437
+ Schema.Record(Schema.String, Schema.Unknown),
4438
+ Schema.Null,
4439
+ ]),
3874
4440
  ),
3875
4441
  limits: Schema.optional(
3876
4442
  Schema.Union([
@@ -3881,7 +4447,10 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3881
4447
  ]),
3882
4448
  ),
3883
4449
  mtlsCertificates: Schema.optional(
3884
- Schema.Union([Schema.Struct({}), Schema.Null]),
4450
+ Schema.Union([
4451
+ Schema.Record(Schema.String, Schema.Unknown),
4452
+ Schema.Null,
4453
+ ]),
3885
4454
  ),
3886
4455
  placement: Schema.optional(
3887
4456
  Schema.Union([
@@ -3892,38 +4461,47 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3892
4461
  ]),
3893
4462
  ),
3894
4463
  queueProducers: Schema.optional(
3895
- Schema.Union([Schema.Struct({}), Schema.Null]),
4464
+ Schema.Union([
4465
+ Schema.Record(Schema.String, Schema.Unknown),
4466
+ Schema.Null,
4467
+ ]),
3896
4468
  ),
3897
4469
  r2Buckets: Schema.optional(
3898
- Schema.Union([Schema.Struct({}), Schema.Null]),
4470
+ Schema.Union([
4471
+ Schema.Record(Schema.String, Schema.Unknown),
4472
+ Schema.Null,
4473
+ ]),
3899
4474
  ),
3900
- services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
3901
- usageModel: Schema.optional(
4475
+ services: Schema.optional(
3902
4476
  Schema.Union([
3903
- Schema.Literals(["standard", "bundled", "unbound"]),
4477
+ Schema.Record(Schema.String, Schema.Unknown),
3904
4478
  Schema.Null,
3905
4479
  ]),
3906
4480
  ),
3907
4481
  vectorizeBindings: Schema.optional(
3908
- Schema.Union([Schema.Struct({}), Schema.Null]),
4482
+ Schema.Union([
4483
+ Schema.Record(Schema.String, Schema.Unknown),
4484
+ Schema.Null,
4485
+ ]),
3909
4486
  ),
3910
4487
  wranglerConfigHash: Schema.optional(
3911
4488
  Schema.Union([Schema.String, Schema.Null]),
3912
4489
  ),
3913
4490
  }).pipe(
3914
4491
  Schema.encodeKeys({
3915
- aiBindings: "ai_bindings",
3916
4492
  alwaysUseLatestCompatibilityDate:
3917
4493
  "always_use_latest_compatibility_date",
3918
- analyticsEngineDatasets: "analytics_engine_datasets",
3919
- browsers: "browsers",
3920
4494
  buildImageMajorVersion: "build_image_major_version",
3921
4495
  compatibilityDate: "compatibility_date",
3922
4496
  compatibilityFlags: "compatibility_flags",
3923
- d1Databases: "d1_databases",
3924
- durableObjectNamespaces: "durable_object_namespaces",
3925
4497
  envVars: "env_vars",
3926
4498
  failOpen: "fail_open",
4499
+ usageModel: "usage_model",
4500
+ aiBindings: "ai_bindings",
4501
+ analyticsEngineDatasets: "analytics_engine_datasets",
4502
+ browsers: "browsers",
4503
+ d1Databases: "d1_databases",
4504
+ durableObjectNamespaces: "durable_object_namespaces",
3927
4505
  hyperdriveBindings: "hyperdrive_bindings",
3928
4506
  kvNamespaces: "kv_namespaces",
3929
4507
  limits: "limits",
@@ -3932,7 +4510,6 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3932
4510
  queueProducers: "queue_producers",
3933
4511
  r2Buckets: "r2_buckets",
3934
4512
  services: "services",
3935
- usageModel: "usage_model",
3936
4513
  vectorizeBindings: "vectorize_bindings",
3937
4514
  wranglerConfigHash: "wrangler_config_hash",
3938
4515
  }),
@@ -3984,50 +4561,56 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3984
4561
  ),
3985
4562
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
3986
4563
  }),
3987
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
4564
+ envVars: Schema.Union([
4565
+ Schema.Record(Schema.String, Schema.Unknown),
4566
+ Schema.Null,
4567
+ ]),
3988
4568
  environment: Schema.Literals(["preview", "production"]),
3989
4569
  isSkipped: Schema.Boolean,
3990
- latestStage: Schema.Unknown,
4570
+ latestStage: Schema.Struct({
4571
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
4572
+ name: Schema.Literals([
4573
+ "queued",
4574
+ "initialize",
4575
+ "clone_repo",
4576
+ "build",
4577
+ "deploy",
4578
+ ]),
4579
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
4580
+ status: Schema.Literals([
4581
+ "success",
4582
+ "idle",
4583
+ "active",
4584
+ "failure",
4585
+ "canceled",
4586
+ ]),
4587
+ }).pipe(
4588
+ Schema.encodeKeys({
4589
+ endedOn: "ended_on",
4590
+ name: "name",
4591
+ startedOn: "started_on",
4592
+ status: "status",
4593
+ }),
4594
+ ),
3991
4595
  modifiedOn: Schema.String,
3992
4596
  projectId: Schema.String,
3993
4597
  projectName: Schema.String,
3994
4598
  shortId: Schema.String,
3995
4599
  source: Schema.Struct({
3996
4600
  config: Schema.Struct({
3997
- deploymentsEnabled: Schema.optional(
3998
- Schema.Union([Schema.Boolean, Schema.Null]),
3999
- ),
4000
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4001
- ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4002
- pathExcludes: Schema.optional(
4003
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4004
- ),
4005
- pathIncludes: Schema.optional(
4006
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4007
- ),
4008
- prCommentsEnabled: Schema.optional(
4009
- Schema.Union([Schema.Boolean, Schema.Null]),
4010
- ),
4011
- previewBranchExcludes: Schema.optional(
4012
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4013
- ),
4014
- previewBranchIncludes: Schema.optional(
4015
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4016
- ),
4017
- previewDeploymentSetting: Schema.optional(
4018
- Schema.Union([
4019
- Schema.Literals(["all", "none", "custom"]),
4020
- Schema.Null,
4021
- ]),
4022
- ),
4023
- productionBranch: Schema.optional(
4024
- Schema.Union([Schema.String, Schema.Null]),
4025
- ),
4026
- productionDeploymentsEnabled: Schema.optional(
4027
- Schema.Union([Schema.Boolean, Schema.Null]),
4028
- ),
4029
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4030
- repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4601
+ deploymentsEnabled: Schema.Boolean,
4602
+ owner: Schema.String,
4603
+ ownerId: Schema.String,
4604
+ pathExcludes: Schema.Array(Schema.String),
4605
+ pathIncludes: Schema.Array(Schema.String),
4606
+ prCommentsEnabled: Schema.Boolean,
4607
+ previewBranchExcludes: Schema.Array(Schema.String),
4608
+ previewBranchIncludes: Schema.Array(Schema.String),
4609
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
4610
+ productionBranch: Schema.String,
4611
+ productionDeploymentsEnabled: Schema.Boolean,
4612
+ repoId: Schema.String,
4613
+ repoName: Schema.String,
4031
4614
  }).pipe(
4032
4615
  Schema.encodeKeys({
4033
4616
  deploymentsEnabled: "deployments_enabled",
@@ -4047,7 +4630,33 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4047
4630
  ),
4048
4631
  type: Schema.Literals(["github", "gitlab"]),
4049
4632
  }),
4050
- stages: Schema.Array(Schema.Unknown),
4633
+ stages: Schema.Array(
4634
+ Schema.Struct({
4635
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
4636
+ name: Schema.Literals([
4637
+ "queued",
4638
+ "initialize",
4639
+ "clone_repo",
4640
+ "build",
4641
+ "deploy",
4642
+ ]),
4643
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
4644
+ status: Schema.Literals([
4645
+ "success",
4646
+ "idle",
4647
+ "active",
4648
+ "failure",
4649
+ "canceled",
4650
+ ]),
4651
+ }).pipe(
4652
+ Schema.encodeKeys({
4653
+ endedOn: "ended_on",
4654
+ name: "name",
4655
+ startedOn: "started_on",
4656
+ status: "status",
4657
+ }),
4658
+ ),
4659
+ ),
4051
4660
  url: Schema.String,
4052
4661
  usesFunctions: Schema.optional(
4053
4662
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -4115,40 +4724,19 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4115
4724
  Schema.Union([
4116
4725
  Schema.Struct({
4117
4726
  config: Schema.Struct({
4118
- deploymentsEnabled: Schema.optional(
4119
- Schema.Union([Schema.Boolean, Schema.Null]),
4120
- ),
4121
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4122
- ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4123
- pathExcludes: Schema.optional(
4124
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4125
- ),
4126
- pathIncludes: Schema.optional(
4127
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4128
- ),
4129
- prCommentsEnabled: Schema.optional(
4130
- Schema.Union([Schema.Boolean, Schema.Null]),
4131
- ),
4132
- previewBranchExcludes: Schema.optional(
4133
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4134
- ),
4135
- previewBranchIncludes: Schema.optional(
4136
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4137
- ),
4138
- previewDeploymentSetting: Schema.optional(
4139
- Schema.Union([
4140
- Schema.Literals(["all", "none", "custom"]),
4141
- Schema.Null,
4142
- ]),
4143
- ),
4144
- productionBranch: Schema.optional(
4145
- Schema.Union([Schema.String, Schema.Null]),
4146
- ),
4147
- productionDeploymentsEnabled: Schema.optional(
4148
- Schema.Union([Schema.Boolean, Schema.Null]),
4149
- ),
4150
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4151
- repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4727
+ deploymentsEnabled: Schema.Boolean,
4728
+ owner: Schema.String,
4729
+ ownerId: Schema.String,
4730
+ pathExcludes: Schema.Array(Schema.String),
4731
+ pathIncludes: Schema.Array(Schema.String),
4732
+ prCommentsEnabled: Schema.Boolean,
4733
+ previewBranchExcludes: Schema.Array(Schema.String),
4734
+ previewBranchIncludes: Schema.Array(Schema.String),
4735
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
4736
+ productionBranch: Schema.String,
4737
+ productionDeploymentsEnabled: Schema.Boolean,
4738
+ repoId: Schema.String,
4739
+ repoName: Schema.String,
4152
4740
  }).pipe(
4153
4741
  Schema.encodeKeys({
4154
4742
  deploymentsEnabled: "deployments_enabled",
@@ -4302,7 +4890,12 @@ export interface GetProjectDeploymentResponse {
4302
4890
  /** If the deployment has been skipped. */
4303
4891
  isSkipped: boolean;
4304
4892
  /** The status of the deployment. */
4305
- latestStage: unknown;
4893
+ latestStage: {
4894
+ endedOn: string | null;
4895
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
4896
+ startedOn: string | null;
4897
+ status: "success" | "idle" | "active" | "failure" | "canceled";
4898
+ };
4306
4899
  /** When the deployment was last modified. */
4307
4900
  modifiedOn: string;
4308
4901
  /** Id of the project. */
@@ -4331,7 +4924,12 @@ export interface GetProjectDeploymentResponse {
4331
4924
  type: "github" | "gitlab";
4332
4925
  };
4333
4926
  /** List of past stages. */
4334
- stages: unknown[];
4927
+ stages: {
4928
+ endedOn: string | null;
4929
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
4930
+ startedOn: string | null;
4931
+ status: "success" | "idle" | "active" | "failure" | "canceled";
4932
+ }[];
4335
4933
  /** The live URL to view this deployment. */
4336
4934
  url: string;
4337
4935
  /** Whether the deployment uses functions. */
@@ -4380,10 +4978,37 @@ export const GetProjectDeploymentResponse =
4380
4978
  ),
4381
4979
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
4382
4980
  }),
4383
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
4981
+ envVars: Schema.Union([
4982
+ Schema.Record(Schema.String, Schema.Unknown),
4983
+ Schema.Null,
4984
+ ]),
4384
4985
  environment: Schema.Literals(["preview", "production"]),
4385
4986
  isSkipped: Schema.Boolean,
4386
- latestStage: Schema.Unknown,
4987
+ latestStage: Schema.Struct({
4988
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
4989
+ name: Schema.Literals([
4990
+ "queued",
4991
+ "initialize",
4992
+ "clone_repo",
4993
+ "build",
4994
+ "deploy",
4995
+ ]),
4996
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
4997
+ status: Schema.Literals([
4998
+ "success",
4999
+ "idle",
5000
+ "active",
5001
+ "failure",
5002
+ "canceled",
5003
+ ]),
5004
+ }).pipe(
5005
+ Schema.encodeKeys({
5006
+ endedOn: "ended_on",
5007
+ name: "name",
5008
+ startedOn: "started_on",
5009
+ status: "status",
5010
+ }),
5011
+ ),
4387
5012
  modifiedOn: Schema.String,
4388
5013
  projectId: Schema.String,
4389
5014
  projectName: Schema.String,
@@ -4422,7 +5047,33 @@ export const GetProjectDeploymentResponse =
4422
5047
  ),
4423
5048
  type: Schema.Literals(["github", "gitlab"]),
4424
5049
  }),
4425
- stages: Schema.Array(Schema.Unknown),
5050
+ stages: Schema.Array(
5051
+ Schema.Struct({
5052
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
5053
+ name: Schema.Literals([
5054
+ "queued",
5055
+ "initialize",
5056
+ "clone_repo",
5057
+ "build",
5058
+ "deploy",
5059
+ ]),
5060
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
5061
+ status: Schema.Literals([
5062
+ "success",
5063
+ "idle",
5064
+ "active",
5065
+ "failure",
5066
+ "canceled",
5067
+ ]),
5068
+ }).pipe(
5069
+ Schema.encodeKeys({
5070
+ endedOn: "ended_on",
5071
+ name: "name",
5072
+ startedOn: "started_on",
5073
+ status: "status",
5074
+ }),
5075
+ ),
5076
+ ),
4426
5077
  url: Schema.String,
4427
5078
  usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4428
5079
  })
@@ -4511,7 +5162,12 @@ export interface ListProjectDeploymentsResponse {
4511
5162
  envVars: Record<string, unknown> | null;
4512
5163
  environment: "preview" | "production";
4513
5164
  isSkipped: boolean;
4514
- latestStage: unknown;
5165
+ latestStage: {
5166
+ endedOn: string | null;
5167
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
5168
+ startedOn: string | null;
5169
+ status: "success" | "idle" | "active" | "failure" | "canceled";
5170
+ };
4515
5171
  modifiedOn: string;
4516
5172
  projectId: string;
4517
5173
  projectName: string;
@@ -4534,7 +5190,12 @@ export interface ListProjectDeploymentsResponse {
4534
5190
  };
4535
5191
  type: "github" | "gitlab";
4536
5192
  };
4537
- stages: unknown[];
5193
+ stages: {
5194
+ endedOn: string | null;
5195
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
5196
+ startedOn: string | null;
5197
+ status: "success" | "idle" | "active" | "failure" | "canceled";
5198
+ }[];
4538
5199
  url: string;
4539
5200
  usesFunctions?: boolean | null;
4540
5201
  }[];
@@ -4592,10 +5253,37 @@ export const ListProjectDeploymentsResponse =
4592
5253
  ),
4593
5254
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
4594
5255
  }),
4595
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
5256
+ envVars: Schema.Union([
5257
+ Schema.Record(Schema.String, Schema.Unknown),
5258
+ Schema.Null,
5259
+ ]),
4596
5260
  environment: Schema.Literals(["preview", "production"]),
4597
5261
  isSkipped: Schema.Boolean,
4598
- latestStage: Schema.Unknown,
5262
+ latestStage: Schema.Struct({
5263
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
5264
+ name: Schema.Literals([
5265
+ "queued",
5266
+ "initialize",
5267
+ "clone_repo",
5268
+ "build",
5269
+ "deploy",
5270
+ ]),
5271
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
5272
+ status: Schema.Literals([
5273
+ "success",
5274
+ "idle",
5275
+ "active",
5276
+ "failure",
5277
+ "canceled",
5278
+ ]),
5279
+ }).pipe(
5280
+ Schema.encodeKeys({
5281
+ endedOn: "ended_on",
5282
+ name: "name",
5283
+ startedOn: "started_on",
5284
+ status: "status",
5285
+ }),
5286
+ ),
4599
5287
  modifiedOn: Schema.String,
4600
5288
  projectId: Schema.String,
4601
5289
  projectName: Schema.String,
@@ -4638,7 +5326,33 @@ export const ListProjectDeploymentsResponse =
4638
5326
  ),
4639
5327
  type: Schema.Literals(["github", "gitlab"]),
4640
5328
  }),
4641
- stages: Schema.Array(Schema.Unknown),
5329
+ stages: Schema.Array(
5330
+ Schema.Struct({
5331
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
5332
+ name: Schema.Literals([
5333
+ "queued",
5334
+ "initialize",
5335
+ "clone_repo",
5336
+ "build",
5337
+ "deploy",
5338
+ ]),
5339
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
5340
+ status: Schema.Literals([
5341
+ "success",
5342
+ "idle",
5343
+ "active",
5344
+ "failure",
5345
+ "canceled",
5346
+ ]),
5347
+ }).pipe(
5348
+ Schema.encodeKeys({
5349
+ endedOn: "ended_on",
5350
+ name: "name",
5351
+ startedOn: "started_on",
5352
+ status: "status",
5353
+ }),
5354
+ ),
5355
+ ),
4642
5356
  url: Schema.String,
4643
5357
  usesFunctions: Schema.optional(
4644
5358
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -4722,7 +5436,12 @@ export const listProjectDeployments: API.PaginatedOperationMethod<
4722
5436
  envVars: Record<string, unknown> | null;
4723
5437
  environment: "preview" | "production";
4724
5438
  isSkipped: boolean;
4725
- latestStage: unknown;
5439
+ latestStage: {
5440
+ endedOn: string | null;
5441
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
5442
+ startedOn: string | null;
5443
+ status: "success" | "idle" | "active" | "failure" | "canceled";
5444
+ };
4726
5445
  modifiedOn: string;
4727
5446
  projectId: string;
4728
5447
  projectName: string;
@@ -4745,7 +5464,12 @@ export const listProjectDeployments: API.PaginatedOperationMethod<
4745
5464
  };
4746
5465
  type: "github" | "gitlab";
4747
5466
  };
4748
- stages: unknown[];
5467
+ stages: {
5468
+ endedOn: string | null;
5469
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
5470
+ startedOn: string | null;
5471
+ status: "success" | "idle" | "active" | "failure" | "canceled";
5472
+ }[];
4749
5473
  url: string;
4750
5474
  usesFunctions?: boolean | null;
4751
5475
  },
@@ -4873,7 +5597,12 @@ export interface CreateProjectDeploymentResponse {
4873
5597
  /** If the deployment has been skipped. */
4874
5598
  isSkipped: boolean;
4875
5599
  /** The status of the deployment. */
4876
- latestStage: unknown;
5600
+ latestStage: {
5601
+ endedOn: string | null;
5602
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
5603
+ startedOn: string | null;
5604
+ status: "success" | "idle" | "active" | "failure" | "canceled";
5605
+ };
4877
5606
  /** When the deployment was last modified. */
4878
5607
  modifiedOn: string;
4879
5608
  /** Id of the project. */
@@ -4902,7 +5631,12 @@ export interface CreateProjectDeploymentResponse {
4902
5631
  type: "github" | "gitlab";
4903
5632
  };
4904
5633
  /** List of past stages. */
4905
- stages: unknown[];
5634
+ stages: {
5635
+ endedOn: string | null;
5636
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
5637
+ startedOn: string | null;
5638
+ status: "success" | "idle" | "active" | "failure" | "canceled";
5639
+ }[];
4906
5640
  /** The live URL to view this deployment. */
4907
5641
  url: string;
4908
5642
  /** Whether the deployment uses functions. */
@@ -4951,10 +5685,37 @@ export const CreateProjectDeploymentResponse =
4951
5685
  ),
4952
5686
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
4953
5687
  }),
4954
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
5688
+ envVars: Schema.Union([
5689
+ Schema.Record(Schema.String, Schema.Unknown),
5690
+ Schema.Null,
5691
+ ]),
4955
5692
  environment: Schema.Literals(["preview", "production"]),
4956
5693
  isSkipped: Schema.Boolean,
4957
- latestStage: Schema.Unknown,
5694
+ latestStage: Schema.Struct({
5695
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
5696
+ name: Schema.Literals([
5697
+ "queued",
5698
+ "initialize",
5699
+ "clone_repo",
5700
+ "build",
5701
+ "deploy",
5702
+ ]),
5703
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
5704
+ status: Schema.Literals([
5705
+ "success",
5706
+ "idle",
5707
+ "active",
5708
+ "failure",
5709
+ "canceled",
5710
+ ]),
5711
+ }).pipe(
5712
+ Schema.encodeKeys({
5713
+ endedOn: "ended_on",
5714
+ name: "name",
5715
+ startedOn: "started_on",
5716
+ status: "status",
5717
+ }),
5718
+ ),
4958
5719
  modifiedOn: Schema.String,
4959
5720
  projectId: Schema.String,
4960
5721
  projectName: Schema.String,
@@ -4993,7 +5754,33 @@ export const CreateProjectDeploymentResponse =
4993
5754
  ),
4994
5755
  type: Schema.Literals(["github", "gitlab"]),
4995
5756
  }),
4996
- stages: Schema.Array(Schema.Unknown),
5757
+ stages: Schema.Array(
5758
+ Schema.Struct({
5759
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
5760
+ name: Schema.Literals([
5761
+ "queued",
5762
+ "initialize",
5763
+ "clone_repo",
5764
+ "build",
5765
+ "deploy",
5766
+ ]),
5767
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
5768
+ status: Schema.Literals([
5769
+ "success",
5770
+ "idle",
5771
+ "active",
5772
+ "failure",
5773
+ "canceled",
5774
+ ]),
5775
+ }).pipe(
5776
+ Schema.encodeKeys({
5777
+ endedOn: "ended_on",
5778
+ name: "name",
5779
+ startedOn: "started_on",
5780
+ status: "status",
5781
+ }),
5782
+ ),
5783
+ ),
4997
5784
  url: Schema.String,
4998
5785
  usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4999
5786
  })
@@ -5126,7 +5913,12 @@ export interface RetryProjectDeploymentResponse {
5126
5913
  /** If the deployment has been skipped. */
5127
5914
  isSkipped: boolean;
5128
5915
  /** The status of the deployment. */
5129
- latestStage: unknown;
5916
+ latestStage: {
5917
+ endedOn: string | null;
5918
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
5919
+ startedOn: string | null;
5920
+ status: "success" | "idle" | "active" | "failure" | "canceled";
5921
+ };
5130
5922
  /** When the deployment was last modified. */
5131
5923
  modifiedOn: string;
5132
5924
  /** Id of the project. */
@@ -5155,7 +5947,12 @@ export interface RetryProjectDeploymentResponse {
5155
5947
  type: "github" | "gitlab";
5156
5948
  };
5157
5949
  /** List of past stages. */
5158
- stages: unknown[];
5950
+ stages: {
5951
+ endedOn: string | null;
5952
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
5953
+ startedOn: string | null;
5954
+ status: "success" | "idle" | "active" | "failure" | "canceled";
5955
+ }[];
5159
5956
  /** The live URL to view this deployment. */
5160
5957
  url: string;
5161
5958
  /** Whether the deployment uses functions. */
@@ -5204,10 +6001,37 @@ export const RetryProjectDeploymentResponse =
5204
6001
  ),
5205
6002
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
5206
6003
  }),
5207
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
6004
+ envVars: Schema.Union([
6005
+ Schema.Record(Schema.String, Schema.Unknown),
6006
+ Schema.Null,
6007
+ ]),
5208
6008
  environment: Schema.Literals(["preview", "production"]),
5209
6009
  isSkipped: Schema.Boolean,
5210
- latestStage: Schema.Unknown,
6010
+ latestStage: Schema.Struct({
6011
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
6012
+ name: Schema.Literals([
6013
+ "queued",
6014
+ "initialize",
6015
+ "clone_repo",
6016
+ "build",
6017
+ "deploy",
6018
+ ]),
6019
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
6020
+ status: Schema.Literals([
6021
+ "success",
6022
+ "idle",
6023
+ "active",
6024
+ "failure",
6025
+ "canceled",
6026
+ ]),
6027
+ }).pipe(
6028
+ Schema.encodeKeys({
6029
+ endedOn: "ended_on",
6030
+ name: "name",
6031
+ startedOn: "started_on",
6032
+ status: "status",
6033
+ }),
6034
+ ),
5211
6035
  modifiedOn: Schema.String,
5212
6036
  projectId: Schema.String,
5213
6037
  projectName: Schema.String,
@@ -5246,7 +6070,33 @@ export const RetryProjectDeploymentResponse =
5246
6070
  ),
5247
6071
  type: Schema.Literals(["github", "gitlab"]),
5248
6072
  }),
5249
- stages: Schema.Array(Schema.Unknown),
6073
+ stages: Schema.Array(
6074
+ Schema.Struct({
6075
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
6076
+ name: Schema.Literals([
6077
+ "queued",
6078
+ "initialize",
6079
+ "clone_repo",
6080
+ "build",
6081
+ "deploy",
6082
+ ]),
6083
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
6084
+ status: Schema.Literals([
6085
+ "success",
6086
+ "idle",
6087
+ "active",
6088
+ "failure",
6089
+ "canceled",
6090
+ ]),
6091
+ }).pipe(
6092
+ Schema.encodeKeys({
6093
+ endedOn: "ended_on",
6094
+ name: "name",
6095
+ startedOn: "started_on",
6096
+ status: "status",
6097
+ }),
6098
+ ),
6099
+ ),
5250
6100
  url: Schema.String,
5251
6101
  usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5252
6102
  })
@@ -5340,7 +6190,12 @@ export interface RollbackProjectDeploymentResponse {
5340
6190
  /** If the deployment has been skipped. */
5341
6191
  isSkipped: boolean;
5342
6192
  /** The status of the deployment. */
5343
- latestStage: unknown;
6193
+ latestStage: {
6194
+ endedOn: string | null;
6195
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
6196
+ startedOn: string | null;
6197
+ status: "success" | "idle" | "active" | "failure" | "canceled";
6198
+ };
5344
6199
  /** When the deployment was last modified. */
5345
6200
  modifiedOn: string;
5346
6201
  /** Id of the project. */
@@ -5369,7 +6224,12 @@ export interface RollbackProjectDeploymentResponse {
5369
6224
  type: "github" | "gitlab";
5370
6225
  };
5371
6226
  /** List of past stages. */
5372
- stages: unknown[];
6227
+ stages: {
6228
+ endedOn: string | null;
6229
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
6230
+ startedOn: string | null;
6231
+ status: "success" | "idle" | "active" | "failure" | "canceled";
6232
+ }[];
5373
6233
  /** The live URL to view this deployment. */
5374
6234
  url: string;
5375
6235
  /** Whether the deployment uses functions. */
@@ -5418,10 +6278,37 @@ export const RollbackProjectDeploymentResponse =
5418
6278
  ),
5419
6279
  type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
5420
6280
  }),
5421
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
6281
+ envVars: Schema.Union([
6282
+ Schema.Record(Schema.String, Schema.Unknown),
6283
+ Schema.Null,
6284
+ ]),
5422
6285
  environment: Schema.Literals(["preview", "production"]),
5423
6286
  isSkipped: Schema.Boolean,
5424
- latestStage: Schema.Unknown,
6287
+ latestStage: Schema.Struct({
6288
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
6289
+ name: Schema.Literals([
6290
+ "queued",
6291
+ "initialize",
6292
+ "clone_repo",
6293
+ "build",
6294
+ "deploy",
6295
+ ]),
6296
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
6297
+ status: Schema.Literals([
6298
+ "success",
6299
+ "idle",
6300
+ "active",
6301
+ "failure",
6302
+ "canceled",
6303
+ ]),
6304
+ }).pipe(
6305
+ Schema.encodeKeys({
6306
+ endedOn: "ended_on",
6307
+ name: "name",
6308
+ startedOn: "started_on",
6309
+ status: "status",
6310
+ }),
6311
+ ),
5425
6312
  modifiedOn: Schema.String,
5426
6313
  projectId: Schema.String,
5427
6314
  projectName: Schema.String,
@@ -5460,7 +6347,33 @@ export const RollbackProjectDeploymentResponse =
5460
6347
  ),
5461
6348
  type: Schema.Literals(["github", "gitlab"]),
5462
6349
  }),
5463
- stages: Schema.Array(Schema.Unknown),
6350
+ stages: Schema.Array(
6351
+ Schema.Struct({
6352
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
6353
+ name: Schema.Literals([
6354
+ "queued",
6355
+ "initialize",
6356
+ "clone_repo",
6357
+ "build",
6358
+ "deploy",
6359
+ ]),
6360
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
6361
+ status: Schema.Literals([
6362
+ "success",
6363
+ "idle",
6364
+ "active",
6365
+ "failure",
6366
+ "canceled",
6367
+ ]),
6368
+ }).pipe(
6369
+ Schema.encodeKeys({
6370
+ endedOn: "ended_on",
6371
+ name: "name",
6372
+ startedOn: "started_on",
6373
+ status: "status",
6374
+ }),
6375
+ ),
6376
+ ),
5464
6377
  url: Schema.String,
5465
6378
  usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5466
6379
  })