@distilled.cloud/cloudflare 0.2.5-alpha2 → 0.3.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -5,6 +5,7 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service page-shield
6
6
  */
7
7
 
8
+ import * as stream from "effect/Stream";
8
9
  import * as Schema from "effect/Schema";
9
10
  import type * as HttpClient from "effect/unstable/http/HttpClient";
10
11
  import * as API from "../client/api.ts";
@@ -73,23 +74,27 @@ export const GetConnectionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
73
74
  urlReportedMalicious: Schema.optional(
74
75
  Schema.Union([Schema.Boolean, Schema.Null]),
75
76
  ),
76
- }).pipe(
77
- Schema.encodeKeys({
78
- id: "id",
79
- addedAt: "added_at",
80
- firstSeenAt: "first_seen_at",
81
- host: "host",
82
- lastSeenAt: "last_seen_at",
83
- url: "url",
84
- urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
85
- domainReportedMalicious: "domain_reported_malicious",
86
- firstPageUrl: "first_page_url",
87
- maliciousDomainCategories: "malicious_domain_categories",
88
- maliciousUrlCategories: "malicious_url_categories",
89
- pageUrls: "page_urls",
90
- urlReportedMalicious: "url_reported_malicious",
91
- }),
92
- ) as unknown as Schema.Schema<GetConnectionResponse>;
77
+ })
78
+ .pipe(
79
+ Schema.encodeKeys({
80
+ id: "id",
81
+ addedAt: "added_at",
82
+ firstSeenAt: "first_seen_at",
83
+ host: "host",
84
+ lastSeenAt: "last_seen_at",
85
+ url: "url",
86
+ urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
87
+ domainReportedMalicious: "domain_reported_malicious",
88
+ firstPageUrl: "first_page_url",
89
+ maliciousDomainCategories: "malicious_domain_categories",
90
+ maliciousUrlCategories: "malicious_url_categories",
91
+ pageUrls: "page_urls",
92
+ urlReportedMalicious: "url_reported_malicious",
93
+ }),
94
+ )
95
+ .pipe(
96
+ T.ResponsePath("result"),
97
+ ) as unknown as Schema.Schema<GetConnectionResponse>;
93
98
 
94
99
  export type GetConnectionError = DefaultErrors;
95
100
 
@@ -163,77 +168,115 @@ export const ListConnectionsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
163
168
  T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/connections" }),
164
169
  ) as unknown as Schema.Schema<ListConnectionsRequest>;
165
170
 
