@distilled.cloud/cloudflare 0.29.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (458) hide show
  1. package/lib/services/abuse-reports.d.ts.map +1 -1
  2. package/lib/services/abuse-reports.js +26 -26
  3. package/lib/services/abuse-reports.js.map +1 -1
  4. package/lib/services/accounts.d.ts.map +1 -1
  5. package/lib/services/accounts.js +114 -123
  6. package/lib/services/accounts.js.map +1 -1
  7. package/lib/services/acm.d.ts.map +1 -1
  8. package/lib/services/acm.js +23 -23
  9. package/lib/services/acm.js.map +1 -1
  10. package/lib/services/addressing.d.ts.map +1 -1
  11. package/lib/services/addressing.js +132 -132
  12. package/lib/services/addressing.js.map +1 -1
  13. package/lib/services/ai-gateway.d.ts.map +1 -1
  14. package/lib/services/ai-gateway.js +213 -207
  15. package/lib/services/ai-gateway.js.map +1 -1
  16. package/lib/services/ai-security.d.ts.map +1 -1
  17. package/lib/services/ai-security.js +13 -13
  18. package/lib/services/ai-security.js.map +1 -1
  19. package/lib/services/ai.d.ts.map +1 -1
  20. package/lib/services/ai.js +62 -62
  21. package/lib/services/ai.js.map +1 -1
  22. package/lib/services/aisearch.d.ts.map +1 -1
  23. package/lib/services/aisearch.js +187 -193
  24. package/lib/services/aisearch.js.map +1 -1
  25. package/lib/services/alerting.d.ts.map +1 -1
  26. package/lib/services/alerting.js +78 -78
  27. package/lib/services/alerting.js.map +1 -1
  28. package/lib/services/api-gateway.d.ts.map +1 -1
  29. package/lib/services/api-gateway.js +168 -177
  30. package/lib/services/api-gateway.js.map +1 -1
  31. package/lib/services/argo.js +12 -12
  32. package/lib/services/argo.js.map +1 -1
  33. package/lib/services/audit-logs.d.ts.map +1 -1
  34. package/lib/services/audit-logs.js +9 -9
  35. package/lib/services/audit-logs.js.map +1 -1
  36. package/lib/services/billing.d.ts.map +1 -1
  37. package/lib/services/billing.js +11 -11
  38. package/lib/services/billing.js.map +1 -1
  39. package/lib/services/bot-management.d.ts.map +1 -1
  40. package/lib/services/bot-management.js +18 -30
  41. package/lib/services/bot-management.js.map +1 -1
  42. package/lib/services/botnet-feed.d.ts.map +1 -1
  43. package/lib/services/botnet-feed.js +12 -12
  44. package/lib/services/botnet-feed.js.map +1 -1
  45. package/lib/services/brand-protection.d.ts.map +1 -1
  46. package/lib/services/brand-protection.js +59 -59
  47. package/lib/services/brand-protection.js.map +1 -1
  48. package/lib/services/browser-rendering.d.ts.map +1 -1
  49. package/lib/services/browser-rendering.js +103 -103
  50. package/lib/services/browser-rendering.js.map +1 -1
  51. package/lib/services/cache.d.ts.map +1 -1
  52. package/lib/services/cache.js +72 -72
  53. package/lib/services/cache.js.map +1 -1
  54. package/lib/services/calls.d.ts.map +1 -1
  55. package/lib/services/calls.js +31 -31
  56. package/lib/services/calls.js.map +1 -1
  57. package/lib/services/certificate-authorities.js +6 -6
  58. package/lib/services/certificate-authorities.js.map +1 -1
  59. package/lib/services/client-certificates.js +18 -18
  60. package/lib/services/client-certificates.js.map +1 -1
  61. package/lib/services/cloud-connector.d.ts.map +1 -1
  62. package/lib/services/cloud-connector.js +8 -8
  63. package/lib/services/cloud-connector.js.map +1 -1
  64. package/lib/services/cloudforce-one.d.ts.map +1 -1
  65. package/lib/services/cloudforce-one.js +178 -178
  66. package/lib/services/cloudforce-one.js.map +1 -1
  67. package/lib/services/connectivity.js +25 -25
  68. package/lib/services/connectivity.js.map +1 -1
  69. package/lib/services/containers.js +49 -49
  70. package/lib/services/containers.js.map +1 -1
  71. package/lib/services/content-scanning.d.ts.map +1 -1
  72. package/lib/services/content-scanning.js +29 -29
  73. package/lib/services/content-scanning.js.map +1 -1
  74. package/lib/services/csam-scanner.d.ts.map +1 -1
  75. package/lib/services/csam-scanner.js +8 -8
  76. package/lib/services/csam-scanner.js.map +1 -1
  77. package/lib/services/custom-certificates.d.ts.map +1 -1
  78. package/lib/services/custom-certificates.js +24 -24
  79. package/lib/services/custom-certificates.js.map +1 -1
  80. package/lib/services/custom-csrs.d.ts.map +1 -1
  81. package/lib/services/custom-csrs.js +22 -22
  82. package/lib/services/custom-csrs.js.map +1 -1
  83. package/lib/services/custom-hostnames.d.ts.map +1 -1
  84. package/lib/services/custom-hostnames.js +40 -40
  85. package/lib/services/custom-hostnames.js.map +1 -1
  86. package/lib/services/custom-nameservers.js +11 -11
  87. package/lib/services/custom-nameservers.js.map +1 -1
  88. package/lib/services/custom-pages.d.ts.map +1 -1
  89. package/lib/services/custom-pages.js +43 -43
  90. package/lib/services/custom-pages.js.map +1 -1
  91. package/lib/services/d1.d.ts +4 -4
  92. package/lib/services/d1.d.ts.map +1 -1
  93. package/lib/services/d1.js +69 -51
  94. package/lib/services/d1.js.map +1 -1
  95. package/lib/services/dcv-delegation.js +3 -3
  96. package/lib/services/dcv-delegation.js.map +1 -1
  97. package/lib/services/ddos-protection.js +126 -126
  98. package/lib/services/ddos-protection.js.map +1 -1
  99. package/lib/services/diagnostics.js +27 -27
  100. package/lib/services/diagnostics.js.map +1 -1
  101. package/lib/services/dls.d.ts.map +1 -1
  102. package/lib/services/dls.js +26 -26
  103. package/lib/services/dls.js.map +1 -1
  104. package/lib/services/dns-firewall.d.ts.map +1 -1
  105. package/lib/services/dns-firewall.js +34 -34
  106. package/lib/services/dns-firewall.js.map +1 -1
  107. package/lib/services/dns.d.ts.map +1 -1
  108. package/lib/services/dns.js +268 -268
  109. package/lib/services/dns.js.map +1 -1
  110. package/lib/services/durable-objects.d.ts.map +1 -1
  111. package/lib/services/durable-objects.js +11 -11
  112. package/lib/services/durable-objects.js.map +1 -1
  113. package/lib/services/email-auth.d.ts.map +1 -1
  114. package/lib/services/email-auth.js +13 -13
  115. package/lib/services/email-auth.js.map +1 -1
  116. package/lib/services/email-routing.d.ts.map +1 -1
  117. package/lib/services/email-routing.js +70 -70
  118. package/lib/services/email-routing.js.map +1 -1
  119. package/lib/services/email-security.d.ts.map +1 -1
  120. package/lib/services/email-security.js +195 -195
  121. package/lib/services/email-security.js.map +1 -1
  122. package/lib/services/email-sending.d.ts.map +1 -1
  123. package/lib/services/email-sending.js +28 -28
  124. package/lib/services/email-sending.js.map +1 -1
  125. package/lib/services/filters.d.ts.map +1 -1
  126. package/lib/services/filters.js +25 -25
  127. package/lib/services/filters.js.map +1 -1
  128. package/lib/services/firewall.d.ts.map +1 -1
  129. package/lib/services/firewall.js +149 -149
  130. package/lib/services/firewall.js.map +1 -1
  131. package/lib/services/flagship.d.ts.map +1 -1
  132. package/lib/services/flagship.js +52 -52
  133. package/lib/services/flagship.js.map +1 -1
  134. package/lib/services/fraud.js +8 -8
  135. package/lib/services/fraud.js.map +1 -1
  136. package/lib/services/google-tag-gateway.d.ts.map +1 -1
  137. package/lib/services/google-tag-gateway.js +7 -7
  138. package/lib/services/google-tag-gateway.js.map +1 -1
  139. package/lib/services/healthchecks.d.ts.map +1 -1
  140. package/lib/services/healthchecks.js +31 -31
  141. package/lib/services/healthchecks.js.map +1 -1
  142. package/lib/services/hostnames.d.ts.map +1 -1
  143. package/lib/services/hostnames.js +10 -10
  144. package/lib/services/hostnames.js.map +1 -1
  145. package/lib/services/hyperdrive.d.ts.map +1 -1
  146. package/lib/services/hyperdrive.js +32 -32
  147. package/lib/services/hyperdrive.js.map +1 -1
  148. package/lib/services/iam.d.ts.map +1 -1
  149. package/lib/services/iam.js +113 -113
  150. package/lib/services/iam.js.map +1 -1
  151. package/lib/services/images.d.ts.map +1 -1
  152. package/lib/services/images.js +59 -59
  153. package/lib/services/images.js.map +1 -1
  154. package/lib/services/intel.d.ts.map +1 -1
  155. package/lib/services/intel.js +102 -102
  156. package/lib/services/intel.js.map +1 -1
  157. package/lib/services/ips.js +5 -5
  158. package/lib/services/ips.js.map +1 -1
  159. package/lib/services/keyless-certificates.js +17 -17
  160. package/lib/services/keyless-certificates.js.map +1 -1
  161. package/lib/services/kv.d.ts.map +1 -1
  162. package/lib/services/kv.js +54 -54
  163. package/lib/services/kv.js.map +1 -1
  164. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  165. package/lib/services/leaked-credential-checks.js +22 -22
  166. package/lib/services/leaked-credential-checks.js.map +1 -1
  167. package/lib/services/load-balancers.d.ts.map +1 -1
  168. package/lib/services/load-balancers.js +139 -157
  169. package/lib/services/load-balancers.js.map +1 -1
  170. package/lib/services/logpush.d.ts.map +1 -1
  171. package/lib/services/logpush.js +69 -69
  172. package/lib/services/logpush.js.map +1 -1
  173. package/lib/services/logs.d.ts.map +1 -1
  174. package/lib/services/logs.js +58 -58
  175. package/lib/services/logs.js.map +1 -1
  176. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  177. package/lib/services/magic-cloud-networking.js +138 -168
  178. package/lib/services/magic-cloud-networking.js.map +1 -1
  179. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  180. package/lib/services/magic-network-monitoring.js +47 -65
  181. package/lib/services/magic-network-monitoring.js.map +1 -1
  182. package/lib/services/magic-transit.d.ts.map +1 -1
  183. package/lib/services/magic-transit.js +340 -364
  184. package/lib/services/magic-transit.js.map +1 -1
  185. package/lib/services/managed-transforms.js +11 -11
  186. package/lib/services/managed-transforms.js.map +1 -1
  187. package/lib/services/memberships.d.ts.map +1 -1
  188. package/lib/services/memberships.js +25 -25
  189. package/lib/services/memberships.js.map +1 -1
  190. package/lib/services/moq.d.ts.map +1 -1
  191. package/lib/services/moq.js +23 -23
  192. package/lib/services/moq.js.map +1 -1
  193. package/lib/services/mtls-certificates.d.ts.map +1 -1
  194. package/lib/services/mtls-certificates.js +17 -17
  195. package/lib/services/mtls-certificates.js.map +1 -1
  196. package/lib/services/network-interconnects.d.ts.map +1 -1
  197. package/lib/services/network-interconnects.js +56 -56
  198. package/lib/services/network-interconnects.js.map +1 -1
  199. package/lib/services/organizations.d.ts.map +1 -1
  200. package/lib/services/organizations.js +42 -42
  201. package/lib/services/organizations.js.map +1 -1
  202. package/lib/services/origin-ca-certificates.js +14 -14
  203. package/lib/services/origin-ca-certificates.js.map +1 -1
  204. package/lib/services/origin-post-quantum-encryption.js +6 -6
  205. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  206. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  207. package/lib/services/origin-tls-client-auth.js +52 -52
  208. package/lib/services/origin-tls-client-auth.js.map +1 -1
  209. package/lib/services/origin-tls-compliance-modes.js +12 -12
  210. package/lib/services/origin-tls-compliance-modes.js.map +1 -1
  211. package/lib/services/page-rules.d.ts.map +1 -1
  212. package/lib/services/page-rules.js +62 -62
  213. package/lib/services/page-rules.js.map +1 -1
  214. package/lib/services/page-shield.d.ts.map +1 -1
  215. package/lib/services/page-shield.js +45 -48
  216. package/lib/services/page-shield.js.map +1 -1
  217. package/lib/services/pages.d.ts.map +1 -1
  218. package/lib/services/pages.js +78 -78
  219. package/lib/services/pages.js.map +1 -1
  220. package/lib/services/pipelines.d.ts.map +1 -1
  221. package/lib/services/pipelines.js +102 -102
  222. package/lib/services/pipelines.js.map +1 -1
  223. package/lib/services/queues.d.ts.map +1 -1
  224. package/lib/services/queues.js +100 -103
  225. package/lib/services/queues.js.map +1 -1
  226. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  227. package/lib/services/r2-data-catalog.js +42 -42
  228. package/lib/services/r2-data-catalog.js.map +1 -1
  229. package/lib/services/r2.d.ts.map +1 -1
  230. package/lib/services/r2.js +190 -190
  231. package/lib/services/r2.js.map +1 -1
  232. package/lib/services/radar.d.ts.map +1 -1
  233. package/lib/services/radar.js +991 -1009
  234. package/lib/services/radar.js.map +1 -1
  235. package/lib/services/rate-limits.d.ts.map +1 -1
  236. package/lib/services/rate-limits.js +24 -24
  237. package/lib/services/rate-limits.js.map +1 -1
  238. package/lib/services/realtime-kit.d.ts.map +1 -1
  239. package/lib/services/realtime-kit.js +276 -276
  240. package/lib/services/realtime-kit.js.map +1 -1
  241. package/lib/services/registrar.d.ts.map +1 -1
  242. package/lib/services/registrar.js +28 -28
  243. package/lib/services/registrar.js.map +1 -1
  244. package/lib/services/request-tracers.d.ts.map +1 -1
  245. package/lib/services/request-tracers.js +7 -7
  246. package/lib/services/request-tracers.js.map +1 -1
  247. package/lib/services/resource-sharing.d.ts.map +1 -1
  248. package/lib/services/resource-sharing.js +49 -49
  249. package/lib/services/resource-sharing.js.map +1 -1
  250. package/lib/services/resource-tagging.d.ts.map +1 -1
  251. package/lib/services/resource-tagging.js +56 -56
  252. package/lib/services/resource-tagging.js.map +1 -1
  253. package/lib/services/rules.d.ts.map +1 -1
  254. package/lib/services/rules.js +50 -50
  255. package/lib/services/rules.js.map +1 -1
  256. package/lib/services/rulesets.d.ts +2 -2
  257. package/lib/services/rulesets.d.ts.map +1 -1
  258. package/lib/services/rulesets.js +226 -190
  259. package/lib/services/rulesets.js.map +1 -1
  260. package/lib/services/rum.d.ts.map +1 -1
  261. package/lib/services/rum.js +35 -35
  262. package/lib/services/rum.js.map +1 -1
  263. package/lib/services/schema-validation.d.ts.map +1 -1
  264. package/lib/services/schema-validation.js +43 -46
  265. package/lib/services/schema-validation.js.map +1 -1
  266. package/lib/services/secrets-store.d.ts.map +1 -1
  267. package/lib/services/secrets-store.js +41 -41
  268. package/lib/services/secrets-store.js.map +1 -1
  269. package/lib/services/security-center.d.ts.map +1 -1
  270. package/lib/services/security-center.js +54 -57
  271. package/lib/services/security-center.js.map +1 -1
  272. package/lib/services/security-txt.d.ts.map +1 -1
  273. package/lib/services/security-txt.js +12 -12
  274. package/lib/services/security-txt.js.map +1 -1
  275. package/lib/services/snippets.d.ts.map +1 -1
  276. package/lib/services/snippets.js +31 -31
  277. package/lib/services/snippets.js.map +1 -1
  278. package/lib/services/spectrum.d.ts.map +1 -1
  279. package/lib/services/spectrum.js +35 -35
  280. package/lib/services/spectrum.js.map +1 -1
  281. package/lib/services/speed.d.ts.map +1 -1
  282. package/lib/services/speed.js +41 -41
  283. package/lib/services/speed.js.map +1 -1
  284. package/lib/services/ssl.d.ts.map +1 -1
  285. package/lib/services/ssl.js +48 -48
  286. package/lib/services/ssl.js.map +1 -1
  287. package/lib/services/stream.d.ts.map +1 -1
  288. package/lib/services/stream.js +147 -147
  289. package/lib/services/stream.js.map +1 -1
  290. package/lib/services/tenant-custom-nameservers.js +11 -11
  291. package/lib/services/tenant-custom-nameservers.js.map +1 -1
  292. package/lib/services/tenants.d.ts.map +1 -1
  293. package/lib/services/tenants.js +28 -28
  294. package/lib/services/tenants.js.map +1 -1
  295. package/lib/services/token-validation.d.ts.map +1 -1
  296. package/lib/services/token-validation.js +56 -56
  297. package/lib/services/token-validation.js.map +1 -1
  298. package/lib/services/turnstile.d.ts.map +1 -1
  299. package/lib/services/turnstile.js +27 -54
  300. package/lib/services/turnstile.js.map +1 -1
  301. package/lib/services/url-normalization.js +9 -9
  302. package/lib/services/url-normalization.js.map +1 -1
  303. package/lib/services/url-scanner.d.ts.map +1 -1
  304. package/lib/services/url-scanner.js +120 -120
  305. package/lib/services/url-scanner.js.map +1 -1
  306. package/lib/services/user.d.ts.map +1 -1
  307. package/lib/services/user.js +95 -95
  308. package/lib/services/user.js.map +1 -1
  309. package/lib/services/vectorize.d.ts +10 -10
  310. package/lib/services/vectorize.d.ts.map +1 -1
  311. package/lib/services/vectorize.js +59 -57
  312. package/lib/services/vectorize.js.map +1 -1
  313. package/lib/services/vulnerability-scanner.d.ts.map +1 -1
  314. package/lib/services/vulnerability-scanner.js +95 -95
  315. package/lib/services/vulnerability-scanner.js.map +1 -1
  316. package/lib/services/waiting-rooms.d.ts.map +1 -1
  317. package/lib/services/waiting-rooms.js +81 -81
  318. package/lib/services/waiting-rooms.js.map +1 -1
  319. package/lib/services/web3.d.ts.map +1 -1
  320. package/lib/services/web3.js +39 -39
  321. package/lib/services/web3.js.map +1 -1
  322. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  323. package/lib/services/workers-for-platforms.js +139 -139
  324. package/lib/services/workers-for-platforms.js.map +1 -1
  325. package/lib/services/workers.d.ts.map +1 -1
  326. package/lib/services/workers.js +420 -420
  327. package/lib/services/workers.js.map +1 -1
  328. package/lib/services/workflows.d.ts.map +1 -1
  329. package/lib/services/workflows.js +88 -88
  330. package/lib/services/workflows.js.map +1 -1
  331. package/lib/services/zaraz.d.ts.map +1 -1
  332. package/lib/services/zaraz.js +36 -39
  333. package/lib/services/zaraz.js.map +1 -1
  334. package/lib/services/zero-trust.d.ts.map +1 -1
  335. package/lib/services/zero-trust.js +1765 -1771
  336. package/lib/services/zero-trust.js.map +1 -1
  337. package/lib/services/zones.d.ts.map +1 -1
  338. package/lib/services/zones.js +168 -168
  339. package/lib/services/zones.js.map +1 -1
  340. package/package.json +3 -2
  341. package/src/services/abuse-reports.ts +35 -36
  342. package/src/services/accounts.ts +714 -760
  343. package/src/services/acm.ts +115 -125
  344. package/src/services/addressing.ts +484 -512
  345. package/src/services/ai-gateway.ts +653 -672
  346. package/src/services/ai-security.ts +47 -53
  347. package/src/services/ai.ts +172 -185
  348. package/src/services/aisearch.ts +1814 -1861
  349. package/src/services/alerting.ts +710 -742
  350. package/src/services/api-gateway.ts +481 -508
  351. package/src/services/argo.ts +12 -12
  352. package/src/services/audit-logs.ts +45 -49
  353. package/src/services/billing.ts +121 -136
  354. package/src/services/bot-management.ts +122 -136
  355. package/src/services/botnet-feed.ts +68 -74
  356. package/src/services/brand-protection.ts +275 -294
  357. package/src/services/browser-rendering.ts +758 -769
  358. package/src/services/cache.ts +148 -158
  359. package/src/services/calls.ts +110 -120
  360. package/src/services/certificate-authorities.ts +6 -6
  361. package/src/services/client-certificates.ts +18 -18
  362. package/src/services/cloud-connector.ts +11 -12
  363. package/src/services/cloudforce-one.ts +589 -617
  364. package/src/services/connectivity.ts +25 -25
  365. package/src/services/containers.ts +49 -49
  366. package/src/services/content-scanning.ts +80 -89
  367. package/src/services/csam-scanner.ts +16 -17
  368. package/src/services/custom-certificates.ts +36 -38
  369. package/src/services/custom-csrs.ts +103 -105
  370. package/src/services/custom-hostnames.ts +44 -45
  371. package/src/services/custom-nameservers.ts +11 -11
  372. package/src/services/custom-pages.ts +173 -184
  373. package/src/services/d1.ts +335 -325
  374. package/src/services/dcv-delegation.ts +3 -3
  375. package/src/services/ddos-protection.ts +126 -126
  376. package/src/services/diagnostics.ts +27 -27
  377. package/src/services/dls.ts +82 -86
  378. package/src/services/dns-firewall.ts +65 -69
  379. package/src/services/dns.ts +1080 -1107
  380. package/src/services/durable-objects.ts +36 -38
  381. package/src/services/email-auth.ts +47 -52
  382. package/src/services/email-routing.ts +264 -288
  383. package/src/services/email-security.ts +205 -208
  384. package/src/services/email-sending.ts +94 -99
  385. package/src/services/filters.ts +97 -111
  386. package/src/services/firewall.ts +698 -753
  387. package/src/services/flagship.ts +321 -336
  388. package/src/services/fraud.ts +8 -8
  389. package/src/services/google-tag-gateway.ts +17 -19
  390. package/src/services/healthchecks.ts +269 -286
  391. package/src/services/hostnames.ts +94 -99
  392. package/src/services/hyperdrive.ts +310 -324
  393. package/src/services/iam.ts +205 -212
  394. package/src/services/images.ts +138 -150
  395. package/src/services/intel.ts +248 -261
  396. package/src/services/ips.ts +5 -5
  397. package/src/services/keyless-certificates.ts +17 -17
  398. package/src/services/kv.ts +106 -110
  399. package/src/services/leaked-credential-checks.ts +49 -53
  400. package/src/services/load-balancers.ts +1119 -1212
  401. package/src/services/logpush.ts +298 -313
  402. package/src/services/logs.ts +74 -77
  403. package/src/services/magic-cloud-networking.ts +1219 -1311
  404. package/src/services/magic-network-monitoring.ts +647 -685
  405. package/src/services/magic-transit.ts +1988 -2119
  406. package/src/services/managed-transforms.ts +11 -11
  407. package/src/services/memberships.ts +101 -105
  408. package/src/services/moq.ts +100 -110
  409. package/src/services/mtls-certificates.ts +30 -32
  410. package/src/services/network-interconnects.ts +137 -145
  411. package/src/services/organizations.ts +189 -192
  412. package/src/services/origin-ca-certificates.ts +14 -14
  413. package/src/services/origin-post-quantum-encryption.ts +6 -6
  414. package/src/services/origin-tls-client-auth.ts +219 -236
  415. package/src/services/origin-tls-compliance-modes.ts +12 -12
  416. package/src/services/page-rules.ts +365 -373
  417. package/src/services/page-shield.ts +489 -528
  418. package/src/services/pages.ts +309 -319
  419. package/src/services/pipelines.ts +534 -573
  420. package/src/services/queues.ts +598 -635
  421. package/src/services/r2-data-catalog.ts +59 -60
  422. package/src/services/r2.ts +654 -689
  423. package/src/services/radar.ts +3395 -3487
  424. package/src/services/rate-limits.ts +81 -93
  425. package/src/services/realtime-kit.ts +386 -399
  426. package/src/services/registrar.ts +90 -96
  427. package/src/services/request-tracers.ts +41 -43
  428. package/src/services/resource-sharing.ts +293 -305
  429. package/src/services/resource-tagging.ts +354 -366
  430. package/src/services/rules.ts +272 -292
  431. package/src/services/rulesets.ts +1214 -1116
  432. package/src/services/rum.ts +252 -273
  433. package/src/services/schema-validation.ts +284 -305
  434. package/src/services/secrets-store.ts +130 -138
  435. package/src/services/security-center.ts +64 -69
  436. package/src/services/security-txt.ts +48 -50
  437. package/src/services/snippets.ts +132 -142
  438. package/src/services/spectrum.ts +75 -80
  439. package/src/services/speed.ts +385 -397
  440. package/src/services/ssl.ts +64 -65
  441. package/src/services/stream.ts +658 -718
  442. package/src/services/tenant-custom-nameservers.ts +11 -11
  443. package/src/services/tenants.ts +86 -93
  444. package/src/services/token-validation.ts +145 -151
  445. package/src/services/turnstile.ts +344 -381
  446. package/src/services/url-normalization.ts +9 -9
  447. package/src/services/url-scanner.ts +393 -399
  448. package/src/services/user.ts +479 -503
  449. package/src/services/vectorize.ts +215 -230
  450. package/src/services/vulnerability-scanner.ts +145 -148
  451. package/src/services/waiting-rooms.ts +759 -825
  452. package/src/services/web3.ts +186 -197
  453. package/src/services/workers-for-platforms.ts +408 -432
  454. package/src/services/workers.ts +1175 -1239
  455. package/src/services/workflows.ts +585 -616
  456. package/src/services/zaraz.ts +168 -192
  457. package/src/services/zero-trust.ts +2965 -3074
  458. package/src/services/zones.ts +753 -785
