@distilled.cloud/cloudflare 0.6.1 → 0.7.1

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
@@ -54,30 +54,40 @@ export interface GetProjectResponse {
54
54
  envVars: Record<string, unknown> | null;
55
55
  environment: "preview" | "production";
56
56
  isSkipped: boolean;
57
- latestStage: unknown;
57
+ latestStage: {
58
+ endedOn: string | null;
59
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
60
+ startedOn: string | null;
61
+ status: "success" | "idle" | "active" | "failure" | "canceled";
62
+ };
58
63
  modifiedOn: string;
59
64
  projectId: string;
60
65
  projectName: string;
61
66
  shortId: string;
62
67
  source: {
63
68
  config: {
64
- deploymentsEnabled?: boolean | null;
65
- owner?: string | null;
66
- ownerId?: string | null;
67
- pathExcludes?: string[] | null;
68
- pathIncludes?: string[] | null;
69
- prCommentsEnabled?: boolean | null;
70
- previewBranchExcludes?: string[] | null;
71
- previewBranchIncludes?: string[] | null;
72
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
73
- productionBranch?: string | null;
74
- productionDeploymentsEnabled?: boolean | null;
75
- repoId?: string | null;
76
- repoName?: string | null;
69
+ deploymentsEnabled: boolean;
70
+ owner: string;
71
+ ownerId: string;
72
+ pathExcludes: string[];
73
+ pathIncludes: string[];
74
+ prCommentsEnabled: boolean;
75
+ previewBranchExcludes: string[];
76
+ previewBranchIncludes: string[];
77
+ previewDeploymentSetting: "all" | "none" | "custom";
78
+ productionBranch: string;
79
+ productionDeploymentsEnabled: boolean;
80
+ repoId: string;
81
+ repoName: string;
77
82
  };
78
83
  type: "github" | "gitlab";
79
84
  };
80
- stages: unknown[];
85
+ stages: {
86
+ endedOn: string | null;
87
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
88
+ startedOn: string | null;
89
+ status: "success" | "idle" | "active" | "failure" | "canceled";
90
+ }[];
81
91
  url: string;
82
92
  usesFunctions?: boolean | null;
83
93
  } | null;
