@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
@@ -5,6 +5,7 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service api-gateway
6
6
  */
7
7
 
8
+ import * as stream from "effect/Stream";
8
9
  import * as Schema from "effect/Schema";
9
10
  import type * as HttpClient from "effect/unstable/http/HttpClient";
10
11
  import * as API from "../client/api.ts";
@@ -84,9 +85,13 @@ export const GetConfigurationResponse =
84
85
  }),
85
86
  ]),
86
87
  ),
87
- }).pipe(
88
- Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }),
89
- ) as unknown as Schema.Schema<GetConfigurationResponse>;
88
+ })
89
+ .pipe(
90
+ Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }),
91
+ )
92
+ .pipe(
93
+ T.ResponsePath("result"),
94
+ ) as unknown as Schema.Schema<GetConfigurationResponse>;
90
95
 
91
96
  export type GetConfigurationError =
92
97
  | DefaultErrors
@@ -161,9 +166,13 @@ export const PutConfigurationResponse =
161
166
  }),
162
167
  ]),
163
168
  ),
164
- }).pipe(
165
- Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }),
166
- ) as unknown as Schema.Schema<PutConfigurationResponse>;
169
+ })
170
+ .pipe(
171
+ Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }),
172
+ )
173
+ .pipe(
174
+ T.ResponsePath("result"),
175
+ ) as unknown as Schema.Schema<PutConfigurationResponse>;
167
176
 
168
177
  export type PutConfigurationError =
169
178
  | DefaultErrors
@@ -204,7 +213,9 @@ export interface GetDiscoveryResponse {
204
213
  export const GetDiscoveryResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
205
214
  schemas: Schema.Array(Schema.Unknown),
206
215
  timestamp: Schema.String,
207
- }) as unknown as Schema.Schema<GetDiscoveryResponse>;
216
+ }).pipe(
217
+ T.ResponsePath("result"),
218
+ ) as unknown as Schema.Schema<GetDiscoveryResponse>;
208
219
 
209
220
  export type GetDiscoveryError =
210
221
  | DefaultErrors
@@ -339,7 +350,9 @@ export const PatchDiscoveryOperationResponse =
339
350
  Schema.Null,
340
351
  ]),
341
352
  ),
342
- }) as unknown as Schema.Schema<PatchDiscoveryOperationResponse>;
353
+ }).pipe(
354
+ T.ResponsePath("result"),
355
+ ) as unknown as Schema.Schema<PatchDiscoveryOperationResponse>;
343
356
 
344
357
  export type PatchDiscoveryOperationError =
345
358
  | DefaultErrors
@@ -378,8 +391,8 @@ export const BulkPatchDiscoveryOperationsRequest =
378
391
  export type BulkPatchDiscoveryOperationsResponse = Record<string, unknown>;
379
392
 
380
393
  export const BulkPatchDiscoveryOperationsResponse =
381
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
382
- {},
394
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
395
+ T.ResponsePath("result"),
383
396
  ) as unknown as Schema.Schema<BulkPatchDiscoveryOperationsResponse>;
384
397
 
385
398
  export type BulkPatchDiscoveryOperationsError =
@@ -431,7 +444,9 @@ export const CreateExpressionTemplateFallthroughResponse =
431
444
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
432
445
  expression: Schema.String,
433
446
  title: Schema.String,
434
- }) as unknown as Schema.Schema<CreateExpressionTemplateFallthroughResponse>;
447
+ }).pipe(
448
+ T.ResponsePath("result"),
449
+ ) as unknown as Schema.Schema<CreateExpressionTemplateFallthroughResponse>;
435
450
 
436
451
  export type CreateExpressionTemplateFallthroughError =
437
452
  | DefaultErrors
@@ -797,16 +812,20 @@ export const GetOperationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
797
812
  Schema.Null,
798
813
  ]),
799
814
  ),
800
- }).pipe(
801
- Schema.encodeKeys({
802
- endpoint: "endpoint",
803
- host: "host",
804
- lastUpdated: "last_updated",
805
- method: "method",
806
- operationId: "operation_id",
807
- features: "features",
808
- }),
809
- ) as unknown as Schema.Schema<GetOperationResponse>;
815
+ })
816
+ .pipe(
817
+ Schema.encodeKeys({
818
+ endpoint: "endpoint",
819
+ host: "host",
820
+ lastUpdated: "last_updated",
821
+ method: "method",
822
+ operationId: "operation_id",
823
+ features: "features",
824
+ }),
825
+ )
826
+ .pipe(
827
+ T.ResponsePath("result"),
828
+ ) as unknown as Schema.Schema<GetOperationResponse>;
810
829
 
811
830
  export type GetOperationError =
812
831
  | DefaultErrors
@@ -863,366 +882,490 @@ export const ListOperationsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
863
882
  T.Http({ method: "GET", path: "/zones/{zone_id}/api_gateway/operations" }),
864
883
  ) as unknown as Schema.Schema<ListOperationsRequest>;
865
884
 