166
- export type ListConnectionsResponse = {
167
- id: string;
168
- addedAt: string;
169
- firstSeenAt: string;
170
- host: string;
171
- lastSeenAt: string;
172
- url: string;
173
- urlContainsCdnCgiPath: boolean;
174
- domainReportedMalicious?: boolean | null;
175
- firstPageUrl?: string | null;
176
- maliciousDomainCategories?: string[] | null;
177
- maliciousUrlCategories?: string[] | null;
178
- pageUrls?: string[] | null;
179
- urlReportedMalicious?: boolean | null;
180
- }[];
181
-
182
- export const ListConnectionsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
183
- Schema.Struct({
184
- id: Schema.String,
185
- addedAt: Schema.String,
186
- firstSeenAt: Schema.String,
187
- host: Schema.String,
188
- lastSeenAt: Schema.String,
189
- url: Schema.String,
190
- urlContainsCdnCgiPath: Schema.Boolean,
191
- domainReportedMalicious: Schema.optional(
192
- Schema.Union([Schema.Boolean, Schema.Null]),
193
- ),
194
- firstPageUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
195
- maliciousDomainCategories: Schema.optional(
196
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
197
- ),
198
- maliciousUrlCategories: Schema.optional(
199
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
200
- ),
201
- pageUrls: Schema.optional(
202
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
203
- ),
204
- urlReportedMalicious: Schema.optional(
205
- Schema.Union([Schema.Boolean, Schema.Null]),
171
+ export interface ListConnectionsResponse {
172
+ result: {
173
+ id: string;
174
+ addedAt: string;
175
+ firstSeenAt: string;
176
+ host: string;
177
+ lastSeenAt: string;
178
+ url: string;
179
+ urlContainsCdnCgiPath: boolean;
180
+ domainReportedMalicious?: boolean | null;
181
+ firstPageUrl?: string | null;
182
+ maliciousDomainCategories?: string[] | null;
183
+ maliciousUrlCategories?: string[] | null;
184
+ pageUrls?: string[] | null;
185
+ urlReportedMalicious?: boolean | null;
186
+ }[];
187
+ }
188
+
189
+ export const ListConnectionsResponse =
190
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
191
+ result: Schema.Array(
192
+ Schema.Struct({
193
+ id: Schema.String,
194
+ addedAt: Schema.String,
195
+ firstSeenAt: Schema.String,
196
+ host: Schema.String,
197
+ lastSeenAt: Schema.String,
198
+ url: Schema.String,
199
+ urlContainsCdnCgiPath: Schema.Boolean,
200
+ domainReportedMalicious: Schema.optional(
201
+ Schema.Union([Schema.Boolean, Schema.Null]),
202
+ ),
203
+ firstPageUrl: Schema.optional(
204
+ Schema.Union([Schema.String, Schema.Null]),
205
+ ),
206
+ maliciousDomainCategories: Schema.optional(
207
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
208
+ ),
209
+ maliciousUrlCategories: Schema.optional(
210
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
211
+ ),
212
+ pageUrls: Schema.optional(
213
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
214
+ ),
215
+ urlReportedMalicious: Schema.optional(
216
+ Schema.Union([Schema.Boolean, Schema.Null]),
217
+ ),
218
+ }).pipe(
219
+ Schema.encodeKeys({
220
+ id: "id",
221
+ addedAt: "added_at",
222
+ firstSeenAt: "first_seen_at",
223
+ host: "host",
224
+ lastSeenAt: "last_seen_at",
225
+ url: "url",
226
+ urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
227
+ domainReportedMalicious: "domain_reported_malicious",
228
+ firstPageUrl: "first_page_url",
229
+ maliciousDomainCategories: "malicious_domain_categories",
230
+ maliciousUrlCategories: "malicious_url_categories",
231
+ pageUrls: "page_urls",
232
+ urlReportedMalicious: "url_reported_malicious",
233
+ }),
234
+ ),
206
235
  ),
207
- }).pipe(
208
- Schema.encodeKeys({
209
- id: "id",
210
- addedAt: "added_at",
211
- firstSeenAt: "first_seen_at",
212
- host: "host",
213
- lastSeenAt: "last_seen_at",
214
- url: "url",
215
- urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
216
- domainReportedMalicious: "domain_reported_malicious",
217
- firstPageUrl: "first_page_url",
218
- maliciousDomainCategories: "malicious_domain_categories",
219
- maliciousUrlCategories: "malicious_url_categories",
220
- pageUrls: "page_urls",
221
- urlReportedMalicious: "url_reported_malicious",
222
- }),
223
- ),
224
- ) as unknown as Schema.Schema<ListConnectionsResponse>;
236
+ }) as unknown as Schema.Schema<ListConnectionsResponse>;
225
237
 
226
238
  export type ListConnectionsError = DefaultErrors;
227
239
 
228
- export const listConnections: API.OperationMethod<
240
+ export const listConnections: API.PaginatedOperationMethod<
229
241
  ListConnectionsRequest,
230
242
  ListConnectionsResponse,
231
243
  ListConnectionsError,
232
244
  Credentials | HttpClient.HttpClient
233
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
245
+ > & {
246
+ pages: (
247
+ input: ListConnectionsRequest,
248
+ ) => stream.Stream<
249
+ ListConnectionsResponse,
250
+ ListConnectionsError,
251
+ Credentials | HttpClient.HttpClient
252
+ >;
253
+ items: (input: ListConnectionsRequest) => stream.Stream<
254
+ {
255
+ id: string;
256
+ addedAt: string;
257
+ firstSeenAt: string;
258
+ host: string;
259
+ lastSeenAt: string;
260
+ url: string;
261
+ urlContainsCdnCgiPath: boolean;
262
+ domainReportedMalicious?: boolean | null;
263
+ firstPageUrl?: string | null;
264
+ maliciousDomainCategories?: string[] | null;
265
+ maliciousUrlCategories?: string[] | null;
266
+ pageUrls?: string[] | null;
267
+ urlReportedMalicious?: boolean | null;
268
+ },
269
+ ListConnectionsError,
270
+ Credentials | HttpClient.HttpClient
271
+ >;
272
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
234
273
  input: ListConnectionsRequest,
235
274
  output: ListConnectionsResponse,
236
275
  errors: [],
276
+ pagination: {
277
+ mode: "single",
278
+ items: "result",
279
+ } as const,
237
280
  }));
238
281
 
239
282
  // =============================================================================
@@ -295,24 +338,26 @@ export const GetCookyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
295
338
  Schema.Union([Schema.Literals(["lax", "strict", "none"]), Schema.Null]),
296
339
  ),
297
340
  secureAttribute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
