@distilled.cloud/cloudflare 0.2.6 → 0.3.0-alpha

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 (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -4,6 +4,7 @@
4
4
  * Generated from Cloudflare TypeScript SDK.
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service api-gateway
6
6
  */
7
+ import * as stream from "effect/Stream";
7
8
  import * as Schema from "effect/Schema";
8
9
  import * as API from "../client/api.js";
9
10
  import * as T from "../traits.js";
@@ -44,7 +45,9 @@ export const GetConfigurationResponse =
44
45
  type: Schema.Literal("jwt"),
45
46
  }),
46
47
  ])),
47
- }).pipe(Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }));
48
+ })
49
+ .pipe(Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }))
50
+ .pipe(T.ResponsePath("result"));
48
51
  export const getConfiguration = API.make(() => ({
49
52
  input: GetConfigurationRequest,
50
53
  output: GetConfigurationResponse,
@@ -80,7 +83,9 @@ export const PutConfigurationResponse =
80
83
  type: Schema.Literal("jwt"),
81
84
  }),
82
85
  ])),
83
- }).pipe(Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }));
86
+ })
87
+ .pipe(Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }))
88
+ .pipe(T.ResponsePath("result"));
84
89
  export const putConfiguration = API.make(() => ({
85
90
  input: PutConfigurationRequest,
86
91
  output: PutConfigurationResponse,
@@ -92,7 +97,7 @@ export const GetDiscoveryRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
92
97
  export const GetDiscoveryResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
93
98
  schemas: Schema.Array(Schema.Unknown),
94
99
  timestamp: Schema.String,
95
- });
100
+ }).pipe(T.ResponsePath("result"));
96
101
  export const getDiscovery = API.make(() => ({
97
102
  input: GetDiscoveryRequest,
98
103
  output: GetDiscoveryResponse,
@@ -141,7 +146,7 @@ export const PatchDiscoveryOperationResponse =
141
146
  Schema.Literals(["review", "saved", "ignored"]),
142
147
  Schema.Null,
143
148
  ])),
144
- });
149
+ }).pipe(T.ResponsePath("result"));
145
150
  export const patchDiscoveryOperation = API.make(() => ({
146
151
  input: PatchDiscoveryOperationRequest,
147
152
  output: PatchDiscoveryOperationResponse,
@@ -156,7 +161,7 @@ export const BulkPatchDiscoveryOperationsRequest =
156
161
  path: "/zones/{zone_id}/api_gateway/discovery/operations",
157
162
  }));
158
163
  export const BulkPatchDiscoveryOperationsResponse =
159
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
164
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.ResponsePath("result"));
160
165
  export const bulkPatchDiscoveryOperations = API.make(() => ({
161
166
  input: BulkPatchDiscoveryOperationsRequest,
162
167
  output: BulkPatchDiscoveryOperationsResponse,
@@ -174,7 +179,7 @@ export const CreateExpressionTemplateFallthroughResponse =
174
179
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
175
180
  expression: Schema.String,
176
181
  title: Schema.String,
177
- });
182
+ }).pipe(T.ResponsePath("result"));
178
183
  export const createExpressionTemplateFallthrough = API.make(() => ({
179
184
  input: CreateExpressionTemplateFallthroughRequest,
180
185
  output: CreateExpressionTemplateFallthroughResponse,
@@ -340,14 +345,16 @@ export const GetOperationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
340
345
  ]),
341
346
  Schema.Null,
342
347
  ])),
