@distilled.cloud/cloudflare 0.2.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -5,6 +5,7 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service pages
6
6
  */
7
7
 
8
+ import * as stream from "effect/Stream";
8
9
  import * as Schema from "effect/Schema";
9
10
  import type * as HttpClient from "effect/unstable/http/HttpClient";
10
11
  import * as API from "../client/api.ts";
@@ -37,7 +38,9 @@ export const PurgeBuildCacheProjectRequest =
37
38
  export type PurgeBuildCacheProjectResponse = unknown;
38
39
 
39
40
  export const PurgeBuildCacheProjectResponse =
40
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<PurgeBuildCacheProjectResponse>;
41
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
42
+ T.ResponsePath("result"),
43
+ ) as unknown as Schema.Schema<PurgeBuildCacheProjectResponse>;
41
44
 
42
45
  export type PurgeBuildCacheProjectError = DefaultErrors;
43
46
 
@@ -852,26 +855,30 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
852
855
  ]),
853
856
  ),
854
857
  subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
855
- }).pipe(
856
- Schema.encodeKeys({
857
- id: "id",
858
- canonicalDeployment: "canonical_deployment",
859
- createdOn: "created_on",
860
- deploymentConfigs: "deployment_configs",
861
- framework: "framework",
862
- frameworkVersion: "framework_version",
863
- latestDeployment: "latest_deployment",
864
- name: "name",
865
- previewScriptName: "preview_script_name",
866
- productionBranch: "production_branch",
867
- productionScriptName: "production_script_name",
868
- usesFunctions: "uses_functions",
869
- buildConfig: "build_config",
870
- domains: "domains",
871
- source: "source",
872
- subdomain: "subdomain",
873
- }),
874
- ) as unknown as Schema.Schema<GetProjectResponse>;
858
+ })
859
+ .pipe(
860
+ Schema.encodeKeys({
861
+ id: "id",
862
+ canonicalDeployment: "canonical_deployment",
863
+ createdOn: "created_on",
864
+ deploymentConfigs: "deployment_configs",
865
+ framework: "framework",
866
+ frameworkVersion: "framework_version",
867
+ latestDeployment: "latest_deployment",
868
+ name: "name",
869
+ previewScriptName: "preview_script_name",
870
+ productionBranch: "production_branch",
871
+ productionScriptName: "production_script_name",
872
+ usesFunctions: "uses_functions",
873
+ buildConfig: "build_config",
874
+ domains: "domains",
875
+ source: "source",
876
+ subdomain: "subdomain",
877
+ }),
878
+ )
879
+ .pipe(
880
+ T.ResponsePath("result"),
881
+ ) as unknown as Schema.Schema<GetProjectResponse>;
875
882
 
876
883
  export type GetProjectError = DefaultErrors;
877
884
 
@@ -897,142 +904,179 @@ export const ListProjectsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
897
904
  T.Http({ method: "GET", path: "/accounts/{account_id}/pages/projects" }),
898
905
  ) as unknown as Schema.Schema<ListProjectsRequest>;
899
906
 
