@distilled.cloud/cloudflare 0.2.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -4,6 +4,7 @@
4
4
  * Generated from Cloudflare TypeScript SDK.
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service ai-gateway
6
6
  */
7
+ import * as stream from "effect/Stream";
7
8
  import * as Schema from "effect/Schema";
8
9
  import * as API from "../client/api.js";
9
10
  import * as T from "../traits.js";
@@ -89,7 +90,8 @@ export const GetAiGatewayResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
89
90
  Schema.Null,
90
91
  ])),
91
92
  zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
92
- }).pipe(Schema.encodeKeys({
93
+ })
94
+ .pipe(Schema.encodeKeys({
93
95
  id: "id",
94
96
  accountId: "account_id",
95
97
  accountTag: "account_tag",
@@ -113,7 +115,8 @@ export const GetAiGatewayResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
113
115
  storeId: "store_id",
114
116
  stripe: "stripe",
115
117
  zdr: "zdr",
116
- }));
118
+ }))
119
+ .pipe(T.ResponsePath("result"));
117
120
  export const getAiGateway = API.make(() => ({
118
121
  input: GetAiGatewayRequest,
119
122
  output: GetAiGatewayResponse,
@@ -123,100 +126,120 @@ export const ListAiGatewaysRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
123
126
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
124
127
  search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
125
128
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/ai-gateway/gateways" }));
126
- export const ListAiGatewaysResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
127
- id: Schema.String,
128
- accountId: Schema.String,
129
- accountTag: Schema.String,
130
- cacheInvalidateOnUpdate: Schema.Boolean,
131
- cacheTtl: Schema.Union([Schema.Number, Schema.Null]),
132
- collectLogs: Schema.Boolean,
133
- createdAt: Schema.String,
134
- internalId: Schema.String,
135
- modifiedAt: Schema.String,
136
- rateLimitingInterval: Schema.Union([Schema.Number, Schema.Null]),
137
- rateLimitingLimit: Schema.Union([Schema.Number, Schema.Null]),
138
- rateLimitingTechnique: Schema.Literals(["fixed", "sliding"]),
139
- authentication: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
140
- dlp: Schema.optional(Schema.Union([
141
- Schema.Union([
142
- Schema.Struct({
143
- action: Schema.Literals(["BLOCK", "FLAG"]),
144
- enabled: Schema.Boolean,
145
- profiles: Schema.Array(Schema.String),
146
- }),
147
- Schema.Struct({
148
- enabled: Schema.Boolean,
149
- policies: Schema.Array(Schema.Struct({
150
- id: Schema.String,
151
- action: Schema.Literals(["FLAG", "BLOCK"]),
152
- check: Schema.Array(Schema.Literals(["REQUEST", "RESPONSE"])),
129
+ export const ListAiGatewaysResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
130
+ result: Schema.Array(Schema.Struct({
131
+ id: Schema.String,
132
+ accountId: Schema.String,
133
+ accountTag: Schema.String,
134
+ cacheInvalidateOnUpdate: Schema.Boolean,
135
+ cacheTtl: Schema.Union([Schema.Number, Schema.Null]),
136
+ collectLogs: Schema.Boolean,
137
+ createdAt: Schema.String,
138
+ internalId: Schema.String,
139
+ modifiedAt: Schema.String,
140
+ rateLimitingInterval: Schema.Union([Schema.Number, Schema.Null]),
141
+ rateLimitingLimit: Schema.Union([Schema.Number, Schema.Null]),
142
+ rateLimitingTechnique: Schema.Literals(["fixed", "sliding"]),
143
+ authentication: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
144
+ dlp: Schema.optional(Schema.Union([
145
+ Schema.Union([
146
+ Schema.Struct({
147
+ action: Schema.Literals(["BLOCK", "FLAG"]),
153
148
  enabled: Schema.Boolean,
154
149
  profiles: Schema.Array(Schema.String),
150
+ }),
151
+ Schema.Struct({
152
+ enabled: Schema.Boolean,
153
+ policies: Schema.Array(Schema.Struct({
154
+ id: Schema.String,
155
+ action: Schema.Literals(["FLAG", "BLOCK"]),
156
+ check: Schema.Array(Schema.Literals(["REQUEST", "RESPONSE"])),
157
+ enabled: Schema.Boolean,
158
+ profiles: Schema.Array(Schema.String),
159
+ })),
160
+ }),
161
+ ]),
162
+ Schema.Null,
163
+ ])),
164
+ isDefault: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
165
+ logManagement: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
166
+ logManagementStrategy: Schema.optional(Schema.Union([
167
+ Schema.Literal("STOP_INSERTING"),
168
+ Schema.Literal("DELETE_OLDEST"),
169
+ Schema.Null,
170
+ ])),
171
+ logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
172
+ logpushPublicKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
173
+ otel: Schema.optional(Schema.Union([
174
+ Schema.Array(Schema.Struct({
175
+ authorization: Schema.String,
176
+ headers: Schema.Struct({}),
177
+ url: Schema.String,
178
+ })),
179
+ Schema.Null,
180
+ ])),
181
+ storeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
182
+ stripe: Schema.optional(Schema.Union([
183
+ Schema.Struct({
184
+ authorization: Schema.String,
185
+ usageEvents: Schema.Array(Schema.Struct({
186
+ payload: Schema.String,
155
187
  })),
156
- }),
157
- ]),
158
- Schema.Null,
159
- ])),
160
- isDefault: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
161
- logManagement: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
162
- logManagementStrategy: Schema.optional(Schema.Union([
163
- Schema.Literal("STOP_INSERTING"),
164
- Schema.Literal("DELETE_OLDEST"),
165
- Schema.Null,
166
- ])),
167
- logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
168
- logpushPublicKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
169
- otel: Schema.optional(Schema.Union([
170
- Schema.Array(Schema.Struct({
171
- authorization: Schema.String,
172
- headers: Schema.Struct({}),
173
- url: Schema.String,
174
- })),
175
- Schema.Null,
176
- ])),
177
- storeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
178
- stripe: Schema.optional(Schema.Union([
179
- Schema.Struct({
180
- authorization: Schema.String,
181
- usageEvents: Schema.Array(Schema.Struct({
182
- payload: Schema.String,
188
+ }).pipe(Schema.encodeKeys({
189
+ authorization: "authorization",
190
+ usageEvents: "usage_events",
183
191
  })),
184
- }).pipe(Schema.encodeKeys({
185
- authorization: "authorization",
186
- usageEvents: "usage_events",
187
- })),
188
- Schema.Null,
189
- ])),
190
- zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
191
- }).pipe(Schema.encodeKeys({
192
- id: "id",
193
- accountId: "account_id",
194
- accountTag: "account_tag",
195
- cacheInvalidateOnUpdate: "cache_invalidate_on_update",
196
- cacheTtl: "cache_ttl",
197
- collectLogs: "collect_logs",
198
- createdAt: "created_at",
199
- internalId: "internal_id",
200
- modifiedAt: "modified_at",
201
- rateLimitingInterval: "rate_limiting_interval",
202
- rateLimitingLimit: "rate_limiting_limit",
203
- rateLimitingTechnique: "rate_limiting_technique",
204
- authentication: "authentication",
205
- dlp: "dlp",
206
- isDefault: "is_default",
207
- logManagement: "log_management",
208
- logManagementStrategy: "log_management_strategy",
209
- logpush: "logpush",
210
- logpushPublicKey: "logpush_public_key",
211
- otel: "otel",
212
- storeId: "store_id",
213
- stripe: "stripe",
214
- zdr: "zdr",
215
- })));
216
- export const listAiGateways = API.make(() => ({
192
+ Schema.Null,
193
+ ])),
194
+ zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
195
+ }).pipe(Schema.encodeKeys({
196
+ id: "id",
197
+ accountId: "account_id",
198
+ accountTag: "account_tag",
199
+ cacheInvalidateOnUpdate: "cache_invalidate_on_update",
200
+ cacheTtl: "cache_ttl",
201
+ collectLogs: "collect_logs",
202
+ createdAt: "created_at",
203
+ internalId: "internal_id",
204
+ modifiedAt: "modified_at",
205
+ rateLimitingInterval: "rate_limiting_interval",
206
+ rateLimitingLimit: "rate_limiting_limit",
207
+ rateLimitingTechnique: "rate_limiting_technique",
208
+ authentication: "authentication",
209
+ dlp: "dlp",
210
+ isDefault: "is_default",
211
+ logManagement: "log_management",
212
+ logManagementStrategy: "log_management_strategy",
213
+ logpush: "logpush",
214
+ logpushPublicKey: "logpush_public_key",
215
+ otel: "otel",
216
+ storeId: "store_id",
217
+ stripe: "stripe",
218
+ zdr: "zdr",
219
+ }))),
220
+ resultInfo: Schema.Struct({
221
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
222
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
223
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
224
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
225
+ }).pipe(Schema.encodeKeys({
226
+ count: "count",
227
+ page: "page",
228
+ perPage: "per_page",
229
+ totalCount: "total_count",
230
+ })),
231
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
232
+ export const listAiGateways = API.makePaginated(() => ({
217
233
  input: ListAiGatewaysRequest,
218
234
  output: ListAiGatewaysResponse,
219
235
  errors: [],
236
+ pagination: {
237
+ mode: "page",
238
+ inputToken: "page",
239
+ outputToken: "resultInfo.page",
240
+ items: "result",
241
+ pageSize: "perPage",
242
+ },
220
243
  }));
221
244
  export const CreateAiGatewayRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
222
245
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -323,7 +346,8 @@ export const CreateAiGatewayResponse =
323
346
  Schema.Null,
324
347
  ])),
325
348
  zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
326
- }).pipe(Schema.encodeKeys({
349
+ })
350
+ .pipe(Schema.encodeKeys({
327
351
  id: "id",
328
352
  accountId: "account_id",
329
353
  accountTag: "account_tag",
@@ -347,7 +371,8 @@ export const CreateAiGatewayResponse =
347
371
  storeId: "store_id",
348
372
  stripe: "stripe",
349
373
  zdr: "zdr",
350
- }));
374
+ }))
375
+ .pipe(T.ResponsePath("result"));
351
376
  export const createAiGateway = API.make(() => ({
352
377
  input: CreateAiGatewayRequest,
353
378
  output: CreateAiGatewayResponse,
@@ -499,7 +524,8 @@ export const UpdateAiGatewayResponse =
499
524
  Schema.Null,
500
525
  ])),
501
526
  zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
502
- }).pipe(Schema.encodeKeys({
527
+ })
528
+ .pipe(Schema.encodeKeys({
503
529
  id: "id",
504
530
  accountId: "account_id",
505
531
  accountTag: "account_tag",
@@ -523,7 +549,8 @@ export const UpdateAiGatewayResponse =
523
549
  storeId: "store_id",
524
550
  stripe: "stripe",
525
551
  zdr: "zdr",
526
- }));
552
+ }))
553
+ .pipe(T.ResponsePath("result"));
527
554
  export const updateAiGateway = API.make(() => ({
528
555
  input: UpdateAiGatewayRequest,
529
556
  output: UpdateAiGatewayResponse,
@@ -602,7 +629,8 @@ export const DeleteAiGatewayResponse =
602
629
  Schema.Null,
603
630
  ])),
