@distilled.cloud/cloudflare 0.28.2 → 0.29.1

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 (463) hide show
  1. package/lib/client/api.d.ts +1 -1
  2. package/lib/client/api.d.ts.map +1 -1
  3. package/lib/credentials.d.ts.map +1 -1
  4. package/lib/retry.d.ts.map +1 -1
  5. package/lib/services/abuse-reports.d.ts.map +1 -1
  6. package/lib/services/abuse-reports.js +26 -26
  7. package/lib/services/abuse-reports.js.map +1 -1
  8. package/lib/services/accounts.d.ts.map +1 -1
  9. package/lib/services/accounts.js +114 -123
  10. package/lib/services/accounts.js.map +1 -1
  11. package/lib/services/acm.d.ts.map +1 -1
  12. package/lib/services/acm.js +23 -23
  13. package/lib/services/acm.js.map +1 -1
  14. package/lib/services/addressing.d.ts.map +1 -1
  15. package/lib/services/addressing.js +132 -132
  16. package/lib/services/addressing.js.map +1 -1
  17. package/lib/services/ai-gateway.d.ts.map +1 -1
  18. package/lib/services/ai-gateway.js +213 -207
  19. package/lib/services/ai-gateway.js.map +1 -1
  20. package/lib/services/ai-security.d.ts.map +1 -1
  21. package/lib/services/ai-security.js +13 -13
  22. package/lib/services/ai-security.js.map +1 -1
  23. package/lib/services/ai.d.ts.map +1 -1
  24. package/lib/services/ai.js +62 -62
  25. package/lib/services/ai.js.map +1 -1
  26. package/lib/services/aisearch.d.ts.map +1 -1
  27. package/lib/services/aisearch.js +187 -193
  28. package/lib/services/aisearch.js.map +1 -1
  29. package/lib/services/alerting.d.ts.map +1 -1
  30. package/lib/services/alerting.js +78 -78
  31. package/lib/services/alerting.js.map +1 -1
  32. package/lib/services/api-gateway.d.ts.map +1 -1
  33. package/lib/services/api-gateway.js +168 -177
  34. package/lib/services/api-gateway.js.map +1 -1
  35. package/lib/services/argo.js +12 -12
  36. package/lib/services/argo.js.map +1 -1
  37. package/lib/services/audit-logs.d.ts.map +1 -1
  38. package/lib/services/audit-logs.js +9 -9
  39. package/lib/services/audit-logs.js.map +1 -1
  40. package/lib/services/billing.d.ts.map +1 -1
  41. package/lib/services/billing.js +11 -11
  42. package/lib/services/billing.js.map +1 -1
  43. package/lib/services/bot-management.d.ts.map +1 -1
  44. package/lib/services/bot-management.js +18 -30
  45. package/lib/services/bot-management.js.map +1 -1
  46. package/lib/services/botnet-feed.d.ts.map +1 -1
  47. package/lib/services/botnet-feed.js +12 -12
  48. package/lib/services/botnet-feed.js.map +1 -1
  49. package/lib/services/brand-protection.d.ts.map +1 -1
  50. package/lib/services/brand-protection.js +59 -59
  51. package/lib/services/brand-protection.js.map +1 -1
  52. package/lib/services/browser-rendering.d.ts.map +1 -1
  53. package/lib/services/browser-rendering.js +103 -103
  54. package/lib/services/browser-rendering.js.map +1 -1
  55. package/lib/services/cache.d.ts.map +1 -1
  56. package/lib/services/cache.js +72 -72
  57. package/lib/services/cache.js.map +1 -1
  58. package/lib/services/calls.d.ts.map +1 -1
  59. package/lib/services/calls.js +31 -31
  60. package/lib/services/calls.js.map +1 -1
  61. package/lib/services/certificate-authorities.js +6 -6
  62. package/lib/services/certificate-authorities.js.map +1 -1
  63. package/lib/services/client-certificates.js +18 -18
  64. package/lib/services/client-certificates.js.map +1 -1
  65. package/lib/services/cloud-connector.d.ts.map +1 -1
  66. package/lib/services/cloud-connector.js +8 -8
  67. package/lib/services/cloud-connector.js.map +1 -1
  68. package/lib/services/cloudforce-one.d.ts.map +1 -1
  69. package/lib/services/cloudforce-one.js +178 -178
  70. package/lib/services/cloudforce-one.js.map +1 -1
  71. package/lib/services/connectivity.js +25 -25
  72. package/lib/services/connectivity.js.map +1 -1
  73. package/lib/services/containers.js +49 -49
  74. package/lib/services/containers.js.map +1 -1
  75. package/lib/services/content-scanning.d.ts.map +1 -1
  76. package/lib/services/content-scanning.js +29 -29
  77. package/lib/services/content-scanning.js.map +1 -1
  78. package/lib/services/csam-scanner.d.ts.map +1 -1
  79. package/lib/services/csam-scanner.js +8 -8
  80. package/lib/services/csam-scanner.js.map +1 -1
  81. package/lib/services/custom-certificates.d.ts.map +1 -1
  82. package/lib/services/custom-certificates.js +24 -24
  83. package/lib/services/custom-certificates.js.map +1 -1
  84. package/lib/services/custom-csrs.d.ts.map +1 -1
  85. package/lib/services/custom-csrs.js +22 -22
  86. package/lib/services/custom-csrs.js.map +1 -1
  87. package/lib/services/custom-hostnames.d.ts.map +1 -1
  88. package/lib/services/custom-hostnames.js +40 -40
  89. package/lib/services/custom-hostnames.js.map +1 -1
  90. package/lib/services/custom-nameservers.js +11 -11
  91. package/lib/services/custom-nameservers.js.map +1 -1
  92. package/lib/services/custom-pages.d.ts.map +1 -1
  93. package/lib/services/custom-pages.js +43 -43
  94. package/lib/services/custom-pages.js.map +1 -1
  95. package/lib/services/d1.d.ts +4 -4
  96. package/lib/services/d1.d.ts.map +1 -1
  97. package/lib/services/d1.js +69 -51
  98. package/lib/services/d1.js.map +1 -1
  99. package/lib/services/dcv-delegation.js +3 -3
  100. package/lib/services/dcv-delegation.js.map +1 -1
  101. package/lib/services/ddos-protection.js +126 -126
  102. package/lib/services/ddos-protection.js.map +1 -1
  103. package/lib/services/diagnostics.js +27 -27
  104. package/lib/services/diagnostics.js.map +1 -1
  105. package/lib/services/dls.d.ts.map +1 -1
  106. package/lib/services/dls.js +26 -26
  107. package/lib/services/dls.js.map +1 -1
  108. package/lib/services/dns-firewall.d.ts.map +1 -1
  109. package/lib/services/dns-firewall.js +34 -34
  110. package/lib/services/dns-firewall.js.map +1 -1
  111. package/lib/services/dns.d.ts.map +1 -1
  112. package/lib/services/dns.js +268 -268
  113. package/lib/services/dns.js.map +1 -1
  114. package/lib/services/durable-objects.d.ts.map +1 -1
  115. package/lib/services/durable-objects.js +11 -11
  116. package/lib/services/durable-objects.js.map +1 -1
  117. package/lib/services/email-auth.d.ts.map +1 -1
  118. package/lib/services/email-auth.js +13 -13
  119. package/lib/services/email-auth.js.map +1 -1
  120. package/lib/services/email-routing.d.ts.map +1 -1
  121. package/lib/services/email-routing.js +70 -70
  122. package/lib/services/email-routing.js.map +1 -1
  123. package/lib/services/email-security.d.ts.map +1 -1
  124. package/lib/services/email-security.js +195 -195
  125. package/lib/services/email-security.js.map +1 -1
  126. package/lib/services/email-sending.d.ts.map +1 -1
  127. package/lib/services/email-sending.js +28 -28
  128. package/lib/services/email-sending.js.map +1 -1
  129. package/lib/services/filters.d.ts.map +1 -1
  130. package/lib/services/filters.js +25 -25
  131. package/lib/services/filters.js.map +1 -1
  132. package/lib/services/firewall.d.ts.map +1 -1
  133. package/lib/services/firewall.js +149 -149
  134. package/lib/services/firewall.js.map +1 -1
  135. package/lib/services/flagship.d.ts.map +1 -1
  136. package/lib/services/flagship.js +52 -52
  137. package/lib/services/flagship.js.map +1 -1
  138. package/lib/services/fraud.js +8 -8
  139. package/lib/services/fraud.js.map +1 -1
  140. package/lib/services/google-tag-gateway.d.ts.map +1 -1
  141. package/lib/services/google-tag-gateway.js +7 -7
  142. package/lib/services/google-tag-gateway.js.map +1 -1
  143. package/lib/services/healthchecks.d.ts.map +1 -1
  144. package/lib/services/healthchecks.js +31 -31
  145. package/lib/services/healthchecks.js.map +1 -1
  146. package/lib/services/hostnames.d.ts.map +1 -1
  147. package/lib/services/hostnames.js +10 -10
  148. package/lib/services/hostnames.js.map +1 -1
  149. package/lib/services/hyperdrive.d.ts.map +1 -1
  150. package/lib/services/hyperdrive.js +32 -32
  151. package/lib/services/hyperdrive.js.map +1 -1
  152. package/lib/services/iam.d.ts.map +1 -1
  153. package/lib/services/iam.js +113 -113
  154. package/lib/services/iam.js.map +1 -1
  155. package/lib/services/images.d.ts.map +1 -1
  156. package/lib/services/images.js +59 -59
  157. package/lib/services/images.js.map +1 -1
  158. package/lib/services/intel.d.ts.map +1 -1
  159. package/lib/services/intel.js +102 -102
  160. package/lib/services/intel.js.map +1 -1
  161. package/lib/services/ips.js +5 -5
  162. package/lib/services/ips.js.map +1 -1
  163. package/lib/services/keyless-certificates.js +17 -17
  164. package/lib/services/keyless-certificates.js.map +1 -1
  165. package/lib/services/kv.d.ts.map +1 -1
  166. package/lib/services/kv.js +54 -54
  167. package/lib/services/kv.js.map +1 -1
  168. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  169. package/lib/services/leaked-credential-checks.js +22 -22
  170. package/lib/services/leaked-credential-checks.js.map +1 -1
  171. package/lib/services/load-balancers.d.ts.map +1 -1
  172. package/lib/services/load-balancers.js +139 -157
  173. package/lib/services/load-balancers.js.map +1 -1
  174. package/lib/services/logpush.d.ts.map +1 -1
  175. package/lib/services/logpush.js +69 -69
  176. package/lib/services/logpush.js.map +1 -1
  177. package/lib/services/logs.d.ts.map +1 -1
  178. package/lib/services/logs.js +58 -58
  179. package/lib/services/logs.js.map +1 -1
  180. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  181. package/lib/services/magic-cloud-networking.js +138 -168
  182. package/lib/services/magic-cloud-networking.js.map +1 -1
  183. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  184. package/lib/services/magic-network-monitoring.js +47 -65
  185. package/lib/services/magic-network-monitoring.js.map +1 -1
  186. package/lib/services/magic-transit.d.ts.map +1 -1
  187. package/lib/services/magic-transit.js +340 -364
  188. package/lib/services/magic-transit.js.map +1 -1
  189. package/lib/services/managed-transforms.js +11 -11
  190. package/lib/services/managed-transforms.js.map +1 -1
  191. package/lib/services/memberships.d.ts.map +1 -1
  192. package/lib/services/memberships.js +25 -25
  193. package/lib/services/memberships.js.map +1 -1
  194. package/lib/services/moq.d.ts.map +1 -1
  195. package/lib/services/moq.js +23 -23
  196. package/lib/services/moq.js.map +1 -1
  197. package/lib/services/mtls-certificates.d.ts.map +1 -1
  198. package/lib/services/mtls-certificates.js +17 -17
  199. package/lib/services/mtls-certificates.js.map +1 -1
  200. package/lib/services/network-interconnects.d.ts.map +1 -1
  201. package/lib/services/network-interconnects.js +56 -56
  202. package/lib/services/network-interconnects.js.map +1 -1
  203. package/lib/services/organizations.d.ts.map +1 -1
  204. package/lib/services/organizations.js +42 -42
  205. package/lib/services/organizations.js.map +1 -1
  206. package/lib/services/origin-ca-certificates.js +14 -14
  207. package/lib/services/origin-ca-certificates.js.map +1 -1
  208. package/lib/services/origin-post-quantum-encryption.js +6 -6
  209. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  210. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  211. package/lib/services/origin-tls-client-auth.js +52 -52
  212. package/lib/services/origin-tls-client-auth.js.map +1 -1
  213. package/lib/services/origin-tls-compliance-modes.js +12 -12
  214. package/lib/services/origin-tls-compliance-modes.js.map +1 -1
  215. package/lib/services/page-rules.d.ts.map +1 -1
  216. package/lib/services/page-rules.js +62 -62
  217. package/lib/services/page-rules.js.map +1 -1
  218. package/lib/services/page-shield.d.ts.map +1 -1
  219. package/lib/services/page-shield.js +45 -48
  220. package/lib/services/page-shield.js.map +1 -1
  221. package/lib/services/pages.d.ts.map +1 -1
  222. package/lib/services/pages.js +78 -78
  223. package/lib/services/pages.js.map +1 -1
  224. package/lib/services/pipelines.d.ts.map +1 -1
  225. package/lib/services/pipelines.js +102 -102
  226. package/lib/services/pipelines.js.map +1 -1
  227. package/lib/services/queues.d.ts.map +1 -1
  228. package/lib/services/queues.js +100 -103
  229. package/lib/services/queues.js.map +1 -1
  230. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  231. package/lib/services/r2-data-catalog.js +42 -42
  232. package/lib/services/r2-data-catalog.js.map +1 -1
  233. package/lib/services/r2.d.ts.map +1 -1
  234. package/lib/services/r2.js +190 -190
  235. package/lib/services/r2.js.map +1 -1
  236. package/lib/services/radar.d.ts.map +1 -1
  237. package/lib/services/radar.js +991 -1009
  238. package/lib/services/radar.js.map +1 -1
  239. package/lib/services/rate-limits.d.ts.map +1 -1
  240. package/lib/services/rate-limits.js +24 -24
  241. package/lib/services/rate-limits.js.map +1 -1
  242. package/lib/services/realtime-kit.d.ts.map +1 -1
  243. package/lib/services/realtime-kit.js +276 -276
  244. package/lib/services/realtime-kit.js.map +1 -1
  245. package/lib/services/registrar.d.ts.map +1 -1
  246. package/lib/services/registrar.js +28 -28
  247. package/lib/services/registrar.js.map +1 -1
  248. package/lib/services/request-tracers.d.ts.map +1 -1
  249. package/lib/services/request-tracers.js +7 -7
  250. package/lib/services/request-tracers.js.map +1 -1
  251. package/lib/services/resource-sharing.d.ts.map +1 -1
  252. package/lib/services/resource-sharing.js +49 -49
  253. package/lib/services/resource-sharing.js.map +1 -1
  254. package/lib/services/resource-tagging.d.ts.map +1 -1
  255. package/lib/services/resource-tagging.js +56 -56
  256. package/lib/services/resource-tagging.js.map +1 -1
  257. package/lib/services/rules.d.ts.map +1 -1
  258. package/lib/services/rules.js +50 -50
  259. package/lib/services/rules.js.map +1 -1
  260. package/lib/services/rulesets.d.ts +2 -2
  261. package/lib/services/rulesets.d.ts.map +1 -1
  262. package/lib/services/rulesets.js +226 -190
  263. package/lib/services/rulesets.js.map +1 -1
  264. package/lib/services/rum.d.ts.map +1 -1
  265. package/lib/services/rum.js +35 -35
  266. package/lib/services/rum.js.map +1 -1
  267. package/lib/services/schema-validation.d.ts.map +1 -1
  268. package/lib/services/schema-validation.js +43 -46
  269. package/lib/services/schema-validation.js.map +1 -1
  270. package/lib/services/secrets-store.d.ts.map +1 -1
  271. package/lib/services/secrets-store.js +41 -41
  272. package/lib/services/secrets-store.js.map +1 -1
  273. package/lib/services/security-center.d.ts.map +1 -1
  274. package/lib/services/security-center.js +54 -57
  275. package/lib/services/security-center.js.map +1 -1
  276. package/lib/services/security-txt.d.ts.map +1 -1
  277. package/lib/services/security-txt.js +12 -12
  278. package/lib/services/security-txt.js.map +1 -1
  279. package/lib/services/snippets.d.ts.map +1 -1
  280. package/lib/services/snippets.js +31 -31
  281. package/lib/services/snippets.js.map +1 -1
  282. package/lib/services/spectrum.d.ts.map +1 -1
  283. package/lib/services/spectrum.js +35 -35
  284. package/lib/services/spectrum.js.map +1 -1
  285. package/lib/services/speed.d.ts.map +1 -1
  286. package/lib/services/speed.js +41 -41
  287. package/lib/services/speed.js.map +1 -1
  288. package/lib/services/ssl.d.ts.map +1 -1
  289. package/lib/services/ssl.js +48 -48
  290. package/lib/services/ssl.js.map +1 -1
  291. package/lib/services/stream.d.ts.map +1 -1
  292. package/lib/services/stream.js +147 -147
  293. package/lib/services/stream.js.map +1 -1
  294. package/lib/services/tenant-custom-nameservers.js +11 -11
  295. package/lib/services/tenant-custom-nameservers.js.map +1 -1
  296. package/lib/services/tenants.d.ts.map +1 -1
  297. package/lib/services/tenants.js +28 -28
  298. package/lib/services/tenants.js.map +1 -1
  299. package/lib/services/token-validation.d.ts.map +1 -1
  300. package/lib/services/token-validation.js +56 -56
  301. package/lib/services/token-validation.js.map +1 -1
  302. package/lib/services/turnstile.d.ts.map +1 -1
  303. package/lib/services/turnstile.js +27 -54
  304. package/lib/services/turnstile.js.map +1 -1
  305. package/lib/services/url-normalization.js +9 -9
  306. package/lib/services/url-normalization.js.map +1 -1
  307. package/lib/services/url-scanner.d.ts.map +1 -1
  308. package/lib/services/url-scanner.js +120 -120
  309. package/lib/services/url-scanner.js.map +1 -1
  310. package/lib/services/user.d.ts.map +1 -1
  311. package/lib/services/user.js +95 -95
  312. package/lib/services/user.js.map +1 -1
  313. package/lib/services/vectorize.d.ts +10 -10
  314. package/lib/services/vectorize.d.ts.map +1 -1
  315. package/lib/services/vectorize.js +59 -57
  316. package/lib/services/vectorize.js.map +1 -1
  317. package/lib/services/vulnerability-scanner.d.ts.map +1 -1
  318. package/lib/services/vulnerability-scanner.js +95 -95
  319. package/lib/services/vulnerability-scanner.js.map +1 -1
  320. package/lib/services/waiting-rooms.d.ts.map +1 -1
  321. package/lib/services/waiting-rooms.js +81 -81
  322. package/lib/services/waiting-rooms.js.map +1 -1
  323. package/lib/services/web3.d.ts.map +1 -1
  324. package/lib/services/web3.js +39 -39
  325. package/lib/services/web3.js.map +1 -1
  326. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  327. package/lib/services/workers-for-platforms.js +139 -139
  328. package/lib/services/workers-for-platforms.js.map +1 -1
  329. package/lib/services/workers.d.ts.map +1 -1
  330. package/lib/services/workers.js +420 -420
  331. package/lib/services/workers.js.map +1 -1
  332. package/lib/services/workflows.d.ts.map +1 -1
  333. package/lib/services/workflows.js +88 -88
  334. package/lib/services/workflows.js.map +1 -1
  335. package/lib/services/zaraz.d.ts.map +1 -1
  336. package/lib/services/zaraz.js +36 -39
  337. package/lib/services/zaraz.js.map +1 -1
  338. package/lib/services/zero-trust.d.ts.map +1 -1
  339. package/lib/services/zero-trust.js +1765 -1771
  340. package/lib/services/zero-trust.js.map +1 -1
  341. package/lib/services/zones.d.ts.map +1 -1
  342. package/lib/services/zones.js +168 -168
  343. package/lib/services/zones.js.map +1 -1
  344. package/lib/traits.d.ts.map +1 -1
  345. package/package.json +10 -9
  346. package/src/services/abuse-reports.ts +35 -36
  347. package/src/services/accounts.ts +714 -760
  348. package/src/services/acm.ts +115 -125
  349. package/src/services/addressing.ts +484 -512
  350. package/src/services/ai-gateway.ts +653 -672
  351. package/src/services/ai-security.ts +47 -53
  352. package/src/services/ai.ts +172 -185
  353. package/src/services/aisearch.ts +1814 -1861
  354. package/src/services/alerting.ts +710 -742
  355. package/src/services/api-gateway.ts +481 -508
  356. package/src/services/argo.ts +12 -12
  357. package/src/services/audit-logs.ts +45 -49
  358. package/src/services/billing.ts +121 -136
  359. package/src/services/bot-management.ts +122 -136
  360. package/src/services/botnet-feed.ts +68 -74
  361. package/src/services/brand-protection.ts +275 -294
  362. package/src/services/browser-rendering.ts +758 -769
  363. package/src/services/cache.ts +148 -158
  364. package/src/services/calls.ts +110 -120
  365. package/src/services/certificate-authorities.ts +6 -6
  366. package/src/services/client-certificates.ts +18 -18
  367. package/src/services/cloud-connector.ts +11 -12
  368. package/src/services/cloudforce-one.ts +589 -617
  369. package/src/services/connectivity.ts +25 -25
  370. package/src/services/containers.ts +49 -49
  371. package/src/services/content-scanning.ts +80 -89
  372. package/src/services/csam-scanner.ts +16 -17
  373. package/src/services/custom-certificates.ts +36 -38
  374. package/src/services/custom-csrs.ts +103 -105
  375. package/src/services/custom-hostnames.ts +44 -45
  376. package/src/services/custom-nameservers.ts +11 -11
  377. package/src/services/custom-pages.ts +173 -184
  378. package/src/services/d1.ts +335 -325
  379. package/src/services/dcv-delegation.ts +3 -3
  380. package/src/services/ddos-protection.ts +126 -126
  381. package/src/services/diagnostics.ts +27 -27
  382. package/src/services/dls.ts +82 -86
  383. package/src/services/dns-firewall.ts +65 -69
  384. package/src/services/dns.ts +1080 -1107
  385. package/src/services/durable-objects.ts +36 -38
  386. package/src/services/email-auth.ts +47 -52
  387. package/src/services/email-routing.ts +264 -288
  388. package/src/services/email-security.ts +205 -208
  389. package/src/services/email-sending.ts +94 -99
  390. package/src/services/filters.ts +97 -111
  391. package/src/services/firewall.ts +698 -753
  392. package/src/services/flagship.ts +321 -336
  393. package/src/services/fraud.ts +8 -8
  394. package/src/services/google-tag-gateway.ts +17 -19
  395. package/src/services/healthchecks.ts +269 -286
  396. package/src/services/hostnames.ts +94 -99
  397. package/src/services/hyperdrive.ts +310 -324
  398. package/src/services/iam.ts +205 -212
  399. package/src/services/images.ts +138 -150
  400. package/src/services/intel.ts +248 -261
  401. package/src/services/ips.ts +5 -5
  402. package/src/services/keyless-certificates.ts +17 -17
  403. package/src/services/kv.ts +106 -110
  404. package/src/services/leaked-credential-checks.ts +49 -53
  405. package/src/services/load-balancers.ts +1119 -1212
  406. package/src/services/logpush.ts +298 -313
  407. package/src/services/logs.ts +74 -77
  408. package/src/services/magic-cloud-networking.ts +1219 -1311
  409. package/src/services/magic-network-monitoring.ts +647 -685
  410. package/src/services/magic-transit.ts +1988 -2119
  411. package/src/services/managed-transforms.ts +11 -11
  412. package/src/services/memberships.ts +101 -105
  413. package/src/services/moq.ts +100 -110
  414. package/src/services/mtls-certificates.ts +30 -32
  415. package/src/services/network-interconnects.ts +137 -145
  416. package/src/services/organizations.ts +189 -192
  417. package/src/services/origin-ca-certificates.ts +14 -14
  418. package/src/services/origin-post-quantum-encryption.ts +6 -6
  419. package/src/services/origin-tls-client-auth.ts +219 -236
  420. package/src/services/origin-tls-compliance-modes.ts +12 -12
  421. package/src/services/page-rules.ts +365 -373
  422. package/src/services/page-shield.ts +489 -528
  423. package/src/services/pages.ts +309 -319
  424. package/src/services/pipelines.ts +534 -573
  425. package/src/services/queues.ts +598 -635
  426. package/src/services/r2-data-catalog.ts +59 -60
  427. package/src/services/r2.ts +654 -689
  428. package/src/services/radar.ts +3395 -3487
  429. package/src/services/rate-limits.ts +81 -93
  430. package/src/services/realtime-kit.ts +386 -399
  431. package/src/services/registrar.ts +90 -96
  432. package/src/services/request-tracers.ts +41 -43
  433. package/src/services/resource-sharing.ts +293 -305
  434. package/src/services/resource-tagging.ts +354 -366
  435. package/src/services/rules.ts +272 -292
  436. package/src/services/rulesets.ts +1214 -1116
  437. package/src/services/rum.ts +252 -273
  438. package/src/services/schema-validation.ts +284 -305
  439. package/src/services/secrets-store.ts +130 -138
  440. package/src/services/security-center.ts +64 -69
  441. package/src/services/security-txt.ts +48 -50
  442. package/src/services/snippets.ts +132 -142
  443. package/src/services/spectrum.ts +75 -80
  444. package/src/services/speed.ts +385 -397
  445. package/src/services/ssl.ts +64 -65
  446. package/src/services/stream.ts +658 -718
  447. package/src/services/tenant-custom-nameservers.ts +11 -11
  448. package/src/services/tenants.ts +86 -93
  449. package/src/services/token-validation.ts +145 -151
  450. package/src/services/turnstile.ts +344 -381
  451. package/src/services/url-normalization.ts +9 -9
  452. package/src/services/url-scanner.ts +393 -399
  453. package/src/services/user.ts +479 -503
  454. package/src/services/vectorize.ts +215 -230
  455. package/src/services/vulnerability-scanner.ts +145 -148
  456. package/src/services/waiting-rooms.ts +759 -825
  457. package/src/services/web3.ts +186 -197
  458. package/src/services/workers-for-platforms.ts +408 -432
  459. package/src/services/workers.ts +1175 -1239
  460. package/src/services/workflows.ts +585 -616
  461. package/src/services/zaraz.ts +168 -192
  462. package/src/services/zero-trust.ts +2965 -3074
  463. package/src/services/zones.ts +753 -785
