@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,867 @@
1
+ /**
2
+ * Cloudflare HEALTHCHECKS API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service healthchecks
6
+ */
7
+ import * as stream from "effect/Stream";
8
+ import * as Schema from "effect/Schema";
9
+ import * as API from "../client/api.js";
10
+ import * as T from "../traits.js";
11
+ import {} from "../errors.js";
12
+ export const GetHealthcheckRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
13
+ healthcheckId: Schema.String.pipe(T.HttpPath("healthcheckId")),
14
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
15
+ }).pipe(T.Http({
16
+ method: "GET",
17
+ path: "/zones/{zone_id}/healthchecks/{healthcheckId}",
18
+ }));
19
+ export const GetHealthcheckResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
20
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
21
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
22
+ checkRegions: Schema.optional(Schema.Union([
23
+ Schema.Array(Schema.Literals([
24
+ "WNAM",
25
+ "ENAM",
26
+ "WEU",
27
+ "EEU",
28
+ "NSAM",
29
+ "SSAM",
30
+ "OC",
31
+ "ME",
32
+ "NAF",
33
+ "SAF",
34
+ "IN",
35
+ "SEAS",
36
+ "NEAS",
37
+ "ALL_REGIONS",
38
+ ])),
39
+ Schema.Null,
40
+ ])),
41
+ consecutiveFails: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
42
+ consecutiveSuccesses: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
43
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
44
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
45
+ failureReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
46
+ httpConfig: Schema.optional(Schema.Union([
47
+ Schema.Struct({
48
+ allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
49
+ expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
50
+ expectedCodes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
51
+ followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
52
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
53
+ method: Schema.optional(Schema.Union([Schema.Literals(["GET", "HEAD"]), Schema.Null])),
54
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
55
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
56
+ }).pipe(Schema.encodeKeys({
57
+ allowInsecure: "allow_insecure",
58
+ expectedBody: "expected_body",
59
+ expectedCodes: "expected_codes",
60
+ followRedirects: "follow_redirects",
61
+ header: "header",
62
+ method: "method",
63
+ path: "path",
64
+ port: "port",
65
+ })),
66
+ Schema.Null,
67
+ ])),
68
+ interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
69
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
70
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
71
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
72
+ status: Schema.optional(Schema.Union([
73
+ Schema.Literals(["unknown", "healthy", "unhealthy", "suspended"]),
74
+ Schema.Null,
75
+ ])),
76
+ suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
77
+ tcpConfig: Schema.optional(Schema.Union([
78
+ Schema.Struct({
79
+ method: Schema.optional(Schema.Union([
80
+ Schema.Literal("connection_established"),
81
+ Schema.Null,
82
+ ])),
83
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
84
+ }),
85
+ Schema.Null,
86
+ ])),
87
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
88
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
89
+ })
90
+ .pipe(Schema.encodeKeys({
91
+ id: "id",
92
+ address: "address",
93
+ checkRegions: "check_regions",
94
+ consecutiveFails: "consecutive_fails",
95
+ consecutiveSuccesses: "consecutive_successes",
96
+ createdOn: "created_on",
97
+ description: "description",
98
+ failureReason: "failure_reason",
99
+ httpConfig: "http_config",
100
+ interval: "interval",
101
+ modifiedOn: "modified_on",
102
+ name: "name",
103
+ retries: "retries",
104
+ status: "status",
105
+ suspended: "suspended",
106
+ tcpConfig: "tcp_config",
107
+ timeout: "timeout",
108
+ type: "type",
109
+ }))
110
+ .pipe(T.ResponsePath("result"));
111
+ export const getHealthcheck = API.make(() => ({
112
+ input: GetHealthcheckRequest,
113
+ output: GetHealthcheckResponse,
114
+ errors: [],
115
+ }));
116
+ export const ListHealthchecksRequest =
117
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
118
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
119
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/healthchecks" }));
120
+ export const ListHealthchecksResponse =
121
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
122
+ result: Schema.Array(Schema.Struct({
123
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
124
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
125
+ checkRegions: Schema.optional(Schema.Union([
126
+ Schema.Array(Schema.Literals([
127
+ "WNAM",
128
+ "ENAM",
129
+ "WEU",
130
+ "EEU",
131
+ "NSAM",
132
+ "SSAM",
133
+ "OC",
134
+ "ME",
135
+ "NAF",
136
+ "SAF",
137
+ "IN",
138
+ "SEAS",
139
+ "NEAS",
140
+ "ALL_REGIONS",
141
+ ])),
142
+ Schema.Null,
143
+ ])),
144
+ consecutiveFails: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
145
+ consecutiveSuccesses: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
146
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
147
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
148
+ failureReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
149
+ httpConfig: Schema.optional(Schema.Union([
150
+ Schema.Struct({
151
+ allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
152
+ expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
153
+ expectedCodes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
154
+ followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
155
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
156
+ method: Schema.optional(Schema.Union([Schema.Literals(["GET", "HEAD"]), Schema.Null])),
157
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
158
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
159
+ }).pipe(Schema.encodeKeys({
160
+ allowInsecure: "allow_insecure",
161
+ expectedBody: "expected_body",
162
+ expectedCodes: "expected_codes",
163
+ followRedirects: "follow_redirects",
164
+ header: "header",
165
+ method: "method",
166
+ path: "path",
167
+ port: "port",
168
+ })),
169
+ Schema.Null,
170
+ ])),
171
+ interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
172
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
173
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
174
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
175
+ status: Schema.optional(Schema.Union([
176
+ Schema.Literals(["unknown", "healthy", "unhealthy", "suspended"]),
177
+ Schema.Null,
178
+ ])),
179
+ suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
180
+ tcpConfig: Schema.optional(Schema.Union([
181
+ Schema.Struct({
182
+ method: Schema.optional(Schema.Union([
183
+ Schema.Literal("connection_established"),
184
+ Schema.Null,
185
+ ])),
186
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
187
+ }),
188
+ Schema.Null,
189
+ ])),
190
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
191
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
192
+ }).pipe(Schema.encodeKeys({
193
+ id: "id",
194
+ address: "address",
195
+ checkRegions: "check_regions",
196
+ consecutiveFails: "consecutive_fails",
197
+ consecutiveSuccesses: "consecutive_successes",
198
+ createdOn: "created_on",
199
+ description: "description",
200
+ failureReason: "failure_reason",
201
+ httpConfig: "http_config",
202
+ interval: "interval",
203
+ modifiedOn: "modified_on",
204
+ name: "name",
205
+ retries: "retries",
206
+ status: "status",
207
+ suspended: "suspended",
208
+ tcpConfig: "tcp_config",
209
+ timeout: "timeout",
210
+ type: "type",
211
+ }))),
212
+ resultInfo: Schema.Struct({
213
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
214
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
215
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
216
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
217
+ }).pipe(Schema.encodeKeys({
218
+ count: "count",
219
+ page: "page",
220
+ perPage: "per_page",
221
+ totalCount: "total_count",
222
+ })),
223
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
224
+ export const listHealthchecks = API.makePaginated(() => ({
225
+ input: ListHealthchecksRequest,
226
+ output: ListHealthchecksResponse,
227
+ errors: [],
228
+ pagination: {
229
+ mode: "page",
230
+ inputToken: "page",
231
+ outputToken: "resultInfo.page",
232
+ items: "result",
233
+ pageSize: "perPage",
234
+ },
235
+ }));
236
+ export const CreateHealthcheckRequest =
237
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
238
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
239
+ address: Schema.String,
240
+ name: Schema.String,
241
+ checkRegions: Schema.optional(Schema.Union([
242
+ Schema.Array(Schema.Literals([
243
+ "WNAM",
244
+ "ENAM",
245
+ "WEU",
246
+ "EEU",
247
+ "NSAM",
248
+ "SSAM",
249
+ "OC",
250
+ "ME",
251
+ "NAF",
252
+ "SAF",
253
+ "IN",
254
+ "SEAS",
255
+ "NEAS",
256
+ "ALL_REGIONS",
257
+ ])),
258
+ Schema.Null,
259
+ ])),
260
+ consecutiveFails: Schema.optional(Schema.Number),
261
+ consecutiveSuccesses: Schema.optional(Schema.Number),
262
+ description: Schema.optional(Schema.String),
263
+ httpConfig: Schema.optional(Schema.Union([
264
+ Schema.Struct({
265
+ allowInsecure: Schema.optional(Schema.Boolean),
266
+ expectedBody: Schema.optional(Schema.String),
267
+ expectedCodes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
268
+ followRedirects: Schema.optional(Schema.Boolean),
269
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
270
+ method: Schema.optional(Schema.Literals(["GET", "HEAD"])),
271
+ path: Schema.optional(Schema.String),
272
+ port: Schema.optional(Schema.Number),
273
+ }).pipe(Schema.encodeKeys({
274
+ allowInsecure: "allow_insecure",
275
+ expectedBody: "expected_body",
276
+ expectedCodes: "expected_codes",
277
+ followRedirects: "follow_redirects",
278
+ header: "header",
279
+ method: "method",
280
+ path: "path",
281
+ port: "port",
282
+ })),
283
+ Schema.Null,
284
+ ])),
285
+ interval: Schema.optional(Schema.Number),
286
+ retries: Schema.optional(Schema.Number),
287
+ suspended: Schema.optional(Schema.Boolean),
288
+ tcpConfig: Schema.optional(Schema.Union([
289
+ Schema.Struct({
290
+ method: Schema.optional(Schema.Literal("connection_established")),
291
+ port: Schema.optional(Schema.Number),
292
+ }),
293
+ Schema.Null,
294
+ ])),
295
+ timeout: Schema.optional(Schema.Number),
296
+ type: Schema.optional(Schema.String),
297
+ }).pipe(Schema.encodeKeys({
298
+ address: "address",
299
+ name: "name",
300
+ checkRegions: "check_regions",
301
+ consecutiveFails: "consecutive_fails",
302
+ consecutiveSuccesses: "consecutive_successes",
303
+ description: "description",
304
+ httpConfig: "http_config",
305
+ interval: "interval",
306
+ retries: "retries",
307
+ suspended: "suspended",
308
+ tcpConfig: "tcp_config",
309
+ timeout: "timeout",
310
+ type: "type",
311
+ }), T.Http({ method: "POST", path: "/zones/{zone_id}/healthchecks" }));
312
+ export const CreateHealthcheckResponse =
313
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
314
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
315
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
316
+ checkRegions: Schema.optional(Schema.Union([
317
+ Schema.Array(Schema.Literals([
318
+ "WNAM",
319
+ "ENAM",
320
+ "WEU",
321
+ "EEU",
322
+ "NSAM",
323
+ "SSAM",
324
+ "OC",
325
+ "ME",
326
+ "NAF",
327
+ "SAF",
328
+ "IN",
329
+ "SEAS",
330
+ "NEAS",
331
+ "ALL_REGIONS",
332
+ ])),
333
+ Schema.Null,
334
+ ])),
335
+ consecutiveFails: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
336
+ consecutiveSuccesses: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
337
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
338
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
339
+ failureReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
340
+ httpConfig: Schema.optional(Schema.Union([
341
+ Schema.Struct({
342
+ allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
343
+ expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
344
+ expectedCodes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
345
+ followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
346
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
347
+ method: Schema.optional(Schema.Union([Schema.Literals(["GET", "HEAD"]), Schema.Null])),
348
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
349
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
350
+ }).pipe(Schema.encodeKeys({
351
+ allowInsecure: "allow_insecure",
352
+ expectedBody: "expected_body",
353
+ expectedCodes: "expected_codes",
354
+ followRedirects: "follow_redirects",
355
+ header: "header",
356
+ method: "method",
357
+ path: "path",
358
+ port: "port",
359
+ })),
360
+ Schema.Null,
361
+ ])),
362
+ interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
363
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
364
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
365
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
366
+ status: Schema.optional(Schema.Union([
367
+ Schema.Literals(["unknown", "healthy", "unhealthy", "suspended"]),
368
+ Schema.Null,
369
+ ])),
370
+ suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
371
+ tcpConfig: Schema.optional(Schema.Union([
372
+ Schema.Struct({
373
+ method: Schema.optional(Schema.Union([
374
+ Schema.Literal("connection_established"),
375
+ Schema.Null,
376
+ ])),
377
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
378
+ }),
379
+ Schema.Null,
380
+ ])),
381
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
382
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
383
+ })
384
+ .pipe(Schema.encodeKeys({
385
+ id: "id",
386
+ address: "address",
387
+ checkRegions: "check_regions",
388
+ consecutiveFails: "consecutive_fails",
389
+ consecutiveSuccesses: "consecutive_successes",
390
+ createdOn: "created_on",
391
+ description: "description",
392
+ failureReason: "failure_reason",
393
+ httpConfig: "http_config",
394
+ interval: "interval",
395
+ modifiedOn: "modified_on",
396
+ name: "name",
397
+ retries: "retries",
398
+ status: "status",
399
+ suspended: "suspended",
400
+ tcpConfig: "tcp_config",
401
+ timeout: "timeout",
402
+ type: "type",
403
+ }))
404
+ .pipe(T.ResponsePath("result"));
405
+ export const createHealthcheck = API.make(() => ({
406
+ input: CreateHealthcheckRequest,
407
+ output: CreateHealthcheckResponse,
408
+ errors: [],
409
+ }));
410
+ export const UpdateHealthcheckRequest =
411
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
412
+ healthcheckId: Schema.String.pipe(T.HttpPath("healthcheckId")),
413
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
414
+ address: Schema.String,
415
+ name: Schema.String,
416
+ checkRegions: Schema.optional(Schema.Union([
417
+ Schema.Array(Schema.Literals([
418
+ "WNAM",
419
+ "ENAM",
420
+ "WEU",
421
+ "EEU",
422
+ "NSAM",
423
+ "SSAM",
424
+ "OC",
425
+ "ME",
426
+ "NAF",
427
+ "SAF",
428
+ "IN",
429
+ "SEAS",
430
+ "NEAS",
431
+ "ALL_REGIONS",
432
+ ])),
433
+ Schema.Null,
434
+ ])),
435
+ consecutiveFails: Schema.optional(Schema.Number),
436
+ consecutiveSuccesses: Schema.optional(Schema.Number),
437
+ description: Schema.optional(Schema.String),
438
+ httpConfig: Schema.optional(Schema.Union([
439
+ Schema.Struct({
440
+ allowInsecure: Schema.optional(Schema.Boolean),
441
+ expectedBody: Schema.optional(Schema.String),
442
+ expectedCodes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
443
+ followRedirects: Schema.optional(Schema.Boolean),
444
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
445
+ method: Schema.optional(Schema.Literals(["GET", "HEAD"])),
446
+ path: Schema.optional(Schema.String),
447
+ port: Schema.optional(Schema.Number),
448
+ }).pipe(Schema.encodeKeys({
449
+ allowInsecure: "allow_insecure",
450
+ expectedBody: "expected_body",
451
+ expectedCodes: "expected_codes",
452
+ followRedirects: "follow_redirects",
453
+ header: "header",
454
+ method: "method",
455
+ path: "path",
456
+ port: "port",
457
+ })),
458
+ Schema.Null,
459
+ ])),
460
+ interval: Schema.optional(Schema.Number),
461
+ retries: Schema.optional(Schema.Number),
462
+ suspended: Schema.optional(Schema.Boolean),
463
+ tcpConfig: Schema.optional(Schema.Union([
464
+ Schema.Struct({
465
+ method: Schema.optional(Schema.Literal("connection_established")),
466
+ port: Schema.optional(Schema.Number),
467
+ }),
468
+ Schema.Null,
469
+ ])),
470
+ timeout: Schema.optional(Schema.Number),
471
+ type: Schema.optional(Schema.String),
472
+ }).pipe(Schema.encodeKeys({
473
+ address: "address",
474
+ name: "name",
475
+ checkRegions: "check_regions",
476
+ consecutiveFails: "consecutive_fails",
477
+ consecutiveSuccesses: "consecutive_successes",
478
+ description: "description",
479
+ httpConfig: "http_config",
480
+ interval: "interval",
481
+ retries: "retries",
482
+ suspended: "suspended",
483
+ tcpConfig: "tcp_config",
484
+ timeout: "timeout",
485
+ type: "type",
486
+ }), T.Http({
487
+ method: "PUT",
488
+ path: "/zones/{zone_id}/healthchecks/{healthcheckId}",
489
+ }));
490
+ export const UpdateHealthcheckResponse =
491
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
492
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
493
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
494
+ checkRegions: Schema.optional(Schema.Union([
495
+ Schema.Array(Schema.Literals([
496
+ "WNAM",
497
+ "ENAM",
498
+ "WEU",
499
+ "EEU",
500
+ "NSAM",
501
+ "SSAM",
502
+ "OC",
503
+ "ME",
504
+ "NAF",
505
+ "SAF",
506
+ "IN",
507
+ "SEAS",
508
+ "NEAS",
509
+ "ALL_REGIONS",
510
+ ])),
511
+ Schema.Null,
512
+ ])),
513
+ consecutiveFails: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
514
+ consecutiveSuccesses: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
515
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
516
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
517
+ failureReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
518
+ httpConfig: Schema.optional(Schema.Union([
519
+ Schema.Struct({
520
+ allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
521
+ expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
522
+ expectedCodes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
523
+ followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
524
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
525
+ method: Schema.optional(Schema.Union([Schema.Literals(["GET", "HEAD"]), Schema.Null])),
526
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
527
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
528
+ }).pipe(Schema.encodeKeys({
529
+ allowInsecure: "allow_insecure",
530
+ expectedBody: "expected_body",
531
+ expectedCodes: "expected_codes",
532
+ followRedirects: "follow_redirects",
533
+ header: "header",
534
+ method: "method",
535
+ path: "path",
536
+ port: "port",
537
+ })),
538
+ Schema.Null,
539
+ ])),
540
+ interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
541
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
542
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
543
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
544
+ status: Schema.optional(Schema.Union([
545
+ Schema.Literals(["unknown", "healthy", "unhealthy", "suspended"]),
546
+ Schema.Null,
547
+ ])),
548
+ suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
549
+ tcpConfig: Schema.optional(Schema.Union([
550
+ Schema.Struct({
551
+ method: Schema.optional(Schema.Union([
552
+ Schema.Literal("connection_established"),
553
+ Schema.Null,
554
+ ])),
555
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
556
+ }),
557
+ Schema.Null,
558
+ ])),
559
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
560
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
561
+ })
562
+ .pipe(Schema.encodeKeys({
563
+ id: "id",
564
+ address: "address",
565
+ checkRegions: "check_regions",
566
+ consecutiveFails: "consecutive_fails",
567
+ consecutiveSuccesses: "consecutive_successes",
568
+ createdOn: "created_on",
569
+ description: "description",
570
+ failureReason: "failure_reason",
571
+ httpConfig: "http_config",
572
+ interval: "interval",
573
+ modifiedOn: "modified_on",
574
+ name: "name",
575
+ retries: "retries",
576
+ status: "status",
577
+ suspended: "suspended",
578
+ tcpConfig: "tcp_config",
579
+ timeout: "timeout",
580
+ type: "type",
581
+ }))
582
+ .pipe(T.ResponsePath("result"));
583
+ export const updateHealthcheck = API.make(() => ({
584
+ input: UpdateHealthcheckRequest,
585
+ output: UpdateHealthcheckResponse,
586
+ errors: [],
587
+ }));
588
+ export const PatchHealthcheckRequest =
589
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
590
+ healthcheckId: Schema.String.pipe(T.HttpPath("healthcheckId")),
591
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
592
+ address: Schema.String,
593
+ name: Schema.String,
594
+ checkRegions: Schema.optional(Schema.Union([
595
+ Schema.Array(Schema.Literals([
596
+ "WNAM",
597
+ "ENAM",
598
+ "WEU",
599
+ "EEU",
600
+ "NSAM",
601
+ "SSAM",
602
+ "OC",
603
+ "ME",
604
+ "NAF",
605
+ "SAF",
606
+ "IN",
607
+ "SEAS",
608
+ "NEAS",
609
+ "ALL_REGIONS",
610
+ ])),
611
+ Schema.Null,
612
+ ])),
613
+ consecutiveFails: Schema.optional(Schema.Number),
614
+ consecutiveSuccesses: Schema.optional(Schema.Number),
615
+ description: Schema.optional(Schema.String),
616
+ httpConfig: Schema.optional(Schema.Union([
617
+ Schema.Struct({
618
+ allowInsecure: Schema.optional(Schema.Boolean),
619
+ expectedBody: Schema.optional(Schema.String),
620
+ expectedCodes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
621
+ followRedirects: Schema.optional(Schema.Boolean),
622
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
623
+ method: Schema.optional(Schema.Literals(["GET", "HEAD"])),
624
+ path: Schema.optional(Schema.String),
625
+ port: Schema.optional(Schema.Number),
626
+ }).pipe(Schema.encodeKeys({
627
+ allowInsecure: "allow_insecure",
628
+ expectedBody: "expected_body",
629
+ expectedCodes: "expected_codes",
630
+ followRedirects: "follow_redirects",
631
+ header: "header",
632
+ method: "method",
633
+ path: "path",
634
+ port: "port",
635
+ })),
636
+ Schema.Null,
637
+ ])),
638
+ interval: Schema.optional(Schema.Number),
639
+ retries: Schema.optional(Schema.Number),
640
+ suspended: Schema.optional(Schema.Boolean),
641
+ tcpConfig: Schema.optional(Schema.Union([
642
+ Schema.Struct({
643
+ method: Schema.optional(Schema.Literal("connection_established")),
644
+ port: Schema.optional(Schema.Number),
645
+ }),
646
+ Schema.Null,
647
+ ])),
648
+ timeout: Schema.optional(Schema.Number),
649
+ type: Schema.optional(Schema.String),
650
+ }).pipe(Schema.encodeKeys({
651
+ address: "address",
652
+ name: "name",
653
+ checkRegions: "check_regions",
654
+ consecutiveFails: "consecutive_fails",
655
+ consecutiveSuccesses: "consecutive_successes",
656
+ description: "description",
657
+ httpConfig: "http_config",
658
+ interval: "interval",
659
+ retries: "retries",
660
+ suspended: "suspended",
661
+ tcpConfig: "tcp_config",
662
+ timeout: "timeout",
663
+ type: "type",
664
+ }), T.Http({
665
+ method: "PATCH",
666
+ path: "/zones/{zone_id}/healthchecks/{healthcheckId}",
667
+ }));
668
+ export const PatchHealthcheckResponse =
669
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
670
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
671
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
672
+ checkRegions: Schema.optional(Schema.Union([
673
+ Schema.Array(Schema.Literals([
674
+ "WNAM",
675
+ "ENAM",
676
+ "WEU",
677
+ "EEU",
678
+ "NSAM",
679
+ "SSAM",
680
+ "OC",
681
+ "ME",
682
+ "NAF",
683
+ "SAF",
684
+ "IN",
685
+ "SEAS",
686
+ "NEAS",
687
+ "ALL_REGIONS",
688
+ ])),
689
+ Schema.Null,
690
+ ])),
691
+ consecutiveFails: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
692
+ consecutiveSuccesses: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
693
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
694
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
695
+ failureReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
696
+ httpConfig: Schema.optional(Schema.Union([
697
+ Schema.Struct({
698
+ allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
699
+ expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
700
+ expectedCodes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
701
+ followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
702
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
703
+ method: Schema.optional(Schema.Union([Schema.Literals(["GET", "HEAD"]), Schema.Null])),
704
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
705
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
706
+ }).pipe(Schema.encodeKeys({
707
+ allowInsecure: "allow_insecure",
708
+ expectedBody: "expected_body",
709
+ expectedCodes: "expected_codes",
710
+ followRedirects: "follow_redirects",
711
+ header: "header",
712
+ method: "method",
713
+ path: "path",
714
+ port: "port",
715
+ })),
716
+ Schema.Null,
717
+ ])),
718
+ interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
719
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
720
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
721
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
722
+ status: Schema.optional(Schema.Union([
723
+ Schema.Literals(["unknown", "healthy", "unhealthy", "suspended"]),
724
+ Schema.Null,
725
+ ])),
726
+ suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
727
+ tcpConfig: Schema.optional(Schema.Union([
728
+ Schema.Struct({
729
+ method: Schema.optional(Schema.Union([
730
+ Schema.Literal("connection_established"),
731
+ Schema.Null,
732
+ ])),
733
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
734
+ }),
735
+ Schema.Null,
736
+ ])),
737
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
738
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
739
+ })
740
+ .pipe(Schema.encodeKeys({
741
+ id: "id",
742
+ address: "address",
743
+ checkRegions: "check_regions",
744
+ consecutiveFails: "consecutive_fails",
745
+ consecutiveSuccesses: "consecutive_successes",
746
+ createdOn: "created_on",
747
+ description: "description",
748
+ failureReason: "failure_reason",
749
+ httpConfig: "http_config",
750
+ interval: "interval",
751
+ modifiedOn: "modified_on",
752
+ name: "name",
753
+ retries: "retries",
754
+ status: "status",
755
+ suspended: "suspended",
756
+ tcpConfig: "tcp_config",
757
+ timeout: "timeout",
758
+ type: "type",
759
+ }))
760
+ .pipe(T.ResponsePath("result"));
761
+ export const patchHealthcheck = API.make(() => ({
762
+ input: PatchHealthcheckRequest,
763
+ output: PatchHealthcheckResponse,
764
+ errors: [],
765
+ }));
766
+ export const DeleteHealthcheckRequest =
767
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
768
+ healthcheckId: Schema.String.pipe(T.HttpPath("healthcheckId")),
769
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
770
+ }).pipe(T.Http({
771
+ method: "DELETE",
772
+ path: "/zones/{zone_id}/healthchecks/{healthcheckId}",
773
+ }));
774
+ export const DeleteHealthcheckResponse =
775
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
776
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
777
+ }).pipe(T.ResponsePath("result"));
778
+ export const deleteHealthcheck = API.make(() => ({
779
+ input: DeleteHealthcheckRequest,
780
+ output: DeleteHealthcheckResponse,
781
+ errors: [],
782
+ }));
783
+ export const GetPreviewRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
784
+ healthcheckId: Schema.String.pipe(T.HttpPath("healthcheckId")),
785
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
786
+ }).pipe(T.Http({
787
+ method: "GET",
788
+ path: "/zones/{zone_id}/healthchecks/preview/{healthcheckId}",
789
+ }));
790
+ export const GetPreviewResponse =
791
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
792
+ export const getPreview = API.make(() => ({
793
+ input: GetPreviewRequest,
794
+ output: GetPreviewResponse,
795
+ errors: [],
796
+ }));
797
+ export const CreatePreviewRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
798
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
799
+ address: Schema.String,
800
+ name: Schema.String,
801
+ checkRegions: Schema.optional(Schema.Union([
802
+ Schema.Array(Schema.Literals([
803
+ "WNAM",
804
+ "ENAM",
805
+ "WEU",
806
+ "EEU",
807
+ "NSAM",
808
+ "SSAM",
809
+ "OC",
810
+ "ME",
811
+ "NAF",
812
+ "SAF",
813
+ "IN",
814
+ "SEAS",
815
+ "NEAS",
816
+ "ALL_REGIONS",
817
+ ])),
818
+ Schema.Null,
819
+ ])),
820
+ consecutiveFails: Schema.optional(Schema.Number),
821
+ consecutiveSuccesses: Schema.optional(Schema.Number),
822
+ description: Schema.optional(Schema.String),
823
+ httpConfig: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
824
+ interval: Schema.optional(Schema.Number),
825
+ retries: Schema.optional(Schema.Number),
826
+ suspended: Schema.optional(Schema.Boolean),
827
+ tcpConfig: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
828
+ timeout: Schema.optional(Schema.Number),
829
+ type: Schema.optional(Schema.String),
830
+ }).pipe(Schema.encodeKeys({
831
+ address: "address",
832
+ name: "name",
833
+ checkRegions: "check_regions",
834
+ consecutiveFails: "consecutive_fails",
835
+ consecutiveSuccesses: "consecutive_successes",
836
+ description: "description",
837
+ httpConfig: "http_config",
838
+ interval: "interval",
839
+ retries: "retries",
840
+ suspended: "suspended",
841
+ tcpConfig: "tcp_config",
842
+ timeout: "timeout",
843
+ type: "type",
844
+ }), T.Http({ method: "POST", path: "/zones/{zone_id}/healthchecks/preview" }));
845
+ export const CreatePreviewResponse =
846
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
847
+ export const createPreview = API.make(() => ({
848
+ input: CreatePreviewRequest,
849
+ output: CreatePreviewResponse,
850
+ errors: [],
851
+ }));
852
+ export const DeletePreviewRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
853
+ healthcheckId: Schema.String.pipe(T.HttpPath("healthcheckId")),
854
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
855
+ }).pipe(T.Http({
856
+ method: "DELETE",
857
+ path: "/zones/{zone_id}/healthchecks/preview/{healthcheckId}",
858
+ }));
859
+ export const DeletePreviewResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
860
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
861
+ }).pipe(T.ResponsePath("result"));
862
+ export const deletePreview = API.make(() => ({
863
+ input: DeletePreviewRequest,
864
+ output: DeletePreviewResponse,
865
+ errors: [],
866
+ }));
867
+ //# sourceMappingURL=healthchecks.js.map