604
631
  zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
605
- }).pipe(Schema.encodeKeys({
632
+ })
633
+ .pipe(Schema.encodeKeys({
606
634
  id: "id",
607
635
  accountId: "account_id",
608
636
  accountTag: "account_tag",
@@ -626,7 +654,8 @@ export const DeleteAiGatewayResponse =
626
654
  storeId: "store_id",
627
655
  stripe: "stripe",
628
656
  zdr: "zdr",
629
- }));
657
+ }))
658
+ .pipe(T.ResponsePath("result"));
630
659
  export const deleteAiGateway = API.make(() => ({
631
660
  input: DeleteAiGatewayRequest,
632
661
  output: DeleteAiGatewayResponse,
@@ -668,7 +697,8 @@ export const GetDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
668
697
  gatewayId: Schema.String,
669
698
  modifiedAt: Schema.String,
670
699
  name: Schema.String,
671
- }).pipe(Schema.encodeKeys({
700
+ })
701
+ .pipe(Schema.encodeKeys({
672
702
  id: "id",
673
703
  accountId: "account_id",
674
704
  accountTag: "account_tag",
@@ -678,7 +708,8 @@ export const GetDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
678
708
  gatewayId: "gateway_id",
679
709
  modifiedAt: "modified_at",
680
710
  name: "name",
681
- }));
711
+ }))
712
+ .pipe(T.ResponsePath("result"));
682
713
  export const getDataset = API.make(() => ({
683
714
  input: GetDatasetRequest,
684
715
  output: GetDatasetResponse,
@@ -694,49 +725,69 @@ export const ListDatasetsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
694
725
  method: "GET",
695
726
  path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/datasets",
696
727
  }));