@@ -85,19 +85,19 @@ export class ValidationError extends T.applyErrorMatchers(Schema.TaggedErrorClas
85
85
  export class WebCrawlerDomainNotOwned extends T.applyErrorMatchers(Schema.TaggedErrorClass()("WebCrawlerDomainNotOwned", { code: Schema.Number, message: Schema.String }), [{ status: 400, message: { includes: "domain_not_owned_by_user" } }]) {
86
86
  }
87
87
  const ChatCompletionsInstanceRequestMessageContent =
88
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
88
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
89
89
  text: Schema.String,
90
90
  type: Schema.Literal("text"),
91
91
  }));
92
- const ImageURL = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
92
+ const ImageURL = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
93
93
  url: Schema.String,
94
94
  }));
95
95
  const ChatCompletionsInstanceRequestMessageContent1 =
96
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
96
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
97
97
  imageUrl: ImageURL,
98
98
  type: Schema.Literal("image_url"),
99
99
  }).pipe(Schema.encodeKeys({ imageUrl: "image_url", type: "type" })));
100
- const Message = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
100
+ const Message = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
101
101
  content: Schema.Union([
102
102
  Schema.String,
103
103
  Schema.Array(Schema.Union([
@@ -111,7 +111,7 @@ const Message = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
111
111
  Schema.String,
112
112
  ]),
113
113
  }));