866
- export type ListOperationsResponse = {
867
- endpoint: string;
868
- host: string;
869
- lastUpdated: string;
870
- method:
871
- | "GET"
872
- | "POST"
873
- | "HEAD"
874
- | "OPTIONS"
875
- | "PUT"
876
- | "DELETE"
877
- | "CONNECT"
878
- | "PATCH"
879
- | "TRACE";
880
- operationId: string;
881
- features?:
882
- | {
883
- thresholds?: {
884
- authIdTokens?: number | null;
885
- dataPoints?: number | null;
886
- lastUpdated?: string | null;
887
- p50?: number | null;
888
- p90?: number | null;
889
- p99?: number | null;
890
- periodSeconds?: number | null;
891
- requests?: number | null;
892
- suggestedThreshold?: number | null;
893
- } | null;
894
- }
895
- | {
896
- parameterSchemas: {
897
- lastUpdated?: string | null;
898
- parameterSchemas?: {
899
- parameters?: unknown[] | null;
900
- responses?: null;
885
+ export interface ListOperationsResponse {
886
+ result: {
887
+ endpoint: string;
888
+ host: string;
889
+ lastUpdated: string;
890
+ method:
891
+ | "GET"
892
+ | "POST"
893
+ | "HEAD"
894
+ | "OPTIONS"
895
+ | "PUT"
896
+ | "DELETE"
897
+ | "CONNECT"
898
+ | "PATCH"
899
+ | "TRACE";
900
+ operationId: string;
901
+ features?:
902
+ | {
903
+ thresholds?: {
904
+ authIdTokens?: number | null;
905
+ dataPoints?: number | null;
906
+ lastUpdated?: string | null;
907
+ p50?: number | null;
908
+ p90?: number | null;
909
+ p99?: number | null;
910
+ periodSeconds?: number | null;
911
+ requests?: number | null;
912
+ suggestedThreshold?: number | null;
901
913
  } | null;
902
- };
903
- }
904
- | {
905
- apiRouting?: {
906
- lastUpdated?: string | null;
907
- route?: string | null;
908
- } | null;
909
- }
910
- | {
911
- confidenceIntervals?: {
912
- lastUpdated?: string | null;
913
- suggestedThreshold?: {
914
- confidenceIntervals?: {
915
- p90?: { lower?: number | null; upper?: number | null } | null;
916
- p95?: { lower?: number | null; upper?: number | null } | null;
917
- p99?: { lower?: number | null; upper?: number | null } | null;
914
+ }
915
+ | {
916
+ parameterSchemas: {
917
+ lastUpdated?: string | null;
918
+ parameterSchemas?: {
919
+ parameters?: unknown[] | null;
920
+ responses?: null;
918
921
  } | null;
919
- mean?: number | null;
922
+ };
923
+ }
924
+ | {
925
+ apiRouting?: {
926
+ lastUpdated?: string | null;
927
+ route?: string | null;
920
928
  } | null;
921
- } | null;
922
- }
923
- | {
924
- schemaInfo?: {
925
- activeSchema?: {
926
- id?: string | null;
927
- createdAt?: string | null;
928
- isLearned?: boolean | null;
929
- name?: string | null;
929
+ }
930
+ | {
931
+ confidenceIntervals?: {
932
+ lastUpdated?: string | null;
933
+ suggestedThreshold?: {
934
+ confidenceIntervals?: {
935
+ p90?: { lower?: number | null; upper?: number | null } | null;
936
+ p95?: { lower?: number | null; upper?: number | null } | null;
937
+ p99?: { lower?: number | null; upper?: number | null } | null;
938
+ } | null;
939
+ mean?: number | null;
940
+ } | null;
930
941
  } | null;
931
- learnedAvailable?: boolean | null;
932
- mitigationAction?: "none" | "log" | "block" | null;
933
- } | null;
934
- }
935
- | null;
936
- }[];
942
+ }
943
+ | {
944
+ schemaInfo?: {
945
+ activeSchema?: {
946
+ id?: string | null;
947
+ createdAt?: string | null;
948
+ isLearned?: boolean | null;
949
+ name?: string | null;
950
+ } | null;
951
+ learnedAvailable?: boolean | null;
952
+ mitigationAction?: "none" | "log" | "block" | null;
953
+ } | null;
954
+ }
955
+ | null;
956
+ }[];
957
+ resultInfo: {
958
+ count?: number | null;
959
+ page?: number | null;
960
+ perPage?: number | null;
961
+ totalCount?: number | null;
962
+ };
963
+ }
937
964
 
938
- export const ListOperationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
939
- Schema.Struct({
940
- endpoint: Schema.String,
941
- host: Schema.String,
942
- lastUpdated: Schema.String,
943
- method: Schema.Literals([
944
- "GET",
945
- "POST",
946
- "HEAD",
947
- "OPTIONS",
948
- "PUT",
949
- "DELETE",
950
- "CONNECT",
951
- "PATCH",
952
- "TRACE",
953
- ]),
954
- operationId: Schema.String,
955
- features: Schema.optional(
956
- Schema.Union([
957
- Schema.Union([
958
- Schema.Struct({
959
- thresholds: Schema.optional(
960
- Schema.Union([
961
- Schema.Struct({
962
- authIdTokens: Schema.optional(
963
- Schema.Union([Schema.Number, Schema.Null]),
964
- ),
965
- dataPoints: Schema.optional(
966
- Schema.Union([Schema.Number, Schema.Null]),
967
- ),
965
+ export const ListOperationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
966
+ {
967
+ result: Schema.Array(
968
+ Schema.Struct({
969
+ endpoint: Schema.String,
970
+ host: Schema.String,
971
+ lastUpdated: Schema.String,
972
+ method: Schema.Literals([
973
+ "GET",
974
+ "POST",
975
+ "HEAD",
976
+ "OPTIONS",
977
+ "PUT",
978
+ "DELETE",
979
+ "CONNECT",
980
+ "PATCH",
981
+ "TRACE",
982
+ ]),
983
+ operationId: Schema.String,
984
+ features: Schema.optional(
985
+ Schema.Union([
986
+ Schema.Union([
987
+ Schema.Struct({
988
+ thresholds: Schema.optional(
989
+ Schema.Union([
990
+ Schema.Struct({
991
+ authIdTokens: Schema.optional(
992
+ Schema.Union([Schema.Number, Schema.Null]),
993
+ ),
994
+ dataPoints: Schema.optional(
995
+ Schema.Union([Schema.Number, Schema.Null]),
996
+ ),
997
+ lastUpdated: Schema.optional(
998
+ Schema.Union([Schema.String, Schema.Null]),
999
+ ),
1000
+ p50: Schema.optional(
1001
+ Schema.Union([Schema.Number, Schema.Null]),
1002
+ ),
1003
+ p90: Schema.optional(
1004
+ Schema.Union([Schema.Number, Schema.Null]),
1005
+ ),
1006
+ p99: Schema.optional(
1007
+ Schema.Union([Schema.Number, Schema.Null]),
1008
+ ),
1009
+ periodSeconds: Schema.optional(
1010
+ Schema.Union([Schema.Number, Schema.Null]),
1011
+ ),
1012
+ requests: Schema.optional(
1013
+ Schema.Union([Schema.Number, Schema.Null]),
1014
+ ),
1015
+ suggestedThreshold: Schema.optional(
1016
+ Schema.Union([Schema.Number, Schema.Null]),
1017
+ ),
1018
+ }).pipe(
1019
+ Schema.encodeKeys({
1020
+ authIdTokens: "auth_id_tokens",
1021
+ dataPoints: "data_points",
1022
+ lastUpdated: "last_updated",
1023
+ p50: "p50",
1024
+ p90: "p90",
1025
+ p99: "p99",
1026
+ periodSeconds: "period_seconds",
1027
+ requests: "requests",
1028
+ suggestedThreshold: "suggested_threshold",
1029
+ }),
1030
+ ),
1031
+ Schema.Null,
1032
+ ]),
1033
+ ),
1034
+ }),
1035
+ Schema.Struct({
1036
+ parameterSchemas: Schema.Struct({
968
1037
  lastUpdated: Schema.optional(
969
1038
  Schema.Union([Schema.String, Schema.Null]),
970
1039
  ),
971
- p50: Schema.optional(
972
- Schema.Union([Schema.Number, Schema.Null]),
973
- ),
974
- p90: Schema.optional(
975
- Schema.Union([Schema.Number, Schema.Null]),
976
- ),
977
- p99: Schema.optional(
978
- Schema.Union([Schema.Number, Schema.Null]),
979
- ),
980
- periodSeconds: Schema.optional(
981
- Schema.Union([Schema.Number, Schema.Null]),
982
- ),
983
- requests: Schema.optional(
984
- Schema.Union([Schema.Number, Schema.Null]),
985
- ),
986
- suggestedThreshold: Schema.optional(
987
- Schema.Union([Schema.Number, Schema.Null]),
1040
+ parameterSchemas: Schema.optional(
1041
+ Schema.Union([
1042
+ Schema.Struct({
1043
+ parameters: Schema.optional(
1044
+ Schema.Union([
1045
+ Schema.Array(Schema.Unknown),
1046
+ Schema.Null,
1047
+ ]),
1048
+ ),
1049
+ responses: Schema.optional(Schema.Null),
1050
+ }),
1051
+ Schema.Null,
1052
+ ]),
988
1053
  ),
989
1054
  }).pipe(
990
1055
  Schema.encodeKeys({
991
- authIdTokens: "auth_id_tokens",
992
- dataPoints: "data_points",
993
1056
  lastUpdated: "last_updated",
994
- p50: "p50",
995
- p90: "p90",
996
- p99: "p99",
997
- periodSeconds: "period_seconds",
998
- requests: "requests",
999
- suggestedThreshold: "suggested_threshold",
1057
+ parameterSchemas: "parameter_schemas",
1000
1058
  }),
1001
1059
  ),
1002
- Schema.Null,
1003
- ]),
1004
- ),
1005
- }),
1006
- Schema.Struct({
1007
- parameterSchemas: Schema.Struct({
1008
- lastUpdated: Schema.optional(
1009
- Schema.Union([Schema.String, Schema.Null]),
1060
+ }).pipe(
1061
+ Schema.encodeKeys({ parameterSchemas: "parameter_schemas" }),
1010
1062
  ),
1011
- parameterSchemas: Schema.optional(
1012
- Schema.Union([
1013
- Schema.Struct({
1014
- parameters: Schema.optional(
1015
- Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
1016
- ),
1017
- responses: Schema.optional(Schema.Null),
1018
- }),
1019
- Schema.Null,
1020
- ]),
1021
- ),
1022
- }).pipe(
1023
- Schema.encodeKeys({
1024
- lastUpdated: "last_updated",
1025
- parameterSchemas: "parameter_schemas",
1026
- }),
1027
- ),
1028
- }).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
1029
- Schema.Struct({
1030
- apiRouting: Schema.optional(
1031
- Schema.Union([
1032
- Schema.Struct({
1033
- lastUpdated: Schema.optional(
1034
- Schema.Union([Schema.String, Schema.Null]),
1035
- ),
1036
- route: Schema.optional(
1037
- Schema.Union([Schema.String, Schema.Null]),
1038
- ),
1039
- }).pipe(
1040
- Schema.encodeKeys({
1041
- lastUpdated: "last_updated",
1042
- route: "route",
1043
- }),
1063
+ Schema.Struct({
1064
+ apiRouting: Schema.optional(
1065
+ Schema.Union([
1066
+ Schema.Struct({
1067
+ lastUpdated: Schema.optional(
1068
+ Schema.Union([Schema.String, Schema.Null]),
1069
+ ),
1070
+ route: Schema.optional(
1071
+ Schema.Union([Schema.String, Schema.Null]),
1072
+ ),
1073
+ }).pipe(
1074
+ Schema.encodeKeys({
1075
+ lastUpdated: "last_updated",
1076
+ route: "route",
1077
+ }),
1078
+ ),
1079
+ Schema.Null,
1080
+ ]),
1044
1081
  ),
1045
- Schema.Null,
1046
- ]),
1047
- ),
1048
- }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
1049
- Schema.Struct({
1050
- confidenceIntervals: Schema.optional(
1051
- Schema.Union([
1052
- Schema.Struct({
1053
- lastUpdated: Schema.optional(
1054
- Schema.Union([Schema.String, Schema.Null]),
1055
- ),
1056
- suggestedThreshold: Schema.optional(
1057
- Schema.Union([
1058
- Schema.Struct({
1059
- confidenceIntervals: Schema.optional(
1060
- Schema.Union([
1061
- Schema.Struct({
1062
- p90: Schema.optional(
1063
- Schema.Union([
1064
- Schema.Struct({
1065
- lower: Schema.optional(
1066
- Schema.Union([
1067
- Schema.Number,
1068
- Schema.Null,
1069
- ]),
1070
- ),
1071
- upper: Schema.optional(
1072
- Schema.Union([
1073
- Schema.Number,
1074
- Schema.Null,
1075
- ]),
1076
- ),
1077
- }),
1078
- Schema.Null,
1079
- ]),
1080
- ),
1081
- p95: Schema.optional(
1082
- Schema.Union([
1083
- Schema.Struct({
1084
- lower: Schema.optional(
1085
- Schema.Union([
1086
- Schema.Number,
1087
- Schema.Null,
1088
- ]),
1089
- ),
1090
- upper: Schema.optional(
1091
- Schema.Union([
1092
- Schema.Number,
1093
- Schema.Null,
1094
- ]),
1095
- ),
1096
- }),
1097
- Schema.Null,
1098
- ]),
1099
- ),
1100
- p99: Schema.optional(
1101
- Schema.Union([
1102
- Schema.Struct({
1103
- lower: Schema.optional(
1104
- Schema.Union([
1105
- Schema.Number,
1106
- Schema.Null,
1107
- ]),
1108
- ),
1109
- upper: Schema.optional(
1110
- Schema.Union([
1111
- Schema.Number,
1112
- Schema.Null,
1113
- ]),
1114
- ),
1115
- }),
1116
- Schema.Null,
1117
- ]),
1118
- ),
1082
+ }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
1083
+ Schema.Struct({
1084
+ confidenceIntervals: Schema.optional(
1085
+ Schema.Union([
1086
+ Schema.Struct({
1087
+ lastUpdated: Schema.optional(
1088
+ Schema.Union([Schema.String, Schema.Null]),
1089
+ ),
1090
+ suggestedThreshold: Schema.optional(
1091
+ Schema.Union([
1092
+ Schema.Struct({
1093
+ confidenceIntervals: Schema.optional(
1094
+ Schema.Union([
1095
+ Schema.Struct({
1096
+ p90: Schema.optional(
1097
+ Schema.Union([
1098
+ Schema.Struct({
1099
+ lower: Schema.optional(
1100
+ Schema.Union([
1101
+ Schema.Number,
1102
+ Schema.Null,
1103
+ ]),
1104
+ ),
1105
+ upper: Schema.optional(
1106
+ Schema.Union([
1107
+ Schema.Number,
1108
+ Schema.Null,
1109
+ ]),
1110
+ ),
1111
+ }),
1112
+ Schema.Null,
1113
+ ]),
1114
+ ),
1115
+ p95: Schema.optional(
1116
+ Schema.Union([
1117
+ Schema.Struct({
1118
+ lower: Schema.optional(
1119
+ Schema.Union([
1120
+ Schema.Number,
1121
+ Schema.Null,
1122
+ ]),
1123
+ ),
1124
+ upper: Schema.optional(
1125
+ Schema.Union([
1126
+ Schema.Number,
1127
+ Schema.Null,
1128
+ ]),
1129
+ ),
1130
+ }),
1131
+ Schema.Null,
1132
+ ]),
1133
+ ),
1134
+ p99: Schema.optional(
1135
+ Schema.Union([
1136
+ Schema.Struct({
1137
+ lower: Schema.optional(
1138
+ Schema.Union([
1139
+ Schema.Number,
1140
+ Schema.Null,
1141
+ ]),
1142
+ ),
1143
+ upper: Schema.optional(
1144
+ Schema.Union([
1145
+ Schema.Number,
1146
+ Schema.Null,
1147
+ ]),
1148
+ ),
1149
+ }),
1150
+ Schema.Null,
1151
+ ]),
1152
+ ),
1153
+ }),
1154
+ Schema.Null,
1155
+ ]),
1156
+ ),
1157
+ mean: Schema.optional(
1158
+ Schema.Union([Schema.Number, Schema.Null]),
1159
+ ),
1160
+ }).pipe(
1161
+ Schema.encodeKeys({
1162
+ confidenceIntervals: "confidence_intervals",
1163
+ mean: "mean",
1119
1164
  }),
1120
- Schema.Null,
1121
- ]),
1122
- ),
1123
- mean: Schema.optional(
1124
- Schema.Union([Schema.Number, Schema.Null]),
1125
- ),
1126
- }).pipe(
1127
- Schema.encodeKeys({
1128
- confidenceIntervals: "confidence_intervals",
1129
- mean: "mean",
1130
- }),
1165
+ ),
1166
+ Schema.Null,
1167
+ ]),
1131
1168
  ),
1132
- Schema.Null,
1133
- ]),
1134
- ),
1135
- }).pipe(
1136
- Schema.encodeKeys({
1137
- lastUpdated: "last_updated",
1138
- suggestedThreshold: "suggested_threshold",
1139
- }),
1169
+ }).pipe(
1170
+ Schema.encodeKeys({
1171
+ lastUpdated: "last_updated",
1172
+ suggestedThreshold: "suggested_threshold",
1173
+ }),
1174
+ ),
1175
+ Schema.Null,
1176
+ ]),
1140
1177
  ),
1141
- Schema.Null,
1142
- ]),
1143
- ),
1144
- }).pipe(
1145
- Schema.encodeKeys({ confidenceIntervals: "confidence_intervals" }),
1146
- ),
1147
- Schema.Struct({
1148
- schemaInfo: Schema.optional(
1149
- Schema.Union([
1150
- Schema.Struct({
1151
- activeSchema: Schema.optional(
1152
- Schema.Union([
1153
- Schema.Struct({
1154
- id: Schema.optional(
1155
- Schema.Union([Schema.String, Schema.Null]),
1156
- ),
1157
- createdAt: Schema.optional(
1158
- Schema.Union([Schema.String, Schema.Null]),
1159
- ),
1160
- isLearned: Schema.optional(
1161
- Schema.Union([Schema.Boolean, Schema.Null]),
1162
- ),
1163
- name: Schema.optional(
1164
- Schema.Union([Schema.String, Schema.Null]),
1165
- ),
1166
- }).pipe(
1167
- Schema.encodeKeys({
1168
- id: "id",
1169
- createdAt: "created_at",
1170
- isLearned: "is_learned",
1171
- name: "name",
1172
- }),
1178
+ }).pipe(
1179
+ Schema.encodeKeys({
1180
+ confidenceIntervals: "confidence_intervals",
1181
+ }),
1182
+ ),
1183
+ Schema.Struct({
1184
+ schemaInfo: Schema.optional(
1185
+ Schema.Union([
1186
+ Schema.Struct({
1187
+ activeSchema: Schema.optional(
1188
+ Schema.Union([
1189
+ Schema.Struct({
1190
+ id: Schema.optional(
1191
+ Schema.Union([Schema.String, Schema.Null]),
1192
+ ),
1193
+ createdAt: Schema.optional(
1194
+ Schema.Union([Schema.String, Schema.Null]),
1195
+ ),
1196
+ isLearned: Schema.optional(
1197
+ Schema.Union([Schema.Boolean, Schema.Null]),
1198
+ ),
1199
+ name: Schema.optional(
1200
+ Schema.Union([Schema.String, Schema.Null]),
1201
+ ),
1202
+ }).pipe(
1203
+ Schema.encodeKeys({
1204
+ id: "id",
1205
+ createdAt: "created_at",
1206
+ isLearned: "is_learned",
1207
+ name: "name",
1208
+ }),
1209
+ ),
1210
+ Schema.Null,
1211
+ ]),
1173
1212
  ),
1174
- Schema.Null,
1175
- ]),
1176
- ),
1177
- learnedAvailable: Schema.optional(
1178
- Schema.Union([Schema.Boolean, Schema.Null]),
1179
- ),
1180
- mitigationAction: Schema.optional(
1181
- Schema.Union([
1182
- Schema.Literal("none"),
1183
- Schema.Literal("log"),
1184
- Schema.Literal("block"),
1185
- Schema.Null,
1186
- ]),
1187
- ),
1188
- }).pipe(
1189
- Schema.encodeKeys({
1190
- activeSchema: "active_schema",
1191
- learnedAvailable: "learned_available",
1192
- mitigationAction: "mitigation_action",
1193
- }),
1213
+ learnedAvailable: Schema.optional(
1214
+ Schema.Union([Schema.Boolean, Schema.Null]),
1215
+ ),
1216
+ mitigationAction: Schema.optional(
1217
+ Schema.Union([
1218
+ Schema.Literal("none"),
1219
+ Schema.Literal("log"),
1220
+ Schema.Literal("block"),
1221
+ Schema.Null,
1222
+ ]),
1223
+ ),
1224
+ }).pipe(
1225
+ Schema.encodeKeys({
1226
+ activeSchema: "active_schema",
1227
+ learnedAvailable: "learned_available",
1228
+ mitigationAction: "mitigation_action",
1229
+ }),
1230
+ ),
1231
+ Schema.Null,
1232
+ ]),
1194
1233
  ),
1195
- Schema.Null,
1196
- ]),
1197
- ),
1198
- }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
1199
- ]),
1200
- Schema.Null,
1201
- ]),
1234
+ }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
1235
+ ]),
1236
+ Schema.Null,
1237
+ ]),
1238
+ ),
1239
+ }).pipe(
1240
+ Schema.encodeKeys({
1241
+ endpoint: "endpoint",
1242
+ host: "host",
1243
+ lastUpdated: "last_updated",
1244
+ method: "method",
1245
+ operationId: "operation_id",
1246
+ features: "features",
1247
+ }),
1248
+ ),
1202
1249
  ),
1203
- }).pipe(
1204
- Schema.encodeKeys({
1205
- endpoint: "endpoint",
1206
- host: "host",
1207
- lastUpdated: "last_updated",
1208
- method: "method",
1209
- operationId: "operation_id",
1210
- features: "features",
1211
- }),
1212
- ),
1250
+ resultInfo: Schema.Struct({
1251
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1252
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1253
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1254
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1255
+ }).pipe(
1256
+ Schema.encodeKeys({
1257
+ count: "count",
1258
+ page: "page",
1259
+ perPage: "per_page",
1260
+ totalCount: "total_count",
1261
+ }),
1262
+ ),
1263
+ },
1264
+ ).pipe(
1265
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
1213
1266
  ) as unknown as Schema.Schema<ListOperationsResponse>;
1214
1267
 
1215
1268
  export type ListOperationsError = DefaultErrors;
1216
1269
 
1217
- export const listOperations: API.OperationMethod<
1270
+ export const listOperations: API.PaginatedOperationMethod<
1218
1271
  ListOperationsRequest,
1219
1272
  ListOperationsResponse,
1220
1273
  ListOperationsError,
1221
1274
  Credentials | HttpClient.HttpClient
1222
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1275
+ > & {
1276
+ pages: (
1277
+ input: ListOperationsRequest,
1278
+ ) => stream.Stream<
1279
+ ListOperationsResponse,
1280
+ ListOperationsError,
1281
+ Credentials | HttpClient.HttpClient
1282
+ >;
1283
+ items: (input: ListOperationsRequest) => stream.Stream<
1284
+ {
1285
+ endpoint: string;
1286
+ host: string;
1287
+ lastUpdated: string;
1288
+ method:
1289
+ | "GET"
1290
+ | "POST"
1291
+ | "HEAD"
1292
+ | "OPTIONS"
1293
+ | "PUT"
1294
+ | "DELETE"
1295
+ | "CONNECT"
1296
+ | "PATCH"
1297
+ | "TRACE";
1298
+ operationId: string;
1299
+ features?:
1300
+ | {
1301
+ thresholds?: {
1302
+ authIdTokens?: number | null;
1303
+ dataPoints?: number | null;
1304
+ lastUpdated?: string | null;
1305
+ p50?: number | null;
1306
+ p90?: number | null;
1307
+ p99?: number | null;
1308
+ periodSeconds?: number | null;
1309
+ requests?: number | null;
1310
+ suggestedThreshold?: number | null;
1311
+ } | null;
1312
+ }
1313
+ | {
1314
+ parameterSchemas: {
1315
+ lastUpdated?: string | null;
1316
+ parameterSchemas?: {
1317
+ parameters?: unknown[] | null;
1318
+ responses?: null;
1319
+ } | null;
1320
+ };
1321
+ }
1322
+ | {
1323
+ apiRouting?: {
1324
+ lastUpdated?: string | null;
1325
+ route?: string | null;
1326
+ } | null;
1327
+ }
1328
+ | {
1329
+ confidenceIntervals?: {
1330
+ lastUpdated?: string | null;
1331
+ suggestedThreshold?: {
1332
+ confidenceIntervals?: {
1333
+ p90?: { lower?: number | null; upper?: number | null } | null;
1334
+ p95?: { lower?: number | null; upper?: number | null } | null;
1335
+ p99?: { lower?: number | null; upper?: number | null } | null;
1336
+ } | null;
1337
+ mean?: number | null;
1338
+ } | null;
1339
+ } | null;
1340
+ }
1341
+ | {
1342
+ schemaInfo?: {
1343
+ activeSchema?: {
1344
+ id?: string | null;
1345
+ createdAt?: string | null;
1346
+ isLearned?: boolean | null;
1347
+ name?: string | null;
1348
+ } | null;
1349
+ learnedAvailable?: boolean | null;
1350
+ mitigationAction?: "none" | "log" | "block" | null;
1351
+ } | null;
1352
+ }
1353
+ | null;
1354
+ },
1355
+ ListOperationsError,
1356
+ Credentials | HttpClient.HttpClient
1357
+ >;
1358
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1223
1359
  input: ListOperationsRequest,
1224
1360
  output: ListOperationsResponse,
1225
1361
  errors: [],
1362
+ pagination: {
1363
+ mode: "page",
1364
+ inputToken: "page",
1365
+ outputToken: "resultInfo.page",
1366
+ items: "result",
1367
+ pageSize: "perPage",
1368
+ } as const,
1226
1369
  }));
1227
1370
 
1228
1371
  export interface CreateOperationRequest {
@@ -1610,16 +1753,20 @@ export const CreateOperationResponse =
1610
1753
  Schema.Null,
1611
1754
  ]),
1612
1755
  ),
1613
- }).pipe(
1614
- Schema.encodeKeys({
1615
- endpoint: "endpoint",
1616
- host: "host",
1617
- lastUpdated: "last_updated",
1618
- method: "method",
1619
- operationId: "operation_id",
1620
- features: "features",
1621
- }),
1622
- ) as unknown as Schema.Schema<CreateOperationResponse>;
1756
+ })
1757
+ .pipe(
1758
+ Schema.encodeKeys({
1759
+ endpoint: "endpoint",
1760
+ host: "host",
1761
+ lastUpdated: "last_updated",
1762
+ method: "method",
1763
+ operationId: "operation_id",
1764
+ features: "features",
1765
+ }),
1766
+ )
1767
+ .pipe(
1768
+ T.ResponsePath("result"),
1769
+ ) as unknown as Schema.Schema<CreateOperationResponse>;
1623
1770
 
1624
1771
  export type CreateOperationError = DefaultErrors | InvalidObjectIdentifier;
1625
1772
 
@@ -1726,374 +1873,465 @@ export const BulkCreateOperationsRequest =
1726
1873
  T.Http({ method: "POST", path: "/zones/{zone_id}/api_gateway/operations" }),
1727
1874
  ) as unknown as Schema.Schema<BulkCreateOperationsRequest>;
1728
1875
 
1729
- export type BulkCreateOperationsResponse = {
1730
- endpoint: string;
1731
- host: string;
1732
- lastUpdated: string;
1733
- method:
1734
- | "GET"
1735
- | "POST"
1736
- | "HEAD"
1737
- | "OPTIONS"
1738
- | "PUT"
1739
- | "DELETE"
1740
- | "CONNECT"
1741
- | "PATCH"
1742
- | "TRACE";
1743
- operationId: string;
1744
- features?:
1745
- | {
1746
- thresholds?: {
1747
- authIdTokens?: number | null;
1748
- dataPoints?: number | null;
1749
- lastUpdated?: string | null;
1750
- p50?: number | null;
1751
- p90?: number | null;
1752
- p99?: number | null;
1753
- periodSeconds?: number | null;
1754
- requests?: number | null;
1755
- suggestedThreshold?: number | null;
1756
- } | null;
1757
- }
1758
- | {
1759
- parameterSchemas: {
1760
- lastUpdated?: string | null;
1761
- parameterSchemas?: {
1762
- parameters?: unknown[] | null;
1763
- responses?: null;
1876
+ export interface BulkCreateOperationsResponse {
1877
+ result: {
1878
+ endpoint: string;
1879
+ host: string;
1880
+ lastUpdated: string;
1881
+ method:
1882
+ | "GET"
1883
+ | "POST"
1884
+ | "HEAD"
1885
+ | "OPTIONS"
1886
+ | "PUT"
1887
+ | "DELETE"
1888
+ | "CONNECT"
1889
+ | "PATCH"
1890
+ | "TRACE";
1891
+ operationId: string;
1892
+ features?:
1893
+ | {
1894
+ thresholds?: {
1895
+ authIdTokens?: number | null;
1896
+ dataPoints?: number | null;
1897
+ lastUpdated?: string | null;
1898
+ p50?: number | null;
1899
+ p90?: number | null;
1900
+ p99?: number | null;
1901
+ periodSeconds?: number | null;
1902
+ requests?: number | null;
1903
+ suggestedThreshold?: number | null;
1764
1904
  } | null;
1765
- };
1766
- }
1767
- | {
1768
- apiRouting?: {
1769
- lastUpdated?: string | null;
1770
- route?: string | null;
1771
- } | null;
1772
- }
1773
- | {
1774
- confidenceIntervals?: {
1775
- lastUpdated?: string | null;
1776
- suggestedThreshold?: {
1777
- confidenceIntervals?: {
1778
- p90?: { lower?: number | null; upper?: number | null } | null;
1779
- p95?: { lower?: number | null; upper?: number | null } | null;
1780
- p99?: { lower?: number | null; upper?: number | null } | null;
1905
+ }
1906
+ | {
1907
+ parameterSchemas: {
1908
+ lastUpdated?: string | null;
1909
+ parameterSchemas?: {
1910
+ parameters?: unknown[] | null;
1911
+ responses?: null;
1781
1912
  } | null;
1782
- mean?: number | null;
1913
+ };
1914
+ }
1915
+ | {
1916
+ apiRouting?: {
1917
+ lastUpdated?: string | null;
1918
+ route?: string | null;
1783
1919
  } | null;
1784
- } | null;
1785
- }
1786
- | {
1787
- schemaInfo?: {
1788
- activeSchema?: {
1789
- id?: string | null;
1790
- createdAt?: string | null;
1791
- isLearned?: boolean | null;
1792
- name?: string | null;
1920
+ }
1921
+ | {
1922
+ confidenceIntervals?: {
1923
+ lastUpdated?: string | null;
1924
+ suggestedThreshold?: {
1925
+ confidenceIntervals?: {
1926
+ p90?: { lower?: number | null; upper?: number | null } | null;
1927
+ p95?: { lower?: number | null; upper?: number | null } | null;
1928
+ p99?: { lower?: number | null; upper?: number | null } | null;
1929
+ } | null;
1930
+ mean?: number | null;
1931
+ } | null;
1793
1932
  } | null;
1794
- learnedAvailable?: boolean | null;
1795
- mitigationAction?: "none" | "log" | "block" | null;
1796
- } | null;
1797
- }
1798
- | null;
1799
- }[];
1800
-
1801
- export const BulkCreateOperationsResponse =
1802
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1803
- Schema.Struct({
1804
- endpoint: Schema.String,
1805
- host: Schema.String,
1806
- lastUpdated: Schema.String,
1807
- method: Schema.Literals([
1808
- "GET",
1809
- "POST",
1810
- "HEAD",
1811
- "OPTIONS",
1812
- "PUT",
1813
- "DELETE",
1814
- "CONNECT",
1815
- "PATCH",
1816
- "TRACE",
1817
- ]),
1818
- operationId: Schema.String,
1819
- features: Schema.optional(
1820
- Schema.Union([
1821
- Schema.Union([
1822
- Schema.Struct({
1823
- thresholds: Schema.optional(
1824
- Schema.Union([
1825
- Schema.Struct({
1826
- authIdTokens: Schema.optional(
1827
- Schema.Union([Schema.Number, Schema.Null]),
1828
- ),
1829
- dataPoints: Schema.optional(
1830
- Schema.Union([Schema.Number, Schema.Null]),
1831
- ),
1832
- lastUpdated: Schema.optional(
1833
- Schema.Union([Schema.String, Schema.Null]),
1834
- ),
1835
- p50: Schema.optional(
1836
- Schema.Union([Schema.Number, Schema.Null]),
1837
- ),
1838
- p90: Schema.optional(
1839
- Schema.Union([Schema.Number, Schema.Null]),
1840
- ),
1841
- p99: Schema.optional(
1842
- Schema.Union([Schema.Number, Schema.Null]),
1843
- ),
1844
- periodSeconds: Schema.optional(
1845
- Schema.Union([Schema.Number, Schema.Null]),
1846
- ),
1847
- requests: Schema.optional(
1848
- Schema.Union([Schema.Number, Schema.Null]),
1849
- ),
1850
- suggestedThreshold: Schema.optional(
1851
- Schema.Union([Schema.Number, Schema.Null]),
1852
- ),
1853
- }).pipe(
1854
- Schema.encodeKeys({
1855
- authIdTokens: "auth_id_tokens",
1856
- dataPoints: "data_points",
1857
- lastUpdated: "last_updated",
1858
- p50: "p50",
1859
- p90: "p90",
1860
- p99: "p99",
1861
- periodSeconds: "period_seconds",
1862
- requests: "requests",
1863
- suggestedThreshold: "suggested_threshold",
1864
- }),
1865
- ),
1866
- Schema.Null,
1867
- ]),
1868
- ),
1869
- }),
1870
- Schema.Struct({
1871
- parameterSchemas: Schema.Struct({
1872
- lastUpdated: Schema.optional(
1873
- Schema.Union([Schema.String, Schema.Null]),
1874
- ),
1875
- parameterSchemas: Schema.optional(
1933
+ }
1934
+ | {
1935
+ schemaInfo?: {
1936
+ activeSchema?: {
1937
+ id?: string | null;
1938
+ createdAt?: string | null;
1939
+ isLearned?: boolean | null;
1940
+ name?: string | null;
1941
+ } | null;
1942
+ learnedAvailable?: boolean | null;
1943
+ mitigationAction?: "none" | "log" | "block" | null;
1944
+ } | null;
1945
+ }
1946
+ | null;
1947
+ }[];
1948
+ }
1949
+
1950
+ export const BulkCreateOperationsResponse =
1951
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1952
+ result: Schema.Array(
1953
+ Schema.Struct({
1954
+ endpoint: Schema.String,
1955
+ host: Schema.String,
1956
+ lastUpdated: Schema.String,
1957
+ method: Schema.Literals([
1958
+ "GET",
1959
+ "POST",
1960
+ "HEAD",
1961
+ "OPTIONS",
1962
+ "PUT",
1963
+ "DELETE",
1964
+ "CONNECT",
1965
+ "PATCH",
1966
+ "TRACE",
1967
+ ]),
1968
+ operationId: Schema.String,
1969
+ features: Schema.optional(
1970
+ Schema.Union([
1971
+ Schema.Union([
1972
+ Schema.Struct({
1973
+ thresholds: Schema.optional(
1876
1974
  Schema.Union([
1877
1975
  Schema.Struct({
1878
- parameters: Schema.optional(
1879
- Schema.Union([
1880
- Schema.Array(Schema.Unknown),
1881
- Schema.Null,
1882
- ]),
1976
+ authIdTokens: Schema.optional(
1977
+ Schema.Union([Schema.Number, Schema.Null]),
1883
1978
  ),
1884
- responses: Schema.optional(Schema.Null),
1885
- }),
1979
+ dataPoints: Schema.optional(
1980
+ Schema.Union([Schema.Number, Schema.Null]),
1981
+ ),
1982
+ lastUpdated: Schema.optional(
1983
+ Schema.Union([Schema.String, Schema.Null]),
1984
+ ),
1985
+ p50: Schema.optional(
1986
+ Schema.Union([Schema.Number, Schema.Null]),
1987
+ ),
1988
+ p90: Schema.optional(
1989
+ Schema.Union([Schema.Number, Schema.Null]),
1990
+ ),
1991
+ p99: Schema.optional(
1992
+ Schema.Union([Schema.Number, Schema.Null]),
1993
+ ),
1994
+ periodSeconds: Schema.optional(
1995
+ Schema.Union([Schema.Number, Schema.Null]),
1996
+ ),
1997
+ requests: Schema.optional(
1998
+ Schema.Union([Schema.Number, Schema.Null]),
1999
+ ),
2000
+ suggestedThreshold: Schema.optional(
2001
+ Schema.Union([Schema.Number, Schema.Null]),
2002
+ ),
2003
+ }).pipe(
2004
+ Schema.encodeKeys({
2005
+ authIdTokens: "auth_id_tokens",
2006
+ dataPoints: "data_points",
2007
+ lastUpdated: "last_updated",
2008
+ p50: "p50",
2009
+ p90: "p90",
2010
+ p99: "p99",
2011
+ periodSeconds: "period_seconds",
2012
+ requests: "requests",
2013
+ suggestedThreshold: "suggested_threshold",
2014
+ }),
2015
+ ),
1886
2016
  Schema.Null,
1887
2017
  ]),
1888
2018
  ),
1889
- }).pipe(
1890
- Schema.encodeKeys({
1891
- lastUpdated: "last_updated",
1892
- parameterSchemas: "parameter_schemas",
1893
- }),
1894
- ),
1895
- }).pipe(
1896
- Schema.encodeKeys({ parameterSchemas: "parameter_schemas" }),
1897
- ),
1898
- Schema.Struct({
1899
- apiRouting: Schema.optional(
1900
- Schema.Union([
1901
- Schema.Struct({
1902
- lastUpdated: Schema.optional(
1903
- Schema.Union([Schema.String, Schema.Null]),
1904
- ),
1905
- route: Schema.optional(
1906
- Schema.Union([Schema.String, Schema.Null]),
1907
- ),
1908
- }).pipe(
1909
- Schema.encodeKeys({
1910
- lastUpdated: "last_updated",
1911
- route: "route",
1912
- }),
2019
+ }),
2020
+ Schema.Struct({
2021
+ parameterSchemas: Schema.Struct({
2022
+ lastUpdated: Schema.optional(
2023
+ Schema.Union([Schema.String, Schema.Null]),
1913
2024
  ),
1914
- Schema.Null,
1915
- ]),
1916
- ),
1917
- }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
1918
- Schema.Struct({
1919
- confidenceIntervals: Schema.optional(
1920
- Schema.Union([
1921
- Schema.Struct({
1922
- lastUpdated: Schema.optional(
1923
- Schema.Union([Schema.String, Schema.Null]),
1924
- ),
1925
- suggestedThreshold: Schema.optional(
1926
- Schema.Union([
1927
- Schema.Struct({
1928
- confidenceIntervals: Schema.optional(
1929
- Schema.Union([
1930
- Schema.Struct({
1931
- p90: Schema.optional(
1932
- Schema.Union([
1933
- Schema.Struct({
1934
- lower: Schema.optional(
1935
- Schema.Union([
1936
- Schema.Number,
1937
- Schema.Null,
1938
- ]),
1939
- ),
1940
- upper: Schema.optional(
1941
- Schema.Union([
1942
- Schema.Number,
1943
- Schema.Null,
1944
- ]),
1945
- ),
1946
- }),
1947
- Schema.Null,
1948
- ]),
1949
- ),
1950
- p95: Schema.optional(
1951
- Schema.Union([
1952
- Schema.Struct({
1953
- lower: Schema.optional(
1954
- Schema.Union([
1955
- Schema.Number,
1956
- Schema.Null,
1957
- ]),
1958
- ),
1959
- upper: Schema.optional(
1960
- Schema.Union([
1961
- Schema.Number,
1962
- Schema.Null,
1963
- ]),
1964
- ),
1965
- }),
1966
- Schema.Null,
1967
- ]),
1968
- ),
1969
- p99: Schema.optional(
1970
- Schema.Union([
1971
- Schema.Struct({
1972
- lower: Schema.optional(
1973
- Schema.Union([
1974
- Schema.Number,
1975
- Schema.Null,
1976
- ]),
1977
- ),
1978
- upper: Schema.optional(
1979
- Schema.Union([
1980
- Schema.Number,
1981
- Schema.Null,
1982
- ]),
1983
- ),
1984
- }),
1985
- Schema.Null,
1986
- ]),
1987
- ),
1988
- }),
1989
- Schema.Null,
1990
- ]),
1991
- ),
1992
- mean: Schema.optional(
1993
- Schema.Union([Schema.Number, Schema.Null]),
1994
- ),
1995
- }).pipe(
1996
- Schema.encodeKeys({
1997
- confidenceIntervals: "confidence_intervals",
1998
- mean: "mean",
1999
- }),
2025
+ parameterSchemas: Schema.optional(
2026
+ Schema.Union([
2027
+ Schema.Struct({
2028
+ parameters: Schema.optional(
2029
+ Schema.Union([
2030
+ Schema.Array(Schema.Unknown),
2031
+ Schema.Null,
2032
+ ]),
2000
2033
  ),
2001
- Schema.Null,
2002
- ]),
2003
- ),
2004
- }).pipe(
2005
- Schema.encodeKeys({
2006
- lastUpdated: "last_updated",
2007
- suggestedThreshold: "suggested_threshold",
2008
- }),
2034
+ responses: Schema.optional(Schema.Null),
2035
+ }),
2036
+ Schema.Null,
2037
+ ]),
2009
2038
  ),
2010
- Schema.Null,
2011
- ]),
2039
+ }).pipe(
2040
+ Schema.encodeKeys({
2041
+ lastUpdated: "last_updated",
2042
+ parameterSchemas: "parameter_schemas",
2043
+ }),
2044
+ ),
2045
+ }).pipe(
2046
+ Schema.encodeKeys({ parameterSchemas: "parameter_schemas" }),
2012
2047
  ),
2013
- }).pipe(
2014
- Schema.encodeKeys({
2015
- confidenceIntervals: "confidence_intervals",
2016
- }),
2017
- ),
2018
- Schema.Struct({
2019
- schemaInfo: Schema.optional(
2020
- Schema.Union([
2021
- Schema.Struct({
2022
- activeSchema: Schema.optional(
2023
- Schema.Union([
2024
- Schema.Struct({
2025
- id: Schema.optional(
2026
- Schema.Union([Schema.String, Schema.Null]),
2027
- ),
2028
- createdAt: Schema.optional(
2029
- Schema.Union([Schema.String, Schema.Null]),
2030
- ),
2031
- isLearned: Schema.optional(
2032
- Schema.Union([Schema.Boolean, Schema.Null]),
2033
- ),
2034
- name: Schema.optional(
2035
- Schema.Union([Schema.String, Schema.Null]),
2036
- ),
2037
- }).pipe(
2038
- Schema.encodeKeys({
2039
- id: "id",
2040
- createdAt: "created_at",
2041
- isLearned: "is_learned",
2042
- name: "name",
2043
- }),
2044
- ),
2045
- Schema.Null,
2046
- ]),
2047
- ),
2048
- learnedAvailable: Schema.optional(
2049
- Schema.Union([Schema.Boolean, Schema.Null]),
2048
+ Schema.Struct({
2049
+ apiRouting: Schema.optional(
2050
+ Schema.Union([
2051
+ Schema.Struct({
2052
+ lastUpdated: Schema.optional(
2053
+ Schema.Union([Schema.String, Schema.Null]),
2054
+ ),
2055
+ route: Schema.optional(
2056
+ Schema.Union([Schema.String, Schema.Null]),
2057
+ ),
2058
+ }).pipe(
2059
+ Schema.encodeKeys({
2060
+ lastUpdated: "last_updated",
2061
+ route: "route",
2062
+ }),
2050
2063
  ),
2051
- mitigationAction: Schema.optional(
2052
- Schema.Union([
2053
- Schema.Literal("none"),
2054
- Schema.Literal("log"),
2055
- Schema.Literal("block"),
2056
- Schema.Null,
2057
- ]),
2064
+ Schema.Null,
2065
+ ]),
2066
+ ),
2067
+ }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
2068
+ Schema.Struct({
2069
+ confidenceIntervals: Schema.optional(
2070
+ Schema.Union([
2071
+ Schema.Struct({
2072
+ lastUpdated: Schema.optional(
2073
+ Schema.Union([Schema.String, Schema.Null]),
2074
+ ),
2075
+ suggestedThreshold: Schema.optional(
2076
+ Schema.Union([
2077
+ Schema.Struct({
2078
+ confidenceIntervals: Schema.optional(
2079
+ Schema.Union([
2080
+ Schema.Struct({
2081
+ p90: Schema.optional(
2082
+ Schema.Union([
2083
+ Schema.Struct({
2084
+ lower: Schema.optional(
2085
+ Schema.Union([
2086
+ Schema.Number,
2087
+ Schema.Null,
2088
+ ]),
2089
+ ),
2090
+ upper: Schema.optional(
2091
+ Schema.Union([
2092
+ Schema.Number,
2093
+ Schema.Null,
2094
+ ]),
2095
+ ),
2096
+ }),
2097
+ Schema.Null,
2098
+ ]),
2099
+ ),
2100
+ p95: Schema.optional(
2101
+ Schema.Union([
2102
+ Schema.Struct({
2103
+ lower: Schema.optional(
2104
+ Schema.Union([
2105
+ Schema.Number,
2106
+ Schema.Null,
2107
+ ]),
2108
+ ),
2109
+ upper: Schema.optional(
2110
+ Schema.Union([
2111
+ Schema.Number,
2112
+ Schema.Null,
2113
+ ]),
2114
+ ),
2115
+ }),
2116
+ Schema.Null,
2117
+ ]),
2118
+ ),
2119
+ p99: Schema.optional(
2120
+ Schema.Union([
2121
+ Schema.Struct({
2122
+ lower: Schema.optional(
2123
+ Schema.Union([
2124
+ Schema.Number,
2125
+ Schema.Null,
2126
+ ]),
2127
+ ),
2128
+ upper: Schema.optional(
2129
+ Schema.Union([
2130
+ Schema.Number,
2131
+ Schema.Null,
2132
+ ]),
2133
+ ),
2134
+ }),
2135
+ Schema.Null,
2136
+ ]),
2137
+ ),
2138
+ }),
2139
+ Schema.Null,
2140
+ ]),
2141
+ ),
2142
+ mean: Schema.optional(
2143
+ Schema.Union([Schema.Number, Schema.Null]),
2144
+ ),
2145
+ }).pipe(
2146
+ Schema.encodeKeys({
2147
+ confidenceIntervals: "confidence_intervals",
2148
+ mean: "mean",
2149
+ }),
2150
+ ),
2151
+ Schema.Null,
2152
+ ]),
2153
+ ),
2154
+ }).pipe(
2155
+ Schema.encodeKeys({
2156
+ lastUpdated: "last_updated",
2157
+ suggestedThreshold: "suggested_threshold",
2158
+ }),
2058
2159
  ),
2059
- }).pipe(
2060
- Schema.encodeKeys({
2061
- activeSchema: "active_schema",
2062
- learnedAvailable: "learned_available",
2063
- mitigationAction: "mitigation_action",
2064
- }),
2065
- ),
2066
- Schema.Null,
2067
- ]),
2160
+ Schema.Null,
2161
+ ]),
2162
+ ),
2163
+ }).pipe(
2164
+ Schema.encodeKeys({
2165
+ confidenceIntervals: "confidence_intervals",
2166
+ }),
2068
2167
  ),
2069
- }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
2168
+ Schema.Struct({
2169
+ schemaInfo: Schema.optional(
2170
+ Schema.Union([
2171
+ Schema.Struct({
2172
+ activeSchema: Schema.optional(
2173
+ Schema.Union([
2174
+ Schema.Struct({
2175
+ id: Schema.optional(
2176
+ Schema.Union([Schema.String, Schema.Null]),
2177
+ ),
2178
+ createdAt: Schema.optional(
2179
+ Schema.Union([Schema.String, Schema.Null]),
2180
+ ),
2181
+ isLearned: Schema.optional(
2182
+ Schema.Union([Schema.Boolean, Schema.Null]),
2183
+ ),
2184
+ name: Schema.optional(
2185
+ Schema.Union([Schema.String, Schema.Null]),
2186
+ ),
2187
+ }).pipe(
2188
+ Schema.encodeKeys({
2189
+ id: "id",
2190
+ createdAt: "created_at",
2191
+ isLearned: "is_learned",
2192
+ name: "name",
2193
+ }),
2194
+ ),
2195
+ Schema.Null,
2196
+ ]),
2197
+ ),
2198
+ learnedAvailable: Schema.optional(
2199
+ Schema.Union([Schema.Boolean, Schema.Null]),
2200
+ ),
2201
+ mitigationAction: Schema.optional(
2202
+ Schema.Union([
2203
+ Schema.Literal("none"),
2204
+ Schema.Literal("log"),
2205
+ Schema.Literal("block"),
2206
+ Schema.Null,
2207
+ ]),
2208
+ ),
2209
+ }).pipe(
2210
+ Schema.encodeKeys({
2211
+ activeSchema: "active_schema",
2212
+ learnedAvailable: "learned_available",
2213
+ mitigationAction: "mitigation_action",
2214
+ }),
2215
+ ),
2216
+ Schema.Null,
2217
+ ]),
2218
+ ),
2219
+ }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
2220
+ ]),
2221
+ Schema.Null,
2070
2222
  ]),
2071
- Schema.Null,
2072
- ]),
2223
+ ),
2224
+ }).pipe(
2225
+ Schema.encodeKeys({
2226
+ endpoint: "endpoint",
2227
+ host: "host",
2228
+ lastUpdated: "last_updated",
2229
+ method: "method",
2230
+ operationId: "operation_id",
2231
+ features: "features",
2232
+ }),
2073
2233
  ),
2074
- }).pipe(
2075
- Schema.encodeKeys({
2076
- endpoint: "endpoint",
2077
- host: "host",
2078
- lastUpdated: "last_updated",
2079
- method: "method",
2080
- operationId: "operation_id",
2081
- features: "features",
2082
- }),
2083
2234
  ),
2084
- ) as unknown as Schema.Schema<BulkCreateOperationsResponse>;
2235
+ }) as unknown as Schema.Schema<BulkCreateOperationsResponse>;
2085
2236
 
2086
2237
  export type BulkCreateOperationsError = DefaultErrors;
2087
2238
 
2088
- export const bulkCreateOperations: API.OperationMethod<
2239
+ export const bulkCreateOperations: API.PaginatedOperationMethod<
2089
2240
  BulkCreateOperationsRequest,
2090
2241
  BulkCreateOperationsResponse,
2091
2242
  BulkCreateOperationsError,
2092
2243
  Credentials | HttpClient.HttpClient
2093
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2244
+ > & {
2245
+ pages: (
2246
+ input: BulkCreateOperationsRequest,
2247
+ ) => stream.Stream<
2248
+ BulkCreateOperationsResponse,
2249
+ BulkCreateOperationsError,
2250
+ Credentials | HttpClient.HttpClient
2251
+ >;
2252
+ items: (input: BulkCreateOperationsRequest) => stream.Stream<
2253
+ {
2254
+ endpoint: string;
2255
+ host: string;
2256
+ lastUpdated: string;
2257
+ method:
2258
+ | "GET"
2259
+ | "POST"
2260
+ | "HEAD"
2261
+ | "OPTIONS"
2262
+ | "PUT"
2263
+ | "DELETE"
2264
+ | "CONNECT"
2265
+ | "PATCH"
2266
+ | "TRACE";
2267
+ operationId: string;
2268
+ features?:
2269
+ | {
2270
+ thresholds?: {
2271
+ authIdTokens?: number | null;
2272
+ dataPoints?: number | null;
2273
+ lastUpdated?: string | null;
2274
+ p50?: number | null;
2275
+ p90?: number | null;
2276
+ p99?: number | null;
2277
+ periodSeconds?: number | null;
2278
+ requests?: number | null;
2279
+ suggestedThreshold?: number | null;
2280
+ } | null;
2281
+ }
2282
+ | {
2283
+ parameterSchemas: {
2284
+ lastUpdated?: string | null;
2285
+ parameterSchemas?: {
2286
+ parameters?: unknown[] | null;
2287
+ responses?: null;
2288
+ } | null;
2289
+ };
2290
+ }
2291
+ | {
2292
+ apiRouting?: {
2293
+ lastUpdated?: string | null;
2294
+ route?: string | null;
2295
+ } | null;
2296
+ }
2297
+ | {
2298
+ confidenceIntervals?: {
2299
+ lastUpdated?: string | null;
2300
+ suggestedThreshold?: {
2301
+ confidenceIntervals?: {
2302
+ p90?: { lower?: number | null; upper?: number | null } | null;
2303
+ p95?: { lower?: number | null; upper?: number | null } | null;
2304
+ p99?: { lower?: number | null; upper?: number | null } | null;
2305
+ } | null;
2306
+ mean?: number | null;
2307
+ } | null;
2308
+ } | null;
2309
+ }
2310
+ | {
2311
+ schemaInfo?: {
2312
+ activeSchema?: {
2313
+ id?: string | null;
2314
+ createdAt?: string | null;
2315
+ isLearned?: boolean | null;
2316
+ name?: string | null;
2317
+ } | null;
2318
+ learnedAvailable?: boolean | null;
2319
+ mitigationAction?: "none" | "log" | "block" | null;
2320
+ } | null;
2321
+ }
2322
+ | null;
2323
+ },
2324
+ BulkCreateOperationsError,
2325
+ Credentials | HttpClient.HttpClient
2326
+ >;
2327
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2094
2328
  input: BulkCreateOperationsRequest,
2095
2329
  output: BulkCreateOperationsResponse,
2096
2330
  errors: [],
2331
+ pagination: {
2332
+ mode: "single",
2333
+ items: "result",
2334
+ } as const,
2097
2335
  }));
2098
2336
 
2099
2337
  export interface BulkDeleteOperationsRequest {
@@ -2291,8 +2529,8 @@ export const PatchOperationSchemaValidationRequest =
2291
2529
  export type PatchOperationSchemaValidationResponse = Record<string, unknown>;
2292
2530
 
2293
2531
  export const PatchOperationSchemaValidationResponse =
2294
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2295
- {},
2532
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
2533
+ T.ResponsePath("result"),
2296
2534
  ) as unknown as Schema.Schema<PatchOperationSchemaValidationResponse>;
2297
2535
 
2298
2536
  export type PatchOperationSchemaValidationError =
@@ -2345,7 +2583,9 @@ export const ListSchemasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2345
2583
  Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
2346
2584
  ),
2347
2585
  timestamp: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2348
- }) as unknown as Schema.Schema<ListSchemasResponse>;
2586
+ }).pipe(
2587
+ T.ResponsePath("result"),
2588
+ ) as unknown as Schema.Schema<ListSchemasResponse>;
2349
2589
 
2350
2590
  export type ListSchemasError = DefaultErrors | InvalidObjectIdentifier;
2351
2591
 
@@ -2560,16 +2800,20 @@ export const GetUserSchemaResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2560
2800
  validationEnabled: Schema.optional(
2561
2801
  Schema.Union([Schema.Boolean, Schema.Null]),
2562
2802
  ),
2563
- }).pipe(
2564
- Schema.encodeKeys({
2565
- createdAt: "created_at",
2566
- kind: "kind",
2567
- name: "name",
2568
- schemaId: "schema_id",
2569
- source: "source",
2570
- validationEnabled: "validation_enabled",
2571
- }),
2572
- ) as unknown as Schema.Schema<GetUserSchemaResponse>;
2803
+ })
2804
+ .pipe(
2805
+ Schema.encodeKeys({
2806
+ createdAt: "created_at",
2807
+ kind: "kind",
2808
+ name: "name",
2809
+ schemaId: "schema_id",
2810
+ source: "source",
2811
+ validationEnabled: "validation_enabled",
2812
+ }),
2813
+ )
2814
+ .pipe(
2815
+ T.ResponsePath("result"),
2816
+ ) as unknown as Schema.Schema<GetUserSchemaResponse>;
2573
2817
 
2574
2818
  export type GetUserSchemaError =
2575
2819
  | DefaultErrors
@@ -2610,48 +2854,101 @@ export const ListUserSchemasRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2610
2854
  T.Http({ method: "GET", path: "/zones/{zone_id}/api_gateway/user_schemas" }),
2611
2855
  ) as unknown as Schema.Schema<ListUserSchemasRequest>;
2612
2856
 
2613
- export type ListUserSchemasResponse = {
2614
- createdAt: string;
2615
- kind: "openapi_v3";
2616
- name: string;
2617
- schemaId: string;
2618
- source?: string | null;
2619
- validationEnabled?: boolean | null;
2620
- }[];
2857
+ export interface ListUserSchemasResponse {
2858
+ result: {
2859
+ createdAt: string;
2860
+ kind: "openapi_v3";
2861
+ name: string;
2862
+ schemaId: string;
2863
+ source?: string | null;
2864
+ validationEnabled?: boolean | null;
2865
+ }[];
2866
+ resultInfo: {
2867
+ count?: number | null;
2868
+ page?: number | null;
2869
+ perPage?: number | null;
2870
+ totalCount?: number | null;
2871
+ };
2872
+ }
2621
2873
 
2622
- export const ListUserSchemasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2623
- Schema.Struct({
2624
- createdAt: Schema.String,
2625
- kind: Schema.Literal("openapi_v3"),
2626
- name: Schema.String,
2627
- schemaId: Schema.String,
2628
- source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2629
- validationEnabled: Schema.optional(
2630
- Schema.Union([Schema.Boolean, Schema.Null]),
2874
+ export const ListUserSchemasResponse =
2875
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2876
+ result: Schema.Array(
2877
+ Schema.Struct({
2878
+ createdAt: Schema.String,
2879
+ kind: Schema.Literal("openapi_v3"),
2880
+ name: Schema.String,
2881
+ schemaId: Schema.String,
2882
+ source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2883
+ validationEnabled: Schema.optional(
2884
+ Schema.Union([Schema.Boolean, Schema.Null]),
2885
+ ),
2886
+ }).pipe(
2887
+ Schema.encodeKeys({
2888
+ createdAt: "created_at",
2889
+ kind: "kind",
2890
+ name: "name",
2891
+ schemaId: "schema_id",
2892
+ source: "source",
2893
+ validationEnabled: "validation_enabled",
2894
+ }),
2895
+ ),
2896
+ ),
2897
+ resultInfo: Schema.Struct({
2898
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2899
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2900
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2901
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2902
+ }).pipe(
2903
+ Schema.encodeKeys({
2904
+ count: "count",
2905
+ page: "page",
2906
+ perPage: "per_page",
2907
+ totalCount: "total_count",
2908
+ }),
2631
2909
  ),
2632
2910
  }).pipe(
2633
- Schema.encodeKeys({
2634
- createdAt: "created_at",
2635
- kind: "kind",
2636
- name: "name",
2637
- schemaId: "schema_id",
2638
- source: "source",
2639
- validationEnabled: "validation_enabled",
2640
- }),
2641
- ),
2642
- ) as unknown as Schema.Schema<ListUserSchemasResponse>;
2911
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
2912
+ ) as unknown as Schema.Schema<ListUserSchemasResponse>;
2643
2913
 
2644
2914
  export type ListUserSchemasError = DefaultErrors;
2645
2915
 
2646
- export const listUserSchemas: API.OperationMethod<
2916
+ export const listUserSchemas: API.PaginatedOperationMethod<
2647
2917
  ListUserSchemasRequest,
2648
2918
  ListUserSchemasResponse,
2649
2919
  ListUserSchemasError,
2650
2920
  Credentials | HttpClient.HttpClient
2651
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2921
+ > & {
2922
+ pages: (
2923
+ input: ListUserSchemasRequest,
2924
+ ) => stream.Stream<
2925
+ ListUserSchemasResponse,
2926
+ ListUserSchemasError,
2927
+ Credentials | HttpClient.HttpClient
2928
+ >;
2929
+ items: (input: ListUserSchemasRequest) => stream.Stream<
2930
+ {
2931
+ createdAt: string;
2932
+ kind: "openapi_v3";
2933
+ name: string;
2934
+ schemaId: string;
2935
+ source?: string | null;
2936
+ validationEnabled?: boolean | null;
2937
+ },
2938
+ ListUserSchemasError,
2939
+ Credentials | HttpClient.HttpClient
2940
+ >;
2941
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2652
2942
  input: ListUserSchemasRequest,
2653
2943
  output: ListUserSchemasResponse,
2654
2944
  errors: [],
2945
+ pagination: {
2946
+ mode: "page",
2947
+ inputToken: "page",
2948
+ outputToken: "resultInfo.page",
2949
+ items: "result",
2950
+ pageSize: "perPage",
2951
+ } as const,
2655
2952
  }));
2656
2953
 
2657
2954
  export interface CreateUserSchemaRequest {
@@ -2748,9 +3045,13 @@ export const CreateUserSchemaResponse =
2748
3045
  Schema.Null,
2749
3046
  ]),
2750
3047
  ),
2751
- }).pipe(
2752
- Schema.encodeKeys({ schema: "schema", uploadDetails: "upload_details" }),
2753
- ) as unknown as Schema.Schema<CreateUserSchemaResponse>;
3048
+ })
3049
+ .pipe(
3050
+ Schema.encodeKeys({ schema: "schema", uploadDetails: "upload_details" }),
3051
+ )
3052
+ .pipe(
3053
+ T.ResponsePath("result"),
3054
+ ) as unknown as Schema.Schema<CreateUserSchemaResponse>;
2754
3055
 
2755
3056
  export type CreateUserSchemaError = DefaultErrors | InvalidObjectIdentifier;
2756
3057
 
@@ -2811,16 +3112,20 @@ export const PatchUserSchemaResponse =
2811
3112
  validationEnabled: Schema.optional(
2812
3113
  Schema.Union([Schema.Boolean, Schema.Null]),
2813
3114
  ),
2814
- }).pipe(
2815
- Schema.encodeKeys({
2816
- createdAt: "created_at",
2817
- kind: "kind",
2818
- name: "name",
2819
- schemaId: "schema_id",
2820
- source: "source",
2821
- validationEnabled: "validation_enabled",
2822
- }),
2823
- ) as unknown as Schema.Schema<PatchUserSchemaResponse>;
3115
+ })
3116
+ .pipe(
3117
+ Schema.encodeKeys({
3118
+ createdAt: "created_at",
3119
+ kind: "kind",
3120
+ name: "name",
3121
+ schemaId: "schema_id",
3122
+ source: "source",
3123
+ validationEnabled: "validation_enabled",
3124
+ }),
3125
+ )
3126
+ .pipe(
3127
+ T.ResponsePath("result"),
3128
+ ) as unknown as Schema.Schema<PatchUserSchemaResponse>;
2824
3129
 
2825
3130
  export type PatchUserSchemaError =
2826
3131
  | DefaultErrors
@@ -2904,41 +3209,88 @@ export const ListUserSchemaHostsRequest =
2904
3209
  }),