@@ -86,17 +96,18 @@ export interface GetProjectResponse {
86
96
  /** Configs for deployments in a project. */
87
97
  deploymentConfigs: {
88
98
  preview: {
99
+ alwaysUseLatestCompatibilityDate: boolean;
100
+ buildImageMajorVersion: number;
101
+ compatibilityDate: string;
102
+ compatibilityFlags: string[];
103
+ envVars: Record<string, unknown> | null;
104
+ failOpen: boolean;
105
+ usageModel: "standard" | "bundled" | "unbound";
89
106
  aiBindings?: Record<string, unknown> | null;
90
- alwaysUseLatestCompatibilityDate?: boolean | null;
91
107
  analyticsEngineDatasets?: Record<string, unknown> | null;
92
108
  browsers?: Record<string, unknown> | null;
93
- buildImageMajorVersion?: number | null;
94
- compatibilityDate?: string | null;
95
- compatibilityFlags?: string[] | null;
96
109
  d1Databases?: Record<string, unknown> | null;
97
110
  durableObjectNamespaces?: Record<string, unknown> | null;
98
- envVars?: Record<string, unknown> | null;
99
- failOpen?: boolean | null;
100
111
  hyperdriveBindings?: Record<string, unknown> | null;
101
112
  kvNamespaces?: Record<string, unknown> | null;
102
113
  limits?: {
@@ -109,22 +120,22 @@ export interface GetProjectResponse {
109
120
  queueProducers?: Record<string, unknown> | null;
110
121
  r2Buckets?: Record<string, unknown> | null;
111
122
  services?: Record<string, unknown> | null;
112
- usageModel?: "standard" | "bundled" | "unbound" | null;
113
123
  vectorizeBindings?: Record<string, unknown> | null;
114
124
  wranglerConfigHash?: string | null;
115
125
  };
116
126
  production: {
127
+ alwaysUseLatestCompatibilityDate: boolean;
128
+ buildImageMajorVersion: number;
129
+ compatibilityDate: string;
130
+ compatibilityFlags: string[];
131
+ envVars: Record<string, unknown> | null;
132
+ failOpen: boolean;
133
+ usageModel: "standard" | "bundled" | "unbound";
117
134
  aiBindings?: Record<string, unknown> | null;
118
- alwaysUseLatestCompatibilityDate?: boolean | null;
119
135
  analyticsEngineDatasets?: Record<string, unknown> | null;
120
136
  browsers?: Record<string, unknown> | null;
121
- buildImageMajorVersion?: number | null;
122
- compatibilityDate?: string | null;
123
- compatibilityFlags?: string[] | null;
124
137
  d1Databases?: Record<string, unknown> | null;
125
138
  durableObjectNamespaces?: Record<string, unknown> | null;
126
- envVars?: Record<string, unknown> | null;
127
- failOpen?: boolean | null;
128
139
  hyperdriveBindings?: Record<string, unknown> | null;
129
140
  kvNamespaces?: Record<string, unknown> | null;
130
141
  limits?: {
@@ -137,7 +148,6 @@ export interface GetProjectResponse {
137
148
  queueProducers?: Record<string, unknown> | null;
138
149
  r2Buckets?: Record<string, unknown> | null;
139
150
  services?: Record<string, unknown> | null;
140
- usageModel?: "standard" | "bundled" | "unbound" | null;
141
151
  vectorizeBindings?: Record<string, unknown> | null;
142
152
  wranglerConfigHash?: string | null;
143
153
  };
@@ -171,30 +181,40 @@ export interface GetProjectResponse {
171
181
  envVars: Record<string, unknown> | null;
172
182
  environment: "preview" | "production";
173
183
  isSkipped: boolean;
174
- latestStage: unknown;
184
+ latestStage: {
185
+ endedOn: string | null;
186
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
187
+ startedOn: string | null;
188
+ status: "success" | "idle" | "active" | "failure" | "canceled";
189
+ };
175
190
  modifiedOn: string;
176
191
  projectId: string;
177
192
  projectName: string;
178
193
  shortId: string;
179
194
  source: {
180
195
  config: {
181
- deploymentsEnabled?: boolean | null;
182
- owner?: string | null;
183
- ownerId?: string | null;
184
- pathExcludes?: string[] | null;
185
- pathIncludes?: string[] | null;
186
- prCommentsEnabled?: boolean | null;
187
- previewBranchExcludes?: string[] | null;
188
- previewBranchIncludes?: string[] | null;
189
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
190
- productionBranch?: string | null;
191
- productionDeploymentsEnabled?: boolean | null;
192
- repoId?: string | null;
193
- repoName?: string | null;
196
+ deploymentsEnabled: boolean;
197
+ owner: string;
198
+ ownerId: string;
199
+ pathExcludes: string[];
200
+ pathIncludes: string[];
201
+ prCommentsEnabled: boolean;
202
+ previewBranchExcludes: string[];
203
+ previewBranchIncludes: string[];
204
+ previewDeploymentSetting: "all" | "none" | "custom";
205
+ productionBranch: string;
206
+ productionDeploymentsEnabled: boolean;
207
+ repoId: string;
208
+ repoName: string;
194
209
  };
195
210
  type: "github" | "gitlab";
196
211
  };
197
- stages: unknown[];
212
+ stages: {
213
+ endedOn: string | null;
214
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
215
+ startedOn: string | null;
216
+ status: "success" | "idle" | "active" | "failure" | "canceled";
217
+ }[];
198
218
  url: string;
199
219
  usesFunctions?: boolean | null;
200
220
  } | null;
@@ -222,19 +242,19 @@ export interface GetProjectResponse {
222
242
  /** Configs for the project source control. */
223
243
  source?: {
224
244
  config: {
225
- deploymentsEnabled?: boolean | null;
226
- owner?: string | null;
227
- ownerId?: string | null;
228
- pathExcludes?: string[] | null;
229
- pathIncludes?: string[] | null;
230
- prCommentsEnabled?: boolean | null;
231
- previewBranchExcludes?: string[] | null;
232
- previewBranchIncludes?: string[] | null;
233
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
234
- productionBranch?: string | null;
235
- productionDeploymentsEnabled?: boolean | null;
236
- repoId?: string | null;
237
- repoName?: string | null;
245
+ deploymentsEnabled: boolean;
246
+ owner: string;
247
+ ownerId: string;
248
+ pathExcludes: string[];
249
+ pathIncludes: string[];
250
+ prCommentsEnabled: boolean;
251
+ previewBranchExcludes: string[];
252
+ previewBranchIncludes: string[];
253
+ previewDeploymentSetting: "all" | "none" | "custom";
254
+ productionBranch: string;
255
+ productionDeploymentsEnabled: boolean;
256
+ repoId: string;
257
+ repoName: string;
238
258
  };
239
259
  type: "github" | "gitlab";
240
260
  } | null;
@@ -276,47 +296,58 @@ export interface ListProjectsResponse {
276
296
  envVars: Record<string, unknown> | null;
277
297
  environment: "preview" | "production";
278
298
  isSkipped: boolean;
279
- latestStage: unknown;
299
+ latestStage: {
300
+ endedOn: string | null;
301
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
302
+ startedOn: string | null;
303
+ status: "success" | "idle" | "active" | "failure" | "canceled";
304
+ };
280
305
  modifiedOn: string;
281
306
  projectId: string;
282
307
  projectName: string;
283
308
  shortId: string;
284
309
  source: {
285
310
  config: {
286
- deploymentsEnabled?: boolean | null;
287
- owner?: string | null;
288
- ownerId?: string | null;
289
- pathExcludes?: string[] | null;
290
- pathIncludes?: string[] | null;
291
- prCommentsEnabled?: boolean | null;
292
- previewBranchExcludes?: string[] | null;
293
- previewBranchIncludes?: string[] | null;
294
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
295
- productionBranch?: string | null;
296
- productionDeploymentsEnabled?: boolean | null;
297
- repoId?: string | null;
298
- repoName?: string | null;
311
+ deploymentsEnabled: boolean;
312
+ owner: string;
313
+ ownerId: string;
314
+ pathExcludes: string[];
315
+ pathIncludes: string[];
316
+ prCommentsEnabled: boolean;
317
+ previewBranchExcludes: string[];
318
+ previewBranchIncludes: string[];
319
+ previewDeploymentSetting: "all" | "none" | "custom";
320
+ productionBranch: string;
321
+ productionDeploymentsEnabled: boolean;
322
+ repoId: string;
323
+ repoName: string;
299
324
  };
300
325
  type: "github" | "gitlab";
301
326
  };
302
- stages: unknown[];
327
+ stages: {
328
+ endedOn: string | null;
329
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
330
+ startedOn: string | null;
331
+ status: "success" | "idle" | "active" | "failure" | "canceled";
332
+ }[];
303
333
  url: string;
304
334
  usesFunctions?: boolean | null;
305
335
  } | null;
306
336
  createdOn: string;
307
337
  deploymentConfigs: {
308
338
  preview: {
339
+ alwaysUseLatestCompatibilityDate: boolean;
340
+ buildImageMajorVersion: number;
341
+ compatibilityDate: string;
342
+ compatibilityFlags: string[];
343
+ envVars: Record<string, unknown> | null;
344
+ failOpen: boolean;
345
+ usageModel: "standard" | "bundled" | "unbound";
309
346
  aiBindings?: Record<string, unknown> | null;
310
- alwaysUseLatestCompatibilityDate?: boolean | null;
311
347
  analyticsEngineDatasets?: Record<string, unknown> | null;
312
348
  browsers?: Record<string, unknown> | null;
313
- buildImageMajorVersion?: number | null;
314
- compatibilityDate?: string | null;
315
- compatibilityFlags?: string[] | null;
316
349
  d1Databases?: Record<string, unknown> | null;
317
350
  durableObjectNamespaces?: Record<string, unknown> | null;
318
- envVars?: Record<string, unknown> | null;
319
- failOpen?: boolean | null;
320
351
  hyperdriveBindings?: Record<string, unknown> | null;
321
352
  kvNamespaces?: Record<string, unknown> | null;
322
353
  limits?: {
@@ -329,22 +360,22 @@ export interface ListProjectsResponse {
329
360
  queueProducers?: Record<string, unknown> | null;
330
361
  r2Buckets?: Record<string, unknown> | null;
331
362
  services?: Record<string, unknown> | null;
332
- usageModel?: "standard" | "bundled" | "unbound" | null;
333
363
  vectorizeBindings?: Record<string, unknown> | null;
334
364
  wranglerConfigHash?: string | null;
335
365
  };
336
366
  production: {
367
+ alwaysUseLatestCompatibilityDate: boolean;
368
+ buildImageMajorVersion: number;
369
+ compatibilityDate: string;
370
+ compatibilityFlags: string[];
371
+ envVars: Record<string, unknown> | null;
372
+ failOpen: boolean;
373
+ usageModel: "standard" | "bundled" | "unbound";
337
374
  aiBindings?: Record<string, unknown> | null;
338
- alwaysUseLatestCompatibilityDate?: boolean | null;
339
375
  analyticsEngineDatasets?: Record<string, unknown> | null;
340
376
  browsers?: Record<string, unknown> | null;
341
- buildImageMajorVersion?: number | null;
342
- compatibilityDate?: string | null;
343
- compatibilityFlags?: string[] | null;
344
377
  d1Databases?: Record<string, unknown> | null;
345
378
  durableObjectNamespaces?: Record<string, unknown> | null;
346
- envVars?: Record<string, unknown> | null;
347
- failOpen?: boolean | null;
348
379
  hyperdriveBindings?: Record<string, unknown> | null;
349
380
  kvNamespaces?: Record<string, unknown> | null;
350
381
  limits?: {
@@ -357,7 +388,6 @@ export interface ListProjectsResponse {
357
388
  queueProducers?: Record<string, unknown> | null;
358
389
  r2Buckets?: Record<string, unknown> | null;
359
390
  services?: Record<string, unknown> | null;
360
- usageModel?: "standard" | "bundled" | "unbound" | null;
361
391
  vectorizeBindings?: Record<string, unknown> | null;
362
392
  wranglerConfigHash?: string | null;
363
393
  };
@@ -388,30 +418,40 @@ export interface ListProjectsResponse {
388
418
  envVars: Record<string, unknown> | null;
389
419
  environment: "preview" | "production";
390
420
  isSkipped: boolean;
391
- latestStage: unknown;
421
+ latestStage: {
422
+ endedOn: string | null;
423
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
424
+ startedOn: string | null;
425
+ status: "success" | "idle" | "active" | "failure" | "canceled";
426
+ };
392
427
  modifiedOn: string;
393
428
  projectId: string;
394
429
  projectName: string;
395
430
  shortId: string;
396
431
  source: {
397
432
  config: {
398
- deploymentsEnabled?: boolean | null;
399
- owner?: string | null;
400
- ownerId?: string | null;
401
- pathExcludes?: string[] | null;
402
- pathIncludes?: string[] | null;
403
- prCommentsEnabled?: boolean | null;
404
- previewBranchExcludes?: string[] | null;
405
- previewBranchIncludes?: string[] | null;
406
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
407
- productionBranch?: string | null;
408
- productionDeploymentsEnabled?: boolean | null;
409
- repoId?: string | null;
410
- repoName?: string | null;
433
+ deploymentsEnabled: boolean;
434
+ owner: string;
435
+ ownerId: string;
436
+ pathExcludes: string[];
437
+ pathIncludes: string[];
438
+ prCommentsEnabled: boolean;
439
+ previewBranchExcludes: string[];
440
+ previewBranchIncludes: string[];
441
+ previewDeploymentSetting: "all" | "none" | "custom";
442
+ productionBranch: string;
443
+ productionDeploymentsEnabled: boolean;
444
+ repoId: string;
445
+ repoName: string;
411
446
  };
412
447
  type: "github" | "gitlab";
413
448
  };
414
- stages: unknown[];
449
+ stages: {
450
+ endedOn: string | null;
451
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
452
+ startedOn: string | null;
453
+ status: "success" | "idle" | "active" | "failure" | "canceled";
454
+ }[];
415
455
  url: string;
416
456
  usesFunctions?: boolean | null;
417
457
  } | null;
@@ -431,19 +471,19 @@ export interface ListProjectsResponse {
431
471
  domains?: string[] | null;
432
472
  source?: {
433
473
  config: {
434
- deploymentsEnabled?: boolean | null;
435
- owner?: string | null;
436
- ownerId?: string | null;
437
- pathExcludes?: string[] | null;
438
- pathIncludes?: string[] | null;
439
- prCommentsEnabled?: boolean | null;
440
- previewBranchExcludes?: string[] | null;
441
- previewBranchIncludes?: string[] | null;
442
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
443
- productionBranch?: string | null;
444
- productionDeploymentsEnabled?: boolean | null;
445
- repoId?: string | null;
446
- repoName?: string | null;
474
+ deploymentsEnabled: boolean;
475
+ owner: string;
476
+ ownerId: string;
477
+ pathExcludes: string[];
478
+ pathIncludes: string[];
479
+ prCommentsEnabled: boolean;
480
+ previewBranchExcludes: string[];
481
+ previewBranchIncludes: string[];
482
+ previewDeploymentSetting: "all" | "none" | "custom";
483
+ productionBranch: string;
484
+ productionDeploymentsEnabled: boolean;
485
+ repoId: string;
486
+ repoName: string;
447
487
  };
448
488
  type: "github" | "gitlab";
449
489
  } | null;
@@ -486,47 +526,58 @@ export declare const listProjects: API.PaginatedOperationMethod<ListProjectsRequ
486
526
  envVars: Record<string, unknown> | null;
487
527
  environment: "preview" | "production";
488
528
  isSkipped: boolean;
489
- latestStage: unknown;
529
+ latestStage: {
530
+ endedOn: string | null;
531
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
532
+ startedOn: string | null;
533
+ status: "success" | "idle" | "active" | "failure" | "canceled";
534
+ };
490
535
  modifiedOn: string;
491
536
  projectId: string;
492
537
  projectName: string;
493
538
  shortId: string;
494
539
  source: {
495
540
  config: {
496
- deploymentsEnabled?: boolean | null;
497
- owner?: string | null;
498
- ownerId?: string | null;
499
- pathExcludes?: string[] | null;
500
- pathIncludes?: string[] | null;
501
- prCommentsEnabled?: boolean | null;
502
- previewBranchExcludes?: string[] | null;
503
- previewBranchIncludes?: string[] | null;
504
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
505
- productionBranch?: string | null;
506
- productionDeploymentsEnabled?: boolean | null;
507
- repoId?: string | null;
508
- repoName?: string | null;
541
+ deploymentsEnabled: boolean;
542
+ owner: string;
543
+ ownerId: string;
544
+ pathExcludes: string[];
545
+ pathIncludes: string[];
546
+ prCommentsEnabled: boolean;
547
+ previewBranchExcludes: string[];
548
+ previewBranchIncludes: string[];
549
+ previewDeploymentSetting: "all" | "none" | "custom";
550
+ productionBranch: string;
551
+ productionDeploymentsEnabled: boolean;
552
+ repoId: string;
553
+ repoName: string;
509
554
  };
510
555
  type: "github" | "gitlab";
511
556
  };
512
- stages: unknown[];
557
+ stages: {
558
+ endedOn: string | null;
559
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
560
+ startedOn: string | null;
561
+ status: "success" | "idle" | "active" | "failure" | "canceled";
562
+ }[];
513
563
  url: string;
514
564
  usesFunctions?: boolean | null;
515
565
  } | null;
516
566
  createdOn: string;
517
567
  deploymentConfigs: {
518
568
  preview: {
569
+ alwaysUseLatestCompatibilityDate: boolean;
570
+ buildImageMajorVersion: number;
571
+ compatibilityDate: string;
572
+ compatibilityFlags: string[];
573
+ envVars: Record<string, unknown> | null;
574
+ failOpen: boolean;
575
+ usageModel: "standard" | "bundled" | "unbound";
519
576
  aiBindings?: Record<string, unknown> | null;
520
- alwaysUseLatestCompatibilityDate?: boolean | null;
521
577
  analyticsEngineDatasets?: Record<string, unknown> | null;
522
578
  browsers?: Record<string, unknown> | null;
523
- buildImageMajorVersion?: number | null;
524
- compatibilityDate?: string | null;
525
- compatibilityFlags?: string[] | null;
526
579
  d1Databases?: Record<string, unknown> | null;
527
580
  durableObjectNamespaces?: Record<string, unknown> | null;
528
- envVars?: Record<string, unknown> | null;
529
- failOpen?: boolean | null;
530
581
  hyperdriveBindings?: Record<string, unknown> | null;
531
582
  kvNamespaces?: Record<string, unknown> | null;
532
583
  limits?: {
@@ -539,22 +590,22 @@ export declare const listProjects: API.PaginatedOperationMethod<ListProjectsRequ
539
590
  queueProducers?: Record<string, unknown> | null;
540
591
  r2Buckets?: Record<string, unknown> | null;
541
592
  services?: Record<string, unknown> | null;
542
- usageModel?: "standard" | "bundled" | "unbound" | null;
543
593
  vectorizeBindings?: Record<string, unknown> | null;
544
594
  wranglerConfigHash?: string | null;
545
595
  };
546
596
  production: {
597
+ alwaysUseLatestCompatibilityDate: boolean;
598
+ buildImageMajorVersion: number;
599
+ compatibilityDate: string;
600
+ compatibilityFlags: string[];
601
+ envVars: Record<string, unknown> | null;
602
+ failOpen: boolean;
603
+ usageModel: "standard" | "bundled" | "unbound";
547
604
  aiBindings?: Record<string, unknown> | null;
548
- alwaysUseLatestCompatibilityDate?: boolean | null;
549
605
  analyticsEngineDatasets?: Record<string, unknown> | null;
550
606
  browsers?: Record<string, unknown> | null;
551
- buildImageMajorVersion?: number | null;
552
- compatibilityDate?: string | null;
553
- compatibilityFlags?: string[] | null;
554
607
  d1Databases?: Record<string, unknown> | null;
555
608
  durableObjectNamespaces?: Record<string, unknown> | null;
556
- envVars?: Record<string, unknown> | null;
557
- failOpen?: boolean | null;
558
609
  hyperdriveBindings?: Record<string, unknown> | null;
559
610
  kvNamespaces?: Record<string, unknown> | null;
560
611
  limits?: {
@@ -567,7 +618,6 @@ export declare const listProjects: API.PaginatedOperationMethod<ListProjectsRequ
567
618
  queueProducers?: Record<string, unknown> | null;
568
619
  r2Buckets?: Record<string, unknown> | null;
569
620
  services?: Record<string, unknown> | null;
570
- usageModel?: "standard" | "bundled" | "unbound" | null;
571
621
  vectorizeBindings?: Record<string, unknown> | null;
572
622
  wranglerConfigHash?: string | null;
573
623
  };
@@ -598,30 +648,40 @@ export declare const listProjects: API.PaginatedOperationMethod<ListProjectsRequ
598
648
  envVars: Record<string, unknown> | null;
599
649
  environment: "preview" | "production";
600
650
  isSkipped: boolean;
601
- latestStage: unknown;
651
+ latestStage: {
652
+ endedOn: string | null;
653
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
654
+ startedOn: string | null;
655
+ status: "success" | "idle" | "active" | "failure" | "canceled";
656
+ };
602
657
  modifiedOn: string;
603
658
  projectId: string;
604
659
  projectName: string;
605
660
  shortId: string;
606
661
  source: {
607
662
  config: {
608
- deploymentsEnabled?: boolean | null;
609
- owner?: string | null;
610
- ownerId?: string | null;
611
- pathExcludes?: string[] | null;
612
- pathIncludes?: string[] | null;
613
- prCommentsEnabled?: boolean | null;
614
- previewBranchExcludes?: string[] | null;
615
- previewBranchIncludes?: string[] | null;
616
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
617
- productionBranch?: string | null;
618
- productionDeploymentsEnabled?: boolean | null;
619
- repoId?: string | null;
620
- repoName?: string | null;
663
+ deploymentsEnabled: boolean;
664
+ owner: string;
665
+ ownerId: string;
666
+ pathExcludes: string[];
667
+ pathIncludes: string[];
668
+ prCommentsEnabled: boolean;
669
+ previewBranchExcludes: string[];
670
+ previewBranchIncludes: string[];
671
+ previewDeploymentSetting: "all" | "none" | "custom";
672
+ productionBranch: string;
673
+ productionDeploymentsEnabled: boolean;
674
+ repoId: string;
675
+ repoName: string;
621
676
  };
622
677
  type: "github" | "gitlab";
623
678
  };
624
- stages: unknown[];
679
+ stages: {
680
+ endedOn: string | null;
681
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
682
+ startedOn: string | null;
683
+ status: "success" | "idle" | "active" | "failure" | "canceled";
684
+ }[];
625
685
  url: string;
626
686
  usesFunctions?: boolean | null;
627
687
  } | null;
@@ -641,19 +701,19 @@ export declare const listProjects: API.PaginatedOperationMethod<ListProjectsRequ
641
701
  domains?: string[] | null;
642
702
  source?: {
643
703
  config: {
644
- deploymentsEnabled?: boolean | null;
645
- owner?: string | null;
646
- ownerId?: string | null;
647
- pathExcludes?: string[] | null;
648
- pathIncludes?: string[] | null;
649
- prCommentsEnabled?: boolean | null;
650
- previewBranchExcludes?: string[] | null;
651
- previewBranchIncludes?: string[] | null;
652
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
653
- productionBranch?: string | null;
654
- productionDeploymentsEnabled?: boolean | null;
655
- repoId?: string | null;
656
- repoName?: string | null;
704
+ deploymentsEnabled: boolean;
705
+ owner: string;
706
+ ownerId: string;
707
+ pathExcludes: string[];
708
+ pathIncludes: string[];
709
+ prCommentsEnabled: boolean;
710
+ previewBranchExcludes: string[];
711
+ previewBranchIncludes: string[];
712
+ previewDeploymentSetting: "all" | "none" | "custom";
713
+ productionBranch: string;
714
+ productionDeploymentsEnabled: boolean;
715
+ repoId: string;
716
+ repoName: string;
657
717
  };
658
718
  type: "github" | "gitlab";
659
719
  } | null;
@@ -784,30 +844,40 @@ export interface CreateProjectResponse {
784
844
  envVars: Record<string, unknown> | null;
785
845
  environment: "preview" | "production";
786
846
  isSkipped: boolean;
787
- latestStage: unknown;
847
+ latestStage: {
848
+ endedOn: string | null;
849
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
850
+ startedOn: string | null;
851
+ status: "success" | "idle" | "active" | "failure" | "canceled";
852
+ };
788
853
  modifiedOn: string;
789
854
  projectId: string;
790
855
  projectName: string;
791
856
  shortId: string;
792
857
  source: {
793
858
  config: {
794
- deploymentsEnabled?: boolean | null;
795
- owner?: string | null;
796
- ownerId?: string | null;
797
- pathExcludes?: string[] | null;
798
- pathIncludes?: string[] | null;
799
- prCommentsEnabled?: boolean | null;
800
- previewBranchExcludes?: string[] | null;
801
- previewBranchIncludes?: string[] | null;
802
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
803
- productionBranch?: string | null;
804
- productionDeploymentsEnabled?: boolean | null;
805
- repoId?: string | null;
806
- repoName?: string | null;
859
+ deploymentsEnabled: boolean;
860
+ owner: string;
861
+ ownerId: string;
862
+ pathExcludes: string[];
863
+ pathIncludes: string[];
864
+ prCommentsEnabled: boolean;
865
+ previewBranchExcludes: string[];
866
+ previewBranchIncludes: string[];
867
+ previewDeploymentSetting: "all" | "none" | "custom";
868
+ productionBranch: string;
869
+ productionDeploymentsEnabled: boolean;
870
+ repoId: string;
871
+ repoName: string;
807
872
  };
808
873
  type: "github" | "gitlab";
809
874
  };
810
- stages: unknown[];
875
+ stages: {
876
+ endedOn: string | null;
877
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
878
+ startedOn: string | null;
879
+ status: "success" | "idle" | "active" | "failure" | "canceled";
880
+ }[];
811
881
  url: string;
812
882
  usesFunctions?: boolean | null;
813
883
  } | null;
@@ -816,17 +886,18 @@ export interface CreateProjectResponse {
816
886
  /** Configs for deployments in a project. */
817
887
  deploymentConfigs: {
818
888
  preview: {
889
+ alwaysUseLatestCompatibilityDate: boolean;
890
+ buildImageMajorVersion: number;
891
+ compatibilityDate: string;
892
+ compatibilityFlags: string[];
893
+ envVars: Record<string, unknown> | null;
894
+ failOpen: boolean;
895
+ usageModel: "standard" | "bundled" | "unbound";
819
896
  aiBindings?: Record<string, unknown> | null;
820
- alwaysUseLatestCompatibilityDate?: boolean | null;
821
897
  analyticsEngineDatasets?: Record<string, unknown> | null;
822
898
  browsers?: Record<string, unknown> | null;
823
- buildImageMajorVersion?: number | null;
824
- compatibilityDate?: string | null;
825
- compatibilityFlags?: string[] | null;
826
899
  d1Databases?: Record<string, unknown> | null;
827
900
  durableObjectNamespaces?: Record<string, unknown> | null;
828
- envVars?: Record<string, unknown> | null;
829
- failOpen?: boolean | null;
830
901
  hyperdriveBindings?: Record<string, unknown> | null;
831
902
  kvNamespaces?: Record<string, unknown> | null;
832
903
  limits?: {
@@ -839,22 +910,22 @@ export interface CreateProjectResponse {
839
910
  queueProducers?: Record<string, unknown> | null;
840
911
  r2Buckets?: Record<string, unknown> | null;
841
912
  services?: Record<string, unknown> | null;
842
- usageModel?: "standard" | "bundled" | "unbound" | null;
843
913
  vectorizeBindings?: Record<string, unknown> | null;
844
914
  wranglerConfigHash?: string | null;
845
915
  };
846
916
  production: {
917
+ alwaysUseLatestCompatibilityDate: boolean;
918
+ buildImageMajorVersion: number;
919
+ compatibilityDate: string;
920
+ compatibilityFlags: string[];
921
+ envVars: Record<string, unknown> | null;
922
+ failOpen: boolean;
923
+ usageModel: "standard" | "bundled" | "unbound";
847
924
  aiBindings?: Record<string, unknown> | null;
848
- alwaysUseLatestCompatibilityDate?: boolean | null;
849
925
  analyticsEngineDatasets?: Record<string, unknown> | null;
850
926
  browsers?: Record<string, unknown> | null;
851
- buildImageMajorVersion?: number | null;
852
- compatibilityDate?: string | null;
853
- compatibilityFlags?: string[] | null;
854
927
  d1Databases?: Record<string, unknown> | null;
855
928
  durableObjectNamespaces?: Record<string, unknown> | null;
856
- envVars?: Record<string, unknown> | null;
857
- failOpen?: boolean | null;
858
929
  hyperdriveBindings?: Record<string, unknown> | null;
859
930
  kvNamespaces?: Record<string, unknown> | null;
860
931
  limits?: {
@@ -867,7 +938,6 @@ export interface CreateProjectResponse {
867
938
  queueProducers?: Record<string, unknown> | null;
868
939
  r2Buckets?: Record<string, unknown> | null;
869
940
  services?: Record<string, unknown> | null;
870
- usageModel?: "standard" | "bundled" | "unbound" | null;
871
941
  vectorizeBindings?: Record<string, unknown> | null;
872
942
  wranglerConfigHash?: string | null;
873
943
  };
@@ -901,30 +971,40 @@ export interface CreateProjectResponse {
901
971
  envVars: Record<string, unknown> | null;
902
972
  environment: "preview" | "production";
903
973
  isSkipped: boolean;
904
- latestStage: unknown;
974
+ latestStage: {
975
+ endedOn: string | null;
976
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
977
+ startedOn: string | null;
978
+ status: "success" | "idle" | "active" | "failure" | "canceled";
979
+ };
905
980
  modifiedOn: string;
906
981
  projectId: string;
907
982
  projectName: string;
908
983
  shortId: string;
909
984
  source: {
910
985
  config: {
911
- deploymentsEnabled?: boolean | null;
912
- owner?: string | null;
913
- ownerId?: string | null;
914
- pathExcludes?: string[] | null;
915
- pathIncludes?: string[] | null;
916
- prCommentsEnabled?: boolean | null;
917
- previewBranchExcludes?: string[] | null;
918
- previewBranchIncludes?: string[] | null;
919
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
920
- productionBranch?: string | null;
921
- productionDeploymentsEnabled?: boolean | null;
922
- repoId?: string | null;
923
- repoName?: string | null;
986
+ deploymentsEnabled: boolean;
987
+ owner: string;
988
+ ownerId: string;
989
+ pathExcludes: string[];
990
+ pathIncludes: string[];
991
+ prCommentsEnabled: boolean;
992
+ previewBranchExcludes: string[];
993
+ previewBranchIncludes: string[];
994
+ previewDeploymentSetting: "all" | "none" | "custom";
995
+ productionBranch: string;
996
+ productionDeploymentsEnabled: boolean;
997
+ repoId: string;
998
+ repoName: string;
924
999
  };
925
1000
  type: "github" | "gitlab";
926
1001
  };
927
- stages: unknown[];
1002
+ stages: {
1003
+ endedOn: string | null;
1004
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1005
+ startedOn: string | null;
1006
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1007
+ }[];
928
1008
  url: string;
929
1009
  usesFunctions?: boolean | null;
930
1010
  } | null;
@@ -952,19 +1032,19 @@ export interface CreateProjectResponse {
952
1032
  /** Configs for the project source control. */
953
1033
  source?: {
954
1034
  config: {
955
- deploymentsEnabled?: boolean | null;
956
- owner?: string | null;
957
- ownerId?: string | null;
958
- pathExcludes?: string[] | null;
959
- pathIncludes?: string[] | null;
960
- prCommentsEnabled?: boolean | null;
961
- previewBranchExcludes?: string[] | null;
962
- previewBranchIncludes?: string[] | null;
963
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
964
- productionBranch?: string | null;
965
- productionDeploymentsEnabled?: boolean | null;
966
- repoId?: string | null;
967
- repoName?: string | null;
1035
+ deploymentsEnabled: boolean;
1036
+ owner: string;
1037
+ ownerId: string;
1038
+ pathExcludes: string[];
1039
+ pathIncludes: string[];
1040
+ prCommentsEnabled: boolean;
1041
+ previewBranchExcludes: string[];
1042
+ previewBranchIncludes: string[];
1043
+ previewDeploymentSetting: "all" | "none" | "custom";
1044
+ productionBranch: string;
1045
+ productionDeploymentsEnabled: boolean;
1046
+ repoId: string;
1047
+ repoName: string;
968
1048
  };
969
1049
  type: "github" | "gitlab";
970
1050
  } | null;
@@ -1099,30 +1179,40 @@ export interface PatchProjectResponse {
1099
1179
  envVars: Record<string, unknown> | null;
1100
1180
  environment: "preview" | "production";
1101
1181
  isSkipped: boolean;
1102
- latestStage: unknown;
1182
+ latestStage: {
1183
+ endedOn: string | null;
1184
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1185
+ startedOn: string | null;
1186
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1187
+ };
1103
1188
  modifiedOn: string;
1104
1189
  projectId: string;
1105
1190
  projectName: string;
1106
1191
  shortId: string;
1107
1192
  source: {
1108
1193
  config: {
1109
- deploymentsEnabled?: boolean | null;
1110
- owner?: string | null;
1111
- ownerId?: string | null;
1112
- pathExcludes?: string[] | null;
1113
- pathIncludes?: string[] | null;
1114
- prCommentsEnabled?: boolean | null;
1115
- previewBranchExcludes?: string[] | null;
1116
- previewBranchIncludes?: string[] | null;
1117
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
1118
- productionBranch?: string | null;
1119
- productionDeploymentsEnabled?: boolean | null;
1120
- repoId?: string | null;
1121
- repoName?: string | null;
1194
+ deploymentsEnabled: boolean;
1195
+ owner: string;
1196
+ ownerId: string;
1197
+ pathExcludes: string[];
1198
+ pathIncludes: string[];
1199
+ prCommentsEnabled: boolean;
1200
+ previewBranchExcludes: string[];
1201
+ previewBranchIncludes: string[];
1202
+ previewDeploymentSetting: "all" | "none" | "custom";
1203
+ productionBranch: string;
1204
+ productionDeploymentsEnabled: boolean;
1205
+ repoId: string;
1206
+ repoName: string;
1122
1207
  };
1123
1208
  type: "github" | "gitlab";
1124
1209
  };
1125
- stages: unknown[];
1210
+ stages: {
1211
+ endedOn: string | null;
1212
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1213
+ startedOn: string | null;
1214
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1215
+ }[];
1126
1216
  url: string;
1127
1217
  usesFunctions?: boolean | null;
1128
1218
  } | null;
@@ -1131,17 +1221,18 @@ export interface PatchProjectResponse {
1131
1221
  /** Configs for deployments in a project. */
1132
1222
  deploymentConfigs: {
1133
1223
  preview: {
1224
+ alwaysUseLatestCompatibilityDate: boolean;
1225
+ buildImageMajorVersion: number;
1226
+ compatibilityDate: string;
1227
+ compatibilityFlags: string[];
1228
+ envVars: Record<string, unknown> | null;
1229
+ failOpen: boolean;
1230
+ usageModel: "standard" | "bundled" | "unbound";
1134
1231
  aiBindings?: Record<string, unknown> | null;
1135
- alwaysUseLatestCompatibilityDate?: boolean | null;
1136
1232
  analyticsEngineDatasets?: Record<string, unknown> | null;
1137
1233
  browsers?: Record<string, unknown> | null;
1138
- buildImageMajorVersion?: number | null;
1139
- compatibilityDate?: string | null;
1140
- compatibilityFlags?: string[] | null;
1141
1234
  d1Databases?: Record<string, unknown> | null;
1142
1235
  durableObjectNamespaces?: Record<string, unknown> | null;
1143
- envVars?: Record<string, unknown> | null;
1144
- failOpen?: boolean | null;
1145
1236
  hyperdriveBindings?: Record<string, unknown> | null;
1146
1237
  kvNamespaces?: Record<string, unknown> | null;
1147
1238
  limits?: {
@@ -1154,22 +1245,22 @@ export interface PatchProjectResponse {
1154
1245
  queueProducers?: Record<string, unknown> | null;
1155
1246
  r2Buckets?: Record<string, unknown> | null;
1156
1247
  services?: Record<string, unknown> | null;
1157
- usageModel?: "standard" | "bundled" | "unbound" | null;
1158
1248
  vectorizeBindings?: Record<string, unknown> | null;
1159
1249
  wranglerConfigHash?: string | null;
1160
1250
  };
1161
1251
  production: {
1252
+ alwaysUseLatestCompatibilityDate: boolean;
1253
+ buildImageMajorVersion: number;
1254
+ compatibilityDate: string;
1255
+ compatibilityFlags: string[];
1256
+ envVars: Record<string, unknown> | null;
1257
+ failOpen: boolean;
1258
+ usageModel: "standard" | "bundled" | "unbound";
1162
1259
  aiBindings?: Record<string, unknown> | null;
1163
- alwaysUseLatestCompatibilityDate?: boolean | null;
1164
1260
  analyticsEngineDatasets?: Record<string, unknown> | null;
1165
1261
  browsers?: Record<string, unknown> | null;
1166
- buildImageMajorVersion?: number | null;
1167
- compatibilityDate?: string | null;
1168
- compatibilityFlags?: string[] | null;
1169
1262
  d1Databases?: Record<string, unknown> | null;
1170
1263
  durableObjectNamespaces?: Record<string, unknown> | null;
1171
- envVars?: Record<string, unknown> | null;
1172
- failOpen?: boolean | null;
1173
1264
  hyperdriveBindings?: Record<string, unknown> | null;
1174
1265
  kvNamespaces?: Record<string, unknown> | null;
1175
1266
  limits?: {
@@ -1182,7 +1273,6 @@ export interface PatchProjectResponse {
1182
1273
  queueProducers?: Record<string, unknown> | null;
1183
1274
  r2Buckets?: Record<string, unknown> | null;
1184
1275
  services?: Record<string, unknown> | null;
1185
- usageModel?: "standard" | "bundled" | "unbound" | null;
1186
1276
  vectorizeBindings?: Record<string, unknown> | null;
1187
1277
  wranglerConfigHash?: string | null;
1188
1278
  };
@@ -1216,30 +1306,40 @@ export interface PatchProjectResponse {
1216
1306
  envVars: Record<string, unknown> | null;
1217
1307
  environment: "preview" | "production";
1218
1308
  isSkipped: boolean;
1219
- latestStage: unknown;
1309
+ latestStage: {
1310
+ endedOn: string | null;
1311
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1312
+ startedOn: string | null;
1313
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1314
+ };
1220
1315
  modifiedOn: string;
1221
1316
  projectId: string;
1222
1317
  projectName: string;
1223
1318
  shortId: string;
1224
1319
  source: {
1225
1320
  config: {
1226
- deploymentsEnabled?: boolean | null;
1227
- owner?: string | null;
1228
- ownerId?: string | null;
1229
- pathExcludes?: string[] | null;
1230
- pathIncludes?: string[] | null;
1231
- prCommentsEnabled?: boolean | null;
1232
- previewBranchExcludes?: string[] | null;
1233
- previewBranchIncludes?: string[] | null;
1234
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
1235
- productionBranch?: string | null;
1236
- productionDeploymentsEnabled?: boolean | null;
1237
- repoId?: string | null;
1238
- repoName?: string | null;
1321
+ deploymentsEnabled: boolean;
1322
+ owner: string;
1323
+ ownerId: string;
1324
+ pathExcludes: string[];
1325
+ pathIncludes: string[];
1326
+ prCommentsEnabled: boolean;
1327
+ previewBranchExcludes: string[];
1328
+ previewBranchIncludes: string[];
1329
+ previewDeploymentSetting: "all" | "none" | "custom";
1330
+ productionBranch: string;
1331
+ productionDeploymentsEnabled: boolean;
1332
+ repoId: string;
1333
+ repoName: string;
1239
1334
  };
1240
1335
  type: "github" | "gitlab";
1241
1336
  };
1242
- stages: unknown[];
1337
+ stages: {
1338
+ endedOn: string | null;
1339
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1340
+ startedOn: string | null;
1341
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1342
+ }[];
1243
1343
  url: string;
1244
1344
  usesFunctions?: boolean | null;
1245
1345
  } | null;
@@ -1267,19 +1367,19 @@ export interface PatchProjectResponse {
1267
1367
  /** Configs for the project source control. */
1268
1368
  source?: {
1269
1369
  config: {
1270
- deploymentsEnabled?: boolean | null;
1271
- owner?: string | null;
1272
- ownerId?: string | null;
1273
- pathExcludes?: string[] | null;
1274
- pathIncludes?: string[] | null;
1275
- prCommentsEnabled?: boolean | null;
1276
- previewBranchExcludes?: string[] | null;
1277
- previewBranchIncludes?: string[] | null;
1278
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
1279
- productionBranch?: string | null;
1280
- productionDeploymentsEnabled?: boolean | null;
1281
- repoId?: string | null;
1282
- repoName?: string | null;
1370
+ deploymentsEnabled: boolean;
1371
+ owner: string;
1372
+ ownerId: string;
1373
+ pathExcludes: string[];
1374
+ pathIncludes: string[];
1375
+ prCommentsEnabled: boolean;
1376
+ previewBranchExcludes: string[];
1377
+ previewBranchIncludes: string[];
1378
+ previewDeploymentSetting: "all" | "none" | "custom";
1379
+ productionBranch: string;
1380
+ productionDeploymentsEnabled: boolean;
1381
+ repoId: string;
1382
+ repoName: string;
1283
1383
  };
1284
1384
  type: "github" | "gitlab";
1285
1385
  } | null;
@@ -1339,7 +1439,12 @@ export interface GetProjectDeploymentResponse {
1339
1439
  /** If the deployment has been skipped. */
1340
1440
  isSkipped: boolean;
1341
1441
  /** The status of the deployment. */
1342
- latestStage: unknown;
1442
+ latestStage: {
1443
+ endedOn: string | null;
1444
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1445
+ startedOn: string | null;
1446
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1447
+ };
1343
1448
  /** When the deployment was last modified. */
1344
1449
  modifiedOn: string;
1345
1450
  /** Id of the project. */
@@ -1368,7 +1473,12 @@ export interface GetProjectDeploymentResponse {
1368
1473
  type: "github" | "gitlab";
1369
1474
  };
1370
1475
  /** List of past stages. */
1371
- stages: unknown[];
1476
+ stages: {
1477
+ endedOn: string | null;
1478
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1479
+ startedOn: string | null;
1480
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1481
+ }[];
1372
1482
  /** The live URL to view this deployment. */
1373
1483
  url: string;
1374
1484
  /** Whether the deployment uses functions. */
@@ -1410,7 +1520,12 @@ export interface ListProjectDeploymentsResponse {
1410
1520
  envVars: Record<string, unknown> | null;
1411
1521
  environment: "preview" | "production";
1412
1522
  isSkipped: boolean;
1413
- latestStage: unknown;
1523
+ latestStage: {
1524
+ endedOn: string | null;
1525
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1526
+ startedOn: string | null;
1527
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1528
+ };
1414
1529
  modifiedOn: string;
1415
1530
  projectId: string;
1416
1531
  projectName: string;
@@ -1433,7 +1548,12 @@ export interface ListProjectDeploymentsResponse {
1433
1548
  };
1434
1549
  type: "github" | "gitlab";
1435
1550
  };
1436
- stages: unknown[];
1551
+ stages: {
1552
+ endedOn: string | null;
1553
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1554
+ startedOn: string | null;
1555
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1556
+ }[];
1437
1557
  url: string;
1438
1558
  usesFunctions?: boolean | null;
1439
1559
  }[];
@@ -1472,7 +1592,12 @@ export declare const listProjectDeployments: API.PaginatedOperationMethod<ListPr
1472
1592
  envVars: Record<string, unknown> | null;
1473
1593
  environment: "preview" | "production";
1474
1594
  isSkipped: boolean;
1475
- latestStage: unknown;
1595
+ latestStage: {
1596
+ endedOn: string | null;
1597
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1598
+ startedOn: string | null;
1599
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1600
+ };
1476
1601
  modifiedOn: string;
1477
1602
  projectId: string;
1478
1603
  projectName: string;
@@ -1495,7 +1620,12 @@ export declare const listProjectDeployments: API.PaginatedOperationMethod<ListPr
1495
1620
  };
1496
1621
  type: "github" | "gitlab";
1497
1622
  };
1498
- stages: unknown[];
1623
+ stages: {
1624
+ endedOn: string | null;
1625
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1626
+ startedOn: string | null;
1627
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1628
+ }[];
1499
1629
  url: string;
1500
1630
  usesFunctions?: boolean | null;
1501
1631
  }, ListProjectDeploymentsError, Credentials | HttpClient.HttpClient>;
@@ -1565,7 +1695,12 @@ export interface CreateProjectDeploymentResponse {
1565
1695
  /** If the deployment has been skipped. */
1566
1696
  isSkipped: boolean;
1567
1697
  /** The status of the deployment. */
1568
- latestStage: unknown;
1698
+ latestStage: {
1699
+ endedOn: string | null;
1700
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1701
+ startedOn: string | null;
1702
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1703
+ };
1569
1704
  /** When the deployment was last modified. */
1570
1705
  modifiedOn: string;
1571
1706
  /** Id of the project. */
@@ -1594,7 +1729,12 @@ export interface CreateProjectDeploymentResponse {
1594
1729
  type: "github" | "gitlab";
1595
1730
  };
1596
1731
  /** List of past stages. */
1597
- stages: unknown[];
1732
+ stages: {
1733
+ endedOn: string | null;
1734
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1735
+ startedOn: string | null;
1736
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1737
+ }[];
1598
1738
  /** The live URL to view this deployment. */
1599
1739
  url: string;
1600
1740
  /** Whether the deployment uses functions. */
@@ -1654,7 +1794,12 @@ export interface RetryProjectDeploymentResponse {
1654
1794
  /** If the deployment has been skipped. */
1655
1795
  isSkipped: boolean;
1656
1796
  /** The status of the deployment. */
1657
- latestStage: unknown;
1797
+ latestStage: {
1798
+ endedOn: string | null;
1799
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1800
+ startedOn: string | null;
1801
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1802
+ };
1658
1803
  /** When the deployment was last modified. */
1659
1804
  modifiedOn: string;
1660
1805
  /** Id of the project. */
@@ -1683,7 +1828,12 @@ export interface RetryProjectDeploymentResponse {
1683
1828
  type: "github" | "gitlab";
1684
1829
  };
1685
1830
  /** List of past stages. */
1686
- stages: unknown[];
1831
+ stages: {
1832
+ endedOn: string | null;
1833
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1834
+ startedOn: string | null;
1835
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1836
+ }[];
1687
1837
  /** The live URL to view this deployment. */
1688
1838
  url: string;
1689
1839
  /** Whether the deployment uses functions. */
@@ -1732,7 +1882,12 @@ export interface RollbackProjectDeploymentResponse {
1732
1882
  /** If the deployment has been skipped. */
1733
1883
  isSkipped: boolean;
1734
1884
  /** The status of the deployment. */
1735
- latestStage: unknown;
1885
+ latestStage: {
1886
+ endedOn: string | null;
1887
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1888
+ startedOn: string | null;
1889
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1890
+ };
1736
1891
  /** When the deployment was last modified. */
1737
1892
  modifiedOn: string;
1738
1893
  /** Id of the project. */
@@ -1761,7 +1916,12 @@ export interface RollbackProjectDeploymentResponse {
1761
1916
  type: "github" | "gitlab";
1762
1917
  };
1763
1918
  /** List of past stages. */
1764
- stages: unknown[];
1919
+ stages: {
1920
+ endedOn: string | null;
1921
+ name: "queued" | "initialize" | "clone_repo" | "build" | "deploy";
1922
+ startedOn: string | null;
1923
+ status: "success" | "idle" | "active" | "failure" | "canceled";
1924
+ }[];
1765
1925
  /** The live URL to view this deployment. */
1766
1926
  url: string;
1767
1927
  /** Whether the deployment uses functions. */