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