114
- const Cache = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
114
+ const Cache = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
115
115
  cacheThreshold: Schema.optional(Schema.Union([
116
116
  Schema.Union([
117
117
  Schema.Literals([
@@ -129,7 +129,7 @@ const Cache = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
129
129
  cacheThreshold: "cache_threshold",
130
130
  enabled: "enabled",
131
131
  })));
132
- const QueryRewrite = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
132
+ const QueryRewrite = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
133
133
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
134
134
  model: Schema.optional(Schema.Union([
135
135
  Schema.Union([
@@ -175,7 +175,7 @@ const QueryRewrite = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
175
175
  model: "model",
176
176
  rewritePrompt: "rewrite_prompt",
177
177
  })));
178
- const Reranking = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
178
+ const Reranking = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
179
179
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
180
180
  matchThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
181
181
  model: Schema.optional(Schema.Union([
@@ -190,7 +190,7 @@ const Reranking = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
190
190
  matchThreshold: "match_threshold",
191
191
  model: "model",
192
192
  })));
193
- const BoostBy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
193
+ const BoostBy = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
194
194
  field: Schema.String,
195
195
  direction: Schema.optional(Schema.Union([
196
196
  Schema.Union([
@@ -200,7 +200,7 @@ const BoostBy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
200
200
  Schema.Null,
201
201
  ])),
202
202
  }));
203
- const Retrieval = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
203
+ const Retrieval = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
204
204
  boostBy: Schema.optional(Schema.Union([Schema.Array(BoostBy), Schema.Null])),
205
205
  contextExpansion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
206
206
  filters: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
@@ -233,7 +233,7 @@ const Retrieval = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
233
233
  retrievalType: "retrieval_type",
234
234
  returnOnFailure: "return_on_failure",
235
235
  })));
236
- const AisearchOptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
236
+ const AisearchOptions = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
237
237
  cache: Schema.optional(Schema.Union([Cache, Schema.Null])),
238
238
  queryRewrite: Schema.optional(Schema.Union([QueryRewrite, Schema.Null])),
239
239
  reranking: Schema.optional(Schema.Union([Reranking, Schema.Null])),
@@ -244,16 +244,16 @@ const AisearchOptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.
244
244
  reranking: "reranking",
245
245
  retrieval: "retrieval",
246
246
  })));
247
- const Choice = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
247
+ const Choice = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
248
248
  message: Message,
249
249
  index: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
250
250
  }));
251
- const Item = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
251
+ const Item = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
252
252
  key: Schema.String,
253
253
  metadata: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
254
254
  timestamp: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
255
255
  }));
256
- const ScoringDetails = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
256
+ const ScoringDetails = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
257
257
  fusionMethod: Schema.optional(Schema.Union([
258
258
  Schema.Union([Schema.Literals(["rrf", "max"]), Schema.String]),
259
259
  Schema.Null,
@@ -271,7 +271,7 @@ const ScoringDetails = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.S
271
271
  vectorRank: "vector_rank",
272
272
  vectorScore: "vector_score",
273
273
  })));
274
- const Chunk = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
274
+ const Chunk = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
275
275
  id: Schema.String,
276
276
  score: Schema.Number,
277
277
  text: Schema.String,
@@ -286,7 +286,7 @@ const Chunk = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
286
286
  item: "item",
287
287
  scoringDetails: "scoring_details",
288
288
  })));
289
- const AisearchOptions2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
289
+ const AisearchOptions2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
290
290
  instanceIds: Schema.Array(Schema.String),
291
291
  cache: Schema.optional(Schema.Union([Cache, Schema.Null])),
292
292
  queryRewrite: Schema.optional(Schema.Union([QueryRewrite, Schema.Null])),
@@ -299,7 +299,7 @@ const AisearchOptions2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema
299
299
  reranking: "reranking",
300
300
  retrieval: "retrieval",
301
301
  })));
302
- const Chunk2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
302
+ const Chunk2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
303
303
  id: Schema.String,
304
304
  instanceId: Schema.String,
305
305
  score: Schema.Number,
@@ -316,42 +316,42 @@ const Chunk2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
316
316
  item: "item",
317
317
  scoringDetails: "scoring_details",
318
318
  })));
319
- const Error2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
319
+ const Error2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
320
320
  instanceId: Schema.String,
321
321
  message: Schema.String,
322
322
  }).pipe(Schema.encodeKeys({ instanceId: "instance_id", message: "message" })));
323
- const CustomMetadata = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
323
+ const CustomMetadata = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
324
324
  dataType: Schema.Union([
325
325
  Schema.Literals(["text", "number", "boolean", "datetime"]),
326
326
  Schema.String,
327
327
  ]),
328
328
  fieldName: Schema.String,
329
329
  }).pipe(Schema.encodeKeys({ dataType: "data_type", fieldName: "field_name" })));
330
- const IndexMethod = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
330
+ const IndexMethod = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
331
331
  keyword: Schema.Boolean,
332
332
  vector: Schema.Boolean,
333
333
  }));
334
- const IndexingOptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
334
+ const IndexingOptions = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
335
335
  keywordTokenizer: Schema.optional(Schema.Union([
336
336
  Schema.Union([Schema.Literals(["porter", "trigram"]), Schema.String]),
337
337
  Schema.Null,
338
338
  ])),
339
339
  }).pipe(Schema.encodeKeys({ keywordTokenizer: "keyword_tokenizer" })));
340
- const Metadata = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
340
+ const Metadata = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
341
341
  createdFromAisearchWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
342
342
  workerDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
343
343
  }).pipe(Schema.encodeKeys({
344
344
  createdFromAisearchWizard: "created_from_aisearch_wizard",
345
345
  workerDomain: "worker_domain",
346
346
  })));
347
- const ChatCompletionsEndpoint = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
347
+ const ChatCompletionsEndpoint = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
348
348
  disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
349
349
  }));
350
- const Mcp = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
350
+ const Mcp = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
351
351
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
352
352
  disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
353
353
  }));
354
- const RateLimit = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
354
+ const RateLimit = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
355
355
  periodMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
356
356
  requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
357
357
  technique: Schema.optional(Schema.Union([
@@ -363,7 +363,7 @@ const RateLimit = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
363
363
  requests: "requests",
364
364
  technique: "technique",
365
365
  })));
366
- const PublicEndpointParams = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
366
+ const PublicEndpointParams = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
367
367
  authorizedHosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
368
368
  chatCompletionsEndpoint: Schema.optional(Schema.Union([ChatCompletionsEndpoint, Schema.Null])),
369
369
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -378,7 +378,7 @@ const PublicEndpointParams = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sc
378
378
  rateLimit: "rate_limit",
379
379
  searchEndpoint: "search_endpoint",
380
380
  })));
381
- const RetrievalOptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
381
+ const RetrievalOptions = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
382
382
  boostBy: Schema.optional(Schema.Union([Schema.Array(BoostBy), Schema.Null])),
383
383
  keywordMatchMode: Schema.optional(Schema.Union([
384
384
  Schema.Union([Schema.Literals(["and", "or"]), Schema.String]),
@@ -388,11 +388,11 @@ const RetrievalOptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema
388
388
  boostBy: "boost_by",
389
389
  keywordMatchMode: "keyword_match_mode",
390
390
  })));