900
- export type ListProjectsResponse = {
901
- id: string;
902
- canonicalDeployment: {
907
+ export interface ListProjectsResponse {
908
+ result: {
903
909
  id: string;
904
- aliases: string[] | null;
905
- buildConfig: {
906
- webAnalyticsTag: string | null;
907
- webAnalyticsToken: string | null;
908
- buildCaching?: boolean | null;
909
- buildCommand?: string | null;
910
- destinationDir?: string | null;
911
- rootDir?: string | null;
912
- };
910
+ canonicalDeployment: {
911
+ id: string;
912
+ aliases: string[] | null;
913
+ buildConfig: {
914
+ webAnalyticsTag: string | null;
915
+ webAnalyticsToken: string | null;
916
+ buildCaching?: boolean | null;
917
+ buildCommand?: string | null;
918
+ destinationDir?: string | null;
919
+ rootDir?: string | null;
920
+ };
921
+ createdOn: string;
922
+ deploymentTrigger: {
923
+ metadata: {
924
+ branch: string;
925
+ commitDirty: boolean;
926
+ commitHash: string;
927
+ commitMessage: string;
928
+ };
929
+ type: "github:push" | "ad_hoc" | "deploy_hook";
930
+ };
931
+ envVars: Record<string, unknown> | null;
932
+ environment: "preview" | "production";
933
+ isSkipped: boolean;
934
+ latestStage: unknown;
935
+ modifiedOn: string;
936
+ projectId: string;
937
+ projectName: string;
938
+ shortId: string;
939
+ source: {
940
+ config: {
941
+ deploymentsEnabled?: boolean | null;
942
+ owner?: string | null;
943
+ ownerId?: string | null;
944
+ pathExcludes?: string[] | null;
945
+ pathIncludes?: string[] | null;
946
+ prCommentsEnabled?: boolean | null;
947
+ previewBranchExcludes?: string[] | null;
948
+ previewBranchIncludes?: string[] | null;
949
+ previewDeploymentSetting?: "all" | "none" | "custom" | null;
950
+ productionBranch?: string | null;
951
+ productionDeploymentsEnabled?: boolean | null;
952
+ repoId?: string | null;
953
+ repoName?: string | null;
954
+ };
955
+ type: "github" | "gitlab";
956
+ };
957
+ stages: unknown[];
958
+ url: string;
959
+ usesFunctions?: boolean | null;
960
+ } | null;
913
961
  createdOn: string;
914
- deploymentTrigger: {
915
- metadata: {
916
- branch: string;
917
- commitDirty: boolean;
918
- commitHash: string;
919
- commitMessage: string;
962
+ deploymentConfigs: {
963
+ preview: {
964
+ aiBindings?: Record<string, unknown> | null;
965
+ alwaysUseLatestCompatibilityDate?: boolean | null;
966
+ analyticsEngineDatasets?: Record<string, unknown> | null;
967
+ browsers?: Record<string, unknown> | null;
968
+ buildImageMajorVersion?: number | null;
969
+ compatibilityDate?: string | null;
970
+ compatibilityFlags?: string[] | null;
971
+ d1Databases?: Record<string, unknown> | null;
972
+ durableObjectNamespaces?: Record<string, unknown> | null;
973
+ envVars?: Record<string, unknown> | null;
974
+ failOpen?: boolean | null;
975
+ hyperdriveBindings?: Record<string, unknown> | null;
976
+ kvNamespaces?: Record<string, unknown> | null;
977
+ limits?: { cpuMs: number } | null;
978
+ mtlsCertificates?: Record<string, unknown> | null;
979
+ placement?: { mode: string } | null;
980
+ queueProducers?: Record<string, unknown> | null;
981
+ r2Buckets?: Record<string, unknown> | null;
982
+ services?: Record<string, unknown> | null;
983
+ usageModel?: "standard" | "bundled" | "unbound" | null;
984
+ vectorizeBindings?: Record<string, unknown> | null;
985
+ wranglerConfigHash?: string | null;
920
986
  };
921
- type: "github:push" | "ad_hoc" | "deploy_hook";
922
- };
923
- envVars: Record<string, unknown> | null;
924
- environment: "preview" | "production";
925
- isSkipped: boolean;
926
- latestStage: unknown;
927
- modifiedOn: string;
928
- projectId: string;
929
- projectName: string;
930
- shortId: string;
931
- source: {
932
- config: {
933
- deploymentsEnabled?: boolean | null;
934
- owner?: string | null;
935
- ownerId?: string | null;
936
- pathExcludes?: string[] | null;
937
- pathIncludes?: string[] | null;
938
- prCommentsEnabled?: boolean | null;
939
- previewBranchExcludes?: string[] | null;
940
- previewBranchIncludes?: string[] | null;
941
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
942
- productionBranch?: string | null;
943
- productionDeploymentsEnabled?: boolean | null;
944
- repoId?: string | null;
945
- repoName?: string | null;
987
+ production: {
988
+ aiBindings?: Record<string, unknown> | null;
989
+ alwaysUseLatestCompatibilityDate?: boolean | null;
990
+ analyticsEngineDatasets?: Record<string, unknown> | null;
991
+ browsers?: Record<string, unknown> | null;
992
+ buildImageMajorVersion?: number | null;
993
+ compatibilityDate?: string | null;
994
+ compatibilityFlags?: string[] | null;
995
+ d1Databases?: Record<string, unknown> | null;
996
+ durableObjectNamespaces?: Record<string, unknown> | null;
997
+ envVars?: Record<string, unknown> | null;
998
+ failOpen?: boolean | null;
999
+ hyperdriveBindings?: Record<string, unknown> | null;
1000
+ kvNamespaces?: Record<string, unknown> | null;
1001
+ limits?: { cpuMs: number } | null;
1002
+ mtlsCertificates?: Record<string, unknown> | null;
1003
+ placement?: { mode: string } | null;
1004
+ queueProducers?: Record<string, unknown> | null;
1005
+ r2Buckets?: Record<string, unknown> | null;
1006
+ services?: Record<string, unknown> | null;
1007
+ usageModel?: "standard" | "bundled" | "unbound" | null;
1008
+ vectorizeBindings?: Record<string, unknown> | null;
1009
+ wranglerConfigHash?: string | null;
946
1010
  };
947
- type: "github" | "gitlab";
948
- };
949
- stages: unknown[];
950
- url: string;
951
- usesFunctions?: boolean | null;
952
- } | null;
953
- createdOn: string;
954
- deploymentConfigs: {
955
- preview: {
956
- aiBindings?: Record<string, unknown> | null;
957
- alwaysUseLatestCompatibilityDate?: boolean | null;
958
- analyticsEngineDatasets?: Record<string, unknown> | null;
959
- browsers?: Record<string, unknown> | null;
960
- buildImageMajorVersion?: number | null;
961
- compatibilityDate?: string | null;
962
- compatibilityFlags?: string[] | null;
963
- d1Databases?: Record<string, unknown> | null;
964
- durableObjectNamespaces?: Record<string, unknown> | null;
965
- envVars?: Record<string, unknown> | null;
966
- failOpen?: boolean | null;
967
- hyperdriveBindings?: Record<string, unknown> | null;
968
- kvNamespaces?: Record<string, unknown> | null;
969
- limits?: { cpuMs: number } | null;
970
- mtlsCertificates?: Record<string, unknown> | null;
971
- placement?: { mode: string } | null;
972
- queueProducers?: Record<string, unknown> | null;
973
- r2Buckets?: Record<string, unknown> | null;
974
- services?: Record<string, unknown> | null;
975
- usageModel?: "standard" | "bundled" | "unbound" | null;
976
- vectorizeBindings?: Record<string, unknown> | null;
977
- wranglerConfigHash?: string | null;
978
- };
979
- production: {
980
- aiBindings?: Record<string, unknown> | null;
981
- alwaysUseLatestCompatibilityDate?: boolean | null;
982
- analyticsEngineDatasets?: Record<string, unknown> | null;
983
- browsers?: Record<string, unknown> | null;
984
- buildImageMajorVersion?: number | null;
985
- compatibilityDate?: string | null;
986
- compatibilityFlags?: string[] | null;
987
- d1Databases?: Record<string, unknown> | null;
988
- durableObjectNamespaces?: Record<string, unknown> | null;
989
- envVars?: Record<string, unknown> | null;
990
- failOpen?: boolean | null;
991
- hyperdriveBindings?: Record<string, unknown> | null;
992
- kvNamespaces?: Record<string, unknown> | null;
993
- limits?: { cpuMs: number } | null;
994
- mtlsCertificates?: Record<string, unknown> | null;
995
- placement?: { mode: string } | null;
996
- queueProducers?: Record<string, unknown> | null;
997
- r2Buckets?: Record<string, unknown> | null;
998
- services?: Record<string, unknown> | null;
999
- usageModel?: "standard" | "bundled" | "unbound" | null;
1000
- vectorizeBindings?: Record<string, unknown> | null;
1001
- wranglerConfigHash?: string | null;
1002
1011
  };
1003
- };
1004
- framework: string;
1005
- frameworkVersion: string;
1006
- latestDeployment: {
1007
- id: string;
1008
- aliases: string[] | null;
1009
- buildConfig: {
1012
+ framework: string;
1013
+ frameworkVersion: string;
1014
+ latestDeployment: {
1015
+ id: string;
1016
+ aliases: string[] | null;
1017
+ buildConfig: {
1018
+ webAnalyticsTag: string | null;
1019
+ webAnalyticsToken: string | null;
1020
+ buildCaching?: boolean | null;
1021
+ buildCommand?: string | null;
1022
+ destinationDir?: string | null;
1023
+ rootDir?: string | null;
1024
+ };
1025
+ createdOn: string;
1026
+ deploymentTrigger: {
1027
+ metadata: {
1028
+ branch: string;
1029
+ commitDirty: boolean;
1030
+ commitHash: string;
1031
+ commitMessage: string;
1032
+ };
1033
+ type: "github:push" | "ad_hoc" | "deploy_hook";
1034
+ };
1035
+ envVars: Record<string, unknown> | null;
1036
+ environment: "preview" | "production";
1037
+ isSkipped: boolean;
1038
+ latestStage: unknown;
1039
+ modifiedOn: string;
1040
+ projectId: string;
1041
+ projectName: string;
1042
+ shortId: string;
1043
+ source: {
1044
+ config: {
1045
+ deploymentsEnabled?: boolean | null;
1046
+ owner?: string | null;
1047
+ ownerId?: string | null;
1048
+ pathExcludes?: string[] | null;
1049
+ pathIncludes?: string[] | null;
1050
+ prCommentsEnabled?: boolean | null;
1051
+ previewBranchExcludes?: string[] | null;
1052
+ previewBranchIncludes?: string[] | null;
1053
+ previewDeploymentSetting?: "all" | "none" | "custom" | null;
1054
+ productionBranch?: string | null;
1055
+ productionDeploymentsEnabled?: boolean | null;
1056
+ repoId?: string | null;
1057
+ repoName?: string | null;
1058
+ };
1059
+ type: "github" | "gitlab";
1060
+ };
1061
+ stages: unknown[];
1062
+ url: string;
1063
+ usesFunctions?: boolean | null;
1064
+ } | null;
1065
+ name: string;
1066
+ previewScriptName: string;
1067
+ productionBranch: string;
1068
+ productionScriptName: string;
1069
+ usesFunctions: boolean | null;
1070
+ buildConfig?: {
1010
1071
  webAnalyticsTag: string | null;
1011
1072
  webAnalyticsToken: string | null;
1012
1073
  buildCaching?: boolean | null;
1013
1074
  buildCommand?: string | null;
1014
1075
  destinationDir?: string | null;
1015
1076
  rootDir?: string | null;
1016
- };
1017
- createdOn: string;
1018
- deploymentTrigger: {
1019
- metadata: {
1020
- branch: string;
1021
- commitDirty: boolean;
1022
- commitHash: string;
1023
- commitMessage: string;
1024
- };
1025
- type: "github:push" | "ad_hoc" | "deploy_hook";
1026
- };
1027
- envVars: Record<string, unknown> | null;
1028
- environment: "preview" | "production";
1029
- isSkipped: boolean;
1030
- latestStage: unknown;
1031
- modifiedOn: string;
1032
- projectId: string;
1033
- projectName: string;
1034
- shortId: string;
1035
- source: {
1077
+ } | null;
1078
+ domains?: string[] | null;
1079
+ source?: {
1036
1080
  config: {
1037
1081
  deploymentsEnabled?: boolean | null;
1038
1082
  owner?: string | null;
@@ -1049,676 +1093,896 @@ export type ListProjectsResponse = {
1049
1093
  repoName?: string | null;
1050
1094
  };
1051
1095
  type: "github" | "gitlab";
1052
- };
1053
- stages: unknown[];
1054
- url: string;
1055
- usesFunctions?: boolean | null;
1056
- } | null;
1057
- name: string;
1058
- previewScriptName: string;
1059
- productionBranch: string;
1060
- productionScriptName: string;
1061
- usesFunctions: boolean | null;
1062
- buildConfig?: {
1063
- webAnalyticsTag: string | null;
1064
- webAnalyticsToken: string | null;
1065
- buildCaching?: boolean | null;
1066
- buildCommand?: string | null;
1067
- destinationDir?: string | null;
1068
- rootDir?: string | null;
1069
- } | null;
1070
- domains?: string[] | null;
1071
- source?: {
1072
- config: {
1073
- deploymentsEnabled?: boolean | null;
1074
- owner?: string | null;
1075
- ownerId?: string | null;
1076
- pathExcludes?: string[] | null;
1077
- pathIncludes?: string[] | null;
1078
- prCommentsEnabled?: boolean | null;
1079
- previewBranchExcludes?: string[] | null;
1080
- previewBranchIncludes?: string[] | null;
1081
- previewDeploymentSetting?: "all" | "none" | "custom" | null;
1082
- productionBranch?: string | null;
1083
- productionDeploymentsEnabled?: boolean | null;
1084
- repoId?: string | null;
1085
- repoName?: string | null;
1086
- };
1087
- type: "github" | "gitlab";
1088
- } | null;
1089
- subdomain?: string | null;
1090
- }[];
1096
+ } | null;
1097
+ subdomain?: string | null;
1098
+ }[];
1099
+ resultInfo: {
1100
+ count?: number | null;
1101
+ page?: number | null;
1102
+ perPage?: number | null;
1103
+ totalCount?: number | null;
1104
+ };
1105
+ }
1091
1106
 
1092
- export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1093
- Schema.Struct({
1094
- id: Schema.String,
1095
- canonicalDeployment: Schema.Union([
1096
- Schema.Struct({
1097
- id: Schema.String,
1098
- aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1099
- buildConfig: Schema.Struct({
1100
- webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1101
- webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1102
- buildCaching: Schema.optional(
1103
- Schema.Union([Schema.Boolean, Schema.Null]),
1104
- ),
1105
- buildCommand: Schema.optional(
1106
- Schema.Union([Schema.String, Schema.Null]),
1107
+ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1108
+ result: Schema.Array(
1109
+ Schema.Struct({
1110
+ id: Schema.String,
1111
+ canonicalDeployment: Schema.Union([
1112
+ Schema.Struct({
1113
+ id: Schema.String,
1114
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1115
+ buildConfig: Schema.Struct({
1116
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1117
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1118
+ buildCaching: Schema.optional(
1119
+ Schema.Union([Schema.Boolean, Schema.Null]),
1120
+ ),
1121
+ buildCommand: Schema.optional(
1122
+ Schema.Union([Schema.String, Schema.Null]),
1123
+ ),
1124
+ destinationDir: Schema.optional(
1125
+ Schema.Union([Schema.String, Schema.Null]),
1126
+ ),
1127
+ rootDir: Schema.optional(
1128
+ Schema.Union([Schema.String, Schema.Null]),
1129
+ ),
1130
+ }).pipe(
1131
+ Schema.encodeKeys({
1132
+ webAnalyticsTag: "web_analytics_tag",
1133
+ webAnalyticsToken: "web_analytics_token",
1134
+ buildCaching: "build_caching",
1135
+ buildCommand: "build_command",
1136
+ destinationDir: "destination_dir",
1137
+ rootDir: "root_dir",
1138
+ }),
1107
1139
  ),
1108
- destinationDir: Schema.optional(
1109
- Schema.Union([Schema.String, Schema.Null]),
1140
+ createdOn: Schema.String,
1141
+ deploymentTrigger: Schema.Struct({
1142
+ metadata: Schema.Struct({
1143
+ branch: Schema.String,
1144
+ commitDirty: Schema.Boolean,
1145
+ commitHash: Schema.String,
1146
+ commitMessage: Schema.String,
1147
+ }).pipe(
1148
+ Schema.encodeKeys({
1149
+ branch: "branch",
1150
+ commitDirty: "commit_dirty",
1151
+ commitHash: "commit_hash",
1152
+ commitMessage: "commit_message",
1153
+ }),
1154
+ ),
1155
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1156
+ }),
1157
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
1158
+ environment: Schema.Literals(["preview", "production"]),
1159
+ isSkipped: Schema.Boolean,
1160
+ latestStage: Schema.Unknown,
1161
+ modifiedOn: Schema.String,
1162
+ projectId: Schema.String,
1163
+ projectName: Schema.String,
1164
+ shortId: Schema.String,
1165
+ source: Schema.Struct({
1166
+ config: Schema.Struct({
1167
+ deploymentsEnabled: Schema.optional(
1168
+ Schema.Union([Schema.Boolean, Schema.Null]),
1169
+ ),
1170
+ owner: Schema.optional(
1171
+ Schema.Union([Schema.String, Schema.Null]),
1172
+ ),
1173
+ ownerId: Schema.optional(
1174
+ Schema.Union([Schema.String, Schema.Null]),
1175
+ ),
1176
+ pathExcludes: Schema.optional(
1177
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1178
+ ),
1179
+ pathIncludes: Schema.optional(
1180
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1181
+ ),
1182
+ prCommentsEnabled: Schema.optional(
1183
+ Schema.Union([Schema.Boolean, Schema.Null]),
1184
+ ),
1185
+ previewBranchExcludes: Schema.optional(
1186
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1187
+ ),
1188
+ previewBranchIncludes: Schema.optional(
1189
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1190
+ ),
1191
+ previewDeploymentSetting: Schema.optional(
1192
+ Schema.Union([
1193
+ Schema.Literals(["all", "none", "custom"]),
1194
+ Schema.Null,
1195
+ ]),
1196
+ ),
1197
+ productionBranch: Schema.optional(
1198
+ Schema.Union([Schema.String, Schema.Null]),
1199
+ ),
1200
+ productionDeploymentsEnabled: Schema.optional(
1201
+ Schema.Union([Schema.Boolean, Schema.Null]),
1202
+ ),
1203
+ repoId: Schema.optional(
1204
+ Schema.Union([Schema.String, Schema.Null]),
1205
+ ),
1206
+ repoName: Schema.optional(
1207
+ Schema.Union([Schema.String, Schema.Null]),
1208
+ ),
1209
+ }).pipe(
1210
+ Schema.encodeKeys({
1211
+ deploymentsEnabled: "deployments_enabled",
1212
+ owner: "owner",
1213
+ ownerId: "owner_id",
1214
+ pathExcludes: "path_excludes",
1215
+ pathIncludes: "path_includes",
1216
+ prCommentsEnabled: "pr_comments_enabled",
1217
+ previewBranchExcludes: "preview_branch_excludes",
1218
+ previewBranchIncludes: "preview_branch_includes",
1219
+ previewDeploymentSetting: "preview_deployment_setting",
1220
+ productionBranch: "production_branch",
1221
+ productionDeploymentsEnabled: "production_deployments_enabled",
1222
+ repoId: "repo_id",
1223
+ repoName: "repo_name",
1224
+ }),
1225
+ ),
1226
+ type: Schema.Literals(["github", "gitlab"]),
1227
+ }),
1228
+ stages: Schema.Array(Schema.Unknown),
1229
+ url: Schema.String,
1230
+ usesFunctions: Schema.optional(
1231
+ Schema.Union([Schema.Boolean, Schema.Null]),
1110
1232
  ),
1111
- rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1112
1233
  }).pipe(
1113
1234
  Schema.encodeKeys({
1114
- webAnalyticsTag: "web_analytics_tag",
1115
- webAnalyticsToken: "web_analytics_token",
1116
- buildCaching: "build_caching",
1117
- buildCommand: "build_command",
1118
- destinationDir: "destination_dir",
1119
- rootDir: "root_dir",
1235
+ id: "id",
1236
+ aliases: "aliases",
1237
+ buildConfig: "build_config",
1238
+ createdOn: "created_on",
1239
+ deploymentTrigger: "deployment_trigger",
1240
+ envVars: "env_vars",
1241
+ environment: "environment",
1242
+ isSkipped: "is_skipped",
1243
+ latestStage: "latest_stage",
1244
+ modifiedOn: "modified_on",
1245
+ projectId: "project_id",
1246
+ projectName: "project_name",
1247
+ shortId: "short_id",
1248
+ source: "source",
1249
+ stages: "stages",
1250
+ url: "url",
1251
+ usesFunctions: "uses_functions",
1120
1252
  }),
1121
1253
  ),
1122
- createdOn: Schema.String,
1123
- deploymentTrigger: Schema.Struct({
1124
- metadata: Schema.Struct({
1125
- branch: Schema.String,
1126
- commitDirty: Schema.Boolean,
1127
- commitHash: Schema.String,
1128
- commitMessage: Schema.String,
1129
- }).pipe(
1130
- Schema.encodeKeys({
1131
- branch: "branch",
1132
- commitDirty: "commit_dirty",
1133
- commitHash: "commit_hash",
1134
- commitMessage: "commit_message",
1135
- }),
1254
+ Schema.Null,
1255
+ ]),
1256
+ createdOn: Schema.String,
1257
+ deploymentConfigs: Schema.Struct({
1258
+ preview: Schema.Struct({
1259
+ aiBindings: Schema.optional(
1260
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1136
1261
  ),
1137
- type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1138
- }),
1139
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
1140
- environment: Schema.Literals(["preview", "production"]),
1141
- isSkipped: Schema.Boolean,
1142
- latestStage: Schema.Unknown,
1143
- modifiedOn: Schema.String,
1144
- projectId: Schema.String,
1145
- projectName: Schema.String,
1146
- shortId: Schema.String,
1147
- source: Schema.Struct({
1148
- config: Schema.Struct({
1149
- deploymentsEnabled: Schema.optional(
1150
- Schema.Union([Schema.Boolean, Schema.Null]),
1151
- ),
1152
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1153
- ownerId: Schema.optional(
1154
- Schema.Union([Schema.String, Schema.Null]),
1155
- ),
1156
- pathExcludes: Schema.optional(
1157
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1158
- ),
1159
- pathIncludes: Schema.optional(
1160
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1161
- ),
1162
- prCommentsEnabled: Schema.optional(
1163
- Schema.Union([Schema.Boolean, Schema.Null]),
1164
- ),
1165
- previewBranchExcludes: Schema.optional(
1166
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1167
- ),
1168
- previewBranchIncludes: Schema.optional(
1169
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1170
- ),
1171
- previewDeploymentSetting: Schema.optional(
1172
- Schema.Union([
1173
- Schema.Literals(["all", "none", "custom"]),
1174
- Schema.Null,
1175
- ]),
1176
- ),
1177
- productionBranch: Schema.optional(
1178
- Schema.Union([Schema.String, Schema.Null]),
1179
- ),
1180
- productionDeploymentsEnabled: Schema.optional(
1181
- Schema.Union([Schema.Boolean, Schema.Null]),
1182
- ),
1183
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1184
- repoName: Schema.optional(
1185
- Schema.Union([Schema.String, Schema.Null]),
1186
- ),
1187
- }).pipe(
1188
- Schema.encodeKeys({
1189
- deploymentsEnabled: "deployments_enabled",
1190
- owner: "owner",
1191
- ownerId: "owner_id",
1192
- pathExcludes: "path_excludes",
1193
- pathIncludes: "path_includes",
1194
- prCommentsEnabled: "pr_comments_enabled",
1195
- previewBranchExcludes: "preview_branch_excludes",
1196
- previewBranchIncludes: "preview_branch_includes",
1197
- previewDeploymentSetting: "preview_deployment_setting",
1198
- productionBranch: "production_branch",
1199
- productionDeploymentsEnabled: "production_deployments_enabled",
1200
- repoId: "repo_id",
1201
- repoName: "repo_name",
1202
- }),
1262
+ alwaysUseLatestCompatibilityDate: Schema.optional(
1263
+ Schema.Union([Schema.Boolean, Schema.Null]),
1203
1264
  ),
1204
- type: Schema.Literals(["github", "gitlab"]),
1205
- }),
1206
- stages: Schema.Array(Schema.Unknown),
1207
- url: Schema.String,
1208
- usesFunctions: Schema.optional(
1209
- Schema.Union([Schema.Boolean, Schema.Null]),
1210
- ),
1211
- }).pipe(
1212
- Schema.encodeKeys({
1213
- id: "id",
1214
- aliases: "aliases",
1215
- buildConfig: "build_config",
1216
- createdOn: "created_on",
1217
- deploymentTrigger: "deployment_trigger",
1218
- envVars: "env_vars",
1219
- environment: "environment",
1220
- isSkipped: "is_skipped",
1221
- latestStage: "latest_stage",
1222
- modifiedOn: "modified_on",
1223
- projectId: "project_id",
1224
- projectName: "project_name",
1225
- shortId: "short_id",
1226
- source: "source",
1227
- stages: "stages",
1228
- url: "url",
1229
- usesFunctions: "uses_functions",
1230
- }),
1231
- ),
1232
- Schema.Null,
1233
- ]),
1234
- createdOn: Schema.String,
1235
- deploymentConfigs: Schema.Struct({
1236
- preview: Schema.Struct({
1237
- aiBindings: Schema.optional(
1238
- Schema.Union([Schema.Struct({}), Schema.Null]),
1239
- ),
1240
- alwaysUseLatestCompatibilityDate: Schema.optional(
1241
- Schema.Union([Schema.Boolean, Schema.Null]),
1242
- ),
1243
- analyticsEngineDatasets: Schema.optional(
1244
- Schema.Union([Schema.Struct({}), Schema.Null]),
1245
- ),
1246
- browsers: Schema.optional(
1247
- Schema.Union([Schema.Struct({}), Schema.Null]),
1248
- ),
1249
- buildImageMajorVersion: Schema.optional(
1250
- Schema.Union([Schema.Number, Schema.Null]),
1251
- ),
1252
- compatibilityDate: Schema.optional(
1253
- Schema.Union([Schema.String, Schema.Null]),
1254
- ),
1255
- compatibilityFlags: Schema.optional(
1256
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1257
- ),
1258
- d1Databases: Schema.optional(
1259
- Schema.Union([Schema.Struct({}), Schema.Null]),
1260
- ),
1261
- durableObjectNamespaces: Schema.optional(
1262
- Schema.Union([Schema.Struct({}), Schema.Null]),
1263
- ),
1264
- envVars: Schema.optional(
1265
- Schema.Union([Schema.Struct({}), Schema.Null]),
1266
- ),
1267
- failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1268
- hyperdriveBindings: Schema.optional(
1269
- Schema.Union([Schema.Struct({}), Schema.Null]),
1270
- ),
1271
- kvNamespaces: Schema.optional(
1272
- Schema.Union([Schema.Struct({}), Schema.Null]),
1273
- ),
1274
- limits: Schema.optional(
1275
- Schema.Union([
1276
- Schema.Struct({
1277
- cpuMs: Schema.Number,
1278
- }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1279
- Schema.Null,
1280
- ]),
1281
- ),
1282
- mtlsCertificates: Schema.optional(
1283
- Schema.Union([Schema.Struct({}), Schema.Null]),
1284
- ),
1285
- placement: Schema.optional(
1286
- Schema.Union([
1287
- Schema.Struct({
1288
- mode: Schema.String,
1289
- }),
1290
- Schema.Null,
1291
- ]),
1292
- ),
1293
- queueProducers: Schema.optional(
1294
- Schema.Union([Schema.Struct({}), Schema.Null]),
1295
- ),
1296
- r2Buckets: Schema.optional(
1297
- Schema.Union([Schema.Struct({}), Schema.Null]),
1298
- ),
1299
- services: Schema.optional(
1300
- Schema.Union([Schema.Struct({}), Schema.Null]),
1301
- ),
1302
- usageModel: Schema.optional(
1303
- Schema.Union([
1304
- Schema.Literals(["standard", "bundled", "unbound"]),
1305
- Schema.Null,
1306
- ]),
1307
- ),
1308
- vectorizeBindings: Schema.optional(
1309
- Schema.Union([Schema.Struct({}), Schema.Null]),
1310
- ),
1311
- wranglerConfigHash: Schema.optional(
1312
- Schema.Union([Schema.String, Schema.Null]),
1313
- ),
1314
- }).pipe(
1315
- Schema.encodeKeys({
1316
- aiBindings: "ai_bindings",
1317
- alwaysUseLatestCompatibilityDate:
1318
- "always_use_latest_compatibility_date",
1319
- analyticsEngineDatasets: "analytics_engine_datasets",
1320
- browsers: "browsers",
1321
- buildImageMajorVersion: "build_image_major_version",
1322
- compatibilityDate: "compatibility_date",
1323
- compatibilityFlags: "compatibility_flags",
1324
- d1Databases: "d1_databases",
1325
- durableObjectNamespaces: "durable_object_namespaces",
1326
- envVars: "env_vars",
1327
- failOpen: "fail_open",
1328
- hyperdriveBindings: "hyperdrive_bindings",
1329
- kvNamespaces: "kv_namespaces",
1330
- limits: "limits",
1331
- mtlsCertificates: "mtls_certificates",
1332
- placement: "placement",
1333
- queueProducers: "queue_producers",
1334
- r2Buckets: "r2_buckets",
1335
- services: "services",
1336
- usageModel: "usage_model",
1337
- vectorizeBindings: "vectorize_bindings",
1338
- wranglerConfigHash: "wrangler_config_hash",
1339
- }),
1340
- ),
1341
- production: Schema.Struct({
1342
- aiBindings: Schema.optional(
1343
- Schema.Union([Schema.Struct({}), Schema.Null]),
1344
- ),
1345
- alwaysUseLatestCompatibilityDate: Schema.optional(
1346
- Schema.Union([Schema.Boolean, Schema.Null]),
1347
- ),
1348
- analyticsEngineDatasets: Schema.optional(
1349
- Schema.Union([Schema.Struct({}), Schema.Null]),
1350
- ),
1351
- browsers: Schema.optional(
1352
- Schema.Union([Schema.Struct({}), Schema.Null]),
1353
- ),
1354
- buildImageMajorVersion: Schema.optional(
1355
- Schema.Union([Schema.Number, Schema.Null]),
1356
- ),
1357
- compatibilityDate: Schema.optional(
1358
- Schema.Union([Schema.String, Schema.Null]),
1359
- ),
1360
- compatibilityFlags: Schema.optional(
1361
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1362
- ),
1363
- d1Databases: Schema.optional(
1364
- Schema.Union([Schema.Struct({}), Schema.Null]),
1365
- ),
1366
- durableObjectNamespaces: Schema.optional(
1367
- Schema.Union([Schema.Struct({}), Schema.Null]),
1368
- ),
1369
- envVars: Schema.optional(
1370
- Schema.Union([Schema.Struct({}), Schema.Null]),
1371
- ),
1372
- failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1373
- hyperdriveBindings: Schema.optional(
1374
- Schema.Union([Schema.Struct({}), Schema.Null]),
1375
- ),
1376
- kvNamespaces: Schema.optional(
1377
- Schema.Union([Schema.Struct({}), Schema.Null]),
1378
- ),
1379
- limits: Schema.optional(
1380
- Schema.Union([
1381
- Schema.Struct({
1382
- cpuMs: Schema.Number,
1383
- }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1384
- Schema.Null,
1385
- ]),
1386
- ),
1387
- mtlsCertificates: Schema.optional(
1388
- Schema.Union([Schema.Struct({}), Schema.Null]),
1389
- ),
1390
- placement: Schema.optional(
1391
- Schema.Union([
1392
- Schema.Struct({
1393
- mode: Schema.String,
1394
- }),
1395
- Schema.Null,
1396
- ]),
1397
- ),
1398
- queueProducers: Schema.optional(
1399
- Schema.Union([Schema.Struct({}), Schema.Null]),
1400
- ),
1401
- r2Buckets: Schema.optional(
1402
- Schema.Union([Schema.Struct({}), Schema.Null]),
1403
- ),
1404
- services: Schema.optional(
1405
- Schema.Union([Schema.Struct({}), Schema.Null]),
1406
- ),
1407
- usageModel: Schema.optional(
1408
- Schema.Union([
1409
- Schema.Literals(["standard", "bundled", "unbound"]),
1410
- Schema.Null,
1411
- ]),
1412
- ),
1413
- vectorizeBindings: Schema.optional(
1414
- Schema.Union([Schema.Struct({}), Schema.Null]),
1415
- ),
1416
- wranglerConfigHash: Schema.optional(
1417
- Schema.Union([Schema.String, Schema.Null]),
1265
+ analyticsEngineDatasets: Schema.optional(
1266
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1267
+ ),
1268
+ browsers: Schema.optional(
1269
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1270
+ ),
1271
+ buildImageMajorVersion: Schema.optional(
1272
+ Schema.Union([Schema.Number, Schema.Null]),
1273
+ ),
1274
+ compatibilityDate: Schema.optional(
1275
+ Schema.Union([Schema.String, Schema.Null]),
1276
+ ),
1277
+ compatibilityFlags: Schema.optional(
1278
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1279
+ ),
1280
+ d1Databases: Schema.optional(
1281
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1282
+ ),
1283
+ durableObjectNamespaces: Schema.optional(
1284
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1285
+ ),
1286
+ envVars: Schema.optional(
1287
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1288
+ ),
1289
+ failOpen: Schema.optional(
1290
+ Schema.Union([Schema.Boolean, Schema.Null]),
1291
+ ),
1292
+ hyperdriveBindings: Schema.optional(
1293
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1294
+ ),
1295
+ kvNamespaces: Schema.optional(
1296
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1297
+ ),
1298
+ limits: Schema.optional(
1299
+ Schema.Union([
1300
+ Schema.Struct({
1301
+ cpuMs: Schema.Number,
1302
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1303
+ Schema.Null,
1304
+ ]),
1305
+ ),
1306
+ mtlsCertificates: Schema.optional(
1307
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1308
+ ),
1309
+ placement: Schema.optional(
1310
+ Schema.Union([
1311
+ Schema.Struct({
1312
+ mode: Schema.String,
1313
+ }),
1314
+ Schema.Null,
1315
+ ]),
1316
+ ),
1317
+ queueProducers: Schema.optional(
1318
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1319
+ ),
1320
+ r2Buckets: Schema.optional(
1321
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1322
+ ),
1323
+ services: Schema.optional(
1324
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1325
+ ),
1326
+ usageModel: Schema.optional(
1327
+ Schema.Union([
1328
+ Schema.Literals(["standard", "bundled", "unbound"]),
1329
+ Schema.Null,
1330
+ ]),
1331
+ ),
1332
+ vectorizeBindings: Schema.optional(
1333
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1334
+ ),
1335
+ wranglerConfigHash: Schema.optional(
1336
+ Schema.Union([Schema.String, Schema.Null]),
1337
+ ),
1338
+ }).pipe(
1339
+ Schema.encodeKeys({
1340
+ aiBindings: "ai_bindings",
1341
+ alwaysUseLatestCompatibilityDate:
1342
+ "always_use_latest_compatibility_date",
1343
+ analyticsEngineDatasets: "analytics_engine_datasets",
1344
+ browsers: "browsers",
1345
+ buildImageMajorVersion: "build_image_major_version",
1346
+ compatibilityDate: "compatibility_date",
1347
+ compatibilityFlags: "compatibility_flags",
1348
+ d1Databases: "d1_databases",
1349
+ durableObjectNamespaces: "durable_object_namespaces",
1350
+ envVars: "env_vars",
1351
+ failOpen: "fail_open",
1352
+ hyperdriveBindings: "hyperdrive_bindings",
1353
+ kvNamespaces: "kv_namespaces",
1354
+ limits: "limits",
1355
+ mtlsCertificates: "mtls_certificates",
1356
+ placement: "placement",
1357
+ queueProducers: "queue_producers",
1358
+ r2Buckets: "r2_buckets",
1359
+ services: "services",
1360
+ usageModel: "usage_model",
1361
+ vectorizeBindings: "vectorize_bindings",
1362
+ wranglerConfigHash: "wrangler_config_hash",
1363
+ }),
1418
1364
  ),
1419
- }).pipe(
1420
- Schema.encodeKeys({
1421
- aiBindings: "ai_bindings",
1422
- alwaysUseLatestCompatibilityDate:
1423
- "always_use_latest_compatibility_date",
1424
- analyticsEngineDatasets: "analytics_engine_datasets",
1425
- browsers: "browsers",
1426
- buildImageMajorVersion: "build_image_major_version",
1427
- compatibilityDate: "compatibility_date",
1428
- compatibilityFlags: "compatibility_flags",
1429
- d1Databases: "d1_databases",
1430
- durableObjectNamespaces: "durable_object_namespaces",
1431
- envVars: "env_vars",
1432
- failOpen: "fail_open",
1433
- hyperdriveBindings: "hyperdrive_bindings",
1434
- kvNamespaces: "kv_namespaces",
1435
- limits: "limits",
1436
- mtlsCertificates: "mtls_certificates",
1437
- placement: "placement",
1438
- queueProducers: "queue_producers",
1439
- r2Buckets: "r2_buckets",
1440
- services: "services",
1441
- usageModel: "usage_model",
1442
- vectorizeBindings: "vectorize_bindings",
1443
- wranglerConfigHash: "wrangler_config_hash",
1444
- }),
1445
- ),
1446
- }),
1447
- framework: Schema.String,
1448
- frameworkVersion: Schema.String,
1449
- latestDeployment: Schema.Union([
1450
- Schema.Struct({
1451
- id: Schema.String,
1452
- aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1453
- buildConfig: Schema.Struct({
1454
- webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1455
- webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1456
- buildCaching: Schema.optional(
1365
+ production: Schema.Struct({
1366
+ aiBindings: Schema.optional(
1367
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1368
+ ),
1369
+ alwaysUseLatestCompatibilityDate: Schema.optional(
1457
1370
  Schema.Union([Schema.Boolean, Schema.Null]),
1458
1371
  ),
1459
- buildCommand: Schema.optional(
1372
+ analyticsEngineDatasets: Schema.optional(
1373
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1374
+ ),
1375
+ browsers: Schema.optional(
1376
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1377
+ ),
1378
+ buildImageMajorVersion: Schema.optional(
1379
+ Schema.Union([Schema.Number, Schema.Null]),
1380
+ ),
1381
+ compatibilityDate: Schema.optional(
1460
1382
  Schema.Union([Schema.String, Schema.Null]),
1461
1383
  ),
1462
- destinationDir: Schema.optional(
1384
+ compatibilityFlags: Schema.optional(
1385
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1386
+ ),
1387
+ d1Databases: Schema.optional(
1388
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1389
+ ),
1390
+ durableObjectNamespaces: Schema.optional(
1391
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1392
+ ),
1393
+ envVars: Schema.optional(
1394
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1395
+ ),
1396
+ failOpen: Schema.optional(
1397
+ Schema.Union([Schema.Boolean, Schema.Null]),
1398
+ ),
1399
+ hyperdriveBindings: Schema.optional(
1400
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1401
+ ),
1402
+ kvNamespaces: Schema.optional(
1403
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1404
+ ),
1405
+ limits: Schema.optional(
1406
+ Schema.Union([
1407
+ Schema.Struct({
1408
+ cpuMs: Schema.Number,
1409
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1410
+ Schema.Null,
1411
+ ]),
1412
+ ),
1413
+ mtlsCertificates: Schema.optional(
1414
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1415
+ ),
1416
+ placement: Schema.optional(
1417
+ Schema.Union([
1418
+ Schema.Struct({
1419
+ mode: Schema.String,
1420
+ }),
1421
+ Schema.Null,
1422
+ ]),
1423
+ ),
1424
+ queueProducers: Schema.optional(
1425
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1426
+ ),
1427
+ r2Buckets: Schema.optional(
1428
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1429
+ ),
1430
+ services: Schema.optional(
1431
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1432
+ ),
1433
+ usageModel: Schema.optional(
1434
+ Schema.Union([
1435
+ Schema.Literals(["standard", "bundled", "unbound"]),
1436
+ Schema.Null,
1437
+ ]),
1438
+ ),
1439
+ vectorizeBindings: Schema.optional(
1440
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1441
+ ),
1442
+ wranglerConfigHash: Schema.optional(
1463
1443
  Schema.Union([Schema.String, Schema.Null]),
1464
1444
  ),
1465
- rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1466
1445
  }).pipe(
1467
1446
  Schema.encodeKeys({
1468
- webAnalyticsTag: "web_analytics_tag",
1469
- webAnalyticsToken: "web_analytics_token",
1470
- buildCaching: "build_caching",
1471
- buildCommand: "build_command",
1472
- destinationDir: "destination_dir",
1473
- rootDir: "root_dir",
1447
+ aiBindings: "ai_bindings",
1448
+ alwaysUseLatestCompatibilityDate:
1449
+ "always_use_latest_compatibility_date",
1450
+ analyticsEngineDatasets: "analytics_engine_datasets",
1451
+ browsers: "browsers",
1452
+ buildImageMajorVersion: "build_image_major_version",
1453
+ compatibilityDate: "compatibility_date",
1454
+ compatibilityFlags: "compatibility_flags",
1455
+ d1Databases: "d1_databases",
1456
+ durableObjectNamespaces: "durable_object_namespaces",
1457
+ envVars: "env_vars",
1458
+ failOpen: "fail_open",
1459
+ hyperdriveBindings: "hyperdrive_bindings",
1460
+ kvNamespaces: "kv_namespaces",
1461
+ limits: "limits",
1462
+ mtlsCertificates: "mtls_certificates",
1463
+ placement: "placement",
1464
+ queueProducers: "queue_producers",
1465
+ r2Buckets: "r2_buckets",
1466
+ services: "services",
1467
+ usageModel: "usage_model",
1468
+ vectorizeBindings: "vectorize_bindings",
1469
+ wranglerConfigHash: "wrangler_config_hash",
1474
1470
  }),
1475
1471
  ),
1476
- createdOn: Schema.String,
1477
- deploymentTrigger: Schema.Struct({
1478
- metadata: Schema.Struct({
1479
- branch: Schema.String,
1480
- commitDirty: Schema.Boolean,
1481
- commitHash: Schema.String,
1482
- commitMessage: Schema.String,
1483
- }).pipe(
1484
- Schema.encodeKeys({
1485
- branch: "branch",
1486
- commitDirty: "commit_dirty",
1487
- commitHash: "commit_hash",
1488
- commitMessage: "commit_message",
1489
- }),
1490
- ),
1491
- type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1492
- }),
1493
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
1494
- environment: Schema.Literals(["preview", "production"]),
1495
- isSkipped: Schema.Boolean,
1496
- latestStage: Schema.Unknown,
1497
- modifiedOn: Schema.String,
1498
- projectId: Schema.String,
1499
- projectName: Schema.String,
1500
- shortId: Schema.String,
1501
- source: Schema.Struct({
1502
- config: Schema.Struct({
1503
- deploymentsEnabled: Schema.optional(
1472
+ }),
1473
+ framework: Schema.String,
1474
+ frameworkVersion: Schema.String,
1475
+ latestDeployment: Schema.Union([
1476
+ Schema.Struct({
1477
+ id: Schema.String,
1478
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1479
+ buildConfig: Schema.Struct({
1480
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1481
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1482
+ buildCaching: Schema.optional(
1504
1483
  Schema.Union([Schema.Boolean, Schema.Null]),
1505
1484
  ),
1506
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1507
- ownerId: Schema.optional(
1485
+ buildCommand: Schema.optional(
1508
1486
  Schema.Union([Schema.String, Schema.Null]),
1509
1487
  ),
1510
- pathExcludes: Schema.optional(
1511
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1512
- ),
1513
- pathIncludes: Schema.optional(
1514
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1515
- ),
1516
- prCommentsEnabled: Schema.optional(
1517
- Schema.Union([Schema.Boolean, Schema.Null]),
1518
- ),
1519
- previewBranchExcludes: Schema.optional(
1520
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1521
- ),
1522
- previewBranchIncludes: Schema.optional(
1523
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1524
- ),
1525
- previewDeploymentSetting: Schema.optional(
1526
- Schema.Union([
1527
- Schema.Literals(["all", "none", "custom"]),
1528
- Schema.Null,
1529
- ]),
1530
- ),
1531
- productionBranch: Schema.optional(
1488
+ destinationDir: Schema.optional(
1532
1489
  Schema.Union([Schema.String, Schema.Null]),
1533
1490
  ),
1534
- productionDeploymentsEnabled: Schema.optional(
1535
- Schema.Union([Schema.Boolean, Schema.Null]),
1536
- ),
1537
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1538
- repoName: Schema.optional(
1491
+ rootDir: Schema.optional(
1539
1492
  Schema.Union([Schema.String, Schema.Null]),
1540
1493
  ),
1541
1494
  }).pipe(
1542
1495
  Schema.encodeKeys({
1543
- deploymentsEnabled: "deployments_enabled",
1544
- owner: "owner",
1545
- ownerId: "owner_id",
1546
- pathExcludes: "path_excludes",
1547
- pathIncludes: "path_includes",
1548
- prCommentsEnabled: "pr_comments_enabled",
1549
- previewBranchExcludes: "preview_branch_excludes",
1550
- previewBranchIncludes: "preview_branch_includes",
1551
- previewDeploymentSetting: "preview_deployment_setting",
1552
- productionBranch: "production_branch",
1553
- productionDeploymentsEnabled: "production_deployments_enabled",
1554
- repoId: "repo_id",
1555
- repoName: "repo_name",
1496
+ webAnalyticsTag: "web_analytics_tag",
1497
+ webAnalyticsToken: "web_analytics_token",
1498
+ buildCaching: "build_caching",
1499
+ buildCommand: "build_command",
1500
+ destinationDir: "destination_dir",
1501
+ rootDir: "root_dir",
1556
1502
  }),
1557
1503
  ),
1558
- type: Schema.Literals(["github", "gitlab"]),
1559
- }),
1560
- stages: Schema.Array(Schema.Unknown),
1561
- url: Schema.String,
1562
- usesFunctions: Schema.optional(
1563
- Schema.Union([Schema.Boolean, Schema.Null]),
1564
- ),
1565
- }).pipe(
1566
- Schema.encodeKeys({
1567
- id: "id",
1568
- aliases: "aliases",
1569
- buildConfig: "build_config",
1570
- createdOn: "created_on",
1571
- deploymentTrigger: "deployment_trigger",
1572
- envVars: "env_vars",
1573
- environment: "environment",
1574
- isSkipped: "is_skipped",
1575
- latestStage: "latest_stage",
1576
- modifiedOn: "modified_on",
1577
- projectId: "project_id",
1578
- projectName: "project_name",
1579
- shortId: "short_id",
1580
- source: "source",
1581
- stages: "stages",
1582
- url: "url",
1583
- usesFunctions: "uses_functions",
1584
- }),
1585
- ),
1586
- Schema.Null,
1587
- ]),
1588
- name: Schema.String,
1589
- previewScriptName: Schema.String,
1590
- productionBranch: Schema.String,
1591
- productionScriptName: Schema.String,
1592
- usesFunctions: Schema.Union([Schema.Boolean, Schema.Null]),
1593
- buildConfig: Schema.optional(
1594
- Schema.Union([
1595
- Schema.Struct({
1596
- webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1597
- webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1598
- buildCaching: Schema.optional(
1504
+ createdOn: Schema.String,
1505
+ deploymentTrigger: Schema.Struct({
1506
+ metadata: Schema.Struct({
1507
+ branch: Schema.String,
1508
+ commitDirty: Schema.Boolean,
1509
+ commitHash: Schema.String,
1510
+ commitMessage: Schema.String,
1511
+ }).pipe(
1512
+ Schema.encodeKeys({
1513
+ branch: "branch",
1514
+ commitDirty: "commit_dirty",
1515
+ commitHash: "commit_hash",
1516
+ commitMessage: "commit_message",
1517
+ }),
1518
+ ),
1519
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
1520
+ }),
1521
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
1522
+ environment: Schema.Literals(["preview", "production"]),
1523
+ isSkipped: Schema.Boolean,
1524
+ latestStage: Schema.Unknown,
1525
+ modifiedOn: Schema.String,
1526
+ projectId: Schema.String,
1527
+ projectName: Schema.String,
1528
+ shortId: Schema.String,
1529
+ source: Schema.Struct({
1530
+ config: Schema.Struct({
1531
+ deploymentsEnabled: Schema.optional(
1532
+ Schema.Union([Schema.Boolean, Schema.Null]),
1533
+ ),
1534
+ owner: Schema.optional(
1535
+ Schema.Union([Schema.String, Schema.Null]),
1536
+ ),
1537
+ ownerId: Schema.optional(
1538
+ Schema.Union([Schema.String, Schema.Null]),
1539
+ ),
1540
+ pathExcludes: Schema.optional(
1541
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1542
+ ),
1543
+ pathIncludes: Schema.optional(
1544
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1545
+ ),
1546
+ prCommentsEnabled: Schema.optional(
1547
+ Schema.Union([Schema.Boolean, Schema.Null]),
1548
+ ),
1549
+ previewBranchExcludes: Schema.optional(
1550
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1551
+ ),
1552
+ previewBranchIncludes: Schema.optional(
1553
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1554
+ ),
1555
+ previewDeploymentSetting: Schema.optional(
1556
+ Schema.Union([
1557
+ Schema.Literals(["all", "none", "custom"]),
1558
+ Schema.Null,
1559
+ ]),
1560
+ ),
1561
+ productionBranch: Schema.optional(
1562
+ Schema.Union([Schema.String, Schema.Null]),
1563
+ ),
1564
+ productionDeploymentsEnabled: Schema.optional(
1565
+ Schema.Union([Schema.Boolean, Schema.Null]),
1566
+ ),
1567
+ repoId: Schema.optional(
1568
+ Schema.Union([Schema.String, Schema.Null]),
1569
+ ),
1570
+ repoName: Schema.optional(
1571
+ Schema.Union([Schema.String, Schema.Null]),
1572
+ ),
1573
+ }).pipe(
1574
+ Schema.encodeKeys({
1575
+ deploymentsEnabled: "deployments_enabled",
1576
+ owner: "owner",
1577
+ ownerId: "owner_id",
1578
+ pathExcludes: "path_excludes",
1579
+ pathIncludes: "path_includes",
1580
+ prCommentsEnabled: "pr_comments_enabled",
1581
+ previewBranchExcludes: "preview_branch_excludes",
1582
+ previewBranchIncludes: "preview_branch_includes",
1583
+ previewDeploymentSetting: "preview_deployment_setting",
1584
+ productionBranch: "production_branch",
1585
+ productionDeploymentsEnabled: "production_deployments_enabled",
1586
+ repoId: "repo_id",
1587
+ repoName: "repo_name",
1588
+ }),
1589
+ ),
1590
+ type: Schema.Literals(["github", "gitlab"]),
1591
+ }),
1592
+ stages: Schema.Array(Schema.Unknown),
1593
+ url: Schema.String,
1594
+ usesFunctions: Schema.optional(
1599
1595
  Schema.Union([Schema.Boolean, Schema.Null]),
1600
1596
  ),
1601
- buildCommand: Schema.optional(
1602
- Schema.Union([Schema.String, Schema.Null]),
1603
- ),
1604
- destinationDir: Schema.optional(
1605
- Schema.Union([Schema.String, Schema.Null]),
1606
- ),
1607
- rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1608
1597
  }).pipe(
1609
1598
  Schema.encodeKeys({
1610
- webAnalyticsTag: "web_analytics_tag",
1611
- webAnalyticsToken: "web_analytics_token",
1612
- buildCaching: "build_caching",
1613
- buildCommand: "build_command",
1614
- destinationDir: "destination_dir",
1615
- rootDir: "root_dir",
1599
+ id: "id",
1600
+ aliases: "aliases",
1601
+ buildConfig: "build_config",
1602
+ createdOn: "created_on",
1603
+ deploymentTrigger: "deployment_trigger",
1604
+ envVars: "env_vars",
1605
+ environment: "environment",
1606
+ isSkipped: "is_skipped",
1607
+ latestStage: "latest_stage",
1608
+ modifiedOn: "modified_on",
1609
+ projectId: "project_id",
1610
+ projectName: "project_name",
1611
+ shortId: "short_id",
1612
+ source: "source",
1613
+ stages: "stages",
1614
+ url: "url",
1615
+ usesFunctions: "uses_functions",
1616
1616
  }),
1617
1617
  ),
1618
1618
  Schema.Null,
1619
1619
  ]),
1620
- ),
1621
- domains: Schema.optional(
1622
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1623
- ),
1624
- source: Schema.optional(
1625
- Schema.Union([
1626
- Schema.Struct({
1627
- config: Schema.Struct({
1628
- deploymentsEnabled: Schema.optional(
1620
+ name: Schema.String,
1621
+ previewScriptName: Schema.String,
1622
+ productionBranch: Schema.String,
1623
+ productionScriptName: Schema.String,
1624
+ usesFunctions: Schema.Union([Schema.Boolean, Schema.Null]),
1625
+ buildConfig: Schema.optional(
1626
+ Schema.Union([
1627
+ Schema.Struct({
1628
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
1629
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
1630
+ buildCaching: Schema.optional(
1629
1631
  Schema.Union([Schema.Boolean, Schema.Null]),
1630
1632
  ),
1631
- owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1632
- ownerId: Schema.optional(
1633
+ buildCommand: Schema.optional(
1633
1634
  Schema.Union([Schema.String, Schema.Null]),
1634
1635
  ),
1635
- pathExcludes: Schema.optional(
1636
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1637
- ),
1638
- pathIncludes: Schema.optional(
1639
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1640
- ),
1641
- prCommentsEnabled: Schema.optional(
1642
- Schema.Union([Schema.Boolean, Schema.Null]),
1643
- ),
1644
- previewBranchExcludes: Schema.optional(
1645
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1646
- ),
1647
- previewBranchIncludes: Schema.optional(
1648
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1649
- ),
1650
- previewDeploymentSetting: Schema.optional(
1651
- Schema.Union([
1652
- Schema.Literals(["all", "none", "custom"]),
1653
- Schema.Null,
1654
- ]),
1655
- ),
1656
- productionBranch: Schema.optional(
1636
+ destinationDir: Schema.optional(
1657
1637
  Schema.Union([Schema.String, Schema.Null]),
1658
1638
  ),
1659
- productionDeploymentsEnabled: Schema.optional(
1660
- Schema.Union([Schema.Boolean, Schema.Null]),
1661
- ),
1662
- repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1663
- repoName: Schema.optional(
1639
+ rootDir: Schema.optional(
1664
1640
  Schema.Union([Schema.String, Schema.Null]),
1665
1641
  ),
1666
1642
  }).pipe(
1667
1643
  Schema.encodeKeys({
1668
- deploymentsEnabled: "deployments_enabled",
1669
- owner: "owner",
1670
- ownerId: "owner_id",
1671
- pathExcludes: "path_excludes",
1672
- pathIncludes: "path_includes",
1673
- prCommentsEnabled: "pr_comments_enabled",
1674
- previewBranchExcludes: "preview_branch_excludes",
1675
- previewBranchIncludes: "preview_branch_includes",
1676
- previewDeploymentSetting: "preview_deployment_setting",
1677
- productionBranch: "production_branch",
1678
- productionDeploymentsEnabled: "production_deployments_enabled",
1679
- repoId: "repo_id",
1680
- repoName: "repo_name",
1644
+ webAnalyticsTag: "web_analytics_tag",
1645
+ webAnalyticsToken: "web_analytics_token",
1646
+ buildCaching: "build_caching",
1647
+ buildCommand: "build_command",
1648
+ destinationDir: "destination_dir",
1649
+ rootDir: "root_dir",
1681
1650
  }),
1682
1651
  ),
1683
- type: Schema.Literals(["github", "gitlab"]),
1684
- }),
1685
- Schema.Null,
1686
- ]),
1652
+ Schema.Null,
1653
+ ]),
1654
+ ),
1655
+ domains: Schema.optional(
1656
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1657
+ ),
1658
+ source: Schema.optional(
1659
+ Schema.Union([
1660
+ Schema.Struct({
1661
+ config: Schema.Struct({
1662
+ deploymentsEnabled: Schema.optional(
1663
+ Schema.Union([Schema.Boolean, Schema.Null]),
1664
+ ),
1665
+ owner: Schema.optional(
1666
+ Schema.Union([Schema.String, Schema.Null]),
1667
+ ),
1668
+ ownerId: Schema.optional(
1669
+ Schema.Union([Schema.String, Schema.Null]),
1670
+ ),
1671
+ pathExcludes: Schema.optional(
1672
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1673
+ ),
1674
+ pathIncludes: Schema.optional(
1675
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1676
+ ),
1677
+ prCommentsEnabled: Schema.optional(
1678
+ Schema.Union([Schema.Boolean, Schema.Null]),
1679
+ ),
1680
+ previewBranchExcludes: Schema.optional(
1681
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1682
+ ),
1683
+ previewBranchIncludes: Schema.optional(
1684
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1685
+ ),
1686
+ previewDeploymentSetting: Schema.optional(
1687
+ Schema.Union([
1688
+ Schema.Literals(["all", "none", "custom"]),
1689
+ Schema.Null,
1690
+ ]),
1691
+ ),
1692
+ productionBranch: Schema.optional(
1693
+ Schema.Union([Schema.String, Schema.Null]),
1694
+ ),
1695
+ productionDeploymentsEnabled: Schema.optional(
1696
+ Schema.Union([Schema.Boolean, Schema.Null]),
1697
+ ),
1698
+ repoId: Schema.optional(
1699
+ Schema.Union([Schema.String, Schema.Null]),
1700
+ ),
1701
+ repoName: Schema.optional(
1702
+ Schema.Union([Schema.String, Schema.Null]),
1703
+ ),
1704
+ }).pipe(
1705
+ Schema.encodeKeys({
1706
+ deploymentsEnabled: "deployments_enabled",
1707
+ owner: "owner",
1708
+ ownerId: "owner_id",
1709
+ pathExcludes: "path_excludes",
1710
+ pathIncludes: "path_includes",
1711
+ prCommentsEnabled: "pr_comments_enabled",
1712
+ previewBranchExcludes: "preview_branch_excludes",
1713
+ previewBranchIncludes: "preview_branch_includes",
1714
+ previewDeploymentSetting: "preview_deployment_setting",
1715
+ productionBranch: "production_branch",
1716
+ productionDeploymentsEnabled: "production_deployments_enabled",
1717
+ repoId: "repo_id",
1718
+ repoName: "repo_name",
1719
+ }),
1720
+ ),
1721
+ type: Schema.Literals(["github", "gitlab"]),
1722
+ }),
1723
+ Schema.Null,
1724
+ ]),
1725
+ ),
1726
+ subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1727
+ }).pipe(
1728
+ Schema.encodeKeys({
1729
+ id: "id",
1730
+ canonicalDeployment: "canonical_deployment",
1731
+ createdOn: "created_on",
1732
+ deploymentConfigs: "deployment_configs",
1733
+ framework: "framework",
1734
+ frameworkVersion: "framework_version",
1735
+ latestDeployment: "latest_deployment",
1736
+ name: "name",
1737
+ previewScriptName: "preview_script_name",
1738
+ productionBranch: "production_branch",
1739
+ productionScriptName: "production_script_name",
1740
+ usesFunctions: "uses_functions",
1741
+ buildConfig: "build_config",
1742
+ domains: "domains",
1743
+ source: "source",
1744
+ subdomain: "subdomain",
1745
+ }),
1687
1746
  ),
1688
- subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1747
+ ),
1748
+ resultInfo: Schema.Struct({
1749
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1750
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1751
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1752
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1689
1753
  }).pipe(
1690
1754
  Schema.encodeKeys({
1691
- id: "id",
1692
- canonicalDeployment: "canonical_deployment",
1693
- createdOn: "created_on",
1694
- deploymentConfigs: "deployment_configs",
1695
- framework: "framework",
1696
- frameworkVersion: "framework_version",
1697
- latestDeployment: "latest_deployment",
1698
- name: "name",
1699
- previewScriptName: "preview_script_name",
1700
- productionBranch: "production_branch",
1701
- productionScriptName: "production_script_name",
1702
- usesFunctions: "uses_functions",
1703
- buildConfig: "build_config",
1704
- domains: "domains",
1705
- source: "source",
1706
- subdomain: "subdomain",
1755
+ count: "count",
1756
+ page: "page",
1757
+ perPage: "per_page",
1758
+ totalCount: "total_count",
1707
1759
  }),
1708
1760
  ),
1761
+ }).pipe(
1762
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
1709
1763
  ) as unknown as Schema.Schema<ListProjectsResponse>;
1710
1764
 
1711
1765
  export type ListProjectsError = DefaultErrors;
1712
1766
 
1713
- export const listProjects: API.OperationMethod<
1767
+ export const listProjects: API.PaginatedOperationMethod<
1714
1768
  ListProjectsRequest,
1715
1769
  ListProjectsResponse,
1716
1770
  ListProjectsError,
1717
1771
  Credentials | HttpClient.HttpClient
1718
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1772
+ > & {
1773
+ pages: (
1774
+ input: ListProjectsRequest,
1775
+ ) => stream.Stream<
1776
+ ListProjectsResponse,
1777
+ ListProjectsError,
1778
+ Credentials | HttpClient.HttpClient
1779
+ >;
1780
+ items: (input: ListProjectsRequest) => stream.Stream<
1781
+ {
1782
+ id: string;
1783
+ canonicalDeployment: {
1784
+ id: string;
1785
+ aliases: string[] | null;
1786
+ buildConfig: {
1787
+ webAnalyticsTag: string | null;
1788
+ webAnalyticsToken: string | null;
1789
+ buildCaching?: boolean | null;
1790
+ buildCommand?: string | null;
1791
+ destinationDir?: string | null;
1792
+ rootDir?: string | null;
1793
+ };
1794
+ createdOn: string;
1795
+ deploymentTrigger: {
1796
+ metadata: {
1797
+ branch: string;
1798
+ commitDirty: boolean;
1799
+ commitHash: string;
1800
+ commitMessage: string;
1801
+ };
1802
+ type: "github:push" | "ad_hoc" | "deploy_hook";
1803
+ };
1804
+ envVars: Record<string, unknown> | null;
1805
+ environment: "preview" | "production";
1806
+ isSkipped: boolean;
1807
+ latestStage: unknown;
1808
+ modifiedOn: string;
1809
+ projectId: string;
1810
+ projectName: string;
1811
+ shortId: string;
1812
+ source: {
1813
+ config: {
1814
+ deploymentsEnabled?: boolean | null;
1815
+ owner?: string | null;
1816
+ ownerId?: string | null;
1817
+ pathExcludes?: string[] | null;
1818
+ pathIncludes?: string[] | null;
1819
+ prCommentsEnabled?: boolean | null;
1820
+ previewBranchExcludes?: string[] | null;
1821
+ previewBranchIncludes?: string[] | null;
1822
+ previewDeploymentSetting?: "all" | "none" | "custom" | null;
1823
+ productionBranch?: string | null;
1824
+ productionDeploymentsEnabled?: boolean | null;
1825
+ repoId?: string | null;
1826
+ repoName?: string | null;
1827
+ };
1828
+ type: "github" | "gitlab";
1829
+ };
1830
+ stages: unknown[];
1831
+ url: string;
1832
+ usesFunctions?: boolean | null;
1833
+ } | null;
1834
+ createdOn: string;
1835
+ deploymentConfigs: {
1836
+ preview: {
1837
+ aiBindings?: Record<string, unknown> | null;
1838
+ alwaysUseLatestCompatibilityDate?: boolean | null;
1839
+ analyticsEngineDatasets?: Record<string, unknown> | null;
1840
+ browsers?: Record<string, unknown> | null;
1841
+ buildImageMajorVersion?: number | null;
1842
+ compatibilityDate?: string | null;
1843
+ compatibilityFlags?: string[] | null;
1844
+ d1Databases?: Record<string, unknown> | null;
1845
+ durableObjectNamespaces?: Record<string, unknown> | null;
1846
+ envVars?: Record<string, unknown> | null;
1847
+ failOpen?: boolean | null;
1848
+ hyperdriveBindings?: Record<string, unknown> | null;
1849
+ kvNamespaces?: Record<string, unknown> | null;
1850
+ limits?: { cpuMs: number } | null;
1851
+ mtlsCertificates?: Record<string, unknown> | null;
1852
+ placement?: { mode: string } | null;
1853
+ queueProducers?: Record<string, unknown> | null;
1854
+ r2Buckets?: Record<string, unknown> | null;
1855
+ services?: Record<string, unknown> | null;
1856
+ usageModel?: "standard" | "bundled" | "unbound" | null;
1857
+ vectorizeBindings?: Record<string, unknown> | null;
1858
+ wranglerConfigHash?: string | null;
1859
+ };
1860
+ production: {
1861
+ aiBindings?: Record<string, unknown> | null;
1862
+ alwaysUseLatestCompatibilityDate?: boolean | null;
1863
+ analyticsEngineDatasets?: Record<string, unknown> | null;
1864
+ browsers?: Record<string, unknown> | null;
1865
+ buildImageMajorVersion?: number | null;
1866
+ compatibilityDate?: string | null;
1867
+ compatibilityFlags?: string[] | null;
1868
+ d1Databases?: Record<string, unknown> | null;
1869
+ durableObjectNamespaces?: Record<string, unknown> | null;
1870
+ envVars?: Record<string, unknown> | null;
1871
+ failOpen?: boolean | null;
1872
+ hyperdriveBindings?: Record<string, unknown> | null;
1873
+ kvNamespaces?: Record<string, unknown> | null;
1874
+ limits?: { cpuMs: number } | null;
1875
+ mtlsCertificates?: Record<string, unknown> | null;
1876
+ placement?: { mode: string } | null;
1877
+ queueProducers?: Record<string, unknown> | null;
1878
+ r2Buckets?: Record<string, unknown> | null;
1879
+ services?: Record<string, unknown> | null;
1880
+ usageModel?: "standard" | "bundled" | "unbound" | null;
1881
+ vectorizeBindings?: Record<string, unknown> | null;
1882
+ wranglerConfigHash?: string | null;
1883
+ };
1884
+ };
1885
+ framework: string;
1886
+ frameworkVersion: string;
1887
+ latestDeployment: {
1888
+ id: string;
1889
+ aliases: string[] | null;
1890
+ buildConfig: {
1891
+ webAnalyticsTag: string | null;
1892
+ webAnalyticsToken: string | null;
1893
+ buildCaching?: boolean | null;
1894
+ buildCommand?: string | null;
1895
+ destinationDir?: string | null;
1896
+ rootDir?: string | null;
1897
+ };
1898
+ createdOn: string;
1899
+ deploymentTrigger: {
1900
+ metadata: {
1901
+ branch: string;
1902
+ commitDirty: boolean;
1903
+ commitHash: string;
1904
+ commitMessage: string;
1905
+ };
1906
+ type: "github:push" | "ad_hoc" | "deploy_hook";
1907
+ };
1908
+ envVars: Record<string, unknown> | null;
1909
+ environment: "preview" | "production";
1910
+ isSkipped: boolean;
1911
+ latestStage: unknown;
1912
+ modifiedOn: string;
1913
+ projectId: string;
1914
+ projectName: string;
1915
+ shortId: string;
1916
+ source: {
1917
+ config: {
1918
+ deploymentsEnabled?: boolean | null;
1919
+ owner?: string | null;
1920
+ ownerId?: string | null;
1921
+ pathExcludes?: string[] | null;
1922
+ pathIncludes?: string[] | null;
1923
+ prCommentsEnabled?: boolean | null;
1924
+ previewBranchExcludes?: string[] | null;
1925
+ previewBranchIncludes?: string[] | null;
1926
+ previewDeploymentSetting?: "all" | "none" | "custom" | null;
1927
+ productionBranch?: string | null;
1928
+ productionDeploymentsEnabled?: boolean | null;
1929
+ repoId?: string | null;
1930
+ repoName?: string | null;
1931
+ };
1932
+ type: "github" | "gitlab";
1933
+ };
1934
+ stages: unknown[];
1935
+ url: string;
1936
+ usesFunctions?: boolean | null;
1937
+ } | null;
1938
+ name: string;
1939
+ previewScriptName: string;
1940
+ productionBranch: string;
1941
+ productionScriptName: string;
1942
+ usesFunctions: boolean | null;
1943
+ buildConfig?: {
1944
+ webAnalyticsTag: string | null;
1945
+ webAnalyticsToken: string | null;
1946
+ buildCaching?: boolean | null;
1947
+ buildCommand?: string | null;
1948
+ destinationDir?: string | null;
1949
+ rootDir?: string | null;
1950
+ } | null;
1951
+ domains?: string[] | null;
1952
+ source?: {
1953
+ config: {
1954
+ deploymentsEnabled?: boolean | null;
1955
+ owner?: string | null;
1956
+ ownerId?: string | null;
1957
+ pathExcludes?: string[] | null;
1958
+ pathIncludes?: string[] | null;
1959
+ prCommentsEnabled?: boolean | null;
1960
+ previewBranchExcludes?: string[] | null;
1961
+ previewBranchIncludes?: string[] | null;
1962
+ previewDeploymentSetting?: "all" | "none" | "custom" | null;
1963
+ productionBranch?: string | null;
1964
+ productionDeploymentsEnabled?: boolean | null;
1965
+ repoId?: string | null;
1966
+ repoName?: string | null;
1967
+ };
1968
+ type: "github" | "gitlab";
1969
+ } | null;
1970
+ subdomain?: string | null;
1971
+ },
1972
+ ListProjectsError,
1973
+ Credentials | HttpClient.HttpClient
1974
+ >;
1975
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1719
1976
  input: ListProjectsRequest,
1720
1977
  output: ListProjectsResponse,
1721
1978
  errors: [],
1979
+ pagination: {
1980
+ mode: "page",
1981
+ inputToken: "page",
1982
+ outputToken: "resultInfo.page",
1983
+ items: "result",
1984
+ pageSize: "perPage",
1985
+ } as const,
1722
1986
  }));
1723
1987
 
1724
1988
  export interface CreateProjectRequest {
@@ -2793,26 +3057,30 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2793
3057
  ]),
2794
3058
  ),
2795
3059
  subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2796
- }).pipe(
2797
- Schema.encodeKeys({
2798
- id: "id",
2799
- canonicalDeployment: "canonical_deployment",
2800
- createdOn: "created_on",
2801
- deploymentConfigs: "deployment_configs",
2802
- framework: "framework",
2803
- frameworkVersion: "framework_version",
2804
- latestDeployment: "latest_deployment",
2805
- name: "name",
2806
- previewScriptName: "preview_script_name",
2807
- productionBranch: "production_branch",
2808
- productionScriptName: "production_script_name",
2809
- usesFunctions: "uses_functions",
2810
- buildConfig: "build_config",
2811
- domains: "domains",
2812
- source: "source",
2813
- subdomain: "subdomain",
2814
- }),
2815
- ) as unknown as Schema.Schema<CreateProjectResponse>;
3060
+ })
3061
+ .pipe(
3062
+ Schema.encodeKeys({
3063
+ id: "id",
3064
+ canonicalDeployment: "canonical_deployment",
3065
+ createdOn: "created_on",
3066
+ deploymentConfigs: "deployment_configs",
3067
+ framework: "framework",
3068
+ frameworkVersion: "framework_version",
3069
+ latestDeployment: "latest_deployment",
3070
+ name: "name",
3071
+ previewScriptName: "preview_script_name",
3072
+ productionBranch: "production_branch",
3073
+ productionScriptName: "production_script_name",
3074
+ usesFunctions: "uses_functions",
3075
+ buildConfig: "build_config",
3076
+ domains: "domains",
3077
+ source: "source",
3078
+ subdomain: "subdomain",
3079
+ }),
3080
+ )
3081
+ .pipe(
3082
+ T.ResponsePath("result"),
3083
+ ) as unknown as Schema.Schema<CreateProjectResponse>;
2816
3084
 
2817
3085
  export type CreateProjectError = DefaultErrors;
2818
3086
 
@@ -3904,26 +4172,30 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3904
4172
  ]),
3905
4173
  ),
3906
4174
  subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3907
- }).pipe(
3908
- Schema.encodeKeys({
3909
- id: "id",
3910
- canonicalDeployment: "canonical_deployment",
3911
- createdOn: "created_on",
3912
- deploymentConfigs: "deployment_configs",
3913
- framework: "framework",
3914
- frameworkVersion: "framework_version",
3915
- latestDeployment: "latest_deployment",
3916
- name: "name",
3917
- previewScriptName: "preview_script_name",
3918
- productionBranch: "production_branch",
3919
- productionScriptName: "production_script_name",
3920
- usesFunctions: "uses_functions",
3921
- buildConfig: "build_config",
3922
- domains: "domains",
3923
- source: "source",
3924
- subdomain: "subdomain",
3925
- }),
3926
- ) as unknown as Schema.Schema<PatchProjectResponse>;
4175
+ })
4176
+ .pipe(
4177
+ Schema.encodeKeys({
4178
+ id: "id",
4179
+ canonicalDeployment: "canonical_deployment",
4180
+ createdOn: "created_on",
4181
+ deploymentConfigs: "deployment_configs",
4182
+ framework: "framework",
4183
+ frameworkVersion: "framework_version",
4184
+ latestDeployment: "latest_deployment",
4185
+ name: "name",
4186
+ previewScriptName: "preview_script_name",
4187
+ productionBranch: "production_branch",
4188
+ productionScriptName: "production_script_name",
4189
+ usesFunctions: "uses_functions",
4190
+ buildConfig: "build_config",
4191
+ domains: "domains",
4192
+ source: "source",
4193
+ subdomain: "subdomain",
4194
+ }),
4195
+ )
4196
+ .pipe(
4197
+ T.ResponsePath("result"),
4198
+ ) as unknown as Schema.Schema<PatchProjectResponse>;
3927
4199
 
3928
4200
  export type PatchProjectError = DefaultErrors;
3929
4201
 
@@ -3957,7 +4229,9 @@ export const DeleteProjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3957
4229
  export type DeleteProjectResponse = unknown;
3958
4230
 
3959
4231
  export const DeleteProjectResponse =
3960
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DeleteProjectResponse>;
4232
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
4233
+ T.ResponsePath("result"),
4234
+ ) as unknown as Schema.Schema<DeleteProjectResponse>;
3961
4235
 
3962
4236
  export type DeleteProjectError = DefaultErrors;
3963
4237
 
@@ -4151,27 +4425,31 @@ export const GetProjectDeploymentResponse =
4151
4425
  stages: Schema.Array(Schema.Unknown),
4152
4426
  url: Schema.String,
4153
4427
  usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4154
- }).pipe(
4155
- Schema.encodeKeys({
4156
- id: "id",
4157
- aliases: "aliases",
4158
- buildConfig: "build_config",
4159
- createdOn: "created_on",
4160
- deploymentTrigger: "deployment_trigger",
4161
- envVars: "env_vars",
4162
- environment: "environment",
4163
- isSkipped: "is_skipped",
4164
- latestStage: "latest_stage",
4165
- modifiedOn: "modified_on",
4166
- projectId: "project_id",
4167
- projectName: "project_name",
4168
- shortId: "short_id",
4169
- source: "source",
4170
- stages: "stages",
4171
- url: "url",
4172
- usesFunctions: "uses_functions",
4173
- }),
4174
- ) as unknown as Schema.Schema<GetProjectDeploymentResponse>;
4428
+ })
4429
+ .pipe(
4430
+ Schema.encodeKeys({
4431
+ id: "id",
4432
+ aliases: "aliases",
4433
+ buildConfig: "build_config",
4434
+ createdOn: "created_on",
4435
+ deploymentTrigger: "deployment_trigger",
4436
+ envVars: "env_vars",
4437
+ environment: "environment",
4438
+ isSkipped: "is_skipped",
4439
+ latestStage: "latest_stage",
4440
+ modifiedOn: "modified_on",
4441
+ projectId: "project_id",
4442
+ projectName: "project_name",
4443
+ shortId: "short_id",
4444
+ source: "source",
4445
+ stages: "stages",
4446
+ url: "url",
4447
+ usesFunctions: "uses_functions",
4448
+ }),
4449
+ )
4450
+ .pipe(
4451
+ T.ResponsePath("result"),
4452
+ ) as unknown as Schema.Schema<GetProjectDeploymentResponse>;
4175
4453
 
4176
4454
  export type GetProjectDeploymentError = DefaultErrors;
4177
4455
 
@@ -4208,184 +4486,283 @@ export const ListProjectDeploymentsRequest =
4208
4486
  }),
4209
4487
  ) as unknown as Schema.Schema<ListProjectDeploymentsRequest>;
4210
4488
 
4211
- export type ListProjectDeploymentsResponse = {
4212
- id: string;
4213
- aliases: string[] | null;
4214
- buildConfig: {
4215
- webAnalyticsTag: string | null;
4216
- webAnalyticsToken: string | null;
4217
- buildCaching?: boolean | null;
4218
- buildCommand?: string | null;
4219
- destinationDir?: string | null;
4220
- rootDir?: string | null;
4221
- };
4222
- createdOn: string;
4223
- deploymentTrigger: {
4224
- metadata: {
4225
- branch: string;
4226
- commitDirty: boolean;
4227
- commitHash: string;
4228
- commitMessage: string;
4489
+ export interface ListProjectDeploymentsResponse {
4490
+ result: {
4491
+ id: string;
4492
+ aliases: string[] | null;
4493
+ buildConfig: {
4494
+ webAnalyticsTag: string | null;
4495
+ webAnalyticsToken: string | null;
4496
+ buildCaching?: boolean | null;
4497
+ buildCommand?: string | null;
4498
+ destinationDir?: string | null;
4499
+ rootDir?: string | null;
4229
4500
  };
4230
- type: "github:push" | "ad_hoc" | "deploy_hook";
4231
- };
4232
- envVars: Record<string, unknown> | null;
4233
- environment: "preview" | "production";
4234
- isSkipped: boolean;
4235
- latestStage: unknown;
4236
- modifiedOn: string;
4237
- projectId: string;
4238
- projectName: string;
4239
- shortId: string;
4240
- source: {
4241
- config: {
4242
- deploymentsEnabled: boolean;
4243
- owner: string;
4244
- ownerId: string;
4245
- pathExcludes: string[];
4246
- pathIncludes: string[];
4247
- prCommentsEnabled: boolean;
4248
- previewBranchExcludes: string[];
4249
- previewBranchIncludes: string[];
4250
- previewDeploymentSetting: "all" | "none" | "custom";
4251
- productionBranch: string;
4252
- productionDeploymentsEnabled: boolean;
4253
- repoId: string;
4254
- repoName: string;
4501
+ createdOn: string;
4502
+ deploymentTrigger: {
4503
+ metadata: {
4504
+ branch: string;
4505
+ commitDirty: boolean;
4506
+ commitHash: string;
4507
+ commitMessage: string;
4508
+ };
4509
+ type: "github:push" | "ad_hoc" | "deploy_hook";
4255
4510
  };
4256
- type: "github" | "gitlab";
4511
+ envVars: Record<string, unknown> | null;
4512
+ environment: "preview" | "production";
4513
+ isSkipped: boolean;
4514
+ latestStage: unknown;
4515
+ modifiedOn: string;
4516
+ projectId: string;
4517
+ projectName: string;
4518
+ shortId: string;
4519
+ source: {
4520
+ config: {
4521
+ deploymentsEnabled: boolean;
4522
+ owner: string;
4523
+ ownerId: string;
4524
+ pathExcludes: string[];
4525
+ pathIncludes: string[];
4526
+ prCommentsEnabled: boolean;
4527
+ previewBranchExcludes: string[];
4528
+ previewBranchIncludes: string[];
4529
+ previewDeploymentSetting: "all" | "none" | "custom";
4530
+ productionBranch: string;
4531
+ productionDeploymentsEnabled: boolean;
4532
+ repoId: string;
4533
+ repoName: string;
4534
+ };
4535
+ type: "github" | "gitlab";
4536
+ };
4537
+ stages: unknown[];
4538
+ url: string;
4539
+ usesFunctions?: boolean | null;
4540
+ }[];
4541
+ resultInfo: {
4542
+ count?: number | null;
4543
+ page?: number | null;
4544
+ perPage?: number | null;
4545
+ totalCount?: number | null;
4257
4546
  };
4258
- stages: unknown[];
4259
- url: string;
4260
- usesFunctions?: boolean | null;
4261
- }[];
4547
+ }
4262
4548
 
4263
4549
  export const ListProjectDeploymentsResponse =
4264
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4265
- Schema.Struct({
4266
- id: Schema.String,
4267
- aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4268
- buildConfig: Schema.Struct({
4269
- webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
4270
- webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
4271
- buildCaching: Schema.optional(
4272
- Schema.Union([Schema.Boolean, Schema.Null]),
4273
- ),
4274
- buildCommand: Schema.optional(
4275
- Schema.Union([Schema.String, Schema.Null]),
4276
- ),
4277
- destinationDir: Schema.optional(
4278
- Schema.Union([Schema.String, Schema.Null]),
4279
- ),
4280
- rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4281
- }).pipe(
4282
- Schema.encodeKeys({
4283
- webAnalyticsTag: "web_analytics_tag",
4284
- webAnalyticsToken: "web_analytics_token",
4285
- buildCaching: "build_caching",
4286
- buildCommand: "build_command",
4287
- destinationDir: "destination_dir",
4288
- rootDir: "root_dir",
4289
- }),
4290
- ),
4291
- createdOn: Schema.String,
4292
- deploymentTrigger: Schema.Struct({
4293
- metadata: Schema.Struct({
4294
- branch: Schema.String,
4295
- commitDirty: Schema.Boolean,
4296
- commitHash: Schema.String,
4297
- commitMessage: Schema.String,
4550
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4551
+ result: Schema.Array(
4552
+ Schema.Struct({
4553
+ id: Schema.String,
4554
+ aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4555
+ buildConfig: Schema.Struct({
4556
+ webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
4557
+ webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
4558
+ buildCaching: Schema.optional(
4559
+ Schema.Union([Schema.Boolean, Schema.Null]),
4560
+ ),
4561
+ buildCommand: Schema.optional(
4562
+ Schema.Union([Schema.String, Schema.Null]),
4563
+ ),
4564
+ destinationDir: Schema.optional(
4565
+ Schema.Union([Schema.String, Schema.Null]),
4566
+ ),
4567
+ rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4298
4568
  }).pipe(
4299
4569
  Schema.encodeKeys({
4300
- branch: "branch",
4301
- commitDirty: "commit_dirty",
4302
- commitHash: "commit_hash",
4303
- commitMessage: "commit_message",
4570
+ webAnalyticsTag: "web_analytics_tag",
4571
+ webAnalyticsToken: "web_analytics_token",
4572
+ buildCaching: "build_caching",
4573
+ buildCommand: "build_command",
4574
+ destinationDir: "destination_dir",
4575
+ rootDir: "root_dir",
4304
4576
  }),
4305
4577
  ),
4306
- type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
4307
- }),
4308
- envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
4309
- environment: Schema.Literals(["preview", "production"]),
4310
- isSkipped: Schema.Boolean,
4311
- latestStage: Schema.Unknown,
4312
- modifiedOn: Schema.String,
4313
- projectId: Schema.String,
4314
- projectName: Schema.String,
4315
- shortId: Schema.String,
4316
- source: Schema.Struct({
4317
- config: Schema.Struct({
4318
- deploymentsEnabled: Schema.Boolean,
4319
- owner: Schema.String,
4320
- ownerId: Schema.String,
4321
- pathExcludes: Schema.Array(Schema.String),
4322
- pathIncludes: Schema.Array(Schema.String),
4323
- prCommentsEnabled: Schema.Boolean,
4324
- previewBranchExcludes: Schema.Array(Schema.String),
4325
- previewBranchIncludes: Schema.Array(Schema.String),
4326
- previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
4327
- productionBranch: Schema.String,
4328
- productionDeploymentsEnabled: Schema.Boolean,
4329
- repoId: Schema.String,
4330
- repoName: Schema.String,
4331
- }).pipe(
4332
- Schema.encodeKeys({
4333
- deploymentsEnabled: "deployments_enabled",
4334
- owner: "owner",
4335
- ownerId: "owner_id",
4336
- pathExcludes: "path_excludes",
4337
- pathIncludes: "path_includes",
4338
- prCommentsEnabled: "pr_comments_enabled",
4339
- previewBranchExcludes: "preview_branch_excludes",
4340
- previewBranchIncludes: "preview_branch_includes",
4341
- previewDeploymentSetting: "preview_deployment_setting",
4342
- productionBranch: "production_branch",
4343
- productionDeploymentsEnabled: "production_deployments_enabled",
4344
- repoId: "repo_id",
4345
- repoName: "repo_name",
4346
- }),
4578
+ createdOn: Schema.String,
4579
+ deploymentTrigger: Schema.Struct({
4580
+ metadata: Schema.Struct({
4581
+ branch: Schema.String,
4582
+ commitDirty: Schema.Boolean,
4583
+ commitHash: Schema.String,
4584
+ commitMessage: Schema.String,
4585
+ }).pipe(
4586
+ Schema.encodeKeys({
4587
+ branch: "branch",
4588
+ commitDirty: "commit_dirty",
4589
+ commitHash: "commit_hash",
4590
+ commitMessage: "commit_message",
4591
+ }),
4592
+ ),
4593
+ type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
4594
+ }),
4595
+ envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
4596
+ environment: Schema.Literals(["preview", "production"]),
4597
+ isSkipped: Schema.Boolean,
4598
+ latestStage: Schema.Unknown,
4599
+ modifiedOn: Schema.String,
4600
+ projectId: Schema.String,
4601
+ projectName: Schema.String,
4602
+ shortId: Schema.String,
4603
+ source: Schema.Struct({
4604
+ config: Schema.Struct({
4605
+ deploymentsEnabled: Schema.Boolean,
4606
+ owner: Schema.String,
4607
+ ownerId: Schema.String,
4608
+ pathExcludes: Schema.Array(Schema.String),
4609
+ pathIncludes: Schema.Array(Schema.String),
4610
+ prCommentsEnabled: Schema.Boolean,
4611
+ previewBranchExcludes: Schema.Array(Schema.String),
4612
+ previewBranchIncludes: Schema.Array(Schema.String),
4613
+ previewDeploymentSetting: Schema.Literals([
4614
+ "all",
4615
+ "none",
4616
+ "custom",
4617
+ ]),
4618
+ productionBranch: Schema.String,
4619
+ productionDeploymentsEnabled: Schema.Boolean,
4620
+ repoId: Schema.String,
4621
+ repoName: Schema.String,
4622
+ }).pipe(
4623
+ Schema.encodeKeys({
4624
+ deploymentsEnabled: "deployments_enabled",
4625
+ owner: "owner",
4626
+ ownerId: "owner_id",
4627
+ pathExcludes: "path_excludes",
4628
+ pathIncludes: "path_includes",
4629
+ prCommentsEnabled: "pr_comments_enabled",
4630
+ previewBranchExcludes: "preview_branch_excludes",
4631
+ previewBranchIncludes: "preview_branch_includes",
4632
+ previewDeploymentSetting: "preview_deployment_setting",
4633
+ productionBranch: "production_branch",
4634
+ productionDeploymentsEnabled: "production_deployments_enabled",
4635
+ repoId: "repo_id",
4636
+ repoName: "repo_name",
4637
+ }),
4638
+ ),
4639
+ type: Schema.Literals(["github", "gitlab"]),
4640
+ }),
4641
+ stages: Schema.Array(Schema.Unknown),
4642
+ url: Schema.String,
4643
+ usesFunctions: Schema.optional(
4644
+ Schema.Union([Schema.Boolean, Schema.Null]),
4347
4645
  ),
4348
- type: Schema.Literals(["github", "gitlab"]),
4349
- }),
4350
- stages: Schema.Array(Schema.Unknown),
4351
- url: Schema.String,
4352
- usesFunctions: Schema.optional(
4353
- Schema.Union([Schema.Boolean, Schema.Null]),
4646
+ }).pipe(
4647
+ Schema.encodeKeys({
4648
+ id: "id",
4649
+ aliases: "aliases",
4650
+ buildConfig: "build_config",
4651
+ createdOn: "created_on",
4652
+ deploymentTrigger: "deployment_trigger",
4653
+ envVars: "env_vars",
4654
+ environment: "environment",
4655
+ isSkipped: "is_skipped",
4656
+ latestStage: "latest_stage",
4657
+ modifiedOn: "modified_on",
4658
+ projectId: "project_id",
4659
+ projectName: "project_name",
4660
+ shortId: "short_id",
4661
+ source: "source",
4662
+ stages: "stages",
4663
+ url: "url",
4664
+ usesFunctions: "uses_functions",
4665
+ }),
4354
4666
  ),
4667
+ ),
4668
+ resultInfo: Schema.Struct({
4669
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4670
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4671
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4672
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4355
4673
  }).pipe(
4356
4674
  Schema.encodeKeys({
4357
- id: "id",
4358
- aliases: "aliases",
4359
- buildConfig: "build_config",
4360
- createdOn: "created_on",
4361
- deploymentTrigger: "deployment_trigger",
4362
- envVars: "env_vars",
4363
- environment: "environment",
4364
- isSkipped: "is_skipped",
4365
- latestStage: "latest_stage",
4366
- modifiedOn: "modified_on",
4367
- projectId: "project_id",
4368
- projectName: "project_name",
4369
- shortId: "short_id",
4370
- source: "source",
4371
- stages: "stages",
4372
- url: "url",
4373
- usesFunctions: "uses_functions",
4675
+ count: "count",
4676
+ page: "page",
4677
+ perPage: "per_page",
4678
+ totalCount: "total_count",
4374
4679
  }),
4375
4680
  ),
4681
+ }).pipe(
4682
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
4376
4683
  ) as unknown as Schema.Schema<ListProjectDeploymentsResponse>;
4377
4684
 
4378
4685
  export type ListProjectDeploymentsError = DefaultErrors;
4379
4686
 
4380
- export const listProjectDeployments: API.OperationMethod<
4687
+ export const listProjectDeployments: API.PaginatedOperationMethod<
4381
4688
  ListProjectDeploymentsRequest,
4382
4689
  ListProjectDeploymentsResponse,
4383
4690
  ListProjectDeploymentsError,
4384
4691
  Credentials | HttpClient.HttpClient
4385
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4692
+ > & {
4693
+ pages: (
4694
+ input: ListProjectDeploymentsRequest,
4695
+ ) => stream.Stream<
4696
+ ListProjectDeploymentsResponse,
4697
+ ListProjectDeploymentsError,
4698
+ Credentials | HttpClient.HttpClient
4699
+ >;
4700
+ items: (input: ListProjectDeploymentsRequest) => stream.Stream<
4701
+ {
4702
+ id: string;
4703
+ aliases: string[] | null;
4704
+ buildConfig: {
4705
+ webAnalyticsTag: string | null;
4706
+ webAnalyticsToken: string | null;
4707
+ buildCaching?: boolean | null;
4708
+ buildCommand?: string | null;
4709
+ destinationDir?: string | null;
4710
+ rootDir?: string | null;
4711
+ };
4712
+ createdOn: string;
4713
+ deploymentTrigger: {
4714
+ metadata: {
4715
+ branch: string;
4716
+ commitDirty: boolean;
4717
+ commitHash: string;
4718
+ commitMessage: string;
4719
+ };
4720
+ type: "github:push" | "ad_hoc" | "deploy_hook";
4721
+ };
4722
+ envVars: Record<string, unknown> | null;
4723
+ environment: "preview" | "production";
4724
+ isSkipped: boolean;
4725
+ latestStage: unknown;
4726
+ modifiedOn: string;
4727
+ projectId: string;
4728
+ projectName: string;
4729
+ shortId: string;
4730
+ source: {
4731
+ config: {
4732
+ deploymentsEnabled: boolean;
4733
+ owner: string;
4734
+ ownerId: string;
4735
+ pathExcludes: string[];
4736
+ pathIncludes: string[];
4737
+ prCommentsEnabled: boolean;
4738
+ previewBranchExcludes: string[];
4739
+ previewBranchIncludes: string[];
4740
+ previewDeploymentSetting: "all" | "none" | "custom";
4741
+ productionBranch: string;
4742
+ productionDeploymentsEnabled: boolean;
4743
+ repoId: string;
4744
+ repoName: string;
4745
+ };
4746
+ type: "github" | "gitlab";
4747
+ };
4748
+ stages: unknown[];
4749
+ url: string;
4750
+ usesFunctions?: boolean | null;
4751
+ },
4752
+ ListProjectDeploymentsError,
4753
+ Credentials | HttpClient.HttpClient
4754
+ >;
4755
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4386
4756
  input: ListProjectDeploymentsRequest,
4387
4757
  output: ListProjectDeploymentsResponse,
4388
4758
  errors: [],
4759
+ pagination: {
4760
+ mode: "page",
4761
+ inputToken: "page",
4762
+ outputToken: "resultInfo.page",
4763
+ items: "result",
4764
+ pageSize: "perPage",
4765
+ } as const,
4389
4766
  }));
4390
4767
 
4391
4768
  export interface CreateProjectDeploymentRequest {
@@ -4619,27 +4996,31 @@ export const CreateProjectDeploymentResponse =
4619
4996
  stages: Schema.Array(Schema.Unknown),
4620
4997
  url: Schema.String,
4621
4998
  usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4622
- }).pipe(
4623
- Schema.encodeKeys({
4624
- id: "id",
4625
- aliases: "aliases",
4626
- buildConfig: "build_config",
4627
- createdOn: "created_on",
4628
- deploymentTrigger: "deployment_trigger",
4629
- envVars: "env_vars",
4630
- environment: "environment",
4631
- isSkipped: "is_skipped",
4632
- latestStage: "latest_stage",
4633
- modifiedOn: "modified_on",
4634
- projectId: "project_id",
4635
- projectName: "project_name",
4636
- shortId: "short_id",
4637
- source: "source",
4638
- stages: "stages",
4639
- url: "url",
4640
- usesFunctions: "uses_functions",
4641
- }),
4642
- ) as unknown as Schema.Schema<CreateProjectDeploymentResponse>;
4999
+ })
5000
+ .pipe(
5001
+ Schema.encodeKeys({
5002
+ id: "id",
5003
+ aliases: "aliases",
5004
+ buildConfig: "build_config",
5005
+ createdOn: "created_on",
5006
+ deploymentTrigger: "deployment_trigger",
5007
+ envVars: "env_vars",
5008
+ environment: "environment",
5009
+ isSkipped: "is_skipped",
5010
+ latestStage: "latest_stage",
5011
+ modifiedOn: "modified_on",
5012
+ projectId: "project_id",
5013
+ projectName: "project_name",
5014
+ shortId: "short_id",
5015
+ source: "source",
5016
+ stages: "stages",
5017
+ url: "url",
5018
+ usesFunctions: "uses_functions",
5019
+ }),
5020
+ )
5021
+ .pipe(
5022
+ T.ResponsePath("result"),
5023
+ ) as unknown as Schema.Schema<CreateProjectDeploymentResponse>;
4643
5024
 
4644
5025
  export type CreateProjectDeploymentError = DefaultErrors;
4645
5026
 
@@ -4676,7 +5057,9 @@ export const DeleteProjectDeploymentRequest =
4676
5057
  export type DeleteProjectDeploymentResponse = unknown;
4677
5058
 
4678
5059
  export const DeleteProjectDeploymentResponse =
4679
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DeleteProjectDeploymentResponse>;
5060
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
5061
+ T.ResponsePath("result"),
5062
+ ) as unknown as Schema.Schema<DeleteProjectDeploymentResponse>;
4680
5063
 
4681
5064
  export type DeleteProjectDeploymentError = DefaultErrors;
4682
5065
 
@@ -4866,27 +5249,31 @@ export const RetryProjectDeploymentResponse =
4866
5249
  stages: Schema.Array(Schema.Unknown),
4867
5250
  url: Schema.String,
4868
5251
  usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4869
- }).pipe(
4870
- Schema.encodeKeys({
4871
- id: "id",
4872
- aliases: "aliases",
4873
- buildConfig: "build_config",
4874
- createdOn: "created_on",
4875
- deploymentTrigger: "deployment_trigger",
4876
- envVars: "env_vars",
4877
- environment: "environment",
4878
- isSkipped: "is_skipped",
4879
- latestStage: "latest_stage",
4880
- modifiedOn: "modified_on",
4881
- projectId: "project_id",
4882
- projectName: "project_name",
4883
- shortId: "short_id",
4884
- source: "source",
4885
- stages: "stages",
4886
- url: "url",
4887
- usesFunctions: "uses_functions",
4888
- }),
4889
- ) as unknown as Schema.Schema<RetryProjectDeploymentResponse>;
5252
+ })
5253
+ .pipe(
5254
+ Schema.encodeKeys({
5255
+ id: "id",
5256
+ aliases: "aliases",
5257
+ buildConfig: "build_config",
5258
+ createdOn: "created_on",
5259
+ deploymentTrigger: "deployment_trigger",
5260
+ envVars: "env_vars",
5261
+ environment: "environment",
5262
+ isSkipped: "is_skipped",
5263
+ latestStage: "latest_stage",
5264
+ modifiedOn: "modified_on",
5265
+ projectId: "project_id",
5266
+ projectName: "project_name",
5267
+ shortId: "short_id",
5268
+ source: "source",
5269
+ stages: "stages",
5270
+ url: "url",
5271
+ usesFunctions: "uses_functions",
5272
+ }),
5273
+ )
5274
+ .pipe(
5275
+ T.ResponsePath("result"),
5276
+ ) as unknown as Schema.Schema<RetryProjectDeploymentResponse>;
4890
5277
 
4891
5278
  export type RetryProjectDeploymentError = DefaultErrors;
4892
5279
 
@@ -5076,27 +5463,31 @@ export const RollbackProjectDeploymentResponse =
5076
5463
  stages: Schema.Array(Schema.Unknown),
5077
5464
  url: Schema.String,
5078
5465
  usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5079
- }).pipe(
5080
- Schema.encodeKeys({
5081
- id: "id",
5082
- aliases: "aliases",
5083
- buildConfig: "build_config",
5084
- createdOn: "created_on",
5085
- deploymentTrigger: "deployment_trigger",
5086
- envVars: "env_vars",
5087
- environment: "environment",
5088
- isSkipped: "is_skipped",
5089
- latestStage: "latest_stage",
5090
- modifiedOn: "modified_on",
5091
- projectId: "project_id",
5092
- projectName: "project_name",
5093
- shortId: "short_id",
5094
- source: "source",
5095
- stages: "stages",
5096
- url: "url",
5097
- usesFunctions: "uses_functions",
5098
- }),
5099
- ) as unknown as Schema.Schema<RollbackProjectDeploymentResponse>;
5466
+ })
5467
+ .pipe(
5468
+ Schema.encodeKeys({
5469
+ id: "id",
5470
+ aliases: "aliases",
5471
+ buildConfig: "build_config",
5472
+ createdOn: "created_on",
5473
+ deploymentTrigger: "deployment_trigger",
5474
+ envVars: "env_vars",
5475
+ environment: "environment",
5476
+ isSkipped: "is_skipped",
5477
+ latestStage: "latest_stage",
5478
+ modifiedOn: "modified_on",
5479
+ projectId: "project_id",
5480
+ projectName: "project_name",
5481
+ shortId: "short_id",
5482
+ source: "source",
5483
+ stages: "stages",
5484
+ url: "url",
5485
+ usesFunctions: "uses_functions",
5486
+ }),
5487
+ )
5488
+ .pipe(
5489
+ T.ResponsePath("result"),
5490
+ ) as unknown as Schema.Schema<RollbackProjectDeploymentResponse>;
5100
5491
 
5101
5492
  export type RollbackProjectDeploymentError = DefaultErrors;
5102
5493
 
@@ -5150,13 +5541,17 @@ export const GetProjectDeploymentHistoryLogResponse =
5150
5541
  ),
5151
5542
  includesContainerLogs: Schema.Boolean,
5152
5543
  total: Schema.Number,
5153
- }).pipe(
5154
- Schema.encodeKeys({
5155
- data: "data",
5156
- includesContainerLogs: "includes_container_logs",
5157
- total: "total",
5158
- }),
5159
- ) as unknown as Schema.Schema<GetProjectDeploymentHistoryLogResponse>;
5544
+ })
5545
+ .pipe(
5546
+ Schema.encodeKeys({
5547
+ data: "data",
5548
+ includesContainerLogs: "includes_container_logs",
5549
+ total: "total",
5550
+ }),
5551
+ )
5552
+ .pipe(
5553
+ T.ResponsePath("result"),
5554
+ ) as unknown as Schema.Schema<GetProjectDeploymentHistoryLogResponse>;
5160
5555
 
5161
5556
  export type GetProjectDeploymentHistoryLogError = DefaultErrors;
5162
5557
 
@@ -5271,19 +5666,23 @@ export const GetProjectDomainResponse =
5271
5666
  Schema.encodeKeys({ status: "status", errorMessage: "error_message" }),
5272
5667
  ),
5273
5668
  zoneTag: Schema.String,
5274
- }).pipe(
5275
- Schema.encodeKeys({
5276
- id: "id",
5277
- certificateAuthority: "certificate_authority",
5278
- createdOn: "created_on",
5279
- domainId: "domain_id",
5280
- name: "name",
5281
- status: "status",
5282
- validationData: "validation_data",
5283
- verificationData: "verification_data",
5284
- zoneTag: "zone_tag",
5285
- }),
5286
- ) as unknown as Schema.Schema<GetProjectDomainResponse>;
5669
+ })
5670
+ .pipe(
5671
+ Schema.encodeKeys({
5672
+ id: "id",
5673
+ certificateAuthority: "certificate_authority",
5674
+ createdOn: "created_on",
5675
+ domainId: "domain_id",
5676
+ name: "name",
5677
+ status: "status",
5678
+ validationData: "validation_data",
5679
+ verificationData: "verification_data",
5680
+ zoneTag: "zone_tag",
5681
+ }),
5682
+ )
5683
+ .pipe(
5684
+ T.ResponsePath("result"),
5685
+ ) as unknown as Schema.Schema<GetProjectDomainResponse>;
5287
5686
 