343
- }).pipe(Schema.encodeKeys({
348
+ })
349
+ .pipe(Schema.encodeKeys({
344
350
  endpoint: "endpoint",
345
351
  host: "host",
346
352
  lastUpdated: "last_updated",
347
353
  method: "method",
348
354
  operationId: "operation_id",
349
355
  features: "features",
350
- }));
356
+ }))
357
+ .pipe(T.ResponsePath("result"));
351
358
  export const getOperation = API.make(() => ({
352
359
  input: GetOperationRequest,
353
360
  output: GetOperationResponse,
@@ -362,7 +369,235 @@ export const ListOperationsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
362
369
  method: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("method")),
363
370
  order: Schema.optional(Schema.Literals(["method", "host", "endpoint", "thresholds.$key"])).pipe(T.HttpQuery("order")),
364
371
  }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/api_gateway/operations" }));
365
- export const ListOperationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
372
+ export const ListOperationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
373
+ result: Schema.Array(Schema.Struct({
374
+ endpoint: Schema.String,
375
+ host: Schema.String,
376
+ lastUpdated: Schema.String,
377
+ method: Schema.Literals([
378
+ "GET",
379
+ "POST",
380
+ "HEAD",
381
+ "OPTIONS",
382
+ "PUT",
383
+ "DELETE",
384
+ "CONNECT",
385
+ "PATCH",
386
+ "TRACE",
387
+ ]),
388
+ operationId: Schema.String,
389
+ features: Schema.optional(Schema.Union([
390
+ Schema.Union([
391
+ Schema.Struct({
392
+ thresholds: Schema.optional(Schema.Union([
393
+ Schema.Struct({
394
+ authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
395
+ dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
396
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
397
+ p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
398
+ p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
399
+ p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
400
+ periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
401
+ requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
402
+ suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
403
+ }).pipe(Schema.encodeKeys({
404
+ authIdTokens: "auth_id_tokens",
405
+ dataPoints: "data_points",
406
+ lastUpdated: "last_updated",
407
+ p50: "p50",
408
+ p90: "p90",
409
+ p99: "p99",
410
+ periodSeconds: "period_seconds",
411
+ requests: "requests",
412
+ suggestedThreshold: "suggested_threshold",
413
+ })),
414
+ Schema.Null,
415
+ ])),
416
+ }),
417
+ Schema.Struct({
418
+ parameterSchemas: Schema.Struct({
419
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
420
+ parameterSchemas: Schema.optional(Schema.Union([
421
+ Schema.Struct({
422
+ parameters: Schema.optional(Schema.Union([
423
+ Schema.Array(Schema.Unknown),
424
+ Schema.Null,
425
+ ])),
426
+ responses: Schema.optional(Schema.Null),
427
+ }),
428
+ Schema.Null,
429
+ ])),
430
+ }).pipe(Schema.encodeKeys({
431
+ lastUpdated: "last_updated",
432
+ parameterSchemas: "parameter_schemas",
433
+ })),
434
+ }).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
435
+ Schema.Struct({
436
+ apiRouting: Schema.optional(Schema.Union([
437
+ Schema.Struct({
438
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
439
+ route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
440
+ }).pipe(Schema.encodeKeys({
441
+ lastUpdated: "last_updated",
442
+ route: "route",
443
+ })),
444
+ Schema.Null,
445
+ ])),
446
+ }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
447
+ Schema.Struct({
448
+ confidenceIntervals: Schema.optional(Schema.Union([
449
+ Schema.Struct({
450
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
451
+ suggestedThreshold: Schema.optional(Schema.Union([
452
+ Schema.Struct({
453
+ confidenceIntervals: Schema.optional(Schema.Union([
454
+ Schema.Struct({
455
+ p90: Schema.optional(Schema.Union([
456
+ Schema.Struct({
457
+ lower: Schema.optional(Schema.Union([
458
+ Schema.Number,
459
+ Schema.Null,
460
+ ])),
461
+ upper: Schema.optional(Schema.Union([
462
+ Schema.Number,
463
+ Schema.Null,
464
+ ])),
465
+ }),
466
+ Schema.Null,
467
+ ])),
468
+ p95: Schema.optional(Schema.Union([
469
+ Schema.Struct({
470
+ lower: Schema.optional(Schema.Union([
471
+ Schema.Number,
472
+ Schema.Null,
473
+ ])),
474
+ upper: Schema.optional(Schema.Union([
475
+ Schema.Number,
476
+ Schema.Null,
477
+ ])),
478
+ }),
479
+ Schema.Null,
480
+ ])),
481
+ p99: Schema.optional(Schema.Union([
482
+ Schema.Struct({
483
+ lower: Schema.optional(Schema.Union([
484
+ Schema.Number,
485
+ Schema.Null,
486
+ ])),
487
+ upper: Schema.optional(Schema.Union([
488
+ Schema.Number,
489
+ Schema.Null,
490
+ ])),
491
+ }),
492
+ Schema.Null,
493
+ ])),
494
+ }),
495
+ Schema.Null,
496
+ ])),
497
+ mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
498
+ }).pipe(Schema.encodeKeys({
499
+ confidenceIntervals: "confidence_intervals",
500
+ mean: "mean",
501
+ })),
502
+ Schema.Null,
503
+ ])),
504
+ }).pipe(Schema.encodeKeys({
505
+ lastUpdated: "last_updated",
506
+ suggestedThreshold: "suggested_threshold",
507
+ })),
508
+ Schema.Null,
509
+ ])),
510
+ }).pipe(Schema.encodeKeys({
511
+ confidenceIntervals: "confidence_intervals",
512
+ })),
513
+ Schema.Struct({
514
+ schemaInfo: Schema.optional(Schema.Union([
515
+ Schema.Struct({
516
+ activeSchema: Schema.optional(Schema.Union([
517
+ Schema.Struct({
518
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
519
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
520
+ isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
521
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
522
+ }).pipe(Schema.encodeKeys({
523
+ id: "id",
524
+ createdAt: "created_at",
525
+ isLearned: "is_learned",
526
+ name: "name",
527
+ })),
528
+ Schema.Null,
529
+ ])),
530
+ learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
531
+ mitigationAction: Schema.optional(Schema.Union([
532
+ Schema.Literal("none"),
533
+ Schema.Literal("log"),
534
+ Schema.Literal("block"),
535
+ Schema.Null,
536
+ ])),
537
+ }).pipe(Schema.encodeKeys({
538
+ activeSchema: "active_schema",
539
+ learnedAvailable: "learned_available",
540
+ mitigationAction: "mitigation_action",
541
+ })),
542
+ Schema.Null,
543
+ ])),
544
+ }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
545
+ ]),
546
+ Schema.Null,
547
+ ])),
548
+ }).pipe(Schema.encodeKeys({
549
+ endpoint: "endpoint",
550
+ host: "host",
551
+ lastUpdated: "last_updated",
552
+ method: "method",
553
+ operationId: "operation_id",
554
+ features: "features",
555
+ }))),
556
+ resultInfo: Schema.Struct({
557
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
558
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
559
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
560
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
561
+ }).pipe(Schema.encodeKeys({
562
+ count: "count",
563
+ page: "page",
564
+ perPage: "per_page",
565
+ totalCount: "total_count",
566
+ })),
567
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
568
+ export const listOperations = API.makePaginated(() => ({
569
+ input: ListOperationsRequest,
570
+ output: ListOperationsResponse,
571
+ errors: [],
572
+ pagination: {
573
+ mode: "page",
574
+ inputToken: "page",
575
+ outputToken: "resultInfo.page",
576
+ items: "result",
577
+ pageSize: "perPage",
578
+ },
579
+ }));
580
+ export const CreateOperationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
581
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
582
+ endpoint: Schema.String,
583
+ host: Schema.String,
584
+ method: Schema.Literals([
585
+ "GET",
586
+ "POST",
587
+ "HEAD",
588
+ "OPTIONS",
589
+ "PUT",
590
+ "DELETE",
591
+ "CONNECT",
592
+ "PATCH",
593
+ "TRACE",
594
+ ]),
595
+ }).pipe(T.Http({
596
+ method: "POST",
597
+ path: "/zones/{zone_id}/api_gateway/operations/item",
598
+ }));
599
+ export const CreateOperationResponse =
600
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
366
601
  endpoint: Schema.String,
367
602
  host: Schema.String,
368
603
  lastUpdated: Schema.String,
@@ -532,230 +767,29 @@ export const ListOperationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(S
532
767
  ]),
