@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 aisearch
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";
@@ -64,592 +65,824 @@ export const ListInstancesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
64
65
  T.Http({ method: "GET", path: "/accounts/{account_id}/ai-search/instances" }),
65
66
  ) as unknown as Schema.Schema<ListInstancesRequest>;
66
67
 
67
- export type ListInstancesResponse = {
68
- id: string;
69
- accountId?: string | null;
70
- accountTag?: string | null;
71
- createdAt: string;
72
- internalId?: string | null;
73
- modifiedAt: string;
74
- source: string;
75
- tokenId: string;
76
- type: "r2" | "web-crawler";
77
- vectorizeName: string;
78
- aiGatewayId?: string | null;
79
- aiSearchModel?:
80
- | "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
81
- | "@cf/meta/llama-3.1-8b-instruct-fast"
82
- | "@cf/meta/llama-3.1-8b-instruct-fp8"
83
- | "@cf/meta/llama-4-scout-17b-16e-instruct"
84
- | "@cf/qwen/qwen3-30b-a3b-fp8"
85
- | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
86
- | "@cf/moonshotai/kimi-k2-instruct"
87
- | "anthropic/claude-3-7-sonnet"
88
- | "anthropic/claude-sonnet-4"
89
- | "anthropic/claude-opus-4"
90
- | "anthropic/claude-3-5-haiku"
91
- | "cerebras/qwen-3-235b-a22b-instruct"
92
- | "cerebras/qwen-3-235b-a22b-thinking"
93
- | "cerebras/llama-3.3-70b"
94
- | "cerebras/llama-4-maverick-17b-128e-instruct"
95
- | "cerebras/llama-4-scout-17b-16e-instruct"
96
- | "cerebras/gpt-oss-120b"
97
- | "google-ai-studio/gemini-2.5-flash"
98
- | "google-ai-studio/gemini-2.5-pro"
99
- | "grok/grok-4"
100
- | "groq/llama-3.3-70b-versatile"
101
- | "groq/llama-3.1-8b-instant"
102
- | "openai/gpt-5"
103
- | "openai/gpt-5-mini"
104
- | "openai/gpt-5-nano"
105
- | ""
106
- | null;
107
- cache?: boolean | null;
108
- cacheThreshold?:
109
- | "super_strict_match"
110
- | "close_enough"
111
- | "flexible_friend"
112
- | "anything_goes"
113
- | null;
114
- chunk?: boolean | null;
115
- chunkOverlap?: number | null;
116
- chunkSize?: number | null;
117
- createdBy?: string | null;
118
- embeddingModel?:
119
- | "@cf/baai/bge-m3"
120
- | "@cf/baai/bge-large-en-v1.5"
121
- | "@cf/google/embeddinggemma-300m"
122
- | "@cf/qwen/qwen3-embedding-0.6b"
123
- | "google-ai-studio/gemini-embedding-001"
124
- | "openai/text-embedding-3-small"
125
- | "openai/text-embedding-3-large"
126
- | ""
127
- | null;
128
- enable?: boolean | null;
129
- engineVersion?: number | null;
130
- hybridSearchEnabled?: boolean | null;
131
- lastActivity?: string | null;
132
- maxNumResults?: number | null;
133
- metadata?: {
134
- createdFromAisearchWizard?: boolean | null;
135
- workerDomain?: string | null;
136
- } | null;
137
- modifiedBy?: string | null;
138
- paused?: boolean | null;
139
- publicEndpointId?: string | null;
140
- publicEndpointParams?: {
141
- authorizedHosts?: string[] | null;
142
- chatCompletionsEndpoint?: { disabled?: boolean | null } | null;
143
- enabled?: boolean | null;
144
- mcp?: { disabled?: boolean | null } | null;
145
- rateLimit?: {
146
- periodMs?: number | null;
147
- requests?: number | null;
148
- technique?: "fixed" | "sliding" | null;
68
+ export interface ListInstancesResponse {
69
+ result: {
70
+ id: string;
71
+ accountId?: string | null;
72
+ accountTag?: string | null;
73
+ createdAt: string;
74
+ internalId?: string | null;
75
+ modifiedAt: string;
76
+ source: string;
77
+ tokenId: string;
78
+ type: "r2" | "web-crawler";
79
+ vectorizeName: string;
80
+ aiGatewayId?: string | null;
81
+ aiSearchModel?:
82
+ | "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
83
+ | "@cf/meta/llama-3.1-8b-instruct-fast"
84
+ | "@cf/meta/llama-3.1-8b-instruct-fp8"
85
+ | "@cf/meta/llama-4-scout-17b-16e-instruct"
86
+ | "@cf/qwen/qwen3-30b-a3b-fp8"
87
+ | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
88
+ | "@cf/moonshotai/kimi-k2-instruct"
89
+ | "anthropic/claude-3-7-sonnet"
90
+ | "anthropic/claude-sonnet-4"
91
+ | "anthropic/claude-opus-4"
92
+ | "anthropic/claude-3-5-haiku"
93
+ | "cerebras/qwen-3-235b-a22b-instruct"
94
+ | "cerebras/qwen-3-235b-a22b-thinking"
95
+ | "cerebras/llama-3.3-70b"
96
+ | "cerebras/llama-4-maverick-17b-128e-instruct"
97
+ | "cerebras/llama-4-scout-17b-16e-instruct"
98
+ | "cerebras/gpt-oss-120b"
99
+ | "google-ai-studio/gemini-2.5-flash"
100
+ | "google-ai-studio/gemini-2.5-pro"
101
+ | "grok/grok-4"
102
+ | "groq/llama-3.3-70b-versatile"
103
+ | "groq/llama-3.1-8b-instant"
104
+ | "openai/gpt-5"
105
+ | "openai/gpt-5-mini"
106
+ | "openai/gpt-5-nano"
107
+ | ""
108
+ | null;
109
+ cache?: boolean | null;
110
+ cacheThreshold?:
111
+ | "super_strict_match"
112
+ | "close_enough"
113
+ | "flexible_friend"
114
+ | "anything_goes"
115
+ | null;
116
+ chunk?: boolean | null;
117
+ chunkOverlap?: number | null;
118
+ chunkSize?: number | null;
119
+ createdBy?: string | null;
120
+ embeddingModel?:
121
+ | "@cf/baai/bge-m3"
122
+ | "@cf/baai/bge-large-en-v1.5"
123
+ | "@cf/google/embeddinggemma-300m"
124
+ | "@cf/qwen/qwen3-embedding-0.6b"
125
+ | "google-ai-studio/gemini-embedding-001"
126
+ | "openai/text-embedding-3-small"
127
+ | "openai/text-embedding-3-large"
128
+ | ""
129
+ | null;
130
+ enable?: boolean | null;
131
+ engineVersion?: number | null;
132
+ hybridSearchEnabled?: boolean | null;
133
+ lastActivity?: string | null;
134
+ maxNumResults?: number | null;
135
+ metadata?: {
136
+ createdFromAisearchWizard?: boolean | null;
137
+ workerDomain?: string | null;
149
138
  } | null;
150
- searchEndpoint?: { disabled?: boolean | null } | null;
151
- } | null;
152
- reranking?: boolean | null;
153
- rerankingModel?: "@cf/baai/bge-reranker-base" | "" | null;
154
- rewriteModel?:
155
- | "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
156
- | "@cf/meta/llama-3.1-8b-instruct-fast"
157
- | "@cf/meta/llama-3.1-8b-instruct-fp8"
158
- | "@cf/meta/llama-4-scout-17b-16e-instruct"
159
- | "@cf/qwen/qwen3-30b-a3b-fp8"
160
- | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
161
- | "@cf/moonshotai/kimi-k2-instruct"
162
- | "anthropic/claude-3-7-sonnet"
163
- | "anthropic/claude-sonnet-4"
164
- | "anthropic/claude-opus-4"
165
- | "anthropic/claude-3-5-haiku"
166
- | "cerebras/qwen-3-235b-a22b-instruct"
167
- | "cerebras/qwen-3-235b-a22b-thinking"
168
- | "cerebras/llama-3.3-70b"
169
- | "cerebras/llama-4-maverick-17b-128e-instruct"
170
- | "cerebras/llama-4-scout-17b-16e-instruct"
171
- | "cerebras/gpt-oss-120b"
172
- | "google-ai-studio/gemini-2.5-flash"
173
- | "google-ai-studio/gemini-2.5-pro"
174
- | "grok/grok-4"
175
- | "groq/llama-3.3-70b-versatile"
176
- | "groq/llama-3.1-8b-instant"
177
- | "openai/gpt-5"
178
- | "openai/gpt-5-mini"
179
- | "openai/gpt-5-nano"
180
- | ""
181
- | null;
182
- rewriteQuery?: boolean | null;
183
- scoreThreshold?: number | null;
184
- sourceParams?: {
185
- excludeItems?: string[] | null;
186
- includeItems?: string[] | null;
187
- prefix?: string | null;
188
- r2Jurisdiction?: string | null;
189
- webCrawler?: {
190
- parseOptions?: {
191
- includeHeaders?: Record<string, unknown> | null;
192
- includeImages?: boolean | null;
193
- useBrowserRendering?: boolean | null;
139
+ modifiedBy?: string | null;
140
+ paused?: boolean | null;
141
+ publicEndpointId?: string | null;
142
+ publicEndpointParams?: {
143
+ authorizedHosts?: string[] | null;
144
+ chatCompletionsEndpoint?: { disabled?: boolean | null } | null;
145
+ enabled?: boolean | null;
146
+ mcp?: { disabled?: boolean | null } | null;
147
+ rateLimit?: {
148
+ periodMs?: number | null;
149
+ requests?: number | null;
150
+ technique?: "fixed" | "sliding" | null;
194
151
  } | null;
195
- parseType?: "sitemap" | "feed-rss" | null;
196
- storeOptions?: {
197
- storageId: string;
198
- r2Jurisdiction?: string | null;
199
- storageType?: "r2" | null;
152
+ searchEndpoint?: { disabled?: boolean | null } | null;
153
+ } | null;
154
+ reranking?: boolean | null;
155
+ rerankingModel?: "@cf/baai/bge-reranker-base" | "" | null;
156
+ rewriteModel?:
157
+ | "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
158
+ | "@cf/meta/llama-3.1-8b-instruct-fast"
159
+ | "@cf/meta/llama-3.1-8b-instruct-fp8"
160
+ | "@cf/meta/llama-4-scout-17b-16e-instruct"
161
+ | "@cf/qwen/qwen3-30b-a3b-fp8"
162
+ | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
163
+ | "@cf/moonshotai/kimi-k2-instruct"
164
+ | "anthropic/claude-3-7-sonnet"
165
+ | "anthropic/claude-sonnet-4"
166
+ | "anthropic/claude-opus-4"
167
+ | "anthropic/claude-3-5-haiku"
168
+ | "cerebras/qwen-3-235b-a22b-instruct"
169
+ | "cerebras/qwen-3-235b-a22b-thinking"
170
+ | "cerebras/llama-3.3-70b"
171
+ | "cerebras/llama-4-maverick-17b-128e-instruct"
172
+ | "cerebras/llama-4-scout-17b-16e-instruct"
173
+ | "cerebras/gpt-oss-120b"
174
+ | "google-ai-studio/gemini-2.5-flash"
175
+ | "google-ai-studio/gemini-2.5-pro"
176
+ | "grok/grok-4"
177
+ | "groq/llama-3.3-70b-versatile"
178
+ | "groq/llama-3.1-8b-instant"
179
+ | "openai/gpt-5"
180
+ | "openai/gpt-5-mini"
181
+ | "openai/gpt-5-nano"
182
+ | ""
183
+ | null;
184
+ rewriteQuery?: boolean | null;
185
+ scoreThreshold?: number | null;
186
+ sourceParams?: {
187
+ excludeItems?: string[] | null;
188
+ includeItems?: string[] | null;
189
+ prefix?: string | null;
190
+ r2Jurisdiction?: string | null;
191
+ webCrawler?: {
192
+ parseOptions?: {
193
+ includeHeaders?: Record<string, unknown> | null;
194
+ includeImages?: boolean | null;
195
+ useBrowserRendering?: boolean | null;
196
+ } | null;
197
+ parseType?: "sitemap" | "feed-rss" | null;
198
+ storeOptions?: {
199
+ storageId: string;
200
+ r2Jurisdiction?: string | null;
201
+ storageType?: "r2" | null;
202
+ } | null;
200
203
  } | null;
201
204
  } | null;
205
+ status?: string | null;
206
+ summarization?: boolean | null;
207
+ summarizationModel?:
208
+ | "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
209
+ | "@cf/meta/llama-3.1-8b-instruct-fast"
210
+ | "@cf/meta/llama-3.1-8b-instruct-fp8"
211
+ | "@cf/meta/llama-4-scout-17b-16e-instruct"
212
+ | "@cf/qwen/qwen3-30b-a3b-fp8"
213
+ | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
214
+ | "@cf/moonshotai/kimi-k2-instruct"
215
+ | "anthropic/claude-3-7-sonnet"
216
+ | "anthropic/claude-sonnet-4"
217
+ | "anthropic/claude-opus-4"
218
+ | "anthropic/claude-3-5-haiku"
219
+ | "cerebras/qwen-3-235b-a22b-instruct"
220
+ | "cerebras/qwen-3-235b-a22b-thinking"
221
+ | "cerebras/llama-3.3-70b"
222
+ | "cerebras/llama-4-maverick-17b-128e-instruct"
223
+ | "cerebras/llama-4-scout-17b-16e-instruct"
224
+ | "cerebras/gpt-oss-120b"
225
+ | "google-ai-studio/gemini-2.5-flash"
226
+ | "google-ai-studio/gemini-2.5-pro"
227
+ | "grok/grok-4"
228
+ | "groq/llama-3.3-70b-versatile"
229
+ | "groq/llama-3.1-8b-instant"
230
+ | "openai/gpt-5"
231
+ | "openai/gpt-5-mini"
232
+ | "openai/gpt-5-nano"
233
+ | ""
234
+ | null;
235
+ systemPromptAiSearch?: string | null;
236
+ systemPromptIndexSummarization?: string | null;
237
+ systemPromptRewriteQuery?: string | null;
238
+ vectorizeActiveNamespace?: string | null;
239
+ }[];
240
+ resultInfo?: {
241
+ count?: number | null;
242
+ page?: number | null;
243
+ perPage?: number | null;
244
+ totalCount?: number | null;
202
245
  } | null;
203
- status?: string | null;
204
- summarization?: boolean | null;
205
- summarizationModel?:
206
- | "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
207
- | "@cf/meta/llama-3.1-8b-instruct-fast"
208
- | "@cf/meta/llama-3.1-8b-instruct-fp8"
209
- | "@cf/meta/llama-4-scout-17b-16e-instruct"
210
- | "@cf/qwen/qwen3-30b-a3b-fp8"
211
- | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
212
- | "@cf/moonshotai/kimi-k2-instruct"
213
- | "anthropic/claude-3-7-sonnet"
214
- | "anthropic/claude-sonnet-4"
215
- | "anthropic/claude-opus-4"
216
- | "anthropic/claude-3-5-haiku"
217
- | "cerebras/qwen-3-235b-a22b-instruct"
218
- | "cerebras/qwen-3-235b-a22b-thinking"
219
- | "cerebras/llama-3.3-70b"
220
- | "cerebras/llama-4-maverick-17b-128e-instruct"
221
- | "cerebras/llama-4-scout-17b-16e-instruct"
222
- | "cerebras/gpt-oss-120b"
223
- | "google-ai-studio/gemini-2.5-flash"
224
- | "google-ai-studio/gemini-2.5-pro"
225
- | "grok/grok-4"
226
- | "groq/llama-3.3-70b-versatile"
227
- | "groq/llama-3.1-8b-instant"
228
- | "openai/gpt-5"
229
- | "openai/gpt-5-mini"
230
- | "openai/gpt-5-nano"
231
- | ""
232
- | null;
233
- systemPromptAiSearch?: string | null;
234
- systemPromptIndexSummarization?: string | null;
235
- systemPromptRewriteQuery?: string | null;
236
- vectorizeActiveNamespace?: string | null;
237
- }[];
246
+ }
238
247
 
239
- export const ListInstancesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
240
- Schema.Struct({
241
- id: Schema.String,
242
- accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
243
- accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
244
- createdAt: Schema.String,
245
- internalId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
246
- modifiedAt: Schema.String,
247
- source: Schema.String,
248
- tokenId: Schema.String,
249
- type: Schema.Literals(["r2", "web-crawler"]),
250
- vectorizeName: Schema.String,
251
- aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
252
- aiSearchModel: Schema.optional(
253
- Schema.Union([
254
- Schema.Literals([
255
- "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
256
- "@cf/meta/llama-3.1-8b-instruct-fast",
257
- "@cf/meta/llama-3.1-8b-instruct-fp8",
258
- "@cf/meta/llama-4-scout-17b-16e-instruct",
259
- "@cf/qwen/qwen3-30b-a3b-fp8",
260
- "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
261
- "@cf/moonshotai/kimi-k2-instruct",
262
- "anthropic/claude-3-7-sonnet",
263
- "anthropic/claude-sonnet-4",
264
- "anthropic/claude-opus-4",
265
- "anthropic/claude-3-5-haiku",
266
- "cerebras/qwen-3-235b-a22b-instruct",
267
- "cerebras/qwen-3-235b-a22b-thinking",
268
- "cerebras/llama-3.3-70b",
269
- "cerebras/llama-4-maverick-17b-128e-instruct",
270
- "cerebras/llama-4-scout-17b-16e-instruct",
271
- "cerebras/gpt-oss-120b",
272
- "google-ai-studio/gemini-2.5-flash",
273
- "google-ai-studio/gemini-2.5-pro",
274
- "grok/grok-4",
275
- "groq/llama-3.3-70b-versatile",
276
- "groq/llama-3.1-8b-instant",
277
- "openai/gpt-5",
278
- "openai/gpt-5-mini",
279
- "openai/gpt-5-nano",
280
- "",
248
+ export const ListInstancesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
249
+ result: Schema.Array(
250
+ Schema.Struct({
251
+ id: Schema.String,
252
+ accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
253
+ accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
254
+ createdAt: Schema.String,
255
+ internalId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
256
+ modifiedAt: Schema.String,
257
+ source: Schema.String,
258
+ tokenId: Schema.String,
259
+ type: Schema.Literals(["r2", "web-crawler"]),
260
+ vectorizeName: Schema.String,
261
+ aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
262
+ aiSearchModel: Schema.optional(
263
+ Schema.Union([
264
+ Schema.Literals([
265
+ "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
266
+ "@cf/meta/llama-3.1-8b-instruct-fast",
267
+ "@cf/meta/llama-3.1-8b-instruct-fp8",
268
+ "@cf/meta/llama-4-scout-17b-16e-instruct",
269
+ "@cf/qwen/qwen3-30b-a3b-fp8",
270
+ "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
271
+ "@cf/moonshotai/kimi-k2-instruct",
272
+ "anthropic/claude-3-7-sonnet",
273
+ "anthropic/claude-sonnet-4",
274
+ "anthropic/claude-opus-4",
275
+ "anthropic/claude-3-5-haiku",
276
+ "cerebras/qwen-3-235b-a22b-instruct",
277
+ "cerebras/qwen-3-235b-a22b-thinking",
278
+ "cerebras/llama-3.3-70b",
279
+ "cerebras/llama-4-maverick-17b-128e-instruct",
280
+ "cerebras/llama-4-scout-17b-16e-instruct",
281
+ "cerebras/gpt-oss-120b",
282
+ "google-ai-studio/gemini-2.5-flash",
283
+ "google-ai-studio/gemini-2.5-pro",
284
+ "grok/grok-4",
285
+ "groq/llama-3.3-70b-versatile",
286
+ "groq/llama-3.1-8b-instant",
287
+ "openai/gpt-5",
288
+ "openai/gpt-5-mini",
289
+ "openai/gpt-5-nano",
290
+ "",
291
+ ]),
292
+ Schema.Null,
281
293
  ]),
282
- Schema.Null,
283
- ]),
284
- ),
285
- cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
286
- cacheThreshold: Schema.optional(
287
- Schema.Union([
288
- Schema.Literal("super_strict_match"),
289
- Schema.Literal("close_enough"),
290
- Schema.Literal("flexible_friend"),
291
- Schema.Literal("anything_goes"),
292
- Schema.Null,
293
- ]),
294
- ),
295
- chunk: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
296
- chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
297
- chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
298
- createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
299
- embeddingModel: Schema.optional(
300
- Schema.Union([
301
- Schema.Literals([
302
- "@cf/baai/bge-m3",
303
- "@cf/baai/bge-large-en-v1.5",
304
- "@cf/google/embeddinggemma-300m",
305
- "@cf/qwen/qwen3-embedding-0.6b",
306
- "google-ai-studio/gemini-embedding-001",
307
- "openai/text-embedding-3-small",
308
- "openai/text-embedding-3-large",
309
- "",
294
+ ),
295
+ cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
296
+ cacheThreshold: Schema.optional(
297
+ Schema.Union([
298
+ Schema.Literal("super_strict_match"),
299
+ Schema.Literal("close_enough"),
300
+ Schema.Literal("flexible_friend"),
301
+ Schema.Literal("anything_goes"),
302
+ Schema.Null,
310
303
  ]),
311
- Schema.Null,
312
- ]),
313
- ),
314
- enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
315
- engineVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
316
- hybridSearchEnabled: Schema.optional(
317
- Schema.Union([Schema.Boolean, Schema.Null]),
318
- ),
319
- lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
320
- maxNumResults: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
321
- metadata: Schema.optional(
322
- Schema.Union([
323
- Schema.Struct({
324
- createdFromAisearchWizard: Schema.optional(
325
- Schema.Union([Schema.Boolean, Schema.Null]),
326
- ),
327
- workerDomain: Schema.optional(
328
- Schema.Union([Schema.String, Schema.Null]),
329
- ),
330
- }).pipe(
331
- Schema.encodeKeys({
332
- createdFromAisearchWizard: "created_from_aisearch_wizard",
333
- workerDomain: "worker_domain",
334
- }),
335
- ),
336
- Schema.Null,
337
- ]),
338
- ),
339
- modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
340
- paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
341
- publicEndpointId: Schema.optional(
342
- Schema.Union([Schema.String, Schema.Null]),
343
- ),
344
- publicEndpointParams: Schema.optional(
345
- Schema.Union([
346
- Schema.Struct({
347
- authorizedHosts: Schema.optional(
348
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
349
- ),
350
- chatCompletionsEndpoint: Schema.optional(
351
- Schema.Union([
352
- Schema.Struct({
353
- disabled: Schema.optional(
354
- Schema.Union([Schema.Boolean, Schema.Null]),
355
- ),
356
- }),
357
- Schema.Null,
358
- ]),
359
- ),
360
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
361
- mcp: Schema.optional(
362
- Schema.Union([
363
- Schema.Struct({
364
- disabled: Schema.optional(
365
- Schema.Union([Schema.Boolean, Schema.Null]),
366
- ),
367
- }),
368
- Schema.Null,
369
- ]),
370
- ),
371
- rateLimit: Schema.optional(
372
- Schema.Union([
373
- Schema.Struct({
374
- periodMs: Schema.optional(
375
- Schema.Union([Schema.Number, Schema.Null]),
376
- ),
377
- requests: Schema.optional(
378
- Schema.Union([Schema.Number, Schema.Null]),
379
- ),
380
- technique: Schema.optional(
381
- Schema.Union([
382
- Schema.Literals(["fixed", "sliding"]),
383
- Schema.Null,
384
- ]),
385
- ),
386
- }).pipe(
387
- Schema.encodeKeys({
388
- periodMs: "period_ms",
389
- requests: "requests",
390
- technique: "technique",
391
- }),
392
- ),
393
- Schema.Null,
394
- ]),
395
- ),
396
- searchEndpoint: Schema.optional(
397
- Schema.Union([
398
- Schema.Struct({
399
- disabled: Schema.optional(
400
- Schema.Union([Schema.Boolean, Schema.Null]),
401
- ),
402
- }),
403
- Schema.Null,
404
- ]),
405
- ),
406
- }).pipe(
407
- Schema.encodeKeys({
408
- authorizedHosts: "authorized_hosts",
409
- chatCompletionsEndpoint: "chat_completions_endpoint",
410
- enabled: "enabled",
411
- mcp: "mcp",
412
- rateLimit: "rate_limit",
413
- searchEndpoint: "search_endpoint",
414
- }),
415
- ),
416
- Schema.Null,
417
- ]),
418
- ),
419
- reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
420
- rerankingModel: Schema.optional(
421
- Schema.Union([
422
- Schema.Literals(["@cf/baai/bge-reranker-base", ""]),
423
- Schema.Null,
424
- ]),
425
- ),
426
- rewriteModel: Schema.optional(
427
- Schema.Union([
428
- Schema.Literals([
429
- "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
430
- "@cf/meta/llama-3.1-8b-instruct-fast",
431
- "@cf/meta/llama-3.1-8b-instruct-fp8",
432
- "@cf/meta/llama-4-scout-17b-16e-instruct",
433
- "@cf/qwen/qwen3-30b-a3b-fp8",
434
- "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
435
- "@cf/moonshotai/kimi-k2-instruct",
436
- "anthropic/claude-3-7-sonnet",
437
- "anthropic/claude-sonnet-4",
438
- "anthropic/claude-opus-4",
439
- "anthropic/claude-3-5-haiku",
440
- "cerebras/qwen-3-235b-a22b-instruct",
441
- "cerebras/qwen-3-235b-a22b-thinking",
442
- "cerebras/llama-3.3-70b",
443
- "cerebras/llama-4-maverick-17b-128e-instruct",
444
- "cerebras/llama-4-scout-17b-16e-instruct",
445
- "cerebras/gpt-oss-120b",
446
- "google-ai-studio/gemini-2.5-flash",
447
- "google-ai-studio/gemini-2.5-pro",
448
- "grok/grok-4",
449
- "groq/llama-3.3-70b-versatile",
450
- "groq/llama-3.1-8b-instant",
451
- "openai/gpt-5",
452
- "openai/gpt-5-mini",
453
- "openai/gpt-5-nano",
454
- "",
304
+ ),
305
+ chunk: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
306
+ chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
307
+ chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
308
+ createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
309
+ embeddingModel: Schema.optional(
310
+ Schema.Union([
311
+ Schema.Literals([
312
+ "@cf/baai/bge-m3",
313
+ "@cf/baai/bge-large-en-v1.5",
314
+ "@cf/google/embeddinggemma-300m",
315
+ "@cf/qwen/qwen3-embedding-0.6b",
316
+ "google-ai-studio/gemini-embedding-001",
317
+ "openai/text-embedding-3-small",
318
+ "openai/text-embedding-3-large",
319
+ "",
320
+ ]),
321
+ Schema.Null,
455
322
  ]),
456
- Schema.Null,
457
- ]),
458
- ),
459
- rewriteQuery: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
460
- scoreThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
461
- sourceParams: Schema.optional(
462
- Schema.Union([
463
- Schema.Struct({
464
- excludeItems: Schema.optional(
465
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
466
- ),
467
- includeItems: Schema.optional(
468
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
469
- ),
470
- prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
471
- r2Jurisdiction: Schema.optional(
472
- Schema.Union([Schema.String, Schema.Null]),
323
+ ),
324
+ enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
325
+ engineVersion: Schema.optional(
326
+ Schema.Union([Schema.Number, Schema.Null]),
327
+ ),
328
+ hybridSearchEnabled: Schema.optional(
329
+ Schema.Union([Schema.Boolean, Schema.Null]),
330
+ ),
331
+ lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
332
+ maxNumResults: Schema.optional(
333
+ Schema.Union([Schema.Number, Schema.Null]),
334
+ ),
335
+ metadata: Schema.optional(
336
+ Schema.Union([
337
+ Schema.Struct({
338
+ createdFromAisearchWizard: Schema.optional(
339
+ Schema.Union([Schema.Boolean, Schema.Null]),
340
+ ),
341
+ workerDomain: Schema.optional(
342
+ Schema.Union([Schema.String, Schema.Null]),
343
+ ),
344
+ }).pipe(
345
+ Schema.encodeKeys({
346
+ createdFromAisearchWizard: "created_from_aisearch_wizard",
347
+ workerDomain: "worker_domain",
348
+ }),
473
349
  ),
474
- webCrawler: Schema.optional(
475
- Schema.Union([
476
- Schema.Struct({
477
- parseOptions: Schema.optional(
478
- Schema.Union([
479
- Schema.Struct({
480
- includeHeaders: Schema.optional(
481
- Schema.Union([Schema.Struct({}), Schema.Null]),
482
- ),
483
- includeImages: Schema.optional(
484
- Schema.Union([Schema.Boolean, Schema.Null]),
485
- ),
486
- useBrowserRendering: Schema.optional(
487
- Schema.Union([Schema.Boolean, Schema.Null]),
488
- ),
489
- }).pipe(
490
- Schema.encodeKeys({
491
- includeHeaders: "include_headers",
492
- includeImages: "include_images",
493
- useBrowserRendering: "use_browser_rendering",
494
- }),
495
- ),
496
- Schema.Null,
497
- ]),
498
- ),
499
- parseType: Schema.optional(
500
- Schema.Union([
501
- Schema.Literals(["sitemap", "feed-rss"]),
502
- Schema.Null,
503
- ]),
504
- ),
505
- storeOptions: Schema.optional(
506
- Schema.Union([
507
- Schema.Struct({
508
- storageId: Schema.String,
509
- r2Jurisdiction: Schema.optional(
510
- Schema.Union([Schema.String, Schema.Null]),
511
- ),
512
- storageType: Schema.optional(
513
- Schema.Union([Schema.Literal("r2"), Schema.Null]),
514
- ),
515
- }).pipe(
516
- Schema.encodeKeys({
517
- storageId: "storage_id",
518
- r2Jurisdiction: "r2_jurisdiction",
519
- storageType: "storage_type",
520
- }),
521
- ),
522
- Schema.Null,
523
- ]),
524
- ),
525
- }).pipe(
526
- Schema.encodeKeys({
527
- parseOptions: "parse_options",
528
- parseType: "parse_type",
529
- storeOptions: "store_options",
350
+ Schema.Null,
351
+ ]),
352
+ ),
353
+ modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
354
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
355
+ publicEndpointId: Schema.optional(
356
+ Schema.Union([Schema.String, Schema.Null]),
357
+ ),
358
+ publicEndpointParams: Schema.optional(
359
+ Schema.Union([
360
+ Schema.Struct({
361
+ authorizedHosts: Schema.optional(
362
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
363
+ ),
364
+ chatCompletionsEndpoint: Schema.optional(
365
+ Schema.Union([
366
+ Schema.Struct({
367
+ disabled: Schema.optional(
368
+ Schema.Union([Schema.Boolean, Schema.Null]),
369
+ ),
530
370
  }),
531
- ),
532
- Schema.Null,
533
- ]),
534
- ),
535
- }).pipe(
536
- Schema.encodeKeys({
537
- excludeItems: "exclude_items",
538
- includeItems: "include_items",
539
- prefix: "prefix",
540
- r2Jurisdiction: "r2_jurisdiction",
541
- webCrawler: "web_crawler",
542
- }),
543
- ),
544
- Schema.Null,
545
- ]),
546
- ),
547
- status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
548
- summarization: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
549
- summarizationModel: Schema.optional(
550
- Schema.Union([
551
- Schema.Literals([
552
- "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
553
- "@cf/meta/llama-3.1-8b-instruct-fast",
554
- "@cf/meta/llama-3.1-8b-instruct-fp8",
555
- "@cf/meta/llama-4-scout-17b-16e-instruct",
556
- "@cf/qwen/qwen3-30b-a3b-fp8",
557
- "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
558
- "@cf/moonshotai/kimi-k2-instruct",
559
- "anthropic/claude-3-7-sonnet",
560
- "anthropic/claude-sonnet-4",
561
- "anthropic/claude-opus-4",
562
- "anthropic/claude-3-5-haiku",
563
- "cerebras/qwen-3-235b-a22b-instruct",
564
- "cerebras/qwen-3-235b-a22b-thinking",
565
- "cerebras/llama-3.3-70b",
566
- "cerebras/llama-4-maverick-17b-128e-instruct",
567
- "cerebras/llama-4-scout-17b-16e-instruct",
568
- "cerebras/gpt-oss-120b",
569
- "google-ai-studio/gemini-2.5-flash",
570
- "google-ai-studio/gemini-2.5-pro",
571
- "grok/grok-4",
572
- "groq/llama-3.3-70b-versatile",
573
- "groq/llama-3.1-8b-instant",
574
- "openai/gpt-5",
575
- "openai/gpt-5-mini",
576
- "openai/gpt-5-nano",
577
- "",
371
+ Schema.Null,
372
+ ]),
373
+ ),
374
+ enabled: Schema.optional(
375
+ Schema.Union([Schema.Boolean, Schema.Null]),
376
+ ),
377
+ mcp: Schema.optional(
378
+ Schema.Union([
379
+ Schema.Struct({
380
+ disabled: Schema.optional(
381
+ Schema.Union([Schema.Boolean, Schema.Null]),
382
+ ),
383
+ }),
384
+ Schema.Null,
385
+ ]),
386
+ ),
387
+ rateLimit: Schema.optional(
388
+ Schema.Union([
389
+ Schema.Struct({
390
+ periodMs: Schema.optional(
391
+ Schema.Union([Schema.Number, Schema.Null]),
392
+ ),
393
+ requests: Schema.optional(
394
+ Schema.Union([Schema.Number, Schema.Null]),
395
+ ),
396
+ technique: Schema.optional(
397
+ Schema.Union([
398
+ Schema.Literals(["fixed", "sliding"]),
399
+ Schema.Null,
400
+ ]),
401
+ ),
402
+ }).pipe(
403
+ Schema.encodeKeys({
404
+ periodMs: "period_ms",
405
+ requests: "requests",
406
+ technique: "technique",
407
+ }),
408
+ ),
409
+ Schema.Null,
410
+ ]),
411
+ ),
412
+ searchEndpoint: Schema.optional(
413
+ Schema.Union([
414
+ Schema.Struct({
415
+ disabled: Schema.optional(
416
+ Schema.Union([Schema.Boolean, Schema.Null]),
417
+ ),
418
+ }),
419
+ Schema.Null,
420
+ ]),
421
+ ),
422
+ }).pipe(
423
+ Schema.encodeKeys({
424
+ authorizedHosts: "authorized_hosts",
425
+ chatCompletionsEndpoint: "chat_completions_endpoint",
426
+ enabled: "enabled",
427
+ mcp: "mcp",
428
+ rateLimit: "rate_limit",
429
+ searchEndpoint: "search_endpoint",
430
+ }),
431
+ ),
432
+ Schema.Null,
578
433
  ]),
579
- Schema.Null,
580
- ]),
581
- ),
582
- systemPromptAiSearch: Schema.optional(
583
- Schema.Union([Schema.String, Schema.Null]),
584
- ),
585
- systemPromptIndexSummarization: Schema.optional(
586
- Schema.Union([Schema.String, Schema.Null]),
587
- ),
588
- systemPromptRewriteQuery: Schema.optional(
589
- Schema.Union([Schema.String, Schema.Null]),
590
- ),
591
- vectorizeActiveNamespace: Schema.optional(
592
- Schema.Union([Schema.String, Schema.Null]),
434
+ ),
435
+ reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
436
+ rerankingModel: Schema.optional(
437
+ Schema.Union([
438
+ Schema.Literals(["@cf/baai/bge-reranker-base", ""]),
439
+ Schema.Null,
440
+ ]),
441
+ ),
442
+ rewriteModel: Schema.optional(
443
+ Schema.Union([
444
+ Schema.Literals([
445
+ "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
446
+ "@cf/meta/llama-3.1-8b-instruct-fast",
447
+ "@cf/meta/llama-3.1-8b-instruct-fp8",
448
+ "@cf/meta/llama-4-scout-17b-16e-instruct",
449
+ "@cf/qwen/qwen3-30b-a3b-fp8",
450
+ "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
451
+ "@cf/moonshotai/kimi-k2-instruct",
452
+ "anthropic/claude-3-7-sonnet",
453
+ "anthropic/claude-sonnet-4",
454
+ "anthropic/claude-opus-4",
455
+ "anthropic/claude-3-5-haiku",
456
+ "cerebras/qwen-3-235b-a22b-instruct",
457
+ "cerebras/qwen-3-235b-a22b-thinking",
458
+ "cerebras/llama-3.3-70b",
459
+ "cerebras/llama-4-maverick-17b-128e-instruct",
460
+ "cerebras/llama-4-scout-17b-16e-instruct",
461
+ "cerebras/gpt-oss-120b",
462
+ "google-ai-studio/gemini-2.5-flash",
463
+ "google-ai-studio/gemini-2.5-pro",
464
+ "grok/grok-4",
465
+ "groq/llama-3.3-70b-versatile",
466
+ "groq/llama-3.1-8b-instant",
467
+ "openai/gpt-5",
468
+ "openai/gpt-5-mini",
469
+ "openai/gpt-5-nano",
470
+ "",
471
+ ]),
472
+ Schema.Null,
473
+ ]),
474
+ ),
475
+ rewriteQuery: Schema.optional(
476
+ Schema.Union([Schema.Boolean, Schema.Null]),
477
+ ),
478
+ scoreThreshold: Schema.optional(
479
+ Schema.Union([Schema.Number, Schema.Null]),
480
+ ),
481
+ sourceParams: Schema.optional(
482
+ Schema.Union([
483
+ Schema.Struct({
484
+ excludeItems: Schema.optional(
485
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
486
+ ),
487
+ includeItems: Schema.optional(
488
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
489
+ ),
490
+ prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
491
+ r2Jurisdiction: Schema.optional(
492
+ Schema.Union([Schema.String, Schema.Null]),
493
+ ),
494
+ webCrawler: Schema.optional(
495
+ Schema.Union([
496
+ Schema.Struct({
497
+ parseOptions: Schema.optional(
498
+ Schema.Union([
499
+ Schema.Struct({
500
+ includeHeaders: Schema.optional(
501
+ Schema.Union([Schema.Struct({}), Schema.Null]),
502
+ ),
503
+ includeImages: Schema.optional(
504
+ Schema.Union([Schema.Boolean, Schema.Null]),
505
+ ),
506
+ useBrowserRendering: Schema.optional(
507
+ Schema.Union([Schema.Boolean, Schema.Null]),
508
+ ),
509
+ }).pipe(
510
+ Schema.encodeKeys({
511
+ includeHeaders: "include_headers",
512
+ includeImages: "include_images",
513
+ useBrowserRendering: "use_browser_rendering",
514
+ }),
515
+ ),
516
+ Schema.Null,
517
+ ]),
518
+ ),
519
+ parseType: Schema.optional(
520
+ Schema.Union([
521
+ Schema.Literals(["sitemap", "feed-rss"]),
522
+ Schema.Null,
523
+ ]),
524
+ ),
525
+ storeOptions: Schema.optional(
526
+ Schema.Union([
527
+ Schema.Struct({
528
+ storageId: Schema.String,
529
+ r2Jurisdiction: Schema.optional(
530
+ Schema.Union([Schema.String, Schema.Null]),
531
+ ),
532
+ storageType: Schema.optional(
533
+ Schema.Union([Schema.Literal("r2"), Schema.Null]),
534
+ ),
535
+ }).pipe(
536
+ Schema.encodeKeys({
537
+ storageId: "storage_id",
538
+ r2Jurisdiction: "r2_jurisdiction",
539
+ storageType: "storage_type",
540
+ }),
541
+ ),
542
+ Schema.Null,
543
+ ]),
544
+ ),
545
+ }).pipe(
546
+ Schema.encodeKeys({
547
+ parseOptions: "parse_options",
548
+ parseType: "parse_type",
549
+ storeOptions: "store_options",
550
+ }),
551
+ ),
552
+ Schema.Null,
553
+ ]),
554
+ ),
555
+ }).pipe(
556
+ Schema.encodeKeys({
557
+ excludeItems: "exclude_items",
558
+ includeItems: "include_items",
559
+ prefix: "prefix",
560
+ r2Jurisdiction: "r2_jurisdiction",
561
+ webCrawler: "web_crawler",
562
+ }),
563
+ ),
564
+ Schema.Null,
565
+ ]),
566
+ ),
567
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
568
+ summarization: Schema.optional(
569
+ Schema.Union([Schema.Boolean, Schema.Null]),
570
+ ),
571
+ summarizationModel: Schema.optional(
572
+ Schema.Union([
573
+ Schema.Literals([
574
+ "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
575
+ "@cf/meta/llama-3.1-8b-instruct-fast",
576
+ "@cf/meta/llama-3.1-8b-instruct-fp8",
577
+ "@cf/meta/llama-4-scout-17b-16e-instruct",
578
+ "@cf/qwen/qwen3-30b-a3b-fp8",
579
+ "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
580
+ "@cf/moonshotai/kimi-k2-instruct",
581
+ "anthropic/claude-3-7-sonnet",
582
+ "anthropic/claude-sonnet-4",
583
+ "anthropic/claude-opus-4",
584
+ "anthropic/claude-3-5-haiku",
585
+ "cerebras/qwen-3-235b-a22b-instruct",
586
+ "cerebras/qwen-3-235b-a22b-thinking",
587
+ "cerebras/llama-3.3-70b",
588
+ "cerebras/llama-4-maverick-17b-128e-instruct",
589
+ "cerebras/llama-4-scout-17b-16e-instruct",
590
+ "cerebras/gpt-oss-120b",
591
+ "google-ai-studio/gemini-2.5-flash",
592
+ "google-ai-studio/gemini-2.5-pro",
593
+ "grok/grok-4",
594
+ "groq/llama-3.3-70b-versatile",
595
+ "groq/llama-3.1-8b-instant",
596
+ "openai/gpt-5",
597
+ "openai/gpt-5-mini",
598
+ "openai/gpt-5-nano",
599
+ "",
600
+ ]),
601
+ Schema.Null,
602
+ ]),
603
+ ),
604
+ systemPromptAiSearch: Schema.optional(
605
+ Schema.Union([Schema.String, Schema.Null]),
606
+ ),
607
+ systemPromptIndexSummarization: Schema.optional(
608
+ Schema.Union([Schema.String, Schema.Null]),
609
+ ),
610
+ systemPromptRewriteQuery: Schema.optional(
611
+ Schema.Union([Schema.String, Schema.Null]),
612
+ ),
613
+ vectorizeActiveNamespace: Schema.optional(
614
+ Schema.Union([Schema.String, Schema.Null]),
615
+ ),
616
+ }).pipe(
617
+ Schema.encodeKeys({
618
+ id: "id",
619
+ accountId: "account_id",
620
+ accountTag: "account_tag",
621
+ createdAt: "created_at",
622
+ internalId: "internal_id",
623
+ modifiedAt: "modified_at",
624
+ source: "source",
625
+ tokenId: "token_id",
626
+ type: "type",
627
+ vectorizeName: "vectorize_name",
628
+ aiGatewayId: "ai_gateway_id",
629
+ aiSearchModel: "ai_search_model",
630
+ cache: "cache",
631
+ cacheThreshold: "cache_threshold",
632
+ chunk: "chunk",
633
+ chunkOverlap: "chunk_overlap",
634
+ chunkSize: "chunk_size",
635
+ createdBy: "created_by",
636
+ embeddingModel: "embedding_model",
637
+ enable: "enable",
638
+ engineVersion: "engine_version",
639
+ hybridSearchEnabled: "hybrid_search_enabled",
640
+ lastActivity: "last_activity",
641
+ maxNumResults: "max_num_results",
642
+ metadata: "metadata",
643
+ modifiedBy: "modified_by",
644
+ paused: "paused",
645
+ publicEndpointId: "public_endpoint_id",
646
+ publicEndpointParams: "public_endpoint_params",
647
+ reranking: "reranking",
648
+ rerankingModel: "reranking_model",
649
+ rewriteModel: "rewrite_model",
650
+ rewriteQuery: "rewrite_query",
651
+ scoreThreshold: "score_threshold",
652
+ sourceParams: "source_params",
653
+ status: "status",
654
+ summarization: "summarization",
655
+ summarizationModel: "summarization_model",
656
+ systemPromptAiSearch: "system_prompt_ai_search",
657
+ systemPromptIndexSummarization: "system_prompt_index_summarization",
658
+ systemPromptRewriteQuery: "system_prompt_rewrite_query",
659
+ vectorizeActiveNamespace: "vectorize_active_namespace",
660
+ }),
593
661
  ),
594
- }).pipe(
595
- Schema.encodeKeys({
596
- id: "id",
597
- accountId: "account_id",
598
- accountTag: "account_tag",
599
- createdAt: "created_at",
600
- internalId: "internal_id",
601
- modifiedAt: "modified_at",
602
- source: "source",
603
- tokenId: "token_id",
604
- type: "type",
605
- vectorizeName: "vectorize_name",
606
- aiGatewayId: "ai_gateway_id",
607
- aiSearchModel: "ai_search_model",
608
- cache: "cache",
609
- cacheThreshold: "cache_threshold",
610
- chunk: "chunk",
611
- chunkOverlap: "chunk_overlap",
612
- chunkSize: "chunk_size",
613
- createdBy: "created_by",
614
- embeddingModel: "embedding_model",
615
- enable: "enable",
616
- engineVersion: "engine_version",
617
- hybridSearchEnabled: "hybrid_search_enabled",
618
- lastActivity: "last_activity",
619
- maxNumResults: "max_num_results",
620
- metadata: "metadata",
621
- modifiedBy: "modified_by",
622
- paused: "paused",
623
- publicEndpointId: "public_endpoint_id",
624
- publicEndpointParams: "public_endpoint_params",
625
- reranking: "reranking",
626
- rerankingModel: "reranking_model",
627
- rewriteModel: "rewrite_model",
628
- rewriteQuery: "rewrite_query",
629
- scoreThreshold: "score_threshold",
630
- sourceParams: "source_params",
631
- status: "status",
632
- summarization: "summarization",
633
- summarizationModel: "summarization_model",
634
- systemPromptAiSearch: "system_prompt_ai_search",
635
- systemPromptIndexSummarization: "system_prompt_index_summarization",
636
- systemPromptRewriteQuery: "system_prompt_rewrite_query",
637
- vectorizeActiveNamespace: "vectorize_active_namespace",
638
- }),
639
662
  ),
663
+ resultInfo: Schema.optional(
664
+ Schema.Union([
665
+ Schema.Struct({
666
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
667
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
668
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
669
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
670
+ }).pipe(
671
+ Schema.encodeKeys({
672
+ count: "count",
673
+ page: "page",
674
+ perPage: "per_page",
675
+ totalCount: "total_count",
676
+ }),
677
+ ),
678
+ Schema.Null,
679
+ ]),
680
+ ),
681
+ }).pipe(
682
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
640
683
  ) as unknown as Schema.Schema<ListInstancesResponse>;
641
684
 
642
685
  export type ListInstancesError = DefaultErrors | InvalidRoute;
643
686
 
644
- export const listInstances: API.OperationMethod<
687
+ export const listInstances: API.PaginatedOperationMethod<
645
688
  ListInstancesRequest,
646
689
  ListInstancesResponse,
647
690
  ListInstancesError,
648
691
  Credentials | HttpClient.HttpClient
649
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
692
+ > & {
693
+ pages: (
694
+ input: ListInstancesRequest,
695
+ ) => stream.Stream<
696
+ ListInstancesResponse,
697
+ ListInstancesError,
698
+ Credentials | HttpClient.HttpClient
699
+ >;
700
+ items: (input: ListInstancesRequest) => stream.Stream<
701
+ {
702
+ id: string;
703
+ accountId: string;
704
+ accountTag: string;
705
+ createdAt: string;
706
+ internalId: string;
707
+ modifiedAt: string;
708
+ source: string;
709
+ tokenId: string;
710
+ type: "r2" | "web-crawler";
711
+ vectorizeName: string;
712
+ aiGatewayId?: string | null;
713
+ aiSearchModel?:
714
+ | "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
715
+ | "@cf/meta/llama-3.1-8b-instruct-fast"
716
+ | "@cf/meta/llama-3.1-8b-instruct-fp8"
717
+ | "@cf/meta/llama-4-scout-17b-16e-instruct"
718
+ | "@cf/qwen/qwen3-30b-a3b-fp8"
719
+ | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
720
+ | "@cf/moonshotai/kimi-k2-instruct"
721
+ | "anthropic/claude-3-7-sonnet"
722
+ | "anthropic/claude-sonnet-4"
723
+ | "anthropic/claude-opus-4"
724
+ | "anthropic/claude-3-5-haiku"
725
+ | "cerebras/qwen-3-235b-a22b-instruct"
726
+ | "cerebras/qwen-3-235b-a22b-thinking"
727
+ | "cerebras/llama-3.3-70b"
728
+ | "cerebras/llama-4-maverick-17b-128e-instruct"
729
+ | "cerebras/llama-4-scout-17b-16e-instruct"
730
+ | "cerebras/gpt-oss-120b"
731
+ | "google-ai-studio/gemini-2.5-flash"
732
+ | "google-ai-studio/gemini-2.5-pro"
733
+ | "grok/grok-4"
734
+ | "groq/llama-3.3-70b-versatile"
735
+ | "groq/llama-3.1-8b-instant"
736
+ | "openai/gpt-5"
737
+ | "openai/gpt-5-mini"
738
+ | "openai/gpt-5-nano"
739
+ | ""
740
+ | null;
741
+ cache?: boolean | null;
742
+ cacheThreshold?:
743
+ | "super_strict_match"
744
+ | "close_enough"
745
+ | "flexible_friend"
746
+ | "anything_goes"
747
+ | null;
748
+ chunk?: boolean | null;
749
+ chunkOverlap?: number | null;
750
+ chunkSize?: number | null;
751
+ createdBy?: string | null;
752
+ embeddingModel?:
753
+ | "@cf/baai/bge-m3"
754
+ | "@cf/baai/bge-large-en-v1.5"
755
+ | "@cf/google/embeddinggemma-300m"
756
+ | "@cf/qwen/qwen3-embedding-0.6b"
757
+ | "google-ai-studio/gemini-embedding-001"
758
+ | "openai/text-embedding-3-small"
759
+ | "openai/text-embedding-3-large"
760
+ | ""
761
+ | null;
762
+ enable?: boolean | null;
763
+ engineVersion?: number | null;
764
+ hybridSearchEnabled?: boolean | null;
765
+ lastActivity?: string | null;
766
+ maxNumResults?: number | null;
767
+ metadata?: {
768
+ createdFromAisearchWizard?: boolean | null;
769
+ workerDomain?: string | null;
770
+ } | null;
771
+ modifiedBy?: string | null;
772
+ paused?: boolean | null;
773
+ publicEndpointId?: string | null;
774
+ publicEndpointParams?: {
775
+ authorizedHosts?: string[] | null;
776
+ chatCompletionsEndpoint?: { disabled?: boolean | null } | null;
777
+ enabled?: boolean | null;
778
+ mcp?: { disabled?: boolean | null } | null;
779
+ rateLimit?: {
780
+ periodMs?: number | null;
781
+ requests?: number | null;
782
+ technique?: "fixed" | "sliding" | null;
783
+ } | null;
784
+ searchEndpoint?: { disabled?: boolean | null } | null;
785
+ } | null;
786
+ reranking?: boolean | null;
787
+ rerankingModel?: "@cf/baai/bge-reranker-base" | "" | null;
788
+ rewriteModel?:
789
+ | "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
790
+ | "@cf/meta/llama-3.1-8b-instruct-fast"
791
+ | "@cf/meta/llama-3.1-8b-instruct-fp8"
792
+ | "@cf/meta/llama-4-scout-17b-16e-instruct"
793
+ | "@cf/qwen/qwen3-30b-a3b-fp8"
794
+ | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
795
+ | "@cf/moonshotai/kimi-k2-instruct"
796
+ | "anthropic/claude-3-7-sonnet"
797
+ | "anthropic/claude-sonnet-4"
798
+ | "anthropic/claude-opus-4"
799
+ | "anthropic/claude-3-5-haiku"
800
+ | "cerebras/qwen-3-235b-a22b-instruct"
801
+ | "cerebras/qwen-3-235b-a22b-thinking"
802
+ | "cerebras/llama-3.3-70b"
803
+ | "cerebras/llama-4-maverick-17b-128e-instruct"
804
+ | "cerebras/llama-4-scout-17b-16e-instruct"
805
+ | "cerebras/gpt-oss-120b"
806
+ | "google-ai-studio/gemini-2.5-flash"
807
+ | "google-ai-studio/gemini-2.5-pro"
808
+ | "grok/grok-4"
809
+ | "groq/llama-3.3-70b-versatile"
810
+ | "groq/llama-3.1-8b-instant"
811
+ | "openai/gpt-5"
812
+ | "openai/gpt-5-mini"
813
+ | "openai/gpt-5-nano"
814
+ | ""
815
+ | null;
816
+ rewriteQuery?: boolean | null;
817
+ scoreThreshold?: number | null;
818
+ sourceParams?: {
819
+ excludeItems?: string[] | null;
820
+ includeItems?: string[] | null;
821
+ prefix?: string | null;
822
+ r2Jurisdiction?: string | null;
823
+ webCrawler?: {
824
+ parseOptions?: {
825
+ includeHeaders?: Record<string, unknown> | null;
826
+ includeImages?: boolean | null;
827
+ useBrowserRendering?: boolean | null;
828
+ } | null;
829
+ parseType?: "sitemap" | "feed-rss" | null;
830
+ storeOptions?: {
831
+ storageId: string;
832
+ r2Jurisdiction?: string | null;
833
+ storageType?: "r2" | null;
834
+ } | null;
835
+ } | null;
836
+ } | null;
837
+ status?: string | null;
838
+ summarization?: boolean | null;
839
+ summarizationModel?:
840
+ | "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
841
+ | "@cf/meta/llama-3.1-8b-instruct-fast"
842
+ | "@cf/meta/llama-3.1-8b-instruct-fp8"
843
+ | "@cf/meta/llama-4-scout-17b-16e-instruct"
844
+ | "@cf/qwen/qwen3-30b-a3b-fp8"
845
+ | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
846
+ | "@cf/moonshotai/kimi-k2-instruct"
847
+ | "anthropic/claude-3-7-sonnet"
848
+ | "anthropic/claude-sonnet-4"
849
+ | "anthropic/claude-opus-4"
850
+ | "anthropic/claude-3-5-haiku"
851
+ | "cerebras/qwen-3-235b-a22b-instruct"
852
+ | "cerebras/qwen-3-235b-a22b-thinking"
853
+ | "cerebras/llama-3.3-70b"
854
+ | "cerebras/llama-4-maverick-17b-128e-instruct"
855
+ | "cerebras/llama-4-scout-17b-16e-instruct"
856
+ | "cerebras/gpt-oss-120b"
857
+ | "google-ai-studio/gemini-2.5-flash"
858
+ | "google-ai-studio/gemini-2.5-pro"
859
+ | "grok/grok-4"
860
+ | "groq/llama-3.3-70b-versatile"
861
+ | "groq/llama-3.1-8b-instant"
862
+ | "openai/gpt-5"
863
+ | "openai/gpt-5-mini"
864
+ | "openai/gpt-5-nano"
865
+ | ""
866
+ | null;
867
+ systemPromptAiSearch?: string | null;
868
+ systemPromptIndexSummarization?: string | null;
869
+ systemPromptRewriteQuery?: string | null;
870
+ vectorizeActiveNamespace?: string | null;
871
+ },
872
+ ListInstancesError,
873
+ Credentials | HttpClient.HttpClient
874
+ >;
875
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
650
876
  input: ListInstancesRequest,
651
877
  output: ListInstancesResponse,
652
878
  errors: [InvalidRoute],
879
+ pagination: {
880
+ mode: "page",
881
+ inputToken: "page",
882
+ outputToken: "resultInfo.page",
883
+ items: "result",
884
+ pageSize: "perPage",
885
+ } as const,
653
886
  }));
654
887
 
655
888
  export interface CreateInstanceRequest {
@@ -1541,52 +1774,56 @@ export const CreateInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1541
1774
  Schema.Union([Schema.String, Schema.Null]),
1542
1775
  ),
1543
1776
  },
1544
- ).pipe(
1545
- Schema.encodeKeys({
1546
- id: "id",
1547
- accountId: "account_id",
1548
- accountTag: "account_tag",
1549
- createdAt: "created_at",
1550
- internalId: "internal_id",
1551
- modifiedAt: "modified_at",
1552
- source: "source",
1553
- tokenId: "token_id",
1554
- type: "type",
1555
- vectorizeName: "vectorize_name",
1556
- aiGatewayId: "ai_gateway_id",
1557
- aiSearchModel: "ai_search_model",
1558
- cache: "cache",
1559
- cacheThreshold: "cache_threshold",
1560
- chunk: "chunk",
1561
- chunkOverlap: "chunk_overlap",
1562
- chunkSize: "chunk_size",
1563
- createdBy: "created_by",
1564
- embeddingModel: "embedding_model",
1565
- enable: "enable",
1566
- engineVersion: "engine_version",
1567
- hybridSearchEnabled: "hybrid_search_enabled",
1568
- lastActivity: "last_activity",
1569
- maxNumResults: "max_num_results",
1570
- metadata: "metadata",
1571
- modifiedBy: "modified_by",
1572
- paused: "paused",
1573
- publicEndpointId: "public_endpoint_id",
1574
- publicEndpointParams: "public_endpoint_params",
1575
- reranking: "reranking",
1576
- rerankingModel: "reranking_model",
1577
- rewriteModel: "rewrite_model",
1578
- rewriteQuery: "rewrite_query",
1579
- scoreThreshold: "score_threshold",
1580
- sourceParams: "source_params",
1581
- status: "status",
1582
- summarization: "summarization",
1583
- summarizationModel: "summarization_model",
1584
- systemPromptAiSearch: "system_prompt_ai_search",
1585
- systemPromptIndexSummarization: "system_prompt_index_summarization",
1586
- systemPromptRewriteQuery: "system_prompt_rewrite_query",
1587
- vectorizeActiveNamespace: "vectorize_active_namespace",
1588
- }),
1589
- ) as unknown as Schema.Schema<CreateInstanceResponse>;
1777
+ )
1778
+ .pipe(
1779
+ Schema.encodeKeys({
1780
+ id: "id",
1781
+ accountId: "account_id",
1782
+ accountTag: "account_tag",
1783
+ createdAt: "created_at",
1784
+ internalId: "internal_id",
1785
+ modifiedAt: "modified_at",
1786
+ source: "source",
1787
+ tokenId: "token_id",
1788
+ type: "type",
1789
+ vectorizeName: "vectorize_name",
1790
+ aiGatewayId: "ai_gateway_id",
1791
+ aiSearchModel: "ai_search_model",
1792
+ cache: "cache",
1793
+ cacheThreshold: "cache_threshold",
1794
+ chunk: "chunk",
1795
+ chunkOverlap: "chunk_overlap",
1796
+ chunkSize: "chunk_size",
1797
+ createdBy: "created_by",
1798
+ embeddingModel: "embedding_model",
1799
+ enable: "enable",
1800
+ engineVersion: "engine_version",
1801
+ hybridSearchEnabled: "hybrid_search_enabled",
1802
+ lastActivity: "last_activity",
1803
+ maxNumResults: "max_num_results",
1804
+ metadata: "metadata",
1805
+ modifiedBy: "modified_by",
1806
+ paused: "paused",
1807
+ publicEndpointId: "public_endpoint_id",
1808
+ publicEndpointParams: "public_endpoint_params",
1809
+ reranking: "reranking",
1810
+ rerankingModel: "reranking_model",
1811
+ rewriteModel: "rewrite_model",
1812
+ rewriteQuery: "rewrite_query",
1813
+ scoreThreshold: "score_threshold",
1814
+ sourceParams: "source_params",
1815
+ status: "status",
1816
+ summarization: "summarization",
1817
+ summarizationModel: "summarization_model",
1818
+ systemPromptAiSearch: "system_prompt_ai_search",
1819
+ systemPromptIndexSummarization: "system_prompt_index_summarization",
1820
+ systemPromptRewriteQuery: "system_prompt_rewrite_query",
1821
+ vectorizeActiveNamespace: "vectorize_active_namespace",
1822
+ }),
1823
+ )
1824
+ .pipe(
1825
+ T.ResponsePath("result"),
1826
+ ) as unknown as Schema.Schema<CreateInstanceResponse>;
1590
1827
 
1591
1828
  export type CreateInstanceError =
1592
1829
  | DefaultErrors
@@ -2553,81 +2790,85 @@ export const UpdateInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2553
2790
  "cerebras/qwen-3-235b-a22b-instruct",
2554
2791
  "cerebras/qwen-3-235b-a22b-thinking",
2555
2792
  "cerebras/llama-3.3-70b",
2556
- "cerebras/llama-4-maverick-17b-128e-instruct",
2557
- "cerebras/llama-4-scout-17b-16e-instruct",
2558
- "cerebras/gpt-oss-120b",
2559
- "google-ai-studio/gemini-2.5-flash",
2560
- "google-ai-studio/gemini-2.5-pro",
2561
- "grok/grok-4",
2562
- "groq/llama-3.3-70b-versatile",
2563
- "groq/llama-3.1-8b-instant",
2564
- "openai/gpt-5",
2565
- "openai/gpt-5-mini",
2566
- "openai/gpt-5-nano",
2567
- "",
2568
- ]),
2569
- Schema.Null,
2570
- ]),
2571
- ),
2572
- systemPromptAiSearch: Schema.optional(
2573
- Schema.Union([Schema.String, Schema.Null]),
2574
- ),
2575
- systemPromptIndexSummarization: Schema.optional(
2576
- Schema.Union([Schema.String, Schema.Null]),
2577
- ),
2578
- systemPromptRewriteQuery: Schema.optional(
2579
- Schema.Union([Schema.String, Schema.Null]),
2580
- ),
2581
- vectorizeActiveNamespace: Schema.optional(
2582
- Schema.Union([Schema.String, Schema.Null]),
2583
- ),
2584
- },
2585
- ).pipe(
2586
- Schema.encodeKeys({
2587
- id: "id",
2588
- accountId: "account_id",
2589
- accountTag: "account_tag",
2590
- createdAt: "created_at",
2591
- internalId: "internal_id",
2592
- modifiedAt: "modified_at",
2593
- source: "source",
2594
- tokenId: "token_id",
2595
- type: "type",
2596
- vectorizeName: "vectorize_name",
2597
- aiGatewayId: "ai_gateway_id",
2598
- aiSearchModel: "ai_search_model",
2599
- cache: "cache",
2600
- cacheThreshold: "cache_threshold",
2601
- chunk: "chunk",
2602
- chunkOverlap: "chunk_overlap",
2603
- chunkSize: "chunk_size",
2604
- createdBy: "created_by",
2605
- embeddingModel: "embedding_model",
2606
- enable: "enable",
2607
- engineVersion: "engine_version",
2608
- hybridSearchEnabled: "hybrid_search_enabled",
2609
- lastActivity: "last_activity",
2610
- maxNumResults: "max_num_results",
2611
- metadata: "metadata",
2612
- modifiedBy: "modified_by",
2613
- paused: "paused",
2614
- publicEndpointId: "public_endpoint_id",
2615
- publicEndpointParams: "public_endpoint_params",
2616
- reranking: "reranking",
2617
- rerankingModel: "reranking_model",
2618
- rewriteModel: "rewrite_model",
2619
- rewriteQuery: "rewrite_query",
2620
- scoreThreshold: "score_threshold",
2621
- sourceParams: "source_params",
2622
- status: "status",
2623
- summarization: "summarization",
2624
- summarizationModel: "summarization_model",
2625
- systemPromptAiSearch: "system_prompt_ai_search",
2626
- systemPromptIndexSummarization: "system_prompt_index_summarization",
2627
- systemPromptRewriteQuery: "system_prompt_rewrite_query",
2628
- vectorizeActiveNamespace: "vectorize_active_namespace",
2629
- }),
2630
- ) as unknown as Schema.Schema<UpdateInstanceResponse>;
2793
+ "cerebras/llama-4-maverick-17b-128e-instruct",
2794
+ "cerebras/llama-4-scout-17b-16e-instruct",
2795
+ "cerebras/gpt-oss-120b",
2796
+ "google-ai-studio/gemini-2.5-flash",
2797
+ "google-ai-studio/gemini-2.5-pro",
2798
+ "grok/grok-4",
2799
+ "groq/llama-3.3-70b-versatile",
2800
+ "groq/llama-3.1-8b-instant",
2801
+ "openai/gpt-5",
2802
+ "openai/gpt-5-mini",
2803
+ "openai/gpt-5-nano",
2804
+ "",
2805
+ ]),
2806
+ Schema.Null,
2807
+ ]),
2808
+ ),
2809
+ systemPromptAiSearch: Schema.optional(
2810
+ Schema.Union([Schema.String, Schema.Null]),
2811
+ ),
2812
+ systemPromptIndexSummarization: Schema.optional(
2813
+ Schema.Union([Schema.String, Schema.Null]),
2814
+ ),
2815
+ systemPromptRewriteQuery: Schema.optional(
2816
+ Schema.Union([Schema.String, Schema.Null]),
2817
+ ),
2818
+ vectorizeActiveNamespace: Schema.optional(
2819
+ Schema.Union([Schema.String, Schema.Null]),
2820
+ ),
2821
+ },
2822
+ )
2823
+ .pipe(
2824
+ Schema.encodeKeys({
2825
+ id: "id",
2826
+ accountId: "account_id",
2827
+ accountTag: "account_tag",
2828
+ createdAt: "created_at",
2829
+ internalId: "internal_id",
2830
+ modifiedAt: "modified_at",
2831
+ source: "source",
2832
+ tokenId: "token_id",
2833
+ type: "type",
2834
+ vectorizeName: "vectorize_name",
2835
+ aiGatewayId: "ai_gateway_id",
2836
+ aiSearchModel: "ai_search_model",
2837
+ cache: "cache",
2838
+ cacheThreshold: "cache_threshold",
2839
+ chunk: "chunk",
2840
+ chunkOverlap: "chunk_overlap",
2841
+ chunkSize: "chunk_size",
2842
+ createdBy: "created_by",
2843
+ embeddingModel: "embedding_model",
2844
+ enable: "enable",
2845
+ engineVersion: "engine_version",
2846
+ hybridSearchEnabled: "hybrid_search_enabled",
2847
+ lastActivity: "last_activity",
2848
+ maxNumResults: "max_num_results",
2849
+ metadata: "metadata",
2850
+ modifiedBy: "modified_by",
2851
+ paused: "paused",
2852
+ publicEndpointId: "public_endpoint_id",
2853
+ publicEndpointParams: "public_endpoint_params",
2854
+ reranking: "reranking",
2855
+ rerankingModel: "reranking_model",
2856
+ rewriteModel: "rewrite_model",
2857
+ rewriteQuery: "rewrite_query",
2858
+ scoreThreshold: "score_threshold",
2859
+ sourceParams: "source_params",
2860
+ status: "status",
2861
+ summarization: "summarization",
2862
+ summarizationModel: "summarization_model",
2863
+ systemPromptAiSearch: "system_prompt_ai_search",
2864
+ systemPromptIndexSummarization: "system_prompt_index_summarization",
2865
+ systemPromptRewriteQuery: "system_prompt_rewrite_query",
2866
+ vectorizeActiveNamespace: "vectorize_active_namespace",
2867
+ }),
2868
+ )
2869
+ .pipe(
2870
+ T.ResponsePath("result"),
2871
+ ) as unknown as Schema.Schema<UpdateInstanceResponse>;
2631
2872
 
