@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 ai-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";
@@ -169,33 +170,37 @@ export const GetAiGatewayResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
169
170
  ]),
170
171
  ),
171
172
  zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
172
- }).pipe(
173
- Schema.encodeKeys({
174
- id: "id",
175
- accountId: "account_id",
176
- accountTag: "account_tag",
177
- cacheInvalidateOnUpdate: "cache_invalidate_on_update",
178
- cacheTtl: "cache_ttl",
179
- collectLogs: "collect_logs",
180
- createdAt: "created_at",
181
- internalId: "internal_id",
182
- modifiedAt: "modified_at",
183
- rateLimitingInterval: "rate_limiting_interval",
184
- rateLimitingLimit: "rate_limiting_limit",
185
- rateLimitingTechnique: "rate_limiting_technique",
186
- authentication: "authentication",
187
- dlp: "dlp",
188
- isDefault: "is_default",
189
- logManagement: "log_management",
190
- logManagementStrategy: "log_management_strategy",
191
- logpush: "logpush",
192
- logpushPublicKey: "logpush_public_key",
193
- otel: "otel",
194
- storeId: "store_id",
195
- stripe: "stripe",
196
- zdr: "zdr",
197
- }),
198
- ) as unknown as Schema.Schema<GetAiGatewayResponse>;
173
+ })
174
+ .pipe(
175
+ Schema.encodeKeys({
176
+ id: "id",
177
+ accountId: "account_id",
178
+ accountTag: "account_tag",
179
+ cacheInvalidateOnUpdate: "cache_invalidate_on_update",
180
+ cacheTtl: "cache_ttl",
181
+ collectLogs: "collect_logs",
182
+ createdAt: "created_at",
183
+ internalId: "internal_id",
184
+ modifiedAt: "modified_at",
185
+ rateLimitingInterval: "rate_limiting_interval",
186
+ rateLimitingLimit: "rate_limiting_limit",
187
+ rateLimitingTechnique: "rate_limiting_technique",
188
+ authentication: "authentication",
189
+ dlp: "dlp",
190
+ isDefault: "is_default",
191
+ logManagement: "log_management",
192
+ logManagementStrategy: "log_management_strategy",
193
+ logpush: "logpush",
194
+ logpushPublicKey: "logpush_public_key",
195
+ otel: "otel",
196
+ storeId: "store_id",
197
+ stripe: "stripe",
198
+ zdr: "zdr",
199
+ }),
200
+ )
201
+ .pipe(
202
+ T.ResponsePath("result"),
203
+ ) as unknown as Schema.Schema<GetAiGatewayResponse>;
199
204
 
200
205
  export type GetAiGatewayError = DefaultErrors | GatewayNotFound;
201
206
 
@@ -224,172 +229,275 @@ export const ListAiGatewaysRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
224
229
  T.Http({ method: "GET", path: "/accounts/{account_id}/ai-gateway/gateways" }),
225
230
  ) as unknown as Schema.Schema<ListAiGatewaysRequest>;
226
231
 
227
- export type ListAiGatewaysResponse = {
228
- id: string;
229
- accountId: string;
230
- accountTag: string;
231
- cacheInvalidateOnUpdate: boolean;
232
- cacheTtl: number | null;
233
- collectLogs: boolean;
234
- createdAt: string;
235
- internalId: string;
236
- modifiedAt: string;
237
- rateLimitingInterval: number | null;
238
- rateLimitingLimit: number | null;
239
- rateLimitingTechnique: "fixed" | "sliding";
240
- authentication?: boolean | null;
241
- dlp?:
242
- | { action: "BLOCK" | "FLAG"; enabled: boolean; profiles: string[] }
243
- | {
244
- enabled: boolean;
245
- policies: {
246
- id: string;
247
- action: "FLAG" | "BLOCK";
248
- check: ("REQUEST" | "RESPONSE")[];
232
+ export interface ListAiGatewaysResponse {
233
+ result: {
234
+ id: string;
235
+ accountId: string;
236
+ accountTag: string;
237
+ cacheInvalidateOnUpdate: boolean;
238
+ cacheTtl: number | null;
239
+ collectLogs: boolean;
240
+ createdAt: string;
241
+ internalId: string;
242
+ modifiedAt: string;
243
+ rateLimitingInterval: number | null;
244
+ rateLimitingLimit: number | null;
245
+ rateLimitingTechnique: "fixed" | "sliding";
246
+ authentication?: boolean | null;
247
+ dlp?:
248
+ | { action: "BLOCK" | "FLAG"; enabled: boolean; profiles: string[] }
249
+ | {
249
250
  enabled: boolean;
250
- profiles: string[];
251
- }[];
252
- }
253
- | null;
254
- isDefault?: boolean | null;
255
- logManagement?: number | null;
256
- logManagementStrategy?: "STOP_INSERTING" | "DELETE_OLDEST" | null;
257
- logpush?: boolean | null;
258
- logpushPublicKey?: string | null;
259
- otel?:
260
- | { authorization: string; headers: Record<string, unknown>; url: string }[]
261
- | null;
262
- storeId?: string | null;
263
- stripe?: { authorization: string; usageEvents: { payload: string }[] } | null;
264
- zdr?: boolean | null;
265
- }[];
251
+ policies: {
252
+ id: string;
253
+ action: "FLAG" | "BLOCK";
254
+ check: ("REQUEST" | "RESPONSE")[];
255
+ enabled: boolean;
256
+ profiles: string[];
257
+ }[];
258
+ }
259
+ | null;
260
+ isDefault?: boolean | null;
261
+ logManagement?: number | null;
262
+ logManagementStrategy?: "STOP_INSERTING" | "DELETE_OLDEST" | null;
263
+ logpush?: boolean | null;
264
+ logpushPublicKey?: string | null;
265
+ otel?:
266
+ | {
267
+ authorization: string;
268
+ headers: Record<string, unknown>;
269
+ url: string;
270
+ }[]
271
+ | null;
272
+ storeId?: string | null;
273
+ stripe?: {
274
+ authorization: string;
275
+ usageEvents: { payload: string }[];
276
+ } | null;
277
+ zdr?: boolean | null;
278
+ }[];
279
+ resultInfo: {
280
+ count?: number | null;
281
+ page?: number | null;
282
+ perPage?: number | null;
283
+ totalCount?: number | null;
284
+ };
285
+ }
266
286
 