5288
5687
  export type GetProjectDomainError = DefaultErrors;
5289
5688
 
@@ -5315,113 +5714,162 @@ export const ListProjectDomainsRequest =
5315
5714
  }),
5316
5715
  ) as unknown as Schema.Schema<ListProjectDomainsRequest>;
5317
5716
 
5318
- export type ListProjectDomainsResponse = {
5319
- id: string;
5320
- certificateAuthority: "google" | "lets_encrypt";
5321
- createdOn: string;
5322
- domainId: string;
5323
- name: string;
5324
- status:
5325
- | "initializing"
5326
- | "pending"
5327
- | "active"
5328
- | "deactivated"
5329
- | "blocked"
5330
- | "error";
5331
- validationData: {
5332
- method: "http" | "txt";
5333
- status: "initializing" | "pending" | "active" | "deactivated" | "error";
5334
- errorMessage?: string | null;
5335
- txtName?: string | null;
5336
- txtValue?: string | null;
5337
- };
5338
- verificationData: {
5339
- status: "pending" | "active" | "deactivated" | "blocked" | "error";
5340
- errorMessage?: string | null;
5341
- };
5342
- zoneTag: string;
5343
- }[];
5717
+ export interface ListProjectDomainsResponse {
5718
+ result: {
5719
+ id: string;
5720
+ certificateAuthority: "google" | "lets_encrypt";
5721
+ createdOn: string;
5722
+ domainId: string;
5723
+ name: string;
5724
+ status:
5725
+ | "initializing"
5726
+ | "pending"
5727
+ | "active"
5728
+ | "deactivated"
5729
+ | "blocked"
5730
+ | "error";
5731
+ validationData: {
5732
+ method: "http" | "txt";
5733
+ status: "initializing" | "pending" | "active" | "deactivated" | "error";
5734
+ errorMessage?: string | null;
5735
+ txtName?: string | null;
5736
+ txtValue?: string | null;
5737
+ };
5738
+ verificationData: {
5739
+ status: "pending" | "active" | "deactivated" | "blocked" | "error";
5740
+ errorMessage?: string | null;
5741
+ };
5742
+ zoneTag: string;
5743
+ }[];
5744
+ }
5344
5745
 