2632
2873
  export type UpdateInstanceError =
2633
2874
  | DefaultErrors
@@ -3190,52 +3431,56 @@ export const DeleteInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
3190
3431
  Schema.Union([Schema.String, Schema.Null]),
3191
3432
  ),
3192
3433
  },
3193
- ).pipe(
3194
- Schema.encodeKeys({
3195
- id: "id",
3196
- accountId: "account_id",
3197
- accountTag: "account_tag",
3198
- createdAt: "created_at",
3199
- internalId: "internal_id",
3200
- modifiedAt: "modified_at",
3201
- source: "source",
3202
- tokenId: "token_id",
3203
- type: "type",
3204
- vectorizeName: "vectorize_name",
3205
- aiGatewayId: "ai_gateway_id",
3206
- aiSearchModel: "ai_search_model",
3207
- cache: "cache",
3208
- cacheThreshold: "cache_threshold",
3209
- chunk: "chunk",
3210
- chunkOverlap: "chunk_overlap",
3211
- chunkSize: "chunk_size",
3212
- createdBy: "created_by",
3213
- embeddingModel: "embedding_model",
3214
- enable: "enable",
3215
- engineVersion: "engine_version",
3216
- hybridSearchEnabled: "hybrid_search_enabled",
3217
- lastActivity: "last_activity",
3218
- maxNumResults: "max_num_results",
3219
- metadata: "metadata",
3220
- modifiedBy: "modified_by",
3221
- paused: "paused",
3222
- publicEndpointId: "public_endpoint_id",
3223
- publicEndpointParams: "public_endpoint_params",
3224
- reranking: "reranking",
3225
- rerankingModel: "reranking_model",
3226
- rewriteModel: "rewrite_model",
3227
- rewriteQuery: "rewrite_query",
3228
- scoreThreshold: "score_threshold",
3229
- sourceParams: "source_params",
3230
- status: "status",
3231
- summarization: "summarization",
3232
- summarizationModel: "summarization_model",
3233
- systemPromptAiSearch: "system_prompt_ai_search",
3234
- systemPromptIndexSummarization: "system_prompt_index_summarization",
3235
- systemPromptRewriteQuery: "system_prompt_rewrite_query",
3236
- vectorizeActiveNamespace: "vectorize_active_namespace",
3237
- }),
3238
- ) as unknown as Schema.Schema<DeleteInstanceResponse>;
3434
+ )
3435
+ .pipe(
3436
+ Schema.encodeKeys({
3437
+ id: "id",
3438
+ accountId: "account_id",
3439
+ accountTag: "account_tag",
3440
+ createdAt: "created_at",
3441
+ internalId: "internal_id",
3442
+ modifiedAt: "modified_at",
3443
+ source: "source",
3444
+ tokenId: "token_id",
3445
+ type: "type",
3446
+ vectorizeName: "vectorize_name",
3447
+ aiGatewayId: "ai_gateway_id",
3448
+ aiSearchModel: "ai_search_model",
3449
+ cache: "cache",
3450
+ cacheThreshold: "cache_threshold",
3451
+ chunk: "chunk",
3452
+ chunkOverlap: "chunk_overlap",
3453
+ chunkSize: "chunk_size",
3454
+ createdBy: "created_by",
3455
+ embeddingModel: "embedding_model",
3456
+ enable: "enable",
3457
+ engineVersion: "engine_version",
3458
+ hybridSearchEnabled: "hybrid_search_enabled",
3459
+ lastActivity: "last_activity",
3460
+ maxNumResults: "max_num_results",
3461
+ metadata: "metadata",
3462
+ modifiedBy: "modified_by",
3463
+ paused: "paused",
3464
+ publicEndpointId: "public_endpoint_id",
3465
+ publicEndpointParams: "public_endpoint_params",
3466
+ reranking: "reranking",
3467
+ rerankingModel: "reranking_model",
3468
+ rewriteModel: "rewrite_model",
3469
+ rewriteQuery: "rewrite_query",
3470
+ scoreThreshold: "score_threshold",
3471
+ sourceParams: "source_params",
3472
+ status: "status",
3473
+ summarization: "summarization",
3474
+ summarizationModel: "summarization_model",
3475
+ systemPromptAiSearch: "system_prompt_ai_search",
3476
+ systemPromptIndexSummarization: "system_prompt_index_summarization",
3477
+ systemPromptRewriteQuery: "system_prompt_rewrite_query",
3478
+ vectorizeActiveNamespace: "vectorize_active_namespace",
3479
+ }),
3480
+ )
3481
+ .pipe(
3482
+ T.ResponsePath("result"),
3483
+ ) as unknown as Schema.Schema<DeleteInstanceResponse>;
3239
3484
 