267
- export const ListAiGatewaysResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
268
- Schema.Struct({
269
- id: Schema.String,
270
- accountId: Schema.String,
271
- accountTag: Schema.String,
272
- cacheInvalidateOnUpdate: Schema.Boolean,
273
- cacheTtl: Schema.Union([Schema.Number, Schema.Null]),
274
- collectLogs: Schema.Boolean,
275
- createdAt: Schema.String,
276
- internalId: Schema.String,
277
- modifiedAt: Schema.String,
278
- rateLimitingInterval: Schema.Union([Schema.Number, Schema.Null]),
279
- rateLimitingLimit: Schema.Union([Schema.Number, Schema.Null]),
280
- rateLimitingTechnique: Schema.Literals(["fixed", "sliding"]),
281
- authentication: Schema.optional(
282
- Schema.Union([Schema.Boolean, Schema.Null]),
283
- ),
284
- dlp: Schema.optional(
285
- Schema.Union([
286
- Schema.Union([
287
- Schema.Struct({
288
- action: Schema.Literals(["BLOCK", "FLAG"]),
289
- enabled: Schema.Boolean,
290
- profiles: Schema.Array(Schema.String),
291
- }),
292
- Schema.Struct({
293
- enabled: Schema.Boolean,
294
- policies: Schema.Array(
287
+ export const ListAiGatewaysResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
288
+ {
289
+ result: Schema.Array(
290
+ Schema.Struct({
291
+ id: Schema.String,
292
+ accountId: Schema.String,
293
+ accountTag: Schema.String,
294
+ cacheInvalidateOnUpdate: Schema.Boolean,
295
+ cacheTtl: Schema.Union([Schema.Number, Schema.Null]),
296
+ collectLogs: Schema.Boolean,
297
+ createdAt: Schema.String,
298
+ internalId: Schema.String,
299
+ modifiedAt: Schema.String,
300
+ rateLimitingInterval: Schema.Union([Schema.Number, Schema.Null]),
301
+ rateLimitingLimit: Schema.Union([Schema.Number, Schema.Null]),
302
+ rateLimitingTechnique: Schema.Literals(["fixed", "sliding"]),
303
+ authentication: Schema.optional(
304
+ Schema.Union([Schema.Boolean, Schema.Null]),
305
+ ),
306
+ dlp: Schema.optional(
307
+ Schema.Union([
308
+ Schema.Union([
295
309
  Schema.Struct({
296
- id: Schema.String,
297
- action: Schema.Literals(["FLAG", "BLOCK"]),
298
- check: Schema.Array(Schema.Literals(["REQUEST", "RESPONSE"])),
310
+ action: Schema.Literals(["BLOCK", "FLAG"]),
299
311
  enabled: Schema.Boolean,
300
312
  profiles: Schema.Array(Schema.String),
301
313
  }),
314
+ Schema.Struct({
315
+ enabled: Schema.Boolean,
316
+ policies: Schema.Array(
317
+ Schema.Struct({
318
+ id: Schema.String,
319
+ action: Schema.Literals(["FLAG", "BLOCK"]),
320
+ check: Schema.Array(
321
+ Schema.Literals(["REQUEST", "RESPONSE"]),
322
+ ),
323
+ enabled: Schema.Boolean,
324
+ profiles: Schema.Array(Schema.String),
325
+ }),
326
+ ),
327
+ }),
328
+ ]),
329
+ Schema.Null,
330
+ ]),
331
+ ),
332
+ isDefault: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
333
+ logManagement: Schema.optional(
334
+ Schema.Union([Schema.Number, Schema.Null]),
335
+ ),
336
+ logManagementStrategy: Schema.optional(
337
+ Schema.Union([
338
+ Schema.Literal("STOP_INSERTING"),
339
+ Schema.Literal("DELETE_OLDEST"),
340
+ Schema.Null,
341
+ ]),
342
+ ),
343
+ logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
344
+ logpushPublicKey: Schema.optional(
345
+ Schema.Union([Schema.String, Schema.Null]),
346
+ ),
347
+ otel: Schema.optional(
348
+ Schema.Union([
349
+ Schema.Array(
350
+ Schema.Struct({
351
+ authorization: Schema.String,
352
+ headers: Schema.Struct({}),
353
+ url: Schema.String,
354
+ }),
302
355
  ),
303
- }),
304
- ]),
305
- Schema.Null,
306
- ]),
307
- ),
308
- isDefault: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
309
- logManagement: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
310
- logManagementStrategy: Schema.optional(
311
- Schema.Union([
312
- Schema.Literal("STOP_INSERTING"),
313
- Schema.Literal("DELETE_OLDEST"),
314
- Schema.Null,
315
- ]),
316
- ),
317
- logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
318
- logpushPublicKey: Schema.optional(
319
- Schema.Union([Schema.String, Schema.Null]),
320
- ),
321
- otel: Schema.optional(
322
- Schema.Union([
323
- Schema.Array(
324
- Schema.Struct({
325
- authorization: Schema.String,
326
- headers: Schema.Struct({}),
327
- url: Schema.String,
328
- }),
356
+ Schema.Null,
357
+ ]),
329
358
  ),
330
- Schema.Null,
331
- ]),
332
- ),
333
- storeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
334
- stripe: Schema.optional(
335
- Schema.Union([
336
- Schema.Struct({
337
- authorization: Schema.String,
338
- usageEvents: Schema.Array(
359
+ storeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
360
+ stripe: Schema.optional(
361
+ Schema.Union([
339
362
  Schema.Struct({
340
- payload: Schema.String,
341
- }),
342
- ),
343
- }).pipe(
344
- Schema.encodeKeys({
345
- authorization: "authorization",
346
- usageEvents: "usage_events",
347
- }),
363
+ authorization: Schema.String,
364
+ usageEvents: Schema.Array(
365
+ Schema.Struct({
366
+ payload: Schema.String,
367
+ }),
368
+ ),
369
+ }).pipe(
370
+ Schema.encodeKeys({
371
+ authorization: "authorization",
372
+ usageEvents: "usage_events",
373
+ }),
374
+ ),
375
+ Schema.Null,
376
+ ]),
348
377
  ),
349
- Schema.Null,
350
- ]),
378
+ zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
379
+ }).pipe(
380
+ Schema.encodeKeys({
381
+ id: "id",
382
+ accountId: "account_id",
383
+ accountTag: "account_tag",
384
+ cacheInvalidateOnUpdate: "cache_invalidate_on_update",
385
+ cacheTtl: "cache_ttl",
386
+ collectLogs: "collect_logs",
387
+ createdAt: "created_at",
388
+ internalId: "internal_id",
389
+ modifiedAt: "modified_at",
390
+ rateLimitingInterval: "rate_limiting_interval",
391
+ rateLimitingLimit: "rate_limiting_limit",
392
+ rateLimitingTechnique: "rate_limiting_technique",
393
+ authentication: "authentication",
394
+ dlp: "dlp",
395
+ isDefault: "is_default",
396
+ logManagement: "log_management",
397
+ logManagementStrategy: "log_management_strategy",
398
+ logpush: "logpush",
399
+ logpushPublicKey: "logpush_public_key",
400
+ otel: "otel",
401
+ storeId: "store_id",
402
+ stripe: "stripe",
403
+ zdr: "zdr",
404
+ }),
405
+ ),
351
406
  ),
352
- zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
353
- }).pipe(
354
- Schema.encodeKeys({
355
- id: "id",
356
- accountId: "account_id",
357
- accountTag: "account_tag",
358
- cacheInvalidateOnUpdate: "cache_invalidate_on_update",
359
- cacheTtl: "cache_ttl",
360
- collectLogs: "collect_logs",
361
- createdAt: "created_at",
362
- internalId: "internal_id",
363
- modifiedAt: "modified_at",
364
- rateLimitingInterval: "rate_limiting_interval",
365
- rateLimitingLimit: "rate_limiting_limit",
366
- rateLimitingTechnique: "rate_limiting_technique",
367
- authentication: "authentication",
368
- dlp: "dlp",
369
- isDefault: "is_default",
370
- logManagement: "log_management",
371
- logManagementStrategy: "log_management_strategy",
372
- logpush: "logpush",
373
- logpushPublicKey: "logpush_public_key",
374
- otel: "otel",
375
- storeId: "store_id",
376
- stripe: "stripe",
377
- zdr: "zdr",
378
- }),
379
- ),
407
+ resultInfo: Schema.Struct({
408
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
409
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
410
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
411
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
412
+ }).pipe(
413
+ Schema.encodeKeys({
414
+ count: "count",
415
+ page: "page",
416
+ perPage: "per_page",
417
+ totalCount: "total_count",
418
+ }),
419
+ ),
420
+ },
421
+ ).pipe(
422
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
380
423
  ) as unknown as Schema.Schema<ListAiGatewaysResponse>;
381
424
 
382
425
  export type ListAiGatewaysError = DefaultErrors;
383
426
 
384
- export const listAiGateways: API.OperationMethod<
427
+ export const listAiGateways: API.PaginatedOperationMethod<
385
428
  ListAiGatewaysRequest,
386
429
  ListAiGatewaysResponse,
387
430
  ListAiGatewaysError,
388
431
  Credentials | HttpClient.HttpClient
389
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
432
+ > & {
433
+ pages: (
434
+ input: ListAiGatewaysRequest,
435
+ ) => stream.Stream<
436
+ ListAiGatewaysResponse,
437
+ ListAiGatewaysError,
438
+ Credentials | HttpClient.HttpClient
439
+ >;
440
+ items: (input: ListAiGatewaysRequest) => stream.Stream<
441
+ {
442
+ id: string;
443
+ accountId: string;
444
+ accountTag: string;
445
+ cacheInvalidateOnUpdate: boolean;
446
+ cacheTtl: number | null;
447
+ collectLogs: boolean;
448
+ createdAt: string;
449
+ internalId: string;
450
+ modifiedAt: string;
451
+ rateLimitingInterval: number | null;
452
+ rateLimitingLimit: number | null;
453
+ rateLimitingTechnique: "fixed" | "sliding";
454
+ authentication?: boolean | null;
455
+ dlp?:
456
+ | { action: "BLOCK" | "FLAG"; enabled: boolean; profiles: string[] }
457
+ | {
458
+ enabled: boolean;
459
+ policies: {
460
+ id: string;
461
+ action: "FLAG" | "BLOCK";
462
+ check: ("REQUEST" | "RESPONSE")[];
463
+ enabled: boolean;
464
+ profiles: string[];
465
+ }[];
466
+ }
467
+ | null;
468
+ isDefault?: boolean | null;
469
+ logManagement?: number | null;
470
+ logManagementStrategy?: "STOP_INSERTING" | "DELETE_OLDEST" | null;
471
+ logpush?: boolean | null;
472
+ logpushPublicKey?: string | null;
473
+ otel?:
474
+ | {
475
+ authorization: string;
476
+ headers: Record<string, unknown>;
477
+ url: string;
478
+ }[]
479
+ | null;
480
+ storeId?: string | null;
481
+ stripe?: {
482
+ authorization: string;
483
+ usageEvents: { payload: string }[];
484
+ } | null;
485
+ zdr?: boolean | null;
486
+ },
487
+ ListAiGatewaysError,
488
+ Credentials | HttpClient.HttpClient
489
+ >;
490
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
390
491
  input: ListAiGatewaysRequest,
391
492
  output: ListAiGatewaysResponse,
392
493
  errors: [],
494
+ pagination: {
495
+ mode: "page",
496
+ inputToken: "page",
497
+ outputToken: "resultInfo.page",
498
+ items: "result",
499
+ pageSize: "perPage",
500
+ } as const,
393
501
  }));
394
502
 
395
503
  export interface CreateAiGatewayRequest {
@@ -601,33 +709,37 @@ export const CreateAiGatewayResponse =
601
709
  ]),
602
710
  ),
603
711
  zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