5345
5746
  export const ListProjectDomainsResponse =
5346
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
5347
- Schema.Struct({
5348
- id: Schema.String,
5349
- certificateAuthority: Schema.Literals(["google", "lets_encrypt"]),
5350
- createdOn: Schema.String,
5351
- domainId: Schema.String,
5352
- name: Schema.String,
5353
- status: Schema.Literals([
5354
- "initializing",
5355
- "pending",
5356
- "active",
5357
- "deactivated",
5358
- "blocked",
5359
- "error",
5360
- ]),
5361
- validationData: Schema.Struct({
5362
- method: Schema.Literals(["http", "txt"]),
5747
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5748
+ result: Schema.Array(
5749
+ Schema.Struct({
5750
+ id: Schema.String,
5751
+ certificateAuthority: Schema.Literals(["google", "lets_encrypt"]),
5752
+ createdOn: Schema.String,
5753
+ domainId: Schema.String,
5754
+ name: Schema.String,
5363
5755
  status: Schema.Literals([
5364
5756
  "initializing",
5365
5757
  "pending",
5366
5758
  "active",
5367
5759
  "deactivated",
5760
+ "blocked",
5368
5761
  "error",
5369
5762
  ]),
5370
- errorMessage: Schema.optional(
5371
- Schema.Union([Schema.String, Schema.Null]),
5763
+ validationData: Schema.Struct({
5764
+ method: Schema.Literals(["http", "txt"]),
5765
+ status: Schema.Literals([
5766
+ "initializing",
5767
+ "pending",
5768
+ "active",
5769
+ "deactivated",
5770
+ "error",
5771
+ ]),
5772
+ errorMessage: Schema.optional(
5773
+ Schema.Union([Schema.String, Schema.Null]),
5774
+ ),
5775
+ txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5776
+ txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5777
+ }).pipe(
5778
+ Schema.encodeKeys({
5779
+ method: "method",
5780
+ status: "status",
5781
+ errorMessage: "error_message",
5782
+ txtName: "txt_name",
5783
+ txtValue: "txt_value",
5784
+ }),
5785
+ ),
5786
+ verificationData: Schema.Struct({
5787
+ status: Schema.Literals([
5788
+ "pending",
5789
+ "active",
5790
+ "deactivated",
5791
+ "blocked",
5792
+ "error",
5793
+ ]),
5794
+ errorMessage: Schema.optional(
5795
+ Schema.Union([Schema.String, Schema.Null]),
5796
+ ),
5797
+ }).pipe(
5798
+ Schema.encodeKeys({
5799
+ status: "status",
5800
+ errorMessage: "error_message",
5801
+ }),
5372
5802
  ),
5373
- txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5374
- txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5803
+ zoneTag: Schema.String,
5375
5804
  }).pipe(
5376
5805
  Schema.encodeKeys({
5377
- method: "method",
5806
+ id: "id",
5807
+ certificateAuthority: "certificate_authority",
5808
+ createdOn: "created_on",
5809
+ domainId: "domain_id",
5810
+ name: "name",
5378
5811
  status: "status",
5379
- errorMessage: "error_message",
5380
- txtName: "txt_name",
5381
- txtValue: "txt_value",
5812
+ validationData: "validation_data",
5813
+ verificationData: "verification_data",
5814
+ zoneTag: "zone_tag",
5382
5815
  }),
5383
5816
  ),
5384
- verificationData: Schema.Struct({
5385
- status: Schema.Literals([
5386
- "pending",
5387
- "active",
5388
- "deactivated",
5389
- "blocked",
5390
- "error",
5391
- ]),
5392
- errorMessage: Schema.optional(
5393
- Schema.Union([Schema.String, Schema.Null]),
5394
- ),
5395
- }).pipe(
5396
- Schema.encodeKeys({ status: "status", errorMessage: "error_message" }),
5397
- ),
5398
- zoneTag: Schema.String,
5399
- }).pipe(
5400
- Schema.encodeKeys({
5401
- id: "id",
5402
- certificateAuthority: "certificate_authority",
5403
- createdOn: "created_on",
5404
- domainId: "domain_id",
5405
- name: "name",
5406
- status: "status",
5407
- validationData: "validation_data",
5408
- verificationData: "verification_data",
5409
- zoneTag: "zone_tag",
5410
- }),
5411
5817
  ),
5412
- ) as unknown as Schema.Schema<ListProjectDomainsResponse>;
5818
+ }) as unknown as Schema.Schema<ListProjectDomainsResponse>;
5413
5819
 
5414
5820
  export type ListProjectDomainsError = DefaultErrors;
5415
5821
 
5416
- export const listProjectDomains: API.OperationMethod<
5822
+ export const listProjectDomains: API.PaginatedOperationMethod<
5417
5823
  ListProjectDomainsRequest,
5418
5824
  ListProjectDomainsResponse,
5419
5825
  ListProjectDomainsError,
5420
5826
  Credentials | HttpClient.HttpClient
5421
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
5827
+ > & {
5828
+ pages: (
5829
+ input: ListProjectDomainsRequest,
5830
+ ) => stream.Stream<
5831
+ ListProjectDomainsResponse,
5832
+ ListProjectDomainsError,
5833
+ Credentials | HttpClient.HttpClient
5834
+ >;
5835
+ items: (input: ListProjectDomainsRequest) => stream.Stream<
5836
+ {
5837
+ id: string;
5838
+ certificateAuthority: "google" | "lets_encrypt";
5839
+ createdOn: string;
5840
+ domainId: string;
5841
+ name: string;
5842
+ status:
5843
+ | "initializing"
5844
+ | "pending"
5845
+ | "active"
5846
+ | "deactivated"
5847
+ | "blocked"
5848
+ | "error";
5849
+ validationData: {
5850
+ method: "http" | "txt";
5851
+ status: "initializing" | "pending" | "active" | "deactivated" | "error";
5852
+ errorMessage?: string | null;
5853
+ txtName?: string | null;
5854
+ txtValue?: string | null;
5855
+ };
5856
+ verificationData: {
5857
+ status: "pending" | "active" | "deactivated" | "blocked" | "error";
5858
+ errorMessage?: string | null;
5859
+ };
5860
+ zoneTag: string;
5861
+ },
5862
+ ListProjectDomainsError,
5863
+ Credentials | HttpClient.HttpClient
5864
+ >;
5865
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
5422
5866
  input: ListProjectDomainsRequest,
5423
5867
  output: ListProjectDomainsResponse,
5424
5868
  errors: [],
5869
+ pagination: {
5870
+ mode: "single",
5871
+ items: "result",
5872
+ } as const,
5425
5873
  }));
