@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,1587 @@
1
+ /**
2
+ * Cloudflare SSL API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service ssl
6
+ */
7
+
8
+ import * as Schema from "effect/Schema";
9
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
10
+ import * as API from "../client/api.ts";
11
+ import * as T from "../traits";
12
+ import type { Credentials } from "../credentials";
13
+ import { type DefaultErrors } from "../errors";
14
+
15
+ // =============================================================================
16
+ // Analyze
17
+ // =============================================================================
18
+
19
+ export interface CreateAnalyzeRequest {
20
+ /** Path param: Identifier. */
21
+ zoneId: string;
22
+ /** Body param: A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest i */
23
+ bundleMethod?: "ubiquitous" | "optimal" | "force";
24
+ /** Body param: The zone's SSL certificate or certificate and the intermediate(s). */
25
+ certificate?: string;
26
+ }
27
+
28
+ export const CreateAnalyzeRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
29
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
30
+ bundleMethod: Schema.optional(
31
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
32
+ ),
33
+ certificate: Schema.optional(Schema.String),
34
+ }).pipe(
35
+ Schema.encodeKeys({
36
+ bundleMethod: "bundle_method",
37
+ certificate: "certificate",
38
+ }),
39
+ T.Http({ method: "POST", path: "/zones/{zone_id}/ssl/analyze" }),
40
+ ) as unknown as Schema.Schema<CreateAnalyzeRequest>;
41
+
42
+ export type CreateAnalyzeResponse = unknown;
43
+
44
+ export const CreateAnalyzeResponse =
45
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<CreateAnalyzeResponse>;
46
+
47
+ export type CreateAnalyzeError = DefaultErrors;
48
+
49
+ export const createAnalyze: API.OperationMethod<
50
+ CreateAnalyzeRequest,
51
+ CreateAnalyzeResponse,
52
+ CreateAnalyzeError,
53
+ Credentials | HttpClient.HttpClient
54
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
55
+ input: CreateAnalyzeRequest,
56
+ output: CreateAnalyzeResponse,
57
+ errors: [],
58
+ }));
59
+
60
+ // =============================================================================
61
+ // CertificatePack
62
+ // =============================================================================
63
+
64
+ export interface GetCertificatePackRequest {
65
+ certificatePackId: string;
66
+ /** Identifier. */
67
+ zoneId: string;
68
+ }
69
+
70
+ export const GetCertificatePackRequest =
71
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
72
+ certificatePackId: Schema.String.pipe(T.HttpPath("certificatePackId")),
73
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
74
+ }).pipe(
75
+ T.Http({
76
+ method: "GET",
77
+ path: "/zones/{zone_id}/ssl/certificate_packs/{certificatePackId}",
78
+ }),
79
+ ) as unknown as Schema.Schema<GetCertificatePackRequest>;
80
+
81
+ export interface GetCertificatePackResponse {
82
+ /** Identifier. */
83
+ id: string;
84
+ /** Array of certificates in this pack. */
85
+ certificates: {
86
+ id: string;
87
+ hosts: string[];
88
+ status: string;
89
+ bundleMethod?: string | null;
90
+ expiresOn?: string | null;
91
+ geoRestrictions?: {
92
+ label?: "us" | "eu" | "highest_security" | null;
93
+ } | null;
94
+ issuer?: string | null;
95
+ modifiedOn?: string | null;
96
+ priority?: number | null;
97
+ signature?: string | null;
98
+ uploadedOn?: string | null;
99
+ zoneId?: string | null;
100
+ }[];
101
+ /** Comma separated list of valid host names for the certificate packs. Must contain the zone apex, may not contain more than 50 hosts, and may not be empty. */
102
+ hosts: string[];
103
+ /** Status of certificate pack. */
104
+ status:
105
+ | "active"
106
+ | "initializing"
107
+ | "pending_validation"
108
+ | "deleted"
109
+ | "pending_issuance"
110
+ | "pending_deployment"
111
+ | "pending_deletion"
112
+ | "pending_expiration"
113
+ | "expired"
114
+ | "initializing_timed_out"
115
+ | "validation_timed_out"
116
+ | "issuance_timed_out"
117
+ | "deployment_timed_out"
118
+ | "deletion_timed_out"
119
+ | "pending_cleanup"
120
+ | "staging_deployment"
121
+ | "staging_active"
122
+ | "deactivating"
123
+ | "inactive"
124
+ | "backup_issued"
125
+ | "holding_deployment";
126
+ /** Type of certificate pack. */
127
+ type:
128
+ | "mh_custom"
129
+ | "managed_hostname"
130
+ | "sni_custom"
131
+ | "universal"
132
+ | "advanced"
133
+ | "total_tls"
134
+ | "keyless"
135
+ | "legacy_custom";
136
+ /** Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details.](https://developers.cloudflare.com/ssl/refe */
137
+ certificateAuthority?: "google" | "lets_encrypt" | "ssl_com" | null;
138
+ /** Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true. */
139
+ cloudflareBranding?: boolean | null;
140
+ /** Identifier of the primary certificate in a pack. */
141
+ primaryCertificate?: string | null;
142
+ /** Domain validation errors that have been received by the certificate authority (CA). */
143
+ validationErrors?: { message?: string | null }[] | null;
144
+ /** Validation Method selected for the order. */
145
+ validationMethod?: "txt" | "http" | "email" | null;
146
+ /** Certificates' validation records. */
147
+ validationRecords?:
148
+ | {
149
+ emails?: string[] | null;
150
+ httpBody?: string | null;
151
+ httpUrl?: string | null;
152
+ txtName?: string | null;
153
+ txtValue?: string | null;
154
+ }[]
155
+ | null;
156
+ /** Validity Days selected for the order. */
157
+ validityDays?: "14" | "30" | "90" | "365" | null;
158
+ }
159
+
160
+ export const GetCertificatePackResponse =
161
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
162
+ id: Schema.String,
163
+ certificates: Schema.Array(
164
+ Schema.Struct({
165
+ id: Schema.String,
166
+ hosts: Schema.Array(Schema.String),
167
+ status: Schema.String,
168
+ bundleMethod: Schema.optional(
169
+ Schema.Union([Schema.String, Schema.Null]),
170
+ ),
171
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
172
+ geoRestrictions: Schema.optional(
173
+ Schema.Union([
174
+ Schema.Struct({
175
+ label: Schema.optional(
176
+ Schema.Union([
177
+ Schema.Literals(["us", "eu", "highest_security"]),
178
+ Schema.Null,
179
+ ]),
180
+ ),
181
+ }),
182
+ Schema.Null,
183
+ ]),
184
+ ),
185
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
186
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
187
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
188
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
189
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
190
+ zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
191
+ }).pipe(
192
+ Schema.encodeKeys({
193
+ id: "id",
194
+ hosts: "hosts",
195
+ status: "status",
196
+ bundleMethod: "bundle_method",
197
+ expiresOn: "expires_on",
198
+ geoRestrictions: "geo_restrictions",
199
+ issuer: "issuer",
200
+ modifiedOn: "modified_on",
201
+ priority: "priority",
202
+ signature: "signature",
203
+ uploadedOn: "uploaded_on",
204
+ zoneId: "zone_id",
205
+ }),
206
+ ),
207
+ ),
208
+ hosts: Schema.Array(Schema.String),
209
+ status: Schema.Literals([
210
+ "active",
211
+ "initializing",
212
+ "pending_validation",
213
+ "deleted",
214
+ "pending_issuance",
215
+ "pending_deployment",
216
+ "pending_deletion",
217
+ "pending_expiration",
218
+ "expired",
219
+ "initializing_timed_out",
220
+ "validation_timed_out",
221
+ "issuance_timed_out",
222
+ "deployment_timed_out",
223
+ "deletion_timed_out",
224
+ "pending_cleanup",
225
+ "staging_deployment",
226
+ "staging_active",
227
+ "deactivating",
228
+ "inactive",
229
+ "backup_issued",
230
+ "holding_deployment",
231
+ ]),
232
+ type: Schema.Literals([
233
+ "mh_custom",
234
+ "managed_hostname",
235
+ "sni_custom",
236
+ "universal",
237
+ "advanced",
238
+ "total_tls",
239
+ "keyless",
240
+ "legacy_custom",
241
+ ]),
242
+ certificateAuthority: Schema.optional(
243
+ Schema.Union([
244
+ Schema.Literals(["google", "lets_encrypt", "ssl_com"]),
245
+ Schema.Null,
246
+ ]),
247
+ ),
248
+ cloudflareBranding: Schema.optional(
249
+ Schema.Union([Schema.Boolean, Schema.Null]),
250
+ ),
251
+ primaryCertificate: Schema.optional(
252
+ Schema.Union([Schema.String, Schema.Null]),
253
+ ),
254
+ validationErrors: Schema.optional(
255
+ Schema.Union([
256
+ Schema.Array(
257
+ Schema.Struct({
258
+ message: Schema.optional(
259
+ Schema.Union([Schema.String, Schema.Null]),
260
+ ),
261
+ }),
262
+ ),
263
+ Schema.Null,
264
+ ]),
265
+ ),
266
+ validationMethod: Schema.optional(
267
+ Schema.Union([Schema.Literals(["txt", "http", "email"]), Schema.Null]),
268
+ ),
269
+ validationRecords: Schema.optional(
270
+ Schema.Union([
271
+ Schema.Array(
272
+ Schema.Struct({
273
+ emails: Schema.optional(
274
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
275
+ ),
276
+ httpBody: Schema.optional(
277
+ Schema.Union([Schema.String, Schema.Null]),
278
+ ),
279
+ httpUrl: Schema.optional(
280
+ Schema.Union([Schema.String, Schema.Null]),
281
+ ),
282
+ txtName: Schema.optional(
283
+ Schema.Union([Schema.String, Schema.Null]),
284
+ ),
285
+ txtValue: Schema.optional(
286
+ Schema.Union([Schema.String, Schema.Null]),
287
+ ),
288
+ }).pipe(
289
+ Schema.encodeKeys({
290
+ emails: "emails",
291
+ httpBody: "http_body",
292
+ httpUrl: "http_url",
293
+ txtName: "txt_name",
294
+ txtValue: "txt_value",
295
+ }),
296
+ ),
297
+ ),
298
+ Schema.Null,
299
+ ]),
300
+ ),
301
+ validityDays: Schema.optional(
302
+ Schema.Union([Schema.Literals(["14", "30", "90", "365"]), Schema.Null]),
303
+ ),
304
+ }).pipe(
305
+ Schema.encodeKeys({
306
+ id: "id",
307
+ certificates: "certificates",
308
+ hosts: "hosts",
309
+ status: "status",
310
+ type: "type",
311
+ certificateAuthority: "certificate_authority",
312
+ cloudflareBranding: "cloudflare_branding",
313
+ primaryCertificate: "primary_certificate",
314
+ validationErrors: "validation_errors",
315
+ validationMethod: "validation_method",
316
+ validationRecords: "validation_records",
317
+ validityDays: "validity_days",
318
+ }),
319
+ ) as unknown as Schema.Schema<GetCertificatePackResponse>;
320
+
321
+ export type GetCertificatePackError = DefaultErrors;
322
+
323
+ export const getCertificatePack: API.OperationMethod<
324
+ GetCertificatePackRequest,
325
+ GetCertificatePackResponse,
326
+ GetCertificatePackError,
327
+ Credentials | HttpClient.HttpClient
328
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
329
+ input: GetCertificatePackRequest,
330
+ output: GetCertificatePackResponse,
331
+ errors: [],
332
+ }));
333
+
334
+ export interface ListCertificatePacksRequest {
335
+ /** Path param: Identifier. */
336
+ zoneId: string;
337
+ /** Query param: Include Certificate Packs of all statuses, not just active ones. */
338
+ status?: "all";
339
+ }
340
+
341
+ export const ListCertificatePacksRequest =
342
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
343
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
344
+ status: Schema.optional(Schema.Literal("all")).pipe(T.HttpQuery("status")),
345
+ }).pipe(
346
+ T.Http({ method: "GET", path: "/zones/{zone_id}/ssl/certificate_packs" }),
347
+ ) as unknown as Schema.Schema<ListCertificatePacksRequest>;
348
+
349
+ export type ListCertificatePacksResponse = {
350
+ id: string;
351
+ certificates: {
352
+ id: string;
353
+ hosts: string[];
354
+ status: string;
355
+ bundleMethod?: string | null;
356
+ expiresOn?: string | null;
357
+ geoRestrictions?: {
358
+ label?: "us" | "eu" | "highest_security" | null;
359
+ } | null;
360
+ issuer?: string | null;
361
+ modifiedOn?: string | null;
362
+ priority?: number | null;
363
+ signature?: string | null;
364
+ uploadedOn?: string | null;
365
+ zoneId?: string | null;
366
+ }[];
367
+ hosts: string[];
368
+ status:
369
+ | "active"
370
+ | "initializing"
371
+ | "pending_validation"
372
+ | "deleted"
373
+ | "pending_issuance"
374
+ | "pending_deployment"
375
+ | "pending_deletion"
376
+ | "pending_expiration"
377
+ | "expired"
378
+ | "initializing_timed_out"
379
+ | "validation_timed_out"
380
+ | "issuance_timed_out"
381
+ | "deployment_timed_out"
382
+ | "deletion_timed_out"
383
+ | "pending_cleanup"
384
+ | "staging_deployment"
385
+ | "staging_active"
386
+ | "deactivating"
387
+ | "inactive"
388
+ | "backup_issued"
389
+ | "holding_deployment";
390
+ type:
391
+ | "mh_custom"
392
+ | "managed_hostname"
393
+ | "sni_custom"
394
+ | "universal"
395
+ | "advanced"
396
+ | "total_tls"
397
+ | "keyless"
398
+ | "legacy_custom";
399
+ certificateAuthority?: "google" | "lets_encrypt" | "ssl_com" | null;
400
+ cloudflareBranding?: boolean | null;
401
+ primaryCertificate?: string | null;
402
+ validationErrors?: { message?: string | null }[] | null;
403
+ validationMethod?: "txt" | "http" | "email" | null;
404
+ validationRecords?:
405
+ | {
406
+ emails?: string[] | null;
407
+ httpBody?: string | null;
408
+ httpUrl?: string | null;
409
+ txtName?: string | null;
410
+ txtValue?: string | null;
411
+ }[]
412
+ | null;
413
+ validityDays?: "14" | "30" | "90" | "365" | null;
414
+ }[];
415
+
416
+ export const ListCertificatePacksResponse =
417
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
418
+ Schema.Struct({
419
+ id: Schema.String,
420
+ certificates: Schema.Array(
421
+ Schema.Struct({
422
+ id: Schema.String,
423
+ hosts: Schema.Array(Schema.String),
424
+ status: Schema.String,
425
+ bundleMethod: Schema.optional(
426
+ Schema.Union([Schema.String, Schema.Null]),
427
+ ),
428
+ expiresOn: Schema.optional(
429
+ Schema.Union([Schema.String, Schema.Null]),
430
+ ),
431
+ geoRestrictions: Schema.optional(
432
+ Schema.Union([
433
+ Schema.Struct({
434
+ label: Schema.optional(
435
+ Schema.Union([
436
+ Schema.Literals(["us", "eu", "highest_security"]),
437
+ Schema.Null,
438
+ ]),
439
+ ),
440
+ }),
441
+ Schema.Null,
442
+ ]),
443
+ ),
444
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
445
+ modifiedOn: Schema.optional(
446
+ Schema.Union([Schema.String, Schema.Null]),
447
+ ),
448
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
449
+ signature: Schema.optional(
450
+ Schema.Union([Schema.String, Schema.Null]),
451
+ ),
452
+ uploadedOn: Schema.optional(
453
+ Schema.Union([Schema.String, Schema.Null]),
454
+ ),
455
+ zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
456
+ }).pipe(
457
+ Schema.encodeKeys({
458
+ id: "id",
459
+ hosts: "hosts",
460
+ status: "status",
461
+ bundleMethod: "bundle_method",
462
+ expiresOn: "expires_on",
463
+ geoRestrictions: "geo_restrictions",
464
+ issuer: "issuer",
465
+ modifiedOn: "modified_on",
466
+ priority: "priority",
467
+ signature: "signature",
468
+ uploadedOn: "uploaded_on",
469
+ zoneId: "zone_id",
470
+ }),
471
+ ),
472
+ ),
473
+ hosts: Schema.Array(Schema.String),
474
+ status: Schema.Literals([
475
+ "active",
476
+ "initializing",
477
+ "pending_validation",
478
+ "deleted",
479
+ "pending_issuance",
480
+ "pending_deployment",
481
+ "pending_deletion",
482
+ "pending_expiration",
483
+ "expired",
484
+ "initializing_timed_out",
485
+ "validation_timed_out",
486
+ "issuance_timed_out",
487
+ "deployment_timed_out",
488
+ "deletion_timed_out",
489
+ "pending_cleanup",
490
+ "staging_deployment",
491
+ "staging_active",
492
+ "deactivating",
493
+ "inactive",
494
+ "backup_issued",
495
+ "holding_deployment",
496
+ ]),
497
+ type: Schema.Literals([
498
+ "mh_custom",
499
+ "managed_hostname",
500
+ "sni_custom",
501
+ "universal",
502
+ "advanced",
503
+ "total_tls",
504
+ "keyless",
505
+ "legacy_custom",
506
+ ]),
507
+ certificateAuthority: Schema.optional(
508
+ Schema.Union([
509
+ Schema.Literals(["google", "lets_encrypt", "ssl_com"]),
510
+ Schema.Null,
511
+ ]),
512
+ ),
513
+ cloudflareBranding: Schema.optional(
514
+ Schema.Union([Schema.Boolean, Schema.Null]),
515
+ ),
516
+ primaryCertificate: Schema.optional(
517
+ Schema.Union([Schema.String, Schema.Null]),
518
+ ),
519
+ validationErrors: Schema.optional(
520
+ Schema.Union([
521
+ Schema.Array(
522
+ Schema.Struct({
523
+ message: Schema.optional(
524
+ Schema.Union([Schema.String, Schema.Null]),
525
+ ),
526
+ }),
527
+ ),
528
+ Schema.Null,
529
+ ]),
530
+ ),
531
+ validationMethod: Schema.optional(
532
+ Schema.Union([Schema.Literals(["txt", "http", "email"]), Schema.Null]),
533
+ ),
534
+ validationRecords: Schema.optional(
535
+ Schema.Union([
536
+ Schema.Array(
537
+ Schema.Struct({
538
+ emails: Schema.optional(
539
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
540
+ ),
541
+ httpBody: Schema.optional(
542
+ Schema.Union([Schema.String, Schema.Null]),
543
+ ),
544
+ httpUrl: Schema.optional(
545
+ Schema.Union([Schema.String, Schema.Null]),
546
+ ),
547
+ txtName: Schema.optional(
548
+ Schema.Union([Schema.String, Schema.Null]),
549
+ ),
550
+ txtValue: Schema.optional(
551
+ Schema.Union([Schema.String, Schema.Null]),
552
+ ),
553
+ }).pipe(
554
+ Schema.encodeKeys({
555
+ emails: "emails",
556
+ httpBody: "http_body",
557
+ httpUrl: "http_url",
558
+ txtName: "txt_name",
559
+ txtValue: "txt_value",
560
+ }),
561
+ ),
562
+ ),
563
+ Schema.Null,
564
+ ]),
565
+ ),
566
+ validityDays: Schema.optional(
567
+ Schema.Union([Schema.Literals(["14", "30", "90", "365"]), Schema.Null]),
568
+ ),
569
+ }).pipe(
570
+ Schema.encodeKeys({
571
+ id: "id",
572
+ certificates: "certificates",
573
+ hosts: "hosts",
574
+ status: "status",
575
+ type: "type",
576
+ certificateAuthority: "certificate_authority",
577
+ cloudflareBranding: "cloudflare_branding",
578
+ primaryCertificate: "primary_certificate",
579
+ validationErrors: "validation_errors",
580
+ validationMethod: "validation_method",
581
+ validationRecords: "validation_records",
582
+ validityDays: "validity_days",
583
+ }),
584
+ ),
585
+ ) as unknown as Schema.Schema<ListCertificatePacksResponse>;
586
+
587
+ export type ListCertificatePacksError = DefaultErrors;
588
+
589
+ export const listCertificatePacks: API.OperationMethod<
590
+ ListCertificatePacksRequest,
591
+ ListCertificatePacksResponse,
592
+ ListCertificatePacksError,
593
+ Credentials | HttpClient.HttpClient
594
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
595
+ input: ListCertificatePacksRequest,
596
+ output: ListCertificatePacksResponse,
597
+ errors: [],
598
+ }));
599
+
600
+ export interface CreateCertificatePackRequest {
601
+ /** Path param: Identifier. */
602
+ zoneId: string;
603
+ /** Body param: Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details.](https://developers.cloudflare. */
604
+ certificateAuthority: "google" | "lets_encrypt" | "ssl_com";
605
+ /** Body param: Comma separated list of valid host names for the certificate packs. Must contain the zone apex, may not contain more than 50 hosts, and may not be empty. */
606
+ hosts: string[];
607
+ /** Body param: Type of certificate pack. */
608
+ type: "advanced";
609
+ /** Body param: Validation Method selected for the order. */
610
+ validationMethod: "txt" | "http" | "email";
611
+ /** Body param: Validity Days selected for the order. */
612
+ validityDays: "14" | "30" | "90" | "365";
613
+ /** Body param: Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true. */
614
+ cloudflareBranding?: boolean;
615
+ }
616
+
617
+ export const CreateCertificatePackRequest =
618
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
619
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
620
+ certificateAuthority: Schema.Literals([
621
+ "google",
622
+ "lets_encrypt",
623
+ "ssl_com",
624
+ ]),
625
+ hosts: Schema.Array(Schema.String),
626
+ type: Schema.Literal("advanced"),
627
+ validationMethod: Schema.Literals(["txt", "http", "email"]),
628
+ validityDays: Schema.Literals(["14", "30", "90", "365"]),
629
+ cloudflareBranding: Schema.optional(Schema.Boolean),
630
+ }).pipe(
631
+ Schema.encodeKeys({
632
+ certificateAuthority: "certificate_authority",
633
+ hosts: "hosts",
634
+ type: "type",
635
+ validationMethod: "validation_method",
636
+ validityDays: "validity_days",
637
+ cloudflareBranding: "cloudflare_branding",
638
+ }),
639
+ T.Http({
640
+ method: "POST",
641
+ path: "/zones/{zone_id}/ssl/certificate_packs/order",
642
+ }),
643
+ ) as unknown as Schema.Schema<CreateCertificatePackRequest>;
644
+
645
+ export interface CreateCertificatePackResponse {
646
+ /** Identifier. */
647
+ id: string;
648
+ /** Array of certificates in this pack. */
649
+ certificates: {
650
+ id: string;
651
+ hosts: string[];
652
+ status: string;
653
+ bundleMethod?: string | null;
654
+ expiresOn?: string | null;
655
+ geoRestrictions?: {
656
+ label?: "us" | "eu" | "highest_security" | null;
657
+ } | null;
658
+ issuer?: string | null;
659
+ modifiedOn?: string | null;
660
+ priority?: number | null;
661
+ signature?: string | null;
662
+ uploadedOn?: string | null;
663
+ zoneId?: string | null;
664
+ }[];
665
+ /** Comma separated list of valid host names for the certificate packs. Must contain the zone apex, may not contain more than 50 hosts, and may not be empty. */
666
+ hosts: string[];
667
+ /** Status of certificate pack. */
668
+ status:
669
+ | "active"
670
+ | "initializing"
671
+ | "pending_validation"
672
+ | "deleted"
673
+ | "pending_issuance"
674
+ | "pending_deployment"
675
+ | "pending_deletion"
676
+ | "pending_expiration"
677
+ | "expired"
678
+ | "initializing_timed_out"
679
+ | "validation_timed_out"
680
+ | "issuance_timed_out"
681
+ | "deployment_timed_out"
682
+ | "deletion_timed_out"
683
+ | "pending_cleanup"
684
+ | "staging_deployment"
685
+ | "staging_active"
686
+ | "deactivating"
687
+ | "inactive"
688
+ | "backup_issued"
689
+ | "holding_deployment";
690
+ /** Type of certificate pack. */
691
+ type:
692
+ | "mh_custom"
693
+ | "managed_hostname"
694
+ | "sni_custom"
695
+ | "universal"
696
+ | "advanced"
697
+ | "total_tls"
698
+ | "keyless"
699
+ | "legacy_custom";
700
+ /** Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details.](https://developers.cloudflare.com/ssl/refe */
701
+ certificateAuthority?: "google" | "lets_encrypt" | "ssl_com" | null;
702
+ /** Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true. */
703
+ cloudflareBranding?: boolean | null;
704
+ /** Identifier of the primary certificate in a pack. */
705
+ primaryCertificate?: string | null;
706
+ /** Domain validation errors that have been received by the certificate authority (CA). */
707
+ validationErrors?: { message?: string | null }[] | null;
708
+ /** Validation Method selected for the order. */
709
+ validationMethod?: "txt" | "http" | "email" | null;
710
+ /** Certificates' validation records. */
711
+ validationRecords?:
712
+ | {
713
+ emails?: string[] | null;
714
+ httpBody?: string | null;
715
+ httpUrl?: string | null;
716
+ txtName?: string | null;
717
+ txtValue?: string | null;
718
+ }[]
719
+ | null;
720
+ /** Validity Days selected for the order. */
721
+ validityDays?: "14" | "30" | "90" | "365" | null;
722
+ }
723
+
724
+ export const CreateCertificatePackResponse =
725
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
726
+ id: Schema.String,
727
+ certificates: Schema.Array(
728
+ Schema.Struct({
729
+ id: Schema.String,
730
+ hosts: Schema.Array(Schema.String),
731
+ status: Schema.String,
732
+ bundleMethod: Schema.optional(
733
+ Schema.Union([Schema.String, Schema.Null]),
734
+ ),
735
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
736
+ geoRestrictions: Schema.optional(
737
+ Schema.Union([
738
+ Schema.Struct({
739
+ label: Schema.optional(
740
+ Schema.Union([
741
+ Schema.Literals(["us", "eu", "highest_security"]),
742
+ Schema.Null,
743
+ ]),
744
+ ),
745
+ }),
746
+ Schema.Null,
747
+ ]),
748
+ ),
749
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
750
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
751
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
752
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
753
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
754
+ zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
755
+ }).pipe(
756
+ Schema.encodeKeys({
757
+ id: "id",
758
+ hosts: "hosts",
759
+ status: "status",
760
+ bundleMethod: "bundle_method",
761
+ expiresOn: "expires_on",
762
+ geoRestrictions: "geo_restrictions",
763
+ issuer: "issuer",
764
+ modifiedOn: "modified_on",
765
+ priority: "priority",
766
+ signature: "signature",
767
+ uploadedOn: "uploaded_on",
768
+ zoneId: "zone_id",
769
+ }),
770
+ ),
771
+ ),
772
+ hosts: Schema.Array(Schema.String),
773
+ status: Schema.Literals([
774
+ "active",
775
+ "initializing",
776
+ "pending_validation",
777
+ "deleted",
778
+ "pending_issuance",
779
+ "pending_deployment",
780
+ "pending_deletion",
781
+ "pending_expiration",
782
+ "expired",
783
+ "initializing_timed_out",
784
+ "validation_timed_out",
785
+ "issuance_timed_out",
786
+ "deployment_timed_out",
787
+ "deletion_timed_out",
788
+ "pending_cleanup",
789
+ "staging_deployment",
790
+ "staging_active",
791
+ "deactivating",
792
+ "inactive",
793
+ "backup_issued",
794
+ "holding_deployment",
795
+ ]),
796
+ type: Schema.Literals([
797
+ "mh_custom",
798
+ "managed_hostname",
799
+ "sni_custom",
800
+ "universal",
801
+ "advanced",
802
+ "total_tls",
803
+ "keyless",
804
+ "legacy_custom",
805
+ ]),
806
+ certificateAuthority: Schema.optional(
807
+ Schema.Union([
808
+ Schema.Literals(["google", "lets_encrypt", "ssl_com"]),
809
+ Schema.Null,
810
+ ]),
811
+ ),
812
+ cloudflareBranding: Schema.optional(
813
+ Schema.Union([Schema.Boolean, Schema.Null]),
814
+ ),
815
+ primaryCertificate: Schema.optional(
816
+ Schema.Union([Schema.String, Schema.Null]),
817
+ ),
818
+ validationErrors: Schema.optional(
819
+ Schema.Union([
820
+ Schema.Array(
821
+ Schema.Struct({
822
+ message: Schema.optional(
823
+ Schema.Union([Schema.String, Schema.Null]),
824
+ ),
825
+ }),
826
+ ),
827
+ Schema.Null,
828
+ ]),
829
+ ),
830
+ validationMethod: Schema.optional(
831
+ Schema.Union([Schema.Literals(["txt", "http", "email"]), Schema.Null]),
832
+ ),
833
+ validationRecords: Schema.optional(
834
+ Schema.Union([
835
+ Schema.Array(
836
+ Schema.Struct({
837
+ emails: Schema.optional(
838
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
839
+ ),
840
+ httpBody: Schema.optional(
841
+ Schema.Union([Schema.String, Schema.Null]),
842
+ ),
843
+ httpUrl: Schema.optional(
844
+ Schema.Union([Schema.String, Schema.Null]),
845
+ ),
846
+ txtName: Schema.optional(
847
+ Schema.Union([Schema.String, Schema.Null]),
848
+ ),
849
+ txtValue: Schema.optional(
850
+ Schema.Union([Schema.String, Schema.Null]),
851
+ ),
852
+ }).pipe(
853
+ Schema.encodeKeys({
854
+ emails: "emails",
855
+ httpBody: "http_body",
856
+ httpUrl: "http_url",
857
+ txtName: "txt_name",
858
+ txtValue: "txt_value",
859
+ }),
860
+ ),
861
+ ),
862
+ Schema.Null,
863
+ ]),
864
+ ),
865
+ validityDays: Schema.optional(
866
+ Schema.Union([Schema.Literals(["14", "30", "90", "365"]), Schema.Null]),
867
+ ),
868
+ }).pipe(
869
+ Schema.encodeKeys({
870
+ id: "id",
871
+ certificates: "certificates",
872
+ hosts: "hosts",
873
+ status: "status",
874
+ type: "type",
875
+ certificateAuthority: "certificate_authority",
876
+ cloudflareBranding: "cloudflare_branding",
877
+ primaryCertificate: "primary_certificate",
878
+ validationErrors: "validation_errors",
879
+ validationMethod: "validation_method",
880
+ validationRecords: "validation_records",
881
+ validityDays: "validity_days",
882
+ }),
883
+ ) as unknown as Schema.Schema<CreateCertificatePackResponse>;
884
+
885
+ export type CreateCertificatePackError = DefaultErrors;
886
+
887
+ export const createCertificatePack: API.OperationMethod<
888
+ CreateCertificatePackRequest,
889
+ CreateCertificatePackResponse,
890
+ CreateCertificatePackError,
891
+ Credentials | HttpClient.HttpClient
892
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
893
+ input: CreateCertificatePackRequest,
894
+ output: CreateCertificatePackResponse,
895
+ errors: [],
896
+ }));
897
+
898
+ export interface PatchCertificatePackRequest {
899
+ certificatePackId: string;
900
+ /** Path param: Identifier. */
901
+ zoneId: string;
902
+ /** Body param: Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true. */
903
+ cloudflareBranding?: boolean;
904
+ }
905
+
906
+ export const PatchCertificatePackRequest =
907
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
908
+ certificatePackId: Schema.String.pipe(T.HttpPath("certificatePackId")),
909
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
910
+ cloudflareBranding: Schema.optional(Schema.Boolean),
911
+ }).pipe(
912
+ Schema.encodeKeys({ cloudflareBranding: "cloudflare_branding" }),
913
+ T.Http({
914
+ method: "PATCH",
915
+ path: "/zones/{zone_id}/ssl/certificate_packs/{certificatePackId}",
916
+ }),
917
+ ) as unknown as Schema.Schema<PatchCertificatePackRequest>;
918
+
919
+ export interface PatchCertificatePackResponse {
920
+ /** Identifier. */
921
+ id: string;
922
+ /** Array of certificates in this pack. */
923
+ certificates: {
924
+ id: string;
925
+ hosts: string[];
926
+ status: string;
927
+ bundleMethod?: string | null;
928
+ expiresOn?: string | null;
929
+ geoRestrictions?: {
930
+ label?: "us" | "eu" | "highest_security" | null;
931
+ } | null;
932
+ issuer?: string | null;
933
+ modifiedOn?: string | null;
934
+ priority?: number | null;
935
+ signature?: string | null;
936
+ uploadedOn?: string | null;
937
+ zoneId?: string | null;
938
+ }[];
939
+ /** Comma separated list of valid host names for the certificate packs. Must contain the zone apex, may not contain more than 50 hosts, and may not be empty. */
940
+ hosts: string[];
941
+ /** Status of certificate pack. */
942
+ status:
943
+ | "active"
944
+ | "initializing"
945
+ | "pending_validation"
946
+ | "deleted"
947
+ | "pending_issuance"
948
+ | "pending_deployment"
949
+ | "pending_deletion"
950
+ | "pending_expiration"
951
+ | "expired"
952
+ | "initializing_timed_out"
953
+ | "validation_timed_out"
954
+ | "issuance_timed_out"
955
+ | "deployment_timed_out"
956
+ | "deletion_timed_out"
957
+ | "pending_cleanup"
958
+ | "staging_deployment"
959
+ | "staging_active"
960
+ | "deactivating"
961
+ | "inactive"
962
+ | "backup_issued"
963
+ | "holding_deployment";
964
+ /** Type of certificate pack. */
965
+ type:
966
+ | "mh_custom"
967
+ | "managed_hostname"
968
+ | "sni_custom"
969
+ | "universal"
970
+ | "advanced"
971
+ | "total_tls"
972
+ | "keyless"
973
+ | "legacy_custom";
974
+ /** Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details.](https://developers.cloudflare.com/ssl/refe */
975
+ certificateAuthority?: "google" | "lets_encrypt" | "ssl_com" | null;
976
+ /** Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true. */
977
+ cloudflareBranding?: boolean | null;
978
+ /** Identifier of the primary certificate in a pack. */
979
+ primaryCertificate?: string | null;
980
+ /** Domain validation errors that have been received by the certificate authority (CA). */
981
+ validationErrors?: { message?: string | null }[] | null;
982
+ /** Validation Method selected for the order. */
983
+ validationMethod?: "txt" | "http" | "email" | null;
984
+ /** Certificates' validation records. */
985
+ validationRecords?:
986
+ | {
987
+ emails?: string[] | null;
988
+ httpBody?: string | null;
989
+ httpUrl?: string | null;
990
+ txtName?: string | null;
991
+ txtValue?: string | null;
992
+ }[]
993
+ | null;
994
+ /** Validity Days selected for the order. */
995
+ validityDays?: "14" | "30" | "90" | "365" | null;
996
+ }
997
+
998
+ export const PatchCertificatePackResponse =
999
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1000
+ id: Schema.String,
1001
+ certificates: Schema.Array(
1002
+ Schema.Struct({
1003
+ id: Schema.String,
1004
+ hosts: Schema.Array(Schema.String),
1005
+ status: Schema.String,
1006
+ bundleMethod: Schema.optional(
1007
+ Schema.Union([Schema.String, Schema.Null]),
1008
+ ),
1009
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1010
+ geoRestrictions: Schema.optional(
1011
+ Schema.Union([
1012
+ Schema.Struct({
1013
+ label: Schema.optional(
1014
+ Schema.Union([
1015
+ Schema.Literals(["us", "eu", "highest_security"]),
1016
+ Schema.Null,
1017
+ ]),
1018
+ ),
1019
+ }),
1020
+ Schema.Null,
1021
+ ]),
1022
+ ),
1023
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1024
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1025
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1026
+ signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1027
+ uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1028
+ zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1029
+ }).pipe(
1030
+ Schema.encodeKeys({
1031
+ id: "id",
1032
+ hosts: "hosts",
1033
+ status: "status",
1034
+ bundleMethod: "bundle_method",
1035
+ expiresOn: "expires_on",
1036
+ geoRestrictions: "geo_restrictions",
1037
+ issuer: "issuer",
1038
+ modifiedOn: "modified_on",
1039
+ priority: "priority",
1040
+ signature: "signature",
1041
+ uploadedOn: "uploaded_on",
1042
+ zoneId: "zone_id",
1043
+ }),
1044
+ ),
1045
+ ),
1046
+ hosts: Schema.Array(Schema.String),
1047
+ status: Schema.Literals([
1048
+ "active",
1049
+ "initializing",
1050
+ "pending_validation",
1051
+ "deleted",
1052
+ "pending_issuance",
1053
+ "pending_deployment",
1054
+ "pending_deletion",
1055
+ "pending_expiration",
1056
+ "expired",
1057
+ "initializing_timed_out",
1058
+ "validation_timed_out",
1059
+ "issuance_timed_out",
1060
+ "deployment_timed_out",
1061
+ "deletion_timed_out",
1062
+ "pending_cleanup",
1063
+ "staging_deployment",
1064
+ "staging_active",
1065
+ "deactivating",
1066
+ "inactive",
1067
+ "backup_issued",
1068
+ "holding_deployment",
1069
+ ]),
1070
+ type: Schema.Literals([
1071
+ "mh_custom",
1072
+ "managed_hostname",
1073
+ "sni_custom",
1074
+ "universal",
1075
+ "advanced",
1076
+ "total_tls",
1077
+ "keyless",
1078
+ "legacy_custom",
1079
+ ]),
1080
+ certificateAuthority: Schema.optional(
1081
+ Schema.Union([
1082
+ Schema.Literals(["google", "lets_encrypt", "ssl_com"]),
1083
+ Schema.Null,
1084
+ ]),
1085
+ ),
1086
+ cloudflareBranding: Schema.optional(
1087
+ Schema.Union([Schema.Boolean, Schema.Null]),
1088
+ ),
1089
+ primaryCertificate: Schema.optional(
1090
+ Schema.Union([Schema.String, Schema.Null]),
1091
+ ),
1092
+ validationErrors: Schema.optional(
1093
+ Schema.Union([
1094
+ Schema.Array(
1095
+ Schema.Struct({
1096
+ message: Schema.optional(
1097
+ Schema.Union([Schema.String, Schema.Null]),
1098
+ ),
1099
+ }),
1100
+ ),
1101
+ Schema.Null,
1102
+ ]),
1103
+ ),
1104
+ validationMethod: Schema.optional(
1105
+ Schema.Union([Schema.Literals(["txt", "http", "email"]), Schema.Null]),
1106
+ ),
1107
+ validationRecords: Schema.optional(
1108
+ Schema.Union([
1109
+ Schema.Array(
1110
+ Schema.Struct({
1111
+ emails: Schema.optional(
1112
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1113
+ ),
1114
+ httpBody: Schema.optional(
1115
+ Schema.Union([Schema.String, Schema.Null]),
1116
+ ),
1117
+ httpUrl: Schema.optional(
1118
+ Schema.Union([Schema.String, Schema.Null]),
1119
+ ),
1120
+ txtName: Schema.optional(
1121
+ Schema.Union([Schema.String, Schema.Null]),
1122
+ ),
1123
+ txtValue: Schema.optional(
1124
+ Schema.Union([Schema.String, Schema.Null]),
1125
+ ),
1126
+ }).pipe(
1127
+ Schema.encodeKeys({
1128
+ emails: "emails",
1129
+ httpBody: "http_body",
1130
+ httpUrl: "http_url",
1131
+ txtName: "txt_name",
1132
+ txtValue: "txt_value",
1133
+ }),
1134
+ ),
1135
+ ),
1136
+ Schema.Null,
1137
+ ]),
1138
+ ),
1139
+ validityDays: Schema.optional(
1140
+ Schema.Union([Schema.Literals(["14", "30", "90", "365"]), Schema.Null]),
1141
+ ),
1142
+ }).pipe(
1143
+ Schema.encodeKeys({
1144
+ id: "id",
1145
+ certificates: "certificates",
1146
+ hosts: "hosts",
1147
+ status: "status",
1148
+ type: "type",
1149
+ certificateAuthority: "certificate_authority",
1150
+ cloudflareBranding: "cloudflare_branding",
1151
+ primaryCertificate: "primary_certificate",
1152
+ validationErrors: "validation_errors",
1153
+ validationMethod: "validation_method",
1154
+ validationRecords: "validation_records",
1155
+ validityDays: "validity_days",
1156
+ }),
1157
+ ) as unknown as Schema.Schema<PatchCertificatePackResponse>;
1158
+
1159
+ export type PatchCertificatePackError = DefaultErrors;
1160
+
1161
+ export const patchCertificatePack: API.OperationMethod<
1162
+ PatchCertificatePackRequest,
1163
+ PatchCertificatePackResponse,
1164
+ PatchCertificatePackError,
1165
+ Credentials | HttpClient.HttpClient
1166
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1167
+ input: PatchCertificatePackRequest,
1168
+ output: PatchCertificatePackResponse,
1169
+ errors: [],
1170
+ }));
1171
+
1172
+ export interface DeleteCertificatePackRequest {
1173
+ certificatePackId: string;
1174
+ /** Identifier. */
1175
+ zoneId: string;
1176
+ }
1177
+
1178
+ export const DeleteCertificatePackRequest =
1179
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1180
+ certificatePackId: Schema.String.pipe(T.HttpPath("certificatePackId")),
1181
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1182
+ }).pipe(
1183
+ T.Http({
1184
+ method: "DELETE",
1185
+ path: "/zones/{zone_id}/ssl/certificate_packs/{certificatePackId}",
1186
+ }),
1187
+ ) as unknown as Schema.Schema<DeleteCertificatePackRequest>;
1188
+
1189
+ export interface DeleteCertificatePackResponse {
1190
+ /** Identifier. */
1191
+ id?: string | null;
1192
+ }
1193
+
1194
+ export const DeleteCertificatePackResponse =
1195
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1196
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1197
+ }) as unknown as Schema.Schema<DeleteCertificatePackResponse>;
1198
+
1199
+ export type DeleteCertificatePackError = DefaultErrors;
1200
+
1201
+ export const deleteCertificatePack: API.OperationMethod<
1202
+ DeleteCertificatePackRequest,
1203
+ DeleteCertificatePackResponse,
1204
+ DeleteCertificatePackError,
1205
+ Credentials | HttpClient.HttpClient
1206
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1207
+ input: DeleteCertificatePackRequest,
1208
+ output: DeleteCertificatePackResponse,
1209
+ errors: [],
1210
+ }));
1211
+
1212
+ // =============================================================================
1213
+ // CertificatePackQuota
1214
+ // =============================================================================
1215
+
1216
+ export interface GetCertificatePackQuotaRequest {
1217
+ /** Identifier. */
1218
+ zoneId: string;
1219
+ }
1220
+
1221
+ export const GetCertificatePackQuotaRequest =
1222
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1223
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1224
+ }).pipe(
1225
+ T.Http({
1226
+ method: "GET",
1227
+ path: "/zones/{zone_id}/ssl/certificate_packs/quota",
1228
+ }),
1229
+ ) as unknown as Schema.Schema<GetCertificatePackQuotaRequest>;
1230
+
1231
+ export interface GetCertificatePackQuotaResponse {
1232
+ advanced?: { allocated?: number | null; used?: number | null } | null;
1233
+ }
1234
+
1235
+ export const GetCertificatePackQuotaResponse =
1236
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1237
+ advanced: Schema.optional(
1238
+ Schema.Union([
1239
+ Schema.Struct({
1240
+ allocated: Schema.optional(
1241
+ Schema.Union([Schema.Number, Schema.Null]),
1242
+ ),
1243
+ used: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1244
+ }),
1245
+ Schema.Null,
1246
+ ]),
1247
+ ),
1248
+ }) as unknown as Schema.Schema<GetCertificatePackQuotaResponse>;
1249
+
1250
+ export type GetCertificatePackQuotaError = DefaultErrors;
1251
+
1252
+ export const getCertificatePackQuota: API.OperationMethod<
1253
+ GetCertificatePackQuotaRequest,
1254
+ GetCertificatePackQuotaResponse,
1255
+ GetCertificatePackQuotaError,
1256
+ Credentials | HttpClient.HttpClient
1257
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1258
+ input: GetCertificatePackQuotaRequest,
1259
+ output: GetCertificatePackQuotaResponse,
1260
+ errors: [],
1261
+ }));
1262
+
1263
+ // =============================================================================
1264
+ // Recommendation
1265
+ // =============================================================================
1266
+
1267
+ export interface GetRecommendationRequest {
1268
+ zoneId: string;
1269
+ }
1270
+
1271
+ export const GetRecommendationRequest =
1272
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1273
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1274
+ }).pipe(
1275
+ T.Http({ method: "GET", path: "/zones/{zone_id}/ssl/recommendation" }),
1276
+ ) as unknown as Schema.Schema<GetRecommendationRequest>;
1277
+
1278
+ export interface GetRecommendationResponse {
1279
+ id: string;
1280
+ /** Whether this setting can be updated or not. */
1281
+ editable: boolean;
1282
+ /** Last time this setting was modified. */
1283
+ modifiedOn: string;
1284
+ /** Current setting of the automatic SSL/TLS. */
1285
+ value: "auto" | "custom";
1286
+ /** Next time this zone will be scanned by the Automatic SSL/TLS. */
1287
+ nextScheduledScan?: string | null;
1288
+ }
1289
+
1290
+ export const GetRecommendationResponse =
1291
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1292
+ id: Schema.String,
1293
+ editable: Schema.Boolean,
1294
+ modifiedOn: Schema.String,
1295
+ value: Schema.Literals(["auto", "custom"]),
1296
+ nextScheduledScan: Schema.optional(
1297
+ Schema.Union([Schema.String, Schema.Null]),
1298
+ ),
1299
+ }).pipe(
1300
+ Schema.encodeKeys({
1301
+ id: "id",
1302
+ editable: "editable",
1303
+ modifiedOn: "modified_on",
1304
+ value: "value",
1305
+ nextScheduledScan: "next_scheduled_scan",
1306
+ }),
1307
+ ) as unknown as Schema.Schema<GetRecommendationResponse>;
1308
+
1309
+ export type GetRecommendationError = DefaultErrors;
1310
+
1311
+ export const getRecommendation: API.OperationMethod<
1312
+ GetRecommendationRequest,
1313
+ GetRecommendationResponse,
1314
+ GetRecommendationError,
1315
+ Credentials | HttpClient.HttpClient
1316
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1317
+ input: GetRecommendationRequest,
1318
+ output: GetRecommendationResponse,
1319
+ errors: [],
1320
+ }));
1321
+
1322
+ // =============================================================================
1323
+ // UniversalSetting
1324
+ // =============================================================================
1325
+
1326
+ export interface GetUniversalSettingRequest {
1327
+ /** Identifier. */
1328
+ zoneId: string;
1329
+ }
1330
+
1331
+ export const GetUniversalSettingRequest =
1332
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1333
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1334
+ }).pipe(
1335
+ T.Http({ method: "GET", path: "/zones/{zone_id}/ssl/universal/settings" }),
1336
+ ) as unknown as Schema.Schema<GetUniversalSettingRequest>;
1337
+
1338
+ export interface GetUniversalSettingResponse {
1339
+ /** Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advan */
1340
+ enabled?: boolean | null;
1341
+ }
1342
+
1343
+ export const GetUniversalSettingResponse =
1344
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1345
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1346
+ }) as unknown as Schema.Schema<GetUniversalSettingResponse>;
1347
+
1348
+ export type GetUniversalSettingError = DefaultErrors;
1349
+
1350
+ export const getUniversalSetting: API.OperationMethod<
1351
+ GetUniversalSettingRequest,
1352
+ GetUniversalSettingResponse,
1353
+ GetUniversalSettingError,
1354
+ Credentials | HttpClient.HttpClient
1355
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1356
+ input: GetUniversalSettingRequest,
1357
+ output: GetUniversalSettingResponse,
1358
+ errors: [],
1359
+ }));
1360
+
1361
+ export interface PatchUniversalSettingRequest {
1362
+ /** Path param: Identifier. */
1363
+ zoneId: string;
1364
+ /** Body param: Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there */
1365
+ enabled?: boolean;
1366
+ }
1367
+
1368
+ export const PatchUniversalSettingRequest =
1369
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1370
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1371
+ enabled: Schema.optional(Schema.Boolean),
1372
+ }).pipe(
1373
+ T.Http({
1374
+ method: "PATCH",
1375
+ path: "/zones/{zone_id}/ssl/universal/settings",
1376
+ }),
1377
+ ) as unknown as Schema.Schema<PatchUniversalSettingRequest>;
1378
+
1379
+ export interface PatchUniversalSettingResponse {
1380
+ /** Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advan */
1381
+ enabled?: boolean | null;
1382
+ }
1383
+
1384
+ export const PatchUniversalSettingResponse =
1385
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1386
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1387
+ }) as unknown as Schema.Schema<PatchUniversalSettingResponse>;
1388
+
1389
+ export type PatchUniversalSettingError = DefaultErrors;
1390
+
1391
+ export const patchUniversalSetting: API.OperationMethod<
1392
+ PatchUniversalSettingRequest,
1393
+ PatchUniversalSettingResponse,
1394
+ PatchUniversalSettingError,
1395
+ Credentials | HttpClient.HttpClient
1396
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1397
+ input: PatchUniversalSettingRequest,
1398
+ output: PatchUniversalSettingResponse,
1399
+ errors: [],
1400
+ }));
1401
+
1402
+ // =============================================================================
1403
+ // Verification
1404
+ // =============================================================================
1405
+
1406
+ export interface GetVerificationRequest {
1407
+ /** Path param: Identifier. */
1408
+ zoneId: string;
1409
+ /** Query param: Immediately retry SSL Verification. */
1410
+ retry?: true;
1411
+ }
1412
+
1413
+ export const GetVerificationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1414
+ {
1415
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1416
+ retry: Schema.optional(Schema.Literal(true)).pipe(T.HttpQuery("retry")),
1417
+ },
1418
+ ).pipe(
1419
+ T.Http({ method: "GET", path: "/zones/{zone_id}/ssl/verification" }),
1420
+ ) as unknown as Schema.Schema<GetVerificationRequest>;
1421
+
1422
+ export type GetVerificationResponse = {
1423
+ certificateStatus:
1424
+ | "initializing"
1425
+ | "authorizing"
1426
+ | "active"
1427
+ | "expired"
1428
+ | "issuing"
1429
+ | "timing_out"
1430
+ | "pending_deployment";
1431
+ brandCheck?: boolean | null;
1432
+ certPackUuid?: string | null;
1433
+ signature?: "ECDSAWithSHA256" | "SHA1WithRSA" | "SHA256WithRSA" | null;
1434
+ validationMethod?: "http" | "txt" | "cname" | null;
1435
+ verificationInfo?: {
1436
+ recordName?: "record_name" | "http_url" | "cname" | "txt_name" | null;
1437
+ recordTarget?:
1438
+ | "record_value"
1439
+ | "http_body"
1440
+ | "cname_target"
1441
+ | "txt_value"
1442
+ | null;
1443
+ } | null;
1444
+ verificationStatus?: boolean | null;
1445
+ verificationType?: "cname" | "meta tag" | null;
1446
+ }[];
1447
+
1448
+ export const GetVerificationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1449
+ Schema.Struct({
1450
+ certificateStatus: Schema.Literals([
1451
+ "initializing",
1452
+ "authorizing",
1453
+ "active",
1454
+ "expired",
1455
+ "issuing",
1456
+ "timing_out",
1457
+ "pending_deployment",
1458
+ ]),
1459
+ brandCheck: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1460
+ certPackUuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1461
+ signature: Schema.optional(
1462
+ Schema.Union([
1463
+ Schema.Literals(["ECDSAWithSHA256", "SHA1WithRSA", "SHA256WithRSA"]),
1464
+ Schema.Null,
1465
+ ]),
1466
+ ),
1467
+ validationMethod: Schema.optional(
1468
+ Schema.Union([Schema.Literals(["http", "txt", "cname"]), Schema.Null]),
1469
+ ),
1470
+ verificationInfo: Schema.optional(
1471
+ Schema.Union([
1472
+ Schema.Struct({
1473
+ recordName: Schema.optional(
1474
+ Schema.Union([
1475
+ Schema.Literals(["record_name", "http_url", "cname", "txt_name"]),
1476
+ Schema.Null,
1477
+ ]),
1478
+ ),
1479
+ recordTarget: Schema.optional(
1480
+ Schema.Union([
1481
+ Schema.Literals([
1482
+ "record_value",
1483
+ "http_body",
1484
+ "cname_target",
1485
+ "txt_value",
1486
+ ]),
1487
+ Schema.Null,
1488
+ ]),
1489
+ ),
1490
+ }).pipe(
1491
+ Schema.encodeKeys({
1492
+ recordName: "record_name",
1493
+ recordTarget: "record_target",
1494
+ }),
1495
+ ),
1496
+ Schema.Null,
1497
+ ]),
1498
+ ),
1499
+ verificationStatus: Schema.optional(
1500
+ Schema.Union([Schema.Boolean, Schema.Null]),
1501
+ ),
1502
+ verificationType: Schema.optional(
1503
+ Schema.Union([Schema.Literals(["cname", "meta tag"]), Schema.Null]),
1504
+ ),
1505
+ }).pipe(
1506
+ Schema.encodeKeys({
1507
+ certificateStatus: "certificate_status",
1508
+ brandCheck: "brand_check",
1509
+ certPackUuid: "cert_pack_uuid",
1510
+ signature: "signature",
1511
+ validationMethod: "validation_method",
1512
+ verificationInfo: "verification_info",
1513
+ verificationStatus: "verification_status",
1514
+ verificationType: "verification_type",
1515
+ }),
1516
+ ),
1517
+ ) as unknown as Schema.Schema<GetVerificationResponse>;
1518
+
1519
+ export type GetVerificationError = DefaultErrors;
1520
+
1521
+ export const getVerification: API.OperationMethod<
1522
+ GetVerificationRequest,
1523
+ GetVerificationResponse,
1524
+ GetVerificationError,
1525
+ Credentials | HttpClient.HttpClient
1526
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1527
+ input: GetVerificationRequest,
1528
+ output: GetVerificationResponse,
1529
+ errors: [],
1530
+ }));
1531
+
1532
+ export interface PatchVerificationRequest {
1533
+ certificatePackId: string;
1534
+ /** Path param: Identifier. */
1535
+ zoneId: string;
1536
+ /** Body param: Desired validation method. */
1537
+ validationMethod: "http" | "cname" | "txt" | "email";
1538
+ }
1539
+
1540
+ export const PatchVerificationRequest =
1541
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1542
+ certificatePackId: Schema.String.pipe(T.HttpPath("certificatePackId")),
1543
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1544
+ validationMethod: Schema.Literals(["http", "cname", "txt", "email"]),
1545
+ }).pipe(
1546
+ Schema.encodeKeys({ validationMethod: "validation_method" }),
1547
+ T.Http({
1548
+ method: "PATCH",
1549
+ path: "/zones/{zone_id}/ssl/verification/{certificatePackId}",
1550
+ }),
1551
+ ) as unknown as Schema.Schema<PatchVerificationRequest>;
1552
+
1553
+ export interface PatchVerificationResponse {
1554
+ /** Result status. */
1555
+ status?: string | null;
1556
+ /** Desired validation method. */
1557
+ validationMethod?: "http" | "cname" | "txt" | "email" | null;
1558
+ }
1559
+
1560
+ export const PatchVerificationResponse =
1561
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1562
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1563
+ validationMethod: Schema.optional(
1564
+ Schema.Union([
1565
+ Schema.Literals(["http", "cname", "txt", "email"]),
1566
+ Schema.Null,
1567
+ ]),
1568
+ ),
1569
+ }).pipe(
1570
+ Schema.encodeKeys({
1571
+ status: "status",
1572
+ validationMethod: "validation_method",
1573
+ }),
1574
+ ) as unknown as Schema.Schema<PatchVerificationResponse>;
1575
+
1576
+ export type PatchVerificationError = DefaultErrors;
1577
+
1578
+ export const patchVerification: API.OperationMethod<
1579
+ PatchVerificationRequest,
1580
+ PatchVerificationResponse,
1581
+ PatchVerificationError,
1582
+ Credentials | HttpClient.HttpClient
1583
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1584
+ input: PatchVerificationRequest,
1585
+ output: PatchVerificationResponse,
1586
+ errors: [],
1587
+ }));