697
- export const ListDatasetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
698
- id: Schema.String,
699
- accountId: Schema.String,
700
- accountTag: Schema.String,
701
- createdAt: Schema.String,
702
- enable: Schema.Boolean,
703
- filters: Schema.Array(Schema.Struct({
704
- key: Schema.Literals([
705
- "created_at",
706
- "request_content_type",
707
- "response_content_type",
708
- "success",
709
- "cached",
710
- "provider",
711
- "model",
712
- "cost",
713
- "tokens",
714
- "tokens_in",
715
- "tokens_out",
716
- "duration",
717
- "feedback",
718
- ]),
719
- operator: Schema.Literals(["eq", "contains", "lt", "gt"]),
720
- value: Schema.Array(Schema.Union([Schema.String, Schema.Number, Schema.Boolean])),
728
+ export const ListDatasetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
729
+ result: Schema.Array(Schema.Struct({
730
+ id: Schema.String,
731
+ accountId: Schema.String,
732
+ accountTag: Schema.String,
733
+ createdAt: Schema.String,
734
+ enable: Schema.Boolean,
735
+ filters: Schema.Array(Schema.Struct({
736
+ key: Schema.Literals([
737
+ "created_at",
738
+ "request_content_type",
739
+ "response_content_type",
740
+ "success",
741
+ "cached",
742
+ "provider",
743
+ "model",
744
+ "cost",
745
+ "tokens",
746
+ "tokens_in",
747
+ "tokens_out",
748
+ "duration",
749
+ "feedback",
750
+ ]),
751
+ operator: Schema.Literals(["eq", "contains", "lt", "gt"]),
752
+ value: Schema.Array(Schema.Union([Schema.String, Schema.Number, Schema.Boolean])),
753
+ })),
754
+ gatewayId: Schema.String,
755
+ modifiedAt: Schema.String,
756
+ name: Schema.String,
757
+ }).pipe(Schema.encodeKeys({
758
+ id: "id",
759
+ accountId: "account_id",
760
+ accountTag: "account_tag",
761
+ createdAt: "created_at",
762
+ enable: "enable",
763
+ filters: "filters",
764
+ gatewayId: "gateway_id",
765
+ modifiedAt: "modified_at",
766
+ name: "name",
767
+ }))),
768
+ resultInfo: Schema.Struct({
769
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
770
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
771
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
772
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
773
+ }).pipe(Schema.encodeKeys({
774
+ count: "count",
775
+ page: "page",
776
+ perPage: "per_page",
777
+ totalCount: "total_count",
721
778
  })),
722
- gatewayId: Schema.String,
723
- modifiedAt: Schema.String,
724
- name: Schema.String,
725
- }).pipe(Schema.encodeKeys({
726
- id: "id",
727
- accountId: "account_id",
728
- accountTag: "account_tag",
729
- createdAt: "created_at",
730
- enable: "enable",
731
- filters: "filters",
732
- gatewayId: "gateway_id",
733
- modifiedAt: "modified_at",
734
- name: "name",
735
- })));
736
- export const listDatasets = API.make(() => ({
779
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
780
+ export const listDatasets = API.makePaginated(() => ({
737
781
  input: ListDatasetsRequest,
738
782
  output: ListDatasetsResponse,
739
783
  errors: [],
784
+ pagination: {
785
+ mode: "page",
786
+ inputToken: "page",
787
+ outputToken: "resultInfo.page",
788
+ items: "result",
789
+ pageSize: "perPage",
790
+ },
740
791
  }));
741
792
  export const CreateDatasetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
742
793
  gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
@@ -794,7 +845,8 @@ export const CreateDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
794
845
  gatewayId: Schema.String,
795
846
  modifiedAt: Schema.String,
796
847
  name: Schema.String,
797
- }).pipe(Schema.encodeKeys({
848
+ })
849
+ .pipe(Schema.encodeKeys({
798
850
  id: "id",
799
851
  accountId: "account_id",
800
852
  accountTag: "account_tag",
@@ -804,7 +856,8 @@ export const CreateDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
804
856
  gatewayId: "gateway_id",
805
857
  modifiedAt: "modified_at",
806
858
  name: "name",
807
- }));
859
+ }))
860
+ .pipe(T.ResponsePath("result"));
808
861
  export const createDataset = API.make(() => ({
809
862
  input: CreateDatasetRequest,
810
863
  output: CreateDatasetResponse,
@@ -867,7 +920,8 @@ export const UpdateDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
867
920
  gatewayId: Schema.String,
868
921
  modifiedAt: Schema.String,
869
922
  name: Schema.String,
870
- }).pipe(Schema.encodeKeys({
923
+ })
924
+ .pipe(Schema.encodeKeys({
871
925
  id: "id",
872
926
  accountId: "account_id",
873
927
  accountTag: "account_tag",
@@ -877,7 +931,8 @@ export const UpdateDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
877
931
  gatewayId: "gateway_id",
878
932
  modifiedAt: "modified_at",
879
933
  name: "name",
880
- }));
934
+ }))
935
+ .pipe(T.ResponsePath("result"));
881
936
  export const updateDataset = API.make(() => ({
882
937
  input: UpdateDatasetRequest,
883
938
  output: UpdateDatasetResponse,
@@ -919,7 +974,8 @@ export const DeleteDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
919
974
  gatewayId: Schema.String,
920
975
  modifiedAt: Schema.String,
921
976
  name: Schema.String,
922
- }).pipe(Schema.encodeKeys({
977
+ })
978
+ .pipe(Schema.encodeKeys({
923
979
  id: "id",
924
980
  accountId: "account_id",
925
981
  accountTag: "account_tag",
@@ -929,7 +985,8 @@ export const DeleteDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
929
985
  gatewayId: "gateway_id",
930
986
  modifiedAt: "modified_at",
931
987
  name: "name",
932
- }));
988
+ }))
989
+ .pipe(T.ResponsePath("result"));
933
990
  export const deleteDataset = API.make(() => ({
934
991
  input: DeleteDatasetRequest,
935
992
  output: DeleteDatasetResponse,
@@ -1013,7 +1070,8 @@ export const GetEvaluationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1013
1070
  totalLogs: "total_logs",
1014
1071
  }))),