5426
5874
 
5427
5875
  export interface CreateProjectDomainRequest {
@@ -5521,19 +5969,23 @@ export const CreateProjectDomainResponse =
5521
5969
  Schema.encodeKeys({ status: "status", errorMessage: "error_message" }),
5522
5970
  ),
5523
5971
  zoneTag: Schema.String,
5524
- }).pipe(
5525
- Schema.encodeKeys({
5526
- id: "id",
5527
- certificateAuthority: "certificate_authority",
5528
- createdOn: "created_on",
5529
- domainId: "domain_id",
5530
- name: "name",
5531
- status: "status",
5532
- validationData: "validation_data",
5533
- verificationData: "verification_data",
5534
- zoneTag: "zone_tag",
5535
- }),
5536
- ) as unknown as Schema.Schema<CreateProjectDomainResponse>;
5972
+ })
5973
+ .pipe(
5974
+ Schema.encodeKeys({
5975
+ id: "id",
5976
+ certificateAuthority: "certificate_authority",
5977
+ createdOn: "created_on",
5978
+ domainId: "domain_id",
5979
+ name: "name",
5980
+ status: "status",
5981
+ validationData: "validation_data",
5982
+ verificationData: "verification_data",
5983
+ zoneTag: "zone_tag",
5984
+ }),
5985
+ )
5986
+ .pipe(
5987
+ T.ResponsePath("result"),
5988
+ ) as unknown as Schema.Schema<CreateProjectDomainResponse>;
5537
5989
 
