@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/lib/auth.d.ts +13 -0
  2. package/lib/auth.d.ts.map +1 -0
  3. package/lib/auth.js +12 -0
  4. package/lib/auth.js.map +1 -0
  5. package/lib/category.d.ts +2 -0
  6. package/lib/category.d.ts.map +1 -0
  7. package/lib/category.js +2 -0
  8. package/lib/category.js.map +1 -0
  9. package/lib/client/api.d.ts +14 -0
  10. package/lib/client/api.d.ts.map +1 -0
  11. package/lib/client/api.js +197 -0
  12. package/lib/client/api.js.map +1 -0
  13. package/lib/client/index.d.ts +8 -0
  14. package/lib/client/index.d.ts.map +1 -0
  15. package/lib/client/index.js +8 -0
  16. package/lib/client/index.js.map +1 -0
  17. package/lib/credentials.d.ts +14 -0
  18. package/lib/credentials.d.ts.map +1 -0
  19. package/lib/credentials.js +17 -0
  20. package/lib/credentials.js.map +1 -0
  21. package/lib/errors.d.ts +48 -0
  22. package/lib/errors.d.ts.map +1 -0
  23. package/lib/errors.js +38 -0
  24. package/lib/errors.js.map +1 -0
  25. package/lib/index.d.ts +10 -0
  26. package/lib/index.d.ts.map +1 -0
  27. package/lib/index.js +10 -0
  28. package/lib/index.js.map +1 -0
  29. package/lib/retry.d.ts +14 -0
  30. package/lib/retry.d.ts.map +1 -0
  31. package/lib/retry.js +14 -0
  32. package/lib/retry.js.map +1 -0
  33. package/lib/schemas.d.ts +29 -0
  34. package/lib/schemas.d.ts.map +1 -0
  35. package/lib/schemas.js +34 -0
  36. package/lib/schemas.js.map +1 -0
  37. package/lib/services/abuse-reports.d.ts +224 -0
  38. package/lib/services/abuse-reports.d.ts.map +1 -0
  39. package/lib/services/abuse-reports.js +353 -0
  40. package/lib/services/abuse-reports.js.map +1 -0
  41. package/lib/services/accounts.d.ts +682 -0
  42. package/lib/services/accounts.d.ts.map +1 -0
  43. package/lib/services/accounts.js +805 -0
  44. package/lib/services/accounts.js.map +1 -0
  45. package/lib/services/acm.d.ts +73 -0
  46. package/lib/services/acm.d.ts.map +1 -0
  47. package/lib/services/acm.js +76 -0
  48. package/lib/services/acm.js.map +1 -0
  49. package/lib/services/addressing.d.ts +1208 -0
  50. package/lib/services/addressing.d.ts.map +1 -0
  51. package/lib/services/addressing.js +1776 -0
  52. package/lib/services/addressing.js.map +1 -0
  53. package/lib/services/ai-gateway.d.ts +956 -0
  54. package/lib/services/ai-gateway.d.ts.map +1 -0
  55. package/lib/services/ai-gateway.js +1706 -0
  56. package/lib/services/ai-gateway.js.map +1 -0
  57. package/lib/services/ai.d.ts +243 -0
  58. package/lib/services/ai.d.ts.map +1 -0
  59. package/lib/services/ai.js +299 -0
  60. package/lib/services/ai.js.map +1 -0
  61. package/lib/services/aisearch.d.ts +915 -0
  62. package/lib/services/aisearch.d.ts.map +1 -0
  63. package/lib/services/aisearch.js +2425 -0
  64. package/lib/services/aisearch.js.map +1 -0
  65. package/lib/services/alerting.d.ts +718 -0
  66. package/lib/services/alerting.d.ts.map +1 -0
  67. package/lib/services/alerting.js +1388 -0
  68. package/lib/services/alerting.js.map +1 -0
  69. package/lib/services/api-gateway.d.ts +830 -0
  70. package/lib/services/api-gateway.d.ts.map +1 -0
  71. package/lib/services/api-gateway.js +1548 -0
  72. package/lib/services/api-gateway.js.map +1 -0
  73. package/lib/services/argo.d.ts +101 -0
  74. package/lib/services/argo.d.ts.map +1 -0
  75. package/lib/services/argo.js +105 -0
  76. package/lib/services/argo.js.map +1 -0
  77. package/lib/services/audit-logs.d.ts +46 -0
  78. package/lib/services/audit-logs.d.ts.map +1 -0
  79. package/lib/services/audit-logs.js +37 -0
  80. package/lib/services/audit-logs.js.map +1 -0
  81. package/lib/services/billing.d.ts +62 -0
  82. package/lib/services/billing.d.ts.map +1 -0
  83. package/lib/services/billing.js +100 -0
  84. package/lib/services/billing.js.map +1 -0
  85. package/lib/services/bot-management.d.ts +124 -0
  86. package/lib/services/bot-management.d.ts.map +1 -0
  87. package/lib/services/bot-management.js +262 -0
  88. package/lib/services/bot-management.js.map +1 -0
  89. package/lib/services/botnet-feed.d.ts +65 -0
  90. package/lib/services/botnet-feed.d.ts.map +1 -0
  91. package/lib/services/botnet-feed.js +84 -0
  92. package/lib/services/botnet-feed.js.map +1 -0
  93. package/lib/services/brand-protection.d.ts +188 -0
  94. package/lib/services/brand-protection.d.ts.map +1 -0
  95. package/lib/services/brand-protection.js +214 -0
  96. package/lib/services/brand-protection.js.map +1 -0
  97. package/lib/services/browser-rendering.d.ts +857 -0
  98. package/lib/services/browser-rendering.d.ts.map +1 -0
  99. package/lib/services/browser-rendering.js +1141 -0
  100. package/lib/services/browser-rendering.js.map +1 -0
  101. package/lib/services/cache.d.ts +287 -0
  102. package/lib/services/cache.d.ts.map +1 -0
  103. package/lib/services/cache.js +330 -0
  104. package/lib/services/cache.js.map +1 -0
  105. package/lib/services/calls.d.ts +202 -0
  106. package/lib/services/calls.d.ts.map +1 -0
  107. package/lib/services/calls.js +175 -0
  108. package/lib/services/calls.js.map +1 -0
  109. package/lib/services/certificate-authorities.d.ts +40 -0
  110. package/lib/services/certificate-authorities.d.ts.map +1 -0
  111. package/lib/services/certificate-authorities.js +49 -0
  112. package/lib/services/certificate-authorities.js.map +1 -0
  113. package/lib/services/client-certificates.d.ts +254 -0
  114. package/lib/services/client-certificates.d.ts.map +1 -0
  115. package/lib/services/client-certificates.js +350 -0
  116. package/lib/services/client-certificates.js.map +1 -0
  117. package/lib/services/cloud-connector.d.ts +59 -0
  118. package/lib/services/cloud-connector.d.ts.map +1 -0
  119. package/lib/services/cloud-connector.js +84 -0
  120. package/lib/services/cloud-connector.js.map +1 -0
  121. package/lib/services/cloudforce-one.d.ts +1318 -0
  122. package/lib/services/cloudforce-one.d.ts.map +1 -0
  123. package/lib/services/cloudforce-one.js +1684 -0
  124. package/lib/services/cloudforce-one.js.map +1 -0
  125. package/lib/services/connectivity.d.ts +248 -0
  126. package/lib/services/connectivity.d.ts.map +1 -0
  127. package/lib/services/connectivity.js +377 -0
  128. package/lib/services/connectivity.js.map +1 -0
  129. package/lib/services/content-scanning.d.ts +131 -0
  130. package/lib/services/content-scanning.d.ts.map +1 -0
  131. package/lib/services/content-scanning.js +156 -0
  132. package/lib/services/content-scanning.js.map +1 -0
  133. package/lib/services/custom-certificates.d.ts +211 -0
  134. package/lib/services/custom-certificates.d.ts.map +1 -0
  135. package/lib/services/custom-certificates.js +309 -0
  136. package/lib/services/custom-certificates.js.map +1 -0
  137. package/lib/services/custom-hostnames.d.ts +525 -0
  138. package/lib/services/custom-hostnames.d.ts.map +1 -0
  139. package/lib/services/custom-hostnames.js +1164 -0
  140. package/lib/services/custom-hostnames.js.map +1 -0
  141. package/lib/services/custom-nameservers.d.ts +67 -0
  142. package/lib/services/custom-nameservers.d.ts.map +1 -0
  143. package/lib/services/custom-nameservers.js +80 -0
  144. package/lib/services/custom-nameservers.js.map +1 -0
  145. package/lib/services/custom-pages.d.ts +74 -0
  146. package/lib/services/custom-pages.d.ts.map +1 -0
  147. package/lib/services/custom-pages.js +125 -0
  148. package/lib/services/custom-pages.js.map +1 -0
  149. package/lib/services/d1.d.ts +326 -0
  150. package/lib/services/d1.d.ts.map +1 -0
  151. package/lib/services/d1.js +448 -0
  152. package/lib/services/d1.js.map +1 -0
  153. package/lib/services/dcv-delegation.d.ts +24 -0
  154. package/lib/services/dcv-delegation.d.ts.map +1 -0
  155. package/lib/services/dcv-delegation.js +24 -0
  156. package/lib/services/dcv-delegation.js.map +1 -0
  157. package/lib/services/diagnostics.d.ts +175 -0
  158. package/lib/services/diagnostics.d.ts.map +1 -0
  159. package/lib/services/diagnostics.js +273 -0
  160. package/lib/services/diagnostics.js.map +1 -0
  161. package/lib/services/dns-firewall.d.ts +288 -0
  162. package/lib/services/dns-firewall.d.ts.map +1 -0
  163. package/lib/services/dns-firewall.js +373 -0
  164. package/lib/services/dns-firewall.js.map +1 -0
  165. package/lib/services/dns.d.ts +2946 -0
  166. package/lib/services/dns.d.ts.map +1 -0
  167. package/lib/services/dns.js +4511 -0
  168. package/lib/services/dns.js.map +1 -0
  169. package/lib/services/durable-objects.d.ts +61 -0
  170. package/lib/services/durable-objects.d.ts.map +1 -0
  171. package/lib/services/durable-objects.js +66 -0
  172. package/lib/services/durable-objects.js.map +1 -0
  173. package/lib/services/email-routing.d.ts +542 -0
  174. package/lib/services/email-routing.d.ts.map +1 -0
  175. package/lib/services/email-routing.js +662 -0
  176. package/lib/services/email-routing.js.map +1 -0
  177. package/lib/services/email-security.d.ts +1131 -0
  178. package/lib/services/email-security.d.ts.map +1 -0
  179. package/lib/services/email-security.js +2065 -0
  180. package/lib/services/email-security.js.map +1 -0
  181. package/lib/services/filters.d.ts +157 -0
  182. package/lib/services/filters.d.ts.map +1 -0
  183. package/lib/services/filters.js +135 -0
  184. package/lib/services/filters.js.map +1 -0
  185. package/lib/services/firewall.d.ts +1080 -0
  186. package/lib/services/firewall.d.ts.map +1 -0
  187. package/lib/services/firewall.js +1881 -0
  188. package/lib/services/firewall.js.map +1 -0
  189. package/lib/services/healthchecks.d.ts +464 -0
  190. package/lib/services/healthchecks.d.ts.map +1 -0
  191. package/lib/services/healthchecks.js +838 -0
  192. package/lib/services/healthchecks.js.map +1 -0
  193. package/lib/services/hostnames.d.ts +74 -0
  194. package/lib/services/hostnames.d.ts.map +1 -0
  195. package/lib/services/hostnames.js +100 -0
  196. package/lib/services/hostnames.js.map +1 -0
  197. package/lib/services/hyperdrive.d.ts +203 -0
  198. package/lib/services/hyperdrive.d.ts.map +1 -0
  199. package/lib/services/hyperdrive.js +299 -0
  200. package/lib/services/hyperdrive.js.map +1 -0
  201. package/lib/services/iam.d.ts +554 -0
  202. package/lib/services/iam.d.ts.map +1 -0
  203. package/lib/services/iam.js +743 -0
  204. package/lib/services/iam.js.map +1 -0
  205. package/lib/services/images.d.ts +403 -0
  206. package/lib/services/images.d.ts.map +1 -0
  207. package/lib/services/images.js +417 -0
  208. package/lib/services/images.js.map +1 -0
  209. package/lib/services/intel.d.ts +768 -0
  210. package/lib/services/intel.d.ts.map +1 -0
  211. package/lib/services/intel.js +1179 -0
  212. package/lib/services/intel.js.map +1 -0
  213. package/lib/services/ips.d.ts +28 -0
  214. package/lib/services/ips.d.ts.map +1 -0
  215. package/lib/services/ips.js +39 -0
  216. package/lib/services/ips.js.map +1 -0
  217. package/lib/services/keyless-certificates.d.ts +177 -0
  218. package/lib/services/keyless-certificates.d.ts.map +1 -0
  219. package/lib/services/keyless-certificates.js +216 -0
  220. package/lib/services/keyless-certificates.js.map +1 -0
  221. package/lib/services/kv.d.ts +339 -0
  222. package/lib/services/kv.d.ts.map +1 -0
  223. package/lib/services/kv.js +402 -0
  224. package/lib/services/kv.js.map +1 -0
  225. package/lib/services/leaked-credential-checks.d.ts +119 -0
  226. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  227. package/lib/services/leaked-credential-checks.js +130 -0
  228. package/lib/services/leaked-credential-checks.js.map +1 -0
  229. package/lib/services/load-balancers.d.ts +1767 -0
  230. package/lib/services/load-balancers.d.ts.map +1 -0
  231. package/lib/services/load-balancers.js +3068 -0
  232. package/lib/services/load-balancers.js.map +1 -0
  233. package/lib/services/logpush.d.ts +401 -0
  234. package/lib/services/logpush.d.ts.map +1 -0
  235. package/lib/services/logpush.js +724 -0
  236. package/lib/services/logpush.js.map +1 -0
  237. package/lib/services/logs.d.ts +125 -0
  238. package/lib/services/logs.d.ts.map +1 -0
  239. package/lib/services/logs.js +145 -0
  240. package/lib/services/logs.js.map +1 -0
  241. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  242. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  243. package/lib/services/magic-cloud-networking.js +5205 -0
  244. package/lib/services/magic-cloud-networking.js.map +1 -0
  245. package/lib/services/magic-network-monitoring.d.ts +379 -0
  246. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  247. package/lib/services/magic-network-monitoring.js +535 -0
  248. package/lib/services/magic-network-monitoring.js.map +1 -0
  249. package/lib/services/magic-transit.d.ts +3650 -0
  250. package/lib/services/magic-transit.d.ts.map +1 -0
  251. package/lib/services/magic-transit.js +6120 -0
  252. package/lib/services/magic-transit.js.map +1 -0
  253. package/lib/services/managed-transforms.d.ts +79 -0
  254. package/lib/services/managed-transforms.d.ts.map +1 -0
  255. package/lib/services/managed-transforms.js +107 -0
  256. package/lib/services/managed-transforms.js.map +1 -0
  257. package/lib/services/memberships.d.ts +172 -0
  258. package/lib/services/memberships.d.ts.map +1 -0
  259. package/lib/services/memberships.js +282 -0
  260. package/lib/services/memberships.js.map +1 -0
  261. package/lib/services/mtls-certificates.d.ts +140 -0
  262. package/lib/services/mtls-certificates.d.ts.map +1 -0
  263. package/lib/services/mtls-certificates.js +173 -0
  264. package/lib/services/mtls-certificates.js.map +1 -0
  265. package/lib/services/network-interconnects.d.ts +410 -0
  266. package/lib/services/network-interconnects.d.ts.map +1 -0
  267. package/lib/services/network-interconnects.js +583 -0
  268. package/lib/services/network-interconnects.js.map +1 -0
  269. package/lib/services/organizations.d.ts +201 -0
  270. package/lib/services/organizations.d.ts.map +1 -0
  271. package/lib/services/organizations.js +355 -0
  272. package/lib/services/organizations.js.map +1 -0
  273. package/lib/services/origin-ca-certificates.d.ts +99 -0
  274. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  275. package/lib/services/origin-ca-certificates.js +156 -0
  276. package/lib/services/origin-ca-certificates.js.map +1 -0
  277. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  279. package/lib/services/origin-post-quantum-encryption.js +60 -0
  280. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  281. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  282. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  283. package/lib/services/origin-tls-client-auth.js +401 -0
  284. package/lib/services/origin-tls-client-auth.js.map +1 -0
  285. package/lib/services/page-rules.d.ts +773 -0
  286. package/lib/services/page-rules.d.ts.map +1 -0
  287. package/lib/services/page-rules.js +1365 -0
  288. package/lib/services/page-rules.js.map +1 -0
  289. package/lib/services/page-shield.d.ts +426 -0
  290. package/lib/services/page-shield.d.ts.map +1 -0
  291. package/lib/services/page-shield.js +484 -0
  292. package/lib/services/page-shield.js.map +1 -0
  293. package/lib/services/pages.d.ts +1654 -0
  294. package/lib/services/pages.d.ts.map +1 -0
  295. package/lib/services/pages.js +2954 -0
  296. package/lib/services/pages.js.map +1 -0
  297. package/lib/services/pipelines.d.ts +1461 -0
  298. package/lib/services/pipelines.d.ts.map +1 -0
  299. package/lib/services/pipelines.js +2912 -0
  300. package/lib/services/pipelines.js.map +1 -0
  301. package/lib/services/queues.d.ts +807 -0
  302. package/lib/services/queues.d.ts.map +1 -0
  303. package/lib/services/queues.js +1194 -0
  304. package/lib/services/queues.js.map +1 -0
  305. package/lib/services/r2-data-catalog.d.ts +341 -0
  306. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  307. package/lib/services/r2-data-catalog.js +499 -0
  308. package/lib/services/r2-data-catalog.js.map +1 -0
  309. package/lib/services/r2.d.ts +1041 -0
  310. package/lib/services/r2.d.ts.map +1 -0
  311. package/lib/services/r2.js +1384 -0
  312. package/lib/services/r2.js.map +1 -0
  313. package/lib/services/radar.d.ts +9276 -0
  314. package/lib/services/radar.d.ts.map +1 -0
  315. package/lib/services/radar.js +20491 -0
  316. package/lib/services/radar.js.map +1 -0
  317. package/lib/services/rate-limits.d.ts +315 -0
  318. package/lib/services/rate-limits.d.ts.map +1 -0
  319. package/lib/services/rate-limits.js +521 -0
  320. package/lib/services/rate-limits.js.map +1 -0
  321. package/lib/services/realtime-kit.d.ts +2728 -0
  322. package/lib/services/realtime-kit.d.ts.map +1 -0
  323. package/lib/services/realtime-kit.js +5401 -0
  324. package/lib/services/realtime-kit.js.map +1 -0
  325. package/lib/services/registrar.d.ts +81 -0
  326. package/lib/services/registrar.d.ts.map +1 -0
  327. package/lib/services/registrar.js +154 -0
  328. package/lib/services/registrar.js.map +1 -0
  329. package/lib/services/request-tracers.d.ts +61 -0
  330. package/lib/services/request-tracers.d.ts.map +1 -0
  331. package/lib/services/request-tracers.js +82 -0
  332. package/lib/services/request-tracers.js.map +1 -0
  333. package/lib/services/resource-sharing.d.ts +540 -0
  334. package/lib/services/resource-sharing.d.ts.map +1 -0
  335. package/lib/services/resource-sharing.js +846 -0
  336. package/lib/services/resource-sharing.js.map +1 -0
  337. package/lib/services/rules.d.ts +297 -0
  338. package/lib/services/rules.d.ts.map +1 -0
  339. package/lib/services/rules.js +396 -0
  340. package/lib/services/rules.js.map +1 -0
  341. package/lib/services/rulesets.d.ts +3300 -0
  342. package/lib/services/rulesets.d.ts.map +1 -0
  343. package/lib/services/rulesets.js +7852 -0
  344. package/lib/services/rulesets.js.map +1 -0
  345. package/lib/services/rum.d.ts +289 -0
  346. package/lib/services/rum.d.ts.map +1 -0
  347. package/lib/services/rum.js +409 -0
  348. package/lib/services/rum.js.map +1 -0
  349. package/lib/services/schema-validation.d.ts +240 -0
  350. package/lib/services/schema-validation.d.ts.map +1 -0
  351. package/lib/services/schema-validation.js +306 -0
  352. package/lib/services/schema-validation.js.map +1 -0
  353. package/lib/services/secrets-store.d.ts +321 -0
  354. package/lib/services/secrets-store.d.ts.map +1 -0
  355. package/lib/services/secrets-store.js +385 -0
  356. package/lib/services/secrets-store.js.map +1 -0
  357. package/lib/services/security-center.d.ts +102 -0
  358. package/lib/services/security-center.d.ts.map +1 -0
  359. package/lib/services/security-center.js +170 -0
  360. package/lib/services/security-center.js.map +1 -0
  361. package/lib/services/security-txt.d.ts +105 -0
  362. package/lib/services/security-txt.d.ts.map +1 -0
  363. package/lib/services/security-txt.js +136 -0
  364. package/lib/services/security-txt.js.map +1 -0
  365. package/lib/services/snippets.d.ts +138 -0
  366. package/lib/services/snippets.d.ts.map +1 -0
  367. package/lib/services/snippets.js +178 -0
  368. package/lib/services/snippets.js.map +1 -0
  369. package/lib/services/spectrum.d.ts +316 -0
  370. package/lib/services/spectrum.d.ts.map +1 -0
  371. package/lib/services/spectrum.js +510 -0
  372. package/lib/services/spectrum.js.map +1 -0
  373. package/lib/services/speed.d.ts +227 -0
  374. package/lib/services/speed.d.ts.map +1 -0
  375. package/lib/services/speed.js +444 -0
  376. package/lib/services/speed.js.map +1 -0
  377. package/lib/services/ssl.d.ts +370 -0
  378. package/lib/services/ssl.d.ts.map +1 -0
  379. package/lib/services/ssl.js +732 -0
  380. package/lib/services/ssl.js.map +1 -0
  381. package/lib/services/stream.d.ts +1014 -0
  382. package/lib/services/stream.d.ts.map +1 -0
  383. package/lib/services/stream.js +1049 -0
  384. package/lib/services/stream.js.map +1 -0
  385. package/lib/services/token-validation.d.ts +547 -0
  386. package/lib/services/token-validation.d.ts.map +1 -0
  387. package/lib/services/token-validation.js +768 -0
  388. package/lib/services/token-validation.js.map +1 -0
  389. package/lib/services/turnstile.d.ts +248 -0
  390. package/lib/services/turnstile.d.ts.map +1 -0
  391. package/lib/services/turnstile.js +308 -0
  392. package/lib/services/turnstile.js.map +1 -0
  393. package/lib/services/url-normalization.d.ts +53 -0
  394. package/lib/services/url-normalization.d.ts.map +1 -0
  395. package/lib/services/url-normalization.js +52 -0
  396. package/lib/services/url-normalization.js.map +1 -0
  397. package/lib/services/url-scanner.d.ts +612 -0
  398. package/lib/services/url-scanner.d.ts.map +1 -0
  399. package/lib/services/url-scanner.js +915 -0
  400. package/lib/services/url-scanner.js.map +1 -0
  401. package/lib/services/user.d.ts +441 -0
  402. package/lib/services/user.d.ts.map +1 -0
  403. package/lib/services/user.js +567 -0
  404. package/lib/services/user.js.map +1 -0
  405. package/lib/services/vectorize.d.ts +282 -0
  406. package/lib/services/vectorize.d.ts.map +1 -0
  407. package/lib/services/vectorize.js +340 -0
  408. package/lib/services/vectorize.js.map +1 -0
  409. package/lib/services/waiting-rooms.d.ts +1009 -0
  410. package/lib/services/waiting-rooms.d.ts.map +1 -0
  411. package/lib/services/waiting-rooms.js +1757 -0
  412. package/lib/services/waiting-rooms.js.map +1 -0
  413. package/lib/services/web3.d.ts +274 -0
  414. package/lib/services/web3.d.ts.map +1 -0
  415. package/lib/services/web3.js +362 -0
  416. package/lib/services/web3.js.map +1 -0
  417. package/lib/services/workers-for-platforms.d.ts +1224 -0
  418. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  419. package/lib/services/workers-for-platforms.js +2078 -0
  420. package/lib/services/workers-for-platforms.js.map +1 -0
  421. package/lib/services/workers.d.ts +3498 -0
  422. package/lib/services/workers.d.ts.map +1 -0
  423. package/lib/services/workers.js +5967 -0
  424. package/lib/services/workers.js.map +1 -0
  425. package/lib/services/workflows.d.ts +359 -0
  426. package/lib/services/workflows.d.ts.map +1 -0
  427. package/lib/services/workflows.js +516 -0
  428. package/lib/services/workflows.js.map +1 -0
  429. package/lib/services/zaraz.d.ts +300 -0
  430. package/lib/services/zaraz.d.ts.map +1 -0
  431. package/lib/services/zaraz.js +298 -0
  432. package/lib/services/zaraz.js.map +1 -0
  433. package/lib/services/zero-trust.d.ts +15449 -0
  434. package/lib/services/zero-trust.d.ts.map +1 -0
  435. package/lib/services/zero-trust.js +29194 -0
  436. package/lib/services/zero-trust.js.map +1 -0
  437. package/lib/services/zones.d.ts +1278 -0
  438. package/lib/services/zones.d.ts.map +1 -0
  439. package/lib/services/zones.js +2416 -0
  440. package/lib/services/zones.js.map +1 -0
  441. package/lib/traits.d.ts +28 -0
  442. package/lib/traits.d.ts.map +1 -0
  443. package/lib/traits.js +26 -0
  444. package/lib/traits.js.map +1 -0
  445. package/package.json +67 -5
  446. package/src/auth.ts +14 -0
  447. package/src/category.ts +1 -0
  448. package/src/client/api.ts +269 -0
  449. package/src/client/index.ts +7 -0
  450. package/src/credentials.ts +30 -0
  451. package/src/errors.ts +65 -0
  452. package/src/index.ts +9 -0
  453. package/src/retry.ts +35 -0
  454. package/src/schemas.ts +51 -0
  455. package/src/services/abuse-reports.ts +747 -0
  456. package/src/services/accounts.ts +1947 -0
  457. package/src/services/acm.ts +170 -0
  458. package/src/services/addressing.ts +3947 -0
  459. package/src/services/ai-gateway.ts +3335 -0
  460. package/src/services/ai.ts +727 -0
  461. package/src/services/aisearch.ts +4750 -0
  462. package/src/services/alerting.ts +2947 -0
  463. package/src/services/api-gateway.ts +3391 -0
  464. package/src/services/argo.ts +254 -0
  465. package/src/services/audit-logs.ts +90 -0
  466. package/src/services/billing.ts +172 -0
  467. package/src/services/bot-management.ts +541 -0
  468. package/src/services/botnet-feed.ts +193 -0
  469. package/src/services/brand-protection.ts +553 -0
  470. package/src/services/browser-rendering.ts +2707 -0
  471. package/src/services/cache.ts +827 -0
  472. package/src/services/calls.ts +483 -0
  473. package/src/services/certificate-authorities.ts +110 -0
  474. package/src/services/client-certificates.ts +718 -0
  475. package/src/services/cloud-connector.ts +181 -0
  476. package/src/services/cloudforce-one.ts +3876 -0
  477. package/src/services/connectivity.ts +629 -0
  478. package/src/services/content-scanning.ts +385 -0
  479. package/src/services/custom-certificates.ts +611 -0
  480. package/src/services/custom-hostnames.ts +2453 -0
  481. package/src/services/custom-nameservers.ts +182 -0
  482. package/src/services/custom-pages.ts +264 -0
  483. package/src/services/d1.ts +1034 -0
  484. package/src/services/dcv-delegation.ts +52 -0
  485. package/src/services/diagnostics.ts +603 -0
  486. package/src/services/dns-firewall.ts +823 -0
  487. package/src/services/dns.ts +8897 -0
  488. package/src/services/durable-objects.ts +148 -0
  489. package/src/services/email-routing.ts +1602 -0
  490. package/src/services/email-security.ts +4283 -0
  491. package/src/services/filters.ts +370 -0
  492. package/src/services/firewall.ts +3896 -0
  493. package/src/services/healthchecks.ts +1750 -0
  494. package/src/services/hostnames.ts +218 -0
  495. package/src/services/hyperdrive.ts +592 -0
  496. package/src/services/iam.ts +1668 -0
  497. package/src/services/images.ts +1086 -0
  498. package/src/services/intel.ts +2768 -0
  499. package/src/services/ips.ts +88 -0
  500. package/src/services/keyless-certificates.ts +462 -0
  501. package/src/services/kv.ts +1011 -0
  502. package/src/services/leaked-credential-checks.ts +325 -0
  503. package/src/services/load-balancers.ts +6438 -0
  504. package/src/services/logpush.ts +1667 -0
  505. package/src/services/logs.ts +375 -0
  506. package/src/services/magic-cloud-networking.ts +10020 -0
  507. package/src/services/magic-network-monitoring.ts +1156 -0
  508. package/src/services/magic-transit.ts +13050 -0
  509. package/src/services/managed-transforms.ts +237 -0
  510. package/src/services/memberships.ts +615 -0
  511. package/src/services/mtls-certificates.ts +374 -0
  512. package/src/services/network-interconnects.ts +1253 -0
  513. package/src/services/organizations.ts +674 -0
  514. package/src/services/origin-ca-certificates.ts +303 -0
  515. package/src/services/origin-post-quantum-encryption.ts +128 -0
  516. package/src/services/origin-tls-client-auth.ts +878 -0
  517. package/src/services/page-rules.ts +2612 -0
  518. package/src/services/page-shield.ts +1195 -0
  519. package/src/services/pages.ts +5709 -0
  520. package/src/services/pipelines.ts +6000 -0
  521. package/src/services/queues.ts +2629 -0
  522. package/src/services/r2-data-catalog.ts +1119 -0
  523. package/src/services/r2.ts +3348 -0
  524. package/src/services/radar.ts +42152 -0
  525. package/src/services/rate-limits.ts +1150 -0
  526. package/src/services/realtime-kit.ts +11079 -0
  527. package/src/services/registrar.ts +295 -0
  528. package/src/services/request-tracers.ts +158 -0
  529. package/src/services/resource-sharing.ts +1832 -0
  530. package/src/services/rules.ts +837 -0
  531. package/src/services/rulesets.ts +15144 -0
  532. package/src/services/rum.ts +901 -0
  533. package/src/services/schema-validation.ts +733 -0
  534. package/src/services/secrets-store.ts +860 -0
  535. package/src/services/security-center.ts +397 -0
  536. package/src/services/security-txt.ts +315 -0
  537. package/src/services/snippets.ts +420 -0
  538. package/src/services/spectrum.ts +1103 -0
  539. package/src/services/speed.ts +1056 -0
  540. package/src/services/ssl.ts +1587 -0
  541. package/src/services/stream.ts +2756 -0
  542. package/src/services/token-validation.ts +1585 -0
  543. package/src/services/turnstile.ts +643 -0
  544. package/src/services/url-normalization.ts +129 -0
  545. package/src/services/url-scanner.ts +1851 -0
  546. package/src/services/user.ts +1384 -0
  547. package/src/services/vectorize.ts +816 -0
  548. package/src/services/waiting-rooms.ts +3807 -0
  549. package/src/services/web3.ts +834 -0
  550. package/src/services/workers-for-platforms.ts +3859 -0
  551. package/src/services/workers.ts +11637 -0
  552. package/src/services/workflows.ts +1124 -0
  553. package/src/services/zaraz.ts +797 -0
  554. package/src/services/zero-trust.ts +58933 -0
  555. package/src/services/zones.ts +4875 -0
  556. package/src/traits.ts +47 -0
  557. package/README.md +0 -15
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,1164 @@
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
+ import * as Schema from "effect/Schema";
8
+ import * as API from "../client/api.js";
9
+ import * as T from "../traits";
10
+ import {} from "../errors";
11
+ export const PutCertificatePackCertificateRequest =
12
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
13
+ customHostnameId: Schema.String.pipe(T.HttpPath("customHostnameId")),
14
+ certificatePackId: Schema.String.pipe(T.HttpPath("certificatePackId")),
15
+ certificateId: Schema.String.pipe(T.HttpPath("certificateId")),
16
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
17
+ customCertificate: Schema.String,
18
+ customKey: Schema.String,
19
+ }).pipe(Schema.encodeKeys({
20
+ customCertificate: "custom_certificate",
21
+ customKey: "custom_key",
22
+ }), T.Http({
23
+ method: "PUT",
24
+ path: "/zones/{zone_id}/custom_hostnames/{customHostnameId}/certificate_pack/{certificatePackId}/certificates/{certificateId}",
25
+ }));
26
+ export const PutCertificatePackCertificateResponse =
27
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
28
+ id: Schema.String,
29
+ hostname: Schema.String,
30
+ ssl: Schema.Struct({
31
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
32
+ bundleMethod: Schema.optional(Schema.Union([
33
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
34
+ Schema.Null,
35
+ ])),
36
+ certificateAuthority: Schema.optional(Schema.Union([
37
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
38
+ Schema.Null,
39
+ ])),
40
+ customCertificate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
41
+ customCsrId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
42
+ customKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
43
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
44
+ hosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
45
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
46
+ method: Schema.optional(Schema.Union([Schema.Literals(["http", "txt", "email"]), Schema.Null])),
47
+ serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
48
+ settings: Schema.optional(Schema.Union([
49
+ Schema.Struct({
50
+ ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
51
+ earlyHints: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
52
+ http2: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
53
+ minTlsVersion: Schema.optional(Schema.Union([
54
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
55
+ Schema.Null,
56
+ ])),
57
+ tls_1_3: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
58
+ }).pipe(Schema.encodeKeys({
59
+ ciphers: "ciphers",
60
+ earlyHints: "early_hints",
61
+ http2: "http2",
62
+ minTlsVersion: "min_tls_version",
63
+ tls_1_3: "tls_1_3",
64
+ })),
65
+ Schema.Null,
66
+ ])),
67
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
68
+ status: Schema.optional(Schema.Union([
69
+ Schema.Literals([
70
+ "initializing",
71
+ "pending_validation",
72
+ "deleted",
73
+ "pending_issuance",
74
+ "pending_deployment",
75
+ "pending_deletion",
76
+ "pending_expiration",
77
+ "expired",
78
+ "active",
79
+ "initializing_timed_out",
80
+ "validation_timed_out",
81
+ "issuance_timed_out",
82
+ "deployment_timed_out",
83
+ "deletion_timed_out",
84
+ "pending_cleanup",
85
+ "staging_deployment",
86
+ "staging_active",
87
+ "deactivating",
88
+ "inactive",
89
+ "backup_issued",
90
+ "holding_deployment",
91
+ ]),
92
+ Schema.Null,
93
+ ])),
94
+ type: Schema.optional(Schema.Union([Schema.Literal("dv"), Schema.Null])),
95
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
96
+ validationErrors: Schema.optional(Schema.Union([
97
+ Schema.Array(Schema.Struct({
98
+ message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
99
+ })),
100
+ Schema.Null,
101
+ ])),
102
+ validationRecords: Schema.optional(Schema.Union([
103
+ Schema.Array(Schema.Struct({
104
+ emails: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
105
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
106
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
107
+ txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
108
+ txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
109
+ }).pipe(Schema.encodeKeys({
110
+ emails: "emails",
111
+ httpBody: "http_body",
112
+ httpUrl: "http_url",
113
+ txtName: "txt_name",
114
+ txtValue: "txt_value",
115
+ }))),
116
+ Schema.Null,
117
+ ])),
118
+ wildcard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
119
+ }).pipe(Schema.encodeKeys({
120
+ id: "id",
121
+ bundleMethod: "bundle_method",
122
+ certificateAuthority: "certificate_authority",
123
+ customCertificate: "custom_certificate",
124
+ customCsrId: "custom_csr_id",
125
+ customKey: "custom_key",
126
+ expiresOn: "expires_on",
127
+ hosts: "hosts",
128
+ issuer: "issuer",
129
+ method: "method",
130
+ serialNumber: "serial_number",
131
+ settings: "settings",
132
+ signature: "signature",
133
+ status: "status",
134
+ type: "type",
135
+ uploadedOn: "uploaded_on",
136
+ validationErrors: "validation_errors",
137
+ validationRecords: "validation_records",
138
+ wildcard: "wildcard",
139
+ })),
140
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
141
+ customMetadata: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
142
+ customOriginServer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
143
+ customOriginSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
144
+ ownershipVerification: Schema.optional(Schema.Union([
145
+ Schema.Struct({
146
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
147
+ type: Schema.optional(Schema.Union([Schema.Literal("txt"), Schema.Null])),
148
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
149
+ }),
150
+ Schema.Null,
151
+ ])),
152
+ ownershipVerificationHttp: Schema.optional(Schema.Union([
153
+ Schema.Struct({
154
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
155
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
156
+ }).pipe(Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" })),
157
+ Schema.Null,
158
+ ])),
159
+ status: Schema.optional(Schema.Union([
160
+ Schema.Literals([
161
+ "active",
162
+ "pending",
163
+ "active_redeploying",
164
+ "moved",
165
+ "pending_deletion",
166
+ "deleted",
167
+ "pending_blocked",
168
+ "pending_migration",
169
+ "pending_provisioned",
170
+ "test_pending",
171
+ "test_active",
172
+ "test_active_apex",
173
+ "test_blocked",
174
+ "test_failed",
175
+ "provisioned",
176
+ "blocked",
177
+ ]),
178
+ Schema.Null,
179
+ ])),
180
+ verificationErrors: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
181
+ }).pipe(Schema.encodeKeys({
182
+ id: "id",
183
+ hostname: "hostname",
184
+ ssl: "ssl",
185
+ createdAt: "created_at",
186
+ customMetadata: "custom_metadata",
187
+ customOriginServer: "custom_origin_server",
188
+ customOriginSni: "custom_origin_sni",
189
+ ownershipVerification: "ownership_verification",
190
+ ownershipVerificationHttp: "ownership_verification_http",
191
+ status: "status",
192
+ verificationErrors: "verification_errors",
193
+ }));
194
+ export const putCertificatePackCertificate = API.make(() => ({
195
+ input: PutCertificatePackCertificateRequest,
196
+ output: PutCertificatePackCertificateResponse,
197
+ errors: [],
198
+ }));
199
+ export const DeleteCertificatePackCertificateRequest =
200
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
201
+ customHostnameId: Schema.String.pipe(T.HttpPath("customHostnameId")),
202
+ certificatePackId: Schema.String.pipe(T.HttpPath("certificatePackId")),
203
+ certificateId: Schema.String.pipe(T.HttpPath("certificateId")),
204
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
205
+ }).pipe(T.Http({
206
+ method: "DELETE",
207
+ path: "/zones/{zone_id}/custom_hostnames/{customHostnameId}/certificate_pack/{certificatePackId}/certificates/{certificateId}",
208
+ }));
209
+ export const DeleteCertificatePackCertificateResponse =
210
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
211
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
212
+ });
213
+ export const deleteCertificatePackCertificate = API.make(() => ({
214
+ input: DeleteCertificatePackCertificateRequest,
215
+ output: DeleteCertificatePackCertificateResponse,
216
+ errors: [],
217
+ }));
218
+ export const GetCustomHostnameRequest =
219
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
220
+ customHostnameId: Schema.String.pipe(T.HttpPath("customHostnameId")),
221
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
222
+ }).pipe(T.Http({
223
+ method: "GET",
224
+ path: "/zones/{zone_id}/custom_hostnames/{customHostnameId}",
225
+ }));
226
+ export const GetCustomHostnameResponse =
227
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
228
+ id: Schema.String,
229
+ hostname: Schema.String,
230
+ ssl: Schema.Struct({
231
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
232
+ bundleMethod: Schema.optional(Schema.Union([
233
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
234
+ Schema.Null,
235
+ ])),
236
+ certificateAuthority: Schema.optional(Schema.Union([
237
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
238
+ Schema.Null,
239
+ ])),
240
+ customCertificate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
241
+ customCsrId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
242
+ customKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
243
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
244
+ hosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
245
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
246
+ method: Schema.optional(Schema.Union([Schema.Literals(["http", "txt", "email"]), Schema.Null])),
247
+ serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
248
+ settings: Schema.optional(Schema.Union([
249
+ Schema.Struct({
250
+ ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
251
+ earlyHints: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
252
+ http2: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
253
+ minTlsVersion: Schema.optional(Schema.Union([
254
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
255
+ Schema.Null,
256
+ ])),
257
+ tls_1_3: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
258
+ }).pipe(Schema.encodeKeys({
259
+ ciphers: "ciphers",
260
+ earlyHints: "early_hints",
261
+ http2: "http2",
262
+ minTlsVersion: "min_tls_version",
263
+ tls_1_3: "tls_1_3",
264
+ })),
265
+ Schema.Null,
266
+ ])),
267
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
268
+ status: Schema.optional(Schema.Union([
269
+ Schema.Literals([
270
+ "initializing",
271
+ "pending_validation",
272
+ "deleted",
273
+ "pending_issuance",
274
+ "pending_deployment",
275
+ "pending_deletion",
276
+ "pending_expiration",
277
+ "expired",
278
+ "active",
279
+ "initializing_timed_out",
280
+ "validation_timed_out",
281
+ "issuance_timed_out",
282
+ "deployment_timed_out",
283
+ "deletion_timed_out",
284
+ "pending_cleanup",
285
+ "staging_deployment",
286
+ "staging_active",
287
+ "deactivating",
288
+ "inactive",
289
+ "backup_issued",
290
+ "holding_deployment",
291
+ ]),
292
+ Schema.Null,
293
+ ])),
294
+ type: Schema.optional(Schema.Union([Schema.Literal("dv"), Schema.Null])),
295
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
296
+ validationErrors: Schema.optional(Schema.Union([
297
+ Schema.Array(Schema.Struct({
298
+ message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
299
+ })),
300
+ Schema.Null,
301
+ ])),
302
+ validationRecords: Schema.optional(Schema.Union([
303
+ Schema.Array(Schema.Struct({
304
+ emails: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
305
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
306
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
307
+ txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
308
+ txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
309
+ }).pipe(Schema.encodeKeys({
310
+ emails: "emails",
311
+ httpBody: "http_body",
312
+ httpUrl: "http_url",
313
+ txtName: "txt_name",
314
+ txtValue: "txt_value",
315
+ }))),
316
+ Schema.Null,
317
+ ])),
318
+ wildcard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
319
+ }).pipe(Schema.encodeKeys({
320
+ id: "id",
321
+ bundleMethod: "bundle_method",
322
+ certificateAuthority: "certificate_authority",
323
+ customCertificate: "custom_certificate",
324
+ customCsrId: "custom_csr_id",
325
+ customKey: "custom_key",
326
+ expiresOn: "expires_on",
327
+ hosts: "hosts",
328
+ issuer: "issuer",
329
+ method: "method",
330
+ serialNumber: "serial_number",
331
+ settings: "settings",
332
+ signature: "signature",
333
+ status: "status",
334
+ type: "type",
335
+ uploadedOn: "uploaded_on",
336
+ validationErrors: "validation_errors",
337
+ validationRecords: "validation_records",
338
+ wildcard: "wildcard",
339
+ })),
340
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
341
+ customMetadata: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
342
+ customOriginServer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
343
+ customOriginSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
344
+ ownershipVerification: Schema.optional(Schema.Union([
345
+ Schema.Struct({
346
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
347
+ type: Schema.optional(Schema.Union([Schema.Literal("txt"), Schema.Null])),
348
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
349
+ }),
350
+ Schema.Null,
351
+ ])),
352
+ ownershipVerificationHttp: Schema.optional(Schema.Union([
353
+ Schema.Struct({
354
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
355
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
356
+ }).pipe(Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" })),
357
+ Schema.Null,
358
+ ])),
359
+ status: Schema.optional(Schema.Union([
360
+ Schema.Literals([
361
+ "active",
362
+ "pending",
363
+ "active_redeploying",
364
+ "moved",
365
+ "pending_deletion",
366
+ "deleted",
367
+ "pending_blocked",
368
+ "pending_migration",
369
+ "pending_provisioned",
370
+ "test_pending",
371
+ "test_active",
372
+ "test_active_apex",
373
+ "test_blocked",
374
+ "test_failed",
375
+ "provisioned",
376
+ "blocked",
377
+ ]),
378
+ Schema.Null,
379
+ ])),
380
+ verificationErrors: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
381
+ }).pipe(Schema.encodeKeys({
382
+ id: "id",
383
+ hostname: "hostname",
384
+ ssl: "ssl",
385
+ createdAt: "created_at",
386
+ customMetadata: "custom_metadata",
387
+ customOriginServer: "custom_origin_server",
388
+ customOriginSni: "custom_origin_sni",
389
+ ownershipVerification: "ownership_verification",
390
+ ownershipVerificationHttp: "ownership_verification_http",
391
+ status: "status",
392
+ verificationErrors: "verification_errors",
393
+ }));
394
+ export const getCustomHostname = API.make(() => ({
395
+ input: GetCustomHostnameRequest,
396
+ output: GetCustomHostnameResponse,
397
+ errors: [],
398
+ }));
399
+ export const ListCustomHostnamesRequest =
400
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
401
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
402
+ id: Schema.optional(Schema.String).pipe(T.HttpQuery("id")),
403
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
404
+ hostname: Schema.optional(Schema.String).pipe(T.HttpQuery("hostname")),
405
+ order: Schema.optional(Schema.Literals(["ssl", "ssl_status"])).pipe(T.HttpQuery("order")),
406
+ ssl: Schema.optional(Schema.Literals(["0", "1"])).pipe(T.HttpQuery("ssl")),
407
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/custom_hostnames" }));
408
+ export const ListCustomHostnamesResponse =
409
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
410
+ id: Schema.String,
411
+ hostname: Schema.String,
412
+ ssl: Schema.Struct({
413
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
414
+ bundleMethod: Schema.optional(Schema.Union([
415
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
416
+ Schema.Null,
417
+ ])),
418
+ certificateAuthority: Schema.optional(Schema.Union([
419
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
420
+ Schema.Null,
421
+ ])),
422
+ customCertificate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
423
+ customCsrId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
424
+ customKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
425
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
426
+ hosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
427
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
428
+ method: Schema.optional(Schema.Union([
429
+ Schema.Literals(["http", "txt", "email"]),
430
+ Schema.Null,
431
+ ])),
432
+ serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
433
+ settings: Schema.optional(Schema.Union([
434
+ Schema.Struct({
435
+ ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
436
+ earlyHints: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
437
+ http2: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
438
+ minTlsVersion: Schema.optional(Schema.Union([
439
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
440
+ Schema.Null,
441
+ ])),
442
+ tls_1_3: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
443
+ }).pipe(Schema.encodeKeys({
444
+ ciphers: "ciphers",
445
+ earlyHints: "early_hints",
446
+ http2: "http2",
447
+ minTlsVersion: "min_tls_version",
448
+ tls_1_3: "tls_1_3",
449
+ })),
450
+ Schema.Null,
451
+ ])),
452
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
453
+ status: Schema.optional(Schema.Union([
454
+ Schema.Literals([
455
+ "initializing",
456
+ "pending_validation",
457
+ "deleted",
458
+ "pending_issuance",
459
+ "pending_deployment",
460
+ "pending_deletion",
461
+ "pending_expiration",
462
+ "expired",
463
+ "active",
464
+ "initializing_timed_out",
465
+ "validation_timed_out",
466
+ "issuance_timed_out",
467
+ "deployment_timed_out",
468
+ "deletion_timed_out",
469
+ "pending_cleanup",
470
+ "staging_deployment",
471
+ "staging_active",
472
+ "deactivating",
473
+ "inactive",
474
+ "backup_issued",
475
+ "holding_deployment",
476
+ ]),
477
+ Schema.Null,
478
+ ])),
479
+ type: Schema.optional(Schema.Union([Schema.Literal("dv"), Schema.Null])),
480
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
481
+ validationErrors: Schema.optional(Schema.Union([
482
+ Schema.Array(Schema.Struct({
483
+ message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
484
+ })),
485
+ Schema.Null,
486
+ ])),
487
+ validationRecords: Schema.optional(Schema.Union([
488
+ Schema.Array(Schema.Struct({
489
+ emails: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
490
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
491
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
492
+ txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
493
+ txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
494
+ }).pipe(Schema.encodeKeys({
495
+ emails: "emails",
496
+ httpBody: "http_body",
497
+ httpUrl: "http_url",
498
+ txtName: "txt_name",
499
+ txtValue: "txt_value",
500
+ }))),
501
+ Schema.Null,
502
+ ])),
503
+ wildcard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
504
+ }).pipe(Schema.encodeKeys({
505
+ id: "id",
506
+ bundleMethod: "bundle_method",
507
+ certificateAuthority: "certificate_authority",
508
+ customCertificate: "custom_certificate",
509
+ customCsrId: "custom_csr_id",
510
+ customKey: "custom_key",
511
+ expiresOn: "expires_on",
512
+ hosts: "hosts",
513
+ issuer: "issuer",
514
+ method: "method",
515
+ serialNumber: "serial_number",
516
+ settings: "settings",
517
+ signature: "signature",
518
+ status: "status",
519
+ type: "type",
520
+ uploadedOn: "uploaded_on",
521
+ validationErrors: "validation_errors",
522
+ validationRecords: "validation_records",
523
+ wildcard: "wildcard",
524
+ })),
525
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
526
+ customMetadata: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
527
+ customOriginServer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
528
+ customOriginSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
529
+ ownershipVerification: Schema.optional(Schema.Union([
530
+ Schema.Struct({
531
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
532
+ type: Schema.optional(Schema.Union([Schema.Literal("txt"), Schema.Null])),
533
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
534
+ }),
535
+ Schema.Null,
536
+ ])),
537
+ ownershipVerificationHttp: Schema.optional(Schema.Union([
538
+ Schema.Struct({
539
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
540
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
541
+ }).pipe(Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" })),
542
+ Schema.Null,
543
+ ])),
544
+ status: Schema.optional(Schema.Union([
545
+ Schema.Literals([
546
+ "active",
547
+ "pending",
548
+ "active_redeploying",
549
+ "moved",
550
+ "pending_deletion",
551
+ "deleted",
552
+ "pending_blocked",
553
+ "pending_migration",
554
+ "pending_provisioned",
555
+ "test_pending",
556
+ "test_active",
557
+ "test_active_apex",
558
+ "test_blocked",
559
+ "test_failed",
560
+ "provisioned",
561
+ "blocked",
562
+ ]),
563
+ Schema.Null,
564
+ ])),
565
+ verificationErrors: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
566
+ }).pipe(Schema.encodeKeys({
567
+ id: "id",
568
+ hostname: "hostname",
569
+ ssl: "ssl",
570
+ createdAt: "created_at",
571
+ customMetadata: "custom_metadata",
572
+ customOriginServer: "custom_origin_server",
573
+ customOriginSni: "custom_origin_sni",
574
+ ownershipVerification: "ownership_verification",
575
+ ownershipVerificationHttp: "ownership_verification_http",
576
+ status: "status",
577
+ verificationErrors: "verification_errors",
578
+ })));
579
+ export const listCustomHostnames = API.make(() => ({
580
+ input: ListCustomHostnamesRequest,
581
+ output: ListCustomHostnamesResponse,
582
+ errors: [],
583
+ }));
584
+ export const CreateCustomHostnameRequest =
585
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
586
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
587
+ hostname: Schema.String,
588
+ customMetadata: Schema.optional(Schema.Struct({})),
589
+ ssl: Schema.optional(Schema.Struct({
590
+ bundleMethod: Schema.optional(Schema.Literals(["ubiquitous", "optimal", "force"])),
591
+ certificateAuthority: Schema.optional(Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"])),
592
+ cloudflareBranding: Schema.optional(Schema.Boolean),
593
+ customCertBundle: Schema.optional(Schema.Array(Schema.Struct({
594
+ customCertificate: Schema.String,
595
+ customKey: Schema.String,
596
+ }).pipe(Schema.encodeKeys({
597
+ customCertificate: "custom_certificate",
598
+ customKey: "custom_key",
599
+ })))),
600
+ customCertificate: Schema.optional(Schema.String),
601
+ customKey: Schema.optional(Schema.String),
602
+ method: Schema.optional(Schema.Literals(["http", "txt", "email"])),
603
+ settings: Schema.optional(Schema.Struct({
604
+ ciphers: Schema.optional(Schema.Array(Schema.String)),
605
+ earlyHints: Schema.optional(Schema.Literals(["on", "off"])),
606
+ http2: Schema.optional(Schema.Literals(["on", "off"])),
607
+ minTlsVersion: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"])),
608
+ tls_1_3: Schema.optional(Schema.Literals(["on", "off"])),
609
+ }).pipe(Schema.encodeKeys({
610
+ ciphers: "ciphers",
611
+ earlyHints: "early_hints",
612
+ http2: "http2",
613
+ minTlsVersion: "min_tls_version",
614
+ tls_1_3: "tls_1_3",
615
+ }))),
616
+ type: Schema.optional(Schema.Literal("dv")),
617
+ wildcard: Schema.optional(Schema.Boolean),
618
+ }).pipe(Schema.encodeKeys({
619
+ bundleMethod: "bundle_method",
620
+ certificateAuthority: "certificate_authority",
621
+ cloudflareBranding: "cloudflare_branding",
622
+ customCertBundle: "custom_cert_bundle",
623
+ customCertificate: "custom_certificate",
624
+ customKey: "custom_key",
625
+ method: "method",
626
+ settings: "settings",
627
+ type: "type",
628
+ wildcard: "wildcard",
629
+ }))),
630
+ }).pipe(Schema.encodeKeys({
631
+ hostname: "hostname",
632
+ customMetadata: "custom_metadata",
633
+ ssl: "ssl",
634
+ }), T.Http({ method: "POST", path: "/zones/{zone_id}/custom_hostnames" }));
635
+ export const CreateCustomHostnameResponse =
636
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
637
+ id: Schema.String,
638
+ hostname: Schema.String,
639
+ ssl: Schema.Struct({
640
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
641
+ bundleMethod: Schema.optional(Schema.Union([
642
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
643
+ Schema.Null,
644
+ ])),
645
+ certificateAuthority: Schema.optional(Schema.Union([
646
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
647
+ Schema.Null,
648
+ ])),
649
+ customCertificate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
650
+ customCsrId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
651
+ customKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
652
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
653
+ hosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
654
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
655
+ method: Schema.optional(Schema.Union([Schema.Literals(["http", "txt", "email"]), Schema.Null])),
656
+ serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
657
+ settings: Schema.optional(Schema.Union([
658
+ Schema.Struct({
659
+ ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
660
+ earlyHints: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
661
+ http2: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
662
+ minTlsVersion: Schema.optional(Schema.Union([
663
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
664
+ Schema.Null,
665
+ ])),
666
+ tls_1_3: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
667
+ }).pipe(Schema.encodeKeys({
668
+ ciphers: "ciphers",
669
+ earlyHints: "early_hints",
670
+ http2: "http2",
671
+ minTlsVersion: "min_tls_version",
672
+ tls_1_3: "tls_1_3",
673
+ })),
674
+ Schema.Null,
675
+ ])),
676
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
677
+ status: Schema.optional(Schema.Union([
678
+ Schema.Literals([
679
+ "initializing",
680
+ "pending_validation",
681
+ "deleted",
682
+ "pending_issuance",
683
+ "pending_deployment",
684
+ "pending_deletion",
685
+ "pending_expiration",
686
+ "expired",
687
+ "active",
688
+ "initializing_timed_out",
689
+ "validation_timed_out",
690
+ "issuance_timed_out",
691
+ "deployment_timed_out",
692
+ "deletion_timed_out",
693
+ "pending_cleanup",
694
+ "staging_deployment",
695
+ "staging_active",
696
+ "deactivating",
697
+ "inactive",
698
+ "backup_issued",
699
+ "holding_deployment",
700
+ ]),
701
+ Schema.Null,
702
+ ])),
703
+ type: Schema.optional(Schema.Union([Schema.Literal("dv"), Schema.Null])),
704
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
705
+ validationErrors: Schema.optional(Schema.Union([
706
+ Schema.Array(Schema.Struct({
707
+ message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
708
+ })),
709
+ Schema.Null,
710
+ ])),
711
+ validationRecords: Schema.optional(Schema.Union([
712
+ Schema.Array(Schema.Struct({
713
+ emails: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
714
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
715
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
716
+ txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
717
+ txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
718
+ }).pipe(Schema.encodeKeys({
719
+ emails: "emails",
720
+ httpBody: "http_body",
721
+ httpUrl: "http_url",
722
+ txtName: "txt_name",
723
+ txtValue: "txt_value",
724
+ }))),
725
+ Schema.Null,
726
+ ])),
727
+ wildcard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
728
+ }).pipe(Schema.encodeKeys({
729
+ id: "id",
730
+ bundleMethod: "bundle_method",
731
+ certificateAuthority: "certificate_authority",
732
+ customCertificate: "custom_certificate",
733
+ customCsrId: "custom_csr_id",
734
+ customKey: "custom_key",
735
+ expiresOn: "expires_on",
736
+ hosts: "hosts",
737
+ issuer: "issuer",
738
+ method: "method",
739
+ serialNumber: "serial_number",
740
+ settings: "settings",
741
+ signature: "signature",
742
+ status: "status",
743
+ type: "type",
744
+ uploadedOn: "uploaded_on",
745
+ validationErrors: "validation_errors",
746
+ validationRecords: "validation_records",
747
+ wildcard: "wildcard",
748
+ })),
749
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
750
+ customMetadata: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
751
+ customOriginServer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
752
+ customOriginSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
753
+ ownershipVerification: Schema.optional(Schema.Union([
754
+ Schema.Struct({
755
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
756
+ type: Schema.optional(Schema.Union([Schema.Literal("txt"), Schema.Null])),
757
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
758
+ }),
759
+ Schema.Null,
760
+ ])),
761
+ ownershipVerificationHttp: Schema.optional(Schema.Union([
762
+ Schema.Struct({
763
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
764
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
765
+ }).pipe(Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" })),
766
+ Schema.Null,
767
+ ])),
768
+ status: Schema.optional(Schema.Union([
769
+ Schema.Literals([
770
+ "active",
771
+ "pending",
772
+ "active_redeploying",
773
+ "moved",
774
+ "pending_deletion",
775
+ "deleted",
776
+ "pending_blocked",
777
+ "pending_migration",
778
+ "pending_provisioned",
779
+ "test_pending",
780
+ "test_active",
781
+ "test_active_apex",
782
+ "test_blocked",
783
+ "test_failed",
784
+ "provisioned",
785
+ "blocked",
786
+ ]),
787
+ Schema.Null,
788
+ ])),
789
+ verificationErrors: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
790
+ }).pipe(Schema.encodeKeys({
791
+ id: "id",
792
+ hostname: "hostname",
793
+ ssl: "ssl",
794
+ createdAt: "created_at",
795
+ customMetadata: "custom_metadata",
796
+ customOriginServer: "custom_origin_server",
797
+ customOriginSni: "custom_origin_sni",
798
+ ownershipVerification: "ownership_verification",
799
+ ownershipVerificationHttp: "ownership_verification_http",
800
+ status: "status",
801
+ verificationErrors: "verification_errors",
802
+ }));
803
+ export const createCustomHostname = API.make(() => ({
804
+ input: CreateCustomHostnameRequest,
805
+ output: CreateCustomHostnameResponse,
806
+ errors: [],
807
+ }));
808
+ export const PatchCustomHostnameRequest =
809
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
810
+ customHostnameId: Schema.String.pipe(T.HttpPath("customHostnameId")),
811
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
812
+ customMetadata: Schema.optional(Schema.Struct({})),
813
+ customOriginServer: Schema.optional(Schema.String),
814
+ customOriginSni: Schema.optional(Schema.String),
815
+ ssl: Schema.optional(Schema.Struct({
816
+ bundleMethod: Schema.optional(Schema.Literals(["ubiquitous", "optimal", "force"])),
817
+ certificateAuthority: Schema.optional(Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"])),
818
+ cloudflareBranding: Schema.optional(Schema.Boolean),
819
+ customCertBundle: Schema.optional(Schema.Array(Schema.Struct({
820
+ customCertificate: Schema.String,
821
+ customKey: Schema.String,
822
+ }).pipe(Schema.encodeKeys({
823
+ customCertificate: "custom_certificate",
824
+ customKey: "custom_key",
825
+ })))),
826
+ customCertificate: Schema.optional(Schema.String),
827
+ customKey: Schema.optional(Schema.String),
828
+ method: Schema.optional(Schema.Literals(["http", "txt", "email"])),
829
+ settings: Schema.optional(Schema.Struct({
830
+ ciphers: Schema.optional(Schema.Array(Schema.String)),
831
+ earlyHints: Schema.optional(Schema.Literals(["on", "off"])),
832
+ http2: Schema.optional(Schema.Literals(["on", "off"])),
833
+ minTlsVersion: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"])),
834
+ tls_1_3: Schema.optional(Schema.Literals(["on", "off"])),
835
+ }).pipe(Schema.encodeKeys({
836
+ ciphers: "ciphers",
837
+ earlyHints: "early_hints",
838
+ http2: "http2",
839
+ minTlsVersion: "min_tls_version",
840
+ tls_1_3: "tls_1_3",
841
+ }))),
842
+ type: Schema.optional(Schema.Literal("dv")),
843
+ wildcard: Schema.optional(Schema.Boolean),
844
+ }).pipe(Schema.encodeKeys({
845
+ bundleMethod: "bundle_method",
846
+ certificateAuthority: "certificate_authority",
847
+ cloudflareBranding: "cloudflare_branding",
848
+ customCertBundle: "custom_cert_bundle",
849
+ customCertificate: "custom_certificate",
850
+ customKey: "custom_key",
851
+ method: "method",
852
+ settings: "settings",
853
+ type: "type",
854
+ wildcard: "wildcard",
855
+ }))),
856
+ }).pipe(Schema.encodeKeys({
857
+ customMetadata: "custom_metadata",
858
+ customOriginServer: "custom_origin_server",
859
+ customOriginSni: "custom_origin_sni",
860
+ ssl: "ssl",
861
+ }), T.Http({
862
+ method: "PATCH",
863
+ path: "/zones/{zone_id}/custom_hostnames/{customHostnameId}",
864
+ }));
865
+ export const PatchCustomHostnameResponse =
866
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
867
+ id: Schema.String,
868
+ hostname: Schema.String,
869
+ ssl: Schema.Struct({
870
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
871
+ bundleMethod: Schema.optional(Schema.Union([
872
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
873
+ Schema.Null,
874
+ ])),
875
+ certificateAuthority: Schema.optional(Schema.Union([
876
+ Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
877
+ Schema.Null,
878
+ ])),
879
+ customCertificate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
880
+ customCsrId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
881
+ customKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
882
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
883
+ hosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
884
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
885
+ method: Schema.optional(Schema.Union([Schema.Literals(["http", "txt", "email"]), Schema.Null])),
886
+ serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
887
+ settings: Schema.optional(Schema.Union([
888
+ Schema.Struct({
889
+ ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
890
+ earlyHints: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
891
+ http2: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
892
+ minTlsVersion: Schema.optional(Schema.Union([
893
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
894
+ Schema.Null,
895
+ ])),
896
+ tls_1_3: Schema.optional(Schema.Union([Schema.Literals(["on", "off"]), Schema.Null])),
897
+ }).pipe(Schema.encodeKeys({
898
+ ciphers: "ciphers",
899
+ earlyHints: "early_hints",
900
+ http2: "http2",
901
+ minTlsVersion: "min_tls_version",
902
+ tls_1_3: "tls_1_3",
903
+ })),
904
+ Schema.Null,
905
+ ])),
906
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
907
+ status: Schema.optional(Schema.Union([
908
+ Schema.Literals([
909
+ "initializing",
910
+ "pending_validation",
911
+ "deleted",
912
+ "pending_issuance",
913
+ "pending_deployment",
914
+ "pending_deletion",
915
+ "pending_expiration",
916
+ "expired",
917
+ "active",
918
+ "initializing_timed_out",
919
+ "validation_timed_out",
920
+ "issuance_timed_out",
921
+ "deployment_timed_out",
922
+ "deletion_timed_out",
923
+ "pending_cleanup",
924
+ "staging_deployment",
925
+ "staging_active",
926
+ "deactivating",
927
+ "inactive",
928
+ "backup_issued",
929
+ "holding_deployment",
930
+ ]),
931
+ Schema.Null,
932
+ ])),
933
+ type: Schema.optional(Schema.Union([Schema.Literal("dv"), Schema.Null])),
934
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
935
+ validationErrors: Schema.optional(Schema.Union([
936
+ Schema.Array(Schema.Struct({
937
+ message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
938
+ })),
939
+ Schema.Null,
940
+ ])),
941
+ validationRecords: Schema.optional(Schema.Union([
942
+ Schema.Array(Schema.Struct({
943
+ emails: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
944
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
945
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
946
+ txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
947
+ txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
948
+ }).pipe(Schema.encodeKeys({
949
+ emails: "emails",
950
+ httpBody: "http_body",
951
+ httpUrl: "http_url",
952
+ txtName: "txt_name",
953
+ txtValue: "txt_value",
954
+ }))),
955
+ Schema.Null,
956
+ ])),
957
+ wildcard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
958
+ }).pipe(Schema.encodeKeys({
959
+ id: "id",
960
+ bundleMethod: "bundle_method",
961
+ certificateAuthority: "certificate_authority",
962
+ customCertificate: "custom_certificate",
963
+ customCsrId: "custom_csr_id",
964
+ customKey: "custom_key",
965
+ expiresOn: "expires_on",
966
+ hosts: "hosts",
967
+ issuer: "issuer",
968
+ method: "method",
969
+ serialNumber: "serial_number",
970
+ settings: "settings",
971
+ signature: "signature",
972
+ status: "status",
973
+ type: "type",
974
+ uploadedOn: "uploaded_on",
975
+ validationErrors: "validation_errors",
976
+ validationRecords: "validation_records",
977
+ wildcard: "wildcard",
978
+ })),
979
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
980
+ customMetadata: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
981
+ customOriginServer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
982
+ customOriginSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
983
+ ownershipVerification: Schema.optional(Schema.Union([
984
+ Schema.Struct({
985
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
986
+ type: Schema.optional(Schema.Union([Schema.Literal("txt"), Schema.Null])),
987
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
988
+ }),
989
+ Schema.Null,
990
+ ])),
991
+ ownershipVerificationHttp: Schema.optional(Schema.Union([
992
+ Schema.Struct({
993
+ httpBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
994
+ httpUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
995
+ }).pipe(Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" })),
996
+ Schema.Null,
997
+ ])),
998
+ status: Schema.optional(Schema.Union([
999
+ Schema.Literals([
1000
+ "active",
1001
+ "pending",
1002
+ "active_redeploying",
1003
+ "moved",
1004
+ "pending_deletion",
1005
+ "deleted",
1006
+ "pending_blocked",
1007
+ "pending_migration",
1008
+ "pending_provisioned",
1009
+ "test_pending",
1010
+ "test_active",
1011
+ "test_active_apex",
1012
+ "test_blocked",
1013
+ "test_failed",
1014
+ "provisioned",
1015
+ "blocked",
1016
+ ]),
1017
+ Schema.Null,
1018
+ ])),
1019
+ verificationErrors: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1020
+ }).pipe(Schema.encodeKeys({
1021
+ id: "id",
1022
+ hostname: "hostname",
1023
+ ssl: "ssl",
1024
+ createdAt: "created_at",
1025
+ customMetadata: "custom_metadata",
1026
+ customOriginServer: "custom_origin_server",
1027
+ customOriginSni: "custom_origin_sni",
1028
+ ownershipVerification: "ownership_verification",
1029
+ ownershipVerificationHttp: "ownership_verification_http",
1030
+ status: "status",
1031
+ verificationErrors: "verification_errors",
1032
+ }));
1033
+ export const patchCustomHostname = API.make(() => ({
1034
+ input: PatchCustomHostnameRequest,
1035
+ output: PatchCustomHostnameResponse,
1036
+ errors: [],
1037
+ }));
1038
+ export const DeleteCustomHostnameRequest =
1039
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1040
+ customHostnameId: Schema.String.pipe(T.HttpPath("customHostnameId")),
1041
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1042
+ }).pipe(T.Http({
1043
+ method: "DELETE",
1044
+ path: "/zones/{zone_id}/custom_hostnames/{customHostnameId}",
1045
+ }));
1046
+ export const DeleteCustomHostnameResponse =
1047
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1048
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1049
+ });
1050
+ export const deleteCustomHostname = API.make(() => ({
1051
+ input: DeleteCustomHostnameRequest,
1052
+ output: DeleteCustomHostnameResponse,
1053
+ errors: [],
1054
+ }));
1055
+ export const GetFallbackOriginRequest =
1056
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1057
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1058
+ }).pipe(T.Http({
1059
+ method: "GET",
1060
+ path: "/zones/{zone_id}/custom_hostnames/fallback_origin",
1061
+ }));
1062
+ export const GetFallbackOriginResponse =
1063
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1064
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1065
+ errors: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1066
+ origin: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1067
+ status: Schema.optional(Schema.Union([
1068
+ Schema.Literals([
1069
+ "initializing",
1070
+ "pending_deployment",
1071
+ "pending_deletion",
1072
+ "active",
1073
+ "deployment_timed_out",
1074
+ "deletion_timed_out",
1075
+ ]),
1076
+ Schema.Null,
1077
+ ])),
1078
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1079
+ }).pipe(Schema.encodeKeys({
1080
+ createdAt: "created_at",
1081
+ errors: "errors",
1082
+ origin: "origin",
1083
+ status: "status",
1084
+ updatedAt: "updated_at",
1085
+ }));
1086
+ export const getFallbackOrigin = API.make(() => ({
1087
+ input: GetFallbackOriginRequest,
1088
+ output: GetFallbackOriginResponse,
1089
+ errors: [],
1090
+ }));
1091
+ export const PutFallbackOriginRequest =
1092
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1093
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1094
+ origin: Schema.String,
1095
+ }).pipe(T.Http({
1096
+ method: "PUT",
1097
+ path: "/zones/{zone_id}/custom_hostnames/fallback_origin",
1098
+ }));
1099
+ export const PutFallbackOriginResponse =
1100
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1101
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1102
+ errors: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1103
+ origin: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1104
+ status: Schema.optional(Schema.Union([
1105
+ Schema.Literals([
1106
+ "initializing",
1107
+ "pending_deployment",
1108
+ "pending_deletion",
1109
+ "active",
1110
+ "deployment_timed_out",
1111
+ "deletion_timed_out",
1112
+ ]),
1113
+ Schema.Null,
1114
+ ])),
1115
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1116
+ }).pipe(Schema.encodeKeys({
1117
+ createdAt: "created_at",
1118
+ errors: "errors",
1119
+ origin: "origin",
1120
+ status: "status",
1121
+ updatedAt: "updated_at",
1122
+ }));
1123
+ export const putFallbackOrigin = API.make(() => ({
1124
+ input: PutFallbackOriginRequest,
1125
+ output: PutFallbackOriginResponse,
1126
+ errors: [],
1127
+ }));
1128
+ export const DeleteFallbackOriginRequest =
1129
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1130
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1131
+ }).pipe(T.Http({
1132
+ method: "DELETE",
1133
+ path: "/zones/{zone_id}/custom_hostnames/fallback_origin",
1134
+ }));
1135
+ export const DeleteFallbackOriginResponse =
1136
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1137
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1138
+ errors: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1139
+ origin: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1140
+ status: Schema.optional(Schema.Union([
1141
+ Schema.Literals([
1142
+ "initializing",
1143
+ "pending_deployment",
1144
+ "pending_deletion",
1145
+ "active",
1146
+ "deployment_timed_out",
1147
+ "deletion_timed_out",
1148
+ ]),
1149
+ Schema.Null,
1150
+ ])),
1151
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1152
+ }).pipe(Schema.encodeKeys({
1153
+ createdAt: "created_at",
1154
+ errors: "errors",
1155
+ origin: "origin",
1156
+ status: "status",
1157
+ updatedAt: "updated_at",
1158
+ }));
1159
+ export const deleteFallbackOrigin = API.make(() => ({
1160
+ input: DeleteFallbackOriginRequest,
1161
+ output: DeleteFallbackOriginResponse,
1162
+ errors: [],
1163
+ }));
1164
+ //# sourceMappingURL=custom-hostnames.js.map