2905
3210
  ) as unknown as Schema.Schema<ListUserSchemaHostsRequest>;
2906
3211
 
2907
- export type ListUserSchemaHostsResponse = {
2908
- createdAt: string;
2909
- hosts: string[];
2910
- name: string;
2911
- schemaId: string;
2912
- }[];
3212
+ export interface ListUserSchemaHostsResponse {
3213
+ result: {
3214
+ createdAt: string;
3215
+ hosts: string[];
3216
+ name: string;
3217
+ schemaId: string;
3218
+ }[];
3219
+ resultInfo: {
3220
+ count?: number | null;
3221
+ page?: number | null;
3222
+ perPage?: number | null;
3223
+ totalCount?: number | null;
3224
+ };
3225
+ }
2913
3226
 
2914
3227
  export const ListUserSchemaHostsResponse =
2915
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2916
- Schema.Struct({
2917
- createdAt: Schema.String,
2918
- hosts: Schema.Array(Schema.String),
2919
- name: Schema.String,
2920
- schemaId: Schema.String,
3228
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3229
+ result: Schema.Array(
3230
+ Schema.Struct({
3231
+ createdAt: Schema.String,
3232
+ hosts: Schema.Array(Schema.String),
3233
+ name: Schema.String,
3234
+ schemaId: Schema.String,
3235
+ }).pipe(
3236
+ Schema.encodeKeys({
3237
+ createdAt: "created_at",
3238
+ hosts: "hosts",
3239
+ name: "name",
3240
+ schemaId: "schema_id",
3241
+ }),
3242
+ ),
3243
+ ),
3244
+ resultInfo: Schema.Struct({
3245
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3246
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3247
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3248
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2921
3249
  }).pipe(
2922
3250
  Schema.encodeKeys({
2923
- createdAt: "created_at",
2924
- hosts: "hosts",
2925
- name: "name",
2926
- schemaId: "schema_id",
3251
+ count: "count",
3252
+ page: "page",
3253
+ perPage: "per_page",
3254
+ totalCount: "total_count",
2927
3255
  }),
2928
3256
  ),
3257
+ }).pipe(
3258
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
2929
3259
  ) as unknown as Schema.Schema<ListUserSchemaHostsResponse>;