5538
5990
  export type CreateProjectDomainError = DefaultErrors;
5539
5991
 
@@ -5644,19 +6096,23 @@ export const PatchProjectDomainResponse =
5644
6096
  Schema.encodeKeys({ status: "status", errorMessage: "error_message" }),
5645
6097
  ),
5646
6098
  zoneTag: Schema.String,
5647
- }).pipe(
5648
- Schema.encodeKeys({
5649
- id: "id",
5650
- certificateAuthority: "certificate_authority",
5651
- createdOn: "created_on",
5652
- domainId: "domain_id",
5653
- name: "name",
5654
- status: "status",
5655
- validationData: "validation_data",
5656
- verificationData: "verification_data",
5657
- zoneTag: "zone_tag",
5658
- }),
5659
- ) as unknown as Schema.Schema<PatchProjectDomainResponse>;
6099
+ })
6100
+ .pipe(
6101
+ Schema.encodeKeys({
6102
+ id: "id",
6103
+ certificateAuthority: "certificate_authority",
6104
+ createdOn: "created_on",
6105
+ domainId: "domain_id",
6106
+ name: "name",
6107
+ status: "status",
6108
+ validationData: "validation_data",
6109
+ verificationData: "verification_data",
6110
+ zoneTag: "zone_tag",
6111
+ }),
6112
+ )
6113
+ .pipe(
6114
+ T.ResponsePath("result"),
6115
+ ) as unknown as Schema.Schema<PatchProjectDomainResponse>;
5660
6116
 
5661
6117
  export type PatchProjectDomainError = DefaultErrors;
5662
6118
 
@@ -5693,7 +6149,9 @@ export const DeleteProjectDomainRequest =
5693
6149
  export type DeleteProjectDomainResponse = unknown;
5694
6150
 
5695
6151
  export const DeleteProjectDomainResponse =
5696
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DeleteProjectDomainResponse>;
6152
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
6153
+ T.ResponsePath("result"),
6154
+ ) as unknown as Schema.Schema<DeleteProjectDomainResponse>;
5697
6155
 
5698
6156
  export type DeleteProjectDomainError = DefaultErrors;
5699
6157