@distilled.cloud/cloudflare 0.0.0-john

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 (562) hide show
  1. package/README.md +59 -0
  2. package/lib/auth.d.ts +14 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +13 -0
  5. package/lib/auth.js.map +1 -0
  6. package/lib/category.d.ts +2 -0
  7. package/lib/category.d.ts.map +1 -0
  8. package/lib/category.js +2 -0
  9. package/lib/category.js.map +1 -0
  10. package/lib/client/api.d.ts +12 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +292 -0
  13. package/lib/client/api.js.map +1 -0
  14. package/lib/client/index.d.ts +8 -0
  15. package/lib/client/index.d.ts.map +1 -0
  16. package/lib/client/index.js +8 -0
  17. package/lib/client/index.js.map +1 -0
  18. package/lib/credentials.d.ts +68 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +136 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +48 -0
  23. package/lib/errors.d.ts.map +1 -0
  24. package/lib/errors.js +31 -0
  25. package/lib/errors.js.map +1 -0
  26. package/lib/index.d.ts +10 -0
  27. package/lib/index.d.ts.map +1 -0
  28. package/lib/index.js +10 -0
  29. package/lib/index.js.map +1 -0
  30. package/lib/retry.d.ts +14 -0
  31. package/lib/retry.d.ts.map +1 -0
  32. package/lib/retry.js +14 -0
  33. package/lib/retry.js.map +1 -0
  34. package/lib/schemas.d.ts +29 -0
  35. package/lib/schemas.d.ts.map +1 -0
  36. package/lib/schemas.js +34 -0
  37. package/lib/schemas.js.map +1 -0
  38. package/lib/sensitive.d.ts +5 -0
  39. package/lib/sensitive.d.ts.map +1 -0
  40. package/lib/sensitive.js +5 -0
  41. package/lib/sensitive.js.map +1 -0
  42. package/lib/services/abuse-reports.d.ts +296 -0
  43. package/lib/services/abuse-reports.d.ts.map +1 -0
  44. package/lib/services/abuse-reports.js +414 -0
  45. package/lib/services/abuse-reports.js.map +1 -0
  46. package/lib/services/accounts.d.ts +766 -0
  47. package/lib/services/accounts.d.ts.map +1 -0
  48. package/lib/services/accounts.js +860 -0
  49. package/lib/services/accounts.js.map +1 -0
  50. package/lib/services/acm.d.ts +73 -0
  51. package/lib/services/acm.d.ts.map +1 -0
  52. package/lib/services/acm.js +80 -0
  53. package/lib/services/acm.js.map +1 -0
  54. package/lib/services/addressing.d.ts +1321 -0
  55. package/lib/services/addressing.d.ts.map +1 -0
  56. package/lib/services/addressing.js +1863 -0
  57. package/lib/services/addressing.js.map +1 -0
  58. package/lib/services/ai-gateway.d.ts +1137 -0
  59. package/lib/services/ai-gateway.d.ts.map +1 -0
  60. package/lib/services/ai-gateway.js +1830 -0
  61. package/lib/services/ai-gateway.js.map +1 -0
  62. package/lib/services/ai.d.ts +297 -0
  63. package/lib/services/ai.d.ts.map +1 -0
  64. package/lib/services/ai.js +352 -0
  65. package/lib/services/ai.js.map +1 -0
  66. package/lib/services/aisearch.d.ts +1069 -0
  67. package/lib/services/aisearch.d.ts.map +1 -0
  68. package/lib/services/aisearch.js +2542 -0
  69. package/lib/services/aisearch.js.map +1 -0
  70. package/lib/services/alerting.d.ts +855 -0
  71. package/lib/services/alerting.d.ts.map +1 -0
  72. package/lib/services/alerting.js +1445 -0
  73. package/lib/services/alerting.js.map +1 -0
  74. package/lib/services/api-gateway.d.ts +1088 -0
  75. package/lib/services/api-gateway.d.ts.map +1 -0
  76. package/lib/services/api-gateway.js +1655 -0
  77. package/lib/services/api-gateway.js.map +1 -0
  78. package/lib/services/argo.d.ts +101 -0
  79. package/lib/services/argo.d.ts.map +1 -0
  80. package/lib/services/argo.js +113 -0
  81. package/lib/services/argo.js.map +1 -0
  82. package/lib/services/audit-logs.d.ts +46 -0
  83. package/lib/services/audit-logs.d.ts.map +1 -0
  84. package/lib/services/audit-logs.js +37 -0
  85. package/lib/services/audit-logs.js.map +1 -0
  86. package/lib/services/billing.d.ts +62 -0
  87. package/lib/services/billing.d.ts.map +1 -0
  88. package/lib/services/billing.js +102 -0
  89. package/lib/services/billing.js.map +1 -0
  90. package/lib/services/bot-management.d.ts +124 -0
  91. package/lib/services/bot-management.d.ts.map +1 -0
  92. package/lib/services/bot-management.js +262 -0
  93. package/lib/services/bot-management.js.map +1 -0
  94. package/lib/services/botnet-feed.d.ts +65 -0
  95. package/lib/services/botnet-feed.d.ts.map +1 -0
  96. package/lib/services/botnet-feed.js +88 -0
  97. package/lib/services/botnet-feed.js.map +1 -0
  98. package/lib/services/brand-protection.d.ts +194 -0
  99. package/lib/services/brand-protection.d.ts.map +1 -0
  100. package/lib/services/brand-protection.js +221 -0
  101. package/lib/services/brand-protection.js.map +1 -0
  102. package/lib/services/browser-rendering.d.ts +857 -0
  103. package/lib/services/browser-rendering.d.ts.map +1 -0
  104. package/lib/services/browser-rendering.js +1142 -0
  105. package/lib/services/browser-rendering.js.map +1 -0
  106. package/lib/services/cache.d.ts +287 -0
  107. package/lib/services/cache.d.ts.map +1 -0
  108. package/lib/services/cache.js +354 -0
  109. package/lib/services/cache.js.map +1 -0
  110. package/lib/services/calls.d.ts +223 -0
  111. package/lib/services/calls.d.ts.map +1 -0
  112. package/lib/services/calls.js +188 -0
  113. package/lib/services/calls.js.map +1 -0
  114. package/lib/services/certificate-authorities.d.ts +40 -0
  115. package/lib/services/certificate-authorities.d.ts.map +1 -0
  116. package/lib/services/certificate-authorities.js +49 -0
  117. package/lib/services/certificate-authorities.js.map +1 -0
  118. package/lib/services/client-certificates.d.ts +288 -0
  119. package/lib/services/client-certificates.d.ts.map +1 -0
  120. package/lib/services/client-certificates.js +379 -0
  121. package/lib/services/client-certificates.js.map +1 -0
  122. package/lib/services/cloud-connector.d.ts +88 -0
  123. package/lib/services/cloud-connector.d.ts.map +1 -0
  124. package/lib/services/cloud-connector.js +97 -0
  125. package/lib/services/cloud-connector.js.map +1 -0
  126. package/lib/services/cloudforce-one.d.ts +1387 -0
  127. package/lib/services/cloudforce-one.d.ts.map +1 -0
  128. package/lib/services/cloudforce-one.js +1741 -0
  129. package/lib/services/cloudforce-one.js.map +1 -0
  130. package/lib/services/connectivity.d.ts +291 -0
  131. package/lib/services/connectivity.d.ts.map +1 -0
  132. package/lib/services/connectivity.js +404 -0
  133. package/lib/services/connectivity.js.map +1 -0
  134. package/lib/services/content-scanning.d.ts +156 -0
  135. package/lib/services/content-scanning.d.ts.map +1 -0
  136. package/lib/services/content-scanning.js +175 -0
  137. package/lib/services/content-scanning.js.map +1 -0
  138. package/lib/services/custom-certificates.d.ts +240 -0
  139. package/lib/services/custom-certificates.d.ts.map +1 -0
  140. package/lib/services/custom-certificates.js +336 -0
  141. package/lib/services/custom-certificates.js.map +1 -0
  142. package/lib/services/custom-hostnames.d.ts +590 -0
  143. package/lib/services/custom-hostnames.d.ts.map +1 -0
  144. package/lib/services/custom-hostnames.js +1204 -0
  145. package/lib/services/custom-hostnames.js.map +1 -0
  146. package/lib/services/custom-nameservers.d.ts +87 -0
  147. package/lib/services/custom-nameservers.d.ts.map +1 -0
  148. package/lib/services/custom-nameservers.js +95 -0
  149. package/lib/services/custom-nameservers.js.map +1 -0
  150. package/lib/services/custom-pages.d.ts +89 -0
  151. package/lib/services/custom-pages.d.ts.map +1 -0
  152. package/lib/services/custom-pages.js +140 -0
  153. package/lib/services/custom-pages.js.map +1 -0
  154. package/lib/services/d1.d.ts +392 -0
  155. package/lib/services/d1.d.ts.map +1 -0
  156. package/lib/services/d1.js +487 -0
  157. package/lib/services/d1.js.map +1 -0
  158. package/lib/services/dcv-delegation.d.ts +24 -0
  159. package/lib/services/dcv-delegation.d.ts.map +1 -0
  160. package/lib/services/dcv-delegation.js +24 -0
  161. package/lib/services/dcv-delegation.js.map +1 -0
  162. package/lib/services/diagnostics.d.ts +208 -0
  163. package/lib/services/diagnostics.d.ts.map +1 -0
  164. package/lib/services/diagnostics.js +288 -0
  165. package/lib/services/diagnostics.js.map +1 -0
  166. package/lib/services/dns-firewall.d.ts +317 -0
  167. package/lib/services/dns-firewall.d.ts.map +1 -0
  168. package/lib/services/dns-firewall.js +400 -0
  169. package/lib/services/dns-firewall.js.map +1 -0
  170. package/lib/services/dns.d.ts +3065 -0
  171. package/lib/services/dns.d.ts.map +1 -0
  172. package/lib/services/dns.js +4627 -0
  173. package/lib/services/dns.js.map +1 -0
  174. package/lib/services/durable-objects.d.ts +92 -0
  175. package/lib/services/durable-objects.d.ts.map +1 -0
  176. package/lib/services/durable-objects.js +103 -0
  177. package/lib/services/durable-objects.js.map +1 -0
  178. package/lib/services/email-routing.d.ts +598 -0
  179. package/lib/services/email-routing.d.ts.map +1 -0
  180. package/lib/services/email-routing.js +715 -0
  181. package/lib/services/email-routing.js.map +1 -0
  182. package/lib/services/email-security.d.ts +1389 -0
  183. package/lib/services/email-security.d.ts.map +1 -0
  184. package/lib/services/email-security.js +2261 -0
  185. package/lib/services/email-security.js.map +1 -0
  186. package/lib/services/filters.d.ts +197 -0
  187. package/lib/services/filters.d.ts.map +1 -0
  188. package/lib/services/filters.js +168 -0
  189. package/lib/services/filters.js.map +1 -0
  190. package/lib/services/firewall.d.ts +1352 -0
  191. package/lib/services/firewall.d.ts.map +1 -0
  192. package/lib/services/firewall.js +2084 -0
  193. package/lib/services/firewall.js.map +1 -0
  194. package/lib/services/healthchecks.d.ts +507 -0
  195. package/lib/services/healthchecks.d.ts.map +1 -0
  196. package/lib/services/healthchecks.js +867 -0
  197. package/lib/services/healthchecks.js.map +1 -0
  198. package/lib/services/hostnames.d.ts +86 -0
  199. package/lib/services/hostnames.d.ts.map +1 -0
  200. package/lib/services/hostnames.js +111 -0
  201. package/lib/services/hostnames.js.map +1 -0
  202. package/lib/services/hyperdrive.d.ts +203 -0
  203. package/lib/services/hyperdrive.d.ts.map +1 -0
  204. package/lib/services/hyperdrive.js +300 -0
  205. package/lib/services/hyperdrive.js.map +1 -0
  206. package/lib/services/iam.d.ts +657 -0
  207. package/lib/services/iam.d.ts.map +1 -0
  208. package/lib/services/iam.js +843 -0
  209. package/lib/services/iam.js.map +1 -0
  210. package/lib/services/images.d.ts +427 -0
  211. package/lib/services/images.d.ts.map +1 -0
  212. package/lib/services/images.js +444 -0
  213. package/lib/services/images.js.map +1 -0
  214. package/lib/services/intel.d.ts +865 -0
  215. package/lib/services/intel.d.ts.map +1 -0
  216. package/lib/services/intel.js +1266 -0
  217. package/lib/services/intel.js.map +1 -0
  218. package/lib/services/ips.d.ts +28 -0
  219. package/lib/services/ips.d.ts.map +1 -0
  220. package/lib/services/ips.js +39 -0
  221. package/lib/services/ips.js.map +1 -0
  222. package/lib/services/keyless-certificates.d.ts +197 -0
  223. package/lib/services/keyless-certificates.d.ts.map +1 -0
  224. package/lib/services/keyless-certificates.js +229 -0
  225. package/lib/services/keyless-certificates.js.map +1 -0
  226. package/lib/services/kv.d.ts +369 -0
  227. package/lib/services/kv.d.ts.map +1 -0
  228. package/lib/services/kv.js +453 -0
  229. package/lib/services/kv.js.map +1 -0
  230. package/lib/services/leaked-credential-checks.d.ts +129 -0
  231. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  232. package/lib/services/leaked-credential-checks.js +138 -0
  233. package/lib/services/leaked-credential-checks.js.map +1 -0
  234. package/lib/services/load-balancers.d.ts +1973 -0
  235. package/lib/services/load-balancers.d.ts.map +1 -0
  236. package/lib/services/load-balancers.js +3181 -0
  237. package/lib/services/load-balancers.js.map +1 -0
  238. package/lib/services/logpush.d.ts +401 -0
  239. package/lib/services/logpush.d.ts.map +1 -0
  240. package/lib/services/logpush.js +732 -0
  241. package/lib/services/logpush.js.map +1 -0
  242. package/lib/services/logs.d.ts +125 -0
  243. package/lib/services/logs.d.ts.map +1 -0
  244. package/lib/services/logs.js +149 -0
  245. package/lib/services/logs.js.map +1 -0
  246. package/lib/services/magic-cloud-networking.d.ts +1892 -0
  247. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  248. package/lib/services/magic-cloud-networking.js +5291 -0
  249. package/lib/services/magic-cloud-networking.js.map +1 -0
  250. package/lib/services/magic-network-monitoring.d.ts +379 -0
  251. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  252. package/lib/services/magic-network-monitoring.js +557 -0
  253. package/lib/services/magic-network-monitoring.js.map +1 -0
  254. package/lib/services/magic-transit.d.ts +3886 -0
  255. package/lib/services/magic-transit.d.ts.map +1 -0
  256. package/lib/services/magic-transit.js +6284 -0
  257. package/lib/services/magic-transit.js.map +1 -0
  258. package/lib/services/managed-transforms.d.ts +79 -0
  259. package/lib/services/managed-transforms.d.ts.map +1 -0
  260. package/lib/services/managed-transforms.js +111 -0
  261. package/lib/services/managed-transforms.js.map +1 -0
  262. package/lib/services/memberships.d.ts +204 -0
  263. package/lib/services/memberships.d.ts.map +1 -0
  264. package/lib/services/memberships.js +308 -0
  265. package/lib/services/memberships.js.map +1 -0
  266. package/lib/services/mtls-certificates.d.ts +164 -0
  267. package/lib/services/mtls-certificates.d.ts.map +1 -0
  268. package/lib/services/mtls-certificates.js +192 -0
  269. package/lib/services/mtls-certificates.js.map +1 -0
  270. package/lib/services/network-interconnects.d.ts +410 -0
  271. package/lib/services/network-interconnects.d.ts.map +1 -0
  272. package/lib/services/network-interconnects.js +583 -0
  273. package/lib/services/network-interconnects.js.map +1 -0
  274. package/lib/services/organizations.d.ts +232 -0
  275. package/lib/services/organizations.d.ts.map +1 -0
  276. package/lib/services/organizations.js +370 -0
  277. package/lib/services/organizations.js.map +1 -0
  278. package/lib/services/origin-ca-certificates.d.ts +119 -0
  279. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  280. package/lib/services/origin-ca-certificates.js +183 -0
  281. package/lib/services/origin-ca-certificates.js.map +1 -0
  282. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  283. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  284. package/lib/services/origin-post-quantum-encryption.js +64 -0
  285. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  286. package/lib/services/origin-tls-client-auth.d.ts +308 -0
  287. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  288. package/lib/services/origin-tls-client-auth.js +435 -0
  289. package/lib/services/origin-tls-client-auth.js.map +1 -0
  290. package/lib/services/page-rules.d.ts +773 -0
  291. package/lib/services/page-rules.d.ts.map +1 -0
  292. package/lib/services/page-rules.js +1373 -0
  293. package/lib/services/page-rules.js.map +1 -0
  294. package/lib/services/page-shield.d.ts +505 -0
  295. package/lib/services/page-shield.d.ts.map +1 -0
  296. package/lib/services/page-shield.js +520 -0
  297. package/lib/services/page-shield.js.map +1 -0
  298. package/lib/services/pages.d.ts +1949 -0
  299. package/lib/services/pages.d.ts.map +1 -0
  300. package/lib/services/pages.js +3030 -0
  301. package/lib/services/pages.js.map +1 -0
  302. package/lib/services/pipelines.d.ts +1716 -0
  303. package/lib/services/pipelines.d.ts.map +1 -0
  304. package/lib/services/pipelines.js +2991 -0
  305. package/lib/services/pipelines.js.map +1 -0
  306. package/lib/services/queues.d.ts +904 -0
  307. package/lib/services/queues.d.ts.map +1 -0
  308. package/lib/services/queues.js +1250 -0
  309. package/lib/services/queues.js.map +1 -0
  310. package/lib/services/r2-data-catalog.d.ts +341 -0
  311. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  312. package/lib/services/r2-data-catalog.js +513 -0
  313. package/lib/services/r2-data-catalog.js.map +1 -0
  314. package/lib/services/r2.d.ts +1087 -0
  315. package/lib/services/r2.d.ts.map +1 -0
  316. package/lib/services/r2.js +1404 -0
  317. package/lib/services/r2.js.map +1 -0
  318. package/lib/services/radar.d.ts +9365 -0
  319. package/lib/services/radar.d.ts.map +1 -0
  320. package/lib/services/radar.js +20552 -0
  321. package/lib/services/radar.js.map +1 -0
  322. package/lib/services/rate-limits.d.ts +360 -0
  323. package/lib/services/rate-limits.d.ts.map +1 -0
  324. package/lib/services/rate-limits.js +545 -0
  325. package/lib/services/rate-limits.js.map +1 -0
  326. package/lib/services/realtime-kit.d.ts +2728 -0
  327. package/lib/services/realtime-kit.d.ts.map +1 -0
  328. package/lib/services/realtime-kit.js +5402 -0
  329. package/lib/services/realtime-kit.js.map +1 -0
  330. package/lib/services/registrar.d.ts +121 -0
  331. package/lib/services/registrar.d.ts.map +1 -0
  332. package/lib/services/registrar.js +167 -0
  333. package/lib/services/registrar.js.map +1 -0
  334. package/lib/services/request-tracers.d.ts +61 -0
  335. package/lib/services/request-tracers.d.ts.map +1 -0
  336. package/lib/services/request-tracers.js +85 -0
  337. package/lib/services/request-tracers.js.map +1 -0
  338. package/lib/services/resource-sharing.d.ts +622 -0
  339. package/lib/services/resource-sharing.d.ts.map +1 -0
  340. package/lib/services/resource-sharing.js +929 -0
  341. package/lib/services/resource-sharing.js.map +1 -0
  342. package/lib/services/rules.d.ts +346 -0
  343. package/lib/services/rules.d.ts.map +1 -0
  344. package/lib/services/rules.js +431 -0
  345. package/lib/services/rules.js.map +1 -0
  346. package/lib/services/rulesets.d.ts +3345 -0
  347. package/lib/services/rulesets.d.ts.map +1 -0
  348. package/lib/services/rulesets.js +7904 -0
  349. package/lib/services/rulesets.js.map +1 -0
  350. package/lib/services/rum.d.ts +314 -0
  351. package/lib/services/rum.d.ts.map +1 -0
  352. package/lib/services/rum.js +442 -0
  353. package/lib/services/rum.js.map +1 -0
  354. package/lib/services/schema-validation.d.ts +273 -0
  355. package/lib/services/schema-validation.d.ts.map +1 -0
  356. package/lib/services/schema-validation.js +365 -0
  357. package/lib/services/schema-validation.js.map +1 -0
  358. package/lib/services/secrets-store.d.ts +393 -0
  359. package/lib/services/secrets-store.d.ts.map +1 -0
  360. package/lib/services/secrets-store.js +452 -0
  361. package/lib/services/secrets-store.js.map +1 -0
  362. package/lib/services/security-center.d.ts +136 -0
  363. package/lib/services/security-center.d.ts.map +1 -0
  364. package/lib/services/security-center.js +196 -0
  365. package/lib/services/security-center.js.map +1 -0
  366. package/lib/services/security-txt.d.ts +105 -0
  367. package/lib/services/security-txt.d.ts.map +1 -0
  368. package/lib/services/security-txt.js +136 -0
  369. package/lib/services/security-txt.js.map +1 -0
  370. package/lib/services/snippets.d.ts +190 -0
  371. package/lib/services/snippets.d.ts.map +1 -0
  372. package/lib/services/snippets.js +221 -0
  373. package/lib/services/snippets.js.map +1 -0
  374. package/lib/services/spectrum.d.ts +350 -0
  375. package/lib/services/spectrum.d.ts.map +1 -0
  376. package/lib/services/spectrum.js +535 -0
  377. package/lib/services/spectrum.js.map +1 -0
  378. package/lib/services/speed.d.ts +257 -0
  379. package/lib/services/speed.d.ts.map +1 -0
  380. package/lib/services/speed.js +471 -0
  381. package/lib/services/speed.js.map +1 -0
  382. package/lib/services/ssl.d.ts +412 -0
  383. package/lib/services/ssl.d.ts.map +1 -0
  384. package/lib/services/ssl.js +755 -0
  385. package/lib/services/ssl.js.map +1 -0
  386. package/lib/services/stream.d.ts +1110 -0
  387. package/lib/services/stream.d.ts.map +1 -0
  388. package/lib/services/stream.js +1085 -0
  389. package/lib/services/stream.js.map +1 -0
  390. package/lib/services/token-validation.d.ts +662 -0
  391. package/lib/services/token-validation.d.ts.map +1 -0
  392. package/lib/services/token-validation.js +834 -0
  393. package/lib/services/token-validation.js.map +1 -0
  394. package/lib/services/turnstile.d.ts +272 -0
  395. package/lib/services/turnstile.d.ts.map +1 -0
  396. package/lib/services/turnstile.js +339 -0
  397. package/lib/services/turnstile.js.map +1 -0
  398. package/lib/services/url-normalization.d.ts +53 -0
  399. package/lib/services/url-normalization.d.ts.map +1 -0
  400. package/lib/services/url-normalization.js +52 -0
  401. package/lib/services/url-normalization.js.map +1 -0
  402. package/lib/services/url-scanner.d.ts +612 -0
  403. package/lib/services/url-scanner.d.ts.map +1 -0
  404. package/lib/services/url-scanner.js +915 -0
  405. package/lib/services/url-scanner.js.map +1 -0
  406. package/lib/services/user.d.ts +507 -0
  407. package/lib/services/user.d.ts.map +1 -0
  408. package/lib/services/user.js +634 -0
  409. package/lib/services/user.js.map +1 -0
  410. package/lib/services/vectorize.d.ts +297 -0
  411. package/lib/services/vectorize.d.ts.map +1 -0
  412. package/lib/services/vectorize.js +351 -0
  413. package/lib/services/vectorize.js.map +1 -0
  414. package/lib/services/waiting-rooms.d.ts +1149 -0
  415. package/lib/services/waiting-rooms.d.ts.map +1 -0
  416. package/lib/services/waiting-rooms.js +1859 -0
  417. package/lib/services/waiting-rooms.js.map +1 -0
  418. package/lib/services/web3.d.ts +289 -0
  419. package/lib/services/web3.d.ts.map +1 -0
  420. package/lib/services/web3.js +381 -0
  421. package/lib/services/web3.js.map +1 -0
  422. package/lib/services/workers-for-platforms.d.ts +1394 -0
  423. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  424. package/lib/services/workers-for-platforms.js +2121 -0
  425. package/lib/services/workers-for-platforms.js.map +1 -0
  426. package/lib/services/workers.d.ts +3827 -0
  427. package/lib/services/workers.d.ts.map +1 -0
  428. package/lib/services/workers.js +6105 -0
  429. package/lib/services/workers.js.map +1 -0
  430. package/lib/services/workflows.d.ts +442 -0
  431. package/lib/services/workflows.d.ts.map +1 -0
  432. package/lib/services/workflows.js +599 -0
  433. package/lib/services/workflows.js.map +1 -0
  434. package/lib/services/zaraz.d.ts +312 -0
  435. package/lib/services/zaraz.d.ts.map +1 -0
  436. package/lib/services/zaraz.js +305 -0
  437. package/lib/services/zaraz.js.map +1 -0
  438. package/lib/services/zero-trust.d.ts +18235 -0
  439. package/lib/services/zero-trust.d.ts.map +1 -0
  440. package/lib/services/zero-trust.js +30268 -0
  441. package/lib/services/zero-trust.js.map +1 -0
  442. package/lib/services/zones.d.ts +1382 -0
  443. package/lib/services/zones.d.ts.map +1 -0
  444. package/lib/services/zones.js +2477 -0
  445. package/lib/services/zones.js.map +1 -0
  446. package/lib/traits.d.ts +28 -0
  447. package/lib/traits.d.ts.map +1 -0
  448. package/lib/traits.js +26 -0
  449. package/lib/traits.js.map +1 -0
  450. package/package.json +82 -0
  451. package/src/auth.ts +15 -0
  452. package/src/category.ts +1 -0
  453. package/src/client/api.ts +421 -0
  454. package/src/client/index.ts +7 -0
  455. package/src/credentials.ts +271 -0
  456. package/src/errors.ts +73 -0
  457. package/src/index.ts +9 -0
  458. package/src/retry.ts +35 -0
  459. package/src/schemas.ts +51 -0
  460. package/src/sensitive.ts +4 -0
  461. package/src/services/abuse-reports.ts +955 -0
  462. package/src/services/accounts.ts +2152 -0
  463. package/src/services/acm.ts +178 -0
  464. package/src/services/addressing.ts +4262 -0
  465. package/src/services/ai-gateway.ts +3773 -0
  466. package/src/services/ai.ts +901 -0
  467. package/src/services/aisearch.ts +5215 -0
  468. package/src/services/alerting.ts +3303 -0
  469. package/src/services/api-gateway.ts +3890 -0
  470. package/src/services/argo.ts +270 -0
  471. package/src/services/audit-logs.ts +90 -0
  472. package/src/services/billing.ts +176 -0
  473. package/src/services/bot-management.ts +545 -0
  474. package/src/services/botnet-feed.ts +205 -0
  475. package/src/services/brand-protection.ts +575 -0
  476. package/src/services/browser-rendering.ts +2720 -0
  477. package/src/services/cache.ts +877 -0
  478. package/src/services/calls.ts +548 -0
  479. package/src/services/certificate-authorities.ts +114 -0
  480. package/src/services/client-certificates.ts +815 -0
  481. package/src/services/cloud-connector.ts +248 -0
  482. package/src/services/cloudforce-one.ts +4104 -0
  483. package/src/services/connectivity.ts +706 -0
  484. package/src/services/content-scanning.ts +458 -0
  485. package/src/services/custom-certificates.ts +690 -0
  486. package/src/services/custom-hostnames.ts +2641 -0
  487. package/src/services/custom-nameservers.ts +235 -0
  488. package/src/services/custom-pages.ts +311 -0
  489. package/src/services/d1.ts +1208 -0
  490. package/src/services/dcv-delegation.ts +54 -0
  491. package/src/services/diagnostics.ts +677 -0
  492. package/src/services/dns-firewall.ts +904 -0
  493. package/src/services/dns.ts +9277 -0
  494. package/src/services/durable-objects.ts +237 -0
  495. package/src/services/email-routing.ts +1796 -0
  496. package/src/services/email-security.ts +5052 -0
  497. package/src/services/filters.ts +488 -0
  498. package/src/services/firewall.ts +4728 -0
  499. package/src/services/healthchecks.ts +1866 -0
  500. package/src/services/hostnames.ts +254 -0
  501. package/src/services/hyperdrive.ts +595 -0
  502. package/src/services/iam.ts +1969 -0
  503. package/src/services/images.ts +1180 -0
  504. package/src/services/intel.ts +3072 -0
  505. package/src/services/ips.ts +88 -0
  506. package/src/services/keyless-certificates.ts +509 -0
  507. package/src/services/kv.ts +1129 -0
  508. package/src/services/leaked-credential-checks.ts +364 -0
  509. package/src/services/load-balancers.ts +6993 -0
  510. package/src/services/logpush.ts +1695 -0
  511. package/src/services/logs.ts +389 -0
  512. package/src/services/magic-cloud-networking.ts +10747 -0
  513. package/src/services/magic-network-monitoring.ts +1200 -0
  514. package/src/services/magic-transit.ts +13673 -0
  515. package/src/services/managed-transforms.ts +245 -0
  516. package/src/services/memberships.ts +698 -0
  517. package/src/services/mtls-certificates.ts +444 -0
  518. package/src/services/network-interconnects.ts +1253 -0
  519. package/src/services/organizations.ts +738 -0
  520. package/src/services/origin-ca-certificates.ts +369 -0
  521. package/src/services/origin-post-quantum-encryption.ts +136 -0
  522. package/src/services/origin-tls-client-auth.ts +1002 -0
  523. package/src/services/page-rules.ts +2632 -0
  524. package/src/services/page-shield.ts +1371 -0
  525. package/src/services/pages.ts +6167 -0
  526. package/src/services/pipelines.ts +6455 -0
  527. package/src/services/queues.ts +2827 -0
  528. package/src/services/r2-data-catalog.ts +1151 -0
  529. package/src/services/r2.ts +3529 -0
  530. package/src/services/radar.ts +42836 -0
  531. package/src/services/rate-limits.ts +1252 -0
  532. package/src/services/realtime-kit.ts +11080 -0
  533. package/src/services/registrar.ts +390 -0
  534. package/src/services/request-tracers.ts +161 -0
  535. package/src/services/resource-sharing.ts +2082 -0
  536. package/src/services/rules.ts +953 -0
  537. package/src/services/rulesets.ts +15361 -0
  538. package/src/services/rum.ts +994 -0
  539. package/src/services/schema-validation.ts +869 -0
  540. package/src/services/secrets-store.ts +1050 -0
  541. package/src/services/security-center.ts +495 -0
  542. package/src/services/security-txt.ts +317 -0
  543. package/src/services/snippets.ts +562 -0
  544. package/src/services/spectrum.ts +1190 -0
  545. package/src/services/speed.ts +1154 -0
  546. package/src/services/ssl.ts +1714 -0
  547. package/src/services/stream.ts +3008 -0
  548. package/src/services/token-validation.ts +1825 -0
  549. package/src/services/turnstile.ts +725 -0
  550. package/src/services/url-normalization.ts +133 -0
  551. package/src/services/url-scanner.ts +1851 -0
  552. package/src/services/user.ts +1587 -0
  553. package/src/services/vectorize.ts +875 -0
  554. package/src/services/waiting-rooms.ts +4216 -0
  555. package/src/services/web3.ts +899 -0
  556. package/src/services/workers-for-platforms.ts +4134 -0
  557. package/src/services/workers.ts +12298 -0
  558. package/src/services/workflows.ts +1372 -0
  559. package/src/services/zaraz.ts +833 -0
  560. package/src/services/zero-trust.ts +64685 -0
  561. package/src/services/zones.ts +5106 -0
  562. package/src/traits.ts +47 -0