2930
3260
 
2931
3261
  export type ListUserSchemaHostsError = DefaultErrors;
2932
3262
 
2933
- export const listUserSchemaHosts: API.OperationMethod<
3263
+ export const listUserSchemaHosts: API.PaginatedOperationMethod<
2934
3264
  ListUserSchemaHostsRequest,
2935
3265
  ListUserSchemaHostsResponse,
2936
3266
  ListUserSchemaHostsError,
2937
3267
  Credentials | HttpClient.HttpClient
2938
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3268
+ > & {
3269
+ pages: (
3270
+ input: ListUserSchemaHostsRequest,
3271
+ ) => stream.Stream<
3272
+ ListUserSchemaHostsResponse,
3273
+ ListUserSchemaHostsError,
3274
+ Credentials | HttpClient.HttpClient
3275
+ >;
3276
+ items: (
3277
+ input: ListUserSchemaHostsRequest,
3278
+ ) => stream.Stream<
3279
+ { createdAt: string; hosts: string[]; name: string; schemaId: string },
3280
+ ListUserSchemaHostsError,
3281
+ Credentials | HttpClient.HttpClient
3282
+ >;
3283
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2939
3284
  input: ListUserSchemaHostsRequest,
2940
3285
  output: ListUserSchemaHostsResponse,
2941
3286
  errors: [],
3287
+ pagination: {
3288
+ mode: "page",
3289
+ inputToken: "page",
3290
+ outputToken: "resultInfo.page",
3291
+ items: "result",
3292
+ pageSize: "perPage",
3293
+ } as const,
2942
3294
  }));