604
- }).pipe(
605
- Schema.encodeKeys({
606
- id: "id",
607
- accountId: "account_id",
608
- accountTag: "account_tag",
609
- cacheInvalidateOnUpdate: "cache_invalidate_on_update",
610
- cacheTtl: "cache_ttl",
611
- collectLogs: "collect_logs",
612
- createdAt: "created_at",
613
- internalId: "internal_id",
614
- modifiedAt: "modified_at",
615
- rateLimitingInterval: "rate_limiting_interval",
616
- rateLimitingLimit: "rate_limiting_limit",
617
- rateLimitingTechnique: "rate_limiting_technique",
618
- authentication: "authentication",
619
- dlp: "dlp",
620
- isDefault: "is_default",
621
- logManagement: "log_management",
622
- logManagementStrategy: "log_management_strategy",
623
- logpush: "logpush",
624
- logpushPublicKey: "logpush_public_key",
625
- otel: "otel",
626
- storeId: "store_id",
627
- stripe: "stripe",
628
- zdr: "zdr",
629
- }),
630
- ) as unknown as Schema.Schema<CreateAiGatewayResponse>;
712
+ })
713
+ .pipe(
714
+ Schema.encodeKeys({
715
+ id: "id",
716
+ accountId: "account_id",
717
+ accountTag: "account_tag",
718
+ cacheInvalidateOnUpdate: "cache_invalidate_on_update",
719
+ cacheTtl: "cache_ttl",
720
+ collectLogs: "collect_logs",
721
+ createdAt: "created_at",
722
+ internalId: "internal_id",
723
+ modifiedAt: "modified_at",
724
+ rateLimitingInterval: "rate_limiting_interval",
725
+ rateLimitingLimit: "rate_limiting_limit",
726
+ rateLimitingTechnique: "rate_limiting_technique",
727
+ authentication: "authentication",
728
+ dlp: "dlp",
729
+ isDefault: "is_default",
730
+ logManagement: "log_management",
731
+ logManagementStrategy: "log_management_strategy",
732
+ logpush: "logpush",
733
+ logpushPublicKey: "logpush_public_key",
734
+ otel: "otel",
735
+ storeId: "store_id",
736
+ stripe: "stripe",
737
+ zdr: "zdr",
738
+ }),
739
+ )
740
+ .pipe(
741
+ T.ResponsePath("result"),
742
+ ) as unknown as Schema.Schema<CreateAiGatewayResponse>;
631
743
 
632
744
  export type CreateAiGatewayError = DefaultErrors | GatewayAlreadyExists;
633
745
 
@@ -926,33 +1038,37 @@ export const UpdateAiGatewayResponse =
926
1038
  ]),
927
1039
  ),
928
1040
  zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
929
- }).pipe(
930
- Schema.encodeKeys({
931
- id: "id",
932
- accountId: "account_id",
933
- accountTag: "account_tag",
934
- cacheInvalidateOnUpdate: "cache_invalidate_on_update",
935
- cacheTtl: "cache_ttl",
936
- collectLogs: "collect_logs",
937
- createdAt: "created_at",
938
- internalId: "internal_id",
939
- modifiedAt: "modified_at",
940
- rateLimitingInterval: "rate_limiting_interval",
941
- rateLimitingLimit: "rate_limiting_limit",
942
- rateLimitingTechnique: "rate_limiting_technique",
943
- authentication: "authentication",
944
- dlp: "dlp",
945
- isDefault: "is_default",
946
- logManagement: "log_management",
947
- logManagementStrategy: "log_management_strategy",
948
- logpush: "logpush",
949
- logpushPublicKey: "logpush_public_key",
950
- otel: "otel",
951
- storeId: "store_id",
952
- stripe: "stripe",
953
- zdr: "zdr",
954
- }),
955
- ) as unknown as Schema.Schema<UpdateAiGatewayResponse>;
1041
+ })
1042
+ .pipe(
1043
+ Schema.encodeKeys({
1044
+ id: "id",
1045
+ accountId: "account_id",
1046
+ accountTag: "account_tag",
1047
+ cacheInvalidateOnUpdate: "cache_invalidate_on_update",
1048
+ cacheTtl: "cache_ttl",
1049
+ collectLogs: "collect_logs",
1050
+ createdAt: "created_at",
1051
+ internalId: "internal_id",
1052
+ modifiedAt: "modified_at",
1053
+ rateLimitingInterval: "rate_limiting_interval",
1054
+ rateLimitingLimit: "rate_limiting_limit",
1055
+ rateLimitingTechnique: "rate_limiting_technique",
1056
+ authentication: "authentication",
1057
+ dlp: "dlp",
1058
+ isDefault: "is_default",
1059
+ logManagement: "log_management",
1060
+ logManagementStrategy: "log_management_strategy",
1061
+ logpush: "logpush",
1062
+ logpushPublicKey: "logpush_public_key",
1063
+ otel: "otel",
1064
+ storeId: "store_id",
1065
+ stripe: "stripe",
1066
+ zdr: "zdr",
1067
+ }),
1068
+ )
1069
+ .pipe(
1070
+ T.ResponsePath("result"),
1071
+ ) as unknown as Schema.Schema<UpdateAiGatewayResponse>;
956
1072
 
957
1073
  export type UpdateAiGatewayError = DefaultErrors | GatewayNotFound;
958
1074
 
@@ -1111,33 +1227,37 @@ export const DeleteAiGatewayResponse =
1111
1227
  ]),
1112
1228
  ),
1113
1229
  zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1114
- }).pipe(
1115
- Schema.encodeKeys({
1116
- id: "id",
1117
- accountId: "account_id",
1118
- accountTag: "account_tag",
1119
- cacheInvalidateOnUpdate: "cache_invalidate_on_update",
1120
- cacheTtl: "cache_ttl",
1121
- collectLogs: "collect_logs",
1122
- createdAt: "created_at",
1123
- internalId: "internal_id",
1124
- modifiedAt: "modified_at",
1125
- rateLimitingInterval: "rate_limiting_interval",
1126
- rateLimitingLimit: "rate_limiting_limit",
1127
- rateLimitingTechnique: "rate_limiting_technique",
1128
- authentication: "authentication",
1129
- dlp: "dlp",
1130
- isDefault: "is_default",
1131
- logManagement: "log_management",
1132
- logManagementStrategy: "log_management_strategy",
1133
- logpush: "logpush",
1134
- logpushPublicKey: "logpush_public_key",
1135
- otel: "otel",
1136
- storeId: "store_id",
1137
- stripe: "stripe",
1138
- zdr: "zdr",
1139
- }),
1140
- ) as unknown as Schema.Schema<DeleteAiGatewayResponse>;
1230
+ })
1231
+ .pipe(
1232
+ Schema.encodeKeys({
1233
+ id: "id",
1234
+ accountId: "account_id",
1235
+ accountTag: "account_tag",
1236
+ cacheInvalidateOnUpdate: "cache_invalidate_on_update",
1237
+ cacheTtl: "cache_ttl",
1238
+ collectLogs: "collect_logs",
1239
+ createdAt: "created_at",
1240
+ internalId: "internal_id",
1241
+ modifiedAt: "modified_at",
1242
+ rateLimitingInterval: "rate_limiting_interval",
1243
+ rateLimitingLimit: "rate_limiting_limit",
1244
+ rateLimitingTechnique: "rate_limiting_technique",
1245
+ authentication: "authentication",
1246
+ dlp: "dlp",
1247
+ isDefault: "is_default",
1248
+ logManagement: "log_management",
1249
+ logManagementStrategy: "log_management_strategy",
1250
+ logpush: "logpush",
1251
+ logpushPublicKey: "logpush_public_key",
1252
+ otel: "otel",
1253
+ storeId: "store_id",
1254
+ stripe: "stripe",
1255
+ zdr: "zdr",
1256
+ }),
1257
+ )
1258
+ .pipe(
1259
+ T.ResponsePath("result"),
1260
+ ) as unknown as Schema.Schema<DeleteAiGatewayResponse>;
1141
1261
 
1142
1262
  export type DeleteAiGatewayError = DefaultErrors | GatewayNotFound;
1143
1263
 
@@ -1233,123 +1353,10 @@ export const GetDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1233
1353
  }),
1234
1354
  ),
1235
1355
  gatewayId: Schema.String,