533
768
  Schema.Null,
534
769
  ])),
535
- }).pipe(Schema.encodeKeys({
770
+ })
771
+ .pipe(Schema.encodeKeys({
536
772
  endpoint: "endpoint",
537
773
  host: "host",
538
774
  lastUpdated: "last_updated",
539
775
  method: "method",
540
776
  operationId: "operation_id",
541
777
  features: "features",
542
- })));
543
- export const listOperations = API.make(() => ({
544
- input: ListOperationsRequest,
545
- output: ListOperationsResponse,
546
- errors: [],
778
+ }))
779
+ .pipe(T.ResponsePath("result"));
780
+ export const createOperation = API.make(() => ({
781
+ input: CreateOperationRequest,
782
+ output: CreateOperationResponse,
783
+ errors: [InvalidObjectIdentifier],
547
784
  }));
548
- export const CreateOperationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
785
+ export const DeleteOperationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
786
+ operationId: Schema.String.pipe(T.HttpPath("operationId")),
549
787
  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
788
  }).pipe(T.Http({
564
- method: "POST",
565
- path: "/zones/{zone_id}/api_gateway/operations/item",
789
+ method: "DELETE",
790
+ path: "/zones/{zone_id}/api_gateway/operations/{operationId}",
566
791
  }));
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 =
792
+ export const DeleteOperationResponse =
759
793
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
760
794
  errors: Schema.Unknown,
761
795
  messages: Schema.Unknown,
@@ -786,193 +820,199 @@ export const BulkCreateOperationsRequest =
786
820
  })).pipe(T.HttpBody()),