298
- }).pipe(
299
- Schema.encodeKeys({
300
- id: "id",
301
- firstSeenAt: "first_seen_at",
302
- host: "host",
303
- lastSeenAt: "last_seen_at",
304
- name: "name",
305
- type: "type",
306
- domainAttribute: "domain_attribute",
307
- expiresAttribute: "expires_attribute",
308
- httpOnlyAttribute: "http_only_attribute",
309
- maxAgeAttribute: "max_age_attribute",
310
- pageUrls: "page_urls",
311
- pathAttribute: "path_attribute",
312
- sameSiteAttribute: "same_site_attribute",
313
- secureAttribute: "secure_attribute",
314
- }),
315
- ) as unknown as Schema.Schema<GetCookyResponse>;
341
+ })
342
+ .pipe(
343
+ Schema.encodeKeys({
344
+ id: "id",
345
+ firstSeenAt: "first_seen_at",
346
+ host: "host",
347
+ lastSeenAt: "last_seen_at",
348
+ name: "name",
349
+ type: "type",
350
+ domainAttribute: "domain_attribute",
351
+ expiresAttribute: "expires_attribute",
352
+ httpOnlyAttribute: "http_only_attribute",
353
+ maxAgeAttribute: "max_age_attribute",
354
+ pageUrls: "page_urls",
355
+ pathAttribute: "path_attribute",
356
+ sameSiteAttribute: "same_site_attribute",
357
+ secureAttribute: "secure_attribute",
358
+ }),
359
+ )
360
+ .pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetCookyResponse>;
316
361
 
317
362
  export type GetCookyError = DefaultErrors;
318
363
 
@@ -388,84 +433,122 @@ export const ListCookiesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
388
433
  T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/cookies" }),
389
434
  ) as unknown as Schema.Schema<ListCookiesRequest>;
390
435
 
391
- export type ListCookiesResponse = {
392
- id: string;
393
- firstSeenAt: string;
394
- host: string;
395
- lastSeenAt: string;
396
- name: string;
397
- type: "first_party" | "unknown";
398
- domainAttribute?: string | null;
399
- expiresAttribute?: string | null;
400
- httpOnlyAttribute?: boolean | null;
401
- maxAgeAttribute?: number | null;
402
- pageUrls?: string[] | null;
403
- pathAttribute?: string | null;
404
- sameSiteAttribute?: "lax" | "strict" | "none" | null;
405
- secureAttribute?: boolean | null;
406
- }[];
407
-
408
- export const ListCookiesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
409
- Schema.Struct({
410
- id: Schema.String,
411
- firstSeenAt: Schema.String,
412
- host: Schema.String,
413
- lastSeenAt: Schema.String,
414
- name: Schema.String,
415
- type: Schema.Literals(["first_party", "unknown"]),
416
- domainAttribute: Schema.optional(
417
- Schema.Union([Schema.String, Schema.Null]),
418
- ),
419
- expiresAttribute: Schema.optional(
420
- Schema.Union([Schema.String, Schema.Null]),
421
- ),
422
- httpOnlyAttribute: Schema.optional(
423
- Schema.Union([Schema.Boolean, Schema.Null]),
424
- ),
425
- maxAgeAttribute: Schema.optional(
426
- Schema.Union([Schema.Number, Schema.Null]),
427
- ),
428
- pageUrls: Schema.optional(
429
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
430
- ),
431
- pathAttribute: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
432
- sameSiteAttribute: Schema.optional(
433
- Schema.Union([Schema.Literals(["lax", "strict", "none"]), Schema.Null]),
434
- ),
435
- secureAttribute: Schema.optional(
436
- Schema.Union([Schema.Boolean, Schema.Null]),
436
+ export interface ListCookiesResponse {
437
+ result: {
438
+ id: string;
439
+ firstSeenAt: string;
440
+ host: string;
441
+ lastSeenAt: string;
442
+ name: string;
443
+ type: "first_party" | "unknown";
444
+ domainAttribute?: string | null;
445
+ expiresAttribute?: string | null;
446
+ httpOnlyAttribute?: boolean | null;
447
+ maxAgeAttribute?: number | null;
448
+ pageUrls?: string[] | null;
449
+ pathAttribute?: string | null;
450
+ sameSiteAttribute?: "lax" | "strict" | "none" | null;
451
+ secureAttribute?: boolean | null;
452
+ }[];
453
+ }
454
+
455
+ export const ListCookiesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
456
+ result: Schema.Array(
457
+ Schema.Struct({
458
+ id: Schema.String,
459
+ firstSeenAt: Schema.String,
460
+ host: Schema.String,
461
+ lastSeenAt: Schema.String,
462
+ name: Schema.String,
463
+ type: Schema.Literals(["first_party", "unknown"]),
464
+ domainAttribute: Schema.optional(
465
+ Schema.Union([Schema.String, Schema.Null]),
466
+ ),
467
+ expiresAttribute: Schema.optional(
468
+ Schema.Union([Schema.String, Schema.Null]),
469
+ ),
470
+ httpOnlyAttribute: Schema.optional(
471
+ Schema.Union([Schema.Boolean, Schema.Null]),
472
+ ),
473
+ maxAgeAttribute: Schema.optional(
474
+ Schema.Union([Schema.Number, Schema.Null]),
475
+ ),
476
+ pageUrls: Schema.optional(
477
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
478
+ ),
479
+ pathAttribute: Schema.optional(
480
+ Schema.Union([Schema.String, Schema.Null]),
481
+ ),
482
+ sameSiteAttribute: Schema.optional(
483
+ Schema.Union([Schema.Literals(["lax", "strict", "none"]), Schema.Null]),
484
+ ),
485
+ secureAttribute: Schema.optional(
486
+ Schema.Union([Schema.Boolean, Schema.Null]),
487
+ ),
488
+ }).pipe(
489
+ Schema.encodeKeys({
490
+ id: "id",
491
+ firstSeenAt: "first_seen_at",
492
+ host: "host",
493
+ lastSeenAt: "last_seen_at",
494
+ name: "name",
495
+ type: "type",
496
+ domainAttribute: "domain_attribute",
497
+ expiresAttribute: "expires_attribute",
498
+ httpOnlyAttribute: "http_only_attribute",
499
+ maxAgeAttribute: "max_age_attribute",
500
+ pageUrls: "page_urls",
501
+ pathAttribute: "path_attribute",
502
+ sameSiteAttribute: "same_site_attribute",
503
+ secureAttribute: "secure_attribute",
504
+ }),
437
505
  ),
438
- }).pipe(
439
- Schema.encodeKeys({
440
- id: "id",
441
- firstSeenAt: "first_seen_at",
442
- host: "host",
443
- lastSeenAt: "last_seen_at",
444
- name: "name",
445
- type: "type",
446
- domainAttribute: "domain_attribute",
447
- expiresAttribute: "expires_attribute",
448
- httpOnlyAttribute: "http_only_attribute",
449
- maxAgeAttribute: "max_age_attribute",
450
- pageUrls: "page_urls",
451
- pathAttribute: "path_attribute",
452
- sameSiteAttribute: "same_site_attribute",
453
- secureAttribute: "secure_attribute",
454
- }),
455
506
  ),
456
- ) as unknown as Schema.Schema<ListCookiesResponse>;
507
+ }) as unknown as Schema.Schema<ListCookiesResponse>;
457
508
 