@@ -103,29 +103,28 @@ interface ListDatabasesResponseResult {
103
103
  uuid?: string | null;
104
104
  version?: string | null;
105
105
  }
106
- const ListDatabasesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
107
- () =>
108
- Schema.Struct({
109
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
110
- jurisdiction: Schema.optional(
111
- Schema.Union([
112
- Schema.Literal("eu"),
113
- Schema.Literal("fedramp"),
114
- Schema.Null,
115
- ]),
116
- ),
117
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
118
- uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
119
- version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
120
- }).pipe(
121
- Schema.encodeKeys({
122
- createdAt: "created_at",
123
- jurisdiction: "jurisdiction",
124
- name: "name",
125
- uuid: "uuid",
126
- version: "version",
127
- }),
106
+ const ListDatabasesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
107
+ Schema.Struct({
108
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
109
+ jurisdiction: Schema.optional(
110
+ Schema.Union([
111
+ Schema.Literal("eu"),
112
+ Schema.Literal("fedramp"),
113
+ Schema.Null,
114
+ ]),
128
115
  ),
116
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
117
+ uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
118
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
119
+ }).pipe(
120
+ Schema.encodeKeys({
121
+ createdAt: "created_at",
122
+ jurisdiction: "jurisdiction",
123
+ name: "name",
124
+ uuid: "uuid",
125
+ version: "version",
126
+ }),
127
+ ),
129
128
  ) as unknown as Schema.Codec<ListDatabasesResponseResult>;