787
821
  }).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/api_gateway/operations" }));
788
822
  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([
823
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
824
+ result: Schema.Array(Schema.Struct({
825
+ endpoint: Schema.String,
826
+ host: Schema.String,
827
+ lastUpdated: Schema.String,
828
+ method: Schema.Literals([
829
+ "GET",
830
+ "POST",
831
+ "HEAD",
832
+ "OPTIONS",
833
+ "PUT",
834
+ "DELETE",
835
+ "CONNECT",
836
+ "PATCH",
837
+ "TRACE",
838
+ ]),
839
+ operationId: Schema.String,
840
+ features: Schema.optional(Schema.Union([
841
+ Schema.Union([
842
+ Schema.Struct({
843
+ thresholds: Schema.optional(Schema.Union([
837
844
  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({
845
+ authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
846
+ dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
847
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
848
+ p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
849
+ p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
850
+ p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
851
+ periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
852
+ requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
853
+ suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
854
+ }).pipe(Schema.encodeKeys({
855
+ authIdTokens: "auth_id_tokens",
856
+ dataPoints: "data_points",
857
+ lastUpdated: "last_updated",
858
+ p50: "p50",
859
+ p90: "p90",
860
+ p99: "p99",
861
+ periodSeconds: "period_seconds",
862
+ requests: "requests",
863
+ suggestedThreshold: "suggested_threshold",
864
+ })),
865
+ Schema.Null,
866
+ ])),
867
+ }),
868
+ Schema.Struct({
869
+ parameterSchemas: Schema.Struct({
866
870
  lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
867
- suggestedThreshold: Schema.optional(Schema.Union([
871
+ parameterSchemas: Schema.optional(Schema.Union([
868
872
  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
- }),
873
+ parameters: Schema.optional(Schema.Union([
874
+ Schema.Array(Schema.Unknown),
911
875
  Schema.Null,
912
876
  ])),
913
- mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
914
- }).pipe(Schema.encodeKeys({
915
- confidenceIntervals: "confidence_intervals",
916
- mean: "mean",
917
- })),
877
+ responses: Schema.optional(Schema.Null),
878
+ }),
918
879
  Schema.Null,
919
880
  ])),
920
881
  }).pipe(Schema.encodeKeys({
921
882
  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",
883
+ parameterSchemas: "parameter_schemas",
957
884
  })),
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(() => ({
885
+ }).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
886
+ Schema.Struct({
887
+ apiRouting: Schema.optional(Schema.Union([
888
+ Schema.Struct({
889
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
890
+ route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
891
+ }).pipe(Schema.encodeKeys({
892
+ lastUpdated: "last_updated",
893
+ route: "route",
894
+ })),
895
+ Schema.Null,
896
+ ])),
897
+ }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
898
+ Schema.Struct({
899
+ confidenceIntervals: Schema.optional(Schema.Union([
900
+ Schema.Struct({
901
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
902
+ suggestedThreshold: Schema.optional(Schema.Union([
903
+ Schema.Struct({
904
+ confidenceIntervals: Schema.optional(Schema.Union([
905
+ Schema.Struct({
906
+ p90: Schema.optional(Schema.Union([
907
+ Schema.Struct({
908
+ lower: Schema.optional(Schema.Union([
909
+ Schema.Number,
910
+ Schema.Null,
911
+ ])),
912
+ upper: Schema.optional(Schema.Union([
913
+ Schema.Number,
914
+ Schema.Null,
915
+ ])),
916
+ }),
917
+ Schema.Null,
918
+ ])),
919
+ p95: Schema.optional(Schema.Union([
920
+ Schema.Struct({
921
+ lower: Schema.optional(Schema.Union([
922
+ Schema.Number,
923
+ Schema.Null,
924
+ ])),
925
+ upper: Schema.optional(Schema.Union([
926
+ Schema.Number,
927
+ Schema.Null,
928
+ ])),
929
+ }),
930
+ Schema.Null,
931
+ ])),
932
+ p99: Schema.optional(Schema.Union([
933
+ Schema.Struct({
934
+ lower: Schema.optional(Schema.Union([
935
+ Schema.Number,
936
+ Schema.Null,
937
+ ])),
938
+ upper: Schema.optional(Schema.Union([
939
+ Schema.Number,
940
+ Schema.Null,
941
+ ])),
942
+ }),
943
+ Schema.Null,
944
+ ])),
945
+ }),
946
+ Schema.Null,
947
+ ])),
948
+ mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
949
+ }).pipe(Schema.encodeKeys({
950
+ confidenceIntervals: "confidence_intervals",
951
+ mean: "mean",
952
+ })),
953
+ Schema.Null,
954
+ ])),
955
+ }).pipe(Schema.encodeKeys({
956
+ lastUpdated: "last_updated",
957
+ suggestedThreshold: "suggested_threshold",
958
+ })),
959
+ Schema.Null,
960
+ ])),
961
+ }).pipe(Schema.encodeKeys({
962
+ confidenceIntervals: "confidence_intervals",
963
+ })),
964
+ Schema.Struct({
965
+ schemaInfo: Schema.optional(Schema.Union([
966
+ Schema.Struct({
967
+ activeSchema: Schema.optional(Schema.Union([
968
+ Schema.Struct({
969
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
970
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
971
+ isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
972
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
973
+ }).pipe(Schema.encodeKeys({
974
+ id: "id",
975
+ createdAt: "created_at",
976
+ isLearned: "is_learned",
977
+ name: "name",
978
+ })),
979
+ Schema.Null,
980
+ ])),
981
+ learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
982
+ mitigationAction: Schema.optional(Schema.Union([
983
+ Schema.Literal("none"),
984
+ Schema.Literal("log"),
985
+ Schema.Literal("block"),
986
+ Schema.Null,
987
+ ])),
988
+ }).pipe(Schema.encodeKeys({
989
+ activeSchema: "active_schema",
990
+ learnedAvailable: "learned_available",
991
+ mitigationAction: "mitigation_action",
992
+ })),
993
+ Schema.Null,
994
+ ])),
995
+ }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
996
+ ]),
997
+ Schema.Null,
998
+ ])),
999
+ }).pipe(Schema.encodeKeys({
1000
+ endpoint: "endpoint",
1001
+ host: "host",
1002
+ lastUpdated: "last_updated",
1003
+ method: "method",
1004
+ operationId: "operation_id",
1005
+ features: "features",
1006
+ }))),
1007
+ });
1008
+ export const bulkCreateOperations = API.makePaginated(() => ({
973
1009
  input: BulkCreateOperationsRequest,
974
1010
  output: BulkCreateOperationsResponse,
975
1011
  errors: [],
1012
+ pagination: {
1013
+ mode: "single",
1014
+ items: "result",
1015
+ },
976
1016
  }));
977
1017
  export const BulkDeleteOperationsRequest =
978
1018
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1059,7 +1099,7 @@ export const PatchOperationSchemaValidationRequest =
1059
1099
  path: "/zones/{zone_id}/api_gateway/operations/schema_validation",
1060
1100
  }));