458
509
  export type ListCookiesError = DefaultErrors;
459
510
 
460
- export const listCookies: API.OperationMethod<
511
+ export const listCookies: API.PaginatedOperationMethod<
461
512
  ListCookiesRequest,
462
513
  ListCookiesResponse,
463
514
  ListCookiesError,
464
515
  Credentials | HttpClient.HttpClient
465
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
516
+ > & {
517
+ pages: (
518
+ input: ListCookiesRequest,
519
+ ) => stream.Stream<
520
+ ListCookiesResponse,
521
+ ListCookiesError,
522
+ Credentials | HttpClient.HttpClient
523
+ >;
524
+ items: (input: ListCookiesRequest) => stream.Stream<
525
+ {
526
+ id: string;
527
+ firstSeenAt: string;
528
+ host: string;
529
+ lastSeenAt: string;
530
+ name: string;
531
+ type: "first_party" | "unknown";
532
+ domainAttribute?: string | null;
533
+ expiresAttribute?: string | null;
534
+ httpOnlyAttribute?: boolean | null;
535
+ maxAgeAttribute?: number | null;
536
+ pageUrls?: string[] | null;
537
+ pathAttribute?: string | null;
538
+ sameSiteAttribute?: "lax" | "strict" | "none" | null;
539
+ secureAttribute?: boolean | null;
540
+ },
541
+ ListCookiesError,
542
+ Credentials | HttpClient.HttpClient
543
+ >;
544
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
466
545
  input: ListCookiesRequest,
467
546
  output: ListCookiesResponse,
468
547
  errors: [],
548
+ pagination: {
549
+ mode: "single",
550
+ items: "result",
551
+ } as const,
469
552
  }));
470
553
 
471
554
  // =============================================================================
@@ -499,14 +582,18 @@ export const GetPageShieldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
499
582
  updatedAt: Schema.String,
500
583
  useCloudflareReportingEndpoint: Schema.Boolean,
501
584
  useConnectionUrlPath: Schema.Boolean,
