@distilled.cloud/cloudflare 0.0.0-john

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. package/README.md +59 -0
  2. package/lib/auth.d.ts +14 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +13 -0
  5. package/lib/auth.js.map +1 -0
  6. package/lib/category.d.ts +2 -0
  7. package/lib/category.d.ts.map +1 -0
  8. package/lib/category.js +2 -0
  9. package/lib/category.js.map +1 -0
  10. package/lib/client/api.d.ts +12 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +292 -0
  13. package/lib/client/api.js.map +1 -0
  14. package/lib/client/index.d.ts +8 -0
  15. package/lib/client/index.d.ts.map +1 -0
  16. package/lib/client/index.js +8 -0
  17. package/lib/client/index.js.map +1 -0
  18. package/lib/credentials.d.ts +68 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +136 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +48 -0
  23. package/lib/errors.d.ts.map +1 -0
  24. package/lib/errors.js +31 -0
  25. package/lib/errors.js.map +1 -0
  26. package/lib/index.d.ts +10 -0
  27. package/lib/index.d.ts.map +1 -0
  28. package/lib/index.js +10 -0
  29. package/lib/index.js.map +1 -0
  30. package/lib/retry.d.ts +14 -0
  31. package/lib/retry.d.ts.map +1 -0
  32. package/lib/retry.js +14 -0
  33. package/lib/retry.js.map +1 -0
  34. package/lib/schemas.d.ts +29 -0
  35. package/lib/schemas.d.ts.map +1 -0
  36. package/lib/schemas.js +34 -0
  37. package/lib/schemas.js.map +1 -0
  38. package/lib/sensitive.d.ts +5 -0
  39. package/lib/sensitive.d.ts.map +1 -0
  40. package/lib/sensitive.js +5 -0
  41. package/lib/sensitive.js.map +1 -0
  42. package/lib/services/abuse-reports.d.ts +296 -0
  43. package/lib/services/abuse-reports.d.ts.map +1 -0
  44. package/lib/services/abuse-reports.js +414 -0
  45. package/lib/services/abuse-reports.js.map +1 -0
  46. package/lib/services/accounts.d.ts +766 -0
  47. package/lib/services/accounts.d.ts.map +1 -0
  48. package/lib/services/accounts.js +860 -0
  49. package/lib/services/accounts.js.map +1 -0
  50. package/lib/services/acm.d.ts +73 -0
  51. package/lib/services/acm.d.ts.map +1 -0
  52. package/lib/services/acm.js +80 -0
  53. package/lib/services/acm.js.map +1 -0
  54. package/lib/services/addressing.d.ts +1321 -0
  55. package/lib/services/addressing.d.ts.map +1 -0
  56. package/lib/services/addressing.js +1863 -0
  57. package/lib/services/addressing.js.map +1 -0
  58. package/lib/services/ai-gateway.d.ts +1137 -0
  59. package/lib/services/ai-gateway.d.ts.map +1 -0
  60. package/lib/services/ai-gateway.js +1830 -0
  61. package/lib/services/ai-gateway.js.map +1 -0
  62. package/lib/services/ai.d.ts +297 -0
  63. package/lib/services/ai.d.ts.map +1 -0
  64. package/lib/services/ai.js +352 -0
  65. package/lib/services/ai.js.map +1 -0
  66. package/lib/services/aisearch.d.ts +1069 -0
  67. package/lib/services/aisearch.d.ts.map +1 -0
  68. package/lib/services/aisearch.js +2542 -0
  69. package/lib/services/aisearch.js.map +1 -0
  70. package/lib/services/alerting.d.ts +855 -0
  71. package/lib/services/alerting.d.ts.map +1 -0
  72. package/lib/services/alerting.js +1445 -0
  73. package/lib/services/alerting.js.map +1 -0
  74. package/lib/services/api-gateway.d.ts +1088 -0
  75. package/lib/services/api-gateway.d.ts.map +1 -0
  76. package/lib/services/api-gateway.js +1655 -0
  77. package/lib/services/api-gateway.js.map +1 -0
  78. package/lib/services/argo.d.ts +101 -0
  79. package/lib/services/argo.d.ts.map +1 -0
  80. package/lib/services/argo.js +113 -0
  81. package/lib/services/argo.js.map +1 -0
  82. package/lib/services/audit-logs.d.ts +46 -0
  83. package/lib/services/audit-logs.d.ts.map +1 -0
  84. package/lib/services/audit-logs.js +37 -0
  85. package/lib/services/audit-logs.js.map +1 -0
  86. package/lib/services/billing.d.ts +62 -0
  87. package/lib/services/billing.d.ts.map +1 -0
  88. package/lib/services/billing.js +102 -0
  89. package/lib/services/billing.js.map +1 -0
  90. package/lib/services/bot-management.d.ts +124 -0
  91. package/lib/services/bot-management.d.ts.map +1 -0
  92. package/lib/services/bot-management.js +262 -0
  93. package/lib/services/bot-management.js.map +1 -0
  94. package/lib/services/botnet-feed.d.ts +65 -0
  95. package/lib/services/botnet-feed.d.ts.map +1 -0
  96. package/lib/services/botnet-feed.js +88 -0
  97. package/lib/services/botnet-feed.js.map +1 -0
  98. package/lib/services/brand-protection.d.ts +194 -0
  99. package/lib/services/brand-protection.d.ts.map +1 -0
  100. package/lib/services/brand-protection.js +221 -0
  101. package/lib/services/brand-protection.js.map +1 -0
  102. package/lib/services/browser-rendering.d.ts +857 -0
  103. package/lib/services/browser-rendering.d.ts.map +1 -0
  104. package/lib/services/browser-rendering.js +1142 -0
  105. package/lib/services/browser-rendering.js.map +1 -0
  106. package/lib/services/cache.d.ts +287 -0
  107. package/lib/services/cache.d.ts.map +1 -0
  108. package/lib/services/cache.js +354 -0
  109. package/lib/services/cache.js.map +1 -0
  110. package/lib/services/calls.d.ts +223 -0
  111. package/lib/services/calls.d.ts.map +1 -0
  112. package/lib/services/calls.js +188 -0
  113. package/lib/services/calls.js.map +1 -0
  114. package/lib/services/certificate-authorities.d.ts +40 -0
  115. package/lib/services/certificate-authorities.d.ts.map +1 -0
  116. package/lib/services/certificate-authorities.js +49 -0
  117. package/lib/services/certificate-authorities.js.map +1 -0
  118. package/lib/services/client-certificates.d.ts +288 -0
  119. package/lib/services/client-certificates.d.ts.map +1 -0
  120. package/lib/services/client-certificates.js +379 -0
  121. package/lib/services/client-certificates.js.map +1 -0
  122. package/lib/services/cloud-connector.d.ts +88 -0
  123. package/lib/services/cloud-connector.d.ts.map +1 -0
  124. package/lib/services/cloud-connector.js +97 -0
  125. package/lib/services/cloud-connector.js.map +1 -0
  126. package/lib/services/cloudforce-one.d.ts +1387 -0
  127. package/lib/services/cloudforce-one.d.ts.map +1 -0
  128. package/lib/services/cloudforce-one.js +1741 -0
  129. package/lib/services/cloudforce-one.js.map +1 -0
  130. package/lib/services/connectivity.d.ts +291 -0
  131. package/lib/services/connectivity.d.ts.map +1 -0
  132. package/lib/services/connectivity.js +404 -0
  133. package/lib/services/connectivity.js.map +1 -0
  134. package/lib/services/content-scanning.d.ts +156 -0
  135. package/lib/services/content-scanning.d.ts.map +1 -0
  136. package/lib/services/content-scanning.js +175 -0
  137. package/lib/services/content-scanning.js.map +1 -0
  138. package/lib/services/custom-certificates.d.ts +240 -0
  139. package/lib/services/custom-certificates.d.ts.map +1 -0
  140. package/lib/services/custom-certificates.js +336 -0
  141. package/lib/services/custom-certificates.js.map +1 -0
  142. package/lib/services/custom-hostnames.d.ts +590 -0
  143. package/lib/services/custom-hostnames.d.ts.map +1 -0
  144. package/lib/services/custom-hostnames.js +1204 -0
  145. package/lib/services/custom-hostnames.js.map +1 -0
  146. package/lib/services/custom-nameservers.d.ts +87 -0
  147. package/lib/services/custom-nameservers.d.ts.map +1 -0
  148. package/lib/services/custom-nameservers.js +95 -0
  149. package/lib/services/custom-nameservers.js.map +1 -0
  150. package/lib/services/custom-pages.d.ts +89 -0
  151. package/lib/services/custom-pages.d.ts.map +1 -0
  152. package/lib/services/custom-pages.js +140 -0
  153. package/lib/services/custom-pages.js.map +1 -0
  154. package/lib/services/d1.d.ts +392 -0
  155. package/lib/services/d1.d.ts.map +1 -0
  156. package/lib/services/d1.js +487 -0
  157. package/lib/services/d1.js.map +1 -0
  158. package/lib/services/dcv-delegation.d.ts +24 -0
  159. package/lib/services/dcv-delegation.d.ts.map +1 -0
  160. package/lib/services/dcv-delegation.js +24 -0
  161. package/lib/services/dcv-delegation.js.map +1 -0
  162. package/lib/services/diagnostics.d.ts +208 -0
  163. package/lib/services/diagnostics.d.ts.map +1 -0
  164. package/lib/services/diagnostics.js +288 -0
  165. package/lib/services/diagnostics.js.map +1 -0
  166. package/lib/services/dns-firewall.d.ts +317 -0
  167. package/lib/services/dns-firewall.d.ts.map +1 -0
  168. package/lib/services/dns-firewall.js +400 -0
  169. package/lib/services/dns-firewall.js.map +1 -0
  170. package/lib/services/dns.d.ts +3065 -0
  171. package/lib/services/dns.d.ts.map +1 -0
  172. package/lib/services/dns.js +4627 -0
  173. package/lib/services/dns.js.map +1 -0
  174. package/lib/services/durable-objects.d.ts +92 -0
  175. package/lib/services/durable-objects.d.ts.map +1 -0
  176. package/lib/services/durable-objects.js +103 -0
  177. package/lib/services/durable-objects.js.map +1 -0
  178. package/lib/services/email-routing.d.ts +598 -0
  179. package/lib/services/email-routing.d.ts.map +1 -0
  180. package/lib/services/email-routing.js +715 -0
  181. package/lib/services/email-routing.js.map +1 -0
  182. package/lib/services/email-security.d.ts +1389 -0
  183. package/lib/services/email-security.d.ts.map +1 -0
  184. package/lib/services/email-security.js +2261 -0
  185. package/lib/services/email-security.js.map +1 -0
  186. package/lib/services/filters.d.ts +197 -0
  187. package/lib/services/filters.d.ts.map +1 -0
  188. package/lib/services/filters.js +168 -0
  189. package/lib/services/filters.js.map +1 -0
  190. package/lib/services/firewall.d.ts +1352 -0
  191. package/lib/services/firewall.d.ts.map +1 -0
  192. package/lib/services/firewall.js +2084 -0
  193. package/lib/services/firewall.js.map +1 -0
  194. package/lib/services/healthchecks.d.ts +507 -0
  195. package/lib/services/healthchecks.d.ts.map +1 -0
  196. package/lib/services/healthchecks.js +867 -0
  197. package/lib/services/healthchecks.js.map +1 -0
  198. package/lib/services/hostnames.d.ts +86 -0
  199. package/lib/services/hostnames.d.ts.map +1 -0
  200. package/lib/services/hostnames.js +111 -0
  201. package/lib/services/hostnames.js.map +1 -0
  202. package/lib/services/hyperdrive.d.ts +203 -0
  203. package/lib/services/hyperdrive.d.ts.map +1 -0
  204. package/lib/services/hyperdrive.js +300 -0
  205. package/lib/services/hyperdrive.js.map +1 -0
  206. package/lib/services/iam.d.ts +657 -0
  207. package/lib/services/iam.d.ts.map +1 -0
  208. package/lib/services/iam.js +843 -0
  209. package/lib/services/iam.js.map +1 -0
  210. package/lib/services/images.d.ts +427 -0
  211. package/lib/services/images.d.ts.map +1 -0
  212. package/lib/services/images.js +444 -0
  213. package/lib/services/images.js.map +1 -0
  214. package/lib/services/intel.d.ts +865 -0
  215. package/lib/services/intel.d.ts.map +1 -0
  216. package/lib/services/intel.js +1266 -0
  217. package/lib/services/intel.js.map +1 -0
  218. package/lib/services/ips.d.ts +28 -0
  219. package/lib/services/ips.d.ts.map +1 -0
  220. package/lib/services/ips.js +39 -0
  221. package/lib/services/ips.js.map +1 -0
  222. package/lib/services/keyless-certificates.d.ts +197 -0
  223. package/lib/services/keyless-certificates.d.ts.map +1 -0
  224. package/lib/services/keyless-certificates.js +229 -0
  225. package/lib/services/keyless-certificates.js.map +1 -0
  226. package/lib/services/kv.d.ts +369 -0
  227. package/lib/services/kv.d.ts.map +1 -0
  228. package/lib/services/kv.js +453 -0
  229. package/lib/services/kv.js.map +1 -0
  230. package/lib/services/leaked-credential-checks.d.ts +129 -0
  231. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  232. package/lib/services/leaked-credential-checks.js +138 -0
  233. package/lib/services/leaked-credential-checks.js.map +1 -0
  234. package/lib/services/load-balancers.d.ts +1973 -0
  235. package/lib/services/load-balancers.d.ts.map +1 -0
  236. package/lib/services/load-balancers.js +3181 -0
  237. package/lib/services/load-balancers.js.map +1 -0
  238. package/lib/services/logpush.d.ts +401 -0
  239. package/lib/services/logpush.d.ts.map +1 -0
  240. package/lib/services/logpush.js +732 -0
  241. package/lib/services/logpush.js.map +1 -0
  242. package/lib/services/logs.d.ts +125 -0
  243. package/lib/services/logs.d.ts.map +1 -0
  244. package/lib/services/logs.js +149 -0
  245. package/lib/services/logs.js.map +1 -0
  246. package/lib/services/magic-cloud-networking.d.ts +1892 -0
  247. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  248. package/lib/services/magic-cloud-networking.js +5291 -0
  249. package/lib/services/magic-cloud-networking.js.map +1 -0
  250. package/lib/services/magic-network-monitoring.d.ts +379 -0
  251. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  252. package/lib/services/magic-network-monitoring.js +557 -0
  253. package/lib/services/magic-network-monitoring.js.map +1 -0
  254. package/lib/services/magic-transit.d.ts +3886 -0
  255. package/lib/services/magic-transit.d.ts.map +1 -0
  256. package/lib/services/magic-transit.js +6284 -0
  257. package/lib/services/magic-transit.js.map +1 -0
  258. package/lib/services/managed-transforms.d.ts +79 -0
  259. package/lib/services/managed-transforms.d.ts.map +1 -0
  260. package/lib/services/managed-transforms.js +111 -0
  261. package/lib/services/managed-transforms.js.map +1 -0
  262. package/lib/services/memberships.d.ts +204 -0
  263. package/lib/services/memberships.d.ts.map +1 -0
  264. package/lib/services/memberships.js +308 -0
  265. package/lib/services/memberships.js.map +1 -0
  266. package/lib/services/mtls-certificates.d.ts +164 -0
  267. package/lib/services/mtls-certificates.d.ts.map +1 -0
  268. package/lib/services/mtls-certificates.js +192 -0
  269. package/lib/services/mtls-certificates.js.map +1 -0
  270. package/lib/services/network-interconnects.d.ts +410 -0
  271. package/lib/services/network-interconnects.d.ts.map +1 -0
  272. package/lib/services/network-interconnects.js +583 -0
  273. package/lib/services/network-interconnects.js.map +1 -0
  274. package/lib/services/organizations.d.ts +232 -0
  275. package/lib/services/organizations.d.ts.map +1 -0
  276. package/lib/services/organizations.js +370 -0
  277. package/lib/services/organizations.js.map +1 -0
  278. package/lib/services/origin-ca-certificates.d.ts +119 -0
  279. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  280. package/lib/services/origin-ca-certificates.js +183 -0
  281. package/lib/services/origin-ca-certificates.js.map +1 -0
  282. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  283. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  284. package/lib/services/origin-post-quantum-encryption.js +64 -0
  285. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  286. package/lib/services/origin-tls-client-auth.d.ts +308 -0
  287. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  288. package/lib/services/origin-tls-client-auth.js +435 -0
  289. package/lib/services/origin-tls-client-auth.js.map +1 -0
  290. package/lib/services/page-rules.d.ts +773 -0
  291. package/lib/services/page-rules.d.ts.map +1 -0
  292. package/lib/services/page-rules.js +1373 -0
  293. package/lib/services/page-rules.js.map +1 -0
  294. package/lib/services/page-shield.d.ts +505 -0
  295. package/lib/services/page-shield.d.ts.map +1 -0
  296. package/lib/services/page-shield.js +520 -0
  297. package/lib/services/page-shield.js.map +1 -0
  298. package/lib/services/pages.d.ts +1949 -0
  299. package/lib/services/pages.d.ts.map +1 -0
  300. package/lib/services/pages.js +3030 -0
  301. package/lib/services/pages.js.map +1 -0
  302. package/lib/services/pipelines.d.ts +1716 -0
  303. package/lib/services/pipelines.d.ts.map +1 -0
  304. package/lib/services/pipelines.js +2991 -0
  305. package/lib/services/pipelines.js.map +1 -0
  306. package/lib/services/queues.d.ts +904 -0
  307. package/lib/services/queues.d.ts.map +1 -0
  308. package/lib/services/queues.js +1250 -0
  309. package/lib/services/queues.js.map +1 -0
  310. package/lib/services/r2-data-catalog.d.ts +341 -0
  311. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  312. package/lib/services/r2-data-catalog.js +513 -0
  313. package/lib/services/r2-data-catalog.js.map +1 -0
  314. package/lib/services/r2.d.ts +1087 -0
  315. package/lib/services/r2.d.ts.map +1 -0
  316. package/lib/services/r2.js +1404 -0
  317. package/lib/services/r2.js.map +1 -0
  318. package/lib/services/radar.d.ts +9365 -0
  319. package/lib/services/radar.d.ts.map +1 -0
  320. package/lib/services/radar.js +20552 -0
  321. package/lib/services/radar.js.map +1 -0
  322. package/lib/services/rate-limits.d.ts +360 -0
  323. package/lib/services/rate-limits.d.ts.map +1 -0
  324. package/lib/services/rate-limits.js +545 -0
  325. package/lib/services/rate-limits.js.map +1 -0
  326. package/lib/services/realtime-kit.d.ts +2728 -0
  327. package/lib/services/realtime-kit.d.ts.map +1 -0
  328. package/lib/services/realtime-kit.js +5402 -0
  329. package/lib/services/realtime-kit.js.map +1 -0
  330. package/lib/services/registrar.d.ts +121 -0
  331. package/lib/services/registrar.d.ts.map +1 -0
  332. package/lib/services/registrar.js +167 -0
  333. package/lib/services/registrar.js.map +1 -0
  334. package/lib/services/request-tracers.d.ts +61 -0
  335. package/lib/services/request-tracers.d.ts.map +1 -0
  336. package/lib/services/request-tracers.js +85 -0
  337. package/lib/services/request-tracers.js.map +1 -0
  338. package/lib/services/resource-sharing.d.ts +622 -0
  339. package/lib/services/resource-sharing.d.ts.map +1 -0
  340. package/lib/services/resource-sharing.js +929 -0
  341. package/lib/services/resource-sharing.js.map +1 -0
  342. package/lib/services/rules.d.ts +346 -0
  343. package/lib/services/rules.d.ts.map +1 -0
  344. package/lib/services/rules.js +431 -0
  345. package/lib/services/rules.js.map +1 -0
  346. package/lib/services/rulesets.d.ts +3345 -0
  347. package/lib/services/rulesets.d.ts.map +1 -0
  348. package/lib/services/rulesets.js +7904 -0
  349. package/lib/services/rulesets.js.map +1 -0
  350. package/lib/services/rum.d.ts +314 -0
  351. package/lib/services/rum.d.ts.map +1 -0
  352. package/lib/services/rum.js +442 -0
  353. package/lib/services/rum.js.map +1 -0
  354. package/lib/services/schema-validation.d.ts +273 -0
  355. package/lib/services/schema-validation.d.ts.map +1 -0
  356. package/lib/services/schema-validation.js +365 -0
  357. package/lib/services/schema-validation.js.map +1 -0
  358. package/lib/services/secrets-store.d.ts +393 -0
  359. package/lib/services/secrets-store.d.ts.map +1 -0
  360. package/lib/services/secrets-store.js +452 -0
  361. package/lib/services/secrets-store.js.map +1 -0
  362. package/lib/services/security-center.d.ts +136 -0
  363. package/lib/services/security-center.d.ts.map +1 -0
  364. package/lib/services/security-center.js +196 -0
  365. package/lib/services/security-center.js.map +1 -0
  366. package/lib/services/security-txt.d.ts +105 -0
  367. package/lib/services/security-txt.d.ts.map +1 -0
  368. package/lib/services/security-txt.js +136 -0
  369. package/lib/services/security-txt.js.map +1 -0
  370. package/lib/services/snippets.d.ts +190 -0
  371. package/lib/services/snippets.d.ts.map +1 -0
  372. package/lib/services/snippets.js +221 -0
  373. package/lib/services/snippets.js.map +1 -0
  374. package/lib/services/spectrum.d.ts +350 -0
  375. package/lib/services/spectrum.d.ts.map +1 -0
  376. package/lib/services/spectrum.js +535 -0
  377. package/lib/services/spectrum.js.map +1 -0
  378. package/lib/services/speed.d.ts +257 -0
  379. package/lib/services/speed.d.ts.map +1 -0
  380. package/lib/services/speed.js +471 -0
  381. package/lib/services/speed.js.map +1 -0
  382. package/lib/services/ssl.d.ts +412 -0
  383. package/lib/services/ssl.d.ts.map +1 -0
  384. package/lib/services/ssl.js +755 -0
  385. package/lib/services/ssl.js.map +1 -0
  386. package/lib/services/stream.d.ts +1110 -0
  387. package/lib/services/stream.d.ts.map +1 -0
  388. package/lib/services/stream.js +1085 -0
  389. package/lib/services/stream.js.map +1 -0
  390. package/lib/services/token-validation.d.ts +662 -0
  391. package/lib/services/token-validation.d.ts.map +1 -0
  392. package/lib/services/token-validation.js +834 -0
  393. package/lib/services/token-validation.js.map +1 -0
  394. package/lib/services/turnstile.d.ts +272 -0
  395. package/lib/services/turnstile.d.ts.map +1 -0
  396. package/lib/services/turnstile.js +339 -0
  397. package/lib/services/turnstile.js.map +1 -0
  398. package/lib/services/url-normalization.d.ts +53 -0
  399. package/lib/services/url-normalization.d.ts.map +1 -0
  400. package/lib/services/url-normalization.js +52 -0
  401. package/lib/services/url-normalization.js.map +1 -0
  402. package/lib/services/url-scanner.d.ts +612 -0
  403. package/lib/services/url-scanner.d.ts.map +1 -0
  404. package/lib/services/url-scanner.js +915 -0
  405. package/lib/services/url-scanner.js.map +1 -0
  406. package/lib/services/user.d.ts +507 -0
  407. package/lib/services/user.d.ts.map +1 -0
  408. package/lib/services/user.js +634 -0
  409. package/lib/services/user.js.map +1 -0
  410. package/lib/services/vectorize.d.ts +297 -0
  411. package/lib/services/vectorize.d.ts.map +1 -0
  412. package/lib/services/vectorize.js +351 -0
  413. package/lib/services/vectorize.js.map +1 -0
  414. package/lib/services/waiting-rooms.d.ts +1149 -0
  415. package/lib/services/waiting-rooms.d.ts.map +1 -0
  416. package/lib/services/waiting-rooms.js +1859 -0
  417. package/lib/services/waiting-rooms.js.map +1 -0
  418. package/lib/services/web3.d.ts +289 -0
  419. package/lib/services/web3.d.ts.map +1 -0
  420. package/lib/services/web3.js +381 -0
  421. package/lib/services/web3.js.map +1 -0
  422. package/lib/services/workers-for-platforms.d.ts +1394 -0
  423. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  424. package/lib/services/workers-for-platforms.js +2121 -0
  425. package/lib/services/workers-for-platforms.js.map +1 -0
  426. package/lib/services/workers.d.ts +3827 -0
  427. package/lib/services/workers.d.ts.map +1 -0
  428. package/lib/services/workers.js +6105 -0
  429. package/lib/services/workers.js.map +1 -0
  430. package/lib/services/workflows.d.ts +442 -0
  431. package/lib/services/workflows.d.ts.map +1 -0
  432. package/lib/services/workflows.js +599 -0
  433. package/lib/services/workflows.js.map +1 -0
  434. package/lib/services/zaraz.d.ts +312 -0
  435. package/lib/services/zaraz.d.ts.map +1 -0
  436. package/lib/services/zaraz.js +305 -0
  437. package/lib/services/zaraz.js.map +1 -0
  438. package/lib/services/zero-trust.d.ts +18235 -0
  439. package/lib/services/zero-trust.d.ts.map +1 -0
  440. package/lib/services/zero-trust.js +30268 -0
  441. package/lib/services/zero-trust.js.map +1 -0
  442. package/lib/services/zones.d.ts +1382 -0
  443. package/lib/services/zones.d.ts.map +1 -0
  444. package/lib/services/zones.js +2477 -0
  445. package/lib/services/zones.js.map +1 -0
  446. package/lib/traits.d.ts +28 -0
  447. package/lib/traits.d.ts.map +1 -0
  448. package/lib/traits.js +26 -0
  449. package/lib/traits.js.map +1 -0
  450. package/package.json +82 -0
  451. package/src/auth.ts +15 -0
  452. package/src/category.ts +1 -0
  453. package/src/client/api.ts +421 -0
  454. package/src/client/index.ts +7 -0
  455. package/src/credentials.ts +271 -0
  456. package/src/errors.ts +73 -0
  457. package/src/index.ts +9 -0
  458. package/src/retry.ts +35 -0
  459. package/src/schemas.ts +51 -0
  460. package/src/sensitive.ts +4 -0
  461. package/src/services/abuse-reports.ts +955 -0
  462. package/src/services/accounts.ts +2152 -0
  463. package/src/services/acm.ts +178 -0
  464. package/src/services/addressing.ts +4262 -0
  465. package/src/services/ai-gateway.ts +3773 -0
  466. package/src/services/ai.ts +901 -0
  467. package/src/services/aisearch.ts +5215 -0
  468. package/src/services/alerting.ts +3303 -0
  469. package/src/services/api-gateway.ts +3890 -0
  470. package/src/services/argo.ts +270 -0
  471. package/src/services/audit-logs.ts +90 -0
  472. package/src/services/billing.ts +176 -0
  473. package/src/services/bot-management.ts +545 -0
  474. package/src/services/botnet-feed.ts +205 -0
  475. package/src/services/brand-protection.ts +575 -0
  476. package/src/services/browser-rendering.ts +2720 -0
  477. package/src/services/cache.ts +877 -0
  478. package/src/services/calls.ts +548 -0
  479. package/src/services/certificate-authorities.ts +114 -0
  480. package/src/services/client-certificates.ts +815 -0
  481. package/src/services/cloud-connector.ts +248 -0
  482. package/src/services/cloudforce-one.ts +4104 -0
  483. package/src/services/connectivity.ts +706 -0
  484. package/src/services/content-scanning.ts +458 -0
  485. package/src/services/custom-certificates.ts +690 -0
  486. package/src/services/custom-hostnames.ts +2641 -0
  487. package/src/services/custom-nameservers.ts +235 -0
  488. package/src/services/custom-pages.ts +311 -0
  489. package/src/services/d1.ts +1208 -0
  490. package/src/services/dcv-delegation.ts +54 -0
  491. package/src/services/diagnostics.ts +677 -0
  492. package/src/services/dns-firewall.ts +904 -0
  493. package/src/services/dns.ts +9277 -0
  494. package/src/services/durable-objects.ts +237 -0
  495. package/src/services/email-routing.ts +1796 -0
  496. package/src/services/email-security.ts +5052 -0
  497. package/src/services/filters.ts +488 -0
  498. package/src/services/firewall.ts +4728 -0
  499. package/src/services/healthchecks.ts +1866 -0
  500. package/src/services/hostnames.ts +254 -0
  501. package/src/services/hyperdrive.ts +595 -0
  502. package/src/services/iam.ts +1969 -0
  503. package/src/services/images.ts +1180 -0
  504. package/src/services/intel.ts +3072 -0
  505. package/src/services/ips.ts +88 -0
  506. package/src/services/keyless-certificates.ts +509 -0
  507. package/src/services/kv.ts +1129 -0
  508. package/src/services/leaked-credential-checks.ts +364 -0
  509. package/src/services/load-balancers.ts +6993 -0
  510. package/src/services/logpush.ts +1695 -0
  511. package/src/services/logs.ts +389 -0
  512. package/src/services/magic-cloud-networking.ts +10747 -0
  513. package/src/services/magic-network-monitoring.ts +1200 -0
  514. package/src/services/magic-transit.ts +13673 -0
  515. package/src/services/managed-transforms.ts +245 -0
  516. package/src/services/memberships.ts +698 -0
  517. package/src/services/mtls-certificates.ts +444 -0
  518. package/src/services/network-interconnects.ts +1253 -0
  519. package/src/services/organizations.ts +738 -0
  520. package/src/services/origin-ca-certificates.ts +369 -0
  521. package/src/services/origin-post-quantum-encryption.ts +136 -0
  522. package/src/services/origin-tls-client-auth.ts +1002 -0
  523. package/src/services/page-rules.ts +2632 -0
  524. package/src/services/page-shield.ts +1371 -0
  525. package/src/services/pages.ts +6167 -0
  526. package/src/services/pipelines.ts +6455 -0
  527. package/src/services/queues.ts +2827 -0
  528. package/src/services/r2-data-catalog.ts +1151 -0
  529. package/src/services/r2.ts +3529 -0
  530. package/src/services/radar.ts +42836 -0
  531. package/src/services/rate-limits.ts +1252 -0
  532. package/src/services/realtime-kit.ts +11080 -0
  533. package/src/services/registrar.ts +390 -0
  534. package/src/services/request-tracers.ts +161 -0
  535. package/src/services/resource-sharing.ts +2082 -0
  536. package/src/services/rules.ts +953 -0
  537. package/src/services/rulesets.ts +15361 -0
  538. package/src/services/rum.ts +994 -0
  539. package/src/services/schema-validation.ts +869 -0
  540. package/src/services/secrets-store.ts +1050 -0
  541. package/src/services/security-center.ts +495 -0
  542. package/src/services/security-txt.ts +317 -0
  543. package/src/services/snippets.ts +562 -0
  544. package/src/services/spectrum.ts +1190 -0
  545. package/src/services/speed.ts +1154 -0
  546. package/src/services/ssl.ts +1714 -0
  547. package/src/services/stream.ts +3008 -0
  548. package/src/services/token-validation.ts +1825 -0
  549. package/src/services/turnstile.ts +725 -0
  550. package/src/services/url-normalization.ts +133 -0
  551. package/src/services/url-scanner.ts +1851 -0
  552. package/src/services/user.ts +1587 -0
  553. package/src/services/vectorize.ts +875 -0
  554. package/src/services/waiting-rooms.ts +4216 -0
  555. package/src/services/web3.ts +899 -0
  556. package/src/services/workers-for-platforms.ts +4134 -0
  557. package/src/services/workers.ts +12298 -0
  558. package/src/services/workflows.ts +1372 -0
  559. package/src/services/zaraz.ts +833 -0
  560. package/src/services/zero-trust.ts +64685 -0
  561. package/src/services/zones.ts +5106 -0
  562. package/src/traits.ts +47 -0
