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