1061
1101
  export const PatchOperationSchemaValidationResponse =
1062
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
1102
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.ResponsePath("result"));
1063
1103
  export const patchOperationSchemaValidation = API.make(() => ({
1064
1104
  input: PatchOperationSchemaValidationRequest,
1065
1105
  output: PatchOperationSchemaValidationResponse,
@@ -1073,7 +1113,7 @@ export const ListSchemasRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1073
1113
  export const ListSchemasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1074
1114
  schemas: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
1075
1115
  timestamp: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1076
- });
1116
+ }).pipe(T.ResponsePath("result"));
1077
1117
  export const listSchemas = API.make(() => ({
1078
1118
  input: ListSchemasRequest,
1079
1119
  output: ListSchemasResponse,
@@ -1163,14 +1203,16 @@ export const GetUserSchemaResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1163
1203
  schemaId: Schema.String,
1164
1204
  source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1165
1205
  validationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1166
- }).pipe(Schema.encodeKeys({
1206
+ })
1207
+ .pipe(Schema.encodeKeys({
1167
1208
  createdAt: "created_at",
1168
1209
  kind: "kind",
1169
1210
  name: "name",
1170
1211
  schemaId: "schema_id",
1171
1212
  source: "source",
1172
1213
  validationEnabled: "validation_enabled",
1173
- }));
1214
+ }))
1215
+ .pipe(T.ResponsePath("result"));
1174
1216
  export const getUserSchema = API.make(() => ({
1175
1217
  input: GetUserSchemaRequest,
1176
1218
  output: GetUserSchemaResponse,
@@ -1181,25 +1223,46 @@ export const ListUserSchemasRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1181
1223
  omitSource: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("omit_source")),
1182
1224
  validationEnabled: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("validation_enabled")),
1183
1225
  }).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(() => ({
1226
+ export const ListUserSchemasResponse =
1227
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1228
+ result: Schema.Array(Schema.Struct({
1229
+ createdAt: Schema.String,
1230
+ kind: Schema.Literal("openapi_v3"),
1231
+ name: Schema.String,
1232
+ schemaId: Schema.String,
1233
+ source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1234
+ validationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1235
+ }).pipe(Schema.encodeKeys({
1236
+ createdAt: "created_at",
1237
+ kind: "kind",
1238
+ name: "name",
1239
+ schemaId: "schema_id",
1240
+ source: "source",
1241
+ validationEnabled: "validation_enabled",
1242
+ }))),
1243
+ resultInfo: Schema.Struct({
1244
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1245
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1246
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1247
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1248
+ }).pipe(Schema.encodeKeys({
1249
+ count: "count",
1250
+ page: "page",
1251
+ perPage: "per_page",
1252
+ totalCount: "total_count",
1253
+ })),
1254
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1255
+ export const listUserSchemas = API.makePaginated(() => ({
1200
1256
  input: ListUserSchemasRequest,
1201
1257
  output: ListUserSchemasResponse,
1202
1258
  errors: [],
1259
+ pagination: {
1260
+ mode: "page",
1261
+ inputToken: "page",
1262
+ outputToken: "resultInfo.page",
1263
+ items: "result",
1264
+ pageSize: "perPage",
1265
+ },
1203
1266
  }));
1204
1267
  export const CreateUserSchemaRequest =
1205
1268
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1248,7 +1311,9 @@ export const CreateUserSchemaResponse =
1248
1311
  }),
1249
1312
  Schema.Null,
1250
1313
  ])),
