@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/lib/auth.d.ts +13 -0
  2. package/lib/auth.d.ts.map +1 -0
  3. package/lib/auth.js +12 -0
  4. package/lib/auth.js.map +1 -0
  5. package/lib/category.d.ts +2 -0
  6. package/lib/category.d.ts.map +1 -0
  7. package/lib/category.js +2 -0
  8. package/lib/category.js.map +1 -0
  9. package/lib/client/api.d.ts +14 -0
  10. package/lib/client/api.d.ts.map +1 -0
  11. package/lib/client/api.js +197 -0
  12. package/lib/client/api.js.map +1 -0
  13. package/lib/client/index.d.ts +8 -0
  14. package/lib/client/index.d.ts.map +1 -0
  15. package/lib/client/index.js +8 -0
  16. package/lib/client/index.js.map +1 -0
  17. package/lib/credentials.d.ts +14 -0
  18. package/lib/credentials.d.ts.map +1 -0
  19. package/lib/credentials.js +17 -0
  20. package/lib/credentials.js.map +1 -0
  21. package/lib/errors.d.ts +48 -0
  22. package/lib/errors.d.ts.map +1 -0
  23. package/lib/errors.js +38 -0
  24. package/lib/errors.js.map +1 -0
  25. package/lib/index.d.ts +10 -0
  26. package/lib/index.d.ts.map +1 -0
  27. package/lib/index.js +10 -0
  28. package/lib/index.js.map +1 -0
  29. package/lib/retry.d.ts +14 -0
  30. package/lib/retry.d.ts.map +1 -0
  31. package/lib/retry.js +14 -0
  32. package/lib/retry.js.map +1 -0
  33. package/lib/schemas.d.ts +29 -0
  34. package/lib/schemas.d.ts.map +1 -0
  35. package/lib/schemas.js +34 -0
  36. package/lib/schemas.js.map +1 -0
  37. package/lib/services/abuse-reports.d.ts +224 -0
  38. package/lib/services/abuse-reports.d.ts.map +1 -0
  39. package/lib/services/abuse-reports.js +353 -0
  40. package/lib/services/abuse-reports.js.map +1 -0
  41. package/lib/services/accounts.d.ts +682 -0
  42. package/lib/services/accounts.d.ts.map +1 -0
  43. package/lib/services/accounts.js +805 -0
  44. package/lib/services/accounts.js.map +1 -0
  45. package/lib/services/acm.d.ts +73 -0
  46. package/lib/services/acm.d.ts.map +1 -0
  47. package/lib/services/acm.js +76 -0
  48. package/lib/services/acm.js.map +1 -0
  49. package/lib/services/addressing.d.ts +1208 -0
  50. package/lib/services/addressing.d.ts.map +1 -0
  51. package/lib/services/addressing.js +1776 -0
  52. package/lib/services/addressing.js.map +1 -0
  53. package/lib/services/ai-gateway.d.ts +956 -0
  54. package/lib/services/ai-gateway.d.ts.map +1 -0
  55. package/lib/services/ai-gateway.js +1706 -0
  56. package/lib/services/ai-gateway.js.map +1 -0
  57. package/lib/services/ai.d.ts +243 -0
  58. package/lib/services/ai.d.ts.map +1 -0
  59. package/lib/services/ai.js +299 -0
  60. package/lib/services/ai.js.map +1 -0
  61. package/lib/services/aisearch.d.ts +915 -0
  62. package/lib/services/aisearch.d.ts.map +1 -0
  63. package/lib/services/aisearch.js +2425 -0
  64. package/lib/services/aisearch.js.map +1 -0
  65. package/lib/services/alerting.d.ts +718 -0
  66. package/lib/services/alerting.d.ts.map +1 -0
  67. package/lib/services/alerting.js +1388 -0
  68. package/lib/services/alerting.js.map +1 -0
  69. package/lib/services/api-gateway.d.ts +830 -0
  70. package/lib/services/api-gateway.d.ts.map +1 -0
  71. package/lib/services/api-gateway.js +1548 -0
  72. package/lib/services/api-gateway.js.map +1 -0
  73. package/lib/services/argo.d.ts +101 -0
  74. package/lib/services/argo.d.ts.map +1 -0
  75. package/lib/services/argo.js +105 -0
  76. package/lib/services/argo.js.map +1 -0
  77. package/lib/services/audit-logs.d.ts +46 -0
  78. package/lib/services/audit-logs.d.ts.map +1 -0
  79. package/lib/services/audit-logs.js +37 -0
  80. package/lib/services/audit-logs.js.map +1 -0
  81. package/lib/services/billing.d.ts +62 -0
  82. package/lib/services/billing.d.ts.map +1 -0
  83. package/lib/services/billing.js +100 -0
  84. package/lib/services/billing.js.map +1 -0
  85. package/lib/services/bot-management.d.ts +124 -0
  86. package/lib/services/bot-management.d.ts.map +1 -0
  87. package/lib/services/bot-management.js +262 -0
  88. package/lib/services/bot-management.js.map +1 -0
  89. package/lib/services/botnet-feed.d.ts +65 -0
  90. package/lib/services/botnet-feed.d.ts.map +1 -0
  91. package/lib/services/botnet-feed.js +84 -0
  92. package/lib/services/botnet-feed.js.map +1 -0
  93. package/lib/services/brand-protection.d.ts +188 -0
  94. package/lib/services/brand-protection.d.ts.map +1 -0
  95. package/lib/services/brand-protection.js +214 -0
  96. package/lib/services/brand-protection.js.map +1 -0
  97. package/lib/services/browser-rendering.d.ts +857 -0
  98. package/lib/services/browser-rendering.d.ts.map +1 -0
  99. package/lib/services/browser-rendering.js +1141 -0
  100. package/lib/services/browser-rendering.js.map +1 -0
  101. package/lib/services/cache.d.ts +287 -0
  102. package/lib/services/cache.d.ts.map +1 -0
  103. package/lib/services/cache.js +330 -0
  104. package/lib/services/cache.js.map +1 -0
  105. package/lib/services/calls.d.ts +202 -0
  106. package/lib/services/calls.d.ts.map +1 -0
  107. package/lib/services/calls.js +175 -0
  108. package/lib/services/calls.js.map +1 -0
  109. package/lib/services/certificate-authorities.d.ts +40 -0
  110. package/lib/services/certificate-authorities.d.ts.map +1 -0
  111. package/lib/services/certificate-authorities.js +49 -0
  112. package/lib/services/certificate-authorities.js.map +1 -0
  113. package/lib/services/client-certificates.d.ts +254 -0
  114. package/lib/services/client-certificates.d.ts.map +1 -0
  115. package/lib/services/client-certificates.js +350 -0
  116. package/lib/services/client-certificates.js.map +1 -0
  117. package/lib/services/cloud-connector.d.ts +59 -0
  118. package/lib/services/cloud-connector.d.ts.map +1 -0
  119. package/lib/services/cloud-connector.js +84 -0
  120. package/lib/services/cloud-connector.js.map +1 -0
  121. package/lib/services/cloudforce-one.d.ts +1318 -0
  122. package/lib/services/cloudforce-one.d.ts.map +1 -0
  123. package/lib/services/cloudforce-one.js +1684 -0
  124. package/lib/services/cloudforce-one.js.map +1 -0
  125. package/lib/services/connectivity.d.ts +248 -0
  126. package/lib/services/connectivity.d.ts.map +1 -0
  127. package/lib/services/connectivity.js +377 -0
  128. package/lib/services/connectivity.js.map +1 -0
  129. package/lib/services/content-scanning.d.ts +131 -0
  130. package/lib/services/content-scanning.d.ts.map +1 -0
  131. package/lib/services/content-scanning.js +156 -0
  132. package/lib/services/content-scanning.js.map +1 -0
  133. package/lib/services/custom-certificates.d.ts +211 -0
  134. package/lib/services/custom-certificates.d.ts.map +1 -0
  135. package/lib/services/custom-certificates.js +309 -0
  136. package/lib/services/custom-certificates.js.map +1 -0
  137. package/lib/services/custom-hostnames.d.ts +525 -0
  138. package/lib/services/custom-hostnames.d.ts.map +1 -0
  139. package/lib/services/custom-hostnames.js +1164 -0
  140. package/lib/services/custom-hostnames.js.map +1 -0
  141. package/lib/services/custom-nameservers.d.ts +67 -0
  142. package/lib/services/custom-nameservers.d.ts.map +1 -0
  143. package/lib/services/custom-nameservers.js +80 -0
  144. package/lib/services/custom-nameservers.js.map +1 -0
  145. package/lib/services/custom-pages.d.ts +74 -0
  146. package/lib/services/custom-pages.d.ts.map +1 -0
  147. package/lib/services/custom-pages.js +125 -0
  148. package/lib/services/custom-pages.js.map +1 -0
  149. package/lib/services/d1.d.ts +326 -0
  150. package/lib/services/d1.d.ts.map +1 -0
  151. package/lib/services/d1.js +448 -0
  152. package/lib/services/d1.js.map +1 -0
  153. package/lib/services/dcv-delegation.d.ts +24 -0
  154. package/lib/services/dcv-delegation.d.ts.map +1 -0
  155. package/lib/services/dcv-delegation.js +24 -0
  156. package/lib/services/dcv-delegation.js.map +1 -0
  157. package/lib/services/diagnostics.d.ts +175 -0
  158. package/lib/services/diagnostics.d.ts.map +1 -0
  159. package/lib/services/diagnostics.js +273 -0
  160. package/lib/services/diagnostics.js.map +1 -0
  161. package/lib/services/dns-firewall.d.ts +288 -0
  162. package/lib/services/dns-firewall.d.ts.map +1 -0
  163. package/lib/services/dns-firewall.js +373 -0
  164. package/lib/services/dns-firewall.js.map +1 -0
  165. package/lib/services/dns.d.ts +2946 -0
  166. package/lib/services/dns.d.ts.map +1 -0
  167. package/lib/services/dns.js +4511 -0
  168. package/lib/services/dns.js.map +1 -0
  169. package/lib/services/durable-objects.d.ts +61 -0
  170. package/lib/services/durable-objects.d.ts.map +1 -0
  171. package/lib/services/durable-objects.js +66 -0
  172. package/lib/services/durable-objects.js.map +1 -0
  173. package/lib/services/email-routing.d.ts +542 -0
  174. package/lib/services/email-routing.d.ts.map +1 -0
  175. package/lib/services/email-routing.js +662 -0
  176. package/lib/services/email-routing.js.map +1 -0
  177. package/lib/services/email-security.d.ts +1131 -0
  178. package/lib/services/email-security.d.ts.map +1 -0
  179. package/lib/services/email-security.js +2065 -0
  180. package/lib/services/email-security.js.map +1 -0
  181. package/lib/services/filters.d.ts +157 -0
  182. package/lib/services/filters.d.ts.map +1 -0
  183. package/lib/services/filters.js +135 -0
  184. package/lib/services/filters.js.map +1 -0
  185. package/lib/services/firewall.d.ts +1080 -0
  186. package/lib/services/firewall.d.ts.map +1 -0
  187. package/lib/services/firewall.js +1881 -0
  188. package/lib/services/firewall.js.map +1 -0
  189. package/lib/services/healthchecks.d.ts +464 -0
  190. package/lib/services/healthchecks.d.ts.map +1 -0
  191. package/lib/services/healthchecks.js +838 -0
  192. package/lib/services/healthchecks.js.map +1 -0
  193. package/lib/services/hostnames.d.ts +74 -0
  194. package/lib/services/hostnames.d.ts.map +1 -0
  195. package/lib/services/hostnames.js +100 -0
  196. package/lib/services/hostnames.js.map +1 -0
  197. package/lib/services/hyperdrive.d.ts +203 -0
  198. package/lib/services/hyperdrive.d.ts.map +1 -0
  199. package/lib/services/hyperdrive.js +299 -0
  200. package/lib/services/hyperdrive.js.map +1 -0
  201. package/lib/services/iam.d.ts +554 -0
  202. package/lib/services/iam.d.ts.map +1 -0
  203. package/lib/services/iam.js +743 -0
  204. package/lib/services/iam.js.map +1 -0
  205. package/lib/services/images.d.ts +403 -0
  206. package/lib/services/images.d.ts.map +1 -0
  207. package/lib/services/images.js +417 -0
  208. package/lib/services/images.js.map +1 -0
  209. package/lib/services/intel.d.ts +768 -0
  210. package/lib/services/intel.d.ts.map +1 -0
  211. package/lib/services/intel.js +1179 -0
  212. package/lib/services/intel.js.map +1 -0
  213. package/lib/services/ips.d.ts +28 -0
  214. package/lib/services/ips.d.ts.map +1 -0
  215. package/lib/services/ips.js +39 -0
  216. package/lib/services/ips.js.map +1 -0
  217. package/lib/services/keyless-certificates.d.ts +177 -0
  218. package/lib/services/keyless-certificates.d.ts.map +1 -0
  219. package/lib/services/keyless-certificates.js +216 -0
  220. package/lib/services/keyless-certificates.js.map +1 -0
  221. package/lib/services/kv.d.ts +339 -0
  222. package/lib/services/kv.d.ts.map +1 -0
  223. package/lib/services/kv.js +402 -0
  224. package/lib/services/kv.js.map +1 -0
  225. package/lib/services/leaked-credential-checks.d.ts +119 -0
  226. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  227. package/lib/services/leaked-credential-checks.js +130 -0
  228. package/lib/services/leaked-credential-checks.js.map +1 -0
  229. package/lib/services/load-balancers.d.ts +1767 -0
  230. package/lib/services/load-balancers.d.ts.map +1 -0
  231. package/lib/services/load-balancers.js +3068 -0
  232. package/lib/services/load-balancers.js.map +1 -0
  233. package/lib/services/logpush.d.ts +401 -0
  234. package/lib/services/logpush.d.ts.map +1 -0
  235. package/lib/services/logpush.js +724 -0
  236. package/lib/services/logpush.js.map +1 -0
  237. package/lib/services/logs.d.ts +125 -0
  238. package/lib/services/logs.d.ts.map +1 -0
  239. package/lib/services/logs.js +145 -0
  240. package/lib/services/logs.js.map +1 -0
  241. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  242. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  243. package/lib/services/magic-cloud-networking.js +5205 -0
  244. package/lib/services/magic-cloud-networking.js.map +1 -0
  245. package/lib/services/magic-network-monitoring.d.ts +379 -0
  246. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  247. package/lib/services/magic-network-monitoring.js +535 -0
  248. package/lib/services/magic-network-monitoring.js.map +1 -0
  249. package/lib/services/magic-transit.d.ts +3650 -0
  250. package/lib/services/magic-transit.d.ts.map +1 -0
  251. package/lib/services/magic-transit.js +6120 -0
  252. package/lib/services/magic-transit.js.map +1 -0
  253. package/lib/services/managed-transforms.d.ts +79 -0
  254. package/lib/services/managed-transforms.d.ts.map +1 -0
  255. package/lib/services/managed-transforms.js +107 -0
  256. package/lib/services/managed-transforms.js.map +1 -0
  257. package/lib/services/memberships.d.ts +172 -0
  258. package/lib/services/memberships.d.ts.map +1 -0
  259. package/lib/services/memberships.js +282 -0
  260. package/lib/services/memberships.js.map +1 -0
  261. package/lib/services/mtls-certificates.d.ts +140 -0
  262. package/lib/services/mtls-certificates.d.ts.map +1 -0
  263. package/lib/services/mtls-certificates.js +173 -0
  264. package/lib/services/mtls-certificates.js.map +1 -0
  265. package/lib/services/network-interconnects.d.ts +410 -0
  266. package/lib/services/network-interconnects.d.ts.map +1 -0
  267. package/lib/services/network-interconnects.js +583 -0
  268. package/lib/services/network-interconnects.js.map +1 -0
  269. package/lib/services/organizations.d.ts +201 -0
  270. package/lib/services/organizations.d.ts.map +1 -0
  271. package/lib/services/organizations.js +355 -0
  272. package/lib/services/organizations.js.map +1 -0
  273. package/lib/services/origin-ca-certificates.d.ts +99 -0
  274. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  275. package/lib/services/origin-ca-certificates.js +156 -0
  276. package/lib/services/origin-ca-certificates.js.map +1 -0
  277. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  279. package/lib/services/origin-post-quantum-encryption.js +60 -0
  280. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  281. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  282. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  283. package/lib/services/origin-tls-client-auth.js +401 -0
  284. package/lib/services/origin-tls-client-auth.js.map +1 -0
  285. package/lib/services/page-rules.d.ts +773 -0
  286. package/lib/services/page-rules.d.ts.map +1 -0
  287. package/lib/services/page-rules.js +1365 -0
  288. package/lib/services/page-rules.js.map +1 -0
  289. package/lib/services/page-shield.d.ts +426 -0
  290. package/lib/services/page-shield.d.ts.map +1 -0
  291. package/lib/services/page-shield.js +484 -0
  292. package/lib/services/page-shield.js.map +1 -0
  293. package/lib/services/pages.d.ts +1654 -0
  294. package/lib/services/pages.d.ts.map +1 -0
  295. package/lib/services/pages.js +2954 -0
  296. package/lib/services/pages.js.map +1 -0
  297. package/lib/services/pipelines.d.ts +1461 -0
  298. package/lib/services/pipelines.d.ts.map +1 -0
  299. package/lib/services/pipelines.js +2912 -0
  300. package/lib/services/pipelines.js.map +1 -0
  301. package/lib/services/queues.d.ts +807 -0
  302. package/lib/services/queues.d.ts.map +1 -0
  303. package/lib/services/queues.js +1194 -0
  304. package/lib/services/queues.js.map +1 -0
  305. package/lib/services/r2-data-catalog.d.ts +341 -0
  306. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  307. package/lib/services/r2-data-catalog.js +499 -0
  308. package/lib/services/r2-data-catalog.js.map +1 -0
  309. package/lib/services/r2.d.ts +1041 -0
  310. package/lib/services/r2.d.ts.map +1 -0
  311. package/lib/services/r2.js +1384 -0
  312. package/lib/services/r2.js.map +1 -0
  313. package/lib/services/radar.d.ts +9276 -0
  314. package/lib/services/radar.d.ts.map +1 -0
  315. package/lib/services/radar.js +20491 -0
  316. package/lib/services/radar.js.map +1 -0
  317. package/lib/services/rate-limits.d.ts +315 -0
  318. package/lib/services/rate-limits.d.ts.map +1 -0
  319. package/lib/services/rate-limits.js +521 -0
  320. package/lib/services/rate-limits.js.map +1 -0
  321. package/lib/services/realtime-kit.d.ts +2728 -0
  322. package/lib/services/realtime-kit.d.ts.map +1 -0
  323. package/lib/services/realtime-kit.js +5401 -0
  324. package/lib/services/realtime-kit.js.map +1 -0
  325. package/lib/services/registrar.d.ts +81 -0
  326. package/lib/services/registrar.d.ts.map +1 -0
  327. package/lib/services/registrar.js +154 -0
  328. package/lib/services/registrar.js.map +1 -0
  329. package/lib/services/request-tracers.d.ts +61 -0
  330. package/lib/services/request-tracers.d.ts.map +1 -0
  331. package/lib/services/request-tracers.js +82 -0
  332. package/lib/services/request-tracers.js.map +1 -0
  333. package/lib/services/resource-sharing.d.ts +540 -0
  334. package/lib/services/resource-sharing.d.ts.map +1 -0
  335. package/lib/services/resource-sharing.js +846 -0
  336. package/lib/services/resource-sharing.js.map +1 -0
  337. package/lib/services/rules.d.ts +297 -0
  338. package/lib/services/rules.d.ts.map +1 -0
  339. package/lib/services/rules.js +396 -0
  340. package/lib/services/rules.js.map +1 -0
  341. package/lib/services/rulesets.d.ts +3300 -0
  342. package/lib/services/rulesets.d.ts.map +1 -0
  343. package/lib/services/rulesets.js +7852 -0
  344. package/lib/services/rulesets.js.map +1 -0
  345. package/lib/services/rum.d.ts +289 -0
  346. package/lib/services/rum.d.ts.map +1 -0
  347. package/lib/services/rum.js +409 -0
  348. package/lib/services/rum.js.map +1 -0
  349. package/lib/services/schema-validation.d.ts +240 -0
  350. package/lib/services/schema-validation.d.ts.map +1 -0
  351. package/lib/services/schema-validation.js +306 -0
  352. package/lib/services/schema-validation.js.map +1 -0
  353. package/lib/services/secrets-store.d.ts +321 -0
  354. package/lib/services/secrets-store.d.ts.map +1 -0
  355. package/lib/services/secrets-store.js +385 -0
  356. package/lib/services/secrets-store.js.map +1 -0
  357. package/lib/services/security-center.d.ts +102 -0
  358. package/lib/services/security-center.d.ts.map +1 -0
  359. package/lib/services/security-center.js +170 -0
  360. package/lib/services/security-center.js.map +1 -0
  361. package/lib/services/security-txt.d.ts +105 -0
  362. package/lib/services/security-txt.d.ts.map +1 -0
  363. package/lib/services/security-txt.js +136 -0
  364. package/lib/services/security-txt.js.map +1 -0
  365. package/lib/services/snippets.d.ts +138 -0
  366. package/lib/services/snippets.d.ts.map +1 -0
  367. package/lib/services/snippets.js +178 -0
  368. package/lib/services/snippets.js.map +1 -0
  369. package/lib/services/spectrum.d.ts +316 -0
  370. package/lib/services/spectrum.d.ts.map +1 -0
  371. package/lib/services/spectrum.js +510 -0
  372. package/lib/services/spectrum.js.map +1 -0
  373. package/lib/services/speed.d.ts +227 -0
  374. package/lib/services/speed.d.ts.map +1 -0
  375. package/lib/services/speed.js +444 -0
  376. package/lib/services/speed.js.map +1 -0
  377. package/lib/services/ssl.d.ts +370 -0
  378. package/lib/services/ssl.d.ts.map +1 -0
  379. package/lib/services/ssl.js +732 -0
  380. package/lib/services/ssl.js.map +1 -0
  381. package/lib/services/stream.d.ts +1014 -0
  382. package/lib/services/stream.d.ts.map +1 -0
  383. package/lib/services/stream.js +1049 -0
  384. package/lib/services/stream.js.map +1 -0
  385. package/lib/services/token-validation.d.ts +547 -0
  386. package/lib/services/token-validation.d.ts.map +1 -0
  387. package/lib/services/token-validation.js +768 -0
  388. package/lib/services/token-validation.js.map +1 -0
  389. package/lib/services/turnstile.d.ts +248 -0
  390. package/lib/services/turnstile.d.ts.map +1 -0
  391. package/lib/services/turnstile.js +308 -0
  392. package/lib/services/turnstile.js.map +1 -0
  393. package/lib/services/url-normalization.d.ts +53 -0
  394. package/lib/services/url-normalization.d.ts.map +1 -0
  395. package/lib/services/url-normalization.js +52 -0
  396. package/lib/services/url-normalization.js.map +1 -0
  397. package/lib/services/url-scanner.d.ts +612 -0
  398. package/lib/services/url-scanner.d.ts.map +1 -0
  399. package/lib/services/url-scanner.js +915 -0
  400. package/lib/services/url-scanner.js.map +1 -0
  401. package/lib/services/user.d.ts +441 -0
  402. package/lib/services/user.d.ts.map +1 -0
  403. package/lib/services/user.js +567 -0
  404. package/lib/services/user.js.map +1 -0
  405. package/lib/services/vectorize.d.ts +282 -0
  406. package/lib/services/vectorize.d.ts.map +1 -0
  407. package/lib/services/vectorize.js +340 -0
  408. package/lib/services/vectorize.js.map +1 -0
  409. package/lib/services/waiting-rooms.d.ts +1009 -0
  410. package/lib/services/waiting-rooms.d.ts.map +1 -0
  411. package/lib/services/waiting-rooms.js +1757 -0
  412. package/lib/services/waiting-rooms.js.map +1 -0
  413. package/lib/services/web3.d.ts +274 -0
  414. package/lib/services/web3.d.ts.map +1 -0
  415. package/lib/services/web3.js +362 -0
  416. package/lib/services/web3.js.map +1 -0
  417. package/lib/services/workers-for-platforms.d.ts +1224 -0
  418. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  419. package/lib/services/workers-for-platforms.js +2078 -0
  420. package/lib/services/workers-for-platforms.js.map +1 -0
  421. package/lib/services/workers.d.ts +3498 -0
  422. package/lib/services/workers.d.ts.map +1 -0
  423. package/lib/services/workers.js +5967 -0
  424. package/lib/services/workers.js.map +1 -0
  425. package/lib/services/workflows.d.ts +359 -0
  426. package/lib/services/workflows.d.ts.map +1 -0
  427. package/lib/services/workflows.js +516 -0
  428. package/lib/services/workflows.js.map +1 -0
  429. package/lib/services/zaraz.d.ts +300 -0
  430. package/lib/services/zaraz.d.ts.map +1 -0
  431. package/lib/services/zaraz.js +298 -0
  432. package/lib/services/zaraz.js.map +1 -0
  433. package/lib/services/zero-trust.d.ts +15449 -0
  434. package/lib/services/zero-trust.d.ts.map +1 -0
  435. package/lib/services/zero-trust.js +29194 -0
  436. package/lib/services/zero-trust.js.map +1 -0
  437. package/lib/services/zones.d.ts +1278 -0
  438. package/lib/services/zones.d.ts.map +1 -0
  439. package/lib/services/zones.js +2416 -0
  440. package/lib/services/zones.js.map +1 -0
  441. package/lib/traits.d.ts +28 -0
  442. package/lib/traits.d.ts.map +1 -0
  443. package/lib/traits.js +26 -0
  444. package/lib/traits.js.map +1 -0
  445. package/package.json +67 -5
  446. package/src/auth.ts +14 -0
  447. package/src/category.ts +1 -0
  448. package/src/client/api.ts +269 -0
  449. package/src/client/index.ts +7 -0
  450. package/src/credentials.ts +30 -0
  451. package/src/errors.ts +65 -0
  452. package/src/index.ts +9 -0
  453. package/src/retry.ts +35 -0
  454. package/src/schemas.ts +51 -0
  455. package/src/services/abuse-reports.ts +747 -0
  456. package/src/services/accounts.ts +1947 -0
  457. package/src/services/acm.ts +170 -0
  458. package/src/services/addressing.ts +3947 -0
  459. package/src/services/ai-gateway.ts +3335 -0
  460. package/src/services/ai.ts +727 -0
  461. package/src/services/aisearch.ts +4750 -0
  462. package/src/services/alerting.ts +2947 -0
  463. package/src/services/api-gateway.ts +3391 -0
  464. package/src/services/argo.ts +254 -0
  465. package/src/services/audit-logs.ts +90 -0
  466. package/src/services/billing.ts +172 -0
  467. package/src/services/bot-management.ts +541 -0
  468. package/src/services/botnet-feed.ts +193 -0
  469. package/src/services/brand-protection.ts +553 -0
  470. package/src/services/browser-rendering.ts +2707 -0
  471. package/src/services/cache.ts +827 -0
  472. package/src/services/calls.ts +483 -0
  473. package/src/services/certificate-authorities.ts +110 -0
  474. package/src/services/client-certificates.ts +718 -0
  475. package/src/services/cloud-connector.ts +181 -0
  476. package/src/services/cloudforce-one.ts +3876 -0
  477. package/src/services/connectivity.ts +629 -0
  478. package/src/services/content-scanning.ts +385 -0
  479. package/src/services/custom-certificates.ts +611 -0
  480. package/src/services/custom-hostnames.ts +2453 -0
  481. package/src/services/custom-nameservers.ts +182 -0
  482. package/src/services/custom-pages.ts +264 -0
  483. package/src/services/d1.ts +1034 -0
  484. package/src/services/dcv-delegation.ts +52 -0
  485. package/src/services/diagnostics.ts +603 -0
  486. package/src/services/dns-firewall.ts +823 -0
  487. package/src/services/dns.ts +8897 -0
  488. package/src/services/durable-objects.ts +148 -0
  489. package/src/services/email-routing.ts +1602 -0
  490. package/src/services/email-security.ts +4283 -0
  491. package/src/services/filters.ts +370 -0
  492. package/src/services/firewall.ts +3896 -0
  493. package/src/services/healthchecks.ts +1750 -0
  494. package/src/services/hostnames.ts +218 -0
  495. package/src/services/hyperdrive.ts +592 -0
  496. package/src/services/iam.ts +1668 -0
  497. package/src/services/images.ts +1086 -0
  498. package/src/services/intel.ts +2768 -0
  499. package/src/services/ips.ts +88 -0
  500. package/src/services/keyless-certificates.ts +462 -0
  501. package/src/services/kv.ts +1011 -0
  502. package/src/services/leaked-credential-checks.ts +325 -0
  503. package/src/services/load-balancers.ts +6438 -0
  504. package/src/services/logpush.ts +1667 -0
  505. package/src/services/logs.ts +375 -0
  506. package/src/services/magic-cloud-networking.ts +10020 -0
  507. package/src/services/magic-network-monitoring.ts +1156 -0
  508. package/src/services/magic-transit.ts +13050 -0
  509. package/src/services/managed-transforms.ts +237 -0
  510. package/src/services/memberships.ts +615 -0
  511. package/src/services/mtls-certificates.ts +374 -0
  512. package/src/services/network-interconnects.ts +1253 -0
  513. package/src/services/organizations.ts +674 -0
  514. package/src/services/origin-ca-certificates.ts +303 -0
  515. package/src/services/origin-post-quantum-encryption.ts +128 -0
  516. package/src/services/origin-tls-client-auth.ts +878 -0
  517. package/src/services/page-rules.ts +2612 -0
  518. package/src/services/page-shield.ts +1195 -0
  519. package/src/services/pages.ts +5709 -0
  520. package/src/services/pipelines.ts +6000 -0
  521. package/src/services/queues.ts +2629 -0
  522. package/src/services/r2-data-catalog.ts +1119 -0
  523. package/src/services/r2.ts +3348 -0
  524. package/src/services/radar.ts +42152 -0
  525. package/src/services/rate-limits.ts +1150 -0
  526. package/src/services/realtime-kit.ts +11079 -0
  527. package/src/services/registrar.ts +295 -0
  528. package/src/services/request-tracers.ts +158 -0
  529. package/src/services/resource-sharing.ts +1832 -0
  530. package/src/services/rules.ts +837 -0
  531. package/src/services/rulesets.ts +15144 -0
  532. package/src/services/rum.ts +901 -0
  533. package/src/services/schema-validation.ts +733 -0
  534. package/src/services/secrets-store.ts +860 -0
  535. package/src/services/security-center.ts +397 -0
  536. package/src/services/security-txt.ts +315 -0
  537. package/src/services/snippets.ts +420 -0
  538. package/src/services/spectrum.ts +1103 -0
  539. package/src/services/speed.ts +1056 -0
  540. package/src/services/ssl.ts +1587 -0
  541. package/src/services/stream.ts +2756 -0
  542. package/src/services/token-validation.ts +1585 -0
  543. package/src/services/turnstile.ts +643 -0
  544. package/src/services/url-normalization.ts +129 -0
  545. package/src/services/url-scanner.ts +1851 -0
  546. package/src/services/user.ts +1384 -0
  547. package/src/services/vectorize.ts +816 -0
  548. package/src/services/waiting-rooms.ts +3807 -0
  549. package/src/services/web3.ts +834 -0
  550. package/src/services/workers-for-platforms.ts +3859 -0
  551. package/src/services/workers.ts +11637 -0
  552. package/src/services/workflows.ts +1124 -0
  553. package/src/services/zaraz.ts +797 -0
  554. package/src/services/zero-trust.ts +58933 -0
  555. package/src/services/zones.ts +4875 -0
  556. package/src/traits.ts +47 -0
  557. package/README.md +0 -15
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,1224 @@
1
+ /**
2
+ * Cloudflare WORKERS-FOR-PLATFORMS API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service workers-for-platforms
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
+ import * as API from "../client/api.ts";
10
+ import type { Credentials } from "../credentials";
11
+ import { type DefaultErrors } from "../errors";
12
+ export interface GetDispatchNamespaceRequest {
13
+ dispatchNamespace: string;
14
+ /** Identifier. */
15
+ accountId: string;
16
+ }
17
+ export declare const GetDispatchNamespaceRequest: Schema.Schema<GetDispatchNamespaceRequest>;
18
+ export interface GetDispatchNamespaceResponse {
19
+ /** Identifier. */
20
+ createdBy?: string | null;
21
+ /** When the script was created. */
22
+ createdOn?: string | null;
23
+ /** Identifier. */
24
+ modifiedBy?: string | null;
25
+ /** When the script was last modified. */
26
+ modifiedOn?: string | null;
27
+ /** API Resource UUID tag. */
28
+ namespaceId?: string | null;
29
+ /** Name of the Workers for Platforms dispatch namespace. */
30
+ namespaceName?: string | null;
31
+ /** The current number of scripts in this Dispatch Namespace. */
32
+ scriptCount?: number | null;
33
+ /** Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the `request.cf` */
34
+ trustedWorkers?: boolean | null;
35
+ }
36
+ export declare const GetDispatchNamespaceResponse: Schema.Schema<GetDispatchNamespaceResponse>;
37
+ export type GetDispatchNamespaceError = DefaultErrors;
38
+ export declare const getDispatchNamespace: API.OperationMethod<GetDispatchNamespaceRequest, GetDispatchNamespaceResponse, GetDispatchNamespaceError, Credentials | HttpClient.HttpClient>;
39
+ export interface ListDispatchNamespacesRequest {
40
+ /** Identifier. */
41
+ accountId: string;
42
+ }
43
+ export declare const ListDispatchNamespacesRequest: Schema.Schema<ListDispatchNamespacesRequest>;
44
+ export type ListDispatchNamespacesResponse = {
45
+ createdBy?: string | null;
46
+ createdOn?: string | null;
47
+ modifiedBy?: string | null;
48
+ modifiedOn?: string | null;
49
+ namespaceId?: string | null;
50
+ namespaceName?: string | null;
51
+ scriptCount?: number | null;
52
+ trustedWorkers?: boolean | null;
53
+ }[];
54
+ export declare const ListDispatchNamespacesResponse: Schema.Schema<ListDispatchNamespacesResponse>;
55
+ export type ListDispatchNamespacesError = DefaultErrors;
56
+ export declare const listDispatchNamespaces: API.OperationMethod<ListDispatchNamespacesRequest, ListDispatchNamespacesResponse, ListDispatchNamespacesError, Credentials | HttpClient.HttpClient>;
57
+ export interface CreateDispatchNamespaceRequest {
58
+ /** Path param: Identifier. */
59
+ accountId: string;
60
+ /** Body param: The name of the dispatch namespace. */
61
+ name?: string;
62
+ }
63
+ export declare const CreateDispatchNamespaceRequest: Schema.Schema<CreateDispatchNamespaceRequest>;
64
+ export interface CreateDispatchNamespaceResponse {
65
+ /** Identifier. */
66
+ createdBy?: string | null;
67
+ /** When the script was created. */
68
+ createdOn?: string | null;
69
+ /** Identifier. */
70
+ modifiedBy?: string | null;
71
+ /** When the script was last modified. */
72
+ modifiedOn?: string | null;
73
+ /** API Resource UUID tag. */
74
+ namespaceId?: string | null;
75
+ /** Name of the Workers for Platforms dispatch namespace. */
76
+ namespaceName?: string | null;
77
+ /** The current number of scripts in this Dispatch Namespace. */
78
+ scriptCount?: number | null;
79
+ /** Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the `request.cf` */
80
+ trustedWorkers?: boolean | null;
81
+ }
82
+ export declare const CreateDispatchNamespaceResponse: Schema.Schema<CreateDispatchNamespaceResponse>;
83
+ export type CreateDispatchNamespaceError = DefaultErrors;
84
+ export declare const createDispatchNamespace: API.OperationMethod<CreateDispatchNamespaceRequest, CreateDispatchNamespaceResponse, CreateDispatchNamespaceError, Credentials | HttpClient.HttpClient>;
85
+ export interface DeleteDispatchNamespaceRequest {
86
+ dispatchNamespace: string;
87
+ /** Identifier. */
88
+ accountId: string;
89
+ }
90
+ export declare const DeleteDispatchNamespaceRequest: Schema.Schema<DeleteDispatchNamespaceRequest>;
91
+ export type DeleteDispatchNamespaceResponse = unknown;
92
+ export declare const DeleteDispatchNamespaceResponse: Schema.Schema<unknown>;
93
+ export type DeleteDispatchNamespaceError = DefaultErrors;
94
+ export declare const deleteDispatchNamespace: API.OperationMethod<DeleteDispatchNamespaceRequest, DeleteDispatchNamespaceResponse, DeleteDispatchNamespaceError, Credentials | HttpClient.HttpClient>;
95
+ export interface GetDispatchNamespaceScriptRequest {
96
+ dispatchNamespace: string;
97
+ scriptName: string;
98
+ /** Identifier. */
99
+ accountId: string;
100
+ }
101
+ export declare const GetDispatchNamespaceScriptRequest: Schema.Schema<GetDispatchNamespaceScriptRequest>;
102
+ export interface GetDispatchNamespaceScriptResponse {
103
+ /** When the script was created. */
104
+ createdOn?: string | null;
105
+ /** Name of the Workers for Platforms dispatch namespace. */
106
+ dispatchNamespace?: string | null;
107
+ /** When the script was last modified. */
108
+ modifiedOn?: string | null;
109
+ script?: unknown | null;
110
+ }
111
+ export declare const GetDispatchNamespaceScriptResponse: Schema.Schema<GetDispatchNamespaceScriptResponse>;
112
+ export type GetDispatchNamespaceScriptError = DefaultErrors;
113
+ export declare const getDispatchNamespaceScript: API.OperationMethod<GetDispatchNamespaceScriptRequest, GetDispatchNamespaceScriptResponse, GetDispatchNamespaceScriptError, Credentials | HttpClient.HttpClient>;
114
+ export interface PutDispatchNamespaceScriptRequest {
115
+ dispatchNamespace: string;
116
+ scriptName: string;
117
+ /** Path param: Identifier. */
118
+ accountId: string;
119
+ /** Body param: JSON-encoded metadata about the uploaded parts and Worker configuration. */
120
+ metadata: {
121
+ assets?: {
122
+ config?: {
123
+ headers?: string;
124
+ redirects?: string;
125
+ htmlHandling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none";
126
+ notFoundHandling?: "none" | "404-page" | "single-page-application";
127
+ runWorkerFirst?: string[] | boolean;
128
+ serveDirectly?: boolean;
129
+ };
130
+ jwt?: string;
131
+ };
132
+ bindings?: ({
133
+ name: string;
134
+ type: "ai";
135
+ } | {
136
+ dataset: string;
137
+ name: string;
138
+ type: "analytics_engine";
139
+ } | {
140
+ name: string;
141
+ type: "assets";
142
+ } | {
143
+ name: string;
144
+ type: "browser";
145
+ } | {
146
+ id: string;
147
+ name: string;
148
+ type: "d1";
149
+ } | {
150
+ name: string;
151
+ part: string;
152
+ type: "data_blob";
153
+ } | {
154
+ name: string;
155
+ namespace: string;
156
+ type: "dispatch_namespace";
157
+ outbound?: {
158
+ params?: string[];
159
+ worker?: {
160
+ environment?: string;
161
+ service?: string;
162
+ };
163
+ };
164
+ } | {
165
+ name: string;
166
+ type: "durable_object_namespace";
167
+ className?: string;
168
+ environment?: string;
169
+ namespaceId?: string;
170
+ scriptName?: string;
171
+ } | {
172
+ id: string;
173
+ name: string;
174
+ type: "hyperdrive";
175
+ } | {
176
+ name: string;
177
+ type: "inherit";
178
+ oldName?: string;
179
+ versionId?: string;
180
+ } | {
181
+ name: string;
182
+ type: "images";
183
+ } | {
184
+ json: string;
185
+ name: string;
186
+ type: "json";
187
+ } | {
188
+ name: string;
189
+ namespaceId: string;
190
+ type: "kv_namespace";
191
+ } | {
192
+ certificateId: string;
193
+ name: string;
194
+ type: "mtls_certificate";
195
+ } | {
196
+ name: string;
197
+ text: string;
198
+ type: "plain_text";
199
+ } | {
200
+ name: string;
201
+ pipeline: string;
202
+ type: "pipelines";
203
+ } | {
204
+ name: string;
205
+ queueName: string;
206
+ type: "queue";
207
+ } | {
208
+ bucketName: string;
209
+ name: string;
210
+ type: "r2_bucket";
211
+ jurisdiction?: "eu" | "fedramp";
212
+ } | {
213
+ name: string;
214
+ text: string;
215
+ type: "secret_text";
216
+ } | {
217
+ name: string;
218
+ type: "send_email";
219
+ allowedDestinationAddresses?: string[];
220
+ allowedSenderAddresses?: string[];
221
+ destinationAddress?: string;
222
+ } | {
223
+ name: string;
224
+ service: string;
225
+ type: "service";
226
+ environment?: string;
227
+ } | {
228
+ name: string;
229
+ part: string;
230
+ type: "text_blob";
231
+ } | {
232
+ indexName: string;
233
+ name: string;
234
+ type: "vectorize";
235
+ } | {
236
+ name: string;
237
+ type: "version_metadata";
238
+ } | {
239
+ name: string;
240
+ secretName: string;
241
+ storeId: string;
242
+ type: "secrets_store_secret";
243
+ } | {
244
+ algorithm: unknown;
245
+ format: "raw" | "pkcs8" | "spki" | "jwk";
246
+ name: string;
247
+ type: "secret_key";
248
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
249
+ keyBase64?: string;
250
+ keyJwk?: unknown;
251
+ } | {
252
+ name: string;
253
+ type: "workflow";
254
+ workflowName: string;
255
+ className?: string;
256
+ scriptName?: string;
257
+ } | {
258
+ name: string;
259
+ part: string;
260
+ type: "wasm_module";
261
+ })[];
262
+ bodyPart?: string;
263
+ compatibilityDate?: string;
264
+ compatibilityFlags?: string[];
265
+ keepAssets?: boolean;
266
+ keepBindings?: string[];
267
+ limits?: {
268
+ cpuMs?: number;
269
+ };
270
+ logpush?: boolean;
271
+ mainModule?: string;
272
+ migrations?: unknown | {
273
+ newTag?: string;
274
+ oldTag?: string;
275
+ steps?: unknown[];
276
+ };
277
+ observability?: {
278
+ enabled: boolean;
279
+ headSamplingRate?: number | null;
280
+ logs?: {
281
+ enabled: boolean;
282
+ invocationLogs: boolean;
283
+ destinations?: string[];
284
+ headSamplingRate?: number | null;
285
+ persist?: boolean;
286
+ } | null;
287
+ };
288
+ placement?: {
289
+ mode: "smart";
290
+ } | {
291
+ region: string;
292
+ } | {
293
+ hostname: string;
294
+ } | {
295
+ host: string;
296
+ };
297
+ tags?: string[];
298
+ tailConsumers?: unknown[] | null;
299
+ usageModel?: "standard" | "bundled" | "unbound";
300
+ };
301
+ /** 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/ */
302
+ files?: (File | Blob)[];
303
+ }
304
+ export declare const PutDispatchNamespaceScriptRequest: Schema.Schema<PutDispatchNamespaceScriptRequest>;
305
+ export interface PutDispatchNamespaceScriptResponse {
306
+ startupTimeMs: number;
307
+ /** The name used to identify the script. */
308
+ id?: string | null;
309
+ /** Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. */
310
+ compatibilityDate?: string | null;
311
+ /** 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`. */
312
+ compatibilityFlags?: string[] | null;
313
+ /** When the script was created. */
314
+ createdOn?: string | null;
315
+ /** The entry point for the script. */
316
+ entryPoint?: string | null;
317
+ /** Hashed script content, can be used in a If-None-Match header when updating. */
318
+ etag?: string | null;
319
+ /** The names of handlers exported as part of the default export. */
320
+ handlers?: string[] | null;
321
+ /** Whether a Worker contains assets. */
322
+ hasAssets?: boolean | null;
323
+ /** Whether a Worker contains modules. */
324
+ hasModules?: boolean | null;
325
+ /** The client most recently used to deploy this Worker. */
326
+ lastDeployedFrom?: string | null;
327
+ /** Whether Logpush is turned on for the Worker. */
328
+ logpush?: boolean | null;
329
+ /** The tag of the Durable Object migration that was most recently applied for this Worker. */
330
+ migrationTag?: string | null;
331
+ /** When the script was last modified. */
332
+ modifiedOn?: string | null;
333
+ /** Named exports, such as Durable Object class implementations and named entrypoints. */
334
+ namedHandlers?: {
335
+ handlers?: string[] | null;
336
+ name?: string | null;
337
+ }[] | null;
338
+ /** Observability settings for the Worker. */
339
+ observability?: {
340
+ enabled: boolean;
341
+ headSamplingRate?: number | null;
342
+ logs?: {
343
+ enabled: boolean;
344
+ invocationLogs: boolean;
345
+ destinations?: string[] | null;
346
+ headSamplingRate?: number | null;
347
+ persist?: boolean | null;
348
+ } | null;
349
+ } | null;
350
+ /** 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 */
351
+ placement?: {
352
+ mode: "smart";
353
+ lastAnalyzedAt?: string | null;
354
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
355
+ } | {
356
+ region: string;
357
+ lastAnalyzedAt?: string | null;
358
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
359
+ } | {
360
+ hostname: string;
361
+ lastAnalyzedAt?: string | null;
362
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
363
+ } | {
364
+ host: string;
365
+ lastAnalyzedAt?: string | null;
366
+ status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
367
+ } | null;
368
+ /** @deprecated */
369
+ placementMode?: "smart" | null;
370
+ /** @deprecated */
371
+ placementStatus?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS" | null;
372
+ /** The immutable ID of the script. */
373
+ tag?: string | null;
374
+ /** Tags associated with the Worker. */
375
+ tags?: string[] | null;
376
+ /** List of Workers that will consume logs from the attached Worker. */
377
+ tailConsumers?: unknown[] | null;
378
+ /** Usage model for the Worker invocations. */
379
+ usageModel?: "standard" | "bundled" | "unbound" | null;
380
+ }
381
+ export declare const PutDispatchNamespaceScriptResponse: Schema.Schema<PutDispatchNamespaceScriptResponse>;
382
+ export type PutDispatchNamespaceScriptError = DefaultErrors;
383
+ export declare const putDispatchNamespaceScript: API.OperationMethod<PutDispatchNamespaceScriptRequest, PutDispatchNamespaceScriptResponse, PutDispatchNamespaceScriptError, Credentials | HttpClient.HttpClient>;
384
+ export interface DeleteDispatchNamespaceScriptRequest {
385
+ dispatchNamespace: string;
386
+ scriptName: string;
387
+ /** Path param: Identifier. */
388
+ accountId: string;
389
+ /** 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 */
390
+ force?: boolean;
391
+ }
392
+ export declare const DeleteDispatchNamespaceScriptRequest: Schema.Schema<DeleteDispatchNamespaceScriptRequest>;
393
+ export type DeleteDispatchNamespaceScriptResponse = unknown;
394
+ export declare const DeleteDispatchNamespaceScriptResponse: Schema.Schema<unknown>;
395
+ export type DeleteDispatchNamespaceScriptError = DefaultErrors;
396
+ export declare const deleteDispatchNamespaceScript: API.OperationMethod<DeleteDispatchNamespaceScriptRequest, DeleteDispatchNamespaceScriptResponse, DeleteDispatchNamespaceScriptError, Credentials | HttpClient.HttpClient>;
397
+ export interface CreateDispatchNamespaceScriptAssetUploadRequest {
398
+ dispatchNamespace: string;
399
+ scriptName: string;
400
+ /** Path param: Identifier. */
401
+ accountId: string;
402
+ /** 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. */
403
+ manifest: Record<string, unknown>;
404
+ }
405
+ export declare const CreateDispatchNamespaceScriptAssetUploadRequest: Schema.Schema<CreateDispatchNamespaceScriptAssetUploadRequest>;
406
+ export interface CreateDispatchNamespaceScriptAssetUploadResponse {
407
+ /** The requests to make to upload assets. */
408
+ buckets?: string[][] | null;
409
+ /** A JWT to use as authentication for uploading assets. */
410
+ jwt?: string | null;
411
+ }
412
+ export declare const CreateDispatchNamespaceScriptAssetUploadResponse: Schema.Schema<CreateDispatchNamespaceScriptAssetUploadResponse>;
413
+ export type CreateDispatchNamespaceScriptAssetUploadError = DefaultErrors;
414
+ export declare const createDispatchNamespaceScriptAssetUpload: API.OperationMethod<CreateDispatchNamespaceScriptAssetUploadRequest, CreateDispatchNamespaceScriptAssetUploadResponse, CreateDispatchNamespaceScriptAssetUploadError, Credentials | HttpClient.HttpClient>;
415
+ export interface GetDispatchNamespaceScriptBindingRequest {
416
+ dispatchNamespace: string;
417
+ scriptName: string;
418
+ /** Identifier. */
419
+ accountId: string;
420
+ }
421
+ export declare const GetDispatchNamespaceScriptBindingRequest: Schema.Schema<GetDispatchNamespaceScriptBindingRequest>;
422
+ export type GetDispatchNamespaceScriptBindingResponse = ({
423
+ name: string;
424
+ type: "ai";
425
+ } | {
426
+ dataset: string;
427
+ name: string;
428
+ type: "analytics_engine";
429
+ } | {
430
+ name: string;
431
+ type: "assets";
432
+ } | {
433
+ name: string;
434
+ type: "browser";
435
+ } | {
436
+ id: string;
437
+ name: string;
438
+ type: "d1";
439
+ } | {
440
+ name: string;
441
+ part: string;
442
+ type: "data_blob";
443
+ } | {
444
+ name: string;
445
+ namespace: string;
446
+ type: "dispatch_namespace";
447
+ outbound?: {
448
+ params?: string[] | null;
449
+ worker?: {
450
+ environment?: string | null;
451
+ service?: string | null;
452
+ } | null;
453
+ } | null;
454
+ } | {
455
+ name: string;
456
+ type: "durable_object_namespace";
457
+ className?: string | null;
458
+ environment?: string | null;
459
+ namespaceId?: string | null;
460
+ scriptName?: string | null;
461
+ } | {
462
+ id: string;
463
+ name: string;
464
+ type: "hyperdrive";
465
+ } | {
466
+ name: string;
467
+ type: "inherit";
468
+ oldName?: string | null;
469
+ versionId?: string | null;
470
+ } | {
471
+ name: string;
472
+ type: "images";
473
+ } | {
474
+ json: string;
475
+ name: string;
476
+ type: "json";
477
+ } | {
478
+ name: string;
479
+ namespaceId: string;
480
+ type: "kv_namespace";
481
+ } | {
482
+ certificateId: string;
483
+ name: string;
484
+ type: "mtls_certificate";
485
+ } | {
486
+ name: string;
487
+ text: string;
488
+ type: "plain_text";
489
+ } | {
490
+ name: string;
491
+ pipeline: string;
492
+ type: "pipelines";
493
+ } | {
494
+ name: string;
495
+ queueName: string;
496
+ type: "queue";
497
+ } | {
498
+ bucketName: string;
499
+ name: string;
500
+ type: "r2_bucket";
501
+ jurisdiction?: "eu" | "fedramp" | null;
502
+ } | {
503
+ name: string;
504
+ type: "secret_text";
505
+ } | {
506
+ name: string;
507
+ type: "send_email";
508
+ allowedDestinationAddresses?: string[] | null;
509
+ allowedSenderAddresses?: string[] | null;
510
+ destinationAddress?: string | null;
511
+ } | {
512
+ name: string;
513
+ service: string;
514
+ type: "service";
515
+ environment?: string | null;
516
+ } | {
517
+ name: string;
518
+ part: string;
519
+ type: "text_blob";
520
+ } | {
521
+ indexName: string;
522
+ name: string;
523
+ type: "vectorize";
524
+ } | {
525
+ name: string;
526
+ type: "version_metadata";
527
+ } | {
528
+ name: string;
529
+ secretName: string;
530
+ storeId: string;
531
+ type: "secrets_store_secret";
532
+ } | {
533
+ algorithm: unknown;
534
+ format: "raw" | "pkcs8" | "spki" | "jwk";
535
+ name: string;
536
+ type: "secret_key";
537
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
538
+ } | {
539
+ name: string;
540
+ type: "workflow";
541
+ workflowName: string;
542
+ className?: string | null;
543
+ scriptName?: string | null;
544
+ } | {
545
+ name: string;
546
+ part: string;
547
+ type: "wasm_module";
548
+ })[];
549
+ export declare const GetDispatchNamespaceScriptBindingResponse: Schema.Schema<GetDispatchNamespaceScriptBindingResponse>;
550
+ export type GetDispatchNamespaceScriptBindingError = DefaultErrors;
551
+ export declare const getDispatchNamespaceScriptBinding: API.OperationMethod<GetDispatchNamespaceScriptBindingRequest, GetDispatchNamespaceScriptBindingResponse, GetDispatchNamespaceScriptBindingError, Credentials | HttpClient.HttpClient>;
552
+ export interface GetDispatchNamespaceScriptContentRequest {
553
+ dispatchNamespace: string;
554
+ scriptName: string;
555
+ /** Identifier. */
556
+ accountId: string;
557
+ }
558
+ export declare const GetDispatchNamespaceScriptContentRequest: Schema.Schema<GetDispatchNamespaceScriptContentRequest>;
559
+ export type GetDispatchNamespaceScriptContentResponse = unknown;
560
+ export declare const GetDispatchNamespaceScriptContentResponse: Schema.Schema<unknown>;
561
+ export type GetDispatchNamespaceScriptContentError = DefaultErrors;
562
+ export declare const getDispatchNamespaceScriptContent: API.OperationMethod<GetDispatchNamespaceScriptContentRequest, GetDispatchNamespaceScriptContentResponse, GetDispatchNamespaceScriptContentError, Credentials | HttpClient.HttpClient>;
563
+ export interface PutDispatchNamespaceScriptContentRequest {
564
+ dispatchNamespace: string;
565
+ scriptName: string;
566
+ /** Path param: Identifier. */
567
+ accountId: string;
568
+ /** Header param: The multipart name of a script upload part containing script content in service worker format. Alternative to including in a metadata part. */
569
+ cfworkerbodypart?: string;
570
+ /** Header param: The multipart name of a script upload part containing script content in es module format. Alternative to including in a metadata part. */
571
+ cfworkermainmodulepart?: string;
572
+ /** Body param: JSON-encoded metadata about the uploaded parts and Worker configuration. */
573
+ metadata: unknown;
574
+ /** 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/ */
575
+ files?: (File | Blob)[];
576
+ }
577
+ export declare const PutDispatchNamespaceScriptContentRequest: Schema.Schema<PutDispatchNamespaceScriptContentRequest>;
578
+ export type PutDispatchNamespaceScriptContentResponse = unknown;
579
+ export declare const PutDispatchNamespaceScriptContentResponse: Schema.Schema<unknown>;
580
+ export type PutDispatchNamespaceScriptContentError = DefaultErrors;
581
+ export declare const putDispatchNamespaceScriptContent: API.OperationMethod<PutDispatchNamespaceScriptContentRequest, PutDispatchNamespaceScriptContentResponse, PutDispatchNamespaceScriptContentError, Credentials | HttpClient.HttpClient>;
582
+ export interface GetDispatchNamespaceScriptSecretRequest {
583
+ dispatchNamespace: string;
584
+ scriptName: string;
585
+ secretName: string;
586
+ /** Path param: Identifier. */
587
+ accountId: string;
588
+ /** Query param: Flag that indicates whether the secret name is URL encoded. */
589
+ urlEncoded?: boolean;
590
+ }
591
+ export declare const GetDispatchNamespaceScriptSecretRequest: Schema.Schema<GetDispatchNamespaceScriptSecretRequest>;
592
+ export type GetDispatchNamespaceScriptSecretResponse = {
593
+ name: string;
594
+ type: "secret_text";
595
+ } | {
596
+ algorithm: unknown;
597
+ format: "raw" | "pkcs8" | "spki" | "jwk";
598
+ name: string;
599
+ type: "secret_key";
600
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
601
+ };
602
+ export declare const GetDispatchNamespaceScriptSecretResponse: Schema.Schema<GetDispatchNamespaceScriptSecretResponse>;
603
+ export type GetDispatchNamespaceScriptSecretError = DefaultErrors;
604
+ export declare const getDispatchNamespaceScriptSecret: API.OperationMethod<GetDispatchNamespaceScriptSecretRequest, GetDispatchNamespaceScriptSecretResponse, GetDispatchNamespaceScriptSecretError, Credentials | HttpClient.HttpClient>;
605
+ export interface ListDispatchNamespaceScriptSecretsRequest {
606
+ dispatchNamespace: string;
607
+ scriptName: string;
608
+ /** Identifier. */
609
+ accountId: string;
610
+ }
611
+ export declare const ListDispatchNamespaceScriptSecretsRequest: Schema.Schema<ListDispatchNamespaceScriptSecretsRequest>;
612
+ export type ListDispatchNamespaceScriptSecretsResponse = ({
613
+ name: string;
614
+ type: "secret_text";
615
+ } | {
616
+ algorithm: unknown;
617
+ format: "raw" | "pkcs8" | "spki" | "jwk";
618
+ name: string;
619
+ type: "secret_key";
620
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
621
+ })[];
622
+ export declare const ListDispatchNamespaceScriptSecretsResponse: Schema.Schema<ListDispatchNamespaceScriptSecretsResponse>;
623
+ export type ListDispatchNamespaceScriptSecretsError = DefaultErrors;
624
+ export declare const listDispatchNamespaceScriptSecrets: API.OperationMethod<ListDispatchNamespaceScriptSecretsRequest, ListDispatchNamespaceScriptSecretsResponse, ListDispatchNamespaceScriptSecretsError, Credentials | HttpClient.HttpClient>;
625
+ export interface PutDispatchNamespaceScriptSecretRequest {
626
+ dispatchNamespace: string;
627
+ scriptName: string;
628
+ /** Path param: Identifier. */
629
+ accountId: string;
630
+ /** Body param: A JavaScript variable name for the binding. */
631
+ name: string;
632
+ /** Body param: The secret value to use. */
633
+ text: string;
634
+ /** Body param: The kind of resource that the binding provides. */
635
+ type: "secret_text";
636
+ }
637
+ export declare const PutDispatchNamespaceScriptSecretRequest: Schema.Schema<PutDispatchNamespaceScriptSecretRequest>;
638
+ export type PutDispatchNamespaceScriptSecretResponse = {
639
+ name: string;
640
+ type: "secret_text";
641
+ } | {
642
+ algorithm: unknown;
643
+ format: "raw" | "pkcs8" | "spki" | "jwk";
644
+ name: string;
645
+ type: "secret_key";
646
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
647
+ };
648
+ export declare const PutDispatchNamespaceScriptSecretResponse: Schema.Schema<PutDispatchNamespaceScriptSecretResponse>;
649
+ export type PutDispatchNamespaceScriptSecretError = DefaultErrors;
650
+ export declare const putDispatchNamespaceScriptSecret: API.OperationMethod<PutDispatchNamespaceScriptSecretRequest, PutDispatchNamespaceScriptSecretResponse, PutDispatchNamespaceScriptSecretError, Credentials | HttpClient.HttpClient>;
651
+ export interface DeleteDispatchNamespaceScriptSecretRequest {
652
+ dispatchNamespace: string;
653
+ scriptName: string;
654
+ secretName: string;
655
+ /** Path param: Identifier. */
656
+ accountId: string;
657
+ /** Query param: Flag that indicates whether the secret name is URL encoded. */
658
+ urlEncoded?: boolean;
659
+ }
660
+ export declare const DeleteDispatchNamespaceScriptSecretRequest: Schema.Schema<DeleteDispatchNamespaceScriptSecretRequest>;
661
+ export type DeleteDispatchNamespaceScriptSecretResponse = unknown;
662
+ export declare const DeleteDispatchNamespaceScriptSecretResponse: Schema.Schema<unknown>;
663
+ export type DeleteDispatchNamespaceScriptSecretError = DefaultErrors;
664
+ export declare const deleteDispatchNamespaceScriptSecret: API.OperationMethod<DeleteDispatchNamespaceScriptSecretRequest, DeleteDispatchNamespaceScriptSecretResponse, DeleteDispatchNamespaceScriptSecretError, Credentials | HttpClient.HttpClient>;
665
+ export interface GetDispatchNamespaceScriptSettingRequest {
666
+ dispatchNamespace: string;
667
+ scriptName: string;
668
+ /** Identifier. */
669
+ accountId: string;
670
+ }
671
+ export declare const GetDispatchNamespaceScriptSettingRequest: Schema.Schema<GetDispatchNamespaceScriptSettingRequest>;
672
+ export interface GetDispatchNamespaceScriptSettingResponse {
673
+ /** 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. */
674
+ bindings?: ({
675
+ name: string;
676
+ type: "ai";
677
+ } | {
678
+ dataset: string;
679
+ name: string;
680
+ type: "analytics_engine";
681
+ } | {
682
+ name: string;
683
+ type: "assets";
684
+ } | {
685
+ name: string;
686
+ type: "browser";
687
+ } | {
688
+ id: string;
689
+ name: string;
690
+ type: "d1";
691
+ } | {
692
+ name: string;
693
+ part: string;
694
+ type: "data_blob";
695
+ } | {
696
+ name: string;
697
+ namespace: string;
698
+ type: "dispatch_namespace";
699
+ outbound?: {
700
+ params?: string[] | null;
701
+ worker?: {
702
+ environment?: string | null;
703
+ service?: string | null;
704
+ } | null;
705
+ } | null;
706
+ } | {
707
+ name: string;
708
+ type: "durable_object_namespace";
709
+ className?: string | null;
710
+ environment?: string | null;
711
+ namespaceId?: string | null;
712
+ scriptName?: string | null;
713
+ } | {
714
+ id: string;
715
+ name: string;
716
+ type: "hyperdrive";
717
+ } | {
718
+ name: string;
719
+ type: "inherit";
720
+ oldName?: string | null;
721
+ versionId?: string | null;
722
+ } | {
723
+ name: string;
724
+ type: "images";
725
+ } | {
726
+ json: string;
727
+ name: string;
728
+ type: "json";
729
+ } | {
730
+ name: string;
731
+ namespaceId: string;
732
+ type: "kv_namespace";
733
+ } | {
734
+ certificateId: string;
735
+ name: string;
736
+ type: "mtls_certificate";
737
+ } | {
738
+ name: string;
739
+ text: string;
740
+ type: "plain_text";
741
+ } | {
742
+ name: string;
743
+ pipeline: string;
744
+ type: "pipelines";
745
+ } | {
746
+ name: string;
747
+ queueName: string;
748
+ type: "queue";
749
+ } | {
750
+ bucketName: string;
751
+ name: string;
752
+ type: "r2_bucket";
753
+ jurisdiction?: "eu" | "fedramp" | null;
754
+ } | {
755
+ name: string;
756
+ type: "secret_text";
757
+ } | {
758
+ name: string;
759
+ type: "send_email";
760
+ allowedDestinationAddresses?: string[] | null;
761
+ allowedSenderAddresses?: string[] | null;
762
+ destinationAddress?: string | null;
763
+ } | {
764
+ name: string;
765
+ service: string;
766
+ type: "service";
767
+ environment?: string | null;
768
+ } | {
769
+ name: string;
770
+ part: string;
771
+ type: "text_blob";
772
+ } | {
773
+ indexName: string;
774
+ name: string;
775
+ type: "vectorize";
776
+ } | {
777
+ name: string;
778
+ type: "version_metadata";
779
+ } | {
780
+ name: string;
781
+ secretName: string;
782
+ storeId: string;
783
+ type: "secrets_store_secret";
784
+ } | {
785
+ algorithm: unknown;
786
+ format: "raw" | "pkcs8" | "spki" | "jwk";
787
+ name: string;
788
+ type: "secret_key";
789
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
790
+ } | {
791
+ name: string;
792
+ type: "workflow";
793
+ workflowName: string;
794
+ className?: string | null;
795
+ scriptName?: string | null;
796
+ } | {
797
+ name: string;
798
+ part: string;
799
+ type: "wasm_module";
800
+ })[] | null;
801
+ /** Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. */
802
+ compatibilityDate?: string | null;
803
+ /** 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`. */
804
+ compatibilityFlags?: string[] | null;
805
+ /** Limits to apply for this Worker. */
806
+ limits?: {
807
+ cpuMs?: number | null;
808
+ } | null;
809
+ /** Whether Logpush is turned on for the Worker. */
810
+ logpush?: boolean | null;
811
+ /** Observability settings for the Worker. */
812
+ observability?: {
813
+ enabled: boolean;
814
+ headSamplingRate?: number | null;
815
+ logs?: {
816
+ enabled: boolean;
817
+ invocationLogs: boolean;
818
+ destinations?: string[] | null;
819
+ headSamplingRate?: number | null;
820
+ persist?: boolean | null;
821
+ } | null;
822
+ } | null;
823
+ /** 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 */
824
+ placement?: {
825
+ mode: "smart";
826
+ } | {
827
+ region: string;
828
+ } | {
829
+ hostname: string;
830
+ } | {
831
+ host: string;
832
+ } | null;
833
+ /** Tags associated with the Worker. */
834
+ tags?: string[] | null;
835
+ /** List of Workers that will consume logs from the attached Worker. */
836
+ tailConsumers?: unknown[] | null;
837
+ /** Usage model for the Worker invocations. */
838
+ usageModel?: "standard" | "bundled" | "unbound" | null;
839
+ }
840
+ export declare const GetDispatchNamespaceScriptSettingResponse: Schema.Schema<GetDispatchNamespaceScriptSettingResponse>;
841
+ export type GetDispatchNamespaceScriptSettingError = DefaultErrors;
842
+ export declare const getDispatchNamespaceScriptSetting: API.OperationMethod<GetDispatchNamespaceScriptSettingRequest, GetDispatchNamespaceScriptSettingResponse, GetDispatchNamespaceScriptSettingError, Credentials | HttpClient.HttpClient>;
843
+ export interface PatchDispatchNamespaceScriptSettingRequest {
844
+ dispatchNamespace: string;
845
+ scriptName: string;
846
+ /** Path param: Identifier. */
847
+ accountId: string;
848
+ /** Body param: */
849
+ settings?: {
850
+ bindings?: ({
851
+ name: string;
852
+ type: "ai";
853
+ } | {
854
+ dataset: string;
855
+ name: string;
856
+ type: "analytics_engine";
857
+ } | {
858
+ name: string;
859
+ type: "assets";
860
+ } | {
861
+ name: string;
862
+ type: "browser";
863
+ } | {
864
+ id: string;
865
+ name: string;
866
+ type: "d1";
867
+ } | {
868
+ name: string;
869
+ part: string;
870
+ type: "data_blob";
871
+ } | {
872
+ name: string;
873
+ namespace: string;
874
+ type: "dispatch_namespace";
875
+ outbound?: {
876
+ params?: string[];
877
+ worker?: {
878
+ environment?: string;
879
+ service?: string;
880
+ };
881
+ };
882
+ } | {
883
+ name: string;
884
+ type: "durable_object_namespace";
885
+ className?: string;
886
+ environment?: string;
887
+ namespaceId?: string;
888
+ scriptName?: string;
889
+ } | {
890
+ id: string;
891
+ name: string;
892
+ type: "hyperdrive";
893
+ } | {
894
+ name: string;
895
+ type: "inherit";
896
+ oldName?: string;
897
+ versionId?: string;
898
+ } | {
899
+ name: string;
900
+ type: "images";
901
+ } | {
902
+ json: string;
903
+ name: string;
904
+ type: "json";
905
+ } | {
906
+ name: string;
907
+ namespaceId: string;
908
+ type: "kv_namespace";
909
+ } | {
910
+ certificateId: string;
911
+ name: string;
912
+ type: "mtls_certificate";
913
+ } | {
914
+ name: string;
915
+ text: string;
916
+ type: "plain_text";
917
+ } | {
918
+ name: string;
919
+ pipeline: string;
920
+ type: "pipelines";
921
+ } | {
922
+ name: string;
923
+ queueName: string;
924
+ type: "queue";
925
+ } | {
926
+ bucketName: string;
927
+ name: string;
928
+ type: "r2_bucket";
929
+ jurisdiction?: "eu" | "fedramp";
930
+ } | {
931
+ name: string;
932
+ text: string;
933
+ type: "secret_text";
934
+ } | {
935
+ name: string;
936
+ type: "send_email";
937
+ allowedDestinationAddresses?: string[];
938
+ allowedSenderAddresses?: string[];
939
+ destinationAddress?: string;
940
+ } | {
941
+ name: string;
942
+ service: string;
943
+ type: "service";
944
+ environment?: string;
945
+ } | {
946
+ name: string;
947
+ part: string;
948
+ type: "text_blob";
949
+ } | {
950
+ indexName: string;
951
+ name: string;
952
+ type: "vectorize";
953
+ } | {
954
+ name: string;
955
+ type: "version_metadata";
956
+ } | {
957
+ name: string;
958
+ secretName: string;
959
+ storeId: string;
960
+ type: "secrets_store_secret";
961
+ } | {
962
+ algorithm: unknown;
963
+ format: "raw" | "pkcs8" | "spki" | "jwk";
964
+ name: string;
965
+ type: "secret_key";
966
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
967
+ keyBase64?: string;
968
+ keyJwk?: unknown;
969
+ } | {
970
+ name: string;
971
+ type: "workflow";
972
+ workflowName: string;
973
+ className?: string;
974
+ scriptName?: string;
975
+ } | {
976
+ name: string;
977
+ part: string;
978
+ type: "wasm_module";
979
+ })[];
980
+ compatibilityDate?: string;
981
+ compatibilityFlags?: string[];
982
+ limits?: {
983
+ cpuMs?: number;
984
+ };
985
+ logpush?: boolean;
986
+ migrations?: unknown | {
987
+ newTag?: string;
988
+ oldTag?: string;
989
+ steps?: unknown[];
990
+ };
991
+ observability?: {
992
+ enabled: boolean;
993
+ headSamplingRate?: number | null;
994
+ logs?: {
995
+ enabled: boolean;
996
+ invocationLogs: boolean;
997
+ destinations?: string[];
998
+ headSamplingRate?: number | null;
999
+ persist?: boolean;
1000
+ } | null;
1001
+ };
1002
+ placement?: {
1003
+ mode: "smart";
1004
+ } | {
1005
+ region: string;
1006
+ } | {
1007
+ hostname: string;
1008
+ } | {
1009
+ host: string;
1010
+ };
1011
+ tags?: string[] | null;
1012
+ tailConsumers?: unknown[] | null;
1013
+ usageModel?: "standard" | "bundled" | "unbound";
1014
+ };
1015
+ }
1016
+ export declare const PatchDispatchNamespaceScriptSettingRequest: Schema.Schema<PatchDispatchNamespaceScriptSettingRequest>;
1017
+ export interface PatchDispatchNamespaceScriptSettingResponse {
1018
+ /** 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. */
1019
+ bindings?: ({
1020
+ name: string;
1021
+ type: "ai";
1022
+ } | {
1023
+ dataset: string;
1024
+ name: string;
1025
+ type: "analytics_engine";
1026
+ } | {
1027
+ name: string;
1028
+ type: "assets";
1029
+ } | {
1030
+ name: string;
1031
+ type: "browser";
1032
+ } | {
1033
+ id: string;
1034
+ name: string;
1035
+ type: "d1";
1036
+ } | {
1037
+ name: string;
1038
+ part: string;
1039
+ type: "data_blob";
1040
+ } | {
1041
+ name: string;
1042
+ namespace: string;
1043
+ type: "dispatch_namespace";
1044
+ outbound?: {
1045
+ params?: string[] | null;
1046
+ worker?: {
1047
+ environment?: string | null;
1048
+ service?: string | null;
1049
+ } | null;
1050
+ } | null;
1051
+ } | {
1052
+ name: string;
1053
+ type: "durable_object_namespace";
1054
+ className?: string | null;
1055
+ environment?: string | null;
1056
+ namespaceId?: string | null;
1057
+ scriptName?: string | null;
1058
+ } | {
1059
+ id: string;
1060
+ name: string;
1061
+ type: "hyperdrive";
1062
+ } | {
1063
+ name: string;
1064
+ type: "inherit";
1065
+ oldName?: string | null;
1066
+ versionId?: string | null;
1067
+ } | {
1068
+ name: string;
1069
+ type: "images";
1070
+ } | {
1071
+ json: string;
1072
+ name: string;
1073
+ type: "json";
1074
+ } | {
1075
+ name: string;
1076
+ namespaceId: string;
1077
+ type: "kv_namespace";
1078
+ } | {
1079
+ certificateId: string;
1080
+ name: string;
1081
+ type: "mtls_certificate";
1082
+ } | {
1083
+ name: string;
1084
+ text: string;
1085
+ type: "plain_text";
1086
+ } | {
1087
+ name: string;
1088
+ pipeline: string;
1089
+ type: "pipelines";
1090
+ } | {
1091
+ name: string;
1092
+ queueName: string;
1093
+ type: "queue";
1094
+ } | {
1095
+ bucketName: string;
1096
+ name: string;
1097
+ type: "r2_bucket";
1098
+ jurisdiction?: "eu" | "fedramp" | null;
1099
+ } | {
1100
+ name: string;
1101
+ type: "secret_text";
1102
+ } | {
1103
+ name: string;
1104
+ type: "send_email";
1105
+ allowedDestinationAddresses?: string[] | null;
1106
+ allowedSenderAddresses?: string[] | null;
1107
+ destinationAddress?: string | null;
1108
+ } | {
1109
+ name: string;
1110
+ service: string;
1111
+ type: "service";
1112
+ environment?: string | null;
1113
+ } | {
1114
+ name: string;
1115
+ part: string;
1116
+ type: "text_blob";
1117
+ } | {
1118
+ indexName: string;
1119
+ name: string;
1120
+ type: "vectorize";
1121
+ } | {
1122
+ name: string;
1123
+ type: "version_metadata";
1124
+ } | {
1125
+ name: string;
1126
+ secretName: string;
1127
+ storeId: string;
1128
+ type: "secrets_store_secret";
1129
+ } | {
1130
+ algorithm: unknown;
1131
+ format: "raw" | "pkcs8" | "spki" | "jwk";
1132
+ name: string;
1133
+ type: "secret_key";
1134
+ usages: ("encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey")[];
1135
+ } | {
1136
+ name: string;
1137
+ type: "workflow";
1138
+ workflowName: string;
1139
+ className?: string | null;
1140
+ scriptName?: string | null;
1141
+ } | {
1142
+ name: string;
1143
+ part: string;
1144
+ type: "wasm_module";
1145
+ })[] | null;
1146
+ /** Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. */
1147
+ compatibilityDate?: string | null;
1148
+ /** 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`. */
1149
+ compatibilityFlags?: string[] | null;
1150
+ /** Limits to apply for this Worker. */
1151
+ limits?: {
1152
+ cpuMs?: number | null;
1153
+ } | null;
1154
+ /** Whether Logpush is turned on for the Worker. */
1155
+ logpush?: boolean | null;
1156
+ /** Observability settings for the Worker. */
1157
+ observability?: {
1158
+ enabled: boolean;
1159
+ headSamplingRate?: number | null;
1160
+ logs?: {
1161
+ enabled: boolean;
1162
+ invocationLogs: boolean;
1163
+ destinations?: string[] | null;
1164
+ headSamplingRate?: number | null;
1165
+ persist?: boolean | null;
1166
+ } | null;
1167
+ } | null;
1168
+ /** 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 */
1169
+ placement?: {
1170
+ mode: "smart";
1171
+ } | {
1172
+ region: string;
1173
+ } | {
1174
+ hostname: string;
1175
+ } | {
1176
+ host: string;
1177
+ } | null;
1178
+ /** Tags associated with the Worker. */
1179
+ tags?: string[] | null;
1180
+ /** List of Workers that will consume logs from the attached Worker. */
1181
+ tailConsumers?: unknown[] | null;
1182
+ /** Usage model for the Worker invocations. */
1183
+ usageModel?: "standard" | "bundled" | "unbound" | null;
1184
+ }
1185
+ export declare const PatchDispatchNamespaceScriptSettingResponse: Schema.Schema<PatchDispatchNamespaceScriptSettingResponse>;
1186
+ export type PatchDispatchNamespaceScriptSettingError = DefaultErrors;
1187
+ export declare const patchDispatchNamespaceScriptSetting: API.OperationMethod<PatchDispatchNamespaceScriptSettingRequest, PatchDispatchNamespaceScriptSettingResponse, PatchDispatchNamespaceScriptSettingError, Credentials | HttpClient.HttpClient>;
1188
+ export interface ListDispatchNamespaceScriptTagsRequest {
1189
+ dispatchNamespace: string;
1190
+ scriptName: string;
1191
+ /** Identifier. */
1192
+ accountId: string;
1193
+ }
1194
+ export declare const ListDispatchNamespaceScriptTagsRequest: Schema.Schema<ListDispatchNamespaceScriptTagsRequest>;
1195
+ export type ListDispatchNamespaceScriptTagsResponse = string[];
1196
+ export declare const ListDispatchNamespaceScriptTagsResponse: Schema.Schema<ListDispatchNamespaceScriptTagsResponse>;
1197
+ export type ListDispatchNamespaceScriptTagsError = DefaultErrors;
1198
+ export declare const listDispatchNamespaceScriptTags: API.OperationMethod<ListDispatchNamespaceScriptTagsRequest, ListDispatchNamespaceScriptTagsResponse, ListDispatchNamespaceScriptTagsError, Credentials | HttpClient.HttpClient>;
1199
+ export interface PutDispatchNamespaceScriptTagRequest {
1200
+ dispatchNamespace: string;
1201
+ scriptName: string;
1202
+ /** Path param: Identifier. */
1203
+ accountId: string;
1204
+ /** Body param: Tags associated with the Worker. */
1205
+ body: string[] | null;
1206
+ }
1207
+ export declare const PutDispatchNamespaceScriptTagRequest: Schema.Schema<PutDispatchNamespaceScriptTagRequest>;
1208
+ export type PutDispatchNamespaceScriptTagResponse = string[];
1209
+ export declare const PutDispatchNamespaceScriptTagResponse: Schema.Schema<PutDispatchNamespaceScriptTagResponse>;
1210
+ export type PutDispatchNamespaceScriptTagError = DefaultErrors;
1211
+ export declare const putDispatchNamespaceScriptTag: API.OperationMethod<PutDispatchNamespaceScriptTagRequest, PutDispatchNamespaceScriptTagResponse, PutDispatchNamespaceScriptTagError, Credentials | HttpClient.HttpClient>;
1212
+ export interface DeleteDispatchNamespaceScriptTagRequest {
1213
+ dispatchNamespace: string;
1214
+ scriptName: string;
1215
+ tag: string;
1216
+ /** Identifier. */
1217
+ accountId: string;
1218
+ }
1219
+ export declare const DeleteDispatchNamespaceScriptTagRequest: Schema.Schema<DeleteDispatchNamespaceScriptTagRequest>;
1220
+ export type DeleteDispatchNamespaceScriptTagResponse = unknown;
1221
+ export declare const DeleteDispatchNamespaceScriptTagResponse: Schema.Schema<unknown>;
1222
+ export type DeleteDispatchNamespaceScriptTagError = DefaultErrors;
1223
+ export declare const deleteDispatchNamespaceScriptTag: API.OperationMethod<DeleteDispatchNamespaceScriptTagRequest, DeleteDispatchNamespaceScriptTagResponse, DeleteDispatchNamespaceScriptTagError, Credentials | HttpClient.HttpClient>;
1224
+ //# sourceMappingURL=workers-for-platforms.d.ts.map