391
- const ContentSelector = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
391
+ const ContentSelector = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
392
392
  path: Schema.String,
393
393
  selector: Schema.String,
394
394
  }));
395
- const ParseOptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
395
+ const ParseOptions = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
396
396
  contentSelector: Schema.optional(Schema.Union([Schema.Array(ContentSelector), Schema.Null])),
397
397
  includeHeaders: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
398
398
  includeImages: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -405,7 +405,7 @@ const ParseOptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
405
405
  specificSitemaps: "specific_sitemaps",
406
406
  useBrowserRendering: "use_browser_rendering",
407
407
  })));
408
- const WebCrawler = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
408
+ const WebCrawler = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
409
409
  parseOptions: Schema.optional(Schema.Union([ParseOptions, Schema.Null])),
410
410
  parseType: Schema.optional(Schema.Union([
411
411
  Schema.Union([Schema.Literals(["sitemap", "crawl"]), Schema.String]),
@@ -415,7 +415,7 @@ const WebCrawler = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struc
415
415
  parseOptions: "parse_options",
416
416
  parseType: "parse_type",
417
417
  })));
418
- const SourceParams = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
418
+ const SourceParams = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
419
419
  excludeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
420
420
  includeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
421
421
  prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -428,7 +428,7 @@ const SourceParams = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
428
428
  r2Jurisdiction: "r2_jurisdiction",
429
429
  webCrawler: "web_crawler",
430
430
  })));
431
- const ListInstancesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
431
+ const ListInstancesResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
432
432
  id: Schema.String,
433
433
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
434
434
  modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -603,7 +603,7 @@ const ListInstancesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
603
603
  type: "type",
604
604
  })));
605
605
  const ListInstancesResponseResultInfo =
606
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
606
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
607
607
  count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
608
608
  page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
609
609
  perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -615,7 +615,7 @@ const ListInstancesResponseResultInfo =
615
615
  totalCount: "total_count",
616
616
  })));
617
617
  const CreateInstanceRequestSourceParamsWebCrawlerCrawlOptions =
618
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
618
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
619
619
  depth: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
620
620
  includeExternalLinks: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
621
621
  includeSubdomains: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -635,7 +635,7 @@ const CreateInstanceRequestSourceParamsWebCrawlerCrawlOptions =
635
635
  source: "source",
636
636
  })));
637
637
  const CreateInstanceRequestSourceParamsWebCrawlerStoreOptions =
638
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
638
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
639
639
  storageId: Schema.String,
640
640
  r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
641
641
  storageType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -644,7 +644,7 @@ const CreateInstanceRequestSourceParamsWebCrawlerStoreOptions =
644
644
  r2Jurisdiction: "r2_jurisdiction",
645
645
  storageType: "storage_type",
646
646
  })));
647
- const WebCrawler2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
647
+ const WebCrawler2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
648
648
  parseOptions: Schema.optional(Schema.Union([ParseOptions, Schema.Null])),
649
649
  parseType: Schema.optional(Schema.Union([
650
650
  Schema.Union([
@@ -667,7 +667,7 @@ const WebCrawler2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Stru
667
667
  crawlOptions: "crawl_options",
668
668
  storeOptions: "store_options",
669
669
  })));
670
- const SourceParams2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
670
+ const SourceParams2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
671
671
  excludeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
672
672
  includeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
673
673
  prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -680,21 +680,21 @@ const SourceParams2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.St
680
680
  r2Jurisdiction: "r2_jurisdiction",
681
681
  webCrawler: "web_crawler",
682
682
  })));
683
- const R2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
683
+ const R2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
684
684
  metadataSizeBytes: Schema.Number,
685
685
  objectCount: Schema.Number,
686
686
  payloadSizeBytes: Schema.Number,
687
687
  }));
688
- const Vectorize = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
688
+ const Vectorize = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
689
689
  dimensions: Schema.Number,
690
690
  vectorsCount: Schema.Number,
691
691
  }));
692
- const Engine = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
692
+ const Engine = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
693
693
  r2: Schema.optional(Schema.Union([R2, Schema.Null])),
694
694
  vectorize: Schema.optional(Schema.Union([Vectorize, Schema.Null])),
695
695
  }));
696
696
  const ListInstanceJobsResponseResult =
697
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
697
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
698
698
  id: Schema.String,
699
699
  source: Schema.Union([
700
700
  Schema.Literals(["user", "schedule"]),
@@ -714,7 +714,7 @@ const ListInstanceJobsResponseResult =
714
714
  lastSeenAt: "last_seen_at",
715
715
  startedAt: "started_at",
716
716
  })));
717
- const JobLogsResponseItem = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
717
+ const JobLogsResponseItem = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
718
718
  id: Schema.Number,
719
719
  createdAt: Schema.Number,
720
720
  message: Schema.String,
@@ -725,7 +725,7 @@ const JobLogsResponseItem = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sch
725
725
  message: "message",
726
726
  messageType: "message_type",
727
727
  })));
728
- const ListNamespacesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
728
+ const ListNamespacesResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
729
729
  createdAt: Schema.String,
730
730
  name: Schema.String,
731
731
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -735,7 +735,7 @@ const ListNamespacesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
735
735
  description: "description",
736
736
  })));
737
737
  const ListNamespaceInstanceItemsResponseResult =
738
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
738
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
739
739
  id: Schema.String,
740
740
  checksum: Schema.String,
741
741
  chunksCount: Schema.Union([Schema.Number, Schema.Null]),
@@ -776,7 +776,7 @@ const ListNamespaceInstanceItemsResponseResult =
776
776
  status: "status",
777
777
  error: "error",
778
778
  })));
779
- const File2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
779
+ const File2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
780
780
  file: UploadableSchema.pipe(T.HttpFormDataFile()),
781
781
  metadata: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
782
782
  waitForCompletion: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -785,7 +785,7 @@ const File2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
785
785
  metadata: "metadata",
786
786
  waitForCompletion: "wait_for_completion",
787
787
  })));
788
- const ItemChunksResponseItem = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
788
+ const ItemChunksResponseItem = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
789
789
  id: Schema.String,
790
790
  item: Item,
791
791
  text: Schema.String,
@@ -798,7 +798,7 @@ const ItemChunksResponseItem = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
798
798
  endByte: "end_byte",
799
799
  startByte: "start_byte",
800
800
  })));
801
- const ItemLogsResponseItem = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
801
+ const ItemLogsResponseItem = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
802
802
  action: Schema.String,
803
803
  chunkCount: Schema.Union([Schema.Number, Schema.Null]),
804
804
  errorType: Schema.Union([Schema.String, Schema.Null]),
@@ -807,7 +807,7 @@ const ItemLogsResponseItem = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sc
807
807
  processingTimeMs: Schema.Union([Schema.Number, Schema.Null]),
808
808
  timestamp: Schema.String,
809
809
  }));
810
- const ListTokensResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
810
+ const ListTokensResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
811
811
  id: Schema.String,
812
812
  cfApiId: Schema.String,
813
813
  createdAt: Schema.String,
@@ -829,7 +829,7 @@ const ListTokensResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
829
829
  modifiedBy: "modified_by",
830
830
  })));
831
831
  export const ChatCompletionsInstanceRequest =
832
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
832
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
833
833
  id: Schema.String.pipe(T.HttpPath("id")),
834
834
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
835
835
  messages: Schema.Array(Message),
@@ -880,20 +880,20 @@ export const ChatCompletionsInstanceRequest =
880
880
  path: "/accounts/{account_id}/ai-search/instances/{id}/chat/completions",
881
881
  })));
882
882
  export const ChatCompletionsInstanceResponse =
883
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
883
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
884
884
  choices: Schema.Array(Choice),
885
885
  chunks: Schema.Array(Chunk),
886
886
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
887
887
  model: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
888
888
  object: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
889
889
  }));
890
- export const chatCompletionsInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
890
+ export const chatCompletionsInstance = /*@__PURE__*/ API.make(() => ({
891
891
  input: ChatCompletionsInstanceRequest,
892
892
  output: ChatCompletionsInstanceResponse,
893
893
  errors: [],
894
894
  }));
895
895
  export const ChatCompletionsNamespaceRequest =
896
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
896
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
897
897
  name: Schema.String.pipe(T.HttpPath("name")),
898
898
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
899
899
  aiSearchOptions: AisearchOptions2,
@@ -944,7 +944,7 @@ export const ChatCompletionsNamespaceRequest =
944
944
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/chat/completions",
945
945
  })));
946
946
  export const ChatCompletionsNamespaceResponse =
947
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
947
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
948
948
  choices: Schema.Array(Choice),
949
949
  chunks: Schema.Array(Chunk2),
950
950
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -952,13 +952,13 @@ export const ChatCompletionsNamespaceResponse =
952
952
  model: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
953
953
  object: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
954
954
  }));
955
- export const chatCompletionsNamespace = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
955
+ export const chatCompletionsNamespace = /*@__PURE__*/ API.make(() => ({
956
956
  input: ChatCompletionsNamespaceRequest,
957
957
  output: ChatCompletionsNamespaceResponse,
958
958
  errors: [],
959
959
  }));
960
960
  export const ChatCompletionsNamespaceInstanceRequest =
961
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
961
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
962
962
  name: Schema.String.pipe(T.HttpPath("name")),
963
963
  id: Schema.String.pipe(T.HttpPath("id")),
964
964
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -1010,19 +1010,19 @@ export const ChatCompletionsNamespaceInstanceRequest =
1010
1010
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/chat/completions",
1011
1011
  })));
1012
1012
  export const ChatCompletionsNamespaceInstanceResponse =
1013
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1013
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1014
1014
  choices: Schema.Array(Choice),
1015
1015
  chunks: Schema.Array(Chunk),
1016
1016
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1017
1017
  model: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1018
1018
  object: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1019
1019
  }));
1020
- export const chatCompletionsNamespaceInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1020
+ export const chatCompletionsNamespaceInstance = /*@__PURE__*/ API.make(() => ({
1021
1021
  input: ChatCompletionsNamespaceInstanceRequest,
1022
1022
  output: ChatCompletionsNamespaceInstanceResponse,
1023
1023
  errors: [],
1024
1024
  }));
1025
- export const ListInstancesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1025
+ export const ListInstancesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1026
1026
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1027
1027
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
1028
1028
  perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
@@ -1034,11 +1034,11 @@ export const ListInstancesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
1034
1034
  method: "GET",
1035
1035
  path: "/accounts/{account_id}/ai-search/instances",
1036
1036
  })));
1037
- export const ListInstancesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1037
+ export const ListInstancesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1038
1038
  result: Schema.Array(ListInstancesResponseResult),
1039
1039
  resultInfo: Schema.optional(Schema.Union([ListInstancesResponseResultInfo, Schema.Null])),
1040
1040
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
1041
- export const listInstances = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1041
+ export const listInstances = /*@__PURE__*/ API.makePaginated(() => ({
1042
1042
  input: ListInstancesRequest,
1043
1043
  output: ListInstancesResponse,
1044
1044
  errors: [InvalidRoute, Forbidden],
@@ -1050,7 +1050,7 @@ export const listInstances = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
1050
1050
  pageSize: "perPage",
1051
1051
  },
1052
1052
  }));
1053
- export const CreateInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1053
+ export const CreateInstanceRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1054
1054
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1055
1055
  id: Schema.String,
1056
1056
  aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1208,7 +1208,7 @@ export const CreateInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1208
1208
  path: "/accounts/{account_id}/ai-search/instances",
1209
1209
  })));
1210
1210
  export const CreateInstanceResponse =
1211
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1211
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1212
1212
  id: Schema.String,
1213
1213
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1214
1214
  modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1384,7 +1384,7 @@ export const CreateInstanceResponse =
1384
1384
  type: "type",
1385
1385
  }))
1386
1386
  .pipe(T.ResponsePath("result")));