1251
- }).pipe(Schema.encodeKeys({ schema: "schema", uploadDetails: "upload_details" }));
1314
+ })
1315
+ .pipe(Schema.encodeKeys({ schema: "schema", uploadDetails: "upload_details" }))
1316
+ .pipe(T.ResponsePath("result"));
1252
1317
  export const createUserSchema = API.make(() => ({
1253
1318
  input: CreateUserSchemaRequest,
1254
1319
  output: CreateUserSchemaResponse,
@@ -1270,14 +1335,16 @@ export const PatchUserSchemaResponse =
1270
1335
  schemaId: Schema.String,
1271
1336
  source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1272
1337
  validationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1273
- }).pipe(Schema.encodeKeys({
1338
+ })
1339
+ .pipe(Schema.encodeKeys({
1274
1340
  createdAt: "created_at",
1275
1341
  kind: "kind",
1276
1342
  name: "name",
1277
1343
  schemaId: "schema_id",
1278
1344
  source: "source",
1279
1345
  validationEnabled: "validation_enabled",
1280
- }));
1346
+ }))
1347
+ .pipe(T.ResponsePath("result"));
1281
1348
  export const patchUserSchema = API.make(() => ({
1282
1349
  input: PatchUserSchemaRequest,
1283
1350
  output: PatchUserSchemaResponse,
@@ -1310,21 +1377,41 @@ export const ListUserSchemaHostsRequest =
1310
1377
  path: "/zones/{zone_id}/api_gateway/user_schemas/hosts",
1311
1378
  }));
1312
1379
  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(() => ({
1380
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1381
+ result: Schema.Array(Schema.Struct({
1382
+ createdAt: Schema.String,
1383
+ hosts: Schema.Array(Schema.String),
1384
+ name: Schema.String,
1385
+ schemaId: Schema.String,
1386
+ }).pipe(Schema.encodeKeys({
1387
+ createdAt: "created_at",
1388
+ hosts: "hosts",
1389
+ name: "name",
1390
+ schemaId: "schema_id",
1391
+ }))),
1392
+ resultInfo: Schema.Struct({
1393
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1394
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1395
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1396
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1397
+ }).pipe(Schema.encodeKeys({
1398
+ count: "count",
1399
+ page: "page",
1400
+ perPage: "per_page",
1401
+ totalCount: "total_count",
1402
+ })),
1403
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1404
+ export const listUserSchemaHosts = API.makePaginated(() => ({
1325
1405
  input: ListUserSchemaHostsRequest,
1326
1406
  output: ListUserSchemaHostsResponse,
1327
1407
  errors: [],
1408
+ pagination: {
1409
+ mode: "page",
1410
+ inputToken: "page",
1411
+ outputToken: "resultInfo.page",
1412
+ items: "result",
1413
+ pageSize: "perPage",
1414
+ },
1328
1415
  }));
1329
1416
  export const ListUserSchemaOperationsRequest =
1330
1417
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1340,209 +1427,229 @@ export const ListUserSchemaOperationsRequest =
1340
1427
  path: "/zones/{zone_id}/api_gateway/user_schemas/{schemaId}/operations",
1341
1428
  }));