3240
3485
  export type DeleteInstanceError =
3241
3486
  | DefaultErrors
@@ -3794,52 +4039,56 @@ export const ReadInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3794
4039
  vectorizeActiveNamespace: Schema.optional(
3795
4040
  Schema.Union([Schema.String, Schema.Null]),
3796
4041
  ),
3797
- }).pipe(
3798
- Schema.encodeKeys({
3799
- id: "id",
3800
- accountId: "account_id",
3801
- accountTag: "account_tag",
3802
- createdAt: "created_at",
3803
- internalId: "internal_id",
3804
- modifiedAt: "modified_at",
3805
- source: "source",
3806
- tokenId: "token_id",
3807
- type: "type",
3808
- vectorizeName: "vectorize_name",
3809
- aiGatewayId: "ai_gateway_id",
3810
- aiSearchModel: "ai_search_model",
3811
- cache: "cache",
3812
- cacheThreshold: "cache_threshold",
3813
- chunk: "chunk",
3814
- chunkOverlap: "chunk_overlap",
3815
- chunkSize: "chunk_size",
3816
- createdBy: "created_by",
3817
- embeddingModel: "embedding_model",
3818
- enable: "enable",
3819
- engineVersion: "engine_version",
3820
- hybridSearchEnabled: "hybrid_search_enabled",
3821
- lastActivity: "last_activity",
3822
- maxNumResults: "max_num_results",
3823
- metadata: "metadata",
3824
- modifiedBy: "modified_by",
3825
- paused: "paused",
3826
- publicEndpointId: "public_endpoint_id",
3827
- publicEndpointParams: "public_endpoint_params",
3828
- reranking: "reranking",
3829
- rerankingModel: "reranking_model",
3830
- rewriteModel: "rewrite_model",
3831
- rewriteQuery: "rewrite_query",
3832
- scoreThreshold: "score_threshold",
3833
- sourceParams: "source_params",
3834
- status: "status",
3835
- summarization: "summarization",
3836
- summarizationModel: "summarization_model",
3837
- systemPromptAiSearch: "system_prompt_ai_search",
3838
- systemPromptIndexSummarization: "system_prompt_index_summarization",
3839
- systemPromptRewriteQuery: "system_prompt_rewrite_query",
3840
- vectorizeActiveNamespace: "vectorize_active_namespace",
3841
- }),
3842
- ) as unknown as Schema.Schema<ReadInstanceResponse>;
4042
+ })
4043
+ .pipe(
4044
+ Schema.encodeKeys({
4045
+ id: "id",
4046
+ accountId: "account_id",
4047
+ accountTag: "account_tag",
4048
+ createdAt: "created_at",
4049
+ internalId: "internal_id",
4050
+ modifiedAt: "modified_at",
4051
+ source: "source",
4052
+ tokenId: "token_id",
4053
+ type: "type",
4054
+ vectorizeName: "vectorize_name",
4055
+ aiGatewayId: "ai_gateway_id",
4056
+ aiSearchModel: "ai_search_model",
4057
+ cache: "cache",
4058
+ cacheThreshold: "cache_threshold",
4059
+ chunk: "chunk",
4060
+ chunkOverlap: "chunk_overlap",
4061
+ chunkSize: "chunk_size",
4062
+ createdBy: "created_by",
4063
+ embeddingModel: "embedding_model",
4064
+ enable: "enable",
4065
+ engineVersion: "engine_version",
4066
+ hybridSearchEnabled: "hybrid_search_enabled",
4067
+ lastActivity: "last_activity",
4068
+ maxNumResults: "max_num_results",
4069
+ metadata: "metadata",
4070
+ modifiedBy: "modified_by",
4071
+ paused: "paused",
4072
+ publicEndpointId: "public_endpoint_id",
4073
+ publicEndpointParams: "public_endpoint_params",
4074
+ reranking: "reranking",
4075
+ rerankingModel: "reranking_model",
4076
+ rewriteModel: "rewrite_model",
4077
+ rewriteQuery: "rewrite_query",
4078
+ scoreThreshold: "score_threshold",
4079
+ sourceParams: "source_params",
4080
+ status: "status",
4081
+ summarization: "summarization",
4082
+ summarizationModel: "summarization_model",
4083
+ systemPromptAiSearch: "system_prompt_ai_search",
4084
+ systemPromptIndexSummarization: "system_prompt_index_summarization",
4085
+ systemPromptRewriteQuery: "system_prompt_rewrite_query",
4086
+ vectorizeActiveNamespace: "vectorize_active_namespace",
4087
+ }),
4088
+ )
4089
+ .pipe(
4090
+ T.ResponsePath("result"),
4091
+ ) as unknown as Schema.Schema<ReadInstanceResponse>;
3843
4092
 