1387
- export const createInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1387
+ export const createInstance = /*@__PURE__*/ API.make(() => ({
1388
1388
  input: CreateInstanceRequest,
1389
1389
  output: CreateInstanceResponse,
1390
1390
  errors: [
@@ -1396,7 +1396,7 @@ export const createInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1396
1396
  Forbidden,
1397
1397
  ],
1398
1398
  }));
1399
- export const UpdateInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1399
+ export const UpdateInstanceRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1400
1400
  id: Schema.String.pipe(T.HttpPath("id")),
1401
1401
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1402
1402
  aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1589,7 +1589,7 @@ export const UpdateInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1589
1589
  path: "/accounts/{account_id}/ai-search/instances/{id}",
1590
1590
  })));
1591
1591
  export const UpdateInstanceResponse =
1592
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1592
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1593
1593
  id: Schema.String,
1594
1594
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1595
1595
  modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1765,7 +1765,7 @@ export const UpdateInstanceResponse =
1765
1765
  type: "type",
1766
1766
  }))
1767
1767
  .pipe(T.ResponsePath("result")));
1768
- export const updateInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1768
+ export const updateInstance = /*@__PURE__*/ API.make(() => ({
1769
1769
  input: UpdateInstanceRequest,
1770
1770
  output: UpdateInstanceResponse,
1771
1771
  errors: [
@@ -1776,7 +1776,7 @@ export const updateInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1776
1776
  Forbidden,
1777
1777
  ],
1778
1778
  }));
1779
- export const DeleteInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1779
+ export const DeleteInstanceRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1780
1780
  id: Schema.String.pipe(T.HttpPath("id")),
1781
1781
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1782
1782
  }).pipe(T.Http({
@@ -1784,7 +1784,7 @@ export const DeleteInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1784
1784
  path: "/accounts/{account_id}/ai-search/instances/{id}",
1785
1785
  })));
1786
1786
  export const DeleteInstanceResponse =
1787
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1787
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1788
1788
  id: Schema.String,
1789
1789
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1790
1790
  modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1960,19 +1960,19 @@ export const DeleteInstanceResponse =
1960
1960
  type: "type",
1961
1961
  }))
1962
1962
  .pipe(T.ResponsePath("result")));
1963
- export const deleteInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1963
+ export const deleteInstance = /*@__PURE__*/ API.make(() => ({
1964
1964
  input: DeleteInstanceRequest,
1965
1965
  output: DeleteInstanceResponse,
1966
1966
  errors: [ValidationError, NotFound, InvalidRoute, Forbidden],
1967
1967
  }));
1968
- export const ReadInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1968
+ export const ReadInstanceRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1969
1969
  id: Schema.String.pipe(T.HttpPath("id")),
1970
1970
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1971
1971
  }).pipe(T.Http({
1972
1972
  method: "GET",
1973
1973
  path: "/accounts/{account_id}/ai-search/instances/{id}",
1974
1974
  })));
1975
- export const ReadInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1975
+ export const ReadInstanceResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1976
1976
  id: Schema.String,
1977
1977
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1978
1978
  modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2148,12 +2148,12 @@ export const ReadInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
2148
2148
  type: "type",
2149
2149
  }))
2150
2150
  .pipe(T.ResponsePath("result")));
2151
- export const readInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2151
+ export const readInstance = /*@__PURE__*/ API.make(() => ({
2152
2152
  input: ReadInstanceRequest,
2153
2153
  output: ReadInstanceResponse,
2154
2154
  errors: [ValidationError, NotFound, InvalidRoute, Forbidden],
2155
2155
  }));
2156
- export const SearchInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2156
+ export const SearchInstanceRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2157
2157
  id: Schema.String.pipe(T.HttpPath("id")),
2158
2158
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2159
2159
  aiSearchOptions: Schema.optional(AisearchOptions),
@@ -2168,7 +2168,7 @@ export const SearchInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2168
2168
  path: "/accounts/{account_id}/ai-search/instances/{id}/search",
2169
2169
  })));
2170
2170
  export const SearchInstanceResponse =
2171
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2171
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2172
2172
  chunks: Schema.Array(Chunk),
2173
2173
  queryKind: Schema.Union([
2174
2174
  Schema.Literals(["text", "image", "multimodal"]),
@@ -2182,31 +2182,25 @@ export const SearchInstanceResponse =
2182
2182
  searchQuery: "search_query",
2183
2183
  }))
2184
2184
  .pipe(T.ResponsePath("result")));
2185
- export const searchInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2185
+ export const searchInstance = /*@__PURE__*/ API.make(() => ({
2186
2186
  input: SearchInstanceRequest,
2187
2187
  output: SearchInstanceResponse,
2188
2188
  errors: [],
2189
2189
  }));
2190
- export const StatsInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2190
+ export const StatsInstanceRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2191
2191
  id: Schema.String.pipe(T.HttpPath("id")),
2192
2192
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2193
2193
  }).pipe(T.Http({
2194
2194
  method: "GET",
2195
2195
  path: "/accounts/{account_id}/ai-search/instances/{id}/stats",
2196
2196
  })));
2197
- export const StatsInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2197
+ export const StatsInstanceResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2198
2198
  completed: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2199
2199
  degraded: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2200
2200
  engine: Schema.optional(Schema.Union([Engine, Schema.Null])),
2201
2201
  error: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2202
- fileEmbedErrors: Schema.optional(Schema.Union([
2203
- Schema.Record(Schema.String, Schema.Unknown),
2204
- Schema.Null,
2205
- ])),
2206
- indexSourceErrors: Schema.optional(Schema.Union([
2207
- Schema.Record(Schema.String, Schema.Unknown),
2208
- Schema.Null,
2209
- ])),
2202
+ fileEmbedErrors: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
2203
+ indexSourceErrors: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
2210
2204
  lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2211
2205
  outdated: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2212
2206
  queued: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -2227,12 +2221,12 @@ export const StatsInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2227
2221
  skipped: "skipped",
2228
2222
  }))
2229
2223
  .pipe(T.ResponsePath("result")));
2230
- export const statsInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2224
+ export const statsInstance = /*@__PURE__*/ API.make(() => ({
2231
2225
  input: StatsInstanceRequest,
2232
2226
  output: StatsInstanceResponse,
2233
2227
  errors: [ValidationError, NotFound, InvalidRoute],
2234
2228
  }));
2235
- export const GetInstanceJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2229
+ export const GetInstanceJobRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2236
2230
  id: Schema.String.pipe(T.HttpPath("id")),
2237
2231
  jobId: Schema.String.pipe(T.HttpPath("jobId")),
2238
2232
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -2241,7 +2235,7 @@ export const GetInstanceJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2241
2235
  path: "/accounts/{account_id}/ai-search/instances/{id}/jobs/{jobId}",
2242
2236
  })));
2243
2237
  export const GetInstanceJobResponse =
2244
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2238
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2245
2239
  id: Schema.String,
2246
2240
  source: Schema.Union([
2247
2241
  Schema.Literals(["user", "schedule"]),
@@ -2263,13 +2257,13 @@ export const GetInstanceJobResponse =
2263
2257
  startedAt: "started_at",
2264
2258
  }))
2265
2259
  .pipe(T.ResponsePath("result")));
2266
- export const getInstanceJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2260
+ export const getInstanceJob = /*@__PURE__*/ API.make(() => ({
2267
2261
  input: GetInstanceJobRequest,
2268
2262
  output: GetInstanceJobResponse,
2269
2263
  errors: [ValidationError, NotFound, InvalidRoute],
2270
2264
  }));
2271
2265
  export const ListInstanceJobsRequest =
2272
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2266
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2273
2267
  id: Schema.String.pipe(T.HttpPath("id")),
2274
2268
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2275
2269
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
@@ -2279,11 +2273,11 @@ export const ListInstanceJobsRequest =
2279
2273
  path: "/accounts/{account_id}/ai-search/instances/{id}/jobs",
2280
2274
  })));
2281
2275
  export const ListInstanceJobsResponse =
2282
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2276
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2283
2277
  result: Schema.Array(ListInstanceJobsResponseResult),
2284
2278
  resultInfo: Schema.optional(Schema.Union([ListInstancesResponseResultInfo, Schema.Null])),
2285
2279
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
2286
- export const listInstanceJobs = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2280
+ export const listInstanceJobs = /*@__PURE__*/ API.makePaginated(() => ({
2287
2281
  input: ListInstanceJobsRequest,
2288
2282
  output: ListInstanceJobsResponse,
2289
2283
  errors: [],
@@ -2296,7 +2290,7 @@ export const listInstanceJobs = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(()
2296
2290
  },
2297
2291
  }));
2298
2292
  export const CreateInstanceJobRequest =
2299
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2293
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2300
2294
  id: Schema.String.pipe(T.HttpPath("id")),
2301
2295
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2302
2296
  description: Schema.optional(Schema.String),
@@ -2305,7 +2299,7 @@ export const CreateInstanceJobRequest =
2305
2299
  path: "/accounts/{account_id}/ai-search/instances/{id}/jobs",
2306
2300
  })));
2307
2301
  export const CreateInstanceJobResponse =
2308
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2302
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2309
2303
  id: Schema.String,
2310
2304
  source: Schema.optional(Schema.Union([
2311
2305
  Schema.Union([Schema.Literals(["user", "schedule"]), Schema.String]),
@@ -2327,7 +2321,7 @@ export const CreateInstanceJobResponse =
2327
2321
  startedAt: "started_at",
2328
2322
  }))
2329
2323
  .pipe(T.ResponsePath("result")));
2330
- export const createInstanceJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2324
+ export const createInstanceJob = /*@__PURE__*/ API.make(() => ({
2331
2325
  input: CreateInstanceJobRequest,
2332
2326
  output: CreateInstanceJobResponse,
2333
2327
  errors: [
@@ -2339,7 +2333,7 @@ export const createInstanceJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2339
2333
  ],
2340
2334
  }));
2341
2335
  export const LogsInstanceJobRequest =
2342
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2336
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2343
2337
  id: Schema.String.pipe(T.HttpPath("id")),
2344
2338
  jobId: Schema.String.pipe(T.HttpPath("jobId")),
2345
2339
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -2350,13 +2344,13 @@ export const LogsInstanceJobRequest =
2350
2344
  path: "/accounts/{account_id}/ai-search/instances/{id}/jobs/{jobId}/logs",
2351
2345
  })));
2352
2346
  export const LogsInstanceJobResponse =
2353
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Array(JobLogsResponseItem).pipe(T.ResponsePath("result")));
2354
- export const logsInstanceJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2347
+ /*@__PURE__*/ Schema.suspend(() => Schema.Array(JobLogsResponseItem).pipe(T.ResponsePath("result")));
2348
+ export const logsInstanceJob = /*@__PURE__*/ API.make(() => ({
2355
2349
  input: LogsInstanceJobRequest,
2356
2350
  output: LogsInstanceJobResponse,
2357
2351
  errors: [ValidationError, NotFound, InvalidRoute],
2358
2352
  }));
2359
- export const ListNamespacesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2353
+ export const ListNamespacesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2360
2354
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2361
2355
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
2362
2356
  perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
@@ -2366,11 +2360,11 @@ export const ListNamespacesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2366
2360
  path: "/accounts/{account_id}/ai-search/namespaces",
2367
2361
  })));
2368
2362
  export const ListNamespacesResponse =
2369
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2363
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2370
2364
  result: Schema.Array(ListNamespacesResponseResult),
2371
2365
  resultInfo: Schema.optional(Schema.Union([ListInstancesResponseResultInfo, Schema.Null])),
2372
2366
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
2373
- export const listNamespaces = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2367
+ export const listNamespaces = /*@__PURE__*/ API.makePaginated(() => ({
2374
2368
  input: ListNamespacesRequest,
2375
2369
  output: ListNamespacesResponse,
2376
2370
  errors: [],
@@ -2383,7 +2377,7 @@ export const listNamespaces = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =
2383
2377
  },
2384
2378
  }));