1236
- modifiedAt: Schema.String,
1237
- name: Schema.String,
1238
- }).pipe(
1239
- Schema.encodeKeys({
1240
- id: "id",
1241
- accountId: "account_id",
1242
- accountTag: "account_tag",
1243
- createdAt: "created_at",
1244
- enable: "enable",
1245
- filters: "filters",
1246
- gatewayId: "gateway_id",
1247
- modifiedAt: "modified_at",
1248
- name: "name",
1249
- }),
1250
- ) as unknown as Schema.Schema<GetDatasetResponse>;
1251
-
1252
- export type GetDatasetError = DefaultErrors;
1253
-
1254
- export const getDataset: API.OperationMethod<
1255
- GetDatasetRequest,
1256
- GetDatasetResponse,
1257
- GetDatasetError,
1258
- Credentials | HttpClient.HttpClient
1259
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1260
- input: GetDatasetRequest,
1261
- output: GetDatasetResponse,
1262
- errors: [],
1263
- }));
1264
-
1265
- export interface ListDatasetsRequest {
1266
- gatewayId: string;
1267
- /** Path param: */
1268
- accountId: string;
1269
- /** Query param: */
1270
- enable?: boolean;
1271
- /** Query param: */
1272
- name?: string;
1273
- /** Query param: Search by id, name, filters */
1274
- search?: string;
1275
- }
1276
-
1277
- export const ListDatasetsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1278
- gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
1279
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1280
- enable: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("enable")),
1281
- name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
1282
- search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
1283
- }).pipe(
1284
- T.Http({
1285
- method: "GET",
1286
- path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/datasets",
1287
- }),
1288
- ) as unknown as Schema.Schema<ListDatasetsRequest>;
1289
-
1290
- export type ListDatasetsResponse = {
1291
- id: string;
1292
- accountId: string;
1293
- accountTag: string;
1294
- createdAt: string;
1295
- enable: boolean;
1296
- filters: {
1297
- key:
1298
- | "created_at"
1299
- | "request_content_type"
1300
- | "response_content_type"
1301
- | "success"
1302
- | "cached"
1303
- | "provider"
1304
- | "model"
1305
- | "cost"
1306
- | "tokens"
1307
- | "tokens_in"
1308
- | "tokens_out"
1309
- | "duration"
1310
- | "feedback";
1311
- operator: "eq" | "contains" | "lt" | "gt";
1312
- value: (string | number | boolean)[];
1313
- }[];
1314
- gatewayId: string;
1315
- modifiedAt: string;
1316
- name: string;
1317
- }[];
1318
-
1319
- export const ListDatasetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1320
- Schema.Struct({
1321
- id: Schema.String,
1322
- accountId: Schema.String,
1323
- accountTag: Schema.String,
1324
- createdAt: Schema.String,
1325
- enable: Schema.Boolean,
1326
- filters: Schema.Array(
1327
- Schema.Struct({
1328
- key: Schema.Literals([
1329
- "created_at",
1330
- "request_content_type",
1331
- "response_content_type",
1332
- "success",
1333
- "cached",
1334
- "provider",
1335
- "model",
1336
- "cost",
1337
- "tokens",
1338
- "tokens_in",
1339
- "tokens_out",
1340
- "duration",
1341
- "feedback",
1342
- ]),
1343
- operator: Schema.Literals(["eq", "contains", "lt", "gt"]),
1344
- value: Schema.Array(
1345
- Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
1346
- ),
1347
- }),
1348
- ),
1349
- gatewayId: Schema.String,
1350
- modifiedAt: Schema.String,
1351
- name: Schema.String,
1352
- }).pipe(
1356
+ modifiedAt: Schema.String,
1357
+ name: Schema.String,
1358
+ })
1359
+ .pipe(
1353
1360
  Schema.encodeKeys({
1354
1361
  id: "id",
1355
1362
  accountId: "account_id",
@@ -1361,20 +1368,209 @@ export const ListDatasetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1361
1368
  modifiedAt: "modified_at",
1362
1369
  name: "name",
1363
1370
  }),
1371
+ )
1372
+ .pipe(
1373
+ T.ResponsePath("result"),
1374
+ ) as unknown as Schema.Schema<GetDatasetResponse>;
1375
+
1376
+ export type GetDatasetError = DefaultErrors;
1377
+
1378
+ export const getDataset: API.OperationMethod<
1379
+ GetDatasetRequest,
1380
+ GetDatasetResponse,
1381
+ GetDatasetError,
1382
+ Credentials | HttpClient.HttpClient
1383
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1384
+ input: GetDatasetRequest,
1385
+ output: GetDatasetResponse,
1386
+ errors: [],
1387
+ }));
1388
+
1389
+ export interface ListDatasetsRequest {
1390
+ gatewayId: string;
1391
+ /** Path param: */
1392
+ accountId: string;
1393
+ /** Query param: */
1394
+ enable?: boolean;
1395
+ /** Query param: */
1396
+ name?: string;
1397
+ /** Query param: Search by id, name, filters */
1398
+ search?: string;
1399
+ }
1400
+
1401
+ export const ListDatasetsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1402
+ gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
1403
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1404
+ enable: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("enable")),
1405
+ name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
1406
+ search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
1407
+ }).pipe(
1408
+ T.Http({
1409
+ method: "GET",
1410
+ path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/datasets",
1411
+ }),
1412
+ ) as unknown as Schema.Schema<ListDatasetsRequest>;
1413
+
1414
+ export interface ListDatasetsResponse {
1415
+ result: {
1416
+ id: string;
1417
+ accountId: string;
1418
+ accountTag: string;
1419
+ createdAt: string;
1420
+ enable: boolean;
1421
+ filters: {
1422
+ key:
1423
+ | "created_at"
1424
+ | "request_content_type"
1425
+ | "response_content_type"
1426
+ | "success"
1427
+ | "cached"
1428
+ | "provider"
1429
+ | "model"
1430
+ | "cost"
1431
+ | "tokens"
1432
+ | "tokens_in"
1433
+ | "tokens_out"
1434
+ | "duration"
1435
+ | "feedback";
1436
+ operator: "eq" | "contains" | "lt" | "gt";
1437
+ value: (string | number | boolean)[];
1438
+ }[];
1439
+ gatewayId: string;
1440
+ modifiedAt: string;
1441
+ name: string;
1442
+ }[];
1443
+ resultInfo: {
1444
+ count?: number | null;
1445
+ page?: number | null;
1446
+ perPage?: number | null;
1447
+ totalCount?: number | null;
1448
+ };
1449
+ }
1450
+
1451
+ export const ListDatasetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1452
+ result: Schema.Array(
1453
+ Schema.Struct({
1454
+ id: Schema.String,
1455
+ accountId: Schema.String,
1456
+ accountTag: Schema.String,
1457
+ createdAt: Schema.String,
1458
+ enable: Schema.Boolean,
1459
+ filters: Schema.Array(
1460
+ Schema.Struct({
1461
+ key: Schema.Literals([
1462
+ "created_at",
1463
+ "request_content_type",
1464
+ "response_content_type",
1465
+ "success",
1466
+ "cached",
1467
+ "provider",
1468
+ "model",
1469
+ "cost",
1470
+ "tokens",
1471
+ "tokens_in",
1472
+ "tokens_out",
1473
+ "duration",
1474
+ "feedback",
1475
+ ]),
1476
+ operator: Schema.Literals(["eq", "contains", "lt", "gt"]),
1477
+ value: Schema.Array(
1478
+ Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
1479
+ ),
1480
+ }),
1481
+ ),
1482
+ gatewayId: Schema.String,
1483
+ modifiedAt: Schema.String,
1484
+ name: Schema.String,
1485
+ }).pipe(
1486
+ Schema.encodeKeys({
1487
+ id: "id",
1488
+ accountId: "account_id",
1489
+ accountTag: "account_tag",
1490
+ createdAt: "created_at",
1491
+ enable: "enable",
1492
+ filters: "filters",
1493
+ gatewayId: "gateway_id",
1494
+ modifiedAt: "modified_at",
1495
+ name: "name",
1496
+ }),
1497
+ ),
1498
+ ),
1499
+ resultInfo: Schema.Struct({
1500
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1501
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1502
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1503
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1504
+ }).pipe(
1505
+ Schema.encodeKeys({
1506
+ count: "count",
1507
+ page: "page",
1508
+ perPage: "per_page",
1509
+ totalCount: "total_count",
1510
+ }),
1364
1511
  ),
1512
+ }).pipe(
1513
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
1365
1514
  ) as unknown as Schema.Schema<ListDatasetsResponse>;
1366
1515
 
1367
1516
  export type ListDatasetsError = DefaultErrors;
1368
1517
 
1369
- export const listDatasets: API.OperationMethod<
1518
+ export const listDatasets: API.PaginatedOperationMethod<
1370
1519
  ListDatasetsRequest,
1371
1520
  ListDatasetsResponse,
1372
1521
  ListDatasetsError,
1373
1522
  Credentials | HttpClient.HttpClient
1374
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1523
+ > & {
1524
+ pages: (
1525
+ input: ListDatasetsRequest,
1526
+ ) => stream.Stream<
1527
+ ListDatasetsResponse,
1528
+ ListDatasetsError,
1529
+ Credentials | HttpClient.HttpClient
1530
+ >;
1531
+ items: (input: ListDatasetsRequest) => stream.Stream<
1532
+ {
1533
+ id: string;
1534
+ accountId: string;
1535
+ accountTag: string;
1536
+ createdAt: string;
1537
+ enable: boolean;
1538
+ filters: {
1539
+ key:
1540
+ | "created_at"
1541
+ | "request_content_type"
1542
+ | "response_content_type"
1543
+ | "success"
1544
+ | "cached"
1545
+ | "provider"
1546
+ | "model"
1547
+ | "cost"
1548
+ | "tokens"
1549
+ | "tokens_in"
1550
+ | "tokens_out"
1551
+ | "duration"
1552
+ | "feedback";
1553
+ operator: "eq" | "contains" | "lt" | "gt";
1554
+ value: (string | number | boolean)[];
1555
+ }[];
1556
+ gatewayId: string;
1557
+ modifiedAt: string;
1558
+ name: string;
1559
+ },
1560
+ ListDatasetsError,
1561
+ Credentials | HttpClient.HttpClient
1562
+ >;
1563
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1375
1564
  input: ListDatasetsRequest,
1376
1565
  output: ListDatasetsResponse,
1377
1566
  errors: [],
1567
+ pagination: {
1568
+ mode: "page",
1569
+ inputToken: "page",
1570
+ outputToken: "resultInfo.page",
1571
+ items: "result",
1572
+ pageSize: "perPage",
1573
+ } as const,
1378
1574
  }));
1379
1575
 