@@ -0,0 +1,4262 @@
1
+ /**
2
+ * Cloudflare ADDRESSING API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service addressing
6
+ */
7
+
8
+ import * as stream from "effect/Stream";
9
+ import * as Schema from "effect/Schema";
10
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
11
+ import * as API from "../client/api.ts";
12
+ import * as T from "../traits.ts";
13
+ import type { Credentials } from "../credentials.ts";
14
+ import { type DefaultErrors } from "../errors.ts";
15
+
16
+ // =============================================================================
17
+ // Errors
18
+ // =============================================================================
19
+
20
+ export class AddressMapNotFound extends Schema.TaggedErrorClass<AddressMapNotFound>()(
21
+ "AddressMapNotFound",
22
+ { code: Schema.Number, message: Schema.String },
23
+ ) {}
24
+ T.applyErrorMatchers(AddressMapNotFound, [
25
+ { code: 1000 },
26
+ { code: 1000, message: { includes: "not_found" } },
27
+ ]);
28
+
29
+ export class BgpPrefixNotFound extends Schema.TaggedErrorClass<BgpPrefixNotFound>()(
30
+ "BgpPrefixNotFound",
31
+ { code: Schema.Number, message: Schema.String },
32
+ ) {}
33
+ T.applyErrorMatchers(BgpPrefixNotFound, [{ code: 1002 }]);
34
+
35
+ export class BindingNotFound extends Schema.TaggedErrorClass<BindingNotFound>()(
36
+ "BindingNotFound",
37
+ { code: Schema.Number, message: Schema.String },
38
+ ) {}
39
+ T.applyErrorMatchers(BindingNotFound, [{ code: 1002 }]);
40
+
41
+ export class DelegationNotFound extends Schema.TaggedErrorClass<DelegationNotFound>()(
42
+ "DelegationNotFound",
43
+ { code: Schema.Number, message: Schema.String },
44
+ ) {}
45
+ T.applyErrorMatchers(DelegationNotFound, [{ code: 1000 }]);
46
+
47
+ export class FeatureNotEnabled extends Schema.TaggedErrorClass<FeatureNotEnabled>()(
48
+ "FeatureNotEnabled",
49
+ { code: Schema.Number, message: Schema.String },
50
+ ) {}
51
+ T.applyErrorMatchers(FeatureNotEnabled, [
52
+ { code: 1002, message: { includes: "address_maps_not_enabled" } },
53
+ ]);
54
+
55
+ export class InvalidAccountId extends Schema.TaggedErrorClass<InvalidAccountId>()(
56
+ "InvalidAccountId",
57
+ { code: Schema.Number, message: Schema.String },
58
+ ) {}
59
+ T.applyErrorMatchers(InvalidAccountId, [
60
+ { code: 7003, message: { includes: "Could not route" } },
61
+ ]);
62
+
63
+ export class InvalidHostname extends Schema.TaggedErrorClass<InvalidHostname>()(
64
+ "InvalidHostname",
65
+ { code: Schema.Number, message: Schema.String },
66
+ ) {}
67
+ T.applyErrorMatchers(InvalidHostname, [
68
+ { code: 1002, message: { includes: "forbidden" } },
69
+ ]);
70
+
71
+ export class InvalidLoaForm extends Schema.TaggedErrorClass<InvalidLoaForm>()(
72
+ "InvalidLoaForm",
73
+ { code: Schema.Number, message: Schema.String },
74
+ ) {}
75
+ T.applyErrorMatchers(InvalidLoaForm, [
76
+ { code: 1001, message: { includes: "invalid_loa_form" } },
77
+ { code: 1001 },
78
+ ]);
79
+
80
+ export class InvalidNetworkCidr extends Schema.TaggedErrorClass<InvalidNetworkCidr>()(
81
+ "InvalidNetworkCidr",
82
+ { code: Schema.Number, message: Schema.String },
83
+ ) {}
84
+ T.applyErrorMatchers(InvalidNetworkCidr, [
85
+ { code: 1001, message: { includes: "invalid_network_cidr" } },
86
+ ]);
87
+
88
+ export class InvalidZoneId extends Schema.TaggedErrorClass<InvalidZoneId>()(
89
+ "InvalidZoneId",
90
+ { code: Schema.Number, message: Schema.String },
91
+ ) {}
92
+ T.applyErrorMatchers(InvalidZoneId, [
93
+ { code: 7003, message: { includes: "Could not route" } },
94
+ ]);
95
+
96
+ export class IrrEntryNotFound extends Schema.TaggedErrorClass<IrrEntryNotFound>()(
97
+ "IrrEntryNotFound",
98
+ { code: Schema.Number, message: Schema.String },
99
+ ) {}
100
+ T.applyErrorMatchers(IrrEntryNotFound, [
101
+ { code: 1003, message: { includes: "irr_entry_not_found" } },
102
+ ]);
103
+
104
+ export class LoaDocumentNotFound extends Schema.TaggedErrorClass<LoaDocumentNotFound>()(
105
+ "LoaDocumentNotFound",
106
+ { code: Schema.Number, message: Schema.String },
107
+ ) {}
108
+ T.applyErrorMatchers(LoaDocumentNotFound, [{ code: 1000 }]);
109
+
110
+ export class MethodNotAllowed extends Schema.TaggedErrorClass<MethodNotAllowed>()(
111
+ "MethodNotAllowed",
112
+ { code: Schema.Number, message: Schema.String },
113
+ ) {}
114
+ T.applyErrorMatchers(MethodNotAllowed, [
115
+ { code: 10405, message: { includes: "not allowed" } },
116
+ { code: 10000, message: { includes: "not allowed" } },
117
+ ]);
118
+
119
+ export class MissingAccountId extends Schema.TaggedErrorClass<MissingAccountId>()(
120
+ "MissingAccountId",
121
+ { code: Schema.Number, message: Schema.String },
122
+ ) {}
123
+ T.applyErrorMatchers(MissingAccountId, [{ code: 1001 }]);
124
+
125
+ export class NonexistentAccountPrefix extends Schema.TaggedErrorClass<NonexistentAccountPrefix>()(
126
+ "NonexistentAccountPrefix",
127
+ { code: Schema.Number, message: Schema.String },
128
+ ) {}
129
+ T.applyErrorMatchers(NonexistentAccountPrefix, [{ code: 1003 }]);
130
+
131
+ export class PrefixNotFound extends Schema.TaggedErrorClass<PrefixNotFound>()(
132
+ "PrefixNotFound",
133
+ { code: Schema.Number, message: Schema.String },
134
+ ) {}
135
+ T.applyErrorMatchers(PrefixNotFound, [
136
+ { code: 1000 },
137
+ { code: 1000, message: { includes: "not_found" } },
138
+ ]);
139
+
140
+ export class RegionalHostnameEmpty extends Schema.TaggedErrorClass<RegionalHostnameEmpty>()(
141
+ "RegionalHostnameEmpty",
142
+ { code: Schema.Number, message: Schema.String },
143
+ ) {}
144
+ T.applyErrorMatchers(RegionalHostnameEmpty, [
145
+ { code: 1000, message: { includes: "not_found" } },
146
+ ]);
147
+
148
+ export class RegionalHostnameNotFound extends Schema.TaggedErrorClass<RegionalHostnameNotFound>()(
149
+ "RegionalHostnameNotFound",
150
+ { code: Schema.Number, message: Schema.String },
151
+ ) {}
152
+ T.applyErrorMatchers(RegionalHostnameNotFound, [
153
+ { code: 1002, message: { includes: "forbidden" } },
154
+ ]);
155
+
156
+ export class UnsupportedBindingConfiguration extends Schema.TaggedErrorClass<UnsupportedBindingConfiguration>()(
157
+ "UnsupportedBindingConfiguration",
158
+ { code: Schema.Number, message: Schema.String },
159
+ ) {}
160
+ T.applyErrorMatchers(UnsupportedBindingConfiguration, [{ code: 1003 }]);
161
+
162
+ // =============================================================================
163
+ // AddressMap
164
+ // =============================================================================
165
+
166
+ export interface GetAddressMapRequest {
167
+ addressMapId: string;
168
+ /** Identifier of a Cloudflare account. */
169
+ accountId: string;
170
+ }
171
+
172
+ export const GetAddressMapRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
173
+ addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
174
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
175
+ }).pipe(
176
+ T.Http({
177
+ method: "GET",
178
+ path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}",
179
+ }),
180
+ ) as unknown as Schema.Schema<GetAddressMapRequest>;
181
+
182
+ export interface GetAddressMapResponse {
183
+ /** Identifier of an Address Map. */
184
+ id?: string | null;
185
+ /** If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps. */
186
+ canDelete?: boolean | null;
187
+ /** If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps. */
188
+ canModifyIps?: boolean | null;
189
+ createdAt?: string | null;
190
+ /** If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it */
191
+ defaultSni?: string | null;
192
+ /** An optional description field which may be used to describe the types of IPs or zones on the map. */
193
+ description?: string | null;
194
+ /** Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled. */
195
+ enabled?: boolean | null;
196
+ /** The set of IPs on the Address Map. */
197
+ ips?: unknown | null;
198
+ /** Zones and Accounts which will be assigned IPs on this Address Map. A zone membership will take priority over an account membership. */
199
+ memberships?:
200
+ | {
201
+ canDelete?: boolean | null;
202
+ createdAt?: string | null;
203
+ identifier?: string | null;
204
+ kind?: "zone" | "account" | null;
205
+ }[]
206
+ | null;
207
+ modifiedAt?: string | null;
208
+ }
209
+
210
+ export const GetAddressMapResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
211
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
212
+ canDelete: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
213
+ canModifyIps: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
214
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
215
+ defaultSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
216
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
217
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
218
+ ips: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
219
+ memberships: Schema.optional(
220
+ Schema.Union([
221
+ Schema.Array(
222
+ Schema.Struct({
223
+ canDelete: Schema.optional(
224
+ Schema.Union([Schema.Boolean, Schema.Null]),
225
+ ),
226
+ createdAt: Schema.optional(
227
+ Schema.Union([Schema.String, Schema.Null]),
228
+ ),
229
+ identifier: Schema.optional(
230
+ Schema.Union([Schema.String, Schema.Null]),
231
+ ),
232
+ kind: Schema.optional(
233
+ Schema.Union([Schema.Literals(["zone", "account"]), Schema.Null]),
234
+ ),
235
+ }).pipe(
236
+ Schema.encodeKeys({
237
+ canDelete: "can_delete",
238
+ createdAt: "created_at",
239
+ identifier: "identifier",
240
+ kind: "kind",
241
+ }),
242
+ ),
243
+ ),
244
+ Schema.Null,
245
+ ]),
246
+ ),
247
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
248
+ })
249
+ .pipe(
250
+ Schema.encodeKeys({
251
+ id: "id",
252
+ canDelete: "can_delete",
253
+ canModifyIps: "can_modify_ips",
254
+ createdAt: "created_at",
255
+ defaultSni: "default_sni",
256
+ description: "description",
257
+ enabled: "enabled",
258
+ ips: "ips",
259
+ memberships: "memberships",
260
+ modifiedAt: "modified_at",
261
+ }),
262
+ )
263
+ .pipe(
264
+ T.ResponsePath("result"),
265
+ ) as unknown as Schema.Schema<GetAddressMapResponse>;
266
+
267
+ export type GetAddressMapError =
268
+ | DefaultErrors
269
+ | AddressMapNotFound
270
+ | InvalidAccountId;
271
+
272
+ export const getAddressMap: API.OperationMethod<
273
+ GetAddressMapRequest,
274
+ GetAddressMapResponse,
275
+ GetAddressMapError,
276
+ Credentials | HttpClient.HttpClient
277
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
278
+ input: GetAddressMapRequest,
279
+ output: GetAddressMapResponse,
280
+ errors: [AddressMapNotFound, InvalidAccountId],
281
+ }));
282
+
283
+ export interface ListAddressMapsRequest {
284
+ /** Identifier of a Cloudflare account. */
285
+ accountId: string;
286
+ }
287
+
288
+ export const ListAddressMapsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
289
+ {
290
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
291
+ },
292
+ ).pipe(
293
+ T.Http({
294
+ method: "GET",
295
+ path: "/accounts/{account_id}/addressing/address_maps",
296
+ }),
297
+ ) as unknown as Schema.Schema<ListAddressMapsRequest>;
298
+
299
+ export interface ListAddressMapsResponse {
300
+ result: {
301
+ id?: string | null;
302
+ canDelete?: boolean | null;
303
+ canModifyIps?: boolean | null;
304
+ createdAt?: string | null;
305
+ defaultSni?: string | null;
306
+ description?: string | null;
307
+ enabled?: boolean | null;
308
+ modifiedAt?: string | null;
309
+ }[];
310
+ }
311
+
312
+ export const ListAddressMapsResponse =
313
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
314
+ result: Schema.Array(
315
+ Schema.Struct({
316
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
317
+ canDelete: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
318
+ canModifyIps: Schema.optional(
319
+ Schema.Union([Schema.Boolean, Schema.Null]),
320
+ ),
321
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
322
+ defaultSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
323
+ description: Schema.optional(
324
+ Schema.Union([Schema.String, Schema.Null]),
325
+ ),
326
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
327
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
328
+ }).pipe(
329
+ Schema.encodeKeys({
330
+ id: "id",
331
+ canDelete: "can_delete",
332
+ canModifyIps: "can_modify_ips",
333
+ createdAt: "created_at",
334
+ defaultSni: "default_sni",
335
+ description: "description",
336
+ enabled: "enabled",
337
+ modifiedAt: "modified_at",
338
+ }),
339
+ ),
340
+ ),
341
+ }) as unknown as Schema.Schema<ListAddressMapsResponse>;
342
+
343
+ export type ListAddressMapsError = DefaultErrors;
344
+
345
+ export const listAddressMaps: API.PaginatedOperationMethod<
346
+ ListAddressMapsRequest,
347
+ ListAddressMapsResponse,
348
+ ListAddressMapsError,
349
+ Credentials | HttpClient.HttpClient
350
+ > & {
351
+ pages: (
352
+ input: ListAddressMapsRequest,
353
+ ) => stream.Stream<
354
+ ListAddressMapsResponse,
355
+ ListAddressMapsError,
356
+ Credentials | HttpClient.HttpClient
357
+ >;
358
+ items: (input: ListAddressMapsRequest) => stream.Stream<
359
+ {
360
+ id?: string | null;
361
+ canDelete?: boolean | null;
362
+ canModifyIps?: boolean | null;
363
+ createdAt?: string | null;
364
+ defaultSni?: string | null;
365
+ description?: string | null;
366
+ enabled?: boolean | null;
367
+ modifiedAt?: string | null;
368
+ },
369
+ ListAddressMapsError,
370
+ Credentials | HttpClient.HttpClient
371
+ >;
372
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
373
+ input: ListAddressMapsRequest,
374
+ output: ListAddressMapsResponse,
375
+ errors: [],
376
+ pagination: {
377
+ mode: "single",
378
+ items: "result",
379
+ } as const,
380
+ }));
381
+
382
+ export interface CreateAddressMapRequest {
383
+ /** Path param: Identifier of a Cloudflare account. */
384
+ accountId: string;
385
+ /** Body param: An optional description field which may be used to describe the types of IPs or zones on the map. */
386
+ description?: string | null;
387
+ /** Body param: Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled. */
388
+ enabled?: boolean | null;
389
+ /** Body param: */
390
+ ips?: string[];
391
+ /** Body param: Zones and Accounts which will be assigned IPs on this Address Map. A zone membership will take priority over an account membership. */
392
+ memberships?: { identifier?: string; kind?: "zone" | "account" }[];
393
+ }
394
+
395
+ export const CreateAddressMapRequest =
396
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
397
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
398
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
399
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
400
+ ips: Schema.optional(Schema.Array(Schema.String)),
401
+ memberships: Schema.optional(
402
+ Schema.Array(
403
+ Schema.Struct({
404
+ identifier: Schema.optional(Schema.String),
405
+ kind: Schema.optional(Schema.Literals(["zone", "account"])),
406
+ }),
407
+ ),
408
+ ),
409
+ }).pipe(
410
+ T.Http({
411
+ method: "POST",
412
+ path: "/accounts/{account_id}/addressing/address_maps",
413
+ }),
414
+ ) as unknown as Schema.Schema<CreateAddressMapRequest>;
415
+
416
+ export interface CreateAddressMapResponse {
417
+ /** Identifier of an Address Map. */
418
+ id?: string | null;
419
+ /** If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps. */
420
+ canDelete?: boolean | null;
421
+ /** If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps. */
422
+ canModifyIps?: boolean | null;
423
+ createdAt?: string | null;
424
+ /** If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it */
425
+ defaultSni?: string | null;
426
+ /** An optional description field which may be used to describe the types of IPs or zones on the map. */
427
+ description?: string | null;
428
+ /** Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled. */
429
+ enabled?: boolean | null;
430
+ /** The set of IPs on the Address Map. */
431
+ ips?: unknown | null;
432
+ /** Zones and Accounts which will be assigned IPs on this Address Map. A zone membership will take priority over an account membership. */
433
+ memberships?:
434
+ | {
435
+ canDelete?: boolean | null;
436
+ createdAt?: string | null;
437
+ identifier?: string | null;
438
+ kind?: "zone" | "account" | null;
439
+ }[]
440
+ | null;
441
+ modifiedAt?: string | null;
442
+ }
443
+
444
+ export const CreateAddressMapResponse =
445
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
446
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
447
+ canDelete: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
448
+ canModifyIps: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
449
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
450
+ defaultSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
451
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
452
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
453
+ ips: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
454
+ memberships: Schema.optional(
455
+ Schema.Union([
456
+ Schema.Array(
457
+ Schema.Struct({
458
+ canDelete: Schema.optional(
459
+ Schema.Union([Schema.Boolean, Schema.Null]),
460
+ ),
461
+ createdAt: Schema.optional(
462
+ Schema.Union([Schema.String, Schema.Null]),
463
+ ),
464
+ identifier: Schema.optional(
465
+ Schema.Union([Schema.String, Schema.Null]),
466
+ ),
467
+ kind: Schema.optional(
468
+ Schema.Union([Schema.Literals(["zone", "account"]), Schema.Null]),
469
+ ),
470
+ }).pipe(
471
+ Schema.encodeKeys({
472
+ canDelete: "can_delete",
473
+ createdAt: "created_at",
474
+ identifier: "identifier",
475
+ kind: "kind",
476
+ }),
477
+ ),
478
+ ),
479
+ Schema.Null,
480
+ ]),
481
+ ),
482
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
483
+ })
484
+ .pipe(
485
+ Schema.encodeKeys({
486
+ id: "id",
487
+ canDelete: "can_delete",
488
+ canModifyIps: "can_modify_ips",
489
+ createdAt: "created_at",
490
+ defaultSni: "default_sni",
491
+ description: "description",
492
+ enabled: "enabled",
493
+ ips: "ips",
494
+ memberships: "memberships",
495
+ modifiedAt: "modified_at",
496
+ }),
497
+ )
498
+ .pipe(
499
+ T.ResponsePath("result"),
500
+ ) as unknown as Schema.Schema<CreateAddressMapResponse>;
501
+
502
+ export type CreateAddressMapError =
503
+ | DefaultErrors
504
+ | FeatureNotEnabled
505
+ | InvalidAccountId;
506
+
507
+ export const createAddressMap: API.OperationMethod<
508
+ CreateAddressMapRequest,
509
+ CreateAddressMapResponse,
510
+ CreateAddressMapError,
511
+ Credentials | HttpClient.HttpClient
512
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
513
+ input: CreateAddressMapRequest,
514
+ output: CreateAddressMapResponse,
515
+ errors: [FeatureNotEnabled, InvalidAccountId],
516
+ }));
517
+
518
+ export interface PatchAddressMapRequest {
519
+ addressMapId: string;
520
+ /** Path param: Identifier of a Cloudflare account. */
521
+ accountId: string;
522
+ /** Body param: If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client withou */
523
+ defaultSni?: string | null;
524
+ /** Body param: An optional description field which may be used to describe the types of IPs or zones on the map. */
525
+ description?: string | null;
526
+ /** Body param: Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled. */
527
+ enabled?: boolean | null;
528
+ }
529
+
530
+ export const PatchAddressMapRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
531
+ {
532
+ addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
533
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
534
+ defaultSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
535
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
536
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
537
+ },
538
+ ).pipe(
539
+ Schema.encodeKeys({
540
+ defaultSni: "default_sni",
541
+ description: "description",
542
+ enabled: "enabled",
543
+ }),
544
+ T.Http({
545
+ method: "PATCH",
546
+ path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}",
547
+ }),
548
+ ) as unknown as Schema.Schema<PatchAddressMapRequest>;
549
+
550
+ export interface PatchAddressMapResponse {
551
+ /** Identifier of an Address Map. */
552
+ id?: string | null;
553
+ /** If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps. */
554
+ canDelete?: boolean | null;
555
+ /** If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps. */
556
+ canModifyIps?: boolean | null;
557
+ createdAt?: string | null;
558
+ /** If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it */
559
+ defaultSni?: string | null;
560
+ /** An optional description field which may be used to describe the types of IPs or zones on the map. */
561
+ description?: string | null;
562
+ /** Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled. */
563
+ enabled?: boolean | null;
564
+ modifiedAt?: string | null;
565
+ }
566
+
567
+ export const PatchAddressMapResponse =
568
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
569
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
570
+ canDelete: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
571
+ canModifyIps: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
572
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
573
+ defaultSni: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
574
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
575
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
576
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
577
+ })
578
+ .pipe(
579
+ Schema.encodeKeys({
580
+ id: "id",
581
+ canDelete: "can_delete",
582
+ canModifyIps: "can_modify_ips",
583
+ createdAt: "created_at",
584
+ defaultSni: "default_sni",
585
+ description: "description",
586
+ enabled: "enabled",
587
+ modifiedAt: "modified_at",
588
+ }),
589
+ )
590
+ .pipe(
591
+ T.ResponsePath("result"),
592
+ ) as unknown as Schema.Schema<PatchAddressMapResponse>;
593
+
594
+ export type PatchAddressMapError =
595
+ | DefaultErrors
596
+ | MethodNotAllowed
597
+ | FeatureNotEnabled
598
+ | InvalidAccountId;
599
+
600
+ export const patchAddressMap: API.OperationMethod<
601
+ PatchAddressMapRequest,
602
+ PatchAddressMapResponse,
603
+ PatchAddressMapError,
604
+ Credentials | HttpClient.HttpClient
605
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
606
+ input: PatchAddressMapRequest,
607
+ output: PatchAddressMapResponse,
608
+ errors: [MethodNotAllowed, FeatureNotEnabled, InvalidAccountId],
609
+ }));
610
+
611
+ export interface DeleteAddressMapRequest {
612
+ addressMapId: string;
613
+ /** Identifier of a Cloudflare account. */
614
+ accountId: string;
615
+ }
616
+
617
+ export const DeleteAddressMapRequest =
618
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
619
+ addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
620
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
621
+ }).pipe(
622
+ T.Http({
623
+ method: "DELETE",
624
+ path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}",
625
+ }),
626
+ ) as unknown as Schema.Schema<DeleteAddressMapRequest>;
627
+
628
+ export interface DeleteAddressMapResponse {
629
+ errors: {
630
+ code: number;
631
+ message: string;
632
+ documentationUrl?: string | null;
633
+ source?: { pointer?: string | null } | null;
634
+ }[];
635
+ messages: {
636
+ code: number;
637
+ message: string;
638
+ documentationUrl?: string | null;
639
+ source?: { pointer?: string | null } | null;
640
+ }[];
641
+ /** Whether the API call was successful. */
642
+ success: true;
643
+ resultInfo?: {
644
+ count?: number | null;
645
+ page?: number | null;
646
+ perPage?: number | null;
647
+ totalCount?: number | null;
648
+ } | null;
649
+ }
650
+
651
+ export const DeleteAddressMapResponse =
652
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
653
+ errors: Schema.Array(
654
+ Schema.Struct({
655
+ code: Schema.Number,
656
+ message: Schema.String,
657
+ documentationUrl: Schema.optional(
658
+ Schema.Union([Schema.String, Schema.Null]),
659
+ ),
660
+ source: Schema.optional(
661
+ Schema.Union([
662
+ Schema.Struct({
663
+ pointer: Schema.optional(
664
+ Schema.Union([Schema.String, Schema.Null]),
665
+ ),
666
+ }),
667
+ Schema.Null,
668
+ ]),
669
+ ),
670
+ }).pipe(
671
+ Schema.encodeKeys({
672
+ code: "code",
673
+ message: "message",
674
+ documentationUrl: "documentation_url",
675
+ source: "source",
676
+ }),
677
+ ),
678
+ ),
679
+ messages: Schema.Array(
680
+ Schema.Struct({
681
+ code: Schema.Number,
682
+ message: Schema.String,
683
+ documentationUrl: Schema.optional(
684
+ Schema.Union([Schema.String, Schema.Null]),
685
+ ),
686
+ source: Schema.optional(
687
+ Schema.Union([
688
+ Schema.Struct({
689
+ pointer: Schema.optional(
690
+ Schema.Union([Schema.String, Schema.Null]),
691
+ ),
692
+ }),
693
+ Schema.Null,
694
+ ]),
695
+ ),
696
+ }).pipe(
697
+ Schema.encodeKeys({
698
+ code: "code",
699
+ message: "message",
700
+ documentationUrl: "documentation_url",
701
+ source: "source",
702
+ }),
703
+ ),
704
+ ),
705
+ success: Schema.Literal(true),
706
+ resultInfo: Schema.optional(
707
+ Schema.Union([
708
+ Schema.Struct({
709
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
710
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
711
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
712
+ totalCount: Schema.optional(
713
+ Schema.Union([Schema.Number, Schema.Null]),
714
+ ),
715
+ }).pipe(
716
+ Schema.encodeKeys({
717
+ count: "count",
718
+ page: "page",
719
+ perPage: "per_page",
720
+ totalCount: "total_count",
721
+ }),
722
+ ),
723
+ Schema.Null,
724
+ ]),
725
+ ),
726
+ }).pipe(
727
+ Schema.encodeKeys({
728
+ errors: "errors",
729
+ messages: "messages",
730
+ success: "success",
731
+ resultInfo: "result_info",
732
+ }),
733
+ ) as unknown as Schema.Schema<DeleteAddressMapResponse>;
734
+
735
+ export type DeleteAddressMapError =
736
+ | DefaultErrors
737
+ | MethodNotAllowed
738
+ | FeatureNotEnabled
739
+ | InvalidAccountId
740
+ | AddressMapNotFound;
741
+
742
+ export const deleteAddressMap: API.OperationMethod<
743
+ DeleteAddressMapRequest,
744
+ DeleteAddressMapResponse,
745
+ DeleteAddressMapError,
746
+ Credentials | HttpClient.HttpClient
747
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
748
+ input: DeleteAddressMapRequest,
749
+ output: DeleteAddressMapResponse,
750
+ errors: [
751
+ MethodNotAllowed,
752
+ FeatureNotEnabled,
753
+ InvalidAccountId,
754
+ AddressMapNotFound,
755
+ ],
756
+ }));
757
+
758
+ // =============================================================================
759
+ // AddressMapAccount
760
+ // =============================================================================
761
+
762
+ export interface PutAddressMapAccountRequest {
763
+ addressMapId: string;
764
+ /** Path param: Identifier of a Cloudflare account. */
765
+ accountId: string;
766
+ /** Body param: */
767
+ body: unknown;
768
+ }
769
+
770
+ export const PutAddressMapAccountRequest =
771
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
772
+ addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
773
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
774
+ body: Schema.Unknown.pipe(T.HttpBody()),
775
+ }).pipe(
776
+ T.Http({
777
+ method: "PUT",
778
+ path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/accounts/{account_id}",
779
+ }),
780
+ ) as unknown as Schema.Schema<PutAddressMapAccountRequest>;
781
+
782
+ export interface PutAddressMapAccountResponse {
783
+ errors: {
784
+ code: number;
785
+ message: string;
786
+ documentationUrl?: string | null;
787
+ source?: { pointer?: string | null } | null;
788
+ }[];
789
+ messages: {
790
+ code: number;
791
+ message: string;
792
+ documentationUrl?: string | null;
793
+ source?: { pointer?: string | null } | null;
794
+ }[];
795
+ /** Whether the API call was successful. */
796
+ success: true;
797
+ resultInfo?: {
798
+ count?: number | null;
799
+ page?: number | null;
800
+ perPage?: number | null;
801
+ totalCount?: number | null;
802
+ } | null;
803
+ }
804
+
805
+ export const PutAddressMapAccountResponse =
806
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
807
+ errors: Schema.Array(
808
+ Schema.Struct({
809
+ code: Schema.Number,
810
+ message: Schema.String,
811
+ documentationUrl: Schema.optional(
812
+ Schema.Union([Schema.String, Schema.Null]),
813
+ ),
814
+ source: Schema.optional(
815
+ Schema.Union([
816
+ Schema.Struct({
817
+ pointer: Schema.optional(
818
+ Schema.Union([Schema.String, Schema.Null]),
819
+ ),
820
+ }),
821
+ Schema.Null,
822
+ ]),
823
+ ),
824
+ }).pipe(
825
+ Schema.encodeKeys({
826
+ code: "code",
827
+ message: "message",
828
+ documentationUrl: "documentation_url",
829
+ source: "source",
830
+ }),
831
+ ),
832
+ ),
833
+ messages: Schema.Array(
834
+ Schema.Struct({
835
+ code: Schema.Number,
836
+ message: Schema.String,
837
+ documentationUrl: Schema.optional(
838
+ Schema.Union([Schema.String, Schema.Null]),
839
+ ),
840
+ source: Schema.optional(
841
+ Schema.Union([
842
+ Schema.Struct({
843
+ pointer: Schema.optional(
844
+ Schema.Union([Schema.String, Schema.Null]),
845
+ ),
846
+ }),
847
+ Schema.Null,
848
+ ]),
849
+ ),
850
+ }).pipe(
851
+ Schema.encodeKeys({
852
+ code: "code",
853
+ message: "message",
854
+ documentationUrl: "documentation_url",
855
+ source: "source",
856
+ }),
857
+ ),
858
+ ),
859
+ success: Schema.Literal(true),
860
+ resultInfo: Schema.optional(
861
+ Schema.Union([
862
+ Schema.Struct({
863
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
864
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
865
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
866
+ totalCount: Schema.optional(
867
+ Schema.Union([Schema.Number, Schema.Null]),
868
+ ),
869
+ }).pipe(
870
+ Schema.encodeKeys({
871
+ count: "count",
872
+ page: "page",
873
+ perPage: "per_page",
874
+ totalCount: "total_count",
875
+ }),
876
+ ),
877
+ Schema.Null,
878
+ ]),
879
+ ),
880
+ }).pipe(
881
+ Schema.encodeKeys({
882
+ errors: "errors",
883
+ messages: "messages",
884
+ success: "success",
885
+ resultInfo: "result_info",
886
+ }),
887
+ ) as unknown as Schema.Schema<PutAddressMapAccountResponse>;
888
+
889
+ export type PutAddressMapAccountError =
890
+ | DefaultErrors
891
+ | MethodNotAllowed
892
+ | FeatureNotEnabled
893
+ | InvalidAccountId;
894
+
895
+ export const putAddressMapAccount: API.OperationMethod<
896
+ PutAddressMapAccountRequest,
897
+ PutAddressMapAccountResponse,
898
+ PutAddressMapAccountError,
899
+ Credentials | HttpClient.HttpClient
900
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
901
+ input: PutAddressMapAccountRequest,
902
+ output: PutAddressMapAccountResponse,
903
+ errors: [MethodNotAllowed, FeatureNotEnabled, InvalidAccountId],
904
+ }));
905
+
906
+ export interface DeleteAddressMapAccountRequest {
907
+ addressMapId: string;
908
+ /** Identifier of a Cloudflare account. */
909
+ accountId: string;
910
+ }
911
+
912
+ export const DeleteAddressMapAccountRequest =
913
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
914
+ addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
915
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
916
+ }).pipe(
917
+ T.Http({
918
+ method: "DELETE",
919
+ path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/accounts/{account_id}",
920
+ }),
921
+ ) as unknown as Schema.Schema<DeleteAddressMapAccountRequest>;
922
+
923
+ export interface DeleteAddressMapAccountResponse {
924
+ errors: {
925
+ code: number;
926
+ message: string;
927
+ documentationUrl?: string | null;
928
+ source?: { pointer?: string | null } | null;
929
+ }[];
930
+ messages: {
931
+ code: number;
932
+ message: string;
933
+ documentationUrl?: string | null;
934
+ source?: { pointer?: string | null } | null;
935
+ }[];
936
+ /** Whether the API call was successful. */
937
+ success: true;
938
+ resultInfo?: {
939
+ count?: number | null;
940
+ page?: number | null;
941
+ perPage?: number | null;
942
+ totalCount?: number | null;
943
+ } | null;
944
+ }
945
+
946
+ export const DeleteAddressMapAccountResponse =
947
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
948
+ errors: Schema.Array(
949
+ Schema.Struct({
950
+ code: Schema.Number,
951
+ message: Schema.String,
952
+ documentationUrl: Schema.optional(
953
+ Schema.Union([Schema.String, Schema.Null]),
954
+ ),
955
+ source: Schema.optional(
956
+ Schema.Union([
957
+ Schema.Struct({
958
+ pointer: Schema.optional(
959
+ Schema.Union([Schema.String, Schema.Null]),
960
+ ),
961
+ }),
962
+ Schema.Null,
963
+ ]),
964
+ ),
965
+ }).pipe(
966
+ Schema.encodeKeys({
967
+ code: "code",
968
+ message: "message",
969
+ documentationUrl: "documentation_url",
970
+ source: "source",
971
+ }),
972
+ ),
973
+ ),
974
+ messages: Schema.Array(
975
+ Schema.Struct({
976
+ code: Schema.Number,
977
+ message: Schema.String,
978
+ documentationUrl: Schema.optional(
979
+ Schema.Union([Schema.String, Schema.Null]),
980
+ ),
981
+ source: Schema.optional(
982
+ Schema.Union([
983
+ Schema.Struct({
984
+ pointer: Schema.optional(
985
+ Schema.Union([Schema.String, Schema.Null]),
986
+ ),
987
+ }),
988
+ Schema.Null,
989
+ ]),
990
+ ),
991
+ }).pipe(
992
+ Schema.encodeKeys({
993
+ code: "code",
994
+ message: "message",
995
+ documentationUrl: "documentation_url",
996
+ source: "source",
997
+ }),
998
+ ),
999
+ ),
1000
+ success: Schema.Literal(true),
1001
+ resultInfo: Schema.optional(
1002
+ Schema.Union([
1003
+ Schema.Struct({
1004
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1005
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1006
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1007
+ totalCount: Schema.optional(
1008
+ Schema.Union([Schema.Number, Schema.Null]),
1009
+ ),
1010
+ }).pipe(
1011
+ Schema.encodeKeys({
1012
+ count: "count",
1013
+ page: "page",
1014
+ perPage: "per_page",
1015
+ totalCount: "total_count",
1016
+ }),
1017
+ ),
1018
+ Schema.Null,
1019
+ ]),
1020
+ ),
1021
+ }).pipe(
1022
+ Schema.encodeKeys({
1023
+ errors: "errors",
1024
+ messages: "messages",
1025
+ success: "success",
1026
+ resultInfo: "result_info",
1027
+ }),
1028
+ ) as unknown as Schema.Schema<DeleteAddressMapAccountResponse>;
1029
+
1030
+ export type DeleteAddressMapAccountError =
1031
+ | DefaultErrors
1032
+ | MethodNotAllowed
1033
+ | FeatureNotEnabled
1034
+ | InvalidAccountId;
1035
+
1036
+ export const deleteAddressMapAccount: API.OperationMethod<
1037
+ DeleteAddressMapAccountRequest,
1038
+ DeleteAddressMapAccountResponse,
1039
+ DeleteAddressMapAccountError,
1040
+ Credentials | HttpClient.HttpClient
1041
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1042
+ input: DeleteAddressMapAccountRequest,
1043
+ output: DeleteAddressMapAccountResponse,
1044
+ errors: [MethodNotAllowed, FeatureNotEnabled, InvalidAccountId],
1045
+ }));
1046
+
1047
+ // =============================================================================
1048
+ // AddressMapIp
1049
+ // =============================================================================
1050
+
1051
+ export interface PutAddressMapIpRequest {
1052
+ addressMapId: string;
1053
+ ipAddress: string;
1054
+ /** Path param: Identifier of a Cloudflare account. */
1055
+ accountId: string;
1056
+ /** Body param: */
1057
+ body: unknown;
1058
+ }
1059
+
1060
+ export const PutAddressMapIpRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1061
+ {
1062
+ addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
1063
+ ipAddress: Schema.String.pipe(T.HttpPath("ipAddress")),
1064
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1065
+ body: Schema.Unknown.pipe(T.HttpBody()),
1066
+ },
1067
+ ).pipe(
1068
+ T.Http({
1069
+ method: "PUT",
1070
+ path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/ips/{ipAddress}",
1071
+ }),
1072
+ ) as unknown as Schema.Schema<PutAddressMapIpRequest>;
1073
+
1074
+ export interface PutAddressMapIpResponse {
1075
+ errors: {
1076
+ code: number;
1077
+ message: string;
1078
+ documentationUrl?: string | null;
1079
+ source?: { pointer?: string | null } | null;
1080
+ }[];
1081
+ messages: {
1082
+ code: number;
1083
+ message: string;
1084
+ documentationUrl?: string | null;
1085
+ source?: { pointer?: string | null } | null;
1086
+ }[];
1087
+ /** Whether the API call was successful. */
1088
+ success: true;
1089
+ resultInfo?: {
1090
+ count?: number | null;
1091
+ page?: number | null;
1092
+ perPage?: number | null;
1093
+ totalCount?: number | null;
1094
+ } | null;
1095
+ }
1096
+
1097
+ export const PutAddressMapIpResponse =
1098
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1099
+ errors: Schema.Array(
1100
+ Schema.Struct({
1101
+ code: Schema.Number,
1102
+ message: Schema.String,
1103
+ documentationUrl: Schema.optional(
1104
+ Schema.Union([Schema.String, Schema.Null]),
1105
+ ),
1106
+ source: Schema.optional(
1107
+ Schema.Union([
1108
+ Schema.Struct({
1109
+ pointer: Schema.optional(
1110
+ Schema.Union([Schema.String, Schema.Null]),
1111
+ ),
1112
+ }),
1113
+ Schema.Null,
1114
+ ]),
1115
+ ),
1116
+ }).pipe(
1117
+ Schema.encodeKeys({
1118
+ code: "code",
1119
+ message: "message",
1120
+ documentationUrl: "documentation_url",
1121
+ source: "source",
1122
+ }),
1123
+ ),
1124
+ ),
1125
+ messages: Schema.Array(
1126
+ Schema.Struct({
1127
+ code: Schema.Number,
1128
+ message: Schema.String,
1129
+ documentationUrl: Schema.optional(
1130
+ Schema.Union([Schema.String, Schema.Null]),
1131
+ ),
1132
+ source: Schema.optional(
1133
+ Schema.Union([
1134
+ Schema.Struct({
1135
+ pointer: Schema.optional(
1136
+ Schema.Union([Schema.String, Schema.Null]),
1137
+ ),
1138
+ }),
1139
+ Schema.Null,
1140
+ ]),
1141
+ ),
1142
+ }).pipe(
1143
+ Schema.encodeKeys({
1144
+ code: "code",
1145
+ message: "message",
1146
+ documentationUrl: "documentation_url",
1147
+ source: "source",
1148
+ }),
1149
+ ),
1150
+ ),
1151
+ success: Schema.Literal(true),
1152
+ resultInfo: Schema.optional(
1153
+ Schema.Union([
1154
+ Schema.Struct({
1155
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1156
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1157
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1158
+ totalCount: Schema.optional(
1159
+ Schema.Union([Schema.Number, Schema.Null]),
1160
+ ),
1161
+ }).pipe(
1162
+ Schema.encodeKeys({
1163
+ count: "count",
1164
+ page: "page",
1165
+ perPage: "per_page",
1166
+ totalCount: "total_count",
1167
+ }),
1168
+ ),
1169
+ Schema.Null,
1170
+ ]),
1171
+ ),
1172
+ }).pipe(
1173
+ Schema.encodeKeys({
1174
+ errors: "errors",
1175
+ messages: "messages",
1176
+ success: "success",
1177
+ resultInfo: "result_info",
1178
+ }),
1179
+ ) as unknown as Schema.Schema<PutAddressMapIpResponse>;
1180
+
1181
+ export type PutAddressMapIpError =
1182
+ | DefaultErrors
1183
+ | MethodNotAllowed
1184
+ | FeatureNotEnabled
1185
+ | InvalidAccountId
1186
+ | AddressMapNotFound;
1187
+
1188
+ export const putAddressMapIp: API.OperationMethod<
1189
+ PutAddressMapIpRequest,
1190
+ PutAddressMapIpResponse,
1191
+ PutAddressMapIpError,
1192
+ Credentials | HttpClient.HttpClient
1193
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1194
+ input: PutAddressMapIpRequest,
1195
+ output: PutAddressMapIpResponse,
1196
+ errors: [
1197
+ MethodNotAllowed,
1198
+ FeatureNotEnabled,
1199
+ InvalidAccountId,
1200
+ AddressMapNotFound,
1201
+ ],
1202
+ }));
1203
+
1204
+ export interface DeleteAddressMapIpRequest {
1205
+ addressMapId: string;
1206
+ ipAddress: string;
1207
+ /** Identifier of a Cloudflare account. */
1208
+ accountId: string;
1209
+ }
1210
+
1211
+ export const DeleteAddressMapIpRequest =
1212
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1213
+ addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
1214
+ ipAddress: Schema.String.pipe(T.HttpPath("ipAddress")),
1215
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1216
+ }).pipe(
1217
+ T.Http({
1218
+ method: "DELETE",
1219
+ path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/ips/{ipAddress}",
1220
+ }),
1221
+ ) as unknown as Schema.Schema<DeleteAddressMapIpRequest>;
1222
+
1223
+ export interface DeleteAddressMapIpResponse {
1224
+ errors: {
1225
+ code: number;
1226
+ message: string;
1227
+ documentationUrl?: string | null;
1228
+ source?: { pointer?: string | null } | null;
1229
+ }[];
1230
+ messages: {
1231
+ code: number;
1232
+ message: string;
1233
+ documentationUrl?: string | null;
1234
+ source?: { pointer?: string | null } | null;
1235
+ }[];
1236
+ /** Whether the API call was successful. */
1237
+ success: true;
1238
+ resultInfo?: {
1239
+ count?: number | null;
1240
+ page?: number | null;
1241
+ perPage?: number | null;
1242
+ totalCount?: number | null;
1243
+ } | null;
1244
+ }
1245
+
1246
+ export const DeleteAddressMapIpResponse =
1247
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1248
+ errors: Schema.Array(
1249
+ Schema.Struct({
1250
+ code: Schema.Number,
1251
+ message: Schema.String,
1252
+ documentationUrl: Schema.optional(
1253
+ Schema.Union([Schema.String, Schema.Null]),
1254
+ ),
1255
+ source: Schema.optional(
1256
+ Schema.Union([
1257
+ Schema.Struct({
1258
+ pointer: Schema.optional(
1259
+ Schema.Union([Schema.String, Schema.Null]),
1260
+ ),
1261
+ }),
1262
+ Schema.Null,
1263
+ ]),
1264
+ ),
1265
+ }).pipe(
1266
+ Schema.encodeKeys({
1267
+ code: "code",
1268
+ message: "message",
1269
+ documentationUrl: "documentation_url",
1270
+ source: "source",
1271
+ }),
1272
+ ),
1273
+ ),
1274
+ messages: Schema.Array(
1275
+ Schema.Struct({
1276
+ code: Schema.Number,
1277
+ message: Schema.String,
1278
+ documentationUrl: Schema.optional(
1279
+ Schema.Union([Schema.String, Schema.Null]),
1280
+ ),
1281
+ source: Schema.optional(
1282
+ Schema.Union([
1283
+ Schema.Struct({
1284
+ pointer: Schema.optional(
1285
+ Schema.Union([Schema.String, Schema.Null]),
1286
+ ),
1287
+ }),
1288
+ Schema.Null,
1289
+ ]),
1290
+ ),
1291
+ }).pipe(
1292
+ Schema.encodeKeys({
1293
+ code: "code",
1294
+ message: "message",
1295
+ documentationUrl: "documentation_url",
1296
+ source: "source",
1297
+ }),
1298
+ ),
1299
+ ),
1300
+ success: Schema.Literal(true),
1301
+ resultInfo: Schema.optional(
1302
+ Schema.Union([
1303
+ Schema.Struct({
1304
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1305
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1306
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1307
+ totalCount: Schema.optional(
1308
+ Schema.Union([Schema.Number, Schema.Null]),
1309
+ ),
1310
+ }).pipe(
1311
+ Schema.encodeKeys({
1312
+ count: "count",
1313
+ page: "page",
1314
+ perPage: "per_page",
1315
+ totalCount: "total_count",
1316
+ }),
1317
+ ),
1318
+ Schema.Null,
1319
+ ]),
1320
+ ),
1321
+ }).pipe(
1322
+ Schema.encodeKeys({
1323
+ errors: "errors",
1324
+ messages: "messages",
1325
+ success: "success",
1326
+ resultInfo: "result_info",
1327
+ }),
1328
+ ) as unknown as Schema.Schema<DeleteAddressMapIpResponse>;
1329
+
1330
+ export type DeleteAddressMapIpError =
1331
+ | DefaultErrors
1332
+ | MethodNotAllowed
1333
+ | FeatureNotEnabled
1334
+ | InvalidAccountId
1335
+ | AddressMapNotFound;
1336
+
1337
+ export const deleteAddressMapIp: API.OperationMethod<
1338
+ DeleteAddressMapIpRequest,
1339
+ DeleteAddressMapIpResponse,
1340
+ DeleteAddressMapIpError,
1341
+ Credentials | HttpClient.HttpClient
1342
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1343
+ input: DeleteAddressMapIpRequest,
1344
+ output: DeleteAddressMapIpResponse,
1345
+ errors: [
1346
+ MethodNotAllowed,
1347
+ FeatureNotEnabled,
1348
+ InvalidAccountId,
1349
+ AddressMapNotFound,
1350
+ ],
1351
+ }));
1352
+
1353
+ // =============================================================================
1354
+ // AddressMapZone
1355
+ // =============================================================================
1356
+
1357
+ export interface PutAddressMapZoneRequest {
1358
+ addressMapId: string;
1359
+ /** Path param: Identifier of a zone. */
1360
+ zoneId: string;
1361
+ /** Path param: Identifier of a Cloudflare account. */
1362
+ accountId: string;
1363
+ /** Body param: */
1364
+ body: unknown;
1365
+ }
1366
+
1367
+ export const PutAddressMapZoneRequest =
1368
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1369
+ addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
1370
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1371
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1372
+ body: Schema.Unknown.pipe(T.HttpBody()),
1373
+ }).pipe(
1374
+ T.Http({
1375
+ method: "PUT",
1376
+ path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/zones/{zone_id}",
1377
+ }),
1378
+ ) as unknown as Schema.Schema<PutAddressMapZoneRequest>;
1379
+
1380
+ export interface PutAddressMapZoneResponse {
1381
+ errors: {
1382
+ code: number;
1383
+ message: string;
1384
+ documentationUrl?: string | null;
1385
+ source?: { pointer?: string | null } | null;
1386
+ }[];
1387
+ messages: {
1388
+ code: number;
1389
+ message: string;
1390
+ documentationUrl?: string | null;
1391
+ source?: { pointer?: string | null } | null;
1392
+ }[];
1393
+ /** Whether the API call was successful. */
1394
+ success: true;
1395
+ resultInfo?: {
1396
+ count?: number | null;
1397
+ page?: number | null;
1398
+ perPage?: number | null;
1399
+ totalCount?: number | null;
1400
+ } | null;
1401
+ }
1402
+
1403
+ export const PutAddressMapZoneResponse =
1404
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1405
+ errors: Schema.Array(
1406
+ Schema.Struct({
1407
+ code: Schema.Number,
1408
+ message: Schema.String,
1409
+ documentationUrl: Schema.optional(
1410
+ Schema.Union([Schema.String, Schema.Null]),
1411
+ ),
1412
+ source: Schema.optional(
1413
+ Schema.Union([
1414
+ Schema.Struct({
1415
+ pointer: Schema.optional(
1416
+ Schema.Union([Schema.String, Schema.Null]),
1417
+ ),
1418
+ }),
1419
+ Schema.Null,
1420
+ ]),
1421
+ ),
1422
+ }).pipe(
1423
+ Schema.encodeKeys({
1424
+ code: "code",
1425
+ message: "message",
1426
+ documentationUrl: "documentation_url",
1427
+ source: "source",
1428
+ }),
1429
+ ),
1430
+ ),
1431
+ messages: Schema.Array(
1432
+ Schema.Struct({
1433
+ code: Schema.Number,
1434
+ message: Schema.String,
1435
+ documentationUrl: Schema.optional(
1436
+ Schema.Union([Schema.String, Schema.Null]),
1437
+ ),
1438
+ source: Schema.optional(
1439
+ Schema.Union([
1440
+ Schema.Struct({
1441
+ pointer: Schema.optional(
1442
+ Schema.Union([Schema.String, Schema.Null]),
1443
+ ),
1444
+ }),
1445
+ Schema.Null,
1446
+ ]),
1447
+ ),
1448
+ }).pipe(
1449
+ Schema.encodeKeys({
1450
+ code: "code",
1451
+ message: "message",
1452
+ documentationUrl: "documentation_url",
1453
+ source: "source",
1454
+ }),
1455
+ ),
1456
+ ),
1457
+ success: Schema.Literal(true),
1458
+ resultInfo: Schema.optional(
1459
+ Schema.Union([
1460
+ Schema.Struct({
1461
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1462
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1463
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1464
+ totalCount: Schema.optional(
1465
+ Schema.Union([Schema.Number, Schema.Null]),
1466
+ ),
1467
+ }).pipe(
1468
+ Schema.encodeKeys({
1469
+ count: "count",
1470
+ page: "page",
1471
+ perPage: "per_page",
1472
+ totalCount: "total_count",
1473
+ }),
1474
+ ),
1475
+ Schema.Null,
1476
+ ]),
1477
+ ),
1478
+ }).pipe(
1479
+ Schema.encodeKeys({
1480
+ errors: "errors",
1481
+ messages: "messages",
1482
+ success: "success",
1483
+ resultInfo: "result_info",
1484
+ }),
1485
+ ) as unknown as Schema.Schema<PutAddressMapZoneResponse>;
1486
+
1487
+ export type PutAddressMapZoneError =
1488
+ | DefaultErrors
1489
+ | MethodNotAllowed
1490
+ | FeatureNotEnabled
1491
+ | InvalidAccountId;
1492
+
1493
+ export const putAddressMapZone: API.OperationMethod<
1494
+ PutAddressMapZoneRequest,
1495
+ PutAddressMapZoneResponse,
1496
+ PutAddressMapZoneError,
1497
+ Credentials | HttpClient.HttpClient
1498
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1499
+ input: PutAddressMapZoneRequest,
1500
+ output: PutAddressMapZoneResponse,
1501
+ errors: [MethodNotAllowed, FeatureNotEnabled, InvalidAccountId],
1502
+ }));
1503
+
1504
+ export interface DeleteAddressMapZoneRequest {
1505
+ addressMapId: string;
1506
+ /** Identifier of a zone. */
1507
+ zoneId: string;
1508
+ /** Identifier of a Cloudflare account. */
1509
+ accountId: string;
1510
+ }
1511
+
1512
+ export const DeleteAddressMapZoneRequest =
1513
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1514
+ addressMapId: Schema.String.pipe(T.HttpPath("addressMapId")),
1515
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1516
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1517
+ }).pipe(
1518
+ T.Http({
1519
+ method: "DELETE",
1520
+ path: "/accounts/{account_id}/addressing/address_maps/{addressMapId}/zones/{zone_id}",
1521
+ }),
1522
+ ) as unknown as Schema.Schema<DeleteAddressMapZoneRequest>;
1523
+
1524
+ export interface DeleteAddressMapZoneResponse {
1525
+ errors: {
1526
+ code: number;
1527
+ message: string;
1528
+ documentationUrl?: string | null;
1529
+ source?: { pointer?: string | null } | null;
1530
+ }[];
1531
+ messages: {
1532
+ code: number;
1533
+ message: string;
1534
+ documentationUrl?: string | null;
1535
+ source?: { pointer?: string | null } | null;
1536
+ }[];
1537
+ /** Whether the API call was successful. */
1538
+ success: true;
1539
+ resultInfo?: {
1540
+ count?: number | null;
1541
+ page?: number | null;
1542
+ perPage?: number | null;
1543
+ totalCount?: number | null;
1544
+ } | null;
1545
+ }
1546
+
1547
+ export const DeleteAddressMapZoneResponse =
1548
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1549
+ errors: Schema.Array(
1550
+ Schema.Struct({
1551
+ code: Schema.Number,
1552
+ message: Schema.String,
1553
+ documentationUrl: Schema.optional(
1554
+ Schema.Union([Schema.String, Schema.Null]),
1555
+ ),
1556
+ source: Schema.optional(
1557
+ Schema.Union([
1558
+ Schema.Struct({
1559
+ pointer: Schema.optional(
1560
+ Schema.Union([Schema.String, Schema.Null]),
1561
+ ),
1562
+ }),
1563
+ Schema.Null,
1564
+ ]),
1565
+ ),
1566
+ }).pipe(
1567
+ Schema.encodeKeys({
1568
+ code: "code",
1569
+ message: "message",
1570
+ documentationUrl: "documentation_url",
1571
+ source: "source",
1572
+ }),
1573
+ ),
1574
+ ),
1575
+ messages: Schema.Array(
1576
+ Schema.Struct({
1577
+ code: Schema.Number,
1578
+ message: Schema.String,
1579
+ documentationUrl: Schema.optional(
1580
+ Schema.Union([Schema.String, Schema.Null]),
1581
+ ),
1582
+ source: Schema.optional(
1583
+ Schema.Union([
1584
+ Schema.Struct({
1585
+ pointer: Schema.optional(
1586
+ Schema.Union([Schema.String, Schema.Null]),
1587
+ ),
1588
+ }),
1589
+ Schema.Null,
1590
+ ]),
1591
+ ),
1592
+ }).pipe(
1593
+ Schema.encodeKeys({
1594
+ code: "code",
1595
+ message: "message",
1596
+ documentationUrl: "documentation_url",
1597
+ source: "source",
1598
+ }),
1599
+ ),
1600
+ ),
1601
+ success: Schema.Literal(true),
1602
+ resultInfo: Schema.optional(
1603
+ Schema.Union([
1604
+ Schema.Struct({
1605
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1606
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1607
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1608
+ totalCount: Schema.optional(
1609
+ Schema.Union([Schema.Number, Schema.Null]),
1610
+ ),
1611
+ }).pipe(
1612
+ Schema.encodeKeys({
1613
+ count: "count",
1614
+ page: "page",
1615
+ perPage: "per_page",
1616
+ totalCount: "total_count",
1617
+ }),
1618
+ ),
1619
+ Schema.Null,
1620
+ ]),
1621
+ ),
1622
+ }).pipe(
1623
+ Schema.encodeKeys({
1624
+ errors: "errors",
1625
+ messages: "messages",
1626
+ success: "success",
1627
+ resultInfo: "result_info",
1628
+ }),
1629
+ ) as unknown as Schema.Schema<DeleteAddressMapZoneResponse>;
1630
+
1631
+ export type DeleteAddressMapZoneError =
1632
+ | DefaultErrors
1633
+ | MethodNotAllowed
1634
+ | FeatureNotEnabled
1635
+ | InvalidAccountId;
1636
+
1637
+ export const deleteAddressMapZone: API.OperationMethod<
1638
+ DeleteAddressMapZoneRequest,
1639
+ DeleteAddressMapZoneResponse,
1640
+ DeleteAddressMapZoneError,
1641
+ Credentials | HttpClient.HttpClient
1642
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1643
+ input: DeleteAddressMapZoneRequest,
1644
+ output: DeleteAddressMapZoneResponse,
1645
+ errors: [MethodNotAllowed, FeatureNotEnabled, InvalidAccountId],
1646
+ }));
1647
+
1648
+ // =============================================================================
1649
+ // LoaDocument
1650
+ // =============================================================================
1651
+
1652
+ export interface GetLoaDocumentRequest {
1653
+ loaDocumentId: string | null;
1654
+ /** Identifier of a Cloudflare account. */
1655
+ accountId: string;
1656
+ }
1657
+
1658
+ export const GetLoaDocumentRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1659
+ loaDocumentId: Schema.Union([Schema.String, Schema.Null]).pipe(
1660
+ T.HttpPath("loaDocumentId"),
1661
+ ),
1662
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1663
+ }).pipe(
1664
+ T.Http({
1665
+ method: "GET",
1666
+ path: "/accounts/{account_id}/addressing/loa_documents/{loaDocumentId}/download",
1667
+ }),
1668
+ ) as unknown as Schema.Schema<GetLoaDocumentRequest>;
1669
+
1670
+ export type GetLoaDocumentResponse = unknown;
1671
+
1672
+ export const GetLoaDocumentResponse =
1673
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetLoaDocumentResponse>;
1674
+
1675
+ export type GetLoaDocumentError =
1676
+ | DefaultErrors
1677
+ | LoaDocumentNotFound
1678
+ | InvalidAccountId;
1679
+
1680
+ export const getLoaDocument: API.OperationMethod<
1681
+ GetLoaDocumentRequest,
1682
+ GetLoaDocumentResponse,
1683
+ GetLoaDocumentError,
1684
+ Credentials | HttpClient.HttpClient
1685
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1686
+ input: GetLoaDocumentRequest,
1687
+ output: GetLoaDocumentResponse,
1688
+ errors: [LoaDocumentNotFound, InvalidAccountId],
1689
+ }));
1690
+
1691
+ export interface CreateLoaDocumentRequest {
1692
+ /** Path param: Identifier of a Cloudflare account. */
1693
+ accountId: string;
1694
+ /** Body param: LOA document to upload. */
1695
+ loaDocument: string;
1696
+ }
1697
+
1698
+ export const CreateLoaDocumentRequest =
1699
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1700
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1701
+ loaDocument: Schema.String,
1702
+ }).pipe(
1703
+ Schema.encodeKeys({ loaDocument: "loa_document" }),
1704
+ T.Http({
1705
+ method: "POST",
1706
+ path: "/accounts/{account_id}/addressing/loa_documents",
1707
+ contentType: "multipart",
1708
+ }),
1709
+ ) as unknown as Schema.Schema<CreateLoaDocumentRequest>;
1710
+
1711
+ export interface CreateLoaDocumentResponse {
1712
+ /** Identifier for the uploaded LOA document. */
1713
+ id?: string | null;
1714
+ /** Identifier of a Cloudflare account. */
1715
+ accountId?: string | null;
1716
+ /** Whether the LOA has been auto-generated for the prefix owner by Cloudflare. */
1717
+ autoGenerated?: boolean | null;
1718
+ created?: string | null;
1719
+ /** Name of LOA document. Max file size 10MB, and supported filetype is pdf. */
1720
+ filename?: string | null;
1721
+ /** File size of the uploaded LOA document. */
1722
+ sizeBytes?: number | null;
1723
+ /** Whether the LOA has been verified by Cloudflare staff. */
1724
+ verified?: boolean | null;
1725
+ /** Timestamp of the moment the LOA was marked as validated. */
1726
+ verifiedAt?: string | null;
1727
+ }
1728
+
1729
+ export const CreateLoaDocumentResponse =
1730
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1731
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1732
+ accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1733
+ autoGenerated: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1734
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1735
+ filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1736
+ sizeBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1737
+ verified: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1738
+ verifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1739
+ })
1740
+ .pipe(
1741
+ Schema.encodeKeys({
1742
+ id: "id",
1743
+ accountId: "account_id",
1744
+ autoGenerated: "auto_generated",
1745
+ created: "created",
1746
+ filename: "filename",
1747
+ sizeBytes: "size_bytes",
1748
+ verified: "verified",
1749
+ verifiedAt: "verified_at",
1750
+ }),
1751
+ )
1752
+ .pipe(
1753
+ T.ResponsePath("result"),
1754
+ ) as unknown as Schema.Schema<CreateLoaDocumentResponse>;
1755
+
1756
+ export type CreateLoaDocumentError =
1757
+ | DefaultErrors
1758
+ | InvalidAccountId
1759
+ | InvalidLoaForm;
1760
+
1761
+ export const createLoaDocument: API.OperationMethod<
1762
+ CreateLoaDocumentRequest,
1763
+ CreateLoaDocumentResponse,
1764
+ CreateLoaDocumentError,
1765
+ Credentials | HttpClient.HttpClient
1766
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1767
+ input: CreateLoaDocumentRequest,
1768
+ output: CreateLoaDocumentResponse,
1769
+ errors: [InvalidAccountId, InvalidLoaForm],
1770
+ }));
1771
+
1772
+ // =============================================================================
1773
+ // Prefix
1774
+ // =============================================================================
1775
+
1776
+ export interface GetPrefixRequest {
1777
+ prefixId: string;
1778
+ /** Identifier of a Cloudflare account. */
1779
+ accountId: string;
1780
+ }
1781
+
1782
+ export const GetPrefixRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1783
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
1784
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1785
+ }).pipe(
1786
+ T.Http({
1787
+ method: "GET",
1788
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}",
1789
+ }),
1790
+ ) as unknown as Schema.Schema<GetPrefixRequest>;
1791
+
1792
+ export interface GetPrefixResponse {
1793
+ /** Identifier of an IP Prefix. */
1794
+ id?: string | null;
1795
+ /** Identifier of a Cloudflare account. */
1796
+ accountId?: string | null;
1797
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
1798
+ advertised?: boolean | null;
1799
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
1800
+ advertisedModifiedAt?: string | null;
1801
+ /** Approval state of the prefix (P = pending, V = active). */
1802
+ approved?: string | null;
1803
+ /** Autonomous System Number (ASN) the prefix will be advertised under. */
1804
+ asn?: number | null;
1805
+ /** IP Prefix in Classless Inter-Domain Routing format. */
1806
+ cidr?: string | null;
1807
+ createdAt?: string | null;
1808
+ /** Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner. */
1809
+ delegateLoaCreation?: boolean | null;
1810
+ /** Description of the prefix. */
1811
+ description?: string | null;
1812
+ /** State of one kind of validation for an IP prefix. */
1813
+ irrValidationState?: string | null;
1814
+ /** Identifier for the uploaded LOA document. */
1815
+ loaDocumentId?: string | null;
1816
+ modifiedAt?: string | null;
1817
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
1818
+ onDemandEnabled?: boolean | null;
1819
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
1820
+ onDemandLocked?: boolean | null;
1821
+ /** State of one kind of validation for an IP prefix. */
1822
+ ownershipValidationState?: string | null;
1823
+ /** Token provided to demonstrate ownership of the prefix. */
1824
+ ownershipValidationToken?: string | null;
1825
+ /** State of one kind of validation for an IP prefix. */
1826
+ rpkiValidationState?: string | null;
1827
+ }
1828
+
1829
+ export const GetPrefixResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1830
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1831
+ accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1832
+ advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1833
+ advertisedModifiedAt: Schema.optional(
1834
+ Schema.Union([Schema.String, Schema.Null]),
1835
+ ),
1836
+ approved: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1837
+ asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1838
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1839
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1840
+ delegateLoaCreation: Schema.optional(
1841
+ Schema.Union([Schema.Boolean, Schema.Null]),
1842
+ ),
1843
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1844
+ irrValidationState: Schema.optional(
1845
+ Schema.Union([Schema.String, Schema.Null]),
1846
+ ),
1847
+ loaDocumentId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1848
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1849
+ onDemandEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1850
+ onDemandLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1851
+ ownershipValidationState: Schema.optional(
1852
+ Schema.Union([Schema.String, Schema.Null]),
1853
+ ),
1854
+ ownershipValidationToken: Schema.optional(
1855
+ Schema.Union([Schema.String, Schema.Null]),
1856
+ ),
1857
+ rpkiValidationState: Schema.optional(
1858
+ Schema.Union([Schema.String, Schema.Null]),
1859
+ ),
1860
+ })
1861
+ .pipe(
1862
+ Schema.encodeKeys({
1863
+ id: "id",
1864
+ accountId: "account_id",
1865
+ advertised: "advertised",
1866
+ advertisedModifiedAt: "advertised_modified_at",
1867
+ approved: "approved",
1868
+ asn: "asn",
1869
+ cidr: "cidr",
1870
+ createdAt: "created_at",
1871
+ delegateLoaCreation: "delegate_loa_creation",
1872
+ description: "description",
1873
+ irrValidationState: "irr_validation_state",
1874
+ loaDocumentId: "loa_document_id",
1875
+ modifiedAt: "modified_at",
1876
+ onDemandEnabled: "on_demand_enabled",
1877
+ onDemandLocked: "on_demand_locked",
1878
+ ownershipValidationState: "ownership_validation_state",
1879
+ ownershipValidationToken: "ownership_validation_token",
1880
+ rpkiValidationState: "rpki_validation_state",
1881
+ }),
1882
+ )
1883
+ .pipe(
1884
+ T.ResponsePath("result"),
1885
+ ) as unknown as Schema.Schema<GetPrefixResponse>;
1886
+
1887
+ export type GetPrefixError = DefaultErrors | PrefixNotFound | InvalidAccountId;
1888
+
1889
+ export const getPrefix: API.OperationMethod<
1890
+ GetPrefixRequest,
1891
+ GetPrefixResponse,
1892
+ GetPrefixError,
1893
+ Credentials | HttpClient.HttpClient
1894
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1895
+ input: GetPrefixRequest,
1896
+ output: GetPrefixResponse,
1897
+ errors: [PrefixNotFound, InvalidAccountId],
1898
+ }));
1899
+
1900
+ export interface ListPrefixesRequest {
1901
+ /** Identifier of a Cloudflare account. */
1902
+ accountId: string;
1903
+ }
1904
+
1905
+ export const ListPrefixesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1906
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1907
+ }).pipe(
1908
+ T.Http({ method: "GET", path: "/accounts/{account_id}/addressing/prefixes" }),
1909
+ ) as unknown as Schema.Schema<ListPrefixesRequest>;
1910
+
1911
+ export interface ListPrefixesResponse {
1912
+ result: {
1913
+ id?: string | null;
1914
+ accountId?: string | null;
1915
+ advertised?: boolean | null;
1916
+ advertisedModifiedAt?: string | null;
1917
+ approved?: string | null;
1918
+ asn?: number | null;
1919
+ cidr?: string | null;
1920
+ createdAt?: string | null;
1921
+ delegateLoaCreation?: boolean | null;
1922
+ description?: string | null;
1923
+ irrValidationState?: string | null;
1924
+ loaDocumentId?: string | null;
1925
+ modifiedAt?: string | null;
1926
+ onDemandEnabled?: boolean | null;
1927
+ onDemandLocked?: boolean | null;
1928
+ ownershipValidationState?: string | null;
1929
+ ownershipValidationToken?: string | null;
1930
+ rpkiValidationState?: string | null;
1931
+ }[];
1932
+ }
1933
+
1934
+ export const ListPrefixesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1935
+ result: Schema.Array(
1936
+ Schema.Struct({
1937
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1938
+ accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1939
+ advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1940
+ advertisedModifiedAt: Schema.optional(
1941
+ Schema.Union([Schema.String, Schema.Null]),
1942
+ ),
1943
+ approved: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1944
+ asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1945
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1946
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1947
+ delegateLoaCreation: Schema.optional(
1948
+ Schema.Union([Schema.Boolean, Schema.Null]),
1949
+ ),
1950
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1951
+ irrValidationState: Schema.optional(
1952
+ Schema.Union([Schema.String, Schema.Null]),
1953
+ ),
1954
+ loaDocumentId: Schema.optional(
1955
+ Schema.Union([Schema.String, Schema.Null]),
1956
+ ),
1957
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1958
+ onDemandEnabled: Schema.optional(
1959
+ Schema.Union([Schema.Boolean, Schema.Null]),
1960
+ ),
1961
+ onDemandLocked: Schema.optional(
1962
+ Schema.Union([Schema.Boolean, Schema.Null]),
1963
+ ),
1964
+ ownershipValidationState: Schema.optional(
1965
+ Schema.Union([Schema.String, Schema.Null]),
1966
+ ),
1967
+ ownershipValidationToken: Schema.optional(
1968
+ Schema.Union([Schema.String, Schema.Null]),
1969
+ ),
1970
+ rpkiValidationState: Schema.optional(
1971
+ Schema.Union([Schema.String, Schema.Null]),
1972
+ ),
1973
+ }).pipe(
1974
+ Schema.encodeKeys({
1975
+ id: "id",
1976
+ accountId: "account_id",
1977
+ advertised: "advertised",
1978
+ advertisedModifiedAt: "advertised_modified_at",
1979
+ approved: "approved",
1980
+ asn: "asn",
1981
+ cidr: "cidr",
1982
+ createdAt: "created_at",
1983
+ delegateLoaCreation: "delegate_loa_creation",
1984
+ description: "description",
1985
+ irrValidationState: "irr_validation_state",
1986
+ loaDocumentId: "loa_document_id",
1987
+ modifiedAt: "modified_at",
1988
+ onDemandEnabled: "on_demand_enabled",
1989
+ onDemandLocked: "on_demand_locked",
1990
+ ownershipValidationState: "ownership_validation_state",
1991
+ ownershipValidationToken: "ownership_validation_token",
1992
+ rpkiValidationState: "rpki_validation_state",
1993
+ }),
1994
+ ),
1995
+ ),
1996
+ }) as unknown as Schema.Schema<ListPrefixesResponse>;
1997
+
1998
+ export type ListPrefixesError = DefaultErrors;
1999
+
2000
+ export const listPrefixes: API.PaginatedOperationMethod<
2001
+ ListPrefixesRequest,
2002
+ ListPrefixesResponse,
2003
+ ListPrefixesError,
2004
+ Credentials | HttpClient.HttpClient
2005
+ > & {
2006
+ pages: (
2007
+ input: ListPrefixesRequest,
2008
+ ) => stream.Stream<
2009
+ ListPrefixesResponse,
2010
+ ListPrefixesError,
2011
+ Credentials | HttpClient.HttpClient
2012
+ >;
2013
+ items: (input: ListPrefixesRequest) => stream.Stream<
2014
+ {
2015
+ id?: string | null;
2016
+ accountId?: string | null;
2017
+ advertised?: boolean | null;
2018
+ advertisedModifiedAt?: string | null;
2019
+ approved?: string | null;
2020
+ asn?: number | null;
2021
+ cidr?: string | null;
2022
+ createdAt?: string | null;
2023
+ delegateLoaCreation?: boolean | null;
2024
+ description?: string | null;
2025
+ irrValidationState?: string | null;
2026
+ loaDocumentId?: string | null;
2027
+ modifiedAt?: string | null;
2028
+ onDemandEnabled?: boolean | null;
2029
+ onDemandLocked?: boolean | null;
2030
+ ownershipValidationState?: string | null;
2031
+ ownershipValidationToken?: string | null;
2032
+ rpkiValidationState?: string | null;
2033
+ },
2034
+ ListPrefixesError,
2035
+ Credentials | HttpClient.HttpClient
2036
+ >;
2037
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2038
+ input: ListPrefixesRequest,
2039
+ output: ListPrefixesResponse,
2040
+ errors: [],
2041
+ pagination: {
2042
+ mode: "single",
2043
+ items: "result",
2044
+ } as const,
2045
+ }));
2046
+
2047
+ export interface CreatePrefixRequest {
2048
+ /** Path param: Identifier of a Cloudflare account. */
2049
+ accountId: string;
2050
+ /** Body param: Autonomous System Number (ASN) the prefix will be advertised under. */
2051
+ asn: number;
2052
+ /** Body param: IP Prefix in Classless Inter-Domain Routing format. */
2053
+ cidr: string;
2054
+ /** Body param: Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner. */
2055
+ delegateLoaCreation?: boolean;
2056
+ /** Body param: Description of the prefix. */
2057
+ description?: string;
2058
+ /** Body param: Identifier for the uploaded LOA document. */
2059
+ loaDocumentId?: string | null;
2060
+ }
2061
+
2062
+ export const CreatePrefixRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2063
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2064
+ asn: Schema.Number,
2065
+ cidr: Schema.String,
2066
+ delegateLoaCreation: Schema.optional(Schema.Boolean),
2067
+ description: Schema.optional(Schema.String),
2068
+ loaDocumentId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2069
+ }).pipe(
2070
+ Schema.encodeKeys({
2071
+ asn: "asn",
2072
+ cidr: "cidr",
2073
+ delegateLoaCreation: "delegate_loa_creation",
2074
+ description: "description",
2075
+ loaDocumentId: "loa_document_id",
2076
+ }),
2077
+ T.Http({
2078
+ method: "POST",
2079
+ path: "/accounts/{account_id}/addressing/prefixes",
2080
+ }),
2081
+ ) as unknown as Schema.Schema<CreatePrefixRequest>;
2082
+
2083
+ export interface CreatePrefixResponse {
2084
+ /** Identifier of an IP Prefix. */
2085
+ id?: string | null;
2086
+ /** Identifier of a Cloudflare account. */
2087
+ accountId?: string | null;
2088
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
2089
+ advertised?: boolean | null;
2090
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
2091
+ advertisedModifiedAt?: string | null;
2092
+ /** Approval state of the prefix (P = pending, V = active). */
2093
+ approved?: string | null;
2094
+ /** Autonomous System Number (ASN) the prefix will be advertised under. */
2095
+ asn?: number | null;
2096
+ /** IP Prefix in Classless Inter-Domain Routing format. */
2097
+ cidr?: string | null;
2098
+ createdAt?: string | null;
2099
+ /** Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner. */
2100
+ delegateLoaCreation?: boolean | null;
2101
+ /** Description of the prefix. */
2102
+ description?: string | null;
2103
+ /** State of one kind of validation for an IP prefix. */
2104
+ irrValidationState?: string | null;
2105
+ /** Identifier for the uploaded LOA document. */
2106
+ loaDocumentId?: string | null;
2107
+ modifiedAt?: string | null;
2108
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
2109
+ onDemandEnabled?: boolean | null;
2110
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
2111
+ onDemandLocked?: boolean | null;
2112
+ /** State of one kind of validation for an IP prefix. */
2113
+ ownershipValidationState?: string | null;
2114
+ /** Token provided to demonstrate ownership of the prefix. */
2115
+ ownershipValidationToken?: string | null;
2116
+ /** State of one kind of validation for an IP prefix. */
2117
+ rpkiValidationState?: string | null;
2118
+ }
2119
+
2120
+ export const CreatePrefixResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2121
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2122
+ accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2123
+ advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2124
+ advertisedModifiedAt: Schema.optional(
2125
+ Schema.Union([Schema.String, Schema.Null]),
2126
+ ),
2127
+ approved: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2128
+ asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2129
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2130
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2131
+ delegateLoaCreation: Schema.optional(
2132
+ Schema.Union([Schema.Boolean, Schema.Null]),
2133
+ ),
2134
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2135
+ irrValidationState: Schema.optional(
2136
+ Schema.Union([Schema.String, Schema.Null]),
2137
+ ),
2138
+ loaDocumentId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2139
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2140
+ onDemandEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2141
+ onDemandLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2142
+ ownershipValidationState: Schema.optional(
2143
+ Schema.Union([Schema.String, Schema.Null]),
2144
+ ),
2145
+ ownershipValidationToken: Schema.optional(
2146
+ Schema.Union([Schema.String, Schema.Null]),
2147
+ ),
2148
+ rpkiValidationState: Schema.optional(
2149
+ Schema.Union([Schema.String, Schema.Null]),
2150
+ ),
2151
+ })
2152
+ .pipe(
2153
+ Schema.encodeKeys({
2154
+ id: "id",
2155
+ accountId: "account_id",
2156
+ advertised: "advertised",
2157
+ advertisedModifiedAt: "advertised_modified_at",
2158
+ approved: "approved",
2159
+ asn: "asn",
2160
+ cidr: "cidr",
2161
+ createdAt: "created_at",
2162
+ delegateLoaCreation: "delegate_loa_creation",
2163
+ description: "description",
2164
+ irrValidationState: "irr_validation_state",
2165
+ loaDocumentId: "loa_document_id",
2166
+ modifiedAt: "modified_at",
2167
+ onDemandEnabled: "on_demand_enabled",
2168
+ onDemandLocked: "on_demand_locked",
2169
+ ownershipValidationState: "ownership_validation_state",
2170
+ ownershipValidationToken: "ownership_validation_token",
2171
+ rpkiValidationState: "rpki_validation_state",
2172
+ }),
2173
+ )
2174
+ .pipe(
2175
+ T.ResponsePath("result"),
2176
+ ) as unknown as Schema.Schema<CreatePrefixResponse>;
2177
+
2178
+ export type CreatePrefixError =
2179
+ | DefaultErrors
2180
+ | InvalidAccountId
2181
+ | InvalidNetworkCidr
2182
+ | IrrEntryNotFound;
2183
+
2184
+ export const createPrefix: API.OperationMethod<
2185
+ CreatePrefixRequest,
2186
+ CreatePrefixResponse,
2187
+ CreatePrefixError,
2188
+ Credentials | HttpClient.HttpClient
2189
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2190
+ input: CreatePrefixRequest,
2191
+ output: CreatePrefixResponse,
2192
+ errors: [InvalidAccountId, InvalidNetworkCidr, IrrEntryNotFound],
2193
+ }));
2194
+
2195
+ export interface PatchPrefixRequest {
2196
+ prefixId: string;
2197
+ /** Path param: Identifier of a Cloudflare account. */
2198
+ accountId: string;
2199
+ /** Body param: Description of the prefix. */
2200
+ description: string;
2201
+ }
2202
+
2203
+ export const PatchPrefixRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2204
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
2205
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2206
+ description: Schema.String,
2207
+ }).pipe(
2208
+ T.Http({
2209
+ method: "PATCH",
2210
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}",
2211
+ }),
2212
+ ) as unknown as Schema.Schema<PatchPrefixRequest>;
2213
+
2214
+ export interface PatchPrefixResponse {
2215
+ /** Identifier of an IP Prefix. */
2216
+ id?: string | null;
2217
+ /** Identifier of a Cloudflare account. */
2218
+ accountId?: string | null;
2219
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
2220
+ advertised?: boolean | null;
2221
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
2222
+ advertisedModifiedAt?: string | null;
2223
+ /** Approval state of the prefix (P = pending, V = active). */
2224
+ approved?: string | null;
2225
+ /** Autonomous System Number (ASN) the prefix will be advertised under. */
2226
+ asn?: number | null;
2227
+ /** IP Prefix in Classless Inter-Domain Routing format. */
2228
+ cidr?: string | null;
2229
+ createdAt?: string | null;
2230
+ /** Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner. */
2231
+ delegateLoaCreation?: boolean | null;
2232
+ /** Description of the prefix. */
2233
+ description?: string | null;
2234
+ /** State of one kind of validation for an IP prefix. */
2235
+ irrValidationState?: string | null;
2236
+ /** Identifier for the uploaded LOA document. */
2237
+ loaDocumentId?: string | null;
2238
+ modifiedAt?: string | null;
2239
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
2240
+ onDemandEnabled?: boolean | null;
2241
+ /** @deprecated Prefer the [BGP Prefixes API](https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/) instead, which allows for advertising multiple BG */
2242
+ onDemandLocked?: boolean | null;
2243
+ /** State of one kind of validation for an IP prefix. */
2244
+ ownershipValidationState?: string | null;
2245
+ /** Token provided to demonstrate ownership of the prefix. */
2246
+ ownershipValidationToken?: string | null;
2247
+ /** State of one kind of validation for an IP prefix. */
2248
+ rpkiValidationState?: string | null;
2249
+ }
2250
+
2251
+ export const PatchPrefixResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2252
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2253
+ accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2254
+ advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2255
+ advertisedModifiedAt: Schema.optional(
2256
+ Schema.Union([Schema.String, Schema.Null]),
2257
+ ),
2258
+ approved: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2259
+ asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2260
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2261
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2262
+ delegateLoaCreation: Schema.optional(
2263
+ Schema.Union([Schema.Boolean, Schema.Null]),
2264
+ ),
2265
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2266
+ irrValidationState: Schema.optional(
2267
+ Schema.Union([Schema.String, Schema.Null]),
2268
+ ),
2269
+ loaDocumentId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2270
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2271
+ onDemandEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2272
+ onDemandLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2273
+ ownershipValidationState: Schema.optional(
2274
+ Schema.Union([Schema.String, Schema.Null]),
2275
+ ),
2276
+ ownershipValidationToken: Schema.optional(
2277
+ Schema.Union([Schema.String, Schema.Null]),
2278
+ ),
2279
+ rpkiValidationState: Schema.optional(
2280
+ Schema.Union([Schema.String, Schema.Null]),
2281
+ ),
2282
+ })
2283
+ .pipe(
2284
+ Schema.encodeKeys({
2285
+ id: "id",
2286
+ accountId: "account_id",
2287
+ advertised: "advertised",
2288
+ advertisedModifiedAt: "advertised_modified_at",
2289
+ approved: "approved",
2290
+ asn: "asn",
2291
+ cidr: "cidr",
2292
+ createdAt: "created_at",
2293
+ delegateLoaCreation: "delegate_loa_creation",
2294
+ description: "description",
2295
+ irrValidationState: "irr_validation_state",
2296
+ loaDocumentId: "loa_document_id",
2297
+ modifiedAt: "modified_at",
2298
+ onDemandEnabled: "on_demand_enabled",
2299
+ onDemandLocked: "on_demand_locked",
2300
+ ownershipValidationState: "ownership_validation_state",
2301
+ ownershipValidationToken: "ownership_validation_token",
2302
+ rpkiValidationState: "rpki_validation_state",
2303
+ }),
2304
+ )
2305
+ .pipe(
2306
+ T.ResponsePath("result"),
2307
+ ) as unknown as Schema.Schema<PatchPrefixResponse>;
2308
+
2309
+ export type PatchPrefixError =
2310
+ | DefaultErrors
2311
+ | MethodNotAllowed
2312
+ | PrefixNotFound
2313
+ | InvalidAccountId;
2314
+
2315
+ export const patchPrefix: API.OperationMethod<
2316
+ PatchPrefixRequest,
2317
+ PatchPrefixResponse,
2318
+ PatchPrefixError,
2319
+ Credentials | HttpClient.HttpClient
2320
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2321
+ input: PatchPrefixRequest,
2322
+ output: PatchPrefixResponse,
2323
+ errors: [MethodNotAllowed, PrefixNotFound, InvalidAccountId],
2324
+ }));
2325
+
2326
+ export interface DeletePrefixRequest {
2327
+ prefixId: string;
2328
+ /** Identifier of a Cloudflare account. */
2329
+ accountId: string;
2330
+ }
2331
+
2332
+ export const DeletePrefixRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2333
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
2334
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2335
+ }).pipe(
2336
+ T.Http({
2337
+ method: "DELETE",
2338
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}",
2339
+ }),
2340
+ ) as unknown as Schema.Schema<DeletePrefixRequest>;
2341
+
2342
+ export interface DeletePrefixResponse {
2343
+ errors: {
2344
+ code: number;
2345
+ message: string;
2346
+ documentationUrl?: string | null;
2347
+ source?: { pointer?: string | null } | null;
2348
+ }[];
2349
+ messages: {
2350
+ code: number;
2351
+ message: string;
2352
+ documentationUrl?: string | null;
2353
+ source?: { pointer?: string | null } | null;
2354
+ }[];
2355
+ /** Whether the API call was successful. */
2356
+ success: true;
2357
+ }
2358
+
2359
+ export const DeletePrefixResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2360
+ errors: Schema.Array(
2361
+ Schema.Struct({
2362
+ code: Schema.Number,
2363
+ message: Schema.String,
2364
+ documentationUrl: Schema.optional(
2365
+ Schema.Union([Schema.String, Schema.Null]),
2366
+ ),
2367
+ source: Schema.optional(
2368
+ Schema.Union([
2369
+ Schema.Struct({
2370
+ pointer: Schema.optional(
2371
+ Schema.Union([Schema.String, Schema.Null]),
2372
+ ),
2373
+ }),
2374
+ Schema.Null,
2375
+ ]),
2376
+ ),
2377
+ }).pipe(
2378
+ Schema.encodeKeys({
2379
+ code: "code",
2380
+ message: "message",
2381
+ documentationUrl: "documentation_url",
2382
+ source: "source",
2383
+ }),
2384
+ ),
2385
+ ),
2386
+ messages: Schema.Array(
2387
+ Schema.Struct({
2388
+ code: Schema.Number,
2389
+ message: Schema.String,
2390
+ documentationUrl: Schema.optional(
2391
+ Schema.Union([Schema.String, Schema.Null]),
2392
+ ),
2393
+ source: Schema.optional(
2394
+ Schema.Union([
2395
+ Schema.Struct({
2396
+ pointer: Schema.optional(
2397
+ Schema.Union([Schema.String, Schema.Null]),
2398
+ ),
2399
+ }),
2400
+ Schema.Null,
2401
+ ]),
2402
+ ),
2403
+ }).pipe(
2404
+ Schema.encodeKeys({
2405
+ code: "code",
2406
+ message: "message",
2407
+ documentationUrl: "documentation_url",
2408
+ source: "source",
2409
+ }),
2410
+ ),
2411
+ ),
2412
+ success: Schema.Literal(true),
2413
+ }) as unknown as Schema.Schema<DeletePrefixResponse>;
2414
+
2415
+ export type DeletePrefixError =
2416
+ | DefaultErrors
2417
+ | MethodNotAllowed
2418
+ | PrefixNotFound
2419
+ | InvalidAccountId;
2420
+
2421
+ export const deletePrefix: API.OperationMethod<
2422
+ DeletePrefixRequest,
2423
+ DeletePrefixResponse,
2424
+ DeletePrefixError,
2425
+ Credentials | HttpClient.HttpClient
2426
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2427
+ input: DeletePrefixRequest,
2428
+ output: DeletePrefixResponse,
2429
+ errors: [MethodNotAllowed, PrefixNotFound, InvalidAccountId],
2430
+ }));
2431
+
2432
+ // =============================================================================
2433
+ // PrefixAdvertisementStatus
2434
+ // =============================================================================
2435
+
2436
+ export interface GetPrefixAdvertisementStatusRequest {
2437
+ prefixId: string;
2438
+ /** Identifier of a Cloudflare account. */
2439
+ accountId: string;
2440
+ }
2441
+
2442
+ export const GetPrefixAdvertisementStatusRequest =
2443
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2444
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
2445
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2446
+ }).pipe(
2447
+ T.Http({
2448
+ method: "GET",
2449
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/status",
2450
+ }),
2451
+ ) as unknown as Schema.Schema<GetPrefixAdvertisementStatusRequest>;
2452
+
2453
+ export interface GetPrefixAdvertisementStatusResponse {
2454
+ /** Advertisement status of the prefix. If `true`, the BGP route for the prefix is advertised to the Internet. If `false`, the BGP route is withdrawn. */
2455
+ advertised?: boolean | null;
2456
+ /** Last time the advertisement status was changed. This field is only not 'null' if on demand is enabled. */
2457
+ advertisedModifiedAt?: string | null;
2458
+ }
2459
+
2460
+ export const GetPrefixAdvertisementStatusResponse =
2461
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2462
+ advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2463
+ advertisedModifiedAt: Schema.optional(
2464
+ Schema.Union([Schema.String, Schema.Null]),
2465
+ ),
2466
+ })
2467
+ .pipe(
2468
+ Schema.encodeKeys({
2469
+ advertised: "advertised",
2470
+ advertisedModifiedAt: "advertised_modified_at",
2471
+ }),
2472
+ )
2473
+ .pipe(
2474
+ T.ResponsePath("result"),
2475
+ ) as unknown as Schema.Schema<GetPrefixAdvertisementStatusResponse>;
2476
+
2477
+ export type GetPrefixAdvertisementStatusError =
2478
+ | DefaultErrors
2479
+ | PrefixNotFound
2480
+ | InvalidAccountId;
2481
+
2482
+ export const getPrefixAdvertisementStatus: API.OperationMethod<
2483
+ GetPrefixAdvertisementStatusRequest,
2484
+ GetPrefixAdvertisementStatusResponse,
2485
+ GetPrefixAdvertisementStatusError,
2486
+ Credentials | HttpClient.HttpClient
2487
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2488
+ input: GetPrefixAdvertisementStatusRequest,
2489
+ output: GetPrefixAdvertisementStatusResponse,
2490
+ errors: [PrefixNotFound, InvalidAccountId],
2491
+ }));
2492
+
2493
+ export interface PatchPrefixAdvertisementStatusRequest {
2494
+ prefixId: string;
2495
+ /** Path param: Identifier of a Cloudflare account. */
2496
+ accountId: string;
2497
+ /** Body param: Advertisement status of the prefix. If `true`, the BGP route for the prefix is advertised to the Internet. If `false`, the BGP route is withdrawn. */
2498
+ advertised: boolean;
2499
+ }
2500
+
2501
+ export const PatchPrefixAdvertisementStatusRequest =
2502
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2503
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
2504
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2505
+ advertised: Schema.Boolean,
2506
+ }).pipe(
2507
+ T.Http({
2508
+ method: "PATCH",
2509
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/status",
2510
+ }),
2511
+ ) as unknown as Schema.Schema<PatchPrefixAdvertisementStatusRequest>;
2512
+
2513
+ export interface PatchPrefixAdvertisementStatusResponse {
2514
+ /** Advertisement status of the prefix. If `true`, the BGP route for the prefix is advertised to the Internet. If `false`, the BGP route is withdrawn. */
2515
+ advertised?: boolean | null;
2516
+ /** Last time the advertisement status was changed. This field is only not 'null' if on demand is enabled. */
2517
+ advertisedModifiedAt?: string | null;
2518
+ }
2519
+
2520
+ export const PatchPrefixAdvertisementStatusResponse =
2521
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2522
+ advertised: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2523
+ advertisedModifiedAt: Schema.optional(
2524
+ Schema.Union([Schema.String, Schema.Null]),
2525
+ ),
2526
+ })
2527
+ .pipe(
2528
+ Schema.encodeKeys({
2529
+ advertised: "advertised",
2530
+ advertisedModifiedAt: "advertised_modified_at",
2531
+ }),
2532
+ )
2533
+ .pipe(
2534
+ T.ResponsePath("result"),
2535
+ ) as unknown as Schema.Schema<PatchPrefixAdvertisementStatusResponse>;
2536
+
2537
+ export type PatchPrefixAdvertisementStatusError =
2538
+ | DefaultErrors
2539
+ | PrefixNotFound
2540
+ | InvalidAccountId;
2541
+
2542
+ export const patchPrefixAdvertisementStatus: API.OperationMethod<
2543
+ PatchPrefixAdvertisementStatusRequest,
2544
+ PatchPrefixAdvertisementStatusResponse,
2545
+ PatchPrefixAdvertisementStatusError,
2546
+ Credentials | HttpClient.HttpClient
2547
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2548
+ input: PatchPrefixAdvertisementStatusRequest,
2549
+ output: PatchPrefixAdvertisementStatusResponse,
2550
+ errors: [PrefixNotFound, InvalidAccountId],
2551
+ }));
2552
+
2553
+ // =============================================================================
2554
+ // PrefixBgpPrefix
2555
+ // =============================================================================
2556
+
2557
+ export interface GetPrefixBgpPrefixRequest {
2558
+ prefixId: string;
2559
+ bgpPrefixId: string;
2560
+ /** Identifier of a Cloudflare account. */
2561
+ accountId: string;
2562
+ }
2563
+
2564
+ export const GetPrefixBgpPrefixRequest =
2565
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2566
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
2567
+ bgpPrefixId: Schema.String.pipe(T.HttpPath("bgpPrefixId")),
2568
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2569
+ }).pipe(
2570
+ T.Http({
2571
+ method: "GET",
2572
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/prefixes/{bgpPrefixId}",
2573
+ }),
2574
+ ) as unknown as Schema.Schema<GetPrefixBgpPrefixRequest>;
2575
+
2576
+ export interface GetPrefixBgpPrefixResponse {
2577
+ /** Identifier of BGP Prefix. */
2578
+ id?: string | null;
2579
+ /** Autonomous System Number (ASN) the prefix will be advertised under. */
2580
+ asn?: number | null;
2581
+ /** Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute */
2582
+ asnPrependCount?: number | null;
2583
+ /** Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no matching BGP prefix in the Magic routing table. When true, Cloudflare will automatically withdraw the BGP prefix when there */
2584
+ autoAdvertiseWithdraw?: boolean | null;
2585
+ bgpSignalOpts?: {
2586
+ enabled?: boolean | null;
2587
+ modifiedAt?: string | null;
2588
+ } | null;
2589
+ /** IP Prefix in Classless Inter-Domain Routing format. */
2590
+ cidr?: string | null;
2591
+ createdAt?: string | null;
2592
+ modifiedAt?: string | null;
2593
+ onDemand?: {
2594
+ advertised?: boolean | null;
2595
+ advertisedModifiedAt?: string | null;
2596
+ onDemandEnabled?: boolean | null;
2597
+ onDemandLocked?: boolean | null;
2598
+ } | null;
2599
+ }
2600
+
2601
+ export const GetPrefixBgpPrefixResponse =
2602
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2603
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2604
+ asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2605
+ asnPrependCount: Schema.optional(
2606
+ Schema.Union([Schema.Number, Schema.Null]),
2607
+ ),
2608
+ autoAdvertiseWithdraw: Schema.optional(
2609
+ Schema.Union([Schema.Boolean, Schema.Null]),
2610
+ ),
2611
+ bgpSignalOpts: Schema.optional(
2612
+ Schema.Union([
2613
+ Schema.Struct({
2614
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2615
+ modifiedAt: Schema.optional(
2616
+ Schema.Union([Schema.String, Schema.Null]),
2617
+ ),
2618
+ }).pipe(
2619
+ Schema.encodeKeys({ enabled: "enabled", modifiedAt: "modified_at" }),
2620
+ ),
2621
+ Schema.Null,
2622
+ ]),
2623
+ ),
2624
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2625
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2626
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2627
+ onDemand: Schema.optional(
2628
+ Schema.Union([
2629
+ Schema.Struct({
2630
+ advertised: Schema.optional(
2631
+ Schema.Union([Schema.Boolean, Schema.Null]),
2632
+ ),
2633
+ advertisedModifiedAt: Schema.optional(
2634
+ Schema.Union([Schema.String, Schema.Null]),
2635
+ ),
2636
+ onDemandEnabled: Schema.optional(
2637
+ Schema.Union([Schema.Boolean, Schema.Null]),
2638
+ ),
2639
+ onDemandLocked: Schema.optional(
2640
+ Schema.Union([Schema.Boolean, Schema.Null]),
2641
+ ),
2642
+ }).pipe(
2643
+ Schema.encodeKeys({
2644
+ advertised: "advertised",
2645
+ advertisedModifiedAt: "advertised_modified_at",
2646
+ onDemandEnabled: "on_demand_enabled",
2647
+ onDemandLocked: "on_demand_locked",
2648
+ }),
2649
+ ),
2650
+ Schema.Null,
2651
+ ]),
2652
+ ),
2653
+ })
2654
+ .pipe(
2655
+ Schema.encodeKeys({
2656
+ id: "id",
2657
+ asn: "asn",
2658
+ asnPrependCount: "asn_prepend_count",
2659
+ autoAdvertiseWithdraw: "auto_advertise_withdraw",
2660
+ bgpSignalOpts: "bgp_signal_opts",
2661
+ cidr: "cidr",
2662
+ createdAt: "created_at",
2663
+ modifiedAt: "modified_at",
2664
+ onDemand: "on_demand",
2665
+ }),
2666
+ )
2667
+ .pipe(
2668
+ T.ResponsePath("result"),
2669
+ ) as unknown as Schema.Schema<GetPrefixBgpPrefixResponse>;
2670
+
2671
+ export type GetPrefixBgpPrefixError =
2672
+ | DefaultErrors
2673
+ | BgpPrefixNotFound
2674
+ | InvalidAccountId
2675
+ | PrefixNotFound;
2676
+
2677
+ export const getPrefixBgpPrefix: API.OperationMethod<
2678
+ GetPrefixBgpPrefixRequest,
2679
+ GetPrefixBgpPrefixResponse,
2680
+ GetPrefixBgpPrefixError,
2681
+ Credentials | HttpClient.HttpClient
2682
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2683
+ input: GetPrefixBgpPrefixRequest,
2684
+ output: GetPrefixBgpPrefixResponse,
2685
+ errors: [BgpPrefixNotFound, InvalidAccountId, PrefixNotFound],
2686
+ }));
2687
+
2688
+ export interface ListPrefixBgpPrefixesRequest {
2689
+ prefixId: string;
2690
+ /** Identifier of a Cloudflare account. */
2691
+ accountId: string;
2692
+ }
2693
+
2694
+ export const ListPrefixBgpPrefixesRequest =
2695
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2696
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
2697
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2698
+ }).pipe(
2699
+ T.Http({
2700
+ method: "GET",
2701
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/prefixes",
2702
+ }),
2703
+ ) as unknown as Schema.Schema<ListPrefixBgpPrefixesRequest>;
2704
+
2705
+ export interface ListPrefixBgpPrefixesResponse {
2706
+ result: {
2707
+ id?: string | null;
2708
+ asn?: number | null;
2709
+ asnPrependCount?: number | null;
2710
+ autoAdvertiseWithdraw?: boolean | null;
2711
+ bgpSignalOpts?: {
2712
+ enabled?: boolean | null;
2713
+ modifiedAt?: string | null;
2714
+ } | null;
2715
+ cidr?: string | null;
2716
+ createdAt?: string | null;
2717
+ modifiedAt?: string | null;
2718
+ onDemand?: {
2719
+ advertised?: boolean | null;
2720
+ advertisedModifiedAt?: string | null;
2721
+ onDemandEnabled?: boolean | null;
2722
+ onDemandLocked?: boolean | null;
2723
+ } | null;
2724
+ }[];
2725
+ }
2726
+
2727
+ export const ListPrefixBgpPrefixesResponse =
2728
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2729
+ result: Schema.Array(
2730
+ Schema.Struct({
2731
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2732
+ asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2733
+ asnPrependCount: Schema.optional(
2734
+ Schema.Union([Schema.Number, Schema.Null]),
2735
+ ),
2736
+ autoAdvertiseWithdraw: Schema.optional(
2737
+ Schema.Union([Schema.Boolean, Schema.Null]),
2738
+ ),
2739
+ bgpSignalOpts: Schema.optional(
2740
+ Schema.Union([
2741
+ Schema.Struct({
2742
+ enabled: Schema.optional(
2743
+ Schema.Union([Schema.Boolean, Schema.Null]),
2744
+ ),
2745
+ modifiedAt: Schema.optional(
2746
+ Schema.Union([Schema.String, Schema.Null]),
2747
+ ),
2748
+ }).pipe(
2749
+ Schema.encodeKeys({
2750
+ enabled: "enabled",
2751
+ modifiedAt: "modified_at",
2752
+ }),
2753
+ ),
2754
+ Schema.Null,
2755
+ ]),
2756
+ ),
2757
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2758
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2759
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2760
+ onDemand: Schema.optional(
2761
+ Schema.Union([
2762
+ Schema.Struct({
2763
+ advertised: Schema.optional(
2764
+ Schema.Union([Schema.Boolean, Schema.Null]),
2765
+ ),
2766
+ advertisedModifiedAt: Schema.optional(
2767
+ Schema.Union([Schema.String, Schema.Null]),
2768
+ ),
2769
+ onDemandEnabled: Schema.optional(
2770
+ Schema.Union([Schema.Boolean, Schema.Null]),
2771
+ ),
2772
+ onDemandLocked: Schema.optional(
2773
+ Schema.Union([Schema.Boolean, Schema.Null]),
2774
+ ),
2775
+ }).pipe(
2776
+ Schema.encodeKeys({
2777
+ advertised: "advertised",
2778
+ advertisedModifiedAt: "advertised_modified_at",
2779
+ onDemandEnabled: "on_demand_enabled",
2780
+ onDemandLocked: "on_demand_locked",
2781
+ }),
2782
+ ),
2783
+ Schema.Null,
2784
+ ]),
2785
+ ),
2786
+ }).pipe(
2787
+ Schema.encodeKeys({
2788
+ id: "id",
2789
+ asn: "asn",
2790
+ asnPrependCount: "asn_prepend_count",
2791
+ autoAdvertiseWithdraw: "auto_advertise_withdraw",
2792
+ bgpSignalOpts: "bgp_signal_opts",
2793
+ cidr: "cidr",
2794
+ createdAt: "created_at",
2795
+ modifiedAt: "modified_at",
2796
+ onDemand: "on_demand",
2797
+ }),
2798
+ ),
2799
+ ),
2800
+ }) as unknown as Schema.Schema<ListPrefixBgpPrefixesResponse>;
2801
+
2802
+ export type ListPrefixBgpPrefixesError = DefaultErrors;
2803
+
2804
+ export const listPrefixBgpPrefixes: API.PaginatedOperationMethod<
2805
+ ListPrefixBgpPrefixesRequest,
2806
+ ListPrefixBgpPrefixesResponse,
2807
+ ListPrefixBgpPrefixesError,
2808
+ Credentials | HttpClient.HttpClient
2809
+ > & {
2810
+ pages: (
2811
+ input: ListPrefixBgpPrefixesRequest,
2812
+ ) => stream.Stream<
2813
+ ListPrefixBgpPrefixesResponse,
2814
+ ListPrefixBgpPrefixesError,
2815
+ Credentials | HttpClient.HttpClient
2816
+ >;
2817
+ items: (input: ListPrefixBgpPrefixesRequest) => stream.Stream<
2818
+ {
2819
+ id?: string | null;
2820
+ asn?: number | null;
2821
+ asnPrependCount?: number | null;
2822
+ autoAdvertiseWithdraw?: boolean | null;
2823
+ bgpSignalOpts?: {
2824
+ enabled?: boolean | null;
2825
+ modifiedAt?: string | null;
2826
+ } | null;
2827
+ cidr?: string | null;
2828
+ createdAt?: string | null;
2829
+ modifiedAt?: string | null;
2830
+ onDemand?: {
2831
+ advertised?: boolean | null;
2832
+ advertisedModifiedAt?: string | null;
2833
+ onDemandEnabled?: boolean | null;
2834
+ onDemandLocked?: boolean | null;
2835
+ } | null;
2836
+ },
2837
+ ListPrefixBgpPrefixesError,
2838
+ Credentials | HttpClient.HttpClient
2839
+ >;
2840
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2841
+ input: ListPrefixBgpPrefixesRequest,
2842
+ output: ListPrefixBgpPrefixesResponse,
2843
+ errors: [],
2844
+ pagination: {
2845
+ mode: "single",
2846
+ items: "result",
2847
+ } as const,
2848
+ }));
2849
+
2850
+ export interface CreatePrefixBgpPrefixRequest {
2851
+ prefixId: string;
2852
+ /** Path param: Identifier of a Cloudflare account. */
2853
+ accountId: string;
2854
+ /** Body param: IP Prefix in Classless Inter-Domain Routing format. */
2855
+ cidr: string;
2856
+ }
2857
+
2858
+ export const CreatePrefixBgpPrefixRequest =
2859
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2860
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
2861
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2862
+ cidr: Schema.String,
2863
+ }).pipe(
2864
+ T.Http({
2865
+ method: "POST",
2866
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/prefixes",
2867
+ }),
2868
+ ) as unknown as Schema.Schema<CreatePrefixBgpPrefixRequest>;
2869
+
2870
+ export interface CreatePrefixBgpPrefixResponse {
2871
+ /** Identifier of BGP Prefix. */
2872
+ id?: string | null;
2873
+ /** Autonomous System Number (ASN) the prefix will be advertised under. */
2874
+ asn?: number | null;
2875
+ /** Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute */
2876
+ asnPrependCount?: number | null;
2877
+ /** Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no matching BGP prefix in the Magic routing table. When true, Cloudflare will automatically withdraw the BGP prefix when there */
2878
+ autoAdvertiseWithdraw?: boolean | null;
2879
+ bgpSignalOpts?: {
2880
+ enabled?: boolean | null;
2881
+ modifiedAt?: string | null;
2882
+ } | null;
2883
+ /** IP Prefix in Classless Inter-Domain Routing format. */
2884
+ cidr?: string | null;
2885
+ createdAt?: string | null;
2886
+ modifiedAt?: string | null;
2887
+ onDemand?: {
2888
+ advertised?: boolean | null;
2889
+ advertisedModifiedAt?: string | null;
2890
+ onDemandEnabled?: boolean | null;
2891
+ onDemandLocked?: boolean | null;
2892
+ } | null;
2893
+ }
2894
+
2895
+ export const CreatePrefixBgpPrefixResponse =
2896
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2897
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2898
+ asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2899
+ asnPrependCount: Schema.optional(
2900
+ Schema.Union([Schema.Number, Schema.Null]),
2901
+ ),
2902
+ autoAdvertiseWithdraw: Schema.optional(
2903
+ Schema.Union([Schema.Boolean, Schema.Null]),
2904
+ ),
2905
+ bgpSignalOpts: Schema.optional(
2906
+ Schema.Union([
2907
+ Schema.Struct({
2908
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2909
+ modifiedAt: Schema.optional(
2910
+ Schema.Union([Schema.String, Schema.Null]),
2911
+ ),
2912
+ }).pipe(
2913
+ Schema.encodeKeys({ enabled: "enabled", modifiedAt: "modified_at" }),
2914
+ ),
2915
+ Schema.Null,
2916
+ ]),
2917
+ ),
2918
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2919
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2920
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2921
+ onDemand: Schema.optional(
2922
+ Schema.Union([
2923
+ Schema.Struct({
2924
+ advertised: Schema.optional(
2925
+ Schema.Union([Schema.Boolean, Schema.Null]),
2926
+ ),
2927
+ advertisedModifiedAt: Schema.optional(
2928
+ Schema.Union([Schema.String, Schema.Null]),
2929
+ ),
2930
+ onDemandEnabled: Schema.optional(
2931
+ Schema.Union([Schema.Boolean, Schema.Null]),
2932
+ ),
2933
+ onDemandLocked: Schema.optional(
2934
+ Schema.Union([Schema.Boolean, Schema.Null]),
2935
+ ),
2936
+ }).pipe(
2937
+ Schema.encodeKeys({
2938
+ advertised: "advertised",
2939
+ advertisedModifiedAt: "advertised_modified_at",
2940
+ onDemandEnabled: "on_demand_enabled",
2941
+ onDemandLocked: "on_demand_locked",
2942
+ }),
2943
+ ),
2944
+ Schema.Null,
2945
+ ]),
2946
+ ),
2947
+ })
2948
+ .pipe(
2949
+ Schema.encodeKeys({
2950
+ id: "id",
2951
+ asn: "asn",
2952
+ asnPrependCount: "asn_prepend_count",
2953
+ autoAdvertiseWithdraw: "auto_advertise_withdraw",
2954
+ bgpSignalOpts: "bgp_signal_opts",
2955
+ cidr: "cidr",
2956
+ createdAt: "created_at",
2957
+ modifiedAt: "modified_at",
2958
+ onDemand: "on_demand",
2959
+ }),
2960
+ )
2961
+ .pipe(
2962
+ T.ResponsePath("result"),
2963
+ ) as unknown as Schema.Schema<CreatePrefixBgpPrefixResponse>;
2964
+
2965
+ export type CreatePrefixBgpPrefixError =
2966
+ | DefaultErrors
2967
+ | NonexistentAccountPrefix
2968
+ | InvalidAccountId
2969
+ | InvalidNetworkCidr;
2970
+
2971
+ export const createPrefixBgpPrefix: API.OperationMethod<
2972
+ CreatePrefixBgpPrefixRequest,
2973
+ CreatePrefixBgpPrefixResponse,
2974
+ CreatePrefixBgpPrefixError,
2975
+ Credentials | HttpClient.HttpClient
2976
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2977
+ input: CreatePrefixBgpPrefixRequest,
2978
+ output: CreatePrefixBgpPrefixResponse,
2979
+ errors: [NonexistentAccountPrefix, InvalidAccountId, InvalidNetworkCidr],
2980
+ }));
2981
+
2982
+ export interface PatchPrefixBgpPrefixRequest {
2983
+ prefixId: string;
2984
+ bgpPrefixId: string;
2985
+ /** Path param: Identifier of a Cloudflare account. */
2986
+ accountId: string;
2987
+ /** Body param: Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute */
2988
+ asnPrependCount?: number;
2989
+ /** Body param: Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no matching BGP prefix in the Magic routing table. When true, Cloudflare will automatically withdraw the BGP prefi */
2990
+ autoAdvertiseWithdraw?: boolean;
2991
+ /** Body param: */
2992
+ onDemand?: { advertised?: boolean };
2993
+ }
2994
+
2995
+ export const PatchPrefixBgpPrefixRequest =
2996
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2997
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
2998
+ bgpPrefixId: Schema.String.pipe(T.HttpPath("bgpPrefixId")),
2999
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3000
+ asnPrependCount: Schema.optional(Schema.Number),
3001
+ autoAdvertiseWithdraw: Schema.optional(Schema.Boolean),
3002
+ onDemand: Schema.optional(
3003
+ Schema.Struct({
3004
+ advertised: Schema.optional(Schema.Boolean),
3005
+ }),
3006
+ ),
3007
+ }).pipe(
3008
+ Schema.encodeKeys({
3009
+ asnPrependCount: "asn_prepend_count",
3010
+ autoAdvertiseWithdraw: "auto_advertise_withdraw",
3011
+ onDemand: "on_demand",
3012
+ }),
3013
+ T.Http({
3014
+ method: "PATCH",
3015
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bgp/prefixes/{bgpPrefixId}",
3016
+ }),
3017
+ ) as unknown as Schema.Schema<PatchPrefixBgpPrefixRequest>;
3018
+
3019
+ export interface PatchPrefixBgpPrefixResponse {
3020
+ /** Identifier of BGP Prefix. */
3021
+ id?: string | null;
3022
+ /** Autonomous System Number (ASN) the prefix will be advertised under. */
3023
+ asn?: number | null;
3024
+ /** Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute */
3025
+ asnPrependCount?: number | null;
3026
+ /** Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no matching BGP prefix in the Magic routing table. When true, Cloudflare will automatically withdraw the BGP prefix when there */
3027
+ autoAdvertiseWithdraw?: boolean | null;
3028
+ bgpSignalOpts?: {
3029
+ enabled?: boolean | null;
3030
+ modifiedAt?: string | null;
3031
+ } | null;
3032
+ /** IP Prefix in Classless Inter-Domain Routing format. */
3033
+ cidr?: string | null;
3034
+ createdAt?: string | null;
3035
+ modifiedAt?: string | null;
3036
+ onDemand?: {
3037
+ advertised?: boolean | null;
3038
+ advertisedModifiedAt?: string | null;
3039
+ onDemandEnabled?: boolean | null;
3040
+ onDemandLocked?: boolean | null;
3041
+ } | null;
3042
+ }
3043
+
3044
+ export const PatchPrefixBgpPrefixResponse =
3045
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3046
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3047
+ asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3048
+ asnPrependCount: Schema.optional(
3049
+ Schema.Union([Schema.Number, Schema.Null]),
3050
+ ),
3051
+ autoAdvertiseWithdraw: Schema.optional(
3052
+ Schema.Union([Schema.Boolean, Schema.Null]),
3053
+ ),
3054
+ bgpSignalOpts: Schema.optional(
3055
+ Schema.Union([
3056
+ Schema.Struct({
3057
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3058
+ modifiedAt: Schema.optional(
3059
+ Schema.Union([Schema.String, Schema.Null]),
3060
+ ),
3061
+ }).pipe(
3062
+ Schema.encodeKeys({ enabled: "enabled", modifiedAt: "modified_at" }),
3063
+ ),
3064
+ Schema.Null,
3065
+ ]),
3066
+ ),
3067
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3068
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3069
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3070
+ onDemand: Schema.optional(
3071
+ Schema.Union([
3072
+ Schema.Struct({
3073
+ advertised: Schema.optional(
3074
+ Schema.Union([Schema.Boolean, Schema.Null]),
3075
+ ),
3076
+ advertisedModifiedAt: Schema.optional(
3077
+ Schema.Union([Schema.String, Schema.Null]),
3078
+ ),
3079
+ onDemandEnabled: Schema.optional(
3080
+ Schema.Union([Schema.Boolean, Schema.Null]),
3081
+ ),
3082
+ onDemandLocked: Schema.optional(
3083
+ Schema.Union([Schema.Boolean, Schema.Null]),
3084
+ ),
3085
+ }).pipe(
3086
+ Schema.encodeKeys({
3087
+ advertised: "advertised",
3088
+ advertisedModifiedAt: "advertised_modified_at",
3089
+ onDemandEnabled: "on_demand_enabled",
3090
+ onDemandLocked: "on_demand_locked",
3091
+ }),
3092
+ ),
3093
+ Schema.Null,
3094
+ ]),
3095
+ ),
3096
+ })
3097
+ .pipe(
3098
+ Schema.encodeKeys({
3099
+ id: "id",
3100
+ asn: "asn",
3101
+ asnPrependCount: "asn_prepend_count",
3102
+ autoAdvertiseWithdraw: "auto_advertise_withdraw",
3103
+ bgpSignalOpts: "bgp_signal_opts",
3104
+ cidr: "cidr",
3105
+ createdAt: "created_at",
3106
+ modifiedAt: "modified_at",
3107
+ onDemand: "on_demand",
3108
+ }),
3109
+ )
3110
+ .pipe(
3111
+ T.ResponsePath("result"),
3112
+ ) as unknown as Schema.Schema<PatchPrefixBgpPrefixResponse>;
3113
+
3114
+ export type PatchPrefixBgpPrefixError =
3115
+ | DefaultErrors
3116
+ | BgpPrefixNotFound
3117
+ | InvalidAccountId;
3118
+
3119
+ export const patchPrefixBgpPrefix: API.OperationMethod<
3120
+ PatchPrefixBgpPrefixRequest,
3121
+ PatchPrefixBgpPrefixResponse,
3122
+ PatchPrefixBgpPrefixError,
3123
+ Credentials | HttpClient.HttpClient
3124
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3125
+ input: PatchPrefixBgpPrefixRequest,
3126
+ output: PatchPrefixBgpPrefixResponse,
3127
+ errors: [BgpPrefixNotFound, InvalidAccountId],
3128
+ }));
3129
+
3130
+ // =============================================================================
3131
+ // PrefixDelegation
3132
+ // =============================================================================
3133
+
3134
+ export interface ListPrefixDelegationsRequest {
3135
+ prefixId: string;
3136
+ /** Identifier of a Cloudflare account. */
3137
+ accountId: string;
3138
+ }
3139
+
3140
+ export const ListPrefixDelegationsRequest =
3141
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3142
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
3143
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3144
+ }).pipe(
3145
+ T.Http({
3146
+ method: "GET",
3147
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/delegations",
3148
+ }),
3149
+ ) as unknown as Schema.Schema<ListPrefixDelegationsRequest>;
3150
+
3151
+ export interface ListPrefixDelegationsResponse {
3152
+ result: {
3153
+ id?: string | null;
3154
+ cidr?: string | null;
3155
+ createdAt?: string | null;
3156
+ delegatedAccountId?: string | null;
3157
+ modifiedAt?: string | null;
3158
+ parentPrefixId?: string | null;
3159
+ }[];
3160
+ }
3161
+
3162
+ export const ListPrefixDelegationsResponse =
3163
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3164
+ result: Schema.Array(
3165
+ Schema.Struct({
3166
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3167
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3168
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3169
+ delegatedAccountId: Schema.optional(
3170
+ Schema.Union([Schema.String, Schema.Null]),
3171
+ ),
3172
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3173
+ parentPrefixId: Schema.optional(
3174
+ Schema.Union([Schema.String, Schema.Null]),
3175
+ ),
3176
+ }).pipe(
3177
+ Schema.encodeKeys({
3178
+ id: "id",
3179
+ cidr: "cidr",
3180
+ createdAt: "created_at",
3181
+ delegatedAccountId: "delegated_account_id",
3182
+ modifiedAt: "modified_at",
3183
+ parentPrefixId: "parent_prefix_id",
3184
+ }),
3185
+ ),
3186
+ ),
3187
+ }) as unknown as Schema.Schema<ListPrefixDelegationsResponse>;
3188
+
3189
+ export type ListPrefixDelegationsError = DefaultErrors;
3190
+
3191
+ export const listPrefixDelegations: API.PaginatedOperationMethod<
3192
+ ListPrefixDelegationsRequest,
3193
+ ListPrefixDelegationsResponse,
3194
+ ListPrefixDelegationsError,
3195
+ Credentials | HttpClient.HttpClient
3196
+ > & {
3197
+ pages: (
3198
+ input: ListPrefixDelegationsRequest,
3199
+ ) => stream.Stream<
3200
+ ListPrefixDelegationsResponse,
3201
+ ListPrefixDelegationsError,
3202
+ Credentials | HttpClient.HttpClient
3203
+ >;
3204
+ items: (input: ListPrefixDelegationsRequest) => stream.Stream<
3205
+ {
3206
+ id?: string | null;
3207
+ cidr?: string | null;
3208
+ createdAt?: string | null;
3209
+ delegatedAccountId?: string | null;
3210
+ modifiedAt?: string | null;
3211
+ parentPrefixId?: string | null;
3212
+ },
3213
+ ListPrefixDelegationsError,
3214
+ Credentials | HttpClient.HttpClient
3215
+ >;
3216
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3217
+ input: ListPrefixDelegationsRequest,
3218
+ output: ListPrefixDelegationsResponse,
3219
+ errors: [],
3220
+ pagination: {
3221
+ mode: "single",
3222
+ items: "result",
3223
+ } as const,
3224
+ }));
3225
+
3226
+ export interface CreatePrefixDelegationRequest {
3227
+ prefixId: string;
3228
+ /** Path param: Identifier of a Cloudflare account. */
3229
+ accountId: string;
3230
+ /** Body param: IP Prefix in Classless Inter-Domain Routing format. */
3231
+ cidr: string;
3232
+ /** Body param: Account identifier for the account to which prefix is being delegated. */
3233
+ delegatedAccountId: string;
3234
+ }
3235
+
3236
+ export const CreatePrefixDelegationRequest =
3237
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3238
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
3239
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3240
+ cidr: Schema.String,
3241
+ delegatedAccountId: Schema.String,
3242
+ }).pipe(
3243
+ Schema.encodeKeys({
3244
+ cidr: "cidr",
3245
+ delegatedAccountId: "delegated_account_id",
3246
+ }),
3247
+ T.Http({
3248
+ method: "POST",
3249
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/delegations",
3250
+ }),
3251
+ ) as unknown as Schema.Schema<CreatePrefixDelegationRequest>;
3252
+
3253
+ export interface CreatePrefixDelegationResponse {
3254
+ /** Identifier of a Delegation. */
3255
+ id?: string | null;
3256
+ /** IP Prefix in Classless Inter-Domain Routing format. */
3257
+ cidr?: string | null;
3258
+ createdAt?: string | null;
3259
+ /** Account identifier for the account to which prefix is being delegated. */
3260
+ delegatedAccountId?: string | null;
3261
+ modifiedAt?: string | null;
3262
+ /** Identifier of an IP Prefix. */
3263
+ parentPrefixId?: string | null;
3264
+ }
3265
+
3266
+ export const CreatePrefixDelegationResponse =
3267
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3268
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3269
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3270
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3271
+ delegatedAccountId: Schema.optional(
3272
+ Schema.Union([Schema.String, Schema.Null]),
3273
+ ),
3274
+ modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3275
+ parentPrefixId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3276
+ })
3277
+ .pipe(
3278
+ Schema.encodeKeys({
3279
+ id: "id",
3280
+ cidr: "cidr",
3281
+ createdAt: "created_at",
3282
+ delegatedAccountId: "delegated_account_id",
3283
+ modifiedAt: "modified_at",
3284
+ parentPrefixId: "parent_prefix_id",
3285
+ }),
3286
+ )
3287
+ .pipe(
3288
+ T.ResponsePath("result"),
3289
+ ) as unknown as Schema.Schema<CreatePrefixDelegationResponse>;
3290
+
3291
+ export type CreatePrefixDelegationError =
3292
+ | DefaultErrors
3293
+ | PrefixNotFound
3294
+ | MissingAccountId
3295
+ | InvalidAccountId;
3296
+
3297
+ export const createPrefixDelegation: API.OperationMethod<
3298
+ CreatePrefixDelegationRequest,
3299
+ CreatePrefixDelegationResponse,
3300
+ CreatePrefixDelegationError,
3301
+ Credentials | HttpClient.HttpClient
3302
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3303
+ input: CreatePrefixDelegationRequest,
3304
+ output: CreatePrefixDelegationResponse,
3305
+ errors: [PrefixNotFound, MissingAccountId, InvalidAccountId],
3306
+ }));
3307
+
3308
+ export interface DeletePrefixDelegationRequest {
3309
+ prefixId: string;
3310
+ delegationId: string;
3311
+ /** Identifier of a Cloudflare account. */
3312
+ accountId: string;
3313
+ }
3314
+
3315
+ export const DeletePrefixDelegationRequest =
3316
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3317
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
3318
+ delegationId: Schema.String.pipe(T.HttpPath("delegationId")),
3319
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3320
+ }).pipe(
3321
+ T.Http({
3322
+ method: "DELETE",
3323
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/delegations/{delegationId}",
3324
+ }),
3325
+ ) as unknown as Schema.Schema<DeletePrefixDelegationRequest>;
3326
+
3327
+ export interface DeletePrefixDelegationResponse {
3328
+ /** Identifier of a Delegation. */
3329
+ id?: string | null;
3330
+ }
3331
+
3332
+ export const DeletePrefixDelegationResponse =
3333
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3334
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3335
+ }).pipe(
3336
+ T.ResponsePath("result"),
3337
+ ) as unknown as Schema.Schema<DeletePrefixDelegationResponse>;
3338
+
3339
+ export type DeletePrefixDelegationError =
3340
+ | DefaultErrors
3341
+ | DelegationNotFound
3342
+ | InvalidAccountId;
3343
+
3344
+ export const deletePrefixDelegation: API.OperationMethod<
3345
+ DeletePrefixDelegationRequest,
3346
+ DeletePrefixDelegationResponse,
3347
+ DeletePrefixDelegationError,
3348
+ Credentials | HttpClient.HttpClient
3349
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3350
+ input: DeletePrefixDelegationRequest,
3351
+ output: DeletePrefixDelegationResponse,
3352
+ errors: [DelegationNotFound, InvalidAccountId],
3353
+ }));
3354
+
3355
+ // =============================================================================
3356
+ // PrefixServiceBinding
3357
+ // =============================================================================
3358
+
3359
+ export interface GetPrefixServiceBindingRequest {
3360
+ prefixId: string;
3361
+ bindingId: string;
3362
+ /** Identifier of a Cloudflare account. */
3363
+ accountId: string;
3364
+ }
3365
+
3366
+ export const GetPrefixServiceBindingRequest =
3367
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3368
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
3369
+ bindingId: Schema.String.pipe(T.HttpPath("bindingId")),
3370
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3371
+ }).pipe(
3372
+ T.Http({
3373
+ method: "GET",
3374
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bindings/{bindingId}",
3375
+ }),
3376
+ ) as unknown as Schema.Schema<GetPrefixServiceBindingRequest>;
3377
+
3378
+ export interface GetPrefixServiceBindingResponse {
3379
+ /** Identifier of a Service Binding. */
3380
+ id?: string | null;
3381
+ /** IP Prefix in Classless Inter-Domain Routing format. */
3382
+ cidr?: string | null;
3383
+ /** Status of a Service Binding's deployment to the Cloudflare network */
3384
+ provisioning?: { state?: "provisioning" | "active" | null } | null;
3385
+ /** Identifier of a Service on the Cloudflare network. Available services and their IDs may be found in the List Services endpoint. */
3386
+ serviceId?: string | null;
3387
+ /** Name of a service running on the Cloudflare network */
3388
+ serviceName?: string | null;
3389
+ }
3390
+
3391
+ export const GetPrefixServiceBindingResponse =
3392
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3393
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3394
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3395
+ provisioning: Schema.optional(
3396
+ Schema.Union([
3397
+ Schema.Struct({
3398
+ state: Schema.optional(
3399
+ Schema.Union([
3400
+ Schema.Literals(["provisioning", "active"]),
3401
+ Schema.Null,
3402
+ ]),
3403
+ ),
3404
+ }),
3405
+ Schema.Null,
3406
+ ]),
3407
+ ),
3408
+ serviceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3409
+ serviceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3410
+ })
3411
+ .pipe(
3412
+ Schema.encodeKeys({
3413
+ id: "id",
3414
+ cidr: "cidr",
3415
+ provisioning: "provisioning",
3416
+ serviceId: "service_id",
3417
+ serviceName: "service_name",
3418
+ }),
3419
+ )
3420
+ .pipe(
3421
+ T.ResponsePath("result"),
3422
+ ) as unknown as Schema.Schema<GetPrefixServiceBindingResponse>;
3423
+
3424
+ export type GetPrefixServiceBindingError =
3425
+ | DefaultErrors
3426
+ | BindingNotFound
3427
+ | InvalidAccountId
3428
+ | PrefixNotFound;
3429
+
3430
+ export const getPrefixServiceBinding: API.OperationMethod<
3431
+ GetPrefixServiceBindingRequest,
3432
+ GetPrefixServiceBindingResponse,
3433
+ GetPrefixServiceBindingError,
3434
+ Credentials | HttpClient.HttpClient
3435
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3436
+ input: GetPrefixServiceBindingRequest,
3437
+ output: GetPrefixServiceBindingResponse,
3438
+ errors: [BindingNotFound, InvalidAccountId, PrefixNotFound],
3439
+ }));
3440
+
3441
+ export interface ListPrefixServiceBindingsRequest {
3442
+ prefixId: string;
3443
+ /** Identifier of a Cloudflare account. */
3444
+ accountId: string;
3445
+ }
3446
+
3447
+ export const ListPrefixServiceBindingsRequest =
3448
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3449
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
3450
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3451
+ }).pipe(
3452
+ T.Http({
3453
+ method: "GET",
3454
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bindings",
3455
+ }),
3456
+ ) as unknown as Schema.Schema<ListPrefixServiceBindingsRequest>;
3457
+
3458
+ export interface ListPrefixServiceBindingsResponse {
3459
+ result: {
3460
+ id?: string | null;
3461
+ cidr?: string | null;
3462
+ provisioning?: { state?: "provisioning" | "active" | null } | null;
3463
+ serviceId?: string | null;
3464
+ serviceName?: string | null;
3465
+ }[];
3466
+ }
3467
+
3468
+ export const ListPrefixServiceBindingsResponse =
3469
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3470
+ result: Schema.Array(
3471
+ Schema.Struct({
3472
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3473
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3474
+ provisioning: Schema.optional(
3475
+ Schema.Union([
3476
+ Schema.Struct({
3477
+ state: Schema.optional(
3478
+ Schema.Union([
3479
+ Schema.Literals(["provisioning", "active"]),
3480
+ Schema.Null,
3481
+ ]),
3482
+ ),
3483
+ }),
3484
+ Schema.Null,
3485
+ ]),
3486
+ ),
3487
+ serviceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3488
+ serviceName: Schema.optional(
3489
+ Schema.Union([Schema.String, Schema.Null]),
3490
+ ),
3491
+ }).pipe(
3492
+ Schema.encodeKeys({
3493
+ id: "id",
3494
+ cidr: "cidr",
3495
+ provisioning: "provisioning",
3496
+ serviceId: "service_id",
3497
+ serviceName: "service_name",
3498
+ }),
3499
+ ),
3500
+ ),
3501
+ }) as unknown as Schema.Schema<ListPrefixServiceBindingsResponse>;
3502
+
3503
+ export type ListPrefixServiceBindingsError = DefaultErrors;
3504
+
3505
+ export const listPrefixServiceBindings: API.PaginatedOperationMethod<
3506
+ ListPrefixServiceBindingsRequest,
3507
+ ListPrefixServiceBindingsResponse,
3508
+ ListPrefixServiceBindingsError,
3509
+ Credentials | HttpClient.HttpClient
3510
+ > & {
3511
+ pages: (
3512
+ input: ListPrefixServiceBindingsRequest,
3513
+ ) => stream.Stream<
3514
+ ListPrefixServiceBindingsResponse,
3515
+ ListPrefixServiceBindingsError,
3516
+ Credentials | HttpClient.HttpClient
3517
+ >;
3518
+ items: (input: ListPrefixServiceBindingsRequest) => stream.Stream<
3519
+ {
3520
+ id?: string | null;
3521
+ cidr?: string | null;
3522
+ provisioning?: { state?: "provisioning" | "active" | null } | null;
3523
+ serviceId?: string | null;
3524
+ serviceName?: string | null;
3525
+ },
3526
+ ListPrefixServiceBindingsError,
3527
+ Credentials | HttpClient.HttpClient
3528
+ >;
3529
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3530
+ input: ListPrefixServiceBindingsRequest,
3531
+ output: ListPrefixServiceBindingsResponse,
3532
+ errors: [],
3533
+ pagination: {
3534
+ mode: "single",
3535
+ items: "result",
3536
+ } as const,
3537
+ }));
3538
+
3539
+ export interface CreatePrefixServiceBindingRequest {
3540
+ prefixId: string;
3541
+ /** Path param: Identifier of a Cloudflare account. */
3542
+ accountId: string;
3543
+ /** Body param: IP Prefix in Classless Inter-Domain Routing format. */
3544
+ cidr: string;
3545
+ /** Body param: Identifier of a Service on the Cloudflare network. Available services and their IDs may be found in the List Services endpoint. */
3546
+ serviceId: string;
3547
+ }
3548
+
3549
+ export const CreatePrefixServiceBindingRequest =
3550
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3551
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
3552
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3553
+ cidr: Schema.String,
3554
+ serviceId: Schema.String,
3555
+ }).pipe(
3556
+ Schema.encodeKeys({ cidr: "cidr", serviceId: "service_id" }),
3557
+ T.Http({
3558
+ method: "POST",
3559
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bindings",
3560
+ }),
3561
+ ) as unknown as Schema.Schema<CreatePrefixServiceBindingRequest>;
3562
+
3563
+ export interface CreatePrefixServiceBindingResponse {
3564
+ /** Identifier of a Service Binding. */
3565
+ id?: string | null;
3566
+ /** IP Prefix in Classless Inter-Domain Routing format. */
3567
+ cidr?: string | null;
3568
+ /** Status of a Service Binding's deployment to the Cloudflare network */
3569
+ provisioning?: { state?: "provisioning" | "active" | null } | null;
3570
+ /** Identifier of a Service on the Cloudflare network. Available services and their IDs may be found in the List Services endpoint. */
3571
+ serviceId?: string | null;
3572
+ /** Name of a service running on the Cloudflare network */
3573
+ serviceName?: string | null;
3574
+ }
3575
+
3576
+ export const CreatePrefixServiceBindingResponse =
3577
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3578
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3579
+ cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3580
+ provisioning: Schema.optional(
3581
+ Schema.Union([
3582
+ Schema.Struct({
3583
+ state: Schema.optional(
3584
+ Schema.Union([
3585
+ Schema.Literals(["provisioning", "active"]),
3586
+ Schema.Null,
3587
+ ]),
3588
+ ),
3589
+ }),
3590
+ Schema.Null,
3591
+ ]),
3592
+ ),
3593
+ serviceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3594
+ serviceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3595
+ })
3596
+ .pipe(
3597
+ Schema.encodeKeys({
3598
+ id: "id",
3599
+ cidr: "cidr",
3600
+ provisioning: "provisioning",
3601
+ serviceId: "service_id",
3602
+ serviceName: "service_name",
3603
+ }),
3604
+ )
3605
+ .pipe(
3606
+ T.ResponsePath("result"),
3607
+ ) as unknown as Schema.Schema<CreatePrefixServiceBindingResponse>;
3608
+
3609
+ export type CreatePrefixServiceBindingError =
3610
+ | DefaultErrors
3611
+ | UnsupportedBindingConfiguration
3612
+ | InvalidAccountId;
3613
+
3614
+ export const createPrefixServiceBinding: API.OperationMethod<
3615
+ CreatePrefixServiceBindingRequest,
3616
+ CreatePrefixServiceBindingResponse,
3617
+ CreatePrefixServiceBindingError,
3618
+ Credentials | HttpClient.HttpClient
3619
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3620
+ input: CreatePrefixServiceBindingRequest,
3621
+ output: CreatePrefixServiceBindingResponse,
3622
+ errors: [UnsupportedBindingConfiguration, InvalidAccountId],
3623
+ }));
3624
+
3625
+ export interface DeletePrefixServiceBindingRequest {
3626
+ prefixId: string;
3627
+ bindingId: string;
3628
+ /** Identifier of a Cloudflare account. */
3629
+ accountId: string;
3630
+ }
3631
+
3632
+ export const DeletePrefixServiceBindingRequest =
3633
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3634
+ prefixId: Schema.String.pipe(T.HttpPath("prefixId")),
3635
+ bindingId: Schema.String.pipe(T.HttpPath("bindingId")),
3636
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3637
+ }).pipe(
3638
+ T.Http({
3639
+ method: "DELETE",
3640
+ path: "/accounts/{account_id}/addressing/prefixes/{prefixId}/bindings/{bindingId}",
3641
+ }),
3642
+ ) as unknown as Schema.Schema<DeletePrefixServiceBindingRequest>;
3643
+
3644
+ export interface DeletePrefixServiceBindingResponse {
3645
+ errors: {
3646
+ code: number;
3647
+ message: string;
3648
+ documentationUrl?: string | null;
3649
+ source?: { pointer?: string | null } | null;
3650
+ }[];
3651
+ messages: {
3652
+ code: number;
3653
+ message: string;
3654
+ documentationUrl?: string | null;
3655
+ source?: { pointer?: string | null } | null;
3656
+ }[];
3657
+ /** Whether the API call was successful. */
3658
+ success: true;
3659
+ }
3660
+
3661
+ export const DeletePrefixServiceBindingResponse =
3662
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3663
+ errors: Schema.Array(
3664
+ Schema.Struct({
3665
+ code: Schema.Number,
3666
+ message: Schema.String,
3667
+ documentationUrl: Schema.optional(
3668
+ Schema.Union([Schema.String, Schema.Null]),
3669
+ ),
3670
+ source: Schema.optional(
3671
+ Schema.Union([
3672
+ Schema.Struct({
3673
+ pointer: Schema.optional(
3674
+ Schema.Union([Schema.String, Schema.Null]),
3675
+ ),
3676
+ }),
3677
+ Schema.Null,
3678
+ ]),
3679
+ ),
3680
+ }).pipe(
3681
+ Schema.encodeKeys({
3682
+ code: "code",
3683
+ message: "message",
3684
+ documentationUrl: "documentation_url",
3685
+ source: "source",
3686
+ }),
3687
+ ),
3688
+ ),
3689
+ messages: Schema.Array(
3690
+ Schema.Struct({
3691
+ code: Schema.Number,
3692
+ message: Schema.String,
3693
+ documentationUrl: Schema.optional(
3694
+ Schema.Union([Schema.String, Schema.Null]),
3695
+ ),
3696
+ source: Schema.optional(
3697
+ Schema.Union([
3698
+ Schema.Struct({
3699
+ pointer: Schema.optional(
3700
+ Schema.Union([Schema.String, Schema.Null]),
3701
+ ),
3702
+ }),
3703
+ Schema.Null,
3704
+ ]),
3705
+ ),
3706
+ }).pipe(
3707
+ Schema.encodeKeys({
3708
+ code: "code",
3709
+ message: "message",
3710
+ documentationUrl: "documentation_url",
3711
+ source: "source",
3712
+ }),
3713
+ ),
3714
+ ),
3715
+ success: Schema.Literal(true),
3716
+ }) as unknown as Schema.Schema<DeletePrefixServiceBindingResponse>;
3717
+
3718
+ export type DeletePrefixServiceBindingError =
3719
+ | DefaultErrors
3720
+ | BindingNotFound
3721
+ | InvalidAccountId
3722
+ | PrefixNotFound;
3723
+
3724
+ export const deletePrefixServiceBinding: API.OperationMethod<
3725
+ DeletePrefixServiceBindingRequest,
3726
+ DeletePrefixServiceBindingResponse,
3727
+ DeletePrefixServiceBindingError,
3728
+ Credentials | HttpClient.HttpClient
3729
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3730
+ input: DeletePrefixServiceBindingRequest,
3731
+ output: DeletePrefixServiceBindingResponse,
3732
+ errors: [BindingNotFound, InvalidAccountId, PrefixNotFound],
3733
+ }));
3734
+
3735
+ // =============================================================================
3736
+ // RegionalHostname
3737
+ // =============================================================================
3738
+
3739
+ export interface GetRegionalHostnameRequest {
3740
+ hostname: string;
3741
+ /** Identifier. */
3742
+ zoneId: string;
3743
+ }
3744
+
3745
+ export const GetRegionalHostnameRequest =
3746
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3747
+ hostname: Schema.String.pipe(T.HttpPath("hostname")),
3748
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
3749
+ }).pipe(
3750
+ T.Http({
3751
+ method: "GET",
3752
+ path: "/zones/{zone_id}/addressing/regional_hostnames/{hostname}",
3753
+ }),
3754
+ ) as unknown as Schema.Schema<GetRegionalHostnameRequest>;
3755
+
3756
+ export interface GetRegionalHostnameResponse {
3757
+ /** When the regional hostname was created */
3758
+ createdOn: string;
3759
+ /** DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g ` .example.com` */
3760
+ hostname: string;
3761
+ /** Identifying key for the region */
3762
+ regionKey: string;
3763
+ /** Configure which routing method to use for the regional hostname */
3764
+ routing?: string | null;
3765
+ }
3766
+
3767
+ export const GetRegionalHostnameResponse =
3768
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3769
+ createdOn: Schema.String,
3770
+ hostname: Schema.String,
3771
+ regionKey: Schema.String,
3772
+ routing: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3773
+ })
3774
+ .pipe(
3775
+ Schema.encodeKeys({
3776
+ createdOn: "created_on",
3777
+ hostname: "hostname",
3778
+ regionKey: "region_key",
3779
+ routing: "routing",
3780
+ }),
3781
+ )
3782
+ .pipe(
3783
+ T.ResponsePath("result"),
3784
+ ) as unknown as Schema.Schema<GetRegionalHostnameResponse>;
3785
+
3786
+ export type GetRegionalHostnameError =
3787
+ | DefaultErrors
3788
+ | InvalidZoneId
3789
+ | RegionalHostnameNotFound
3790
+ | RegionalHostnameEmpty;
3791
+
3792
+ export const getRegionalHostname: API.OperationMethod<
3793
+ GetRegionalHostnameRequest,
3794
+ GetRegionalHostnameResponse,
3795
+ GetRegionalHostnameError,
3796
+ Credentials | HttpClient.HttpClient
3797
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3798
+ input: GetRegionalHostnameRequest,
3799
+ output: GetRegionalHostnameResponse,
3800
+ errors: [InvalidZoneId, RegionalHostnameNotFound, RegionalHostnameEmpty],
3801
+ }));
3802
+
3803
+ export interface ListRegionalHostnamesRequest {
3804
+ /** Identifier. */
3805
+ zoneId: string;
3806
+ }
3807
+
3808
+ export const ListRegionalHostnamesRequest =
3809
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3810
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
3811
+ }).pipe(
3812
+ T.Http({
3813
+ method: "GET",
3814
+ path: "/zones/{zone_id}/addressing/regional_hostnames",
3815
+ }),
3816
+ ) as unknown as Schema.Schema<ListRegionalHostnamesRequest>;
3817
+
3818
+ export interface ListRegionalHostnamesResponse {
3819
+ result: {
3820
+ createdOn: string;
3821
+ hostname: string;
3822
+ regionKey: string;
3823
+ routing?: string | null;
3824
+ }[];
3825
+ }
3826
+
3827
+ export const ListRegionalHostnamesResponse =
3828
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3829
+ result: Schema.Array(
3830
+ Schema.Struct({
3831
+ createdOn: Schema.String,
3832
+ hostname: Schema.String,
3833
+ regionKey: Schema.String,
3834
+ routing: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3835
+ }).pipe(
3836
+ Schema.encodeKeys({
3837
+ createdOn: "created_on",
3838
+ hostname: "hostname",
3839
+ regionKey: "region_key",
3840
+ routing: "routing",
3841
+ }),
3842
+ ),
3843
+ ),
3844
+ }) as unknown as Schema.Schema<ListRegionalHostnamesResponse>;
3845
+
3846
+ export type ListRegionalHostnamesError = DefaultErrors;
3847
+
3848
+ export const listRegionalHostnames: API.PaginatedOperationMethod<
3849
+ ListRegionalHostnamesRequest,
3850
+ ListRegionalHostnamesResponse,
3851
+ ListRegionalHostnamesError,
3852
+ Credentials | HttpClient.HttpClient
3853
+ > & {
3854
+ pages: (
3855
+ input: ListRegionalHostnamesRequest,
3856
+ ) => stream.Stream<
3857
+ ListRegionalHostnamesResponse,
3858
+ ListRegionalHostnamesError,
3859
+ Credentials | HttpClient.HttpClient
3860
+ >;
3861
+ items: (input: ListRegionalHostnamesRequest) => stream.Stream<
3862
+ {
3863
+ createdOn: string;
3864
+ hostname: string;
3865
+ regionKey: string;
3866
+ routing?: string | null;
3867
+ },
3868
+ ListRegionalHostnamesError,
3869
+ Credentials | HttpClient.HttpClient
3870
+ >;
3871
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3872
+ input: ListRegionalHostnamesRequest,
3873
+ output: ListRegionalHostnamesResponse,
3874
+ errors: [],
3875
+ pagination: {
3876
+ mode: "single",
3877
+ items: "result",
3878
+ } as const,
3879
+ }));
3880
+
3881
+ export interface CreateRegionalHostnameRequest {
3882
+ /** Path param: Identifier. */
3883
+ zoneId: string;
3884
+ /** Body param: DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g ` .example.com` */
3885
+ hostname: string;
3886
+ /** Body param: Identifying key for the region */
3887
+ regionKey: string;
3888
+ /** Body param: Configure which routing method to use for the regional hostname */
3889
+ routing?: string;
3890
+ }
3891
+
3892
+ export const CreateRegionalHostnameRequest =
3893
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3894
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
3895
+ hostname: Schema.String,
3896
+ regionKey: Schema.String,
3897
+ routing: Schema.optional(Schema.String),
3898
+ }).pipe(
3899
+ Schema.encodeKeys({
3900
+ hostname: "hostname",
3901
+ regionKey: "region_key",
3902
+ routing: "routing",
3903
+ }),
3904
+ T.Http({
3905
+ method: "POST",
3906
+ path: "/zones/{zone_id}/addressing/regional_hostnames",
3907
+ }),
3908
+ ) as unknown as Schema.Schema<CreateRegionalHostnameRequest>;
3909
+
3910
+ export interface CreateRegionalHostnameResponse {
3911
+ /** When the regional hostname was created */
3912
+ createdOn: string;
3913
+ /** DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g ` .example.com` */
3914
+ hostname: string;
3915
+ /** Identifying key for the region */
3916
+ regionKey: string;
3917
+ /** Configure which routing method to use for the regional hostname */
3918
+ routing?: string | null;
3919
+ }
3920
+
3921
+ export const CreateRegionalHostnameResponse =
3922
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3923
+ createdOn: Schema.String,
3924
+ hostname: Schema.String,
3925
+ regionKey: Schema.String,
3926
+ routing: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3927
+ })
3928
+ .pipe(
3929
+ Schema.encodeKeys({
3930
+ createdOn: "created_on",
3931
+ hostname: "hostname",
3932
+ regionKey: "region_key",
3933
+ routing: "routing",
3934
+ }),
3935
+ )
3936
+ .pipe(
3937
+ T.ResponsePath("result"),
3938
+ ) as unknown as Schema.Schema<CreateRegionalHostnameResponse>;
3939
+
3940
+ export type CreateRegionalHostnameError =
3941
+ | DefaultErrors
3942
+ | InvalidZoneId
3943
+ | InvalidHostname
3944
+ | RegionalHostnameEmpty;
3945
+
3946
+ export const createRegionalHostname: API.OperationMethod<
3947
+ CreateRegionalHostnameRequest,
3948
+ CreateRegionalHostnameResponse,
3949
+ CreateRegionalHostnameError,
3950
+ Credentials | HttpClient.HttpClient
3951
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3952
+ input: CreateRegionalHostnameRequest,
3953
+ output: CreateRegionalHostnameResponse,
3954
+ errors: [InvalidZoneId, InvalidHostname, RegionalHostnameEmpty],
3955
+ }));
3956
+
3957
+ export interface PatchRegionalHostnameRequest {
3958
+ hostname: string;
3959
+ /** Path param: Identifier. */
3960
+ zoneId: string;
3961
+ /** Body param: Identifying key for the region */
3962
+ regionKey: string;
3963
+ }
3964
+
3965
+ export const PatchRegionalHostnameRequest =
3966
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3967
+ hostname: Schema.String.pipe(T.HttpPath("hostname")),
3968
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
3969
+ regionKey: Schema.String,
3970
+ }).pipe(
3971
+ Schema.encodeKeys({ regionKey: "region_key" }),
3972
+ T.Http({
3973
+ method: "PATCH",
3974
+ path: "/zones/{zone_id}/addressing/regional_hostnames/{hostname}",
3975
+ }),
3976
+ ) as unknown as Schema.Schema<PatchRegionalHostnameRequest>;
3977
+
3978
+ export interface PatchRegionalHostnameResponse {
3979
+ /** When the regional hostname was created */
3980
+ createdOn: string;
3981
+ /** DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g ` .example.com` */
3982
+ hostname: string;
3983
+ /** Identifying key for the region */
3984
+ regionKey: string;
3985
+ /** Configure which routing method to use for the regional hostname */
3986
+ routing?: string | null;
3987
+ }
3988
+
3989
+ export const PatchRegionalHostnameResponse =
3990
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3991
+ createdOn: Schema.String,
3992
+ hostname: Schema.String,
3993
+ regionKey: Schema.String,
3994
+ routing: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3995
+ })
3996
+ .pipe(
3997
+ Schema.encodeKeys({
3998
+ createdOn: "created_on",
3999
+ hostname: "hostname",
4000
+ regionKey: "region_key",
4001
+ routing: "routing",
4002
+ }),
4003
+ )
4004
+ .pipe(
4005
+ T.ResponsePath("result"),
4006
+ ) as unknown as Schema.Schema<PatchRegionalHostnameResponse>;
4007
+
4008
+ export type PatchRegionalHostnameError =
4009
+ | DefaultErrors
4010
+ | InvalidZoneId
4011
+ | RegionalHostnameNotFound
4012
+ | RegionalHostnameEmpty;
4013
+
4014
+ export const patchRegionalHostname: API.OperationMethod<
4015
+ PatchRegionalHostnameRequest,
4016
+ PatchRegionalHostnameResponse,
4017
+ PatchRegionalHostnameError,
4018
+ Credentials | HttpClient.HttpClient
4019
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4020
+ input: PatchRegionalHostnameRequest,
4021
+ output: PatchRegionalHostnameResponse,
4022
+ errors: [InvalidZoneId, RegionalHostnameNotFound, RegionalHostnameEmpty],
4023
+ }));
4024
+
4025
+ export interface DeleteRegionalHostnameRequest {
4026
+ hostname: string;
4027
+ /** Identifier. */
4028
+ zoneId: string;
4029
+ }
4030
+
4031
+ export const DeleteRegionalHostnameRequest =
4032
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4033
+ hostname: Schema.String.pipe(T.HttpPath("hostname")),
4034
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
4035
+ }).pipe(
4036
+ T.Http({
4037
+ method: "DELETE",
4038
+ path: "/zones/{zone_id}/addressing/regional_hostnames/{hostname}",
4039
+ }),
4040
+ ) as unknown as Schema.Schema<DeleteRegionalHostnameRequest>;
4041
+
4042
+ export interface DeleteRegionalHostnameResponse {
4043
+ errors: {
4044
+ code: number;
4045
+ message: string;
4046
+ documentationUrl?: string | null;
4047
+ source?: { pointer?: string | null } | null;
4048
+ }[];
4049
+ messages: {
4050
+ code: number;
4051
+ message: string;
4052
+ documentationUrl?: string | null;
4053
+ source?: { pointer?: string | null } | null;
4054
+ }[];
4055
+ /** Whether the API call was successful. */
4056
+ success: true;
4057
+ }
4058
+
4059
+ export const DeleteRegionalHostnameResponse =
4060
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4061
+ errors: Schema.Array(
4062
+ Schema.Struct({
4063
+ code: Schema.Number,
4064
+ message: Schema.String,
4065
+ documentationUrl: Schema.optional(
4066
+ Schema.Union([Schema.String, Schema.Null]),
4067
+ ),
4068
+ source: Schema.optional(
4069
+ Schema.Union([
4070
+ Schema.Struct({
4071
+ pointer: Schema.optional(
4072
+ Schema.Union([Schema.String, Schema.Null]),
4073
+ ),
4074
+ }),
4075
+ Schema.Null,
4076
+ ]),
4077
+ ),
4078
+ }).pipe(
4079
+ Schema.encodeKeys({
4080
+ code: "code",
4081
+ message: "message",
4082
+ documentationUrl: "documentation_url",
4083
+ source: "source",
4084
+ }),
4085
+ ),
4086
+ ),
4087
+ messages: Schema.Array(
4088
+ Schema.Struct({
4089
+ code: Schema.Number,
4090
+ message: Schema.String,
4091
+ documentationUrl: Schema.optional(
4092
+ Schema.Union([Schema.String, Schema.Null]),
4093
+ ),
4094
+ source: Schema.optional(
4095
+ Schema.Union([
4096
+ Schema.Struct({
4097
+ pointer: Schema.optional(
4098
+ Schema.Union([Schema.String, Schema.Null]),
4099
+ ),
4100
+ }),
4101
+ Schema.Null,
4102
+ ]),
4103
+ ),
4104
+ }).pipe(
4105
+ Schema.encodeKeys({
4106
+ code: "code",
4107
+ message: "message",
4108
+ documentationUrl: "documentation_url",
4109
+ source: "source",
4110
+ }),
4111
+ ),
4112
+ ),
4113
+ success: Schema.Literal(true),
4114
+ }) as unknown as Schema.Schema<DeleteRegionalHostnameResponse>;
4115
+
4116
+ export type DeleteRegionalHostnameError =
4117
+ | DefaultErrors
4118
+ | MethodNotAllowed
4119
+ | InvalidZoneId
4120
+ | RegionalHostnameNotFound
4121
+ | RegionalHostnameEmpty;
4122
+
4123
+ export const deleteRegionalHostname: API.OperationMethod<
4124
+ DeleteRegionalHostnameRequest,
4125
+ DeleteRegionalHostnameResponse,
4126
+ DeleteRegionalHostnameError,
4127
+ Credentials | HttpClient.HttpClient
4128
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4129
+ input: DeleteRegionalHostnameRequest,
4130
+ output: DeleteRegionalHostnameResponse,
4131
+ errors: [
4132
+ MethodNotAllowed,
4133
+ InvalidZoneId,
4134
+ RegionalHostnameNotFound,
4135
+ RegionalHostnameEmpty,
4136
+ ],
4137
+ }));
4138
+
4139
+ // =============================================================================
4140
+ // RegionalHostnameRegion
4141
+ // =============================================================================
4142
+
4143
+ export interface ListRegionalHostnameRegionsRequest {
4144
+ /** Identifier. */
4145
+ accountId: string;
4146
+ }
4147
+
4148
+ export const ListRegionalHostnameRegionsRequest =
4149
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4150
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
4151
+ }).pipe(
4152
+ T.Http({
4153
+ method: "GET",
4154
+ path: "/accounts/{account_id}/addressing/regional_hostnames/regions",
4155
+ }),
4156
+ ) as unknown as Schema.Schema<ListRegionalHostnameRegionsRequest>;
4157
+
4158
+ export interface ListRegionalHostnameRegionsResponse {
4159
+ result: { key?: string | null; label?: string | null }[];
4160
+ }
4161
+
4162
+ export const ListRegionalHostnameRegionsResponse =
4163
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4164
+ result: Schema.Array(
4165
+ Schema.Struct({
4166
+ key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4167
+ label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4168
+ }),
4169
+ ),
4170
+ }) as unknown as Schema.Schema<ListRegionalHostnameRegionsResponse>;
4171
+
4172
+ export type ListRegionalHostnameRegionsError = DefaultErrors;
4173
+
4174
+ export const listRegionalHostnameRegions: API.PaginatedOperationMethod<
4175
+ ListRegionalHostnameRegionsRequest,
4176
+ ListRegionalHostnameRegionsResponse,
4177
+ ListRegionalHostnameRegionsError,
4178
+ Credentials | HttpClient.HttpClient
4179
+ > & {
4180
+ pages: (
4181
+ input: ListRegionalHostnameRegionsRequest,
4182
+ ) => stream.Stream<
4183
+ ListRegionalHostnameRegionsResponse,
4184
+ ListRegionalHostnameRegionsError,
4185
+ Credentials | HttpClient.HttpClient
4186
+ >;
4187
+ items: (
4188
+ input: ListRegionalHostnameRegionsRequest,
4189
+ ) => stream.Stream<
4190
+ { key?: string | null; label?: string | null },
4191
+ ListRegionalHostnameRegionsError,
4192
+ Credentials | HttpClient.HttpClient
4193
+ >;
4194
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4195
+ input: ListRegionalHostnameRegionsRequest,
4196
+ output: ListRegionalHostnameRegionsResponse,
4197
+ errors: [],
4198
+ pagination: {
4199
+ mode: "single",
4200
+ items: "result",
4201
+ } as const,
4202
+ }));
4203
+
4204
+ // =============================================================================
4205
+ // Service
4206
+ // =============================================================================
4207
+
4208
+ export interface ListServicesRequest {
4209
+ /** Identifier of a Cloudflare account. */
4210
+ accountId: string;
4211
+ }
4212
+
4213
+ export const ListServicesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4214
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
4215
+ }).pipe(
4216
+ T.Http({ method: "GET", path: "/accounts/{account_id}/addressing/services" }),
4217
+ ) as unknown as Schema.Schema<ListServicesRequest>;
4218
+
4219
+ export interface ListServicesResponse {
4220
+ result: { id?: string | null; name?: string | null }[];
4221
+ }
4222
+
4223
+ export const ListServicesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4224
+ result: Schema.Array(
4225
+ Schema.Struct({
4226
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4227
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4228
+ }),
4229
+ ),
4230
+ }) as unknown as Schema.Schema<ListServicesResponse>;
4231
+
4232
+ export type ListServicesError = DefaultErrors;
4233
+
4234
+ export const listServices: API.PaginatedOperationMethod<
4235
+ ListServicesRequest,
4236
+ ListServicesResponse,
4237
+ ListServicesError,
4238
+ Credentials | HttpClient.HttpClient
4239
+ > & {
4240
+ pages: (
4241
+ input: ListServicesRequest,
4242
+ ) => stream.Stream<
4243
+ ListServicesResponse,
4244
+ ListServicesError,
4245
+ Credentials | HttpClient.HttpClient
4246
+ >;
4247
+ items: (
4248
+ input: ListServicesRequest,
4249
+ ) => stream.Stream<
4250
+ { id?: string | null; name?: string | null },
4251
+ ListServicesError,
4252
+ Credentials | HttpClient.HttpClient
4253
+ >;
4254
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4255
+ input: ListServicesRequest,
4256
+ output: ListServicesResponse,
4257
+ errors: [],
4258
+ pagination: {
4259
+ mode: "single",
4260
+ items: "result",
4261
+ } as const,
4262
+ }));