@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/lib/auth.d.ts +13 -0
  2. package/lib/auth.d.ts.map +1 -0
  3. package/lib/auth.js +12 -0
  4. package/lib/auth.js.map +1 -0
  5. package/lib/category.d.ts +2 -0
  6. package/lib/category.d.ts.map +1 -0
  7. package/lib/category.js +2 -0
  8. package/lib/category.js.map +1 -0
  9. package/lib/client/api.d.ts +14 -0
  10. package/lib/client/api.d.ts.map +1 -0
  11. package/lib/client/api.js +197 -0
  12. package/lib/client/api.js.map +1 -0
  13. package/lib/client/index.d.ts +8 -0
  14. package/lib/client/index.d.ts.map +1 -0
  15. package/lib/client/index.js +8 -0
  16. package/lib/client/index.js.map +1 -0
  17. package/lib/credentials.d.ts +14 -0
  18. package/lib/credentials.d.ts.map +1 -0
  19. package/lib/credentials.js +17 -0
  20. package/lib/credentials.js.map +1 -0
  21. package/lib/errors.d.ts +48 -0
  22. package/lib/errors.d.ts.map +1 -0
  23. package/lib/errors.js +38 -0
  24. package/lib/errors.js.map +1 -0
  25. package/lib/index.d.ts +10 -0
  26. package/lib/index.d.ts.map +1 -0
  27. package/lib/index.js +10 -0
  28. package/lib/index.js.map +1 -0
  29. package/lib/retry.d.ts +14 -0
  30. package/lib/retry.d.ts.map +1 -0
  31. package/lib/retry.js +14 -0
  32. package/lib/retry.js.map +1 -0
  33. package/lib/schemas.d.ts +29 -0
  34. package/lib/schemas.d.ts.map +1 -0
  35. package/lib/schemas.js +34 -0
  36. package/lib/schemas.js.map +1 -0
  37. package/lib/services/abuse-reports.d.ts +224 -0
  38. package/lib/services/abuse-reports.d.ts.map +1 -0
  39. package/lib/services/abuse-reports.js +353 -0
  40. package/lib/services/abuse-reports.js.map +1 -0
  41. package/lib/services/accounts.d.ts +682 -0
  42. package/lib/services/accounts.d.ts.map +1 -0
  43. package/lib/services/accounts.js +805 -0
  44. package/lib/services/accounts.js.map +1 -0
  45. package/lib/services/acm.d.ts +73 -0
  46. package/lib/services/acm.d.ts.map +1 -0
  47. package/lib/services/acm.js +76 -0
  48. package/lib/services/acm.js.map +1 -0
  49. package/lib/services/addressing.d.ts +1208 -0
  50. package/lib/services/addressing.d.ts.map +1 -0
  51. package/lib/services/addressing.js +1776 -0
  52. package/lib/services/addressing.js.map +1 -0
  53. package/lib/services/ai-gateway.d.ts +956 -0
  54. package/lib/services/ai-gateway.d.ts.map +1 -0
  55. package/lib/services/ai-gateway.js +1706 -0
  56. package/lib/services/ai-gateway.js.map +1 -0
  57. package/lib/services/ai.d.ts +243 -0
  58. package/lib/services/ai.d.ts.map +1 -0
  59. package/lib/services/ai.js +299 -0
  60. package/lib/services/ai.js.map +1 -0
  61. package/lib/services/aisearch.d.ts +915 -0
  62. package/lib/services/aisearch.d.ts.map +1 -0
  63. package/lib/services/aisearch.js +2425 -0
  64. package/lib/services/aisearch.js.map +1 -0
  65. package/lib/services/alerting.d.ts +718 -0
  66. package/lib/services/alerting.d.ts.map +1 -0
  67. package/lib/services/alerting.js +1388 -0
  68. package/lib/services/alerting.js.map +1 -0
  69. package/lib/services/api-gateway.d.ts +830 -0
  70. package/lib/services/api-gateway.d.ts.map +1 -0
  71. package/lib/services/api-gateway.js +1548 -0
  72. package/lib/services/api-gateway.js.map +1 -0
  73. package/lib/services/argo.d.ts +101 -0
  74. package/lib/services/argo.d.ts.map +1 -0
  75. package/lib/services/argo.js +105 -0
  76. package/lib/services/argo.js.map +1 -0
  77. package/lib/services/audit-logs.d.ts +46 -0
  78. package/lib/services/audit-logs.d.ts.map +1 -0
  79. package/lib/services/audit-logs.js +37 -0
  80. package/lib/services/audit-logs.js.map +1 -0
  81. package/lib/services/billing.d.ts +62 -0
  82. package/lib/services/billing.d.ts.map +1 -0
  83. package/lib/services/billing.js +100 -0
  84. package/lib/services/billing.js.map +1 -0
  85. package/lib/services/bot-management.d.ts +124 -0
  86. package/lib/services/bot-management.d.ts.map +1 -0
  87. package/lib/services/bot-management.js +262 -0
  88. package/lib/services/bot-management.js.map +1 -0
  89. package/lib/services/botnet-feed.d.ts +65 -0
  90. package/lib/services/botnet-feed.d.ts.map +1 -0
  91. package/lib/services/botnet-feed.js +84 -0
  92. package/lib/services/botnet-feed.js.map +1 -0
  93. package/lib/services/brand-protection.d.ts +188 -0
  94. package/lib/services/brand-protection.d.ts.map +1 -0
  95. package/lib/services/brand-protection.js +214 -0
  96. package/lib/services/brand-protection.js.map +1 -0
  97. package/lib/services/browser-rendering.d.ts +857 -0
  98. package/lib/services/browser-rendering.d.ts.map +1 -0
  99. package/lib/services/browser-rendering.js +1141 -0
  100. package/lib/services/browser-rendering.js.map +1 -0
  101. package/lib/services/cache.d.ts +287 -0
  102. package/lib/services/cache.d.ts.map +1 -0
  103. package/lib/services/cache.js +330 -0
  104. package/lib/services/cache.js.map +1 -0
  105. package/lib/services/calls.d.ts +202 -0
  106. package/lib/services/calls.d.ts.map +1 -0
  107. package/lib/services/calls.js +175 -0
  108. package/lib/services/calls.js.map +1 -0
  109. package/lib/services/certificate-authorities.d.ts +40 -0
  110. package/lib/services/certificate-authorities.d.ts.map +1 -0
  111. package/lib/services/certificate-authorities.js +49 -0
  112. package/lib/services/certificate-authorities.js.map +1 -0
  113. package/lib/services/client-certificates.d.ts +254 -0
  114. package/lib/services/client-certificates.d.ts.map +1 -0
  115. package/lib/services/client-certificates.js +350 -0
  116. package/lib/services/client-certificates.js.map +1 -0
  117. package/lib/services/cloud-connector.d.ts +59 -0
  118. package/lib/services/cloud-connector.d.ts.map +1 -0
  119. package/lib/services/cloud-connector.js +84 -0
  120. package/lib/services/cloud-connector.js.map +1 -0
  121. package/lib/services/cloudforce-one.d.ts +1318 -0
  122. package/lib/services/cloudforce-one.d.ts.map +1 -0
  123. package/lib/services/cloudforce-one.js +1684 -0
  124. package/lib/services/cloudforce-one.js.map +1 -0
  125. package/lib/services/connectivity.d.ts +248 -0
  126. package/lib/services/connectivity.d.ts.map +1 -0
  127. package/lib/services/connectivity.js +377 -0
  128. package/lib/services/connectivity.js.map +1 -0
  129. package/lib/services/content-scanning.d.ts +131 -0
  130. package/lib/services/content-scanning.d.ts.map +1 -0
  131. package/lib/services/content-scanning.js +156 -0
  132. package/lib/services/content-scanning.js.map +1 -0
  133. package/lib/services/custom-certificates.d.ts +211 -0
  134. package/lib/services/custom-certificates.d.ts.map +1 -0
  135. package/lib/services/custom-certificates.js +309 -0
  136. package/lib/services/custom-certificates.js.map +1 -0
  137. package/lib/services/custom-hostnames.d.ts +525 -0
  138. package/lib/services/custom-hostnames.d.ts.map +1 -0
  139. package/lib/services/custom-hostnames.js +1164 -0
  140. package/lib/services/custom-hostnames.js.map +1 -0
  141. package/lib/services/custom-nameservers.d.ts +67 -0
  142. package/lib/services/custom-nameservers.d.ts.map +1 -0
  143. package/lib/services/custom-nameservers.js +80 -0
  144. package/lib/services/custom-nameservers.js.map +1 -0
  145. package/lib/services/custom-pages.d.ts +74 -0
  146. package/lib/services/custom-pages.d.ts.map +1 -0
  147. package/lib/services/custom-pages.js +125 -0
  148. package/lib/services/custom-pages.js.map +1 -0
  149. package/lib/services/d1.d.ts +326 -0
  150. package/lib/services/d1.d.ts.map +1 -0
  151. package/lib/services/d1.js +448 -0
  152. package/lib/services/d1.js.map +1 -0
  153. package/lib/services/dcv-delegation.d.ts +24 -0
  154. package/lib/services/dcv-delegation.d.ts.map +1 -0
  155. package/lib/services/dcv-delegation.js +24 -0
  156. package/lib/services/dcv-delegation.js.map +1 -0
  157. package/lib/services/diagnostics.d.ts +175 -0
  158. package/lib/services/diagnostics.d.ts.map +1 -0
  159. package/lib/services/diagnostics.js +273 -0
  160. package/lib/services/diagnostics.js.map +1 -0
  161. package/lib/services/dns-firewall.d.ts +288 -0
  162. package/lib/services/dns-firewall.d.ts.map +1 -0
  163. package/lib/services/dns-firewall.js +373 -0
  164. package/lib/services/dns-firewall.js.map +1 -0
  165. package/lib/services/dns.d.ts +2946 -0
  166. package/lib/services/dns.d.ts.map +1 -0
  167. package/lib/services/dns.js +4511 -0
  168. package/lib/services/dns.js.map +1 -0
  169. package/lib/services/durable-objects.d.ts +61 -0
  170. package/lib/services/durable-objects.d.ts.map +1 -0
  171. package/lib/services/durable-objects.js +66 -0
  172. package/lib/services/durable-objects.js.map +1 -0
  173. package/lib/services/email-routing.d.ts +542 -0
  174. package/lib/services/email-routing.d.ts.map +1 -0
  175. package/lib/services/email-routing.js +662 -0
  176. package/lib/services/email-routing.js.map +1 -0
  177. package/lib/services/email-security.d.ts +1131 -0
  178. package/lib/services/email-security.d.ts.map +1 -0
  179. package/lib/services/email-security.js +2065 -0
  180. package/lib/services/email-security.js.map +1 -0
  181. package/lib/services/filters.d.ts +157 -0
  182. package/lib/services/filters.d.ts.map +1 -0
  183. package/lib/services/filters.js +135 -0
  184. package/lib/services/filters.js.map +1 -0
  185. package/lib/services/firewall.d.ts +1080 -0
  186. package/lib/services/firewall.d.ts.map +1 -0
  187. package/lib/services/firewall.js +1881 -0
  188. package/lib/services/firewall.js.map +1 -0
  189. package/lib/services/healthchecks.d.ts +464 -0
  190. package/lib/services/healthchecks.d.ts.map +1 -0
  191. package/lib/services/healthchecks.js +838 -0
  192. package/lib/services/healthchecks.js.map +1 -0
  193. package/lib/services/hostnames.d.ts +74 -0
  194. package/lib/services/hostnames.d.ts.map +1 -0
  195. package/lib/services/hostnames.js +100 -0
  196. package/lib/services/hostnames.js.map +1 -0
  197. package/lib/services/hyperdrive.d.ts +203 -0
  198. package/lib/services/hyperdrive.d.ts.map +1 -0
  199. package/lib/services/hyperdrive.js +299 -0
  200. package/lib/services/hyperdrive.js.map +1 -0
  201. package/lib/services/iam.d.ts +554 -0
  202. package/lib/services/iam.d.ts.map +1 -0
  203. package/lib/services/iam.js +743 -0
  204. package/lib/services/iam.js.map +1 -0
  205. package/lib/services/images.d.ts +403 -0
  206. package/lib/services/images.d.ts.map +1 -0
  207. package/lib/services/images.js +417 -0
  208. package/lib/services/images.js.map +1 -0
  209. package/lib/services/intel.d.ts +768 -0
  210. package/lib/services/intel.d.ts.map +1 -0
  211. package/lib/services/intel.js +1179 -0
  212. package/lib/services/intel.js.map +1 -0
  213. package/lib/services/ips.d.ts +28 -0
  214. package/lib/services/ips.d.ts.map +1 -0
  215. package/lib/services/ips.js +39 -0
  216. package/lib/services/ips.js.map +1 -0
  217. package/lib/services/keyless-certificates.d.ts +177 -0
  218. package/lib/services/keyless-certificates.d.ts.map +1 -0
  219. package/lib/services/keyless-certificates.js +216 -0
  220. package/lib/services/keyless-certificates.js.map +1 -0
  221. package/lib/services/kv.d.ts +339 -0
  222. package/lib/services/kv.d.ts.map +1 -0
  223. package/lib/services/kv.js +402 -0
  224. package/lib/services/kv.js.map +1 -0
  225. package/lib/services/leaked-credential-checks.d.ts +119 -0
  226. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  227. package/lib/services/leaked-credential-checks.js +130 -0
  228. package/lib/services/leaked-credential-checks.js.map +1 -0
  229. package/lib/services/load-balancers.d.ts +1767 -0
  230. package/lib/services/load-balancers.d.ts.map +1 -0
  231. package/lib/services/load-balancers.js +3068 -0
  232. package/lib/services/load-balancers.js.map +1 -0
  233. package/lib/services/logpush.d.ts +401 -0
  234. package/lib/services/logpush.d.ts.map +1 -0
  235. package/lib/services/logpush.js +724 -0
  236. package/lib/services/logpush.js.map +1 -0
  237. package/lib/services/logs.d.ts +125 -0
  238. package/lib/services/logs.d.ts.map +1 -0
  239. package/lib/services/logs.js +145 -0
  240. package/lib/services/logs.js.map +1 -0
  241. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  242. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  243. package/lib/services/magic-cloud-networking.js +5205 -0
  244. package/lib/services/magic-cloud-networking.js.map +1 -0
  245. package/lib/services/magic-network-monitoring.d.ts +379 -0
  246. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  247. package/lib/services/magic-network-monitoring.js +535 -0
  248. package/lib/services/magic-network-monitoring.js.map +1 -0
  249. package/lib/services/magic-transit.d.ts +3650 -0
  250. package/lib/services/magic-transit.d.ts.map +1 -0
  251. package/lib/services/magic-transit.js +6120 -0
  252. package/lib/services/magic-transit.js.map +1 -0
  253. package/lib/services/managed-transforms.d.ts +79 -0
  254. package/lib/services/managed-transforms.d.ts.map +1 -0
  255. package/lib/services/managed-transforms.js +107 -0
  256. package/lib/services/managed-transforms.js.map +1 -0
  257. package/lib/services/memberships.d.ts +172 -0
  258. package/lib/services/memberships.d.ts.map +1 -0
  259. package/lib/services/memberships.js +282 -0
  260. package/lib/services/memberships.js.map +1 -0
  261. package/lib/services/mtls-certificates.d.ts +140 -0
  262. package/lib/services/mtls-certificates.d.ts.map +1 -0
  263. package/lib/services/mtls-certificates.js +173 -0
  264. package/lib/services/mtls-certificates.js.map +1 -0
  265. package/lib/services/network-interconnects.d.ts +410 -0
  266. package/lib/services/network-interconnects.d.ts.map +1 -0
  267. package/lib/services/network-interconnects.js +583 -0
  268. package/lib/services/network-interconnects.js.map +1 -0
  269. package/lib/services/organizations.d.ts +201 -0
  270. package/lib/services/organizations.d.ts.map +1 -0
  271. package/lib/services/organizations.js +355 -0
  272. package/lib/services/organizations.js.map +1 -0
  273. package/lib/services/origin-ca-certificates.d.ts +99 -0
  274. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  275. package/lib/services/origin-ca-certificates.js +156 -0
  276. package/lib/services/origin-ca-certificates.js.map +1 -0
  277. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  279. package/lib/services/origin-post-quantum-encryption.js +60 -0
  280. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  281. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  282. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  283. package/lib/services/origin-tls-client-auth.js +401 -0
  284. package/lib/services/origin-tls-client-auth.js.map +1 -0
  285. package/lib/services/page-rules.d.ts +773 -0
  286. package/lib/services/page-rules.d.ts.map +1 -0
  287. package/lib/services/page-rules.js +1365 -0
  288. package/lib/services/page-rules.js.map +1 -0
  289. package/lib/services/page-shield.d.ts +426 -0
  290. package/lib/services/page-shield.d.ts.map +1 -0
  291. package/lib/services/page-shield.js +484 -0
  292. package/lib/services/page-shield.js.map +1 -0
  293. package/lib/services/pages.d.ts +1654 -0
  294. package/lib/services/pages.d.ts.map +1 -0
  295. package/lib/services/pages.js +2954 -0
  296. package/lib/services/pages.js.map +1 -0
  297. package/lib/services/pipelines.d.ts +1461 -0
  298. package/lib/services/pipelines.d.ts.map +1 -0
  299. package/lib/services/pipelines.js +2912 -0
  300. package/lib/services/pipelines.js.map +1 -0
  301. package/lib/services/queues.d.ts +807 -0
  302. package/lib/services/queues.d.ts.map +1 -0
  303. package/lib/services/queues.js +1194 -0
  304. package/lib/services/queues.js.map +1 -0
  305. package/lib/services/r2-data-catalog.d.ts +341 -0
  306. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  307. package/lib/services/r2-data-catalog.js +499 -0
  308. package/lib/services/r2-data-catalog.js.map +1 -0
  309. package/lib/services/r2.d.ts +1041 -0
  310. package/lib/services/r2.d.ts.map +1 -0
  311. package/lib/services/r2.js +1384 -0
  312. package/lib/services/r2.js.map +1 -0
  313. package/lib/services/radar.d.ts +9276 -0
  314. package/lib/services/radar.d.ts.map +1 -0
  315. package/lib/services/radar.js +20491 -0
  316. package/lib/services/radar.js.map +1 -0
  317. package/lib/services/rate-limits.d.ts +315 -0
  318. package/lib/services/rate-limits.d.ts.map +1 -0
  319. package/lib/services/rate-limits.js +521 -0
  320. package/lib/services/rate-limits.js.map +1 -0
  321. package/lib/services/realtime-kit.d.ts +2728 -0
  322. package/lib/services/realtime-kit.d.ts.map +1 -0
  323. package/lib/services/realtime-kit.js +5401 -0
  324. package/lib/services/realtime-kit.js.map +1 -0
  325. package/lib/services/registrar.d.ts +81 -0
  326. package/lib/services/registrar.d.ts.map +1 -0
  327. package/lib/services/registrar.js +154 -0
  328. package/lib/services/registrar.js.map +1 -0
  329. package/lib/services/request-tracers.d.ts +61 -0
  330. package/lib/services/request-tracers.d.ts.map +1 -0
  331. package/lib/services/request-tracers.js +82 -0
  332. package/lib/services/request-tracers.js.map +1 -0
  333. package/lib/services/resource-sharing.d.ts +540 -0
  334. package/lib/services/resource-sharing.d.ts.map +1 -0
  335. package/lib/services/resource-sharing.js +846 -0
  336. package/lib/services/resource-sharing.js.map +1 -0
  337. package/lib/services/rules.d.ts +297 -0
  338. package/lib/services/rules.d.ts.map +1 -0
  339. package/lib/services/rules.js +396 -0
  340. package/lib/services/rules.js.map +1 -0
  341. package/lib/services/rulesets.d.ts +3300 -0
  342. package/lib/services/rulesets.d.ts.map +1 -0
  343. package/lib/services/rulesets.js +7852 -0
  344. package/lib/services/rulesets.js.map +1 -0
  345. package/lib/services/rum.d.ts +289 -0
  346. package/lib/services/rum.d.ts.map +1 -0
  347. package/lib/services/rum.js +409 -0
  348. package/lib/services/rum.js.map +1 -0
  349. package/lib/services/schema-validation.d.ts +240 -0
  350. package/lib/services/schema-validation.d.ts.map +1 -0
  351. package/lib/services/schema-validation.js +306 -0
  352. package/lib/services/schema-validation.js.map +1 -0
  353. package/lib/services/secrets-store.d.ts +321 -0
  354. package/lib/services/secrets-store.d.ts.map +1 -0
  355. package/lib/services/secrets-store.js +385 -0
  356. package/lib/services/secrets-store.js.map +1 -0
  357. package/lib/services/security-center.d.ts +102 -0
  358. package/lib/services/security-center.d.ts.map +1 -0
  359. package/lib/services/security-center.js +170 -0
  360. package/lib/services/security-center.js.map +1 -0
  361. package/lib/services/security-txt.d.ts +105 -0
  362. package/lib/services/security-txt.d.ts.map +1 -0
  363. package/lib/services/security-txt.js +136 -0
  364. package/lib/services/security-txt.js.map +1 -0
  365. package/lib/services/snippets.d.ts +138 -0
  366. package/lib/services/snippets.d.ts.map +1 -0
  367. package/lib/services/snippets.js +178 -0
  368. package/lib/services/snippets.js.map +1 -0
  369. package/lib/services/spectrum.d.ts +316 -0
  370. package/lib/services/spectrum.d.ts.map +1 -0
  371. package/lib/services/spectrum.js +510 -0
  372. package/lib/services/spectrum.js.map +1 -0
  373. package/lib/services/speed.d.ts +227 -0
  374. package/lib/services/speed.d.ts.map +1 -0
  375. package/lib/services/speed.js +444 -0
  376. package/lib/services/speed.js.map +1 -0
  377. package/lib/services/ssl.d.ts +370 -0
  378. package/lib/services/ssl.d.ts.map +1 -0
  379. package/lib/services/ssl.js +732 -0
  380. package/lib/services/ssl.js.map +1 -0
  381. package/lib/services/stream.d.ts +1014 -0
  382. package/lib/services/stream.d.ts.map +1 -0
  383. package/lib/services/stream.js +1049 -0
  384. package/lib/services/stream.js.map +1 -0
  385. package/lib/services/token-validation.d.ts +547 -0
  386. package/lib/services/token-validation.d.ts.map +1 -0
  387. package/lib/services/token-validation.js +768 -0
  388. package/lib/services/token-validation.js.map +1 -0
  389. package/lib/services/turnstile.d.ts +248 -0
  390. package/lib/services/turnstile.d.ts.map +1 -0
  391. package/lib/services/turnstile.js +308 -0
  392. package/lib/services/turnstile.js.map +1 -0
  393. package/lib/services/url-normalization.d.ts +53 -0
  394. package/lib/services/url-normalization.d.ts.map +1 -0
  395. package/lib/services/url-normalization.js +52 -0
  396. package/lib/services/url-normalization.js.map +1 -0
  397. package/lib/services/url-scanner.d.ts +612 -0
  398. package/lib/services/url-scanner.d.ts.map +1 -0
  399. package/lib/services/url-scanner.js +915 -0
  400. package/lib/services/url-scanner.js.map +1 -0
  401. package/lib/services/user.d.ts +441 -0
  402. package/lib/services/user.d.ts.map +1 -0
  403. package/lib/services/user.js +567 -0
  404. package/lib/services/user.js.map +1 -0
  405. package/lib/services/vectorize.d.ts +282 -0
  406. package/lib/services/vectorize.d.ts.map +1 -0
  407. package/lib/services/vectorize.js +340 -0
  408. package/lib/services/vectorize.js.map +1 -0
  409. package/lib/services/waiting-rooms.d.ts +1009 -0
  410. package/lib/services/waiting-rooms.d.ts.map +1 -0
  411. package/lib/services/waiting-rooms.js +1757 -0
  412. package/lib/services/waiting-rooms.js.map +1 -0
  413. package/lib/services/web3.d.ts +274 -0
  414. package/lib/services/web3.d.ts.map +1 -0
  415. package/lib/services/web3.js +362 -0
  416. package/lib/services/web3.js.map +1 -0
  417. package/lib/services/workers-for-platforms.d.ts +1224 -0
  418. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  419. package/lib/services/workers-for-platforms.js +2078 -0
  420. package/lib/services/workers-for-platforms.js.map +1 -0
  421. package/lib/services/workers.d.ts +3498 -0
  422. package/lib/services/workers.d.ts.map +1 -0
  423. package/lib/services/workers.js +5967 -0
  424. package/lib/services/workers.js.map +1 -0
  425. package/lib/services/workflows.d.ts +359 -0
  426. package/lib/services/workflows.d.ts.map +1 -0
  427. package/lib/services/workflows.js +516 -0
  428. package/lib/services/workflows.js.map +1 -0
  429. package/lib/services/zaraz.d.ts +300 -0
  430. package/lib/services/zaraz.d.ts.map +1 -0
  431. package/lib/services/zaraz.js +298 -0
  432. package/lib/services/zaraz.js.map +1 -0
  433. package/lib/services/zero-trust.d.ts +15449 -0
  434. package/lib/services/zero-trust.d.ts.map +1 -0
  435. package/lib/services/zero-trust.js +29194 -0
  436. package/lib/services/zero-trust.js.map +1 -0
  437. package/lib/services/zones.d.ts +1278 -0
  438. package/lib/services/zones.d.ts.map +1 -0
  439. package/lib/services/zones.js +2416 -0
  440. package/lib/services/zones.js.map +1 -0
  441. package/lib/traits.d.ts +28 -0
  442. package/lib/traits.d.ts.map +1 -0
  443. package/lib/traits.js +26 -0
  444. package/lib/traits.js.map +1 -0
  445. package/package.json +67 -5
  446. package/src/auth.ts +14 -0
  447. package/src/category.ts +1 -0
  448. package/src/client/api.ts +269 -0
  449. package/src/client/index.ts +7 -0
  450. package/src/credentials.ts +30 -0
  451. package/src/errors.ts +65 -0
  452. package/src/index.ts +9 -0
  453. package/src/retry.ts +35 -0
  454. package/src/schemas.ts +51 -0
  455. package/src/services/abuse-reports.ts +747 -0
  456. package/src/services/accounts.ts +1947 -0
  457. package/src/services/acm.ts +170 -0
  458. package/src/services/addressing.ts +3947 -0
  459. package/src/services/ai-gateway.ts +3335 -0
  460. package/src/services/ai.ts +727 -0
  461. package/src/services/aisearch.ts +4750 -0
  462. package/src/services/alerting.ts +2947 -0
  463. package/src/services/api-gateway.ts +3391 -0
  464. package/src/services/argo.ts +254 -0
  465. package/src/services/audit-logs.ts +90 -0
  466. package/src/services/billing.ts +172 -0
  467. package/src/services/bot-management.ts +541 -0
  468. package/src/services/botnet-feed.ts +193 -0
  469. package/src/services/brand-protection.ts +553 -0
  470. package/src/services/browser-rendering.ts +2707 -0
  471. package/src/services/cache.ts +827 -0
  472. package/src/services/calls.ts +483 -0
  473. package/src/services/certificate-authorities.ts +110 -0
  474. package/src/services/client-certificates.ts +718 -0
  475. package/src/services/cloud-connector.ts +181 -0
  476. package/src/services/cloudforce-one.ts +3876 -0
  477. package/src/services/connectivity.ts +629 -0
  478. package/src/services/content-scanning.ts +385 -0
  479. package/src/services/custom-certificates.ts +611 -0
  480. package/src/services/custom-hostnames.ts +2453 -0
  481. package/src/services/custom-nameservers.ts +182 -0
  482. package/src/services/custom-pages.ts +264 -0
  483. package/src/services/d1.ts +1034 -0
  484. package/src/services/dcv-delegation.ts +52 -0
  485. package/src/services/diagnostics.ts +603 -0
  486. package/src/services/dns-firewall.ts +823 -0
  487. package/src/services/dns.ts +8897 -0
  488. package/src/services/durable-objects.ts +148 -0
  489. package/src/services/email-routing.ts +1602 -0
  490. package/src/services/email-security.ts +4283 -0
  491. package/src/services/filters.ts +370 -0
  492. package/src/services/firewall.ts +3896 -0
  493. package/src/services/healthchecks.ts +1750 -0
  494. package/src/services/hostnames.ts +218 -0
  495. package/src/services/hyperdrive.ts +592 -0
  496. package/src/services/iam.ts +1668 -0
  497. package/src/services/images.ts +1086 -0
  498. package/src/services/intel.ts +2768 -0
  499. package/src/services/ips.ts +88 -0
  500. package/src/services/keyless-certificates.ts +462 -0
  501. package/src/services/kv.ts +1011 -0
  502. package/src/services/leaked-credential-checks.ts +325 -0
  503. package/src/services/load-balancers.ts +6438 -0
  504. package/src/services/logpush.ts +1667 -0
  505. package/src/services/logs.ts +375 -0
  506. package/src/services/magic-cloud-networking.ts +10020 -0
  507. package/src/services/magic-network-monitoring.ts +1156 -0
  508. package/src/services/magic-transit.ts +13050 -0
  509. package/src/services/managed-transforms.ts +237 -0
  510. package/src/services/memberships.ts +615 -0
  511. package/src/services/mtls-certificates.ts +374 -0
  512. package/src/services/network-interconnects.ts +1253 -0
  513. package/src/services/organizations.ts +674 -0
  514. package/src/services/origin-ca-certificates.ts +303 -0
  515. package/src/services/origin-post-quantum-encryption.ts +128 -0
  516. package/src/services/origin-tls-client-auth.ts +878 -0
  517. package/src/services/page-rules.ts +2612 -0
  518. package/src/services/page-shield.ts +1195 -0
  519. package/src/services/pages.ts +5709 -0
  520. package/src/services/pipelines.ts +6000 -0
  521. package/src/services/queues.ts +2629 -0
  522. package/src/services/r2-data-catalog.ts +1119 -0
  523. package/src/services/r2.ts +3348 -0
  524. package/src/services/radar.ts +42152 -0
  525. package/src/services/rate-limits.ts +1150 -0
  526. package/src/services/realtime-kit.ts +11079 -0
  527. package/src/services/registrar.ts +295 -0
  528. package/src/services/request-tracers.ts +158 -0
  529. package/src/services/resource-sharing.ts +1832 -0
  530. package/src/services/rules.ts +837 -0
  531. package/src/services/rulesets.ts +15144 -0
  532. package/src/services/rum.ts +901 -0
  533. package/src/services/schema-validation.ts +733 -0
  534. package/src/services/secrets-store.ts +860 -0
  535. package/src/services/security-center.ts +397 -0
  536. package/src/services/security-txt.ts +315 -0
  537. package/src/services/snippets.ts +420 -0
  538. package/src/services/spectrum.ts +1103 -0
  539. package/src/services/speed.ts +1056 -0
  540. package/src/services/ssl.ts +1587 -0
  541. package/src/services/stream.ts +2756 -0
  542. package/src/services/token-validation.ts +1585 -0
  543. package/src/services/turnstile.ts +643 -0
  544. package/src/services/url-normalization.ts +129 -0
  545. package/src/services/url-scanner.ts +1851 -0
  546. package/src/services/user.ts +1384 -0
  547. package/src/services/vectorize.ts +816 -0
  548. package/src/services/waiting-rooms.ts +3807 -0
  549. package/src/services/web3.ts +834 -0
  550. package/src/services/workers-for-platforms.ts +3859 -0
  551. package/src/services/workers.ts +11637 -0
  552. package/src/services/workflows.ts +1124 -0
  553. package/src/services/zaraz.ts +797 -0
  554. package/src/services/zero-trust.ts +58933 -0
  555. package/src/services/zones.ts +4875 -0
  556. package/src/traits.ts +47 -0
  557. package/README.md +0 -15
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,2453 @@
1
+ /**
2
+ * Cloudflare CUSTOM-HOSTNAMES API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service custom-hostnames
6
+ */
7
+
8
+ import * as Schema from "effect/Schema";
9
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
10
+ import * as API from "../client/api.ts";
11
+ import * as T from "../traits";
12
+ import type { Credentials } from "../credentials";
13
+ import { type DefaultErrors } from "../errors";
14
+
15
+ // =============================================================================
16
+ // CertificatePackCertificate
17
+ // =============================================================================
18
+
19
+ export interface PutCertificatePackCertificateRequest {
20
+ customHostnameId: string;
21
+ certificatePackId: string;
22
+ certificateId: string;
23
+ /** Path param: Identifier. */
24
+ zoneId: string;
25
+ /** Body param: If a custom uploaded certificate is used. */
26
+ customCertificate: string;
27
+ /** Body param: The key for a custom uploaded certificate. */
28
+ customKey: string;
29
+ }
30
+
31
+ export const PutCertificatePackCertificateRequest =
32
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
33
+ customHostnameId: Schema.String.pipe(T.HttpPath("customHostnameId")),
34
+ certificatePackId: Schema.String.pipe(T.HttpPath("certificatePackId")),
35
+ certificateId: Schema.String.pipe(T.HttpPath("certificateId")),
36
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
37
+ customCertificate: Schema.String,
38
+ customKey: Schema.String,
39
+ }).pipe(
40
+ Schema.encodeKeys({
41
+ customCertificate: "custom_certificate",
42
+ customKey: "custom_key",
43
+ }),
44
+ T.Http({
45
+ method: "PUT",
46
+ path: "/zones/{zone_id}/custom_hostnames/{customHostnameId}/certificate_pack/{certificatePackId}/certificates/{certificateId}",
47
+ }),
48
+ ) as unknown as Schema.Schema<PutCertificatePackCertificateRequest>;
49
+
50
+ export interface PutCertificatePackCertificateResponse {
51
+ /** Identifier. */
52
+ id: string;
53
+ /** The custom hostname that will point to your hostname via CNAME. */
54
+ hostname: string;
55
+ ssl: {
56
+ id?: string | null;
57
+ bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
58
+ certificateAuthority?:
59
+ | "google"
60
+ | "lets_encrypt"
61
+ | "ssl_com"
62
+ | "digicert"
63
+ | null;
64
+ customCertificate?: string | null;
65
+ customCsrId?: string | null;
66
+ customKey?: string | null;
67
+ expiresOn?: string | null;
68
+ hosts?: string[] | null;
69
+ issuer?: string | null;
70
+ method?: "http" | "txt" | "email" | null;
71
+ serialNumber?: string | null;
72
+ settings?: {
73
+ ciphers?: string[] | null;
74
+ earlyHints?: "on" | "off" | null;
75
+ http2?: "on" | "off" | null;
76
+ minTlsVersion?: "1.0" | "1.1" | "1.2" | "1.3" | null;
77
+ tls_1_3?: "on" | "off" | null;
78
+ } | null;
79
+ signature?: string | null;
80
+ status?:
81
+ | "initializing"
82
+ | "pending_validation"
83
+ | "deleted"
84
+ | "pending_issuance"
85
+ | "pending_deployment"
86
+ | "pending_deletion"
87
+ | "pending_expiration"
88
+ | "expired"
89
+ | "active"
90
+ | "initializing_timed_out"
91
+ | "validation_timed_out"
92
+ | "issuance_timed_out"
93
+ | "deployment_timed_out"
94
+ | "deletion_timed_out"
95
+ | "pending_cleanup"
96
+ | "staging_deployment"
97
+ | "staging_active"
98
+ | "deactivating"
99
+ | "inactive"
100
+ | "backup_issued"
101
+ | "holding_deployment"
102
+ | null;
103
+ type?: "dv" | null;
104
+ uploadedOn?: string | null;
105
+ validationErrors?: { message?: string | null }[] | null;
106
+ validationRecords?:
107
+ | {
108
+ emails?: string[] | null;
109
+ httpBody?: string | null;
110
+ httpUrl?: string | null;
111
+ txtName?: string | null;
112
+ txtValue?: string | null;
113
+ }[]
114
+ | null;
115
+ wildcard?: boolean | null;
116
+ };
117
+ /** This is the time the hostname was created. */
118
+ createdAt?: string | null;
119
+ /** Unique key/value metadata for this hostname. These are per-hostname (customer) settings. */
120
+ customMetadata?: Record<string, unknown> | null;
121
+ /** a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record. */
122
+ customOriginServer?: string | null;
123
+ /** A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ':request_host_header:' which w */
124
+ customOriginSni?: string | null;
125
+ /** This is a record which can be placed to activate a hostname. */
126
+ ownershipVerification?: {
127
+ name?: string | null;
128
+ type?: "txt" | null;
129
+ value?: string | null;
130
+ } | null;
131
+ /** This presents the token to be served by the given http url to activate a hostname. */
132
+ ownershipVerificationHttp?: {
133
+ httpBody?: string | null;
134
+ httpUrl?: string | null;
135
+ } | null;
136
+ /** Status of the hostname's activation. */
137
+ status?:
138
+ | "active"
139
+ | "pending"
140
+ | "active_redeploying"
141
+ | "moved"
142
+ | "pending_deletion"
143
+ | "deleted"
144
+ | "pending_blocked"
145
+ | "pending_migration"
146
+ | "pending_provisioned"
147
+ | "test_pending"
148
+ | "test_active"
149
+ | "test_active_apex"
150
+ | "test_blocked"
151
+ | "test_failed"
152
+ | "provisioned"
153
+ | "blocked"
154
+ | null;
155
+ /** These are errors that were encountered while trying to activate a hostname. */
156
+ verificationErrors?: string[] | null;
157
+ }
158
+
159
+ export const PutCertificatePackCertificateResponse =
160
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
161
+ id: Schema.String,
162
+ hostname: Schema.String,
163
+ ssl: Schema.Struct({
164
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
165
+ bundleMethod: Schema.optional(
166
+ Schema.Union([
167
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
168
+ Schema.Null,
169
+ ]),
170
+ ),
171
+ certificateAuthority: Schema.optional(
172
+ Schema.Union([
173
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
174
+ Schema.Null,
175
+ ]),
176
+ ),
177
+ customCertificate: Schema.optional(
178
+ Schema.Union([Schema.String, Schema.Null]),
179
+ ),
180
+ customCsrId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
181
+ customKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
182
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
183
+ hosts: Schema.optional(
184
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
185
+ ),
186
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
187
+ method: Schema.optional(
188
+ Schema.Union([Schema.Literals(["http", "txt", "email"]), Schema.Null]),
189
+ ),
190
+ serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
191
+ settings: Schema.optional(
192
+ Schema.Union([
193
+ Schema.Struct({
194
+ ciphers: Schema.optional(
195
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
196
+ ),
197
+ earlyHints: Schema.optional(
198
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
199
+ ),
200
+ http2: Schema.optional(
201
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
202
+ ),
203
+ minTlsVersion: Schema.optional(
204
+ Schema.Union([
205
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
206
+ Schema.Null,
207
+ ]),
208
+ ),
209
+ tls_1_3: Schema.optional(
210
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
211
+ ),
212
+ }).pipe(
213
+ Schema.encodeKeys({
214
+ ciphers: "ciphers",
215
+ earlyHints: "early_hints",
216
+ http2: "http2",
217
+ minTlsVersion: "min_tls_version",
218
+ tls_1_3: "tls_1_3",
219
+ }),
220
+ ),
221
+ Schema.Null,
222
+ ]),
223
+ ),
224
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
225
+ status: Schema.optional(
226
+ Schema.Union([
227
+ Schema.Literals([
228
+ "initializing",
229
+ "pending_validation",
230
+ "deleted",
231
+ "pending_issuance",
232
+ "pending_deployment",
233
+ "pending_deletion",
234
+ "pending_expiration",
235
+ "expired",
236
+ "active",
237
+ "initializing_timed_out",
238
+ "validation_timed_out",
239
+ "issuance_timed_out",
240
+ "deployment_timed_out",
241
+ "deletion_timed_out",
242
+ "pending_cleanup",
243
+ "staging_deployment",
244
+ "staging_active",
245
+ "deactivating",
246
+ "inactive",
247
+ "backup_issued",
248
+ "holding_deployment",
249
+ ]),
250
+ Schema.Null,
251
+ ]),
252
+ ),
253
+ type: Schema.optional(Schema.Union([Schema.Literal("dv"), Schema.Null])),
254
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
255
+ validationErrors: Schema.optional(
256
+ Schema.Union([
257
+ Schema.Array(
258
+ Schema.Struct({
259
+ message: Schema.optional(
260
+ Schema.Union([Schema.String, Schema.Null]),
261
+ ),
262
+ }),
263
+ ),
264
+ Schema.Null,
265
+ ]),
266
+ ),
267
+ validationRecords: Schema.optional(
268
+ Schema.Union([
269
+ Schema.Array(
270
+ Schema.Struct({
271
+ emails: Schema.optional(
272
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
273
+ ),
274
+ httpBody: Schema.optional(
275
+ Schema.Union([Schema.String, Schema.Null]),
276
+ ),
277
+ httpUrl: Schema.optional(
278
+ Schema.Union([Schema.String, Schema.Null]),
279
+ ),
280
+ txtName: Schema.optional(
281
+ Schema.Union([Schema.String, Schema.Null]),
282
+ ),
283
+ txtValue: Schema.optional(
284
+ Schema.Union([Schema.String, Schema.Null]),
285
+ ),
286
+ }).pipe(
287
+ Schema.encodeKeys({
288
+ emails: "emails",
289
+ httpBody: "http_body",
290
+ httpUrl: "http_url",
291
+ txtName: "txt_name",
292
+ txtValue: "txt_value",
293
+ }),
294
+ ),
295
+ ),
296
+ Schema.Null,
297
+ ]),
298
+ ),
299
+ wildcard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
300
+ }).pipe(
301
+ Schema.encodeKeys({
302
+ id: "id",
303
+ bundleMethod: "bundle_method",
304
+ certificateAuthority: "certificate_authority",
305
+ customCertificate: "custom_certificate",
306
+ customCsrId: "custom_csr_id",
307
+ customKey: "custom_key",
308
+ expiresOn: "expires_on",
309
+ hosts: "hosts",
310
+ issuer: "issuer",
311
+ method: "method",
312
+ serialNumber: "serial_number",
313
+ settings: "settings",
314
+ signature: "signature",
315
+ status: "status",
316
+ type: "type",
317
+ uploadedOn: "uploaded_on",
318
+ validationErrors: "validation_errors",
319
+ validationRecords: "validation_records",
320
+ wildcard: "wildcard",
321
+ }),
322
+ ),
323
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
324
+ customMetadata: Schema.optional(
325
+ Schema.Union([Schema.Struct({}), Schema.Null]),
326
+ ),
327
+ customOriginServer: Schema.optional(
328
+ Schema.Union([Schema.String, Schema.Null]),
329
+ ),
330
+ customOriginSni: Schema.optional(
331
+ Schema.Union([Schema.String, Schema.Null]),
332
+ ),
333
+ ownershipVerification: Schema.optional(
334
+ Schema.Union([
335
+ Schema.Struct({
336
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
337
+ type: Schema.optional(
338
+ Schema.Union([Schema.Literal("txt"), Schema.Null]),
339
+ ),
340
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
341
+ }),
342
+ Schema.Null,
343
+ ]),
344
+ ),
345
+ ownershipVerificationHttp: Schema.optional(
346
+ Schema.Union([
347
+ Schema.Struct({
348
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
349
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
350
+ }).pipe(
351
+ Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" }),
352
+ ),
353
+ Schema.Null,
354
+ ]),
355
+ ),
356
+ status: Schema.optional(
357
+ Schema.Union([
358
+ Schema.Literals([
359
+ "active",
360
+ "pending",
361
+ "active_redeploying",
362
+ "moved",
363
+ "pending_deletion",
364
+ "deleted",
365
+ "pending_blocked",
366
+ "pending_migration",
367
+ "pending_provisioned",
368
+ "test_pending",
369
+ "test_active",
370
+ "test_active_apex",
371
+ "test_blocked",
372
+ "test_failed",
373
+ "provisioned",
374
+ "blocked",
375
+ ]),
376
+ Schema.Null,
377
+ ]),
378
+ ),
379
+ verificationErrors: Schema.optional(
380
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
381
+ ),
382
+ }).pipe(
383
+ Schema.encodeKeys({
384
+ id: "id",
385
+ hostname: "hostname",
386
+ ssl: "ssl",
387
+ createdAt: "created_at",
388
+ customMetadata: "custom_metadata",
389
+ customOriginServer: "custom_origin_server",
390
+ customOriginSni: "custom_origin_sni",
391
+ ownershipVerification: "ownership_verification",
392
+ ownershipVerificationHttp: "ownership_verification_http",
393
+ status: "status",
394
+ verificationErrors: "verification_errors",
395
+ }),
396
+ ) as unknown as Schema.Schema<PutCertificatePackCertificateResponse>;
397
+
398
+ export type PutCertificatePackCertificateError = DefaultErrors;
399
+
400
+ export const putCertificatePackCertificate: API.OperationMethod<
401
+ PutCertificatePackCertificateRequest,
402
+ PutCertificatePackCertificateResponse,
403
+ PutCertificatePackCertificateError,
404
+ Credentials | HttpClient.HttpClient
405
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
406
+ input: PutCertificatePackCertificateRequest,
407
+ output: PutCertificatePackCertificateResponse,
408
+ errors: [],
409
+ }));
410
+
411
+ export interface DeleteCertificatePackCertificateRequest {
412
+ customHostnameId: string;
413
+ certificatePackId: string;
414
+ certificateId: string;
415
+ /** Identifier. */
416
+ zoneId: string;
417
+ }
418
+
419
+ export const DeleteCertificatePackCertificateRequest =
420
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
421
+ customHostnameId: Schema.String.pipe(T.HttpPath("customHostnameId")),
422
+ certificatePackId: Schema.String.pipe(T.HttpPath("certificatePackId")),
423
+ certificateId: Schema.String.pipe(T.HttpPath("certificateId")),
424
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
425
+ }).pipe(
426
+ T.Http({
427
+ method: "DELETE",
428
+ path: "/zones/{zone_id}/custom_hostnames/{customHostnameId}/certificate_pack/{certificatePackId}/certificates/{certificateId}",
429
+ }),
430
+ ) as unknown as Schema.Schema<DeleteCertificatePackCertificateRequest>;
431
+
432
+ export interface DeleteCertificatePackCertificateResponse {
433
+ /** Identifier. */
434
+ id?: string | null;
435
+ }
436
+
437
+ export const DeleteCertificatePackCertificateResponse =
438
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
439
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
440
+ }) as unknown as Schema.Schema<DeleteCertificatePackCertificateResponse>;
441
+
442
+ export type DeleteCertificatePackCertificateError = DefaultErrors;
443
+
444
+ export const deleteCertificatePackCertificate: API.OperationMethod<
445
+ DeleteCertificatePackCertificateRequest,
446
+ DeleteCertificatePackCertificateResponse,
447
+ DeleteCertificatePackCertificateError,
448
+ Credentials | HttpClient.HttpClient
449
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
450
+ input: DeleteCertificatePackCertificateRequest,
451
+ output: DeleteCertificatePackCertificateResponse,
452
+ errors: [],
453
+ }));
454
+
455
+ // =============================================================================
456
+ // CustomHostname
457
+ // =============================================================================
458
+
459
+ export interface GetCustomHostnameRequest {
460
+ customHostnameId: string;
461
+ /** Identifier. */
462
+ zoneId: string;
463
+ }
464
+
465
+ export const GetCustomHostnameRequest =
466
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
467
+ customHostnameId: Schema.String.pipe(T.HttpPath("customHostnameId")),
468
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
469
+ }).pipe(
470
+ T.Http({
471
+ method: "GET",
472
+ path: "/zones/{zone_id}/custom_hostnames/{customHostnameId}",
473
+ }),
474
+ ) as unknown as Schema.Schema<GetCustomHostnameRequest>;
475
+
476
+ export interface GetCustomHostnameResponse {
477
+ /** Identifier. */
478
+ id: string;
479
+ /** The custom hostname that will point to your hostname via CNAME. */
480
+ hostname: string;
481
+ ssl: {
482
+ id?: string | null;
483
+ bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
484
+ certificateAuthority?:
485
+ | "google"
486
+ | "lets_encrypt"
487
+ | "ssl_com"
488
+ | "digicert"
489
+ | null;
490
+ customCertificate?: string | null;
491
+ customCsrId?: string | null;
492
+ customKey?: string | null;
493
+ expiresOn?: string | null;
494
+ hosts?: string[] | null;
495
+ issuer?: string | null;
496
+ method?: "http" | "txt" | "email" | null;
497
+ serialNumber?: string | null;
498
+ settings?: {
499
+ ciphers?: string[] | null;
500
+ earlyHints?: "on" | "off" | null;
501
+ http2?: "on" | "off" | null;
502
+ minTlsVersion?: "1.0" | "1.1" | "1.2" | "1.3" | null;
503
+ tls_1_3?: "on" | "off" | null;
504
+ } | null;
505
+ signature?: string | null;
506
+ status?:
507
+ | "initializing"
508
+ | "pending_validation"
509
+ | "deleted"
510
+ | "pending_issuance"
511
+ | "pending_deployment"
512
+ | "pending_deletion"
513
+ | "pending_expiration"
514
+ | "expired"
515
+ | "active"
516
+ | "initializing_timed_out"
517
+ | "validation_timed_out"
518
+ | "issuance_timed_out"
519
+ | "deployment_timed_out"
520
+ | "deletion_timed_out"
521
+ | "pending_cleanup"
522
+ | "staging_deployment"
523
+ | "staging_active"
524
+ | "deactivating"
525
+ | "inactive"
526
+ | "backup_issued"
527
+ | "holding_deployment"
528
+ | null;
529
+ type?: "dv" | null;
530
+ uploadedOn?: string | null;
531
+ validationErrors?: { message?: string | null }[] | null;
532
+ validationRecords?:
533
+ | {
534
+ emails?: string[] | null;
535
+ httpBody?: string | null;
536
+ httpUrl?: string | null;
537
+ txtName?: string | null;
538
+ txtValue?: string | null;
539
+ }[]
540
+ | null;
541
+ wildcard?: boolean | null;
542
+ };
543
+ /** This is the time the hostname was created. */
544
+ createdAt?: string | null;
545
+ /** Unique key/value metadata for this hostname. These are per-hostname (customer) settings. */
546
+ customMetadata?: Record<string, unknown> | null;
547
+ /** a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record. */
548
+ customOriginServer?: string | null;
549
+ /** A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ':request_host_header:' which w */
550
+ customOriginSni?: string | null;
551
+ /** This is a record which can be placed to activate a hostname. */
552
+ ownershipVerification?: {
553
+ name?: string | null;
554
+ type?: "txt" | null;
555
+ value?: string | null;
556
+ } | null;
557
+ /** This presents the token to be served by the given http url to activate a hostname. */
558
+ ownershipVerificationHttp?: {
559
+ httpBody?: string | null;
560
+ httpUrl?: string | null;
561
+ } | null;
562
+ /** Status of the hostname's activation. */
563
+ status?:
564
+ | "active"
565
+ | "pending"
566
+ | "active_redeploying"
567
+ | "moved"
568
+ | "pending_deletion"
569
+ | "deleted"
570
+ | "pending_blocked"
571
+ | "pending_migration"
572
+ | "pending_provisioned"
573
+ | "test_pending"
574
+ | "test_active"
575
+ | "test_active_apex"
576
+ | "test_blocked"
577
+ | "test_failed"
578
+ | "provisioned"
579
+ | "blocked"
580
+ | null;
581
+ /** These are errors that were encountered while trying to activate a hostname. */
582
+ verificationErrors?: string[] | null;
583
+ }
584
+
585
+ export const GetCustomHostnameResponse =
586
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
587
+ id: Schema.String,
588
+ hostname: Schema.String,
589
+ ssl: Schema.Struct({
590
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
591
+ bundleMethod: Schema.optional(
592
+ Schema.Union([
593
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
594
+ Schema.Null,
595
+ ]),
596
+ ),
597
+ certificateAuthority: Schema.optional(
598
+ Schema.Union([
599
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
600
+ Schema.Null,
601
+ ]),
602
+ ),
603
+ customCertificate: Schema.optional(
604
+ Schema.Union([Schema.String, Schema.Null]),
605
+ ),
606
+ customCsrId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
607
+ customKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
608
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
609
+ hosts: Schema.optional(
610
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
611
+ ),
612
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
613
+ method: Schema.optional(
614
+ Schema.Union([Schema.Literals(["http", "txt", "email"]), Schema.Null]),
615
+ ),
616
+ serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
617
+ settings: Schema.optional(
618
+ Schema.Union([
619
+ Schema.Struct({
620
+ ciphers: Schema.optional(
621
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
622
+ ),
623
+ earlyHints: Schema.optional(
624
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
625
+ ),
626
+ http2: Schema.optional(
627
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
628
+ ),
629
+ minTlsVersion: Schema.optional(
630
+ Schema.Union([
631
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
632
+ Schema.Null,
633
+ ]),
634
+ ),
635
+ tls_1_3: Schema.optional(
636
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
637
+ ),
638
+ }).pipe(
639
+ Schema.encodeKeys({
640
+ ciphers: "ciphers",
641
+ earlyHints: "early_hints",
642
+ http2: "http2",
643
+ minTlsVersion: "min_tls_version",
644
+ tls_1_3: "tls_1_3",
645
+ }),
646
+ ),
647
+ Schema.Null,
648
+ ]),
649
+ ),
650
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
651
+ status: Schema.optional(
652
+ Schema.Union([
653
+ Schema.Literals([
654
+ "initializing",
655
+ "pending_validation",
656
+ "deleted",
657
+ "pending_issuance",
658
+ "pending_deployment",
659
+ "pending_deletion",
660
+ "pending_expiration",
661
+ "expired",
662
+ "active",
663
+ "initializing_timed_out",
664
+ "validation_timed_out",
665
+ "issuance_timed_out",
666
+ "deployment_timed_out",
667
+ "deletion_timed_out",
668
+ "pending_cleanup",
669
+ "staging_deployment",
670
+ "staging_active",
671
+ "deactivating",
672
+ "inactive",
673
+ "backup_issued",
674
+ "holding_deployment",
675
+ ]),
676
+ Schema.Null,
677
+ ]),
678
+ ),
679
+ type: Schema.optional(Schema.Union([Schema.Literal("dv"), Schema.Null])),
680
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
681
+ validationErrors: Schema.optional(
682
+ Schema.Union([
683
+ Schema.Array(
684
+ Schema.Struct({
685
+ message: Schema.optional(
686
+ Schema.Union([Schema.String, Schema.Null]),
687
+ ),
688
+ }),
689
+ ),
690
+ Schema.Null,
691
+ ]),
692
+ ),
693
+ validationRecords: Schema.optional(
694
+ Schema.Union([
695
+ Schema.Array(
696
+ Schema.Struct({
697
+ emails: Schema.optional(
698
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
699
+ ),
700
+ httpBody: Schema.optional(
701
+ Schema.Union([Schema.String, Schema.Null]),
702
+ ),
703
+ httpUrl: Schema.optional(
704
+ Schema.Union([Schema.String, Schema.Null]),
705
+ ),
706
+ txtName: Schema.optional(
707
+ Schema.Union([Schema.String, Schema.Null]),
708
+ ),
709
+ txtValue: Schema.optional(
710
+ Schema.Union([Schema.String, Schema.Null]),
711
+ ),
712
+ }).pipe(
713
+ Schema.encodeKeys({
714
+ emails: "emails",
715
+ httpBody: "http_body",
716
+ httpUrl: "http_url",
717
+ txtName: "txt_name",
718
+ txtValue: "txt_value",
719
+ }),
720
+ ),
721
+ ),
722
+ Schema.Null,
723
+ ]),
724
+ ),
725
+ wildcard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
726
+ }).pipe(
727
+ Schema.encodeKeys({
728
+ id: "id",
729
+ bundleMethod: "bundle_method",
730
+ certificateAuthority: "certificate_authority",
731
+ customCertificate: "custom_certificate",
732
+ customCsrId: "custom_csr_id",
733
+ customKey: "custom_key",
734
+ expiresOn: "expires_on",
735
+ hosts: "hosts",
736
+ issuer: "issuer",
737
+ method: "method",
738
+ serialNumber: "serial_number",
739
+ settings: "settings",
740
+ signature: "signature",
741
+ status: "status",
742
+ type: "type",
743
+ uploadedOn: "uploaded_on",
744
+ validationErrors: "validation_errors",
745
+ validationRecords: "validation_records",
746
+ wildcard: "wildcard",
747
+ }),
748
+ ),
749
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
750
+ customMetadata: Schema.optional(
751
+ Schema.Union([Schema.Struct({}), Schema.Null]),
752
+ ),
753
+ customOriginServer: Schema.optional(
754
+ Schema.Union([Schema.String, Schema.Null]),
755
+ ),
756
+ customOriginSni: Schema.optional(
757
+ Schema.Union([Schema.String, Schema.Null]),
758
+ ),
759
+ ownershipVerification: Schema.optional(
760
+ Schema.Union([
761
+ Schema.Struct({
762
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
763
+ type: Schema.optional(
764
+ Schema.Union([Schema.Literal("txt"), Schema.Null]),
765
+ ),
766
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
767
+ }),
768
+ Schema.Null,
769
+ ]),
770
+ ),
771
+ ownershipVerificationHttp: Schema.optional(
772
+ Schema.Union([
773
+ Schema.Struct({
774
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
775
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
776
+ }).pipe(
777
+ Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" }),
778
+ ),
779
+ Schema.Null,
780
+ ]),
781
+ ),
782
+ status: Schema.optional(
783
+ Schema.Union([
784
+ Schema.Literals([
785
+ "active",
786
+ "pending",
787
+ "active_redeploying",
788
+ "moved",
789
+ "pending_deletion",
790
+ "deleted",
791
+ "pending_blocked",
792
+ "pending_migration",
793
+ "pending_provisioned",
794
+ "test_pending",
795
+ "test_active",
796
+ "test_active_apex",
797
+ "test_blocked",
798
+ "test_failed",
799
+ "provisioned",
800
+ "blocked",
801
+ ]),
802
+ Schema.Null,
803
+ ]),
804
+ ),
805
+ verificationErrors: Schema.optional(
806
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
807
+ ),
808
+ }).pipe(
809
+ Schema.encodeKeys({
810
+ id: "id",
811
+ hostname: "hostname",
812
+ ssl: "ssl",
813
+ createdAt: "created_at",
814
+ customMetadata: "custom_metadata",
815
+ customOriginServer: "custom_origin_server",
816
+ customOriginSni: "custom_origin_sni",
817
+ ownershipVerification: "ownership_verification",
818
+ ownershipVerificationHttp: "ownership_verification_http",
819
+ status: "status",
820
+ verificationErrors: "verification_errors",
821
+ }),
822
+ ) as unknown as Schema.Schema<GetCustomHostnameResponse>;
823
+
824
+ export type GetCustomHostnameError = DefaultErrors;
825
+
826
+ export const getCustomHostname: API.OperationMethod<
827
+ GetCustomHostnameRequest,
828
+ GetCustomHostnameResponse,
829
+ GetCustomHostnameError,
830
+ Credentials | HttpClient.HttpClient
831
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
832
+ input: GetCustomHostnameRequest,
833
+ output: GetCustomHostnameResponse,
834
+ errors: [],
835
+ }));
836
+
837
+ export interface ListCustomHostnamesRequest {
838
+ /** Path param: Identifier. */
839
+ zoneId: string;
840
+ /** Query param: Hostname ID to match against. This ID was generated and returned during the initial custom_hostname creation. This parameter cannot be used with the 'hostname' parameter. */
841
+ id?: string;
842
+ /** Query param: Direction to order hostnames. */
843
+ direction?: "asc" | "desc";
844
+ /** Query param: Fully qualified domain name to match against. This parameter cannot be used with the 'id' parameter. */
845
+ hostname?: string;
846
+ /** Query param: Field to order hostnames by. */
847
+ order?: "ssl" | "ssl_status";
848
+ /** Query param: Whether to filter hostnames based on if they have SSL enabled. */
849
+ ssl?: "0" | "1";
850
+ }
851
+
852
+ export const ListCustomHostnamesRequest =
853
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
854
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
855
+ id: Schema.optional(Schema.String).pipe(T.HttpQuery("id")),
856
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
857
+ T.HttpQuery("direction"),
858
+ ),
859
+ hostname: Schema.optional(Schema.String).pipe(T.HttpQuery("hostname")),
860
+ order: Schema.optional(Schema.Literals(["ssl", "ssl_status"])).pipe(
861
+ T.HttpQuery("order"),
862
+ ),
863
+ ssl: Schema.optional(Schema.Literals(["0", "1"])).pipe(T.HttpQuery("ssl")),
864
+ }).pipe(
865
+ T.Http({ method: "GET", path: "/zones/{zone_id}/custom_hostnames" }),
866
+ ) as unknown as Schema.Schema<ListCustomHostnamesRequest>;
867
+
868
+ export type ListCustomHostnamesResponse = {
869
+ id: string;
870
+ hostname: string;
871
+ ssl: {
872
+ id?: string | null;
873
+ bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
874
+ certificateAuthority?:
875
+ | "google"
876
+ | "lets_encrypt"
877
+ | "ssl_com"
878
+ | "digicert"
879
+ | null;
880
+ customCertificate?: string | null;
881
+ customCsrId?: string | null;
882
+ customKey?: string | null;
883
+ expiresOn?: string | null;
884
+ hosts?: string[] | null;
885
+ issuer?: string | null;
886
+ method?: "http" | "txt" | "email" | null;
887
+ serialNumber?: string | null;
888
+ settings?: {
889
+ ciphers?: string[] | null;
890
+ earlyHints?: "on" | "off" | null;
891
+ http2?: "on" | "off" | null;
892
+ minTlsVersion?: "1.0" | "1.1" | "1.2" | "1.3" | null;
893
+ tls_1_3?: "on" | "off" | null;
894
+ } | null;
895
+ signature?: string | null;
896
+ status?:
897
+ | "initializing"
898
+ | "pending_validation"
899
+ | "deleted"
900
+ | "pending_issuance"
901
+ | "pending_deployment"
902
+ | "pending_deletion"
903
+ | "pending_expiration"
904
+ | "expired"
905
+ | "active"
906
+ | "initializing_timed_out"
907
+ | "validation_timed_out"
908
+ | "issuance_timed_out"
909
+ | "deployment_timed_out"
910
+ | "deletion_timed_out"
911
+ | "pending_cleanup"
912
+ | "staging_deployment"
913
+ | "staging_active"
914
+ | "deactivating"
915
+ | "inactive"
916
+ | "backup_issued"
917
+ | "holding_deployment"
918
+ | null;
919
+ type?: "dv" | null;
920
+ uploadedOn?: string | null;
921
+ validationErrors?: { message?: string | null }[] | null;
922
+ validationRecords?:
923
+ | {
924
+ emails?: string[] | null;
925
+ httpBody?: string | null;
926
+ httpUrl?: string | null;
927
+ txtName?: string | null;
928
+ txtValue?: string | null;
929
+ }[]
930
+ | null;
931
+ wildcard?: boolean | null;
932
+ };
933
+ createdAt?: string | null;
934
+ customMetadata?: Record<string, unknown> | null;
935
+ customOriginServer?: string | null;
936
+ customOriginSni?: string | null;
937
+ ownershipVerification?: {
938
+ name?: string | null;
939
+ type?: "txt" | null;
940
+ value?: string | null;
941
+ } | null;
942
+ ownershipVerificationHttp?: {
943
+ httpBody?: string | null;
944
+ httpUrl?: string | null;
945
+ } | null;
946
+ status?:
947
+ | "active"
948
+ | "pending"
949
+ | "active_redeploying"
950
+ | "moved"
951
+ | "pending_deletion"
952
+ | "deleted"
953
+ | "pending_blocked"
954
+ | "pending_migration"
955
+ | "pending_provisioned"
956
+ | "test_pending"
957
+ | "test_active"
958
+ | "test_active_apex"
959
+ | "test_blocked"
960
+ | "test_failed"
961
+ | "provisioned"
962
+ | "blocked"
963
+ | null;
964
+ verificationErrors?: string[] | null;
965
+ }[];
966
+
967
+ export const ListCustomHostnamesResponse =
968
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
969
+ Schema.Struct({
970
+ id: Schema.String,
971
+ hostname: Schema.String,
972
+ ssl: Schema.Struct({
973
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
974
+ bundleMethod: Schema.optional(
975
+ Schema.Union([
976
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
977
+ Schema.Null,
978
+ ]),
979
+ ),
980
+ certificateAuthority: Schema.optional(
981
+ Schema.Union([
982
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
983
+ Schema.Null,
984
+ ]),
985
+ ),
986
+ customCertificate: Schema.optional(
987
+ Schema.Union([Schema.String, Schema.Null]),
988
+ ),
989
+ customCsrId: Schema.optional(
990
+ Schema.Union([Schema.String, Schema.Null]),
991
+ ),
992
+ customKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
993
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
994
+ hosts: Schema.optional(
995
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
996
+ ),
997
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
998
+ method: Schema.optional(
999
+ Schema.Union([
1000
+ Schema.Literals(["http", "txt", "email"]),
1001
+ Schema.Null,
1002
+ ]),
1003
+ ),
1004
+ serialNumber: Schema.optional(
1005
+ Schema.Union([Schema.String, Schema.Null]),
1006
+ ),
1007
+ settings: Schema.optional(
1008
+ Schema.Union([
1009
+ Schema.Struct({
1010
+ ciphers: Schema.optional(
1011
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1012
+ ),
1013
+ earlyHints: Schema.optional(
1014
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1015
+ ),
1016
+ http2: Schema.optional(
1017
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1018
+ ),
1019
+ minTlsVersion: Schema.optional(
1020
+ Schema.Union([
1021
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
1022
+ Schema.Null,
1023
+ ]),
1024
+ ),
1025
+ tls_1_3: Schema.optional(
1026
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1027
+ ),
1028
+ }).pipe(
1029
+ Schema.encodeKeys({
1030
+ ciphers: "ciphers",
1031
+ earlyHints: "early_hints",
1032
+ http2: "http2",
1033
+ minTlsVersion: "min_tls_version",
1034
+ tls_1_3: "tls_1_3",
1035
+ }),
1036
+ ),
1037
+ Schema.Null,
1038
+ ]),
1039
+ ),
1040
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1041
+ status: Schema.optional(
1042
+ Schema.Union([
1043
+ Schema.Literals([
1044
+ "initializing",
1045
+ "pending_validation",
1046
+ "deleted",
1047
+ "pending_issuance",
1048
+ "pending_deployment",
1049
+ "pending_deletion",
1050
+ "pending_expiration",
1051
+ "expired",
1052
+ "active",
1053
+ "initializing_timed_out",
1054
+ "validation_timed_out",
1055
+ "issuance_timed_out",
1056
+ "deployment_timed_out",
1057
+ "deletion_timed_out",
1058
+ "pending_cleanup",
1059
+ "staging_deployment",
1060
+ "staging_active",
1061
+ "deactivating",
1062
+ "inactive",
1063
+ "backup_issued",
1064
+ "holding_deployment",
1065
+ ]),
1066
+ Schema.Null,
1067
+ ]),
1068
+ ),
1069
+ type: Schema.optional(
1070
+ Schema.Union([Schema.Literal("dv"), Schema.Null]),
1071
+ ),
1072
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1073
+ validationErrors: Schema.optional(
1074
+ Schema.Union([
1075
+ Schema.Array(
1076
+ Schema.Struct({
1077
+ message: Schema.optional(
1078
+ Schema.Union([Schema.String, Schema.Null]),
1079
+ ),
1080
+ }),
1081
+ ),
1082
+ Schema.Null,
1083
+ ]),
1084
+ ),
1085
+ validationRecords: Schema.optional(
1086
+ Schema.Union([
1087
+ Schema.Array(
1088
+ Schema.Struct({
1089
+ emails: Schema.optional(
1090
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1091
+ ),
1092
+ httpBody: Schema.optional(
1093
+ Schema.Union([Schema.String, Schema.Null]),
1094
+ ),
1095
+ httpUrl: Schema.optional(
1096
+ Schema.Union([Schema.String, Schema.Null]),
1097
+ ),
1098
+ txtName: Schema.optional(
1099
+ Schema.Union([Schema.String, Schema.Null]),
1100
+ ),
1101
+ txtValue: Schema.optional(
1102
+ Schema.Union([Schema.String, Schema.Null]),
1103
+ ),
1104
+ }).pipe(
1105
+ Schema.encodeKeys({
1106
+ emails: "emails",
1107
+ httpBody: "http_body",
1108
+ httpUrl: "http_url",
1109
+ txtName: "txt_name",
1110
+ txtValue: "txt_value",
1111
+ }),
1112
+ ),
1113
+ ),
1114
+ Schema.Null,
1115
+ ]),
1116
+ ),
1117
+ wildcard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1118
+ }).pipe(
1119
+ Schema.encodeKeys({
1120
+ id: "id",
1121
+ bundleMethod: "bundle_method",
1122
+ certificateAuthority: "certificate_authority",
1123
+ customCertificate: "custom_certificate",
1124
+ customCsrId: "custom_csr_id",
1125
+ customKey: "custom_key",
1126
+ expiresOn: "expires_on",
1127
+ hosts: "hosts",
1128
+ issuer: "issuer",
1129
+ method: "method",
1130
+ serialNumber: "serial_number",
1131
+ settings: "settings",
1132
+ signature: "signature",
1133
+ status: "status",
1134
+ type: "type",
1135
+ uploadedOn: "uploaded_on",
1136
+ validationErrors: "validation_errors",
1137
+ validationRecords: "validation_records",
1138
+ wildcard: "wildcard",
1139
+ }),
1140
+ ),
1141
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1142
+ customMetadata: Schema.optional(
1143
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1144
+ ),
1145
+ customOriginServer: Schema.optional(
1146
+ Schema.Union([Schema.String, Schema.Null]),
1147
+ ),
1148
+ customOriginSni: Schema.optional(
1149
+ Schema.Union([Schema.String, Schema.Null]),
1150
+ ),
1151
+ ownershipVerification: Schema.optional(
1152
+ Schema.Union([
1153
+ Schema.Struct({
1154
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1155
+ type: Schema.optional(
1156
+ Schema.Union([Schema.Literal("txt"), Schema.Null]),
1157
+ ),
1158
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1159
+ }),
1160
+ Schema.Null,
1161
+ ]),
1162
+ ),
1163
+ ownershipVerificationHttp: Schema.optional(
1164
+ Schema.Union([
1165
+ Schema.Struct({
1166
+ httpBody: Schema.optional(
1167
+ Schema.Union([Schema.String, Schema.Null]),
1168
+ ),
1169
+ httpUrl: Schema.optional(
1170
+ Schema.Union([Schema.String, Schema.Null]),
1171
+ ),
1172
+ }).pipe(
1173
+ Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" }),
1174
+ ),
1175
+ Schema.Null,
1176
+ ]),
1177
+ ),
1178
+ status: Schema.optional(
1179
+ Schema.Union([
1180
+ Schema.Literals([
1181
+ "active",
1182
+ "pending",
1183
+ "active_redeploying",
1184
+ "moved",
1185
+ "pending_deletion",
1186
+ "deleted",
1187
+ "pending_blocked",
1188
+ "pending_migration",
1189
+ "pending_provisioned",
1190
+ "test_pending",
1191
+ "test_active",
1192
+ "test_active_apex",
1193
+ "test_blocked",
1194
+ "test_failed",
1195
+ "provisioned",
1196
+ "blocked",
1197
+ ]),
1198
+ Schema.Null,
1199
+ ]),
1200
+ ),
1201
+ verificationErrors: Schema.optional(
1202
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1203
+ ),
1204
+ }).pipe(
1205
+ Schema.encodeKeys({
1206
+ id: "id",
1207
+ hostname: "hostname",
1208
+ ssl: "ssl",
1209
+ createdAt: "created_at",
1210
+ customMetadata: "custom_metadata",
1211
+ customOriginServer: "custom_origin_server",
1212
+ customOriginSni: "custom_origin_sni",
1213
+ ownershipVerification: "ownership_verification",
1214
+ ownershipVerificationHttp: "ownership_verification_http",
1215
+ status: "status",
1216
+ verificationErrors: "verification_errors",
1217
+ }),
1218
+ ),
1219
+ ) as unknown as Schema.Schema<ListCustomHostnamesResponse>;
1220
+
1221
+ export type ListCustomHostnamesError = DefaultErrors;
1222
+
1223
+ export const listCustomHostnames: API.OperationMethod<
1224
+ ListCustomHostnamesRequest,
1225
+ ListCustomHostnamesResponse,
1226
+ ListCustomHostnamesError,
1227
+ Credentials | HttpClient.HttpClient
1228
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1229
+ input: ListCustomHostnamesRequest,
1230
+ output: ListCustomHostnamesResponse,
1231
+ errors: [],
1232
+ }));
1233
+
1234
+ export interface CreateCustomHostnameRequest {
1235
+ /** Path param: Identifier. */
1236
+ zoneId: string;
1237
+ /** Body param: The custom hostname that will point to your hostname via CNAME. */
1238
+ hostname: string;
1239
+ /** Body param: Unique key/value metadata for this hostname. These are per-hostname (customer) settings. */
1240
+ customMetadata?: Record<string, unknown>;
1241
+ /** Body param: SSL properties used when creating the custom hostname. */
1242
+ ssl?: {
1243
+ bundleMethod?: "ubiquitous" | "optimal" | "force";
1244
+ certificateAuthority?: "google" | "lets_encrypt" | "ssl_com" | "digicert";
1245
+ cloudflareBranding?: boolean;
1246
+ customCertBundle?: { customCertificate: string; customKey: string }[];
1247
+ customCertificate?: string;
1248
+ customKey?: string;
1249
+ method?: "http" | "txt" | "email";
1250
+ settings?: {
1251
+ ciphers?: string[];
1252
+ earlyHints?: "on" | "off";
1253
+ http2?: "on" | "off";
1254
+ minTlsVersion?: "1.0" | "1.1" | "1.2" | "1.3";
1255
+ tls_1_3?: "on" | "off";
1256
+ };
1257
+ type?: "dv";
1258
+ wildcard?: boolean;
1259
+ };
1260
+ }
1261
+
1262
+ export const CreateCustomHostnameRequest =
1263
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1264
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1265
+ hostname: Schema.String,
1266
+ customMetadata: Schema.optional(Schema.Struct({})),
1267
+ ssl: Schema.optional(
1268
+ Schema.Struct({
1269
+ bundleMethod: Schema.optional(
1270
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
1271
+ ),
1272
+ certificateAuthority: Schema.optional(
1273
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
1274
+ ),
1275
+ cloudflareBranding: Schema.optional(Schema.Boolean),
1276
+ customCertBundle: Schema.optional(
1277
+ Schema.Array(
1278
+ Schema.Struct({
1279
+ customCertificate: Schema.String,
1280
+ customKey: Schema.String,
1281
+ }).pipe(
1282
+ Schema.encodeKeys({
1283
+ customCertificate: "custom_certificate",
1284
+ customKey: "custom_key",
1285
+ }),
1286
+ ),
1287
+ ),
1288
+ ),
1289
+ customCertificate: Schema.optional(Schema.String),
1290
+ customKey: Schema.optional(Schema.String),
1291
+ method: Schema.optional(Schema.Literals(["http", "txt", "email"])),
1292
+ settings: Schema.optional(
1293
+ Schema.Struct({
1294
+ ciphers: Schema.optional(Schema.Array(Schema.String)),
1295
+ earlyHints: Schema.optional(Schema.Literals(["on", "off"])),
1296
+ http2: Schema.optional(Schema.Literals(["on", "off"])),
1297
+ minTlsVersion: Schema.optional(
1298
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
1299
+ ),
1300
+ tls_1_3: Schema.optional(Schema.Literals(["on", "off"])),
1301
+ }).pipe(
1302
+ Schema.encodeKeys({
1303
+ ciphers: "ciphers",
1304
+ earlyHints: "early_hints",
1305
+ http2: "http2",
1306
+ minTlsVersion: "min_tls_version",
1307
+ tls_1_3: "tls_1_3",
1308
+ }),
1309
+ ),
1310
+ ),
1311
+ type: Schema.optional(Schema.Literal("dv")),
1312
+ wildcard: Schema.optional(Schema.Boolean),
1313
+ }).pipe(
1314
+ Schema.encodeKeys({
1315
+ bundleMethod: "bundle_method",
1316
+ certificateAuthority: "certificate_authority",
1317
+ cloudflareBranding: "cloudflare_branding",
1318
+ customCertBundle: "custom_cert_bundle",
1319
+ customCertificate: "custom_certificate",
1320
+ customKey: "custom_key",
1321
+ method: "method",
1322
+ settings: "settings",
1323
+ type: "type",
1324
+ wildcard: "wildcard",
1325
+ }),
1326
+ ),
1327
+ ),
1328
+ }).pipe(
1329
+ Schema.encodeKeys({
1330
+ hostname: "hostname",
1331
+ customMetadata: "custom_metadata",
1332
+ ssl: "ssl",
1333
+ }),
1334
+ T.Http({ method: "POST", path: "/zones/{zone_id}/custom_hostnames" }),
1335
+ ) as unknown as Schema.Schema<CreateCustomHostnameRequest>;
1336
+
1337
+ export interface CreateCustomHostnameResponse {
1338
+ /** Identifier. */
1339
+ id: string;
1340
+ /** The custom hostname that will point to your hostname via CNAME. */
1341
+ hostname: string;
1342
+ ssl: {
1343
+ id?: string | null;
1344
+ bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
1345
+ certificateAuthority?:
1346
+ | "google"
1347
+ | "lets_encrypt"
1348
+ | "ssl_com"
1349
+ | "digicert"
1350
+ | null;
1351
+ customCertificate?: string | null;
1352
+ customCsrId?: string | null;
1353
+ customKey?: string | null;
1354
+ expiresOn?: string | null;
1355
+ hosts?: string[] | null;
1356
+ issuer?: string | null;
1357
+ method?: "http" | "txt" | "email" | null;
1358
+ serialNumber?: string | null;
1359
+ settings?: {
1360
+ ciphers?: string[] | null;
1361
+ earlyHints?: "on" | "off" | null;
1362
+ http2?: "on" | "off" | null;
1363
+ minTlsVersion?: "1.0" | "1.1" | "1.2" | "1.3" | null;
1364
+ tls_1_3?: "on" | "off" | null;
1365
+ } | null;
1366
+ signature?: string | null;
1367
+ status?:
1368
+ | "initializing"
1369
+ | "pending_validation"
1370
+ | "deleted"
1371
+ | "pending_issuance"
1372
+ | "pending_deployment"
1373
+ | "pending_deletion"
1374
+ | "pending_expiration"
1375
+ | "expired"
1376
+ | "active"
1377
+ | "initializing_timed_out"
1378
+ | "validation_timed_out"
1379
+ | "issuance_timed_out"
1380
+ | "deployment_timed_out"
1381
+ | "deletion_timed_out"
1382
+ | "pending_cleanup"
1383
+ | "staging_deployment"
1384
+ | "staging_active"
1385
+ | "deactivating"
1386
+ | "inactive"
1387
+ | "backup_issued"
1388
+ | "holding_deployment"
1389
+ | null;
1390
+ type?: "dv" | null;
1391
+ uploadedOn?: string | null;
1392
+ validationErrors?: { message?: string | null }[] | null;
1393
+ validationRecords?:
1394
+ | {
1395
+ emails?: string[] | null;
1396
+ httpBody?: string | null;
1397
+ httpUrl?: string | null;
1398
+ txtName?: string | null;
1399
+ txtValue?: string | null;
1400
+ }[]
1401
+ | null;
1402
+ wildcard?: boolean | null;
1403
+ };
1404
+ /** This is the time the hostname was created. */
1405
+ createdAt?: string | null;
1406
+ /** Unique key/value metadata for this hostname. These are per-hostname (customer) settings. */
1407
+ customMetadata?: Record<string, unknown> | null;
1408
+ /** a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record. */
1409
+ customOriginServer?: string | null;
1410
+ /** A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ':request_host_header:' which w */
1411
+ customOriginSni?: string | null;
1412
+ /** This is a record which can be placed to activate a hostname. */
1413
+ ownershipVerification?: {
1414
+ name?: string | null;
1415
+ type?: "txt" | null;
1416
+ value?: string | null;
1417
+ } | null;
1418
+ /** This presents the token to be served by the given http url to activate a hostname. */
1419
+ ownershipVerificationHttp?: {
1420
+ httpBody?: string | null;
1421
+ httpUrl?: string | null;
1422
+ } | null;
1423
+ /** Status of the hostname's activation. */
1424
+ status?:
1425
+ | "active"
1426
+ | "pending"
1427
+ | "active_redeploying"
1428
+ | "moved"
1429
+ | "pending_deletion"
1430
+ | "deleted"
1431
+ | "pending_blocked"
1432
+ | "pending_migration"
1433
+ | "pending_provisioned"
1434
+ | "test_pending"
1435
+ | "test_active"
1436
+ | "test_active_apex"
1437
+ | "test_blocked"
1438
+ | "test_failed"
1439
+ | "provisioned"
1440
+ | "blocked"
1441
+ | null;
1442
+ /** These are errors that were encountered while trying to activate a hostname. */
1443
+ verificationErrors?: string[] | null;
1444
+ }
1445
+
1446
+ export const CreateCustomHostnameResponse =
1447
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1448
+ id: Schema.String,
1449
+ hostname: Schema.String,
1450
+ ssl: Schema.Struct({
1451
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1452
+ bundleMethod: Schema.optional(
1453
+ Schema.Union([
1454
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
1455
+ Schema.Null,
1456
+ ]),
1457
+ ),
1458
+ certificateAuthority: Schema.optional(
1459
+ Schema.Union([
1460
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
1461
+ Schema.Null,
1462
+ ]),
1463
+ ),
1464
+ customCertificate: Schema.optional(
1465
+ Schema.Union([Schema.String, Schema.Null]),
1466
+ ),
1467
+ customCsrId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1468
+ customKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1469
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1470
+ hosts: Schema.optional(
1471
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1472
+ ),
1473
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1474
+ method: Schema.optional(
1475
+ Schema.Union([Schema.Literals(["http", "txt", "email"]), Schema.Null]),
1476
+ ),
1477
+ serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1478
+ settings: Schema.optional(
1479
+ Schema.Union([
1480
+ Schema.Struct({
1481
+ ciphers: Schema.optional(
1482
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1483
+ ),
1484
+ earlyHints: Schema.optional(
1485
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1486
+ ),
1487
+ http2: Schema.optional(
1488
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1489
+ ),
1490
+ minTlsVersion: Schema.optional(
1491
+ Schema.Union([
1492
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
1493
+ Schema.Null,
1494
+ ]),
1495
+ ),
1496
+ tls_1_3: Schema.optional(
1497
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1498
+ ),
1499
+ }).pipe(
1500
+ Schema.encodeKeys({
1501
+ ciphers: "ciphers",
1502
+ earlyHints: "early_hints",
1503
+ http2: "http2",
1504
+ minTlsVersion: "min_tls_version",
1505
+ tls_1_3: "tls_1_3",
1506
+ }),
1507
+ ),
1508
+ Schema.Null,
1509
+ ]),
1510
+ ),
1511
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1512
+ status: Schema.optional(
1513
+ Schema.Union([
1514
+ Schema.Literals([
1515
+ "initializing",
1516
+ "pending_validation",
1517
+ "deleted",
1518
+ "pending_issuance",
1519
+ "pending_deployment",
1520
+ "pending_deletion",
1521
+ "pending_expiration",
1522
+ "expired",
1523
+ "active",
1524
+ "initializing_timed_out",
1525
+ "validation_timed_out",
1526
+ "issuance_timed_out",
1527
+ "deployment_timed_out",
1528
+ "deletion_timed_out",
1529
+ "pending_cleanup",
1530
+ "staging_deployment",
1531
+ "staging_active",
1532
+ "deactivating",
1533
+ "inactive",
1534
+ "backup_issued",
1535
+ "holding_deployment",
1536
+ ]),
1537
+ Schema.Null,
1538
+ ]),
1539
+ ),
1540
+ type: Schema.optional(Schema.Union([Schema.Literal("dv"), Schema.Null])),
1541
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1542
+ validationErrors: Schema.optional(
1543
+ Schema.Union([
1544
+ Schema.Array(
1545
+ Schema.Struct({
1546
+ message: Schema.optional(
1547
+ Schema.Union([Schema.String, Schema.Null]),
1548
+ ),
1549
+ }),
1550
+ ),
1551
+ Schema.Null,
1552
+ ]),
1553
+ ),
1554
+ validationRecords: Schema.optional(
1555
+ Schema.Union([
1556
+ Schema.Array(
1557
+ Schema.Struct({
1558
+ emails: Schema.optional(
1559
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1560
+ ),
1561
+ httpBody: Schema.optional(
1562
+ Schema.Union([Schema.String, Schema.Null]),
1563
+ ),
1564
+ httpUrl: Schema.optional(
1565
+ Schema.Union([Schema.String, Schema.Null]),
1566
+ ),
1567
+ txtName: Schema.optional(
1568
+ Schema.Union([Schema.String, Schema.Null]),
1569
+ ),
1570
+ txtValue: Schema.optional(
1571
+ Schema.Union([Schema.String, Schema.Null]),
1572
+ ),
1573
+ }).pipe(
1574
+ Schema.encodeKeys({
1575
+ emails: "emails",
1576
+ httpBody: "http_body",
1577
+ httpUrl: "http_url",
1578
+ txtName: "txt_name",
1579
+ txtValue: "txt_value",
1580
+ }),
1581
+ ),
1582
+ ),
1583
+ Schema.Null,
1584
+ ]),
1585
+ ),
1586
+ wildcard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1587
+ }).pipe(
1588
+ Schema.encodeKeys({
1589
+ id: "id",
1590
+ bundleMethod: "bundle_method",
1591
+ certificateAuthority: "certificate_authority",
1592
+ customCertificate: "custom_certificate",
1593
+ customCsrId: "custom_csr_id",
1594
+ customKey: "custom_key",
1595
+ expiresOn: "expires_on",
1596
+ hosts: "hosts",
1597
+ issuer: "issuer",
1598
+ method: "method",
1599
+ serialNumber: "serial_number",
1600
+ settings: "settings",
1601
+ signature: "signature",
1602
+ status: "status",
1603
+ type: "type",
1604
+ uploadedOn: "uploaded_on",
1605
+ validationErrors: "validation_errors",
1606
+ validationRecords: "validation_records",
1607
+ wildcard: "wildcard",
1608
+ }),
1609
+ ),
1610
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1611
+ customMetadata: Schema.optional(
1612
+ Schema.Union([Schema.Struct({}), Schema.Null]),
1613
+ ),
1614
+ customOriginServer: Schema.optional(
1615
+ Schema.Union([Schema.String, Schema.Null]),
1616
+ ),
1617
+ customOriginSni: Schema.optional(
1618
+ Schema.Union([Schema.String, Schema.Null]),
1619
+ ),
1620
+ ownershipVerification: Schema.optional(
1621
+ Schema.Union([
1622
+ Schema.Struct({
1623
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1624
+ type: Schema.optional(
1625
+ Schema.Union([Schema.Literal("txt"), Schema.Null]),
1626
+ ),
1627
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1628
+ }),
1629
+ Schema.Null,
1630
+ ]),
1631
+ ),
1632
+ ownershipVerificationHttp: Schema.optional(
1633
+ Schema.Union([
1634
+ Schema.Struct({
1635
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1636
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1637
+ }).pipe(
1638
+ Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" }),
1639
+ ),
1640
+ Schema.Null,
1641
+ ]),
1642
+ ),
1643
+ status: Schema.optional(
1644
+ Schema.Union([
1645
+ Schema.Literals([
1646
+ "active",
1647
+ "pending",
1648
+ "active_redeploying",
1649
+ "moved",
1650
+ "pending_deletion",
1651
+ "deleted",
1652
+ "pending_blocked",
1653
+ "pending_migration",
1654
+ "pending_provisioned",
1655
+ "test_pending",
1656
+ "test_active",
1657
+ "test_active_apex",
1658
+ "test_blocked",
1659
+ "test_failed",
1660
+ "provisioned",
1661
+ "blocked",
1662
+ ]),
1663
+ Schema.Null,
1664
+ ]),
1665
+ ),
1666
+ verificationErrors: Schema.optional(
1667
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1668
+ ),
1669
+ }).pipe(
1670
+ Schema.encodeKeys({
1671
+ id: "id",
1672
+ hostname: "hostname",
1673
+ ssl: "ssl",
1674
+ createdAt: "created_at",
1675
+ customMetadata: "custom_metadata",
1676
+ customOriginServer: "custom_origin_server",
1677
+ customOriginSni: "custom_origin_sni",
1678
+ ownershipVerification: "ownership_verification",
1679
+ ownershipVerificationHttp: "ownership_verification_http",
1680
+ status: "status",
1681
+ verificationErrors: "verification_errors",
1682
+ }),
1683
+ ) as unknown as Schema.Schema<CreateCustomHostnameResponse>;
1684
+
1685
+ export type CreateCustomHostnameError = DefaultErrors;
1686
+
1687
+ export const createCustomHostname: API.OperationMethod<
1688
+ CreateCustomHostnameRequest,
1689
+ CreateCustomHostnameResponse,
1690
+ CreateCustomHostnameError,
1691
+ Credentials | HttpClient.HttpClient
1692
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1693
+ input: CreateCustomHostnameRequest,
1694
+ output: CreateCustomHostnameResponse,
1695
+ errors: [],
1696
+ }));
1697
+
1698
+ export interface PatchCustomHostnameRequest {
1699
+ customHostnameId: string;
1700
+ /** Path param: Identifier. */
1701
+ zoneId: string;
1702
+ /** Body param: Unique key/value metadata for this hostname. These are per-hostname (customer) settings. */
1703
+ customMetadata?: Record<string, unknown>;
1704
+ /** Body param: a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record. */
1705
+ customOriginServer?: string;
1706
+ /** Body param: A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ':request_host_head */
1707
+ customOriginSni?: string;
1708
+ /** Body param: SSL properties used when creating the custom hostname. */
1709
+ ssl?: {
1710
+ bundleMethod?: "ubiquitous" | "optimal" | "force";
1711
+ certificateAuthority?: "google" | "lets_encrypt" | "ssl_com" | "digicert";
1712
+ cloudflareBranding?: boolean;
1713
+ customCertBundle?: { customCertificate: string; customKey: string }[];
1714
+ customCertificate?: string;
1715
+ customKey?: string;
1716
+ method?: "http" | "txt" | "email";
1717
+ settings?: {
1718
+ ciphers?: string[];
1719
+ earlyHints?: "on" | "off";
1720
+ http2?: "on" | "off";
1721
+ minTlsVersion?: "1.0" | "1.1" | "1.2" | "1.3";
1722
+ tls_1_3?: "on" | "off";
1723
+ };
1724
+ type?: "dv";
1725
+ wildcard?: boolean;
1726
+ };
1727
+ }
1728
+
1729
+ export const PatchCustomHostnameRequest =
1730
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1731
+ customHostnameId: Schema.String.pipe(T.HttpPath("customHostnameId")),
1732
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1733
+ customMetadata: Schema.optional(Schema.Struct({})),
1734
+ customOriginServer: Schema.optional(Schema.String),
1735
+ customOriginSni: Schema.optional(Schema.String),
1736
+ ssl: Schema.optional(
1737
+ Schema.Struct({
1738
+ bundleMethod: Schema.optional(
1739
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
1740
+ ),
1741
+ certificateAuthority: Schema.optional(
1742
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
1743
+ ),
1744
+ cloudflareBranding: Schema.optional(Schema.Boolean),
1745
+ customCertBundle: Schema.optional(
1746
+ Schema.Array(
1747
+ Schema.Struct({
1748
+ customCertificate: Schema.String,
1749
+ customKey: Schema.String,
1750
+ }).pipe(
1751
+ Schema.encodeKeys({
1752
+ customCertificate: "custom_certificate",
1753
+ customKey: "custom_key",
1754
+ }),
1755
+ ),
1756
+ ),
1757
+ ),
1758
+ customCertificate: Schema.optional(Schema.String),
1759
+ customKey: Schema.optional(Schema.String),
1760
+ method: Schema.optional(Schema.Literals(["http", "txt", "email"])),
1761
+ settings: Schema.optional(
1762
+ Schema.Struct({
1763
+ ciphers: Schema.optional(Schema.Array(Schema.String)),
1764
+ earlyHints: Schema.optional(Schema.Literals(["on", "off"])),
1765
+ http2: Schema.optional(Schema.Literals(["on", "off"])),
1766
+ minTlsVersion: Schema.optional(
1767
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
1768
+ ),
1769
+ tls_1_3: Schema.optional(Schema.Literals(["on", "off"])),
1770
+ }).pipe(
1771
+ Schema.encodeKeys({
1772
+ ciphers: "ciphers",
1773
+ earlyHints: "early_hints",
1774
+ http2: "http2",
1775
+ minTlsVersion: "min_tls_version",
1776
+ tls_1_3: "tls_1_3",
1777
+ }),
1778
+ ),
1779
+ ),
1780
+ type: Schema.optional(Schema.Literal("dv")),
1781
+ wildcard: Schema.optional(Schema.Boolean),
1782
+ }).pipe(
1783
+ Schema.encodeKeys({
1784
+ bundleMethod: "bundle_method",
1785
+ certificateAuthority: "certificate_authority",
1786
+ cloudflareBranding: "cloudflare_branding",
1787
+ customCertBundle: "custom_cert_bundle",
1788
+ customCertificate: "custom_certificate",
1789
+ customKey: "custom_key",
1790
+ method: "method",
1791
+ settings: "settings",
1792
+ type: "type",
1793
+ wildcard: "wildcard",
1794
+ }),
1795
+ ),
1796
+ ),
1797
+ }).pipe(
1798
+ Schema.encodeKeys({
1799
+ customMetadata: "custom_metadata",
1800
+ customOriginServer: "custom_origin_server",
1801
+ customOriginSni: "custom_origin_sni",
1802
+ ssl: "ssl",
1803
+ }),
1804
+ T.Http({
1805
+ method: "PATCH",
1806
+ path: "/zones/{zone_id}/custom_hostnames/{customHostnameId}",
1807
+ }),
1808
+ ) as unknown as Schema.Schema<PatchCustomHostnameRequest>;
1809
+
1810
+ export interface PatchCustomHostnameResponse {
1811
+ /** Identifier. */
1812
+ id: string;
1813
+ /** The custom hostname that will point to your hostname via CNAME. */
1814
+ hostname: string;
1815
+ ssl: {
1816
+ id?: string | null;
1817
+ bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
1818
+ certificateAuthority?:
1819
+ | "google"
1820
+ | "lets_encrypt"
1821
+ | "ssl_com"
1822
+ | "digicert"
1823
+ | null;
1824
+ customCertificate?: string | null;
1825
+ customCsrId?: string | null;
1826
+ customKey?: string | null;
1827
+ expiresOn?: string | null;
1828
+ hosts?: string[] | null;
1829
+ issuer?: string | null;
1830
+ method?: "http" | "txt" | "email" | null;
1831
+ serialNumber?: string | null;
1832
+ settings?: {
1833
+ ciphers?: string[] | null;
1834
+ earlyHints?: "on" | "off" | null;
1835
+ http2?: "on" | "off" | null;
1836
+ minTlsVersion?: "1.0" | "1.1" | "1.2" | "1.3" | null;
1837
+ tls_1_3?: "on" | "off" | null;
1838
+ } | null;
1839
+ signature?: string | null;
1840
+ status?:
1841
+ | "initializing"
1842
+ | "pending_validation"
1843
+ | "deleted"
1844
+ | "pending_issuance"
1845
+ | "pending_deployment"
1846
+ | "pending_deletion"
1847
+ | "pending_expiration"
1848
+ | "expired"
1849
+ | "active"
1850
+ | "initializing_timed_out"
1851
+ | "validation_timed_out"
1852
+ | "issuance_timed_out"
1853
+ | "deployment_timed_out"
1854
+ | "deletion_timed_out"
1855
+ | "pending_cleanup"
1856
+ | "staging_deployment"
1857
+ | "staging_active"
1858
+ | "deactivating"
1859
+ | "inactive"
1860
+ | "backup_issued"
1861
+ | "holding_deployment"
1862
+ | null;
1863
+ type?: "dv" | null;
1864
+ uploadedOn?: string | null;
1865
+ validationErrors?: { message?: string | null }[] | null;
1866
+ validationRecords?:
1867
+ | {
1868
+ emails?: string[] | null;
1869
+ httpBody?: string | null;
1870
+ httpUrl?: string | null;
1871
+ txtName?: string | null;
1872
+ txtValue?: string | null;
1873
+ }[]
1874
+ | null;
1875
+ wildcard?: boolean | null;
1876
+ };
1877
+ /** This is the time the hostname was created. */
1878
+ createdAt?: string | null;
1879
+ /** Unique key/value metadata for this hostname. These are per-hostname (customer) settings. */
1880
+ customMetadata?: Record<string, unknown> | null;
1881
+ /** a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record. */
1882
+ customOriginServer?: string | null;
1883
+ /** A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ':request_host_header:' which w */
1884
+ customOriginSni?: string | null;
1885
+ /** This is a record which can be placed to activate a hostname. */
1886
+ ownershipVerification?: {
1887
+ name?: string | null;
1888
+ type?: "txt" | null;
1889
+ value?: string | null;
1890
+ } | null;
1891
+ /** This presents the token to be served by the given http url to activate a hostname. */
1892
+ ownershipVerificationHttp?: {
1893
+ httpBody?: string | null;
1894
+ httpUrl?: string | null;
1895
+ } | null;
1896
+ /** Status of the hostname's activation. */
1897
+ status?:
1898
+ | "active"
1899
+ | "pending"
1900
+ | "active_redeploying"
1901
+ | "moved"
1902
+ | "pending_deletion"
1903
+ | "deleted"
1904
+ | "pending_blocked"
1905
+ | "pending_migration"
1906
+ | "pending_provisioned"
1907
+ | "test_pending"
1908
+ | "test_active"
1909
+ | "test_active_apex"
1910
+ | "test_blocked"
1911
+ | "test_failed"
1912
+ | "provisioned"
1913
+ | "blocked"
1914
+ | null;
1915
+ /** These are errors that were encountered while trying to activate a hostname. */
1916
+ verificationErrors?: string[] | null;
1917
+ }
1918
+
1919
+ export const PatchCustomHostnameResponse =
1920
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1921
+ id: Schema.String,
1922
+ hostname: Schema.String,
1923
+ ssl: Schema.Struct({
1924
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1925
+ bundleMethod: Schema.optional(
1926
+ Schema.Union([
1927
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
1928
+ Schema.Null,
1929
+ ]),
1930
+ ),
1931
+ certificateAuthority: Schema.optional(
1932
+ Schema.Union([
1933
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
1934
+ Schema.Null,
1935
+ ]),
1936
+ ),
1937
+ customCertificate: Schema.optional(
1938
+ Schema.Union([Schema.String, Schema.Null]),
1939
+ ),
1940
+ customCsrId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1941
+ customKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1942
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1943
+ hosts: Schema.optional(
1944
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1945
+ ),
1946
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1947
+ method: Schema.optional(
1948
+ Schema.Union([Schema.Literals(["http", "txt", "email"]), Schema.Null]),
1949
+ ),
1950
+ serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1951
+ settings: Schema.optional(
1952
+ Schema.Union([
1953
+ Schema.Struct({
1954
+ ciphers: Schema.optional(
1955
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1956
+ ),
1957
+ earlyHints: Schema.optional(
1958
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1959
+ ),
1960
+ http2: Schema.optional(
1961
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1962
+ ),
1963
+ minTlsVersion: Schema.optional(
1964
+ Schema.Union([
1965
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
1966
+ Schema.Null,
1967
+ ]),
1968
+ ),
1969
+ tls_1_3: Schema.optional(
1970
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1971
+ ),
1972
+ }).pipe(
1973
+ Schema.encodeKeys({
1974
+ ciphers: "ciphers",
1975
+ earlyHints: "early_hints",
1976
+ http2: "http2",
1977
+ minTlsVersion: "min_tls_version",
1978
+ tls_1_3: "tls_1_3",
1979
+ }),
1980
+ ),
1981
+ Schema.Null,
1982
+ ]),
1983
+ ),
1984
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1985
+ status: Schema.optional(
1986
+ Schema.Union([
1987
+ Schema.Literals([
1988
+ "initializing",
1989
+ "pending_validation",
1990
+ "deleted",
1991
+ "pending_issuance",
1992
+ "pending_deployment",
1993
+ "pending_deletion",
1994
+ "pending_expiration",
1995
+ "expired",
1996
+ "active",
1997
+ "initializing_timed_out",
1998
+ "validation_timed_out",
1999
+ "issuance_timed_out",
2000
+ "deployment_timed_out",
2001
+ "deletion_timed_out",
2002
+ "pending_cleanup",
2003
+ "staging_deployment",
2004
+ "staging_active",
2005
+ "deactivating",
2006
+ "inactive",
2007
+ "backup_issued",
2008
+ "holding_deployment",
2009
+ ]),
2010
+ Schema.Null,
2011
+ ]),
2012
+ ),
2013
+ type: Schema.optional(Schema.Union([Schema.Literal("dv"), Schema.Null])),
2014
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2015
+ validationErrors: Schema.optional(
2016
+ Schema.Union([
2017
+ Schema.Array(
2018
+ Schema.Struct({
2019
+ message: Schema.optional(
2020
+ Schema.Union([Schema.String, Schema.Null]),
2021
+ ),
2022
+ }),
2023
+ ),
2024
+ Schema.Null,
2025
+ ]),
2026
+ ),
2027
+ validationRecords: Schema.optional(
2028
+ Schema.Union([
2029
+ Schema.Array(
2030
+ Schema.Struct({
2031
+ emails: Schema.optional(
2032
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2033
+ ),
2034
+ httpBody: Schema.optional(
2035
+ Schema.Union([Schema.String, Schema.Null]),
2036
+ ),
2037
+ httpUrl: Schema.optional(
2038
+ Schema.Union([Schema.String, Schema.Null]),
2039
+ ),
2040
+ txtName: Schema.optional(
2041
+ Schema.Union([Schema.String, Schema.Null]),
2042
+ ),
2043
+ txtValue: Schema.optional(
2044
+ Schema.Union([Schema.String, Schema.Null]),
2045
+ ),
2046
+ }).pipe(
2047
+ Schema.encodeKeys({
2048
+ emails: "emails",
2049
+ httpBody: "http_body",
2050
+ httpUrl: "http_url",
2051
+ txtName: "txt_name",
2052
+ txtValue: "txt_value",
2053
+ }),
2054
+ ),
2055
+ ),
2056
+ Schema.Null,
2057
+ ]),
2058
+ ),
2059
+ wildcard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2060
+ }).pipe(
2061
+ Schema.encodeKeys({
2062
+ id: "id",
2063
+ bundleMethod: "bundle_method",
2064
+ certificateAuthority: "certificate_authority",
2065
+ customCertificate: "custom_certificate",
2066
+ customCsrId: "custom_csr_id",
2067
+ customKey: "custom_key",
2068
+ expiresOn: "expires_on",
2069
+ hosts: "hosts",
2070
+ issuer: "issuer",
2071
+ method: "method",
2072
+ serialNumber: "serial_number",
2073
+ settings: "settings",
2074
+ signature: "signature",
2075
+ status: "status",
2076
+ type: "type",
2077
+ uploadedOn: "uploaded_on",
2078
+ validationErrors: "validation_errors",
2079
+ validationRecords: "validation_records",
2080
+ wildcard: "wildcard",
2081
+ }),
2082
+ ),
2083
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2084
+ customMetadata: Schema.optional(
2085
+ Schema.Union([Schema.Struct({}), Schema.Null]),
2086
+ ),
2087
+ customOriginServer: Schema.optional(
2088
+ Schema.Union([Schema.String, Schema.Null]),
2089
+ ),
2090
+ customOriginSni: Schema.optional(
2091
+ Schema.Union([Schema.String, Schema.Null]),
2092
+ ),
2093
+ ownershipVerification: Schema.optional(
2094
+ Schema.Union([
2095
+ Schema.Struct({
2096
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2097
+ type: Schema.optional(
2098
+ Schema.Union([Schema.Literal("txt"), Schema.Null]),
2099
+ ),
2100
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2101
+ }),
2102
+ Schema.Null,
2103
+ ]),
2104
+ ),
2105
+ ownershipVerificationHttp: Schema.optional(
2106
+ Schema.Union([
2107
+ Schema.Struct({
2108
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2109
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2110
+ }).pipe(
2111
+ Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" }),
2112
+ ),
2113
+ Schema.Null,
2114
+ ]),
2115
+ ),
2116
+ status: Schema.optional(
2117
+ Schema.Union([
2118
+ Schema.Literals([
2119
+ "active",
2120
+ "pending",
2121
+ "active_redeploying",
2122
+ "moved",
2123
+ "pending_deletion",
2124
+ "deleted",
2125
+ "pending_blocked",
2126
+ "pending_migration",
2127
+ "pending_provisioned",
2128
+ "test_pending",
2129
+ "test_active",
2130
+ "test_active_apex",
2131
+ "test_blocked",
2132
+ "test_failed",
2133
+ "provisioned",
2134
+ "blocked",
2135
+ ]),
2136
+ Schema.Null,
2137
+ ]),
2138
+ ),
2139
+ verificationErrors: Schema.optional(
2140
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2141
+ ),
2142
+ }).pipe(
2143
+ Schema.encodeKeys({
2144
+ id: "id",
2145
+ hostname: "hostname",
2146
+ ssl: "ssl",
2147
+ createdAt: "created_at",
2148
+ customMetadata: "custom_metadata",
2149
+ customOriginServer: "custom_origin_server",
2150
+ customOriginSni: "custom_origin_sni",
2151
+ ownershipVerification: "ownership_verification",
2152
+ ownershipVerificationHttp: "ownership_verification_http",
2153
+ status: "status",
2154
+ verificationErrors: "verification_errors",
2155
+ }),
2156
+ ) as unknown as Schema.Schema<PatchCustomHostnameResponse>;
2157
+
2158
+ export type PatchCustomHostnameError = DefaultErrors;
2159
+
2160
+ export const patchCustomHostname: API.OperationMethod<
2161
+ PatchCustomHostnameRequest,
2162
+ PatchCustomHostnameResponse,
2163
+ PatchCustomHostnameError,
2164
+ Credentials | HttpClient.HttpClient
2165
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2166
+ input: PatchCustomHostnameRequest,
2167
+ output: PatchCustomHostnameResponse,
2168
+ errors: [],
2169
+ }));
2170
+
2171
+ export interface DeleteCustomHostnameRequest {
2172
+ customHostnameId: string;
2173
+ /** Identifier. */
2174
+ zoneId: string;
2175
+ }
2176
+
2177
+ export const DeleteCustomHostnameRequest =
2178
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2179
+ customHostnameId: Schema.String.pipe(T.HttpPath("customHostnameId")),
2180
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
2181
+ }).pipe(
2182
+ T.Http({
2183
+ method: "DELETE",
2184
+ path: "/zones/{zone_id}/custom_hostnames/{customHostnameId}",
2185
+ }),
2186
+ ) as unknown as Schema.Schema<DeleteCustomHostnameRequest>;
2187
+
2188
+ export interface DeleteCustomHostnameResponse {
2189
+ /** Identifier. */
2190
+ id?: string | null;
2191
+ }
2192
+
2193
+ export const DeleteCustomHostnameResponse =
2194
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2195
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2196
+ }) as unknown as Schema.Schema<DeleteCustomHostnameResponse>;
2197
+
2198
+ export type DeleteCustomHostnameError = DefaultErrors;
2199
+
2200
+ export const deleteCustomHostname: API.OperationMethod<
2201
+ DeleteCustomHostnameRequest,
2202
+ DeleteCustomHostnameResponse,
2203
+ DeleteCustomHostnameError,
2204
+ Credentials | HttpClient.HttpClient
2205
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2206
+ input: DeleteCustomHostnameRequest,
2207
+ output: DeleteCustomHostnameResponse,
2208
+ errors: [],
2209
+ }));
2210
+
2211
+ // =============================================================================
2212
+ // FallbackOrigin
2213
+ // =============================================================================
2214
+
2215
+ export interface GetFallbackOriginRequest {
2216
+ /** Identifier. */
2217
+ zoneId: string;
2218
+ }
2219
+
2220
+ export const GetFallbackOriginRequest =
2221
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2222
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
2223
+ }).pipe(
2224
+ T.Http({
2225
+ method: "GET",
2226
+ path: "/zones/{zone_id}/custom_hostnames/fallback_origin",
2227
+ }),
2228
+ ) as unknown as Schema.Schema<GetFallbackOriginRequest>;
2229
+
2230
+ export interface GetFallbackOriginResponse {
2231
+ /** This is the time the fallback origin was created. */
2232
+ createdAt?: string | null;
2233
+ /** These are errors that were encountered while trying to activate a fallback origin. */
2234
+ errors?: string[] | null;
2235
+ /** Your origin hostname that requests to your custom hostnames will be sent to. */
2236
+ origin?: string | null;
2237
+ /** Status of the fallback origin's activation. */
2238
+ status?:
2239
+ | "initializing"
2240
+ | "pending_deployment"
2241
+ | "pending_deletion"
2242
+ | "active"
2243
+ | "deployment_timed_out"
2244
+ | "deletion_timed_out"
2245
+ | null;
2246
+ /** This is the time the fallback origin was updated. */
2247
+ updatedAt?: string | null;
2248
+ }
2249
+
2250
+ export const GetFallbackOriginResponse =
2251
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2252
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2253
+ errors: Schema.optional(
2254
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2255
+ ),
2256
+ origin: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2257
+ status: Schema.optional(
2258
+ Schema.Union([
2259
+ Schema.Literals([
2260
+ "initializing",
2261
+ "pending_deployment",
2262
+ "pending_deletion",
2263
+ "active",
2264
+ "deployment_timed_out",
2265
+ "deletion_timed_out",
2266
+ ]),
2267
+ Schema.Null,
2268
+ ]),
2269
+ ),
2270
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2271
+ }).pipe(
2272
+ Schema.encodeKeys({
2273
+ createdAt: "created_at",
2274
+ errors: "errors",
2275
+ origin: "origin",
2276
+ status: "status",
2277
+ updatedAt: "updated_at",
2278
+ }),
2279
+ ) as unknown as Schema.Schema<GetFallbackOriginResponse>;
2280
+
2281
+ export type GetFallbackOriginError = DefaultErrors;
2282
+
2283
+ export const getFallbackOrigin: API.OperationMethod<
2284
+ GetFallbackOriginRequest,
2285
+ GetFallbackOriginResponse,
2286
+ GetFallbackOriginError,
2287
+ Credentials | HttpClient.HttpClient
2288
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2289
+ input: GetFallbackOriginRequest,
2290
+ output: GetFallbackOriginResponse,
2291
+ errors: [],
2292
+ }));
2293
+
2294
+ export interface PutFallbackOriginRequest {
2295
+ /** Path param: Identifier. */
2296
+ zoneId: string;
2297
+ /** Body param: Your origin hostname that requests to your custom hostnames will be sent to. */
2298
+ origin: string;
2299
+ }
2300
+
2301
+ export const PutFallbackOriginRequest =
2302
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2303
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
2304
+ origin: Schema.String,
2305
+ }).pipe(
2306
+ T.Http({
2307
+ method: "PUT",
2308
+ path: "/zones/{zone_id}/custom_hostnames/fallback_origin",
2309
+ }),
2310
+ ) as unknown as Schema.Schema<PutFallbackOriginRequest>;
2311
+
2312
+ export interface PutFallbackOriginResponse {
2313
+ /** This is the time the fallback origin was created. */
2314
+ createdAt?: string | null;
2315
+ /** These are errors that were encountered while trying to activate a fallback origin. */
2316
+ errors?: string[] | null;
2317
+ /** Your origin hostname that requests to your custom hostnames will be sent to. */
2318
+ origin?: string | null;
2319
+ /** Status of the fallback origin's activation. */
2320
+ status?:
2321
+ | "initializing"
2322
+ | "pending_deployment"
2323
+ | "pending_deletion"
2324
+ | "active"
2325
+ | "deployment_timed_out"
2326
+ | "deletion_timed_out"
2327
+ | null;
2328
+ /** This is the time the fallback origin was updated. */
2329
+ updatedAt?: string | null;
2330
+ }
2331
+
2332
+ export const PutFallbackOriginResponse =
2333
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2334
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2335
+ errors: Schema.optional(
2336
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2337
+ ),
2338
+ origin: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2339
+ status: Schema.optional(
2340
+ Schema.Union([
2341
+ Schema.Literals([
2342
+ "initializing",
2343
+ "pending_deployment",
2344
+ "pending_deletion",
2345
+ "active",
2346
+ "deployment_timed_out",
2347
+ "deletion_timed_out",
2348
+ ]),
2349
+ Schema.Null,
2350
+ ]),
2351
+ ),
2352
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2353
+ }).pipe(
2354
+ Schema.encodeKeys({
2355
+ createdAt: "created_at",
2356
+ errors: "errors",
2357
+ origin: "origin",
2358
+ status: "status",
2359
+ updatedAt: "updated_at",
2360
+ }),
2361
+ ) as unknown as Schema.Schema<PutFallbackOriginResponse>;
2362
+
2363
+ export type PutFallbackOriginError = DefaultErrors;
2364
+
2365
+ export const putFallbackOrigin: API.OperationMethod<
2366
+ PutFallbackOriginRequest,
2367
+ PutFallbackOriginResponse,
2368
+ PutFallbackOriginError,
2369
+ Credentials | HttpClient.HttpClient
2370
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2371
+ input: PutFallbackOriginRequest,
2372
+ output: PutFallbackOriginResponse,
2373
+ errors: [],
2374
+ }));
2375
+
2376
+ export interface DeleteFallbackOriginRequest {
2377
+ /** Identifier. */
2378
+ zoneId: string;
2379
+ }
2380
+
2381
+ export const DeleteFallbackOriginRequest =
2382
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2383
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
2384
+ }).pipe(
2385
+ T.Http({
2386
+ method: "DELETE",
2387
+ path: "/zones/{zone_id}/custom_hostnames/fallback_origin",
2388
+ }),
2389
+ ) as unknown as Schema.Schema<DeleteFallbackOriginRequest>;
2390
+
2391
+ export interface DeleteFallbackOriginResponse {
2392
+ /** This is the time the fallback origin was created. */
2393
+ createdAt?: string | null;
2394
+ /** These are errors that were encountered while trying to activate a fallback origin. */
2395
+ errors?: string[] | null;
2396
+ /** Your origin hostname that requests to your custom hostnames will be sent to. */
2397
+ origin?: string | null;
2398
+ /** Status of the fallback origin's activation. */
2399
+ status?:
2400
+ | "initializing"
2401
+ | "pending_deployment"
2402
+ | "pending_deletion"
2403
+ | "active"
2404
+ | "deployment_timed_out"
2405
+ | "deletion_timed_out"
2406
+ | null;
2407
+ /** This is the time the fallback origin was updated. */
2408
+ updatedAt?: string | null;
2409
+ }
2410
+
2411
+ export const DeleteFallbackOriginResponse =
2412
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2413
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2414
+ errors: Schema.optional(
2415
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2416
+ ),
2417
+ origin: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2418
+ status: Schema.optional(
2419
+ Schema.Union([
2420
+ Schema.Literals([
2421
+ "initializing",
2422
+ "pending_deployment",
2423
+ "pending_deletion",
2424
+ "active",
2425
+ "deployment_timed_out",
2426
+ "deletion_timed_out",
2427
+ ]),
2428
+ Schema.Null,
2429
+ ]),
2430
+ ),
2431
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2432
+ }).pipe(
2433
+ Schema.encodeKeys({
2434
+ createdAt: "created_at",
2435
+ errors: "errors",
2436
+ origin: "origin",
2437
+ status: "status",
2438
+ updatedAt: "updated_at",
2439
+ }),
2440
+ ) as unknown as Schema.Schema<DeleteFallbackOriginResponse>;
2441
+
2442
+ export type DeleteFallbackOriginError = DefaultErrors;
2443
+
2444
+ export const deleteFallbackOrigin: API.OperationMethod<
2445
+ DeleteFallbackOriginRequest,
2446
+ DeleteFallbackOriginResponse,
2447
+ DeleteFallbackOriginError,
2448
+ Credentials | HttpClient.HttpClient
2449
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2450
+ input: DeleteFallbackOriginRequest,
2451
+ output: DeleteFallbackOriginResponse,
2452
+ errors: [],
2453
+ }));