130
129
 
131
130
  interface ListDatabasesResponseResultInfo {
@@ -135,7 +134,7 @@ interface ListDatabasesResponseResultInfo {
135
134
  totalCount?: number | null;
136
135
  }
137
136
  const ListDatabasesResponseResultInfo =
138
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
137
+ /*@__PURE__*/ Schema.suspend(() =>
139
138
  Schema.Struct({
140
139
  count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
141
140
  page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -155,7 +154,7 @@ interface ReadReplication {
155
154
  /** The read replication mode for the database. Mode 'auto' denotes that D1 creates replicas and automatically places them around the world. Mode 'disabled' denotes that no database replicas are used. */
156
155
  mode: "auto" | "disabled" | (string & {});
157
156
  }
158
- const ReadReplication = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
157
+ const ReadReplication = /*@__PURE__*/ Schema.suspend(() =>
159
158
  Schema.Struct({
160
159
  mode: Schema.Union([Schema.Literals(["auto", "disabled"]), Schema.String]),
161
160
  }),
@@ -169,7 +168,7 @@ interface DumpOptions {
169
168
  /** Filter the export to just one or more tables. Passing an empty array is the same as not passing anything and means: export all tables. */
170
169
  tables?: string[] | null;
171
170
  }
172
- const DumpOptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
171
+ const DumpOptions = /*@__PURE__*/ Schema.suspend(() =>
173
172
  Schema.Struct({
174
173
  noData: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
175
174
  noSchema: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -191,7 +190,7 @@ interface Result {
191
190
  /** The URL to download the exported SQL. Available for one hour. */
192
191
  signedUrl?: string | null;
193
192
  }
194
- const Result = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
193
+ const Result = /*@__PURE__*/ Schema.suspend(() =>
195
194
  Schema.Struct({
196
195
  filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
197
196
  signedUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -202,7 +201,7 @@ interface Timings {
202
201
  /** The duration of the SQL query execution inside the database. Does not include any network communication. */
203
202
  sqlDurationMs?: number | null;
204
203
  }
205
- const Timings = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
204
+ const Timings = /*@__PURE__*/ Schema.suspend(() =>
206
205
  Schema.Struct({
207
206
  sqlDurationMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
208
207
  }).pipe(Schema.encodeKeys({ sqlDurationMs: "sql_duration_ms" })),
@@ -240,7 +239,7 @@ interface Meta {
240
239
  /** Various durations for the query. */
241
240
  timings?: { sqlDurationMs?: number | null } | null;
242
241
  }
243
- const Meta = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
242
+ const Meta = /*@__PURE__*/ Schema.suspend(() =>
244
243
  Schema.Struct({
245
244
  changedDb: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
246
245
  changes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -307,7 +306,7 @@ interface Result2 {
307
306
  /** The total number of queries that were executed during the import. */
308
307
  numQueries?: number | null;
309
308
  }
310
- const Result2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
309
+ const Result2 = /*@__PURE__*/ Schema.suspend(() =>
311
310
  Schema.Struct({
312
311
  finalBookmark: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
313
312
  meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
@@ -324,13 +323,23 @@ const Result2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
324
323
  interface Batch {
325
324
  /** Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch. */
326
325
  sql: string;
327
- params?: string[] | null;
326
+ params?: (string | number | null | number[])[] | null;
328
327
  }
329
- const Batch = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
328
+ const Batch = /*@__PURE__*/ Schema.suspend(() =>
330
329
  Schema.Struct({
331
330
  sql: Schema.String,
332
331
  params: Schema.optional(
333
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
332
+ Schema.Union([
333
+ Schema.Array(
334
+ Schema.Union([
335
+ Schema.String,
336
+ Schema.Number,
337
+ Schema.Null,
338
+ Schema.Array(Schema.Number),
339
+ ]),
340
+ ),
341
+ Schema.Null,
342
+ ]),
334
343
  ),
335
344
  }),
336
345
  ) as unknown as Schema.Codec<Batch>;
@@ -360,22 +369,21 @@ interface QueryDatabaseResponseResult {
360
369
  results?: unknown[] | null;
361
370
  success?: boolean | null;
362
371
  }
363
- const QueryDatabaseResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
364
- () =>
365
- Schema.Struct({
366
- meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
367
- results: Schema.optional(
368
- Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
369
- ),
370
- success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
371
- }),
372
+ const QueryDatabaseResponseResult = /*@__PURE__*/ Schema.suspend(() =>
373
+ Schema.Struct({
374
+ meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
375
+ results: Schema.optional(
376
+ Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
377
+ ),
378
+ success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
379
+ }),
372
380
  ) as unknown as Schema.Codec<QueryDatabaseResponseResult>;
373
381
 
374
382
  interface Results {
375
383
  columns?: string[] | null;
376
384
  rows?: unknown[][] | null;
377
385
  }
378
- const Results = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
386
+ const Results = /*@__PURE__*/ Schema.suspend(() =>
379
387
  Schema.Struct({
380
388
  columns: Schema.optional(
381
389
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
@@ -411,13 +419,12 @@ interface RawDatabaseResponseResult {
411
419
  results?: { columns?: string[] | null; rows?: unknown[][] | null } | null;
412
420
  success?: boolean | null;
413
421
  }
414
- const RawDatabaseResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
415
- () =>
416
- Schema.Struct({
417
- meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
418
- results: Schema.optional(Schema.Union([Results, Schema.Null])),
419
- success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
420
- }),
422
+ const RawDatabaseResponseResult = /*@__PURE__*/ Schema.suspend(() =>
423
+ Schema.Struct({
424
+ meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
425
+ results: Schema.optional(Schema.Union([Results, Schema.Null])),
426
+ success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
427
+ }),
421
428
  ) as unknown as Schema.Codec<RawDatabaseResponseResult>;
422
429
 
423
430
  // =============================================================================
@@ -433,7 +440,7 @@ export interface GetBookmarkDatabaseTimeTravelRequest {
433
440
  }
434
441
 
435
442
  export const GetBookmarkDatabaseTimeTravelRequest =
436
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
443
+ /*@__PURE__*/ Schema.suspend(() =>
437
444
  Schema.Struct({
438
445
  databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
439
446
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -452,7 +459,7 @@ export interface GetBookmarkDatabaseTimeTravelResponse {
452
459
  }
453
460
 
454
461
  export const GetBookmarkDatabaseTimeTravelResponse =
455
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
462
+ /*@__PURE__*/ Schema.suspend(() =>
456
463
  Schema.Struct({
457
464
  bookmark: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
458
465
  }).pipe(T.ResponsePath("result")),
@@ -470,7 +477,7 @@ export const getBookmarkDatabaseTimeTravel: API.OperationMethod<
470
477
  GetBookmarkDatabaseTimeTravelResponse,
471
478
  GetBookmarkDatabaseTimeTravelError,
472
479
  Credentials | HttpClient.HttpClient
473
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
480
+ > = /*@__PURE__*/ API.make(() => ({
474
481
  input: GetBookmarkDatabaseTimeTravelRequest,
475
482
  output: GetBookmarkDatabaseTimeTravelResponse,
476
483
  errors: [
@@ -494,16 +501,15 @@ export interface ListDatabasesRequest {
494
501
  name?: string;
495
502
  }
496
503
 
497
- export const ListDatabasesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
498
- () =>
499
- Schema.Struct({
500
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
501
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
502
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
503
- name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
504
- }).pipe(
505
- T.Http({ method: "GET", path: "/accounts/{account_id}/d1/database" }),
506
- ),
504
+ export const ListDatabasesRequest = /*@__PURE__*/ Schema.suspend(() =>
505
+ Schema.Struct({
506
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
507
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
508
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
509
+ name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
510
+ }).pipe(
511
+ T.Http({ method: "GET", path: "/accounts/{account_id}/d1/database" }),
512
+ ),
507
513
  ) as unknown as Schema.Codec<ListDatabasesRequest>;
508
514
 
509
515
  export interface ListDatabasesResponse {
@@ -522,14 +528,13 @@ export interface ListDatabasesResponse {
522
528
  } | null;
523
529
  }
524
530
 
525
- export const ListDatabasesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
526
- () =>
527
- Schema.Struct({
528
- result: Schema.Array(ListDatabasesResponseResult),
529
- resultInfo: Schema.optional(
530
- Schema.Union([ListDatabasesResponseResultInfo, Schema.Null]),
531
- ),
532
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
531
+ export const ListDatabasesResponse = /*@__PURE__*/ Schema.suspend(() =>
532
+ Schema.Struct({
533
+ result: Schema.Array(ListDatabasesResponseResult),
534
+ resultInfo: Schema.optional(
535
+ Schema.Union([ListDatabasesResponseResultInfo, Schema.Null]),
536
+ ),
537
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
533
538
  ) as unknown as Schema.Codec<ListDatabasesResponse>;
534
539
 
535
540
  export type ListDatabasesError = DefaultErrors;
@@ -539,7 +544,7 @@ export const listDatabases: API.PaginatedOperationMethod<
539
544
  ListDatabasesResponse,
540
545
  ListDatabasesError,
541
546
  Credentials | HttpClient.HttpClient
542
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
547
+ > = /*@__PURE__*/ API.makePaginated(() => ({
543
548
  input: ListDatabasesRequest,
544
549
  output: ListDatabasesResponse,
545
550
  errors: [],
@@ -575,35 +580,34 @@ export interface GetDatabaseRequest {
575
580
  )[];
576
581
  }
577
582
 
578
- export const GetDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
579
- () =>
580
- Schema.Struct({
581
- databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
582
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
583
- fields: Schema.optional(
584
- Schema.Array(
585
- Schema.Union([
586
- Schema.Literals([
587
- "uuid",
588
- "name",
589
- "created_at",
590
- "version",
591
- "jurisdiction",
592
- "num_tables",
593
- "file_size",
594
- "running_in_region",
595
- "read_replication",
596
- ]),
597
- Schema.String,
583
+ export const GetDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
584
+ Schema.Struct({
585
+ databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
586
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
587
+ fields: Schema.optional(
588
+ Schema.Array(
589
+ Schema.Union([
590
+ Schema.Literals([
591
+ "uuid",
592
+ "name",
593
+ "created_at",
594
+ "version",
595
+ "jurisdiction",
596
+ "num_tables",
597
+ "file_size",
598
+ "running_in_region",
599
+ "read_replication",
598
600
  ]),
599
- ),
600
- ).pipe(T.HttpQuery("fields")),
601
- }).pipe(
602
- T.Http({
603
- method: "GET",
604
- path: "/accounts/{account_id}/d1/database/{databaseId}",
605
- }),
606
- ),
601
+ Schema.String,
602
+ ]),
603
+ ),
604
+ ).pipe(T.HttpQuery("fields")),
605
+ }).pipe(
606
+ T.Http({
607
+ method: "GET",
608
+ path: "/accounts/{account_id}/d1/database/{databaseId}",
609
+ }),
610
+ ),
607
611
  ) as unknown as Schema.Codec<GetDatabaseRequest>;
608
612
 
609
613
  export interface GetDatabaseResponse {
@@ -623,39 +627,38 @@ export interface GetDatabaseResponse {
623
627
  version?: string | null;
624
628
  }
625
629
 
626
- export const GetDatabaseResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
627
- () =>
628
- Schema.Struct({
629
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
630
- fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
631
- jurisdiction: Schema.optional(
632
- Schema.Union([
633
- Schema.Literal("eu"),
634
- Schema.Literal("fedramp"),
635
- Schema.Null,
636
- ]),
637
- ),
638
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
639
- numTables: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
640
- readReplication: Schema.optional(
641
- Schema.Union([ReadReplication, Schema.Null]),
642
- ),
643
- uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
644
- version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
645
- })
646
- .pipe(
647
- Schema.encodeKeys({
648
- createdAt: "created_at",
649
- fileSize: "file_size",
650
- jurisdiction: "jurisdiction",
651
- name: "name",
652
- numTables: "num_tables",
653
- readReplication: "read_replication",
654
- uuid: "uuid",
655
- version: "version",
656
- }),
657
- )
658
- .pipe(T.ResponsePath("result")),
630
+ export const GetDatabaseResponse = /*@__PURE__*/ Schema.suspend(() =>
631
+ Schema.Struct({
632
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
633
+ fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
634
+ jurisdiction: Schema.optional(
635
+ Schema.Union([
636
+ Schema.Literal("eu"),
637
+ Schema.Literal("fedramp"),
638
+ Schema.Null,
639
+ ]),
640
+ ),
641
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
642
+ numTables: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
643
+ readReplication: Schema.optional(
644
+ Schema.Union([ReadReplication, Schema.Null]),
645
+ ),
646
+ uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
647
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
648
+ })
649
+ .pipe(
650
+ Schema.encodeKeys({
651
+ createdAt: "created_at",
652
+ fileSize: "file_size",
653
+ jurisdiction: "jurisdiction",
654
+ name: "name",
655
+ numTables: "num_tables",
656
+ readReplication: "read_replication",
657
+ uuid: "uuid",
658
+ version: "version",
659
+ }),
660
+ )
661
+ .pipe(T.ResponsePath("result")),
659
662
  ) as unknown as Schema.Codec<GetDatabaseResponse>;
660
663
 
661
664
  export type GetDatabaseError =
@@ -669,7 +672,7 @@ export const getDatabase: API.OperationMethod<
669
672
  GetDatabaseResponse,
670
673
  GetDatabaseError,
671
674
  Credentials | HttpClient.HttpClient
672
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
675
+ > = /*@__PURE__*/ API.make(() => ({
673
676
  input: GetDatabaseRequest,
674
677
  output: GetDatabaseResponse,
675
678
  errors: [InvalidObjectIdentifier, DatabaseNotFound, UnknownError],
@@ -695,30 +698,29 @@ export interface CreateDatabaseRequest {
695
698
  readReplication?: { mode: "auto" | "disabled" | (string & {}) };
696
699
  }
697
700
 
698
- export const CreateDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
699
- () =>
700
- Schema.Struct({
701
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
702
- name: Schema.String,
703
- jurisdiction: Schema.optional(
704
- Schema.Union([Schema.Literals(["eu", "fedramp"]), Schema.String]),
705
- ),
706
- primaryLocationHint: Schema.optional(
707
- Schema.Union([
708
- Schema.Literals(["wnam", "enam", "weur", "eeur", "apac", "oc"]),
709
- Schema.String,
710
- ]),
711
- ),
712
- readReplication: Schema.optional(ReadReplication),
713
- }).pipe(
714
- Schema.encodeKeys({
715
- name: "name",
716
- jurisdiction: "jurisdiction",
717
- primaryLocationHint: "primary_location_hint",
718
- readReplication: "read_replication",
719
- }),
720
- T.Http({ method: "POST", path: "/accounts/{account_id}/d1/database" }),
701
+ export const CreateDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
702
+ Schema.Struct({
703
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
704
+ name: Schema.String,
705
+ jurisdiction: Schema.optional(
706
+ Schema.Union([Schema.Literals(["eu", "fedramp"]), Schema.String]),
721
707
  ),
708
+ primaryLocationHint: Schema.optional(
709
+ Schema.Union([
710
+ Schema.Literals(["wnam", "enam", "weur", "eeur", "apac", "oc"]),
711
+ Schema.String,
712
+ ]),
713
+ ),
714
+ readReplication: Schema.optional(ReadReplication),
715
+ }).pipe(
716
+ Schema.encodeKeys({
717
+ name: "name",
718
+ jurisdiction: "jurisdiction",
719
+ primaryLocationHint: "primary_location_hint",
720
+ readReplication: "read_replication",
721
+ }),
722
+ T.Http({ method: "POST", path: "/accounts/{account_id}/d1/database" }),
723
+ ),
722
724
  ) as unknown as Schema.Codec<CreateDatabaseRequest>;
723
725
 
724
726
  export interface CreateDatabaseResponse {
@@ -739,7 +741,7 @@ export interface CreateDatabaseResponse {
739
741
  }
740
742
 
741
743
  export const CreateDatabaseResponse =
742
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
744
+ /*@__PURE__*/ Schema.suspend(() =>
743
745
  Schema.Struct({
744
746
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
745
747
  fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -784,7 +786,7 @@ export const createDatabase: API.OperationMethod<
784
786
  CreateDatabaseResponse,
785
787
  CreateDatabaseError,
786
788
  Credentials | HttpClient.HttpClient
787
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
789
+ > = /*@__PURE__*/ API.make(() => ({
788
790
  input: CreateDatabaseRequest,
789
791
  output: CreateDatabaseResponse,
790
792
  errors: [InvalidObjectIdentifier, InvalidProperty, DatabaseAlreadyExists],
@@ -798,19 +800,18 @@ export interface UpdateDatabaseRequest {
798
800
  readReplication: { mode: "auto" | "disabled" | (string & {}) };
799
801
  }
800
802
 
801
- export const UpdateDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
802
- () =>
803
- Schema.Struct({
804
- databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
805
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
806
- readReplication: ReadReplication,
807
- }).pipe(
808
- Schema.encodeKeys({ readReplication: "read_replication" }),
809
- T.Http({
810
- method: "PUT",
811
- path: "/accounts/{account_id}/d1/database/{databaseId}",
812
- }),
813
- ),
803
+ export const UpdateDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
804
+ Schema.Struct({
805
+ databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
806
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
807
+ readReplication: ReadReplication,
808
+ }).pipe(
809
+ Schema.encodeKeys({ readReplication: "read_replication" }),
810
+ T.Http({
811
+ method: "PUT",
812
+ path: "/accounts/{account_id}/d1/database/{databaseId}",
813
+ }),
814
+ ),
814
815
  ) as unknown as Schema.Codec<UpdateDatabaseRequest>;
815
816
 
816
817
  export interface UpdateDatabaseResponse {
@@ -831,7 +832,7 @@ export interface UpdateDatabaseResponse {
831
832
  }
832
833
 
833
834
  export const UpdateDatabaseResponse =
834
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
835
+ /*@__PURE__*/ Schema.suspend(() =>
835
836
  Schema.Struct({
836
837
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
837
838
  fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -876,7 +877,7 @@ export const updateDatabase: API.OperationMethod<
876
877
  UpdateDatabaseResponse,
877
878
  UpdateDatabaseError,
878
879
  Credentials | HttpClient.HttpClient
879
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
880
+ > = /*@__PURE__*/ API.make(() => ({
880
881
  input: UpdateDatabaseRequest,
881
882
  output: UpdateDatabaseResponse,
882
883
  errors: [InvalidObjectIdentifier, InternalError, DatabaseNotFound],
@@ -890,19 +891,18 @@ export interface PatchDatabaseRequest {
890
891
  readReplication?: { mode: "auto" | "disabled" | (string & {}) };
891
892
  }
892
893
 
893
- export const PatchDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
894
- () =>
895
- Schema.Struct({
896
- databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
897
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
898
- readReplication: Schema.optional(ReadReplication),
899
- }).pipe(
900
- Schema.encodeKeys({ readReplication: "read_replication" }),
901
- T.Http({
902
- method: "PATCH",
903
- path: "/accounts/{account_id}/d1/database/{databaseId}",
904
- }),
905
- ),
894
+ export const PatchDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
895
+ Schema.Struct({
896
+ databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
897
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
898
+ readReplication: Schema.optional(ReadReplication),
899
+ }).pipe(
900
+ Schema.encodeKeys({ readReplication: "read_replication" }),
901
+ T.Http({
902
+ method: "PATCH",
903
+ path: "/accounts/{account_id}/d1/database/{databaseId}",
904
+ }),
905
+ ),
906
906
  ) as unknown as Schema.Codec<PatchDatabaseRequest>;
907
907
 
908
908
  export interface PatchDatabaseResponse {
@@ -922,39 +922,38 @@ export interface PatchDatabaseResponse {
922
922
  version?: string | null;
923
923
  }
924
924
 
925
- export const PatchDatabaseResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
926
- () =>
927
- Schema.Struct({
928
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
929
- fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
930
- jurisdiction: Schema.optional(
931
- Schema.Union([
932
- Schema.Literal("eu"),
933
- Schema.Literal("fedramp"),
934
- Schema.Null,
935
- ]),
936
- ),
937
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
938
- numTables: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
939
- readReplication: Schema.optional(
940
- Schema.Union([ReadReplication, Schema.Null]),
941
- ),
942
- uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
943
- version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
944
- })
945
- .pipe(
946
- Schema.encodeKeys({
947
- createdAt: "created_at",
948
- fileSize: "file_size",
949
- jurisdiction: "jurisdiction",
950
- name: "name",
951
- numTables: "num_tables",
952
- readReplication: "read_replication",
953
- uuid: "uuid",
954
- version: "version",
955
- }),
956
- )
957
- .pipe(T.ResponsePath("result")),
925
+ export const PatchDatabaseResponse = /*@__PURE__*/ Schema.suspend(() =>
926
+ Schema.Struct({
927
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
928
+ fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
929
+ jurisdiction: Schema.optional(
930
+ Schema.Union([
931
+ Schema.Literal("eu"),
932
+ Schema.Literal("fedramp"),
933
+ Schema.Null,
934
+ ]),
935
+ ),
936
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
937
+ numTables: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
938
+ readReplication: Schema.optional(
939
+ Schema.Union([ReadReplication, Schema.Null]),
940
+ ),
941
+ uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
942
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
943
+ })
944
+ .pipe(
945
+ Schema.encodeKeys({
946
+ createdAt: "created_at",
947
+ fileSize: "file_size",
948
+ jurisdiction: "jurisdiction",
949
+ name: "name",
950
+ numTables: "num_tables",
951
+ readReplication: "read_replication",
952
+ uuid: "uuid",
953
+ version: "version",
954
+ }),
955
+ )
956
+ .pipe(T.ResponsePath("result")),
958
957
  ) as unknown as Schema.Codec<PatchDatabaseResponse>;
959
958
 
960
959
  export type PatchDatabaseError =
@@ -968,7 +967,7 @@ export const patchDatabase: API.OperationMethod<
968
967
  PatchDatabaseResponse,
969
968
  PatchDatabaseError,
970
969
  Credentials | HttpClient.HttpClient
971
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
970
+ > = /*@__PURE__*/ API.make(() => ({
972
971
  input: PatchDatabaseRequest,
973
972
  output: PatchDatabaseResponse,
974
973
  errors: [InvalidObjectIdentifier, InternalError, DatabaseNotFound],
@@ -980,23 +979,22 @@ export interface DeleteDatabaseRequest {
980
979
  accountId: string;
981
980
  }
982
981
 
983
- export const DeleteDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
984
- () =>
985
- Schema.Struct({
986
- databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
987
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
988
- }).pipe(
989
- T.Http({
990
- method: "DELETE",
991
- path: "/accounts/{account_id}/d1/database/{databaseId}",
992
- }),
993
- ),
982
+ export const DeleteDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
983
+ Schema.Struct({
984
+ databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
985
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
986
+ }).pipe(
987
+ T.Http({
988
+ method: "DELETE",
989
+ path: "/accounts/{account_id}/d1/database/{databaseId}",
990
+ }),
991
+ ),
994
992
  ) as unknown as Schema.Codec<DeleteDatabaseRequest>;
995
993
 
996
994
  export type DeleteDatabaseResponse = unknown;
997
995
 
998
996
  export const DeleteDatabaseResponse =
999
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
997
+ /*@__PURE__*/ Schema.suspend(() =>
1000
998
  Schema.Unknown.pipe(T.ResponsePath("result")),
1001
999
  ) as unknown as Schema.Codec<DeleteDatabaseResponse>;
1002
1000
 
@@ -1011,7 +1009,7 @@ export const deleteDatabase: API.OperationMethod<
1011
1009
  DeleteDatabaseResponse,
1012
1010
  DeleteDatabaseError,
1013
1011
  Credentials | HttpClient.HttpClient
1014
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1012
+ > = /*@__PURE__*/ API.make(() => ({
1015
1013
  input: DeleteDatabaseRequest,
1016
1014
  output: DeleteDatabaseResponse,
1017
1015
  errors: [InvalidObjectIdentifier, DatabaseNotFound, UnknownError],
@@ -1029,25 +1027,24 @@ export interface ExportDatabaseRequest {
1029
1027
  dumpOptions?: { noData?: boolean; noSchema?: boolean; tables?: string[] };
1030
1028
  }
1031
1029
 
1032
- export const ExportDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1033
- () =>
1034
- Schema.Struct({
1035
- databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
1036
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1037
- outputFormat: Schema.Literal("polling"),
1038
- currentBookmark: Schema.optional(Schema.String),
1039
- dumpOptions: Schema.optional(DumpOptions),
1040
- }).pipe(
1041
- Schema.encodeKeys({
1042
- outputFormat: "output_format",
1043
- currentBookmark: "current_bookmark",
1044
- dumpOptions: "dump_options",
1045
- }),
1046
- T.Http({
1047
- method: "POST",
1048
- path: "/accounts/{account_id}/d1/database/{databaseId}/export",
1049
- }),
1050
- ),
1030
+ export const ExportDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
1031
+ Schema.Struct({
1032
+ databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
1033
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1034
+ outputFormat: Schema.Literal("polling"),
1035
+ currentBookmark: Schema.optional(Schema.String),
1036
+ dumpOptions: Schema.optional(DumpOptions),
1037
+ }).pipe(
1038
+ Schema.encodeKeys({
1039
+ outputFormat: "output_format",
1040
+ currentBookmark: "current_bookmark",
1041
+ dumpOptions: "dump_options",
1042
+ }),
1043
+ T.Http({
1044
+ method: "POST",
1045
+ path: "/accounts/{account_id}/d1/database/{databaseId}/export",
1046
+ }),
1047
+ ),
1051
1048
  ) as unknown as Schema.Codec<ExportDatabaseRequest>;
1052
1049
 
1053
1050
  export interface ExportDatabaseResponse {
@@ -1065,7 +1062,7 @@ export interface ExportDatabaseResponse {
1065
1062
  }
1066
1063
 
1067
1064
  export const ExportDatabaseResponse =
1068
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1065
+ /*@__PURE__*/ Schema.suspend(() =>
1069
1066
  Schema.Struct({
1070
1067
  atBookmark: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1071
1068
  error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1112,7 +1109,7 @@ export const exportDatabase: API.OperationMethod<
1112
1109
  ExportDatabaseResponse,
1113
1110
  ExportDatabaseError,
1114
1111
  Credentials | HttpClient.HttpClient
1115
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1112
+ > = /*@__PURE__*/ API.make(() => ({
1116
1113
  input: ExportDatabaseRequest,
1117
1114
  output: ExportDatabaseResponse,
1118
1115
  errors: [InvalidObjectIdentifier, InvalidRequest, DatabaseNotFound],
@@ -1132,30 +1129,29 @@ export interface ImportDatabaseRequest {
1132
1129
  currentBookmark?: string;
1133
1130
  }
1134
1131
 
1135
- export const ImportDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1136
- () =>
1137
- Schema.Struct({
1138
- databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
1139
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1140
- action: Schema.Union([
1141
- Schema.Literals(["init", "ingest", "poll"]),
1142
- Schema.String,
1143
- ]),
1144
- etag: Schema.optional(Schema.String),
1145
- filename: Schema.optional(Schema.String),
1146
- currentBookmark: Schema.optional(Schema.String),
1147
- }).pipe(
1148
- Schema.encodeKeys({
1149
- action: "action",
1150
- etag: "etag",
1151
- filename: "filename",
1152
- currentBookmark: "current_bookmark",
1153
- }),
1154
- T.Http({
1155
- method: "POST",
1156
- path: "/accounts/{account_id}/d1/database/{databaseId}/import",
1157
- }),
1158
- ),
1132
+ export const ImportDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
1133
+ Schema.Struct({
1134
+ databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
1135
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1136
+ action: Schema.Union([
1137
+ Schema.Literals(["init", "ingest", "poll"]),
1138
+ Schema.String,
1139
+ ]),
1140
+ etag: Schema.optional(Schema.String),
1141
+ filename: Schema.optional(Schema.String),
1142
+ currentBookmark: Schema.optional(Schema.String),
1143
+ }).pipe(
1144
+ Schema.encodeKeys({
1145
+ action: "action",
1146
+ etag: "etag",
1147
+ filename: "filename",
1148
+ currentBookmark: "current_bookmark",
1149
+ }),
1150
+ T.Http({
1151
+ method: "POST",
1152
+ path: "/accounts/{account_id}/d1/database/{databaseId}/import",
1153
+ }),
1154
+ ),
1159
1155
  ) as unknown as Schema.Codec<ImportDatabaseRequest>;
1160
1156
 
1161
1157
  export interface ImportDatabaseResponse {
@@ -1201,7 +1197,7 @@ export interface ImportDatabaseResponse {
1201
1197
  }
1202
1198
 
1203
1199
  export const ImportDatabaseResponse =
1204
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1200
+ /*@__PURE__*/ Schema.suspend(() =>
1205
1201
  Schema.Struct({
1206
1202
  atBookmark: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1207
1203
  error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1245,7 +1241,7 @@ export const importDatabase: API.OperationMethod<
1245
1241
  ImportDatabaseResponse,
1246
1242
  ImportDatabaseError,
1247
1243
  Credentials | HttpClient.HttpClient
1248
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1244
+ > = /*@__PURE__*/ API.make(() => ({
1249
1245
  input: ImportDatabaseRequest,
1250
1246
  output: ImportDatabaseResponse,
1251
1247
  errors: [InvalidObjectIdentifier],
@@ -1258,25 +1254,33 @@ export interface QueryDatabaseRequest {
1258
1254
  /** Body param: Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch. */
1259
1255
  sql?: string;
1260
1256
  /** Body param */
1261
- params?: string[];
1257
+ params?: (string | number | null | number[])[];
1262
1258
  /** Body param */
1263
- batch?: { sql: string; params?: string[] }[];
1259
+ batch?: { sql: string; params?: (string | number | null | number[])[] }[];
1264
1260
  }
1265
1261
 
1266
- export const QueryDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1267
- () =>
1268
- Schema.Struct({
1269
- databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
1270
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1271
- sql: Schema.optional(Schema.String),
1272
- params: Schema.optional(Schema.Array(Schema.String)),
1273
- batch: Schema.optional(Schema.Array(Batch)),
1274
- }).pipe(
1275
- T.Http({
1276
- method: "POST",
1277
- path: "/accounts/{account_id}/d1/database/{databaseId}/query",
1278
- }),
1262
+ export const QueryDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
1263
+ Schema.Struct({
1264
+ databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
1265
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1266
+ sql: Schema.optional(Schema.String),
1267
+ params: Schema.optional(
1268
+ Schema.Array(
1269
+ Schema.Union([
1270
+ Schema.String,
1271
+ Schema.Number,
1272
+ Schema.Null,
1273
+ Schema.Array(Schema.Number),
1274
+ ]),
1275
+ ),
1279
1276
  ),
1277
+ batch: Schema.optional(Schema.Array(Batch)),
1278
+ }).pipe(
1279
+ T.Http({
1280
+ method: "POST",
1281
+ path: "/accounts/{account_id}/d1/database/{databaseId}/query",
1282
+ }),
1283
+ ),
1280
1284
  ) as unknown as Schema.Codec<QueryDatabaseRequest>;
1281
1285
 
1282
1286
  export interface QueryDatabaseResponse {
@@ -1307,11 +1311,10 @@ export interface QueryDatabaseResponse {
1307
1311
  }[];
1308
1312
  }
1309
1313
 
1310
- export const QueryDatabaseResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1311
- () =>
1312
- Schema.Struct({
1313
- result: Schema.Array(QueryDatabaseResponseResult),
1314
- }),
1314
+ export const QueryDatabaseResponse = /*@__PURE__*/ Schema.suspend(() =>
1315
+ Schema.Struct({
1316
+ result: Schema.Array(QueryDatabaseResponseResult),
1317
+ }),
1315
1318
  ) as unknown as Schema.Codec<QueryDatabaseResponse>;
1316
1319
 
1317
1320
  export type QueryDatabaseError = DefaultErrors;
@@ -1321,7 +1324,7 @@ export const queryDatabase: API.PaginatedOperationMethod<
1321
1324
  QueryDatabaseResponse,
1322
1325
  QueryDatabaseError,
1323
1326
  Credentials | HttpClient.HttpClient
1324
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1327
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1325
1328
  input: QueryDatabaseRequest,
1326
1329
  output: QueryDatabaseResponse,
1327
1330
  errors: [],
@@ -1338,25 +1341,33 @@ export interface RawDatabaseRequest {
1338
1341
  /** Body param: Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch. */
1339
1342
  sql?: string;
1340
1343
  /** Body param */
1341
- params?: string[];
1344
+ params?: (string | number | null | number[])[];
1342
1345
  /** Body param */
1343
- batch?: { sql: string; params?: string[] }[];
1346
+ batch?: { sql: string; params?: (string | number | null | number[])[] }[];
1344
1347
  }
1345
1348
 
1346
- export const RawDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1347
- () =>
1348
- Schema.Struct({
1349
- databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
1350
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1351
- sql: Schema.optional(Schema.String),
1352
- params: Schema.optional(Schema.Array(Schema.String)),
1353
- batch: Schema.optional(Schema.Array(Batch)),
1354
- }).pipe(
1355
- T.Http({
1356
- method: "POST",
1357
- path: "/accounts/{account_id}/d1/database/{databaseId}/raw",
1358
- }),
1349
+ export const RawDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
1350
+ Schema.Struct({
1351
+ databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
1352
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1353
+ sql: Schema.optional(Schema.String),
1354
+ params: Schema.optional(
1355
+ Schema.Array(
1356
+ Schema.Union([
1357
+ Schema.String,
1358
+ Schema.Number,
1359
+ Schema.Null,
1360
+ Schema.Array(Schema.Number),
1361
+ ]),
1362
+ ),
1359
1363
  ),
1364
+ batch: Schema.optional(Schema.Array(Batch)),
1365
+ }).pipe(
1366
+ T.Http({
1367
+ method: "POST",
1368
+ path: "/accounts/{account_id}/d1/database/{databaseId}/raw",
1369
+ }),
1370
+ ),
1360
1371
  ) as unknown as Schema.Codec<RawDatabaseRequest>;
1361
1372
 
1362
1373
  export interface RawDatabaseResponse {
@@ -1387,11 +1398,10 @@ export interface RawDatabaseResponse {
1387
1398
  }[];
1388
1399
  }
1389
1400
 
1390
- export const RawDatabaseResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1391
- () =>
1392
- Schema.Struct({
1393
- result: Schema.Array(RawDatabaseResponseResult),
1394
- }),
1401
+ export const RawDatabaseResponse = /*@__PURE__*/ Schema.suspend(() =>
1402
+ Schema.Struct({
1403
+ result: Schema.Array(RawDatabaseResponseResult),
1404
+ }),
1395
1405
  ) as unknown as Schema.Codec<RawDatabaseResponse>;
1396
1406
 
1397
1407
  export type RawDatabaseError = DefaultErrors;
@@ -1401,7 +1411,7 @@ export const rawDatabase: API.PaginatedOperationMethod<
1401
1411
  RawDatabaseResponse,
1402
1412
  RawDatabaseError,
1403
1413
  Credentials | HttpClient.HttpClient
1404
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1414
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1405
1415
  input: RawDatabaseRequest,
1406
1416
  output: RawDatabaseResponse,
1407
1417
  errors: [],
@@ -1426,7 +1436,7 @@ export interface RestoreDatabaseTimeTravelRequest {
1426
1436
  }
1427
1437
 
1428
1438
  export const RestoreDatabaseTimeTravelRequest =
1429
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1439
+ /*@__PURE__*/ Schema.suspend(() =>
1430
1440
  Schema.Struct({
1431
1441
  databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
1432
1442
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -1450,7 +1460,7 @@ export interface RestoreDatabaseTimeTravelResponse {
1450
1460
  }
1451
1461
 
1452
1462
  export const RestoreDatabaseTimeTravelResponse =
1453
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1463
+ /*@__PURE__*/ Schema.suspend(() =>
1454
1464
  Schema.Struct({
1455
1465
  bookmark: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1456
1466
  message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1480,7 +1490,7 @@ export const restoreDatabaseTimeTravel: API.OperationMethod<
1480
1490
  RestoreDatabaseTimeTravelResponse,
1481
1491
  RestoreDatabaseTimeTravelError,
1482
1492
  Credentials | HttpClient.HttpClient
1483
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1493
+ > = /*@__PURE__*/ API.make(() => ({
1484
1494
  input: RestoreDatabaseTimeTravelRequest,
1485
1495
  output: RestoreDatabaseTimeTravelResponse,
1486
1496
  errors: [