3844
4093
  export type ReadInstanceError =
3845
4094
  | DefaultErrors
@@ -3897,18 +4146,22 @@ export const StatsInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3897
4146
  queued: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3898
4147
  running: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3899
4148
  skipped: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3900
- }).pipe(
3901
- Schema.encodeKeys({
3902
- completed: "completed",
3903
- error: "error",
3904
- fileEmbedErrors: "file_embed_errors",
3905
- indexSourceErrors: "index_source_errors",
3906
- lastActivity: "last_activity",
3907
- queued: "queued",
3908
- running: "running",
3909
- skipped: "skipped",
3910
- }),
3911
- ) as unknown as Schema.Schema<StatsInstanceResponse>;
4149
+ })
4150
+ .pipe(
4151
+ Schema.encodeKeys({
4152
+ completed: "completed",
4153
+ error: "error",
4154
+ fileEmbedErrors: "file_embed_errors",
4155
+ indexSourceErrors: "index_source_errors",
4156
+ lastActivity: "last_activity",
4157
+ queued: "queued",
4158
+ running: "running",
4159
+ skipped: "skipped",
4160
+ }),
4161
+ )
4162
+ .pipe(
4163
+ T.ResponsePath("result"),
4164
+ ) as unknown as Schema.Schema<StatsInstanceResponse>;
3912
4165
 
