@distilled.cloud/cloudflare 0.0.0-john

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