1342
1429
  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([
1430
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1431
+ result: Schema.Array(Schema.Union([
1432
+ Schema.Struct({
1433
+ endpoint: Schema.String,
1434
+ host: Schema.String,
1435
+ lastUpdated: Schema.String,
1436
+ method: Schema.Literals([
1437
+ "GET",
1438
+ "POST",
1439
+ "HEAD",
1440
+ "OPTIONS",
1441
+ "PUT",
1442
+ "DELETE",
1443
+ "CONNECT",
1444
+ "PATCH",
1445
+ "TRACE",
1446
+ ]),
1447
+ operationId: Schema.String,
1448
+ features: Schema.optional(Schema.Union([
1449
+ Schema.Union([
1450
+ Schema.Struct({
1451
+ thresholds: Schema.optional(Schema.Union([
1392
1452
  Schema.Struct({
1393
- parameters: Schema.optional(Schema.Union([
1394
- Schema.Array(Schema.Unknown),
1395
- Schema.Null,
1396
- ])),
1397
- responses: Schema.optional(Schema.Null),
1398
- }),
1453
+ authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1454
+ dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1455
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1456
+ p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1457
+ p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1458
+ p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1459
+ periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1460
+ requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1461
+ suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1462
+ }).pipe(Schema.encodeKeys({
1463
+ authIdTokens: "auth_id_tokens",
1464
+ dataPoints: "data_points",
1465
+ lastUpdated: "last_updated",
1466
+ p50: "p50",
1467
+ p90: "p90",
1468
+ p99: "p99",
1469
+ periodSeconds: "period_seconds",
1470
+ requests: "requests",
1471
+ suggestedThreshold: "suggested_threshold",
1472
+ })),
1399
1473
  Schema.Null,
1400
1474
  ])),
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({
1475
+ }),
1476
+ Schema.Struct({
1477
+ parameterSchemas: Schema.Struct({
1421
1478
  lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1422
- suggestedThreshold: Schema.optional(Schema.Union([
1479
+ parameterSchemas: Schema.optional(Schema.Union([
1423
1480
  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
- }),
1481
+ parameters: Schema.optional(Schema.Union([
1482
+ Schema.Array(Schema.Unknown),
1466
1483
  Schema.Null,
1467
1484
  ])),
1468
- mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1469
- }).pipe(Schema.encodeKeys({
1470
- confidenceIntervals: "confidence_intervals",
1471
- mean: "mean",
1472
- })),
1485
+ responses: Schema.optional(Schema.Null),
1486
+ }),
1473
1487
  Schema.Null,
1474
1488
  ])),
1475
1489
  }).pipe(Schema.encodeKeys({
1476
1490
  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",
1491
+ parameterSchemas: "parameter_schemas",
1512
1492
  })),
1513
- Schema.Null,
1514
- ])),
1515
- }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
1493
+ }).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
1494
+ Schema.Struct({
1495
+ apiRouting: Schema.optional(Schema.Union([
1496
+ Schema.Struct({
1497
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1498
+ route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1499
+ }).pipe(Schema.encodeKeys({
1500
+ lastUpdated: "last_updated",
1501
+ route: "route",
1502
+ })),
1503
+ Schema.Null,
1504
+ ])),
1505
+ }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
1506
+ Schema.Struct({
1507
+ confidenceIntervals: Schema.optional(Schema.Union([
1508
+ Schema.Struct({
1509
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1510
+ suggestedThreshold: Schema.optional(Schema.Union([
1511
+ Schema.Struct({
1512
+ confidenceIntervals: Schema.optional(Schema.Union([
1513
+ Schema.Struct({
1514
+ p90: Schema.optional(Schema.Union([
1515
+ Schema.Struct({
1516
+ lower: Schema.optional(Schema.Union([
1517
+ Schema.Number,
1518
+ Schema.Null,
1519
+ ])),
1520
+ upper: Schema.optional(Schema.Union([
1521
+ Schema.Number,
1522
+ Schema.Null,
1523
+ ])),
1524
+ }),
1525
+ Schema.Null,
1526
+ ])),
1527
+ p95: Schema.optional(Schema.Union([
1528
+ Schema.Struct({
1529
+ lower: Schema.optional(Schema.Union([
1530
+ Schema.Number,
1531
+ Schema.Null,
1532
+ ])),
1533
+ upper: Schema.optional(Schema.Union([
1534
+ Schema.Number,
1535
+ Schema.Null,
1536
+ ])),
1537
+ }),
1538
+ Schema.Null,
1539
+ ])),
1540
+ p99: Schema.optional(Schema.Union([
1541
+ Schema.Struct({
1542
+ lower: Schema.optional(Schema.Union([
1543
+ Schema.Number,
1544
+ Schema.Null,
1545
+ ])),
1546
+ upper: Schema.optional(Schema.Union([
1547
+ Schema.Number,
1548
+ Schema.Null,
1549
+ ])),
1550
+ }),
1551
+ Schema.Null,
1552
+ ])),
1553
+ }),
1554
+ Schema.Null,
1555
+ ])),
1556
+ mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1557
+ }).pipe(Schema.encodeKeys({
1558
+ confidenceIntervals: "confidence_intervals",
1559
+ mean: "mean",
1560
+ })),
1561
+ Schema.Null,
1562
+ ])),
1563
+ }).pipe(Schema.encodeKeys({
1564
+ lastUpdated: "last_updated",
1565
+ suggestedThreshold: "suggested_threshold",
1566
+ })),
1567
+ Schema.Null,
1568
+ ])),
1569
+ }).pipe(Schema.encodeKeys({
1570
+ confidenceIntervals: "confidence_intervals",
1571
+ })),
1572
+ Schema.Struct({
1573
+ schemaInfo: Schema.optional(Schema.Union([
1574
+ Schema.Struct({
1575
+ activeSchema: Schema.optional(Schema.Union([
1576
+ Schema.Struct({
1577
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1578
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1579
+ isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1580
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1581
+ }).pipe(Schema.encodeKeys({
1582
+ id: "id",
1583
+ createdAt: "created_at",
1584
+ isLearned: "is_learned",
1585
+ name: "name",
1586
+ })),
1587
+ Schema.Null,
1588
+ ])),
1589
+ learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1590
+ mitigationAction: Schema.optional(Schema.Union([
1591
+ Schema.Literal("none"),
1592
+ Schema.Literal("log"),
1593
+ Schema.Literal("block"),
1594
+ Schema.Null,
1595
+ ])),
1596
+ }).pipe(Schema.encodeKeys({
1597
+ activeSchema: "active_schema",
1598
+ learnedAvailable: "learned_available",
1599
+ mitigationAction: "mitigation_action",
1600
+ })),
1601
+ Schema.Null,
1602
+ ])),
1603
+ }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
1604
+ ]),
1605
+ Schema.Null,
1606
+ ])),
1607
+ }).pipe(Schema.encodeKeys({
1608
+ endpoint: "endpoint",
1609
+ host: "host",
1610
+ lastUpdated: "last_updated",
1611
+ method: "method",
1612
+ operationId: "operation_id",
1613
+ features: "features",
1614
+ })),
1615
+ Schema.Struct({
1616
+ endpoint: Schema.String,
1617
+ host: Schema.String,
1618
+ method: Schema.Literals([
1619
+ "GET",
1620
+ "POST",
1621
+ "HEAD",
1622
+ "OPTIONS",
1623
+ "PUT",
1624
+ "DELETE",
1625
+ "CONNECT",
1626
+ "PATCH",
1627
+ "TRACE",
1516
1628
  ]),
1517
- Schema.Null,
1518
- ])),
1629
+ }),
1630
+ ])),
1631
+ resultInfo: Schema.Struct({
1632
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1633
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1634
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1635
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1519
1636
  }).pipe(Schema.encodeKeys({
1520
- endpoint: "endpoint",
1521
- host: "host",
1522
- lastUpdated: "last_updated",
1523
- method: "method",
1524
- operationId: "operation_id",
1525
- features: "features",
1637
+ count: "count",
1638
+ page: "page",
1639
+ perPage: "per_page",
1640
+ totalCount: "total_count",
1526
1641
  })),
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(() => ({
1642
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1643
+ export const listUserSchemaOperations = API.makePaginated(() => ({
1544
1644
  input: ListUserSchemaOperationsRequest,
1545
1645
  output: ListUserSchemaOperationsResponse,
1546
1646
  errors: [],
1647
+ pagination: {
1648
+ mode: "page",
1649
+ inputToken: "page",
1650
+ outputToken: "resultInfo.page",
1651
+ items: "result",
1652
+ pageSize: "perPage",
1653
+ },
1547
1654
  }));
1548
1655
  //# sourceMappingURL=api-gateway.js.map