3913
4166
  export type StatsInstanceError =
3914
4167
  | DefaultErrors
@@ -3973,16 +4226,20 @@ export const GetInstanceItemResponse =
3973
4226
  error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3974
4227
  lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3975
4228
  nextAction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3976
- }).pipe(
3977
- Schema.encodeKeys({
3978
- id: "id",
3979
- key: "key",
3980
- status: "status",
3981
- error: "error",
3982
- lastSeenAt: "last_seen_at",
3983
- nextAction: "next_action",
3984
- }),
3985
- ) as unknown as Schema.Schema<GetInstanceItemResponse>;
4229
+ })
4230
+ .pipe(
4231
+ Schema.encodeKeys({
4232
+ id: "id",
4233
+ key: "key",
4234
+ status: "status",
4235
+ error: "error",
4236
+ lastSeenAt: "last_seen_at",
4237
+ nextAction: "next_action",
4238
+ }),
4239
+ )
4240
+ .pipe(
4241
+ T.ResponsePath("result"),
4242
+ ) as unknown as Schema.Schema<GetInstanceItemResponse>;
3986
4243
 
3987
4244
  export type GetInstanceItemError =
3988
4245
  | DefaultErrors
@@ -4022,57 +4279,116 @@ export const ListInstanceItemsRequest =
4022
4279
  }).pipe(
4023
4280
  T.Http({
4024
4281
  method: "GET",
4025
- path: "/accounts/{account_id}/ai-search/instances/{id}/items",
4026
- }),
4027
- ) as unknown as Schema.Schema<ListInstanceItemsRequest>;
4028
-
4029
- export type ListInstanceItemsResponse = {
4030
- id: string;
4031
- key: string;
4032
- status: "queued" | "running" | "completed" | "error" | "skipped";
4033
- error?: string | null;
4034
- lastSeenAt?: string | null;
4035
- nextAction?: string | null;
4036
- }[];
4282
+ path: "/accounts/{account_id}/ai-search/instances/{id}/items",
4283
+ }),
4284
+ ) as unknown as Schema.Schema<ListInstanceItemsRequest>;
4285
+
4286
+ export interface ListInstanceItemsResponse {
4287
+ result: {
4288
+ id: string;
4289
+ key: string;
4290
+ status: "queued" | "running" | "completed" | "error" | "skipped";
4291
+ error?: string | null;
4292
+ lastSeenAt?: string | null;
4293
+ nextAction?: string | null;
4294
+ }[];
4295
+ resultInfo?: {
4296
+ count?: number | null;
4297
+ page?: number | null;
4298
+ perPage?: number | null;
4299
+ totalCount?: number | null;
4300
+ } | null;
4301
+ }
4037
4302
 