1380
1576
  export interface CreateDatasetRequest {
@@ -1503,19 +1699,23 @@ export const CreateDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1503
1699
  gatewayId: Schema.String,
1504
1700
  modifiedAt: Schema.String,
1505
1701
  name: Schema.String,
1506
- }).pipe(
1507
- Schema.encodeKeys({
1508
- id: "id",
1509
- accountId: "account_id",
1510
- accountTag: "account_tag",
1511
- createdAt: "created_at",
1512
- enable: "enable",
1513
- filters: "filters",
1514
- gatewayId: "gateway_id",
1515
- modifiedAt: "modified_at",
1516
- name: "name",
1517
- }),
1518
- ) as unknown as Schema.Schema<CreateDatasetResponse>;
1702
+ })
1703
+ .pipe(
1704
+ Schema.encodeKeys({
1705
+ id: "id",
1706
+ accountId: "account_id",
1707
+ accountTag: "account_tag",
1708
+ createdAt: "created_at",
1709
+ enable: "enable",
1710
+ filters: "filters",
1711
+ gatewayId: "gateway_id",
1712
+ modifiedAt: "modified_at",
1713
+ name: "name",
1714
+ }),
1715
+ )
1716
+ .pipe(
1717
+ T.ResponsePath("result"),
1718
+ ) as unknown as Schema.Schema<CreateDatasetResponse>;
1519
1719
 
1520
1720
  export type CreateDatasetError = DefaultErrors;
1521
1721
 
@@ -1658,19 +1858,23 @@ export const UpdateDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1658
1858
  gatewayId: Schema.String,
1659
1859
  modifiedAt: Schema.String,
1660
1860
  name: Schema.String,
1661
- }).pipe(
1662
- Schema.encodeKeys({
1663
- id: "id",
1664
- accountId: "account_id",
1665
- accountTag: "account_tag",
1666
- createdAt: "created_at",
1667
- enable: "enable",
1668
- filters: "filters",
1669
- gatewayId: "gateway_id",
1670
- modifiedAt: "modified_at",
1671
- name: "name",
1672
- }),
1673
- ) as unknown as Schema.Schema<UpdateDatasetResponse>;
1861
+ })
1862
+ .pipe(
1863
+ Schema.encodeKeys({
1864
+ id: "id",
1865
+ accountId: "account_id",
1866
+ accountTag: "account_tag",
1867
+ createdAt: "created_at",
1868
+ enable: "enable",
1869
+ filters: "filters",
1870
+ gatewayId: "gateway_id",
1871
+ modifiedAt: "modified_at",
1872
+ name: "name",
1873
+ }),
1874
+ )
1875
+ .pipe(
1876
+ T.ResponsePath("result"),
1877
+ ) as unknown as Schema.Schema<UpdateDatasetResponse>;
1674
1878
 
1675
1879
  export type UpdateDatasetError = DefaultErrors;
1676
1880
 
@@ -1764,19 +1968,23 @@ export const DeleteDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1764
1968
  gatewayId: Schema.String,
1765
1969
  modifiedAt: Schema.String,
1766
1970
  name: Schema.String,
1767
- }).pipe(
1768
- Schema.encodeKeys({
1769
- id: "id",
1770
- accountId: "account_id",
1771
- accountTag: "account_tag",
1772
- createdAt: "created_at",
1773
- enable: "enable",
1774
- filters: "filters",
1775
- gatewayId: "gateway_id",
1776
- modifiedAt: "modified_at",
1777
- name: "name",
1778
- }),
1779
- ) as unknown as Schema.Schema<DeleteDatasetResponse>;
1971
+ })
1972
+ .pipe(
1973
+ Schema.encodeKeys({
1974
+ id: "id",
1975
+ accountId: "account_id",
1976
+ accountTag: "account_tag",
1977
+ createdAt: "created_at",
1978
+ enable: "enable",
1979
+ filters: "filters",
1980
+ gatewayId: "gateway_id",
1981
+ modifiedAt: "modified_at",
1982
+ name: "name",
1983
+ }),
1984
+ )
1985
+ .pipe(
1986
+ T.ResponsePath("result"),
1987
+ ) as unknown as Schema.Schema<DeleteDatasetResponse>;
1780
1988
 
1781
1989
  export type DeleteDatasetError = DefaultErrors;
1782
1990
 
@@ -1946,21 +2154,25 @@ export const GetEvaluationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1946
2154
  ),
1947
2155
  ),
1948
2156
  totalLogs: Schema.Number,
1949
- }).pipe(
1950
- Schema.encodeKeys({
1951
- id: "id",
1952
- accountId: "account_id",
1953
- accountTag: "account_tag",
1954
- createdAt: "created_at",
1955
- datasets: "datasets",
1956
- gatewayId: "gateway_id",
1957
- modifiedAt: "modified_at",
1958
- name: "name",
1959
- processed: "processed",
1960
- results: "results",
1961
- totalLogs: "total_logs",
1962
- }),
1963
- ) as unknown as Schema.Schema<GetEvaluationResponse>;
2157
+ })
2158
+ .pipe(
2159
+ Schema.encodeKeys({
2160
+ id: "id",
2161
+ accountId: "account_id",
2162
+ accountTag: "account_tag",
2163
+ createdAt: "created_at",
2164
+ datasets: "datasets",
2165
+ gatewayId: "gateway_id",
2166
+ modifiedAt: "modified_at",
2167
+ name: "name",
2168
+ processed: "processed",
2169
+ results: "results",
2170
+ totalLogs: "total_logs",
2171
+ }),
2172
+ )
2173
+ .pipe(
2174
+ T.ResponsePath("result"),
2175
+ ) as unknown as Schema.Schema<GetEvaluationResponse>;
1964
2176
 
1965
2177
  export type GetEvaluationError = DefaultErrors;
1966
2178
 
@@ -2002,168 +2214,263 @@ export const ListEvaluationsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2002
2214
  }),
2003
2215
  ) as unknown as Schema.Schema<ListEvaluationsRequest>;
2004
2216
 
