@distilled.cloud/cloudflare 0.0.0-john

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