4038
4303
  export const ListInstanceItemsResponse =
4039
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4040
- Schema.Struct({
4041
- id: Schema.String,
4042
- key: Schema.String,
4043
- status: Schema.Literals([
4044
- "queued",
4045
- "running",
4046
- "completed",
4047
- "error",
4048
- "skipped",
4304
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4305
+ result: Schema.Array(
4306
+ Schema.Struct({
4307
+ id: Schema.String,
4308
+ key: Schema.String,
4309
+ status: Schema.Literals([
4310
+ "queued",
4311
+ "running",
4312
+ "completed",
4313
+ "error",
4314
+ "skipped",
4315
+ ]),
4316
+ error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4317
+ lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4318
+ nextAction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4319
+ }).pipe(
4320
+ Schema.encodeKeys({
4321
+ id: "id",
4322
+ key: "key",
4323
+ status: "status",
4324
+ error: "error",
4325
+ lastSeenAt: "last_seen_at",
4326
+ nextAction: "next_action",
4327
+ }),
4328
+ ),
4329
+ ),
4330
+ resultInfo: Schema.optional(
4331
+ Schema.Union([
4332
+ Schema.Struct({
4333
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4334
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4335
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4336
+ totalCount: Schema.optional(
4337
+ Schema.Union([Schema.Number, Schema.Null]),
4338
+ ),
4339
+ }).pipe(
4340
+ Schema.encodeKeys({
4341
+ count: "count",
4342
+ page: "page",
4343
+ perPage: "per_page",
4344
+ totalCount: "total_count",
4345
+ }),
4346
+ ),
4347
+ Schema.Null,
4049
4348
  ]),
4050
- error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4051
- lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4052
- nextAction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4053
- }).pipe(
4054
- Schema.encodeKeys({
4055
- id: "id",
4056
- key: "key",
4057
- status: "status",
4058
- error: "error",
4059
- lastSeenAt: "last_seen_at",
4060
- nextAction: "next_action",
4061
- }),
4062
4349
  ),
4350
+ }).pipe(
4351
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
4063
4352
  ) as unknown as Schema.Schema<ListInstanceItemsResponse>;
4064
4353
 
4065
4354
  export type ListInstanceItemsError = DefaultErrors;
4066
4355
 
4067
- export const listInstanceItems: API.OperationMethod<
4356
+ export const listInstanceItems: API.PaginatedOperationMethod<
4068
4357
  ListInstanceItemsRequest,
4069
4358
  ListInstanceItemsResponse,
4070
4359
  ListInstanceItemsError,
4071
4360
  Credentials | HttpClient.HttpClient
4072
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4361
+ > & {
4362
+ pages: (
4363
+ input: ListInstanceItemsRequest,
4364
+ ) => stream.Stream<
4365
+ ListInstanceItemsResponse,
4366
+ ListInstanceItemsError,
4367
+ Credentials | HttpClient.HttpClient
4368
+ >;
4369
+ items: (input: ListInstanceItemsRequest) => stream.Stream<
4370
+ {
4371
+ id: string;
4372
+ key: string;
4373
+ status: "queued" | "running" | "completed" | "error" | "skipped";
4374
+ error?: string | null;
4375
+ lastSeenAt?: string | null;
4376
+ nextAction?: string | null;
4377
+ },
4378
+ ListInstanceItemsError,
4379
+ Credentials | HttpClient.HttpClient
4380
+ >;
4381
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4073
4382
  input: ListInstanceItemsRequest,
4074
4383
  output: ListInstanceItemsResponse,
4075
4384
  errors: [],
4385
+ pagination: {
4386
+ mode: "page",
4387
+ inputToken: "page",
4388
+ outputToken: "resultInfo.page",
4389
+ items: "result",
4390
+ pageSize: "perPage",
4391
+ } as const,
4076
4392
  }));