502
- }).pipe(
503
- Schema.encodeKeys({
504
- enabled: "enabled",
505
- updatedAt: "updated_at",
506
- useCloudflareReportingEndpoint: "use_cloudflare_reporting_endpoint",
507
- useConnectionUrlPath: "use_connection_url_path",
508
- }),
509
- ) as unknown as Schema.Schema<GetPageShieldResponse>;
585
+ })
586
+ .pipe(
587
+ Schema.encodeKeys({
588
+ enabled: "enabled",
589
+ updatedAt: "updated_at",
590
+ useCloudflareReportingEndpoint: "use_cloudflare_reporting_endpoint",
591
+ useConnectionUrlPath: "use_connection_url_path",
592
+ }),
593
+ )
594
+ .pipe(
595
+ T.ResponsePath("result"),
596
+ ) as unknown as Schema.Schema<GetPageShieldResponse>;
510
597
 
511
598
  export type GetPageShieldError = DefaultErrors;
512
599
 
@@ -562,14 +649,18 @@ export const PutPageShieldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
562
649
  updatedAt: Schema.String,
563
650
  useCloudflareReportingEndpoint: Schema.Boolean,
564
651
  useConnectionUrlPath: Schema.Boolean,
565
- }).pipe(
566
- Schema.encodeKeys({
567
- enabled: "enabled",
568
- updatedAt: "updated_at",
569
- useCloudflareReportingEndpoint: "use_cloudflare_reporting_endpoint",
570
- useConnectionUrlPath: "use_connection_url_path",
571
- }),
572
- ) as unknown as Schema.Schema<PutPageShieldResponse>;
652
+ })
653
+ .pipe(
654
+ Schema.encodeKeys({
655
+ enabled: "enabled",
656
+ updatedAt: "updated_at",
657
+ useCloudflareReportingEndpoint: "use_cloudflare_reporting_endpoint",
658
+ useConnectionUrlPath: "use_connection_url_path",
659
+ }),
660
+ )
661
+ .pipe(
662
+ T.ResponsePath("result"),
663
+ ) as unknown as Schema.Schema<PutPageShieldResponse>;
573
664
 
574
665
  export type PutPageShieldError = DefaultErrors;
575
666
 
@@ -626,7 +717,9 @@ export const GetPolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
626
717
  enabled: Schema.Boolean,
627
718
  expression: Schema.String,
628
719
  value: Schema.String,
629
- }) as unknown as Schema.Schema<GetPolicyResponse>;
720
+ }).pipe(
721
+ T.ResponsePath("result"),
722
+ ) as unknown as Schema.Schema<GetPolicyResponse>;
630
723
 
631
724
  export type GetPolicyError = DefaultErrors;
632
725
 
@@ -652,37 +745,65 @@ export const ListPoliciesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
652
745
  T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/policies" }),
653
746
  ) as unknown as Schema.Schema<ListPoliciesRequest>;
654
747
 
655
- export type ListPoliciesResponse = {
656
- id: string;
657
- action: "allow" | "log";
658
- description: string;
659
- enabled: boolean;
660
- expression: string;
661
- value: string;
662
- }[];
663
-
664
- export const ListPoliciesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
665
- Schema.Struct({
666
- id: Schema.String,
667
- action: Schema.Literals(["allow", "log"]),
668
- description: Schema.String,
669
- enabled: Schema.Boolean,
670
- expression: Schema.String,
671
- value: Schema.String,
672
- }),
673
- ) as unknown as Schema.Schema<ListPoliciesResponse>;
748
+ export interface ListPoliciesResponse {
749
+ result: {
750
+ id: string;
751
+ action: "allow" | "log";
752
+ description: string;
753
+ enabled: boolean;
754
+ expression: string;
755
+ value: string;
756
+ }[];
757
+ }
758
+
759
+ export const ListPoliciesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
760
+ result: Schema.Array(
761
+ Schema.Struct({
762
+ id: Schema.String,
763
+ action: Schema.Literals(["allow", "log"]),
764
+ description: Schema.String,
765
+ enabled: Schema.Boolean,
766
+ expression: Schema.String,
767
+ value: Schema.String,
768
+ }),
769
+ ),
770
+ }) as unknown as Schema.Schema<ListPoliciesResponse>;
674
771
 
675
772
  export type ListPoliciesError = DefaultErrors;
676
773
 
677
- export const listPolicies: API.OperationMethod<
774
+ export const listPolicies: API.PaginatedOperationMethod<
678
775
  ListPoliciesRequest,
679
776
  ListPoliciesResponse,
680
777
  ListPoliciesError,
681
778
  Credentials | HttpClient.HttpClient
682
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
779
+ > & {
780
+ pages: (
781
+ input: ListPoliciesRequest,
782
+ ) => stream.Stream<
783
+ ListPoliciesResponse,
784
+ ListPoliciesError,
785
+ Credentials | HttpClient.HttpClient
786
+ >;
787
+ items: (input: ListPoliciesRequest) => stream.Stream<
788
+ {
789
+ id: string;
790
+ action: "allow" | "log";
791
+ description: string;
792
+ enabled: boolean;
793
+ expression: string;
794
+ value: string;
795
+ },
796
+ ListPoliciesError,
797
+ Credentials | HttpClient.HttpClient
798
+ >;
799
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
683
800
  input: ListPoliciesRequest,
684
801
  output: ListPoliciesResponse,
685
802
  errors: [],
803
+ pagination: {
804
+ mode: "single",
805
+ items: "result",
806
+ } as const,
686
807
  }));