@@ -0,0 +1,3827 @@
1
+ /**
2
+ * Cloudflare WORKERS API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service workers
6
+ */
7
+ import * as stream from "effect/Stream";
8
+ import * as Schema from "effect/Schema";
9
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
10
+ import * as API from "../client/api.ts";
11
+ import type { Credentials } from "../credentials.ts";
12
+ import { type DefaultErrors } from "../errors.ts";
13
+ declare const ContentTypeRequired_base: Schema.ErrorClass<ContentTypeRequired, Schema.TaggedStruct<"ContentTypeRequired", {
14
+ readonly code: Schema.Number;
15
+ readonly message: Schema.String;
16
+ }>, import("effect/Cause").YieldableError>;
17
+ export declare class ContentTypeRequired extends ContentTypeRequired_base {
18
+ }
19
+ declare const DeploymentNotFound_base: Schema.ErrorClass<DeploymentNotFound, Schema.TaggedStruct<"DeploymentNotFound", {
20
+ readonly code: Schema.Number;
21
+ readonly message: Schema.String;
22
+ }>, import("effect/Cause").YieldableError>;
23
+ export declare class DeploymentNotFound extends DeploymentNotFound_base {
24
+ }
25
+ declare const DomainNotFound_base: Schema.ErrorClass<DomainNotFound, Schema.TaggedStruct<"DomainNotFound", {
26
+ readonly code: Schema.Number;
27
+ readonly message: Schema.String;
28
+ }>, import("effect/Cause").YieldableError>;
29
+ export declare class DomainNotFound extends DomainNotFound_base {
30
+ }
31
+ declare const InvalidRoute_base: Schema.ErrorClass<InvalidRoute, Schema.TaggedStruct<"InvalidRoute", {
32
+ readonly code: Schema.Number;
33
+ readonly message: Schema.String;
34
+ }>, import("effect/Cause").YieldableError>;
35
+ export declare class InvalidRoute extends InvalidRoute_base {
36
+ }
37
+ declare const InvalidRoutePattern_base: Schema.ErrorClass<InvalidRoutePattern, Schema.TaggedStruct<"InvalidRoutePattern", {
38
+ readonly code: Schema.Number;
39
+ readonly message: Schema.String;
40
+ }>, import("effect/Cause").YieldableError>;
41
+ export declare class InvalidRoutePattern extends InvalidRoutePattern_base {
42
+ }
43
+ declare const InvalidWorkerScript_base: Schema.ErrorClass<InvalidWorkerScript, Schema.TaggedStruct<"InvalidWorkerScript", {
44
+ readonly code: Schema.Number;
45
+ readonly message: Schema.String;
46
+ }>, import("effect/Cause").YieldableError>;
47
+ export declare class InvalidWorkerScript extends InvalidWorkerScript_base {
48
+ }
49
+ declare const RouteNotFound_base: Schema.ErrorClass<RouteNotFound, Schema.TaggedStruct<"RouteNotFound", {
50
+ readonly code: Schema.Number;
51
+ readonly message: Schema.String;
52
+ }>, import("effect/Cause").YieldableError>;
53
+ export declare class RouteNotFound extends RouteNotFound_base {
54
+ }
55
+ declare const SecretNotFound_base: Schema.ErrorClass<SecretNotFound, Schema.TaggedStruct<"SecretNotFound", {
56
+ readonly code: Schema.Number;
57
+ readonly message: Schema.String;
58
+ }>, import("effect/Cause").YieldableError>;
59
+ export declare class SecretNotFound extends SecretNotFound_base {
60
+ }
61
+ declare const VersionNotFound_base: Schema.ErrorClass<VersionNotFound, Schema.TaggedStruct<"VersionNotFound", {
62
+ readonly code: Schema.Number;
63
+ readonly message: Schema.String;
64
+ }>, import("effect/Cause").YieldableError>;
65
+ export declare class VersionNotFound extends VersionNotFound_base {
66
+ }
67
+ declare const WorkerNotFound_base: Schema.ErrorClass<WorkerNotFound, Schema.TaggedStruct<"WorkerNotFound", {
68
+ readonly code: Schema.Number;
69
+ readonly message: Schema.String;
70
+ }>, import("effect/Cause").YieldableError>;
71
+ export declare class WorkerNotFound extends WorkerNotFound_base {
72
+ }
73
+ export interface GetAccountSettingRequest {
74
+ /** Identifier. */
75
+ accountId: string;
76
+ }
77
+ export declare const GetAccountSettingRequest: Schema.Schema<GetAccountSettingRequest>;
78
+ export interface GetAccountSettingResponse {
79
+ defaultUsageModel?: string | null;
80
+ greenCompute?: boolean | null;
81
+ }
82
+ export declare const GetAccountSettingResponse: Schema.Schema<GetAccountSettingResponse>;
83
+ export type GetAccountSettingError = DefaultErrors | InvalidRoute;
84
+ export declare const getAccountSetting: API.OperationMethod<GetAccountSettingRequest, GetAccountSettingResponse, GetAccountSettingError, Credentials | HttpClient.HttpClient>;
85
+ export interface PutAccountSettingRequest {
86
+ /** Path param: Identifier. */
87
+ accountId: string;
88
+ /** Body param: */
89
+ defaultUsageModel?: string;
90
+ /** Body param: */
91
+ greenCompute?: boolean;
92
+ }
93
+ export declare const PutAccountSettingRequest: Schema.Schema<PutAccountSettingRequest>;
94
+ export interface PutAccountSettingResponse {
95
+ defaultUsageModel?: string | null;
96
+ greenCompute?: boolean | null;
97
+ }
98
+ export declare const PutAccountSettingResponse: Schema.Schema<PutAccountSettingResponse>;
99
+ export type PutAccountSettingError = DefaultErrors | InvalidRoute;
100
+ export declare const putAccountSetting: API.OperationMethod<PutAccountSettingRequest, PutAccountSettingResponse, PutAccountSettingError, Credentials | HttpClient.HttpClient>;
101
+ export interface CreateAssetUploadRequest {
102
+ /** Path param: Identifier. */
103
+ accountId: string;
104
+ /** Query param: Whether the file contents are base64-encoded. Must be `true`. */
105
+ base64: true;
106
+ /** Upload session JWT returned by createScriptAssetUpload. This SDK sends it as an Authorization bearer token for this request. */
107
+ jwtToken?: string;
108
+ /** Body param: */
109
+ body: Record<string, unknown>;
110
+ }
111
+ export declare const CreateAssetUploadRequest: Schema.Schema<CreateAssetUploadRequest>;
112
+ export interface CreateAssetUploadResponse {
113
+ /** A "completion" JWT which can be redeemed when creating a Worker version. */
114
+ jwt?: string | null;
115
+ }
116
+ export declare const CreateAssetUploadResponse: Schema.Schema<CreateAssetUploadResponse>;
117
+ export type CreateAssetUploadError = DefaultErrors | InvalidRoute;
118
+ export declare const createAssetUpload: API.OperationMethod<CreateAssetUploadRequest, CreateAssetUploadResponse, CreateAssetUploadError, Credentials | HttpClient.HttpClient>;
119
+ export interface GetBetaWorkerRequest {
120
+ workerId: string;
121
+ /** Identifier. */
122
+ accountId: string;
123
+ }
124
+ export declare const GetBetaWorkerRequest: Schema.Schema<GetBetaWorkerRequest>;
125
+ export interface GetBetaWorkerResponse {
126
+ /** ID of the referencing Worker. */
127
+ id: string;
128
+ /** Name of the referencing Worker. */
129
+ name: string;
130
+ }
131
+ export declare const GetBetaWorkerResponse: Schema.Schema<GetBetaWorkerResponse>;
132
+ export type GetBetaWorkerError = DefaultErrors | WorkerNotFound | InvalidRoute;
133
+ export declare const getBetaWorker: API.OperationMethod<GetBetaWorkerRequest, GetBetaWorkerResponse, GetBetaWorkerError, Credentials | HttpClient.HttpClient>;
134
+ export interface ListBetaWorkersRequest {
135
+ /** Path param: Identifier. */
136
+ accountId: string;
137
+ }
138
+ export declare const ListBetaWorkersRequest: Schema.Schema<ListBetaWorkersRequest>;
139
+ export interface ListBetaWorkersResponse {
140
+ result: {
141
+ id: string;
142
+ name: string;
143
+ }[];
144
+ resultInfo: {
145
+ count?: number | null;
146
+ page?: number | null;
147
+ perPage?: number | null;
148
+ totalCount?: number | null;
149
+ };
150
+ }
151
+ export declare const ListBetaWorkersResponse: Schema.Schema<ListBetaWorkersResponse>;
152
+ export type ListBetaWorkersError = DefaultErrors | InvalidRoute;
153
+ export declare const listBetaWorkers: API.PaginatedOperationMethod<ListBetaWorkersRequest, ListBetaWorkersResponse, ListBetaWorkersError, Credentials | HttpClient.HttpClient> & {
154
+ pages: (input: ListBetaWorkersRequest) => stream.Stream<ListBetaWorkersResponse, ListBetaWorkersError, Credentials | HttpClient.HttpClient>;
155
+ items: (input: ListBetaWorkersRequest) => stream.Stream<{
156
+ id: string;
157
+ name: string;
158
+ }, ListBetaWorkersError, Credentials | HttpClient.HttpClient>;
159
+ };
160
+ export interface CreateBetaWorkerRequest {
161
+ /** Path param: Identifier. */
162
+ accountId: string;
163
+ /** Body param: Name of the Worker. */
164
+ name: string;
165
+ /** Body param: Whether logpush is enabled for the Worker. */
166
+ logpush?: boolean;
167
+ /** Body param: Observability settings for the Worker. */
168
+ observability?: {
169
+ enabled?: boolean;
170
+ headSamplingRate?: number;
171
+ logs?: {
172
+ enabled?: boolean;
173
+ headSamplingRate?: number;
174
+ invocationLogs?: boolean;
175
+ };
176
+ };
177
+ /** Body param: Subdomain settings for the Worker. */
178
+ subdomain?: {
179
+ enabled?: boolean;
180
+ previewsEnabled?: boolean;
181
+ };
182
+ /** Body param: Tags associated with the Worker. */
183
+ tags?: string[];
184
+ /** Body param: Other Workers that should consume logs from the Worker. */
185
+ tailConsumers?: {
186
+ name: string;
187
+ }[];
188
+ }
189
+ export declare const CreateBetaWorkerRequest: Schema.Schema<CreateBetaWorkerRequest>;
190
+ export interface CreateBetaWorkerResponse {
191
+ /** ID of the referencing Worker. */
192
+ id: string;
193
+ /** Name of the referencing Worker. */
194
+ name: string;
195
+ }
196
+ export declare const CreateBetaWorkerResponse: Schema.Schema<CreateBetaWorkerResponse>;
197
+ export type CreateBetaWorkerError = DefaultErrors | InvalidRoute;
198
+ export declare const createBetaWorker: API.OperationMethod<CreateBetaWorkerRequest, CreateBetaWorkerResponse, CreateBetaWorkerError, Credentials | HttpClient.HttpClient>;
199
+ export interface UpdateBetaWorkerRequest {
200
+ workerId: string;
201
+ /** Path param: Identifier. */
202
+ accountId: string;
203
+ /** Body param: Name of the Worker. */
204
+ name: string;
205
+ /** Body param: Whether logpush is enabled for the Worker. */
206
+ logpush?: boolean;
207
+ /** Body param: Observability settings for the Worker. */
208
+ observability?: {
209
+ enabled?: boolean;
210
+ headSamplingRate?: number;
211
+ logs?: {
212
+ enabled?: boolean;
213
+ headSamplingRate?: number;
214
+ invocationLogs?: boolean;
215
+ };
216
+ };
217
+ /** Body param: Subdomain settings for the Worker. */
218
+ subdomain?: {
219
+ enabled?: boolean;
220
+ previewsEnabled?: boolean;
221
+ };
222
+ /** Body param: Tags associated with the Worker. */
223
+ tags?: string[];
224
+ /** Body param: Other Workers that should consume logs from the Worker. */
225
+ tailConsumers?: {
226
+ name: string;
227
+ }[];
228
+ }
229
+ export declare const UpdateBetaWorkerRequest: Schema.Schema<UpdateBetaWorkerRequest>;
230
+ export interface UpdateBetaWorkerResponse {
231
+ /** ID of the referencing Worker. */
232
+ id: string;
233
+ /** Name of the referencing Worker. */
234
+ name: string;
235
+ }
236
+ export declare const UpdateBetaWorkerResponse: Schema.Schema<UpdateBetaWorkerResponse>;
237
+ export type UpdateBetaWorkerError = DefaultErrors | WorkerNotFound;
238
+ export declare const updateBetaWorker: API.OperationMethod<UpdateBetaWorkerRequest, UpdateBetaWorkerResponse, UpdateBetaWorkerError, Credentials | HttpClient.HttpClient>;
239
+ export interface PatchBetaWorkerRequest {
240
+ workerId: string;
241
+ /** Path param: Identifier. */
242
+ accountId: string;
243
+ /** Body param: Whether logpush is enabled for the Worker. */
244
+ logpush: boolean;
245
+ /** Body param: Name of the Worker. */
246
+ name: string;
247
+ /** Body param: Observability settings for the Worker. */
248
+ observability: {
249
+ enabled?: boolean;
250
+ headSamplingRate?: number;
251
+ logs?: {
252
+ enabled?: boolean;
253
+ headSamplingRate?: number;
254
+ invocationLogs?: boolean;
255
+ };
256
+ };
257
+ /** Body param: Subdomain settings for the Worker. */
258
+ subdomain: {
259
+ enabled?: boolean;
260
+ previewsEnabled?: boolean;
261
+ };
262
+ /** Body param: Tags associated with the Worker. */
263
+ tags: string[];
264
+ /** Body param: Other Workers that should consume logs from the Worker. */
265
+ tailConsumers: {
266
+ name: string;
267
+ }[];
268
+ }
269
+ export declare const PatchBetaWorkerRequest: Schema.Schema<PatchBetaWorkerRequest>;
270
+ export interface PatchBetaWorkerResponse {
271
+ /** ID of the referencing Worker. */
272
+ id: string;
273
+ /** Name of the referencing Worker. */
274
+ name: string;
275
+ }
276
+ export declare const PatchBetaWorkerResponse: Schema.Schema<PatchBetaWorkerResponse>;
277
+ export type PatchBetaWorkerError = DefaultErrors | WorkerNotFound;
278
+ export declare const patchBetaWorker: API.OperationMethod<PatchBetaWorkerRequest, PatchBetaWorkerResponse, PatchBetaWorkerError, Credentials | HttpClient.HttpClient>;
279
+ export interface DeleteBetaWorkerRequest {
280
+ workerId: string;
281
+ /** Identifier. */
282
+ accountId: string;
283
+ }
284
+ export declare const DeleteBetaWorkerRequest: Schema.Schema<DeleteBetaWorkerRequest>;
285
+ export interface DeleteBetaWorkerResponse {
286
+ errors: {
287
+ code: number;
288
+ message: string;
289
+ documentationUrl?: string | null;
290
+ source?: {
291
+ pointer?: string | null;
292
+ } | null;
293
+ }[];
294
+ messages: {
295
+ code: number;
296
+ message: string;
297
+ documentationUrl?: string | null;
298
+ source?: {
299
+ pointer?: string | null;
300
+ } | null;
301
+ }[];
302
+ /** Whether the API call was successful. */
303
+ success: true;
304
+ }
305
+ export declare const DeleteBetaWorkerResponse: Schema.Schema<DeleteBetaWorkerResponse>;
306
+ export type DeleteBetaWorkerError = DefaultErrors | WorkerNotFound;
307
+ export declare const deleteBetaWorker: API.OperationMethod<DeleteBetaWorkerRequest, DeleteBetaWorkerResponse, DeleteBetaWorkerError, Credentials | HttpClient.HttpClient>;
308
+ export interface GetBetaWorkerVersionRequest {
309
+ workerId: string;
310
+ versionId: string;
311
+ /** Path param: Identifier. */
312
+ accountId: string;
313
+ /** Query param: Whether to include the `modules` property of the version in the response, which contains code and sourcemap content and may add several megabytes to the response size. */
314
+ include?: "modules";
315
+ }
316
+ export declare const GetBetaWorkerVersionRequest: Schema.Schema<GetBetaWorkerVersionRequest>;
317
+ export interface GetBetaWorkerVersionResponse {
318
+ /** Version identifier. */
319
+ id: string;
320
+ /** When the version was created. */
321
+ createdOn: string;
322
+ /** The integer version number, starting from one. */
323
+ number: number;
324
+ /** Metadata about the version. */
325
+ annotations?: {
326
+ workersMessage?: string | null;
327
+ workersTag?: string | null;
328
+ workersTriggeredBy?: string | null;
329
+ } | null;
330
+ /** Configuration for assets within a Worker. [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and [`_redirects`](https://developers.cloudflare.com/workers/st */
331
+ assets?: {
332
+ config?: {
333
+ htmlHandling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none" | null;
334
+ notFoundHandling?: "none" | "404-page" | "single-page-application" | null;
335
+ runWorkerFirst?: string[] | boolean | null;
336
+ } | null;
337
+ jwt?: string | null;
338
+ } | null;
339
+ /** List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. */
340
+ bindings?: ({
341
+ name: string;
342
+ type: "ai";
343
+ } | {
344
+ dataset: string;
345
+ name: string;
346
+ type: "analytics_engine";
347
+ } | {
348
+ name: string;
349
+ type: "assets";
350
+ } | {
351
+ name: string;
352
+ type: "browser";
353
+ } | {
354
+ id: string;
355
+ name: string;
356
+ type: "d1";
357
+ } | {
358
+ name: string;
359
+ part: string;
360
+ type: "data_blob";
361
+ } | {
362
+ name: string;
363
+ namespace: string;
364
+ type: "dispatch_namespace";
365
+ outbound?: {
366
+ params?: string[] | null;
367
+ worker?: {
368
+ environment?: string | null;
369
+ service?: string | null;
370
+ } | null;
371
+ } | null;
372
+ } | {
373
+ name: string;
374
+ type: "durable_object_namespace";
375
+ className?: string | null;
376
+ environment?: string | null;
377
+ namespaceId?: string | null;
378
+ scriptName?: string | null;
379
+ } | {
380
+ id: string;
381
+ name: string;
382
+ type: "hyperdrive";
383
+ } | {
384
+ name: string;
385
+ type: "inherit";
386
+ oldName?: string | null;
387
+ versionId?: string | null;
388
+ } | {
389
+ name: string;
390
+ type: "images";
391
+ } | {
392
+ json: string;
393
+ name: string;
394
+ type: "json";
395
+ } | {
396
+ name: string;
397
+ namespaceId: string;
398
+ type: "kv_namespace";
399
+ } | {
400
+ certificateId: string;
401
+ name: string;
402
+ type: "mtls_certificate";
403
+ } | {
404
+ name: string;
405
+ text: string;
406
+ type: "plain_text";
407
+ } | {
408
+ name: string;
409
+ pipeline: string;
410
+ type: "pipelines";
411
+ } | {
412
+ name: string;
413
+ queueName: string;
414
+ type: "queue";
415
+ } | {
416
+ bucketName: string;
417
+ name: string;
418
+ type: "r2_bucket";
419
+ jurisdiction?: "eu" | "fedramp" | null;
420
+ } | {
421
+ name: string;
422
+ type: "secret_text";
423
+ } | {
424
+ name: string;
425
+ type: "send_email";
426
+ allowedDestinationAddresses?: string[] | null;
427
+ allowedSenderAddresses?: string[] | null;
428
+ destinationAddress?: string | null;
429
+ } | {
430
+ name: string;
431
+ service: string;
432
+ type: "service";
433
+ environment?: string | null;
434
+ } | {
435
+ name: string;
436
+ part: string;
437
+ type: "text_blob";
438
+ } | {
439
+ indexName: string;
440
+ name: string;
441
+ type: "vectorize";
442
+ } | {
443
+ name: string;
444
+ type: "version_metadata";
445
+ } | {
446
+ name: string;
447
+ secretName: string;
448
+ storeId: string;
449
+ type: "secrets_store_secret";
450
+ } | {
451
+ algorithm: unknown;
452
+ format: "raw" | "pkcs8" | "spki" | "jwk";
453
+ name: string;
454
+ type: "secret_key";
455
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
456
+ } | {
457
+ name: string;
458
+ type: "workflow";
459
+ workflowName: string;
460
+ className?: string | null;
461
+ scriptName?: string | null;
462
+ } | {
463
+ name: string;
464
+ part: string;
465
+ type: "wasm_module";
466
+ })[] | null;
467
+ /** Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. */
468
+ compatibilityDate?: string | null;
469
+ /** Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`. */
470
+ compatibilityFlags?: string[] | null;
471
+ /** Resource limits enforced at runtime. */
472
+ limits?: {
473
+ cpuMs: number;
474
+ } | null;
475
+ /** The name of the main module in the `modules` array (e.g. the name of the module that exports a `fetch` handler). */
476
+ mainModule?: string | null;
477
+ /** Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed. */
478
+ migrations?: unknown | null;
479
+ /** Code, sourcemaps, and other content used at runtime. This includes [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and [`_redirects`](https://developers. */
480
+ modules?: {
481
+ contentBase64: string;
482
+ contentType: string;
483
+ name: string;
484
+ }[] | null;
485
+ /** Placement settings for the version. */
486
+ placement?: {
487
+ mode?: "smart" | null;
488
+ } | null;
489
+ /** The client used to create the version. */
490
+ source?: string | null;
491
+ /** Time in milliseconds spent on [Worker startup](https://developers.cloudflare.com/workers/platform/limits/#worker-startup-time). */
492
+ startupTimeMs?: number | null;
493
+ /** @deprecated Usage model for the version. */
494
+ usageModel?: "standard" | "bundled" | "unbound" | null;
495
+ }
496
+ export declare const GetBetaWorkerVersionResponse: Schema.Schema<GetBetaWorkerVersionResponse>;
497
+ export type GetBetaWorkerVersionError = DefaultErrors | WorkerNotFound;
498
+ export declare const getBetaWorkerVersion: API.OperationMethod<GetBetaWorkerVersionRequest, GetBetaWorkerVersionResponse, GetBetaWorkerVersionError, Credentials | HttpClient.HttpClient>;
499
+ export interface ListBetaWorkerVersionsRequest {
500
+ workerId: string;
501
+ /** Path param: Identifier. */
502
+ accountId: string;
503
+ }
504
+ export declare const ListBetaWorkerVersionsRequest: Schema.Schema<ListBetaWorkerVersionsRequest>;
505
+ export interface ListBetaWorkerVersionsResponse {
506
+ result: {
507
+ id: string;
508
+ createdOn: string;
509
+ number: number;
510
+ annotations?: {
511
+ workersMessage?: string | null;
512
+ workersTag?: string | null;
513
+ workersTriggeredBy?: string | null;
514
+ } | null;
515
+ assets?: {
516
+ config?: {
517
+ htmlHandling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none" | null;
518
+ notFoundHandling?: "none" | "404-page" | "single-page-application" | null;
519
+ runWorkerFirst?: string[] | boolean | null;
520
+ } | null;
521
+ jwt?: string | null;
522
+ } | null;
523
+ bindings?: ({
524
+ name: string;
525
+ type: "ai";
526
+ } | {
527
+ dataset: string;
528
+ name: string;
529
+ type: "analytics_engine";
530
+ } | {
531
+ name: string;
532
+ type: "assets";
533
+ } | {
534
+ name: string;
535
+ type: "browser";
536
+ } | {
537
+ id: string;
538
+ name: string;
539
+ type: "d1";
540
+ } | {
541
+ name: string;
542
+ part: string;
543
+ type: "data_blob";
544
+ } | {
545
+ name: string;
546
+ namespace: string;
547
+ type: "dispatch_namespace";
548
+ outbound?: {
549
+ params?: string[] | null;
550
+ worker?: {
551
+ environment?: string | null;
552
+ service?: string | null;
553
+ } | null;
554
+ } | null;
555
+ } | {
556
+ name: string;
557
+ type: "durable_object_namespace";
558
+ className?: string | null;
559
+ environment?: string | null;
560
+ namespaceId?: string | null;
561
+ scriptName?: string | null;
562
+ } | {
563
+ id: string;
564
+ name: string;
565
+ type: "hyperdrive";
566
+ } | {
567
+ name: string;
568
+ type: "inherit";
569
+ oldName?: string | null;
570
+ versionId?: string | null;
571
+ } | {
572
+ name: string;
573
+ type: "images";
574
+ } | {
575
+ json: string;
576
+ name: string;
577
+ type: "json";
578
+ } | {
579
+ name: string;
580
+ namespaceId: string;
581
+ type: "kv_namespace";
582
+ } | {
583
+ certificateId: string;
584
+ name: string;
585
+ type: "mtls_certificate";
586
+ } | {
587
+ name: string;
588
+ text: string;
589
+ type: "plain_text";
590
+ } | {
591
+ name: string;
592
+ pipeline: string;
593
+ type: "pipelines";
594
+ } | {
595
+ name: string;
596
+ queueName: string;
597
+ type: "queue";
598
+ } | {
599
+ bucketName: string;
600
+ name: string;
601
+ type: "r2_bucket";
602
+ jurisdiction?: "eu" | "fedramp" | null;
603
+ } | {
604
+ name: string;
605
+ type: "secret_text";
606
+ } | {
607
+ name: string;
608
+ type: "send_email";
609
+ allowedDestinationAddresses?: string[] | null;
610
+ allowedSenderAddresses?: string[] | null;
611
+ destinationAddress?: string | null;
612
+ } | {
613
+ name: string;
614
+ service: string;
615
+ type: "service";
616
+ environment?: string | null;
617
+ } | {
618
+ name: string;
619
+ part: string;
620
+ type: "text_blob";
621
+ } | {
622
+ indexName: string;
623
+ name: string;
624
+ type: "vectorize";
625
+ } | {
626
+ name: string;
627
+ type: "version_metadata";
628
+ } | {
629
+ name: string;
630
+ secretName: string;
631
+ storeId: string;
632
+ type: "secrets_store_secret";
633
+ } | {
634
+ algorithm: unknown;
635
+ format: "raw" | "pkcs8" | "spki" | "jwk";
636
+ name: string;
637
+ type: "secret_key";
638
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
639
+ } | {
640
+ name: string;
641
+ type: "workflow";
642
+ workflowName: string;
643
+ className?: string | null;
644
+ scriptName?: string | null;
645
+ } | {
646
+ name: string;
647
+ part: string;
648
+ type: "wasm_module";
649
+ })[] | null;
650
+ compatibilityDate?: string | null;
651
+ compatibilityFlags?: string[] | null;
652
+ limits?: {
653
+ cpuMs: number;
654
+ } | null;
655
+ mainModule?: string | null;
656
+ migrations?: unknown | null;
657
+ modules?: {
658
+ contentBase64: string;
659
+ contentType: string;
660
+ name: string;
661
+ }[] | null;
662
+ placement?: {
663
+ mode?: "smart" | null;
664
+ } | null;
665
+ source?: string | null;
666
+ startupTimeMs?: number | null;
667
+ usageModel?: "standard" | "bundled" | "unbound" | null;
668
+ }[];
669
+ resultInfo: {
670
+ count?: number | null;
671
+ page?: number | null;
672
+ perPage?: number | null;
673
+ totalCount?: number | null;
674
+ };
675
+ }
676
+ export declare const ListBetaWorkerVersionsResponse: Schema.Schema<ListBetaWorkerVersionsResponse>;
677
+ export type ListBetaWorkerVersionsError = DefaultErrors | WorkerNotFound;
678
+ export declare const listBetaWorkerVersions: API.PaginatedOperationMethod<ListBetaWorkerVersionsRequest, ListBetaWorkerVersionsResponse, ListBetaWorkerVersionsError, Credentials | HttpClient.HttpClient> & {
679
+ pages: (input: ListBetaWorkerVersionsRequest) => stream.Stream<ListBetaWorkerVersionsResponse, ListBetaWorkerVersionsError, Credentials | HttpClient.HttpClient>;
680
+ items: (input: ListBetaWorkerVersionsRequest) => stream.Stream<{
681
+ id: string;
682
+ createdOn: string;
683
+ number: number;
684
+ annotations?: {
685
+ workersMessage?: string | null;
686
+ workersTag?: string | null;
687
+ workersTriggeredBy?: string | null;
688
+ } | null;
689
+ assets?: {
690
+ config?: {
691
+ htmlHandling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none" | null;
692
+ notFoundHandling?: "none" | "404-page" | "single-page-application" | null;
693
+ runWorkerFirst?: string[] | boolean | null;
694
+ } | null;
695
+ jwt?: string | null;
696
+ } | null;
697
+ bindings?: ({
698
+ name: string;
699
+ type: "ai";
700
+ } | {
701
+ dataset: string;
702
+ name: string;
703
+ type: "analytics_engine";
704
+ } | {
705
+ name: string;
706
+ type: "assets";
707
+ } | {
708
+ name: string;
709
+ type: "browser";
710
+ } | {
711
+ id: string;
712
+ name: string;
713
+ type: "d1";
714
+ } | {
715
+ name: string;
716
+ part: string;
717
+ type: "data_blob";
718
+ } | {
719
+ name: string;
720
+ namespace: string;
721
+ type: "dispatch_namespace";
722
+ outbound?: {
723
+ params?: string[] | null;
724
+ worker?: {
725
+ environment?: string | null;
726
+ service?: string | null;
727
+ } | null;
728
+ } | null;
729
+ } | {
730
+ name: string;
731
+ type: "durable_object_namespace";
732
+ className?: string | null;
733
+ environment?: string | null;
734
+ namespaceId?: string | null;
735
+ scriptName?: string | null;
736
+ } | {
737
+ id: string;
738
+ name: string;
739
+ type: "hyperdrive";
740
+ } | {
741
+ name: string;
742
+ type: "inherit";
743
+ oldName?: string | null;
744
+ versionId?: string | null;
745
+ } | {
746
+ name: string;
747
+ type: "images";
748
+ } | {
749
+ json: string;
750
+ name: string;
751
+ type: "json";
752
+ } | {
753
+ name: string;
754
+ namespaceId: string;
755
+ type: "kv_namespace";
756
+ } | {
757
+ certificateId: string;
758
+ name: string;
759
+ type: "mtls_certificate";
760
+ } | {
761
+ name: string;
762
+ text: string;
763
+ type: "plain_text";
764
+ } | {
765
+ name: string;
766
+ pipeline: string;
767
+ type: "pipelines";
768
+ } | {
769
+ name: string;
770
+ queueName: string;
771
+ type: "queue";
772
+ } | {
773
+ bucketName: string;
774
+ name: string;
775
+ type: "r2_bucket";
776
+ jurisdiction?: "eu" | "fedramp" | null;
777
+ } | {
778
+ name: string;
779
+ type: "secret_text";
780
+ } | {
781
+ name: string;
782
+ type: "send_email";
783
+ allowedDestinationAddresses?: string[] | null;
784
+ allowedSenderAddresses?: string[] | null;
785
+ destinationAddress?: string | null;
786
+ } | {
787
+ name: string;
788
+ service: string;
789
+ type: "service";
790
+ environment?: string | null;
791
+ } | {
792
+ name: string;
793
+ part: string;
794
+ type: "text_blob";
795
+ } | {
796
+ indexName: string;
797
+ name: string;
798
+ type: "vectorize";
799
+ } | {
800
+ name: string;
801
+ type: "version_metadata";
802
+ } | {
803
+ name: string;
804
+ secretName: string;
805
+ storeId: string;
806
+ type: "secrets_store_secret";
807
+ } | {
808
+ algorithm: unknown;
809
+ format: "raw" | "pkcs8" | "spki" | "jwk";
810
+ name: string;
811
+ type: "secret_key";
812
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
813
+ } | {
814
+ name: string;
815
+ type: "workflow";
816
+ workflowName: string;
817
+ className?: string | null;
818
+ scriptName?: string | null;
819
+ } | {
820
+ name: string;
821
+ part: string;
822
+ type: "wasm_module";
823
+ })[] | null;
824
+ compatibilityDate?: string | null;
825
+ compatibilityFlags?: string[] | null;
826
+ limits?: {
827
+ cpuMs: number;
828
+ } | null;
829
+ mainModule?: string | null;
830
+ migrations?: unknown | null;
831
+ modules?: {
832
+ contentBase64: string;
833
+ contentType: string;
834
+ name: string;
835
+ }[] | null;
836
+ placement?: {
837
+ mode?: "smart" | null;
838
+ } | null;
839
+ source?: string | null;
840
+ startupTimeMs?: number | null;
841
+ usageModel?: "standard" | "bundled" | "unbound" | null;
842
+ }, ListBetaWorkerVersionsError, Credentials | HttpClient.HttpClient>;
843
+ };
844
+ export interface CreateBetaWorkerVersionRequest {
845
+ workerId: string;
846
+ /** Path param: Identifier. */
847
+ accountId: string;
848
+ /** Query param: If true, a deployment will be created that sends 100% of traffic to the new version. */
849
+ deploy?: boolean;
850
+ /** Body param: Metadata about the version. */
851
+ annotations?: {
852
+ workersMessage?: string;
853
+ workersTag?: string;
854
+ };
855
+ /** Body param: Configuration for assets within a Worker. [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and [`_redirects`](https://developers.cloudflare.co */
856
+ assets?: {
857
+ config?: {
858
+ htmlHandling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none";
859
+ notFoundHandling?: "none" | "404-page" | "single-page-application";
860
+ runWorkerFirst?: string[] | boolean;
861
+ };
862
+ jwt?: string;
863
+ };
864
+ /** Body param: List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. */
865
+ bindings?: ({
866
+ name: string;
867
+ type: "ai";
868
+ } | {
869
+ dataset: string;
870
+ name: string;
871
+ type: "analytics_engine";
872
+ } | {
873
+ name: string;
874
+ type: "assets";
875
+ } | {
876
+ name: string;
877
+ type: "browser";
878
+ } | {
879
+ id: string;
880
+ name: string;
881
+ type: "d1";
882
+ } | {
883
+ name: string;
884
+ part: string;
885
+ type: "data_blob";
886
+ } | {
887
+ name: string;
888
+ namespace: string;
889
+ type: "dispatch_namespace";
890
+ outbound?: {
891
+ params?: string[];
892
+ worker?: {
893
+ environment?: string;
894
+ service?: string;
895
+ };
896
+ };
897
+ } | {
898
+ name: string;
899
+ type: "durable_object_namespace";
900
+ className?: string;
901
+ environment?: string;
902
+ namespaceId?: string;
903
+ scriptName?: string;
904
+ } | {
905
+ id: string;
906
+ name: string;
907
+ type: "hyperdrive";
908
+ } | {
909
+ name: string;
910
+ type: "inherit";
911
+ oldName?: string;
912
+ versionId?: string;
913
+ } | {
914
+ name: string;
915
+ type: "images";
916
+ } | {
917
+ json: string;
918
+ name: string;
919
+ type: "json";
920
+ } | {
921
+ name: string;
922
+ namespaceId: string;
923
+ type: "kv_namespace";
924
+ } | {
925
+ certificateId: string;
926
+ name: string;
927
+ type: "mtls_certificate";
928
+ } | {
929
+ name: string;
930
+ text: string;
931
+ type: "plain_text";
932
+ } | {
933
+ name: string;
934
+ pipeline: string;
935
+ type: "pipelines";
936
+ } | {
937
+ name: string;
938
+ queueName: string;
939
+ type: "queue";
940
+ } | {
941
+ bucketName: string;
942
+ name: string;
943
+ type: "r2_bucket";
944
+ jurisdiction?: "eu" | "fedramp";
945
+ } | {
946
+ name: string;
947
+ text: string;
948
+ type: "secret_text";
949
+ } | {
950
+ name: string;
951
+ type: "send_email";
952
+ allowedDestinationAddresses?: string[];
953
+ allowedSenderAddresses?: string[];
954
+ destinationAddress?: string;
955
+ } | {
956
+ name: string;
957
+ service: string;
958
+ type: "service";
959
+ environment?: string;
960
+ } | {
961
+ name: string;
962
+ part: string;
963
+ type: "text_blob";
964
+ } | {
965
+ indexName: string;
966
+ name: string;
967
+ type: "vectorize";
968
+ } | {
969
+ name: string;
970
+ type: "version_metadata";
971
+ } | {
972
+ name: string;
973
+ secretName: string;
974
+ storeId: string;
975
+ type: "secrets_store_secret";
976
+ } | {
977
+ algorithm: unknown;
978
+ format: "raw" | "pkcs8" | "spki" | "jwk";
979
+ name: string;
980
+ type: "secret_key";
981
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
982
+ keyBase64?: string;
983
+ keyJwk?: unknown;
984
+ } | {
985
+ name: string;
986
+ type: "workflow";
987
+ workflowName: string;
988
+ className?: string;
989
+ scriptName?: string;
990
+ } | {
991
+ name: string;
992
+ part: string;
993
+ type: "wasm_module";
994
+ })[];
995
+ /** Body param: Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. */
996
+ compatibilityDate?: string;
997
+ /** Body param: Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`. */
998
+ compatibilityFlags?: string[];
999
+ /** Body param: Resource limits enforced at runtime. */
1000
+ limits?: {
1001
+ cpuMs: number;
1002
+ };
1003
+ /** Body param: The name of the main module in the `modules` array (e.g. the name of the module that exports a `fetch` handler). */
1004
+ mainModule?: string;
1005
+ /** Body param: Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed. */
1006
+ migrations?: unknown | {
1007
+ newTag?: string;
1008
+ oldTag?: string;
1009
+ steps?: unknown[];
1010
+ };
1011
+ /** Body param: Code, sourcemaps, and other content used at runtime. This includes [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and [`_redirects`](https:/ */
1012
+ modules?: {
1013
+ contentBase64: string;
1014
+ contentType: string;
1015
+ name: string;
1016
+ }[];
1017
+ /** Body param: Placement settings for the version. */
1018
+ placement?: {
1019
+ mode?: "smart";
1020
+ };
1021
+ /** @deprecated Body param: Usage model for the version. */
1022
+ usageModel?: "standard" | "bundled" | "unbound";
1023
+ }
1024
+ export declare const CreateBetaWorkerVersionRequest: Schema.Schema<CreateBetaWorkerVersionRequest>;
1025
+ export interface CreateBetaWorkerVersionResponse {
1026
+ /** Version identifier. */
1027
+ id: string;
1028
+ /** When the version was created. */
1029
+ createdOn: string;
1030
+ /** The integer version number, starting from one. */
1031
+ number: number;
1032
+ /** Metadata about the version. */
1033
+ annotations?: {
1034
+ workersMessage?: string | null;
1035
+ workersTag?: string | null;
1036
+ workersTriggeredBy?: string | null;
1037
+ } | null;
1038
+ /** Configuration for assets within a Worker. [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and [`_redirects`](https://developers.cloudflare.com/workers/st */
1039
+ assets?: {
1040
+ config?: {
1041
+ htmlHandling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none" | null;
1042
+ notFoundHandling?: "none" | "404-page" | "single-page-application" | null;
1043
+ runWorkerFirst?: string[] | boolean | null;
1044
+ } | null;
1045
+ jwt?: string | null;
1046
+ } | null;
1047
+ /** List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. */
1048
+ bindings?: ({
1049
+ name: string;
1050
+ type: "ai";
1051
+ } | {
1052
+ dataset: string;
1053
+ name: string;
1054
+ type: "analytics_engine";
1055
+ } | {
1056
+ name: string;
1057
+ type: "assets";
1058
+ } | {
1059
+ name: string;
1060
+ type: "browser";
1061
+ } | {
1062
+ id: string;
1063
+ name: string;
1064
+ type: "d1";
1065
+ } | {
1066
+ name: string;
1067
+ part: string;
1068
+ type: "data_blob";
1069
+ } | {
1070
+ name: string;
1071
+ namespace: string;
1072
+ type: "dispatch_namespace";
1073
+ outbound?: {
1074
+ params?: string[] | null;
1075
+ worker?: {
1076
+ environment?: string | null;
1077
+ service?: string | null;
1078
+ } | null;
1079
+ } | null;
1080
+ } | {
1081
+ name: string;
1082
+ type: "durable_object_namespace";
1083
+ className?: string | null;
1084
+ environment?: string | null;
1085
+ namespaceId?: string | null;
1086
+ scriptName?: string | null;
1087
+ } | {
1088
+ id: string;
1089
+ name: string;
1090
+ type: "hyperdrive";
1091
+ } | {
1092
+ name: string;
1093
+ type: "inherit";
1094
+ oldName?: string | null;
1095
+ versionId?: string | null;
1096
+ } | {
1097
+ name: string;
1098
+ type: "images";
1099
+ } | {
1100
+ json: string;
1101
+ name: string;
1102
+ type: "json";
1103
+ } | {
1104
+ name: string;
1105
+ namespaceId: string;
1106
+ type: "kv_namespace";
1107
+ } | {
1108
+ certificateId: string;
1109
+ name: string;
1110
+ type: "mtls_certificate";
1111
+ } | {
1112
+ name: string;
1113
+ text: string;
1114
+ type: "plain_text";
1115
+ } | {
1116
+ name: string;
1117
+ pipeline: string;
1118
+ type: "pipelines";
1119
+ } | {
1120
+ name: string;
1121
+ queueName: string;
1122
+ type: "queue";
1123
+ } | {
1124
+ bucketName: string;
1125
+ name: string;
1126
+ type: "r2_bucket";
1127
+ jurisdiction?: "eu" | "fedramp" | null;
1128
+ } | {
1129
+ name: string;
1130
+ type: "secret_text";
1131
+ } | {
1132
+ name: string;
1133
+ type: "send_email";
1134
+ allowedDestinationAddresses?: string[] | null;
1135
+ allowedSenderAddresses?: string[] | null;
1136
+ destinationAddress?: string | null;
1137
+ } | {
1138
+ name: string;
1139
+ service: string;
1140
+ type: "service";
1141
+ environment?: string | null;
1142
+ } | {
1143
+ name: string;
1144
+ part: string;
1145
+ type: "text_blob";
1146
+ } | {
1147
+ indexName: string;
1148
+ name: string;
1149
+ type: "vectorize";
1150
+ } | {
1151
+ name: string;
1152
+ type: "version_metadata";
1153
+ } | {
1154
+ name: string;
1155
+ secretName: string;
1156
+ storeId: string;
1157
+ type: "secrets_store_secret";
1158
+ } | {
1159
+ algorithm: unknown;
1160
+ format: "raw" | "pkcs8" | "spki" | "jwk";
1161
+ name: string;
1162
+ type: "secret_key";
1163
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
1164
+ } | {
1165
+ name: string;
1166
+ type: "workflow";
1167
+ workflowName: string;
1168
+ className?: string | null;
1169
+ scriptName?: string | null;
1170
+ } | {
1171
+ name: string;
1172
+ part: string;
1173
+ type: "wasm_module";
1174
+ })[] | null;
1175
+ /** Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. */
1176
+ compatibilityDate?: string | null;
1177
+ /** Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`. */
1178
+ compatibilityFlags?: string[] | null;
1179
+ /** Resource limits enforced at runtime. */
1180
+ limits?: {
1181
+ cpuMs: number;
1182
+ } | null;
1183
+ /** The name of the main module in the `modules` array (e.g. the name of the module that exports a `fetch` handler). */
1184
+ mainModule?: string | null;
1185
+ /** Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed. */
1186
+ migrations?: unknown | null;
1187
+ /** Code, sourcemaps, and other content used at runtime. This includes [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and [`_redirects`](https://developers. */
1188
+ modules?: {
1189
+ contentBase64: string;
1190
+ contentType: string;
1191
+ name: string;
1192
+ }[] | null;
1193
+ /** Placement settings for the version. */
1194
+ placement?: {
1195
+ mode?: "smart" | null;
1196
+ } | null;
1197
+ /** The client used to create the version. */
1198
+ source?: string | null;
1199
+ /** Time in milliseconds spent on [Worker startup](https://developers.cloudflare.com/workers/platform/limits/#worker-startup-time). */
1200
+ startupTimeMs?: number | null;
1201
+ /** @deprecated Usage model for the version. */
1202
+ usageModel?: "standard" | "bundled" | "unbound" | null;
1203
+ }
1204
+ export declare const CreateBetaWorkerVersionResponse: Schema.Schema<CreateBetaWorkerVersionResponse>;
1205
+ export type CreateBetaWorkerVersionError = DefaultErrors | WorkerNotFound;
1206
+ export declare const createBetaWorkerVersion: API.OperationMethod<CreateBetaWorkerVersionRequest, CreateBetaWorkerVersionResponse, CreateBetaWorkerVersionError, Credentials | HttpClient.HttpClient>;
1207
+ export interface DeleteBetaWorkerVersionRequest {
1208
+ workerId: string;
1209
+ versionId: string;
1210
+ /** Identifier. */
1211
+ accountId: string;
1212
+ }
1213
+ export declare const DeleteBetaWorkerVersionRequest: Schema.Schema<DeleteBetaWorkerVersionRequest>;
1214
+ export interface DeleteBetaWorkerVersionResponse {
1215
+ errors: {
1216
+ code: number;
1217
+ message: string;
1218
+ documentationUrl?: string | null;
1219
+ source?: {
1220
+ pointer?: string | null;
1221
+ } | null;
1222
+ }[];
1223
+ messages: {
1224
+ code: number;
1225
+ message: string;
1226
+ documentationUrl?: string | null;
1227
+ source?: {
1228
+ pointer?: string | null;
1229
+ } | null;
1230
+ }[];
1231
+ /** Whether the API call was successful. */
1232
+ success: true;
1233
+ }
1234
+ export declare const DeleteBetaWorkerVersionResponse: Schema.Schema<DeleteBetaWorkerVersionResponse>;
1235
+ export type DeleteBetaWorkerVersionError = DefaultErrors | WorkerNotFound;
1236
+ export declare const deleteBetaWorkerVersion: API.OperationMethod<DeleteBetaWorkerVersionRequest, DeleteBetaWorkerVersionResponse, DeleteBetaWorkerVersionError, Credentials | HttpClient.HttpClient>;
1237
+ export interface GetDomainRequest {
1238
+ domainId: string;
1239
+ /** Identifer of the account. */
1240
+ accountId: string;
1241
+ }
1242
+ export declare const GetDomainRequest: Schema.Schema<GetDomainRequest>;
1243
+ export interface GetDomainResponse {
1244
+ /** Identifer of the Worker Domain. */
1245
+ id?: string | null;
1246
+ /** @deprecated Worker environment associated with the zone and hostname. */
1247
+ environment?: string | null;
1248
+ /** Hostname of the Worker Domain. */
1249
+ hostname?: string | null;
1250
+ /** Worker service associated with the zone and hostname. */
1251
+ service?: string | null;
1252
+ /** Identifier of the zone. */
1253
+ zoneId?: string | null;
1254
+ /** Name of the zone. */
1255
+ zoneName?: string | null;
1256
+ }
1257
+ export declare const GetDomainResponse: Schema.Schema<GetDomainResponse>;
1258
+ export type GetDomainError = DefaultErrors | DomainNotFound | InvalidRoute;
1259
+ export declare const getDomain: API.OperationMethod<GetDomainRequest, GetDomainResponse, GetDomainError, Credentials | HttpClient.HttpClient>;
1260
+ export interface ListDomainsRequest {
1261
+ /** Path param: Identifer of the account. */
1262
+ accountId: string;
1263
+ /** Query param: Worker environment associated with the zone and hostname. */
1264
+ environment?: string;
1265
+ /** Query param: Hostname of the Worker Domain. */
1266
+ hostname?: string;
1267
+ /** Query param: Worker service associated with the zone and hostname. */
1268
+ service?: string;
1269
+ /** Query param: Identifier of the zone. */
1270
+ zoneId?: string;
1271
+ /** Query param: Name of the zone. */
1272
+ zoneName?: string;
1273
+ }
1274
+ export declare const ListDomainsRequest: Schema.Schema<ListDomainsRequest>;
1275
+ export interface ListDomainsResponse {
1276
+ result: {
1277
+ id?: string | null;
1278
+ environment?: string | null;
1279
+ hostname?: string | null;
1280
+ service?: string | null;
1281
+ zoneId?: string | null;
1282
+ zoneName?: string | null;
1283
+ }[];
1284
+ }
1285
+ export declare const ListDomainsResponse: Schema.Schema<ListDomainsResponse>;
1286
+ export type ListDomainsError = DefaultErrors | InvalidRoute;
1287
+ export declare const listDomains: API.PaginatedOperationMethod<ListDomainsRequest, ListDomainsResponse, ListDomainsError, Credentials | HttpClient.HttpClient> & {
1288
+ pages: (input: ListDomainsRequest) => stream.Stream<ListDomainsResponse, ListDomainsError, Credentials | HttpClient.HttpClient>;
1289
+ items: (input: ListDomainsRequest) => stream.Stream<{
1290
+ id?: string | null;
1291
+ environment?: string | null;
1292
+ hostname?: string | null;
1293
+ service?: string | null;
1294
+ zoneId?: string | null;
1295
+ zoneName?: string | null;
1296
+ }, ListDomainsError, Credentials | HttpClient.HttpClient>;
1297
+ };
1298
+ export interface PutDomainRequest {
1299
+ /** Path param: Identifer of the account. */
1300
+ accountId: string;
1301
+ /** Body param: Hostname of the Worker Domain. */
1302
+ hostname: string;
1303
+ /** Body param: Worker service associated with the zone and hostname. */
1304
+ service: string;
1305
+ /** Body param: Identifier of the zone. */
1306
+ zoneId: string;
1307
+ /** @deprecated Body param: Worker environment associated with the zone and hostname. */
1308
+ environment?: string;
1309
+ }
1310
+ export declare const PutDomainRequest: Schema.Schema<PutDomainRequest>;
1311
+ export interface PutDomainResponse {
1312
+ /** Identifer of the Worker Domain. */
1313
+ id?: string | null;
1314
+ /** @deprecated Worker environment associated with the zone and hostname. */
1315
+ environment?: string | null;
1316
+ /** Hostname of the Worker Domain. */
1317
+ hostname?: string | null;
1318
+ /** Worker service associated with the zone and hostname. */
1319
+ service?: string | null;
1320
+ /** Identifier of the zone. */
1321
+ zoneId?: string | null;
1322
+ /** Name of the zone. */
1323
+ zoneName?: string | null;
1324
+ }
1325
+ export declare const PutDomainResponse: Schema.Schema<PutDomainResponse>;
1326
+ export type PutDomainError = DefaultErrors | WorkerNotFound | InvalidRoute;
1327
+ export declare const putDomain: API.OperationMethod<PutDomainRequest, PutDomainResponse, PutDomainError, Credentials | HttpClient.HttpClient>;
1328
+ export interface DeleteDomainRequest {
1329
+ domainId: string;
1330
+ /** Identifer of the account. */
1331
+ accountId: string;
1332
+ }
1333
+ export declare const DeleteDomainRequest: Schema.Schema<DeleteDomainRequest>;
1334
+ export type DeleteDomainResponse = unknown;
1335
+ export declare const DeleteDomainResponse: Schema.Schema<unknown>;
1336
+ export type DeleteDomainError = DefaultErrors | DomainNotFound;
1337
+ export declare const deleteDomain: API.OperationMethod<DeleteDomainRequest, DeleteDomainResponse, DeleteDomainError, Credentials | HttpClient.HttpClient>;
1338
+ export interface KeysObservabilityTelemetryRequest {
1339
+ /** Path param: Your Cloudflare account ID. */
1340
+ accountId: string;
1341
+ /** Body param: */
1342
+ datasets?: string[];
1343
+ /** Body param: */
1344
+ filters?: {
1345
+ key: string;
1346
+ operation: "includes" | "not_includes" | "starts_with" | "regex" | "exists" | "is_null" | "in" | "not_in" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "INCLUDES" | "DOES_NOT_INCLUDE" | "MATCH_REGEX" | "EXISTS" | "DOES_NOT_EXIST" | "IN" | "NOT_IN" | "STARTS_WITH";
1347
+ type: "string" | "number" | "boolean";
1348
+ value?: string | number | boolean;
1349
+ }[];
1350
+ /** Body param: */
1351
+ from?: number;
1352
+ /** Body param: Search for a specific substring in the keys. */
1353
+ keyNeedle?: {
1354
+ value: string | number | boolean;
1355
+ isRegex?: boolean;
1356
+ matchCase?: boolean;
1357
+ };
1358
+ /** Body param: */
1359
+ limit?: number;
1360
+ /** Body param: Search for a specific substring in any of the events */
1361
+ needle?: {
1362
+ value: string | number | boolean;
1363
+ isRegex?: boolean;
1364
+ matchCase?: boolean;
1365
+ };
1366
+ /** Body param: */
1367
+ to?: number;
1368
+ }
1369
+ export declare const KeysObservabilityTelemetryRequest: Schema.Schema<KeysObservabilityTelemetryRequest>;
1370
+ export interface KeysObservabilityTelemetryResponse {
1371
+ result: {
1372
+ key: string;
1373
+ lastSeenAt: number;
1374
+ type: "string" | "boolean" | "number";
1375
+ }[];
1376
+ }
1377
+ export declare const KeysObservabilityTelemetryResponse: Schema.Schema<KeysObservabilityTelemetryResponse>;
1378
+ export type KeysObservabilityTelemetryError = DefaultErrors | InvalidRoute;
1379
+ export declare const keysObservabilityTelemetry: API.PaginatedOperationMethod<KeysObservabilityTelemetryRequest, KeysObservabilityTelemetryResponse, KeysObservabilityTelemetryError, Credentials | HttpClient.HttpClient> & {
1380
+ pages: (input: KeysObservabilityTelemetryRequest) => stream.Stream<KeysObservabilityTelemetryResponse, KeysObservabilityTelemetryError, Credentials | HttpClient.HttpClient>;
1381
+ items: (input: KeysObservabilityTelemetryRequest) => stream.Stream<{
1382
+ key: string;
1383
+ lastSeenAt: number;
1384
+ type: "string" | "boolean" | "number";
1385
+ }, KeysObservabilityTelemetryError, Credentials | HttpClient.HttpClient>;
1386
+ };
1387
+ export interface QueryObservabilityTelemetryRequest {
1388
+ /** Path param: Your Cloudflare account ID. */
1389
+ accountId: string;
1390
+ /** Body param: Unique identifier for the query to execute */
1391
+ queryId: string;
1392
+ /** Body param: Time range for the query execution */
1393
+ timeframe: {
1394
+ from: number;
1395
+ to: number;
1396
+ };
1397
+ /** Body param: Whether to include timeseties data in the response */
1398
+ chart?: boolean;
1399
+ /** Body param: Whether to include comparison data with previous time periods */
1400
+ compare?: boolean;
1401
+ /** Body param: Whether to perform a dry run without saving the results of the query. Useful for validation */
1402
+ dry?: boolean;
1403
+ /** Body param: Time granularity for aggregating results (in milliseconds). Controls the bucketing of time-series data */
1404
+ granularity?: number;
1405
+ /** Body param: Whether to ignore time-series data in the results and return only aggregated values */
1406
+ ignoreSeries?: boolean;
1407
+ /** Body param: Maximum number of events to return. */
1408
+ limit?: number;
1409
+ /** Body param: Cursor for pagination to retrieve the next set of results */
1410
+ offset?: string;
1411
+ /** Body param: Number of events to skip for pagination. Used in conjunction with offset */
1412
+ offsetBy?: number;
1413
+ /** Body param: Direction for offset-based pagination (e.g., 'next', 'prev') */
1414
+ offsetDirection?: string;
1415
+ /** Body param: Optional parameters to pass to the query execution */
1416
+ parameters?: {
1417
+ calculations?: {
1418
+ operator: "uniq" | "count" | "max" | "min" | "sum" | "avg" | "median" | "p001" | "p01" | "p05" | "p10" | "p25" | "p75" | "p90" | "p95" | "p99" | "p999" | "stddev" | "variance" | "COUNT_DISTINCT" | "COUNT" | "MAX" | "MIN" | "SUM" | "AVG" | "MEDIAN" | "P001" | "P01" | "P05" | "P10" | "P25" | "P75" | "P90" | "P95" | "P99" | "P999" | "STDDEV" | "VARIANCE";
1419
+ alias?: string;
1420
+ key?: string;
1421
+ keyType?: "string" | "number" | "boolean";
1422
+ }[];
1423
+ datasets?: string[];
1424
+ filterCombination?: "and" | "or" | "AND" | "OR";
1425
+ filters?: {
1426
+ key: string;
1427
+ operation: "includes" | "not_includes" | "starts_with" | "regex" | "exists" | "is_null" | "in" | "not_in" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "INCLUDES" | "DOES_NOT_INCLUDE" | "MATCH_REGEX" | "EXISTS" | "DOES_NOT_EXIST" | "IN" | "NOT_IN" | "STARTS_WITH";
1428
+ type: "string" | "number" | "boolean";
1429
+ value?: string | number | boolean;
1430
+ }[];
1431
+ groupBys?: {
1432
+ type: "string" | "number" | "boolean";
1433
+ value: string;
1434
+ }[];
1435
+ havings?: {
1436
+ key: string;
1437
+ operation: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
1438
+ value: number;
1439
+ }[];
1440
+ limit?: number;
1441
+ needle?: {
1442
+ value: string | number | boolean;
1443
+ isRegex?: boolean;
1444
+ matchCase?: boolean;
1445
+ };
1446
+ orderBy?: {
1447
+ value: string;
1448
+ order?: "asc" | "desc";
1449
+ };
1450
+ };
1451
+ /** Body param: Type of pattern to search for when using pattern-based views */
1452
+ patternType?: "message" | "error";
1453
+ /** Body param: View type for presenting the query results. */
1454
+ view?: "traces" | "events" | "calculations" | "invocations" | "requests" | "patterns";
1455
+ }
1456
+ export declare const QueryObservabilityTelemetryRequest: Schema.Schema<QueryObservabilityTelemetryRequest>;
1457
+ export interface QueryObservabilityTelemetryResponse {
1458
+ /** A Workers Observability Query Object */
1459
+ run: {
1460
+ id: string;
1461
+ accountId: string;
1462
+ dry: boolean;
1463
+ environmentId: string;
1464
+ granularity: number;
1465
+ query: {
1466
+ id: string;
1467
+ created: string;
1468
+ description: string | null;
1469
+ environmentId: string;
1470
+ generated: boolean | null;
1471
+ name: string | null;
1472
+ parameters: {
1473
+ calculations?: {
1474
+ operator: "uniq" | "count" | "max" | "min" | "sum" | "avg" | "median" | "p001" | "p01" | "p05" | "p10" | "p25" | "p75" | "p90" | "p95" | "p99" | "p999" | "stddev" | "variance" | "COUNT_DISTINCT" | "COUNT" | "MAX" | "MIN" | "SUM" | "AVG" | "MEDIAN" | "P001" | "P01" | "P05" | "P10" | "P25" | "P75" | "P90" | "P95" | "P99" | "P999" | "STDDEV" | "VARIANCE";
1475
+ alias?: string | null;
1476
+ key?: string | null;
1477
+ keyType?: "string" | "number" | "boolean" | null;
1478
+ }[] | null;
1479
+ datasets?: string[] | null;
1480
+ filterCombination?: "and" | "or" | "AND" | "OR" | null;
1481
+ filters?: {
1482
+ key: string;
1483
+ operation: "includes" | "not_includes" | "starts_with" | "regex" | "exists" | "is_null" | "in" | "not_in" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "INCLUDES" | "DOES_NOT_INCLUDE" | "MATCH_REGEX" | "EXISTS" | "DOES_NOT_EXIST" | "IN" | "NOT_IN" | "STARTS_WITH";
1484
+ type: "string" | "number" | "boolean";
1485
+ value?: string | number | boolean | null;
1486
+ }[] | null;
1487
+ groupBys?: {
1488
+ type: "string" | "number" | "boolean";
1489
+ value: string;
1490
+ }[] | null;
1491
+ havings?: {
1492
+ key: string;
1493
+ operation: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
1494
+ value: number;
1495
+ }[] | null;
1496
+ limit?: number | null;
1497
+ needle?: {
1498
+ value: string | number | boolean;
1499
+ isRegex?: boolean | null;
1500
+ matchCase?: boolean | null;
1501
+ } | null;
1502
+ orderBy?: {
1503
+ value: string;
1504
+ order?: "asc" | "desc" | null;
1505
+ } | null;
1506
+ };
1507
+ updated: string;
1508
+ userId: string;
1509
+ workspaceId: string;
1510
+ };
1511
+ status: "STARTED" | "COMPLETED";
1512
+ timeframe: {
1513
+ from: number;
1514
+ to: number;
1515
+ };
1516
+ userId: string;
1517
+ workspaceId: string;
1518
+ created?: string | null;
1519
+ statistics?: {
1520
+ bytesRead: number;
1521
+ elapsed: number;
1522
+ rowsRead: number;
1523
+ abrLevel?: number | null;
1524
+ } | null;
1525
+ updated?: string | null;
1526
+ };
1527
+ /** The statistics object contains information about query performance from the database, it does not include any network latency */
1528
+ statistics: {
1529
+ bytesRead: number;
1530
+ elapsed: number;
1531
+ rowsRead: number;
1532
+ abrLevel?: number | null;
1533
+ };
1534
+ calculations?: {
1535
+ aggregates: {
1536
+ count: number;
1537
+ interval: number;
1538
+ sampleInterval: number;
1539
+ value: number;
1540
+ groups?: {
1541
+ key: string;
1542
+ value: string | number | boolean;
1543
+ }[] | null;
1544
+ }[];
1545
+ calculation: string;
1546
+ series: {
1547
+ data: {
1548
+ count: number;
1549
+ interval: number;
1550
+ sampleInterval: number;
1551
+ value: number;
1552
+ groups?: {
1553
+ key: string;
1554
+ value: string | number | boolean;
1555
+ }[] | null;
1556
+ }[];
1557
+ time: string;
1558
+ }[];
1559
+ alias?: string | null;
1560
+ }[] | null;
1561
+ compare?: {
1562
+ aggregates: {
1563
+ count: number;
1564
+ interval: number;
1565
+ sampleInterval: number;
1566
+ value: number;
1567
+ groups?: {
1568
+ key: string;
1569
+ value: string | number | boolean;
1570
+ }[] | null;
1571
+ }[];
1572
+ calculation: string;
1573
+ series: {
1574
+ data: {
1575
+ count: number;
1576
+ interval: number;
1577
+ sampleInterval: number;
1578
+ value: number;
1579
+ groups?: {
1580
+ key: string;
1581
+ value: string | number | boolean;
1582
+ }[] | null;
1583
+ }[];
1584
+ time: string;
1585
+ }[];
1586
+ alias?: string | null;
1587
+ }[] | null;
1588
+ events?: {
1589
+ count?: number | null;
1590
+ events?: {
1591
+ $metadata: {
1592
+ id: string;
1593
+ account?: string | null;
1594
+ cloudService?: string | null;
1595
+ coldStart?: number | null;
1596
+ cost?: number | null;
1597
+ duration?: number | null;
1598
+ endTime?: number | null;
1599
+ error?: string | null;
1600
+ errorTemplate?: string | null;
1601
+ fingerprint?: string | null;
1602
+ level?: string | null;
1603
+ message?: string | null;
1604
+ messageTemplate?: string | null;
1605
+ metricName?: string | null;
1606
+ origin?: string | null;
1607
+ parentSpanId?: string | null;
1608
+ provider?: string | null;
1609
+ region?: string | null;
1610
+ requestId?: string | null;
1611
+ service?: string | null;
1612
+ spanId?: string | null;
1613
+ spanName?: string | null;
1614
+ stackId?: string | null;
1615
+ startTime?: number | null;
1616
+ statusCode?: number | null;
1617
+ traceDuration?: number | null;
1618
+ traceId?: string | null;
1619
+ transactionName?: string | null;
1620
+ trigger?: string | null;
1621
+ type?: string | null;
1622
+ url?: string | null;
1623
+ };
1624
+ dataset: string;
1625
+ source: unknown;
1626
+ timestamp: number;
1627
+ $containers?: unknown | null;
1628
+ $workers?: {
1629
+ eventType: "fetch" | "scheduled" | "alarm" | "cron" | "queue" | "email" | "tail" | "rpc" | "websocket" | "unknown";
1630
+ requestId: string;
1631
+ scriptName: string;
1632
+ durableObjectId?: string | null;
1633
+ entrypoint?: string | null;
1634
+ event?: Record<string, unknown> | null;
1635
+ executionModel?: "durableObject" | "stateless" | null;
1636
+ outcome?: string | null;
1637
+ scriptVersion?: {
1638
+ id?: string | null;
1639
+ message?: string | null;
1640
+ tag?: string | null;
1641
+ } | null;
1642
+ truncated?: boolean | null;
1643
+ } | {
1644
+ cpuTimeMs: number;
1645
+ eventType: "fetch" | "scheduled" | "alarm" | "cron" | "queue" | "email" | "tail" | "rpc" | "websocket" | "unknown";
1646
+ outcome: string;
1647
+ requestId: string;
1648
+ scriptName: string;
1649
+ wallTimeMs: number;
1650
+ diagnosticsChannelEvents?: {
1651
+ channel: string;
1652
+ message: string;
1653
+ timestamp: number;
1654
+ }[] | null;
1655
+ dispatchNamespace?: string | null;
1656
+ durableObjectId?: string | null;
1657
+ entrypoint?: string | null;
1658
+ event?: Record<string, unknown> | null;
1659
+ executionModel?: "durableObject" | "stateless" | null;
1660
+ scriptVersion?: {
1661
+ id?: string | null;
1662
+ message?: string | null;
1663
+ tag?: string | null;
1664
+ } | null;
1665
+ truncated?: boolean | null;
1666
+ } | null;
1667
+ }[] | null;
1668
+ fields?: {
1669
+ key: string;
1670
+ type: string;
1671
+ }[] | null;
1672
+ series?: {
1673
+ data: {
1674
+ count: number;
1675
+ interval: number;
1676
+ sampleInterval: number;
1677
+ value?: number | null;
1678
+ groups?: {
1679
+ key: string;
1680
+ value: string | number | boolean;
1681
+ }[] | null;
1682
+ }[];
1683
+ time: string;
1684
+ }[] | null;
1685
+ } | null;
1686
+ invocations?: Record<string, unknown> | null;
1687
+ patterns?: {
1688
+ count: number;
1689
+ pattern: string;
1690
+ series: {
1691
+ data: {
1692
+ count: number;
1693
+ interval: number;
1694
+ sampleInterval: number;
1695
+ value: number;
1696
+ groups?: {
1697
+ key: string;
1698
+ value: string | number | boolean;
1699
+ }[] | null;
1700
+ };
1701
+ time: string;
1702
+ }[];
1703
+ service: string;
1704
+ }[] | null;
1705
+ traces?: {
1706
+ rootSpanName: string;
1707
+ rootTransactionName: string;
1708
+ service: string[];
1709
+ spans: number;
1710
+ traceDurationMs: number;
1711
+ traceEndMs: number;
1712
+ traceId: string;
1713
+ traceStartMs: number;
1714
+ errors?: string[] | null;
1715
+ }[] | null;
1716
+ }
1717
+ export declare const QueryObservabilityTelemetryResponse: Schema.Schema<QueryObservabilityTelemetryResponse>;
1718
+ export type QueryObservabilityTelemetryError = DefaultErrors | InvalidRoute;
1719
+ export declare const queryObservabilityTelemetry: API.OperationMethod<QueryObservabilityTelemetryRequest, QueryObservabilityTelemetryResponse, QueryObservabilityTelemetryError, Credentials | HttpClient.HttpClient>;
1720
+ export interface ValuesObservabilityTelemetryRequest {
1721
+ /** Path param: Your Cloudflare account ID. */
1722
+ accountId: string;
1723
+ /** Body param: */
1724
+ datasets: string[];
1725
+ /** Body param: */
1726
+ key: string;
1727
+ /** Body param: */
1728
+ timeframe: {
1729
+ from: number;
1730
+ to: number;
1731
+ };
1732
+ /** Body param: */
1733
+ type: "string" | "boolean" | "number";
1734
+ /** Body param: */
1735
+ filters?: {
1736
+ key: string;
1737
+ operation: "includes" | "not_includes" | "starts_with" | "regex" | "exists" | "is_null" | "in" | "not_in" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "INCLUDES" | "DOES_NOT_INCLUDE" | "MATCH_REGEX" | "EXISTS" | "DOES_NOT_EXIST" | "IN" | "NOT_IN" | "STARTS_WITH";
1738
+ type: "string" | "number" | "boolean";
1739
+ value?: string | number | boolean;
1740
+ }[];
1741
+ /** Body param: */
1742
+ limit?: number;
1743
+ /** Body param: Search for a specific substring in the event. */
1744
+ needle?: {
1745
+ value: string | number | boolean;
1746
+ isRegex?: boolean;
1747
+ matchCase?: boolean;
1748
+ };
1749
+ }
1750
+ export declare const ValuesObservabilityTelemetryRequest: Schema.Schema<ValuesObservabilityTelemetryRequest>;
1751
+ export interface ValuesObservabilityTelemetryResponse {
1752
+ result: {
1753
+ dataset: string;
1754
+ key: string;
1755
+ type: "string" | "boolean" | "number";
1756
+ value: string | number | boolean;
1757
+ }[];
1758
+ }
1759
+ export declare const ValuesObservabilityTelemetryResponse: Schema.Schema<ValuesObservabilityTelemetryResponse>;
1760
+ export type ValuesObservabilityTelemetryError = DefaultErrors | InvalidRoute;
1761
+ export declare const valuesObservabilityTelemetry: API.PaginatedOperationMethod<ValuesObservabilityTelemetryRequest, ValuesObservabilityTelemetryResponse, ValuesObservabilityTelemetryError, Credentials | HttpClient.HttpClient> & {
1762
+ pages: (input: ValuesObservabilityTelemetryRequest) => stream.Stream<ValuesObservabilityTelemetryResponse, ValuesObservabilityTelemetryError, Credentials | HttpClient.HttpClient>;
1763
+ items: (input: ValuesObservabilityTelemetryRequest) => stream.Stream<{
1764
+ dataset: string;
1765
+ key: string;
1766
+ type: "string" | "boolean" | "number";
1767
+ value: string | number | boolean;
1768
+ }, ValuesObservabilityTelemetryError, Credentials | HttpClient.HttpClient>;
1769
+ };
1770
+ export interface GetRouteRequest {
1771
+ routeId: string;
1772
+ /** Identifier. */
1773
+ zoneId: string;
1774
+ }
1775
+ export declare const GetRouteRequest: Schema.Schema<GetRouteRequest>;
1776
+ export interface GetRouteResponse {
1777
+ /** Identifier. */
1778
+ id: string;
1779
+ /** Pattern to match incoming requests against. [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior). */
1780
+ pattern: string;
1781
+ /** Name of the script to run if the route matches. */
1782
+ script?: string | null;
1783
+ }
1784
+ export declare const GetRouteResponse: Schema.Schema<GetRouteResponse>;
1785
+ export type GetRouteError = DefaultErrors | WorkerNotFound | InvalidRoute;
1786
+ export declare const getRoute: API.OperationMethod<GetRouteRequest, GetRouteResponse, GetRouteError, Credentials | HttpClient.HttpClient>;
1787
+ export interface ListRoutesRequest {
1788
+ /** Identifier. */
1789
+ zoneId: string;
1790
+ }
1791
+ export declare const ListRoutesRequest: Schema.Schema<ListRoutesRequest>;
1792
+ export interface ListRoutesResponse {
1793
+ result: {
1794
+ id: string;
1795
+ pattern: string;
1796
+ script?: string | null;
1797
+ }[];
1798
+ }
1799
+ export declare const ListRoutesResponse: Schema.Schema<ListRoutesResponse>;
1800
+ export type ListRoutesError = DefaultErrors | InvalidRoute;
1801
+ export declare const listRoutes: API.PaginatedOperationMethod<ListRoutesRequest, ListRoutesResponse, ListRoutesError, Credentials | HttpClient.HttpClient> & {
1802
+ pages: (input: ListRoutesRequest) => stream.Stream<ListRoutesResponse, ListRoutesError, Credentials | HttpClient.HttpClient>;
1803
+ items: (input: ListRoutesRequest) => stream.Stream<{
1804
+ id: string;
1805
+ pattern: string;
1806
+ script?: string | null;
1807
+ }, ListRoutesError, Credentials | HttpClient.HttpClient>;
1808
+ };
1809
+ export interface CreateRouteRequest {
1810
+ /** Path param: Identifier. */
1811
+ zoneId: string;
1812
+ /** Body param: Pattern to match incoming requests against. [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior). */
1813
+ pattern: string;
1814
+ /** Body param: Name of the script to run if the route matches. */
1815
+ script?: string;
1816
+ }
1817
+ export declare const CreateRouteRequest: Schema.Schema<CreateRouteRequest>;
1818
+ export interface CreateRouteResponse {
1819
+ /** Identifier. */
1820
+ id: string;
1821
+ /** Pattern to match incoming requests against. [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior). */
1822
+ pattern: string;
1823
+ /** Name of the script to run if the route matches. */
1824
+ script?: string | null;
1825
+ }
1826
+ export declare const CreateRouteResponse: Schema.Schema<CreateRouteResponse>;
1827
+ export type CreateRouteError = DefaultErrors | InvalidRoutePattern | InvalidRoute;
1828
+ export declare const createRoute: API.OperationMethod<CreateRouteRequest, CreateRouteResponse, CreateRouteError, Credentials | HttpClient.HttpClient>;
1829
+ export interface UpdateRouteRequest {
1830
+ routeId: string;
1831
+ /** Path param: Identifier. */
1832
+ zoneId: string;
1833
+ /** Body param: Pattern to match incoming requests against. [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior). */
1834
+ pattern: string;
1835
+ /** Body param: Name of the script to run if the route matches. */
1836
+ script?: string;
1837
+ }
1838
+ export declare const UpdateRouteRequest: Schema.Schema<UpdateRouteRequest>;
1839
+ export interface UpdateRouteResponse {
1840
+ /** Identifier. */
1841
+ id: string;
1842
+ /** Pattern to match incoming requests against. [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior). */
1843
+ pattern: string;
1844
+ /** Name of the script to run if the route matches. */
1845
+ script?: string | null;
1846
+ }
1847
+ export declare const UpdateRouteResponse: Schema.Schema<UpdateRouteResponse>;
1848
+ export type UpdateRouteError = DefaultErrors | RouteNotFound | InvalidRoutePattern;
1849
+ export declare const updateRoute: API.OperationMethod<UpdateRouteRequest, UpdateRouteResponse, UpdateRouteError, Credentials | HttpClient.HttpClient>;
1850
+ export interface DeleteRouteRequest {
1851
+ routeId: string;
1852
+ /** Identifier. */
1853
+ zoneId: string;
1854
+ }
1855
+ export declare const DeleteRouteRequest: Schema.Schema<DeleteRouteRequest>;
1856
+ export interface DeleteRouteResponse {
1857
+ /** Identifier. */
1858
+ id?: string | null;
1859
+ }
1860
+ export declare const DeleteRouteResponse: Schema.Schema<DeleteRouteResponse>;
1861
+ export type DeleteRouteError = DefaultErrors | RouteNotFound;
1862
+ export declare const deleteRoute: API.OperationMethod<DeleteRouteRequest, DeleteRouteResponse, DeleteRouteError, Credentials | HttpClient.HttpClient>;
1863
+ export interface GetScriptRequest {
1864
+ scriptName: string;
1865
+ /** Identifier. */
1866
+ accountId: string;
1867
+ }
1868
+ export declare const GetScriptRequest: Schema.Schema<GetScriptRequest>;
1869
+ export type GetScriptResponse = unknown;
1870
+ export declare const GetScriptResponse: Schema.Schema<unknown>;
1871
+ export type GetScriptError = DefaultErrors | WorkerNotFound | InvalidRoute;
1872
+ export declare const getScript: API.OperationMethod<GetScriptRequest, GetScriptResponse, GetScriptError, Credentials | HttpClient.HttpClient>;
1873
+ export interface ListScriptsRequest {
1874
+ /** Path param: Identifier. */
1875
+ accountId: string;
1876
+ /** Query param: Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'. */
1877
+ tags?: string;
1878
+ }
1879
+ export declare const ListScriptsRequest: Schema.Schema<ListScriptsRequest>;
1880
+ export interface ListScriptsResponse {
1881
+ result: {
1882
+ id?: string | null;
1883
+ compatibilityDate?: string | null;
1884
+ compatibilityFlags?: string[] | null;
1885
+ createdOn?: string | null;
1886
+ etag?: string | null;
1887
+ handlers?: string[] | null;
1888
+ hasAssets?: boolean | null;
1889
+ hasModules?: boolean | null;
1890
+ lastDeployedFrom?: string | null;
1891
+ logpush?: boolean | null;
1892
+ migrationTag?: string | null;
1893
+ modifiedOn?: string | null;
1894
+ namedHandlers?: {
1895
+ handlers?: string[] | null;
1896
+ name?: string | null;
1897
+ }[] | null;
1898
+ observability?: {
1899
+ enabled: boolean;
1900
+ headSamplingRate?: number | null;
1901
+ logs?: {
1902
+ enabled: boolean;
1903
+ invocationLogs: boolean;
1904
+ destinations?: string[] | null;
1905
+ headSamplingRate?: number | null;
1906
+ persist?: boolean | null;
1907
+ } | null;
1908
+ } | null;
1909
+ placement?: {
1910
+ mode: "smart";
1911
+ lastAnalyzedAt?: string | null;
1912
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
1913
+ } | {
1914
+ region: string;
1915
+ lastAnalyzedAt?: string | null;
1916
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
1917
+ } | {
1918
+ hostname: string;
1919
+ lastAnalyzedAt?: string | null;
1920
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
1921
+ } | {
1922
+ host: string;
1923
+ lastAnalyzedAt?: string | null;
1924
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
1925
+ } | null;
1926
+ placementMode?: "smart" | null;
1927
+ placementStatus?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
1928
+ routes?: {
1929
+ id: string;
1930
+ pattern: string;
1931
+ script?: string | null;
1932
+ }[] | null;
1933
+ tag?: string | null;
1934
+ tags?: string[] | null;
1935
+ tailConsumers?: unknown[] | null;
1936
+ usageModel?: "standard" | "bundled" | "unbound" | null;
1937
+ }[];
1938
+ }
1939
+ export declare const ListScriptsResponse: Schema.Schema<ListScriptsResponse>;
1940
+ export type ListScriptsError = DefaultErrors | InvalidRoute;
1941
+ export declare const listScripts: API.PaginatedOperationMethod<ListScriptsRequest, ListScriptsResponse, ListScriptsError, Credentials | HttpClient.HttpClient> & {
1942
+ pages: (input: ListScriptsRequest) => stream.Stream<ListScriptsResponse, ListScriptsError, Credentials | HttpClient.HttpClient>;
1943
+ items: (input: ListScriptsRequest) => stream.Stream<{
1944
+ id?: string | null;
1945
+ compatibilityDate?: string | null;
1946
+ compatibilityFlags?: string[] | null;
1947
+ createdOn?: string | null;
1948
+ etag?: string | null;
1949
+ handlers?: string[] | null;
1950
+ hasAssets?: boolean | null;
1951
+ hasModules?: boolean | null;
1952
+ lastDeployedFrom?: string | null;
1953
+ logpush?: boolean | null;
1954
+ migrationTag?: string | null;
1955
+ modifiedOn?: string | null;
1956
+ namedHandlers?: {
1957
+ handlers?: string[] | null;
1958
+ name?: string | null;
1959
+ }[] | null;
1960
+ observability?: {
1961
+ enabled: boolean;
1962
+ headSamplingRate?: number | null;
1963
+ logs?: {
1964
+ enabled: boolean;
1965
+ invocationLogs: boolean;
1966
+ destinations?: string[] | null;
1967
+ headSamplingRate?: number | null;
1968
+ persist?: boolean | null;
1969
+ } | null;
1970
+ } | null;
1971
+ placement?: {
1972
+ mode: "smart";
1973
+ lastAnalyzedAt?: string | null;
1974
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
1975
+ } | {
1976
+ region: string;
1977
+ lastAnalyzedAt?: string | null;
1978
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
1979
+ } | {
1980
+ hostname: string;
1981
+ lastAnalyzedAt?: string | null;
1982
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
1983
+ } | {
1984
+ host: string;
1985
+ lastAnalyzedAt?: string | null;
1986
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
1987
+ } | null;
1988
+ placementMode?: "smart" | null;
1989
+ placementStatus?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
1990
+ routes?: {
1991
+ id: string;
1992
+ pattern: string;
1993
+ script?: string | null;
1994
+ }[] | null;
1995
+ tag?: string | null;
1996
+ tags?: string[] | null;
1997
+ tailConsumers?: unknown[] | null;
1998
+ usageModel?: "standard" | "bundled" | "unbound" | null;
1999
+ }, ListScriptsError, Credentials | HttpClient.HttpClient>;
2000
+ };
2001
+ export interface PutScriptRequest {
2002
+ scriptName: string;
2003
+ /** Path param: Identifier. */
2004
+ accountId: string;
2005
+ /** Body param: JSON-encoded metadata about the uploaded parts and Worker configuration. */
2006
+ metadata: {
2007
+ assets?: {
2008
+ config?: {
2009
+ headers?: string;
2010
+ redirects?: string;
2011
+ htmlHandling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none";
2012
+ notFoundHandling?: "none" | "404-page" | "single-page-application";
2013
+ runWorkerFirst?: string[] | boolean;
2014
+ serveDirectly?: boolean;
2015
+ };
2016
+ jwt?: string;
2017
+ };
2018
+ bindings?: ({
2019
+ name: string;
2020
+ type: "ai";
2021
+ } | {
2022
+ dataset: string;
2023
+ name: string;
2024
+ type: "analytics_engine";
2025
+ } | {
2026
+ name: string;
2027
+ type: "assets";
2028
+ } | {
2029
+ name: string;
2030
+ type: "browser";
2031
+ } | {
2032
+ id: string;
2033
+ name: string;
2034
+ type: "d1";
2035
+ } | {
2036
+ name: string;
2037
+ part: string;
2038
+ type: "data_blob";
2039
+ } | {
2040
+ name: string;
2041
+ namespace: string;
2042
+ type: "dispatch_namespace";
2043
+ outbound?: {
2044
+ params?: string[];
2045
+ worker?: {
2046
+ environment?: string;
2047
+ service?: string;
2048
+ };
2049
+ };
2050
+ } | {
2051
+ name: string;
2052
+ type: "durable_object_namespace";
2053
+ className?: string;
2054
+ environment?: string;
2055
+ namespaceId?: string;
2056
+ scriptName?: string;
2057
+ } | {
2058
+ id: string;
2059
+ name: string;
2060
+ type: "hyperdrive";
2061
+ } | {
2062
+ name: string;
2063
+ type: "inherit";
2064
+ oldName?: string;
2065
+ versionId?: string;
2066
+ } | {
2067
+ name: string;
2068
+ type: "images";
2069
+ } | {
2070
+ json: string;
2071
+ name: string;
2072
+ type: "json";
2073
+ } | {
2074
+ name: string;
2075
+ namespaceId: string;
2076
+ type: "kv_namespace";
2077
+ } | {
2078
+ certificateId: string;
2079
+ name: string;
2080
+ type: "mtls_certificate";
2081
+ } | {
2082
+ name: string;
2083
+ text: string;
2084
+ type: "plain_text";
2085
+ } | {
2086
+ name: string;
2087
+ pipeline: string;
2088
+ type: "pipelines";
2089
+ } | {
2090
+ name: string;
2091
+ queueName: string;
2092
+ type: "queue";
2093
+ } | {
2094
+ bucketName: string;
2095
+ name: string;
2096
+ type: "r2_bucket";
2097
+ jurisdiction?: "eu" | "fedramp";
2098
+ } | {
2099
+ name: string;
2100
+ text: string;
2101
+ type: "secret_text";
2102
+ } | {
2103
+ name: string;
2104
+ type: "send_email";
2105
+ allowedDestinationAddresses?: string[];
2106
+ allowedSenderAddresses?: string[];
2107
+ destinationAddress?: string;
2108
+ } | {
2109
+ name: string;
2110
+ service: string;
2111
+ type: "service";
2112
+ environment?: string;
2113
+ } | {
2114
+ name: string;
2115
+ part: string;
2116
+ type: "text_blob";
2117
+ } | {
2118
+ indexName: string;
2119
+ name: string;
2120
+ type: "vectorize";
2121
+ } | {
2122
+ name: string;
2123
+ type: "version_metadata";
2124
+ } | {
2125
+ name: string;
2126
+ secretName: string;
2127
+ storeId: string;
2128
+ type: "secrets_store_secret";
2129
+ } | {
2130
+ algorithm: unknown;
2131
+ format: "raw" | "pkcs8" | "spki" | "jwk";
2132
+ name: string;
2133
+ type: "secret_key";
2134
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
2135
+ keyBase64?: string;
2136
+ keyJwk?: unknown;
2137
+ } | {
2138
+ name: string;
2139
+ type: "workflow";
2140
+ workflowName: string;
2141
+ className?: string;
2142
+ scriptName?: string;
2143
+ } | {
2144
+ name: string;
2145
+ part: string;
2146
+ type: "wasm_module";
2147
+ })[];
2148
+ bodyPart?: string;
2149
+ compatibilityDate?: string;
2150
+ compatibilityFlags?: string[];
2151
+ keepAssets?: boolean;
2152
+ keepBindings?: string[];
2153
+ limits?: {
2154
+ cpuMs?: number;
2155
+ };
2156
+ logpush?: boolean;
2157
+ mainModule?: string;
2158
+ migrations?: unknown | {
2159
+ newTag?: string;
2160
+ oldTag?: string;
2161
+ steps?: unknown[];
2162
+ };
2163
+ observability?: {
2164
+ enabled: boolean;
2165
+ headSamplingRate?: number | null;
2166
+ logs?: {
2167
+ enabled: boolean;
2168
+ invocationLogs: boolean;
2169
+ destinations?: string[];
2170
+ headSamplingRate?: number | null;
2171
+ persist?: boolean;
2172
+ } | null;
2173
+ };
2174
+ placement?: {
2175
+ mode: "smart";
2176
+ } | {
2177
+ region: string;
2178
+ } | {
2179
+ hostname: string;
2180
+ } | {
2181
+ host: string;
2182
+ };
2183
+ tags?: string[];
2184
+ tailConsumers?: unknown[] | null;
2185
+ usageModel?: "standard" | "bundled" | "unbound";
2186
+ };
2187
+ /** Body param: An array of modules (often JavaScript files) comprising a Worker script. At least one module must be present and referenced in the metadata as `main_module` or `body_part` by filename.<br/ */
2188
+ files?: (File | Blob)[];
2189
+ }
2190
+ export declare const PutScriptRequest: Schema.Schema<PutScriptRequest>;
2191
+ export interface PutScriptResponse {
2192
+ startupTimeMs: number;
2193
+ /** The name used to identify the script. */
2194
+ id?: string | null;
2195
+ /** Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. */
2196
+ compatibilityDate?: string | null;
2197
+ /** Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`. */
2198
+ compatibilityFlags?: string[] | null;
2199
+ /** When the script was created. */
2200
+ createdOn?: string | null;
2201
+ /** The entry point for the script. */
2202
+ entryPoint?: string | null;
2203
+ /** Hashed script content, can be used in a If-None-Match header when updating. */
2204
+ etag?: string | null;
2205
+ /** The names of handlers exported as part of the default export. */
2206
+ handlers?: string[] | null;
2207
+ /** Whether a Worker contains assets. */
2208
+ hasAssets?: boolean | null;
2209
+ /** Whether a Worker contains modules. */
2210
+ hasModules?: boolean | null;
2211
+ /** The client most recently used to deploy this Worker. */
2212
+ lastDeployedFrom?: string | null;
2213
+ /** Whether Logpush is turned on for the Worker. */
2214
+ logpush?: boolean | null;
2215
+ /** The tag of the Durable Object migration that was most recently applied for this Worker. */
2216
+ migrationTag?: string | null;
2217
+ /** When the script was last modified. */
2218
+ modifiedOn?: string | null;
2219
+ /** Named exports, such as Durable Object class implementations and named entrypoints. */
2220
+ namedHandlers?: {
2221
+ handlers?: string[] | null;
2222
+ name?: string | null;
2223
+ }[] | null;
2224
+ /** Observability settings for the Worker. */
2225
+ observability?: {
2226
+ enabled: boolean;
2227
+ headSamplingRate?: number | null;
2228
+ logs?: {
2229
+ enabled: boolean;
2230
+ invocationLogs: boolean;
2231
+ destinations?: string[] | null;
2232
+ headSamplingRate?: number | null;
2233
+ persist?: boolean | null;
2234
+ } | null;
2235
+ } | null;
2236
+ /** Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted place */
2237
+ placement?: {
2238
+ mode: "smart";
2239
+ lastAnalyzedAt?: string | null;
2240
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
2241
+ } | {
2242
+ region: string;
2243
+ lastAnalyzedAt?: string | null;
2244
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
2245
+ } | {
2246
+ hostname: string;
2247
+ lastAnalyzedAt?: string | null;
2248
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
2249
+ } | {
2250
+ host: string;
2251
+ lastAnalyzedAt?: string | null;
2252
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
2253
+ } | null;
2254
+ /** @deprecated */
2255
+ placementMode?: "smart" | null;
2256
+ /** @deprecated */
2257
+ placementStatus?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
2258
+ /** The immutable ID of the script. */
2259
+ tag?: string | null;
2260
+ /** Tags associated with the Worker. */
2261
+ tags?: string[] | null;
2262
+ /** List of Workers that will consume logs from the attached Worker. */
2263
+ tailConsumers?: unknown[] | null;
2264
+ /** Usage model for the Worker invocations. */
2265
+ usageModel?: "standard" | "bundled" | "unbound" | null;
2266
+ }
2267
+ export declare const PutScriptResponse: Schema.Schema<PutScriptResponse>;
2268
+ export type PutScriptError = DefaultErrors | InvalidRoute;
2269
+ export declare const putScript: API.OperationMethod<PutScriptRequest, PutScriptResponse, PutScriptError, Credentials | HttpClient.HttpClient>;
2270
+ export interface DeleteScriptRequest {
2271
+ scriptName: string;
2272
+ /** Path param: Identifier. */
2273
+ accountId: string;
2274
+ /** Query param: If set to true, delete will not be stopped by associated service binding, durable object, or other binding. Any of these associated bindings/durable objects will be deleted along with the */
2275
+ force?: boolean;
2276
+ }
2277
+ export declare const DeleteScriptRequest: Schema.Schema<DeleteScriptRequest>;
2278
+ export type DeleteScriptResponse = unknown;
2279
+ export declare const DeleteScriptResponse: Schema.Schema<unknown>;
2280
+ export type DeleteScriptError = DefaultErrors | WorkerNotFound;
2281
+ export declare const deleteScript: API.OperationMethod<DeleteScriptRequest, DeleteScriptResponse, DeleteScriptError, Credentials | HttpClient.HttpClient>;
2282
+ export interface SearchScriptRequest {
2283
+ /** Path param: Identifier. */
2284
+ accountId: string;
2285
+ /** Query param: Worker ID (also called tag) to search for. Only exact matches are returned. */
2286
+ id?: string;
2287
+ /** Query param: Worker name to search for. Both exact and partial matches are returned. */
2288
+ name?: string;
2289
+ /** Query param: Property to sort results by. Results are sorted in ascending order. */
2290
+ orderBy?: "created_on" | "modified_on" | "name";
2291
+ /** Query param: Current page. */
2292
+ page?: number;
2293
+ /** Query param: Items per page. */
2294
+ perPage?: number;
2295
+ }
2296
+ export declare const SearchScriptRequest: Schema.Schema<SearchScriptRequest>;
2297
+ export type SearchScriptResponse = {
2298
+ createdOn: string;
2299
+ modifiedOn: string;
2300
+ scriptName: string;
2301
+ scriptTag?: string | null;
2302
+ environmentIsDefault?: boolean | null;
2303
+ environmentName?: string | null;
2304
+ serviceName?: string | null;
2305
+ }[];
2306
+ export declare const SearchScriptResponse: Schema.Schema<SearchScriptResponse>;
2307
+ export type SearchScriptError = DefaultErrors | InvalidRoute;
2308
+ export declare const searchScript: API.OperationMethod<SearchScriptRequest, SearchScriptResponse, SearchScriptError, Credentials | HttpClient.HttpClient>;
2309
+ export interface CreateScriptAssetUploadRequest {
2310
+ scriptName: string;
2311
+ /** Path param: Identifier. */
2312
+ accountId: string;
2313
+ /** Body param: A manifest ([path]: {hash, size}) map of files to upload. As an example, `/blog/hello-world.html` would be a valid path key. */
2314
+ manifest: Record<string, unknown>;
2315
+ }
2316
+ export declare const CreateScriptAssetUploadRequest: Schema.Schema<CreateScriptAssetUploadRequest>;
2317
+ export interface CreateScriptAssetUploadResponse {
2318
+ /** The requests to make to upload assets. */
2319
+ buckets?: string[][] | null;
2320
+ /** A JWT to use as authentication for uploading assets. */
2321
+ jwt?: string | null;
2322
+ }
2323
+ export declare const CreateScriptAssetUploadResponse: Schema.Schema<CreateScriptAssetUploadResponse>;
2324
+ export type CreateScriptAssetUploadError = DefaultErrors;
2325
+ export declare const createScriptAssetUpload: API.OperationMethod<CreateScriptAssetUploadRequest, CreateScriptAssetUploadResponse, CreateScriptAssetUploadError, Credentials | HttpClient.HttpClient>;
2326
+ export interface GetScriptContentRequest {
2327
+ scriptName: string;
2328
+ /** Identifier. */
2329
+ accountId: string;
2330
+ }
2331
+ export declare const GetScriptContentRequest: Schema.Schema<GetScriptContentRequest>;
2332
+ export type GetScriptContentResponse = unknown;
2333
+ export declare const GetScriptContentResponse: Schema.Schema<unknown>;
2334
+ export type GetScriptContentError = DefaultErrors | WorkerNotFound;
2335
+ export declare const getScriptContent: API.OperationMethod<GetScriptContentRequest, GetScriptContentResponse, GetScriptContentError, Credentials | HttpClient.HttpClient>;
2336
+ export interface PutScriptContentRequest {
2337
+ scriptName: string;
2338
+ /** Path param: Identifier. */
2339
+ accountId: string;
2340
+ /** Header param: The multipart name of a script upload part containing script content in service worker format. Alternative to including in a metadata part. */
2341
+ cfworkerbodypart?: string;
2342
+ /** Header param: The multipart name of a script upload part containing script content in es module format. Alternative to including in a metadata part. */
2343
+ cfworkermainmodulepart?: string;
2344
+ /** Body param: JSON-encoded metadata about the uploaded parts and Worker configuration. */
2345
+ metadata: {
2346
+ bodyPart?: string;
2347
+ mainModule?: string;
2348
+ };
2349
+ /** Body param: An array of modules (often JavaScript files) comprising a Worker script. At least one module must be present and referenced in the metadata as `main_module` or `body_part` by filename.<br/ */
2350
+ files?: (File | Blob)[];
2351
+ }
2352
+ export declare const PutScriptContentRequest: Schema.Schema<PutScriptContentRequest>;
2353
+ export type PutScriptContentResponse = unknown;
2354
+ export declare const PutScriptContentResponse: Schema.Schema<unknown>;
2355
+ export type PutScriptContentError = DefaultErrors | WorkerNotFound | InvalidWorkerScript;
2356
+ export declare const putScriptContent: API.OperationMethod<PutScriptContentRequest, PutScriptContentResponse, PutScriptContentError, Credentials | HttpClient.HttpClient>;
2357
+ export interface GetScriptDeploymentRequest {
2358
+ scriptName: string;
2359
+ deploymentId: string;
2360
+ /** Identifier. */
2361
+ accountId: string;
2362
+ }
2363
+ export declare const GetScriptDeploymentRequest: Schema.Schema<GetScriptDeploymentRequest>;
2364
+ export interface GetScriptDeploymentResponse {
2365
+ id: string;
2366
+ createdOn: string;
2367
+ source: string;
2368
+ strategy: "percentage";
2369
+ versions: {
2370
+ percentage: number;
2371
+ versionId: string;
2372
+ }[];
2373
+ annotations?: {
2374
+ workersMessage?: string | null;
2375
+ workersTriggeredBy?: string | null;
2376
+ } | null;
2377
+ authorEmail?: string | null;
2378
+ }
2379
+ export declare const GetScriptDeploymentResponse: Schema.Schema<GetScriptDeploymentResponse>;
2380
+ export type GetScriptDeploymentError = DefaultErrors | WorkerNotFound | DeploymentNotFound;
2381
+ export declare const getScriptDeployment: API.OperationMethod<GetScriptDeploymentRequest, GetScriptDeploymentResponse, GetScriptDeploymentError, Credentials | HttpClient.HttpClient>;
2382
+ export interface ListScriptDeploymentsRequest {
2383
+ scriptName: string;
2384
+ /** Identifier. */
2385
+ accountId: string;
2386
+ }
2387
+ export declare const ListScriptDeploymentsRequest: Schema.Schema<ListScriptDeploymentsRequest>;
2388
+ export interface ListScriptDeploymentsResponse {
2389
+ deployments: {
2390
+ id: string;
2391
+ createdOn: string;
2392
+ source: string;
2393
+ strategy: "percentage";
2394
+ versions: {
2395
+ percentage: number;
2396
+ versionId: string;
2397
+ }[];
2398
+ annotations?: {
2399
+ workersMessage?: string | null;
2400
+ workersTriggeredBy?: string | null;
2401
+ } | null;
2402
+ authorEmail?: string | null;
2403
+ }[];
2404
+ }
2405
+ export declare const ListScriptDeploymentsResponse: Schema.Schema<ListScriptDeploymentsResponse>;
2406
+ export type ListScriptDeploymentsError = DefaultErrors | WorkerNotFound;
2407
+ export declare const listScriptDeployments: API.OperationMethod<ListScriptDeploymentsRequest, ListScriptDeploymentsResponse, ListScriptDeploymentsError, Credentials | HttpClient.HttpClient>;
2408
+ export interface CreateScriptDeploymentRequest {
2409
+ scriptName: string;
2410
+ /** Path param: Identifier. */
2411
+ accountId: string;
2412
+ /** Query param: If set to true, the deployment will be created even if normally blocked by something such rolling back to an older version when a secret has changed. */
2413
+ force?: boolean;
2414
+ /** Body param: */
2415
+ strategy: "percentage";
2416
+ /** Body param: */
2417
+ versions: {
2418
+ percentage: number;
2419
+ versionId: string;
2420
+ }[];
2421
+ /** Body param: */
2422
+ annotations?: {
2423
+ workersMessage?: string;
2424
+ };
2425
+ }
2426
+ export declare const CreateScriptDeploymentRequest: Schema.Schema<CreateScriptDeploymentRequest>;
2427
+ export interface CreateScriptDeploymentResponse {
2428
+ id: string;
2429
+ createdOn?: string | null;
2430
+ source?: string | null;
2431
+ strategy?: "percentage" | null;
2432
+ versions?: {
2433
+ percentage: number;
2434
+ versionId: string;
2435
+ }[] | null;
2436
+ annotations?: {
2437
+ workersMessage?: string | null;
2438
+ workersTriggeredBy?: string | null;
2439
+ } | null;
2440
+ authorEmail?: string | null;
2441
+ }
2442
+ export declare const CreateScriptDeploymentResponse: Schema.Schema<CreateScriptDeploymentResponse>;
2443
+ export type CreateScriptDeploymentError = DefaultErrors | WorkerNotFound;
2444
+ export declare const createScriptDeployment: API.OperationMethod<CreateScriptDeploymentRequest, CreateScriptDeploymentResponse, CreateScriptDeploymentError, Credentials | HttpClient.HttpClient>;
2445
+ export interface DeleteScriptDeploymentRequest {
2446
+ scriptName: string;
2447
+ deploymentId: string;
2448
+ /** Identifier. */
2449
+ accountId: string;
2450
+ }
2451
+ export declare const DeleteScriptDeploymentRequest: Schema.Schema<DeleteScriptDeploymentRequest>;
2452
+ export interface DeleteScriptDeploymentResponse {
2453
+ errors: {
2454
+ code: number;
2455
+ message: string;
2456
+ documentationUrl?: string | null;
2457
+ source?: {
2458
+ pointer?: string | null;
2459
+ } | null;
2460
+ }[];
2461
+ messages: {
2462
+ code: number;
2463
+ message: string;
2464
+ documentationUrl?: string | null;
2465
+ source?: {
2466
+ pointer?: string | null;
2467
+ } | null;
2468
+ }[];
2469
+ /** Whether the API call was successful. */
2470
+ success: true;
2471
+ }
2472
+ export declare const DeleteScriptDeploymentResponse: Schema.Schema<DeleteScriptDeploymentResponse>;
2473
+ export type DeleteScriptDeploymentError = DefaultErrors | WorkerNotFound;
2474
+ export declare const deleteScriptDeployment: API.OperationMethod<DeleteScriptDeploymentRequest, DeleteScriptDeploymentResponse, DeleteScriptDeploymentError, Credentials | HttpClient.HttpClient>;
2475
+ export interface GetScriptScheduleRequest {
2476
+ scriptName: string;
2477
+ /** Identifier. */
2478
+ accountId: string;
2479
+ }
2480
+ export declare const GetScriptScheduleRequest: Schema.Schema<GetScriptScheduleRequest>;
2481
+ export interface GetScriptScheduleResponse {
2482
+ schedules: {
2483
+ cron: string;
2484
+ createdOn?: string | null;
2485
+ modifiedOn?: string | null;
2486
+ }[];
2487
+ }
2488
+ export declare const GetScriptScheduleResponse: Schema.Schema<GetScriptScheduleResponse>;
2489
+ export type GetScriptScheduleError = DefaultErrors | WorkerNotFound;
2490
+ export declare const getScriptSchedule: API.OperationMethod<GetScriptScheduleRequest, GetScriptScheduleResponse, GetScriptScheduleError, Credentials | HttpClient.HttpClient>;
2491
+ export interface PutScriptScheduleRequest {
2492
+ scriptName: string;
2493
+ /** Path param: Identifier. */
2494
+ accountId: string;
2495
+ /** Body param: */
2496
+ body: {
2497
+ cron: string;
2498
+ }[];
2499
+ }
2500
+ export declare const PutScriptScheduleRequest: Schema.Schema<PutScriptScheduleRequest>;
2501
+ export interface PutScriptScheduleResponse {
2502
+ schedules: {
2503
+ cron: string;
2504
+ createdOn?: string | null;
2505
+ modifiedOn?: string | null;
2506
+ }[];
2507
+ }
2508
+ export declare const PutScriptScheduleResponse: Schema.Schema<PutScriptScheduleResponse>;
2509
+ export type PutScriptScheduleError = DefaultErrors | WorkerNotFound;
2510
+ export declare const putScriptSchedule: API.OperationMethod<PutScriptScheduleRequest, PutScriptScheduleResponse, PutScriptScheduleError, Credentials | HttpClient.HttpClient>;
2511
+ export interface GetScriptScriptAndVersionSettingRequest {
2512
+ scriptName: string;
2513
+ /** Identifier. */
2514
+ accountId: string;
2515
+ }
2516
+ export declare const GetScriptScriptAndVersionSettingRequest: Schema.Schema<GetScriptScriptAndVersionSettingRequest>;
2517
+ export interface GetScriptScriptAndVersionSettingResponse {
2518
+ /** List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. */
2519
+ bindings?: ({
2520
+ name: string;
2521
+ type: "ai";
2522
+ } | {
2523
+ dataset: string;
2524
+ name: string;
2525
+ type: "analytics_engine";
2526
+ } | {
2527
+ name: string;
2528
+ type: "assets";
2529
+ } | {
2530
+ name: string;
2531
+ type: "browser";
2532
+ } | {
2533
+ id: string;
2534
+ name: string;
2535
+ type: "d1";
2536
+ } | {
2537
+ name: string;
2538
+ part: string;
2539
+ type: "data_blob";
2540
+ } | {
2541
+ name: string;
2542
+ namespace: string;
2543
+ type: "dispatch_namespace";
2544
+ outbound?: {
2545
+ params?: string[] | null;
2546
+ worker?: {
2547
+ environment?: string | null;
2548
+ service?: string | null;
2549
+ } | null;
2550
+ } | null;
2551
+ } | {
2552
+ name: string;
2553
+ type: "durable_object_namespace";
2554
+ className?: string | null;
2555
+ environment?: string | null;
2556
+ namespaceId?: string | null;
2557
+ scriptName?: string | null;
2558
+ } | {
2559
+ id: string;
2560
+ name: string;
2561
+ type: "hyperdrive";
2562
+ } | {
2563
+ name: string;
2564
+ type: "inherit";
2565
+ oldName?: string | null;
2566
+ versionId?: string | null;
2567
+ } | {
2568
+ name: string;
2569
+ type: "images";
2570
+ } | {
2571
+ json: string;
2572
+ name: string;
2573
+ type: "json";
2574
+ } | {
2575
+ name: string;
2576
+ namespaceId: string;
2577
+ type: "kv_namespace";
2578
+ } | {
2579
+ certificateId: string;
2580
+ name: string;
2581
+ type: "mtls_certificate";
2582
+ } | {
2583
+ name: string;
2584
+ text: string;
2585
+ type: "plain_text";
2586
+ } | {
2587
+ name: string;
2588
+ pipeline: string;
2589
+ type: "pipelines";
2590
+ } | {
2591
+ name: string;
2592
+ queueName: string;
2593
+ type: "queue";
2594
+ } | {
2595
+ bucketName: string;
2596
+ name: string;
2597
+ type: "r2_bucket";
2598
+ jurisdiction?: "eu" | "fedramp" | null;
2599
+ } | {
2600
+ name: string;
2601
+ type: "secret_text";
2602
+ } | {
2603
+ name: string;
2604
+ type: "send_email";
2605
+ allowedDestinationAddresses?: string[] | null;
2606
+ allowedSenderAddresses?: string[] | null;
2607
+ destinationAddress?: string | null;
2608
+ } | {
2609
+ name: string;
2610
+ service: string;
2611
+ type: "service";
2612
+ environment?: string | null;
2613
+ } | {
2614
+ name: string;
2615
+ part: string;
2616
+ type: "text_blob";
2617
+ } | {
2618
+ indexName: string;
2619
+ name: string;
2620
+ type: "vectorize";
2621
+ } | {
2622
+ name: string;
2623
+ type: "version_metadata";
2624
+ } | {
2625
+ name: string;
2626
+ secretName: string;
2627
+ storeId: string;
2628
+ type: "secrets_store_secret";
2629
+ } | {
2630
+ algorithm: unknown;
2631
+ format: "raw" | "pkcs8" | "spki" | "jwk";
2632
+ name: string;
2633
+ type: "secret_key";
2634
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
2635
+ } | {
2636
+ name: string;
2637
+ type: "workflow";
2638
+ workflowName: string;
2639
+ className?: string | null;
2640
+ scriptName?: string | null;
2641
+ } | {
2642
+ name: string;
2643
+ part: string;
2644
+ type: "wasm_module";
2645
+ })[] | null;
2646
+ /** Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. */
2647
+ compatibilityDate?: string | null;
2648
+ /** Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`. */
2649
+ compatibilityFlags?: string[] | null;
2650
+ /** Limits to apply for this Worker. */
2651
+ limits?: {
2652
+ cpuMs?: number | null;
2653
+ } | null;
2654
+ /** Whether Logpush is turned on for the Worker. */
2655
+ logpush?: boolean | null;
2656
+ /** Observability settings for the Worker. */
2657
+ observability?: {
2658
+ enabled: boolean;
2659
+ headSamplingRate?: number | null;
2660
+ logs?: {
2661
+ enabled: boolean;
2662
+ invocationLogs: boolean;
2663
+ destinations?: string[] | null;
2664
+ headSamplingRate?: number | null;
2665
+ persist?: boolean | null;
2666
+ } | null;
2667
+ } | null;
2668
+ /** Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted place */
2669
+ placement?: unknown | null;
2670
+ /** Tags associated with the Worker. */
2671
+ tags?: string[] | null;
2672
+ /** List of Workers that will consume logs from the attached Worker. */
2673
+ tailConsumers?: unknown[] | null;
2674
+ /** Usage model for the Worker invocations. */
2675
+ usageModel?: "standard" | "bundled" | "unbound" | null;
2676
+ }
2677
+ export declare const GetScriptScriptAndVersionSettingResponse: Schema.Schema<GetScriptScriptAndVersionSettingResponse>;
2678
+ export type GetScriptScriptAndVersionSettingError = DefaultErrors | WorkerNotFound;
2679
+ export declare const getScriptScriptAndVersionSetting: API.OperationMethod<GetScriptScriptAndVersionSettingRequest, GetScriptScriptAndVersionSettingResponse, GetScriptScriptAndVersionSettingError, Credentials | HttpClient.HttpClient>;
2680
+ export interface PatchScriptScriptAndVersionSettingRequest {
2681
+ scriptName: string;
2682
+ /** Path param: Identifier. */
2683
+ accountId: string;
2684
+ /** Body param: */
2685
+ settings?: {
2686
+ bindings?: ({
2687
+ name: string;
2688
+ type: "ai";
2689
+ } | {
2690
+ dataset: string;
2691
+ name: string;
2692
+ type: "analytics_engine";
2693
+ } | {
2694
+ name: string;
2695
+ type: "assets";
2696
+ } | {
2697
+ name: string;
2698
+ type: "browser";
2699
+ } | {
2700
+ id: string;
2701
+ name: string;
2702
+ type: "d1";
2703
+ } | {
2704
+ name: string;
2705
+ part: string;
2706
+ type: "data_blob";
2707
+ } | {
2708
+ name: string;
2709
+ namespace: string;
2710
+ type: "dispatch_namespace";
2711
+ outbound?: {
2712
+ params?: string[];
2713
+ worker?: {
2714
+ environment?: string;
2715
+ service?: string;
2716
+ };
2717
+ };
2718
+ } | {
2719
+ name: string;
2720
+ type: "durable_object_namespace";
2721
+ className?: string;
2722
+ environment?: string;
2723
+ namespaceId?: string;
2724
+ scriptName?: string;
2725
+ } | {
2726
+ id: string;
2727
+ name: string;
2728
+ type: "hyperdrive";
2729
+ } | {
2730
+ name: string;
2731
+ type: "inherit";
2732
+ oldName?: string;
2733
+ versionId?: string;
2734
+ } | {
2735
+ name: string;
2736
+ type: "images";
2737
+ } | {
2738
+ json: string;
2739
+ name: string;
2740
+ type: "json";
2741
+ } | {
2742
+ name: string;
2743
+ namespaceId: string;
2744
+ type: "kv_namespace";
2745
+ } | {
2746
+ certificateId: string;
2747
+ name: string;
2748
+ type: "mtls_certificate";
2749
+ } | {
2750
+ name: string;
2751
+ text: string;
2752
+ type: "plain_text";
2753
+ } | {
2754
+ name: string;
2755
+ pipeline: string;
2756
+ type: "pipelines";
2757
+ } | {
2758
+ name: string;
2759
+ queueName: string;
2760
+ type: "queue";
2761
+ } | {
2762
+ bucketName: string;
2763
+ name: string;
2764
+ type: "r2_bucket";
2765
+ jurisdiction?: "eu" | "fedramp";
2766
+ } | {
2767
+ name: string;
2768
+ text: string;
2769
+ type: "secret_text";
2770
+ } | {
2771
+ name: string;
2772
+ type: "send_email";
2773
+ allowedDestinationAddresses?: string[];
2774
+ allowedSenderAddresses?: string[];
2775
+ destinationAddress?: string;
2776
+ } | {
2777
+ name: string;
2778
+ service: string;
2779
+ type: "service";
2780
+ environment?: string;
2781
+ } | {
2782
+ name: string;
2783
+ part: string;
2784
+ type: "text_blob";
2785
+ } | {
2786
+ indexName: string;
2787
+ name: string;
2788
+ type: "vectorize";
2789
+ } | {
2790
+ name: string;
2791
+ type: "version_metadata";
2792
+ } | {
2793
+ name: string;
2794
+ secretName: string;
2795
+ storeId: string;
2796
+ type: "secrets_store_secret";
2797
+ } | {
2798
+ algorithm: unknown;
2799
+ format: "raw" | "pkcs8" | "spki" | "jwk";
2800
+ name: string;
2801
+ type: "secret_key";
2802
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
2803
+ keyBase64?: string;
2804
+ keyJwk?: unknown;
2805
+ } | {
2806
+ name: string;
2807
+ type: "workflow";
2808
+ workflowName: string;
2809
+ className?: string;
2810
+ scriptName?: string;
2811
+ } | {
2812
+ name: string;
2813
+ part: string;
2814
+ type: "wasm_module";
2815
+ })[];
2816
+ compatibilityDate?: string;
2817
+ compatibilityFlags?: string[];
2818
+ limits?: {
2819
+ cpuMs?: number;
2820
+ };
2821
+ logpush?: boolean;
2822
+ migrations?: unknown | {
2823
+ newTag?: string;
2824
+ oldTag?: string;
2825
+ steps?: unknown[];
2826
+ };
2827
+ observability?: {
2828
+ enabled: boolean;
2829
+ headSamplingRate?: number | null;
2830
+ logs?: {
2831
+ enabled: boolean;
2832
+ invocationLogs: boolean;
2833
+ destinations?: string[];
2834
+ headSamplingRate?: number | null;
2835
+ persist?: boolean;
2836
+ } | null;
2837
+ };
2838
+ placement?: {
2839
+ mode: "smart";
2840
+ } | {
2841
+ region: string;
2842
+ } | {
2843
+ hostname: string;
2844
+ } | {
2845
+ host: string;
2846
+ };
2847
+ tags?: string[] | null;
2848
+ tailConsumers?: unknown[] | null;
2849
+ usageModel?: "standard" | "bundled" | "unbound";
2850
+ };
2851
+ }
2852
+ export declare const PatchScriptScriptAndVersionSettingRequest: Schema.Schema<PatchScriptScriptAndVersionSettingRequest>;
2853
+ export interface PatchScriptScriptAndVersionSettingResponse {
2854
+ /** List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. */
2855
+ bindings?: ({
2856
+ name: string;
2857
+ type: "ai";
2858
+ } | {
2859
+ dataset: string;
2860
+ name: string;
2861
+ type: "analytics_engine";
2862
+ } | {
2863
+ name: string;
2864
+ type: "assets";
2865
+ } | {
2866
+ name: string;
2867
+ type: "browser";
2868
+ } | {
2869
+ id: string;
2870
+ name: string;
2871
+ type: "d1";
2872
+ } | {
2873
+ name: string;
2874
+ part: string;
2875
+ type: "data_blob";
2876
+ } | {
2877
+ name: string;
2878
+ namespace: string;
2879
+ type: "dispatch_namespace";
2880
+ outbound?: {
2881
+ params?: string[] | null;
2882
+ worker?: {
2883
+ environment?: string | null;
2884
+ service?: string | null;
2885
+ } | null;
2886
+ } | null;
2887
+ } | {
2888
+ name: string;
2889
+ type: "durable_object_namespace";
2890
+ className?: string | null;
2891
+ environment?: string | null;
2892
+ namespaceId?: string | null;
2893
+ scriptName?: string | null;
2894
+ } | {
2895
+ id: string;
2896
+ name: string;
2897
+ type: "hyperdrive";
2898
+ } | {
2899
+ name: string;
2900
+ type: "inherit";
2901
+ oldName?: string | null;
2902
+ versionId?: string | null;
2903
+ } | {
2904
+ name: string;
2905
+ type: "images";
2906
+ } | {
2907
+ json: string;
2908
+ name: string;
2909
+ type: "json";
2910
+ } | {
2911
+ name: string;
2912
+ namespaceId: string;
2913
+ type: "kv_namespace";
2914
+ } | {
2915
+ certificateId: string;
2916
+ name: string;
2917
+ type: "mtls_certificate";
2918
+ } | {
2919
+ name: string;
2920
+ text: string;
2921
+ type: "plain_text";
2922
+ } | {
2923
+ name: string;
2924
+ pipeline: string;
2925
+ type: "pipelines";
2926
+ } | {
2927
+ name: string;
2928
+ queueName: string;
2929
+ type: "queue";
2930
+ } | {
2931
+ bucketName: string;
2932
+ name: string;
2933
+ type: "r2_bucket";
2934
+ jurisdiction?: "eu" | "fedramp" | null;
2935
+ } | {
2936
+ name: string;
2937
+ type: "secret_text";
2938
+ } | {
2939
+ name: string;
2940
+ type: "send_email";
2941
+ allowedDestinationAddresses?: string[] | null;
2942
+ allowedSenderAddresses?: string[] | null;
2943
+ destinationAddress?: string | null;
2944
+ } | {
2945
+ name: string;
2946
+ service: string;
2947
+ type: "service";
2948
+ environment?: string | null;
2949
+ } | {
2950
+ name: string;
2951
+ part: string;
2952
+ type: "text_blob";
2953
+ } | {
2954
+ indexName: string;
2955
+ name: string;
2956
+ type: "vectorize";
2957
+ } | {
2958
+ name: string;
2959
+ type: "version_metadata";
2960
+ } | {
2961
+ name: string;
2962
+ secretName: string;
2963
+ storeId: string;
2964
+ type: "secrets_store_secret";
2965
+ } | {
2966
+ algorithm: unknown;
2967
+ format: "raw" | "pkcs8" | "spki" | "jwk";
2968
+ name: string;
2969
+ type: "secret_key";
2970
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
2971
+ } | {
2972
+ name: string;
2973
+ type: "workflow";
2974
+ workflowName: string;
2975
+ className?: string | null;
2976
+ scriptName?: string | null;
2977
+ } | {
2978
+ name: string;
2979
+ part: string;
2980
+ type: "wasm_module";
2981
+ })[] | null;
2982
+ /** Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. */
2983
+ compatibilityDate?: string | null;
2984
+ /** Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`. */
2985
+ compatibilityFlags?: string[] | null;
2986
+ /** Limits to apply for this Worker. */
2987
+ limits?: {
2988
+ cpuMs?: number | null;
2989
+ } | null;
2990
+ /** Whether Logpush is turned on for the Worker. */
2991
+ logpush?: boolean | null;
2992
+ /** Observability settings for the Worker. */
2993
+ observability?: {
2994
+ enabled: boolean;
2995
+ headSamplingRate?: number | null;
2996
+ logs?: {
2997
+ enabled: boolean;
2998
+ invocationLogs: boolean;
2999
+ destinations?: string[] | null;
3000
+ headSamplingRate?: number | null;
3001
+ persist?: boolean | null;
3002
+ } | null;
3003
+ } | null;
3004
+ /** Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted place */
3005
+ placement?: unknown | null;
3006
+ /** Tags associated with the Worker. */
3007
+ tags?: string[] | null;
3008
+ /** List of Workers that will consume logs from the attached Worker. */
3009
+ tailConsumers?: unknown[] | null;
3010
+ /** Usage model for the Worker invocations. */
3011
+ usageModel?: "standard" | "bundled" | "unbound" | null;
3012
+ }
3013
+ export declare const PatchScriptScriptAndVersionSettingResponse: Schema.Schema<PatchScriptScriptAndVersionSettingResponse>;
3014
+ export type PatchScriptScriptAndVersionSettingError = DefaultErrors | WorkerNotFound | ContentTypeRequired;
3015
+ export declare const patchScriptScriptAndVersionSetting: API.OperationMethod<PatchScriptScriptAndVersionSettingRequest, PatchScriptScriptAndVersionSettingResponse, PatchScriptScriptAndVersionSettingError, Credentials | HttpClient.HttpClient>;
3016
+ export interface GetScriptSecretRequest {
3017
+ scriptName: string;
3018
+ secretName: string;
3019
+ /** Path param: Identifier. */
3020
+ accountId: string;
3021
+ /** Query param: Flag that indicates whether the secret name is URL encoded. */
3022
+ urlEncoded?: boolean;
3023
+ }
3024
+ export declare const GetScriptSecretRequest: Schema.Schema<GetScriptSecretRequest>;
3025
+ export type GetScriptSecretResponse = {
3026
+ name: string;
3027
+ type: "secret_text";
3028
+ } | {
3029
+ algorithm: unknown;
3030
+ format: "raw" | "pkcs8" | "spki" | "jwk";
3031
+ name: string;
3032
+ type: "secret_key";
3033
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
3034
+ };
3035
+ export declare const GetScriptSecretResponse: Schema.Schema<GetScriptSecretResponse>;
3036
+ export type GetScriptSecretError = DefaultErrors | WorkerNotFound | SecretNotFound;
3037
+ export declare const getScriptSecret: API.OperationMethod<GetScriptSecretRequest, GetScriptSecretResponse, GetScriptSecretError, Credentials | HttpClient.HttpClient>;
3038
+ export interface ListScriptSecretsRequest {
3039
+ scriptName: string;
3040
+ /** Identifier. */
3041
+ accountId: string;
3042
+ }
3043
+ export declare const ListScriptSecretsRequest: Schema.Schema<ListScriptSecretsRequest>;
3044
+ export interface ListScriptSecretsResponse {
3045
+ result: ({
3046
+ name: string;
3047
+ type: "secret_text";
3048
+ } | {
3049
+ algorithm: unknown;
3050
+ format: "raw" | "pkcs8" | "spki" | "jwk";
3051
+ name: string;
3052
+ type: "secret_key";
3053
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
3054
+ })[];
3055
+ }
3056
+ export declare const ListScriptSecretsResponse: Schema.Schema<ListScriptSecretsResponse>;
3057
+ export type ListScriptSecretsError = DefaultErrors | WorkerNotFound;
3058
+ export declare const listScriptSecrets: API.PaginatedOperationMethod<ListScriptSecretsRequest, ListScriptSecretsResponse, ListScriptSecretsError, Credentials | HttpClient.HttpClient> & {
3059
+ pages: (input: ListScriptSecretsRequest) => stream.Stream<ListScriptSecretsResponse, ListScriptSecretsError, Credentials | HttpClient.HttpClient>;
3060
+ items: (input: ListScriptSecretsRequest) => stream.Stream<{
3061
+ name: string;
3062
+ type: "secret_text";
3063
+ } | {
3064
+ algorithm: unknown;
3065
+ format: "raw" | "pkcs8" | "spki" | "jwk";
3066
+ name: string;
3067
+ type: "secret_key";
3068
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
3069
+ }, ListScriptSecretsError, Credentials | HttpClient.HttpClient>;
3070
+ };
3071
+ export interface PutScriptSecretRequest {
3072
+ scriptName: string;
3073
+ /** Path param: Identifier. */
3074
+ accountId: string;
3075
+ /** Body param: A JavaScript variable name for the binding. */
3076
+ name: string;
3077
+ /** Body param: The secret value to use. */
3078
+ text: string;
3079
+ /** Body param: The kind of resource that the binding provides. */
3080
+ type: "secret_text";
3081
+ }
3082
+ export declare const PutScriptSecretRequest: Schema.Schema<PutScriptSecretRequest>;
3083
+ export type PutScriptSecretResponse = {
3084
+ name: string;
3085
+ type: "secret_text";
3086
+ } | {
3087
+ algorithm: unknown;
3088
+ format: "raw" | "pkcs8" | "spki" | "jwk";
3089
+ name: string;
3090
+ type: "secret_key";
3091
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
3092
+ };
3093
+ export declare const PutScriptSecretResponse: Schema.Schema<PutScriptSecretResponse>;
3094
+ export type PutScriptSecretError = DefaultErrors | WorkerNotFound;
3095
+ export declare const putScriptSecret: API.OperationMethod<PutScriptSecretRequest, PutScriptSecretResponse, PutScriptSecretError, Credentials | HttpClient.HttpClient>;
3096
+ export interface DeleteScriptSecretRequest {
3097
+ scriptName: string;
3098
+ secretName: string;
3099
+ /** Path param: Identifier. */
3100
+ accountId: string;
3101
+ /** Query param: Flag that indicates whether the secret name is URL encoded. */
3102
+ urlEncoded?: boolean;
3103
+ }
3104
+ export declare const DeleteScriptSecretRequest: Schema.Schema<DeleteScriptSecretRequest>;
3105
+ export type DeleteScriptSecretResponse = unknown;
3106
+ export declare const DeleteScriptSecretResponse: Schema.Schema<unknown>;
3107
+ export type DeleteScriptSecretError = DefaultErrors | WorkerNotFound | SecretNotFound;
3108
+ export declare const deleteScriptSecret: API.OperationMethod<DeleteScriptSecretRequest, DeleteScriptSecretResponse, DeleteScriptSecretError, Credentials | HttpClient.HttpClient>;
3109
+ export interface GetScriptSettingRequest {
3110
+ scriptName: string;
3111
+ /** Identifier. */
3112
+ accountId: string;
3113
+ }
3114
+ export declare const GetScriptSettingRequest: Schema.Schema<GetScriptSettingRequest>;
3115
+ export type GetScriptSettingResponse = unknown;
3116
+ export declare const GetScriptSettingResponse: Schema.Schema<unknown>;
3117
+ export type GetScriptSettingError = DefaultErrors | WorkerNotFound;
3118
+ export declare const getScriptSetting: API.OperationMethod<GetScriptSettingRequest, GetScriptSettingResponse, GetScriptSettingError, Credentials | HttpClient.HttpClient>;
3119
+ export interface PatchScriptSettingRequest {
3120
+ scriptName: string;
3121
+ /** Path param: Identifier. */
3122
+ accountId: string;
3123
+ /** Body param: Whether Logpush is turned on for the Worker. */
3124
+ logpush?: boolean;
3125
+ /** Body param: Observability settings for the Worker. */
3126
+ observability?: {
3127
+ enabled: boolean;
3128
+ headSamplingRate?: number | null;
3129
+ logs?: {
3130
+ enabled: boolean;
3131
+ invocationLogs: boolean;
3132
+ destinations?: string[];
3133
+ headSamplingRate?: number | null;
3134
+ persist?: boolean;
3135
+ } | null;
3136
+ } | null;
3137
+ /** Body param: Tags associated with the Worker. */
3138
+ tags?: string[] | null;
3139
+ /** Body param: List of Workers that will consume logs from the attached Worker. */
3140
+ tailConsumers?: unknown[] | null;
3141
+ }
3142
+ export declare const PatchScriptSettingRequest: Schema.Schema<PatchScriptSettingRequest>;
3143
+ export type PatchScriptSettingResponse = unknown;
3144
+ export declare const PatchScriptSettingResponse: Schema.Schema<unknown>;
3145
+ export type PatchScriptSettingError = DefaultErrors | WorkerNotFound;
3146
+ export declare const patchScriptSetting: API.OperationMethod<PatchScriptSettingRequest, PatchScriptSettingResponse, PatchScriptSettingError, Credentials | HttpClient.HttpClient>;
3147
+ export interface GetScriptSubdomainRequest {
3148
+ scriptName: string;
3149
+ /** Identifier. */
3150
+ accountId: string;
3151
+ }
3152
+ export declare const GetScriptSubdomainRequest: Schema.Schema<GetScriptSubdomainRequest>;
3153
+ export interface GetScriptSubdomainResponse {
3154
+ /** Whether the Worker is available on the workers.dev subdomain. */
3155
+ enabled: boolean;
3156
+ /** Whether the Worker's Preview URLs are available on the workers.dev subdomain. */
3157
+ previewsEnabled: boolean;
3158
+ }
3159
+ export declare const GetScriptSubdomainResponse: Schema.Schema<GetScriptSubdomainResponse>;
3160
+ export type GetScriptSubdomainError = DefaultErrors | WorkerNotFound;
3161
+ export declare const getScriptSubdomain: API.OperationMethod<GetScriptSubdomainRequest, GetScriptSubdomainResponse, GetScriptSubdomainError, Credentials | HttpClient.HttpClient>;
3162
+ export interface CreateScriptSubdomainRequest {
3163
+ scriptName: string;
3164
+ /** Path param: Identifier. */
3165
+ accountId: string;
3166
+ /** Body param: Whether the Worker should be available on the workers.dev subdomain. */
3167
+ enabled: boolean;
3168
+ /** Body param: Whether the Worker's Preview URLs should be available on the workers.dev subdomain. */
3169
+ previewsEnabled?: boolean;
3170
+ }
3171
+ export declare const CreateScriptSubdomainRequest: Schema.Schema<CreateScriptSubdomainRequest>;
3172
+ export interface CreateScriptSubdomainResponse {
3173
+ /** Whether the Worker is available on the workers.dev subdomain. */
3174
+ enabled: boolean;
3175
+ /** Whether the Worker's Preview URLs are available on the workers.dev subdomain. */
3176
+ previewsEnabled: boolean;
3177
+ }
3178
+ export declare const CreateScriptSubdomainResponse: Schema.Schema<CreateScriptSubdomainResponse>;
3179
+ export type CreateScriptSubdomainError = DefaultErrors | WorkerNotFound;
3180
+ export declare const createScriptSubdomain: API.OperationMethod<CreateScriptSubdomainRequest, CreateScriptSubdomainResponse, CreateScriptSubdomainError, Credentials | HttpClient.HttpClient>;
3181
+ export interface DeleteScriptSubdomainRequest {
3182
+ scriptName: string;
3183
+ /** Identifier. */
3184
+ accountId: string;
3185
+ }
3186
+ export declare const DeleteScriptSubdomainRequest: Schema.Schema<DeleteScriptSubdomainRequest>;
3187
+ export interface DeleteScriptSubdomainResponse {
3188
+ /** Whether the Worker is available on the workers.dev subdomain. */
3189
+ enabled: boolean;
3190
+ /** Whether the Worker's Preview URLs are available on the workers.dev subdomain. */
3191
+ previewsEnabled: boolean;
3192
+ }
3193
+ export declare const DeleteScriptSubdomainResponse: Schema.Schema<DeleteScriptSubdomainResponse>;
3194
+ export type DeleteScriptSubdomainError = DefaultErrors | WorkerNotFound;
3195
+ export declare const deleteScriptSubdomain: API.OperationMethod<DeleteScriptSubdomainRequest, DeleteScriptSubdomainResponse, DeleteScriptSubdomainError, Credentials | HttpClient.HttpClient>;
3196
+ export interface GetScriptTailRequest {
3197
+ scriptName: string;
3198
+ /** Identifier. */
3199
+ accountId: string;
3200
+ }
3201
+ export declare const GetScriptTailRequest: Schema.Schema<GetScriptTailRequest>;
3202
+ export interface GetScriptTailResponse {
3203
+ /** Identifier. */
3204
+ id: string;
3205
+ expiresAt: string;
3206
+ url: string;
3207
+ }
3208
+ export declare const GetScriptTailResponse: Schema.Schema<GetScriptTailResponse>;
3209
+ export type GetScriptTailError = DefaultErrors | WorkerNotFound;
3210
+ export declare const getScriptTail: API.OperationMethod<GetScriptTailRequest, GetScriptTailResponse, GetScriptTailError, Credentials | HttpClient.HttpClient>;
3211
+ export interface CreateScriptTailRequest {
3212
+ scriptName: string;
3213
+ /** Path param: Identifier. */
3214
+ accountId: string;
3215
+ /** Body param: */
3216
+ body: unknown;
3217
+ }
3218
+ export declare const CreateScriptTailRequest: Schema.Schema<CreateScriptTailRequest>;
3219
+ export interface CreateScriptTailResponse {
3220
+ /** Identifier. */
3221
+ id: string;
3222
+ expiresAt: string;
3223
+ url: string;
3224
+ }
3225
+ export declare const CreateScriptTailResponse: Schema.Schema<CreateScriptTailResponse>;
3226
+ export type CreateScriptTailError = DefaultErrors | WorkerNotFound;
3227
+ export declare const createScriptTail: API.OperationMethod<CreateScriptTailRequest, CreateScriptTailResponse, CreateScriptTailError, Credentials | HttpClient.HttpClient>;
3228
+ export interface DeleteScriptTailRequest {
3229
+ scriptName: string;
3230
+ id: string;
3231
+ /** Identifier. */
3232
+ accountId: string;
3233
+ }
3234
+ export declare const DeleteScriptTailRequest: Schema.Schema<DeleteScriptTailRequest>;
3235
+ export interface DeleteScriptTailResponse {
3236
+ errors: {
3237
+ code: number;
3238
+ message: string;
3239
+ documentationUrl?: string | null;
3240
+ source?: {
3241
+ pointer?: string | null;
3242
+ } | null;
3243
+ }[];
3244
+ messages: {
3245
+ code: number;
3246
+ message: string;
3247
+ documentationUrl?: string | null;
3248
+ source?: {
3249
+ pointer?: string | null;
3250
+ } | null;
3251
+ }[];
3252
+ /** Whether the API call was successful. */
3253
+ success: true;
3254
+ }
3255
+ export declare const DeleteScriptTailResponse: Schema.Schema<DeleteScriptTailResponse>;
3256
+ export type DeleteScriptTailError = DefaultErrors | WorkerNotFound;
3257
+ export declare const deleteScriptTail: API.OperationMethod<DeleteScriptTailRequest, DeleteScriptTailResponse, DeleteScriptTailError, Credentials | HttpClient.HttpClient>;
3258
+ export interface GetScriptVersionRequest {
3259
+ scriptName: string;
3260
+ versionId: string;
3261
+ /** Identifier. */
3262
+ accountId: string;
3263
+ }
3264
+ export declare const GetScriptVersionRequest: Schema.Schema<GetScriptVersionRequest>;
3265
+ export interface GetScriptVersionResponse {
3266
+ resources: {
3267
+ bindings?: ({
3268
+ name: string;
3269
+ type: "ai";
3270
+ } | {
3271
+ dataset: string;
3272
+ name: string;
3273
+ type: "analytics_engine";
3274
+ } | {
3275
+ name: string;
3276
+ type: "assets";
3277
+ } | {
3278
+ name: string;
3279
+ type: "browser";
3280
+ } | {
3281
+ id: string;
3282
+ name: string;
3283
+ type: "d1";
3284
+ } | {
3285
+ name: string;
3286
+ part: string;
3287
+ type: "data_blob";
3288
+ } | {
3289
+ name: string;
3290
+ namespace: string;
3291
+ type: "dispatch_namespace";
3292
+ outbound?: {
3293
+ params?: string[] | null;
3294
+ worker?: {
3295
+ environment?: string | null;
3296
+ service?: string | null;
3297
+ } | null;
3298
+ } | null;
3299
+ } | {
3300
+ name: string;
3301
+ type: "durable_object_namespace";
3302
+ className?: string | null;
3303
+ environment?: string | null;
3304
+ namespaceId?: string | null;
3305
+ scriptName?: string | null;
3306
+ } | {
3307
+ id: string;
3308
+ name: string;
3309
+ type: "hyperdrive";
3310
+ } | {
3311
+ name: string;
3312
+ type: "inherit";
3313
+ oldName?: string | null;
3314
+ versionId?: string | null;
3315
+ } | {
3316
+ name: string;
3317
+ type: "images";
3318
+ } | {
3319
+ json: string;
3320
+ name: string;
3321
+ type: "json";
3322
+ } | {
3323
+ name: string;
3324
+ namespaceId: string;
3325
+ type: "kv_namespace";
3326
+ } | {
3327
+ certificateId: string;
3328
+ name: string;
3329
+ type: "mtls_certificate";
3330
+ } | {
3331
+ name: string;
3332
+ text: string;
3333
+ type: "plain_text";
3334
+ } | {
3335
+ name: string;
3336
+ pipeline: string;
3337
+ type: "pipelines";
3338
+ } | {
3339
+ name: string;
3340
+ queueName: string;
3341
+ type: "queue";
3342
+ } | {
3343
+ bucketName: string;
3344
+ name: string;
3345
+ type: "r2_bucket";
3346
+ jurisdiction?: "eu" | "fedramp" | null;
3347
+ } | {
3348
+ name: string;
3349
+ type: "secret_text";
3350
+ } | {
3351
+ name: string;
3352
+ type: "send_email";
3353
+ allowedDestinationAddresses?: string[] | null;
3354
+ allowedSenderAddresses?: string[] | null;
3355
+ destinationAddress?: string | null;
3356
+ } | {
3357
+ name: string;
3358
+ service: string;
3359
+ type: "service";
3360
+ environment?: string | null;
3361
+ } | {
3362
+ name: string;
3363
+ part: string;
3364
+ type: "text_blob";
3365
+ } | {
3366
+ indexName: string;
3367
+ name: string;
3368
+ type: "vectorize";
3369
+ } | {
3370
+ name: string;
3371
+ type: "version_metadata";
3372
+ } | {
3373
+ name: string;
3374
+ secretName: string;
3375
+ storeId: string;
3376
+ type: "secrets_store_secret";
3377
+ } | {
3378
+ algorithm: unknown;
3379
+ format: "raw" | "pkcs8" | "spki" | "jwk";
3380
+ name: string;
3381
+ type: "secret_key";
3382
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
3383
+ } | {
3384
+ name: string;
3385
+ type: "workflow";
3386
+ workflowName: string;
3387
+ className?: string | null;
3388
+ scriptName?: string | null;
3389
+ } | {
3390
+ name: string;
3391
+ part: string;
3392
+ type: "wasm_module";
3393
+ })[] | null;
3394
+ script?: {
3395
+ etag?: string | null;
3396
+ handlers?: string[] | null;
3397
+ lastDeployedFrom?: string | null;
3398
+ namedHandlers?: {
3399
+ handlers?: string[] | null;
3400
+ name?: string | null;
3401
+ }[] | null;
3402
+ } | null;
3403
+ scriptRuntime?: {
3404
+ compatibilityDate?: string | null;
3405
+ compatibilityFlags?: string[] | null;
3406
+ limits?: {
3407
+ cpuMs?: number | null;
3408
+ } | null;
3409
+ migrationTag?: string | null;
3410
+ usageModel?: "bundled" | "unbound" | "standard" | null;
3411
+ } | null;
3412
+ };
3413
+ /** Unique identifier for the version. */
3414
+ id?: string | null;
3415
+ metadata?: {
3416
+ authorEmail?: string | null;
3417
+ authorId?: string | null;
3418
+ createdOn?: string | null;
3419
+ hasPreview?: boolean | null;
3420
+ modifiedOn?: string | null;
3421
+ source?: "unknown" | "api" | "wrangler" | "terraform" | "dash" | "dash_template" | "integration" | "quick_editor" | "playground" | "workersci" | null;
3422
+ } | null;
3423
+ /** Sequential version number. */
3424
+ number?: number | null;
3425
+ }
3426
+ export declare const GetScriptVersionResponse: Schema.Schema<GetScriptVersionResponse>;
3427
+ export type GetScriptVersionError = DefaultErrors | WorkerNotFound | VersionNotFound;
3428
+ export declare const getScriptVersion: API.OperationMethod<GetScriptVersionRequest, GetScriptVersionResponse, GetScriptVersionError, Credentials | HttpClient.HttpClient>;
3429
+ export interface ListScriptVersionsRequest {
3430
+ scriptName: string;
3431
+ /** Path param: Identifier. */
3432
+ accountId: string;
3433
+ /** Query param: Only return versions that can be used in a deployment. Ignores pagination. */
3434
+ deployable?: boolean;
3435
+ }
3436
+ export declare const ListScriptVersionsRequest: Schema.Schema<ListScriptVersionsRequest>;
3437
+ export interface ListScriptVersionsResponse {
3438
+ result: {
3439
+ items?: {
3440
+ id?: string | null;
3441
+ metadata?: {
3442
+ authorEmail?: string | null;
3443
+ authorId?: string | null;
3444
+ createdOn?: string | null;
3445
+ hasPreview?: boolean | null;
3446
+ modifiedOn?: string | null;
3447
+ source?: "unknown" | "api" | "wrangler" | "terraform" | "dash" | "dash_template" | "integration" | "quick_editor" | "playground" | "workersci" | null;
3448
+ } | null;
3449
+ number?: number | null;
3450
+ }[] | null;
3451
+ };
3452
+ resultInfo: {
3453
+ count?: number | null;
3454
+ page?: number | null;
3455
+ perPage?: number | null;
3456
+ totalCount?: number | null;
3457
+ };
3458
+ }
3459
+ export declare const ListScriptVersionsResponse: Schema.Schema<ListScriptVersionsResponse>;
3460
+ export type ListScriptVersionsError = DefaultErrors | WorkerNotFound;
3461
+ export declare const listScriptVersions: API.PaginatedOperationMethod<ListScriptVersionsRequest, ListScriptVersionsResponse, ListScriptVersionsError, Credentials | HttpClient.HttpClient> & {
3462
+ pages: (input: ListScriptVersionsRequest) => stream.Stream<ListScriptVersionsResponse, ListScriptVersionsError, Credentials | HttpClient.HttpClient>;
3463
+ items: (input: ListScriptVersionsRequest) => stream.Stream<{
3464
+ id?: string | null;
3465
+ metadata?: {
3466
+ authorEmail?: string | null;
3467
+ authorId?: string | null;
3468
+ createdOn?: string | null;
3469
+ hasPreview?: boolean | null;
3470
+ modifiedOn?: string | null;
3471
+ source?: "unknown" | "api" | "wrangler" | "terraform" | "dash" | "dash_template" | "integration" | "quick_editor" | "playground" | "workersci" | null;
3472
+ } | null;
3473
+ number?: number | null;
3474
+ }, ListScriptVersionsError, Credentials | HttpClient.HttpClient>;
3475
+ };
3476
+ export interface CreateScriptVersionRequest {
3477
+ scriptName: string;
3478
+ /** Path param: Identifier. */
3479
+ accountId: string;
3480
+ /** Body param: JSON-encoded metadata about the uploaded parts and Worker configuration. */
3481
+ metadata: {
3482
+ mainModule: string;
3483
+ annotations?: {
3484
+ workersAlias?: string;
3485
+ workersMessage?: string;
3486
+ workersTag?: string;
3487
+ };
3488
+ bindings?: ({
3489
+ name: string;
3490
+ type: "ai";
3491
+ } | {
3492
+ dataset: string;
3493
+ name: string;
3494
+ type: "analytics_engine";
3495
+ } | {
3496
+ name: string;
3497
+ type: "assets";
3498
+ } | {
3499
+ name: string;
3500
+ type: "browser";
3501
+ } | {
3502
+ id: string;
3503
+ name: string;
3504
+ type: "d1";
3505
+ } | {
3506
+ name: string;
3507
+ part: string;
3508
+ type: "data_blob";
3509
+ } | {
3510
+ name: string;
3511
+ namespace: string;
3512
+ type: "dispatch_namespace";
3513
+ outbound?: {
3514
+ params?: string[];
3515
+ worker?: {
3516
+ environment?: string;
3517
+ service?: string;
3518
+ };
3519
+ };
3520
+ } | {
3521
+ name: string;
3522
+ type: "durable_object_namespace";
3523
+ className?: string;
3524
+ environment?: string;
3525
+ namespaceId?: string;
3526
+ scriptName?: string;
3527
+ } | {
3528
+ id: string;
3529
+ name: string;
3530
+ type: "hyperdrive";
3531
+ } | {
3532
+ name: string;
3533
+ type: "inherit";
3534
+ oldName?: string;
3535
+ versionId?: string;
3536
+ } | {
3537
+ name: string;
3538
+ type: "images";
3539
+ } | {
3540
+ json: string;
3541
+ name: string;
3542
+ type: "json";
3543
+ } | {
3544
+ name: string;
3545
+ namespaceId: string;
3546
+ type: "kv_namespace";
3547
+ } | {
3548
+ certificateId: string;
3549
+ name: string;
3550
+ type: "mtls_certificate";
3551
+ } | {
3552
+ name: string;
3553
+ text: string;
3554
+ type: "plain_text";
3555
+ } | {
3556
+ name: string;
3557
+ pipeline: string;
3558
+ type: "pipelines";
3559
+ } | {
3560
+ name: string;
3561
+ queueName: string;
3562
+ type: "queue";
3563
+ } | {
3564
+ bucketName: string;
3565
+ name: string;
3566
+ type: "r2_bucket";
3567
+ jurisdiction?: "eu" | "fedramp";
3568
+ } | {
3569
+ name: string;
3570
+ text: string;
3571
+ type: "secret_text";
3572
+ } | {
3573
+ name: string;
3574
+ type: "send_email";
3575
+ allowedDestinationAddresses?: string[];
3576
+ allowedSenderAddresses?: string[];
3577
+ destinationAddress?: string;
3578
+ } | {
3579
+ name: string;
3580
+ service: string;
3581
+ type: "service";
3582
+ environment?: string;
3583
+ } | {
3584
+ name: string;
3585
+ part: string;
3586
+ type: "text_blob";
3587
+ } | {
3588
+ indexName: string;
3589
+ name: string;
3590
+ type: "vectorize";
3591
+ } | {
3592
+ name: string;
3593
+ type: "version_metadata";
3594
+ } | {
3595
+ name: string;
3596
+ secretName: string;
3597
+ storeId: string;
3598
+ type: "secrets_store_secret";
3599
+ } | {
3600
+ algorithm: unknown;
3601
+ format: "raw" | "pkcs8" | "spki" | "jwk";
3602
+ name: string;
3603
+ type: "secret_key";
3604
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
3605
+ keyBase64?: string;
3606
+ keyJwk?: unknown;
3607
+ } | {
3608
+ name: string;
3609
+ type: "workflow";
3610
+ workflowName: string;
3611
+ className?: string;
3612
+ scriptName?: string;
3613
+ } | {
3614
+ name: string;
3615
+ part: string;
3616
+ type: "wasm_module";
3617
+ })[];
3618
+ compatibilityDate?: string;
3619
+ compatibilityFlags?: string[];
3620
+ keepBindings?: string[];
3621
+ usageModel?: "standard" | "bundled" | "unbound";
3622
+ };
3623
+ /** Body param: An array of modules (often JavaScript files) comprising a Worker script. At least one module must be present and referenced in the metadata as `main_module` or `body_part` by filename.<br/ */
3624
+ files?: (File | Blob)[];
3625
+ }
3626
+ export declare const CreateScriptVersionRequest: Schema.Schema<CreateScriptVersionRequest>;
3627
+ export interface CreateScriptVersionResponse {
3628
+ resources: {
3629
+ bindings?: ({
3630
+ name: string;
3631
+ type: "ai";
3632
+ } | {
3633
+ dataset: string;
3634
+ name: string;
3635
+ type: "analytics_engine";
3636
+ } | {
3637
+ name: string;
3638
+ type: "assets";
3639
+ } | {
3640
+ name: string;
3641
+ type: "browser";
3642
+ } | {
3643
+ id: string;
3644
+ name: string;
3645
+ type: "d1";
3646
+ } | {
3647
+ name: string;
3648
+ part: string;
3649
+ type: "data_blob";
3650
+ } | {
3651
+ name: string;
3652
+ namespace: string;
3653
+ type: "dispatch_namespace";
3654
+ outbound?: {
3655
+ params?: string[] | null;
3656
+ worker?: {
3657
+ environment?: string | null;
3658
+ service?: string | null;
3659
+ } | null;
3660
+ } | null;
3661
+ } | {
3662
+ name: string;
3663
+ type: "durable_object_namespace";
3664
+ className?: string | null;
3665
+ environment?: string | null;
3666
+ namespaceId?: string | null;
3667
+ scriptName?: string | null;
3668
+ } | {
3669
+ id: string;
3670
+ name: string;
3671
+ type: "hyperdrive";
3672
+ } | {
3673
+ name: string;
3674
+ type: "inherit";
3675
+ oldName?: string | null;
3676
+ versionId?: string | null;
3677
+ } | {
3678
+ name: string;
3679
+ type: "images";
3680
+ } | {
3681
+ json: string;
3682
+ name: string;
3683
+ type: "json";
3684
+ } | {
3685
+ name: string;
3686
+ namespaceId: string;
3687
+ type: "kv_namespace";
3688
+ } | {
3689
+ certificateId: string;
3690
+ name: string;
3691
+ type: "mtls_certificate";
3692
+ } | {
3693
+ name: string;
3694
+ text: string;
3695
+ type: "plain_text";
3696
+ } | {
3697
+ name: string;
3698
+ pipeline: string;
3699
+ type: "pipelines";
3700
+ } | {
3701
+ name: string;
3702
+ queueName: string;
3703
+ type: "queue";
3704
+ } | {
3705
+ bucketName: string;
3706
+ name: string;
3707
+ type: "r2_bucket";
3708
+ jurisdiction?: "eu" | "fedramp" | null;
3709
+ } | {
3710
+ name: string;
3711
+ type: "secret_text";
3712
+ } | {
3713
+ name: string;
3714
+ type: "send_email";
3715
+ allowedDestinationAddresses?: string[] | null;
3716
+ allowedSenderAddresses?: string[] | null;
3717
+ destinationAddress?: string | null;
3718
+ } | {
3719
+ name: string;
3720
+ service: string;
3721
+ type: "service";
3722
+ environment?: string | null;
3723
+ } | {
3724
+ name: string;
3725
+ part: string;
3726
+ type: "text_blob";
3727
+ } | {
3728
+ indexName: string;
3729
+ name: string;
3730
+ type: "vectorize";
3731
+ } | {
3732
+ name: string;
3733
+ type: "version_metadata";
3734
+ } | {
3735
+ name: string;
3736
+ secretName: string;
3737
+ storeId: string;
3738
+ type: "secrets_store_secret";
3739
+ } | {
3740
+ algorithm: unknown;
3741
+ format: "raw" | "pkcs8" | "spki" | "jwk";
3742
+ name: string;
3743
+ type: "secret_key";
3744
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
3745
+ } | {
3746
+ name: string;
3747
+ type: "workflow";
3748
+ workflowName: string;
3749
+ className?: string | null;
3750
+ scriptName?: string | null;
3751
+ } | {
3752
+ name: string;
3753
+ part: string;
3754
+ type: "wasm_module";
3755
+ })[] | null;
3756
+ script?: {
3757
+ etag?: string | null;
3758
+ handlers?: string[] | null;
3759
+ lastDeployedFrom?: string | null;
3760
+ namedHandlers?: {
3761
+ handlers?: string[] | null;
3762
+ name?: string | null;
3763
+ }[] | null;
3764
+ } | null;
3765
+ scriptRuntime?: {
3766
+ compatibilityDate?: string | null;
3767
+ compatibilityFlags?: string[] | null;
3768
+ limits?: {
3769
+ cpuMs?: number | null;
3770
+ } | null;
3771
+ migrationTag?: string | null;
3772
+ usageModel?: "bundled" | "unbound" | "standard" | null;
3773
+ } | null;
3774
+ };
3775
+ /** Unique identifier for the version. */
3776
+ id?: string | null;
3777
+ metadata?: {
3778
+ authorEmail?: string | null;
3779
+ authorId?: string | null;
3780
+ createdOn?: string | null;
3781
+ hasPreview?: boolean | null;
3782
+ modifiedOn?: string | null;
3783
+ source?: "unknown" | "api" | "wrangler" | "terraform" | "dash" | "dash_template" | "integration" | "quick_editor" | "playground" | "workersci" | null;
3784
+ } | null;
3785
+ /** Sequential version number. */
3786
+ number?: number | null;
3787
+ /** Time in milliseconds spent on [Worker startup](https://developers.cloudflare.com/workers/platform/limits/#worker-startup-time). */
3788
+ startupTimeMs?: number | null;
3789
+ }
3790
+ export declare const CreateScriptVersionResponse: Schema.Schema<CreateScriptVersionResponse>;
3791
+ export type CreateScriptVersionError = DefaultErrors | WorkerNotFound;
3792
+ export declare const createScriptVersion: API.OperationMethod<CreateScriptVersionRequest, CreateScriptVersionResponse, CreateScriptVersionError, Credentials | HttpClient.HttpClient>;
3793
+ export interface GetSubdomainRequest {
3794
+ /** Identifier. */
3795
+ accountId: string;
3796
+ }
3797
+ export declare const GetSubdomainRequest: Schema.Schema<GetSubdomainRequest>;
3798
+ export interface GetSubdomainResponse {
3799
+ subdomain: string;
3800
+ }
3801
+ export declare const GetSubdomainResponse: Schema.Schema<GetSubdomainResponse>;
3802
+ export type GetSubdomainError = DefaultErrors | InvalidRoute;
3803
+ export declare const getSubdomain: API.OperationMethod<GetSubdomainRequest, GetSubdomainResponse, GetSubdomainError, Credentials | HttpClient.HttpClient>;
3804
+ export interface PutSubdomainRequest {
3805
+ /** Path param: Identifier. */
3806
+ accountId: string;
3807
+ /** Body param: */
3808
+ subdomain: string;
3809
+ }
3810
+ export declare const PutSubdomainRequest: Schema.Schema<PutSubdomainRequest>;
3811
+ export interface PutSubdomainResponse {
3812
+ subdomain: string;
3813
+ }
3814
+ export declare const PutSubdomainResponse: Schema.Schema<PutSubdomainResponse>;
3815
+ export type PutSubdomainError = DefaultErrors | InvalidRoute;
3816
+ export declare const putSubdomain: API.OperationMethod<PutSubdomainRequest, PutSubdomainResponse, PutSubdomainError, Credentials | HttpClient.HttpClient>;
3817
+ export interface DeleteSubdomainRequest {
3818
+ /** Identifier. */
3819
+ accountId: string;
3820
+ }
3821
+ export declare const DeleteSubdomainRequest: Schema.Schema<DeleteSubdomainRequest>;
3822
+ export type DeleteSubdomainResponse = unknown;
3823
+ export declare const DeleteSubdomainResponse: Schema.Schema<unknown>;
3824
+ export type DeleteSubdomainError = DefaultErrors | InvalidRoute;
3825
+ export declare const deleteSubdomain: API.OperationMethod<DeleteSubdomainRequest, DeleteSubdomainResponse, DeleteSubdomainError, Credentials | HttpClient.HttpClient>;
3826
+ export {};
3827
+ //# sourceMappingURL=workers.d.ts.map