1015
1072
  totalLogs: Schema.Number,
1016
- }).pipe(Schema.encodeKeys({
1073
+ })
1074
+ .pipe(Schema.encodeKeys({
1017
1075
  id: "id",
1018
1076
  accountId: "account_id",
1019
1077
  accountTag: "account_tag",
@@ -1025,7 +1083,8 @@ export const GetEvaluationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1025
1083
  processed: "processed",
1026
1084
  results: "results",
1027
1085
  totalLogs: "total_logs",
1028
- }));
1086
+ }))
1087
+ .pipe(T.ResponsePath("result"));
1029
1088
  export const getEvaluation = API.make(() => ({
1030
1089
  input: GetEvaluationRequest,
1031
1090
  output: GetEvaluationResponse,
@@ -1041,93 +1100,114 @@ export const ListEvaluationsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1041
1100
  method: "GET",
1042
1101
  path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/evaluations",
1043
1102
  }));
1044
- export const ListEvaluationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1045
- id: Schema.String,
1046
- accountId: Schema.String,
1047
- accountTag: Schema.String,
1048
- createdAt: Schema.String,
1049
- datasets: Schema.Array(Schema.Struct({
1103
+ export const ListEvaluationsResponse =
1104
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1105
+ result: Schema.Array(Schema.Struct({
1050
1106
  id: Schema.String,
1051
1107
  accountId: Schema.String,
1052
1108
  accountTag: Schema.String,
1053
1109
  createdAt: Schema.String,
1054
- enable: Schema.Boolean,
1055
- filters: Schema.Array(Schema.Struct({
1056
- key: Schema.Literals([
1057
- "created_at",
1058
- "request_content_type",
1059
- "response_content_type",
1060
- "success",
1061
- "cached",
1062
- "provider",
1063
- "model",
1064
- "cost",
1065
- "tokens",
1066
- "tokens_in",
1067
- "tokens_out",
1068
- "duration",
1069
- "feedback",
1070
- ]),
1071
- operator: Schema.Literals(["eq", "contains", "lt", "gt"]),
1072
- value: Schema.Array(Schema.Union([Schema.String, Schema.Number, Schema.Boolean])),
1073
- })),
1110
+ datasets: Schema.Array(Schema.Struct({
1111
+ id: Schema.String,
1112
+ accountId: Schema.String,
1113
+ accountTag: Schema.String,
1114
+ createdAt: Schema.String,
1115
+ enable: Schema.Boolean,
1116
+ filters: Schema.Array(Schema.Struct({
1117
+ key: Schema.Literals([
1118
+ "created_at",
1119
+ "request_content_type",
1120
+ "response_content_type",
1121
+ "success",
1122
+ "cached",
1123
+ "provider",
1124
+ "model",
1125
+ "cost",
1126
+ "tokens",
1127
+ "tokens_in",
1128
+ "tokens_out",
1129
+ "duration",
1130
+ "feedback",
1131
+ ]),
1132
+ operator: Schema.Literals(["eq", "contains", "lt", "gt"]),
1133
+ value: Schema.Array(Schema.Union([Schema.String, Schema.Number, Schema.Boolean])),
1134
+ })),
1135
+ gatewayId: Schema.String,
1136
+ modifiedAt: Schema.String,
1137
+ name: Schema.String,
1138
+ }).pipe(Schema.encodeKeys({
1139
+ id: "id",
1140
+ accountId: "account_id",
1141
+ accountTag: "account_tag",
1142
+ createdAt: "created_at",
1143
+ enable: "enable",
1144
+ filters: "filters",
1145
+ gatewayId: "gateway_id",
1146
+ modifiedAt: "modified_at",
1147
+ name: "name",
1148
+ }))),
1074
1149
  gatewayId: Schema.String,
1075
1150
  modifiedAt: Schema.String,
1076
1151
  name: Schema.String,
1152
+ processed: Schema.Boolean,
1153
+ results: Schema.Array(Schema.Struct({
1154
+ id: Schema.String,
1155
+ createdAt: Schema.String,
1156
+ evaluationId: Schema.String,
1157
+ evaluationTypeId: Schema.String,
1158
+ modifiedAt: Schema.String,
1159
+ result: Schema.String,
1160
+ status: Schema.Number,
1161
+ statusDescription: Schema.String,
1162
+ totalLogs: Schema.Number,
1163
+ }).pipe(Schema.encodeKeys({
1164
+ id: "id",
1165
+ createdAt: "created_at",
1166
+ evaluationId: "evaluation_id",
1167
+ evaluationTypeId: "evaluation_type_id",
1168
+ modifiedAt: "modified_at",
1169
+ result: "result",
1170
+ status: "status",
1171
+ statusDescription: "status_description",
1172
+ totalLogs: "total_logs",
1173
+ }))),
1174
+ totalLogs: Schema.Number,
1077
1175
  }).pipe(Schema.encodeKeys({
1078
1176
  id: "id",
1079
1177
  accountId: "account_id",
1080
1178
  accountTag: "account_tag",
1081
1179
  createdAt: "created_at",
1082
- enable: "enable",
1083
- filters: "filters",
1180
+ datasets: "datasets",
1084
1181
  gatewayId: "gateway_id",
1085
1182
  modifiedAt: "modified_at",
1086
1183
  name: "name",
1087
- }))),
1088
- gatewayId: Schema.String,
1089
- modifiedAt: Schema.String,
1090
- name: Schema.String,
1091
- processed: Schema.Boolean,
1092
- results: Schema.Array(Schema.Struct({
1093
- id: Schema.String,
1094
- createdAt: Schema.String,
1095
- evaluationId: Schema.String,
1096
- evaluationTypeId: Schema.String,
1097
- modifiedAt: Schema.String,
1098
- result: Schema.String,
1099
- status: Schema.Number,
1100
- statusDescription: Schema.String,
1101
- totalLogs: Schema.Number,
1102
- }).pipe(Schema.encodeKeys({
1103
- id: "id",
1104
- createdAt: "created_at",
1105
- evaluationId: "evaluation_id",
1106
- evaluationTypeId: "evaluation_type_id",
1107
- modifiedAt: "modified_at",
1108
- result: "result",
1109
- status: "status",
1110
- statusDescription: "status_description",
1184
+ processed: "processed",
1185
+ results: "results",
1111
1186
  totalLogs: "total_logs",
1112
1187
  }))),
1113
- totalLogs: Schema.Number,
1114
- }).pipe(Schema.encodeKeys({
1115
- id: "id",
1116
- accountId: "account_id",
1117
- accountTag: "account_tag",
1118
- createdAt: "created_at",
1119
- datasets: "datasets",
1120
- gatewayId: "gateway_id",
1121
- modifiedAt: "modified_at",
1122
- name: "name",
1123
- processed: "processed",
1124
- results: "results",
1125
- totalLogs: "total_logs",
1126
- })));
1127
- export const listEvaluations = API.make(() => ({
1188
+ resultInfo: Schema.Struct({
1189
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1190
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1191
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1192
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1193
+ }).pipe(Schema.encodeKeys({
1194
+ count: "count",
1195
+ page: "page",
1196
+ perPage: "per_page",
1197
+ totalCount: "total_count",
1198
+ })),
1199
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1200
+ export const listEvaluations = API.makePaginated(() => ({
1128
1201
  input: ListEvaluationsRequest,
1129
1202
  output: ListEvaluationsResponse,
1130
1203
  errors: [],
1204
+ pagination: {
1205
+ mode: "page",
1206
+ inputToken: "page",
1207
+ outputToken: "resultInfo.page",
1208
+ items: "result",
1209
+ pageSize: "perPage",
1210
+ },
1131
1211
  }));
1132
1212
  export const CreateEvaluationRequest =
1133
1213
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1215,7 +1295,8 @@ export const CreateEvaluationResponse =
1215
1295
  totalLogs: "total_logs",
1216
1296
  }))),