2005
- export type ListEvaluationsResponse = {
2006
- id: string;
2007
- accountId: string;
2008
- accountTag: string;
2009
- createdAt: string;
2010
- datasets: {
2217
+ export interface ListEvaluationsResponse {
2218
+ result: {
2011
2219
  id: string;
2012
2220
  accountId: string;
2013
2221
  accountTag: string;
2014
2222
  createdAt: string;
2015
- enable: boolean;
2016
- filters: {
2017
- key:
2018
- | "created_at"
2019
- | "request_content_type"
2020
- | "response_content_type"
2021
- | "success"
2022
- | "cached"
2023
- | "provider"
2024
- | "model"
2025
- | "cost"
2026
- | "tokens"
2027
- | "tokens_in"
2028
- | "tokens_out"
2029
- | "duration"
2030
- | "feedback";
2031
- operator: "eq" | "contains" | "lt" | "gt";
2032
- value: (string | number | boolean)[];
2223
+ datasets: {
2224
+ id: string;
2225
+ accountId: string;
2226
+ accountTag: string;
2227
+ createdAt: string;
2228
+ enable: boolean;
2229
+ filters: {
2230
+ key:
2231
+ | "created_at"
2232
+ | "request_content_type"
2233
+ | "response_content_type"
2234
+ | "success"
2235
+ | "cached"
2236
+ | "provider"
2237
+ | "model"
2238
+ | "cost"
2239
+ | "tokens"
2240
+ | "tokens_in"
2241
+ | "tokens_out"
2242
+ | "duration"
2243
+ | "feedback";
2244
+ operator: "eq" | "contains" | "lt" | "gt";
2245
+ value: (string | number | boolean)[];
2246
+ }[];
2247
+ gatewayId: string;
2248
+ modifiedAt: string;
2249
+ name: string;
2033
2250
  }[];
2034
2251
  gatewayId: string;
2035
2252
  modifiedAt: string;
2036
- name: string;
2037
- }[];
2038
- gatewayId: string;
2039
- modifiedAt: string;
2040
- name: string;
2041
- processed: boolean;
2042
- results: {
2043
- id: string;
2044
- createdAt: string;
2045
- evaluationId: string;
2046
- evaluationTypeId: string;
2047
- modifiedAt: string;
2048
- result: string;
2049
- status: number;
2050
- statusDescription: string;
2051
- totalLogs: number;
2052
- }[];
2053
- totalLogs: number;
2054
- }[];
2055
-
2056
- export const ListEvaluationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2057
- Schema.Struct({
2058
- id: Schema.String,
2059
- accountId: Schema.String,
2060
- accountTag: Schema.String,
2061
- createdAt: Schema.String,
2062
- datasets: Schema.Array(
2063
- Schema.Struct({
2064
- id: Schema.String,
2065
- accountId: Schema.String,
2066
- accountTag: Schema.String,
2067
- createdAt: Schema.String,
2068
- enable: Schema.Boolean,
2069
- filters: Schema.Array(
2070
- Schema.Struct({
2071
- key: Schema.Literals([
2072
- "created_at",
2073
- "request_content_type",
2074
- "response_content_type",
2075
- "success",
2076
- "cached",
2077
- "provider",
2078
- "model",
2079
- "cost",
2080
- "tokens",
2081
- "tokens_in",
2082
- "tokens_out",
2083
- "duration",
2084
- "feedback",
2085
- ]),
2086
- operator: Schema.Literals(["eq", "contains", "lt", "gt"]),
2087
- value: Schema.Array(
2088
- Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
2253
+ name: string;
2254
+ processed: boolean;
2255
+ results: {
2256
+ id: string;
2257
+ createdAt: string;
2258
+ evaluationId: string;
2259
+ evaluationTypeId: string;
2260
+ modifiedAt: string;
2261
+ result: string;
2262
+ status: number;
2263
+ statusDescription: string;
2264
+ totalLogs: number;
2265
+ }[];
2266
+ totalLogs: number;
2267
+ }[];
2268
+ resultInfo: {
2269
+ count?: number | null;
2270
+ page?: number | null;
2271
+ perPage?: number | null;
2272
+ totalCount?: number | null;
2273
+ };
2274
+ }
2275
+
2276
+ export const ListEvaluationsResponse =
2277
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2278
+ result: Schema.Array(
2279
+ Schema.Struct({
2280
+ id: Schema.String,
2281
+ accountId: Schema.String,
2282
+ accountTag: Schema.String,
2283
+ createdAt: Schema.String,
2284
+ datasets: Schema.Array(
2285
+ Schema.Struct({
2286
+ id: Schema.String,
2287
+ accountId: Schema.String,
2288
+ accountTag: Schema.String,
2289
+ createdAt: Schema.String,
2290
+ enable: Schema.Boolean,
2291
+ filters: Schema.Array(
2292
+ Schema.Struct({
2293
+ key: Schema.Literals([
2294
+ "created_at",
2295
+ "request_content_type",
2296
+ "response_content_type",
2297
+ "success",
2298
+ "cached",
2299
+ "provider",
2300
+ "model",
2301
+ "cost",
2302
+ "tokens",
2303
+ "tokens_in",
2304
+ "tokens_out",
2305
+ "duration",
2306
+ "feedback",
2307
+ ]),
2308
+ operator: Schema.Literals(["eq", "contains", "lt", "gt"]),
2309
+ value: Schema.Array(
2310
+ Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
2311
+ ),
2312
+ }),
2089
2313
  ),
2090
- }),
2314
+ gatewayId: Schema.String,
2315
+ modifiedAt: Schema.String,
2316
+ name: Schema.String,
2317
+ }).pipe(
2318
+ Schema.encodeKeys({
2319
+ id: "id",
2320
+ accountId: "account_id",
2321
+ accountTag: "account_tag",
2322
+ createdAt: "created_at",
2323
+ enable: "enable",
2324
+ filters: "filters",
2325
+ gatewayId: "gateway_id",
2326
+ modifiedAt: "modified_at",
2327
+ name: "name",
2328
+ }),
2329
+ ),
2091
2330
  ),
2092
2331
  gatewayId: Schema.String,
2093
2332
  modifiedAt: Schema.String,
2094
2333
  name: Schema.String,
2334
+ processed: Schema.Boolean,
2335
+ results: Schema.Array(
2336
+ Schema.Struct({
2337
+ id: Schema.String,
2338
+ createdAt: Schema.String,
2339
+ evaluationId: Schema.String,
2340
+ evaluationTypeId: Schema.String,
2341
+ modifiedAt: Schema.String,
2342
+ result: Schema.String,
2343
+ status: Schema.Number,
2344
+ statusDescription: Schema.String,
2345
+ totalLogs: Schema.Number,
2346
+ }).pipe(
2347
+ Schema.encodeKeys({
2348
+ id: "id",
2349
+ createdAt: "created_at",
2350
+ evaluationId: "evaluation_id",
2351
+ evaluationTypeId: "evaluation_type_id",
2352
+ modifiedAt: "modified_at",
2353
+ result: "result",
2354
+ status: "status",
2355
+ statusDescription: "status_description",
2356
+ totalLogs: "total_logs",
2357
+ }),
2358
+ ),
2359
+ ),
2360
+ totalLogs: Schema.Number,
2095
2361
  }).pipe(
2096
2362
  Schema.encodeKeys({
2097
2363
  id: "id",
2098
2364
  accountId: "account_id",
2099
2365
  accountTag: "account_tag",
2100
2366
  createdAt: "created_at",
2101
- enable: "enable",
2102
- filters: "filters",
2367
+ datasets: "datasets",
2103
2368
  gatewayId: "gateway_id",
2104
2369
  modifiedAt: "modified_at",
2105
2370
  name: "name",
2106
- }),
2107
- ),
2108
- ),
2109
- gatewayId: Schema.String,
2110
- modifiedAt: Schema.String,
2111
- name: Schema.String,
2112
- processed: Schema.Boolean,
2113
- results: Schema.Array(
2114
- Schema.Struct({
2115
- id: Schema.String,
2116
- createdAt: Schema.String,
2117
- evaluationId: Schema.String,
2118
- evaluationTypeId: Schema.String,
2119
- modifiedAt: Schema.String,
2120
- result: Schema.String,
2121
- status: Schema.Number,
2122
- statusDescription: Schema.String,
2123
- totalLogs: Schema.Number,
2124
- }).pipe(
2125
- Schema.encodeKeys({
2126
- id: "id",
2127
- createdAt: "created_at",
2128
- evaluationId: "evaluation_id",
2129
- evaluationTypeId: "evaluation_type_id",
2130
- modifiedAt: "modified_at",
2131
- result: "result",
2132
- status: "status",
2133
- statusDescription: "status_description",
2371
+ processed: "processed",
2372
+ results: "results",
2134
2373
  totalLogs: "total_logs",
2135
2374
  }),
2136
2375
  ),
2137
2376
  ),
2138
- totalLogs: Schema.Number,
2377
+ resultInfo: Schema.Struct({
2378
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2379
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2380
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2381
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2382
+ }).pipe(
2383
+ Schema.encodeKeys({
2384
+ count: "count",
2385
+ page: "page",
2386
+ perPage: "per_page",
2387
+ totalCount: "total_count",
2388
+ }),
2389
+ ),
2139
2390
  }).pipe(
2140
- Schema.encodeKeys({
2141
- id: "id",
2142
- accountId: "account_id",
2143
- accountTag: "account_tag",
2144
- createdAt: "created_at",
2145
- datasets: "datasets",
2146
- gatewayId: "gateway_id",
2147
- modifiedAt: "modified_at",
2148
- name: "name",
2149
- processed: "processed",
2150
- results: "results",
2151
- totalLogs: "total_logs",
2152
- }),
2153
- ),
2154
- ) as unknown as Schema.Schema<ListEvaluationsResponse>;
2391
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
2392
+ ) as unknown as Schema.Schema<ListEvaluationsResponse>;
2155
2393
 
2156
2394
  export type ListEvaluationsError = DefaultErrors;
2157
2395
 
2158
- export const listEvaluations: API.OperationMethod<
2396
+ export const listEvaluations: API.PaginatedOperationMethod<
2159
2397
  ListEvaluationsRequest,
2160
2398
  ListEvaluationsResponse,
2161
2399
  ListEvaluationsError,
2162
2400
  Credentials | HttpClient.HttpClient
2163
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2401
+ > & {
2402
+ pages: (
2403
+ input: ListEvaluationsRequest,
2404
+ ) => stream.Stream<
2405
+ ListEvaluationsResponse,
2406
+ ListEvaluationsError,
2407
+ Credentials | HttpClient.HttpClient
2408
+ >;
2409
+ items: (input: ListEvaluationsRequest) => stream.Stream<
2410
+ {
2411
+ id: string;
2412
+ accountId: string;
2413
+ accountTag: string;
2414
+ createdAt: string;
2415
+ datasets: {
2416
+ id: string;
2417
+ accountId: string;
2418
+ accountTag: string;
2419
+ createdAt: string;
2420
+ enable: boolean;
2421
+ filters: {
2422
+ key:
2423
+ | "created_at"
2424
+ | "request_content_type"
2425
+ | "response_content_type"
2426
+ | "success"
2427
+ | "cached"
2428
+ | "provider"
2429
+ | "model"
2430
+ | "cost"
2431
+ | "tokens"
2432
+ | "tokens_in"
2433
+ | "tokens_out"
2434
+ | "duration"
2435
+ | "feedback";
2436
+ operator: "eq" | "contains" | "lt" | "gt";
2437
+ value: (string | number | boolean)[];
2438
+ }[];
2439
+ gatewayId: string;
2440
+ modifiedAt: string;
2441
+ name: string;
2442
+ }[];
2443
+ gatewayId: string;
2444
+ modifiedAt: string;
2445
+ name: string;
2446
+ processed: boolean;
2447
+ results: {
2448
+ id: string;
2449
+ createdAt: string;
2450
+ evaluationId: string;
2451
+ evaluationTypeId: string;
2452
+ modifiedAt: string;
2453
+ result: string;
2454
+ status: number;
2455
+ statusDescription: string;
2456
+ totalLogs: number;
2457
+ }[];
2458
+ totalLogs: number;
2459
+ },
2460
+ ListEvaluationsError,
2461
+ Credentials | HttpClient.HttpClient
2462
+ >;
2463
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2164
2464
  input: ListEvaluationsRequest,
2165
2465
  output: ListEvaluationsResponse,
2166
2466
  errors: [],
2467
+ pagination: {
2468
+ mode: "page",
2469
+ inputToken: "page",
2470
+ outputToken: "resultInfo.page",
2471
+ items: "result",
2472
+ pageSize: "perPage",
2473
+ } as const,
2167
2474
  }));
2168
2475
 
2169
2476
  export interface CreateEvaluationRequest {
@@ -2332,21 +2639,25 @@ export const CreateEvaluationResponse =
2332
2639
  ),
2333
2640
  ),
2334
2641
  totalLogs: Schema.Number,
2335
- }).pipe(
2336
- Schema.encodeKeys({
2337
- id: "id",
2338
- accountId: "account_id",
2339
- accountTag: "account_tag",
2340
- createdAt: "created_at",
2341
- datasets: "datasets",
2342
- gatewayId: "gateway_id",
2343
- modifiedAt: "modified_at",
2344
- name: "name",
2345
- processed: "processed",
2346
- results: "results",
2347
- totalLogs: "total_logs",
2348
- }),
2349
- ) as unknown as Schema.Schema<CreateEvaluationResponse>;
2642
+ })
2643
+ .pipe(
2644
+ Schema.encodeKeys({
2645
+ id: "id",
2646
+ accountId: "account_id",
2647
+ accountTag: "account_tag",
2648
+ createdAt: "created_at",
2649
+ datasets: "datasets",
2650
+ gatewayId: "gateway_id",
2651
+ modifiedAt: "modified_at",
2652
+ name: "name",
2653
+ processed: "processed",
2654
+ results: "results",
2655
+ totalLogs: "total_logs",
2656
+ }),
2657
+ )
2658
+ .pipe(
2659
+ T.ResponsePath("result"),
2660
+ ) as unknown as Schema.Schema<CreateEvaluationResponse>;
2350
2661
 