4077
4393
 
4078
4394
  // =============================================================================
@@ -4114,16 +4430,20 @@ export const GetInstanceJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
4114
4430
  lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4115
4431
  startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4116
4432
  },
4117
- ).pipe(
4118
- Schema.encodeKeys({
4119
- id: "id",
4120
- source: "source",
4121
- endReason: "end_reason",
4122
- endedAt: "ended_at",
4123
- lastSeenAt: "last_seen_at",
4124
- startedAt: "started_at",
4125
- }),
4126
- ) as unknown as Schema.Schema<GetInstanceJobResponse>;
4433
+ )
4434
+ .pipe(
4435
+ Schema.encodeKeys({
4436
+ id: "id",
4437
+ source: "source",
4438
+ endReason: "end_reason",
4439
+ endedAt: "ended_at",
4440
+ lastSeenAt: "last_seen_at",
4441
+ startedAt: "started_at",
4442
+ }),
4443
+ )
4444
+ .pipe(
4445
+ T.ResponsePath("result"),
4446
+ ) as unknown as Schema.Schema<GetInstanceJobResponse>;
4127
4447
 
4128
4448
  export type GetInstanceJobError =
4129
4449
  | DefaultErrors
@@ -4159,47 +4479,106 @@ export const ListInstanceJobsRequest =
4159
4479
  }),
4160
4480
  ) as unknown as Schema.Schema<ListInstanceJobsRequest>;
4161
4481
 
4162
- export type ListInstanceJobsResponse = {
4163
- id: string;
4164
- source: "user" | "schedule";
4165
- endReason?: string | null;
4166
- endedAt?: string | null;
4167
- lastSeenAt?: string | null;
4168
- startedAt?: string | null;
4169
- }[];
4482
+ export interface ListInstanceJobsResponse {
4483
+ result: {
4484
+ id: string;
4485
+ source: "user" | "schedule";
4486
+ endReason?: string | null;
4487
+ endedAt?: string | null;
4488
+ lastSeenAt?: string | null;
4489
+ startedAt?: string | null;
4490
+ }[];
4491
+ resultInfo?: {
4492
+ count?: number | null;
4493
+ page?: number | null;
4494
+ perPage?: number | null;
4495
+ totalCount?: number | null;
4496
+ } | null;
4497
+ }
4170
4498
 
4171
4499
  export const ListInstanceJobsResponse =
4172
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4173
- Schema.Struct({
4174
- id: Schema.String,
4175
- source: Schema.Literals(["user", "schedule"]),
4176
- endReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4177
- endedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4178
- lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4179
- startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4180
- }).pipe(
4181
- Schema.encodeKeys({
4182
- id: "id",
4183
- source: "source",
4184
- endReason: "end_reason",
4185
- endedAt: "ended_at",
4186
- lastSeenAt: "last_seen_at",
4187
- startedAt: "started_at",
4188
- }),
4500
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4501
+ result: Schema.Array(
4502
+ Schema.Struct({
4503
+ id: Schema.String,
4504
+ source: Schema.Literals(["user", "schedule"]),
4505
+ endReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4506
+ endedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4507
+ lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4508
+ startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4509
+ }).pipe(
4510
+ Schema.encodeKeys({
4511
+ id: "id",
4512
+ source: "source",
4513
+ endReason: "end_reason",
4514
+ endedAt: "ended_at",
4515
+ lastSeenAt: "last_seen_at",
4516
+ startedAt: "started_at",
4517
+ }),
4518
+ ),
4519
+ ),
4520
+ resultInfo: Schema.optional(
4521
+ Schema.Union([
4522
+ Schema.Struct({
4523
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4524
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4525
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4526
+ totalCount: Schema.optional(
4527
+ Schema.Union([Schema.Number, Schema.Null]),
4528
+ ),
4529
+ }).pipe(
4530
+ Schema.encodeKeys({
4531
+ count: "count",
4532
+ page: "page",
4533
+ perPage: "per_page",
4534
+ totalCount: "total_count",
4535
+ }),
4536
+ ),
4537
+ Schema.Null,
4538
+ ]),
4189
4539
  ),
4540
+ }).pipe(
4541
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
4190
4542
  ) as unknown as Schema.Schema<ListInstanceJobsResponse>;
4191
4543
 
4192
4544
  export type ListInstanceJobsError = DefaultErrors;
4193
4545
 
4194
- export const listInstanceJobs: API.OperationMethod<
4546
+ export const listInstanceJobs: API.PaginatedOperationMethod<
4195
4547
  ListInstanceJobsRequest,
4196
4548
  ListInstanceJobsResponse,
4197
4549
  ListInstanceJobsError,
4198
4550
  Credentials | HttpClient.HttpClient
4199
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4551
+ > & {
4552
+ pages: (
4553
+ input: ListInstanceJobsRequest,
4554
+ ) => stream.Stream<
4555
+ ListInstanceJobsResponse,
4556
+ ListInstanceJobsError,
4557
+ Credentials | HttpClient.HttpClient
4558
+ >;
4559
+ items: (input: ListInstanceJobsRequest) => stream.Stream<
4560
+ {
4561
+ id: string;
4562
+ source: "user" | "schedule";
4563
+ endReason?: string | null;
4564
+ endedAt?: string | null;
4565
+ lastSeenAt?: string | null;
4566
+ startedAt?: string | null;
4567
+ },
4568
+ ListInstanceJobsError,
4569
+ Credentials | HttpClient.HttpClient
4570
+ >;
4571
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4200
4572
  input: ListInstanceJobsRequest,
4201
4573
  output: ListInstanceJobsResponse,
4202
4574
  errors: [],
4575
+ pagination: {
4576
+ mode: "page",
4577
+ inputToken: "page",
4578
+ outputToken: "resultInfo.page",
4579
+ items: "result",
4580
+ pageSize: "perPage",
4581
+ } as const,
4203
4582
  }));
4204
4583
 
4205
4584
  export interface CreateInstanceJobRequest {
@@ -4235,16 +4614,20 @@ export const CreateInstanceJobResponse =
4235
4614
  endedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4236
4615
  lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4237
4616
  startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4238
- }).pipe(
4239
- Schema.encodeKeys({
4240
- id: "id",
4241
- source: "source",
4242
- endReason: "end_reason",
4243
- endedAt: "ended_at",
4244
- lastSeenAt: "last_seen_at",
4245
- startedAt: "started_at",
4246
- }),
4247
- ) as unknown as Schema.Schema<CreateInstanceJobResponse>;
4617
+ })
4618
+ .pipe(
4619
+ Schema.encodeKeys({
4620
+ id: "id",
4621
+ source: "source",
4622
+ endReason: "end_reason",
4623
+ endedAt: "ended_at",
4624
+ lastSeenAt: "last_seen_at",
4625
+ startedAt: "started_at",
4626
+ }),
4627
+ )
4628
+ .pipe(
4629
+ T.ResponsePath("result"),
4630
+ ) as unknown as Schema.Schema<CreateInstanceJobResponse>;
4248
4631
 
4249
4632
  export type CreateInstanceJobError =