687
808
 
688
809
  export interface CreatePolicyRequest {
@@ -733,7 +854,9 @@ export const CreatePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
733
854
  enabled: Schema.Boolean,
734
855
  expression: Schema.String,
735
856
  value: Schema.String,
736
- }) as unknown as Schema.Schema<CreatePolicyResponse>;
857
+ }).pipe(
858
+ T.ResponsePath("result"),
859
+ ) as unknown as Schema.Schema<CreatePolicyResponse>;
737
860
 
738
861
  export type CreatePolicyError = DefaultErrors;
739
862
 
@@ -801,7 +924,9 @@ export const UpdatePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
801
924
  enabled: Schema.Boolean,
802
925
  expression: Schema.String,
803
926
  value: Schema.String,
804
- }) as unknown as Schema.Schema<UpdatePolicyResponse>;
927
+ }).pipe(
928
+ T.ResponsePath("result"),
929
+ ) as unknown as Schema.Schema<UpdatePolicyResponse>;
805
930
 
806
931
  export type UpdatePolicyError = DefaultErrors;
807
932
 
@@ -991,32 +1116,36 @@ export const GetScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
991
1116
  Schema.Null,
992
1117
  ]),
993
1118
  ),
994
- }).pipe(
995
- Schema.encodeKeys({
996
- id: "id",
997
- addedAt: "added_at",
998
- firstSeenAt: "first_seen_at",
999
- host: "host",
1000
- lastSeenAt: "last_seen_at",
1001
- url: "url",
1002
- urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
1003
- cryptominingScore: "cryptomining_score",
1004
- dataflowScore: "dataflow_score",
1005
- domainReportedMalicious: "domain_reported_malicious",
1006
- fetchedAt: "fetched_at",
1007
- firstPageUrl: "first_page_url",
1008
- hash: "hash",
1009
- jsIntegrityScore: "js_integrity_score",
1010
- magecartScore: "magecart_score",
1011
- maliciousDomainCategories: "malicious_domain_categories",
1012
- maliciousUrlCategories: "malicious_url_categories",
1013
- malwareScore: "malware_score",
1014
- obfuscationScore: "obfuscation_score",
1015
- pageUrls: "page_urls",
1016
- urlReportedMalicious: "url_reported_malicious",
1017
- versions: "versions",
1018
- }),
1019
- ) as unknown as Schema.Schema<GetScriptResponse>;
1119
+ })
1120
+ .pipe(
1121
+ Schema.encodeKeys({
1122
+ id: "id",
1123
+ addedAt: "added_at",
1124
+ firstSeenAt: "first_seen_at",
1125
+ host: "host",
1126
+ lastSeenAt: "last_seen_at",
1127
+ url: "url",
1128
+ urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
1129
+ cryptominingScore: "cryptomining_score",
1130
+ dataflowScore: "dataflow_score",
1131
+ domainReportedMalicious: "domain_reported_malicious",
1132
+ fetchedAt: "fetched_at",
1133
+ firstPageUrl: "first_page_url",
1134
+ hash: "hash",
1135
+ jsIntegrityScore: "js_integrity_score",
1136
+ magecartScore: "magecart_score",
1137
+ maliciousDomainCategories: "malicious_domain_categories",
1138
+ maliciousUrlCategories: "malicious_url_categories",
1139
+ malwareScore: "malware_score",
1140
+ obfuscationScore: "obfuscation_score",
1141
+ pageUrls: "page_urls",
1142
+ urlReportedMalicious: "url_reported_malicious",
1143
+ versions: "versions",
1144
+ }),
1145
+ )
1146
+ .pipe(
1147
+ T.ResponsePath("result"),
1148
+ ) as unknown as Schema.Schema<GetScriptResponse>;
1020
1149
 
1021
1150
  export type GetScriptError = DefaultErrors;
1022
1151
 
@@ -1091,105 +1220,152 @@ export const ListScriptsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1091
1220
  T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/scripts" }),
1092
1221
  ) as unknown as Schema.Schema<ListScriptsRequest>;
1093
1222
 