2385
2379
  export const CreateNamespaceRequest =
2386
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2380
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2387
2381
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2388
2382
  name: Schema.String,
2389
2383
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2392,7 +2386,7 @@ export const CreateNamespaceRequest =
2392
2386
  path: "/accounts/{account_id}/ai-search/namespaces",
2393
2387
  })));
2394
2388
  export const CreateNamespaceResponse =
2395
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2389
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2396
2390
  createdAt: Schema.String,
2397
2391
  name: Schema.String,
2398
2392
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2403,13 +2397,13 @@ export const CreateNamespaceResponse =
2403
2397
  description: "description",
2404
2398
  }))
2405
2399
  .pipe(T.ResponsePath("result")));
2406
- export const createNamespace = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2400
+ export const createNamespace = /*@__PURE__*/ API.make(() => ({
2407
2401
  input: CreateNamespaceRequest,
2408
2402
  output: CreateNamespaceResponse,
2409
2403
  errors: [NamespaceAlreadyExists, Forbidden],
2410
2404
  }));
2411
2405
  export const UpdateNamespaceRequest =
2412
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2406
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2413
2407
  name: Schema.String.pipe(T.HttpPath("name")),
2414
2408
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2415
2409
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2418,7 +2412,7 @@ export const UpdateNamespaceRequest =
2418
2412
  path: "/accounts/{account_id}/ai-search/namespaces/{name}",
2419
2413
  })));
2420
2414
  export const UpdateNamespaceResponse =
2421
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2415
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2422
2416
  createdAt: Schema.String,
2423
2417
  name: Schema.String,
2424
2418
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2429,13 +2423,13 @@ export const UpdateNamespaceResponse =
2429
2423
  description: "description",
2430
2424
  }))
2431
2425
  .pipe(T.ResponsePath("result")));
2432
- export const updateNamespace = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2426
+ export const updateNamespace = /*@__PURE__*/ API.make(() => ({
2433
2427
  input: UpdateNamespaceRequest,
2434
2428
  output: UpdateNamespaceResponse,
2435
2429
  errors: [NamespaceNotFound, Forbidden],
2436
2430
  }));
2437
2431
  export const DeleteNamespaceRequest =
2438
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2432
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2439
2433
  name: Schema.String.pipe(T.HttpPath("name")),
2440
2434
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2441
2435
  }).pipe(T.Http({
@@ -2443,20 +2437,20 @@ export const DeleteNamespaceRequest =
2443
2437
  path: "/accounts/{account_id}/ai-search/namespaces/{name}",
2444
2438
  })));
2445
2439
  export const DeleteNamespaceResponse =
2446
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Unknown.pipe(T.ResponsePath("result")));
2447
- export const deleteNamespace = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2440
+ /*@__PURE__*/ Schema.suspend(() => Schema.Unknown.pipe(T.ResponsePath("result")));
2441
+ export const deleteNamespace = /*@__PURE__*/ API.make(() => ({
2448
2442
  input: DeleteNamespaceRequest,
2449
2443
  output: DeleteNamespaceResponse,
2450
2444
  errors: [NamespaceNotFound, Forbidden],
2451
2445
  }));
2452
- export const ReadNamespaceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2446
+ export const ReadNamespaceRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2453
2447
  name: Schema.String.pipe(T.HttpPath("name")),
2454
2448
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2455
2449
  }).pipe(T.Http({
2456
2450
  method: "GET",
2457
2451
  path: "/accounts/{account_id}/ai-search/namespaces/{name}",
2458
2452
  })));
2459
- export const ReadNamespaceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2453
+ export const ReadNamespaceResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2460
2454
  createdAt: Schema.String,
2461
2455
  name: Schema.String,
2462
2456
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2467,13 +2461,13 @@ export const ReadNamespaceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2467
2461
  description: "description",
2468
2462
  }))
2469
2463
  .pipe(T.ResponsePath("result")));
2470
- export const readNamespace = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2464
+ export const readNamespace = /*@__PURE__*/ API.make(() => ({
2471
2465
  input: ReadNamespaceRequest,
2472
2466
  output: ReadNamespaceResponse,
2473
2467
  errors: [NamespaceNotFound, Forbidden],
2474
2468
  }));
2475
2469
  export const SearchNamespaceRequest =
2476
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2470
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2477
2471
  name: Schema.String.pipe(T.HttpPath("name")),
2478
2472
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2479
2473
  aiSearchOptions: AisearchOptions2,
@@ -2488,7 +2482,7 @@ export const SearchNamespaceRequest =
2488
2482
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/search",
2489
2483
  })));
2490
2484
  export const SearchNamespaceResponse =
2491
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2485
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2492
2486
  chunks: Schema.Array(Chunk2),
2493
2487
  queryKind: Schema.Union([
2494
2488
  Schema.Literals(["text", "image", "multimodal"]),
@@ -2504,13 +2498,13 @@ export const SearchNamespaceResponse =
2504
2498
  searchQuery: "search_query",
2505
2499
  }))
2506
2500
  .pipe(T.ResponsePath("result")));
2507
- export const searchNamespace = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2501
+ export const searchNamespace = /*@__PURE__*/ API.make(() => ({
2508
2502
  input: SearchNamespaceRequest,
2509
2503
  output: SearchNamespaceResponse,
2510
2504
  errors: [],
2511
2505
  }));
2512
2506
  export const ListNamespaceInstancesRequest =
2513
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2507
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2514
2508
  name: Schema.String.pipe(T.HttpPath("name")),
2515
2509
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2516
2510
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
@@ -2524,11 +2518,11 @@ export const ListNamespaceInstancesRequest =
2524
2518
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances",
2525
2519
  })));
2526
2520
  export const ListNamespaceInstancesResponse =
2527
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2521
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2528
2522
  result: Schema.Array(ListInstancesResponseResult),
2529
2523
  resultInfo: Schema.optional(Schema.Union([ListInstancesResponseResultInfo, Schema.Null])),
2530
2524
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
2531
- export const listNamespaceInstances = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2525
+ export const listNamespaceInstances = /*@__PURE__*/ API.makePaginated(() => ({
2532
2526
  input: ListNamespaceInstancesRequest,
2533
2527
  output: ListNamespaceInstancesResponse,
2534
2528
  errors: [NamespaceNotFound, InvalidRoute, Forbidden],
@@ -2541,7 +2535,7 @@ export const listNamespaceInstances = /*@__PURE__*/ /*#__PURE__*/ API.makePagina
2541
2535
  },
2542
2536
  }));
2543
2537
  export const CreateNamespaceInstanceRequest =
2544
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2538
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2545
2539
  name: Schema.String.pipe(T.HttpPath("name")),
2546
2540
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2547
2541
  id: Schema.String,
@@ -2700,7 +2694,7 @@ export const CreateNamespaceInstanceRequest =
2700
2694
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances",
2701
2695
  })));
2702
2696
  export const CreateNamespaceInstanceResponse =
2703
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2697
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2704
2698
  id: Schema.String,
2705
2699
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2706
2700
  modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2876,7 +2870,7 @@ export const CreateNamespaceInstanceResponse =
2876
2870
  type: "type",
2877
2871
  }))
2878
2872
  .pipe(T.ResponsePath("result")));
2879
- export const createNamespaceInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2873
+ export const createNamespaceInstance = /*@__PURE__*/ API.make(() => ({
2880
2874
  input: CreateNamespaceInstanceRequest,
2881
2875
  output: CreateNamespaceInstanceResponse,
2882
2876
  errors: [
@@ -2892,7 +2886,7 @@ export const createNamespaceInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() =
2892
2886
  ],
2893
2887
  }));
2894
2888
  export const UpdateNamespaceInstanceRequest =
2895
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
2889
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2896
2890
  name: Schema.String.pipe(T.HttpPath("name")),
2897
2891
  id: Schema.String.pipe(T.HttpPath("id")),
2898
2892
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -3086,7 +3080,7 @@ export const UpdateNamespaceInstanceRequest =
3086
3080
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}",
3087
3081
  })));
3088
3082
  export const UpdateNamespaceInstanceResponse =
3089
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3083
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3090
3084
  id: Schema.String,
3091
3085
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3092
3086
  modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -3262,7 +3256,7 @@ export const UpdateNamespaceInstanceResponse =
3262
3256
  type: "type",
3263
3257
  }))
3264
3258
  .pipe(T.ResponsePath("result")));
3265
- export const updateNamespaceInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3259
+ export const updateNamespaceInstance = /*@__PURE__*/ API.make(() => ({
3266
3260
  input: UpdateNamespaceInstanceRequest,
3267
3261
  output: UpdateNamespaceInstanceResponse,
3268
3262
  errors: [
@@ -3276,7 +3270,7 @@ export const updateNamespaceInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() =
3276
3270
  ],
3277
3271
  }));
3278
3272
  export const DeleteNamespaceInstanceRequest =
3279
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3273
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3280
3274
  name: Schema.String.pipe(T.HttpPath("name")),
3281
3275
  id: Schema.String.pipe(T.HttpPath("id")),
3282
3276
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -3285,7 +3279,7 @@ export const DeleteNamespaceInstanceRequest =
3285
3279
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}",
3286
3280
  })));
3287
3281
  export const DeleteNamespaceInstanceResponse =
3288
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3282
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3289
3283
  id: Schema.String,
3290
3284
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3291
3285
  modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -3461,7 +3455,7 @@ export const DeleteNamespaceInstanceResponse =
3461
3455
  type: "type",
3462
3456
  }))
3463
3457
  .pipe(T.ResponsePath("result")));
3464
- export const deleteNamespaceInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3458
+ export const deleteNamespaceInstance = /*@__PURE__*/ API.make(() => ({
3465
3459
  input: DeleteNamespaceInstanceRequest,
3466
3460
  output: DeleteNamespaceInstanceResponse,
3467
3461
  errors: [
@@ -3473,7 +3467,7 @@ export const deleteNamespaceInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() =
3473
3467
  ],
3474
3468
  }));
3475
3469
  export const ReadNamespaceInstanceRequest =
3476
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3470
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3477
3471
  name: Schema.String.pipe(T.HttpPath("name")),
3478
3472
  id: Schema.String.pipe(T.HttpPath("id")),
3479
3473
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -3482,7 +3476,7 @@ export const ReadNamespaceInstanceRequest =
3482
3476
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}",
3483
3477
  })));
3484
3478
  export const ReadNamespaceInstanceResponse =
3485
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3479
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3486
3480
  id: Schema.String,
3487
3481
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3488
3482
  modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -3658,7 +3652,7 @@ export const ReadNamespaceInstanceResponse =
3658
3652
  type: "type",
3659
3653
  }))
3660
3654
  .pipe(T.ResponsePath("result")));
3661
- export const readNamespaceInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3655
+ export const readNamespaceInstance = /*@__PURE__*/ API.make(() => ({
3662
3656
  input: ReadNamespaceInstanceRequest,
3663
3657
  output: ReadNamespaceInstanceResponse,
3664
3658
  errors: [
@@ -3670,7 +3664,7 @@ export const readNamespaceInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() =>
3670
3664
  ],
3671
3665
  }));
3672
3666
  export const SearchNamespaceInstanceRequest =
3673
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3667
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3674
3668
  name: Schema.String.pipe(T.HttpPath("name")),
3675
3669
  id: Schema.String.pipe(T.HttpPath("id")),
3676
3670
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -3686,7 +3680,7 @@ export const SearchNamespaceInstanceRequest =
3686
3680
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/search",
3687
3681
  })));
3688
3682
  export const SearchNamespaceInstanceResponse =
3689
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3683
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3690
3684
  chunks: Schema.Array(Chunk),
3691
3685
  queryKind: Schema.Union([
3692
3686
  Schema.Literals(["text", "image", "multimodal"]),
@@ -3700,13 +3694,13 @@ export const SearchNamespaceInstanceResponse =
3700
3694
  searchQuery: "search_query",
3701
3695
  }))