1217
1297
  totalLogs: Schema.Number,
1218
- }).pipe(Schema.encodeKeys({
1298
+ })
1299
+ .pipe(Schema.encodeKeys({
1219
1300
  id: "id",
1220
1301
  accountId: "account_id",
1221
1302
  accountTag: "account_tag",
@@ -1227,7 +1308,8 @@ export const CreateEvaluationResponse =
1227
1308
  processed: "processed",
1228
1309
  results: "results",
1229
1310
  totalLogs: "total_logs",
1230
- }));
1311
+ }))
1312
+ .pipe(T.ResponsePath("result"));
1231
1313
  export const createEvaluation = API.make(() => ({
1232
1314
  input: CreateEvaluationRequest,
1233
1315
  output: CreateEvaluationResponse,
@@ -1313,7 +1395,8 @@ export const DeleteEvaluationResponse =
1313
1395
  totalLogs: "total_logs",
1314
1396
  }))),
1315
1397
  totalLogs: Schema.Number,
1316
- }).pipe(Schema.encodeKeys({
1398
+ })
1399
+ .pipe(Schema.encodeKeys({
1317
1400
  id: "id",
1318
1401
  accountId: "account_id",
1319
1402
  accountTag: "account_tag",
@@ -1325,7 +1408,8 @@ export const DeleteEvaluationResponse =
1325
1408
  processed: "processed",
1326
1409
  results: "results",
1327
1410
  totalLogs: "total_logs",
1328
- }));
1411
+ }))
1412
+ .pipe(T.ResponsePath("result"));
1329
1413
  export const deleteEvaluation = API.make(() => ({
1330
1414
  input: DeleteEvaluationRequest,
1331
1415
  output: DeleteEvaluationResponse,
@@ -1341,29 +1425,49 @@ export const ListEvaluationTypesRequest =
1341
1425
  path: "/accounts/{account_id}/ai-gateway/evaluation-types",
1342
1426
  }));