2351
2662
  export type CreateEvaluationError = DefaultErrors;
2352
2663
 
@@ -2514,21 +2825,25 @@ export const DeleteEvaluationResponse =
2514
2825
  ),
2515
2826
  ),
2516
2827
  totalLogs: Schema.Number,
2517
- }).pipe(
2518
- Schema.encodeKeys({
2519
- id: "id",
2520
- accountId: "account_id",
2521
- accountTag: "account_tag",
2522
- createdAt: "created_at",
2523
- datasets: "datasets",
2524
- gatewayId: "gateway_id",
2525
- modifiedAt: "modified_at",
2526
- name: "name",
2527
- processed: "processed",
2528
- results: "results",
2529
- totalLogs: "total_logs",
2530
- }),
2531
- ) as unknown as Schema.Schema<DeleteEvaluationResponse>;
2828
+ })
2829
+ .pipe(
2830
+ Schema.encodeKeys({
2831
+ id: "id",
2832
+ accountId: "account_id",
2833
+ accountTag: "account_tag",
2834
+ createdAt: "created_at",
2835
+ datasets: "datasets",
2836
+ gatewayId: "gateway_id",
2837
+ modifiedAt: "modified_at",
2838
+ name: "name",
2839
+ processed: "processed",
2840
+ results: "results",
2841
+ totalLogs: "total_logs",
2842
+ }),
2843
+ )
2844
+ .pipe(
2845
+ T.ResponsePath("result"),
2846
+ ) as unknown as Schema.Schema<DeleteEvaluationResponse>;
2532
2847
 
2533
2848
  export type DeleteEvaluationError = DefaultErrors;
2534
2849
 
@@ -2570,53 +2885,107 @@ export const ListEvaluationTypesRequest =
2570
2885
  }),
2571
2886
  ) as unknown as Schema.Schema<ListEvaluationTypesRequest>;
2572
2887
 
2573
- export type ListEvaluationTypesResponse = {
2574
- id: string;
2575
- createdAt: string;
2576
- description: string;
2577
- enable: boolean;
2578
- mandatory: boolean;
2579
- modifiedAt: string;
2580
- name: string;
2581
- type: string;
2582
- }[];
2888
+ export interface ListEvaluationTypesResponse {
2889
+ result: {
2890
+ id: string;
2891
+ createdAt: string;
2892
+ description: string;
2893
+ enable: boolean;
2894
+ mandatory: boolean;
2895
+ modifiedAt: string;
2896
+ name: string;
2897
+ type: string;
2898
+ }[];
2899
+ resultInfo: {
2900
+ count?: number | null;
2901
+ page?: number | null;
2902
+ perPage?: number | null;
2903
+ totalCount?: number | null;
2904
+ };
2905
+ }
2583
2906
 
2584
2907
  export const ListEvaluationTypesResponse =
2585
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2586
- Schema.Struct({
2587
- id: Schema.String,
2588
- createdAt: Schema.String,
2589
- description: Schema.String,
2590
- enable: Schema.Boolean,
2591
- mandatory: Schema.Boolean,
2592
- modifiedAt: Schema.String,
2593
- name: Schema.String,
2594
- type: Schema.String,
2908
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2909
+ result: Schema.Array(
2910
+ Schema.Struct({
2911
+ id: Schema.String,
2912
+ createdAt: Schema.String,
2913
+ description: Schema.String,
2914
+ enable: Schema.Boolean,
2915
+ mandatory: Schema.Boolean,
2916
+ modifiedAt: Schema.String,
2917
+ name: Schema.String,
2918
+ type: Schema.String,
2919
+ }).pipe(
2920
+ Schema.encodeKeys({
2921
+ id: "id",
2922
+ createdAt: "created_at",
2923
+ description: "description",
2924
+ enable: "enable",
2925
+ mandatory: "mandatory",
2926
+ modifiedAt: "modified_at",
2927
+ name: "name",
2928
+ type: "type",
2929
+ }),
2930
+ ),
2931
+ ),
2932
+ resultInfo: Schema.Struct({
2933
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2934
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2935
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2936
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2595
2937
  }).pipe(
2596
2938
  Schema.encodeKeys({
2597
- id: "id",
2598
- createdAt: "created_at",
2599
- description: "description",
2600
- enable: "enable",
2601
- mandatory: "mandatory",
2602
- modifiedAt: "modified_at",
2603
- name: "name",
2604
- type: "type",
2939
+ count: "count",
2940
+ page: "page",
2941
+ perPage: "per_page",
2942
+ totalCount: "total_count",
2605
2943
  }),
2606
2944
  ),
2945
+ }).pipe(
2946
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
2607
2947
  ) as unknown as Schema.Schema<ListEvaluationTypesResponse>;
2608
2948
 
2609
2949
  export type ListEvaluationTypesError = DefaultErrors;
2610
2950
 
2611
- export const listEvaluationTypes: API.OperationMethod<
2951
+ export const listEvaluationTypes: API.PaginatedOperationMethod<
2612
2952
  ListEvaluationTypesRequest,
2613
2953
  ListEvaluationTypesResponse,
2614
2954
  ListEvaluationTypesError,
2615
2955
  Credentials | HttpClient.HttpClient
2616
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2956
+ > & {
2957
+ pages: (
2958
+ input: ListEvaluationTypesRequest,
2959
+ ) => stream.Stream<
2960
+ ListEvaluationTypesResponse,
2961
+ ListEvaluationTypesError,
2962
+ Credentials | HttpClient.HttpClient
2963
+ >;
2964
+ items: (input: ListEvaluationTypesRequest) => stream.Stream<
2965
+ {
2966
+ id: string;
2967
+ createdAt: string;
2968
+ description: string;
2969
+ enable: boolean;
2970
+ mandatory: boolean;
2971
+ modifiedAt: string;
2972
+ name: string;
2973
+ type: string;
2974
+ },
2975
+ ListEvaluationTypesError,
2976
+ Credentials | HttpClient.HttpClient
2977
+ >;
2978
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2617
2979
  input: ListEvaluationTypesRequest,
2618
2980
  output: ListEvaluationTypesResponse,
2619
2981
  errors: [],
2982
+ pagination: {
2983
+ mode: "page",
2984
+ inputToken: "page",
2985
+ outputToken: "resultInfo.page",
2986
+ items: "result",
2987
+ pageSize: "perPage",
2988
+ } as const,
2620
2989
  }));
2621
2990
 
2622
2991
  // =============================================================================
@@ -2702,35 +3071,37 @@ export const GetLogResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2702
3071
  responseSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2703
3072
  statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2704
3073
  step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2705
- }).pipe(
2706
- Schema.encodeKeys({
2707
- id: "id",
2708
- cached: "cached",
2709
- createdAt: "created_at",
2710
- duration: "duration",
2711
- model: "model",
2712
- path: "path",
2713
- provider: "provider",
2714
- success: "success",
2715
- tokensIn: "tokens_in",
2716
- tokensOut: "tokens_out",
2717
- cost: "cost",
2718
- customCost: "custom_cost",
2719
- metadata: "metadata",
2720
- modelType: "model_type",
2721
- requestContentType: "request_content_type",
2722
- requestHead: "request_head",
2723
- requestHeadComplete: "request_head_complete",
2724
- requestSize: "request_size",
2725
- requestType: "request_type",
2726
- responseContentType: "response_content_type",
2727
- responseHead: "response_head",
2728
- responseHeadComplete: "response_head_complete",
2729
- responseSize: "response_size",
2730
- statusCode: "status_code",
2731
- step: "step",
2732
- }),
2733
- ) as unknown as Schema.Schema<GetLogResponse>;
3074
+ })
3075
+ .pipe(
3076
+ Schema.encodeKeys({
3077
+ id: "id",
3078
+ cached: "cached",
3079
+ createdAt: "created_at",
3080
+ duration: "duration",
3081
+ model: "model",
3082
+ path: "path",
3083
+ provider: "provider",
3084
+ success: "success",
3085
+ tokensIn: "tokens_in",
3086
+ tokensOut: "tokens_out",
3087
+ cost: "cost",
3088
+ customCost: "custom_cost",
3089
+ metadata: "metadata",
3090
+ modelType: "model_type",
3091
+ requestContentType: "request_content_type",
3092
+ requestHead: "request_head",
3093
+ requestHeadComplete: "request_head_complete",
3094
+ requestSize: "request_size",
3095
+ requestType: "request_type",
3096
+ responseContentType: "response_content_type",
3097
+ responseHead: "response_head",
3098
+ responseHeadComplete: "response_head_complete",
3099
+ responseSize: "response_size",
3100
+ statusCode: "status_code",
3101
+ step: "step",
3102
+ }),
3103
+ )
3104
+ .pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetLogResponse>;
2734
3105
 