3702
3696
  .pipe(T.ResponsePath("result")));
3703
- export const searchNamespaceInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3697
+ export const searchNamespaceInstance = /*@__PURE__*/ API.make(() => ({
3704
3698
  input: SearchNamespaceInstanceRequest,
3705
3699
  output: SearchNamespaceInstanceResponse,
3706
3700
  errors: [],
3707
3701
  }));
3708
3702
  export const StatsNamespaceInstanceRequest =
3709
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3703
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3710
3704
  name: Schema.String.pipe(T.HttpPath("name")),
3711
3705
  id: Schema.String.pipe(T.HttpPath("id")),
3712
3706
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -3715,7 +3709,7 @@ export const StatsNamespaceInstanceRequest =
3715
3709
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/stats",
3716
3710
  })));
3717
3711
  export const StatsNamespaceInstanceResponse =
3718
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3712
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3719
3713
  completed: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3720
3714
  degraded: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3721
3715
  engine: Schema.optional(Schema.Union([Engine, Schema.Null])),
@@ -3748,13 +3742,13 @@ export const StatsNamespaceInstanceResponse =
3748
3742
  skipped: "skipped",
3749
3743
  }))
3750
3744
  .pipe(T.ResponsePath("result")));
3751
- export const statsNamespaceInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3745
+ export const statsNamespaceInstance = /*@__PURE__*/ API.make(() => ({
3752
3746
  input: StatsNamespaceInstanceRequest,
3753
3747
  output: StatsNamespaceInstanceResponse,
3754
3748
  errors: [],
3755
3749
  }));
3756
3750
  export const GetNamespaceInstanceItemRequest =
3757
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3751
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3758
3752
  name: Schema.String.pipe(T.HttpPath("name")),
3759
3753
  id: Schema.String.pipe(T.HttpPath("id")),
3760
3754
  itemId: Schema.String.pipe(T.HttpPath("itemId")),
@@ -3764,7 +3758,7 @@ export const GetNamespaceInstanceItemRequest =
3764
3758
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items/{itemId}",
3765
3759
  })));
3766
3760
  export const GetNamespaceInstanceItemResponse =
3767
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3761
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3768
3762
  id: Schema.String,
3769
3763
  checksum: Schema.String,
3770
3764
  chunksCount: Schema.Union([Schema.Number, Schema.Null]),
@@ -3807,13 +3801,13 @@ export const GetNamespaceInstanceItemResponse =
3807
3801
  error: "error",
3808
3802
  }))
3809
3803
  .pipe(T.ResponsePath("result")));
3810
- export const getNamespaceInstanceItem = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3804
+ export const getNamespaceInstanceItem = /*@__PURE__*/ API.make(() => ({
3811
3805
  input: GetNamespaceInstanceItemRequest,
3812
3806
  output: GetNamespaceInstanceItemResponse,
3813
3807
  errors: [],
3814
3808
  }));
3815
3809
  export const ListNamespaceInstanceItemsRequest =
3816
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3810
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3817
3811
  name: Schema.String.pipe(T.HttpPath("name")),
3818
3812
  id: Schema.String.pipe(T.HttpPath("id")),
3819
3813
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -3843,11 +3837,11 @@ export const ListNamespaceInstanceItemsRequest =
3843
3837
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items",
3844
3838
  })));
3845
3839
  export const ListNamespaceInstanceItemsResponse =
3846
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3840
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3847
3841
  result: Schema.Array(ListNamespaceInstanceItemsResponseResult),
3848
3842
  resultInfo: Schema.optional(Schema.Union([ListInstancesResponseResultInfo, Schema.Null])),
3849
3843
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
3850
- export const listNamespaceInstanceItems = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3844
+ export const listNamespaceInstanceItems = /*@__PURE__*/ API.makePaginated(() => ({
3851
3845
  input: ListNamespaceInstanceItemsRequest,
3852
3846
  output: ListNamespaceInstanceItemsResponse,
3853
3847
  errors: [],
@@ -3860,7 +3854,7 @@ export const listNamespaceInstanceItems = /*@__PURE__*/ /*#__PURE__*/ API.makePa
3860
3854
  },
3861
3855
  }));
3862
3856
  export const DeleteNamespaceInstanceItemRequest =
3863
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3857
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3864
3858
  name: Schema.String.pipe(T.HttpPath("name")),
3865
3859
  id: Schema.String.pipe(T.HttpPath("id")),
3866
3860
  itemId: Schema.String.pipe(T.HttpPath("itemId")),
@@ -3870,16 +3864,16 @@ export const DeleteNamespaceInstanceItemRequest =
3870
3864
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items/{itemId}",
3871
3865
  })));
3872
3866
  export const DeleteNamespaceInstanceItemResponse =
3873
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3867
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3874
3868
  key: Schema.String,
3875
3869
  }).pipe(T.ResponsePath("result")));
3876
- export const deleteNamespaceInstanceItem = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3870
+ export const deleteNamespaceInstanceItem = /*@__PURE__*/ API.make(() => ({
3877
3871
  input: DeleteNamespaceInstanceItemRequest,
3878
3872
  output: DeleteNamespaceInstanceItemResponse,
3879
3873
  errors: [],
3880
3874
  }));
3881
3875
  export const DownloadNamespaceInstanceItemRequest =
3882
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3876
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3883
3877
  name: Schema.String.pipe(T.HttpPath("name")),
3884
3878
  id: Schema.String.pipe(T.HttpPath("id")),
3885
3879
  itemId: Schema.String.pipe(T.HttpPath("itemId")),
@@ -3889,14 +3883,14 @@ export const DownloadNamespaceInstanceItemRequest =
3889
3883
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items/{itemId}/download",
3890
3884
  })));
3891
3885
  export const DownloadNamespaceInstanceItemResponse =
3892
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Unknown);
3893
- export const downloadNamespaceInstanceItem = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3886
+ /*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
3887
+ export const downloadNamespaceInstanceItem = /*@__PURE__*/ API.make(() => ({
3894
3888
  input: DownloadNamespaceInstanceItemRequest,
3895
3889
  output: DownloadNamespaceInstanceItemResponse,
3896
3890
  errors: [],
3897
3891
  }));
3898
3892
  export const UploadNamespaceInstanceItemRequest =
3899
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3893
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3900
3894
  name: Schema.String.pipe(T.HttpPath("name")),
3901
3895
  id: Schema.String.pipe(T.HttpPath("id")),
3902
3896
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -3907,7 +3901,7 @@ export const UploadNamespaceInstanceItemRequest =
3907
3901
  contentType: "multipart",
3908
3902
  })));
3909
3903
  export const UploadNamespaceInstanceItemResponse =
3910
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3904
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3911
3905
  id: Schema.String,
3912
3906
  checksum: Schema.String,
3913
3907
  chunksCount: Schema.Union([Schema.Number, Schema.Null]),
@@ -3950,13 +3944,13 @@ export const UploadNamespaceInstanceItemResponse =
3950
3944
  error: "error",
3951
3945
  }))
3952
3946
  .pipe(T.ResponsePath("result")));
3953
- export const uploadNamespaceInstanceItem = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3947
+ export const uploadNamespaceInstanceItem = /*@__PURE__*/ API.make(() => ({
3954
3948
  input: UploadNamespaceInstanceItemRequest,
3955
3949
  output: UploadNamespaceInstanceItemResponse,
3956
3950
  errors: [],
3957
3951
  }));
3958
3952
  export const ChunksNamespaceInstanceItemRequest =
3959
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3953
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3960
3954
  name: Schema.String.pipe(T.HttpPath("name")),
3961
3955
  id: Schema.String.pipe(T.HttpPath("id")),
3962
3956
  itemId: Schema.String.pipe(T.HttpPath("itemId")),
@@ -3968,14 +3962,14 @@ export const ChunksNamespaceInstanceItemRequest =
3968
3962
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items/{itemId}/chunks",
3969
3963
  })));
3970
3964
  export const ChunksNamespaceInstanceItemResponse =
3971
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Array(ItemChunksResponseItem).pipe(T.ResponsePath("result")));
3972
- export const chunksNamespaceInstanceItem = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3965
+ /*@__PURE__*/ Schema.suspend(() => Schema.Array(ItemChunksResponseItem).pipe(T.ResponsePath("result")));
3966
+ export const chunksNamespaceInstanceItem = /*@__PURE__*/ API.make(() => ({
3973
3967
  input: ChunksNamespaceInstanceItemRequest,
3974
3968
  output: ChunksNamespaceInstanceItemResponse,
3975
3969
  errors: [],
3976
3970
  }));
3977
3971
  export const LogsNamespaceInstanceItemRequest =
3978
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3972
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3979
3973
  name: Schema.String.pipe(T.HttpPath("name")),
3980
3974
  id: Schema.String.pipe(T.HttpPath("id")),
3981
3975
  itemId: Schema.String.pipe(T.HttpPath("itemId")),
@@ -3987,14 +3981,14 @@ export const LogsNamespaceInstanceItemRequest =
3987
3981
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items/{itemId}/logs",
3988
3982
  })));
3989
3983
  export const LogsNamespaceInstanceItemResponse =
3990
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Array(ItemLogsResponseItem).pipe(T.ResponsePath("result")));
3991
- export const logsNamespaceInstanceItem = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3984
+ /*@__PURE__*/ Schema.suspend(() => Schema.Array(ItemLogsResponseItem).pipe(T.ResponsePath("result")));
3985
+ export const logsNamespaceInstanceItem = /*@__PURE__*/ API.make(() => ({
3992
3986
  input: LogsNamespaceInstanceItemRequest,
3993
3987
  output: LogsNamespaceInstanceItemResponse,
3994
3988
  errors: [],
3995
3989
  }));
3996
3990
  export const SyncNamespaceInstanceItemRequest =
3997
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
3991
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3998
3992
  name: Schema.String.pipe(T.HttpPath("name")),
3999
3993
  id: Schema.String.pipe(T.HttpPath("id")),
4000
3994
  itemId: Schema.String.pipe(T.HttpPath("itemId")),
@@ -4009,7 +4003,7 @@ export const SyncNamespaceInstanceItemRequest =
4009
4003
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items/{itemId}",
4010
4004
  })));
4011
4005
  export const SyncNamespaceInstanceItemResponse =
4012
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4006
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4013
4007
  id: Schema.String,
4014
4008
  checksum: Schema.String,
4015
4009
  chunksCount: Schema.Union([Schema.Number, Schema.Null]),
@@ -4052,13 +4046,13 @@ export const SyncNamespaceInstanceItemResponse =
4052
4046
  error: "error",
4053
4047
  }))
4054
4048
  .pipe(T.ResponsePath("result")));
4055
- export const syncNamespaceInstanceItem = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4049
+ export const syncNamespaceInstanceItem = /*@__PURE__*/ API.make(() => ({
4056
4050
  input: SyncNamespaceInstanceItemRequest,
4057
4051
  output: SyncNamespaceInstanceItemResponse,
4058
4052
  errors: [],
4059
4053
  }));
4060
4054
  export const GetNamespaceInstanceJobRequest =
4061
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4055
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4062
4056
  name: Schema.String.pipe(T.HttpPath("name")),
4063
4057
  id: Schema.String.pipe(T.HttpPath("id")),
4064
4058
  jobId: Schema.String.pipe(T.HttpPath("jobId")),
@@ -4068,7 +4062,7 @@ export const GetNamespaceInstanceJobRequest =
4068
4062
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/jobs/{jobId}",
4069
4063
  })));
4070
4064
  export const GetNamespaceInstanceJobResponse =
4071
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4065
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4072
4066
  id: Schema.String,
4073
4067
  source: Schema.Union([
4074
4068
  Schema.Literals(["user", "schedule"]),
@@ -4090,13 +4084,13 @@ export const GetNamespaceInstanceJobResponse =
4090
4084
  startedAt: "started_at",
4091
4085
  }))