1343
1427
  export const ListEvaluationTypesResponse =
1344
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1345
- id: Schema.String,
1346
- createdAt: Schema.String,
1347
- description: Schema.String,
1348
- enable: Schema.Boolean,
1349
- mandatory: Schema.Boolean,
1350
- modifiedAt: Schema.String,
1351
- name: Schema.String,
1352
- type: Schema.String,
1353
- }).pipe(Schema.encodeKeys({
1354
- id: "id",
1355
- createdAt: "created_at",
1356
- description: "description",
1357
- enable: "enable",
1358
- mandatory: "mandatory",
1359
- modifiedAt: "modified_at",
1360
- name: "name",
1361
- type: "type",
1362
- })));
1363
- export const listEvaluationTypes = API.make(() => ({
1428
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1429
+ result: Schema.Array(Schema.Struct({
1430
+ id: Schema.String,
1431
+ createdAt: Schema.String,
1432
+ description: Schema.String,
1433
+ enable: Schema.Boolean,
1434
+ mandatory: Schema.Boolean,
1435
+ modifiedAt: Schema.String,
1436
+ name: Schema.String,
1437
+ type: Schema.String,
1438
+ }).pipe(Schema.encodeKeys({
1439
+ id: "id",
1440
+ createdAt: "created_at",
1441
+ description: "description",
1442
+ enable: "enable",
1443
+ mandatory: "mandatory",
1444
+ modifiedAt: "modified_at",
1445
+ name: "name",
1446
+ type: "type",
1447
+ }))),
1448
+ resultInfo: Schema.Struct({
1449
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1450
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1451
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1452
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1453
+ }).pipe(Schema.encodeKeys({
1454
+ count: "count",
1455
+ page: "page",
1456
+ perPage: "per_page",
1457
+ totalCount: "total_count",
1458
+ })),
1459
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1460
+ export const listEvaluationTypes = API.makePaginated(() => ({
1364
1461
  input: ListEvaluationTypesRequest,
1365
1462
  output: ListEvaluationTypesResponse,
1366
1463
  errors: [],
1464
+ pagination: {
1465
+ mode: "page",
1466
+ inputToken: "page",
1467
+ outputToken: "resultInfo.page",
1468
+ items: "result",
1469
+ pageSize: "perPage",
1470
+ },
1367
1471
  }));
1368
1472
  export const GetLogRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1369
1473
  gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
@@ -1399,7 +1503,8 @@ export const GetLogResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1399
1503
  responseSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1400
1504
  statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1401
1505
  step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1402
- }).pipe(Schema.encodeKeys({
1506
+ })
1507
+ .pipe(Schema.encodeKeys({
1403
1508
  id: "id",
1404
1509
  cached: "cached",
1405
1510
  createdAt: "created_at",
@@ -1425,7 +1530,8 @@ export const GetLogResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1425
1530
  responseSize: "response_size",
1426
1531
  statusCode: "status_code",
1427
1532
  step: "step",
1428
- }));
1533
+ }))
1534
+ .pipe(T.ResponsePath("result"));
1429
1535
  export const getLog = API.make(() => ({
1430
1536
  input: GetLogRequest,
1431
1537
  output: GetLogResponse,
@@ -1528,51 +1634,71 @@ export const ListLogsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1528
1634
  method: "GET",
1529
1635
  path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/logs",
1530
1636
  }));