2943
3295
 
2944
3296
  // =============================================================================
@@ -2987,405 +3339,552 @@ export const ListUserSchemaOperationsRequest =
2987
3339
  }),
2988
3340
  ) as unknown as Schema.Schema<ListUserSchemaOperationsRequest>;
2989
3341
 
2990
- export type ListUserSchemaOperationsResponse = (
2991
- | {
2992
- endpoint: string;
2993
- host: string;
2994
- lastUpdated: string;
2995
- method:
2996
- | "GET"
2997
- | "POST"
2998
- | "HEAD"
2999
- | "OPTIONS"
3000
- | "PUT"
3001
- | "DELETE"
3002
- | "CONNECT"
3003
- | "PATCH"
3004
- | "TRACE";
3005
- operationId: string;
3006
- features?:
3007
- | {
3008
- thresholds?: {
3009
- authIdTokens?: number | null;
3010
- dataPoints?: number | null;
3011
- lastUpdated?: string | null;
3012
- p50?: number | null;
3013
- p90?: number | null;
3014
- p99?: number | null;
3015
- periodSeconds?: number | null;
3016
- requests?: number | null;
3017
- suggestedThreshold?: number | null;
3018
- } | null;
3019
- }
3020
- | {
3021
- parameterSchemas: {
3022
- lastUpdated?: string | null;
3023
- parameterSchemas?: {
3024
- parameters?: unknown[] | null;
3025
- responses?: null;
3342
+ export interface ListUserSchemaOperationsResponse {
3343
+ result: (
3344
+ | {
3345
+ endpoint: string;
3346
+ host: string;
3347
+ lastUpdated: string;
3348
+ method:
3349
+ | "GET"
3350
+ | "POST"
3351
+ | "HEAD"
3352
+ | "OPTIONS"
3353
+ | "PUT"
3354
+ | "DELETE"
3355
+ | "CONNECT"
3356
+ | "PATCH"
3357
+ | "TRACE";
3358
+ operationId: string;
3359
+ features?:
3360
+ | {
3361
+ thresholds?: {
3362
+ authIdTokens?: number | null;
3363
+ dataPoints?: number | null;
3364
+ lastUpdated?: string | null;
3365
+ p50?: number | null;
3366
+ p90?: number | null;
3367
+ p99?: number | null;
3368
+ periodSeconds?: number | null;
3369
+ requests?: number | null;
3370
+ suggestedThreshold?: number | null;
3026
3371
  } | null;
3027
- };
3028
- }
3029
- | {
3030
- apiRouting?: {
3031
- lastUpdated?: string | null;
3032
- route?: string | null;
3033
- } | null;
3034
- }
3035
- | {
3036
- confidenceIntervals?: {
3037
- lastUpdated?: string | null;
3038
- suggestedThreshold?: {
3039
- confidenceIntervals?: {
3040
- p90?: { lower?: number | null; upper?: number | null } | null;
3041
- p95?: { lower?: number | null; upper?: number | null } | null;
3042
- p99?: { lower?: number | null; upper?: number | null } | null;
3372
+ }
3373
+ | {
3374
+ parameterSchemas: {
3375
+ lastUpdated?: string | null;
3376
+ parameterSchemas?: {
3377
+ parameters?: unknown[] | null;
3378
+ responses?: null;
3043
3379
  } | null;
3044
- mean?: number | null;
3380
+ };
3381
+ }
3382
+ | {
3383
+ apiRouting?: {
3384
+ lastUpdated?: string | null;
3385
+ route?: string | null;
3045
3386
  } | null;
3046
- } | null;
3047
- }
3048
- | {
3049
- schemaInfo?: {
3050
- activeSchema?: {
3051
- id?: string | null;
3052
- createdAt?: string | null;
3053
- isLearned?: boolean | null;
3054
- name?: string | null;
3387
+ }
3388
+ | {
3389
+ confidenceIntervals?: {
3390
+ lastUpdated?: string | null;
3391
+ suggestedThreshold?: {
3392
+ confidenceIntervals?: {
3393
+ p90?: {
3394
+ lower?: number | null;
3395
+ upper?: number | null;
3396
+ } | null;
3397
+ p95?: {
3398
+ lower?: number | null;
3399
+ upper?: number | null;
3400
+ } | null;
3401
+ p99?: {
3402
+ lower?: number | null;
3403
+ upper?: number | null;
3404
+ } | null;
3405
+ } | null;
3406
+ mean?: number | null;
3407
+ } | null;
3055
3408
  } | null;
3056
- learnedAvailable?: boolean | null;
3057
- mitigationAction?: "none" | "log" | "block" | null;
3058
- } | null;
3059
- }
3060
- | null;
3061
- }
3062
- | {
3063
- endpoint: string;
3064
- host: string;
3065
- method:
3066
- | "GET"
3067
- | "POST"
3068
- | "HEAD"
3069
- | "OPTIONS"
3070
- | "PUT"
3071
- | "DELETE"
3072
- | "CONNECT"
3073
- | "PATCH"
3074
- | "TRACE";
3075
- }
3076
- )[];
3409
+ }
3410
+ | {
3411
+ schemaInfo?: {
3412
+ activeSchema?: {
3413
+ id?: string | null;
3414
+ createdAt?: string | null;
3415
+ isLearned?: boolean | null;
3416
+ name?: string | null;
3417
+ } | null;
3418
+ learnedAvailable?: boolean | null;
3419
+ mitigationAction?: "none" | "log" | "block" | null;
3420
+ } | null;
3421
+ }
3422
+ | null;
3423
+ }
3424
+ | {
3425
+ endpoint: string;
3426
+ host: string;
3427
+ method:
3428
+ | "GET"
3429
+ | "POST"
3430
+ | "HEAD"
3431
+ | "OPTIONS"
3432
+ | "PUT"
3433
+ | "DELETE"
3434
+ | "CONNECT"
3435
+ | "PATCH"
3436
+ | "TRACE";
3437
+ }
3438
+ )[];
3439
+ resultInfo: {
3440
+ count?: number | null;
3441
+ page?: number | null;
3442
+ perPage?: number | null;
3443
+ totalCount?: number | null;
3444
+ };
3445
+ }
3077
3446
 
3078
3447
  export const ListUserSchemaOperationsResponse =
3079
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
3080
- Schema.Union([
3081
- Schema.Struct({
3082
- endpoint: Schema.String,
3083
- host: Schema.String,
3084
- lastUpdated: Schema.String,
3085
- method: Schema.Literals([
3086
- "GET",
3087
- "POST",
3088
- "HEAD",
3089
- "OPTIONS",
3090
- "PUT",
3091
- "DELETE",
3092
- "CONNECT",
3093
- "PATCH",
3094
- "TRACE",
3095
- ]),
3096
- operationId: Schema.String,
3097
- features: Schema.optional(
3098
- Schema.Union([
3448
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3449
+ result: Schema.Array(
3450
+ Schema.Union([
3451
+ Schema.Struct({
3452
+ endpoint: Schema.String,
3453
+ host: Schema.String,
3454
+ lastUpdated: Schema.String,
3455
+ method: Schema.Literals([
3456
+ "GET",
3457
+ "POST",
3458
+ "HEAD",
3459
+ "OPTIONS",
3460
+ "PUT",
3461
+ "DELETE",
3462
+ "CONNECT",
3463
+ "PATCH",
3464
+ "TRACE",
3465
+ ]),
3466
+ operationId: Schema.String,
3467
+ features: Schema.optional(
3099
3468
  Schema.Union([
3100
- Schema.Struct({
3101
- thresholds: Schema.optional(
3102
- Schema.Union([
3103
- Schema.Struct({
3104
- authIdTokens: Schema.optional(
3105
- Schema.Union([Schema.Number, Schema.Null]),
3106
- ),
3107
- dataPoints: Schema.optional(
3108
- Schema.Union([Schema.Number, Schema.Null]),
3109
- ),
3110
- lastUpdated: Schema.optional(
3111
- Schema.Union([Schema.String, Schema.Null]),
3112
- ),
3113
- p50: Schema.optional(
3114
- Schema.Union([Schema.Number, Schema.Null]),
3115
- ),
3116
- p90: Schema.optional(
3117
- Schema.Union([Schema.Number, Schema.Null]),
3118
- ),
3119
- p99: Schema.optional(
3120
- Schema.Union([Schema.Number, Schema.Null]),
3121
- ),
3122
- periodSeconds: Schema.optional(
3123
- Schema.Union([Schema.Number, Schema.Null]),
3124
- ),
3125
- requests: Schema.optional(
3126
- Schema.Union([Schema.Number, Schema.Null]),
3127
- ),
3128
- suggestedThreshold: Schema.optional(
3129
- Schema.Union([Schema.Number, Schema.Null]),
3469
+ Schema.Union([
3470
+ Schema.Struct({
3471
+ thresholds: Schema.optional(
3472
+ Schema.Union([
3473
+ Schema.Struct({
3474
+ authIdTokens: Schema.optional(
3475
+ Schema.Union([Schema.Number, Schema.Null]),
3476
+ ),
3477
+ dataPoints: Schema.optional(
3478
+ Schema.Union([Schema.Number, Schema.Null]),
3479
+ ),
3480
+ lastUpdated: Schema.optional(
3481
+ Schema.Union([Schema.String, Schema.Null]),
3482
+ ),
3483
+ p50: Schema.optional(
3484
+ Schema.Union([Schema.Number, Schema.Null]),
3485
+ ),
3486
+ p90: Schema.optional(
3487
+ Schema.Union([Schema.Number, Schema.Null]),
3488
+ ),
3489
+ p99: Schema.optional(
3490
+ Schema.Union([Schema.Number, Schema.Null]),
3491
+ ),
3492
+ periodSeconds: Schema.optional(
3493
+ Schema.Union([Schema.Number, Schema.Null]),
3494
+ ),
3495
+ requests: Schema.optional(
3496
+ Schema.Union([Schema.Number, Schema.Null]),
3497
+ ),
3498
+ suggestedThreshold: Schema.optional(
3499
+ Schema.Union([Schema.Number, Schema.Null]),
3500
+ ),
3501
+ }).pipe(
3502
+ Schema.encodeKeys({
3503
+ authIdTokens: "auth_id_tokens",
3504
+ dataPoints: "data_points",
3505
+ lastUpdated: "last_updated",
3506
+ p50: "p50",
3507
+ p90: "p90",
3508
+ p99: "p99",
3509
+ periodSeconds: "period_seconds",
3510
+ requests: "requests",
3511
+ suggestedThreshold: "suggested_threshold",
3512
+ }),
3130
3513
  ),
3131
- }).pipe(
3132
- Schema.encodeKeys({
3133
- authIdTokens: "auth_id_tokens",
3134
- dataPoints: "data_points",
3135
- lastUpdated: "last_updated",
3136
- p50: "p50",
3137
- p90: "p90",
3138
- p99: "p99",
3139
- periodSeconds: "period_seconds",
3140
- requests: "requests",
3141
- suggestedThreshold: "suggested_threshold",
3142
- }),
3514
+ Schema.Null,
3515
+ ]),
3516
+ ),
3517
+ }),
3518
+ Schema.Struct({
3519
+ parameterSchemas: Schema.Struct({
3520
+ lastUpdated: Schema.optional(
3521
+ Schema.Union([Schema.String, Schema.Null]),
3143
3522
  ),
3144
- Schema.Null,
3145
- ]),
3523
+ parameterSchemas: Schema.optional(
3524
+ Schema.Union([
3525
+ Schema.Struct({
3526
+ parameters: Schema.optional(
3527
+ Schema.Union([
3528
+ Schema.Array(Schema.Unknown),
3529
+ Schema.Null,
3530
+ ]),
3531
+ ),
3532
+ responses: Schema.optional(Schema.Null),
3533
+ }),
3534
+ Schema.Null,
3535
+ ]),
3536
+ ),
3537
+ }).pipe(
3538
+ Schema.encodeKeys({
3539
+ lastUpdated: "last_updated",
3540
+ parameterSchemas: "parameter_schemas",
3541
+ }),
3542
+ ),
3543
+ }).pipe(
3544
+ Schema.encodeKeys({ parameterSchemas: "parameter_schemas" }),
3146
3545
  ),
3147
- }),
3148
- Schema.Struct({
3149
- parameterSchemas: Schema.Struct({
3150
- lastUpdated: Schema.optional(
3151
- Schema.Union([Schema.String, Schema.Null]),
3546
+ Schema.Struct({
3547
+ apiRouting: Schema.optional(
3548
+ Schema.Union([
3549
+ Schema.Struct({
3550
+ lastUpdated: Schema.optional(
3551
+ Schema.Union([Schema.String, Schema.Null]),
3552
+ ),
3553
+ route: Schema.optional(
3554
+ Schema.Union([Schema.String, Schema.Null]),
3555
+ ),
3556
+ }).pipe(
3557
+ Schema.encodeKeys({
3558
+ lastUpdated: "last_updated",
3559
+ route: "route",
3560
+ }),
3561
+ ),
3562
+ Schema.Null,
3563
+ ]),
3152
3564
  ),
3153
- parameterSchemas: Schema.optional(
3565
+ }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
3566
+ Schema.Struct({
3567
+ confidenceIntervals: Schema.optional(
3154
3568
  Schema.Union([
3155
3569
  Schema.Struct({
3156
- parameters: Schema.optional(
3570
+ lastUpdated: Schema.optional(
3571
+ Schema.Union([Schema.String, Schema.Null]),
3572
+ ),
3573
+ suggestedThreshold: Schema.optional(
3157
3574
  Schema.Union([
3158
- Schema.Array(Schema.Unknown),
3575
+ Schema.Struct({
3576
+ confidenceIntervals: Schema.optional(
3577
+ Schema.Union([
3578
+ Schema.Struct({
3579
+ p90: Schema.optional(
3580
+ Schema.Union([
3581
+ Schema.Struct({
3582
+ lower: Schema.optional(
3583
+ Schema.Union([
3584
+ Schema.Number,
3585
+ Schema.Null,
3586
+ ]),
3587
+ ),
3588
+ upper: Schema.optional(
3589
+ Schema.Union([
3590
+ Schema.Number,
3591
+ Schema.Null,
3592
+ ]),
3593
+ ),
3594
+ }),
3595
+ Schema.Null,
3596
+ ]),
3597
+ ),
3598
+ p95: Schema.optional(
3599
+ Schema.Union([
3600
+ Schema.Struct({
3601
+ lower: Schema.optional(
3602
+ Schema.Union([
3603
+ Schema.Number,
3604
+ Schema.Null,
3605
+ ]),
3606
+ ),
3607
+ upper: Schema.optional(
3608
+ Schema.Union([
3609
+ Schema.Number,
3610
+ Schema.Null,
3611
+ ]),
3612
+ ),
3613
+ }),
3614
+ Schema.Null,
3615
+ ]),
3616
+ ),
3617
+ p99: Schema.optional(
3618
+ Schema.Union([
3619
+ Schema.Struct({
3620
+ lower: Schema.optional(
3621
+ Schema.Union([
3622
+ Schema.Number,
3623
+ Schema.Null,
3624
+ ]),
3625
+ ),
3626
+ upper: Schema.optional(
3627
+ Schema.Union([
3628
+ Schema.Number,
3629
+ Schema.Null,
3630
+ ]),
3631
+ ),
3632
+ }),
3633
+ Schema.Null,
3634
+ ]),
3635
+ ),
3636
+ }),
3637
+ Schema.Null,
3638
+ ]),
3639
+ ),
3640
+ mean: Schema.optional(
3641
+ Schema.Union([Schema.Number, Schema.Null]),
3642
+ ),
3643
+ }).pipe(
3644
+ Schema.encodeKeys({
3645
+ confidenceIntervals: "confidence_intervals",
3646
+ mean: "mean",
3647
+ }),
3648
+ ),
3159
3649
  Schema.Null,
3160
3650
  ]),
3161
3651
  ),
3162
- responses: Schema.optional(Schema.Null),
3163
- }),
3652
+ }).pipe(
3653
+ Schema.encodeKeys({
3654
+ lastUpdated: "last_updated",
3655
+ suggestedThreshold: "suggested_threshold",
3656
+ }),
3657
+ ),
3164
3658
  Schema.Null,
3165
3659
  ]),
3166
3660
  ),
3167
3661
  }).pipe(
3168
3662
  Schema.encodeKeys({
3169
- lastUpdated: "last_updated",
3170
- parameterSchemas: "parameter_schemas",
3663
+ confidenceIntervals: "confidence_intervals",
3171
3664
  }),
3172
3665
  ),
3173
- }).pipe(
3174
- Schema.encodeKeys({ parameterSchemas: "parameter_schemas" }),
3175
- ),
3176
- Schema.Struct({
3177
- apiRouting: Schema.optional(
3178
- Schema.Union([
3179
- Schema.Struct({
3180
- lastUpdated: Schema.optional(
3181
- Schema.Union([Schema.String, Schema.Null]),
3182
- ),
3183
- route: Schema.optional(
3184
- Schema.Union([Schema.String, Schema.Null]),
3185
- ),
3186
- }).pipe(
3187
- Schema.encodeKeys({
3188
- lastUpdated: "last_updated",
3189
- route: "route",
3190
- }),
3191
- ),
3192
- Schema.Null,
3193
- ]),
3194
- ),
3195
- }).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
3196
- Schema.Struct({
3197
- confidenceIntervals: Schema.optional(
3198
- Schema.Union([
3199
- Schema.Struct({
3200
- lastUpdated: Schema.optional(
3201
- Schema.Union([Schema.String, Schema.Null]),
3202
- ),
3203
- suggestedThreshold: Schema.optional(
3204
- Schema.Union([
3205
- Schema.Struct({
3206
- confidenceIntervals: Schema.optional(
3207
- Schema.Union([
3208
- Schema.Struct({
3209
- p90: Schema.optional(
3210
- Schema.Union([
3211
- Schema.Struct({
3212
- lower: Schema.optional(
3213
- Schema.Union([
3214
- Schema.Number,
3215
- Schema.Null,
3216
- ]),
3217
- ),
3218
- upper: Schema.optional(
3219
- Schema.Union([
3220
- Schema.Number,
3221
- Schema.Null,
3222
- ]),
3223
- ),
3224
- }),
3225
- Schema.Null,
3226
- ]),
3227
- ),
3228
- p95: Schema.optional(
3229
- Schema.Union([
3230
- Schema.Struct({
3231
- lower: Schema.optional(
3232
- Schema.Union([
3233
- Schema.Number,
3234
- Schema.Null,
3235
- ]),
3236
- ),
3237
- upper: Schema.optional(
3238
- Schema.Union([
3239
- Schema.Number,
3240
- Schema.Null,
3241
- ]),
3242
- ),
3243
- }),
3244
- Schema.Null,
3245
- ]),
3246
- ),
3247
- p99: Schema.optional(
3248
- Schema.Union([
3249
- Schema.Struct({
3250
- lower: Schema.optional(
3251
- Schema.Union([
3252
- Schema.Number,
3253
- Schema.Null,
3254
- ]),
3255
- ),
3256
- upper: Schema.optional(
3257
- Schema.Union([
3258
- Schema.Number,
3259
- Schema.Null,
3260
- ]),
3261
- ),
3262
- }),
3263
- Schema.Null,
3264
- ]),
3265
- ),
3266
- }),
3267
- Schema.Null,
3268
- ]),
3269
- ),
3270
- mean: Schema.optional(
3271
- Schema.Union([Schema.Number, Schema.Null]),
3272
- ),
3273
- }).pipe(
3274
- Schema.encodeKeys({
3275
- confidenceIntervals: "confidence_intervals",
3276
- mean: "mean",
3277
- }),
3278
- ),
3279
- Schema.Null,
3280
- ]),
3281
- ),
3282
- }).pipe(
3283
- Schema.encodeKeys({
3284
- lastUpdated: "last_updated",
3285
- suggestedThreshold: "suggested_threshold",
3286
- }),
3287
- ),
3288
- Schema.Null,
3289
- ]),
3290
- ),
3291
- }).pipe(
3292
- Schema.encodeKeys({
3293
- confidenceIntervals: "confidence_intervals",
3294
- }),
3295
- ),
3296
- Schema.Struct({
3297
- schemaInfo: Schema.optional(
3298
- Schema.Union([
3299
- Schema.Struct({
3300
- activeSchema: Schema.optional(
3301
- Schema.Union([
3302
- Schema.Struct({
3303
- id: Schema.optional(
3304
- Schema.Union([Schema.String, Schema.Null]),
3305
- ),
3306
- createdAt: Schema.optional(
3307
- Schema.Union([Schema.String, Schema.Null]),
3308
- ),
3309
- isLearned: Schema.optional(
3310
- Schema.Union([Schema.Boolean, Schema.Null]),
3311
- ),
3312
- name: Schema.optional(
3313
- Schema.Union([Schema.String, Schema.Null]),
3666
+ Schema.Struct({
3667
+ schemaInfo: Schema.optional(
3668
+ Schema.Union([
3669
+ Schema.Struct({
3670
+ activeSchema: Schema.optional(
3671
+ Schema.Union([
3672
+ Schema.Struct({
3673
+ id: Schema.optional(
3674
+ Schema.Union([Schema.String, Schema.Null]),
3675
+ ),
3676
+ createdAt: Schema.optional(
3677
+ Schema.Union([Schema.String, Schema.Null]),
3678
+ ),
3679
+ isLearned: Schema.optional(
3680
+ Schema.Union([Schema.Boolean, Schema.Null]),
3681
+ ),
3682
+ name: Schema.optional(
3683
+ Schema.Union([Schema.String, Schema.Null]),
3684
+ ),
3685
+ }).pipe(
3686
+ Schema.encodeKeys({
3687
+ id: "id",
3688
+ createdAt: "created_at",
3689
+ isLearned: "is_learned",
3690
+ name: "name",
3691
+ }),
3314
3692
  ),
3315
- }).pipe(
3316
- Schema.encodeKeys({
3317
- id: "id",
3318
- createdAt: "created_at",
3319
- isLearned: "is_learned",
3320
- name: "name",
3321
- }),
3322
- ),
3323
- Schema.Null,
3324
- ]),
3325
- ),
3326
- learnedAvailable: Schema.optional(
3327
- Schema.Union([Schema.Boolean, Schema.Null]),
3328
- ),
3329
- mitigationAction: Schema.optional(
3330
- Schema.Union([
3331
- Schema.Literal("none"),
3332
- Schema.Literal("log"),
3333
- Schema.Literal("block"),
3334
- Schema.Null,
3335
- ]),
3693
+ Schema.Null,
3694
+ ]),
3695
+ ),
3696
+ learnedAvailable: Schema.optional(
3697
+ Schema.Union([Schema.Boolean, Schema.Null]),
3698
+ ),
3699
+ mitigationAction: Schema.optional(
3700
+ Schema.Union([
3701
+ Schema.Literal("none"),
3702
+ Schema.Literal("log"),
3703
+ Schema.Literal("block"),
3704
+ Schema.Null,
3705
+ ]),
3706
+ ),
3707
+ }).pipe(
3708
+ Schema.encodeKeys({
3709
+ activeSchema: "active_schema",
3710
+ learnedAvailable: "learned_available",
3711
+ mitigationAction: "mitigation_action",
3712
+ }),
3336
3713
  ),
3337
- }).pipe(
3338
- Schema.encodeKeys({
3339
- activeSchema: "active_schema",
3340
- learnedAvailable: "learned_available",
3341
- mitigationAction: "mitigation_action",
3342
- }),
3343
- ),
3344
- Schema.Null,
3345
- ]),
3346
- ),
3347
- }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
3714
+ Schema.Null,
3715
+ ]),
3716
+ ),
3717
+ }).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
3718
+ ]),
3719
+ Schema.Null,
3348
3720
  ]),
3349
- Schema.Null,
3350
- ]),
3721
+ ),
3722
+ }).pipe(
3723
+ Schema.encodeKeys({
3724
+ endpoint: "endpoint",
3725
+ host: "host",
3726
+ lastUpdated: "last_updated",
3727
+ method: "method",
3728
+ operationId: "operation_id",
3729
+ features: "features",
3730
+ }),
3351
3731
  ),
3352
- }).pipe(
3353
- Schema.encodeKeys({
3354
- endpoint: "endpoint",
3355
- host: "host",
3356
- lastUpdated: "last_updated",
3357
- method: "method",
3358
- operationId: "operation_id",
3359
- features: "features",
3732
+ Schema.Struct({
3733
+ endpoint: Schema.String,
3734
+ host: Schema.String,
3735
+ method: Schema.Literals([
3736
+ "GET",
3737
+ "POST",
3738
+ "HEAD",
3739
+ "OPTIONS",
3740
+ "PUT",
3741
+ "DELETE",
3742
+ "CONNECT",
3743
+ "PATCH",
3744
+ "TRACE",
3745
+ ]),
3360
3746
  }),
3361
- ),
3362
- Schema.Struct({
3363
- endpoint: Schema.String,
3364
- host: Schema.String,
3365
- method: Schema.Literals([
3366
- "GET",
3367
- "POST",
3368
- "HEAD",
3369
- "OPTIONS",
3370
- "PUT",
3371
- "DELETE",
3372
- "CONNECT",
3373
- "PATCH",
3374
- "TRACE",
3375
- ]),
3747
+ ]),
3748
+ ),
3749
+ resultInfo: Schema.Struct({
3750
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3751
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3752
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3753
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3754
+ }).pipe(
3755
+ Schema.encodeKeys({
3756
+ count: "count",
3757
+ page: "page",
3758
+ perPage: "per_page",
3759
+ totalCount: "total_count",
3376
3760
  }),
3377
- ]),
3761
+ ),
3762
+ }).pipe(
3763
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
3378
3764
  ) as unknown as Schema.Schema<ListUserSchemaOperationsResponse>;
3379
3765
 
3380
3766
  export type ListUserSchemaOperationsError = DefaultErrors;
3381
3767
 
3382
- export const listUserSchemaOperations: API.OperationMethod<
3768
+ export const listUserSchemaOperations: API.PaginatedOperationMethod<
3383
3769
  ListUserSchemaOperationsRequest,
3384
3770
  ListUserSchemaOperationsResponse,
3385
3771
  ListUserSchemaOperationsError,
3386
3772
  Credentials | HttpClient.HttpClient
3387
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3773
+ > & {
3774
+ pages: (
3775
+ input: ListUserSchemaOperationsRequest,
3776
+ ) => stream.Stream<
3777
+ ListUserSchemaOperationsResponse,
3778
+ ListUserSchemaOperationsError,
3779
+ Credentials | HttpClient.HttpClient
3780
+ >;
3781
+ items: (input: ListUserSchemaOperationsRequest) => stream.Stream<
3782
+ | {
3783
+ endpoint: string;
3784
+ host: string;
3785
+ lastUpdated: string;
3786
+ method:
3787
+ | "GET"
3788
+ | "POST"
3789
+ | "HEAD"
3790
+ | "OPTIONS"
3791
+ | "PUT"
3792
+ | "DELETE"
3793
+ | "CONNECT"
3794
+ | "PATCH"
3795
+ | "TRACE";
3796
+ operationId: string;
3797
+ features?:
3798
+ | {
3799
+ thresholds?: {
3800
+ authIdTokens?: number | null;
3801
+ dataPoints?: number | null;
3802
+ lastUpdated?: string | null;
3803
+ p50?: number | null;
3804
+ p90?: number | null;
3805
+ p99?: number | null;
3806
+ periodSeconds?: number | null;
3807
+ requests?: number | null;
3808
+ suggestedThreshold?: number | null;
3809
+ } | null;
3810
+ }
3811
+ | {
3812
+ parameterSchemas: {
3813
+ lastUpdated?: string | null;
3814
+ parameterSchemas?: {
3815
+ parameters?: unknown[] | null;
3816
+ responses?: null;
3817
+ } | null;
3818
+ };
3819
+ }
3820
+ | {
3821
+ apiRouting?: {
3822
+ lastUpdated?: string | null;
3823
+ route?: string | null;
3824
+ } | null;
3825
+ }
3826
+ | {
3827
+ confidenceIntervals?: {
3828
+ lastUpdated?: string | null;
3829
+ suggestedThreshold?: {
3830
+ confidenceIntervals?: {
3831
+ p90?: {
3832
+ lower?: number | null;
3833
+ upper?: number | null;
3834
+ } | null;
3835
+ p95?: {
3836
+ lower?: number | null;
3837
+ upper?: number | null;
3838
+ } | null;
3839
+ p99?: {
3840
+ lower?: number | null;
3841
+ upper?: number | null;
3842
+ } | null;
3843
+ } | null;
3844
+ mean?: number | null;
3845
+ } | null;
3846
+ } | null;
3847
+ }
3848
+ | {
3849
+ schemaInfo?: {
3850
+ activeSchema?: {
3851
+ id?: string | null;
3852
+ createdAt?: string | null;
3853
+ isLearned?: boolean | null;
3854
+ name?: string | null;
3855
+ } | null;
3856
+ learnedAvailable?: boolean | null;
3857
+ mitigationAction?: "none" | "log" | "block" | null;
3858
+ } | null;
3859
+ }
3860
+ | null;
3861
+ }
3862
+ | {
3863
+ endpoint: string;
3864
+ host: string;
3865
+ method:
3866
+ | "GET"
3867
+ | "POST"
3868
+ | "HEAD"
3869
+ | "OPTIONS"
3870
+ | "PUT"
3871
+ | "DELETE"
3872
+ | "CONNECT"
3873
+ | "PATCH"
3874
+ | "TRACE";
3875
+ },
3876
+ ListUserSchemaOperationsError,
3877
+ Credentials | HttpClient.HttpClient
3878
+ >;
3879
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3388
3880
  input: ListUserSchemaOperationsRequest,
3389
3881
  output: ListUserSchemaOperationsResponse,
3390
3882
  errors: [],
3883
+ pagination: {
3884
+ mode: "page",
3885
+ inputToken: "page",
3886
+ outputToken: "resultInfo.page",
3887
+ items: "result",
3888
+ pageSize: "perPage",
3889
+ } as const,
3391
3890
  }));