@distilled.cloud/cloudflare 0.0.0 → 0.2.3

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 (560) hide show
  1. package/README.md +41 -7
  2. package/lib/auth.d.ts +13 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +12 -0
  5. package/lib/auth.js.map +1 -0
  6. package/lib/category.d.ts +2 -0
  7. package/lib/category.d.ts.map +1 -0
  8. package/lib/category.js +2 -0
  9. package/lib/category.js.map +1 -0
  10. package/lib/client/api.d.ts +14 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +245 -0
  13. package/lib/client/api.js.map +1 -0
  14. package/lib/client/index.d.ts +8 -0
  15. package/lib/client/index.d.ts.map +1 -0
  16. package/lib/client/index.js +8 -0
  17. package/lib/client/index.js.map +1 -0
  18. package/lib/credentials.d.ts +14 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +17 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +37 -0
  23. package/lib/errors.d.ts.map +1 -0
  24. package/lib/errors.js +31 -0
  25. package/lib/errors.js.map +1 -0
  26. package/lib/index.d.ts +10 -0
  27. package/lib/index.d.ts.map +1 -0
  28. package/lib/index.js +10 -0
  29. package/lib/index.js.map +1 -0
  30. package/lib/retry.d.ts +14 -0
  31. package/lib/retry.d.ts.map +1 -0
  32. package/lib/retry.js +14 -0
  33. package/lib/retry.js.map +1 -0
  34. package/lib/schemas.d.ts +29 -0
  35. package/lib/schemas.d.ts.map +1 -0
  36. package/lib/schemas.js +34 -0
  37. package/lib/schemas.js.map +1 -0
  38. package/lib/services/abuse-reports.d.ts +224 -0
  39. package/lib/services/abuse-reports.d.ts.map +1 -0
  40. package/lib/services/abuse-reports.js +353 -0
  41. package/lib/services/abuse-reports.js.map +1 -0
  42. package/lib/services/accounts.d.ts +682 -0
  43. package/lib/services/accounts.d.ts.map +1 -0
  44. package/lib/services/accounts.js +805 -0
  45. package/lib/services/accounts.js.map +1 -0
  46. package/lib/services/acm.d.ts +73 -0
  47. package/lib/services/acm.d.ts.map +1 -0
  48. package/lib/services/acm.js +76 -0
  49. package/lib/services/acm.js.map +1 -0
  50. package/lib/services/addressing.d.ts +1208 -0
  51. package/lib/services/addressing.d.ts.map +1 -0
  52. package/lib/services/addressing.js +1776 -0
  53. package/lib/services/addressing.js.map +1 -0
  54. package/lib/services/ai-gateway.d.ts +956 -0
  55. package/lib/services/ai-gateway.d.ts.map +1 -0
  56. package/lib/services/ai-gateway.js +1706 -0
  57. package/lib/services/ai-gateway.js.map +1 -0
  58. package/lib/services/ai.d.ts +243 -0
  59. package/lib/services/ai.d.ts.map +1 -0
  60. package/lib/services/ai.js +299 -0
  61. package/lib/services/ai.js.map +1 -0
  62. package/lib/services/aisearch.d.ts +915 -0
  63. package/lib/services/aisearch.d.ts.map +1 -0
  64. package/lib/services/aisearch.js +2425 -0
  65. package/lib/services/aisearch.js.map +1 -0
  66. package/lib/services/alerting.d.ts +718 -0
  67. package/lib/services/alerting.d.ts.map +1 -0
  68. package/lib/services/alerting.js +1388 -0
  69. package/lib/services/alerting.js.map +1 -0
  70. package/lib/services/api-gateway.d.ts +830 -0
  71. package/lib/services/api-gateway.d.ts.map +1 -0
  72. package/lib/services/api-gateway.js +1548 -0
  73. package/lib/services/api-gateway.js.map +1 -0
  74. package/lib/services/argo.d.ts +101 -0
  75. package/lib/services/argo.d.ts.map +1 -0
  76. package/lib/services/argo.js +105 -0
  77. package/lib/services/argo.js.map +1 -0
  78. package/lib/services/audit-logs.d.ts +46 -0
  79. package/lib/services/audit-logs.d.ts.map +1 -0
  80. package/lib/services/audit-logs.js +37 -0
  81. package/lib/services/audit-logs.js.map +1 -0
  82. package/lib/services/billing.d.ts +62 -0
  83. package/lib/services/billing.d.ts.map +1 -0
  84. package/lib/services/billing.js +100 -0
  85. package/lib/services/billing.js.map +1 -0
  86. package/lib/services/bot-management.d.ts +124 -0
  87. package/lib/services/bot-management.d.ts.map +1 -0
  88. package/lib/services/bot-management.js +262 -0
  89. package/lib/services/bot-management.js.map +1 -0
  90. package/lib/services/botnet-feed.d.ts +65 -0
  91. package/lib/services/botnet-feed.d.ts.map +1 -0
  92. package/lib/services/botnet-feed.js +84 -0
  93. package/lib/services/botnet-feed.js.map +1 -0
  94. package/lib/services/brand-protection.d.ts +188 -0
  95. package/lib/services/brand-protection.d.ts.map +1 -0
  96. package/lib/services/brand-protection.js +214 -0
  97. package/lib/services/brand-protection.js.map +1 -0
  98. package/lib/services/browser-rendering.d.ts +857 -0
  99. package/lib/services/browser-rendering.d.ts.map +1 -0
  100. package/lib/services/browser-rendering.js +1141 -0
  101. package/lib/services/browser-rendering.js.map +1 -0
  102. package/lib/services/cache.d.ts +287 -0
  103. package/lib/services/cache.d.ts.map +1 -0
  104. package/lib/services/cache.js +330 -0
  105. package/lib/services/cache.js.map +1 -0
  106. package/lib/services/calls.d.ts +202 -0
  107. package/lib/services/calls.d.ts.map +1 -0
  108. package/lib/services/calls.js +175 -0
  109. package/lib/services/calls.js.map +1 -0
  110. package/lib/services/certificate-authorities.d.ts +40 -0
  111. package/lib/services/certificate-authorities.d.ts.map +1 -0
  112. package/lib/services/certificate-authorities.js +49 -0
  113. package/lib/services/certificate-authorities.js.map +1 -0
  114. package/lib/services/client-certificates.d.ts +254 -0
  115. package/lib/services/client-certificates.d.ts.map +1 -0
  116. package/lib/services/client-certificates.js +350 -0
  117. package/lib/services/client-certificates.js.map +1 -0
  118. package/lib/services/cloud-connector.d.ts +59 -0
  119. package/lib/services/cloud-connector.d.ts.map +1 -0
  120. package/lib/services/cloud-connector.js +84 -0
  121. package/lib/services/cloud-connector.js.map +1 -0
  122. package/lib/services/cloudforce-one.d.ts +1318 -0
  123. package/lib/services/cloudforce-one.d.ts.map +1 -0
  124. package/lib/services/cloudforce-one.js +1684 -0
  125. package/lib/services/cloudforce-one.js.map +1 -0
  126. package/lib/services/connectivity.d.ts +248 -0
  127. package/lib/services/connectivity.d.ts.map +1 -0
  128. package/lib/services/connectivity.js +377 -0
  129. package/lib/services/connectivity.js.map +1 -0
  130. package/lib/services/content-scanning.d.ts +131 -0
  131. package/lib/services/content-scanning.d.ts.map +1 -0
  132. package/lib/services/content-scanning.js +156 -0
  133. package/lib/services/content-scanning.js.map +1 -0
  134. package/lib/services/custom-certificates.d.ts +211 -0
  135. package/lib/services/custom-certificates.d.ts.map +1 -0
  136. package/lib/services/custom-certificates.js +309 -0
  137. package/lib/services/custom-certificates.js.map +1 -0
  138. package/lib/services/custom-hostnames.d.ts +525 -0
  139. package/lib/services/custom-hostnames.d.ts.map +1 -0
  140. package/lib/services/custom-hostnames.js +1164 -0
  141. package/lib/services/custom-hostnames.js.map +1 -0
  142. package/lib/services/custom-nameservers.d.ts +67 -0
  143. package/lib/services/custom-nameservers.d.ts.map +1 -0
  144. package/lib/services/custom-nameservers.js +80 -0
  145. package/lib/services/custom-nameservers.js.map +1 -0
  146. package/lib/services/custom-pages.d.ts +74 -0
  147. package/lib/services/custom-pages.d.ts.map +1 -0
  148. package/lib/services/custom-pages.js +125 -0
  149. package/lib/services/custom-pages.js.map +1 -0
  150. package/lib/services/d1.d.ts +326 -0
  151. package/lib/services/d1.d.ts.map +1 -0
  152. package/lib/services/d1.js +448 -0
  153. package/lib/services/d1.js.map +1 -0
  154. package/lib/services/dcv-delegation.d.ts +24 -0
  155. package/lib/services/dcv-delegation.d.ts.map +1 -0
  156. package/lib/services/dcv-delegation.js +24 -0
  157. package/lib/services/dcv-delegation.js.map +1 -0
  158. package/lib/services/diagnostics.d.ts +175 -0
  159. package/lib/services/diagnostics.d.ts.map +1 -0
  160. package/lib/services/diagnostics.js +273 -0
  161. package/lib/services/diagnostics.js.map +1 -0
  162. package/lib/services/dns-firewall.d.ts +288 -0
  163. package/lib/services/dns-firewall.d.ts.map +1 -0
  164. package/lib/services/dns-firewall.js +373 -0
  165. package/lib/services/dns-firewall.js.map +1 -0
  166. package/lib/services/dns.d.ts +2946 -0
  167. package/lib/services/dns.d.ts.map +1 -0
  168. package/lib/services/dns.js +4511 -0
  169. package/lib/services/dns.js.map +1 -0
  170. package/lib/services/durable-objects.d.ts +61 -0
  171. package/lib/services/durable-objects.d.ts.map +1 -0
  172. package/lib/services/durable-objects.js +66 -0
  173. package/lib/services/durable-objects.js.map +1 -0
  174. package/lib/services/email-routing.d.ts +542 -0
  175. package/lib/services/email-routing.d.ts.map +1 -0
  176. package/lib/services/email-routing.js +662 -0
  177. package/lib/services/email-routing.js.map +1 -0
  178. package/lib/services/email-security.d.ts +1131 -0
  179. package/lib/services/email-security.d.ts.map +1 -0
  180. package/lib/services/email-security.js +2065 -0
  181. package/lib/services/email-security.js.map +1 -0
  182. package/lib/services/filters.d.ts +157 -0
  183. package/lib/services/filters.d.ts.map +1 -0
  184. package/lib/services/filters.js +135 -0
  185. package/lib/services/filters.js.map +1 -0
  186. package/lib/services/firewall.d.ts +1080 -0
  187. package/lib/services/firewall.d.ts.map +1 -0
  188. package/lib/services/firewall.js +1881 -0
  189. package/lib/services/firewall.js.map +1 -0
  190. package/lib/services/healthchecks.d.ts +464 -0
  191. package/lib/services/healthchecks.d.ts.map +1 -0
  192. package/lib/services/healthchecks.js +838 -0
  193. package/lib/services/healthchecks.js.map +1 -0
  194. package/lib/services/hostnames.d.ts +74 -0
  195. package/lib/services/hostnames.d.ts.map +1 -0
  196. package/lib/services/hostnames.js +100 -0
  197. package/lib/services/hostnames.js.map +1 -0
  198. package/lib/services/hyperdrive.d.ts +203 -0
  199. package/lib/services/hyperdrive.d.ts.map +1 -0
  200. package/lib/services/hyperdrive.js +299 -0
  201. package/lib/services/hyperdrive.js.map +1 -0
  202. package/lib/services/iam.d.ts +554 -0
  203. package/lib/services/iam.d.ts.map +1 -0
  204. package/lib/services/iam.js +743 -0
  205. package/lib/services/iam.js.map +1 -0
  206. package/lib/services/images.d.ts +403 -0
  207. package/lib/services/images.d.ts.map +1 -0
  208. package/lib/services/images.js +417 -0
  209. package/lib/services/images.js.map +1 -0
  210. package/lib/services/intel.d.ts +768 -0
  211. package/lib/services/intel.d.ts.map +1 -0
  212. package/lib/services/intel.js +1179 -0
  213. package/lib/services/intel.js.map +1 -0
  214. package/lib/services/ips.d.ts +28 -0
  215. package/lib/services/ips.d.ts.map +1 -0
  216. package/lib/services/ips.js +39 -0
  217. package/lib/services/ips.js.map +1 -0
  218. package/lib/services/keyless-certificates.d.ts +177 -0
  219. package/lib/services/keyless-certificates.d.ts.map +1 -0
  220. package/lib/services/keyless-certificates.js +216 -0
  221. package/lib/services/keyless-certificates.js.map +1 -0
  222. package/lib/services/kv.d.ts +339 -0
  223. package/lib/services/kv.d.ts.map +1 -0
  224. package/lib/services/kv.js +402 -0
  225. package/lib/services/kv.js.map +1 -0
  226. package/lib/services/leaked-credential-checks.d.ts +119 -0
  227. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  228. package/lib/services/leaked-credential-checks.js +130 -0
  229. package/lib/services/leaked-credential-checks.js.map +1 -0
  230. package/lib/services/load-balancers.d.ts +1767 -0
  231. package/lib/services/load-balancers.d.ts.map +1 -0
  232. package/lib/services/load-balancers.js +3068 -0
  233. package/lib/services/load-balancers.js.map +1 -0
  234. package/lib/services/logpush.d.ts +401 -0
  235. package/lib/services/logpush.d.ts.map +1 -0
  236. package/lib/services/logpush.js +724 -0
  237. package/lib/services/logpush.js.map +1 -0
  238. package/lib/services/logs.d.ts +125 -0
  239. package/lib/services/logs.d.ts.map +1 -0
  240. package/lib/services/logs.js +145 -0
  241. package/lib/services/logs.js.map +1 -0
  242. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  243. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  244. package/lib/services/magic-cloud-networking.js +5205 -0
  245. package/lib/services/magic-cloud-networking.js.map +1 -0
  246. package/lib/services/magic-network-monitoring.d.ts +379 -0
  247. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  248. package/lib/services/magic-network-monitoring.js +535 -0
  249. package/lib/services/magic-network-monitoring.js.map +1 -0
  250. package/lib/services/magic-transit.d.ts +3650 -0
  251. package/lib/services/magic-transit.d.ts.map +1 -0
  252. package/lib/services/magic-transit.js +6120 -0
  253. package/lib/services/magic-transit.js.map +1 -0
  254. package/lib/services/managed-transforms.d.ts +79 -0
  255. package/lib/services/managed-transforms.d.ts.map +1 -0
  256. package/lib/services/managed-transforms.js +107 -0
  257. package/lib/services/managed-transforms.js.map +1 -0
  258. package/lib/services/memberships.d.ts +172 -0
  259. package/lib/services/memberships.d.ts.map +1 -0
  260. package/lib/services/memberships.js +282 -0
  261. package/lib/services/memberships.js.map +1 -0
  262. package/lib/services/mtls-certificates.d.ts +140 -0
  263. package/lib/services/mtls-certificates.d.ts.map +1 -0
  264. package/lib/services/mtls-certificates.js +173 -0
  265. package/lib/services/mtls-certificates.js.map +1 -0
  266. package/lib/services/network-interconnects.d.ts +410 -0
  267. package/lib/services/network-interconnects.d.ts.map +1 -0
  268. package/lib/services/network-interconnects.js +583 -0
  269. package/lib/services/network-interconnects.js.map +1 -0
  270. package/lib/services/organizations.d.ts +201 -0
  271. package/lib/services/organizations.d.ts.map +1 -0
  272. package/lib/services/organizations.js +355 -0
  273. package/lib/services/organizations.js.map +1 -0
  274. package/lib/services/origin-ca-certificates.d.ts +99 -0
  275. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  276. package/lib/services/origin-ca-certificates.js +156 -0
  277. package/lib/services/origin-ca-certificates.js.map +1 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  279. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  280. package/lib/services/origin-post-quantum-encryption.js +60 -0
  281. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  282. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  283. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  284. package/lib/services/origin-tls-client-auth.js +401 -0
  285. package/lib/services/origin-tls-client-auth.js.map +1 -0
  286. package/lib/services/page-rules.d.ts +773 -0
  287. package/lib/services/page-rules.d.ts.map +1 -0
  288. package/lib/services/page-rules.js +1365 -0
  289. package/lib/services/page-rules.js.map +1 -0
  290. package/lib/services/page-shield.d.ts +426 -0
  291. package/lib/services/page-shield.d.ts.map +1 -0
  292. package/lib/services/page-shield.js +484 -0
  293. package/lib/services/page-shield.js.map +1 -0
  294. package/lib/services/pages.d.ts +1654 -0
  295. package/lib/services/pages.d.ts.map +1 -0
  296. package/lib/services/pages.js +2954 -0
  297. package/lib/services/pages.js.map +1 -0
  298. package/lib/services/pipelines.d.ts +1461 -0
  299. package/lib/services/pipelines.d.ts.map +1 -0
  300. package/lib/services/pipelines.js +2912 -0
  301. package/lib/services/pipelines.js.map +1 -0
  302. package/lib/services/queues.d.ts +807 -0
  303. package/lib/services/queues.d.ts.map +1 -0
  304. package/lib/services/queues.js +1194 -0
  305. package/lib/services/queues.js.map +1 -0
  306. package/lib/services/r2-data-catalog.d.ts +341 -0
  307. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  308. package/lib/services/r2-data-catalog.js +499 -0
  309. package/lib/services/r2-data-catalog.js.map +1 -0
  310. package/lib/services/r2.d.ts +1041 -0
  311. package/lib/services/r2.d.ts.map +1 -0
  312. package/lib/services/r2.js +1384 -0
  313. package/lib/services/r2.js.map +1 -0
  314. package/lib/services/radar.d.ts +9276 -0
  315. package/lib/services/radar.d.ts.map +1 -0
  316. package/lib/services/radar.js +20491 -0
  317. package/lib/services/radar.js.map +1 -0
  318. package/lib/services/rate-limits.d.ts +315 -0
  319. package/lib/services/rate-limits.d.ts.map +1 -0
  320. package/lib/services/rate-limits.js +521 -0
  321. package/lib/services/rate-limits.js.map +1 -0
  322. package/lib/services/realtime-kit.d.ts +2728 -0
  323. package/lib/services/realtime-kit.d.ts.map +1 -0
  324. package/lib/services/realtime-kit.js +5401 -0
  325. package/lib/services/realtime-kit.js.map +1 -0
  326. package/lib/services/registrar.d.ts +81 -0
  327. package/lib/services/registrar.d.ts.map +1 -0
  328. package/lib/services/registrar.js +154 -0
  329. package/lib/services/registrar.js.map +1 -0
  330. package/lib/services/request-tracers.d.ts +61 -0
  331. package/lib/services/request-tracers.d.ts.map +1 -0
  332. package/lib/services/request-tracers.js +82 -0
  333. package/lib/services/request-tracers.js.map +1 -0
  334. package/lib/services/resource-sharing.d.ts +540 -0
  335. package/lib/services/resource-sharing.d.ts.map +1 -0
  336. package/lib/services/resource-sharing.js +846 -0
  337. package/lib/services/resource-sharing.js.map +1 -0
  338. package/lib/services/rules.d.ts +297 -0
  339. package/lib/services/rules.d.ts.map +1 -0
  340. package/lib/services/rules.js +396 -0
  341. package/lib/services/rules.js.map +1 -0
  342. package/lib/services/rulesets.d.ts +3300 -0
  343. package/lib/services/rulesets.d.ts.map +1 -0
  344. package/lib/services/rulesets.js +7852 -0
  345. package/lib/services/rulesets.js.map +1 -0
  346. package/lib/services/rum.d.ts +289 -0
  347. package/lib/services/rum.d.ts.map +1 -0
  348. package/lib/services/rum.js +409 -0
  349. package/lib/services/rum.js.map +1 -0
  350. package/lib/services/schema-validation.d.ts +240 -0
  351. package/lib/services/schema-validation.d.ts.map +1 -0
  352. package/lib/services/schema-validation.js +306 -0
  353. package/lib/services/schema-validation.js.map +1 -0
  354. package/lib/services/secrets-store.d.ts +321 -0
  355. package/lib/services/secrets-store.d.ts.map +1 -0
  356. package/lib/services/secrets-store.js +385 -0
  357. package/lib/services/secrets-store.js.map +1 -0
  358. package/lib/services/security-center.d.ts +102 -0
  359. package/lib/services/security-center.d.ts.map +1 -0
  360. package/lib/services/security-center.js +170 -0
  361. package/lib/services/security-center.js.map +1 -0
  362. package/lib/services/security-txt.d.ts +105 -0
  363. package/lib/services/security-txt.d.ts.map +1 -0
  364. package/lib/services/security-txt.js +136 -0
  365. package/lib/services/security-txt.js.map +1 -0
  366. package/lib/services/snippets.d.ts +138 -0
  367. package/lib/services/snippets.d.ts.map +1 -0
  368. package/lib/services/snippets.js +178 -0
  369. package/lib/services/snippets.js.map +1 -0
  370. package/lib/services/spectrum.d.ts +316 -0
  371. package/lib/services/spectrum.d.ts.map +1 -0
  372. package/lib/services/spectrum.js +510 -0
  373. package/lib/services/spectrum.js.map +1 -0
  374. package/lib/services/speed.d.ts +227 -0
  375. package/lib/services/speed.d.ts.map +1 -0
  376. package/lib/services/speed.js +444 -0
  377. package/lib/services/speed.js.map +1 -0
  378. package/lib/services/ssl.d.ts +370 -0
  379. package/lib/services/ssl.d.ts.map +1 -0
  380. package/lib/services/ssl.js +732 -0
  381. package/lib/services/ssl.js.map +1 -0
  382. package/lib/services/stream.d.ts +1014 -0
  383. package/lib/services/stream.d.ts.map +1 -0
  384. package/lib/services/stream.js +1049 -0
  385. package/lib/services/stream.js.map +1 -0
  386. package/lib/services/token-validation.d.ts +547 -0
  387. package/lib/services/token-validation.d.ts.map +1 -0
  388. package/lib/services/token-validation.js +768 -0
  389. package/lib/services/token-validation.js.map +1 -0
  390. package/lib/services/turnstile.d.ts +248 -0
  391. package/lib/services/turnstile.d.ts.map +1 -0
  392. package/lib/services/turnstile.js +308 -0
  393. package/lib/services/turnstile.js.map +1 -0
  394. package/lib/services/url-normalization.d.ts +53 -0
  395. package/lib/services/url-normalization.d.ts.map +1 -0
  396. package/lib/services/url-normalization.js +52 -0
  397. package/lib/services/url-normalization.js.map +1 -0
  398. package/lib/services/url-scanner.d.ts +612 -0
  399. package/lib/services/url-scanner.d.ts.map +1 -0
  400. package/lib/services/url-scanner.js +915 -0
  401. package/lib/services/url-scanner.js.map +1 -0
  402. package/lib/services/user.d.ts +441 -0
  403. package/lib/services/user.d.ts.map +1 -0
  404. package/lib/services/user.js +567 -0
  405. package/lib/services/user.js.map +1 -0
  406. package/lib/services/vectorize.d.ts +282 -0
  407. package/lib/services/vectorize.d.ts.map +1 -0
  408. package/lib/services/vectorize.js +340 -0
  409. package/lib/services/vectorize.js.map +1 -0
  410. package/lib/services/waiting-rooms.d.ts +1009 -0
  411. package/lib/services/waiting-rooms.d.ts.map +1 -0
  412. package/lib/services/waiting-rooms.js +1757 -0
  413. package/lib/services/waiting-rooms.js.map +1 -0
  414. package/lib/services/web3.d.ts +274 -0
  415. package/lib/services/web3.d.ts.map +1 -0
  416. package/lib/services/web3.js +362 -0
  417. package/lib/services/web3.js.map +1 -0
  418. package/lib/services/workers-for-platforms.d.ts +1224 -0
  419. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  420. package/lib/services/workers-for-platforms.js +2078 -0
  421. package/lib/services/workers-for-platforms.js.map +1 -0
  422. package/lib/services/workers.d.ts +3498 -0
  423. package/lib/services/workers.d.ts.map +1 -0
  424. package/lib/services/workers.js +5967 -0
  425. package/lib/services/workers.js.map +1 -0
  426. package/lib/services/workflows.d.ts +359 -0
  427. package/lib/services/workflows.d.ts.map +1 -0
  428. package/lib/services/workflows.js +516 -0
  429. package/lib/services/workflows.js.map +1 -0
  430. package/lib/services/zaraz.d.ts +300 -0
  431. package/lib/services/zaraz.d.ts.map +1 -0
  432. package/lib/services/zaraz.js +298 -0
  433. package/lib/services/zaraz.js.map +1 -0
  434. package/lib/services/zero-trust.d.ts +15449 -0
  435. package/lib/services/zero-trust.d.ts.map +1 -0
  436. package/lib/services/zero-trust.js +29194 -0
  437. package/lib/services/zero-trust.js.map +1 -0
  438. package/lib/services/zones.d.ts +1278 -0
  439. package/lib/services/zones.d.ts.map +1 -0
  440. package/lib/services/zones.js +2416 -0
  441. package/lib/services/zones.js.map +1 -0
  442. package/lib/traits.d.ts +28 -0
  443. package/lib/traits.d.ts.map +1 -0
  444. package/lib/traits.js +26 -0
  445. package/lib/traits.js.map +1 -0
  446. package/package.json +68 -5
  447. package/src/auth.ts +14 -0
  448. package/src/category.ts +1 -0
  449. package/src/client/api.ts +329 -0
  450. package/src/client/index.ts +7 -0
  451. package/src/credentials.ts +30 -0
  452. package/src/errors.ts +57 -0
  453. package/src/index.ts +9 -0
  454. package/src/retry.ts +35 -0
  455. package/src/schemas.ts +51 -0
  456. package/src/services/abuse-reports.ts +747 -0
  457. package/src/services/accounts.ts +1947 -0
  458. package/src/services/acm.ts +170 -0
  459. package/src/services/addressing.ts +3947 -0
  460. package/src/services/ai-gateway.ts +3335 -0
  461. package/src/services/ai.ts +727 -0
  462. package/src/services/aisearch.ts +4750 -0
  463. package/src/services/alerting.ts +2947 -0
  464. package/src/services/api-gateway.ts +3391 -0
  465. package/src/services/argo.ts +254 -0
  466. package/src/services/audit-logs.ts +90 -0
  467. package/src/services/billing.ts +172 -0
  468. package/src/services/bot-management.ts +541 -0
  469. package/src/services/botnet-feed.ts +193 -0
  470. package/src/services/brand-protection.ts +553 -0
  471. package/src/services/browser-rendering.ts +2707 -0
  472. package/src/services/cache.ts +827 -0
  473. package/src/services/calls.ts +483 -0
  474. package/src/services/certificate-authorities.ts +110 -0
  475. package/src/services/client-certificates.ts +718 -0
  476. package/src/services/cloud-connector.ts +181 -0
  477. package/src/services/cloudforce-one.ts +3876 -0
  478. package/src/services/connectivity.ts +629 -0
  479. package/src/services/content-scanning.ts +385 -0
  480. package/src/services/custom-certificates.ts +611 -0
  481. package/src/services/custom-hostnames.ts +2453 -0
  482. package/src/services/custom-nameservers.ts +182 -0
  483. package/src/services/custom-pages.ts +264 -0
  484. package/src/services/d1.ts +1034 -0
  485. package/src/services/dcv-delegation.ts +52 -0
  486. package/src/services/diagnostics.ts +603 -0
  487. package/src/services/dns-firewall.ts +823 -0
  488. package/src/services/dns.ts +8897 -0
  489. package/src/services/durable-objects.ts +148 -0
  490. package/src/services/email-routing.ts +1602 -0
  491. package/src/services/email-security.ts +4283 -0
  492. package/src/services/filters.ts +370 -0
  493. package/src/services/firewall.ts +3896 -0
  494. package/src/services/healthchecks.ts +1750 -0
  495. package/src/services/hostnames.ts +218 -0
  496. package/src/services/hyperdrive.ts +592 -0
  497. package/src/services/iam.ts +1668 -0
  498. package/src/services/images.ts +1086 -0
  499. package/src/services/intel.ts +2768 -0
  500. package/src/services/ips.ts +88 -0
  501. package/src/services/keyless-certificates.ts +462 -0
  502. package/src/services/kv.ts +1011 -0
  503. package/src/services/leaked-credential-checks.ts +325 -0
  504. package/src/services/load-balancers.ts +6438 -0
  505. package/src/services/logpush.ts +1667 -0
  506. package/src/services/logs.ts +375 -0
  507. package/src/services/magic-cloud-networking.ts +10020 -0
  508. package/src/services/magic-network-monitoring.ts +1156 -0
  509. package/src/services/magic-transit.ts +13050 -0
  510. package/src/services/managed-transforms.ts +237 -0
  511. package/src/services/memberships.ts +615 -0
  512. package/src/services/mtls-certificates.ts +374 -0
  513. package/src/services/network-interconnects.ts +1253 -0
  514. package/src/services/organizations.ts +674 -0
  515. package/src/services/origin-ca-certificates.ts +303 -0
  516. package/src/services/origin-post-quantum-encryption.ts +128 -0
  517. package/src/services/origin-tls-client-auth.ts +878 -0
  518. package/src/services/page-rules.ts +2612 -0
  519. package/src/services/page-shield.ts +1195 -0
  520. package/src/services/pages.ts +5709 -0
  521. package/src/services/pipelines.ts +6000 -0
  522. package/src/services/queues.ts +2629 -0
  523. package/src/services/r2-data-catalog.ts +1119 -0
  524. package/src/services/r2.ts +3348 -0
  525. package/src/services/radar.ts +42152 -0
  526. package/src/services/rate-limits.ts +1150 -0
  527. package/src/services/realtime-kit.ts +11079 -0
  528. package/src/services/registrar.ts +295 -0
  529. package/src/services/request-tracers.ts +158 -0
  530. package/src/services/resource-sharing.ts +1832 -0
  531. package/src/services/rules.ts +837 -0
  532. package/src/services/rulesets.ts +15144 -0
  533. package/src/services/rum.ts +901 -0
  534. package/src/services/schema-validation.ts +733 -0
  535. package/src/services/secrets-store.ts +860 -0
  536. package/src/services/security-center.ts +397 -0
  537. package/src/services/security-txt.ts +315 -0
  538. package/src/services/snippets.ts +420 -0
  539. package/src/services/spectrum.ts +1103 -0
  540. package/src/services/speed.ts +1056 -0
  541. package/src/services/ssl.ts +1587 -0
  542. package/src/services/stream.ts +2756 -0
  543. package/src/services/token-validation.ts +1585 -0
  544. package/src/services/turnstile.ts +643 -0
  545. package/src/services/url-normalization.ts +129 -0
  546. package/src/services/url-scanner.ts +1851 -0
  547. package/src/services/user.ts +1384 -0
  548. package/src/services/vectorize.ts +816 -0
  549. package/src/services/waiting-rooms.ts +3807 -0
  550. package/src/services/web3.ts +834 -0
  551. package/src/services/workers-for-platforms.ts +3859 -0
  552. package/src/services/workers.ts +11637 -0
  553. package/src/services/workflows.ts +1124 -0
  554. package/src/services/zaraz.ts +797 -0
  555. package/src/services/zero-trust.ts +58929 -0
  556. package/src/services/zones.ts +4875 -0
  557. package/src/traits.ts +47 -0
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,2954 @@
1
+ /**
2
+ * Cloudflare PAGES API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service pages
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import * as API from "../client/api.js";
9
+ import * as T from "../traits";
10
+ import {} from "../errors";
11
+ import { UploadableSchema } from "../schemas";
12
+ export const PurgeBuildCacheProjectRequest =
13
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
14
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
15
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
16
+ }).pipe(T.Http({
17
+ method: "POST",
18
+ path: "/accounts/{account_id}/pages/projects/{projectName}/purge_build_cache",
19
+ }));
20
+ export const PurgeBuildCacheProjectResponse =
21
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
22
+ export const purgeBuildCacheProject = API.make(() => ({
23
+ input: PurgeBuildCacheProjectRequest,
24
+ output: PurgeBuildCacheProjectResponse,
25
+ errors: [],
26
+ }));
27
+ export const GetProjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
28
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
29
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
30
+ }).pipe(T.Http({
31
+ method: "GET",
32
+ path: "/accounts/{account_id}/pages/projects/{projectName}",
33
+ }));
34
+ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
35
+ id: Schema.String,
36
+ canonicalDeployment: Schema.Union([
37
+ Schema.Struct({
38
+ id: Schema.String,
39
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
40
+ buildConfig: Schema.Struct({
41
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
42
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
43
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
44
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
45
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
46
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
47
+ }).pipe(Schema.encodeKeys({
48
+ webAnalyticsTag: "web_analytics_tag",
49
+ webAnalyticsToken: "web_analytics_token",
50
+ buildCaching: "build_caching",
51
+ buildCommand: "build_command",
52
+ destinationDir: "destination_dir",
53
+ rootDir: "root_dir",
54
+ })),
55
+ createdOn: Schema.String,
56
+ deploymentTrigger: Schema.Struct({
57
+ metadata: Schema.Struct({
58
+ branch: Schema.String,
59
+ commitDirty: Schema.Boolean,
60
+ commitHash: Schema.String,
61
+ commitMessage: Schema.String,
62
+ }).pipe(Schema.encodeKeys({
63
+ branch: "branch",
64
+ commitDirty: "commit_dirty",
65
+ commitHash: "commit_hash",
66
+ commitMessage: "commit_message",
67
+ })),
68
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
69
+ }),
70
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
71
+ environment: Schema.Literals(["preview", "production"]),
72
+ isSkipped: Schema.Boolean,
73
+ latestStage: Schema.Unknown,
74
+ modifiedOn: Schema.String,
75
+ projectId: Schema.String,
76
+ projectName: Schema.String,
77
+ shortId: Schema.String,
78
+ source: Schema.Struct({
79
+ config: Schema.Struct({
80
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
81
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
82
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
83
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
84
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
85
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
86
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
87
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
88
+ previewDeploymentSetting: Schema.optional(Schema.Union([
89
+ Schema.Literals(["all", "none", "custom"]),
90
+ Schema.Null,
91
+ ])),
92
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
93
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
94
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
95
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
96
+ }).pipe(Schema.encodeKeys({
97
+ deploymentsEnabled: "deployments_enabled",
98
+ owner: "owner",
99
+ ownerId: "owner_id",
100
+ pathExcludes: "path_excludes",
101
+ pathIncludes: "path_includes",
102
+ prCommentsEnabled: "pr_comments_enabled",
103
+ previewBranchExcludes: "preview_branch_excludes",
104
+ previewBranchIncludes: "preview_branch_includes",
105
+ previewDeploymentSetting: "preview_deployment_setting",
106
+ productionBranch: "production_branch",
107
+ productionDeploymentsEnabled: "production_deployments_enabled",
108
+ repoId: "repo_id",
109
+ repoName: "repo_name",
110
+ })),
111
+ type: Schema.Literals(["github", "gitlab"]),
112
+ }),
113
+ stages: Schema.Array(Schema.Unknown),
114
+ url: Schema.String,
115
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
116
+ }).pipe(Schema.encodeKeys({
117
+ id: "id",
118
+ aliases: "aliases",
119
+ buildConfig: "build_config",
120
+ createdOn: "created_on",
121
+ deploymentTrigger: "deployment_trigger",
122
+ envVars: "env_vars",
123
+ environment: "environment",
124
+ isSkipped: "is_skipped",
125
+ latestStage: "latest_stage",
126
+ modifiedOn: "modified_on",
127
+ projectId: "project_id",
128
+ projectName: "project_name",
129
+ shortId: "short_id",
130
+ source: "source",
131
+ stages: "stages",
132
+ url: "url",
133
+ usesFunctions: "uses_functions",
134
+ })),
135
+ Schema.Null,
136
+ ]),
137
+ createdOn: Schema.String,
138
+ deploymentConfigs: Schema.Struct({
139
+ preview: Schema.Struct({
140
+ aiBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
141
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
142
+ analyticsEngineDatasets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
143
+ browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
144
+ buildImageMajorVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
145
+ compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
146
+ compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
147
+ d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
148
+ durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
149
+ envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
150
+ failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
151
+ hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
152
+ kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
153
+ limits: Schema.optional(Schema.Union([
154
+ Schema.Struct({
155
+ cpuMs: Schema.Number,
156
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
157
+ Schema.Null,
158
+ ])),
159
+ mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
160
+ placement: Schema.optional(Schema.Union([
161
+ Schema.Struct({
162
+ mode: Schema.String,
163
+ }),
164
+ Schema.Null,
165
+ ])),
166
+ queueProducers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
167
+ r2Buckets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
168
+ services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
169
+ usageModel: Schema.optional(Schema.Union([
170
+ Schema.Literals(["standard", "bundled", "unbound"]),
171
+ Schema.Null,
172
+ ])),
173
+ vectorizeBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
174
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
175
+ }).pipe(Schema.encodeKeys({
176
+ aiBindings: "ai_bindings",
177
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
178
+ analyticsEngineDatasets: "analytics_engine_datasets",
179
+ browsers: "browsers",
180
+ buildImageMajorVersion: "build_image_major_version",
181
+ compatibilityDate: "compatibility_date",
182
+ compatibilityFlags: "compatibility_flags",
183
+ d1Databases: "d1_databases",
184
+ durableObjectNamespaces: "durable_object_namespaces",
185
+ envVars: "env_vars",
186
+ failOpen: "fail_open",
187
+ hyperdriveBindings: "hyperdrive_bindings",
188
+ kvNamespaces: "kv_namespaces",
189
+ limits: "limits",
190
+ mtlsCertificates: "mtls_certificates",
191
+ placement: "placement",
192
+ queueProducers: "queue_producers",
193
+ r2Buckets: "r2_buckets",
194
+ services: "services",
195
+ usageModel: "usage_model",
196
+ vectorizeBindings: "vectorize_bindings",
197
+ wranglerConfigHash: "wrangler_config_hash",
198
+ })),
199
+ production: Schema.Struct({
200
+ aiBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
201
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
202
+ analyticsEngineDatasets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
203
+ browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
204
+ buildImageMajorVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
205
+ compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
206
+ compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
207
+ d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
208
+ durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
209
+ envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
210
+ failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
211
+ hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
212
+ kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
213
+ limits: Schema.optional(Schema.Union([
214
+ Schema.Struct({
215
+ cpuMs: Schema.Number,
216
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
217
+ Schema.Null,
218
+ ])),
219
+ mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
220
+ placement: Schema.optional(Schema.Union([
221
+ Schema.Struct({
222
+ mode: Schema.String,
223
+ }),
224
+ Schema.Null,
225
+ ])),
226
+ queueProducers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
227
+ r2Buckets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
228
+ services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
229
+ usageModel: Schema.optional(Schema.Union([
230
+ Schema.Literals(["standard", "bundled", "unbound"]),
231
+ Schema.Null,
232
+ ])),
233
+ vectorizeBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
234
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
235
+ }).pipe(Schema.encodeKeys({
236
+ aiBindings: "ai_bindings",
237
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
238
+ analyticsEngineDatasets: "analytics_engine_datasets",
239
+ browsers: "browsers",
240
+ buildImageMajorVersion: "build_image_major_version",
241
+ compatibilityDate: "compatibility_date",
242
+ compatibilityFlags: "compatibility_flags",
243
+ d1Databases: "d1_databases",
244
+ durableObjectNamespaces: "durable_object_namespaces",
245
+ envVars: "env_vars",
246
+ failOpen: "fail_open",
247
+ hyperdriveBindings: "hyperdrive_bindings",
248
+ kvNamespaces: "kv_namespaces",
249
+ limits: "limits",
250
+ mtlsCertificates: "mtls_certificates",
251
+ placement: "placement",
252
+ queueProducers: "queue_producers",
253
+ r2Buckets: "r2_buckets",
254
+ services: "services",
255
+ usageModel: "usage_model",
256
+ vectorizeBindings: "vectorize_bindings",
257
+ wranglerConfigHash: "wrangler_config_hash",
258
+ })),
259
+ }),
260
+ framework: Schema.String,
261
+ frameworkVersion: Schema.String,
262
+ latestDeployment: Schema.Union([
263
+ Schema.Struct({
264
+ id: Schema.String,
265
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
266
+ buildConfig: Schema.Struct({
267
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
268
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
269
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
270
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
271
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
272
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
273
+ }).pipe(Schema.encodeKeys({
274
+ webAnalyticsTag: "web_analytics_tag",
275
+ webAnalyticsToken: "web_analytics_token",
276
+ buildCaching: "build_caching",
277
+ buildCommand: "build_command",
278
+ destinationDir: "destination_dir",
279
+ rootDir: "root_dir",
280
+ })),
281
+ createdOn: Schema.String,
282
+ deploymentTrigger: Schema.Struct({
283
+ metadata: Schema.Struct({
284
+ branch: Schema.String,
285
+ commitDirty: Schema.Boolean,
286
+ commitHash: Schema.String,
287
+ commitMessage: Schema.String,
288
+ }).pipe(Schema.encodeKeys({
289
+ branch: "branch",
290
+ commitDirty: "commit_dirty",
291
+ commitHash: "commit_hash",
292
+ commitMessage: "commit_message",
293
+ })),
294
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
295
+ }),
296
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
297
+ environment: Schema.Literals(["preview", "production"]),
298
+ isSkipped: Schema.Boolean,
299
+ latestStage: Schema.Unknown,
300
+ modifiedOn: Schema.String,
301
+ projectId: Schema.String,
302
+ projectName: Schema.String,
303
+ shortId: Schema.String,
304
+ source: Schema.Struct({
305
+ config: Schema.Struct({
306
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
307
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
308
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
309
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
310
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
311
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
312
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
313
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
314
+ previewDeploymentSetting: Schema.optional(Schema.Union([
315
+ Schema.Literals(["all", "none", "custom"]),
316
+ Schema.Null,
317
+ ])),
318
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
319
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
320
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
321
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
322
+ }).pipe(Schema.encodeKeys({
323
+ deploymentsEnabled: "deployments_enabled",
324
+ owner: "owner",
325
+ ownerId: "owner_id",
326
+ pathExcludes: "path_excludes",
327
+ pathIncludes: "path_includes",
328
+ prCommentsEnabled: "pr_comments_enabled",
329
+ previewBranchExcludes: "preview_branch_excludes",
330
+ previewBranchIncludes: "preview_branch_includes",
331
+ previewDeploymentSetting: "preview_deployment_setting",
332
+ productionBranch: "production_branch",
333
+ productionDeploymentsEnabled: "production_deployments_enabled",
334
+ repoId: "repo_id",
335
+ repoName: "repo_name",
336
+ })),
337
+ type: Schema.Literals(["github", "gitlab"]),
338
+ }),
339
+ stages: Schema.Array(Schema.Unknown),
340
+ url: Schema.String,
341
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
342
+ }).pipe(Schema.encodeKeys({
343
+ id: "id",
344
+ aliases: "aliases",
345
+ buildConfig: "build_config",
346
+ createdOn: "created_on",
347
+ deploymentTrigger: "deployment_trigger",
348
+ envVars: "env_vars",
349
+ environment: "environment",
350
+ isSkipped: "is_skipped",
351
+ latestStage: "latest_stage",
352
+ modifiedOn: "modified_on",
353
+ projectId: "project_id",
354
+ projectName: "project_name",
355
+ shortId: "short_id",
356
+ source: "source",
357
+ stages: "stages",
358
+ url: "url",
359
+ usesFunctions: "uses_functions",
360
+ })),
361
+ Schema.Null,
362
+ ]),
363
+ name: Schema.String,
364
+ previewScriptName: Schema.String,
365
+ productionBranch: Schema.String,
366
+ productionScriptName: Schema.String,
367
+ usesFunctions: Schema.Union([Schema.Boolean, Schema.Null]),
368
+ buildConfig: Schema.optional(Schema.Union([
369
+ Schema.Struct({
370
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
371
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
372
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
373
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
374
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
375
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
376
+ }).pipe(Schema.encodeKeys({
377
+ webAnalyticsTag: "web_analytics_tag",
378
+ webAnalyticsToken: "web_analytics_token",
379
+ buildCaching: "build_caching",
380
+ buildCommand: "build_command",
381
+ destinationDir: "destination_dir",
382
+ rootDir: "root_dir",
383
+ })),
384
+ Schema.Null,
385
+ ])),
386
+ domains: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
387
+ source: Schema.optional(Schema.Union([
388
+ Schema.Struct({
389
+ config: Schema.Struct({
390
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
391
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
392
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
393
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
394
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
395
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
396
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
397
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
398
+ previewDeploymentSetting: Schema.optional(Schema.Union([
399
+ Schema.Literals(["all", "none", "custom"]),
400
+ Schema.Null,
401
+ ])),
402
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
403
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
404
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
405
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
406
+ }).pipe(Schema.encodeKeys({
407
+ deploymentsEnabled: "deployments_enabled",
408
+ owner: "owner",
409
+ ownerId: "owner_id",
410
+ pathExcludes: "path_excludes",
411
+ pathIncludes: "path_includes",
412
+ prCommentsEnabled: "pr_comments_enabled",
413
+ previewBranchExcludes: "preview_branch_excludes",
414
+ previewBranchIncludes: "preview_branch_includes",
415
+ previewDeploymentSetting: "preview_deployment_setting",
416
+ productionBranch: "production_branch",
417
+ productionDeploymentsEnabled: "production_deployments_enabled",
418
+ repoId: "repo_id",
419
+ repoName: "repo_name",
420
+ })),
421
+ type: Schema.Literals(["github", "gitlab"]),
422
+ }),
423
+ Schema.Null,
424
+ ])),
425
+ subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
426
+ }).pipe(Schema.encodeKeys({
427
+ id: "id",
428
+ canonicalDeployment: "canonical_deployment",
429
+ createdOn: "created_on",
430
+ deploymentConfigs: "deployment_configs",
431
+ framework: "framework",
432
+ frameworkVersion: "framework_version",
433
+ latestDeployment: "latest_deployment",
434
+ name: "name",
435
+ previewScriptName: "preview_script_name",
436
+ productionBranch: "production_branch",
437
+ productionScriptName: "production_script_name",
438
+ usesFunctions: "uses_functions",
439
+ buildConfig: "build_config",
440
+ domains: "domains",
441
+ source: "source",
442
+ subdomain: "subdomain",
443
+ }));
444
+ export const getProject = API.make(() => ({
445
+ input: GetProjectRequest,
446
+ output: GetProjectResponse,
447
+ errors: [],
448
+ }));
449
+ export const ListProjectsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
450
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
451
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/pages/projects" }));
452
+ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
453
+ id: Schema.String,
454
+ canonicalDeployment: Schema.Union([
455
+ Schema.Struct({
456
+ id: Schema.String,
457
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
458
+ buildConfig: Schema.Struct({
459
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
460
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
461
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
462
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
463
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
464
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
465
+ }).pipe(Schema.encodeKeys({
466
+ webAnalyticsTag: "web_analytics_tag",
467
+ webAnalyticsToken: "web_analytics_token",
468
+ buildCaching: "build_caching",
469
+ buildCommand: "build_command",
470
+ destinationDir: "destination_dir",
471
+ rootDir: "root_dir",
472
+ })),
473
+ createdOn: Schema.String,
474
+ deploymentTrigger: Schema.Struct({
475
+ metadata: Schema.Struct({
476
+ branch: Schema.String,
477
+ commitDirty: Schema.Boolean,
478
+ commitHash: Schema.String,
479
+ commitMessage: Schema.String,
480
+ }).pipe(Schema.encodeKeys({
481
+ branch: "branch",
482
+ commitDirty: "commit_dirty",
483
+ commitHash: "commit_hash",
484
+ commitMessage: "commit_message",
485
+ })),
486
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
487
+ }),
488
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
489
+ environment: Schema.Literals(["preview", "production"]),
490
+ isSkipped: Schema.Boolean,
491
+ latestStage: Schema.Unknown,
492
+ modifiedOn: Schema.String,
493
+ projectId: Schema.String,
494
+ projectName: Schema.String,
495
+ shortId: Schema.String,
496
+ source: Schema.Struct({
497
+ config: Schema.Struct({
498
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
499
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
500
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
501
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
502
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
503
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
504
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
505
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
506
+ previewDeploymentSetting: Schema.optional(Schema.Union([
507
+ Schema.Literals(["all", "none", "custom"]),
508
+ Schema.Null,
509
+ ])),
510
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
511
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
512
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
513
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
514
+ }).pipe(Schema.encodeKeys({
515
+ deploymentsEnabled: "deployments_enabled",
516
+ owner: "owner",
517
+ ownerId: "owner_id",
518
+ pathExcludes: "path_excludes",
519
+ pathIncludes: "path_includes",
520
+ prCommentsEnabled: "pr_comments_enabled",
521
+ previewBranchExcludes: "preview_branch_excludes",
522
+ previewBranchIncludes: "preview_branch_includes",
523
+ previewDeploymentSetting: "preview_deployment_setting",
524
+ productionBranch: "production_branch",
525
+ productionDeploymentsEnabled: "production_deployments_enabled",
526
+ repoId: "repo_id",
527
+ repoName: "repo_name",
528
+ })),
529
+ type: Schema.Literals(["github", "gitlab"]),
530
+ }),
531
+ stages: Schema.Array(Schema.Unknown),
532
+ url: Schema.String,
533
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
534
+ }).pipe(Schema.encodeKeys({
535
+ id: "id",
536
+ aliases: "aliases",
537
+ buildConfig: "build_config",
538
+ createdOn: "created_on",
539
+ deploymentTrigger: "deployment_trigger",
540
+ envVars: "env_vars",
541
+ environment: "environment",
542
+ isSkipped: "is_skipped",
543
+ latestStage: "latest_stage",
544
+ modifiedOn: "modified_on",
545
+ projectId: "project_id",
546
+ projectName: "project_name",
547
+ shortId: "short_id",
548
+ source: "source",
549
+ stages: "stages",
550
+ url: "url",
551
+ usesFunctions: "uses_functions",
552
+ })),
553
+ Schema.Null,
554
+ ]),
555
+ createdOn: Schema.String,
556
+ deploymentConfigs: Schema.Struct({
557
+ preview: Schema.Struct({
558
+ aiBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
559
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
560
+ analyticsEngineDatasets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
561
+ browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
562
+ buildImageMajorVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
563
+ compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
564
+ compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
565
+ d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
566
+ durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
567
+ envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
568
+ failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
569
+ hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
570
+ kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
571
+ limits: Schema.optional(Schema.Union([
572
+ Schema.Struct({
573
+ cpuMs: Schema.Number,
574
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
575
+ Schema.Null,
576
+ ])),
577
+ mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
578
+ placement: Schema.optional(Schema.Union([
579
+ Schema.Struct({
580
+ mode: Schema.String,
581
+ }),
582
+ Schema.Null,
583
+ ])),
584
+ queueProducers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
585
+ r2Buckets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
586
+ services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
587
+ usageModel: Schema.optional(Schema.Union([
588
+ Schema.Literals(["standard", "bundled", "unbound"]),
589
+ Schema.Null,
590
+ ])),
591
+ vectorizeBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
592
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
593
+ }).pipe(Schema.encodeKeys({
594
+ aiBindings: "ai_bindings",
595
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
596
+ analyticsEngineDatasets: "analytics_engine_datasets",
597
+ browsers: "browsers",
598
+ buildImageMajorVersion: "build_image_major_version",
599
+ compatibilityDate: "compatibility_date",
600
+ compatibilityFlags: "compatibility_flags",
601
+ d1Databases: "d1_databases",
602
+ durableObjectNamespaces: "durable_object_namespaces",
603
+ envVars: "env_vars",
604
+ failOpen: "fail_open",
605
+ hyperdriveBindings: "hyperdrive_bindings",
606
+ kvNamespaces: "kv_namespaces",
607
+ limits: "limits",
608
+ mtlsCertificates: "mtls_certificates",
609
+ placement: "placement",
610
+ queueProducers: "queue_producers",
611
+ r2Buckets: "r2_buckets",
612
+ services: "services",
613
+ usageModel: "usage_model",
614
+ vectorizeBindings: "vectorize_bindings",
615
+ wranglerConfigHash: "wrangler_config_hash",
616
+ })),
617
+ production: Schema.Struct({
618
+ aiBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
619
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
620
+ analyticsEngineDatasets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
621
+ browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
622
+ buildImageMajorVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
623
+ compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
624
+ compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
625
+ d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
626
+ durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
627
+ envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
628
+ failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
629
+ hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
630
+ kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
631
+ limits: Schema.optional(Schema.Union([
632
+ Schema.Struct({
633
+ cpuMs: Schema.Number,
634
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
635
+ Schema.Null,
636
+ ])),
637
+ mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
638
+ placement: Schema.optional(Schema.Union([
639
+ Schema.Struct({
640
+ mode: Schema.String,
641
+ }),
642
+ Schema.Null,
643
+ ])),
644
+ queueProducers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
645
+ r2Buckets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
646
+ services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
647
+ usageModel: Schema.optional(Schema.Union([
648
+ Schema.Literals(["standard", "bundled", "unbound"]),
649
+ Schema.Null,
650
+ ])),
651
+ vectorizeBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
652
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
653
+ }).pipe(Schema.encodeKeys({
654
+ aiBindings: "ai_bindings",
655
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
656
+ analyticsEngineDatasets: "analytics_engine_datasets",
657
+ browsers: "browsers",
658
+ buildImageMajorVersion: "build_image_major_version",
659
+ compatibilityDate: "compatibility_date",
660
+ compatibilityFlags: "compatibility_flags",
661
+ d1Databases: "d1_databases",
662
+ durableObjectNamespaces: "durable_object_namespaces",
663
+ envVars: "env_vars",
664
+ failOpen: "fail_open",
665
+ hyperdriveBindings: "hyperdrive_bindings",
666
+ kvNamespaces: "kv_namespaces",
667
+ limits: "limits",
668
+ mtlsCertificates: "mtls_certificates",
669
+ placement: "placement",
670
+ queueProducers: "queue_producers",
671
+ r2Buckets: "r2_buckets",
672
+ services: "services",
673
+ usageModel: "usage_model",
674
+ vectorizeBindings: "vectorize_bindings",
675
+ wranglerConfigHash: "wrangler_config_hash",
676
+ })),
677
+ }),
678
+ framework: Schema.String,
679
+ frameworkVersion: Schema.String,
680
+ latestDeployment: Schema.Union([
681
+ Schema.Struct({
682
+ id: Schema.String,
683
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
684
+ buildConfig: Schema.Struct({
685
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
686
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
687
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
688
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
689
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
690
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
691
+ }).pipe(Schema.encodeKeys({
692
+ webAnalyticsTag: "web_analytics_tag",
693
+ webAnalyticsToken: "web_analytics_token",
694
+ buildCaching: "build_caching",
695
+ buildCommand: "build_command",
696
+ destinationDir: "destination_dir",
697
+ rootDir: "root_dir",
698
+ })),
699
+ createdOn: Schema.String,
700
+ deploymentTrigger: Schema.Struct({
701
+ metadata: Schema.Struct({
702
+ branch: Schema.String,
703
+ commitDirty: Schema.Boolean,
704
+ commitHash: Schema.String,
705
+ commitMessage: Schema.String,
706
+ }).pipe(Schema.encodeKeys({
707
+ branch: "branch",
708
+ commitDirty: "commit_dirty",
709
+ commitHash: "commit_hash",
710
+ commitMessage: "commit_message",
711
+ })),
712
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
713
+ }),
714
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
715
+ environment: Schema.Literals(["preview", "production"]),
716
+ isSkipped: Schema.Boolean,
717
+ latestStage: Schema.Unknown,
718
+ modifiedOn: Schema.String,
719
+ projectId: Schema.String,
720
+ projectName: Schema.String,
721
+ shortId: Schema.String,
722
+ source: Schema.Struct({
723
+ config: Schema.Struct({
724
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
725
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
726
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
727
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
728
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
729
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
730
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
731
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
732
+ previewDeploymentSetting: Schema.optional(Schema.Union([
733
+ Schema.Literals(["all", "none", "custom"]),
734
+ Schema.Null,
735
+ ])),
736
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
737
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
738
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
739
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
740
+ }).pipe(Schema.encodeKeys({
741
+ deploymentsEnabled: "deployments_enabled",
742
+ owner: "owner",
743
+ ownerId: "owner_id",
744
+ pathExcludes: "path_excludes",
745
+ pathIncludes: "path_includes",
746
+ prCommentsEnabled: "pr_comments_enabled",
747
+ previewBranchExcludes: "preview_branch_excludes",
748
+ previewBranchIncludes: "preview_branch_includes",
749
+ previewDeploymentSetting: "preview_deployment_setting",
750
+ productionBranch: "production_branch",
751
+ productionDeploymentsEnabled: "production_deployments_enabled",
752
+ repoId: "repo_id",
753
+ repoName: "repo_name",
754
+ })),
755
+ type: Schema.Literals(["github", "gitlab"]),
756
+ }),
757
+ stages: Schema.Array(Schema.Unknown),
758
+ url: Schema.String,
759
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
760
+ }).pipe(Schema.encodeKeys({
761
+ id: "id",
762
+ aliases: "aliases",
763
+ buildConfig: "build_config",
764
+ createdOn: "created_on",
765
+ deploymentTrigger: "deployment_trigger",
766
+ envVars: "env_vars",
767
+ environment: "environment",
768
+ isSkipped: "is_skipped",
769
+ latestStage: "latest_stage",
770
+ modifiedOn: "modified_on",
771
+ projectId: "project_id",
772
+ projectName: "project_name",
773
+ shortId: "short_id",
774
+ source: "source",
775
+ stages: "stages",
776
+ url: "url",
777
+ usesFunctions: "uses_functions",
778
+ })),
779
+ Schema.Null,
780
+ ]),
781
+ name: Schema.String,
782
+ previewScriptName: Schema.String,
783
+ productionBranch: Schema.String,
784
+ productionScriptName: Schema.String,
785
+ usesFunctions: Schema.Union([Schema.Boolean, Schema.Null]),
786
+ buildConfig: Schema.optional(Schema.Union([
787
+ Schema.Struct({
788
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
789
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
790
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
791
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
792
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
793
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
794
+ }).pipe(Schema.encodeKeys({
795
+ webAnalyticsTag: "web_analytics_tag",
796
+ webAnalyticsToken: "web_analytics_token",
797
+ buildCaching: "build_caching",
798
+ buildCommand: "build_command",
799
+ destinationDir: "destination_dir",
800
+ rootDir: "root_dir",
801
+ })),
802
+ Schema.Null,
803
+ ])),
804
+ domains: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
805
+ source: Schema.optional(Schema.Union([
806
+ Schema.Struct({
807
+ config: Schema.Struct({
808
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
809
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
810
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
811
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
812
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
813
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
814
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
815
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
816
+ previewDeploymentSetting: Schema.optional(Schema.Union([
817
+ Schema.Literals(["all", "none", "custom"]),
818
+ Schema.Null,
819
+ ])),
820
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
821
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
822
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
823
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
824
+ }).pipe(Schema.encodeKeys({
825
+ deploymentsEnabled: "deployments_enabled",
826
+ owner: "owner",
827
+ ownerId: "owner_id",
828
+ pathExcludes: "path_excludes",
829
+ pathIncludes: "path_includes",
830
+ prCommentsEnabled: "pr_comments_enabled",
831
+ previewBranchExcludes: "preview_branch_excludes",
832
+ previewBranchIncludes: "preview_branch_includes",
833
+ previewDeploymentSetting: "preview_deployment_setting",
834
+ productionBranch: "production_branch",
835
+ productionDeploymentsEnabled: "production_deployments_enabled",
836
+ repoId: "repo_id",
837
+ repoName: "repo_name",
838
+ })),
839
+ type: Schema.Literals(["github", "gitlab"]),
840
+ }),
841
+ Schema.Null,
842
+ ])),
843
+ subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
844
+ }).pipe(Schema.encodeKeys({
845
+ id: "id",
846
+ canonicalDeployment: "canonical_deployment",
847
+ createdOn: "created_on",
848
+ deploymentConfigs: "deployment_configs",
849
+ framework: "framework",
850
+ frameworkVersion: "framework_version",
851
+ latestDeployment: "latest_deployment",
852
+ name: "name",
853
+ previewScriptName: "preview_script_name",
854
+ productionBranch: "production_branch",
855
+ productionScriptName: "production_script_name",
856
+ usesFunctions: "uses_functions",
857
+ buildConfig: "build_config",
858
+ domains: "domains",
859
+ source: "source",
860
+ subdomain: "subdomain",
861
+ })));
862
+ export const listProjects = API.make(() => ({
863
+ input: ListProjectsRequest,
864
+ output: ListProjectsResponse,
865
+ errors: [],
866
+ }));
867
+ export const CreateProjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
868
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
869
+ name: Schema.String,
870
+ productionBranch: Schema.String,
871
+ buildConfig: Schema.optional(Schema.Struct({
872
+ buildCaching: Schema.optional(Schema.Boolean),
873
+ buildCommand: Schema.optional(Schema.String),
874
+ destinationDir: Schema.optional(Schema.String),
875
+ rootDir: Schema.optional(Schema.String),
876
+ webAnalyticsTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
877
+ webAnalyticsToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
878
+ }).pipe(Schema.encodeKeys({
879
+ buildCaching: "build_caching",
880
+ buildCommand: "build_command",
881
+ destinationDir: "destination_dir",
882
+ rootDir: "root_dir",
883
+ webAnalyticsTag: "web_analytics_tag",
884
+ webAnalyticsToken: "web_analytics_token",
885
+ }))),
886
+ deploymentConfigs: Schema.optional(Schema.Struct({
887
+ preview: Schema.optional(Schema.Struct({
888
+ aiBindings: Schema.optional(Schema.Struct({})),
889
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Boolean),
890
+ analyticsEngineDatasets: Schema.optional(Schema.Struct({})),
891
+ browsers: Schema.optional(Schema.Struct({})),
892
+ buildImageMajorVersion: Schema.optional(Schema.Number),
893
+ compatibilityDate: Schema.optional(Schema.String),
894
+ compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
895
+ d1Databases: Schema.optional(Schema.Struct({})),
896
+ durableObjectNamespaces: Schema.optional(Schema.Struct({})),
897
+ envVars: Schema.optional(Schema.Struct({})),
898
+ failOpen: Schema.optional(Schema.Boolean),
899
+ hyperdriveBindings: Schema.optional(Schema.Struct({})),
900
+ kvNamespaces: Schema.optional(Schema.Struct({})),
901
+ limits: Schema.optional(Schema.Struct({
902
+ cpuMs: Schema.Number,
903
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" }))),
904
+ mtlsCertificates: Schema.optional(Schema.Struct({})),
905
+ placement: Schema.optional(Schema.Struct({
906
+ mode: Schema.String,
907
+ })),
908
+ queueProducers: Schema.optional(Schema.Struct({})),
909
+ r2Buckets: Schema.optional(Schema.Struct({})),
910
+ services: Schema.optional(Schema.Struct({})),
911
+ usageModel: Schema.optional(Schema.Literals(["standard", "bundled", "unbound"])),
912
+ vectorizeBindings: Schema.optional(Schema.Struct({})),
913
+ wranglerConfigHash: Schema.optional(Schema.String),
914
+ }).pipe(Schema.encodeKeys({
915
+ aiBindings: "ai_bindings",
916
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
917
+ analyticsEngineDatasets: "analytics_engine_datasets",
918
+ browsers: "browsers",
919
+ buildImageMajorVersion: "build_image_major_version",
920
+ compatibilityDate: "compatibility_date",
921
+ compatibilityFlags: "compatibility_flags",
922
+ d1Databases: "d1_databases",
923
+ durableObjectNamespaces: "durable_object_namespaces",
924
+ envVars: "env_vars",
925
+ failOpen: "fail_open",
926
+ hyperdriveBindings: "hyperdrive_bindings",
927
+ kvNamespaces: "kv_namespaces",
928
+ limits: "limits",
929
+ mtlsCertificates: "mtls_certificates",
930
+ placement: "placement",
931
+ queueProducers: "queue_producers",
932
+ r2Buckets: "r2_buckets",
933
+ services: "services",
934
+ usageModel: "usage_model",
935
+ vectorizeBindings: "vectorize_bindings",
936
+ wranglerConfigHash: "wrangler_config_hash",
937
+ }))),
938
+ production: Schema.optional(Schema.Struct({
939
+ aiBindings: Schema.optional(Schema.Struct({})),
940
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Boolean),
941
+ analyticsEngineDatasets: Schema.optional(Schema.Struct({})),
942
+ browsers: Schema.optional(Schema.Struct({})),
943
+ buildImageMajorVersion: Schema.optional(Schema.Number),
944
+ compatibilityDate: Schema.optional(Schema.String),
945
+ compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
946
+ d1Databases: Schema.optional(Schema.Struct({})),
947
+ durableObjectNamespaces: Schema.optional(Schema.Struct({})),
948
+ envVars: Schema.optional(Schema.Struct({})),
949
+ failOpen: Schema.optional(Schema.Boolean),
950
+ hyperdriveBindings: Schema.optional(Schema.Struct({})),
951
+ kvNamespaces: Schema.optional(Schema.Struct({})),
952
+ limits: Schema.optional(Schema.Struct({
953
+ cpuMs: Schema.Number,
954
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" }))),
955
+ mtlsCertificates: Schema.optional(Schema.Struct({})),
956
+ placement: Schema.optional(Schema.Struct({
957
+ mode: Schema.String,
958
+ })),
959
+ queueProducers: Schema.optional(Schema.Struct({})),
960
+ r2Buckets: Schema.optional(Schema.Struct({})),
961
+ services: Schema.optional(Schema.Struct({})),
962
+ usageModel: Schema.optional(Schema.Literals(["standard", "bundled", "unbound"])),
963
+ vectorizeBindings: Schema.optional(Schema.Struct({})),
964
+ wranglerConfigHash: Schema.optional(Schema.String),
965
+ }).pipe(Schema.encodeKeys({
966
+ aiBindings: "ai_bindings",
967
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
968
+ analyticsEngineDatasets: "analytics_engine_datasets",
969
+ browsers: "browsers",
970
+ buildImageMajorVersion: "build_image_major_version",
971
+ compatibilityDate: "compatibility_date",
972
+ compatibilityFlags: "compatibility_flags",
973
+ d1Databases: "d1_databases",
974
+ durableObjectNamespaces: "durable_object_namespaces",
975
+ envVars: "env_vars",
976
+ failOpen: "fail_open",
977
+ hyperdriveBindings: "hyperdrive_bindings",
978
+ kvNamespaces: "kv_namespaces",
979
+ limits: "limits",
980
+ mtlsCertificates: "mtls_certificates",
981
+ placement: "placement",
982
+ queueProducers: "queue_producers",
983
+ r2Buckets: "r2_buckets",
984
+ services: "services",
985
+ usageModel: "usage_model",
986
+ vectorizeBindings: "vectorize_bindings",
987
+ wranglerConfigHash: "wrangler_config_hash",
988
+ }))),
989
+ })),
990
+ source: Schema.optional(Schema.Struct({
991
+ config: Schema.Struct({
992
+ deploymentsEnabled: Schema.optional(Schema.Boolean),
993
+ owner: Schema.optional(Schema.String),
994
+ ownerId: Schema.optional(Schema.String),
995
+ pathExcludes: Schema.optional(Schema.Array(Schema.String)),
996
+ pathIncludes: Schema.optional(Schema.Array(Schema.String)),
997
+ prCommentsEnabled: Schema.optional(Schema.Boolean),
998
+ previewBranchExcludes: Schema.optional(Schema.Array(Schema.String)),
999
+ previewBranchIncludes: Schema.optional(Schema.Array(Schema.String)),
1000
+ previewDeploymentSetting: Schema.optional(Schema.Literals(["all", "none", "custom"])),
1001
+ productionBranch: Schema.optional(Schema.String),
1002
+ productionDeploymentsEnabled: Schema.optional(Schema.Boolean),
1003
+ repoId: Schema.optional(Schema.String),
1004
+ repoName: Schema.optional(Schema.String),
1005
+ }).pipe(Schema.encodeKeys({
1006
+ deploymentsEnabled: "deployments_enabled",
1007
+ owner: "owner",
1008
+ ownerId: "owner_id",
1009
+ pathExcludes: "path_excludes",
1010
+ pathIncludes: "path_includes",
1011
+ prCommentsEnabled: "pr_comments_enabled",
1012
+ previewBranchExcludes: "preview_branch_excludes",
1013
+ previewBranchIncludes: "preview_branch_includes",
1014
+ previewDeploymentSetting: "preview_deployment_setting",
1015
+ productionBranch: "production_branch",
1016
+ productionDeploymentsEnabled: "production_deployments_enabled",
1017
+ repoId: "repo_id",
1018
+ repoName: "repo_name",
1019
+ })),
1020
+ type: Schema.Literals(["github", "gitlab"]),
1021
+ })),
1022
+ }).pipe(Schema.encodeKeys({
1023
+ name: "name",
1024
+ productionBranch: "production_branch",
1025
+ buildConfig: "build_config",
1026
+ deploymentConfigs: "deployment_configs",
1027
+ source: "source",
1028
+ }), T.Http({ method: "POST", path: "/accounts/{account_id}/pages/projects" }));
1029
+ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1030
+ id: Schema.String,
1031
+ canonicalDeployment: Schema.Union([
1032
+ Schema.Struct({
1033
+ id: Schema.String,
1034
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1035
+ buildConfig: Schema.Struct({
1036
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1037
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1038
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1039
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1040
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1041
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1042
+ }).pipe(Schema.encodeKeys({
1043
+ webAnalyticsTag: "web_analytics_tag",
1044
+ webAnalyticsToken: "web_analytics_token",
1045
+ buildCaching: "build_caching",
1046
+ buildCommand: "build_command",
1047
+ destinationDir: "destination_dir",
1048
+ rootDir: "root_dir",
1049
+ })),
1050
+ createdOn: Schema.String,
1051
+ deploymentTrigger: Schema.Struct({
1052
+ metadata: Schema.Struct({
1053
+ branch: Schema.String,
1054
+ commitDirty: Schema.Boolean,
1055
+ commitHash: Schema.String,
1056
+ commitMessage: Schema.String,
1057
+ }).pipe(Schema.encodeKeys({
1058
+ branch: "branch",
1059
+ commitDirty: "commit_dirty",
1060
+ commitHash: "commit_hash",
1061
+ commitMessage: "commit_message",
1062
+ })),
1063
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1064
+ }),
1065
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
1066
+ environment: Schema.Literals(["preview", "production"]),
1067
+ isSkipped: Schema.Boolean,
1068
+ latestStage: Schema.Unknown,
1069
+ modifiedOn: Schema.String,
1070
+ projectId: Schema.String,
1071
+ projectName: Schema.String,
1072
+ shortId: Schema.String,
1073
+ source: Schema.Struct({
1074
+ config: Schema.Struct({
1075
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1076
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1077
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1078
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1079
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1080
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1081
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1082
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1083
+ previewDeploymentSetting: Schema.optional(Schema.Union([
1084
+ Schema.Literals(["all", "none", "custom"]),
1085
+ Schema.Null,
1086
+ ])),
1087
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1088
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1089
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1090
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1091
+ }).pipe(Schema.encodeKeys({
1092
+ deploymentsEnabled: "deployments_enabled",
1093
+ owner: "owner",
1094
+ ownerId: "owner_id",
1095
+ pathExcludes: "path_excludes",
1096
+ pathIncludes: "path_includes",
1097
+ prCommentsEnabled: "pr_comments_enabled",
1098
+ previewBranchExcludes: "preview_branch_excludes",
1099
+ previewBranchIncludes: "preview_branch_includes",
1100
+ previewDeploymentSetting: "preview_deployment_setting",
1101
+ productionBranch: "production_branch",
1102
+ productionDeploymentsEnabled: "production_deployments_enabled",
1103
+ repoId: "repo_id",
1104
+ repoName: "repo_name",
1105
+ })),
1106
+ type: Schema.Literals(["github", "gitlab"]),
1107
+ }),
1108
+ stages: Schema.Array(Schema.Unknown),
1109
+ url: Schema.String,
1110
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1111
+ }).pipe(Schema.encodeKeys({
1112
+ id: "id",
1113
+ aliases: "aliases",
1114
+ buildConfig: "build_config",
1115
+ createdOn: "created_on",
1116
+ deploymentTrigger: "deployment_trigger",
1117
+ envVars: "env_vars",
1118
+ environment: "environment",
1119
+ isSkipped: "is_skipped",
1120
+ latestStage: "latest_stage",
1121
+ modifiedOn: "modified_on",
1122
+ projectId: "project_id",
1123
+ projectName: "project_name",
1124
+ shortId: "short_id",
1125
+ source: "source",
1126
+ stages: "stages",
1127
+ url: "url",
1128
+ usesFunctions: "uses_functions",
1129
+ })),
1130
+ Schema.Null,
1131
+ ]),
1132
+ createdOn: Schema.String,
1133
+ deploymentConfigs: Schema.Struct({
1134
+ preview: Schema.Struct({
1135
+ aiBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1136
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1137
+ analyticsEngineDatasets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1138
+ browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1139
+ buildImageMajorVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1140
+ compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1141
+ compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1142
+ d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1143
+ durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1144
+ envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1145
+ failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1146
+ hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1147
+ kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1148
+ limits: Schema.optional(Schema.Union([
1149
+ Schema.Struct({
1150
+ cpuMs: Schema.Number,
1151
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1152
+ Schema.Null,
1153
+ ])),
1154
+ mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1155
+ placement: Schema.optional(Schema.Union([
1156
+ Schema.Struct({
1157
+ mode: Schema.String,
1158
+ }),
1159
+ Schema.Null,
1160
+ ])),
1161
+ queueProducers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1162
+ r2Buckets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1163
+ services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1164
+ usageModel: Schema.optional(Schema.Union([
1165
+ Schema.Literals(["standard", "bundled", "unbound"]),
1166
+ Schema.Null,
1167
+ ])),
1168
+ vectorizeBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1169
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1170
+ }).pipe(Schema.encodeKeys({
1171
+ aiBindings: "ai_bindings",
1172
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
1173
+ analyticsEngineDatasets: "analytics_engine_datasets",
1174
+ browsers: "browsers",
1175
+ buildImageMajorVersion: "build_image_major_version",
1176
+ compatibilityDate: "compatibility_date",
1177
+ compatibilityFlags: "compatibility_flags",
1178
+ d1Databases: "d1_databases",
1179
+ durableObjectNamespaces: "durable_object_namespaces",
1180
+ envVars: "env_vars",
1181
+ failOpen: "fail_open",
1182
+ hyperdriveBindings: "hyperdrive_bindings",
1183
+ kvNamespaces: "kv_namespaces",
1184
+ limits: "limits",
1185
+ mtlsCertificates: "mtls_certificates",
1186
+ placement: "placement",
1187
+ queueProducers: "queue_producers",
1188
+ r2Buckets: "r2_buckets",
1189
+ services: "services",
1190
+ usageModel: "usage_model",
1191
+ vectorizeBindings: "vectorize_bindings",
1192
+ wranglerConfigHash: "wrangler_config_hash",
1193
+ })),
1194
+ production: Schema.Struct({
1195
+ aiBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1196
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1197
+ analyticsEngineDatasets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1198
+ browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1199
+ buildImageMajorVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1200
+ compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1201
+ compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1202
+ d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1203
+ durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1204
+ envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1205
+ failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1206
+ hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1207
+ kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1208
+ limits: Schema.optional(Schema.Union([
1209
+ Schema.Struct({
1210
+ cpuMs: Schema.Number,
1211
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1212
+ Schema.Null,
1213
+ ])),
1214
+ mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1215
+ placement: Schema.optional(Schema.Union([
1216
+ Schema.Struct({
1217
+ mode: Schema.String,
1218
+ }),
1219
+ Schema.Null,
1220
+ ])),
1221
+ queueProducers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1222
+ r2Buckets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1223
+ services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1224
+ usageModel: Schema.optional(Schema.Union([
1225
+ Schema.Literals(["standard", "bundled", "unbound"]),
1226
+ Schema.Null,
1227
+ ])),
1228
+ vectorizeBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1229
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1230
+ }).pipe(Schema.encodeKeys({
1231
+ aiBindings: "ai_bindings",
1232
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
1233
+ analyticsEngineDatasets: "analytics_engine_datasets",
1234
+ browsers: "browsers",
1235
+ buildImageMajorVersion: "build_image_major_version",
1236
+ compatibilityDate: "compatibility_date",
1237
+ compatibilityFlags: "compatibility_flags",
1238
+ d1Databases: "d1_databases",
1239
+ durableObjectNamespaces: "durable_object_namespaces",
1240
+ envVars: "env_vars",
1241
+ failOpen: "fail_open",
1242
+ hyperdriveBindings: "hyperdrive_bindings",
1243
+ kvNamespaces: "kv_namespaces",
1244
+ limits: "limits",
1245
+ mtlsCertificates: "mtls_certificates",
1246
+ placement: "placement",
1247
+ queueProducers: "queue_producers",
1248
+ r2Buckets: "r2_buckets",
1249
+ services: "services",
1250
+ usageModel: "usage_model",
1251
+ vectorizeBindings: "vectorize_bindings",
1252
+ wranglerConfigHash: "wrangler_config_hash",
1253
+ })),
1254
+ }),
1255
+ framework: Schema.String,
1256
+ frameworkVersion: Schema.String,
1257
+ latestDeployment: Schema.Union([
1258
+ Schema.Struct({
1259
+ id: Schema.String,
1260
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1261
+ buildConfig: Schema.Struct({
1262
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1263
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1264
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1265
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1266
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1267
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1268
+ }).pipe(Schema.encodeKeys({
1269
+ webAnalyticsTag: "web_analytics_tag",
1270
+ webAnalyticsToken: "web_analytics_token",
1271
+ buildCaching: "build_caching",
1272
+ buildCommand: "build_command",
1273
+ destinationDir: "destination_dir",
1274
+ rootDir: "root_dir",
1275
+ })),
1276
+ createdOn: Schema.String,
1277
+ deploymentTrigger: Schema.Struct({
1278
+ metadata: Schema.Struct({
1279
+ branch: Schema.String,
1280
+ commitDirty: Schema.Boolean,
1281
+ commitHash: Schema.String,
1282
+ commitMessage: Schema.String,
1283
+ }).pipe(Schema.encodeKeys({
1284
+ branch: "branch",
1285
+ commitDirty: "commit_dirty",
1286
+ commitHash: "commit_hash",
1287
+ commitMessage: "commit_message",
1288
+ })),
1289
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1290
+ }),
1291
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
1292
+ environment: Schema.Literals(["preview", "production"]),
1293
+ isSkipped: Schema.Boolean,
1294
+ latestStage: Schema.Unknown,
1295
+ modifiedOn: Schema.String,
1296
+ projectId: Schema.String,
1297
+ projectName: Schema.String,
1298
+ shortId: Schema.String,
1299
+ source: Schema.Struct({
1300
+ config: Schema.Struct({
1301
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1302
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1303
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1304
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1305
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1306
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1307
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1308
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1309
+ previewDeploymentSetting: Schema.optional(Schema.Union([
1310
+ Schema.Literals(["all", "none", "custom"]),
1311
+ Schema.Null,
1312
+ ])),
1313
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1314
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1315
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1316
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1317
+ }).pipe(Schema.encodeKeys({
1318
+ deploymentsEnabled: "deployments_enabled",
1319
+ owner: "owner",
1320
+ ownerId: "owner_id",
1321
+ pathExcludes: "path_excludes",
1322
+ pathIncludes: "path_includes",
1323
+ prCommentsEnabled: "pr_comments_enabled",
1324
+ previewBranchExcludes: "preview_branch_excludes",
1325
+ previewBranchIncludes: "preview_branch_includes",
1326
+ previewDeploymentSetting: "preview_deployment_setting",
1327
+ productionBranch: "production_branch",
1328
+ productionDeploymentsEnabled: "production_deployments_enabled",
1329
+ repoId: "repo_id",
1330
+ repoName: "repo_name",
1331
+ })),
1332
+ type: Schema.Literals(["github", "gitlab"]),
1333
+ }),
1334
+ stages: Schema.Array(Schema.Unknown),
1335
+ url: Schema.String,
1336
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1337
+ }).pipe(Schema.encodeKeys({
1338
+ id: "id",
1339
+ aliases: "aliases",
1340
+ buildConfig: "build_config",
1341
+ createdOn: "created_on",
1342
+ deploymentTrigger: "deployment_trigger",
1343
+ envVars: "env_vars",
1344
+ environment: "environment",
1345
+ isSkipped: "is_skipped",
1346
+ latestStage: "latest_stage",
1347
+ modifiedOn: "modified_on",
1348
+ projectId: "project_id",
1349
+ projectName: "project_name",
1350
+ shortId: "short_id",
1351
+ source: "source",
1352
+ stages: "stages",
1353
+ url: "url",
1354
+ usesFunctions: "uses_functions",
1355
+ })),
1356
+ Schema.Null,
1357
+ ]),
1358
+ name: Schema.String,
1359
+ previewScriptName: Schema.String,
1360
+ productionBranch: Schema.String,
1361
+ productionScriptName: Schema.String,
1362
+ usesFunctions: Schema.Union([Schema.Boolean, Schema.Null]),
1363
+ buildConfig: Schema.optional(Schema.Union([
1364
+ Schema.Struct({
1365
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1366
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1367
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1368
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1369
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1370
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1371
+ }).pipe(Schema.encodeKeys({
1372
+ webAnalyticsTag: "web_analytics_tag",
1373
+ webAnalyticsToken: "web_analytics_token",
1374
+ buildCaching: "build_caching",
1375
+ buildCommand: "build_command",
1376
+ destinationDir: "destination_dir",
1377
+ rootDir: "root_dir",
1378
+ })),
1379
+ Schema.Null,
1380
+ ])),
1381
+ domains: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1382
+ source: Schema.optional(Schema.Union([
1383
+ Schema.Struct({
1384
+ config: Schema.Struct({
1385
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1386
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1387
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1388
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1389
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1390
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1391
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1392
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1393
+ previewDeploymentSetting: Schema.optional(Schema.Union([
1394
+ Schema.Literals(["all", "none", "custom"]),
1395
+ Schema.Null,
1396
+ ])),
1397
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1398
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1399
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1400
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1401
+ }).pipe(Schema.encodeKeys({
1402
+ deploymentsEnabled: "deployments_enabled",
1403
+ owner: "owner",
1404
+ ownerId: "owner_id",
1405
+ pathExcludes: "path_excludes",
1406
+ pathIncludes: "path_includes",
1407
+ prCommentsEnabled: "pr_comments_enabled",
1408
+ previewBranchExcludes: "preview_branch_excludes",
1409
+ previewBranchIncludes: "preview_branch_includes",
1410
+ previewDeploymentSetting: "preview_deployment_setting",
1411
+ productionBranch: "production_branch",
1412
+ productionDeploymentsEnabled: "production_deployments_enabled",
1413
+ repoId: "repo_id",
1414
+ repoName: "repo_name",
1415
+ })),
1416
+ type: Schema.Literals(["github", "gitlab"]),
1417
+ }),
1418
+ Schema.Null,
1419
+ ])),
1420
+ subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1421
+ }).pipe(Schema.encodeKeys({
1422
+ id: "id",
1423
+ canonicalDeployment: "canonical_deployment",
1424
+ createdOn: "created_on",
1425
+ deploymentConfigs: "deployment_configs",
1426
+ framework: "framework",
1427
+ frameworkVersion: "framework_version",
1428
+ latestDeployment: "latest_deployment",
1429
+ name: "name",
1430
+ previewScriptName: "preview_script_name",
1431
+ productionBranch: "production_branch",
1432
+ productionScriptName: "production_script_name",
1433
+ usesFunctions: "uses_functions",
1434
+ buildConfig: "build_config",
1435
+ domains: "domains",
1436
+ source: "source",
1437
+ subdomain: "subdomain",
1438
+ }));
1439
+ export const createProject = API.make(() => ({
1440
+ input: CreateProjectRequest,
1441
+ output: CreateProjectResponse,
1442
+ errors: [],
1443
+ }));
1444
+ export const PatchProjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1445
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
1446
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1447
+ buildConfig: Schema.optional(Schema.Struct({
1448
+ buildCaching: Schema.optional(Schema.Boolean),
1449
+ buildCommand: Schema.optional(Schema.String),
1450
+ destinationDir: Schema.optional(Schema.String),
1451
+ rootDir: Schema.optional(Schema.String),
1452
+ webAnalyticsTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1453
+ webAnalyticsToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1454
+ }).pipe(Schema.encodeKeys({
1455
+ buildCaching: "build_caching",
1456
+ buildCommand: "build_command",
1457
+ destinationDir: "destination_dir",
1458
+ rootDir: "root_dir",
1459
+ webAnalyticsTag: "web_analytics_tag",
1460
+ webAnalyticsToken: "web_analytics_token",
1461
+ }))),
1462
+ deploymentConfigs: Schema.optional(Schema.Struct({
1463
+ preview: Schema.optional(Schema.Struct({
1464
+ aiBindings: Schema.optional(Schema.Struct({})),
1465
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Boolean),
1466
+ analyticsEngineDatasets: Schema.optional(Schema.Struct({})),
1467
+ browsers: Schema.optional(Schema.Struct({})),
1468
+ buildImageMajorVersion: Schema.optional(Schema.Number),
1469
+ compatibilityDate: Schema.optional(Schema.String),
1470
+ compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
1471
+ d1Databases: Schema.optional(Schema.Struct({})),
1472
+ durableObjectNamespaces: Schema.optional(Schema.Struct({})),
1473
+ envVars: Schema.optional(Schema.Struct({})),
1474
+ failOpen: Schema.optional(Schema.Boolean),
1475
+ hyperdriveBindings: Schema.optional(Schema.Struct({})),
1476
+ kvNamespaces: Schema.optional(Schema.Struct({})),
1477
+ limits: Schema.optional(Schema.Struct({
1478
+ cpuMs: Schema.Number,
1479
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" }))),
1480
+ mtlsCertificates: Schema.optional(Schema.Struct({})),
1481
+ placement: Schema.optional(Schema.Struct({
1482
+ mode: Schema.String,
1483
+ })),
1484
+ queueProducers: Schema.optional(Schema.Struct({})),
1485
+ r2Buckets: Schema.optional(Schema.Struct({})),
1486
+ services: Schema.optional(Schema.Struct({})),
1487
+ usageModel: Schema.optional(Schema.Literals(["standard", "bundled", "unbound"])),
1488
+ vectorizeBindings: Schema.optional(Schema.Struct({})),
1489
+ wranglerConfigHash: Schema.optional(Schema.String),
1490
+ }).pipe(Schema.encodeKeys({
1491
+ aiBindings: "ai_bindings",
1492
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
1493
+ analyticsEngineDatasets: "analytics_engine_datasets",
1494
+ browsers: "browsers",
1495
+ buildImageMajorVersion: "build_image_major_version",
1496
+ compatibilityDate: "compatibility_date",
1497
+ compatibilityFlags: "compatibility_flags",
1498
+ d1Databases: "d1_databases",
1499
+ durableObjectNamespaces: "durable_object_namespaces",
1500
+ envVars: "env_vars",
1501
+ failOpen: "fail_open",
1502
+ hyperdriveBindings: "hyperdrive_bindings",
1503
+ kvNamespaces: "kv_namespaces",
1504
+ limits: "limits",
1505
+ mtlsCertificates: "mtls_certificates",
1506
+ placement: "placement",
1507
+ queueProducers: "queue_producers",
1508
+ r2Buckets: "r2_buckets",
1509
+ services: "services",
1510
+ usageModel: "usage_model",
1511
+ vectorizeBindings: "vectorize_bindings",
1512
+ wranglerConfigHash: "wrangler_config_hash",
1513
+ }))),
1514
+ production: Schema.optional(Schema.Struct({
1515
+ aiBindings: Schema.optional(Schema.Struct({})),
1516
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Boolean),
1517
+ analyticsEngineDatasets: Schema.optional(Schema.Struct({})),
1518
+ browsers: Schema.optional(Schema.Struct({})),
1519
+ buildImageMajorVersion: Schema.optional(Schema.Number),
1520
+ compatibilityDate: Schema.optional(Schema.String),
1521
+ compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
1522
+ d1Databases: Schema.optional(Schema.Struct({})),
1523
+ durableObjectNamespaces: Schema.optional(Schema.Struct({})),
1524
+ envVars: Schema.optional(Schema.Struct({})),
1525
+ failOpen: Schema.optional(Schema.Boolean),
1526
+ hyperdriveBindings: Schema.optional(Schema.Struct({})),
1527
+ kvNamespaces: Schema.optional(Schema.Struct({})),
1528
+ limits: Schema.optional(Schema.Struct({
1529
+ cpuMs: Schema.Number,
1530
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" }))),
1531
+ mtlsCertificates: Schema.optional(Schema.Struct({})),
1532
+ placement: Schema.optional(Schema.Struct({
1533
+ mode: Schema.String,
1534
+ })),
1535
+ queueProducers: Schema.optional(Schema.Struct({})),
1536
+ r2Buckets: Schema.optional(Schema.Struct({})),
1537
+ services: Schema.optional(Schema.Struct({})),
1538
+ usageModel: Schema.optional(Schema.Literals(["standard", "bundled", "unbound"])),
1539
+ vectorizeBindings: Schema.optional(Schema.Struct({})),
1540
+ wranglerConfigHash: Schema.optional(Schema.String),
1541
+ }).pipe(Schema.encodeKeys({
1542
+ aiBindings: "ai_bindings",
1543
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
1544
+ analyticsEngineDatasets: "analytics_engine_datasets",
1545
+ browsers: "browsers",
1546
+ buildImageMajorVersion: "build_image_major_version",
1547
+ compatibilityDate: "compatibility_date",
1548
+ compatibilityFlags: "compatibility_flags",
1549
+ d1Databases: "d1_databases",
1550
+ durableObjectNamespaces: "durable_object_namespaces",
1551
+ envVars: "env_vars",
1552
+ failOpen: "fail_open",
1553
+ hyperdriveBindings: "hyperdrive_bindings",
1554
+ kvNamespaces: "kv_namespaces",
1555
+ limits: "limits",
1556
+ mtlsCertificates: "mtls_certificates",
1557
+ placement: "placement",
1558
+ queueProducers: "queue_producers",
1559
+ r2Buckets: "r2_buckets",
1560
+ services: "services",
1561
+ usageModel: "usage_model",
1562
+ vectorizeBindings: "vectorize_bindings",
1563
+ wranglerConfigHash: "wrangler_config_hash",
1564
+ }))),
1565
+ })),
1566
+ name: Schema.optional(Schema.String),
1567
+ productionBranch: Schema.optional(Schema.String),
1568
+ source: Schema.optional(Schema.Struct({
1569
+ config: Schema.Struct({
1570
+ deploymentsEnabled: Schema.optional(Schema.Boolean),
1571
+ owner: Schema.optional(Schema.String),
1572
+ ownerId: Schema.optional(Schema.String),
1573
+ pathExcludes: Schema.optional(Schema.Array(Schema.String)),
1574
+ pathIncludes: Schema.optional(Schema.Array(Schema.String)),
1575
+ prCommentsEnabled: Schema.optional(Schema.Boolean),
1576
+ previewBranchExcludes: Schema.optional(Schema.Array(Schema.String)),
1577
+ previewBranchIncludes: Schema.optional(Schema.Array(Schema.String)),
1578
+ previewDeploymentSetting: Schema.optional(Schema.Literals(["all", "none", "custom"])),
1579
+ productionBranch: Schema.optional(Schema.String),
1580
+ productionDeploymentsEnabled: Schema.optional(Schema.Boolean),
1581
+ repoId: Schema.optional(Schema.String),
1582
+ repoName: Schema.optional(Schema.String),
1583
+ }).pipe(Schema.encodeKeys({
1584
+ deploymentsEnabled: "deployments_enabled",
1585
+ owner: "owner",
1586
+ ownerId: "owner_id",
1587
+ pathExcludes: "path_excludes",
1588
+ pathIncludes: "path_includes",
1589
+ prCommentsEnabled: "pr_comments_enabled",
1590
+ previewBranchExcludes: "preview_branch_excludes",
1591
+ previewBranchIncludes: "preview_branch_includes",
1592
+ previewDeploymentSetting: "preview_deployment_setting",
1593
+ productionBranch: "production_branch",
1594
+ productionDeploymentsEnabled: "production_deployments_enabled",
1595
+ repoId: "repo_id",
1596
+ repoName: "repo_name",
1597
+ })),
1598
+ type: Schema.Literals(["github", "gitlab"]),
1599
+ })),
1600
+ }).pipe(Schema.encodeKeys({
1601
+ buildConfig: "build_config",
1602
+ deploymentConfigs: "deployment_configs",
1603
+ name: "name",
1604
+ productionBranch: "production_branch",
1605
+ source: "source",
1606
+ }), T.Http({
1607
+ method: "PATCH",
1608
+ path: "/accounts/{account_id}/pages/projects/{projectName}",
1609
+ }));
1610
+ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1611
+ id: Schema.String,
1612
+ canonicalDeployment: Schema.Union([
1613
+ Schema.Struct({
1614
+ id: Schema.String,
1615
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1616
+ buildConfig: Schema.Struct({
1617
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1618
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1619
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1620
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1621
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1622
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1623
+ }).pipe(Schema.encodeKeys({
1624
+ webAnalyticsTag: "web_analytics_tag",
1625
+ webAnalyticsToken: "web_analytics_token",
1626
+ buildCaching: "build_caching",
1627
+ buildCommand: "build_command",
1628
+ destinationDir: "destination_dir",
1629
+ rootDir: "root_dir",
1630
+ })),
1631
+ createdOn: Schema.String,
1632
+ deploymentTrigger: Schema.Struct({
1633
+ metadata: Schema.Struct({
1634
+ branch: Schema.String,
1635
+ commitDirty: Schema.Boolean,
1636
+ commitHash: Schema.String,
1637
+ commitMessage: Schema.String,
1638
+ }).pipe(Schema.encodeKeys({
1639
+ branch: "branch",
1640
+ commitDirty: "commit_dirty",
1641
+ commitHash: "commit_hash",
1642
+ commitMessage: "commit_message",
1643
+ })),
1644
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1645
+ }),
1646
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
1647
+ environment: Schema.Literals(["preview", "production"]),
1648
+ isSkipped: Schema.Boolean,
1649
+ latestStage: Schema.Unknown,
1650
+ modifiedOn: Schema.String,
1651
+ projectId: Schema.String,
1652
+ projectName: Schema.String,
1653
+ shortId: Schema.String,
1654
+ source: Schema.Struct({
1655
+ config: Schema.Struct({
1656
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1657
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1658
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1659
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1660
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1661
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1662
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1663
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1664
+ previewDeploymentSetting: Schema.optional(Schema.Union([
1665
+ Schema.Literals(["all", "none", "custom"]),
1666
+ Schema.Null,
1667
+ ])),
1668
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1669
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1670
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1671
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1672
+ }).pipe(Schema.encodeKeys({
1673
+ deploymentsEnabled: "deployments_enabled",
1674
+ owner: "owner",
1675
+ ownerId: "owner_id",
1676
+ pathExcludes: "path_excludes",
1677
+ pathIncludes: "path_includes",
1678
+ prCommentsEnabled: "pr_comments_enabled",
1679
+ previewBranchExcludes: "preview_branch_excludes",
1680
+ previewBranchIncludes: "preview_branch_includes",
1681
+ previewDeploymentSetting: "preview_deployment_setting",
1682
+ productionBranch: "production_branch",
1683
+ productionDeploymentsEnabled: "production_deployments_enabled",
1684
+ repoId: "repo_id",
1685
+ repoName: "repo_name",
1686
+ })),
1687
+ type: Schema.Literals(["github", "gitlab"]),
1688
+ }),
1689
+ stages: Schema.Array(Schema.Unknown),
1690
+ url: Schema.String,
1691
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1692
+ }).pipe(Schema.encodeKeys({
1693
+ id: "id",
1694
+ aliases: "aliases",
1695
+ buildConfig: "build_config",
1696
+ createdOn: "created_on",
1697
+ deploymentTrigger: "deployment_trigger",
1698
+ envVars: "env_vars",
1699
+ environment: "environment",
1700
+ isSkipped: "is_skipped",
1701
+ latestStage: "latest_stage",
1702
+ modifiedOn: "modified_on",
1703
+ projectId: "project_id",
1704
+ projectName: "project_name",
1705
+ shortId: "short_id",
1706
+ source: "source",
1707
+ stages: "stages",
1708
+ url: "url",
1709
+ usesFunctions: "uses_functions",
1710
+ })),
1711
+ Schema.Null,
1712
+ ]),
1713
+ createdOn: Schema.String,
1714
+ deploymentConfigs: Schema.Struct({
1715
+ preview: Schema.Struct({
1716
+ aiBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1717
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1718
+ analyticsEngineDatasets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1719
+ browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1720
+ buildImageMajorVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1721
+ compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1722
+ compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1723
+ d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1724
+ durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1725
+ envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1726
+ failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1727
+ hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1728
+ kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1729
+ limits: Schema.optional(Schema.Union([
1730
+ Schema.Struct({
1731
+ cpuMs: Schema.Number,
1732
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1733
+ Schema.Null,
1734
+ ])),
1735
+ mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1736
+ placement: Schema.optional(Schema.Union([
1737
+ Schema.Struct({
1738
+ mode: Schema.String,
1739
+ }),
1740
+ Schema.Null,
1741
+ ])),
1742
+ queueProducers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1743
+ r2Buckets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1744
+ services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1745
+ usageModel: Schema.optional(Schema.Union([
1746
+ Schema.Literals(["standard", "bundled", "unbound"]),
1747
+ Schema.Null,
1748
+ ])),
1749
+ vectorizeBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1750
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1751
+ }).pipe(Schema.encodeKeys({
1752
+ aiBindings: "ai_bindings",
1753
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
1754
+ analyticsEngineDatasets: "analytics_engine_datasets",
1755
+ browsers: "browsers",
1756
+ buildImageMajorVersion: "build_image_major_version",
1757
+ compatibilityDate: "compatibility_date",
1758
+ compatibilityFlags: "compatibility_flags",
1759
+ d1Databases: "d1_databases",
1760
+ durableObjectNamespaces: "durable_object_namespaces",
1761
+ envVars: "env_vars",
1762
+ failOpen: "fail_open",
1763
+ hyperdriveBindings: "hyperdrive_bindings",
1764
+ kvNamespaces: "kv_namespaces",
1765
+ limits: "limits",
1766
+ mtlsCertificates: "mtls_certificates",
1767
+ placement: "placement",
1768
+ queueProducers: "queue_producers",
1769
+ r2Buckets: "r2_buckets",
1770
+ services: "services",
1771
+ usageModel: "usage_model",
1772
+ vectorizeBindings: "vectorize_bindings",
1773
+ wranglerConfigHash: "wrangler_config_hash",
1774
+ })),
1775
+ production: Schema.Struct({
1776
+ aiBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1777
+ alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1778
+ analyticsEngineDatasets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1779
+ browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1780
+ buildImageMajorVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1781
+ compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1782
+ compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1783
+ d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1784
+ durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1785
+ envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1786
+ failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1787
+ hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1788
+ kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1789
+ limits: Schema.optional(Schema.Union([
1790
+ Schema.Struct({
1791
+ cpuMs: Schema.Number,
1792
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1793
+ Schema.Null,
1794
+ ])),
1795
+ mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1796
+ placement: Schema.optional(Schema.Union([
1797
+ Schema.Struct({
1798
+ mode: Schema.String,
1799
+ }),
1800
+ Schema.Null,
1801
+ ])),
1802
+ queueProducers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1803
+ r2Buckets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1804
+ services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1805
+ usageModel: Schema.optional(Schema.Union([
1806
+ Schema.Literals(["standard", "bundled", "unbound"]),
1807
+ Schema.Null,
1808
+ ])),
1809
+ vectorizeBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1810
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1811
+ }).pipe(Schema.encodeKeys({
1812
+ aiBindings: "ai_bindings",
1813
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
1814
+ analyticsEngineDatasets: "analytics_engine_datasets",
1815
+ browsers: "browsers",
1816
+ buildImageMajorVersion: "build_image_major_version",
1817
+ compatibilityDate: "compatibility_date",
1818
+ compatibilityFlags: "compatibility_flags",
1819
+ d1Databases: "d1_databases",
1820
+ durableObjectNamespaces: "durable_object_namespaces",
1821
+ envVars: "env_vars",
1822
+ failOpen: "fail_open",
1823
+ hyperdriveBindings: "hyperdrive_bindings",
1824
+ kvNamespaces: "kv_namespaces",
1825
+ limits: "limits",
1826
+ mtlsCertificates: "mtls_certificates",
1827
+ placement: "placement",
1828
+ queueProducers: "queue_producers",
1829
+ r2Buckets: "r2_buckets",
1830
+ services: "services",
1831
+ usageModel: "usage_model",
1832
+ vectorizeBindings: "vectorize_bindings",
1833
+ wranglerConfigHash: "wrangler_config_hash",
1834
+ })),
1835
+ }),
1836
+ framework: Schema.String,
1837
+ frameworkVersion: Schema.String,
1838
+ latestDeployment: Schema.Union([
1839
+ Schema.Struct({
1840
+ id: Schema.String,
1841
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1842
+ buildConfig: Schema.Struct({
1843
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1844
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1845
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1846
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1847
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1848
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1849
+ }).pipe(Schema.encodeKeys({
1850
+ webAnalyticsTag: "web_analytics_tag",
1851
+ webAnalyticsToken: "web_analytics_token",
1852
+ buildCaching: "build_caching",
1853
+ buildCommand: "build_command",
1854
+ destinationDir: "destination_dir",
1855
+ rootDir: "root_dir",
1856
+ })),
1857
+ createdOn: Schema.String,
1858
+ deploymentTrigger: Schema.Struct({
1859
+ metadata: Schema.Struct({
1860
+ branch: Schema.String,
1861
+ commitDirty: Schema.Boolean,
1862
+ commitHash: Schema.String,
1863
+ commitMessage: Schema.String,
1864
+ }).pipe(Schema.encodeKeys({
1865
+ branch: "branch",
1866
+ commitDirty: "commit_dirty",
1867
+ commitHash: "commit_hash",
1868
+ commitMessage: "commit_message",
1869
+ })),
1870
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1871
+ }),
1872
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
1873
+ environment: Schema.Literals(["preview", "production"]),
1874
+ isSkipped: Schema.Boolean,
1875
+ latestStage: Schema.Unknown,
1876
+ modifiedOn: Schema.String,
1877
+ projectId: Schema.String,
1878
+ projectName: Schema.String,
1879
+ shortId: Schema.String,
1880
+ source: Schema.Struct({
1881
+ config: Schema.Struct({
1882
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1883
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1884
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1885
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1886
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1887
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1888
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1889
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1890
+ previewDeploymentSetting: Schema.optional(Schema.Union([
1891
+ Schema.Literals(["all", "none", "custom"]),
1892
+ Schema.Null,
1893
+ ])),
1894
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1895
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1896
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1897
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1898
+ }).pipe(Schema.encodeKeys({
1899
+ deploymentsEnabled: "deployments_enabled",
1900
+ owner: "owner",
1901
+ ownerId: "owner_id",
1902
+ pathExcludes: "path_excludes",
1903
+ pathIncludes: "path_includes",
1904
+ prCommentsEnabled: "pr_comments_enabled",
1905
+ previewBranchExcludes: "preview_branch_excludes",
1906
+ previewBranchIncludes: "preview_branch_includes",
1907
+ previewDeploymentSetting: "preview_deployment_setting",
1908
+ productionBranch: "production_branch",
1909
+ productionDeploymentsEnabled: "production_deployments_enabled",
1910
+ repoId: "repo_id",
1911
+ repoName: "repo_name",
1912
+ })),
1913
+ type: Schema.Literals(["github", "gitlab"]),
1914
+ }),
1915
+ stages: Schema.Array(Schema.Unknown),
1916
+ url: Schema.String,
1917
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1918
+ }).pipe(Schema.encodeKeys({
1919
+ id: "id",
1920
+ aliases: "aliases",
1921
+ buildConfig: "build_config",
1922
+ createdOn: "created_on",
1923
+ deploymentTrigger: "deployment_trigger",
1924
+ envVars: "env_vars",
1925
+ environment: "environment",
1926
+ isSkipped: "is_skipped",
1927
+ latestStage: "latest_stage",
1928
+ modifiedOn: "modified_on",
1929
+ projectId: "project_id",
1930
+ projectName: "project_name",
1931
+ shortId: "short_id",
1932
+ source: "source",
1933
+ stages: "stages",
1934
+ url: "url",
1935
+ usesFunctions: "uses_functions",
1936
+ })),
1937
+ Schema.Null,
1938
+ ]),
1939
+ name: Schema.String,
1940
+ previewScriptName: Schema.String,
1941
+ productionBranch: Schema.String,
1942
+ productionScriptName: Schema.String,
1943
+ usesFunctions: Schema.Union([Schema.Boolean, Schema.Null]),
1944
+ buildConfig: Schema.optional(Schema.Union([
1945
+ Schema.Struct({
1946
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1947
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1948
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1949
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1950
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1951
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1952
+ }).pipe(Schema.encodeKeys({
1953
+ webAnalyticsTag: "web_analytics_tag",
1954
+ webAnalyticsToken: "web_analytics_token",
1955
+ buildCaching: "build_caching",
1956
+ buildCommand: "build_command",
1957
+ destinationDir: "destination_dir",
1958
+ rootDir: "root_dir",
1959
+ })),
1960
+ Schema.Null,
1961
+ ])),
1962
+ domains: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1963
+ source: Schema.optional(Schema.Union([
1964
+ Schema.Struct({
1965
+ config: Schema.Struct({
1966
+ deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1967
+ owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1968
+ ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1969
+ pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1970
+ pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1971
+ prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1972
+ previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1973
+ previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1974
+ previewDeploymentSetting: Schema.optional(Schema.Union([
1975
+ Schema.Literals(["all", "none", "custom"]),
1976
+ Schema.Null,
1977
+ ])),
1978
+ productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1979
+ productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1980
+ repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1981
+ repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1982
+ }).pipe(Schema.encodeKeys({
1983
+ deploymentsEnabled: "deployments_enabled",
1984
+ owner: "owner",
1985
+ ownerId: "owner_id",
1986
+ pathExcludes: "path_excludes",
1987
+ pathIncludes: "path_includes",
1988
+ prCommentsEnabled: "pr_comments_enabled",
1989
+ previewBranchExcludes: "preview_branch_excludes",
1990
+ previewBranchIncludes: "preview_branch_includes",
1991
+ previewDeploymentSetting: "preview_deployment_setting",
1992
+ productionBranch: "production_branch",
1993
+ productionDeploymentsEnabled: "production_deployments_enabled",
1994
+ repoId: "repo_id",
1995
+ repoName: "repo_name",
1996
+ })),
1997
+ type: Schema.Literals(["github", "gitlab"]),
1998
+ }),
1999
+ Schema.Null,
2000
+ ])),
2001
+ subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2002
+ }).pipe(Schema.encodeKeys({
2003
+ id: "id",
2004
+ canonicalDeployment: "canonical_deployment",
2005
+ createdOn: "created_on",
2006
+ deploymentConfigs: "deployment_configs",
2007
+ framework: "framework",
2008
+ frameworkVersion: "framework_version",
2009
+ latestDeployment: "latest_deployment",
2010
+ name: "name",
2011
+ previewScriptName: "preview_script_name",
2012
+ productionBranch: "production_branch",
2013
+ productionScriptName: "production_script_name",
2014
+ usesFunctions: "uses_functions",
2015
+ buildConfig: "build_config",
2016
+ domains: "domains",
2017
+ source: "source",
2018
+ subdomain: "subdomain",
2019
+ }));
2020
+ export const patchProject = API.make(() => ({
2021
+ input: PatchProjectRequest,
2022
+ output: PatchProjectResponse,
2023
+ errors: [],
2024
+ }));
2025
+ export const DeleteProjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2026
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2027
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2028
+ }).pipe(T.Http({
2029
+ method: "DELETE",
2030
+ path: "/accounts/{account_id}/pages/projects/{projectName}",
2031
+ }));
2032
+ export const DeleteProjectResponse =
2033
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
2034
+ export const deleteProject = API.make(() => ({
2035
+ input: DeleteProjectRequest,
2036
+ output: DeleteProjectResponse,
2037
+ errors: [],
2038
+ }));
2039
+ export const GetProjectDeploymentRequest =
2040
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2041
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2042
+ deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
2043
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2044
+ }).pipe(T.Http({
2045
+ method: "GET",
2046
+ path: "/accounts/{account_id}/pages/projects/{projectName}/deployments/{deploymentId}",
2047
+ }));
2048
+ export const GetProjectDeploymentResponse =
2049
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2050
+ id: Schema.String,
2051
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2052
+ buildConfig: Schema.Struct({
2053
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
2054
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
2055
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2056
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2057
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2058
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2059
+ }).pipe(Schema.encodeKeys({
2060
+ webAnalyticsTag: "web_analytics_tag",
2061
+ webAnalyticsToken: "web_analytics_token",
2062
+ buildCaching: "build_caching",
2063
+ buildCommand: "build_command",
2064
+ destinationDir: "destination_dir",
2065
+ rootDir: "root_dir",
2066
+ })),
2067
+ createdOn: Schema.String,
2068
+ deploymentTrigger: Schema.Struct({
2069
+ metadata: Schema.Struct({
2070
+ branch: Schema.String,
2071
+ commitDirty: Schema.Boolean,
2072
+ commitHash: Schema.String,
2073
+ commitMessage: Schema.String,
2074
+ }).pipe(Schema.encodeKeys({
2075
+ branch: "branch",
2076
+ commitDirty: "commit_dirty",
2077
+ commitHash: "commit_hash",
2078
+ commitMessage: "commit_message",
2079
+ })),
2080
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
2081
+ }),
2082
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
2083
+ environment: Schema.Literals(["preview", "production"]),
2084
+ isSkipped: Schema.Boolean,
2085
+ latestStage: Schema.Unknown,
2086
+ modifiedOn: Schema.String,
2087
+ projectId: Schema.String,
2088
+ projectName: Schema.String,
2089
+ shortId: Schema.String,
2090
+ source: Schema.Struct({
2091
+ config: Schema.Struct({
2092
+ deploymentsEnabled: Schema.Boolean,
2093
+ owner: Schema.String,
2094
+ ownerId: Schema.String,
2095
+ pathExcludes: Schema.Array(Schema.String),
2096
+ pathIncludes: Schema.Array(Schema.String),
2097
+ prCommentsEnabled: Schema.Boolean,
2098
+ previewBranchExcludes: Schema.Array(Schema.String),
2099
+ previewBranchIncludes: Schema.Array(Schema.String),
2100
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
2101
+ productionBranch: Schema.String,
2102
+ productionDeploymentsEnabled: Schema.Boolean,
2103
+ repoId: Schema.String,
2104
+ repoName: Schema.String,
2105
+ }).pipe(Schema.encodeKeys({
2106
+ deploymentsEnabled: "deployments_enabled",
2107
+ owner: "owner",
2108
+ ownerId: "owner_id",
2109
+ pathExcludes: "path_excludes",
2110
+ pathIncludes: "path_includes",
2111
+ prCommentsEnabled: "pr_comments_enabled",
2112
+ previewBranchExcludes: "preview_branch_excludes",
2113
+ previewBranchIncludes: "preview_branch_includes",
2114
+ previewDeploymentSetting: "preview_deployment_setting",
2115
+ productionBranch: "production_branch",
2116
+ productionDeploymentsEnabled: "production_deployments_enabled",
2117
+ repoId: "repo_id",
2118
+ repoName: "repo_name",
2119
+ })),
2120
+ type: Schema.Literals(["github", "gitlab"]),
2121
+ }),
2122
+ stages: Schema.Array(Schema.Unknown),
2123
+ url: Schema.String,
2124
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2125
+ }).pipe(Schema.encodeKeys({
2126
+ id: "id",
2127
+ aliases: "aliases",
2128
+ buildConfig: "build_config",
2129
+ createdOn: "created_on",
2130
+ deploymentTrigger: "deployment_trigger",
2131
+ envVars: "env_vars",
2132
+ environment: "environment",
2133
+ isSkipped: "is_skipped",
2134
+ latestStage: "latest_stage",
2135
+ modifiedOn: "modified_on",
2136
+ projectId: "project_id",
2137
+ projectName: "project_name",
2138
+ shortId: "short_id",
2139
+ source: "source",
2140
+ stages: "stages",
2141
+ url: "url",
2142
+ usesFunctions: "uses_functions",
2143
+ }));
2144
+ export const getProjectDeployment = API.make(() => ({
2145
+ input: GetProjectDeploymentRequest,
2146
+ output: GetProjectDeploymentResponse,
2147
+ errors: [],
2148
+ }));
2149
+ export const ListProjectDeploymentsRequest =
2150
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2151
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2152
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2153
+ env: Schema.optional(Schema.Literals(["production", "preview"])).pipe(T.HttpQuery("env")),
2154
+ }).pipe(T.Http({
2155
+ method: "GET",
2156
+ path: "/accounts/{account_id}/pages/projects/{projectName}/deployments",
2157
+ }));
2158
+ export const ListProjectDeploymentsResponse =
2159
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2160
+ id: Schema.String,
2161
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2162
+ buildConfig: Schema.Struct({
2163
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
2164
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
2165
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2166
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2167
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2168
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2169
+ }).pipe(Schema.encodeKeys({
2170
+ webAnalyticsTag: "web_analytics_tag",
2171
+ webAnalyticsToken: "web_analytics_token",
2172
+ buildCaching: "build_caching",
2173
+ buildCommand: "build_command",
2174
+ destinationDir: "destination_dir",
2175
+ rootDir: "root_dir",
2176
+ })),
2177
+ createdOn: Schema.String,
2178
+ deploymentTrigger: Schema.Struct({
2179
+ metadata: Schema.Struct({
2180
+ branch: Schema.String,
2181
+ commitDirty: Schema.Boolean,
2182
+ commitHash: Schema.String,
2183
+ commitMessage: Schema.String,
2184
+ }).pipe(Schema.encodeKeys({
2185
+ branch: "branch",
2186
+ commitDirty: "commit_dirty",
2187
+ commitHash: "commit_hash",
2188
+ commitMessage: "commit_message",
2189
+ })),
2190
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
2191
+ }),
2192
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
2193
+ environment: Schema.Literals(["preview", "production"]),
2194
+ isSkipped: Schema.Boolean,
2195
+ latestStage: Schema.Unknown,
2196
+ modifiedOn: Schema.String,
2197
+ projectId: Schema.String,
2198
+ projectName: Schema.String,
2199
+ shortId: Schema.String,
2200
+ source: Schema.Struct({
2201
+ config: Schema.Struct({
2202
+ deploymentsEnabled: Schema.Boolean,
2203
+ owner: Schema.String,
2204
+ ownerId: Schema.String,
2205
+ pathExcludes: Schema.Array(Schema.String),
2206
+ pathIncludes: Schema.Array(Schema.String),
2207
+ prCommentsEnabled: Schema.Boolean,
2208
+ previewBranchExcludes: Schema.Array(Schema.String),
2209
+ previewBranchIncludes: Schema.Array(Schema.String),
2210
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
2211
+ productionBranch: Schema.String,
2212
+ productionDeploymentsEnabled: Schema.Boolean,
2213
+ repoId: Schema.String,
2214
+ repoName: Schema.String,
2215
+ }).pipe(Schema.encodeKeys({
2216
+ deploymentsEnabled: "deployments_enabled",
2217
+ owner: "owner",
2218
+ ownerId: "owner_id",
2219
+ pathExcludes: "path_excludes",
2220
+ pathIncludes: "path_includes",
2221
+ prCommentsEnabled: "pr_comments_enabled",
2222
+ previewBranchExcludes: "preview_branch_excludes",
2223
+ previewBranchIncludes: "preview_branch_includes",
2224
+ previewDeploymentSetting: "preview_deployment_setting",
2225
+ productionBranch: "production_branch",
2226
+ productionDeploymentsEnabled: "production_deployments_enabled",
2227
+ repoId: "repo_id",
2228
+ repoName: "repo_name",
2229
+ })),
2230
+ type: Schema.Literals(["github", "gitlab"]),
2231
+ }),
2232
+ stages: Schema.Array(Schema.Unknown),
2233
+ url: Schema.String,
2234
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2235
+ }).pipe(Schema.encodeKeys({
2236
+ id: "id",
2237
+ aliases: "aliases",
2238
+ buildConfig: "build_config",
2239
+ createdOn: "created_on",
2240
+ deploymentTrigger: "deployment_trigger",
2241
+ envVars: "env_vars",
2242
+ environment: "environment",
2243
+ isSkipped: "is_skipped",
2244
+ latestStage: "latest_stage",
2245
+ modifiedOn: "modified_on",
2246
+ projectId: "project_id",
2247
+ projectName: "project_name",
2248
+ shortId: "short_id",
2249
+ source: "source",
2250
+ stages: "stages",
2251
+ url: "url",
2252
+ usesFunctions: "uses_functions",
2253
+ })));
2254
+ export const listProjectDeployments = API.make(() => ({
2255
+ input: ListProjectDeploymentsRequest,
2256
+ output: ListProjectDeploymentsResponse,
2257
+ errors: [],
2258
+ }));
2259
+ export const CreateProjectDeploymentRequest =
2260
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2261
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2262
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2263
+ headers: Schema.optional(UploadableSchema.pipe(T.HttpFormDataFile())),
2264
+ redirects: Schema.optional(UploadableSchema.pipe(T.HttpFormDataFile())),
2265
+ routesJson: Schema.optional(UploadableSchema.pipe(T.HttpFormDataFile())),
2266
+ workerBundle: Schema.optional(UploadableSchema.pipe(T.HttpFormDataFile())),
2267
+ workerJs: Schema.optional(UploadableSchema.pipe(T.HttpFormDataFile())),
2268
+ branch: Schema.optional(Schema.String),
2269
+ commitDirty: Schema.optional(Schema.Literals([true, false])),
2270
+ commitHash: Schema.optional(Schema.String),
2271
+ commitMessage: Schema.optional(Schema.String),
2272
+ functionsFilepathRoutingConfigJson: Schema.optional(UploadableSchema.pipe(T.HttpFormDataFile())),
2273
+ manifest: Schema.optional(Schema.String),
2274
+ pagesBuildOutputDir: Schema.optional(Schema.String),
2275
+ wranglerConfigHash: Schema.optional(Schema.String),
2276
+ }).pipe(Schema.encodeKeys({
2277
+ headers: "_headers",
2278
+ redirects: "_redirects",
2279
+ routesJson: "_routes.json",
2280
+ workerBundle: "_worker.bundle",
2281
+ workerJs: "_worker.js",
2282
+ branch: "branch",
2283
+ commitDirty: "commit_dirty",
2284
+ commitHash: "commit_hash",
2285
+ commitMessage: "commit_message",
2286
+ functionsFilepathRoutingConfigJson: "functions-filepath-routing-config.json",
2287
+ manifest: "manifest",
2288
+ pagesBuildOutputDir: "pages_build_output_dir",
2289
+ wranglerConfigHash: "wrangler_config_hash",
2290
+ }), T.Http({
2291
+ method: "POST",
2292
+ path: "/accounts/{account_id}/pages/projects/{projectName}/deployments",
2293
+ contentType: "multipart",
2294
+ }));
2295
+ export const CreateProjectDeploymentResponse =
2296
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2297
+ id: Schema.String,
2298
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2299
+ buildConfig: Schema.Struct({
2300
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
2301
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
2302
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2303
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2304
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2305
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2306
+ }).pipe(Schema.encodeKeys({
2307
+ webAnalyticsTag: "web_analytics_tag",
2308
+ webAnalyticsToken: "web_analytics_token",
2309
+ buildCaching: "build_caching",
2310
+ buildCommand: "build_command",
2311
+ destinationDir: "destination_dir",
2312
+ rootDir: "root_dir",
2313
+ })),
2314
+ createdOn: Schema.String,
2315
+ deploymentTrigger: Schema.Struct({
2316
+ metadata: Schema.Struct({
2317
+ branch: Schema.String,
2318
+ commitDirty: Schema.Boolean,
2319
+ commitHash: Schema.String,
2320
+ commitMessage: Schema.String,
2321
+ }).pipe(Schema.encodeKeys({
2322
+ branch: "branch",
2323
+ commitDirty: "commit_dirty",
2324
+ commitHash: "commit_hash",
2325
+ commitMessage: "commit_message",
2326
+ })),
2327
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
2328
+ }),
2329
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
2330
+ environment: Schema.Literals(["preview", "production"]),
2331
+ isSkipped: Schema.Boolean,
2332
+ latestStage: Schema.Unknown,
2333
+ modifiedOn: Schema.String,
2334
+ projectId: Schema.String,
2335
+ projectName: Schema.String,
2336
+ shortId: Schema.String,
2337
+ source: Schema.Struct({
2338
+ config: Schema.Struct({
2339
+ deploymentsEnabled: Schema.Boolean,
2340
+ owner: Schema.String,
2341
+ ownerId: Schema.String,
2342
+ pathExcludes: Schema.Array(Schema.String),
2343
+ pathIncludes: Schema.Array(Schema.String),
2344
+ prCommentsEnabled: Schema.Boolean,
2345
+ previewBranchExcludes: Schema.Array(Schema.String),
2346
+ previewBranchIncludes: Schema.Array(Schema.String),
2347
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
2348
+ productionBranch: Schema.String,
2349
+ productionDeploymentsEnabled: Schema.Boolean,
2350
+ repoId: Schema.String,
2351
+ repoName: Schema.String,
2352
+ }).pipe(Schema.encodeKeys({
2353
+ deploymentsEnabled: "deployments_enabled",
2354
+ owner: "owner",
2355
+ ownerId: "owner_id",
2356
+ pathExcludes: "path_excludes",
2357
+ pathIncludes: "path_includes",
2358
+ prCommentsEnabled: "pr_comments_enabled",
2359
+ previewBranchExcludes: "preview_branch_excludes",
2360
+ previewBranchIncludes: "preview_branch_includes",
2361
+ previewDeploymentSetting: "preview_deployment_setting",
2362
+ productionBranch: "production_branch",
2363
+ productionDeploymentsEnabled: "production_deployments_enabled",
2364
+ repoId: "repo_id",
2365
+ repoName: "repo_name",
2366
+ })),
2367
+ type: Schema.Literals(["github", "gitlab"]),
2368
+ }),
2369
+ stages: Schema.Array(Schema.Unknown),
2370
+ url: Schema.String,
2371
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2372
+ }).pipe(Schema.encodeKeys({
2373
+ id: "id",
2374
+ aliases: "aliases",
2375
+ buildConfig: "build_config",
2376
+ createdOn: "created_on",
2377
+ deploymentTrigger: "deployment_trigger",
2378
+ envVars: "env_vars",
2379
+ environment: "environment",
2380
+ isSkipped: "is_skipped",
2381
+ latestStage: "latest_stage",
2382
+ modifiedOn: "modified_on",
2383
+ projectId: "project_id",
2384
+ projectName: "project_name",
2385
+ shortId: "short_id",
2386
+ source: "source",
2387
+ stages: "stages",
2388
+ url: "url",
2389
+ usesFunctions: "uses_functions",
2390
+ }));
2391
+ export const createProjectDeployment = API.make(() => ({
2392
+ input: CreateProjectDeploymentRequest,
2393
+ output: CreateProjectDeploymentResponse,
2394
+ errors: [],
2395
+ }));
2396
+ export const DeleteProjectDeploymentRequest =
2397
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2398
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2399
+ deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
2400
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2401
+ }).pipe(T.Http({
2402
+ method: "DELETE",
2403
+ path: "/accounts/{account_id}/pages/projects/{projectName}/deployments/{deploymentId}",
2404
+ }));
2405
+ export const DeleteProjectDeploymentResponse =
2406
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
2407
+ export const deleteProjectDeployment = API.make(() => ({
2408
+ input: DeleteProjectDeploymentRequest,
2409
+ output: DeleteProjectDeploymentResponse,
2410
+ errors: [],
2411
+ }));
2412
+ export const RetryProjectDeploymentRequest =
2413
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2414
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2415
+ deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
2416
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2417
+ }).pipe(T.Http({
2418
+ method: "POST",
2419
+ path: "/accounts/{account_id}/pages/projects/{projectName}/deployments/{deploymentId}/retry",
2420
+ }));
2421
+ export const RetryProjectDeploymentResponse =
2422
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2423
+ id: Schema.String,
2424
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2425
+ buildConfig: Schema.Struct({
2426
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
2427
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
2428
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2429
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2430
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2431
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2432
+ }).pipe(Schema.encodeKeys({
2433
+ webAnalyticsTag: "web_analytics_tag",
2434
+ webAnalyticsToken: "web_analytics_token",
2435
+ buildCaching: "build_caching",
2436
+ buildCommand: "build_command",
2437
+ destinationDir: "destination_dir",
2438
+ rootDir: "root_dir",
2439
+ })),
2440
+ createdOn: Schema.String,
2441
+ deploymentTrigger: Schema.Struct({
2442
+ metadata: Schema.Struct({
2443
+ branch: Schema.String,
2444
+ commitDirty: Schema.Boolean,
2445
+ commitHash: Schema.String,
2446
+ commitMessage: Schema.String,
2447
+ }).pipe(Schema.encodeKeys({
2448
+ branch: "branch",
2449
+ commitDirty: "commit_dirty",
2450
+ commitHash: "commit_hash",
2451
+ commitMessage: "commit_message",
2452
+ })),
2453
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
2454
+ }),
2455
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
2456
+ environment: Schema.Literals(["preview", "production"]),
2457
+ isSkipped: Schema.Boolean,
2458
+ latestStage: Schema.Unknown,
2459
+ modifiedOn: Schema.String,
2460
+ projectId: Schema.String,
2461
+ projectName: Schema.String,
2462
+ shortId: Schema.String,
2463
+ source: Schema.Struct({
2464
+ config: Schema.Struct({
2465
+ deploymentsEnabled: Schema.Boolean,
2466
+ owner: Schema.String,
2467
+ ownerId: Schema.String,
2468
+ pathExcludes: Schema.Array(Schema.String),
2469
+ pathIncludes: Schema.Array(Schema.String),
2470
+ prCommentsEnabled: Schema.Boolean,
2471
+ previewBranchExcludes: Schema.Array(Schema.String),
2472
+ previewBranchIncludes: Schema.Array(Schema.String),
2473
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
2474
+ productionBranch: Schema.String,
2475
+ productionDeploymentsEnabled: Schema.Boolean,
2476
+ repoId: Schema.String,
2477
+ repoName: Schema.String,
2478
+ }).pipe(Schema.encodeKeys({
2479
+ deploymentsEnabled: "deployments_enabled",
2480
+ owner: "owner",
2481
+ ownerId: "owner_id",
2482
+ pathExcludes: "path_excludes",
2483
+ pathIncludes: "path_includes",
2484
+ prCommentsEnabled: "pr_comments_enabled",
2485
+ previewBranchExcludes: "preview_branch_excludes",
2486
+ previewBranchIncludes: "preview_branch_includes",
2487
+ previewDeploymentSetting: "preview_deployment_setting",
2488
+ productionBranch: "production_branch",
2489
+ productionDeploymentsEnabled: "production_deployments_enabled",
2490
+ repoId: "repo_id",
2491
+ repoName: "repo_name",
2492
+ })),
2493
+ type: Schema.Literals(["github", "gitlab"]),
2494
+ }),
2495
+ stages: Schema.Array(Schema.Unknown),
2496
+ url: Schema.String,
2497
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2498
+ }).pipe(Schema.encodeKeys({
2499
+ id: "id",
2500
+ aliases: "aliases",
2501
+ buildConfig: "build_config",
2502
+ createdOn: "created_on",
2503
+ deploymentTrigger: "deployment_trigger",
2504
+ envVars: "env_vars",
2505
+ environment: "environment",
2506
+ isSkipped: "is_skipped",
2507
+ latestStage: "latest_stage",
2508
+ modifiedOn: "modified_on",
2509
+ projectId: "project_id",
2510
+ projectName: "project_name",
2511
+ shortId: "short_id",
2512
+ source: "source",
2513
+ stages: "stages",
2514
+ url: "url",
2515
+ usesFunctions: "uses_functions",
2516
+ }));
2517
+ export const retryProjectDeployment = API.make(() => ({
2518
+ input: RetryProjectDeploymentRequest,
2519
+ output: RetryProjectDeploymentResponse,
2520
+ errors: [],
2521
+ }));
2522
+ export const RollbackProjectDeploymentRequest =
2523
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2524
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2525
+ deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
2526
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2527
+ }).pipe(T.Http({
2528
+ method: "POST",
2529
+ path: "/accounts/{account_id}/pages/projects/{projectName}/deployments/{deploymentId}/rollback",
2530
+ }));
2531
+ export const RollbackProjectDeploymentResponse =
2532
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2533
+ id: Schema.String,
2534
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2535
+ buildConfig: Schema.Struct({
2536
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
2537
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
2538
+ buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2539
+ buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2540
+ destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2541
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2542
+ }).pipe(Schema.encodeKeys({
2543
+ webAnalyticsTag: "web_analytics_tag",
2544
+ webAnalyticsToken: "web_analytics_token",
2545
+ buildCaching: "build_caching",
2546
+ buildCommand: "build_command",
2547
+ destinationDir: "destination_dir",
2548
+ rootDir: "root_dir",
2549
+ })),
2550
+ createdOn: Schema.String,
2551
+ deploymentTrigger: Schema.Struct({
2552
+ metadata: Schema.Struct({
2553
+ branch: Schema.String,
2554
+ commitDirty: Schema.Boolean,
2555
+ commitHash: Schema.String,
2556
+ commitMessage: Schema.String,
2557
+ }).pipe(Schema.encodeKeys({
2558
+ branch: "branch",
2559
+ commitDirty: "commit_dirty",
2560
+ commitHash: "commit_hash",
2561
+ commitMessage: "commit_message",
2562
+ })),
2563
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
2564
+ }),
2565
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
2566
+ environment: Schema.Literals(["preview", "production"]),
2567
+ isSkipped: Schema.Boolean,
2568
+ latestStage: Schema.Unknown,
2569
+ modifiedOn: Schema.String,
2570
+ projectId: Schema.String,
2571
+ projectName: Schema.String,
2572
+ shortId: Schema.String,
2573
+ source: Schema.Struct({
2574
+ config: Schema.Struct({
2575
+ deploymentsEnabled: Schema.Boolean,
2576
+ owner: Schema.String,
2577
+ ownerId: Schema.String,
2578
+ pathExcludes: Schema.Array(Schema.String),
2579
+ pathIncludes: Schema.Array(Schema.String),
2580
+ prCommentsEnabled: Schema.Boolean,
2581
+ previewBranchExcludes: Schema.Array(Schema.String),
2582
+ previewBranchIncludes: Schema.Array(Schema.String),
2583
+ previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
2584
+ productionBranch: Schema.String,
2585
+ productionDeploymentsEnabled: Schema.Boolean,
2586
+ repoId: Schema.String,
2587
+ repoName: Schema.String,
2588
+ }).pipe(Schema.encodeKeys({
2589
+ deploymentsEnabled: "deployments_enabled",
2590
+ owner: "owner",
2591
+ ownerId: "owner_id",
2592
+ pathExcludes: "path_excludes",
2593
+ pathIncludes: "path_includes",
2594
+ prCommentsEnabled: "pr_comments_enabled",
2595
+ previewBranchExcludes: "preview_branch_excludes",
2596
+ previewBranchIncludes: "preview_branch_includes",
2597
+ previewDeploymentSetting: "preview_deployment_setting",
2598
+ productionBranch: "production_branch",
2599
+ productionDeploymentsEnabled: "production_deployments_enabled",
2600
+ repoId: "repo_id",
2601
+ repoName: "repo_name",
2602
+ })),
2603
+ type: Schema.Literals(["github", "gitlab"]),
2604
+ }),
2605
+ stages: Schema.Array(Schema.Unknown),
2606
+ url: Schema.String,
2607
+ usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2608
+ }).pipe(Schema.encodeKeys({
2609
+ id: "id",
2610
+ aliases: "aliases",
2611
+ buildConfig: "build_config",
2612
+ createdOn: "created_on",
2613
+ deploymentTrigger: "deployment_trigger",
2614
+ envVars: "env_vars",
2615
+ environment: "environment",
2616
+ isSkipped: "is_skipped",
2617
+ latestStage: "latest_stage",
2618
+ modifiedOn: "modified_on",
2619
+ projectId: "project_id",
2620
+ projectName: "project_name",
2621
+ shortId: "short_id",
2622
+ source: "source",
2623
+ stages: "stages",
2624
+ url: "url",
2625
+ usesFunctions: "uses_functions",
2626
+ }));
2627
+ export const rollbackProjectDeployment = API.make(() => ({
2628
+ input: RollbackProjectDeploymentRequest,
2629
+ output: RollbackProjectDeploymentResponse,
2630
+ errors: [],
2631
+ }));
2632
+ export const GetProjectDeploymentHistoryLogRequest =
2633
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2634
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2635
+ deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
2636
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2637
+ }).pipe(T.Http({
2638
+ method: "GET",
2639
+ path: "/accounts/{account_id}/pages/projects/{projectName}/deployments/{deploymentId}/history/logs",
2640
+ }));
2641
+ export const GetProjectDeploymentHistoryLogResponse =
2642
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2643
+ data: Schema.Array(Schema.Struct({
2644
+ line: Schema.String,
2645
+ ts: Schema.String,
2646
+ })),
2647
+ includesContainerLogs: Schema.Boolean,
2648
+ total: Schema.Number,
2649
+ }).pipe(Schema.encodeKeys({
2650
+ data: "data",
2651
+ includesContainerLogs: "includes_container_logs",
2652
+ total: "total",
2653
+ }));
2654
+ export const getProjectDeploymentHistoryLog = API.make(() => ({
2655
+ input: GetProjectDeploymentHistoryLogRequest,
2656
+ output: GetProjectDeploymentHistoryLogResponse,
2657
+ errors: [],
2658
+ }));
2659
+ export const GetProjectDomainRequest =
2660
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2661
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2662
+ domainName: Schema.String.pipe(T.HttpPath("domainName")),
2663
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2664
+ }).pipe(T.Http({
2665
+ method: "GET",
2666
+ path: "/accounts/{account_id}/pages/projects/{projectName}/domains/{domainName}",
2667
+ }));
2668
+ export const GetProjectDomainResponse =
2669
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2670
+ id: Schema.String,
2671
+ certificateAuthority: Schema.Literals(["google", "lets_encrypt"]),
2672
+ createdOn: Schema.String,
2673
+ domainId: Schema.String,
2674
+ name: Schema.String,
2675
+ status: Schema.Literals([
2676
+ "initializing",
2677
+ "pending",
2678
+ "active",
2679
+ "deactivated",
2680
+ "blocked",
2681
+ "error",
2682
+ ]),
2683
+ validationData: Schema.Struct({
2684
+ method: Schema.Literals(["http", "txt"]),
2685
+ status: Schema.Literals([
2686
+ "initializing",
2687
+ "pending",
2688
+ "active",
2689
+ "deactivated",
2690
+ "error",
2691
+ ]),
2692
+ errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2693
+ txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2694
+ txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2695
+ }).pipe(Schema.encodeKeys({
2696
+ method: "method",
2697
+ status: "status",
2698
+ errorMessage: "error_message",
2699
+ txtName: "txt_name",
2700
+ txtValue: "txt_value",
2701
+ })),
2702
+ verificationData: Schema.Struct({
2703
+ status: Schema.Literals([
2704
+ "pending",
2705
+ "active",
2706
+ "deactivated",
2707
+ "blocked",
2708
+ "error",
2709
+ ]),
2710
+ errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2711
+ }).pipe(Schema.encodeKeys({ status: "status", errorMessage: "error_message" })),
2712
+ zoneTag: Schema.String,
2713
+ }).pipe(Schema.encodeKeys({
2714
+ id: "id",
2715
+ certificateAuthority: "certificate_authority",
2716
+ createdOn: "created_on",
2717
+ domainId: "domain_id",
2718
+ name: "name",
2719
+ status: "status",
2720
+ validationData: "validation_data",
2721
+ verificationData: "verification_data",
2722
+ zoneTag: "zone_tag",
2723
+ }));
2724
+ export const getProjectDomain = API.make(() => ({
2725
+ input: GetProjectDomainRequest,
2726
+ output: GetProjectDomainResponse,
2727
+ errors: [],
2728
+ }));
2729
+ export const ListProjectDomainsRequest =
2730
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2731
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2732
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2733
+ }).pipe(T.Http({
2734
+ method: "GET",
2735
+ path: "/accounts/{account_id}/pages/projects/{projectName}/domains",
2736
+ }));
2737
+ export const ListProjectDomainsResponse =
2738
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2739
+ id: Schema.String,
2740
+ certificateAuthority: Schema.Literals(["google", "lets_encrypt"]),
2741
+ createdOn: Schema.String,
2742
+ domainId: Schema.String,
2743
+ name: Schema.String,
2744
+ status: Schema.Literals([
2745
+ "initializing",
2746
+ "pending",
2747
+ "active",
2748
+ "deactivated",
2749
+ "blocked",
2750
+ "error",
2751
+ ]),
2752
+ validationData: Schema.Struct({
2753
+ method: Schema.Literals(["http", "txt"]),
2754
+ status: Schema.Literals([
2755
+ "initializing",
2756
+ "pending",
2757
+ "active",
2758
+ "deactivated",
2759
+ "error",
2760
+ ]),
2761
+ errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2762
+ txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2763
+ txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2764
+ }).pipe(Schema.encodeKeys({
2765
+ method: "method",
2766
+ status: "status",
2767
+ errorMessage: "error_message",
2768
+ txtName: "txt_name",
2769
+ txtValue: "txt_value",
2770
+ })),
2771
+ verificationData: Schema.Struct({
2772
+ status: Schema.Literals([
2773
+ "pending",
2774
+ "active",
2775
+ "deactivated",
2776
+ "blocked",
2777
+ "error",
2778
+ ]),
2779
+ errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2780
+ }).pipe(Schema.encodeKeys({ status: "status", errorMessage: "error_message" })),
2781
+ zoneTag: Schema.String,
2782
+ }).pipe(Schema.encodeKeys({
2783
+ id: "id",
2784
+ certificateAuthority: "certificate_authority",
2785
+ createdOn: "created_on",
2786
+ domainId: "domain_id",
2787
+ name: "name",
2788
+ status: "status",
2789
+ validationData: "validation_data",
2790
+ verificationData: "verification_data",
2791
+ zoneTag: "zone_tag",
2792
+ })));
2793
+ export const listProjectDomains = API.make(() => ({
2794
+ input: ListProjectDomainsRequest,
2795
+ output: ListProjectDomainsResponse,
2796
+ errors: [],
2797
+ }));
2798
+ export const CreateProjectDomainRequest =
2799
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2800
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2801
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2802
+ name: Schema.String,
2803
+ }).pipe(T.Http({
2804
+ method: "POST",
2805
+ path: "/accounts/{account_id}/pages/projects/{projectName}/domains",
2806
+ }));
2807
+ export const CreateProjectDomainResponse =
2808
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2809
+ id: Schema.String,
2810
+ certificateAuthority: Schema.Literals(["google", "lets_encrypt"]),
2811
+ createdOn: Schema.String,
2812
+ domainId: Schema.String,
2813
+ name: Schema.String,
2814
+ status: Schema.Literals([
2815
+ "initializing",
2816
+ "pending",
2817
+ "active",
2818
+ "deactivated",
2819
+ "blocked",
2820
+ "error",
2821
+ ]),
2822
+ validationData: Schema.Struct({
2823
+ method: Schema.Literals(["http", "txt"]),
2824
+ status: Schema.Literals([
2825
+ "initializing",
2826
+ "pending",
2827
+ "active",
2828
+ "deactivated",
2829
+ "error",
2830
+ ]),
2831
+ errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2832
+ txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2833
+ txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2834
+ }).pipe(Schema.encodeKeys({
2835
+ method: "method",
2836
+ status: "status",
2837
+ errorMessage: "error_message",
2838
+ txtName: "txt_name",
2839
+ txtValue: "txt_value",
2840
+ })),
2841
+ verificationData: Schema.Struct({
2842
+ status: Schema.Literals([
2843
+ "pending",
2844
+ "active",
2845
+ "deactivated",
2846
+ "blocked",
2847
+ "error",
2848
+ ]),
2849
+ errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2850
+ }).pipe(Schema.encodeKeys({ status: "status", errorMessage: "error_message" })),
2851
+ zoneTag: Schema.String,
2852
+ }).pipe(Schema.encodeKeys({
2853
+ id: "id",
2854
+ certificateAuthority: "certificate_authority",
2855
+ createdOn: "created_on",
2856
+ domainId: "domain_id",
2857
+ name: "name",
2858
+ status: "status",
2859
+ validationData: "validation_data",
2860
+ verificationData: "verification_data",
2861
+ zoneTag: "zone_tag",
2862
+ }));
2863
+ export const createProjectDomain = API.make(() => ({
2864
+ input: CreateProjectDomainRequest,
2865
+ output: CreateProjectDomainResponse,
2866
+ errors: [],
2867
+ }));
2868
+ export const PatchProjectDomainRequest =
2869
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2870
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2871
+ domainName: Schema.String.pipe(T.HttpPath("domainName")),
2872
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2873
+ }).pipe(T.Http({
2874
+ method: "PATCH",
2875
+ path: "/accounts/{account_id}/pages/projects/{projectName}/domains/{domainName}",
2876
+ }));
2877
+ export const PatchProjectDomainResponse =
2878
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2879
+ id: Schema.String,
2880
+ certificateAuthority: Schema.Literals(["google", "lets_encrypt"]),
2881
+ createdOn: Schema.String,
2882
+ domainId: Schema.String,
2883
+ name: Schema.String,
2884
+ status: Schema.Literals([
2885
+ "initializing",
2886
+ "pending",
2887
+ "active",
2888
+ "deactivated",
2889
+ "blocked",
2890
+ "error",
2891
+ ]),
2892
+ validationData: Schema.Struct({
2893
+ method: Schema.Literals(["http", "txt"]),
2894
+ status: Schema.Literals([
2895
+ "initializing",
2896
+ "pending",
2897
+ "active",
2898
+ "deactivated",
2899
+ "error",
2900
+ ]),
2901
+ errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2902
+ txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2903
+ txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2904
+ }).pipe(Schema.encodeKeys({
2905
+ method: "method",
2906
+ status: "status",
2907
+ errorMessage: "error_message",
2908
+ txtName: "txt_name",
2909
+ txtValue: "txt_value",
2910
+ })),
2911
+ verificationData: Schema.Struct({
2912
+ status: Schema.Literals([
2913
+ "pending",
2914
+ "active",
2915
+ "deactivated",
2916
+ "blocked",
2917
+ "error",
2918
+ ]),
2919
+ errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2920
+ }).pipe(Schema.encodeKeys({ status: "status", errorMessage: "error_message" })),
2921
+ zoneTag: Schema.String,
2922
+ }).pipe(Schema.encodeKeys({
2923
+ id: "id",
2924
+ certificateAuthority: "certificate_authority",
2925
+ createdOn: "created_on",
2926
+ domainId: "domain_id",
2927
+ name: "name",
2928
+ status: "status",
2929
+ validationData: "validation_data",
2930
+ verificationData: "verification_data",
2931
+ zoneTag: "zone_tag",
2932
+ }));
2933
+ export const patchProjectDomain = API.make(() => ({
2934
+ input: PatchProjectDomainRequest,
2935
+ output: PatchProjectDomainResponse,
2936
+ errors: [],
2937
+ }));
2938
+ export const DeleteProjectDomainRequest =
2939
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2940
+ projectName: Schema.String.pipe(T.HttpPath("projectName")),
2941
+ domainName: Schema.String.pipe(T.HttpPath("domainName")),
2942
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2943
+ }).pipe(T.Http({
2944
+ method: "DELETE",
2945
+ path: "/accounts/{account_id}/pages/projects/{projectName}/domains/{domainName}",
2946
+ }));
2947
+ export const DeleteProjectDomainResponse =
2948
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
2949
+ export const deleteProjectDomain = API.make(() => ({
2950
+ input: DeleteProjectDomainRequest,
2951
+ output: DeleteProjectDomainResponse,
2952
+ errors: [],
2953
+ }));
2954
+ //# sourceMappingURL=pages.js.map