1531
- export const ListLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1532
- id: Schema.String,
1533
- cached: Schema.Boolean,
1534
- createdAt: Schema.String,
1535
- duration: Schema.Number,
1536
- model: Schema.String,
1537
- path: Schema.String,
1538
- provider: Schema.String,
1539
- success: Schema.Boolean,
1540
- tokensIn: Schema.Union([Schema.Number, Schema.Null]),
1541
- tokensOut: Schema.Union([Schema.Number, Schema.Null]),
1542
- cost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1543
- customCost: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1544
- metadata: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1545
- modelType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1546
- requestContentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1547
- requestType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1548
- responseContentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1549
- statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1550
- step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1551
- }).pipe(Schema.encodeKeys({
1552
- id: "id",
1553
- cached: "cached",
1554
- createdAt: "created_at",
1555
- duration: "duration",
1556
- model: "model",
1557
- path: "path",
1558
- provider: "provider",
1559
- success: "success",
1560
- tokensIn: "tokens_in",
1561
- tokensOut: "tokens_out",
1562
- cost: "cost",
1563
- customCost: "custom_cost",
1564
- metadata: "metadata",
1565
- modelType: "model_type",
1566
- requestContentType: "request_content_type",
1567
- requestType: "request_type",
1568
- responseContentType: "response_content_type",
1569
- statusCode: "status_code",
1570
- step: "step",
1571
- })));
1572
- export const listLogs = API.make(() => ({
1637
+ export const ListLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1638
+ result: Schema.Array(Schema.Struct({
1639
+ id: Schema.String,
1640
+ cached: Schema.Boolean,
1641
+ createdAt: Schema.String,
1642
+ duration: Schema.Number,
1643
+ model: Schema.String,
1644
+ path: Schema.String,
1645
+ provider: Schema.String,
1646
+ success: Schema.Boolean,
1647
+ tokensIn: Schema.Union([Schema.Number, Schema.Null]),
1648
+ tokensOut: Schema.Union([Schema.Number, Schema.Null]),
1649
+ cost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1650
+ customCost: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1651
+ metadata: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1652
+ modelType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1653
+ requestContentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1654
+ requestType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1655
+ responseContentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1656
+ statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1657
+ step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1658
+ }).pipe(Schema.encodeKeys({
1659
+ id: "id",
1660
+ cached: "cached",
1661
+ createdAt: "created_at",
1662
+ duration: "duration",
1663
+ model: "model",
1664
+ path: "path",
1665
+ provider: "provider",
1666
+ success: "success",
1667
+ tokensIn: "tokens_in",
1668
+ tokensOut: "tokens_out",
1669
+ cost: "cost",
1670
+ customCost: "custom_cost",
1671
+ metadata: "metadata",
1672
+ modelType: "model_type",
1673
+ requestContentType: "request_content_type",
1674
+ requestType: "request_type",
1675
+ responseContentType: "response_content_type",
1676
+ statusCode: "status_code",
1677
+ step: "step",
1678
+ }))),
1679
+ resultInfo: Schema.Struct({
1680
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1681
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1682
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1683
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1684
+ }).pipe(Schema.encodeKeys({
1685
+ count: "count",
1686
+ page: "page",
1687
+ perPage: "per_page",
1688
+ totalCount: "total_count",
1689
+ })),
1690
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1691
+ export const listLogs = API.makePaginated(() => ({
1573
1692
  input: ListLogsRequest,
1574
1693
  output: ListLogsResponse,
1575
1694
  errors: [],
1695
+ pagination: {
1696
+ mode: "page",
1697
+ inputToken: "page",
1698
+ outputToken: "resultInfo.page",
1699
+ items: "result",
1700
+ pageSize: "perPage",
1701
+ },
1576
1702
  }));
1577
1703
  export const PatchLogRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1578
1704
  gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
@@ -1585,8 +1711,7 @@ export const PatchLogRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1585
1711
  method: "PATCH",
1586
1712
  path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/logs/{id}",
1587
1713
  }));
1588
- export const PatchLogResponse =
1589
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
1714
+ export const PatchLogResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
1590
1715
  export const patchLog = API.make(() => ({
1591
1716
  input: PatchLogRequest,
1592
1717
  output: PatchLogResponse,
@@ -1696,8 +1821,7 @@ export const GetUrlRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1696
1821
  method: "GET",
1697
1822
  path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/url/{provider}",
1698
1823
  }));
1699
- export const GetUrlResponse =
1700
- /*@__PURE__*/ /*#__PURE__*/ Schema.String;
1824
+ export const GetUrlResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
1701
1825
  export const getUrl = API.make(() => ({
1702
1826
  input: GetUrlRequest,
1703
1827
  output: GetUrlResponse,