4092
4086
  .pipe(T.ResponsePath("result")));
4093
- export const getNamespaceInstanceJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4087
+ export const getNamespaceInstanceJob = /*@__PURE__*/ API.make(() => ({
4094
4088
  input: GetNamespaceInstanceJobRequest,
4095
4089
  output: GetNamespaceInstanceJobResponse,
4096
4090
  errors: [],
4097
4091
  }));
4098
4092
  export const ListNamespaceInstanceJobsRequest =
4099
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4093
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4100
4094
  name: Schema.String.pipe(T.HttpPath("name")),
4101
4095
  id: Schema.String.pipe(T.HttpPath("id")),
4102
4096
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -4107,11 +4101,11 @@ export const ListNamespaceInstanceJobsRequest =
4107
4101
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/jobs",
4108
4102
  })));
4109
4103
  export const ListNamespaceInstanceJobsResponse =
4110
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4104
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4111
4105
  result: Schema.Array(ListInstanceJobsResponseResult),
4112
4106
  resultInfo: Schema.optional(Schema.Union([ListInstancesResponseResultInfo, Schema.Null])),
4113
4107
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
4114
- export const listNamespaceInstanceJobs = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4108
+ export const listNamespaceInstanceJobs = /*@__PURE__*/ API.makePaginated(() => ({
4115
4109
  input: ListNamespaceInstanceJobsRequest,
4116
4110
  output: ListNamespaceInstanceJobsResponse,
4117
4111
  errors: [],
@@ -4124,7 +4118,7 @@ export const listNamespaceInstanceJobs = /*@__PURE__*/ /*#__PURE__*/ API.makePag
4124
4118
  },
4125
4119
  }));
4126
4120
  export const CreateNamespaceInstanceJobRequest =
4127
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4121
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4128
4122
  name: Schema.String.pipe(T.HttpPath("name")),
4129
4123
  id: Schema.String.pipe(T.HttpPath("id")),
4130
4124
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -4134,7 +4128,7 @@ export const CreateNamespaceInstanceJobRequest =
4134
4128
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/jobs",
4135
4129
  })));
4136
4130
  export const CreateNamespaceInstanceJobResponse =
4137
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4131
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4138
4132
  id: Schema.String,
4139
4133
  source: Schema.Union([
4140
4134
  Schema.Literals(["user", "schedule"]),
@@ -4156,13 +4150,13 @@ export const CreateNamespaceInstanceJobResponse =
4156
4150
  startedAt: "started_at",
4157
4151
  }))
4158
4152
  .pipe(T.ResponsePath("result")));
4159
- export const createNamespaceInstanceJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4153
+ export const createNamespaceInstanceJob = /*@__PURE__*/ API.make(() => ({
4160
4154
  input: CreateNamespaceInstanceJobRequest,
4161
4155
  output: CreateNamespaceInstanceJobResponse,
4162
4156
  errors: [],
4163
4157
  }));
4164
4158
  export const PatchNamespaceInstanceJobRequest =
4165
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4159
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4166
4160
  name: Schema.String.pipe(T.HttpPath("name")),
4167
4161
  id: Schema.String.pipe(T.HttpPath("id")),
4168
4162
  jobId: Schema.String.pipe(T.HttpPath("jobId")),
@@ -4173,7 +4167,7 @@ export const PatchNamespaceInstanceJobRequest =
4173
4167
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/jobs/{jobId}",
4174
4168
  })));
4175
4169
  export const PatchNamespaceInstanceJobResponse =
4176
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4170
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4177
4171
  id: Schema.String,
4178
4172
  source: Schema.Union([
4179
4173
  Schema.Literals(["user", "schedule"]),
@@ -4195,13 +4189,13 @@ export const PatchNamespaceInstanceJobResponse =
4195
4189
  startedAt: "started_at",
4196
4190
  }))
4197
4191
  .pipe(T.ResponsePath("result")));
4198
- export const patchNamespaceInstanceJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4192
+ export const patchNamespaceInstanceJob = /*@__PURE__*/ API.make(() => ({
4199
4193
  input: PatchNamespaceInstanceJobRequest,
4200
4194
  output: PatchNamespaceInstanceJobResponse,
4201
4195
  errors: [],
4202
4196
  }));
4203
4197
  export const LogsNamespaceInstanceJobRequest =
4204
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4198
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4205
4199
  name: Schema.String.pipe(T.HttpPath("name")),
4206
4200
  id: Schema.String.pipe(T.HttpPath("id")),
4207
4201
  jobId: Schema.String.pipe(T.HttpPath("jobId")),
@@ -4213,14 +4207,14 @@ export const LogsNamespaceInstanceJobRequest =
4213
4207
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/jobs/{jobId}/logs",
4214
4208
  })));
4215
4209
  export const LogsNamespaceInstanceJobResponse =
4216
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Array(JobLogsResponseItem).pipe(T.ResponsePath("result")));
4217
- export const logsNamespaceInstanceJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4210
+ /*@__PURE__*/ Schema.suspend(() => Schema.Array(JobLogsResponseItem).pipe(T.ResponsePath("result")));
4211
+ export const logsNamespaceInstanceJob = /*@__PURE__*/ API.make(() => ({
4218
4212
  input: LogsNamespaceInstanceJobRequest,
4219
4213
  output: LogsNamespaceInstanceJobResponse,
4220
4214
  errors: [],
4221
4215
  }));
4222
4216
  export const CreateOrUpdateNamespaceInstanceItemRequest =
4223
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4217
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4224
4218
  name: Schema.String.pipe(T.HttpPath("name")),
4225
4219
  id: Schema.String.pipe(T.HttpPath("id")),
4226
4220
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -4236,7 +4230,7 @@ export const CreateOrUpdateNamespaceInstanceItemRequest =
4236
4230
  path: "/accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items",
4237
4231
  })));
4238
4232
  export const CreateOrUpdateNamespaceInstanceItemResponse =
4239
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4233
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4240
4234
  id: Schema.String,
4241
4235
  checksum: Schema.String,
4242
4236
  chunksCount: Schema.Union([Schema.Number, Schema.Null]),
@@ -4279,12 +4273,12 @@ export const CreateOrUpdateNamespaceInstanceItemResponse =
4279
4273
  error: "error",
4280
4274
  }))
4281
4275
  .pipe(T.ResponsePath("result")));
4282
- export const createOrUpdateNamespaceInstanceItem = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4276
+ export const createOrUpdateNamespaceInstanceItem = /*@__PURE__*/ API.make(() => ({
4283
4277
  input: CreateOrUpdateNamespaceInstanceItemRequest,
4284
4278
  output: CreateOrUpdateNamespaceInstanceItemResponse,
4285
4279
  errors: [],
4286
4280
  }));
4287
- export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4281
+ export const ListTokensRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4288
4282
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4289
4283
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
4290
4284
  perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
@@ -4293,11 +4287,11 @@ export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
4293
4287
  method: "GET",
4294
4288
  path: "/accounts/{account_id}/ai-search/tokens",
4295
4289
  })));
4296
- export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4290
+ export const ListTokensResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4297
4291
  result: Schema.Array(ListTokensResponseResult),
4298
4292
  resultInfo: Schema.optional(Schema.Union([ListInstancesResponseResultInfo, Schema.Null])),
4299
4293
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
4300
- export const listTokens = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4294
+ export const listTokens = /*@__PURE__*/ API.makePaginated(() => ({
4301
4295
  input: ListTokensRequest,
4302
4296
  output: ListTokensResponse,
4303
4297
  errors: [InvalidRoute, Forbidden],
@@ -4309,7 +4303,7 @@ export const listTokens = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4309
4303
  pageSize: "perPage",
4310
4304
  },
4311
4305
  }));
4312
- export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4306
+ export const CreateTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4313
4307
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4314
4308
  cfApiId: Schema.String,
4315
4309
  cfApiKey: Schema.String,
@@ -4324,7 +4318,7 @@ export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
4324
4318
  method: "POST",
4325
4319
  path: "/accounts/{account_id}/ai-search/tokens",
4326
4320
  })));
4327
- export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4321
+ export const CreateTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4328
4322
  id: Schema.String,
4329
4323
  cfApiId: Schema.String,
4330
4324
  createdAt: Schema.String,
@@ -4347,7 +4341,7 @@ export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
4347
4341
  modifiedBy: "modified_by",
4348
4342
  }))
4349
4343
  .pipe(T.ResponsePath("result")));
4350
- export const createToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4344
+ export const createToken = /*@__PURE__*/ API.make(() => ({
4351
4345
  input: CreateTokenRequest,
4352
4346
  output: CreateTokenResponse,
4353
4347
  errors: [
@@ -4358,7 +4352,7 @@ export const createToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4358
4352
  Forbidden,
4359
4353
  ],
4360
4354
  }));
4361
- export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4355
+ export const UpdateTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4362
4356
  id: Schema.String.pipe(T.HttpPath("id")),
4363
4357
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4364
4358
  cfApiId: Schema.String,
@@ -4374,7 +4368,7 @@ export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
4374
4368
  method: "PUT",
4375
4369
  path: "/accounts/{account_id}/ai-search/tokens/{id}",
4376
4370
  })));
4377
- export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4371
+ export const UpdateTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4378
4372
  id: Schema.String,
4379
4373
  cfApiId: Schema.String,
4380
4374
  createdAt: Schema.String,
@@ -4397,7 +4391,7 @@ export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
4397
4391
  modifiedBy: "modified_by",
4398
4392
  }))
4399
4393
  .pipe(T.ResponsePath("result")));
4400
- export const updateToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4394
+ export const updateToken = /*@__PURE__*/ API.make(() => ({
4401
4395
  input: UpdateTokenRequest,
4402
4396
  output: UpdateTokenResponse,
4403
4397
  errors: [
@@ -4409,15 +4403,15 @@ export const updateToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4409
4403
  InvalidTokenCredentials,
4410
4404
  ],
4411
4405
  }));
4412
- export const DeleteTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4406
+ export const DeleteTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4413
4407
  id: Schema.String.pipe(T.HttpPath("id")),
4414
4408
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4415
4409
  }).pipe(T.Http({
4416
4410
  method: "DELETE",
4417
4411
  path: "/accounts/{account_id}/ai-search/tokens/{id}",
4418
4412
  })));
4419
- export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Unknown.pipe(T.ResponsePath("result")));
4420
- export const deleteToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4413
+ export const DeleteTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Unknown.pipe(T.ResponsePath("result")));
4414
+ export const deleteToken = /*@__PURE__*/ API.make(() => ({
4421
4415
  input: DeleteTokenRequest,
4422
4416
  output: DeleteTokenResponse,
4423
4417
  errors: [
@@ -4429,14 +4423,14 @@ export const deleteToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4429
4423
  Forbidden,
4430
4424
  ],
4431
4425
  }));
4432
- export const ReadTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4426
+ export const ReadTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4433
4427
  id: Schema.String.pipe(T.HttpPath("id")),
4434
4428
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4435
4429
  }).pipe(T.Http({
4436
4430
  method: "GET",
4437
4431
  path: "/accounts/{account_id}/ai-search/tokens/{id}",
4438
4432
  })));
4439
- export const ReadTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
4433
+ export const ReadTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4440
4434
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4441
4435
  cfApiId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4442
4436
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -4459,7 +4453,7 @@ export const ReadTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
4459
4453
  modifiedBy: "modified_by",
4460
4454
  }))
4461
4455
  .pipe(T.ResponsePath("result")));
4462
- export const readToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4456
+ export const readToken = /*@__PURE__*/ API.make(() => ({
4463
4457
  input: ReadTokenRequest,
4464
4458
  output: ReadTokenResponse,
4465
4459
  errors: [ValidationError, NotFound, InvalidRoute, TokenNotFound, Forbidden],