@distilled.cloud/cloudflare 0.0.0 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/README.md +41 -7
  2. package/lib/auth.d.ts +13 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +12 -0
  5. package/lib/auth.js.map +1 -0
  6. package/lib/category.d.ts +2 -0
  7. package/lib/category.d.ts.map +1 -0
  8. package/lib/category.js +2 -0
  9. package/lib/category.js.map +1 -0
  10. package/lib/client/api.d.ts +14 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +245 -0
  13. package/lib/client/api.js.map +1 -0
  14. package/lib/client/index.d.ts +8 -0
  15. package/lib/client/index.d.ts.map +1 -0
  16. package/lib/client/index.js +8 -0
  17. package/lib/client/index.js.map +1 -0
  18. package/lib/credentials.d.ts +14 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +17 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +37 -0
  23. package/lib/errors.d.ts.map +1 -0
  24. package/lib/errors.js +31 -0
  25. package/lib/errors.js.map +1 -0
  26. package/lib/index.d.ts +10 -0
  27. package/lib/index.d.ts.map +1 -0
  28. package/lib/index.js +10 -0
  29. package/lib/index.js.map +1 -0
  30. package/lib/retry.d.ts +14 -0
  31. package/lib/retry.d.ts.map +1 -0
  32. package/lib/retry.js +14 -0
  33. package/lib/retry.js.map +1 -0
  34. package/lib/schemas.d.ts +29 -0
  35. package/lib/schemas.d.ts.map +1 -0
  36. package/lib/schemas.js +34 -0
  37. package/lib/schemas.js.map +1 -0
  38. package/lib/services/abuse-reports.d.ts +224 -0
  39. package/lib/services/abuse-reports.d.ts.map +1 -0
  40. package/lib/services/abuse-reports.js +353 -0
  41. package/lib/services/abuse-reports.js.map +1 -0
  42. package/lib/services/accounts.d.ts +682 -0
  43. package/lib/services/accounts.d.ts.map +1 -0
  44. package/lib/services/accounts.js +805 -0
  45. package/lib/services/accounts.js.map +1 -0
  46. package/lib/services/acm.d.ts +73 -0
  47. package/lib/services/acm.d.ts.map +1 -0
  48. package/lib/services/acm.js +76 -0
  49. package/lib/services/acm.js.map +1 -0
  50. package/lib/services/addressing.d.ts +1208 -0
  51. package/lib/services/addressing.d.ts.map +1 -0
  52. package/lib/services/addressing.js +1776 -0
  53. package/lib/services/addressing.js.map +1 -0
  54. package/lib/services/ai-gateway.d.ts +956 -0
  55. package/lib/services/ai-gateway.d.ts.map +1 -0
  56. package/lib/services/ai-gateway.js +1706 -0
  57. package/lib/services/ai-gateway.js.map +1 -0
  58. package/lib/services/ai.d.ts +243 -0
  59. package/lib/services/ai.d.ts.map +1 -0
  60. package/lib/services/ai.js +299 -0
  61. package/lib/services/ai.js.map +1 -0
  62. package/lib/services/aisearch.d.ts +915 -0
  63. package/lib/services/aisearch.d.ts.map +1 -0
  64. package/lib/services/aisearch.js +2425 -0
  65. package/lib/services/aisearch.js.map +1 -0
  66. package/lib/services/alerting.d.ts +718 -0
  67. package/lib/services/alerting.d.ts.map +1 -0
  68. package/lib/services/alerting.js +1388 -0
  69. package/lib/services/alerting.js.map +1 -0
  70. package/lib/services/api-gateway.d.ts +830 -0
  71. package/lib/services/api-gateway.d.ts.map +1 -0
  72. package/lib/services/api-gateway.js +1548 -0
  73. package/lib/services/api-gateway.js.map +1 -0
  74. package/lib/services/argo.d.ts +101 -0
  75. package/lib/services/argo.d.ts.map +1 -0
  76. package/lib/services/argo.js +105 -0
  77. package/lib/services/argo.js.map +1 -0
  78. package/lib/services/audit-logs.d.ts +46 -0
  79. package/lib/services/audit-logs.d.ts.map +1 -0
  80. package/lib/services/audit-logs.js +37 -0
  81. package/lib/services/audit-logs.js.map +1 -0
  82. package/lib/services/billing.d.ts +62 -0
  83. package/lib/services/billing.d.ts.map +1 -0
  84. package/lib/services/billing.js +100 -0
  85. package/lib/services/billing.js.map +1 -0
  86. package/lib/services/bot-management.d.ts +124 -0
  87. package/lib/services/bot-management.d.ts.map +1 -0
  88. package/lib/services/bot-management.js +262 -0
  89. package/lib/services/bot-management.js.map +1 -0
  90. package/lib/services/botnet-feed.d.ts +65 -0
  91. package/lib/services/botnet-feed.d.ts.map +1 -0
  92. package/lib/services/botnet-feed.js +84 -0
  93. package/lib/services/botnet-feed.js.map +1 -0
  94. package/lib/services/brand-protection.d.ts +188 -0
  95. package/lib/services/brand-protection.d.ts.map +1 -0
  96. package/lib/services/brand-protection.js +214 -0
  97. package/lib/services/brand-protection.js.map +1 -0
  98. package/lib/services/browser-rendering.d.ts +857 -0
  99. package/lib/services/browser-rendering.d.ts.map +1 -0
  100. package/lib/services/browser-rendering.js +1141 -0
  101. package/lib/services/browser-rendering.js.map +1 -0
  102. package/lib/services/cache.d.ts +287 -0
  103. package/lib/services/cache.d.ts.map +1 -0
  104. package/lib/services/cache.js +330 -0
  105. package/lib/services/cache.js.map +1 -0
  106. package/lib/services/calls.d.ts +202 -0
  107. package/lib/services/calls.d.ts.map +1 -0
  108. package/lib/services/calls.js +175 -0
  109. package/lib/services/calls.js.map +1 -0
  110. package/lib/services/certificate-authorities.d.ts +40 -0
  111. package/lib/services/certificate-authorities.d.ts.map +1 -0
  112. package/lib/services/certificate-authorities.js +49 -0
  113. package/lib/services/certificate-authorities.js.map +1 -0
  114. package/lib/services/client-certificates.d.ts +254 -0
  115. package/lib/services/client-certificates.d.ts.map +1 -0
  116. package/lib/services/client-certificates.js +350 -0
  117. package/lib/services/client-certificates.js.map +1 -0
  118. package/lib/services/cloud-connector.d.ts +59 -0
  119. package/lib/services/cloud-connector.d.ts.map +1 -0
  120. package/lib/services/cloud-connector.js +84 -0
  121. package/lib/services/cloud-connector.js.map +1 -0
  122. package/lib/services/cloudforce-one.d.ts +1318 -0
  123. package/lib/services/cloudforce-one.d.ts.map +1 -0
  124. package/lib/services/cloudforce-one.js +1684 -0
  125. package/lib/services/cloudforce-one.js.map +1 -0
  126. package/lib/services/connectivity.d.ts +248 -0
  127. package/lib/services/connectivity.d.ts.map +1 -0
  128. package/lib/services/connectivity.js +377 -0
  129. package/lib/services/connectivity.js.map +1 -0
  130. package/lib/services/content-scanning.d.ts +131 -0
  131. package/lib/services/content-scanning.d.ts.map +1 -0
  132. package/lib/services/content-scanning.js +156 -0
  133. package/lib/services/content-scanning.js.map +1 -0
  134. package/lib/services/custom-certificates.d.ts +211 -0
  135. package/lib/services/custom-certificates.d.ts.map +1 -0
  136. package/lib/services/custom-certificates.js +309 -0
  137. package/lib/services/custom-certificates.js.map +1 -0
  138. package/lib/services/custom-hostnames.d.ts +525 -0
  139. package/lib/services/custom-hostnames.d.ts.map +1 -0
  140. package/lib/services/custom-hostnames.js +1164 -0
  141. package/lib/services/custom-hostnames.js.map +1 -0
  142. package/lib/services/custom-nameservers.d.ts +67 -0
  143. package/lib/services/custom-nameservers.d.ts.map +1 -0
  144. package/lib/services/custom-nameservers.js +80 -0
  145. package/lib/services/custom-nameservers.js.map +1 -0
  146. package/lib/services/custom-pages.d.ts +74 -0
  147. package/lib/services/custom-pages.d.ts.map +1 -0
  148. package/lib/services/custom-pages.js +125 -0
  149. package/lib/services/custom-pages.js.map +1 -0
  150. package/lib/services/d1.d.ts +326 -0
  151. package/lib/services/d1.d.ts.map +1 -0
  152. package/lib/services/d1.js +448 -0
  153. package/lib/services/d1.js.map +1 -0
  154. package/lib/services/dcv-delegation.d.ts +24 -0
  155. package/lib/services/dcv-delegation.d.ts.map +1 -0
  156. package/lib/services/dcv-delegation.js +24 -0
  157. package/lib/services/dcv-delegation.js.map +1 -0
  158. package/lib/services/diagnostics.d.ts +175 -0
  159. package/lib/services/diagnostics.d.ts.map +1 -0
  160. package/lib/services/diagnostics.js +273 -0
  161. package/lib/services/diagnostics.js.map +1 -0
  162. package/lib/services/dns-firewall.d.ts +288 -0
  163. package/lib/services/dns-firewall.d.ts.map +1 -0
  164. package/lib/services/dns-firewall.js +373 -0
  165. package/lib/services/dns-firewall.js.map +1 -0
  166. package/lib/services/dns.d.ts +2946 -0
  167. package/lib/services/dns.d.ts.map +1 -0
  168. package/lib/services/dns.js +4511 -0
  169. package/lib/services/dns.js.map +1 -0
  170. package/lib/services/durable-objects.d.ts +61 -0
  171. package/lib/services/durable-objects.d.ts.map +1 -0
  172. package/lib/services/durable-objects.js +66 -0
  173. package/lib/services/durable-objects.js.map +1 -0
  174. package/lib/services/email-routing.d.ts +542 -0
  175. package/lib/services/email-routing.d.ts.map +1 -0
  176. package/lib/services/email-routing.js +662 -0
  177. package/lib/services/email-routing.js.map +1 -0
  178. package/lib/services/email-security.d.ts +1131 -0
  179. package/lib/services/email-security.d.ts.map +1 -0
  180. package/lib/services/email-security.js +2065 -0
  181. package/lib/services/email-security.js.map +1 -0
  182. package/lib/services/filters.d.ts +157 -0
  183. package/lib/services/filters.d.ts.map +1 -0
  184. package/lib/services/filters.js +135 -0
  185. package/lib/services/filters.js.map +1 -0
  186. package/lib/services/firewall.d.ts +1080 -0
  187. package/lib/services/firewall.d.ts.map +1 -0
  188. package/lib/services/firewall.js +1881 -0
  189. package/lib/services/firewall.js.map +1 -0
  190. package/lib/services/healthchecks.d.ts +464 -0
  191. package/lib/services/healthchecks.d.ts.map +1 -0
  192. package/lib/services/healthchecks.js +838 -0
  193. package/lib/services/healthchecks.js.map +1 -0
  194. package/lib/services/hostnames.d.ts +74 -0
  195. package/lib/services/hostnames.d.ts.map +1 -0
  196. package/lib/services/hostnames.js +100 -0
  197. package/lib/services/hostnames.js.map +1 -0
  198. package/lib/services/hyperdrive.d.ts +203 -0
  199. package/lib/services/hyperdrive.d.ts.map +1 -0
  200. package/lib/services/hyperdrive.js +299 -0
  201. package/lib/services/hyperdrive.js.map +1 -0
  202. package/lib/services/iam.d.ts +554 -0
  203. package/lib/services/iam.d.ts.map +1 -0
  204. package/lib/services/iam.js +743 -0
  205. package/lib/services/iam.js.map +1 -0
  206. package/lib/services/images.d.ts +403 -0
  207. package/lib/services/images.d.ts.map +1 -0
  208. package/lib/services/images.js +417 -0
  209. package/lib/services/images.js.map +1 -0
  210. package/lib/services/intel.d.ts +768 -0
  211. package/lib/services/intel.d.ts.map +1 -0
  212. package/lib/services/intel.js +1179 -0
  213. package/lib/services/intel.js.map +1 -0
  214. package/lib/services/ips.d.ts +28 -0
  215. package/lib/services/ips.d.ts.map +1 -0
  216. package/lib/services/ips.js +39 -0
  217. package/lib/services/ips.js.map +1 -0
  218. package/lib/services/keyless-certificates.d.ts +177 -0
  219. package/lib/services/keyless-certificates.d.ts.map +1 -0
  220. package/lib/services/keyless-certificates.js +216 -0
  221. package/lib/services/keyless-certificates.js.map +1 -0
  222. package/lib/services/kv.d.ts +339 -0
  223. package/lib/services/kv.d.ts.map +1 -0
  224. package/lib/services/kv.js +402 -0
  225. package/lib/services/kv.js.map +1 -0
  226. package/lib/services/leaked-credential-checks.d.ts +119 -0
  227. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  228. package/lib/services/leaked-credential-checks.js +130 -0
  229. package/lib/services/leaked-credential-checks.js.map +1 -0
  230. package/lib/services/load-balancers.d.ts +1767 -0
  231. package/lib/services/load-balancers.d.ts.map +1 -0
  232. package/lib/services/load-balancers.js +3068 -0
  233. package/lib/services/load-balancers.js.map +1 -0
  234. package/lib/services/logpush.d.ts +401 -0
  235. package/lib/services/logpush.d.ts.map +1 -0
  236. package/lib/services/logpush.js +724 -0
  237. package/lib/services/logpush.js.map +1 -0
  238. package/lib/services/logs.d.ts +125 -0
  239. package/lib/services/logs.d.ts.map +1 -0
  240. package/lib/services/logs.js +145 -0
  241. package/lib/services/logs.js.map +1 -0
  242. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  243. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  244. package/lib/services/magic-cloud-networking.js +5205 -0
  245. package/lib/services/magic-cloud-networking.js.map +1 -0
  246. package/lib/services/magic-network-monitoring.d.ts +379 -0
  247. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  248. package/lib/services/magic-network-monitoring.js +535 -0
  249. package/lib/services/magic-network-monitoring.js.map +1 -0
  250. package/lib/services/magic-transit.d.ts +3650 -0
  251. package/lib/services/magic-transit.d.ts.map +1 -0
  252. package/lib/services/magic-transit.js +6120 -0
  253. package/lib/services/magic-transit.js.map +1 -0
  254. package/lib/services/managed-transforms.d.ts +79 -0
  255. package/lib/services/managed-transforms.d.ts.map +1 -0
  256. package/lib/services/managed-transforms.js +107 -0
  257. package/lib/services/managed-transforms.js.map +1 -0
  258. package/lib/services/memberships.d.ts +172 -0
  259. package/lib/services/memberships.d.ts.map +1 -0
  260. package/lib/services/memberships.js +282 -0
  261. package/lib/services/memberships.js.map +1 -0
  262. package/lib/services/mtls-certificates.d.ts +140 -0
  263. package/lib/services/mtls-certificates.d.ts.map +1 -0
  264. package/lib/services/mtls-certificates.js +173 -0
  265. package/lib/services/mtls-certificates.js.map +1 -0
  266. package/lib/services/network-interconnects.d.ts +410 -0
  267. package/lib/services/network-interconnects.d.ts.map +1 -0
  268. package/lib/services/network-interconnects.js +583 -0
  269. package/lib/services/network-interconnects.js.map +1 -0
  270. package/lib/services/organizations.d.ts +201 -0
  271. package/lib/services/organizations.d.ts.map +1 -0
  272. package/lib/services/organizations.js +355 -0
  273. package/lib/services/organizations.js.map +1 -0
  274. package/lib/services/origin-ca-certificates.d.ts +99 -0
  275. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  276. package/lib/services/origin-ca-certificates.js +156 -0
  277. package/lib/services/origin-ca-certificates.js.map +1 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  279. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  280. package/lib/services/origin-post-quantum-encryption.js +60 -0
  281. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  282. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  283. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  284. package/lib/services/origin-tls-client-auth.js +401 -0
  285. package/lib/services/origin-tls-client-auth.js.map +1 -0
  286. package/lib/services/page-rules.d.ts +773 -0
  287. package/lib/services/page-rules.d.ts.map +1 -0
  288. package/lib/services/page-rules.js +1365 -0
  289. package/lib/services/page-rules.js.map +1 -0
  290. package/lib/services/page-shield.d.ts +426 -0
  291. package/lib/services/page-shield.d.ts.map +1 -0
  292. package/lib/services/page-shield.js +484 -0
  293. package/lib/services/page-shield.js.map +1 -0
  294. package/lib/services/pages.d.ts +1654 -0
  295. package/lib/services/pages.d.ts.map +1 -0
  296. package/lib/services/pages.js +2954 -0
  297. package/lib/services/pages.js.map +1 -0
  298. package/lib/services/pipelines.d.ts +1461 -0
  299. package/lib/services/pipelines.d.ts.map +1 -0
  300. package/lib/services/pipelines.js +2912 -0
  301. package/lib/services/pipelines.js.map +1 -0
  302. package/lib/services/queues.d.ts +807 -0
  303. package/lib/services/queues.d.ts.map +1 -0
  304. package/lib/services/queues.js +1194 -0
  305. package/lib/services/queues.js.map +1 -0
  306. package/lib/services/r2-data-catalog.d.ts +341 -0
  307. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  308. package/lib/services/r2-data-catalog.js +499 -0
  309. package/lib/services/r2-data-catalog.js.map +1 -0
  310. package/lib/services/r2.d.ts +1041 -0
  311. package/lib/services/r2.d.ts.map +1 -0
  312. package/lib/services/r2.js +1384 -0
  313. package/lib/services/r2.js.map +1 -0
  314. package/lib/services/radar.d.ts +9276 -0
  315. package/lib/services/radar.d.ts.map +1 -0
  316. package/lib/services/radar.js +20491 -0
  317. package/lib/services/radar.js.map +1 -0
  318. package/lib/services/rate-limits.d.ts +315 -0
  319. package/lib/services/rate-limits.d.ts.map +1 -0
  320. package/lib/services/rate-limits.js +521 -0
  321. package/lib/services/rate-limits.js.map +1 -0
  322. package/lib/services/realtime-kit.d.ts +2728 -0
  323. package/lib/services/realtime-kit.d.ts.map +1 -0
  324. package/lib/services/realtime-kit.js +5401 -0
  325. package/lib/services/realtime-kit.js.map +1 -0
  326. package/lib/services/registrar.d.ts +81 -0
  327. package/lib/services/registrar.d.ts.map +1 -0
  328. package/lib/services/registrar.js +154 -0
  329. package/lib/services/registrar.js.map +1 -0
  330. package/lib/services/request-tracers.d.ts +61 -0
  331. package/lib/services/request-tracers.d.ts.map +1 -0
  332. package/lib/services/request-tracers.js +82 -0
  333. package/lib/services/request-tracers.js.map +1 -0
  334. package/lib/services/resource-sharing.d.ts +540 -0
  335. package/lib/services/resource-sharing.d.ts.map +1 -0
  336. package/lib/services/resource-sharing.js +846 -0
  337. package/lib/services/resource-sharing.js.map +1 -0
  338. package/lib/services/rules.d.ts +297 -0
  339. package/lib/services/rules.d.ts.map +1 -0
  340. package/lib/services/rules.js +396 -0
  341. package/lib/services/rules.js.map +1 -0
  342. package/lib/services/rulesets.d.ts +3300 -0
  343. package/lib/services/rulesets.d.ts.map +1 -0
  344. package/lib/services/rulesets.js +7852 -0
  345. package/lib/services/rulesets.js.map +1 -0
  346. package/lib/services/rum.d.ts +289 -0
  347. package/lib/services/rum.d.ts.map +1 -0
  348. package/lib/services/rum.js +409 -0
  349. package/lib/services/rum.js.map +1 -0
  350. package/lib/services/schema-validation.d.ts +240 -0
  351. package/lib/services/schema-validation.d.ts.map +1 -0
  352. package/lib/services/schema-validation.js +306 -0
  353. package/lib/services/schema-validation.js.map +1 -0
  354. package/lib/services/secrets-store.d.ts +321 -0
  355. package/lib/services/secrets-store.d.ts.map +1 -0
  356. package/lib/services/secrets-store.js +385 -0
  357. package/lib/services/secrets-store.js.map +1 -0
  358. package/lib/services/security-center.d.ts +102 -0
  359. package/lib/services/security-center.d.ts.map +1 -0
  360. package/lib/services/security-center.js +170 -0
  361. package/lib/services/security-center.js.map +1 -0
  362. package/lib/services/security-txt.d.ts +105 -0
  363. package/lib/services/security-txt.d.ts.map +1 -0
  364. package/lib/services/security-txt.js +136 -0
  365. package/lib/services/security-txt.js.map +1 -0
  366. package/lib/services/snippets.d.ts +138 -0
  367. package/lib/services/snippets.d.ts.map +1 -0
  368. package/lib/services/snippets.js +178 -0
  369. package/lib/services/snippets.js.map +1 -0
  370. package/lib/services/spectrum.d.ts +316 -0
  371. package/lib/services/spectrum.d.ts.map +1 -0
  372. package/lib/services/spectrum.js +510 -0
  373. package/lib/services/spectrum.js.map +1 -0
  374. package/lib/services/speed.d.ts +227 -0
  375. package/lib/services/speed.d.ts.map +1 -0
  376. package/lib/services/speed.js +444 -0
  377. package/lib/services/speed.js.map +1 -0
  378. package/lib/services/ssl.d.ts +370 -0
  379. package/lib/services/ssl.d.ts.map +1 -0
  380. package/lib/services/ssl.js +732 -0
  381. package/lib/services/ssl.js.map +1 -0
  382. package/lib/services/stream.d.ts +1014 -0
  383. package/lib/services/stream.d.ts.map +1 -0
  384. package/lib/services/stream.js +1049 -0
  385. package/lib/services/stream.js.map +1 -0
  386. package/lib/services/token-validation.d.ts +547 -0
  387. package/lib/services/token-validation.d.ts.map +1 -0
  388. package/lib/services/token-validation.js +768 -0
  389. package/lib/services/token-validation.js.map +1 -0
  390. package/lib/services/turnstile.d.ts +248 -0
  391. package/lib/services/turnstile.d.ts.map +1 -0
  392. package/lib/services/turnstile.js +308 -0
  393. package/lib/services/turnstile.js.map +1 -0
  394. package/lib/services/url-normalization.d.ts +53 -0
  395. package/lib/services/url-normalization.d.ts.map +1 -0
  396. package/lib/services/url-normalization.js +52 -0
  397. package/lib/services/url-normalization.js.map +1 -0
  398. package/lib/services/url-scanner.d.ts +612 -0
  399. package/lib/services/url-scanner.d.ts.map +1 -0
  400. package/lib/services/url-scanner.js +915 -0
  401. package/lib/services/url-scanner.js.map +1 -0
  402. package/lib/services/user.d.ts +441 -0
  403. package/lib/services/user.d.ts.map +1 -0
  404. package/lib/services/user.js +567 -0
  405. package/lib/services/user.js.map +1 -0
  406. package/lib/services/vectorize.d.ts +282 -0
  407. package/lib/services/vectorize.d.ts.map +1 -0
  408. package/lib/services/vectorize.js +340 -0
  409. package/lib/services/vectorize.js.map +1 -0
  410. package/lib/services/waiting-rooms.d.ts +1009 -0
  411. package/lib/services/waiting-rooms.d.ts.map +1 -0
  412. package/lib/services/waiting-rooms.js +1757 -0
  413. package/lib/services/waiting-rooms.js.map +1 -0
  414. package/lib/services/web3.d.ts +274 -0
  415. package/lib/services/web3.d.ts.map +1 -0
  416. package/lib/services/web3.js +362 -0
  417. package/lib/services/web3.js.map +1 -0
  418. package/lib/services/workers-for-platforms.d.ts +1224 -0
  419. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  420. package/lib/services/workers-for-platforms.js +2078 -0
  421. package/lib/services/workers-for-platforms.js.map +1 -0
  422. package/lib/services/workers.d.ts +3498 -0
  423. package/lib/services/workers.d.ts.map +1 -0
  424. package/lib/services/workers.js +5967 -0
  425. package/lib/services/workers.js.map +1 -0
  426. package/lib/services/workflows.d.ts +359 -0
  427. package/lib/services/workflows.d.ts.map +1 -0
  428. package/lib/services/workflows.js +516 -0
  429. package/lib/services/workflows.js.map +1 -0
  430. package/lib/services/zaraz.d.ts +300 -0
  431. package/lib/services/zaraz.d.ts.map +1 -0
  432. package/lib/services/zaraz.js +298 -0
  433. package/lib/services/zaraz.js.map +1 -0
  434. package/lib/services/zero-trust.d.ts +15449 -0
  435. package/lib/services/zero-trust.d.ts.map +1 -0
  436. package/lib/services/zero-trust.js +29194 -0
  437. package/lib/services/zero-trust.js.map +1 -0
  438. package/lib/services/zones.d.ts +1278 -0
  439. package/lib/services/zones.d.ts.map +1 -0
  440. package/lib/services/zones.js +2416 -0
  441. package/lib/services/zones.js.map +1 -0
  442. package/lib/traits.d.ts +28 -0
  443. package/lib/traits.d.ts.map +1 -0
  444. package/lib/traits.js +26 -0
  445. package/lib/traits.js.map +1 -0
  446. package/package.json +68 -5
  447. package/src/auth.ts +14 -0
  448. package/src/category.ts +1 -0
  449. package/src/client/api.ts +329 -0
  450. package/src/client/index.ts +7 -0
  451. package/src/credentials.ts +30 -0
  452. package/src/errors.ts +57 -0
  453. package/src/index.ts +9 -0
  454. package/src/retry.ts +35 -0
  455. package/src/schemas.ts +51 -0
  456. package/src/services/abuse-reports.ts +747 -0
  457. package/src/services/accounts.ts +1947 -0
  458. package/src/services/acm.ts +170 -0
  459. package/src/services/addressing.ts +3947 -0
  460. package/src/services/ai-gateway.ts +3335 -0
  461. package/src/services/ai.ts +727 -0
  462. package/src/services/aisearch.ts +4750 -0
  463. package/src/services/alerting.ts +2947 -0
  464. package/src/services/api-gateway.ts +3391 -0
  465. package/src/services/argo.ts +254 -0
  466. package/src/services/audit-logs.ts +90 -0
  467. package/src/services/billing.ts +172 -0
  468. package/src/services/bot-management.ts +541 -0
  469. package/src/services/botnet-feed.ts +193 -0
  470. package/src/services/brand-protection.ts +553 -0
  471. package/src/services/browser-rendering.ts +2707 -0
  472. package/src/services/cache.ts +827 -0
  473. package/src/services/calls.ts +483 -0
  474. package/src/services/certificate-authorities.ts +110 -0
  475. package/src/services/client-certificates.ts +718 -0
  476. package/src/services/cloud-connector.ts +181 -0
  477. package/src/services/cloudforce-one.ts +3876 -0
  478. package/src/services/connectivity.ts +629 -0
  479. package/src/services/content-scanning.ts +385 -0
  480. package/src/services/custom-certificates.ts +611 -0
  481. package/src/services/custom-hostnames.ts +2453 -0
  482. package/src/services/custom-nameservers.ts +182 -0
  483. package/src/services/custom-pages.ts +264 -0
  484. package/src/services/d1.ts +1034 -0
  485. package/src/services/dcv-delegation.ts +52 -0
  486. package/src/services/diagnostics.ts +603 -0
  487. package/src/services/dns-firewall.ts +823 -0
  488. package/src/services/dns.ts +8897 -0
  489. package/src/services/durable-objects.ts +148 -0
  490. package/src/services/email-routing.ts +1602 -0
  491. package/src/services/email-security.ts +4283 -0
  492. package/src/services/filters.ts +370 -0
  493. package/src/services/firewall.ts +3896 -0
  494. package/src/services/healthchecks.ts +1750 -0
  495. package/src/services/hostnames.ts +218 -0
  496. package/src/services/hyperdrive.ts +592 -0
  497. package/src/services/iam.ts +1668 -0
  498. package/src/services/images.ts +1086 -0
  499. package/src/services/intel.ts +2768 -0
  500. package/src/services/ips.ts +88 -0
  501. package/src/services/keyless-certificates.ts +462 -0
  502. package/src/services/kv.ts +1011 -0
  503. package/src/services/leaked-credential-checks.ts +325 -0
  504. package/src/services/load-balancers.ts +6438 -0
  505. package/src/services/logpush.ts +1667 -0
  506. package/src/services/logs.ts +375 -0
  507. package/src/services/magic-cloud-networking.ts +10020 -0
  508. package/src/services/magic-network-monitoring.ts +1156 -0
  509. package/src/services/magic-transit.ts +13050 -0
  510. package/src/services/managed-transforms.ts +237 -0
  511. package/src/services/memberships.ts +615 -0
  512. package/src/services/mtls-certificates.ts +374 -0
  513. package/src/services/network-interconnects.ts +1253 -0
  514. package/src/services/organizations.ts +674 -0
  515. package/src/services/origin-ca-certificates.ts +303 -0
  516. package/src/services/origin-post-quantum-encryption.ts +128 -0
  517. package/src/services/origin-tls-client-auth.ts +878 -0
  518. package/src/services/page-rules.ts +2612 -0
  519. package/src/services/page-shield.ts +1195 -0
  520. package/src/services/pages.ts +5709 -0
  521. package/src/services/pipelines.ts +6000 -0
  522. package/src/services/queues.ts +2629 -0
  523. package/src/services/r2-data-catalog.ts +1119 -0
  524. package/src/services/r2.ts +3348 -0
  525. package/src/services/radar.ts +42152 -0
  526. package/src/services/rate-limits.ts +1150 -0
  527. package/src/services/realtime-kit.ts +11079 -0
  528. package/src/services/registrar.ts +295 -0
  529. package/src/services/request-tracers.ts +158 -0
  530. package/src/services/resource-sharing.ts +1832 -0
  531. package/src/services/rules.ts +837 -0
  532. package/src/services/rulesets.ts +15144 -0
  533. package/src/services/rum.ts +901 -0
  534. package/src/services/schema-validation.ts +733 -0
  535. package/src/services/secrets-store.ts +860 -0
  536. package/src/services/security-center.ts +397 -0
  537. package/src/services/security-txt.ts +315 -0
  538. package/src/services/snippets.ts +420 -0
  539. package/src/services/spectrum.ts +1103 -0
  540. package/src/services/speed.ts +1056 -0
  541. package/src/services/ssl.ts +1587 -0
  542. package/src/services/stream.ts +2756 -0
  543. package/src/services/token-validation.ts +1585 -0
  544. package/src/services/turnstile.ts +643 -0
  545. package/src/services/url-normalization.ts +129 -0
  546. package/src/services/url-scanner.ts +1851 -0
  547. package/src/services/user.ts +1384 -0
  548. package/src/services/vectorize.ts +816 -0
  549. package/src/services/waiting-rooms.ts +3807 -0
  550. package/src/services/web3.ts +834 -0
  551. package/src/services/workers-for-platforms.ts +3859 -0
  552. package/src/services/workers.ts +11637 -0
  553. package/src/services/workflows.ts +1124 -0
  554. package/src/services/zaraz.ts +797 -0
  555. package/src/services/zero-trust.ts +58929 -0
  556. package/src/services/zones.ts +4875 -0
  557. package/src/traits.ts +47 -0
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,1548 @@
1
+ /**
2
+ * Cloudflare API-GATEWAY API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service api-gateway
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import * as API from "../client/api.js";
9
+ import * as T from "../traits";
10
+ import {} from "../errors";
11
+ import { UploadableSchema } from "../schemas";
12
+ // =============================================================================
13
+ // Errors
14
+ // =============================================================================
15
+ export class InvalidObjectIdentifier extends Schema.TaggedErrorClass()("InvalidObjectIdentifier", { code: Schema.Number, message: Schema.String }) {
16
+ }
17
+ T.applyErrorMatchers(InvalidObjectIdentifier, [{ code: 7003 }]);
18
+ export class NotEntitled extends Schema.TaggedErrorClass()("NotEntitled", { code: Schema.Number, message: Schema.String }) {
19
+ }
20
+ T.applyErrorMatchers(NotEntitled, [{ code: 10403 }, { code: 10404 }]);
21
+ export class OperationNotFound extends Schema.TaggedErrorClass()("OperationNotFound", { code: Schema.Number, message: Schema.String }) {
22
+ }
23
+ T.applyErrorMatchers(OperationNotFound, [{ code: 10404 }]);
24
+ export class SchemaNotFound extends Schema.TaggedErrorClass()("SchemaNotFound", { code: Schema.Number, message: Schema.String }) {
25
+ }
26
+ T.applyErrorMatchers(SchemaNotFound, [{ code: 19400 }]);
27
+ export const GetConfigurationRequest =
28
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
29
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
30
+ normalize: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("normalize")),
31
+ }).pipe(T.Http({
32
+ method: "GET",
33
+ path: "/zones/{zone_id}/api_gateway/configuration",
34
+ }));
35
+ export const GetConfigurationResponse =
36
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
37
+ authIdCharacteristics: Schema.Array(Schema.Union([
38
+ Schema.Struct({
39
+ name: Schema.String,
40
+ type: Schema.Literals(["header", "cookie"]),
41
+ }),
42
+ Schema.Struct({
43
+ name: Schema.String,
44
+ type: Schema.Literal("jwt"),
45
+ }),
46
+ ])),
47
+ }).pipe(Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }));
48
+ export const getConfiguration = API.make(() => ({
49
+ input: GetConfigurationRequest,
50
+ output: GetConfigurationResponse,
51
+ errors: [InvalidObjectIdentifier, NotEntitled],
52
+ }));
53
+ export const PutConfigurationRequest =
54
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
55
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
56
+ normalize: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("normalize")),
57
+ authIdCharacteristics: Schema.Array(Schema.Union([
58
+ Schema.Struct({
59
+ name: Schema.String,
60
+ type: Schema.Literals(["header", "cookie"]),
61
+ }),
62
+ Schema.Struct({
63
+ name: Schema.String,
64
+ type: Schema.Literal("jwt"),
65
+ }),
66
+ ])),
67
+ }).pipe(Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }), T.Http({
68
+ method: "PUT",
69
+ path: "/zones/{zone_id}/api_gateway/configuration",
70
+ }));
71
+ export const PutConfigurationResponse =
72
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
73
+ authIdCharacteristics: Schema.Array(Schema.Union([
74
+ Schema.Struct({
75
+ name: Schema.String,
76
+ type: Schema.Literals(["header", "cookie"]),
77
+ }),
78
+ Schema.Struct({
79
+ name: Schema.String,
80
+ type: Schema.Literal("jwt"),
81
+ }),
82
+ ])),
83
+ }).pipe(Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }));
84
+ export const putConfiguration = API.make(() => ({
85
+ input: PutConfigurationRequest,
86
+ output: PutConfigurationResponse,
87
+ errors: [InvalidObjectIdentifier, NotEntitled],
88
+ }));
89
+ export const GetDiscoveryRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
90
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
91
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/api_gateway/discovery" }));
92
+ export const GetDiscoveryResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
93
+ schemas: Schema.Array(Schema.Unknown),
94
+ timestamp: Schema.String,
95
+ });
96
+ export const getDiscovery = API.make(() => ({
97
+ input: GetDiscoveryRequest,
98
+ output: GetDiscoveryResponse,
99
+ errors: [InvalidObjectIdentifier, NotEntitled],
100
+ }));
101
+ export const ListDiscoveryOperationsRequest =
102
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
103
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
104
+ diff: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("diff")),
105
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
106
+ endpoint: Schema.optional(Schema.String).pipe(T.HttpQuery("endpoint")),
107
+ host: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("host")),
108
+ method: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("method")),
109
+ order: Schema.optional(Schema.Literals([
110
+ "host",
111
+ "method",
112
+ "endpoint",
113
+ "traffic_stats.requests",
114
+ "traffic_stats.last_updated",
115
+ ])).pipe(T.HttpQuery("order")),
116
+ origin: Schema.optional(Schema.Literals(["ML", "SessionIdentifier", "LabelDiscovery"])).pipe(T.HttpQuery("origin")),
117
+ state: Schema.optional(Schema.Literals(["review", "saved", "ignored"])).pipe(T.HttpQuery("state")),
118
+ }).pipe(T.Http({
119
+ method: "GET",
120
+ path: "/zones/{zone_id}/api_gateway/discovery/operations",
121
+ }));
122
+ export const ListDiscoveryOperationsResponse =
123
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
124
+ export const listDiscoveryOperations = API.make(() => ({
125
+ input: ListDiscoveryOperationsRequest,
126
+ output: ListDiscoveryOperationsResponse,
127
+ errors: [],
128
+ }));
129
+ export const PatchDiscoveryOperationRequest =
130
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
131
+ operationId: Schema.String.pipe(T.HttpPath("operationId")),
132
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
133
+ state: Schema.optional(Schema.Literals(["review", "ignored"])),
134
+ }).pipe(T.Http({
135
+ method: "PATCH",
136
+ path: "/zones/{zone_id}/api_gateway/discovery/operations/{operationId}",
137
+ }));
138
+ export const PatchDiscoveryOperationResponse =
139
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
140
+ state: Schema.optional(Schema.Union([
141
+ Schema.Literals(["review", "saved", "ignored"]),
142
+ Schema.Null,
143
+ ])),
144
+ });
145
+ export const patchDiscoveryOperation = API.make(() => ({
146
+ input: PatchDiscoveryOperationRequest,
147
+ output: PatchDiscoveryOperationResponse,
148
+ errors: [InvalidObjectIdentifier, NotEntitled],
149
+ }));
150
+ export const BulkPatchDiscoveryOperationsRequest =
151
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
152
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
153
+ body: Schema.Struct({}).pipe(T.HttpBody()),
154
+ }).pipe(T.Http({
155
+ method: "PATCH",
156
+ path: "/zones/{zone_id}/api_gateway/discovery/operations",
157
+ }));
158
+ export const BulkPatchDiscoveryOperationsResponse =
159
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
160
+ export const bulkPatchDiscoveryOperations = API.make(() => ({
161
+ input: BulkPatchDiscoveryOperationsRequest,
162
+ output: BulkPatchDiscoveryOperationsResponse,
163
+ errors: [InvalidObjectIdentifier, NotEntitled],
164
+ }));
165
+ export const CreateExpressionTemplateFallthroughRequest =
166
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
167
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
168
+ hosts: Schema.Array(Schema.String),
169
+ }).pipe(T.Http({
170
+ method: "POST",
171
+ path: "/zones/{zone_id}/api_gateway/expression-template/fallthrough",
172
+ }));
173
+ export const CreateExpressionTemplateFallthroughResponse =
174
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
175
+ expression: Schema.String,
176
+ title: Schema.String,
177
+ });
178
+ export const createExpressionTemplateFallthrough = API.make(() => ({
179
+ input: CreateExpressionTemplateFallthroughRequest,
180
+ output: CreateExpressionTemplateFallthroughResponse,
181
+ errors: [InvalidObjectIdentifier],
182
+ }));
183
+ export const GetOperationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
184
+ operationId: Schema.String.pipe(T.HttpPath("operationId")),
185
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
186
+ feature: Schema.optional(Schema.Array(Schema.Literals(["thresholds", "parameter_schemas", "schema_info"]))).pipe(T.HttpQuery("feature")),
187
+ }).pipe(T.Http({
188
+ method: "GET",
189
+ path: "/zones/{zone_id}/api_gateway/operations/{operationId}",
190
+ }));
191
+ export const GetOperationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
192
+ endpoint: Schema.String,
193
+ host: Schema.String,
194
+ lastUpdated: Schema.String,
195
+ method: Schema.Literals([
196
+ "GET",
197
+ "POST",
198
+ "HEAD",
199
+ "OPTIONS",
200
+ "PUT",
201
+ "DELETE",
202
+ "CONNECT",
203
+ "PATCH",
204
+ "TRACE",
205
+ ]),
206
+ operationId: Schema.String,
207
+ features: Schema.optional(Schema.Union([
208
+ Schema.Union([
209
+ Schema.Struct({
210
+ thresholds: Schema.optional(Schema.Union([
211
+ Schema.Struct({
212
+ authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
213
+ dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
214
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
215
+ p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
216
+ p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
217
+ p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
218
+ periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
219
+ requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
220
+ suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
221
+ }).pipe(Schema.encodeKeys({
222
+ authIdTokens: "auth_id_tokens",
223
+ dataPoints: "data_points",
224
+ lastUpdated: "last_updated",
225
+ p50: "p50",
226
+ p90: "p90",
227
+ p99: "p99",
228
+ periodSeconds: "period_seconds",
229
+ requests: "requests",
230
+ suggestedThreshold: "suggested_threshold",
231
+ })),
232
+ Schema.Null,
233
+ ])),
234
+ }),
235
+ Schema.Struct({
236
+ parameterSchemas: Schema.Struct({
237
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
238
+ parameterSchemas: Schema.optional(Schema.Union([
239
+ Schema.Struct({
240
+ parameters: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
241
+ responses: Schema.optional(Schema.Null),
242
+ }),
243
+ Schema.Null,
244
+ ])),
245
+ }).pipe(Schema.encodeKeys({
246
+ lastUpdated: "last_updated",
247
+ parameterSchemas: "parameter_schemas",
248
+ })),
249
+ }).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
250
+ Schema.Struct({
251
+ apiRouting: Schema.optional(Schema.Union([
252
+ Schema.Struct({
253
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
254
+ route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
255
+ }).pipe(Schema.encodeKeys({
256
+ lastUpdated: "last_updated",
257
+ route: "route",
258
+ })),
259
+ Schema.Null,
260
+ ])),
261
+ }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
262
+ Schema.Struct({
263
+ confidenceIntervals: Schema.optional(Schema.Union([
264
+ Schema.Struct({
265
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
266
+ suggestedThreshold: Schema.optional(Schema.Union([
267
+ Schema.Struct({
268
+ confidenceIntervals: Schema.optional(Schema.Union([
269
+ Schema.Struct({
270
+ p90: Schema.optional(Schema.Union([
271
+ Schema.Struct({
272
+ lower: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
273
+ upper: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
274
+ }),
275
+ Schema.Null,
276
+ ])),
277
+ p95: Schema.optional(Schema.Union([
278
+ Schema.Struct({
279
+ lower: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
280
+ upper: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
281
+ }),
282
+ Schema.Null,
283
+ ])),
284
+ p99: Schema.optional(Schema.Union([
285
+ Schema.Struct({
286
+ lower: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
287
+ upper: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
288
+ }),
289
+ Schema.Null,
290
+ ])),
291
+ }),
292
+ Schema.Null,
293
+ ])),
294
+ mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
295
+ }).pipe(Schema.encodeKeys({
296
+ confidenceIntervals: "confidence_intervals",
297
+ mean: "mean",
298
+ })),
299
+ Schema.Null,
300
+ ])),
301
+ }).pipe(Schema.encodeKeys({
302
+ lastUpdated: "last_updated",
303
+ suggestedThreshold: "suggested_threshold",
304
+ })),
305
+ Schema.Null,
306
+ ])),
307
+ }).pipe(Schema.encodeKeys({ confidenceIntervals: "confidence_intervals" })),
308
+ Schema.Struct({
309
+ schemaInfo: Schema.optional(Schema.Union([
310
+ Schema.Struct({
311
+ activeSchema: Schema.optional(Schema.Union([
312
+ Schema.Struct({
313
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
314
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
315
+ isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
316
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
317
+ }).pipe(Schema.encodeKeys({
318
+ id: "id",
319
+ createdAt: "created_at",
320
+ isLearned: "is_learned",
321
+ name: "name",
322
+ })),
323
+ Schema.Null,
324
+ ])),
325
+ learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
326
+ mitigationAction: Schema.optional(Schema.Union([
327
+ Schema.Literal("none"),
328
+ Schema.Literal("log"),
329
+ Schema.Literal("block"),
330
+ Schema.Null,
331
+ ])),
332
+ }).pipe(Schema.encodeKeys({
333
+ activeSchema: "active_schema",
334
+ learnedAvailable: "learned_available",
335
+ mitigationAction: "mitigation_action",
336
+ })),
337
+ Schema.Null,
338
+ ])),
339
+ }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
340
+ ]),
341
+ Schema.Null,
342
+ ])),
343
+ }).pipe(Schema.encodeKeys({
344
+ endpoint: "endpoint",
345
+ host: "host",
346
+ lastUpdated: "last_updated",
347
+ method: "method",
348
+ operationId: "operation_id",
349
+ features: "features",
350
+ }));
351
+ export const getOperation = API.make(() => ({
352
+ input: GetOperationRequest,
353
+ output: GetOperationResponse,
354
+ errors: [InvalidObjectIdentifier, OperationNotFound],
355
+ }));
356
+ export const ListOperationsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
357
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
358
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
359
+ endpoint: Schema.optional(Schema.String).pipe(T.HttpQuery("endpoint")),
360
+ feature: Schema.optional(Schema.Array(Schema.Literals(["thresholds", "parameter_schemas", "schema_info"]))).pipe(T.HttpQuery("feature")),
361
+ host: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("host")),
362
+ method: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("method")),
363
+ order: Schema.optional(Schema.Literals(["method", "host", "endpoint", "thresholds.$key"])).pipe(T.HttpQuery("order")),
364
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/api_gateway/operations" }));
365
+ export const ListOperationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
366
+ endpoint: Schema.String,
367
+ host: Schema.String,
368
+ lastUpdated: Schema.String,
369
+ method: Schema.Literals([
370
+ "GET",
371
+ "POST",
372
+ "HEAD",
373
+ "OPTIONS",
374
+ "PUT",
375
+ "DELETE",
376
+ "CONNECT",
377
+ "PATCH",
378
+ "TRACE",
379
+ ]),
380
+ operationId: Schema.String,
381
+ features: Schema.optional(Schema.Union([
382
+ Schema.Union([
383
+ Schema.Struct({
384
+ thresholds: Schema.optional(Schema.Union([
385
+ Schema.Struct({
386
+ authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
387
+ dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
388
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
389
+ p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
390
+ p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
391
+ p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
392
+ periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
393
+ requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
394
+ suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
395
+ }).pipe(Schema.encodeKeys({
396
+ authIdTokens: "auth_id_tokens",
397
+ dataPoints: "data_points",
398
+ lastUpdated: "last_updated",
399
+ p50: "p50",
400
+ p90: "p90",
401
+ p99: "p99",
402
+ periodSeconds: "period_seconds",
403
+ requests: "requests",
404
+ suggestedThreshold: "suggested_threshold",
405
+ })),
406
+ Schema.Null,
407
+ ])),
408
+ }),
409
+ Schema.Struct({
410
+ parameterSchemas: Schema.Struct({
411
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
412
+ parameterSchemas: Schema.optional(Schema.Union([
413
+ Schema.Struct({
414
+ parameters: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
415
+ responses: Schema.optional(Schema.Null),
416
+ }),
417
+ Schema.Null,
418
+ ])),
419
+ }).pipe(Schema.encodeKeys({
420
+ lastUpdated: "last_updated",
421
+ parameterSchemas: "parameter_schemas",
422
+ })),
423
+ }).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
424
+ Schema.Struct({
425
+ apiRouting: Schema.optional(Schema.Union([
426
+ Schema.Struct({
427
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
428
+ route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
429
+ }).pipe(Schema.encodeKeys({
430
+ lastUpdated: "last_updated",
431
+ route: "route",
432
+ })),
433
+ Schema.Null,
434
+ ])),
435
+ }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
436
+ Schema.Struct({
437
+ confidenceIntervals: Schema.optional(Schema.Union([
438
+ Schema.Struct({
439
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
440
+ suggestedThreshold: Schema.optional(Schema.Union([
441
+ Schema.Struct({
442
+ confidenceIntervals: Schema.optional(Schema.Union([
443
+ Schema.Struct({
444
+ p90: Schema.optional(Schema.Union([
445
+ Schema.Struct({
446
+ lower: Schema.optional(Schema.Union([
447
+ Schema.Number,
448
+ Schema.Null,
449
+ ])),
450
+ upper: Schema.optional(Schema.Union([
451
+ Schema.Number,
452
+ Schema.Null,
453
+ ])),
454
+ }),
455
+ Schema.Null,
456
+ ])),
457
+ p95: Schema.optional(Schema.Union([
458
+ Schema.Struct({
459
+ lower: Schema.optional(Schema.Union([
460
+ Schema.Number,
461
+ Schema.Null,
462
+ ])),
463
+ upper: Schema.optional(Schema.Union([
464
+ Schema.Number,
465
+ Schema.Null,
466
+ ])),
467
+ }),
468
+ Schema.Null,
469
+ ])),
470
+ p99: Schema.optional(Schema.Union([
471
+ Schema.Struct({
472
+ lower: Schema.optional(Schema.Union([
473
+ Schema.Number,
474
+ Schema.Null,
475
+ ])),
476
+ upper: Schema.optional(Schema.Union([
477
+ Schema.Number,
478
+ Schema.Null,
479
+ ])),
480
+ }),
481
+ Schema.Null,
482
+ ])),
483
+ }),
484
+ Schema.Null,
485
+ ])),
486
+ mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
487
+ }).pipe(Schema.encodeKeys({
488
+ confidenceIntervals: "confidence_intervals",
489
+ mean: "mean",
490
+ })),
491
+ Schema.Null,
492
+ ])),
493
+ }).pipe(Schema.encodeKeys({
494
+ lastUpdated: "last_updated",
495
+ suggestedThreshold: "suggested_threshold",
496
+ })),
497
+ Schema.Null,
498
+ ])),
499
+ }).pipe(Schema.encodeKeys({ confidenceIntervals: "confidence_intervals" })),
500
+ Schema.Struct({
501
+ schemaInfo: Schema.optional(Schema.Union([
502
+ Schema.Struct({
503
+ activeSchema: Schema.optional(Schema.Union([
504
+ Schema.Struct({
505
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
506
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
507
+ isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
508
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
509
+ }).pipe(Schema.encodeKeys({
510
+ id: "id",
511
+ createdAt: "created_at",
512
+ isLearned: "is_learned",
513
+ name: "name",
514
+ })),
515
+ Schema.Null,
516
+ ])),
517
+ learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
518
+ mitigationAction: Schema.optional(Schema.Union([
519
+ Schema.Literal("none"),
520
+ Schema.Literal("log"),
521
+ Schema.Literal("block"),
522
+ Schema.Null,
523
+ ])),
524
+ }).pipe(Schema.encodeKeys({
525
+ activeSchema: "active_schema",
526
+ learnedAvailable: "learned_available",
527
+ mitigationAction: "mitigation_action",
528
+ })),
529
+ Schema.Null,
530
+ ])),
531
+ }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
532
+ ]),
533
+ Schema.Null,
534
+ ])),
535
+ }).pipe(Schema.encodeKeys({
536
+ endpoint: "endpoint",
537
+ host: "host",
538
+ lastUpdated: "last_updated",
539
+ method: "method",
540
+ operationId: "operation_id",
541
+ features: "features",
542
+ })));
543
+ export const listOperations = API.make(() => ({
544
+ input: ListOperationsRequest,
545
+ output: ListOperationsResponse,
546
+ errors: [],
547
+ }));
548
+ export const CreateOperationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
549
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
550
+ endpoint: Schema.String,
551
+ host: Schema.String,
552
+ method: Schema.Literals([
553
+ "GET",
554
+ "POST",
555
+ "HEAD",
556
+ "OPTIONS",
557
+ "PUT",
558
+ "DELETE",
559
+ "CONNECT",
560
+ "PATCH",
561
+ "TRACE",
562
+ ]),
563
+ }).pipe(T.Http({
564
+ method: "POST",
565
+ path: "/zones/{zone_id}/api_gateway/operations/item",
566
+ }));
567
+ export const CreateOperationResponse =
568
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
569
+ endpoint: Schema.String,
570
+ host: Schema.String,
571
+ lastUpdated: Schema.String,
572
+ method: Schema.Literals([
573
+ "GET",
574
+ "POST",
575
+ "HEAD",
576
+ "OPTIONS",
577
+ "PUT",
578
+ "DELETE",
579
+ "CONNECT",
580
+ "PATCH",
581
+ "TRACE",
582
+ ]),
583
+ operationId: Schema.String,
584
+ features: Schema.optional(Schema.Union([
585
+ Schema.Union([
586
+ Schema.Struct({
587
+ thresholds: Schema.optional(Schema.Union([
588
+ Schema.Struct({
589
+ authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
590
+ dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
591
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
592
+ p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
593
+ p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
594
+ p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
595
+ periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
596
+ requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
597
+ suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
598
+ }).pipe(Schema.encodeKeys({
599
+ authIdTokens: "auth_id_tokens",
600
+ dataPoints: "data_points",
601
+ lastUpdated: "last_updated",
602
+ p50: "p50",
603
+ p90: "p90",
604
+ p99: "p99",
605
+ periodSeconds: "period_seconds",
606
+ requests: "requests",
607
+ suggestedThreshold: "suggested_threshold",
608
+ })),
609
+ Schema.Null,
610
+ ])),
611
+ }),
612
+ Schema.Struct({
613
+ parameterSchemas: Schema.Struct({
614
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
615
+ parameterSchemas: Schema.optional(Schema.Union([
616
+ Schema.Struct({
617
+ parameters: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
618
+ responses: Schema.optional(Schema.Null),
619
+ }),
620
+ Schema.Null,
621
+ ])),
622
+ }).pipe(Schema.encodeKeys({
623
+ lastUpdated: "last_updated",
624
+ parameterSchemas: "parameter_schemas",
625
+ })),
626
+ }).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
627
+ Schema.Struct({
628
+ apiRouting: Schema.optional(Schema.Union([
629
+ Schema.Struct({
630
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
631
+ route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
632
+ }).pipe(Schema.encodeKeys({
633
+ lastUpdated: "last_updated",
634
+ route: "route",
635
+ })),
636
+ Schema.Null,
637
+ ])),
638
+ }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
639
+ Schema.Struct({
640
+ confidenceIntervals: Schema.optional(Schema.Union([
641
+ Schema.Struct({
642
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
643
+ suggestedThreshold: Schema.optional(Schema.Union([
644
+ Schema.Struct({
645
+ confidenceIntervals: Schema.optional(Schema.Union([
646
+ Schema.Struct({
647
+ p90: Schema.optional(Schema.Union([
648
+ Schema.Struct({
649
+ lower: Schema.optional(Schema.Union([
650
+ Schema.Number,
651
+ Schema.Null,
652
+ ])),
653
+ upper: Schema.optional(Schema.Union([
654
+ Schema.Number,
655
+ Schema.Null,
656
+ ])),
657
+ }),
658
+ Schema.Null,
659
+ ])),
660
+ p95: Schema.optional(Schema.Union([
661
+ Schema.Struct({
662
+ lower: Schema.optional(Schema.Union([
663
+ Schema.Number,
664
+ Schema.Null,
665
+ ])),
666
+ upper: Schema.optional(Schema.Union([
667
+ Schema.Number,
668
+ Schema.Null,
669
+ ])),
670
+ }),
671
+ Schema.Null,
672
+ ])),
673
+ p99: Schema.optional(Schema.Union([
674
+ Schema.Struct({
675
+ lower: Schema.optional(Schema.Union([
676
+ Schema.Number,
677
+ Schema.Null,
678
+ ])),
679
+ upper: Schema.optional(Schema.Union([
680
+ Schema.Number,
681
+ Schema.Null,
682
+ ])),
683
+ }),
684
+ Schema.Null,
685
+ ])),
686
+ }),
687
+ Schema.Null,
688
+ ])),
689
+ mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
690
+ }).pipe(Schema.encodeKeys({
691
+ confidenceIntervals: "confidence_intervals",
692
+ mean: "mean",
693
+ })),
694
+ Schema.Null,
695
+ ])),
696
+ }).pipe(Schema.encodeKeys({
697
+ lastUpdated: "last_updated",
698
+ suggestedThreshold: "suggested_threshold",
699
+ })),
700
+ Schema.Null,
701
+ ])),
702
+ }).pipe(Schema.encodeKeys({ confidenceIntervals: "confidence_intervals" })),
703
+ Schema.Struct({
704
+ schemaInfo: Schema.optional(Schema.Union([
705
+ Schema.Struct({
706
+ activeSchema: Schema.optional(Schema.Union([
707
+ Schema.Struct({
708
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
709
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
710
+ isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
711
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
712
+ }).pipe(Schema.encodeKeys({
713
+ id: "id",
714
+ createdAt: "created_at",
715
+ isLearned: "is_learned",
716
+ name: "name",
717
+ })),
718
+ Schema.Null,
719
+ ])),
720
+ learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
721
+ mitigationAction: Schema.optional(Schema.Union([
722
+ Schema.Literal("none"),
723
+ Schema.Literal("log"),
724
+ Schema.Literal("block"),
725
+ Schema.Null,
726
+ ])),
727
+ }).pipe(Schema.encodeKeys({
728
+ activeSchema: "active_schema",
729
+ learnedAvailable: "learned_available",
730
+ mitigationAction: "mitigation_action",
731
+ })),
732
+ Schema.Null,
733
+ ])),
734
+ }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
735
+ ]),
736
+ Schema.Null,
737
+ ])),
738
+ }).pipe(Schema.encodeKeys({
739
+ endpoint: "endpoint",
740
+ host: "host",
741
+ lastUpdated: "last_updated",
742
+ method: "method",
743
+ operationId: "operation_id",
744
+ features: "features",
745
+ }));
746
+ export const createOperation = API.make(() => ({
747
+ input: CreateOperationRequest,
748
+ output: CreateOperationResponse,
749
+ errors: [InvalidObjectIdentifier],
750
+ }));
751
+ export const DeleteOperationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
752
+ operationId: Schema.String.pipe(T.HttpPath("operationId")),
753
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
754
+ }).pipe(T.Http({
755
+ method: "DELETE",
756
+ path: "/zones/{zone_id}/api_gateway/operations/{operationId}",
757
+ }));
758
+ export const DeleteOperationResponse =
759
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
760
+ errors: Schema.Unknown,
761
+ messages: Schema.Unknown,
762
+ success: Schema.Literal(true),
763
+ });
764
+ export const deleteOperation = API.make(() => ({
765
+ input: DeleteOperationRequest,
766
+ output: DeleteOperationResponse,
767
+ errors: [InvalidObjectIdentifier, OperationNotFound],
768
+ }));
769
+ export const BulkCreateOperationsRequest =
770
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
771
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
772
+ body: Schema.Array(Schema.Struct({
773
+ endpoint: Schema.String,
774
+ host: Schema.String,
775
+ method: Schema.Literals([
776
+ "GET",
777
+ "POST",
778
+ "HEAD",
779
+ "OPTIONS",
780
+ "PUT",
781
+ "DELETE",
782
+ "CONNECT",
783
+ "PATCH",
784
+ "TRACE",
785
+ ]),
786
+ })).pipe(T.HttpBody()),
787
+ }).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/api_gateway/operations" }));
788
+ export const BulkCreateOperationsResponse =
789
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
790
+ endpoint: Schema.String,
791
+ host: Schema.String,
792
+ lastUpdated: Schema.String,
793
+ method: Schema.Literals([
794
+ "GET",
795
+ "POST",
796
+ "HEAD",
797
+ "OPTIONS",
798
+ "PUT",
799
+ "DELETE",
800
+ "CONNECT",
801
+ "PATCH",
802
+ "TRACE",
803
+ ]),
804
+ operationId: Schema.String,
805
+ features: Schema.optional(Schema.Union([
806
+ Schema.Union([
807
+ Schema.Struct({
808
+ thresholds: Schema.optional(Schema.Union([
809
+ Schema.Struct({
810
+ authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
811
+ dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
812
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
813
+ p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
814
+ p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
815
+ p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
816
+ periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
817
+ requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
818
+ suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
819
+ }).pipe(Schema.encodeKeys({
820
+ authIdTokens: "auth_id_tokens",
821
+ dataPoints: "data_points",
822
+ lastUpdated: "last_updated",
823
+ p50: "p50",
824
+ p90: "p90",
825
+ p99: "p99",
826
+ periodSeconds: "period_seconds",
827
+ requests: "requests",
828
+ suggestedThreshold: "suggested_threshold",
829
+ })),
830
+ Schema.Null,
831
+ ])),
832
+ }),
833
+ Schema.Struct({
834
+ parameterSchemas: Schema.Struct({
835
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
836
+ parameterSchemas: Schema.optional(Schema.Union([
837
+ Schema.Struct({
838
+ parameters: Schema.optional(Schema.Union([
839
+ Schema.Array(Schema.Unknown),
840
+ Schema.Null,
841
+ ])),
842
+ responses: Schema.optional(Schema.Null),
843
+ }),
844
+ Schema.Null,
845
+ ])),
846
+ }).pipe(Schema.encodeKeys({
847
+ lastUpdated: "last_updated",
848
+ parameterSchemas: "parameter_schemas",
849
+ })),
850
+ }).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
851
+ Schema.Struct({
852
+ apiRouting: Schema.optional(Schema.Union([
853
+ Schema.Struct({
854
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
855
+ route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
856
+ }).pipe(Schema.encodeKeys({
857
+ lastUpdated: "last_updated",
858
+ route: "route",
859
+ })),
860
+ Schema.Null,
861
+ ])),
862
+ }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
863
+ Schema.Struct({
864
+ confidenceIntervals: Schema.optional(Schema.Union([
865
+ Schema.Struct({
866
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
867
+ suggestedThreshold: Schema.optional(Schema.Union([
868
+ Schema.Struct({
869
+ confidenceIntervals: Schema.optional(Schema.Union([
870
+ Schema.Struct({
871
+ p90: Schema.optional(Schema.Union([
872
+ Schema.Struct({
873
+ lower: Schema.optional(Schema.Union([
874
+ Schema.Number,
875
+ Schema.Null,
876
+ ])),
877
+ upper: Schema.optional(Schema.Union([
878
+ Schema.Number,
879
+ Schema.Null,
880
+ ])),
881
+ }),
882
+ Schema.Null,
883
+ ])),
884
+ p95: Schema.optional(Schema.Union([
885
+ Schema.Struct({
886
+ lower: Schema.optional(Schema.Union([
887
+ Schema.Number,
888
+ Schema.Null,
889
+ ])),
890
+ upper: Schema.optional(Schema.Union([
891
+ Schema.Number,
892
+ Schema.Null,
893
+ ])),
894
+ }),
895
+ Schema.Null,
896
+ ])),
897
+ p99: Schema.optional(Schema.Union([
898
+ Schema.Struct({
899
+ lower: Schema.optional(Schema.Union([
900
+ Schema.Number,
901
+ Schema.Null,
902
+ ])),
903
+ upper: Schema.optional(Schema.Union([
904
+ Schema.Number,
905
+ Schema.Null,
906
+ ])),
907
+ }),
908
+ Schema.Null,
909
+ ])),
910
+ }),
911
+ Schema.Null,
912
+ ])),
913
+ mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
914
+ }).pipe(Schema.encodeKeys({
915
+ confidenceIntervals: "confidence_intervals",
916
+ mean: "mean",
917
+ })),
918
+ Schema.Null,
919
+ ])),
920
+ }).pipe(Schema.encodeKeys({
921
+ lastUpdated: "last_updated",
922
+ suggestedThreshold: "suggested_threshold",
923
+ })),
924
+ Schema.Null,
925
+ ])),
926
+ }).pipe(Schema.encodeKeys({
927
+ confidenceIntervals: "confidence_intervals",
928
+ })),
929
+ Schema.Struct({
930
+ schemaInfo: Schema.optional(Schema.Union([
931
+ Schema.Struct({
932
+ activeSchema: Schema.optional(Schema.Union([
933
+ Schema.Struct({
934
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
935
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
936
+ isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
937
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
938
+ }).pipe(Schema.encodeKeys({
939
+ id: "id",
940
+ createdAt: "created_at",
941
+ isLearned: "is_learned",
942
+ name: "name",
943
+ })),
944
+ Schema.Null,
945
+ ])),
946
+ learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
947
+ mitigationAction: Schema.optional(Schema.Union([
948
+ Schema.Literal("none"),
949
+ Schema.Literal("log"),
950
+ Schema.Literal("block"),
951
+ Schema.Null,
952
+ ])),
953
+ }).pipe(Schema.encodeKeys({
954
+ activeSchema: "active_schema",
955
+ learnedAvailable: "learned_available",
956
+ mitigationAction: "mitigation_action",
957
+ })),
958
+ Schema.Null,
959
+ ])),
960
+ }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
961
+ ]),
962
+ Schema.Null,
963
+ ])),
964
+ }).pipe(Schema.encodeKeys({
965
+ endpoint: "endpoint",
966
+ host: "host",
967
+ lastUpdated: "last_updated",
968
+ method: "method",
969
+ operationId: "operation_id",
970
+ features: "features",
971
+ })));
972
+ export const bulkCreateOperations = API.make(() => ({
973
+ input: BulkCreateOperationsRequest,
974
+ output: BulkCreateOperationsResponse,
975
+ errors: [],
976
+ }));
977
+ export const BulkDeleteOperationsRequest =
978
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
979
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
980
+ }).pipe(T.Http({
981
+ method: "DELETE",
982
+ path: "/zones/{zone_id}/api_gateway/operations",
983
+ }));
984
+ export const BulkDeleteOperationsResponse =
985
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
986
+ errors: Schema.Unknown,
987
+ messages: Schema.Unknown,
988
+ success: Schema.Literal(true),
989
+ });
990
+ export const bulkDeleteOperations = API.make(() => ({
991
+ input: BulkDeleteOperationsRequest,
992
+ output: BulkDeleteOperationsResponse,
993
+ errors: [InvalidObjectIdentifier],
994
+ }));
995
+ export const GetOperationSchemaValidationRequest =
996
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
997
+ operationId: Schema.String.pipe(T.HttpPath("operationId")),
998
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
999
+ }).pipe(T.Http({
1000
+ method: "GET",
1001
+ path: "/zones/{zone_id}/api_gateway/operations/{operationId}/schema_validation",
1002
+ }));
1003
+ export const GetOperationSchemaValidationResponse =
1004
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1005
+ mitigationAction: Schema.optional(Schema.Union([
1006
+ Schema.Literal("log"),
1007
+ Schema.Literal("block"),
1008
+ Schema.Literal("none"),
1009
+ Schema.Null,
1010
+ ])),
1011
+ operationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1012
+ }).pipe(Schema.encodeKeys({
1013
+ mitigationAction: "mitigation_action",
1014
+ operationId: "operation_id",
1015
+ }));
1016
+ export const getOperationSchemaValidation = API.make(() => ({
1017
+ input: GetOperationSchemaValidationRequest,
1018
+ output: GetOperationSchemaValidationResponse,
1019
+ errors: [InvalidObjectIdentifier, OperationNotFound],
1020
+ }));
1021
+ export const PutOperationSchemaValidationRequest =
1022
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1023
+ operationId: Schema.String.pipe(T.HttpPath("operationId")),
1024
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1025
+ mitigationAction: Schema.optional(Schema.Union([
1026
+ Schema.Literal("log"),
1027
+ Schema.Literal("block"),
1028
+ Schema.Literal("none"),
1029
+ Schema.Null,
1030
+ ])),
1031
+ }).pipe(Schema.encodeKeys({ mitigationAction: "mitigation_action" }), T.Http({
1032
+ method: "PUT",
1033
+ path: "/zones/{zone_id}/api_gateway/operations/{operationId}/schema_validation",
1034
+ }));
1035
+ export const PutOperationSchemaValidationResponse =
1036
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1037
+ mitigationAction: Schema.optional(Schema.Union([
1038
+ Schema.Literal("log"),
1039
+ Schema.Literal("block"),
1040
+ Schema.Literal("none"),
1041
+ Schema.Null,
1042
+ ])),
1043
+ operationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1044
+ }).pipe(Schema.encodeKeys({
1045
+ mitigationAction: "mitigation_action",
1046
+ operationId: "operation_id",
1047
+ }));
1048
+ export const putOperationSchemaValidation = API.make(() => ({
1049
+ input: PutOperationSchemaValidationRequest,
1050
+ output: PutOperationSchemaValidationResponse,
1051
+ errors: [InvalidObjectIdentifier, OperationNotFound],
1052
+ }));
1053
+ export const PatchOperationSchemaValidationRequest =
1054
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1055
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1056
+ settingsMultipleRequest: Schema.Unknown,
1057
+ }).pipe(Schema.encodeKeys({ settingsMultipleRequest: "settings_multiple_request" }), T.Http({
1058
+ method: "PATCH",
1059
+ path: "/zones/{zone_id}/api_gateway/operations/schema_validation",
1060
+ }));
1061
+ export const PatchOperationSchemaValidationResponse =
1062
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
1063
+ export const patchOperationSchemaValidation = API.make(() => ({
1064
+ input: PatchOperationSchemaValidationRequest,
1065
+ output: PatchOperationSchemaValidationResponse,
1066
+ errors: [InvalidObjectIdentifier],
1067
+ }));
1068
+ export const ListSchemasRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1069
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1070
+ feature: Schema.optional(Schema.Array(Schema.Literals(["thresholds", "parameter_schemas", "schema_info"]))).pipe(T.HttpQuery("feature")),
1071
+ host: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("host")),
1072
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/api_gateway/schemas" }));
1073
+ export const ListSchemasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1074
+ schemas: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
1075
+ timestamp: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1076
+ });
1077
+ export const listSchemas = API.make(() => ({
1078
+ input: ListSchemasRequest,
1079
+ output: ListSchemasResponse,
1080
+ errors: [InvalidObjectIdentifier],
1081
+ }));
1082
+ export const GetSettingSchemaValidationRequest =
1083
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1084
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1085
+ }).pipe(T.Http({
1086
+ method: "GET",
1087
+ path: "/zones/{zone_id}/api_gateway/settings/schema_validation",
1088
+ }));
1089
+ export const GetSettingSchemaValidationResponse =
1090
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
1091
+ export const getSettingSchemaValidation = API.make(() => ({
1092
+ input: GetSettingSchemaValidationRequest,
1093
+ output: GetSettingSchemaValidationResponse,
1094
+ errors: [InvalidObjectIdentifier],
1095
+ }));
1096
+ export const PutSettingSchemaValidationRequest =
1097
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1098
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1099
+ validationDefaultMitigationAction: Schema.Literals([
1100
+ "none",
1101
+ "log",
1102
+ "block",
1103
+ ]),
1104
+ validationOverrideMitigationAction: Schema.optional(Schema.Union([
1105
+ Schema.Literal("none"),
1106
+ Schema.Literal("disable_override"),
1107
+ Schema.Null,
1108
+ ])),
1109
+ }).pipe(Schema.encodeKeys({
1110
+ validationDefaultMitigationAction: "validation_default_mitigation_action",
1111
+ validationOverrideMitigationAction: "validation_override_mitigation_action",
1112
+ }), T.Http({
1113
+ method: "PUT",
1114
+ path: "/zones/{zone_id}/api_gateway/settings/schema_validation",
1115
+ }));
1116
+ export const PutSettingSchemaValidationResponse =
1117
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
1118
+ export const putSettingSchemaValidation = API.make(() => ({
1119
+ input: PutSettingSchemaValidationRequest,
1120
+ output: PutSettingSchemaValidationResponse,
1121
+ errors: [InvalidObjectIdentifier],
1122
+ }));
1123
+ export const PatchSettingSchemaValidationRequest =
1124
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1125
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1126
+ validationDefaultMitigationAction: Schema.optional(Schema.Union([
1127
+ Schema.Literal("none"),
1128
+ Schema.Literal("log"),
1129
+ Schema.Literal("block"),
1130
+ Schema.Null,
1131
+ ])),
1132
+ validationOverrideMitigationAction: Schema.optional(Schema.Union([
1133
+ Schema.Literal("none"),
1134
+ Schema.Literal("disable_override"),
1135
+ Schema.Null,
1136
+ ])),
1137
+ }).pipe(Schema.encodeKeys({
1138
+ validationDefaultMitigationAction: "validation_default_mitigation_action",
1139
+ validationOverrideMitigationAction: "validation_override_mitigation_action",
1140
+ }), T.Http({
1141
+ method: "PATCH",
1142
+ path: "/zones/{zone_id}/api_gateway/settings/schema_validation",
1143
+ }));
1144
+ export const PatchSettingSchemaValidationResponse =
1145
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
1146
+ export const patchSettingSchemaValidation = API.make(() => ({
1147
+ input: PatchSettingSchemaValidationRequest,
1148
+ output: PatchSettingSchemaValidationResponse,
1149
+ errors: [InvalidObjectIdentifier],
1150
+ }));
1151
+ export const GetUserSchemaRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1152
+ schemaId: Schema.String.pipe(T.HttpPath("schemaId")),
1153
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1154
+ omitSource: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("omit_source")),
1155
+ }).pipe(T.Http({
1156
+ method: "GET",
1157
+ path: "/zones/{zone_id}/api_gateway/user_schemas/{schemaId}",
1158
+ }));
1159
+ export const GetUserSchemaResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1160
+ createdAt: Schema.String,
1161
+ kind: Schema.Literal("openapi_v3"),
1162
+ name: Schema.String,
1163
+ schemaId: Schema.String,
1164
+ source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1165
+ validationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1166
+ }).pipe(Schema.encodeKeys({
1167
+ createdAt: "created_at",
1168
+ kind: "kind",
1169
+ name: "name",
1170
+ schemaId: "schema_id",
1171
+ source: "source",
1172
+ validationEnabled: "validation_enabled",
1173
+ }));
1174
+ export const getUserSchema = API.make(() => ({
1175
+ input: GetUserSchemaRequest,
1176
+ output: GetUserSchemaResponse,
1177
+ errors: [InvalidObjectIdentifier, SchemaNotFound],
1178
+ }));
1179
+ export const ListUserSchemasRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1180
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1181
+ omitSource: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("omit_source")),
1182
+ validationEnabled: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("validation_enabled")),
1183
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/api_gateway/user_schemas" }));
1184
+ export const ListUserSchemasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1185
+ createdAt: Schema.String,
1186
+ kind: Schema.Literal("openapi_v3"),
1187
+ name: Schema.String,
1188
+ schemaId: Schema.String,
1189
+ source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1190
+ validationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1191
+ }).pipe(Schema.encodeKeys({
1192
+ createdAt: "created_at",
1193
+ kind: "kind",
1194
+ name: "name",
1195
+ schemaId: "schema_id",
1196
+ source: "source",
1197
+ validationEnabled: "validation_enabled",
1198
+ })));
1199
+ export const listUserSchemas = API.make(() => ({
1200
+ input: ListUserSchemasRequest,
1201
+ output: ListUserSchemasResponse,
1202
+ errors: [],
1203
+ }));
1204
+ export const CreateUserSchemaRequest =
1205
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1206
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1207
+ file: UploadableSchema.pipe(T.HttpFormDataFile()),
1208
+ kind: Schema.Literal("openapi_v3"),
1209
+ name: Schema.optional(Schema.String),
1210
+ validationEnabled: Schema.optional(Schema.Literals([true, false])),
1211
+ }).pipe(Schema.encodeKeys({
1212
+ file: "file",
1213
+ kind: "kind",
1214
+ name: "name",
1215
+ validationEnabled: "validation_enabled",
1216
+ }), T.Http({
1217
+ method: "POST",
1218
+ path: "/zones/{zone_id}/api_gateway/user_schemas",
1219
+ contentType: "multipart",
1220
+ }));
1221
+ export const CreateUserSchemaResponse =
1222
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1223
+ schema: Schema.Struct({
1224
+ createdAt: Schema.String,
1225
+ kind: Schema.Literal("openapi_v3"),
1226
+ name: Schema.String,
1227
+ schemaId: Schema.String,
1228
+ source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1229
+ validationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1230
+ }).pipe(Schema.encodeKeys({
1231
+ createdAt: "created_at",
1232
+ kind: "kind",
1233
+ name: "name",
1234
+ schemaId: "schema_id",
1235
+ source: "source",
1236
+ validationEnabled: "validation_enabled",
1237
+ })),
1238
+ uploadDetails: Schema.optional(Schema.Union([
1239
+ Schema.Struct({
1240
+ warnings: Schema.optional(Schema.Union([
1241
+ Schema.Array(Schema.Struct({
1242
+ code: Schema.Number,
1243
+ locations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1244
+ message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1245
+ })),
1246
+ Schema.Null,
1247
+ ])),
1248
+ }),
1249
+ Schema.Null,
1250
+ ])),
1251
+ }).pipe(Schema.encodeKeys({ schema: "schema", uploadDetails: "upload_details" }));
1252
+ export const createUserSchema = API.make(() => ({
1253
+ input: CreateUserSchemaRequest,
1254
+ output: CreateUserSchemaResponse,
1255
+ errors: [InvalidObjectIdentifier],
1256
+ }));
1257
+ export const PatchUserSchemaRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1258
+ schemaId: Schema.String.pipe(T.HttpPath("schemaId")),
1259
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1260
+ validationEnabled: Schema.optional(Schema.Literal(true)),
1261
+ }).pipe(Schema.encodeKeys({ validationEnabled: "validation_enabled" }), T.Http({
1262
+ method: "PATCH",
1263
+ path: "/zones/{zone_id}/api_gateway/user_schemas/{schemaId}",
1264
+ }));
1265
+ export const PatchUserSchemaResponse =
1266
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1267
+ createdAt: Schema.String,
1268
+ kind: Schema.Literal("openapi_v3"),
1269
+ name: Schema.String,
1270
+ schemaId: Schema.String,
1271
+ source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1272
+ validationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1273
+ }).pipe(Schema.encodeKeys({
1274
+ createdAt: "created_at",
1275
+ kind: "kind",
1276
+ name: "name",
1277
+ schemaId: "schema_id",
1278
+ source: "source",
1279
+ validationEnabled: "validation_enabled",
1280
+ }));
1281
+ export const patchUserSchema = API.make(() => ({
1282
+ input: PatchUserSchemaRequest,
1283
+ output: PatchUserSchemaResponse,
1284
+ errors: [InvalidObjectIdentifier, SchemaNotFound],
1285
+ }));
1286
+ export const DeleteUserSchemaRequest =
1287
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1288
+ schemaId: Schema.String.pipe(T.HttpPath("schemaId")),
1289
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1290
+ }).pipe(T.Http({
1291
+ method: "DELETE",
1292
+ path: "/zones/{zone_id}/api_gateway/user_schemas/{schemaId}",
1293
+ }));
1294
+ export const DeleteUserSchemaResponse =
1295
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1296
+ errors: Schema.Unknown,
1297
+ messages: Schema.Unknown,
1298
+ success: Schema.Literal(true),
1299
+ });
1300
+ export const deleteUserSchema = API.make(() => ({
1301
+ input: DeleteUserSchemaRequest,
1302
+ output: DeleteUserSchemaResponse,
1303
+ errors: [InvalidObjectIdentifier, SchemaNotFound],
1304
+ }));
1305
+ export const ListUserSchemaHostsRequest =
1306
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1307
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1308
+ }).pipe(T.Http({
1309
+ method: "GET",
1310
+ path: "/zones/{zone_id}/api_gateway/user_schemas/hosts",
1311
+ }));
1312
+ export const ListUserSchemaHostsResponse =
1313
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1314
+ createdAt: Schema.String,
1315
+ hosts: Schema.Array(Schema.String),
1316
+ name: Schema.String,
1317
+ schemaId: Schema.String,
1318
+ }).pipe(Schema.encodeKeys({
1319
+ createdAt: "created_at",
1320
+ hosts: "hosts",
1321
+ name: "name",
1322
+ schemaId: "schema_id",
1323
+ })));
1324
+ export const listUserSchemaHosts = API.make(() => ({
1325
+ input: ListUserSchemaHostsRequest,
1326
+ output: ListUserSchemaHostsResponse,
1327
+ errors: [],
1328
+ }));
1329
+ export const ListUserSchemaOperationsRequest =
1330
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1331
+ schemaId: Schema.String.pipe(T.HttpPath("schemaId")),
1332
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1333
+ endpoint: Schema.optional(Schema.String).pipe(T.HttpQuery("endpoint")),
1334
+ feature: Schema.optional(Schema.Array(Schema.Literals(["thresholds", "parameter_schemas", "schema_info"]))).pipe(T.HttpQuery("feature")),
1335
+ host: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("host")),
1336
+ method: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("method")),
1337
+ operationStatus: Schema.optional(Schema.Literals(["new", "existing"])).pipe(T.HttpQuery("operation_status")),
1338
+ }).pipe(T.Http({
1339
+ method: "GET",
1340
+ path: "/zones/{zone_id}/api_gateway/user_schemas/{schemaId}/operations",
1341
+ }));
1342
+ export const ListUserSchemaOperationsResponse =
1343
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Union([
1344
+ Schema.Struct({
1345
+ endpoint: Schema.String,
1346
+ host: Schema.String,
1347
+ lastUpdated: Schema.String,
1348
+ method: Schema.Literals([
1349
+ "GET",
1350
+ "POST",
1351
+ "HEAD",
1352
+ "OPTIONS",
1353
+ "PUT",
1354
+ "DELETE",
1355
+ "CONNECT",
1356
+ "PATCH",
1357
+ "TRACE",
1358
+ ]),
1359
+ operationId: Schema.String,
1360
+ features: Schema.optional(Schema.Union([
1361
+ Schema.Union([
1362
+ Schema.Struct({
1363
+ thresholds: Schema.optional(Schema.Union([
1364
+ Schema.Struct({
1365
+ authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1366
+ dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1367
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1368
+ p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1369
+ p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1370
+ p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1371
+ periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1372
+ requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1373
+ suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1374
+ }).pipe(Schema.encodeKeys({
1375
+ authIdTokens: "auth_id_tokens",
1376
+ dataPoints: "data_points",
1377
+ lastUpdated: "last_updated",
1378
+ p50: "p50",
1379
+ p90: "p90",
1380
+ p99: "p99",
1381
+ periodSeconds: "period_seconds",
1382
+ requests: "requests",
1383
+ suggestedThreshold: "suggested_threshold",
1384
+ })),
1385
+ Schema.Null,
1386
+ ])),
1387
+ }),
1388
+ Schema.Struct({
1389
+ parameterSchemas: Schema.Struct({
1390
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1391
+ parameterSchemas: Schema.optional(Schema.Union([
1392
+ Schema.Struct({
1393
+ parameters: Schema.optional(Schema.Union([
1394
+ Schema.Array(Schema.Unknown),
1395
+ Schema.Null,
1396
+ ])),
1397
+ responses: Schema.optional(Schema.Null),
1398
+ }),
1399
+ Schema.Null,
1400
+ ])),
1401
+ }).pipe(Schema.encodeKeys({
1402
+ lastUpdated: "last_updated",
1403
+ parameterSchemas: "parameter_schemas",
1404
+ })),
1405
+ }).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
1406
+ Schema.Struct({
1407
+ apiRouting: Schema.optional(Schema.Union([
1408
+ Schema.Struct({
1409
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1410
+ route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1411
+ }).pipe(Schema.encodeKeys({
1412
+ lastUpdated: "last_updated",
1413
+ route: "route",
1414
+ })),
1415
+ Schema.Null,
1416
+ ])),
1417
+ }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
1418
+ Schema.Struct({
1419
+ confidenceIntervals: Schema.optional(Schema.Union([
1420
+ Schema.Struct({
1421
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1422
+ suggestedThreshold: Schema.optional(Schema.Union([
1423
+ Schema.Struct({
1424
+ confidenceIntervals: Schema.optional(Schema.Union([
1425
+ Schema.Struct({
1426
+ p90: Schema.optional(Schema.Union([
1427
+ Schema.Struct({
1428
+ lower: Schema.optional(Schema.Union([
1429
+ Schema.Number,
1430
+ Schema.Null,
1431
+ ])),
1432
+ upper: Schema.optional(Schema.Union([
1433
+ Schema.Number,
1434
+ Schema.Null,
1435
+ ])),
1436
+ }),
1437
+ Schema.Null,
1438
+ ])),
1439
+ p95: Schema.optional(Schema.Union([
1440
+ Schema.Struct({
1441
+ lower: Schema.optional(Schema.Union([
1442
+ Schema.Number,
1443
+ Schema.Null,
1444
+ ])),
1445
+ upper: Schema.optional(Schema.Union([
1446
+ Schema.Number,
1447
+ Schema.Null,
1448
+ ])),
1449
+ }),
1450
+ Schema.Null,
1451
+ ])),
1452
+ p99: Schema.optional(Schema.Union([
1453
+ Schema.Struct({
1454
+ lower: Schema.optional(Schema.Union([
1455
+ Schema.Number,
1456
+ Schema.Null,
1457
+ ])),
1458
+ upper: Schema.optional(Schema.Union([
1459
+ Schema.Number,
1460
+ Schema.Null,
1461
+ ])),
1462
+ }),
1463
+ Schema.Null,
1464
+ ])),
1465
+ }),
1466
+ Schema.Null,
1467
+ ])),
1468
+ mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1469
+ }).pipe(Schema.encodeKeys({
1470
+ confidenceIntervals: "confidence_intervals",
1471
+ mean: "mean",
1472
+ })),
1473
+ Schema.Null,
1474
+ ])),
1475
+ }).pipe(Schema.encodeKeys({
1476
+ lastUpdated: "last_updated",
1477
+ suggestedThreshold: "suggested_threshold",
1478
+ })),
1479
+ Schema.Null,
1480
+ ])),
1481
+ }).pipe(Schema.encodeKeys({
1482
+ confidenceIntervals: "confidence_intervals",
1483
+ })),
1484
+ Schema.Struct({
1485
+ schemaInfo: Schema.optional(Schema.Union([
1486
+ Schema.Struct({
1487
+ activeSchema: Schema.optional(Schema.Union([
1488
+ Schema.Struct({
1489
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1490
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1491
+ isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1492
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1493
+ }).pipe(Schema.encodeKeys({
1494
+ id: "id",
1495
+ createdAt: "created_at",
1496
+ isLearned: "is_learned",
1497
+ name: "name",
1498
+ })),
1499
+ Schema.Null,
1500
+ ])),
1501
+ learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1502
+ mitigationAction: Schema.optional(Schema.Union([
1503
+ Schema.Literal("none"),
1504
+ Schema.Literal("log"),
1505
+ Schema.Literal("block"),
1506
+ Schema.Null,
1507
+ ])),
1508
+ }).pipe(Schema.encodeKeys({
1509
+ activeSchema: "active_schema",
1510
+ learnedAvailable: "learned_available",
1511
+ mitigationAction: "mitigation_action",
1512
+ })),
1513
+ Schema.Null,
1514
+ ])),
1515
+ }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
1516
+ ]),
1517
+ Schema.Null,
1518
+ ])),
1519
+ }).pipe(Schema.encodeKeys({
1520
+ endpoint: "endpoint",
1521
+ host: "host",
1522
+ lastUpdated: "last_updated",
1523
+ method: "method",
1524
+ operationId: "operation_id",
1525
+ features: "features",
1526
+ })),
1527
+ Schema.Struct({
1528
+ endpoint: Schema.String,
1529
+ host: Schema.String,
1530
+ method: Schema.Literals([
1531
+ "GET",
1532
+ "POST",
1533
+ "HEAD",
1534
+ "OPTIONS",
1535
+ "PUT",
1536
+ "DELETE",
1537
+ "CONNECT",
1538
+ "PATCH",
1539
+ "TRACE",
1540
+ ]),
1541
+ }),
1542
+ ]));
1543
+ export const listUserSchemaOperations = API.make(() => ({
1544
+ input: ListUserSchemaOperationsRequest,
1545
+ output: ListUserSchemaOperationsResponse,
1546
+ errors: [],
1547
+ }));
1548
+ //# sourceMappingURL=api-gateway.js.map