4250
4633
  | DefaultErrors
@@ -4318,6 +4701,8 @@ export const LogsInstanceJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4318
4701
  messageType: "message_type",
4319
4702
  }),
4320
4703
  ),
4704
+ ).pipe(
4705
+ T.ResponsePath("result"),
4321
4706
  ) as unknown as Schema.Schema<LogsInstanceJobResponse>;
4322
4707
 
4323
4708
  export type LogsInstanceJobError =
@@ -4352,67 +4737,131 @@ export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4352
4737
  T.Http({ method: "GET", path: "/accounts/{account_id}/ai-search/tokens" }),
4353
4738
  ) as unknown as Schema.Schema<ListTokensRequest>;
4354
4739
 
4355
- export type ListTokensResponse = {
4356
- id: string;
4357
- accountId?: string | null;
4358
- accountTag?: string | null;
4359
- cfApiId: string;
4360
- cfApiKey?: string | null;
4361
- createdAt: string;
4362
- modifiedAt: string;
4363
- name: string;
4364
- createdBy?: string | null;
4365
- enabled?: boolean | null;
4366
- legacy?: boolean | null;
4367
- modifiedBy?: string | null;
4368
- syncedAt?: string | null;
4369
- }[];
4740
+ export interface ListTokensResponse {
4741
+ result: {
4742
+ id: string;
4743
+ accountId?: string | null;
4744
+ accountTag?: string | null;
4745
+ cfApiId: string;
4746
+ cfApiKey?: string | null;
4747
+ createdAt: string;
4748
+ modifiedAt: string;
4749
+ name: string;
4750
+ createdBy?: string | null;
4751
+ enabled?: boolean | null;
4752
+ legacy?: boolean | null;
4753
+ modifiedBy?: string | null;
4754
+ syncedAt?: string | null;
4755
+ }[];
4756
+ resultInfo?: {
4757
+ count?: number | null;
4758
+ page?: number | null;
4759
+ perPage?: number | null;
4760
+ totalCount?: number | null;
4761
+ } | null;
4762
+ }
4370
4763
 
4371
- export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4372
- Schema.Struct({
4373
- id: Schema.String,
4374
- accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4375
- accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4376
- cfApiId: Schema.String,
4377
- cfApiKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4378
- createdAt: Schema.String,
4379
- modifiedAt: Schema.String,
4380
- name: Schema.String,
4381
- createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4382
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4383
- legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4384
- modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4385
- syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4386
- }).pipe(
4387
- Schema.encodeKeys({
4388
- id: "id",
4389
- accountId: "account_id",
4390
- accountTag: "account_tag",
4391
- cfApiId: "cf_api_id",
4392
- cfApiKey: "cf_api_key",
4393
- createdAt: "created_at",
4394
- modifiedAt: "modified_at",
4395
- name: "name",
4396
- createdBy: "created_by",
4397
- enabled: "enabled",
4398
- legacy: "legacy",
4399
- modifiedBy: "modified_by",
4400
- syncedAt: "synced_at",
4401
- }),
4764
+ export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4765
+ result: Schema.Array(
4766
+ Schema.Struct({
4767
+ id: Schema.String,
4768
+ accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4769
+ accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4770
+ cfApiId: Schema.String,
4771
+ cfApiKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4772
+ createdAt: Schema.String,
4773
+ modifiedAt: Schema.String,
4774
+ name: Schema.String,
4775
+ createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4776
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4777
+ legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4778
+ modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4779
+ syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4780
+ }).pipe(
4781
+ Schema.encodeKeys({
4782
+ id: "id",
4783
+ accountId: "account_id",
4784
+ accountTag: "account_tag",
4785
+ cfApiId: "cf_api_id",
4786
+ cfApiKey: "cf_api_key",
4787
+ createdAt: "created_at",
4788
+ modifiedAt: "modified_at",
4789
+ name: "name",
4790
+ createdBy: "created_by",
4791
+ enabled: "enabled",
4792
+ legacy: "legacy",
4793
+ modifiedBy: "modified_by",
4794
+ syncedAt: "synced_at",
4795
+ }),
4796
+ ),
4797
+ ),
4798
+ resultInfo: Schema.optional(
4799
+ Schema.Union([
4800
+ Schema.Struct({
4801
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4802
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4803
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4804
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4805
+ }).pipe(
4806
+ Schema.encodeKeys({
4807
+ count: "count",
4808
+ page: "page",
4809
+ perPage: "per_page",
4810
+ totalCount: "total_count",
4811
+ }),
4812
+ ),
4813
+ Schema.Null,
4814
+ ]),
4402
4815
  ),
4816
+ }).pipe(
4817
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
4403
4818
  ) as unknown as Schema.Schema<ListTokensResponse>;
4404
4819
 
4405
4820
  export type ListTokensError = DefaultErrors | InvalidRoute;
4406
4821
 
4407
- export const listTokens: API.OperationMethod<
4822
+ export const listTokens: API.PaginatedOperationMethod<
4408
4823
  ListTokensRequest,
4409
4824
  ListTokensResponse,
4410
4825
  ListTokensError,
4411
4826
  Credentials | HttpClient.HttpClient
4412
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4827
+ > & {
4828
+ pages: (
4829
+ input: ListTokensRequest,
4830
+ ) => stream.Stream<
4831
+ ListTokensResponse,
4832
+ ListTokensError,
4833
+ Credentials | HttpClient.HttpClient
4834
+ >;
4835
+ items: (input: ListTokensRequest) => stream.Stream<
4836
+ {
4837
+ id: string;
4838
+ accountId: string;
4839
+ accountTag: string;
4840
+ cfApiId: string;
4841
+ cfApiKey: string;
4842
+ createdAt: string;
4843
+ modifiedAt: string;
4844
+ name: string;
4845
+ createdBy?: string | null;
4846
+ enabled?: boolean | null;
4847
+ legacy?: boolean | null;
4848
+ modifiedBy?: string | null;
4849
+ syncedAt?: string | null;
4850
+ },
4851
+ ListTokensError,
4852
+ Credentials | HttpClient.HttpClient
4853
+ >;
4854
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4413
4855
  input: ListTokensRequest,
4414
4856
  output: ListTokensResponse,
4415
4857
  errors: [InvalidRoute],
4858
+ pagination: {
4859
+ mode: "page",
4860
+ inputToken: "page",
4861
+ outputToken: "resultInfo.page",
4862
+ items: "result",
4863
+ pageSize: "perPage",
4864
+ } as const,
4416
4865
  }));
4417
4866
 
4418
4867
  export interface CreateTokenRequest {
@@ -4474,23 +4923,27 @@ export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4474
4923
  legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4475
4924
  modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4476
4925
  syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4477
- }).pipe(
4478
- Schema.encodeKeys({
4479
- id: "id",
4480
- accountId: "account_id",
4481
- accountTag: "account_tag",
4482
- cfApiId: "cf_api_id",
4483
- cfApiKey: "cf_api_key",
4484
- createdAt: "created_at",
4485
- modifiedAt: "modified_at",
4486
- name: "name",
4487
- createdBy: "created_by",
4488
- enabled: "enabled",
4489
- legacy: "legacy",
4490
- modifiedBy: "modified_by",
4491
- syncedAt: "synced_at",
4492
- }),
4493
- ) as unknown as Schema.Schema<CreateTokenResponse>;
4926
+ })
4927
+ .pipe(
4928
+ Schema.encodeKeys({
4929
+ id: "id",
4930
+ accountId: "account_id",
4931
+ accountTag: "account_tag",
4932
+ cfApiId: "cf_api_id",
4933
+ cfApiKey: "cf_api_key",
4934
+ createdAt: "created_at",
4935
+ modifiedAt: "modified_at",
4936
+ name: "name",
4937
+ createdBy: "created_by",
4938
+ enabled: "enabled",
4939
+ legacy: "legacy",
4940
+ modifiedBy: "modified_by",
4941
+ syncedAt: "synced_at",
4942
+ }),
4943
+ )
4944
+ .pipe(
4945
+ T.ResponsePath("result"),
4946
+ ) as unknown as Schema.Schema<CreateTokenResponse>;
4494
4947
 
4495
4948
  export type CreateTokenError =
4496
4949
  | DefaultErrors
@@ -4554,23 +5007,27 @@ export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4554
5007
  legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4555
5008
  modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4556
5009
  syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4557
- }).pipe(
4558
- Schema.encodeKeys({
4559
- id: "id",
4560
- accountId: "account_id",
4561
- accountTag: "account_tag",
4562
- cfApiId: "cf_api_id",
4563
- cfApiKey: "cf_api_key",
4564
- createdAt: "created_at",
4565
- modifiedAt: "modified_at",
4566
- name: "name",
4567
- createdBy: "created_by",
4568
- enabled: "enabled",
4569
- legacy: "legacy",
4570
- modifiedBy: "modified_by",
4571
- syncedAt: "synced_at",
4572
- }),
4573
- ) as unknown as Schema.Schema<UpdateTokenResponse>;
5010
+ })
5011
+ .pipe(
5012
+ Schema.encodeKeys({
5013
+ id: "id",
5014
+ accountId: "account_id",
5015
+ accountTag: "account_tag",
5016
+ cfApiId: "cf_api_id",
5017
+ cfApiKey: "cf_api_key",
5018
+ createdAt: "created_at",
5019
+ modifiedAt: "modified_at",
5020
+ name: "name",
5021
+ createdBy: "created_by",
5022
+ enabled: "enabled",
5023
+ legacy: "legacy",
5024
+ modifiedBy: "modified_by",
5025
+ syncedAt: "synced_at",
5026
+ }),
5027
+ )
5028
+ .pipe(
5029
+ T.ResponsePath("result"),
5030
+ ) as unknown as Schema.Schema<UpdateTokenResponse>;
4574
5031
 
4575
5032
  export type UpdateTokenError =
4576
5033
  | DefaultErrors
@@ -4634,23 +5091,27 @@ export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4634
5091
  legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4635
5092
  modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4636
5093
  syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4637
- }).pipe(
4638
- Schema.encodeKeys({
4639
- id: "id",
4640
- accountId: "account_id",
4641
- accountTag: "account_tag",
4642
- cfApiId: "cf_api_id",
4643
- cfApiKey: "cf_api_key",
4644
- createdAt: "created_at",
4645
- modifiedAt: "modified_at",
4646
- name: "name",
4647
- createdBy: "created_by",
4648
- enabled: "enabled",
4649
- legacy: "legacy",
4650
- modifiedBy: "modified_by",
4651
- syncedAt: "synced_at",
4652
- }),
4653
- ) as unknown as Schema.Schema<DeleteTokenResponse>;
5094
+ })
5095
+ .pipe(
5096
+ Schema.encodeKeys({
5097
+ id: "id",
5098
+ accountId: "account_id",
5099
+ accountTag: "account_tag",
5100
+ cfApiId: "cf_api_id",
5101
+ cfApiKey: "cf_api_key",
5102
+ createdAt: "created_at",
5103
+ modifiedAt: "modified_at",
5104
+ name: "name",
5105
+ createdBy: "created_by",
5106
+ enabled: "enabled",
5107
+ legacy: "legacy",
5108
+ modifiedBy: "modified_by",
5109
+ syncedAt: "synced_at",
5110
+ }),
5111
+ )
5112
+ .pipe(
5113
+ T.ResponsePath("result"),
5114
+ ) as unknown as Schema.Schema<DeleteTokenResponse>;
4654
5115
 
4655
5116
  export type DeleteTokenError =
4656
5117
  | DefaultErrors
@@ -4714,23 +5175,27 @@ export const ReadTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4714
5175
  legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4715
5176
  modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4716
5177
  syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4717
- }).pipe(
4718
- Schema.encodeKeys({
4719
- id: "id",
4720
- accountId: "account_id",
4721
- accountTag: "account_tag",
4722
- cfApiId: "cf_api_id",
4723
- cfApiKey: "cf_api_key",
4724
- createdAt: "created_at",
4725
- modifiedAt: "modified_at",
4726
- name: "name",
4727
- createdBy: "created_by",
4728
- enabled: "enabled",
4729
- legacy: "legacy",
4730
- modifiedBy: "modified_by",
4731
- syncedAt: "synced_at",
4732
- }),
4733
- ) as unknown as Schema.Schema<ReadTokenResponse>;
5178
+ })
5179
+ .pipe(
5180
+ Schema.encodeKeys({
5181
+ id: "id",
5182
+ accountId: "account_id",
5183
+ accountTag: "account_tag",
5184
+ cfApiId: "cf_api_id",
5185
+ cfApiKey: "cf_api_key",
5186
+ createdAt: "created_at",
5187
+ modifiedAt: "modified_at",
5188
+ name: "name",
5189
+ createdBy: "created_by",
5190
+ enabled: "enabled",
5191
+ legacy: "legacy",
5192
+ modifiedBy: "modified_by",
5193
+ syncedAt: "synced_at",
5194
+ }),
5195
+ )
5196
+ .pipe(
5197
+ T.ResponsePath("result"),
5198
+ ) as unknown as Schema.Schema<ReadTokenResponse>;
4734
5199
 
4735
5200
  export type ReadTokenError =
4736
5201
  | DefaultErrors