1094
- export type ListScriptsResponse = {
1095
- id: string;
1096
- addedAt: string;
1097
- firstSeenAt: string;
1098
- host: string;
1099
- lastSeenAt: string;
1100
- url: string;
1101
- urlContainsCdnCgiPath: boolean;
1102
- cryptominingScore?: number | null;
1103
- dataflowScore?: number | null;
1104
- domainReportedMalicious?: boolean | null;
1105
- fetchedAt?: string | null;
1106
- firstPageUrl?: string | null;
1107
- hash?: string | null;
1108
- jsIntegrityScore?: number | null;
1109
- magecartScore?: number | null;
1110
- maliciousDomainCategories?: string[] | null;
1111
- maliciousUrlCategories?: string[] | null;
1112
- malwareScore?: number | null;
1113
- obfuscationScore?: number | null;
1114
- pageUrls?: string[] | null;
1115
- urlReportedMalicious?: boolean | null;
1116
- }[];
1117
-
1118
- export const ListScriptsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1119
- Schema.Struct({
1120
- id: Schema.String,
1121
- addedAt: Schema.String,
1122
- firstSeenAt: Schema.String,
1123
- host: Schema.String,
1124
- lastSeenAt: Schema.String,
1125
- url: Schema.String,
1126
- urlContainsCdnCgiPath: Schema.Boolean,
1127
- cryptominingScore: Schema.optional(
1128
- Schema.Union([Schema.Number, Schema.Null]),
1129
- ),
1130
- dataflowScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1131
- domainReportedMalicious: Schema.optional(
1132
- Schema.Union([Schema.Boolean, Schema.Null]),
1133
- ),
1134
- fetchedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1135
- firstPageUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1136
- hash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1137
- jsIntegrityScore: Schema.optional(
1138
- Schema.Union([Schema.Number, Schema.Null]),
1139
- ),
1140
- magecartScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1141
- maliciousDomainCategories: Schema.optional(
1142
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1143
- ),
1144
- maliciousUrlCategories: Schema.optional(
1145
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1146
- ),
1147
- malwareScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1148
- obfuscationScore: Schema.optional(
1149
- Schema.Union([Schema.Number, Schema.Null]),
1150
- ),
1151
- pageUrls: Schema.optional(
1152
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1153
- ),
1154
- urlReportedMalicious: Schema.optional(
1155
- Schema.Union([Schema.Boolean, Schema.Null]),
1223
+ export interface ListScriptsResponse {
1224
+ result: {
1225
+ id: string;
1226
+ addedAt: string;
1227
+ firstSeenAt: string;
1228
+ host: string;
1229
+ lastSeenAt: string;
1230
+ url: string;
1231
+ urlContainsCdnCgiPath: boolean;
1232
+ cryptominingScore?: number | null;
1233
+ dataflowScore?: number | null;
1234
+ domainReportedMalicious?: boolean | null;
1235
+ fetchedAt?: string | null;
1236
+ firstPageUrl?: string | null;
1237
+ hash?: string | null;
1238
+ jsIntegrityScore?: number | null;
1239
+ magecartScore?: number | null;
1240
+ maliciousDomainCategories?: string[] | null;
1241
+ maliciousUrlCategories?: string[] | null;
1242
+ malwareScore?: number | null;
1243
+ obfuscationScore?: number | null;
1244
+ pageUrls?: string[] | null;
1245
+ urlReportedMalicious?: boolean | null;
1246
+ }[];
1247
+ }
1248
+
1249
+ export const ListScriptsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1250
+ result: Schema.Array(
1251
+ Schema.Struct({
1252
+ id: Schema.String,
1253
+ addedAt: Schema.String,
1254
+ firstSeenAt: Schema.String,
1255
+ host: Schema.String,
1256
+ lastSeenAt: Schema.String,
1257
+ url: Schema.String,
1258
+ urlContainsCdnCgiPath: Schema.Boolean,
1259
+ cryptominingScore: Schema.optional(
1260
+ Schema.Union([Schema.Number, Schema.Null]),
1261
+ ),
1262
+ dataflowScore: Schema.optional(
1263
+ Schema.Union([Schema.Number, Schema.Null]),
1264
+ ),
1265
+ domainReportedMalicious: Schema.optional(
1266
+ Schema.Union([Schema.Boolean, Schema.Null]),
1267
+ ),
1268
+ fetchedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1269
+ firstPageUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1270
+ hash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1271
+ jsIntegrityScore: Schema.optional(
1272
+ Schema.Union([Schema.Number, Schema.Null]),
1273
+ ),
1274
+ magecartScore: Schema.optional(
1275
+ Schema.Union([Schema.Number, Schema.Null]),
1276
+ ),
1277
+ maliciousDomainCategories: Schema.optional(
1278
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1279
+ ),
1280
+ maliciousUrlCategories: Schema.optional(
1281
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1282
+ ),
1283
+ malwareScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1284
+ obfuscationScore: Schema.optional(
1285
+ Schema.Union([Schema.Number, Schema.Null]),
1286
+ ),
1287
+ pageUrls: Schema.optional(
1288
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1289
+ ),
1290
+ urlReportedMalicious: Schema.optional(
1291
+ Schema.Union([Schema.Boolean, Schema.Null]),
1292
+ ),
1293
+ }).pipe(
1294
+ Schema.encodeKeys({
1295
+ id: "id",
1296
+ addedAt: "added_at",
1297
+ firstSeenAt: "first_seen_at",
1298
+ host: "host",
1299
+ lastSeenAt: "last_seen_at",
1300
+ url: "url",
1301
+ urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
1302
+ cryptominingScore: "cryptomining_score",
1303
+ dataflowScore: "dataflow_score",
1304
+ domainReportedMalicious: "domain_reported_malicious",
1305
+ fetchedAt: "fetched_at",
1306
+ firstPageUrl: "first_page_url",
1307
+ hash: "hash",
1308
+ jsIntegrityScore: "js_integrity_score",
1309
+ magecartScore: "magecart_score",
1310
+ maliciousDomainCategories: "malicious_domain_categories",
1311
+ maliciousUrlCategories: "malicious_url_categories",
1312
+ malwareScore: "malware_score",
1313
+ obfuscationScore: "obfuscation_score",
1314
+ pageUrls: "page_urls",
1315
+ urlReportedMalicious: "url_reported_malicious",
1316
+ }),
1156
1317
  ),
1157
- }).pipe(
1158
- Schema.encodeKeys({
1159
- id: "id",
1160
- addedAt: "added_at",
1161
- firstSeenAt: "first_seen_at",
1162
- host: "host",
1163
- lastSeenAt: "last_seen_at",
1164
- url: "url",
1165
- urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
1166
- cryptominingScore: "cryptomining_score",
1167
- dataflowScore: "dataflow_score",
1168
- domainReportedMalicious: "domain_reported_malicious",
1169
- fetchedAt: "fetched_at",
1170
- firstPageUrl: "first_page_url",
1171
- hash: "hash",
1172
- jsIntegrityScore: "js_integrity_score",
1173
- magecartScore: "magecart_score",
1174
- maliciousDomainCategories: "malicious_domain_categories",
1175
- maliciousUrlCategories: "malicious_url_categories",
1176
- malwareScore: "malware_score",
1177
- obfuscationScore: "obfuscation_score",
1178
- pageUrls: "page_urls",
1179
- urlReportedMalicious: "url_reported_malicious",
1180
- }),
1181
1318
  ),
1182
- ) as unknown as Schema.Schema<ListScriptsResponse>;
1319
+ }) as unknown as Schema.Schema<ListScriptsResponse>;
1183
1320
 