2735
3106
  export type GetLogError = DefaultErrors;
2736
3107
 
@@ -2949,89 +3320,154 @@ export const ListLogsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2949
3320
  }),
2950
3321
  ) as unknown as Schema.Schema<ListLogsRequest>;
2951
3322
 
2952
- export type ListLogsResponse = {
2953
- id: string;
2954
- cached: boolean;
2955
- createdAt: string;
2956
- duration: number;
2957
- model: string;
2958
- path: string;
2959
- provider: string;
2960
- success: boolean;
2961
- tokensIn: number | null;
2962
- tokensOut: number | null;
2963
- cost?: number | null;
2964
- customCost?: boolean | null;
2965
- metadata?: string | null;
2966
- modelType?: string | null;
2967
- requestContentType?: string | null;
2968
- requestType?: string | null;
2969
- responseContentType?: string | null;
2970
- statusCode?: number | null;
2971
- step?: number | null;
2972
- }[];
3323
+ export interface ListLogsResponse {
3324
+ result: {
3325
+ id: string;
3326
+ cached: boolean;
3327
+ createdAt: string;
3328
+ duration: number;
3329
+ model: string;
3330
+ path: string;
3331
+ provider: string;
3332
+ success: boolean;
3333
+ tokensIn: number | null;
3334
+ tokensOut: number | null;
3335
+ cost?: number | null;
3336
+ customCost?: boolean | null;
3337
+ metadata?: string | null;
3338
+ modelType?: string | null;
3339
+ requestContentType?: string | null;
3340
+ requestType?: string | null;
3341
+ responseContentType?: string | null;
3342
+ statusCode?: number | null;
3343
+ step?: number | null;
3344
+ }[];
3345
+ resultInfo: {
3346
+ count?: number | null;
3347
+ page?: number | null;
3348
+ perPage?: number | null;
3349
+ totalCount?: number | null;
3350
+ };
3351
+ }
2973
3352
 
2974
- export const ListLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2975
- Schema.Struct({
2976
- id: Schema.String,
2977
- cached: Schema.Boolean,
2978
- createdAt: Schema.String,
2979
- duration: Schema.Number,
2980
- model: Schema.String,
2981
- path: Schema.String,
2982
- provider: Schema.String,
2983
- success: Schema.Boolean,
2984
- tokensIn: Schema.Union([Schema.Number, Schema.Null]),
2985
- tokensOut: Schema.Union([Schema.Number, Schema.Null]),
2986
- cost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2987
- customCost: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2988
- metadata: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2989
- modelType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2990
- requestContentType: Schema.optional(
2991
- Schema.Union([Schema.String, Schema.Null]),
2992
- ),
2993
- requestType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2994
- responseContentType: Schema.optional(
2995
- Schema.Union([Schema.String, Schema.Null]),
3353
+ export const ListLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3354
+ result: Schema.Array(
3355
+ Schema.Struct({
3356
+ id: Schema.String,
3357
+ cached: Schema.Boolean,
3358
+ createdAt: Schema.String,
3359
+ duration: Schema.Number,
3360
+ model: Schema.String,
3361
+ path: Schema.String,
3362
+ provider: Schema.String,
3363
+ success: Schema.Boolean,
3364
+ tokensIn: Schema.Union([Schema.Number, Schema.Null]),
3365
+ tokensOut: Schema.Union([Schema.Number, Schema.Null]),
3366
+ cost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3367
+ customCost: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3368
+ metadata: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3369
+ modelType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3370
+ requestContentType: Schema.optional(
3371
+ Schema.Union([Schema.String, Schema.Null]),
3372
+ ),
3373
+ requestType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3374
+ responseContentType: Schema.optional(
3375
+ Schema.Union([Schema.String, Schema.Null]),
3376
+ ),
3377
+ statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3378
+ step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3379
+ }).pipe(
3380
+ Schema.encodeKeys({
3381
+ id: "id",
3382
+ cached: "cached",
3383
+ createdAt: "created_at",
3384
+ duration: "duration",
3385
+ model: "model",
3386
+ path: "path",
3387
+ provider: "provider",
3388
+ success: "success",
3389
+ tokensIn: "tokens_in",
3390
+ tokensOut: "tokens_out",
3391
+ cost: "cost",
3392
+ customCost: "custom_cost",
3393
+ metadata: "metadata",
3394
+ modelType: "model_type",
3395
+ requestContentType: "request_content_type",
3396
+ requestType: "request_type",
3397
+ responseContentType: "response_content_type",
3398
+ statusCode: "status_code",
3399
+ step: "step",
3400
+ }),
2996
3401
  ),
2997
- statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2998
- step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3402
+ ),
3403
+ resultInfo: Schema.Struct({
3404
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3405
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3406
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3407
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2999
3408
  }).pipe(
3000
3409
  Schema.encodeKeys({
3001
- id: "id",
3002
- cached: "cached",
3003
- createdAt: "created_at",
3004
- duration: "duration",
3005
- model: "model",
3006
- path: "path",
3007
- provider: "provider",
3008
- success: "success",
3009
- tokensIn: "tokens_in",
3010
- tokensOut: "tokens_out",
3011
- cost: "cost",
3012
- customCost: "custom_cost",
3013
- metadata: "metadata",
3014
- modelType: "model_type",
3015
- requestContentType: "request_content_type",
3016
- requestType: "request_type",
3017
- responseContentType: "response_content_type",
3018
- statusCode: "status_code",
3019
- step: "step",
3410
+ count: "count",
3411
+ page: "page",
3412
+ perPage: "per_page",
3413
+ totalCount: "total_count",
3020
3414
  }),
3021
3415
  ),
3416
+ }).pipe(
3417
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
3022
3418
  ) as unknown as Schema.Schema<ListLogsResponse>;
3023
3419
 
3024
3420
  export type ListLogsError = DefaultErrors;
3025
3421
 
3026
- export const listLogs: API.OperationMethod<
3422
+ export const listLogs: API.PaginatedOperationMethod<
3027
3423
  ListLogsRequest,
3028
3424
  ListLogsResponse,
3029
3425
  ListLogsError,
3030
3426
  Credentials | HttpClient.HttpClient
3031
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3427
+ > & {
3428
+ pages: (
3429
+ input: ListLogsRequest,
3430
+ ) => stream.Stream<
3431
+ ListLogsResponse,
3432
+ ListLogsError,
3433
+ Credentials | HttpClient.HttpClient
3434
+ >;
3435
+ items: (input: ListLogsRequest) => stream.Stream<
3436
+ {
3437
+ id: string;
3438
+ cached: boolean;
3439
+ createdAt: string;
3440
+ duration: number;
3441
+ model: string;
3442
+ path: string;
3443
+ provider: string;
3444
+ success: boolean;
3445
+ tokensIn: number | null;
3446
+ tokensOut: number | null;
3447
+ cost?: number | null;
3448
+ customCost?: boolean | null;
3449
+ metadata?: string | null;
3450
+ modelType?: string | null;
3451
+ requestContentType?: string | null;
3452
+ requestType?: string | null;
3453
+ responseContentType?: string | null;
3454
+ statusCode?: number | null;
3455
+ step?: number | null;
3456
+ },
3457
+ ListLogsError,
3458
+ Credentials | HttpClient.HttpClient
3459
+ >;
3460
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3032
3461
  input: ListLogsRequest,
3033
3462
  output: ListLogsResponse,
3034
3463
  errors: [],
3464
+ pagination: {
3465
+ mode: "page",
3466
+ inputToken: "page",
3467
+ outputToken: "resultInfo.page",
3468
+ items: "result",
3469
+ pageSize: "perPage",
3470
+ } as const,
3035
3471
  }));
3036
3472
 
3037
3473
  export interface PatchLogRequest {
@@ -3063,8 +3499,9 @@ export const PatchLogRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3063
3499
 
3064
3500
  export type PatchLogResponse = unknown;
3065
3501
 
3066
- export const PatchLogResponse =
3067
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<PatchLogResponse>;
3502
+ export const PatchLogResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
3503
+ T.ResponsePath("result"),
3504
+ ) as unknown as Schema.Schema<PatchLogResponse>;
3068
3505
 
3069
3506
  export type PatchLogError = DefaultErrors;
3070
3507
 
@@ -3318,8 +3755,9 @@ export const GetUrlRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3318
3755
 
3319
3756
  export type GetUrlResponse = string;
3320
3757
 
3321
- export const GetUrlResponse =
3322
- /*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<GetUrlResponse>;
3758
+ export const GetUrlResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
3759
+ T.ResponsePath("result"),
3760
+ ) as unknown as Schema.Schema<GetUrlResponse>;
3323
3761
 
3324
3762
  export type GetUrlError = DefaultErrors;
3325
3763