@distilled.cloud/cloudflare 0.0.0 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/README.md +41 -7
  2. package/lib/auth.d.ts +13 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +12 -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 +14 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +245 -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 +14 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +17 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +37 -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/services/abuse-reports.d.ts +224 -0
  39. package/lib/services/abuse-reports.d.ts.map +1 -0
  40. package/lib/services/abuse-reports.js +353 -0
  41. package/lib/services/abuse-reports.js.map +1 -0
  42. package/lib/services/accounts.d.ts +682 -0
  43. package/lib/services/accounts.d.ts.map +1 -0
  44. package/lib/services/accounts.js +805 -0
  45. package/lib/services/accounts.js.map +1 -0
  46. package/lib/services/acm.d.ts +73 -0
  47. package/lib/services/acm.d.ts.map +1 -0
  48. package/lib/services/acm.js +76 -0
  49. package/lib/services/acm.js.map +1 -0
  50. package/lib/services/addressing.d.ts +1208 -0
  51. package/lib/services/addressing.d.ts.map +1 -0
  52. package/lib/services/addressing.js +1776 -0
  53. package/lib/services/addressing.js.map +1 -0
  54. package/lib/services/ai-gateway.d.ts +956 -0
  55. package/lib/services/ai-gateway.d.ts.map +1 -0
  56. package/lib/services/ai-gateway.js +1706 -0
  57. package/lib/services/ai-gateway.js.map +1 -0
  58. package/lib/services/ai.d.ts +243 -0
  59. package/lib/services/ai.d.ts.map +1 -0
  60. package/lib/services/ai.js +299 -0
  61. package/lib/services/ai.js.map +1 -0
  62. package/lib/services/aisearch.d.ts +915 -0
  63. package/lib/services/aisearch.d.ts.map +1 -0
  64. package/lib/services/aisearch.js +2425 -0
  65. package/lib/services/aisearch.js.map +1 -0
  66. package/lib/services/alerting.d.ts +718 -0
  67. package/lib/services/alerting.d.ts.map +1 -0
  68. package/lib/services/alerting.js +1388 -0
  69. package/lib/services/alerting.js.map +1 -0
  70. package/lib/services/api-gateway.d.ts +830 -0
  71. package/lib/services/api-gateway.d.ts.map +1 -0
  72. package/lib/services/api-gateway.js +1548 -0
  73. package/lib/services/api-gateway.js.map +1 -0
  74. package/lib/services/argo.d.ts +101 -0
  75. package/lib/services/argo.d.ts.map +1 -0
  76. package/lib/services/argo.js +105 -0
  77. package/lib/services/argo.js.map +1 -0
  78. package/lib/services/audit-logs.d.ts +46 -0
  79. package/lib/services/audit-logs.d.ts.map +1 -0
  80. package/lib/services/audit-logs.js +37 -0
  81. package/lib/services/audit-logs.js.map +1 -0
  82. package/lib/services/billing.d.ts +62 -0
  83. package/lib/services/billing.d.ts.map +1 -0
  84. package/lib/services/billing.js +100 -0
  85. package/lib/services/billing.js.map +1 -0
  86. package/lib/services/bot-management.d.ts +124 -0
  87. package/lib/services/bot-management.d.ts.map +1 -0
  88. package/lib/services/bot-management.js +262 -0
  89. package/lib/services/bot-management.js.map +1 -0
  90. package/lib/services/botnet-feed.d.ts +65 -0
  91. package/lib/services/botnet-feed.d.ts.map +1 -0
  92. package/lib/services/botnet-feed.js +84 -0
  93. package/lib/services/botnet-feed.js.map +1 -0
  94. package/lib/services/brand-protection.d.ts +188 -0
  95. package/lib/services/brand-protection.d.ts.map +1 -0
  96. package/lib/services/brand-protection.js +214 -0
  97. package/lib/services/brand-protection.js.map +1 -0
  98. package/lib/services/browser-rendering.d.ts +857 -0
  99. package/lib/services/browser-rendering.d.ts.map +1 -0
  100. package/lib/services/browser-rendering.js +1141 -0
  101. package/lib/services/browser-rendering.js.map +1 -0
  102. package/lib/services/cache.d.ts +287 -0
  103. package/lib/services/cache.d.ts.map +1 -0
  104. package/lib/services/cache.js +330 -0
  105. package/lib/services/cache.js.map +1 -0
  106. package/lib/services/calls.d.ts +202 -0
  107. package/lib/services/calls.d.ts.map +1 -0
  108. package/lib/services/calls.js +175 -0
  109. package/lib/services/calls.js.map +1 -0
  110. package/lib/services/certificate-authorities.d.ts +40 -0
  111. package/lib/services/certificate-authorities.d.ts.map +1 -0
  112. package/lib/services/certificate-authorities.js +49 -0
  113. package/lib/services/certificate-authorities.js.map +1 -0
  114. package/lib/services/client-certificates.d.ts +254 -0
  115. package/lib/services/client-certificates.d.ts.map +1 -0
  116. package/lib/services/client-certificates.js +350 -0
  117. package/lib/services/client-certificates.js.map +1 -0
  118. package/lib/services/cloud-connector.d.ts +59 -0
  119. package/lib/services/cloud-connector.d.ts.map +1 -0
  120. package/lib/services/cloud-connector.js +84 -0
  121. package/lib/services/cloud-connector.js.map +1 -0
  122. package/lib/services/cloudforce-one.d.ts +1318 -0
  123. package/lib/services/cloudforce-one.d.ts.map +1 -0
  124. package/lib/services/cloudforce-one.js +1684 -0
  125. package/lib/services/cloudforce-one.js.map +1 -0
  126. package/lib/services/connectivity.d.ts +248 -0
  127. package/lib/services/connectivity.d.ts.map +1 -0
  128. package/lib/services/connectivity.js +377 -0
  129. package/lib/services/connectivity.js.map +1 -0
  130. package/lib/services/content-scanning.d.ts +131 -0
  131. package/lib/services/content-scanning.d.ts.map +1 -0
  132. package/lib/services/content-scanning.js +156 -0
  133. package/lib/services/content-scanning.js.map +1 -0
  134. package/lib/services/custom-certificates.d.ts +211 -0
  135. package/lib/services/custom-certificates.d.ts.map +1 -0
  136. package/lib/services/custom-certificates.js +309 -0
  137. package/lib/services/custom-certificates.js.map +1 -0
  138. package/lib/services/custom-hostnames.d.ts +525 -0
  139. package/lib/services/custom-hostnames.d.ts.map +1 -0
  140. package/lib/services/custom-hostnames.js +1164 -0
  141. package/lib/services/custom-hostnames.js.map +1 -0
  142. package/lib/services/custom-nameservers.d.ts +67 -0
  143. package/lib/services/custom-nameservers.d.ts.map +1 -0
  144. package/lib/services/custom-nameservers.js +80 -0
  145. package/lib/services/custom-nameservers.js.map +1 -0
  146. package/lib/services/custom-pages.d.ts +74 -0
  147. package/lib/services/custom-pages.d.ts.map +1 -0
  148. package/lib/services/custom-pages.js +125 -0
  149. package/lib/services/custom-pages.js.map +1 -0
  150. package/lib/services/d1.d.ts +326 -0
  151. package/lib/services/d1.d.ts.map +1 -0
  152. package/lib/services/d1.js +448 -0
  153. package/lib/services/d1.js.map +1 -0
  154. package/lib/services/dcv-delegation.d.ts +24 -0
  155. package/lib/services/dcv-delegation.d.ts.map +1 -0
  156. package/lib/services/dcv-delegation.js +24 -0
  157. package/lib/services/dcv-delegation.js.map +1 -0
  158. package/lib/services/diagnostics.d.ts +175 -0
  159. package/lib/services/diagnostics.d.ts.map +1 -0
  160. package/lib/services/diagnostics.js +273 -0
  161. package/lib/services/diagnostics.js.map +1 -0
  162. package/lib/services/dns-firewall.d.ts +288 -0
  163. package/lib/services/dns-firewall.d.ts.map +1 -0
  164. package/lib/services/dns-firewall.js +373 -0
  165. package/lib/services/dns-firewall.js.map +1 -0
  166. package/lib/services/dns.d.ts +2946 -0
  167. package/lib/services/dns.d.ts.map +1 -0
  168. package/lib/services/dns.js +4511 -0
  169. package/lib/services/dns.js.map +1 -0
  170. package/lib/services/durable-objects.d.ts +61 -0
  171. package/lib/services/durable-objects.d.ts.map +1 -0
  172. package/lib/services/durable-objects.js +66 -0
  173. package/lib/services/durable-objects.js.map +1 -0
  174. package/lib/services/email-routing.d.ts +542 -0
  175. package/lib/services/email-routing.d.ts.map +1 -0
  176. package/lib/services/email-routing.js +662 -0
  177. package/lib/services/email-routing.js.map +1 -0
  178. package/lib/services/email-security.d.ts +1131 -0
  179. package/lib/services/email-security.d.ts.map +1 -0
  180. package/lib/services/email-security.js +2065 -0
  181. package/lib/services/email-security.js.map +1 -0
  182. package/lib/services/filters.d.ts +157 -0
  183. package/lib/services/filters.d.ts.map +1 -0
  184. package/lib/services/filters.js +135 -0
  185. package/lib/services/filters.js.map +1 -0
  186. package/lib/services/firewall.d.ts +1080 -0
  187. package/lib/services/firewall.d.ts.map +1 -0
  188. package/lib/services/firewall.js +1881 -0
  189. package/lib/services/firewall.js.map +1 -0
  190. package/lib/services/healthchecks.d.ts +464 -0
  191. package/lib/services/healthchecks.d.ts.map +1 -0
  192. package/lib/services/healthchecks.js +838 -0
  193. package/lib/services/healthchecks.js.map +1 -0
  194. package/lib/services/hostnames.d.ts +74 -0
  195. package/lib/services/hostnames.d.ts.map +1 -0
  196. package/lib/services/hostnames.js +100 -0
  197. package/lib/services/hostnames.js.map +1 -0
  198. package/lib/services/hyperdrive.d.ts +203 -0
  199. package/lib/services/hyperdrive.d.ts.map +1 -0
  200. package/lib/services/hyperdrive.js +299 -0
  201. package/lib/services/hyperdrive.js.map +1 -0
  202. package/lib/services/iam.d.ts +554 -0
  203. package/lib/services/iam.d.ts.map +1 -0
  204. package/lib/services/iam.js +743 -0
  205. package/lib/services/iam.js.map +1 -0
  206. package/lib/services/images.d.ts +403 -0
  207. package/lib/services/images.d.ts.map +1 -0
  208. package/lib/services/images.js +417 -0
  209. package/lib/services/images.js.map +1 -0
  210. package/lib/services/intel.d.ts +768 -0
  211. package/lib/services/intel.d.ts.map +1 -0
  212. package/lib/services/intel.js +1179 -0
  213. package/lib/services/intel.js.map +1 -0
  214. package/lib/services/ips.d.ts +28 -0
  215. package/lib/services/ips.d.ts.map +1 -0
  216. package/lib/services/ips.js +39 -0
  217. package/lib/services/ips.js.map +1 -0
  218. package/lib/services/keyless-certificates.d.ts +177 -0
  219. package/lib/services/keyless-certificates.d.ts.map +1 -0
  220. package/lib/services/keyless-certificates.js +216 -0
  221. package/lib/services/keyless-certificates.js.map +1 -0
  222. package/lib/services/kv.d.ts +339 -0
  223. package/lib/services/kv.d.ts.map +1 -0
  224. package/lib/services/kv.js +402 -0
  225. package/lib/services/kv.js.map +1 -0
  226. package/lib/services/leaked-credential-checks.d.ts +119 -0
  227. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  228. package/lib/services/leaked-credential-checks.js +130 -0
  229. package/lib/services/leaked-credential-checks.js.map +1 -0
  230. package/lib/services/load-balancers.d.ts +1767 -0
  231. package/lib/services/load-balancers.d.ts.map +1 -0
  232. package/lib/services/load-balancers.js +3068 -0
  233. package/lib/services/load-balancers.js.map +1 -0
  234. package/lib/services/logpush.d.ts +401 -0
  235. package/lib/services/logpush.d.ts.map +1 -0
  236. package/lib/services/logpush.js +724 -0
  237. package/lib/services/logpush.js.map +1 -0
  238. package/lib/services/logs.d.ts +125 -0
  239. package/lib/services/logs.d.ts.map +1 -0
  240. package/lib/services/logs.js +145 -0
  241. package/lib/services/logs.js.map +1 -0
  242. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  243. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  244. package/lib/services/magic-cloud-networking.js +5205 -0
  245. package/lib/services/magic-cloud-networking.js.map +1 -0
  246. package/lib/services/magic-network-monitoring.d.ts +379 -0
  247. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  248. package/lib/services/magic-network-monitoring.js +535 -0
  249. package/lib/services/magic-network-monitoring.js.map +1 -0
  250. package/lib/services/magic-transit.d.ts +3650 -0
  251. package/lib/services/magic-transit.d.ts.map +1 -0
  252. package/lib/services/magic-transit.js +6120 -0
  253. package/lib/services/magic-transit.js.map +1 -0
  254. package/lib/services/managed-transforms.d.ts +79 -0
  255. package/lib/services/managed-transforms.d.ts.map +1 -0
  256. package/lib/services/managed-transforms.js +107 -0
  257. package/lib/services/managed-transforms.js.map +1 -0
  258. package/lib/services/memberships.d.ts +172 -0
  259. package/lib/services/memberships.d.ts.map +1 -0
  260. package/lib/services/memberships.js +282 -0
  261. package/lib/services/memberships.js.map +1 -0
  262. package/lib/services/mtls-certificates.d.ts +140 -0
  263. package/lib/services/mtls-certificates.d.ts.map +1 -0
  264. package/lib/services/mtls-certificates.js +173 -0
  265. package/lib/services/mtls-certificates.js.map +1 -0
  266. package/lib/services/network-interconnects.d.ts +410 -0
  267. package/lib/services/network-interconnects.d.ts.map +1 -0
  268. package/lib/services/network-interconnects.js +583 -0
  269. package/lib/services/network-interconnects.js.map +1 -0
  270. package/lib/services/organizations.d.ts +201 -0
  271. package/lib/services/organizations.d.ts.map +1 -0
  272. package/lib/services/organizations.js +355 -0
  273. package/lib/services/organizations.js.map +1 -0
  274. package/lib/services/origin-ca-certificates.d.ts +99 -0
  275. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  276. package/lib/services/origin-ca-certificates.js +156 -0
  277. package/lib/services/origin-ca-certificates.js.map +1 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  279. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  280. package/lib/services/origin-post-quantum-encryption.js +60 -0
  281. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  282. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  283. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  284. package/lib/services/origin-tls-client-auth.js +401 -0
  285. package/lib/services/origin-tls-client-auth.js.map +1 -0
  286. package/lib/services/page-rules.d.ts +773 -0
  287. package/lib/services/page-rules.d.ts.map +1 -0
  288. package/lib/services/page-rules.js +1365 -0
  289. package/lib/services/page-rules.js.map +1 -0
  290. package/lib/services/page-shield.d.ts +426 -0
  291. package/lib/services/page-shield.d.ts.map +1 -0
  292. package/lib/services/page-shield.js +484 -0
  293. package/lib/services/page-shield.js.map +1 -0
  294. package/lib/services/pages.d.ts +1654 -0
  295. package/lib/services/pages.d.ts.map +1 -0
  296. package/lib/services/pages.js +2954 -0
  297. package/lib/services/pages.js.map +1 -0
  298. package/lib/services/pipelines.d.ts +1461 -0
  299. package/lib/services/pipelines.d.ts.map +1 -0
  300. package/lib/services/pipelines.js +2912 -0
  301. package/lib/services/pipelines.js.map +1 -0
  302. package/lib/services/queues.d.ts +807 -0
  303. package/lib/services/queues.d.ts.map +1 -0
  304. package/lib/services/queues.js +1194 -0
  305. package/lib/services/queues.js.map +1 -0
  306. package/lib/services/r2-data-catalog.d.ts +341 -0
  307. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  308. package/lib/services/r2-data-catalog.js +499 -0
  309. package/lib/services/r2-data-catalog.js.map +1 -0
  310. package/lib/services/r2.d.ts +1041 -0
  311. package/lib/services/r2.d.ts.map +1 -0
  312. package/lib/services/r2.js +1384 -0
  313. package/lib/services/r2.js.map +1 -0
  314. package/lib/services/radar.d.ts +9276 -0
  315. package/lib/services/radar.d.ts.map +1 -0
  316. package/lib/services/radar.js +20491 -0
  317. package/lib/services/radar.js.map +1 -0
  318. package/lib/services/rate-limits.d.ts +315 -0
  319. package/lib/services/rate-limits.d.ts.map +1 -0
  320. package/lib/services/rate-limits.js +521 -0
  321. package/lib/services/rate-limits.js.map +1 -0
  322. package/lib/services/realtime-kit.d.ts +2728 -0
  323. package/lib/services/realtime-kit.d.ts.map +1 -0
  324. package/lib/services/realtime-kit.js +5401 -0
  325. package/lib/services/realtime-kit.js.map +1 -0
  326. package/lib/services/registrar.d.ts +81 -0
  327. package/lib/services/registrar.d.ts.map +1 -0
  328. package/lib/services/registrar.js +154 -0
  329. package/lib/services/registrar.js.map +1 -0
  330. package/lib/services/request-tracers.d.ts +61 -0
  331. package/lib/services/request-tracers.d.ts.map +1 -0
  332. package/lib/services/request-tracers.js +82 -0
  333. package/lib/services/request-tracers.js.map +1 -0
  334. package/lib/services/resource-sharing.d.ts +540 -0
  335. package/lib/services/resource-sharing.d.ts.map +1 -0
  336. package/lib/services/resource-sharing.js +846 -0
  337. package/lib/services/resource-sharing.js.map +1 -0
  338. package/lib/services/rules.d.ts +297 -0
  339. package/lib/services/rules.d.ts.map +1 -0
  340. package/lib/services/rules.js +396 -0
  341. package/lib/services/rules.js.map +1 -0
  342. package/lib/services/rulesets.d.ts +3300 -0
  343. package/lib/services/rulesets.d.ts.map +1 -0
  344. package/lib/services/rulesets.js +7852 -0
  345. package/lib/services/rulesets.js.map +1 -0
  346. package/lib/services/rum.d.ts +289 -0
  347. package/lib/services/rum.d.ts.map +1 -0
  348. package/lib/services/rum.js +409 -0
  349. package/lib/services/rum.js.map +1 -0
  350. package/lib/services/schema-validation.d.ts +240 -0
  351. package/lib/services/schema-validation.d.ts.map +1 -0
  352. package/lib/services/schema-validation.js +306 -0
  353. package/lib/services/schema-validation.js.map +1 -0
  354. package/lib/services/secrets-store.d.ts +321 -0
  355. package/lib/services/secrets-store.d.ts.map +1 -0
  356. package/lib/services/secrets-store.js +385 -0
  357. package/lib/services/secrets-store.js.map +1 -0
  358. package/lib/services/security-center.d.ts +102 -0
  359. package/lib/services/security-center.d.ts.map +1 -0
  360. package/lib/services/security-center.js +170 -0
  361. package/lib/services/security-center.js.map +1 -0
  362. package/lib/services/security-txt.d.ts +105 -0
  363. package/lib/services/security-txt.d.ts.map +1 -0
  364. package/lib/services/security-txt.js +136 -0
  365. package/lib/services/security-txt.js.map +1 -0
  366. package/lib/services/snippets.d.ts +138 -0
  367. package/lib/services/snippets.d.ts.map +1 -0
  368. package/lib/services/snippets.js +178 -0
  369. package/lib/services/snippets.js.map +1 -0
  370. package/lib/services/spectrum.d.ts +316 -0
  371. package/lib/services/spectrum.d.ts.map +1 -0
  372. package/lib/services/spectrum.js +510 -0
  373. package/lib/services/spectrum.js.map +1 -0
  374. package/lib/services/speed.d.ts +227 -0
  375. package/lib/services/speed.d.ts.map +1 -0
  376. package/lib/services/speed.js +444 -0
  377. package/lib/services/speed.js.map +1 -0
  378. package/lib/services/ssl.d.ts +370 -0
  379. package/lib/services/ssl.d.ts.map +1 -0
  380. package/lib/services/ssl.js +732 -0
  381. package/lib/services/ssl.js.map +1 -0
  382. package/lib/services/stream.d.ts +1014 -0
  383. package/lib/services/stream.d.ts.map +1 -0
  384. package/lib/services/stream.js +1049 -0
  385. package/lib/services/stream.js.map +1 -0
  386. package/lib/services/token-validation.d.ts +547 -0
  387. package/lib/services/token-validation.d.ts.map +1 -0
  388. package/lib/services/token-validation.js +768 -0
  389. package/lib/services/token-validation.js.map +1 -0
  390. package/lib/services/turnstile.d.ts +248 -0
  391. package/lib/services/turnstile.d.ts.map +1 -0
  392. package/lib/services/turnstile.js +308 -0
  393. package/lib/services/turnstile.js.map +1 -0
  394. package/lib/services/url-normalization.d.ts +53 -0
  395. package/lib/services/url-normalization.d.ts.map +1 -0
  396. package/lib/services/url-normalization.js +52 -0
  397. package/lib/services/url-normalization.js.map +1 -0
  398. package/lib/services/url-scanner.d.ts +612 -0
  399. package/lib/services/url-scanner.d.ts.map +1 -0
  400. package/lib/services/url-scanner.js +915 -0
  401. package/lib/services/url-scanner.js.map +1 -0
  402. package/lib/services/user.d.ts +441 -0
  403. package/lib/services/user.d.ts.map +1 -0
  404. package/lib/services/user.js +567 -0
  405. package/lib/services/user.js.map +1 -0
  406. package/lib/services/vectorize.d.ts +282 -0
  407. package/lib/services/vectorize.d.ts.map +1 -0
  408. package/lib/services/vectorize.js +340 -0
  409. package/lib/services/vectorize.js.map +1 -0
  410. package/lib/services/waiting-rooms.d.ts +1009 -0
  411. package/lib/services/waiting-rooms.d.ts.map +1 -0
  412. package/lib/services/waiting-rooms.js +1757 -0
  413. package/lib/services/waiting-rooms.js.map +1 -0
  414. package/lib/services/web3.d.ts +274 -0
  415. package/lib/services/web3.d.ts.map +1 -0
  416. package/lib/services/web3.js +362 -0
  417. package/lib/services/web3.js.map +1 -0
  418. package/lib/services/workers-for-platforms.d.ts +1224 -0
  419. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  420. package/lib/services/workers-for-platforms.js +2078 -0
  421. package/lib/services/workers-for-platforms.js.map +1 -0
  422. package/lib/services/workers.d.ts +3498 -0
  423. package/lib/services/workers.d.ts.map +1 -0
  424. package/lib/services/workers.js +5967 -0
  425. package/lib/services/workers.js.map +1 -0
  426. package/lib/services/workflows.d.ts +359 -0
  427. package/lib/services/workflows.d.ts.map +1 -0
  428. package/lib/services/workflows.js +516 -0
  429. package/lib/services/workflows.js.map +1 -0
  430. package/lib/services/zaraz.d.ts +300 -0
  431. package/lib/services/zaraz.d.ts.map +1 -0
  432. package/lib/services/zaraz.js +298 -0
  433. package/lib/services/zaraz.js.map +1 -0
  434. package/lib/services/zero-trust.d.ts +15449 -0
  435. package/lib/services/zero-trust.d.ts.map +1 -0
  436. package/lib/services/zero-trust.js +29194 -0
  437. package/lib/services/zero-trust.js.map +1 -0
  438. package/lib/services/zones.d.ts +1278 -0
  439. package/lib/services/zones.d.ts.map +1 -0
  440. package/lib/services/zones.js +2416 -0
  441. package/lib/services/zones.js.map +1 -0
  442. package/lib/traits.d.ts +28 -0
  443. package/lib/traits.d.ts.map +1 -0
  444. package/lib/traits.js +26 -0
  445. package/lib/traits.js.map +1 -0
  446. package/package.json +68 -5
  447. package/src/auth.ts +14 -0
  448. package/src/category.ts +1 -0
  449. package/src/client/api.ts +329 -0
  450. package/src/client/index.ts +7 -0
  451. package/src/credentials.ts +30 -0
  452. package/src/errors.ts +57 -0
  453. package/src/index.ts +9 -0
  454. package/src/retry.ts +35 -0
  455. package/src/schemas.ts +51 -0
  456. package/src/services/abuse-reports.ts +747 -0
  457. package/src/services/accounts.ts +1947 -0
  458. package/src/services/acm.ts +170 -0
  459. package/src/services/addressing.ts +3947 -0
  460. package/src/services/ai-gateway.ts +3335 -0
  461. package/src/services/ai.ts +727 -0
  462. package/src/services/aisearch.ts +4750 -0
  463. package/src/services/alerting.ts +2947 -0
  464. package/src/services/api-gateway.ts +3391 -0
  465. package/src/services/argo.ts +254 -0
  466. package/src/services/audit-logs.ts +90 -0
  467. package/src/services/billing.ts +172 -0
  468. package/src/services/bot-management.ts +541 -0
  469. package/src/services/botnet-feed.ts +193 -0
  470. package/src/services/brand-protection.ts +553 -0
  471. package/src/services/browser-rendering.ts +2707 -0
  472. package/src/services/cache.ts +827 -0
  473. package/src/services/calls.ts +483 -0
  474. package/src/services/certificate-authorities.ts +110 -0
  475. package/src/services/client-certificates.ts +718 -0
  476. package/src/services/cloud-connector.ts +181 -0
  477. package/src/services/cloudforce-one.ts +3876 -0
  478. package/src/services/connectivity.ts +629 -0
  479. package/src/services/content-scanning.ts +385 -0
  480. package/src/services/custom-certificates.ts +611 -0
  481. package/src/services/custom-hostnames.ts +2453 -0
  482. package/src/services/custom-nameservers.ts +182 -0
  483. package/src/services/custom-pages.ts +264 -0
  484. package/src/services/d1.ts +1034 -0
  485. package/src/services/dcv-delegation.ts +52 -0
  486. package/src/services/diagnostics.ts +603 -0
  487. package/src/services/dns-firewall.ts +823 -0
  488. package/src/services/dns.ts +8897 -0
  489. package/src/services/durable-objects.ts +148 -0
  490. package/src/services/email-routing.ts +1602 -0
  491. package/src/services/email-security.ts +4283 -0
  492. package/src/services/filters.ts +370 -0
  493. package/src/services/firewall.ts +3896 -0
  494. package/src/services/healthchecks.ts +1750 -0
  495. package/src/services/hostnames.ts +218 -0
  496. package/src/services/hyperdrive.ts +592 -0
  497. package/src/services/iam.ts +1668 -0
  498. package/src/services/images.ts +1086 -0
  499. package/src/services/intel.ts +2768 -0
  500. package/src/services/ips.ts +88 -0
  501. package/src/services/keyless-certificates.ts +462 -0
  502. package/src/services/kv.ts +1011 -0
  503. package/src/services/leaked-credential-checks.ts +325 -0
  504. package/src/services/load-balancers.ts +6438 -0
  505. package/src/services/logpush.ts +1667 -0
  506. package/src/services/logs.ts +375 -0
  507. package/src/services/magic-cloud-networking.ts +10020 -0
  508. package/src/services/magic-network-monitoring.ts +1156 -0
  509. package/src/services/magic-transit.ts +13050 -0
  510. package/src/services/managed-transforms.ts +237 -0
  511. package/src/services/memberships.ts +615 -0
  512. package/src/services/mtls-certificates.ts +374 -0
  513. package/src/services/network-interconnects.ts +1253 -0
  514. package/src/services/organizations.ts +674 -0
  515. package/src/services/origin-ca-certificates.ts +303 -0
  516. package/src/services/origin-post-quantum-encryption.ts +128 -0
  517. package/src/services/origin-tls-client-auth.ts +878 -0
  518. package/src/services/page-rules.ts +2612 -0
  519. package/src/services/page-shield.ts +1195 -0
  520. package/src/services/pages.ts +5709 -0
  521. package/src/services/pipelines.ts +6000 -0
  522. package/src/services/queues.ts +2629 -0
  523. package/src/services/r2-data-catalog.ts +1119 -0
  524. package/src/services/r2.ts +3348 -0
  525. package/src/services/radar.ts +42152 -0
  526. package/src/services/rate-limits.ts +1150 -0
  527. package/src/services/realtime-kit.ts +11079 -0
  528. package/src/services/registrar.ts +295 -0
  529. package/src/services/request-tracers.ts +158 -0
  530. package/src/services/resource-sharing.ts +1832 -0
  531. package/src/services/rules.ts +837 -0
  532. package/src/services/rulesets.ts +15144 -0
  533. package/src/services/rum.ts +901 -0
  534. package/src/services/schema-validation.ts +733 -0
  535. package/src/services/secrets-store.ts +860 -0
  536. package/src/services/security-center.ts +397 -0
  537. package/src/services/security-txt.ts +315 -0
  538. package/src/services/snippets.ts +420 -0
  539. package/src/services/spectrum.ts +1103 -0
  540. package/src/services/speed.ts +1056 -0
  541. package/src/services/ssl.ts +1587 -0
  542. package/src/services/stream.ts +2756 -0
  543. package/src/services/token-validation.ts +1585 -0
  544. package/src/services/turnstile.ts +643 -0
  545. package/src/services/url-normalization.ts +129 -0
  546. package/src/services/url-scanner.ts +1851 -0
  547. package/src/services/user.ts +1384 -0
  548. package/src/services/vectorize.ts +816 -0
  549. package/src/services/waiting-rooms.ts +3807 -0
  550. package/src/services/web3.ts +834 -0
  551. package/src/services/workers-for-platforms.ts +3859 -0
  552. package/src/services/workers.ts +11637 -0
  553. package/src/services/workflows.ts +1124 -0
  554. package/src/services/zaraz.ts +797 -0
  555. package/src/services/zero-trust.ts +58929 -0
  556. package/src/services/zones.ts +4875 -0
  557. package/src/traits.ts +47 -0
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,4875 @@
1
+ /**
2
+ * Cloudflare ZONES API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service zones
6
+ */
7
+
8
+ import * as Schema from "effect/Schema";
9
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
10
+ import * as API from "../client/api.ts";
11
+ import * as T from "../traits";
12
+ import type { Credentials } from "../credentials";
13
+ import { type DefaultErrors } from "../errors";
14
+
15
+ // =============================================================================
16
+ // ActivationCheck
17
+ // =============================================================================
18
+
19
+ export interface TriggerActivationCheckRequest {
20
+ /** Identifier. */
21
+ zoneId: string;
22
+ }
23
+
24
+ export const TriggerActivationCheckRequest =
25
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
26
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
27
+ }).pipe(
28
+ T.Http({ method: "PUT", path: "/zones/{zone_id}/activation_check" }),
29
+ ) as unknown as Schema.Schema<TriggerActivationCheckRequest>;
30
+
31
+ export interface TriggerActivationCheckResponse {
32
+ /** Identifier. */
33
+ id?: string | null;
34
+ }
35
+
36
+ export const TriggerActivationCheckResponse =
37
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
38
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
39
+ }) as unknown as Schema.Schema<TriggerActivationCheckResponse>;
40
+
41
+ export type TriggerActivationCheckError = DefaultErrors;
42
+
43
+ export const triggerActivationCheck: API.OperationMethod<
44
+ TriggerActivationCheckRequest,
45
+ TriggerActivationCheckResponse,
46
+ TriggerActivationCheckError,
47
+ Credentials | HttpClient.HttpClient
48
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
49
+ input: TriggerActivationCheckRequest,
50
+ output: TriggerActivationCheckResponse,
51
+ errors: [],
52
+ }));
53
+
54
+ // =============================================================================
55
+ // CustomNameserver
56
+ // =============================================================================
57
+
58
+ export interface GetCustomNameserverRequest {
59
+ /** Identifier. */
60
+ zoneId: string;
61
+ }
62
+
63
+ export const GetCustomNameserverRequest =
64
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
65
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
66
+ }).pipe(
67
+ T.Http({ method: "GET", path: "/zones/{zone_id}/custom_ns" }),
68
+ ) as unknown as Schema.Schema<GetCustomNameserverRequest>;
69
+
70
+ export interface GetCustomNameserverResponse {
71
+ errors: {
72
+ code: number;
73
+ message: string;
74
+ documentationUrl?: string | null;
75
+ source?: { pointer?: string | null } | null;
76
+ }[];
77
+ messages: {
78
+ code: number;
79
+ message: string;
80
+ documentationUrl?: string | null;
81
+ source?: { pointer?: string | null } | null;
82
+ }[];
83
+ /** Whether the API call was successful. */
84
+ success: true;
85
+ /** Whether zone uses account-level custom nameservers. */
86
+ enabled?: boolean | null;
87
+ /** The number of the name server set to assign to the zone. */
88
+ nsSet?: number | null;
89
+ resultInfo?: {
90
+ count?: number | null;
91
+ page?: number | null;
92
+ perPage?: number | null;
93
+ totalCount?: number | null;
94
+ } | null;
95
+ }
96
+
97
+ export const GetCustomNameserverResponse =
98
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
99
+ errors: Schema.Array(
100
+ Schema.Struct({
101
+ code: Schema.Number,
102
+ message: Schema.String,
103
+ documentationUrl: Schema.optional(
104
+ Schema.Union([Schema.String, Schema.Null]),
105
+ ),
106
+ source: Schema.optional(
107
+ Schema.Union([
108
+ Schema.Struct({
109
+ pointer: Schema.optional(
110
+ Schema.Union([Schema.String, Schema.Null]),
111
+ ),
112
+ }),
113
+ Schema.Null,
114
+ ]),
115
+ ),
116
+ }).pipe(
117
+ Schema.encodeKeys({
118
+ code: "code",
119
+ message: "message",
120
+ documentationUrl: "documentation_url",
121
+ source: "source",
122
+ }),
123
+ ),
124
+ ),
125
+ messages: Schema.Array(
126
+ Schema.Struct({
127
+ code: Schema.Number,
128
+ message: Schema.String,
129
+ documentationUrl: Schema.optional(
130
+ Schema.Union([Schema.String, Schema.Null]),
131
+ ),
132
+ source: Schema.optional(
133
+ Schema.Union([
134
+ Schema.Struct({
135
+ pointer: Schema.optional(
136
+ Schema.Union([Schema.String, Schema.Null]),
137
+ ),
138
+ }),
139
+ Schema.Null,
140
+ ]),
141
+ ),
142
+ }).pipe(
143
+ Schema.encodeKeys({
144
+ code: "code",
145
+ message: "message",
146
+ documentationUrl: "documentation_url",
147
+ source: "source",
148
+ }),
149
+ ),
150
+ ),
151
+ success: Schema.Literal(true),
152
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
153
+ nsSet: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
154
+ resultInfo: Schema.optional(
155
+ Schema.Union([
156
+ Schema.Struct({
157
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
158
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
159
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
160
+ totalCount: Schema.optional(
161
+ Schema.Union([Schema.Number, Schema.Null]),
162
+ ),
163
+ }).pipe(
164
+ Schema.encodeKeys({
165
+ count: "count",
166
+ page: "page",
167
+ perPage: "per_page",
168
+ totalCount: "total_count",
169
+ }),
170
+ ),
171
+ Schema.Null,
172
+ ]),
173
+ ),
174
+ }).pipe(
175
+ Schema.encodeKeys({
176
+ errors: "errors",
177
+ messages: "messages",
178
+ success: "success",
179
+ enabled: "enabled",
180
+ nsSet: "ns_set",
181
+ resultInfo: "result_info",
182
+ }),
183
+ ) as unknown as Schema.Schema<GetCustomNameserverResponse>;
184
+
185
+ export type GetCustomNameserverError = DefaultErrors;
186
+
187
+ export const getCustomNameserver: API.OperationMethod<
188
+ GetCustomNameserverRequest,
189
+ GetCustomNameserverResponse,
190
+ GetCustomNameserverError,
191
+ Credentials | HttpClient.HttpClient
192
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
193
+ input: GetCustomNameserverRequest,
194
+ output: GetCustomNameserverResponse,
195
+ errors: [],
196
+ }));
197
+
198
+ export interface PutCustomNameserverRequest {
199
+ /** Path param: Identifier. */
200
+ zoneId: string;
201
+ /** Body param: Whether zone uses account-level custom nameservers. */
202
+ enabled?: boolean;
203
+ /** Body param: The number of the name server set to assign to the zone. */
204
+ nsSet?: number;
205
+ }
206
+
207
+ export const PutCustomNameserverRequest =
208
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
209
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
210
+ enabled: Schema.optional(Schema.Boolean),
211
+ nsSet: Schema.optional(Schema.Number),
212
+ }).pipe(
213
+ Schema.encodeKeys({ enabled: "enabled", nsSet: "ns_set" }),
214
+ T.Http({ method: "PUT", path: "/zones/{zone_id}/custom_ns" }),
215
+ ) as unknown as Schema.Schema<PutCustomNameserverRequest>;
216
+
217
+ export type PutCustomNameserverResponse = string[];
218
+
219
+ export const PutCustomNameserverResponse =
220
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
221
+ Schema.String,
222
+ ) as unknown as Schema.Schema<PutCustomNameserverResponse>;
223
+
224
+ export type PutCustomNameserverError = DefaultErrors;
225
+
226
+ export const putCustomNameserver: API.OperationMethod<
227
+ PutCustomNameserverRequest,
228
+ PutCustomNameserverResponse,
229
+ PutCustomNameserverError,
230
+ Credentials | HttpClient.HttpClient
231
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
232
+ input: PutCustomNameserverRequest,
233
+ output: PutCustomNameserverResponse,
234
+ errors: [],
235
+ }));
236
+
237
+ // =============================================================================
238
+ // Hold
239
+ // =============================================================================
240
+
241
+ export interface GetHoldRequest {
242
+ /** Identifier. */
243
+ zoneId: string;
244
+ }
245
+
246
+ export const GetHoldRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
247
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
248
+ }).pipe(
249
+ T.Http({ method: "GET", path: "/zones/{zone_id}/hold" }),
250
+ ) as unknown as Schema.Schema<GetHoldRequest>;
251
+
252
+ export interface GetHoldResponse {
253
+ hold?: boolean | null;
254
+ holdAfter?: string | null;
255
+ includeSubdomains?: string | null;
256
+ }
257
+
258
+ export const GetHoldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
259
+ hold: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
260
+ holdAfter: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
261
+ includeSubdomains: Schema.optional(
262
+ Schema.Union([Schema.String, Schema.Null]),
263
+ ),
264
+ }).pipe(
265
+ Schema.encodeKeys({
266
+ hold: "hold",
267
+ holdAfter: "hold_after",
268
+ includeSubdomains: "include_subdomains",
269
+ }),
270
+ ) as unknown as Schema.Schema<GetHoldResponse>;
271
+
272
+ export type GetHoldError = DefaultErrors;
273
+
274
+ export const getHold: API.OperationMethod<
275
+ GetHoldRequest,
276
+ GetHoldResponse,
277
+ GetHoldError,
278
+ Credentials | HttpClient.HttpClient
279
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
280
+ input: GetHoldRequest,
281
+ output: GetHoldResponse,
282
+ errors: [],
283
+ }));
284
+
285
+ export interface CreateHoldRequest {
286
+ /** Path param: Identifier. */
287
+ zoneId: string;
288
+ /** Query param: If provided, the zone hold will extend to block any subdomain of the given zone, as well as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with the hostname 'example.com' a */
289
+ includeSubdomains?: boolean;
290
+ }
291
+
292
+ export const CreateHoldRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
293
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
294
+ includeSubdomains: Schema.optional(Schema.Boolean).pipe(
295
+ T.HttpQuery("include_subdomains"),
296
+ ),
297
+ }).pipe(
298
+ T.Http({ method: "POST", path: "/zones/{zone_id}/hold" }),
299
+ ) as unknown as Schema.Schema<CreateHoldRequest>;
300
+
301
+ export interface CreateHoldResponse {
302
+ hold?: boolean | null;
303
+ holdAfter?: string | null;
304
+ includeSubdomains?: string | null;
305
+ }
306
+
307
+ export const CreateHoldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
308
+ hold: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
309
+ holdAfter: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
310
+ includeSubdomains: Schema.optional(
311
+ Schema.Union([Schema.String, Schema.Null]),
312
+ ),
313
+ }).pipe(
314
+ Schema.encodeKeys({
315
+ hold: "hold",
316
+ holdAfter: "hold_after",
317
+ includeSubdomains: "include_subdomains",
318
+ }),
319
+ ) as unknown as Schema.Schema<CreateHoldResponse>;
320
+
321
+ export type CreateHoldError = DefaultErrors;
322
+
323
+ export const createHold: API.OperationMethod<
324
+ CreateHoldRequest,
325
+ CreateHoldResponse,
326
+ CreateHoldError,
327
+ Credentials | HttpClient.HttpClient
328
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
329
+ input: CreateHoldRequest,
330
+ output: CreateHoldResponse,
331
+ errors: [],
332
+ }));
333
+
334
+ export interface PatchHoldRequest {
335
+ /** Path param: Identifier. */
336
+ zoneId: string;
337
+ /** Body param: If `hold_after` is provided and future-dated, the hold will be temporarily disabled, then automatically re-enabled by the system at the time specified in this RFC3339-formatted timestamp. */
338
+ holdAfter?: string;
339
+ /** Body param: If `true`, the zone hold will extend to block any subdomain of the given zone, as well as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with the hostname 'example.com' and */
340
+ includeSubdomains?: boolean;
341
+ }
342
+
343
+ export const PatchHoldRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
344
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
345
+ holdAfter: Schema.optional(Schema.String),
346
+ includeSubdomains: Schema.optional(Schema.Boolean),
347
+ }).pipe(
348
+ Schema.encodeKeys({
349
+ holdAfter: "hold_after",
350
+ includeSubdomains: "include_subdomains",
351
+ }),
352
+ T.Http({ method: "PATCH", path: "/zones/{zone_id}/hold" }),
353
+ ) as unknown as Schema.Schema<PatchHoldRequest>;
354
+
355
+ export interface PatchHoldResponse {
356
+ hold?: boolean | null;
357
+ holdAfter?: string | null;
358
+ includeSubdomains?: string | null;
359
+ }
360
+
361
+ export const PatchHoldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
362
+ hold: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
363
+ holdAfter: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
364
+ includeSubdomains: Schema.optional(
365
+ Schema.Union([Schema.String, Schema.Null]),
366
+ ),
367
+ }).pipe(
368
+ Schema.encodeKeys({
369
+ hold: "hold",
370
+ holdAfter: "hold_after",
371
+ includeSubdomains: "include_subdomains",
372
+ }),
373
+ ) as unknown as Schema.Schema<PatchHoldResponse>;
374
+
375
+ export type PatchHoldError = DefaultErrors;
376
+
377
+ export const patchHold: API.OperationMethod<
378
+ PatchHoldRequest,
379
+ PatchHoldResponse,
380
+ PatchHoldError,
381
+ Credentials | HttpClient.HttpClient
382
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
383
+ input: PatchHoldRequest,
384
+ output: PatchHoldResponse,
385
+ errors: [],
386
+ }));
387
+
388
+ export interface DeleteHoldRequest {
389
+ /** Path param: Identifier. */
390
+ zoneId: string;
391
+ /** Query param: If `hold_after` is provided, the hold will be temporarily disabled, then automatically re-enabled by the system at the time specified in this RFC3339-formatted timestamp. Otherwise, the h */
392
+ holdAfter?: string;
393
+ }
394
+
395
+ export const DeleteHoldRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
396
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
397
+ holdAfter: Schema.optional(Schema.String).pipe(T.HttpQuery("hold_after")),
398
+ }).pipe(
399
+ T.Http({ method: "DELETE", path: "/zones/{zone_id}/hold" }),
400
+ ) as unknown as Schema.Schema<DeleteHoldRequest>;
401
+
402
+ export interface DeleteHoldResponse {
403
+ hold?: boolean | null;
404
+ holdAfter?: string | null;
405
+ includeSubdomains?: string | null;
406
+ }
407
+
408
+ export const DeleteHoldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
409
+ hold: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
410
+ holdAfter: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
411
+ includeSubdomains: Schema.optional(
412
+ Schema.Union([Schema.String, Schema.Null]),
413
+ ),
414
+ }).pipe(
415
+ Schema.encodeKeys({
416
+ hold: "hold",
417
+ holdAfter: "hold_after",
418
+ includeSubdomains: "include_subdomains",
419
+ }),
420
+ ) as unknown as Schema.Schema<DeleteHoldResponse>;
421
+
422
+ export type DeleteHoldError = DefaultErrors;
423
+
424
+ export const deleteHold: API.OperationMethod<
425
+ DeleteHoldRequest,
426
+ DeleteHoldResponse,
427
+ DeleteHoldError,
428
+ Credentials | HttpClient.HttpClient
429
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
430
+ input: DeleteHoldRequest,
431
+ output: DeleteHoldResponse,
432
+ errors: [],
433
+ }));
434
+
435
+ // =============================================================================
436
+ // Plan
437
+ // =============================================================================
438
+
439
+ export interface GetPlanRequest {
440
+ planIdentifier: string;
441
+ /** Identifier */
442
+ zoneId: string;
443
+ }
444
+
445
+ export const GetPlanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
446
+ planIdentifier: Schema.String.pipe(T.HttpPath("planIdentifier")),
447
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
448
+ }).pipe(
449
+ T.Http({
450
+ method: "GET",
451
+ path: "/zones/{zone_id}/available_plans/{planIdentifier}",
452
+ }),
453
+ ) as unknown as Schema.Schema<GetPlanRequest>;
454
+
455
+ export interface GetPlanResponse {
456
+ /** Identifier */
457
+ id?: string | null;
458
+ /** Indicates whether you can subscribe to this plan. */
459
+ canSubscribe?: boolean | null;
460
+ /** The monetary unit in which pricing information is displayed. */
461
+ currency?: string | null;
462
+ /** Indicates whether this plan is managed externally. */
463
+ externallyManaged?: boolean | null;
464
+ /** The frequency at which you will be billed for this plan. */
465
+ frequency?: "weekly" | "monthly" | "quarterly" | "yearly" | null;
466
+ /** Indicates whether you are currently subscribed to this plan. */
467
+ isSubscribed?: boolean | null;
468
+ /** Indicates whether this plan has a legacy discount applied. */
469
+ legacyDiscount?: boolean | null;
470
+ /** The legacy identifier for this rate plan, if any. */
471
+ legacyId?: string | null;
472
+ /** The plan name. */
473
+ name?: string | null;
474
+ /** The amount you will be billed for this plan. */
475
+ price?: number | null;
476
+ }
477
+
478
+ export const GetPlanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
479
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
480
+ canSubscribe: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
481
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
482
+ externallyManaged: Schema.optional(
483
+ Schema.Union([Schema.Boolean, Schema.Null]),
484
+ ),
485
+ frequency: Schema.optional(
486
+ Schema.Union([
487
+ Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
488
+ Schema.Null,
489
+ ]),
490
+ ),
491
+ isSubscribed: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
492
+ legacyDiscount: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
493
+ legacyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
494
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
495
+ price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
496
+ }).pipe(
497
+ Schema.encodeKeys({
498
+ id: "id",
499
+ canSubscribe: "can_subscribe",
500
+ currency: "currency",
501
+ externallyManaged: "externally_managed",
502
+ frequency: "frequency",
503
+ isSubscribed: "is_subscribed",
504
+ legacyDiscount: "legacy_discount",
505
+ legacyId: "legacy_id",
506
+ name: "name",
507
+ price: "price",
508
+ }),
509
+ ) as unknown as Schema.Schema<GetPlanResponse>;
510
+
511
+ export type GetPlanError = DefaultErrors;
512
+
513
+ export const getPlan: API.OperationMethod<
514
+ GetPlanRequest,
515
+ GetPlanResponse,
516
+ GetPlanError,
517
+ Credentials | HttpClient.HttpClient
518
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
519
+ input: GetPlanRequest,
520
+ output: GetPlanResponse,
521
+ errors: [],
522
+ }));
523
+
524
+ export interface ListPlansRequest {
525
+ /** Identifier */
526
+ zoneId: string;
527
+ }
528
+
529
+ export const ListPlansRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
530
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
531
+ }).pipe(
532
+ T.Http({ method: "GET", path: "/zones/{zone_id}/available_plans" }),
533
+ ) as unknown as Schema.Schema<ListPlansRequest>;
534
+
535
+ export type ListPlansResponse = {
536
+ id?: string | null;
537
+ canSubscribe?: boolean | null;
538
+ currency?: string | null;
539
+ externallyManaged?: boolean | null;
540
+ frequency?: "weekly" | "monthly" | "quarterly" | "yearly" | null;
541
+ isSubscribed?: boolean | null;
542
+ legacyDiscount?: boolean | null;
543
+ legacyId?: string | null;
544
+ name?: string | null;
545
+ price?: number | null;
546
+ }[];
547
+
548
+ export const ListPlansResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
549
+ Schema.Struct({
550
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
551
+ canSubscribe: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
552
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
553
+ externallyManaged: Schema.optional(
554
+ Schema.Union([Schema.Boolean, Schema.Null]),
555
+ ),
556
+ frequency: Schema.optional(
557
+ Schema.Union([
558
+ Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
559
+ Schema.Null,
560
+ ]),
561
+ ),
562
+ isSubscribed: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
563
+ legacyDiscount: Schema.optional(
564
+ Schema.Union([Schema.Boolean, Schema.Null]),
565
+ ),
566
+ legacyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
567
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
568
+ price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
569
+ }).pipe(
570
+ Schema.encodeKeys({
571
+ id: "id",
572
+ canSubscribe: "can_subscribe",
573
+ currency: "currency",
574
+ externallyManaged: "externally_managed",
575
+ frequency: "frequency",
576
+ isSubscribed: "is_subscribed",
577
+ legacyDiscount: "legacy_discount",
578
+ legacyId: "legacy_id",
579
+ name: "name",
580
+ price: "price",
581
+ }),
582
+ ),
583
+ ) as unknown as Schema.Schema<ListPlansResponse>;
584
+
585
+ export type ListPlansError = DefaultErrors;
586
+
587
+ export const listPlans: API.OperationMethod<
588
+ ListPlansRequest,
589
+ ListPlansResponse,
590
+ ListPlansError,
591
+ Credentials | HttpClient.HttpClient
592
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
593
+ input: ListPlansRequest,
594
+ output: ListPlansResponse,
595
+ errors: [],
596
+ }));
597
+
598
+ // =============================================================================
599
+ // RatePlan
600
+ // =============================================================================
601
+
602
+ export interface GetRatePlanRequest {
603
+ /** Identifier */
604
+ zoneId: string;
605
+ }
606
+
607
+ export const GetRatePlanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
608
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
609
+ }).pipe(
610
+ T.Http({ method: "GET", path: "/zones/{zone_id}/available_rate_plans" }),
611
+ ) as unknown as Schema.Schema<GetRatePlanRequest>;
612
+
613
+ export type GetRatePlanResponse = {
614
+ id?: string | null;
615
+ components?:
616
+ | {
617
+ default?: number | null;
618
+ name?:
619
+ | "zones"
620
+ | "page_rules"
621
+ | "dedicated_certificates"
622
+ | "dedicated_certificates_custom"
623
+ | null;
624
+ unitPrice?: number | null;
625
+ }[]
626
+ | null;
627
+ currency?: string | null;
628
+ duration?: number | null;
629
+ frequency?: "weekly" | "monthly" | "quarterly" | "yearly" | null;
630
+ name?: string | null;
631
+ }[];
632
+
633
+ export const GetRatePlanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
634
+ Schema.Struct({
635
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
636
+ components: Schema.optional(
637
+ Schema.Union([
638
+ Schema.Array(
639
+ Schema.Struct({
640
+ default: Schema.optional(
641
+ Schema.Union([Schema.Number, Schema.Null]),
642
+ ),
643
+ name: Schema.optional(
644
+ Schema.Union([
645
+ Schema.Literals([
646
+ "zones",
647
+ "page_rules",
648
+ "dedicated_certificates",
649
+ "dedicated_certificates_custom",
650
+ ]),
651
+ Schema.Null,
652
+ ]),
653
+ ),
654
+ unitPrice: Schema.optional(
655
+ Schema.Union([Schema.Number, Schema.Null]),
656
+ ),
657
+ }).pipe(
658
+ Schema.encodeKeys({
659
+ default: "default",
660
+ name: "name",
661
+ unitPrice: "unit_price",
662
+ }),
663
+ ),
664
+ ),
665
+ Schema.Null,
666
+ ]),
667
+ ),
668
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
669
+ duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
670
+ frequency: Schema.optional(
671
+ Schema.Union([
672
+ Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
673
+ Schema.Null,
674
+ ]),
675
+ ),
676
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
677
+ }),
678
+ ) as unknown as Schema.Schema<GetRatePlanResponse>;
679
+
680
+ export type GetRatePlanError = DefaultErrors;
681
+
682
+ export const getRatePlan: API.OperationMethod<
683
+ GetRatePlanRequest,
684
+ GetRatePlanResponse,
685
+ GetRatePlanError,
686
+ Credentials | HttpClient.HttpClient
687
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
688
+ input: GetRatePlanRequest,
689
+ output: GetRatePlanResponse,
690
+ errors: [],
691
+ }));
692
+
693
+ // =============================================================================
694
+ // Setting
695
+ // =============================================================================
696
+
697
+ export interface GetSettingRequest {
698
+ settingId: string;
699
+ /** Identifier */
700
+ zoneId: string;
701
+ }
702
+
703
+ export const GetSettingRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
704
+ settingId: Schema.String.pipe(T.HttpPath("settingId")),
705
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
706
+ }).pipe(
707
+ T.Http({ method: "GET", path: "/zones/{zone_id}/settings/{settingId}" }),
708
+ ) as unknown as Schema.Schema<GetSettingRequest>;
709
+
710
+ export type GetSettingResponse =
711
+ | {
712
+ id: "0rtt";
713
+ value: "on" | "off";
714
+ editable?: true | false | null;
715
+ modifiedOn?: string | null;
716
+ }
717
+ | {
718
+ id: "advanced_ddos";
719
+ value: "on" | "off";
720
+ editable?: true | false | null;
721
+ modifiedOn?: string | null;
722
+ }
723
+ | {
724
+ id: "aegis";
725
+ modifiedOn?: string | null;
726
+ value?: { enabled?: boolean | null; poolId?: string | null } | null;
727
+ }
728
+ | {
729
+ id: "always_online";
730
+ value: "on" | "off";
731
+ editable?: true | false | null;
732
+ modifiedOn?: string | null;
733
+ }
734
+ | {
735
+ id: "always_use_https";
736
+ value: "on" | "off";
737
+ editable?: true | false | null;
738
+ modifiedOn?: string | null;
739
+ }
740
+ | {
741
+ id: "automatic_https_rewrites";
742
+ value: "on" | "off";
743
+ editable?: true | false | null;
744
+ modifiedOn?: string | null;
745
+ }
746
+ | {
747
+ id: "brotli";
748
+ value: "off" | "on";
749
+ editable?: true | false | null;
750
+ modifiedOn?: string | null;
751
+ }
752
+ | {
753
+ id: "browser_cache_ttl";
754
+ value: number;
755
+ editable?: true | false | null;
756
+ modifiedOn?: string | null;
757
+ }
758
+ | {
759
+ id: "browser_check";
760
+ value: "on" | "off";
761
+ editable?: true | false | null;
762
+ modifiedOn?: string | null;
763
+ }
764
+ | {
765
+ id: "cache_level";
766
+ value: "aggressive" | "basic" | "simplified";
767
+ editable?: true | false | null;
768
+ modifiedOn?: string | null;
769
+ }
770
+ | {
771
+ id: "challenge_ttl";
772
+ value:
773
+ | "300"
774
+ | "900"
775
+ | "1800"
776
+ | "2700"
777
+ | "3600"
778
+ | "7200"
779
+ | "10800"
780
+ | "14400"
781
+ | "28800"
782
+ | "57600"
783
+ | "86400"
784
+ | "604800"
785
+ | "2592000"
786
+ | "31536000";
787
+ editable?: true | false | null;
788
+ modifiedOn?: string | null;
789
+ }
790
+ | {
791
+ id: "china_network_enabled";
792
+ value: "on" | "off";
793
+ editable?: true | false | null;
794
+ modifiedOn?: string | null;
795
+ }
796
+ | {
797
+ id: "ciphers";
798
+ value: string[];
799
+ editable?: true | false | null;
800
+ modifiedOn?: string | null;
801
+ }
802
+ | {
803
+ id: "cname_flattening";
804
+ value: "flatten_at_root" | "flatten_all";
805
+ editable?: true | false | null;
806
+ modifiedOn?: string | null;
807
+ }
808
+ | {
809
+ id: "development_mode";
810
+ value: "on" | "off";
811
+ editable?: true | false | null;
812
+ modifiedOn?: string | null;
813
+ timeRemaining?: number | null;
814
+ }
815
+ | {
816
+ id: "early_hints";
817
+ value: "on" | "off";
818
+ editable?: true | false | null;
819
+ modifiedOn?: string | null;
820
+ }
821
+ | {
822
+ id: "edge_cache_ttl";
823
+ value:
824
+ | "30"
825
+ | "60"
826
+ | "300"
827
+ | "1200"
828
+ | "1800"
829
+ | "3600"
830
+ | "7200"
831
+ | "10800"
832
+ | "14400"
833
+ | "18000"
834
+ | "28800"
835
+ | "43200"
836
+ | "57600"
837
+ | "72000"
838
+ | "86400"
839
+ | "172800"
840
+ | "259200"
841
+ | "345600"
842
+ | "432000"
843
+ | "518400"
844
+ | "604800";
845
+ editable?: true | false | null;
846
+ modifiedOn?: string | null;
847
+ }
848
+ | {
849
+ id: "email_obfuscation";
850
+ value: "on" | "off";
851
+ editable?: true | false | null;
852
+ modifiedOn?: string | null;
853
+ }
854
+ | {
855
+ id: "h2_prioritization";
856
+ value: "on" | "off" | "custom";
857
+ editable?: true | false | null;
858
+ modifiedOn?: string | null;
859
+ }
860
+ | {
861
+ id: "hotlink_protection";
862
+ value: "on" | "off";
863
+ editable?: true | false | null;
864
+ modifiedOn?: string | null;
865
+ }
866
+ | {
867
+ id: "http2";
868
+ value: "on" | "off";
869
+ editable?: true | false | null;
870
+ modifiedOn?: string | null;
871
+ }
872
+ | {
873
+ id: "http3";
874
+ value: "on" | "off";
875
+ editable?: true | false | null;
876
+ modifiedOn?: string | null;
877
+ }
878
+ | {
879
+ id: "image_resizing";
880
+ value: "on" | "off" | "open";
881
+ editable?: true | false | null;
882
+ modifiedOn?: string | null;
883
+ }
884
+ | {
885
+ id: "ip_geolocation";
886
+ value: "on" | "off";
887
+ editable?: true | false | null;
888
+ modifiedOn?: string | null;
889
+ }
890
+ | {
891
+ id: "ipv6";
892
+ value: "off" | "on";
893
+ editable?: true | false | null;
894
+ modifiedOn?: string | null;
895
+ }
896
+ | {
897
+ id: "max_upload";
898
+ value:
899
+ | "100"
900
+ | "125"
901
+ | "150"
902
+ | "175"
903
+ | "200"
904
+ | "225"
905
+ | "250"
906
+ | "275"
907
+ | "300"
908
+ | "325"
909
+ | "350"
910
+ | "375"
911
+ | "400"
912
+ | "425"
913
+ | "450"
914
+ | "475"
915
+ | "500"
916
+ | "1000";
917
+ editable?: true | false | null;
918
+ modifiedOn?: string | null;
919
+ }
920
+ | {
921
+ id: "min_tls_version";
922
+ value: "1.0" | "1.1" | "1.2" | "1.3";
923
+ editable?: true | false | null;
924
+ modifiedOn?: string | null;
925
+ }
926
+ | {
927
+ id: "mirage";
928
+ value: "on" | "off";
929
+ editable?: true | false | null;
930
+ modifiedOn?: string | null;
931
+ }
932
+ | {
933
+ id: "nel";
934
+ value: { enabled?: boolean | null };
935
+ editable?: true | false | null;
936
+ modifiedOn?: string | null;
937
+ }
938
+ | {
939
+ id: "opportunistic_encryption";
940
+ value: "on" | "off";
941
+ editable?: true | false | null;
942
+ modifiedOn?: string | null;
943
+ }
944
+ | {
945
+ id: "opportunistic_onion";
946
+ value: "on" | "off";
947
+ editable?: true | false | null;
948
+ modifiedOn?: string | null;
949
+ }
950
+ | {
951
+ id: "orange_to_orange";
952
+ value: "on" | "off";
953
+ editable?: true | false | null;
954
+ modifiedOn?: string | null;
955
+ }
956
+ | {
957
+ id: "origin_error_page_pass_thru";
958
+ value: "on" | "off";
959
+ editable?: true | false | null;
960
+ modifiedOn?: string | null;
961
+ }
962
+ | {
963
+ id: "origin_h2_max_streams";
964
+ modifiedOn?: string | null;
965
+ value?: number | null;
966
+ }
967
+ | {
968
+ id: "origin_max_http_version";
969
+ modifiedOn?: string | null;
970
+ value?: "2" | "1" | null;
971
+ }
972
+ | {
973
+ id: "polish";
974
+ value: "off" | "lossless" | "lossy";
975
+ editable?: true | false | null;
976
+ modifiedOn?: string | null;
977
+ }
978
+ | {
979
+ id: "prefetch_preload";
980
+ value: "on" | "off";
981
+ editable?: true | false | null;
982
+ modifiedOn?: string | null;
983
+ }
984
+ | {
985
+ id: "privacy_pass";
986
+ value: "on" | "off";
987
+ editable?: true | false | null;
988
+ modifiedOn?: string | null;
989
+ }
990
+ | {
991
+ id: "proxy_read_timeout";
992
+ value: number;
993
+ editable?: true | false | null;
994
+ modifiedOn?: string | null;
995
+ }
996
+ | {
997
+ id: "pseudo_ipv4";
998
+ value: "off" | "add_header" | "overwrite_header";
999
+ editable?: true | false | null;
1000
+ modifiedOn?: string | null;
1001
+ }
1002
+ | {
1003
+ id: "replace_insecure_js";
1004
+ value: "on" | "off";
1005
+ editable?: true | false | null;
1006
+ modifiedOn?: string | null;
1007
+ }
1008
+ | {
1009
+ id: "response_buffering";
1010
+ value: "on" | "off";
1011
+ editable?: true | false | null;
1012
+ modifiedOn?: string | null;
1013
+ }
1014
+ | {
1015
+ id: "rocket_loader";
1016
+ value: "on" | "off";
1017
+ editable?: true | false | null;
1018
+ modifiedOn?: string | null;
1019
+ }
1020
+ | {
1021
+ id: "automatic_platform_optimization";
1022
+ value: unknown;
1023
+ editable?: true | false | null;
1024
+ modifiedOn?: string | null;
1025
+ }
1026
+ | {
1027
+ id: "security_header";
1028
+ value: {
1029
+ strictTransportSecurity?: {
1030
+ enabled?: boolean | null;
1031
+ includeSubdomains?: boolean | null;
1032
+ maxAge?: number | null;
1033
+ nosniff?: boolean | null;
1034
+ preload?: boolean | null;
1035
+ } | null;
1036
+ };
1037
+ editable?: true | false | null;
1038
+ modifiedOn?: string | null;
1039
+ }
1040
+ | {
1041
+ id: "security_level";
1042
+ value:
1043
+ | "off"
1044
+ | "essentially_off"
1045
+ | "low"
1046
+ | "medium"
1047
+ | "high"
1048
+ | "under_attack";
1049
+ editable?: true | false | null;
1050
+ modifiedOn?: string | null;
1051
+ }
1052
+ | {
1053
+ id: "server_side_exclude";
1054
+ value: "on" | "off";
1055
+ editable?: true | false | null;
1056
+ modifiedOn?: string | null;
1057
+ }
1058
+ | {
1059
+ id: "sha1_support";
1060
+ value: "off" | "on";
1061
+ editable?: true | false | null;
1062
+ modifiedOn?: string | null;
1063
+ }
1064
+ | {
1065
+ id: "sort_query_string_for_cache";
1066
+ value: "on" | "off";
1067
+ editable?: true | false | null;
1068
+ modifiedOn?: string | null;
1069
+ }
1070
+ | {
1071
+ id: "ssl";
1072
+ value: "off" | "flexible" | "full" | "strict";
1073
+ editable?: true | false | null;
1074
+ modifiedOn?: string | null;
1075
+ }
1076
+ | { id?: "ssl_recommender" | null; enabled?: boolean | null }
1077
+ | {
1078
+ id: "tls_1_2_only";
1079
+ value: "off" | "on";
1080
+ editable?: true | false | null;
1081
+ modifiedOn?: string | null;
1082
+ }
1083
+ | {
1084
+ id: "tls_1_3";
1085
+ value: "on" | "off" | "zrt";
1086
+ editable?: true | false | null;
1087
+ modifiedOn?: string | null;
1088
+ }
1089
+ | {
1090
+ id: "tls_client_auth";
1091
+ value: "on" | "off";
1092
+ editable?: true | false | null;
1093
+ modifiedOn?: string | null;
1094
+ }
1095
+ | {
1096
+ id: "transformations";
1097
+ value: "on" | "off" | "open";
1098
+ editable?: true | false | null;
1099
+ modifiedOn?: string | null;
1100
+ }
1101
+ | {
1102
+ id: "transformations_allowed_origins";
1103
+ value: string;
1104
+ editable?: true | false | null;
1105
+ modifiedOn?: string | null;
1106
+ }
1107
+ | {
1108
+ id: "true_client_ip_header";
1109
+ value: "on" | "off";
1110
+ editable?: true | false | null;
1111
+ modifiedOn?: string | null;
1112
+ }
1113
+ | {
1114
+ id: "waf";
1115
+ value: "on" | "off";
1116
+ editable?: true | false | null;
1117
+ modifiedOn?: string | null;
1118
+ }
1119
+ | {
1120
+ id: "webp";
1121
+ value: "off" | "on";
1122
+ editable?: true | false | null;
1123
+ modifiedOn?: string | null;
1124
+ }
1125
+ | {
1126
+ id: "websockets";
1127
+ value: "off" | "on";
1128
+ editable?: true | false | null;
1129
+ modifiedOn?: string | null;
1130
+ };
1131
+
1132
+ export const GetSettingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
1133
+ Schema.Struct({
1134
+ id: Schema.Literal("0rtt"),
1135
+ value: Schema.Literals(["on", "off"]),
1136
+ editable: Schema.optional(
1137
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1138
+ ),
1139
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1140
+ }).pipe(
1141
+ Schema.encodeKeys({
1142
+ id: "id",
1143
+ value: "value",
1144
+ editable: "editable",
1145
+ modifiedOn: "modified_on",
1146
+ }),
1147
+ ),
1148
+ Schema.Struct({
1149
+ id: Schema.Literal("advanced_ddos"),
1150
+ value: Schema.Literals(["on", "off"]),
1151
+ editable: Schema.optional(
1152
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1153
+ ),
1154
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1155
+ }).pipe(
1156
+ Schema.encodeKeys({
1157
+ id: "id",
1158
+ value: "value",
1159
+ editable: "editable",
1160
+ modifiedOn: "modified_on",
1161
+ }),
1162
+ ),
1163
+ Schema.Struct({
1164
+ id: Schema.Literal("aegis"),
1165
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1166
+ value: Schema.optional(
1167
+ Schema.Union([
1168
+ Schema.Struct({
1169
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1170
+ poolId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1171
+ }).pipe(Schema.encodeKeys({ enabled: "enabled", poolId: "pool_id" })),
1172
+ Schema.Null,
1173
+ ]),
1174
+ ),
1175
+ }).pipe(
1176
+ Schema.encodeKeys({ id: "id", modifiedOn: "modified_on", value: "value" }),
1177
+ ),
1178
+ Schema.Struct({
1179
+ id: Schema.Literal("always_online"),
1180
+ value: Schema.Literals(["on", "off"]),
1181
+ editable: Schema.optional(
1182
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1183
+ ),
1184
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1185
+ }).pipe(
1186
+ Schema.encodeKeys({
1187
+ id: "id",
1188
+ value: "value",
1189
+ editable: "editable",
1190
+ modifiedOn: "modified_on",
1191
+ }),
1192
+ ),
1193
+ Schema.Struct({
1194
+ id: Schema.Literal("always_use_https"),
1195
+ value: Schema.Literals(["on", "off"]),
1196
+ editable: Schema.optional(
1197
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1198
+ ),
1199
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1200
+ }).pipe(
1201
+ Schema.encodeKeys({
1202
+ id: "id",
1203
+ value: "value",
1204
+ editable: "editable",
1205
+ modifiedOn: "modified_on",
1206
+ }),
1207
+ ),
1208
+ Schema.Struct({
1209
+ id: Schema.Literal("automatic_https_rewrites"),
1210
+ value: Schema.Literals(["on", "off"]),
1211
+ editable: Schema.optional(
1212
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1213
+ ),
1214
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1215
+ }).pipe(
1216
+ Schema.encodeKeys({
1217
+ id: "id",
1218
+ value: "value",
1219
+ editable: "editable",
1220
+ modifiedOn: "modified_on",
1221
+ }),
1222
+ ),
1223
+ Schema.Struct({
1224
+ id: Schema.Literal("brotli"),
1225
+ value: Schema.Literals(["off", "on"]),
1226
+ editable: Schema.optional(
1227
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1228
+ ),
1229
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1230
+ }).pipe(
1231
+ Schema.encodeKeys({
1232
+ id: "id",
1233
+ value: "value",
1234
+ editable: "editable",
1235
+ modifiedOn: "modified_on",
1236
+ }),
1237
+ ),
1238
+ Schema.Struct({
1239
+ id: Schema.Literal("browser_cache_ttl"),
1240
+ value: Schema.Number,
1241
+ editable: Schema.optional(
1242
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1243
+ ),
1244
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1245
+ }).pipe(
1246
+ Schema.encodeKeys({
1247
+ id: "id",
1248
+ value: "value",
1249
+ editable: "editable",
1250
+ modifiedOn: "modified_on",
1251
+ }),
1252
+ ),
1253
+ Schema.Struct({
1254
+ id: Schema.Literal("browser_check"),
1255
+ value: Schema.Literals(["on", "off"]),
1256
+ editable: Schema.optional(
1257
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1258
+ ),
1259
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1260
+ }).pipe(
1261
+ Schema.encodeKeys({
1262
+ id: "id",
1263
+ value: "value",
1264
+ editable: "editable",
1265
+ modifiedOn: "modified_on",
1266
+ }),
1267
+ ),
1268
+ Schema.Struct({
1269
+ id: Schema.Literal("cache_level"),
1270
+ value: Schema.Literals(["aggressive", "basic", "simplified"]),
1271
+ editable: Schema.optional(
1272
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1273
+ ),
1274
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1275
+ }).pipe(
1276
+ Schema.encodeKeys({
1277
+ id: "id",
1278
+ value: "value",
1279
+ editable: "editable",
1280
+ modifiedOn: "modified_on",
1281
+ }),
1282
+ ),
1283
+ Schema.Struct({
1284
+ id: Schema.Literal("challenge_ttl"),
1285
+ value: Schema.Literals([
1286
+ "300",
1287
+ "900",
1288
+ "1800",
1289
+ "2700",
1290
+ "3600",
1291
+ "7200",
1292
+ "10800",
1293
+ "14400",
1294
+ "28800",
1295
+ "57600",
1296
+ "86400",
1297
+ "604800",
1298
+ "2592000",
1299
+ "31536000",
1300
+ ]),
1301
+ editable: Schema.optional(
1302
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1303
+ ),
1304
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1305
+ }).pipe(
1306
+ Schema.encodeKeys({
1307
+ id: "id",
1308
+ value: "value",
1309
+ editable: "editable",
1310
+ modifiedOn: "modified_on",
1311
+ }),
1312
+ ),
1313
+ Schema.Struct({
1314
+ id: Schema.Literal("china_network_enabled"),
1315
+ value: Schema.Literals(["on", "off"]),
1316
+ editable: Schema.optional(
1317
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1318
+ ),
1319
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1320
+ }).pipe(
1321
+ Schema.encodeKeys({
1322
+ id: "id",
1323
+ value: "value",
1324
+ editable: "editable",
1325
+ modifiedOn: "modified_on",
1326
+ }),
1327
+ ),
1328
+ Schema.Struct({
1329
+ id: Schema.Literal("ciphers"),
1330
+ value: Schema.Array(Schema.String),
1331
+ editable: Schema.optional(
1332
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1333
+ ),
1334
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1335
+ }).pipe(
1336
+ Schema.encodeKeys({
1337
+ id: "id",
1338
+ value: "value",
1339
+ editable: "editable",
1340
+ modifiedOn: "modified_on",
1341
+ }),
1342
+ ),
1343
+ Schema.Struct({
1344
+ id: Schema.Literal("cname_flattening"),
1345
+ value: Schema.Literals(["flatten_at_root", "flatten_all"]),
1346
+ editable: Schema.optional(
1347
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1348
+ ),
1349
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1350
+ }).pipe(
1351
+ Schema.encodeKeys({
1352
+ id: "id",
1353
+ value: "value",
1354
+ editable: "editable",
1355
+ modifiedOn: "modified_on",
1356
+ }),
1357
+ ),
1358
+ Schema.Struct({
1359
+ id: Schema.Literal("development_mode"),
1360
+ value: Schema.Literals(["on", "off"]),
1361
+ editable: Schema.optional(
1362
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1363
+ ),
1364
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1365
+ timeRemaining: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1366
+ }).pipe(
1367
+ Schema.encodeKeys({
1368
+ id: "id",
1369
+ value: "value",
1370
+ editable: "editable",
1371
+ modifiedOn: "modified_on",
1372
+ timeRemaining: "time_remaining",
1373
+ }),
1374
+ ),
1375
+ Schema.Struct({
1376
+ id: Schema.Literal("early_hints"),
1377
+ value: Schema.Literals(["on", "off"]),
1378
+ editable: Schema.optional(
1379
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1380
+ ),
1381
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1382
+ }).pipe(
1383
+ Schema.encodeKeys({
1384
+ id: "id",
1385
+ value: "value",
1386
+ editable: "editable",
1387
+ modifiedOn: "modified_on",
1388
+ }),
1389
+ ),
1390
+ Schema.Struct({
1391
+ id: Schema.Literal("edge_cache_ttl"),
1392
+ value: Schema.Literals([
1393
+ "30",
1394
+ "60",
1395
+ "300",
1396
+ "1200",
1397
+ "1800",
1398
+ "3600",
1399
+ "7200",
1400
+ "10800",
1401
+ "14400",
1402
+ "18000",
1403
+ "28800",
1404
+ "43200",
1405
+ "57600",
1406
+ "72000",
1407
+ "86400",
1408
+ "172800",
1409
+ "259200",
1410
+ "345600",
1411
+ "432000",
1412
+ "518400",
1413
+ "604800",
1414
+ ]),
1415
+ editable: Schema.optional(
1416
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1417
+ ),
1418
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1419
+ }).pipe(
1420
+ Schema.encodeKeys({
1421
+ id: "id",
1422
+ value: "value",
1423
+ editable: "editable",
1424
+ modifiedOn: "modified_on",
1425
+ }),
1426
+ ),
1427
+ Schema.Struct({
1428
+ id: Schema.Literal("email_obfuscation"),
1429
+ value: Schema.Literals(["on", "off"]),
1430
+ editable: Schema.optional(
1431
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1432
+ ),
1433
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1434
+ }).pipe(
1435
+ Schema.encodeKeys({
1436
+ id: "id",
1437
+ value: "value",
1438
+ editable: "editable",
1439
+ modifiedOn: "modified_on",
1440
+ }),
1441
+ ),
1442
+ Schema.Struct({
1443
+ id: Schema.Literal("h2_prioritization"),
1444
+ value: Schema.Literals(["on", "off", "custom"]),
1445
+ editable: Schema.optional(
1446
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1447
+ ),
1448
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1449
+ }).pipe(
1450
+ Schema.encodeKeys({
1451
+ id: "id",
1452
+ value: "value",
1453
+ editable: "editable",
1454
+ modifiedOn: "modified_on",
1455
+ }),
1456
+ ),
1457
+ Schema.Struct({
1458
+ id: Schema.Literal("hotlink_protection"),
1459
+ value: Schema.Literals(["on", "off"]),
1460
+ editable: Schema.optional(
1461
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1462
+ ),
1463
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1464
+ }).pipe(
1465
+ Schema.encodeKeys({
1466
+ id: "id",
1467
+ value: "value",
1468
+ editable: "editable",
1469
+ modifiedOn: "modified_on",
1470
+ }),
1471
+ ),
1472
+ Schema.Struct({
1473
+ id: Schema.Literal("http2"),
1474
+ value: Schema.Literals(["on", "off"]),
1475
+ editable: Schema.optional(
1476
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1477
+ ),
1478
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1479
+ }).pipe(
1480
+ Schema.encodeKeys({
1481
+ id: "id",
1482
+ value: "value",
1483
+ editable: "editable",
1484
+ modifiedOn: "modified_on",
1485
+ }),
1486
+ ),
1487
+ Schema.Struct({
1488
+ id: Schema.Literal("http3"),
1489
+ value: Schema.Literals(["on", "off"]),
1490
+ editable: Schema.optional(
1491
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1492
+ ),
1493
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1494
+ }).pipe(
1495
+ Schema.encodeKeys({
1496
+ id: "id",
1497
+ value: "value",
1498
+ editable: "editable",
1499
+ modifiedOn: "modified_on",
1500
+ }),
1501
+ ),
1502
+ Schema.Struct({
1503
+ id: Schema.Literal("image_resizing"),
1504
+ value: Schema.Literals(["on", "off", "open"]),
1505
+ editable: Schema.optional(
1506
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1507
+ ),
1508
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1509
+ }).pipe(
1510
+ Schema.encodeKeys({
1511
+ id: "id",
1512
+ value: "value",
1513
+ editable: "editable",
1514
+ modifiedOn: "modified_on",
1515
+ }),
1516
+ ),
1517
+ Schema.Struct({
1518
+ id: Schema.Literal("ip_geolocation"),
1519
+ value: Schema.Literals(["on", "off"]),
1520
+ editable: Schema.optional(
1521
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1522
+ ),
1523
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1524
+ }).pipe(
1525
+ Schema.encodeKeys({
1526
+ id: "id",
1527
+ value: "value",
1528
+ editable: "editable",
1529
+ modifiedOn: "modified_on",
1530
+ }),
1531
+ ),
1532
+ Schema.Struct({
1533
+ id: Schema.Literal("ipv6"),
1534
+ value: Schema.Literals(["off", "on"]),
1535
+ editable: Schema.optional(
1536
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1537
+ ),
1538
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1539
+ }).pipe(
1540
+ Schema.encodeKeys({
1541
+ id: "id",
1542
+ value: "value",
1543
+ editable: "editable",
1544
+ modifiedOn: "modified_on",
1545
+ }),
1546
+ ),
1547
+ Schema.Struct({
1548
+ id: Schema.Literal("max_upload"),
1549
+ value: Schema.Literals([
1550
+ "100",
1551
+ "125",
1552
+ "150",
1553
+ "175",
1554
+ "200",
1555
+ "225",
1556
+ "250",
1557
+ "275",
1558
+ "300",
1559
+ "325",
1560
+ "350",
1561
+ "375",
1562
+ "400",
1563
+ "425",
1564
+ "450",
1565
+ "475",
1566
+ "500",
1567
+ "1000",
1568
+ ]),
1569
+ editable: Schema.optional(
1570
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1571
+ ),
1572
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1573
+ }).pipe(
1574
+ Schema.encodeKeys({
1575
+ id: "id",
1576
+ value: "value",
1577
+ editable: "editable",
1578
+ modifiedOn: "modified_on",
1579
+ }),
1580
+ ),
1581
+ Schema.Struct({
1582
+ id: Schema.Literal("min_tls_version"),
1583
+ value: Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
1584
+ editable: Schema.optional(
1585
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1586
+ ),
1587
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1588
+ }).pipe(
1589
+ Schema.encodeKeys({
1590
+ id: "id",
1591
+ value: "value",
1592
+ editable: "editable",
1593
+ modifiedOn: "modified_on",
1594
+ }),
1595
+ ),
1596
+ Schema.Struct({
1597
+ id: Schema.Literal("mirage"),
1598
+ value: Schema.Literals(["on", "off"]),
1599
+ editable: Schema.optional(
1600
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1601
+ ),
1602
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1603
+ }).pipe(
1604
+ Schema.encodeKeys({
1605
+ id: "id",
1606
+ value: "value",
1607
+ editable: "editable",
1608
+ modifiedOn: "modified_on",
1609
+ }),
1610
+ ),
1611
+ Schema.Struct({
1612
+ id: Schema.Literal("nel"),
1613
+ value: Schema.Struct({
1614
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1615
+ }),
1616
+ editable: Schema.optional(
1617
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1618
+ ),
1619
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1620
+ }).pipe(
1621
+ Schema.encodeKeys({
1622
+ id: "id",
1623
+ value: "value",
1624
+ editable: "editable",
1625
+ modifiedOn: "modified_on",
1626
+ }),
1627
+ ),
1628
+ Schema.Struct({
1629
+ id: Schema.Literal("opportunistic_encryption"),
1630
+ value: Schema.Literals(["on", "off"]),
1631
+ editable: Schema.optional(
1632
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1633
+ ),
1634
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1635
+ }).pipe(
1636
+ Schema.encodeKeys({
1637
+ id: "id",
1638
+ value: "value",
1639
+ editable: "editable",
1640
+ modifiedOn: "modified_on",
1641
+ }),
1642
+ ),
1643
+ Schema.Struct({
1644
+ id: Schema.Literal("opportunistic_onion"),
1645
+ value: Schema.Literals(["on", "off"]),
1646
+ editable: Schema.optional(
1647
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1648
+ ),
1649
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1650
+ }).pipe(
1651
+ Schema.encodeKeys({
1652
+ id: "id",
1653
+ value: "value",
1654
+ editable: "editable",
1655
+ modifiedOn: "modified_on",
1656
+ }),
1657
+ ),
1658
+ Schema.Struct({
1659
+ id: Schema.Literal("orange_to_orange"),
1660
+ value: Schema.Literals(["on", "off"]),
1661
+ editable: Schema.optional(
1662
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1663
+ ),
1664
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1665
+ }).pipe(
1666
+ Schema.encodeKeys({
1667
+ id: "id",
1668
+ value: "value",
1669
+ editable: "editable",
1670
+ modifiedOn: "modified_on",
1671
+ }),
1672
+ ),
1673
+ Schema.Struct({
1674
+ id: Schema.Literal("origin_error_page_pass_thru"),
1675
+ value: Schema.Literals(["on", "off"]),
1676
+ editable: Schema.optional(
1677
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1678
+ ),
1679
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1680
+ }).pipe(
1681
+ Schema.encodeKeys({
1682
+ id: "id",
1683
+ value: "value",
1684
+ editable: "editable",
1685
+ modifiedOn: "modified_on",
1686
+ }),
1687
+ ),
1688
+ Schema.Struct({
1689
+ id: Schema.Literal("origin_h2_max_streams"),
1690
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1691
+ value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1692
+ }).pipe(
1693
+ Schema.encodeKeys({ id: "id", modifiedOn: "modified_on", value: "value" }),
1694
+ ),
1695
+ Schema.Struct({
1696
+ id: Schema.Literal("origin_max_http_version"),
1697
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1698
+ value: Schema.optional(
1699
+ Schema.Union([Schema.Literals(["2", "1"]), Schema.Null]),
1700
+ ),
1701
+ }).pipe(
1702
+ Schema.encodeKeys({ id: "id", modifiedOn: "modified_on", value: "value" }),
1703
+ ),
1704
+ Schema.Struct({
1705
+ id: Schema.Literal("polish"),
1706
+ value: Schema.Literals(["off", "lossless", "lossy"]),
1707
+ editable: Schema.optional(
1708
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1709
+ ),
1710
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1711
+ }).pipe(
1712
+ Schema.encodeKeys({
1713
+ id: "id",
1714
+ value: "value",
1715
+ editable: "editable",
1716
+ modifiedOn: "modified_on",
1717
+ }),
1718
+ ),
1719
+ Schema.Struct({
1720
+ id: Schema.Literal("prefetch_preload"),
1721
+ value: Schema.Literals(["on", "off"]),
1722
+ editable: Schema.optional(
1723
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1724
+ ),
1725
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1726
+ }).pipe(
1727
+ Schema.encodeKeys({
1728
+ id: "id",
1729
+ value: "value",
1730
+ editable: "editable",
1731
+ modifiedOn: "modified_on",
1732
+ }),
1733
+ ),
1734
+ Schema.Struct({
1735
+ id: Schema.Literal("privacy_pass"),
1736
+ value: Schema.Literals(["on", "off"]),
1737
+ editable: Schema.optional(
1738
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1739
+ ),
1740
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1741
+ }).pipe(
1742
+ Schema.encodeKeys({
1743
+ id: "id",
1744
+ value: "value",
1745
+ editable: "editable",
1746
+ modifiedOn: "modified_on",
1747
+ }),
1748
+ ),
1749
+ Schema.Struct({
1750
+ id: Schema.Literal("proxy_read_timeout"),
1751
+ value: Schema.Number,
1752
+ editable: Schema.optional(
1753
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1754
+ ),
1755
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1756
+ }).pipe(
1757
+ Schema.encodeKeys({
1758
+ id: "id",
1759
+ value: "value",
1760
+ editable: "editable",
1761
+ modifiedOn: "modified_on",
1762
+ }),
1763
+ ),
1764
+ Schema.Struct({
1765
+ id: Schema.Literal("pseudo_ipv4"),
1766
+ value: Schema.Literals(["off", "add_header", "overwrite_header"]),
1767
+ editable: Schema.optional(
1768
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1769
+ ),
1770
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1771
+ }).pipe(
1772
+ Schema.encodeKeys({
1773
+ id: "id",
1774
+ value: "value",
1775
+ editable: "editable",
1776
+ modifiedOn: "modified_on",
1777
+ }),
1778
+ ),
1779
+ Schema.Struct({
1780
+ id: Schema.Literal("replace_insecure_js"),
1781
+ value: Schema.Literals(["on", "off"]),
1782
+ editable: Schema.optional(
1783
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1784
+ ),
1785
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1786
+ }).pipe(
1787
+ Schema.encodeKeys({
1788
+ id: "id",
1789
+ value: "value",
1790
+ editable: "editable",
1791
+ modifiedOn: "modified_on",
1792
+ }),
1793
+ ),
1794
+ Schema.Struct({
1795
+ id: Schema.Literal("response_buffering"),
1796
+ value: Schema.Literals(["on", "off"]),
1797
+ editable: Schema.optional(
1798
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1799
+ ),
1800
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1801
+ }).pipe(
1802
+ Schema.encodeKeys({
1803
+ id: "id",
1804
+ value: "value",
1805
+ editable: "editable",
1806
+ modifiedOn: "modified_on",
1807
+ }),
1808
+ ),
1809
+ Schema.Struct({
1810
+ id: Schema.Literal("rocket_loader"),
1811
+ value: Schema.Literals(["on", "off"]),
1812
+ editable: Schema.optional(
1813
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1814
+ ),
1815
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1816
+ }).pipe(
1817
+ Schema.encodeKeys({
1818
+ id: "id",
1819
+ value: "value",
1820
+ editable: "editable",
1821
+ modifiedOn: "modified_on",
1822
+ }),
1823
+ ),
1824
+ Schema.Struct({
1825
+ id: Schema.Literal("automatic_platform_optimization"),
1826
+ value: Schema.Unknown,
1827
+ editable: Schema.optional(
1828
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1829
+ ),
1830
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1831
+ }).pipe(
1832
+ Schema.encodeKeys({
1833
+ id: "id",
1834
+ value: "value",
1835
+ editable: "editable",
1836
+ modifiedOn: "modified_on",
1837
+ }),
1838
+ ),
1839
+ Schema.Struct({
1840
+ id: Schema.Literal("security_header"),
1841
+ value: Schema.Struct({
1842
+ strictTransportSecurity: Schema.optional(
1843
+ Schema.Union([
1844
+ Schema.Struct({
1845
+ enabled: Schema.optional(
1846
+ Schema.Union([Schema.Boolean, Schema.Null]),
1847
+ ),
1848
+ includeSubdomains: Schema.optional(
1849
+ Schema.Union([Schema.Boolean, Schema.Null]),
1850
+ ),
1851
+ maxAge: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1852
+ nosniff: Schema.optional(
1853
+ Schema.Union([Schema.Boolean, Schema.Null]),
1854
+ ),
1855
+ preload: Schema.optional(
1856
+ Schema.Union([Schema.Boolean, Schema.Null]),
1857
+ ),
1858
+ }).pipe(
1859
+ Schema.encodeKeys({
1860
+ enabled: "enabled",
1861
+ includeSubdomains: "include_subdomains",
1862
+ maxAge: "max_age",
1863
+ nosniff: "nosniff",
1864
+ preload: "preload",
1865
+ }),
1866
+ ),
1867
+ Schema.Null,
1868
+ ]),
1869
+ ),
1870
+ }).pipe(
1871
+ Schema.encodeKeys({
1872
+ strictTransportSecurity: "strict_transport_security",
1873
+ }),
1874
+ ),
1875
+ editable: Schema.optional(
1876
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1877
+ ),
1878
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1879
+ }).pipe(
1880
+ Schema.encodeKeys({
1881
+ id: "id",
1882
+ value: "value",
1883
+ editable: "editable",
1884
+ modifiedOn: "modified_on",
1885
+ }),
1886
+ ),
1887
+ Schema.Struct({
1888
+ id: Schema.Literal("security_level"),
1889
+ value: Schema.Literals([
1890
+ "off",
1891
+ "essentially_off",
1892
+ "low",
1893
+ "medium",
1894
+ "high",
1895
+ "under_attack",
1896
+ ]),
1897
+ editable: Schema.optional(
1898
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1899
+ ),
1900
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1901
+ }).pipe(
1902
+ Schema.encodeKeys({
1903
+ id: "id",
1904
+ value: "value",
1905
+ editable: "editable",
1906
+ modifiedOn: "modified_on",
1907
+ }),
1908
+ ),
1909
+ Schema.Struct({
1910
+ id: Schema.Literal("server_side_exclude"),
1911
+ value: Schema.Literals(["on", "off"]),
1912
+ editable: Schema.optional(
1913
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1914
+ ),
1915
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1916
+ }).pipe(
1917
+ Schema.encodeKeys({
1918
+ id: "id",
1919
+ value: "value",
1920
+ editable: "editable",
1921
+ modifiedOn: "modified_on",
1922
+ }),
1923
+ ),
1924
+ Schema.Struct({
1925
+ id: Schema.Literal("sha1_support"),
1926
+ value: Schema.Literals(["off", "on"]),
1927
+ editable: Schema.optional(
1928
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1929
+ ),
1930
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1931
+ }).pipe(
1932
+ Schema.encodeKeys({
1933
+ id: "id",
1934
+ value: "value",
1935
+ editable: "editable",
1936
+ modifiedOn: "modified_on",
1937
+ }),
1938
+ ),
1939
+ Schema.Struct({
1940
+ id: Schema.Literal("sort_query_string_for_cache"),
1941
+ value: Schema.Literals(["on", "off"]),
1942
+ editable: Schema.optional(
1943
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1944
+ ),
1945
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1946
+ }).pipe(
1947
+ Schema.encodeKeys({
1948
+ id: "id",
1949
+ value: "value",
1950
+ editable: "editable",
1951
+ modifiedOn: "modified_on",
1952
+ }),
1953
+ ),
1954
+ Schema.Struct({
1955
+ id: Schema.Literal("ssl"),
1956
+ value: Schema.Literals(["off", "flexible", "full", "strict"]),
1957
+ editable: Schema.optional(
1958
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1959
+ ),
1960
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1961
+ }).pipe(
1962
+ Schema.encodeKeys({
1963
+ id: "id",
1964
+ value: "value",
1965
+ editable: "editable",
1966
+ modifiedOn: "modified_on",
1967
+ }),
1968
+ ),
1969
+ Schema.Struct({
1970
+ id: Schema.optional(
1971
+ Schema.Union([Schema.Literal("ssl_recommender"), Schema.Null]),
1972
+ ),
1973
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1974
+ }),
1975
+ Schema.Struct({
1976
+ id: Schema.Literal("tls_1_2_only"),
1977
+ value: Schema.Literals(["off", "on"]),
1978
+ editable: Schema.optional(
1979
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1980
+ ),
1981
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1982
+ }).pipe(
1983
+ Schema.encodeKeys({
1984
+ id: "id",
1985
+ value: "value",
1986
+ editable: "editable",
1987
+ modifiedOn: "modified_on",
1988
+ }),
1989
+ ),
1990
+ Schema.Struct({
1991
+ id: Schema.Literal("tls_1_3"),
1992
+ value: Schema.Literals(["on", "off", "zrt"]),
1993
+ editable: Schema.optional(
1994
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
1995
+ ),
1996
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1997
+ }).pipe(
1998
+ Schema.encodeKeys({
1999
+ id: "id",
2000
+ value: "value",
2001
+ editable: "editable",
2002
+ modifiedOn: "modified_on",
2003
+ }),
2004
+ ),
2005
+ Schema.Struct({
2006
+ id: Schema.Literal("tls_client_auth"),
2007
+ value: Schema.Literals(["on", "off"]),
2008
+ editable: Schema.optional(
2009
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2010
+ ),
2011
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2012
+ }).pipe(
2013
+ Schema.encodeKeys({
2014
+ id: "id",
2015
+ value: "value",
2016
+ editable: "editable",
2017
+ modifiedOn: "modified_on",
2018
+ }),
2019
+ ),
2020
+ Schema.Struct({
2021
+ id: Schema.Literal("transformations"),
2022
+ value: Schema.Literals(["on", "off", "open"]),
2023
+ editable: Schema.optional(
2024
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2025
+ ),
2026
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2027
+ }).pipe(
2028
+ Schema.encodeKeys({
2029
+ id: "id",
2030
+ value: "value",
2031
+ editable: "editable",
2032
+ modifiedOn: "modified_on",
2033
+ }),
2034
+ ),
2035
+ Schema.Struct({
2036
+ id: Schema.Literal("transformations_allowed_origins"),
2037
+ value: Schema.String,
2038
+ editable: Schema.optional(
2039
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2040
+ ),
2041
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2042
+ }).pipe(
2043
+ Schema.encodeKeys({
2044
+ id: "id",
2045
+ value: "value",
2046
+ editable: "editable",
2047
+ modifiedOn: "modified_on",
2048
+ }),
2049
+ ),
2050
+ Schema.Struct({
2051
+ id: Schema.Literal("true_client_ip_header"),
2052
+ value: Schema.Literals(["on", "off"]),
2053
+ editable: Schema.optional(
2054
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2055
+ ),
2056
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2057
+ }).pipe(
2058
+ Schema.encodeKeys({
2059
+ id: "id",
2060
+ value: "value",
2061
+ editable: "editable",
2062
+ modifiedOn: "modified_on",
2063
+ }),
2064
+ ),
2065
+ Schema.Struct({
2066
+ id: Schema.Literal("waf"),
2067
+ value: Schema.Literals(["on", "off"]),
2068
+ editable: Schema.optional(
2069
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2070
+ ),
2071
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2072
+ }).pipe(
2073
+ Schema.encodeKeys({
2074
+ id: "id",
2075
+ value: "value",
2076
+ editable: "editable",
2077
+ modifiedOn: "modified_on",
2078
+ }),
2079
+ ),
2080
+ Schema.Struct({
2081
+ id: Schema.Literal("webp"),
2082
+ value: Schema.Literals(["off", "on"]),
2083
+ editable: Schema.optional(
2084
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2085
+ ),
2086
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2087
+ }).pipe(
2088
+ Schema.encodeKeys({
2089
+ id: "id",
2090
+ value: "value",
2091
+ editable: "editable",
2092
+ modifiedOn: "modified_on",
2093
+ }),
2094
+ ),
2095
+ Schema.Struct({
2096
+ id: Schema.Literal("websockets"),
2097
+ value: Schema.Literals(["off", "on"]),
2098
+ editable: Schema.optional(
2099
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2100
+ ),
2101
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2102
+ }).pipe(
2103
+ Schema.encodeKeys({
2104
+ id: "id",
2105
+ value: "value",
2106
+ editable: "editable",
2107
+ modifiedOn: "modified_on",
2108
+ }),
2109
+ ),
2110
+ ]) as unknown as Schema.Schema<GetSettingResponse>;
2111
+
2112
+ export type GetSettingError = DefaultErrors;
2113
+
2114
+ export const getSetting: API.OperationMethod<
2115
+ GetSettingRequest,
2116
+ GetSettingResponse,
2117
+ GetSettingError,
2118
+ Credentials | HttpClient.HttpClient
2119
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2120
+ input: GetSettingRequest,
2121
+ output: GetSettingResponse,
2122
+ errors: [],
2123
+ }));
2124
+
2125
+ export interface PatchSettingRequest {
2126
+ settingId: string;
2127
+ /** Path param: Identifier */
2128
+ zoneId: string;
2129
+ /** Body param: ssl-recommender enrollment setting. */
2130
+ enabled?: boolean;
2131
+ }
2132
+
2133
+ export const PatchSettingRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2134
+ settingId: Schema.String.pipe(T.HttpPath("settingId")),
2135
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
2136
+ enabled: Schema.optional(Schema.Boolean),
2137
+ }).pipe(
2138
+ T.Http({ method: "PATCH", path: "/zones/{zone_id}/settings/{settingId}" }),
2139
+ ) as unknown as Schema.Schema<PatchSettingRequest>;
2140
+
2141
+ export type PatchSettingResponse =
2142
+ | {
2143
+ id: "0rtt";
2144
+ value: "on" | "off";
2145
+ editable?: true | false | null;
2146
+ modifiedOn?: string | null;
2147
+ }
2148
+ | {
2149
+ id: "advanced_ddos";
2150
+ value: "on" | "off";
2151
+ editable?: true | false | null;
2152
+ modifiedOn?: string | null;
2153
+ }
2154
+ | {
2155
+ id: "aegis";
2156
+ modifiedOn?: string | null;
2157
+ value?: { enabled?: boolean | null; poolId?: string | null } | null;
2158
+ }
2159
+ | {
2160
+ id: "always_online";
2161
+ value: "on" | "off";
2162
+ editable?: true | false | null;
2163
+ modifiedOn?: string | null;
2164
+ }
2165
+ | {
2166
+ id: "always_use_https";
2167
+ value: "on" | "off";
2168
+ editable?: true | false | null;
2169
+ modifiedOn?: string | null;
2170
+ }
2171
+ | {
2172
+ id: "automatic_https_rewrites";
2173
+ value: "on" | "off";
2174
+ editable?: true | false | null;
2175
+ modifiedOn?: string | null;
2176
+ }
2177
+ | {
2178
+ id: "brotli";
2179
+ value: "off" | "on";
2180
+ editable?: true | false | null;
2181
+ modifiedOn?: string | null;
2182
+ }
2183
+ | {
2184
+ id: "browser_cache_ttl";
2185
+ value: number;
2186
+ editable?: true | false | null;
2187
+ modifiedOn?: string | null;
2188
+ }
2189
+ | {
2190
+ id: "browser_check";
2191
+ value: "on" | "off";
2192
+ editable?: true | false | null;
2193
+ modifiedOn?: string | null;
2194
+ }
2195
+ | {
2196
+ id: "cache_level";
2197
+ value: "aggressive" | "basic" | "simplified";
2198
+ editable?: true | false | null;
2199
+ modifiedOn?: string | null;
2200
+ }
2201
+ | {
2202
+ id: "challenge_ttl";
2203
+ value:
2204
+ | "300"
2205
+ | "900"
2206
+ | "1800"
2207
+ | "2700"
2208
+ | "3600"
2209
+ | "7200"
2210
+ | "10800"
2211
+ | "14400"
2212
+ | "28800"
2213
+ | "57600"
2214
+ | "86400"
2215
+ | "604800"
2216
+ | "2592000"
2217
+ | "31536000";
2218
+ editable?: true | false | null;
2219
+ modifiedOn?: string | null;
2220
+ }
2221
+ | {
2222
+ id: "china_network_enabled";
2223
+ value: "on" | "off";
2224
+ editable?: true | false | null;
2225
+ modifiedOn?: string | null;
2226
+ }
2227
+ | {
2228
+ id: "ciphers";
2229
+ value: string[];
2230
+ editable?: true | false | null;
2231
+ modifiedOn?: string | null;
2232
+ }
2233
+ | {
2234
+ id: "cname_flattening";
2235
+ value: "flatten_at_root" | "flatten_all";
2236
+ editable?: true | false | null;
2237
+ modifiedOn?: string | null;
2238
+ }
2239
+ | {
2240
+ id: "development_mode";
2241
+ value: "on" | "off";
2242
+ editable?: true | false | null;
2243
+ modifiedOn?: string | null;
2244
+ timeRemaining?: number | null;
2245
+ }
2246
+ | {
2247
+ id: "early_hints";
2248
+ value: "on" | "off";
2249
+ editable?: true | false | null;
2250
+ modifiedOn?: string | null;
2251
+ }
2252
+ | {
2253
+ id: "edge_cache_ttl";
2254
+ value:
2255
+ | "30"
2256
+ | "60"
2257
+ | "300"
2258
+ | "1200"
2259
+ | "1800"
2260
+ | "3600"
2261
+ | "7200"
2262
+ | "10800"
2263
+ | "14400"
2264
+ | "18000"
2265
+ | "28800"
2266
+ | "43200"
2267
+ | "57600"
2268
+ | "72000"
2269
+ | "86400"
2270
+ | "172800"
2271
+ | "259200"
2272
+ | "345600"
2273
+ | "432000"
2274
+ | "518400"
2275
+ | "604800";
2276
+ editable?: true | false | null;
2277
+ modifiedOn?: string | null;
2278
+ }
2279
+ | {
2280
+ id: "email_obfuscation";
2281
+ value: "on" | "off";
2282
+ editable?: true | false | null;
2283
+ modifiedOn?: string | null;
2284
+ }
2285
+ | {
2286
+ id: "h2_prioritization";
2287
+ value: "on" | "off" | "custom";
2288
+ editable?: true | false | null;
2289
+ modifiedOn?: string | null;
2290
+ }
2291
+ | {
2292
+ id: "hotlink_protection";
2293
+ value: "on" | "off";
2294
+ editable?: true | false | null;
2295
+ modifiedOn?: string | null;
2296
+ }
2297
+ | {
2298
+ id: "http2";
2299
+ value: "on" | "off";
2300
+ editable?: true | false | null;
2301
+ modifiedOn?: string | null;
2302
+ }
2303
+ | {
2304
+ id: "http3";
2305
+ value: "on" | "off";
2306
+ editable?: true | false | null;
2307
+ modifiedOn?: string | null;
2308
+ }
2309
+ | {
2310
+ id: "image_resizing";
2311
+ value: "on" | "off" | "open";
2312
+ editable?: true | false | null;
2313
+ modifiedOn?: string | null;
2314
+ }
2315
+ | {
2316
+ id: "ip_geolocation";
2317
+ value: "on" | "off";
2318
+ editable?: true | false | null;
2319
+ modifiedOn?: string | null;
2320
+ }
2321
+ | {
2322
+ id: "ipv6";
2323
+ value: "off" | "on";
2324
+ editable?: true | false | null;
2325
+ modifiedOn?: string | null;
2326
+ }
2327
+ | {
2328
+ id: "max_upload";
2329
+ value:
2330
+ | "100"
2331
+ | "125"
2332
+ | "150"
2333
+ | "175"
2334
+ | "200"
2335
+ | "225"
2336
+ | "250"
2337
+ | "275"
2338
+ | "300"
2339
+ | "325"
2340
+ | "350"
2341
+ | "375"
2342
+ | "400"
2343
+ | "425"
2344
+ | "450"
2345
+ | "475"
2346
+ | "500"
2347
+ | "1000";
2348
+ editable?: true | false | null;
2349
+ modifiedOn?: string | null;
2350
+ }
2351
+ | {
2352
+ id: "min_tls_version";
2353
+ value: "1.0" | "1.1" | "1.2" | "1.3";
2354
+ editable?: true | false | null;
2355
+ modifiedOn?: string | null;
2356
+ }
2357
+ | {
2358
+ id: "mirage";
2359
+ value: "on" | "off";
2360
+ editable?: true | false | null;
2361
+ modifiedOn?: string | null;
2362
+ }
2363
+ | {
2364
+ id: "nel";
2365
+ value: { enabled?: boolean | null };
2366
+ editable?: true | false | null;
2367
+ modifiedOn?: string | null;
2368
+ }
2369
+ | {
2370
+ id: "opportunistic_encryption";
2371
+ value: "on" | "off";
2372
+ editable?: true | false | null;
2373
+ modifiedOn?: string | null;
2374
+ }
2375
+ | {
2376
+ id: "opportunistic_onion";
2377
+ value: "on" | "off";
2378
+ editable?: true | false | null;
2379
+ modifiedOn?: string | null;
2380
+ }
2381
+ | {
2382
+ id: "orange_to_orange";
2383
+ value: "on" | "off";
2384
+ editable?: true | false | null;
2385
+ modifiedOn?: string | null;
2386
+ }
2387
+ | {
2388
+ id: "origin_error_page_pass_thru";
2389
+ value: "on" | "off";
2390
+ editable?: true | false | null;
2391
+ modifiedOn?: string | null;
2392
+ }
2393
+ | {
2394
+ id: "origin_h2_max_streams";
2395
+ modifiedOn?: string | null;
2396
+ value?: number | null;
2397
+ }
2398
+ | {
2399
+ id: "origin_max_http_version";
2400
+ modifiedOn?: string | null;
2401
+ value?: "2" | "1" | null;
2402
+ }
2403
+ | {
2404
+ id: "polish";
2405
+ value: "off" | "lossless" | "lossy";
2406
+ editable?: true | false | null;
2407
+ modifiedOn?: string | null;
2408
+ }
2409
+ | {
2410
+ id: "prefetch_preload";
2411
+ value: "on" | "off";
2412
+ editable?: true | false | null;
2413
+ modifiedOn?: string | null;
2414
+ }
2415
+ | {
2416
+ id: "privacy_pass";
2417
+ value: "on" | "off";
2418
+ editable?: true | false | null;
2419
+ modifiedOn?: string | null;
2420
+ }
2421
+ | {
2422
+ id: "proxy_read_timeout";
2423
+ value: number;
2424
+ editable?: true | false | null;
2425
+ modifiedOn?: string | null;
2426
+ }
2427
+ | {
2428
+ id: "pseudo_ipv4";
2429
+ value: "off" | "add_header" | "overwrite_header";
2430
+ editable?: true | false | null;
2431
+ modifiedOn?: string | null;
2432
+ }
2433
+ | {
2434
+ id: "replace_insecure_js";
2435
+ value: "on" | "off";
2436
+ editable?: true | false | null;
2437
+ modifiedOn?: string | null;
2438
+ }
2439
+ | {
2440
+ id: "response_buffering";
2441
+ value: "on" | "off";
2442
+ editable?: true | false | null;
2443
+ modifiedOn?: string | null;
2444
+ }
2445
+ | {
2446
+ id: "rocket_loader";
2447
+ value: "on" | "off";
2448
+ editable?: true | false | null;
2449
+ modifiedOn?: string | null;
2450
+ }
2451
+ | {
2452
+ id: "automatic_platform_optimization";
2453
+ value: unknown;
2454
+ editable?: true | false | null;
2455
+ modifiedOn?: string | null;
2456
+ }
2457
+ | {
2458
+ id: "security_header";
2459
+ value: {
2460
+ strictTransportSecurity?: {
2461
+ enabled?: boolean | null;
2462
+ includeSubdomains?: boolean | null;
2463
+ maxAge?: number | null;
2464
+ nosniff?: boolean | null;
2465
+ preload?: boolean | null;
2466
+ } | null;
2467
+ };
2468
+ editable?: true | false | null;
2469
+ modifiedOn?: string | null;
2470
+ }
2471
+ | {
2472
+ id: "security_level";
2473
+ value:
2474
+ | "off"
2475
+ | "essentially_off"
2476
+ | "low"
2477
+ | "medium"
2478
+ | "high"
2479
+ | "under_attack";
2480
+ editable?: true | false | null;
2481
+ modifiedOn?: string | null;
2482
+ }
2483
+ | {
2484
+ id: "server_side_exclude";
2485
+ value: "on" | "off";
2486
+ editable?: true | false | null;
2487
+ modifiedOn?: string | null;
2488
+ }
2489
+ | {
2490
+ id: "sha1_support";
2491
+ value: "off" | "on";
2492
+ editable?: true | false | null;
2493
+ modifiedOn?: string | null;
2494
+ }
2495
+ | {
2496
+ id: "sort_query_string_for_cache";
2497
+ value: "on" | "off";
2498
+ editable?: true | false | null;
2499
+ modifiedOn?: string | null;
2500
+ }
2501
+ | {
2502
+ id: "ssl";
2503
+ value: "off" | "flexible" | "full" | "strict";
2504
+ editable?: true | false | null;
2505
+ modifiedOn?: string | null;
2506
+ }
2507
+ | { id?: "ssl_recommender" | null; enabled?: boolean | null }
2508
+ | {
2509
+ id: "tls_1_2_only";
2510
+ value: "off" | "on";
2511
+ editable?: true | false | null;
2512
+ modifiedOn?: string | null;
2513
+ }
2514
+ | {
2515
+ id: "tls_1_3";
2516
+ value: "on" | "off" | "zrt";
2517
+ editable?: true | false | null;
2518
+ modifiedOn?: string | null;
2519
+ }
2520
+ | {
2521
+ id: "tls_client_auth";
2522
+ value: "on" | "off";
2523
+ editable?: true | false | null;
2524
+ modifiedOn?: string | null;
2525
+ }
2526
+ | {
2527
+ id: "transformations";
2528
+ value: "on" | "off" | "open";
2529
+ editable?: true | false | null;
2530
+ modifiedOn?: string | null;
2531
+ }
2532
+ | {
2533
+ id: "transformations_allowed_origins";
2534
+ value: string;
2535
+ editable?: true | false | null;
2536
+ modifiedOn?: string | null;
2537
+ }
2538
+ | {
2539
+ id: "true_client_ip_header";
2540
+ value: "on" | "off";
2541
+ editable?: true | false | null;
2542
+ modifiedOn?: string | null;
2543
+ }
2544
+ | {
2545
+ id: "waf";
2546
+ value: "on" | "off";
2547
+ editable?: true | false | null;
2548
+ modifiedOn?: string | null;
2549
+ }
2550
+ | {
2551
+ id: "webp";
2552
+ value: "off" | "on";
2553
+ editable?: true | false | null;
2554
+ modifiedOn?: string | null;
2555
+ }
2556
+ | {
2557
+ id: "websockets";
2558
+ value: "off" | "on";
2559
+ editable?: true | false | null;
2560
+ modifiedOn?: string | null;
2561
+ };
2562
+
2563
+ export const PatchSettingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
2564
+ Schema.Struct({
2565
+ id: Schema.Literal("0rtt"),
2566
+ value: Schema.Literals(["on", "off"]),
2567
+ editable: Schema.optional(
2568
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2569
+ ),
2570
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2571
+ }).pipe(
2572
+ Schema.encodeKeys({
2573
+ id: "id",
2574
+ value: "value",
2575
+ editable: "editable",
2576
+ modifiedOn: "modified_on",
2577
+ }),
2578
+ ),
2579
+ Schema.Struct({
2580
+ id: Schema.Literal("advanced_ddos"),
2581
+ value: Schema.Literals(["on", "off"]),
2582
+ editable: Schema.optional(
2583
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2584
+ ),
2585
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2586
+ }).pipe(
2587
+ Schema.encodeKeys({
2588
+ id: "id",
2589
+ value: "value",
2590
+ editable: "editable",
2591
+ modifiedOn: "modified_on",
2592
+ }),
2593
+ ),
2594
+ Schema.Struct({
2595
+ id: Schema.Literal("aegis"),
2596
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2597
+ value: Schema.optional(
2598
+ Schema.Union([
2599
+ Schema.Struct({
2600
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2601
+ poolId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2602
+ }).pipe(Schema.encodeKeys({ enabled: "enabled", poolId: "pool_id" })),
2603
+ Schema.Null,
2604
+ ]),
2605
+ ),
2606
+ }).pipe(
2607
+ Schema.encodeKeys({ id: "id", modifiedOn: "modified_on", value: "value" }),
2608
+ ),
2609
+ Schema.Struct({
2610
+ id: Schema.Literal("always_online"),
2611
+ value: Schema.Literals(["on", "off"]),
2612
+ editable: Schema.optional(
2613
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2614
+ ),
2615
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2616
+ }).pipe(
2617
+ Schema.encodeKeys({
2618
+ id: "id",
2619
+ value: "value",
2620
+ editable: "editable",
2621
+ modifiedOn: "modified_on",
2622
+ }),
2623
+ ),
2624
+ Schema.Struct({
2625
+ id: Schema.Literal("always_use_https"),
2626
+ value: Schema.Literals(["on", "off"]),
2627
+ editable: Schema.optional(
2628
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2629
+ ),
2630
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2631
+ }).pipe(
2632
+ Schema.encodeKeys({
2633
+ id: "id",
2634
+ value: "value",
2635
+ editable: "editable",
2636
+ modifiedOn: "modified_on",
2637
+ }),
2638
+ ),
2639
+ Schema.Struct({
2640
+ id: Schema.Literal("automatic_https_rewrites"),
2641
+ value: Schema.Literals(["on", "off"]),
2642
+ editable: Schema.optional(
2643
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2644
+ ),
2645
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2646
+ }).pipe(
2647
+ Schema.encodeKeys({
2648
+ id: "id",
2649
+ value: "value",
2650
+ editable: "editable",
2651
+ modifiedOn: "modified_on",
2652
+ }),
2653
+ ),
2654
+ Schema.Struct({
2655
+ id: Schema.Literal("brotli"),
2656
+ value: Schema.Literals(["off", "on"]),
2657
+ editable: Schema.optional(
2658
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2659
+ ),
2660
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2661
+ }).pipe(
2662
+ Schema.encodeKeys({
2663
+ id: "id",
2664
+ value: "value",
2665
+ editable: "editable",
2666
+ modifiedOn: "modified_on",
2667
+ }),
2668
+ ),
2669
+ Schema.Struct({
2670
+ id: Schema.Literal("browser_cache_ttl"),
2671
+ value: Schema.Number,
2672
+ editable: Schema.optional(
2673
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2674
+ ),
2675
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2676
+ }).pipe(
2677
+ Schema.encodeKeys({
2678
+ id: "id",
2679
+ value: "value",
2680
+ editable: "editable",
2681
+ modifiedOn: "modified_on",
2682
+ }),
2683
+ ),
2684
+ Schema.Struct({
2685
+ id: Schema.Literal("browser_check"),
2686
+ value: Schema.Literals(["on", "off"]),
2687
+ editable: Schema.optional(
2688
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2689
+ ),
2690
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2691
+ }).pipe(
2692
+ Schema.encodeKeys({
2693
+ id: "id",
2694
+ value: "value",
2695
+ editable: "editable",
2696
+ modifiedOn: "modified_on",
2697
+ }),
2698
+ ),
2699
+ Schema.Struct({
2700
+ id: Schema.Literal("cache_level"),
2701
+ value: Schema.Literals(["aggressive", "basic", "simplified"]),
2702
+ editable: Schema.optional(
2703
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2704
+ ),
2705
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2706
+ }).pipe(
2707
+ Schema.encodeKeys({
2708
+ id: "id",
2709
+ value: "value",
2710
+ editable: "editable",
2711
+ modifiedOn: "modified_on",
2712
+ }),
2713
+ ),
2714
+ Schema.Struct({
2715
+ id: Schema.Literal("challenge_ttl"),
2716
+ value: Schema.Literals([
2717
+ "300",
2718
+ "900",
2719
+ "1800",
2720
+ "2700",
2721
+ "3600",
2722
+ "7200",
2723
+ "10800",
2724
+ "14400",
2725
+ "28800",
2726
+ "57600",
2727
+ "86400",
2728
+ "604800",
2729
+ "2592000",
2730
+ "31536000",
2731
+ ]),
2732
+ editable: Schema.optional(
2733
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2734
+ ),
2735
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2736
+ }).pipe(
2737
+ Schema.encodeKeys({
2738
+ id: "id",
2739
+ value: "value",
2740
+ editable: "editable",
2741
+ modifiedOn: "modified_on",
2742
+ }),
2743
+ ),
2744
+ Schema.Struct({
2745
+ id: Schema.Literal("china_network_enabled"),
2746
+ value: Schema.Literals(["on", "off"]),
2747
+ editable: Schema.optional(
2748
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2749
+ ),
2750
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2751
+ }).pipe(
2752
+ Schema.encodeKeys({
2753
+ id: "id",
2754
+ value: "value",
2755
+ editable: "editable",
2756
+ modifiedOn: "modified_on",
2757
+ }),
2758
+ ),
2759
+ Schema.Struct({
2760
+ id: Schema.Literal("ciphers"),
2761
+ value: Schema.Array(Schema.String),
2762
+ editable: Schema.optional(
2763
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2764
+ ),
2765
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2766
+ }).pipe(
2767
+ Schema.encodeKeys({
2768
+ id: "id",
2769
+ value: "value",
2770
+ editable: "editable",
2771
+ modifiedOn: "modified_on",
2772
+ }),
2773
+ ),
2774
+ Schema.Struct({
2775
+ id: Schema.Literal("cname_flattening"),
2776
+ value: Schema.Literals(["flatten_at_root", "flatten_all"]),
2777
+ editable: Schema.optional(
2778
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2779
+ ),
2780
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2781
+ }).pipe(
2782
+ Schema.encodeKeys({
2783
+ id: "id",
2784
+ value: "value",
2785
+ editable: "editable",
2786
+ modifiedOn: "modified_on",
2787
+ }),
2788
+ ),
2789
+ Schema.Struct({
2790
+ id: Schema.Literal("development_mode"),
2791
+ value: Schema.Literals(["on", "off"]),
2792
+ editable: Schema.optional(
2793
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2794
+ ),
2795
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2796
+ timeRemaining: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2797
+ }).pipe(
2798
+ Schema.encodeKeys({
2799
+ id: "id",
2800
+ value: "value",
2801
+ editable: "editable",
2802
+ modifiedOn: "modified_on",
2803
+ timeRemaining: "time_remaining",
2804
+ }),
2805
+ ),
2806
+ Schema.Struct({
2807
+ id: Schema.Literal("early_hints"),
2808
+ value: Schema.Literals(["on", "off"]),
2809
+ editable: Schema.optional(
2810
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2811
+ ),
2812
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2813
+ }).pipe(
2814
+ Schema.encodeKeys({
2815
+ id: "id",
2816
+ value: "value",
2817
+ editable: "editable",
2818
+ modifiedOn: "modified_on",
2819
+ }),
2820
+ ),
2821
+ Schema.Struct({
2822
+ id: Schema.Literal("edge_cache_ttl"),
2823
+ value: Schema.Literals([
2824
+ "30",
2825
+ "60",
2826
+ "300",
2827
+ "1200",
2828
+ "1800",
2829
+ "3600",
2830
+ "7200",
2831
+ "10800",
2832
+ "14400",
2833
+ "18000",
2834
+ "28800",
2835
+ "43200",
2836
+ "57600",
2837
+ "72000",
2838
+ "86400",
2839
+ "172800",
2840
+ "259200",
2841
+ "345600",
2842
+ "432000",
2843
+ "518400",
2844
+ "604800",
2845
+ ]),
2846
+ editable: Schema.optional(
2847
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2848
+ ),
2849
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2850
+ }).pipe(
2851
+ Schema.encodeKeys({
2852
+ id: "id",
2853
+ value: "value",
2854
+ editable: "editable",
2855
+ modifiedOn: "modified_on",
2856
+ }),
2857
+ ),
2858
+ Schema.Struct({
2859
+ id: Schema.Literal("email_obfuscation"),
2860
+ value: Schema.Literals(["on", "off"]),
2861
+ editable: Schema.optional(
2862
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2863
+ ),
2864
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2865
+ }).pipe(
2866
+ Schema.encodeKeys({
2867
+ id: "id",
2868
+ value: "value",
2869
+ editable: "editable",
2870
+ modifiedOn: "modified_on",
2871
+ }),
2872
+ ),
2873
+ Schema.Struct({
2874
+ id: Schema.Literal("h2_prioritization"),
2875
+ value: Schema.Literals(["on", "off", "custom"]),
2876
+ editable: Schema.optional(
2877
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2878
+ ),
2879
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2880
+ }).pipe(
2881
+ Schema.encodeKeys({
2882
+ id: "id",
2883
+ value: "value",
2884
+ editable: "editable",
2885
+ modifiedOn: "modified_on",
2886
+ }),
2887
+ ),
2888
+ Schema.Struct({
2889
+ id: Schema.Literal("hotlink_protection"),
2890
+ value: Schema.Literals(["on", "off"]),
2891
+ editable: Schema.optional(
2892
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2893
+ ),
2894
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2895
+ }).pipe(
2896
+ Schema.encodeKeys({
2897
+ id: "id",
2898
+ value: "value",
2899
+ editable: "editable",
2900
+ modifiedOn: "modified_on",
2901
+ }),
2902
+ ),
2903
+ Schema.Struct({
2904
+ id: Schema.Literal("http2"),
2905
+ value: Schema.Literals(["on", "off"]),
2906
+ editable: Schema.optional(
2907
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2908
+ ),
2909
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2910
+ }).pipe(
2911
+ Schema.encodeKeys({
2912
+ id: "id",
2913
+ value: "value",
2914
+ editable: "editable",
2915
+ modifiedOn: "modified_on",
2916
+ }),
2917
+ ),
2918
+ Schema.Struct({
2919
+ id: Schema.Literal("http3"),
2920
+ value: Schema.Literals(["on", "off"]),
2921
+ editable: Schema.optional(
2922
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2923
+ ),
2924
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2925
+ }).pipe(
2926
+ Schema.encodeKeys({
2927
+ id: "id",
2928
+ value: "value",
2929
+ editable: "editable",
2930
+ modifiedOn: "modified_on",
2931
+ }),
2932
+ ),
2933
+ Schema.Struct({
2934
+ id: Schema.Literal("image_resizing"),
2935
+ value: Schema.Literals(["on", "off", "open"]),
2936
+ editable: Schema.optional(
2937
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2938
+ ),
2939
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2940
+ }).pipe(
2941
+ Schema.encodeKeys({
2942
+ id: "id",
2943
+ value: "value",
2944
+ editable: "editable",
2945
+ modifiedOn: "modified_on",
2946
+ }),
2947
+ ),
2948
+ Schema.Struct({
2949
+ id: Schema.Literal("ip_geolocation"),
2950
+ value: Schema.Literals(["on", "off"]),
2951
+ editable: Schema.optional(
2952
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2953
+ ),
2954
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2955
+ }).pipe(
2956
+ Schema.encodeKeys({
2957
+ id: "id",
2958
+ value: "value",
2959
+ editable: "editable",
2960
+ modifiedOn: "modified_on",
2961
+ }),
2962
+ ),
2963
+ Schema.Struct({
2964
+ id: Schema.Literal("ipv6"),
2965
+ value: Schema.Literals(["off", "on"]),
2966
+ editable: Schema.optional(
2967
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
2968
+ ),
2969
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2970
+ }).pipe(
2971
+ Schema.encodeKeys({
2972
+ id: "id",
2973
+ value: "value",
2974
+ editable: "editable",
2975
+ modifiedOn: "modified_on",
2976
+ }),
2977
+ ),
2978
+ Schema.Struct({
2979
+ id: Schema.Literal("max_upload"),
2980
+ value: Schema.Literals([
2981
+ "100",
2982
+ "125",
2983
+ "150",
2984
+ "175",
2985
+ "200",
2986
+ "225",
2987
+ "250",
2988
+ "275",
2989
+ "300",
2990
+ "325",
2991
+ "350",
2992
+ "375",
2993
+ "400",
2994
+ "425",
2995
+ "450",
2996
+ "475",
2997
+ "500",
2998
+ "1000",
2999
+ ]),
3000
+ editable: Schema.optional(
3001
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3002
+ ),
3003
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3004
+ }).pipe(
3005
+ Schema.encodeKeys({
3006
+ id: "id",
3007
+ value: "value",
3008
+ editable: "editable",
3009
+ modifiedOn: "modified_on",
3010
+ }),
3011
+ ),
3012
+ Schema.Struct({
3013
+ id: Schema.Literal("min_tls_version"),
3014
+ value: Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
3015
+ editable: Schema.optional(
3016
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3017
+ ),
3018
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3019
+ }).pipe(
3020
+ Schema.encodeKeys({
3021
+ id: "id",
3022
+ value: "value",
3023
+ editable: "editable",
3024
+ modifiedOn: "modified_on",
3025
+ }),
3026
+ ),
3027
+ Schema.Struct({
3028
+ id: Schema.Literal("mirage"),
3029
+ value: Schema.Literals(["on", "off"]),
3030
+ editable: Schema.optional(
3031
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3032
+ ),
3033
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3034
+ }).pipe(
3035
+ Schema.encodeKeys({
3036
+ id: "id",
3037
+ value: "value",
3038
+ editable: "editable",
3039
+ modifiedOn: "modified_on",
3040
+ }),
3041
+ ),
3042
+ Schema.Struct({
3043
+ id: Schema.Literal("nel"),
3044
+ value: Schema.Struct({
3045
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3046
+ }),
3047
+ editable: Schema.optional(
3048
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3049
+ ),
3050
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3051
+ }).pipe(
3052
+ Schema.encodeKeys({
3053
+ id: "id",
3054
+ value: "value",
3055
+ editable: "editable",
3056
+ modifiedOn: "modified_on",
3057
+ }),
3058
+ ),
3059
+ Schema.Struct({
3060
+ id: Schema.Literal("opportunistic_encryption"),
3061
+ value: Schema.Literals(["on", "off"]),
3062
+ editable: Schema.optional(
3063
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3064
+ ),
3065
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3066
+ }).pipe(
3067
+ Schema.encodeKeys({
3068
+ id: "id",
3069
+ value: "value",
3070
+ editable: "editable",
3071
+ modifiedOn: "modified_on",
3072
+ }),
3073
+ ),
3074
+ Schema.Struct({
3075
+ id: Schema.Literal("opportunistic_onion"),
3076
+ value: Schema.Literals(["on", "off"]),
3077
+ editable: Schema.optional(
3078
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3079
+ ),
3080
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3081
+ }).pipe(
3082
+ Schema.encodeKeys({
3083
+ id: "id",
3084
+ value: "value",
3085
+ editable: "editable",
3086
+ modifiedOn: "modified_on",
3087
+ }),
3088
+ ),
3089
+ Schema.Struct({
3090
+ id: Schema.Literal("orange_to_orange"),
3091
+ value: Schema.Literals(["on", "off"]),
3092
+ editable: Schema.optional(
3093
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3094
+ ),
3095
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3096
+ }).pipe(
3097
+ Schema.encodeKeys({
3098
+ id: "id",
3099
+ value: "value",
3100
+ editable: "editable",
3101
+ modifiedOn: "modified_on",
3102
+ }),
3103
+ ),
3104
+ Schema.Struct({
3105
+ id: Schema.Literal("origin_error_page_pass_thru"),
3106
+ value: Schema.Literals(["on", "off"]),
3107
+ editable: Schema.optional(
3108
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3109
+ ),
3110
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3111
+ }).pipe(
3112
+ Schema.encodeKeys({
3113
+ id: "id",
3114
+ value: "value",
3115
+ editable: "editable",
3116
+ modifiedOn: "modified_on",
3117
+ }),
3118
+ ),
3119
+ Schema.Struct({
3120
+ id: Schema.Literal("origin_h2_max_streams"),
3121
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3122
+ value: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3123
+ }).pipe(
3124
+ Schema.encodeKeys({ id: "id", modifiedOn: "modified_on", value: "value" }),
3125
+ ),
3126
+ Schema.Struct({
3127
+ id: Schema.Literal("origin_max_http_version"),
3128
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3129
+ value: Schema.optional(
3130
+ Schema.Union([Schema.Literals(["2", "1"]), Schema.Null]),
3131
+ ),
3132
+ }).pipe(
3133
+ Schema.encodeKeys({ id: "id", modifiedOn: "modified_on", value: "value" }),
3134
+ ),
3135
+ Schema.Struct({
3136
+ id: Schema.Literal("polish"),
3137
+ value: Schema.Literals(["off", "lossless", "lossy"]),
3138
+ editable: Schema.optional(
3139
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3140
+ ),
3141
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3142
+ }).pipe(
3143
+ Schema.encodeKeys({
3144
+ id: "id",
3145
+ value: "value",
3146
+ editable: "editable",
3147
+ modifiedOn: "modified_on",
3148
+ }),
3149
+ ),
3150
+ Schema.Struct({
3151
+ id: Schema.Literal("prefetch_preload"),
3152
+ value: Schema.Literals(["on", "off"]),
3153
+ editable: Schema.optional(
3154
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3155
+ ),
3156
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3157
+ }).pipe(
3158
+ Schema.encodeKeys({
3159
+ id: "id",
3160
+ value: "value",
3161
+ editable: "editable",
3162
+ modifiedOn: "modified_on",
3163
+ }),
3164
+ ),
3165
+ Schema.Struct({
3166
+ id: Schema.Literal("privacy_pass"),
3167
+ value: Schema.Literals(["on", "off"]),
3168
+ editable: Schema.optional(
3169
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3170
+ ),
3171
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3172
+ }).pipe(
3173
+ Schema.encodeKeys({
3174
+ id: "id",
3175
+ value: "value",
3176
+ editable: "editable",
3177
+ modifiedOn: "modified_on",
3178
+ }),
3179
+ ),
3180
+ Schema.Struct({
3181
+ id: Schema.Literal("proxy_read_timeout"),
3182
+ value: Schema.Number,
3183
+ editable: Schema.optional(
3184
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3185
+ ),
3186
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3187
+ }).pipe(
3188
+ Schema.encodeKeys({
3189
+ id: "id",
3190
+ value: "value",
3191
+ editable: "editable",
3192
+ modifiedOn: "modified_on",
3193
+ }),
3194
+ ),
3195
+ Schema.Struct({
3196
+ id: Schema.Literal("pseudo_ipv4"),
3197
+ value: Schema.Literals(["off", "add_header", "overwrite_header"]),
3198
+ editable: Schema.optional(
3199
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3200
+ ),
3201
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3202
+ }).pipe(
3203
+ Schema.encodeKeys({
3204
+ id: "id",
3205
+ value: "value",
3206
+ editable: "editable",
3207
+ modifiedOn: "modified_on",
3208
+ }),
3209
+ ),
3210
+ Schema.Struct({
3211
+ id: Schema.Literal("replace_insecure_js"),
3212
+ value: Schema.Literals(["on", "off"]),
3213
+ editable: Schema.optional(
3214
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3215
+ ),
3216
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3217
+ }).pipe(
3218
+ Schema.encodeKeys({
3219
+ id: "id",
3220
+ value: "value",
3221
+ editable: "editable",
3222
+ modifiedOn: "modified_on",
3223
+ }),
3224
+ ),
3225
+ Schema.Struct({
3226
+ id: Schema.Literal("response_buffering"),
3227
+ value: Schema.Literals(["on", "off"]),
3228
+ editable: Schema.optional(
3229
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3230
+ ),
3231
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3232
+ }).pipe(
3233
+ Schema.encodeKeys({
3234
+ id: "id",
3235
+ value: "value",
3236
+ editable: "editable",
3237
+ modifiedOn: "modified_on",
3238
+ }),
3239
+ ),
3240
+ Schema.Struct({
3241
+ id: Schema.Literal("rocket_loader"),
3242
+ value: Schema.Literals(["on", "off"]),
3243
+ editable: Schema.optional(
3244
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3245
+ ),
3246
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3247
+ }).pipe(
3248
+ Schema.encodeKeys({
3249
+ id: "id",
3250
+ value: "value",
3251
+ editable: "editable",
3252
+ modifiedOn: "modified_on",
3253
+ }),
3254
+ ),
3255
+ Schema.Struct({
3256
+ id: Schema.Literal("automatic_platform_optimization"),
3257
+ value: Schema.Unknown,
3258
+ editable: Schema.optional(
3259
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3260
+ ),
3261
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3262
+ }).pipe(
3263
+ Schema.encodeKeys({
3264
+ id: "id",
3265
+ value: "value",
3266
+ editable: "editable",
3267
+ modifiedOn: "modified_on",
3268
+ }),
3269
+ ),
3270
+ Schema.Struct({
3271
+ id: Schema.Literal("security_header"),
3272
+ value: Schema.Struct({
3273
+ strictTransportSecurity: Schema.optional(
3274
+ Schema.Union([
3275
+ Schema.Struct({
3276
+ enabled: Schema.optional(
3277
+ Schema.Union([Schema.Boolean, Schema.Null]),
3278
+ ),
3279
+ includeSubdomains: Schema.optional(
3280
+ Schema.Union([Schema.Boolean, Schema.Null]),
3281
+ ),
3282
+ maxAge: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3283
+ nosniff: Schema.optional(
3284
+ Schema.Union([Schema.Boolean, Schema.Null]),
3285
+ ),
3286
+ preload: Schema.optional(
3287
+ Schema.Union([Schema.Boolean, Schema.Null]),
3288
+ ),
3289
+ }).pipe(
3290
+ Schema.encodeKeys({
3291
+ enabled: "enabled",
3292
+ includeSubdomains: "include_subdomains",
3293
+ maxAge: "max_age",
3294
+ nosniff: "nosniff",
3295
+ preload: "preload",
3296
+ }),
3297
+ ),
3298
+ Schema.Null,
3299
+ ]),
3300
+ ),
3301
+ }).pipe(
3302
+ Schema.encodeKeys({
3303
+ strictTransportSecurity: "strict_transport_security",
3304
+ }),
3305
+ ),
3306
+ editable: Schema.optional(
3307
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3308
+ ),
3309
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3310
+ }).pipe(
3311
+ Schema.encodeKeys({
3312
+ id: "id",
3313
+ value: "value",
3314
+ editable: "editable",
3315
+ modifiedOn: "modified_on",
3316
+ }),
3317
+ ),
3318
+ Schema.Struct({
3319
+ id: Schema.Literal("security_level"),
3320
+ value: Schema.Literals([
3321
+ "off",
3322
+ "essentially_off",
3323
+ "low",
3324
+ "medium",
3325
+ "high",
3326
+ "under_attack",
3327
+ ]),
3328
+ editable: Schema.optional(
3329
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3330
+ ),
3331
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3332
+ }).pipe(
3333
+ Schema.encodeKeys({
3334
+ id: "id",
3335
+ value: "value",
3336
+ editable: "editable",
3337
+ modifiedOn: "modified_on",
3338
+ }),
3339
+ ),
3340
+ Schema.Struct({
3341
+ id: Schema.Literal("server_side_exclude"),
3342
+ value: Schema.Literals(["on", "off"]),
3343
+ editable: Schema.optional(
3344
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3345
+ ),
3346
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3347
+ }).pipe(
3348
+ Schema.encodeKeys({
3349
+ id: "id",
3350
+ value: "value",
3351
+ editable: "editable",
3352
+ modifiedOn: "modified_on",
3353
+ }),
3354
+ ),
3355
+ Schema.Struct({
3356
+ id: Schema.Literal("sha1_support"),
3357
+ value: Schema.Literals(["off", "on"]),
3358
+ editable: Schema.optional(
3359
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3360
+ ),
3361
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3362
+ }).pipe(
3363
+ Schema.encodeKeys({
3364
+ id: "id",
3365
+ value: "value",
3366
+ editable: "editable",
3367
+ modifiedOn: "modified_on",
3368
+ }),
3369
+ ),
3370
+ Schema.Struct({
3371
+ id: Schema.Literal("sort_query_string_for_cache"),
3372
+ value: Schema.Literals(["on", "off"]),
3373
+ editable: Schema.optional(
3374
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3375
+ ),
3376
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3377
+ }).pipe(
3378
+ Schema.encodeKeys({
3379
+ id: "id",
3380
+ value: "value",
3381
+ editable: "editable",
3382
+ modifiedOn: "modified_on",
3383
+ }),
3384
+ ),
3385
+ Schema.Struct({
3386
+ id: Schema.Literal("ssl"),
3387
+ value: Schema.Literals(["off", "flexible", "full", "strict"]),
3388
+ editable: Schema.optional(
3389
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3390
+ ),
3391
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3392
+ }).pipe(
3393
+ Schema.encodeKeys({
3394
+ id: "id",
3395
+ value: "value",
3396
+ editable: "editable",
3397
+ modifiedOn: "modified_on",
3398
+ }),
3399
+ ),
3400
+ Schema.Struct({
3401
+ id: Schema.optional(
3402
+ Schema.Union([Schema.Literal("ssl_recommender"), Schema.Null]),
3403
+ ),
3404
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3405
+ }),
3406
+ Schema.Struct({
3407
+ id: Schema.Literal("tls_1_2_only"),
3408
+ value: Schema.Literals(["off", "on"]),
3409
+ editable: Schema.optional(
3410
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3411
+ ),
3412
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3413
+ }).pipe(
3414
+ Schema.encodeKeys({
3415
+ id: "id",
3416
+ value: "value",
3417
+ editable: "editable",
3418
+ modifiedOn: "modified_on",
3419
+ }),
3420
+ ),
3421
+ Schema.Struct({
3422
+ id: Schema.Literal("tls_1_3"),
3423
+ value: Schema.Literals(["on", "off", "zrt"]),
3424
+ editable: Schema.optional(
3425
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3426
+ ),
3427
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3428
+ }).pipe(
3429
+ Schema.encodeKeys({
3430
+ id: "id",
3431
+ value: "value",
3432
+ editable: "editable",
3433
+ modifiedOn: "modified_on",
3434
+ }),
3435
+ ),
3436
+ Schema.Struct({
3437
+ id: Schema.Literal("tls_client_auth"),
3438
+ value: Schema.Literals(["on", "off"]),
3439
+ editable: Schema.optional(
3440
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3441
+ ),
3442
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3443
+ }).pipe(
3444
+ Schema.encodeKeys({
3445
+ id: "id",
3446
+ value: "value",
3447
+ editable: "editable",
3448
+ modifiedOn: "modified_on",
3449
+ }),
3450
+ ),
3451
+ Schema.Struct({
3452
+ id: Schema.Literal("transformations"),
3453
+ value: Schema.Literals(["on", "off", "open"]),
3454
+ editable: Schema.optional(
3455
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3456
+ ),
3457
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3458
+ }).pipe(
3459
+ Schema.encodeKeys({
3460
+ id: "id",
3461
+ value: "value",
3462
+ editable: "editable",
3463
+ modifiedOn: "modified_on",
3464
+ }),
3465
+ ),
3466
+ Schema.Struct({
3467
+ id: Schema.Literal("transformations_allowed_origins"),
3468
+ value: Schema.String,
3469
+ editable: Schema.optional(
3470
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3471
+ ),
3472
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3473
+ }).pipe(
3474
+ Schema.encodeKeys({
3475
+ id: "id",
3476
+ value: "value",
3477
+ editable: "editable",
3478
+ modifiedOn: "modified_on",
3479
+ }),
3480
+ ),
3481
+ Schema.Struct({
3482
+ id: Schema.Literal("true_client_ip_header"),
3483
+ value: Schema.Literals(["on", "off"]),
3484
+ editable: Schema.optional(
3485
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3486
+ ),
3487
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3488
+ }).pipe(
3489
+ Schema.encodeKeys({
3490
+ id: "id",
3491
+ value: "value",
3492
+ editable: "editable",
3493
+ modifiedOn: "modified_on",
3494
+ }),
3495
+ ),
3496
+ Schema.Struct({
3497
+ id: Schema.Literal("waf"),
3498
+ value: Schema.Literals(["on", "off"]),
3499
+ editable: Schema.optional(
3500
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3501
+ ),
3502
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3503
+ }).pipe(
3504
+ Schema.encodeKeys({
3505
+ id: "id",
3506
+ value: "value",
3507
+ editable: "editable",
3508
+ modifiedOn: "modified_on",
3509
+ }),
3510
+ ),
3511
+ Schema.Struct({
3512
+ id: Schema.Literal("webp"),
3513
+ value: Schema.Literals(["off", "on"]),
3514
+ editable: Schema.optional(
3515
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3516
+ ),
3517
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3518
+ }).pipe(
3519
+ Schema.encodeKeys({
3520
+ id: "id",
3521
+ value: "value",
3522
+ editable: "editable",
3523
+ modifiedOn: "modified_on",
3524
+ }),
3525
+ ),
3526
+ Schema.Struct({
3527
+ id: Schema.Literal("websockets"),
3528
+ value: Schema.Literals(["off", "on"]),
3529
+ editable: Schema.optional(
3530
+ Schema.Union([Schema.Literals([true, false]), Schema.Null]),
3531
+ ),
3532
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3533
+ }).pipe(
3534
+ Schema.encodeKeys({
3535
+ id: "id",
3536
+ value: "value",
3537
+ editable: "editable",
3538
+ modifiedOn: "modified_on",
3539
+ }),
3540
+ ),
3541
+ ]) as unknown as Schema.Schema<PatchSettingResponse>;
3542
+
3543
+ export type PatchSettingError = DefaultErrors;
3544
+
3545
+ export const patchSetting: API.OperationMethod<
3546
+ PatchSettingRequest,
3547
+ PatchSettingResponse,
3548
+ PatchSettingError,
3549
+ Credentials | HttpClient.HttpClient
3550
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3551
+ input: PatchSettingRequest,
3552
+ output: PatchSettingResponse,
3553
+ errors: [],
3554
+ }));
3555
+
3556
+ // =============================================================================
3557
+ // Subscription
3558
+ // =============================================================================
3559
+
3560
+ export interface GetSubscriptionRequest {
3561
+ /** Identifier */
3562
+ zoneId: string;
3563
+ }
3564
+
3565
+ export const GetSubscriptionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
3566
+ {
3567
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
3568
+ },
3569
+ ).pipe(
3570
+ T.Http({ method: "GET", path: "/zones/{zone_id}/subscription" }),
3571
+ ) as unknown as Schema.Schema<GetSubscriptionRequest>;
3572
+
3573
+ export interface GetSubscriptionResponse {
3574
+ /** Subscription identifier tag. */
3575
+ id?: string | null;
3576
+ /** The monetary unit in which pricing information is displayed. */
3577
+ currency?: string | null;
3578
+ /** The end of the current period and also when the next billing is due. */
3579
+ currentPeriodEnd?: string | null;
3580
+ /** When the current billing period started. May match initial_period_start if this is the first period. */
3581
+ currentPeriodStart?: string | null;
3582
+ /** How often the subscription is renewed automatically. */
3583
+ frequency?:
3584
+ | "weekly"
3585
+ | "monthly"
3586
+ | "quarterly"
3587
+ | "yearly"
3588
+ | "not-applicable"
3589
+ | null;
3590
+ /** The price of the subscription that will be billed, in US dollars. */
3591
+ price?: number | null;
3592
+ /** The rate plan applied to the subscription. */
3593
+ ratePlan?: unknown | null;
3594
+ /** The state that the subscription is in. */
3595
+ state?:
3596
+ | "Trial"
3597
+ | "Provisioned"
3598
+ | "Paid"
3599
+ | "AwaitingPayment"
3600
+ | "Cancelled"
3601
+ | "Failed"
3602
+ | "Expired"
3603
+ | null;
3604
+ }
3605
+
3606
+ export const GetSubscriptionResponse =
3607
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3608
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3609
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3610
+ currentPeriodEnd: Schema.optional(
3611
+ Schema.Union([Schema.String, Schema.Null]),
3612
+ ),
3613
+ currentPeriodStart: Schema.optional(
3614
+ Schema.Union([Schema.String, Schema.Null]),
3615
+ ),
3616
+ frequency: Schema.optional(
3617
+ Schema.Union([
3618
+ Schema.Literals([
3619
+ "weekly",
3620
+ "monthly",
3621
+ "quarterly",
3622
+ "yearly",
3623
+ "not-applicable",
3624
+ ]),
3625
+ Schema.Null,
3626
+ ]),
3627
+ ),
3628
+ price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3629
+ ratePlan: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3630
+ state: Schema.optional(
3631
+ Schema.Union([
3632
+ Schema.Literals([
3633
+ "Trial",
3634
+ "Provisioned",
3635
+ "Paid",
3636
+ "AwaitingPayment",
3637
+ "Cancelled",
3638
+ "Failed",
3639
+ "Expired",
3640
+ ]),
3641
+ Schema.Null,
3642
+ ]),
3643
+ ),
3644
+ }).pipe(
3645
+ Schema.encodeKeys({
3646
+ id: "id",
3647
+ currency: "currency",
3648
+ currentPeriodEnd: "current_period_end",
3649
+ currentPeriodStart: "current_period_start",
3650
+ frequency: "frequency",
3651
+ price: "price",
3652
+ ratePlan: "rate_plan",
3653
+ state: "state",
3654
+ }),
3655
+ ) as unknown as Schema.Schema<GetSubscriptionResponse>;
3656
+
3657
+ export type GetSubscriptionError = DefaultErrors;
3658
+
3659
+ export const getSubscription: API.OperationMethod<
3660
+ GetSubscriptionRequest,
3661
+ GetSubscriptionResponse,
3662
+ GetSubscriptionError,
3663
+ Credentials | HttpClient.HttpClient
3664
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3665
+ input: GetSubscriptionRequest,
3666
+ output: GetSubscriptionResponse,
3667
+ errors: [],
3668
+ }));
3669
+
3670
+ export interface CreateSubscriptionRequest {
3671
+ /** Path param: Identifier */
3672
+ zoneId: string;
3673
+ /** Body param: How often the subscription is renewed automatically. */
3674
+ frequency?: "weekly" | "monthly" | "quarterly" | "yearly";
3675
+ /** Body param: The rate plan applied to the subscription. */
3676
+ ratePlan?: unknown;
3677
+ }
3678
+
3679
+ export const CreateSubscriptionRequest =
3680
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3681
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
3682
+ frequency: Schema.optional(
3683
+ Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
3684
+ ),
3685
+ ratePlan: Schema.optional(Schema.Unknown),
3686
+ }).pipe(
3687
+ Schema.encodeKeys({ frequency: "frequency", ratePlan: "rate_plan" }),
3688
+ T.Http({ method: "POST", path: "/zones/{zone_id}/subscription" }),
3689
+ ) as unknown as Schema.Schema<CreateSubscriptionRequest>;
3690
+
3691
+ export interface CreateSubscriptionResponse {
3692
+ /** Subscription identifier tag. */
3693
+ id?: string | null;
3694
+ /** The monetary unit in which pricing information is displayed. */
3695
+ currency?: string | null;
3696
+ /** The end of the current period and also when the next billing is due. */
3697
+ currentPeriodEnd?: string | null;
3698
+ /** When the current billing period started. May match initial_period_start if this is the first period. */
3699
+ currentPeriodStart?: string | null;
3700
+ /** How often the subscription is renewed automatically. */
3701
+ frequency?:
3702
+ | "weekly"
3703
+ | "monthly"
3704
+ | "quarterly"
3705
+ | "yearly"
3706
+ | "not-applicable"
3707
+ | null;
3708
+ /** The price of the subscription that will be billed, in US dollars. */
3709
+ price?: number | null;
3710
+ /** The rate plan applied to the subscription. */
3711
+ ratePlan?: unknown | null;
3712
+ /** The state that the subscription is in. */
3713
+ state?:
3714
+ | "Trial"
3715
+ | "Provisioned"
3716
+ | "Paid"
3717
+ | "AwaitingPayment"
3718
+ | "Cancelled"
3719
+ | "Failed"
3720
+ | "Expired"
3721
+ | null;
3722
+ }
3723
+
3724
+ export const CreateSubscriptionResponse =
3725
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3726
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3727
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3728
+ currentPeriodEnd: Schema.optional(
3729
+ Schema.Union([Schema.String, Schema.Null]),
3730
+ ),
3731
+ currentPeriodStart: Schema.optional(
3732
+ Schema.Union([Schema.String, Schema.Null]),
3733
+ ),
3734
+ frequency: Schema.optional(
3735
+ Schema.Union([
3736
+ Schema.Literals([
3737
+ "weekly",
3738
+ "monthly",
3739
+ "quarterly",
3740
+ "yearly",
3741
+ "not-applicable",
3742
+ ]),
3743
+ Schema.Null,
3744
+ ]),
3745
+ ),
3746
+ price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3747
+ ratePlan: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3748
+ state: Schema.optional(
3749
+ Schema.Union([
3750
+ Schema.Literals([
3751
+ "Trial",
3752
+ "Provisioned",
3753
+ "Paid",
3754
+ "AwaitingPayment",
3755
+ "Cancelled",
3756
+ "Failed",
3757
+ "Expired",
3758
+ ]),
3759
+ Schema.Null,
3760
+ ]),
3761
+ ),
3762
+ }).pipe(
3763
+ Schema.encodeKeys({
3764
+ id: "id",
3765
+ currency: "currency",
3766
+ currentPeriodEnd: "current_period_end",
3767
+ currentPeriodStart: "current_period_start",
3768
+ frequency: "frequency",
3769
+ price: "price",
3770
+ ratePlan: "rate_plan",
3771
+ state: "state",
3772
+ }),
3773
+ ) as unknown as Schema.Schema<CreateSubscriptionResponse>;
3774
+
3775
+ export type CreateSubscriptionError = DefaultErrors;
3776
+
3777
+ export const createSubscription: API.OperationMethod<
3778
+ CreateSubscriptionRequest,
3779
+ CreateSubscriptionResponse,
3780
+ CreateSubscriptionError,
3781
+ Credentials | HttpClient.HttpClient
3782
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3783
+ input: CreateSubscriptionRequest,
3784
+ output: CreateSubscriptionResponse,
3785
+ errors: [],
3786
+ }));
3787
+
3788
+ export interface UpdateSubscriptionRequest {
3789
+ /** Path param: Identifier */
3790
+ zoneId: string;
3791
+ /** Body param: How often the subscription is renewed automatically. */
3792
+ frequency?: "weekly" | "monthly" | "quarterly" | "yearly";
3793
+ /** Body param: The rate plan applied to the subscription. */
3794
+ ratePlan?: unknown;
3795
+ }
3796
+
3797
+ export const UpdateSubscriptionRequest =
3798
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3799
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
3800
+ frequency: Schema.optional(
3801
+ Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
3802
+ ),
3803
+ ratePlan: Schema.optional(Schema.Unknown),
3804
+ }).pipe(
3805
+ Schema.encodeKeys({ frequency: "frequency", ratePlan: "rate_plan" }),
3806
+ T.Http({ method: "PUT", path: "/zones/{zone_id}/subscription" }),
3807
+ ) as unknown as Schema.Schema<UpdateSubscriptionRequest>;
3808
+
3809
+ export interface UpdateSubscriptionResponse {
3810
+ /** Subscription identifier tag. */
3811
+ id?: string | null;
3812
+ /** The monetary unit in which pricing information is displayed. */
3813
+ currency?: string | null;
3814
+ /** The end of the current period and also when the next billing is due. */
3815
+ currentPeriodEnd?: string | null;
3816
+ /** When the current billing period started. May match initial_period_start if this is the first period. */
3817
+ currentPeriodStart?: string | null;
3818
+ /** How often the subscription is renewed automatically. */
3819
+ frequency?:
3820
+ | "weekly"
3821
+ | "monthly"
3822
+ | "quarterly"
3823
+ | "yearly"
3824
+ | "not-applicable"
3825
+ | null;
3826
+ /** The price of the subscription that will be billed, in US dollars. */
3827
+ price?: number | null;
3828
+ /** The rate plan applied to the subscription. */
3829
+ ratePlan?: unknown | null;
3830
+ /** The state that the subscription is in. */
3831
+ state?:
3832
+ | "Trial"
3833
+ | "Provisioned"
3834
+ | "Paid"
3835
+ | "AwaitingPayment"
3836
+ | "Cancelled"
3837
+ | "Failed"
3838
+ | "Expired"
3839
+ | null;
3840
+ }
3841
+
3842
+ export const UpdateSubscriptionResponse =
3843
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3844
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3845
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3846
+ currentPeriodEnd: Schema.optional(
3847
+ Schema.Union([Schema.String, Schema.Null]),
3848
+ ),
3849
+ currentPeriodStart: Schema.optional(
3850
+ Schema.Union([Schema.String, Schema.Null]),
3851
+ ),
3852
+ frequency: Schema.optional(
3853
+ Schema.Union([
3854
+ Schema.Literals([
3855
+ "weekly",
3856
+ "monthly",
3857
+ "quarterly",
3858
+ "yearly",
3859
+ "not-applicable",
3860
+ ]),
3861
+ Schema.Null,
3862
+ ]),
3863
+ ),
3864
+ price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3865
+ ratePlan: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3866
+ state: Schema.optional(
3867
+ Schema.Union([
3868
+ Schema.Literals([
3869
+ "Trial",
3870
+ "Provisioned",
3871
+ "Paid",
3872
+ "AwaitingPayment",
3873
+ "Cancelled",
3874
+ "Failed",
3875
+ "Expired",
3876
+ ]),
3877
+ Schema.Null,
3878
+ ]),
3879
+ ),
3880
+ }).pipe(
3881
+ Schema.encodeKeys({
3882
+ id: "id",
3883
+ currency: "currency",
3884
+ currentPeriodEnd: "current_period_end",
3885
+ currentPeriodStart: "current_period_start",
3886
+ frequency: "frequency",
3887
+ price: "price",
3888
+ ratePlan: "rate_plan",
3889
+ state: "state",
3890
+ }),
3891
+ ) as unknown as Schema.Schema<UpdateSubscriptionResponse>;
3892
+
3893
+ export type UpdateSubscriptionError = DefaultErrors;
3894
+
3895
+ export const updateSubscription: API.OperationMethod<
3896
+ UpdateSubscriptionRequest,
3897
+ UpdateSubscriptionResponse,
3898
+ UpdateSubscriptionError,
3899
+ Credentials | HttpClient.HttpClient
3900
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3901
+ input: UpdateSubscriptionRequest,
3902
+ output: UpdateSubscriptionResponse,
3903
+ errors: [],
3904
+ }));
3905
+
3906
+ // =============================================================================
3907
+ // Zone
3908
+ // =============================================================================
3909
+
3910
+ export interface GetZoneRequest {
3911
+ /** Identifier */
3912
+ zoneId: string;
3913
+ }
3914
+
3915
+ export const GetZoneRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3916
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
3917
+ }).pipe(
3918
+ T.Http({ method: "GET", path: "/zones/{zone_id}" }),
3919
+ ) as unknown as Schema.Schema<GetZoneRequest>;
3920
+
3921
+ export interface GetZoneResponse {
3922
+ /** Identifier */
3923
+ id: string;
3924
+ /** The account the zone belongs to. */
3925
+ account: { id?: string | null; name?: string | null };
3926
+ /** The last time proof of ownership was detected and the zone was made active. */
3927
+ activatedOn: string | null;
3928
+ /** When the zone was created. */
3929
+ createdOn: string;
3930
+ /** The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is 0. */
3931
+ developmentMode: number;
3932
+ /** Metadata about the zone. */
3933
+ meta: {
3934
+ cdnOnly?: boolean | null;
3935
+ customCertificateQuota?: number | null;
3936
+ dnsOnly?: boolean | null;
3937
+ foundationDns?: boolean | null;
3938
+ pageRuleQuota?: number | null;
3939
+ phishingDetected?: boolean | null;
3940
+ step?: number | null;
3941
+ };
3942
+ /** When the zone was last modified. */
3943
+ modifiedOn: string;
3944
+ /** The domain name. */
3945
+ name: string;
3946
+ /** The name servers Cloudflare assigns to a zone. */
3947
+ nameServers: string[];
3948
+ /** DNS host at the time of switching to Cloudflare. */
3949
+ originalDnshost: string | null;
3950
+ /** Original name servers before moving to Cloudflare. */
3951
+ originalNameServers: string[] | null;
3952
+ /** Registrar for the domain at the time of switching to Cloudflare. */
3953
+ originalRegistrar: string | null;
3954
+ /** The owner of the zone. */
3955
+ owner: { id?: string | null; name?: string | null; type?: string | null };
3956
+ /** @deprecated Please use the `/zones/{zone_id}/subscription` API to update a zone's plan. Changing this value will create/cancel associated subscriptions. To view available plans for this zone, see [Zon */
3957
+ plan: {
3958
+ id?: string | null;
3959
+ canSubscribe?: boolean | null;
3960
+ currency?: string | null;
3961
+ externallyManaged?: boolean | null;
3962
+ frequency?: string | null;
3963
+ isSubscribed?: boolean | null;
3964
+ legacyDiscount?: boolean | null;
3965
+ legacyId?: string | null;
3966
+ name?: string | null;
3967
+ price?: number | null;
3968
+ };
3969
+ /** Allows the customer to use a custom apex. _Tenants Only Configuration_. */
3970
+ cnameSuffix?: string | null;
3971
+ /** Indicates whether the zone is only using Cloudflare DNS services. A true value means the zone will not receive security or performance benefits. */
3972
+ paused?: boolean | null;
3973
+ /** @deprecated This has been replaced by Account memberships. */
3974
+ permissions?: string[] | null;
3975
+ /** The zone status on Cloudflare. */
3976
+ status?: "initializing" | "pending" | "active" | "moved" | null;
3977
+ /** The root organizational unit that this zone belongs to (such as a tenant or organization). */
3978
+ tenant?: { id?: string | null; name?: string | null } | null;
3979
+ /** The immediate parent organizational unit that this zone belongs to (such as under a tenant or sub-organization). */
3980
+ tenantUnit?: { id?: string | null } | null;
3981
+ /** A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. */
3982
+ type?: "full" | "partial" | "secondary" | "internal" | null;
3983
+ /** An array of domains used for custom name servers. This is only available for Business and Enterprise plans. */
3984
+ vanityNameServers?: string[] | null;
3985
+ /** Verification key for partial zone setup. */
3986
+ verificationKey?: string | null;
3987
+ }
3988
+
3989
+ export const GetZoneResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3990
+ id: Schema.String,
3991
+ account: Schema.Struct({
3992
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3993
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3994
+ }),
3995
+ activatedOn: Schema.Union([Schema.String, Schema.Null]),
3996
+ createdOn: Schema.String,
3997
+ developmentMode: Schema.Number,
3998
+ meta: Schema.Struct({
3999
+ cdnOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4000
+ customCertificateQuota: Schema.optional(
4001
+ Schema.Union([Schema.Number, Schema.Null]),
4002
+ ),
4003
+ dnsOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4004
+ foundationDns: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4005
+ pageRuleQuota: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4006
+ phishingDetected: Schema.optional(
4007
+ Schema.Union([Schema.Boolean, Schema.Null]),
4008
+ ),
4009
+ step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4010
+ }).pipe(
4011
+ Schema.encodeKeys({
4012
+ cdnOnly: "cdn_only",
4013
+ customCertificateQuota: "custom_certificate_quota",
4014
+ dnsOnly: "dns_only",
4015
+ foundationDns: "foundation_dns",
4016
+ pageRuleQuota: "page_rule_quota",
4017
+ phishingDetected: "phishing_detected",
4018
+ step: "step",
4019
+ }),
4020
+ ),
4021
+ modifiedOn: Schema.String,
4022
+ name: Schema.String,
4023
+ nameServers: Schema.Array(Schema.String),
4024
+ originalDnshost: Schema.Union([Schema.String, Schema.Null]),
4025
+ originalNameServers: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4026
+ originalRegistrar: Schema.Union([Schema.String, Schema.Null]),
4027
+ owner: Schema.Struct({
4028
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4029
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4030
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4031
+ }),
4032
+ plan: Schema.Struct({
4033
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4034
+ canSubscribe: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4035
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4036
+ externallyManaged: Schema.optional(
4037
+ Schema.Union([Schema.Boolean, Schema.Null]),
4038
+ ),
4039
+ frequency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4040
+ isSubscribed: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4041
+ legacyDiscount: Schema.optional(
4042
+ Schema.Union([Schema.Boolean, Schema.Null]),
4043
+ ),
4044
+ legacyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4045
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4046
+ price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4047
+ }).pipe(
4048
+ Schema.encodeKeys({
4049
+ id: "id",
4050
+ canSubscribe: "can_subscribe",
4051
+ currency: "currency",
4052
+ externallyManaged: "externally_managed",
4053
+ frequency: "frequency",
4054
+ isSubscribed: "is_subscribed",
4055
+ legacyDiscount: "legacy_discount",
4056
+ legacyId: "legacy_id",
4057
+ name: "name",
4058
+ price: "price",
4059
+ }),
4060
+ ),
4061
+ cnameSuffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4062
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4063
+ permissions: Schema.optional(
4064
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4065
+ ),
4066
+ status: Schema.optional(
4067
+ Schema.Union([
4068
+ Schema.Literals(["initializing", "pending", "active", "moved"]),
4069
+ Schema.Null,
4070
+ ]),
4071
+ ),
4072
+ tenant: Schema.optional(
4073
+ Schema.Union([
4074
+ Schema.Struct({
4075
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4076
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4077
+ }),
4078
+ Schema.Null,
4079
+ ]),
4080
+ ),
4081
+ tenantUnit: Schema.optional(
4082
+ Schema.Union([
4083
+ Schema.Struct({
4084
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4085
+ }),
4086
+ Schema.Null,
4087
+ ]),
4088
+ ),
4089
+ type: Schema.optional(
4090
+ Schema.Union([
4091
+ Schema.Literals(["full", "partial", "secondary", "internal"]),
4092
+ Schema.Null,
4093
+ ]),
4094
+ ),
4095
+ vanityNameServers: Schema.optional(
4096
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4097
+ ),
4098
+ verificationKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4099
+ }).pipe(
4100
+ Schema.encodeKeys({
4101
+ id: "id",
4102
+ account: "account",
4103
+ activatedOn: "activated_on",
4104
+ createdOn: "created_on",
4105
+ developmentMode: "development_mode",
4106
+ meta: "meta",
4107
+ modifiedOn: "modified_on",
4108
+ name: "name",
4109
+ nameServers: "name_servers",
4110
+ originalDnshost: "original_dnshost",
4111
+ originalNameServers: "original_name_servers",
4112
+ originalRegistrar: "original_registrar",
4113
+ owner: "owner",
4114
+ plan: "plan",
4115
+ cnameSuffix: "cname_suffix",
4116
+ paused: "paused",
4117
+ permissions: "permissions",
4118
+ status: "status",
4119
+ tenant: "tenant",
4120
+ tenantUnit: "tenant_unit",
4121
+ type: "type",
4122
+ vanityNameServers: "vanity_name_servers",
4123
+ verificationKey: "verification_key",
4124
+ }),
4125
+ ) as unknown as Schema.Schema<GetZoneResponse>;
4126
+
4127
+ export type GetZoneError = DefaultErrors;
4128
+
4129
+ export const getZone: API.OperationMethod<
4130
+ GetZoneRequest,
4131
+ GetZoneResponse,
4132
+ GetZoneError,
4133
+ Credentials | HttpClient.HttpClient
4134
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4135
+ input: GetZoneRequest,
4136
+ output: GetZoneResponse,
4137
+ errors: [],
4138
+ }));
4139
+
4140
+ export interface ListZonesRequest {}
4141
+
4142
+ export const ListZonesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
4143
+ {},
4144
+ ).pipe(
4145
+ T.Http({ method: "GET", path: "/zones" }),
4146
+ ) as unknown as Schema.Schema<ListZonesRequest>;
4147
+
4148
+ export type ListZonesResponse = {
4149
+ id: string;
4150
+ account: { id?: string | null; name?: string | null };
4151
+ activatedOn: string | null;
4152
+ createdOn: string;
4153
+ developmentMode: number;
4154
+ meta: {
4155
+ cdnOnly?: boolean | null;
4156
+ customCertificateQuota?: number | null;
4157
+ dnsOnly?: boolean | null;
4158
+ foundationDns?: boolean | null;
4159
+ pageRuleQuota?: number | null;
4160
+ phishingDetected?: boolean | null;
4161
+ step?: number | null;
4162
+ };
4163
+ modifiedOn: string;
4164
+ name: string;
4165
+ nameServers: string[];
4166
+ originalDnshost: string | null;
4167
+ originalNameServers: string[] | null;
4168
+ originalRegistrar: string | null;
4169
+ owner: { id?: string | null; name?: string | null; type?: string | null };
4170
+ plan: {
4171
+ id?: string | null;
4172
+ canSubscribe?: boolean | null;
4173
+ currency?: string | null;
4174
+ externallyManaged?: boolean | null;
4175
+ frequency?: string | null;
4176
+ isSubscribed?: boolean | null;
4177
+ legacyDiscount?: boolean | null;
4178
+ legacyId?: string | null;
4179
+ name?: string | null;
4180
+ price?: number | null;
4181
+ };
4182
+ cnameSuffix?: string | null;
4183
+ paused?: boolean | null;
4184
+ permissions?: string[] | null;
4185
+ status?: "initializing" | "pending" | "active" | "moved" | null;
4186
+ tenant?: { id?: string | null; name?: string | null } | null;
4187
+ tenantUnit?: { id?: string | null } | null;
4188
+ type?: "full" | "partial" | "secondary" | "internal" | null;
4189
+ vanityNameServers?: string[] | null;
4190
+ verificationKey?: string | null;
4191
+ }[];
4192
+
4193
+ export const ListZonesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4194
+ Schema.Struct({
4195
+ id: Schema.String,
4196
+ account: Schema.Struct({
4197
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4198
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4199
+ }),
4200
+ activatedOn: Schema.Union([Schema.String, Schema.Null]),
4201
+ createdOn: Schema.String,
4202
+ developmentMode: Schema.Number,
4203
+ meta: Schema.Struct({
4204
+ cdnOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4205
+ customCertificateQuota: Schema.optional(
4206
+ Schema.Union([Schema.Number, Schema.Null]),
4207
+ ),
4208
+ dnsOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4209
+ foundationDns: Schema.optional(
4210
+ Schema.Union([Schema.Boolean, Schema.Null]),
4211
+ ),
4212
+ pageRuleQuota: Schema.optional(
4213
+ Schema.Union([Schema.Number, Schema.Null]),
4214
+ ),
4215
+ phishingDetected: Schema.optional(
4216
+ Schema.Union([Schema.Boolean, Schema.Null]),
4217
+ ),
4218
+ step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4219
+ }).pipe(
4220
+ Schema.encodeKeys({
4221
+ cdnOnly: "cdn_only",
4222
+ customCertificateQuota: "custom_certificate_quota",
4223
+ dnsOnly: "dns_only",
4224
+ foundationDns: "foundation_dns",
4225
+ pageRuleQuota: "page_rule_quota",
4226
+ phishingDetected: "phishing_detected",
4227
+ step: "step",
4228
+ }),
4229
+ ),
4230
+ modifiedOn: Schema.String,
4231
+ name: Schema.String,
4232
+ nameServers: Schema.Array(Schema.String),
4233
+ originalDnshost: Schema.Union([Schema.String, Schema.Null]),
4234
+ originalNameServers: Schema.Union([
4235
+ Schema.Array(Schema.String),
4236
+ Schema.Null,
4237
+ ]),
4238
+ originalRegistrar: Schema.Union([Schema.String, Schema.Null]),
4239
+ owner: Schema.Struct({
4240
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4241
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4242
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4243
+ }),
4244
+ plan: Schema.Struct({
4245
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4246
+ canSubscribe: Schema.optional(
4247
+ Schema.Union([Schema.Boolean, Schema.Null]),
4248
+ ),
4249
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4250
+ externallyManaged: Schema.optional(
4251
+ Schema.Union([Schema.Boolean, Schema.Null]),
4252
+ ),
4253
+ frequency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4254
+ isSubscribed: Schema.optional(
4255
+ Schema.Union([Schema.Boolean, Schema.Null]),
4256
+ ),
4257
+ legacyDiscount: Schema.optional(
4258
+ Schema.Union([Schema.Boolean, Schema.Null]),
4259
+ ),
4260
+ legacyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4261
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4262
+ price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4263
+ }).pipe(
4264
+ Schema.encodeKeys({
4265
+ id: "id",
4266
+ canSubscribe: "can_subscribe",
4267
+ currency: "currency",
4268
+ externallyManaged: "externally_managed",
4269
+ frequency: "frequency",
4270
+ isSubscribed: "is_subscribed",
4271
+ legacyDiscount: "legacy_discount",
4272
+ legacyId: "legacy_id",
4273
+ name: "name",
4274
+ price: "price",
4275
+ }),
4276
+ ),
4277
+ cnameSuffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4278
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4279
+ permissions: Schema.optional(
4280
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4281
+ ),
4282
+ status: Schema.optional(
4283
+ Schema.Union([
4284
+ Schema.Literals(["initializing", "pending", "active", "moved"]),
4285
+ Schema.Null,
4286
+ ]),
4287
+ ),
4288
+ tenant: Schema.optional(
4289
+ Schema.Union([
4290
+ Schema.Struct({
4291
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4292
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4293
+ }),
4294
+ Schema.Null,
4295
+ ]),
4296
+ ),
4297
+ tenantUnit: Schema.optional(
4298
+ Schema.Union([
4299
+ Schema.Struct({
4300
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4301
+ }),
4302
+ Schema.Null,
4303
+ ]),
4304
+ ),
4305
+ type: Schema.optional(
4306
+ Schema.Union([
4307
+ Schema.Literals(["full", "partial", "secondary", "internal"]),
4308
+ Schema.Null,
4309
+ ]),
4310
+ ),
4311
+ vanityNameServers: Schema.optional(
4312
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4313
+ ),
4314
+ verificationKey: Schema.optional(
4315
+ Schema.Union([Schema.String, Schema.Null]),
4316
+ ),
4317
+ }).pipe(
4318
+ Schema.encodeKeys({
4319
+ id: "id",
4320
+ account: "account",
4321
+ activatedOn: "activated_on",
4322
+ createdOn: "created_on",
4323
+ developmentMode: "development_mode",
4324
+ meta: "meta",
4325
+ modifiedOn: "modified_on",
4326
+ name: "name",
4327
+ nameServers: "name_servers",
4328
+ originalDnshost: "original_dnshost",
4329
+ originalNameServers: "original_name_servers",
4330
+ originalRegistrar: "original_registrar",
4331
+ owner: "owner",
4332
+ plan: "plan",
4333
+ cnameSuffix: "cname_suffix",
4334
+ paused: "paused",
4335
+ permissions: "permissions",
4336
+ status: "status",
4337
+ tenant: "tenant",
4338
+ tenantUnit: "tenant_unit",
4339
+ type: "type",
4340
+ vanityNameServers: "vanity_name_servers",
4341
+ verificationKey: "verification_key",
4342
+ }),
4343
+ ),
4344
+ ) as unknown as Schema.Schema<ListZonesResponse>;
4345
+
4346
+ export type ListZonesError = DefaultErrors;
4347
+
4348
+ export const listZones: API.OperationMethod<
4349
+ ListZonesRequest,
4350
+ ListZonesResponse,
4351
+ ListZonesError,
4352
+ Credentials | HttpClient.HttpClient
4353
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4354
+ input: ListZonesRequest,
4355
+ output: ListZonesResponse,
4356
+ errors: [],
4357
+ }));
4358
+
4359
+ export interface CreateZoneRequest {
4360
+ account: { id?: string };
4361
+ /** The domain name. */
4362
+ name: string;
4363
+ /** A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. */
4364
+ type?: "full" | "partial" | "secondary" | "internal";
4365
+ }
4366
+
4367
+ export const CreateZoneRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4368
+ account: Schema.Struct({
4369
+ id: Schema.optional(Schema.String),
4370
+ }),
4371
+ name: Schema.String,
4372
+ type: Schema.optional(
4373
+ Schema.Literals(["full", "partial", "secondary", "internal"]),
4374
+ ),
4375
+ }).pipe(
4376
+ T.Http({ method: "POST", path: "/zones" }),
4377
+ ) as unknown as Schema.Schema<CreateZoneRequest>;
4378
+
4379
+ export interface CreateZoneResponse {
4380
+ /** Identifier */
4381
+ id: string;
4382
+ /** The account the zone belongs to. */
4383
+ account: { id?: string | null; name?: string | null };
4384
+ /** The last time proof of ownership was detected and the zone was made active. */
4385
+ activatedOn: string | null;
4386
+ /** When the zone was created. */
4387
+ createdOn: string;
4388
+ /** The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is 0. */
4389
+ developmentMode: number;
4390
+ /** Metadata about the zone. */
4391
+ meta: {
4392
+ cdnOnly?: boolean | null;
4393
+ customCertificateQuota?: number | null;
4394
+ dnsOnly?: boolean | null;
4395
+ foundationDns?: boolean | null;
4396
+ pageRuleQuota?: number | null;
4397
+ phishingDetected?: boolean | null;
4398
+ step?: number | null;
4399
+ };
4400
+ /** When the zone was last modified. */
4401
+ modifiedOn: string;
4402
+ /** The domain name. */
4403
+ name: string;
4404
+ /** The name servers Cloudflare assigns to a zone. */
4405
+ nameServers: string[];
4406
+ /** DNS host at the time of switching to Cloudflare. */
4407
+ originalDnshost: string | null;
4408
+ /** Original name servers before moving to Cloudflare. */
4409
+ originalNameServers: string[] | null;
4410
+ /** Registrar for the domain at the time of switching to Cloudflare. */
4411
+ originalRegistrar: string | null;
4412
+ /** The owner of the zone. */
4413
+ owner: { id?: string | null; name?: string | null; type?: string | null };
4414
+ /** @deprecated Please use the `/zones/{zone_id}/subscription` API to update a zone's plan. Changing this value will create/cancel associated subscriptions. To view available plans for this zone, see [Zon */
4415
+ plan: {
4416
+ id?: string | null;
4417
+ canSubscribe?: boolean | null;
4418
+ currency?: string | null;
4419
+ externallyManaged?: boolean | null;
4420
+ frequency?: string | null;
4421
+ isSubscribed?: boolean | null;
4422
+ legacyDiscount?: boolean | null;
4423
+ legacyId?: string | null;
4424
+ name?: string | null;
4425
+ price?: number | null;
4426
+ };
4427
+ /** Allows the customer to use a custom apex. _Tenants Only Configuration_. */
4428
+ cnameSuffix?: string | null;
4429
+ /** Indicates whether the zone is only using Cloudflare DNS services. A true value means the zone will not receive security or performance benefits. */
4430
+ paused?: boolean | null;
4431
+ /** @deprecated This has been replaced by Account memberships. */
4432
+ permissions?: string[] | null;
4433
+ /** The zone status on Cloudflare. */
4434
+ status?: "initializing" | "pending" | "active" | "moved" | null;
4435
+ /** The root organizational unit that this zone belongs to (such as a tenant or organization). */
4436
+ tenant?: { id?: string | null; name?: string | null } | null;
4437
+ /** The immediate parent organizational unit that this zone belongs to (such as under a tenant or sub-organization). */
4438
+ tenantUnit?: { id?: string | null } | null;
4439
+ /** A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. */
4440
+ type?: "full" | "partial" | "secondary" | "internal" | null;
4441
+ /** An array of domains used for custom name servers. This is only available for Business and Enterprise plans. */
4442
+ vanityNameServers?: string[] | null;
4443
+ /** Verification key for partial zone setup. */
4444
+ verificationKey?: string | null;
4445
+ }
4446
+
4447
+ export const CreateZoneResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4448
+ id: Schema.String,
4449
+ account: Schema.Struct({
4450
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4451
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4452
+ }),
4453
+ activatedOn: Schema.Union([Schema.String, Schema.Null]),
4454
+ createdOn: Schema.String,
4455
+ developmentMode: Schema.Number,
4456
+ meta: Schema.Struct({
4457
+ cdnOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4458
+ customCertificateQuota: Schema.optional(
4459
+ Schema.Union([Schema.Number, Schema.Null]),
4460
+ ),
4461
+ dnsOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4462
+ foundationDns: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4463
+ pageRuleQuota: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4464
+ phishingDetected: Schema.optional(
4465
+ Schema.Union([Schema.Boolean, Schema.Null]),
4466
+ ),
4467
+ step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4468
+ }).pipe(
4469
+ Schema.encodeKeys({
4470
+ cdnOnly: "cdn_only",
4471
+ customCertificateQuota: "custom_certificate_quota",
4472
+ dnsOnly: "dns_only",
4473
+ foundationDns: "foundation_dns",
4474
+ pageRuleQuota: "page_rule_quota",
4475
+ phishingDetected: "phishing_detected",
4476
+ step: "step",
4477
+ }),
4478
+ ),
4479
+ modifiedOn: Schema.String,
4480
+ name: Schema.String,
4481
+ nameServers: Schema.Array(Schema.String),
4482
+ originalDnshost: Schema.Union([Schema.String, Schema.Null]),
4483
+ originalNameServers: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4484
+ originalRegistrar: Schema.Union([Schema.String, Schema.Null]),
4485
+ owner: Schema.Struct({
4486
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4487
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4488
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4489
+ }),
4490
+ plan: Schema.Struct({
4491
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4492
+ canSubscribe: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4493
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4494
+ externallyManaged: Schema.optional(
4495
+ Schema.Union([Schema.Boolean, Schema.Null]),
4496
+ ),
4497
+ frequency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4498
+ isSubscribed: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4499
+ legacyDiscount: Schema.optional(
4500
+ Schema.Union([Schema.Boolean, Schema.Null]),
4501
+ ),
4502
+ legacyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4503
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4504
+ price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4505
+ }).pipe(
4506
+ Schema.encodeKeys({
4507
+ id: "id",
4508
+ canSubscribe: "can_subscribe",
4509
+ currency: "currency",
4510
+ externallyManaged: "externally_managed",
4511
+ frequency: "frequency",
4512
+ isSubscribed: "is_subscribed",
4513
+ legacyDiscount: "legacy_discount",
4514
+ legacyId: "legacy_id",
4515
+ name: "name",
4516
+ price: "price",
4517
+ }),
4518
+ ),
4519
+ cnameSuffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4520
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4521
+ permissions: Schema.optional(
4522
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4523
+ ),
4524
+ status: Schema.optional(
4525
+ Schema.Union([
4526
+ Schema.Literals(["initializing", "pending", "active", "moved"]),
4527
+ Schema.Null,
4528
+ ]),
4529
+ ),
4530
+ tenant: Schema.optional(
4531
+ Schema.Union([
4532
+ Schema.Struct({
4533
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4534
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4535
+ }),
4536
+ Schema.Null,
4537
+ ]),
4538
+ ),
4539
+ tenantUnit: Schema.optional(
4540
+ Schema.Union([
4541
+ Schema.Struct({
4542
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4543
+ }),
4544
+ Schema.Null,
4545
+ ]),
4546
+ ),
4547
+ type: Schema.optional(
4548
+ Schema.Union([
4549
+ Schema.Literals(["full", "partial", "secondary", "internal"]),
4550
+ Schema.Null,
4551
+ ]),
4552
+ ),
4553
+ vanityNameServers: Schema.optional(
4554
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4555
+ ),
4556
+ verificationKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4557
+ }).pipe(
4558
+ Schema.encodeKeys({
4559
+ id: "id",
4560
+ account: "account",
4561
+ activatedOn: "activated_on",
4562
+ createdOn: "created_on",
4563
+ developmentMode: "development_mode",
4564
+ meta: "meta",
4565
+ modifiedOn: "modified_on",
4566
+ name: "name",
4567
+ nameServers: "name_servers",
4568
+ originalDnshost: "original_dnshost",
4569
+ originalNameServers: "original_name_servers",
4570
+ originalRegistrar: "original_registrar",
4571
+ owner: "owner",
4572
+ plan: "plan",
4573
+ cnameSuffix: "cname_suffix",
4574
+ paused: "paused",
4575
+ permissions: "permissions",
4576
+ status: "status",
4577
+ tenant: "tenant",
4578
+ tenantUnit: "tenant_unit",
4579
+ type: "type",
4580
+ vanityNameServers: "vanity_name_servers",
4581
+ verificationKey: "verification_key",
4582
+ }),
4583
+ ) as unknown as Schema.Schema<CreateZoneResponse>;
4584
+
4585
+ export type CreateZoneError = DefaultErrors;
4586
+
4587
+ export const createZone: API.OperationMethod<
4588
+ CreateZoneRequest,
4589
+ CreateZoneResponse,
4590
+ CreateZoneError,
4591
+ Credentials | HttpClient.HttpClient
4592
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4593
+ input: CreateZoneRequest,
4594
+ output: CreateZoneResponse,
4595
+ errors: [],
4596
+ }));
4597
+
4598
+ export interface PatchZoneRequest {
4599
+ /** Path param: Identifier */
4600
+ zoneId: string;
4601
+ /** Body param: Indicates whether the zone is only using Cloudflare DNS services. A true value means the zone will not receive security or performance benefits. */
4602
+ paused?: boolean;
4603
+ /** Body param: A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. This parameter is only available to Enterprise customers or if i */
4604
+ type?: "full" | "partial" | "secondary" | "internal";
4605
+ /** Body param: An array of domains used for custom name servers. This is only available for Business and Enterprise plans. */
4606
+ vanityNameServers?: string[];
4607
+ }
4608
+
4609
+ export const PatchZoneRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4610
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
4611
+ paused: Schema.optional(Schema.Boolean),
4612
+ type: Schema.optional(
4613
+ Schema.Literals(["full", "partial", "secondary", "internal"]),
4614
+ ),
4615
+ vanityNameServers: Schema.optional(Schema.Array(Schema.String)),
4616
+ }).pipe(
4617
+ Schema.encodeKeys({
4618
+ paused: "paused",
4619
+ type: "type",
4620
+ vanityNameServers: "vanity_name_servers",
4621
+ }),
4622
+ T.Http({ method: "PATCH", path: "/zones/{zone_id}" }),
4623
+ ) as unknown as Schema.Schema<PatchZoneRequest>;
4624
+
4625
+ export interface PatchZoneResponse {
4626
+ /** Identifier */
4627
+ id: string;
4628
+ /** The account the zone belongs to. */
4629
+ account: { id?: string | null; name?: string | null };
4630
+ /** The last time proof of ownership was detected and the zone was made active. */
4631
+ activatedOn: string | null;
4632
+ /** When the zone was created. */
4633
+ createdOn: string;
4634
+ /** The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is 0. */
4635
+ developmentMode: number;
4636
+ /** Metadata about the zone. */
4637
+ meta: {
4638
+ cdnOnly?: boolean | null;
4639
+ customCertificateQuota?: number | null;
4640
+ dnsOnly?: boolean | null;
4641
+ foundationDns?: boolean | null;
4642
+ pageRuleQuota?: number | null;
4643
+ phishingDetected?: boolean | null;
4644
+ step?: number | null;
4645
+ };
4646
+ /** When the zone was last modified. */
4647
+ modifiedOn: string;
4648
+ /** The domain name. */
4649
+ name: string;
4650
+ /** The name servers Cloudflare assigns to a zone. */
4651
+ nameServers: string[];
4652
+ /** DNS host at the time of switching to Cloudflare. */
4653
+ originalDnshost: string | null;
4654
+ /** Original name servers before moving to Cloudflare. */
4655
+ originalNameServers: string[] | null;
4656
+ /** Registrar for the domain at the time of switching to Cloudflare. */
4657
+ originalRegistrar: string | null;
4658
+ /** The owner of the zone. */
4659
+ owner: { id?: string | null; name?: string | null; type?: string | null };
4660
+ /** @deprecated Please use the `/zones/{zone_id}/subscription` API to update a zone's plan. Changing this value will create/cancel associated subscriptions. To view available plans for this zone, see [Zon */
4661
+ plan: {
4662
+ id?: string | null;
4663
+ canSubscribe?: boolean | null;
4664
+ currency?: string | null;
4665
+ externallyManaged?: boolean | null;
4666
+ frequency?: string | null;
4667
+ isSubscribed?: boolean | null;
4668
+ legacyDiscount?: boolean | null;
4669
+ legacyId?: string | null;
4670
+ name?: string | null;
4671
+ price?: number | null;
4672
+ };
4673
+ /** Allows the customer to use a custom apex. _Tenants Only Configuration_. */
4674
+ cnameSuffix?: string | null;
4675
+ /** Indicates whether the zone is only using Cloudflare DNS services. A true value means the zone will not receive security or performance benefits. */
4676
+ paused?: boolean | null;
4677
+ /** @deprecated This has been replaced by Account memberships. */
4678
+ permissions?: string[] | null;
4679
+ /** The zone status on Cloudflare. */
4680
+ status?: "initializing" | "pending" | "active" | "moved" | null;
4681
+ /** The root organizational unit that this zone belongs to (such as a tenant or organization). */
4682
+ tenant?: { id?: string | null; name?: string | null } | null;
4683
+ /** The immediate parent organizational unit that this zone belongs to (such as under a tenant or sub-organization). */
4684
+ tenantUnit?: { id?: string | null } | null;
4685
+ /** A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. */
4686
+ type?: "full" | "partial" | "secondary" | "internal" | null;
4687
+ /** An array of domains used for custom name servers. This is only available for Business and Enterprise plans. */
4688
+ vanityNameServers?: string[] | null;
4689
+ /** Verification key for partial zone setup. */
4690
+ verificationKey?: string | null;
4691
+ }
4692
+
4693
+ export const PatchZoneResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4694
+ id: Schema.String,
4695
+ account: Schema.Struct({
4696
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4697
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4698
+ }),
4699
+ activatedOn: Schema.Union([Schema.String, Schema.Null]),
4700
+ createdOn: Schema.String,
4701
+ developmentMode: Schema.Number,
4702
+ meta: Schema.Struct({
4703
+ cdnOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4704
+ customCertificateQuota: Schema.optional(
4705
+ Schema.Union([Schema.Number, Schema.Null]),
4706
+ ),
4707
+ dnsOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4708
+ foundationDns: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4709
+ pageRuleQuota: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4710
+ phishingDetected: Schema.optional(
4711
+ Schema.Union([Schema.Boolean, Schema.Null]),
4712
+ ),
4713
+ step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4714
+ }).pipe(
4715
+ Schema.encodeKeys({
4716
+ cdnOnly: "cdn_only",
4717
+ customCertificateQuota: "custom_certificate_quota",
4718
+ dnsOnly: "dns_only",
4719
+ foundationDns: "foundation_dns",
4720
+ pageRuleQuota: "page_rule_quota",
4721
+ phishingDetected: "phishing_detected",
4722
+ step: "step",
4723
+ }),
4724
+ ),
4725
+ modifiedOn: Schema.String,
4726
+ name: Schema.String,
4727
+ nameServers: Schema.Array(Schema.String),
4728
+ originalDnshost: Schema.Union([Schema.String, Schema.Null]),
4729
+ originalNameServers: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4730
+ originalRegistrar: Schema.Union([Schema.String, Schema.Null]),
4731
+ owner: Schema.Struct({
4732
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4733
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4734
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4735
+ }),
4736
+ plan: Schema.Struct({
4737
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4738
+ canSubscribe: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4739
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4740
+ externallyManaged: Schema.optional(
4741
+ Schema.Union([Schema.Boolean, Schema.Null]),
4742
+ ),
4743
+ frequency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4744
+ isSubscribed: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4745
+ legacyDiscount: Schema.optional(
4746
+ Schema.Union([Schema.Boolean, Schema.Null]),
4747
+ ),
4748
+ legacyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4749
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4750
+ price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4751
+ }).pipe(
4752
+ Schema.encodeKeys({
4753
+ id: "id",
4754
+ canSubscribe: "can_subscribe",
4755
+ currency: "currency",
4756
+ externallyManaged: "externally_managed",
4757
+ frequency: "frequency",
4758
+ isSubscribed: "is_subscribed",
4759
+ legacyDiscount: "legacy_discount",
4760
+ legacyId: "legacy_id",
4761
+ name: "name",
4762
+ price: "price",
4763
+ }),
4764
+ ),
4765
+ cnameSuffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4766
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4767
+ permissions: Schema.optional(
4768
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4769
+ ),
4770
+ status: Schema.optional(
4771
+ Schema.Union([
4772
+ Schema.Literals(["initializing", "pending", "active", "moved"]),
4773
+ Schema.Null,
4774
+ ]),
4775
+ ),
4776
+ tenant: Schema.optional(
4777
+ Schema.Union([
4778
+ Schema.Struct({
4779
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4780
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4781
+ }),
4782
+ Schema.Null,
4783
+ ]),
4784
+ ),
4785
+ tenantUnit: Schema.optional(
4786
+ Schema.Union([
4787
+ Schema.Struct({
4788
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4789
+ }),
4790
+ Schema.Null,
4791
+ ]),
4792
+ ),
4793
+ type: Schema.optional(
4794
+ Schema.Union([
4795
+ Schema.Literals(["full", "partial", "secondary", "internal"]),
4796
+ Schema.Null,
4797
+ ]),
4798
+ ),
4799
+ vanityNameServers: Schema.optional(
4800
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4801
+ ),
4802
+ verificationKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4803
+ }).pipe(
4804
+ Schema.encodeKeys({
4805
+ id: "id",
4806
+ account: "account",
4807
+ activatedOn: "activated_on",
4808
+ createdOn: "created_on",
4809
+ developmentMode: "development_mode",
4810
+ meta: "meta",
4811
+ modifiedOn: "modified_on",
4812
+ name: "name",
4813
+ nameServers: "name_servers",
4814
+ originalDnshost: "original_dnshost",
4815
+ originalNameServers: "original_name_servers",
4816
+ originalRegistrar: "original_registrar",
4817
+ owner: "owner",
4818
+ plan: "plan",
4819
+ cnameSuffix: "cname_suffix",
4820
+ paused: "paused",
4821
+ permissions: "permissions",
4822
+ status: "status",
4823
+ tenant: "tenant",
4824
+ tenantUnit: "tenant_unit",
4825
+ type: "type",
4826
+ vanityNameServers: "vanity_name_servers",
4827
+ verificationKey: "verification_key",
4828
+ }),
4829
+ ) as unknown as Schema.Schema<PatchZoneResponse>;
4830
+
4831
+ export type PatchZoneError = DefaultErrors;
4832
+
4833
+ export const patchZone: API.OperationMethod<
4834
+ PatchZoneRequest,
4835
+ PatchZoneResponse,
4836
+ PatchZoneError,
4837
+ Credentials | HttpClient.HttpClient
4838
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4839
+ input: PatchZoneRequest,
4840
+ output: PatchZoneResponse,
4841
+ errors: [],
4842
+ }));
4843
+
4844
+ export interface DeleteZoneRequest {
4845
+ /** Identifier */
4846
+ zoneId: string;
4847
+ }
4848
+
4849
+ export const DeleteZoneRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4850
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
4851
+ }).pipe(
4852
+ T.Http({ method: "DELETE", path: "/zones/{zone_id}" }),
4853
+ ) as unknown as Schema.Schema<DeleteZoneRequest>;
4854
+
4855
+ export interface DeleteZoneResponse {
4856
+ /** Identifier */
4857
+ id: string;
4858
+ }
4859
+
4860
+ export const DeleteZoneResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4861
+ id: Schema.String,
4862
+ }) as unknown as Schema.Schema<DeleteZoneResponse>;
4863
+
4864
+ export type DeleteZoneError = DefaultErrors;
4865
+
4866
+ export const deleteZone: API.OperationMethod<
4867
+ DeleteZoneRequest,
4868
+ DeleteZoneResponse,
4869
+ DeleteZoneError,
4870
+ Credentials | HttpClient.HttpClient
4871
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4872
+ input: DeleteZoneRequest,
4873
+ output: DeleteZoneResponse,
4874
+ errors: [],
4875
+ }));