1184
1321
  export type ListScriptsError = DefaultErrors;
1185
1322
 
1186
- export const listScripts: API.OperationMethod<
1323
+ export const listScripts: API.PaginatedOperationMethod<
1187
1324
  ListScriptsRequest,
1188
1325
  ListScriptsResponse,
1189
1326
  ListScriptsError,
1190
1327
  Credentials | HttpClient.HttpClient
1191
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1328
+ > & {
1329
+ pages: (
1330
+ input: ListScriptsRequest,
1331
+ ) => stream.Stream<
1332
+ ListScriptsResponse,
1333
+ ListScriptsError,
1334
+ Credentials | HttpClient.HttpClient
1335
+ >;
1336
+ items: (input: ListScriptsRequest) => stream.Stream<
1337
+ {
1338
+ id: string;
1339
+ addedAt: string;
1340
+ firstSeenAt: string;
1341
+ host: string;
1342
+ lastSeenAt: string;
1343
+ url: string;
1344
+ urlContainsCdnCgiPath: boolean;
1345
+ cryptominingScore?: number | null;
1346
+ dataflowScore?: number | null;
1347
+ domainReportedMalicious?: boolean | null;
1348
+ fetchedAt?: string | null;
1349
+ firstPageUrl?: string | null;
1350
+ hash?: string | null;
1351
+ jsIntegrityScore?: number | null;
1352
+ magecartScore?: number | null;
1353
+ maliciousDomainCategories?: string[] | null;
1354
+ maliciousUrlCategories?: string[] | null;
1355
+ malwareScore?: number | null;
1356
+ obfuscationScore?: number | null;
1357
+ pageUrls?: string[] | null;
1358
+ urlReportedMalicious?: boolean | null;
1359
+ },
1360
+ ListScriptsError,
1361
+ Credentials | HttpClient.HttpClient
1362
+ >;
1363
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1192
1364
  input: ListScriptsRequest,
1193
1365
  output: ListScriptsResponse,
1194
1366
  errors: [],
1367
+ pagination: {
1368
+ mode: "single",
1369
+ items: "result",
1370
+ } as const,
1195
1371
  }));