@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 token-validation
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";
@@ -116,18 +117,22 @@ export const GetConfigurationResponse =
116
117
  title: Schema.String,
117
118
  tokenSources: Schema.Array(Schema.String),
118
119
  tokenType: Schema.Literal("JWT"),
119
- }).pipe(
120
- Schema.encodeKeys({
121
- id: "id",
122
- createdAt: "created_at",
123
- credentials: "credentials",
124
- description: "description",
125
- lastUpdated: "last_updated",
126
- title: "title",
127
- tokenSources: "token_sources",
128
- tokenType: "token_type",
129
- }),
130
- ) as unknown as Schema.Schema<GetConfigurationResponse>;
120
+ })
121
+ .pipe(
122
+ Schema.encodeKeys({
123
+ id: "id",
124
+ createdAt: "created_at",
125
+ credentials: "credentials",
126
+ description: "description",
127
+ lastUpdated: "last_updated",
128
+ title: "title",
129
+ tokenSources: "token_sources",
130
+ tokenType: "token_type",
131
+ }),
132
+ )
133
+ .pipe(
134
+ T.ResponsePath("result"),
135
+ ) as unknown as Schema.Schema<GetConfigurationResponse>;
131
136
 
132
137
  export type GetConfigurationError = DefaultErrors;
133
138
 
@@ -154,114 +159,194 @@ export const ListConfigurationsRequest =
154
159
  T.Http({ method: "GET", path: "/zones/{zone_id}/token_validation/config" }),
155
160
  ) as unknown as Schema.Schema<ListConfigurationsRequest>;
156
161
 
157
- export type ListConfigurationsResponse = {
158
- id: string;
159
- createdAt: string;
160
- credentials: {
161
- keys: (
162
- | {
163
- alg: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512";
164
- e: string;
165
- kid: string;
166
- kty: "RSA";
167
- n: string;
168
- }
169
- | {
170
- alg: "ES256";
171
- crv: "P-256";
172
- kid: string;
173
- kty: "EC";
174
- x: string;
175
- y: string;
176
- }
177
- | {
178
- alg: "ES384";
179
- crv: "P-384";
180
- kid: string;
181
- kty: "EC";
182
- x: string;
183
- y: string;
184
- }
185
- )[];
162
+ export interface ListConfigurationsResponse {
163
+ result: {
164
+ id: string;
165
+ createdAt: string;
166
+ credentials: {
167
+ keys: (
168
+ | {
169
+ alg: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512";
170
+ e: string;
171
+ kid: string;
172
+ kty: "RSA";
173
+ n: string;
174
+ }
175
+ | {
176
+ alg: "ES256";
177
+ crv: "P-256";
178
+ kid: string;
179
+ kty: "EC";
180
+ x: string;
181
+ y: string;
182
+ }
183
+ | {
184
+ alg: "ES384";
185
+ crv: "P-384";
186
+ kid: string;
187
+ kty: "EC";
188
+ x: string;
189
+ y: string;
190
+ }
191
+ )[];
192
+ };
193
+ description: string;
194
+ lastUpdated: string;
195
+ title: string;
196
+ tokenSources: string[];
197
+ tokenType: "JWT";
198
+ }[];
199
+ resultInfo: {
200
+ count?: number | null;
201
+ page?: number | null;
202
+ perPage?: number | null;
203
+ totalCount?: number | null;
186
204
  };
187
- description: string;
188
- lastUpdated: string;
189
- title: string;
190
- tokenSources: string[];
191
- tokenType: "JWT";
192
- }[];
205
+ }
193
206
 
194
207
  export const ListConfigurationsResponse =
195
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
196
- Schema.Struct({
197
- id: Schema.String,
198
- createdAt: Schema.String,
199
- credentials: Schema.Struct({
200
- keys: Schema.Array(
201
- Schema.Union([
202
- Schema.Struct({
203
- alg: Schema.Literals([
204
- "RS256",
205
- "RS384",
206
- "RS512",
207
- "PS256",
208
- "PS384",
209
- "PS512",
210
- ]),
211
- e: Schema.String,
212
- kid: Schema.String,
213
- kty: Schema.Literal("RSA"),
214
- n: Schema.String,
215
- }),
216
- Schema.Struct({
217
- alg: Schema.Literal("ES256"),
218
- crv: Schema.Literal("P-256"),
219
- kid: Schema.String,
220
- kty: Schema.Literal("EC"),
221
- x: Schema.String,
222
- y: Schema.String,
223
- }),
224
- Schema.Struct({
225
- alg: Schema.Literal("ES384"),
226
- crv: Schema.Literal("P-384"),
227
- kid: Schema.String,
228
- kty: Schema.Literal("EC"),
229
- x: Schema.String,
230
- y: Schema.String,
231
- }),
232
- ]),
233
- ),
234
- }),
235
- description: Schema.String,
236
- lastUpdated: Schema.String,
237
- title: Schema.String,
238
- tokenSources: Schema.Array(Schema.String),
239
- tokenType: Schema.Literal("JWT"),
208
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
209
+ result: Schema.Array(
210
+ Schema.Struct({
211
+ id: Schema.String,
212
+ createdAt: Schema.String,
213
+ credentials: Schema.Struct({
214
+ keys: Schema.Array(
215
+ Schema.Union([
216
+ Schema.Struct({
217
+ alg: Schema.Literals([
218
+ "RS256",
219
+ "RS384",
220
+ "RS512",
221
+ "PS256",
222
+ "PS384",
223
+ "PS512",
224
+ ]),
225
+ e: Schema.String,
226
+ kid: Schema.String,
227
+ kty: Schema.Literal("RSA"),
228
+ n: Schema.String,
229
+ }),
230
+ Schema.Struct({
231
+ alg: Schema.Literal("ES256"),
232
+ crv: Schema.Literal("P-256"),
233
+ kid: Schema.String,
234
+ kty: Schema.Literal("EC"),
235
+ x: Schema.String,
236
+ y: Schema.String,
237
+ }),
238
+ Schema.Struct({
239
+ alg: Schema.Literal("ES384"),
240
+ crv: Schema.Literal("P-384"),
241
+ kid: Schema.String,
242
+ kty: Schema.Literal("EC"),
243
+ x: Schema.String,
244
+ y: Schema.String,
245
+ }),
246
+ ]),
247
+ ),
248
+ }),
249
+ description: Schema.String,
250
+ lastUpdated: Schema.String,
251
+ title: Schema.String,
252
+ tokenSources: Schema.Array(Schema.String),
253
+ tokenType: Schema.Literal("JWT"),
254
+ }).pipe(
255
+ Schema.encodeKeys({
256
+ id: "id",
257
+ createdAt: "created_at",
258
+ credentials: "credentials",
259
+ description: "description",
260
+ lastUpdated: "last_updated",
261
+ title: "title",
262
+ tokenSources: "token_sources",
263
+ tokenType: "token_type",
264
+ }),
265
+ ),
266
+ ),
267
+ resultInfo: Schema.Struct({
268
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
269
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
270
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
271
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
240
272
  }).pipe(
241
273
  Schema.encodeKeys({
242
- id: "id",
243
- createdAt: "created_at",
244
- credentials: "credentials",
245
- description: "description",
246
- lastUpdated: "last_updated",
247
- title: "title",
248
- tokenSources: "token_sources",
249
- tokenType: "token_type",
274
+ count: "count",
275
+ page: "page",
276
+ perPage: "per_page",
277
+ totalCount: "total_count",
250
278
  }),
251
279
  ),
280
+ }).pipe(
281
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
252
282
  ) as unknown as Schema.Schema<ListConfigurationsResponse>;
253
283
 
254
284
  export type ListConfigurationsError = DefaultErrors;
255
285
 
256
- export const listConfigurations: API.OperationMethod<
286
+ export const listConfigurations: API.PaginatedOperationMethod<
257
287
  ListConfigurationsRequest,
258
288
  ListConfigurationsResponse,
259
289
  ListConfigurationsError,
260
290
  Credentials | HttpClient.HttpClient
261
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
291
+ > & {
292
+ pages: (
293
+ input: ListConfigurationsRequest,
294
+ ) => stream.Stream<
295
+ ListConfigurationsResponse,
296
+ ListConfigurationsError,
297
+ Credentials | HttpClient.HttpClient
298
+ >;
299
+ items: (input: ListConfigurationsRequest) => stream.Stream<
300
+ {
301
+ id: string;
302
+ createdAt: string;
303
+ credentials: {
304
+ keys: (
305
+ | {
306
+ alg: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512";
307
+ e: string;
308
+ kid: string;
309
+ kty: "RSA";
310
+ n: string;
311
+ }
312
+ | {
313
+ alg: "ES256";
314
+ crv: "P-256";
315
+ kid: string;
316
+ kty: "EC";
317
+ x: string;
318
+ y: string;
319
+ }
320
+ | {
321
+ alg: "ES384";
322
+ crv: "P-384";
323
+ kid: string;
324
+ kty: "EC";
325
+ x: string;
326
+ y: string;
327
+ }
328
+ )[];
329
+ };
330
+ description: string;
331
+ lastUpdated: string;
332
+ title: string;
333
+ tokenSources: string[];
334
+ tokenType: "JWT";
335
+ },
336
+ ListConfigurationsError,
337
+ Credentials | HttpClient.HttpClient
338
+ >;
339
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
262
340
  input: ListConfigurationsRequest,
263
341
  output: ListConfigurationsResponse,
264
342
  errors: [],
343
+ pagination: {
344
+ mode: "page",
345
+ inputToken: "page",
346
+ outputToken: "resultInfo.page",
347
+ items: "result",
348
+ pageSize: "perPage",
349
+ } as const,
265
350
  }));
266
351
 
267
352
  export interface CreateConfigurationRequest {
@@ -445,18 +530,22 @@ export const CreateConfigurationResponse =
445
530
  title: Schema.String,
446
531
  tokenSources: Schema.Array(Schema.String),
447
532
  tokenType: Schema.Literal("JWT"),
448
- }).pipe(
449
- Schema.encodeKeys({
450
- id: "id",
451
- createdAt: "created_at",
452
- credentials: "credentials",
453
- description: "description",
454
- lastUpdated: "last_updated",
455
- title: "title",
456
- tokenSources: "token_sources",
457
- tokenType: "token_type",
458
- }),
459
- ) as unknown as Schema.Schema<CreateConfigurationResponse>;
533
+ })
534
+ .pipe(
535
+ Schema.encodeKeys({
536
+ id: "id",
537
+ createdAt: "created_at",
538
+ credentials: "credentials",
539
+ description: "description",
540
+ lastUpdated: "last_updated",
541
+ title: "title",
542
+ tokenSources: "token_sources",
543
+ tokenType: "token_type",
544
+ }),
545
+ )
546
+ .pipe(
547
+ T.ResponsePath("result"),
548
+ ) as unknown as Schema.Schema<CreateConfigurationResponse>;
460
549
 
461
550
  export type CreateConfigurationError = DefaultErrors;
462
551
 
@@ -515,13 +604,17 @@ export const PatchConfigurationResponse =
515
604
  tokenSources: Schema.optional(
516
605
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
517
606
  ),
518
- }).pipe(
519
- Schema.encodeKeys({
520
- description: "description",
521
- title: "title",
522
- tokenSources: "token_sources",
523
- }),
524
- ) as unknown as Schema.Schema<PatchConfigurationResponse>;
607
+ })
608
+ .pipe(
609
+ Schema.encodeKeys({
610
+ description: "description",
611
+ title: "title",
612
+ tokenSources: "token_sources",
613
+ }),
614
+ )
615
+ .pipe(
616
+ T.ResponsePath("result"),
617
+ ) as unknown as Schema.Schema<PatchConfigurationResponse>;
525
618
 
526
619
  export type PatchConfigurationError = DefaultErrors;
527
620
 
@@ -561,7 +654,9 @@ export interface DeleteConfigurationResponse {
561
654
  export const DeleteConfigurationResponse =
562
655
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
563
656
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
564
- }) as unknown as Schema.Schema<DeleteConfigurationResponse>;
657
+ }).pipe(
658
+ T.ResponsePath("result"),
659
+ ) as unknown as Schema.Schema<DeleteConfigurationResponse>;
565
660
 
566
661
  export type DeleteConfigurationError = DefaultErrors;
567
662
 
@@ -820,19 +915,21 @@ export const GetRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
820
915
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
821
916
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
822
917
  lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
823
- }).pipe(
824
- Schema.encodeKeys({
825
- action: "action",
826
- description: "description",
827
- enabled: "enabled",
828
- expression: "expression",
829
- selector: "selector",
830
- title: "title",
831
- id: "id",
832
- createdAt: "created_at",
833
- lastUpdated: "last_updated",
834
- }),
835
- ) as unknown as Schema.Schema<GetRuleResponse>;
918
+ })
919
+ .pipe(
920
+ Schema.encodeKeys({
921
+ action: "action",
922
+ description: "description",
923
+ enabled: "enabled",
924
+ expression: "expression",
925
+ selector: "selector",
926
+ title: "title",
927
+ id: "id",
928
+ createdAt: "created_at",
929
+ lastUpdated: "last_updated",
930
+ }),
931
+ )
932
+ .pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetRuleResponse>;
836
933
 
837
934
  export type GetRuleError = DefaultErrors;
838
935
 
@@ -883,83 +980,141 @@ export const ListRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
883
980
  T.Http({ method: "GET", path: "/zones/{zone_id}/token_validation/rules" }),
884
981
  ) as unknown as Schema.Schema<ListRulesRequest>;
885
982
 
886
- export type ListRulesResponse = {
887
- action: "log" | "block";
888
- description: string;
889
- enabled: boolean;
890
- expression: string;
891
- selector: {
892
- exclude?: { operationIds?: string[] | null }[] | null;
893
- include?: { host?: string[] | null }[] | null;
983
+ export interface ListRulesResponse {
984
+ result: {
985
+ action: "log" | "block";
986
+ description: string;
987
+ enabled: boolean;
988
+ expression: string;
989
+ selector: {
990
+ exclude?: { operationIds?: string[] | null }[] | null;
991
+ include?: { host?: string[] | null }[] | null;
992
+ };
993
+ title: string;
994
+ id?: string | null;
995
+ createdAt?: string | null;
996
+ lastUpdated?: string | null;
997
+ }[];
998
+ resultInfo: {
999
+ count?: number | null;
1000
+ page?: number | null;
1001
+ perPage?: number | null;
1002
+ totalCount?: number | null;
894
1003
  };
895
- title: string;
896
- id?: string | null;
897
- createdAt?: string | null;
898
- lastUpdated?: string | null;
899
- }[];
1004
+ }
900
1005
 
901
- export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
902
- Schema.Struct({
903
- action: Schema.Literals(["log", "block"]),
904
- description: Schema.String,
905
- enabled: Schema.Boolean,
906
- expression: Schema.String,
907
- selector: Schema.Struct({
908
- exclude: Schema.optional(
909
- Schema.Union([
910
- Schema.Array(
911
- Schema.Struct({
912
- operationIds: Schema.optional(
913
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
914
- ),
915
- }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
916
- ),
917
- Schema.Null,
918
- ]),
919
- ),
920
- include: Schema.optional(
921
- Schema.Union([
922
- Schema.Array(
923
- Schema.Struct({
924
- host: Schema.optional(
925
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
926
- ),
927
- }),
928
- ),
929
- Schema.Null,
930
- ]),
931
- ),
932
- }),
933
- title: Schema.String,
934
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
935
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
936
- lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1006
+ export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1007
+ result: Schema.Array(
1008
+ Schema.Struct({
1009
+ action: Schema.Literals(["log", "block"]),
1010
+ description: Schema.String,
1011
+ enabled: Schema.Boolean,
1012
+ expression: Schema.String,
1013
+ selector: Schema.Struct({
1014
+ exclude: Schema.optional(
1015
+ Schema.Union([
1016
+ Schema.Array(
1017
+ Schema.Struct({
1018
+ operationIds: Schema.optional(
1019
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1020
+ ),
1021
+ }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
1022
+ ),
1023
+ Schema.Null,
1024
+ ]),
1025
+ ),
1026
+ include: Schema.optional(
1027
+ Schema.Union([
1028
+ Schema.Array(
1029
+ Schema.Struct({
1030
+ host: Schema.optional(
1031
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1032
+ ),
1033
+ }),
1034
+ ),
1035
+ Schema.Null,
1036
+ ]),
1037
+ ),
1038
+ }),
1039
+ title: Schema.String,
1040
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1041
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1042
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1043
+ }).pipe(
1044
+ Schema.encodeKeys({
1045
+ action: "action",
1046
+ description: "description",
1047
+ enabled: "enabled",
1048
+ expression: "expression",
1049
+ selector: "selector",
1050
+ title: "title",
1051
+ id: "id",
1052
+ createdAt: "created_at",
1053
+ lastUpdated: "last_updated",
1054
+ }),
1055
+ ),
1056
+ ),
1057
+ resultInfo: Schema.Struct({
1058
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1059
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1060
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1061
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
937
1062
  }).pipe(
938
1063
  Schema.encodeKeys({
939
- action: "action",
940
- description: "description",
941
- enabled: "enabled",
942
- expression: "expression",
943
- selector: "selector",
944
- title: "title",
945
- id: "id",
946
- createdAt: "created_at",
947
- lastUpdated: "last_updated",
1064
+ count: "count",
1065
+ page: "page",
1066
+ perPage: "per_page",
1067
+ totalCount: "total_count",
948
1068
  }),
949
1069
  ),
1070
+ }).pipe(
1071
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
950
1072
  ) as unknown as Schema.Schema<ListRulesResponse>;
951
1073
 
952
1074
  export type ListRulesError = DefaultErrors;
953
1075
 
954
- export const listRules: API.OperationMethod<
1076
+ export const listRules: API.PaginatedOperationMethod<
955
1077
  ListRulesRequest,
956
1078
  ListRulesResponse,
957
1079
  ListRulesError,
958
1080
  Credentials | HttpClient.HttpClient
959
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1081
+ > & {
1082
+ pages: (
1083
+ input: ListRulesRequest,
1084
+ ) => stream.Stream<
1085
+ ListRulesResponse,
1086
+ ListRulesError,
1087
+ Credentials | HttpClient.HttpClient
1088
+ >;
1089
+ items: (input: ListRulesRequest) => stream.Stream<
1090
+ {
1091
+ action: "log" | "block";
1092
+ description: string;
1093
+ enabled: boolean;
1094
+ expression: string;
1095
+ selector: {
1096
+ exclude?: { operationIds?: string[] | null }[] | null;
1097
+ include?: { host?: string[] | null }[] | null;
1098
+ };
1099
+ title: string;
1100
+ id?: string | null;
1101
+ createdAt?: string | null;
1102
+ lastUpdated?: string | null;
1103
+ },
1104
+ ListRulesError,
1105
+ Credentials | HttpClient.HttpClient
1106
+ >;
1107
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
960
1108
  input: ListRulesRequest,
961
1109
  output: ListRulesResponse,
962
1110
  errors: [],
1111
+ pagination: {
1112
+ mode: "page",
1113
+ inputToken: "page",
1114
+ outputToken: "resultInfo.page",
1115
+ items: "result",
1116
+ pageSize: "perPage",
1117
+ } as const,
963
1118
  }));
964
1119
 
965
1120
  export interface CreateRuleRequest {
@@ -1072,19 +1227,23 @@ export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1072
1227
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1073
1228
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1074
1229
  lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1075
- }).pipe(
1076
- Schema.encodeKeys({
1077
- action: "action",
1078
- description: "description",
1079
- enabled: "enabled",
1080
- expression: "expression",
1081
- selector: "selector",
1082
- title: "title",
1083
- id: "id",
1084
- createdAt: "created_at",
1085
- lastUpdated: "last_updated",
1086
- }),
1087
- ) as unknown as Schema.Schema<CreateRuleResponse>;
1230
+ })
1231
+ .pipe(
1232
+ Schema.encodeKeys({
1233
+ action: "action",
1234
+ description: "description",
1235
+ enabled: "enabled",
1236
+ expression: "expression",
1237
+ selector: "selector",
1238
+ title: "title",
1239
+ id: "id",
1240
+ createdAt: "created_at",
1241
+ lastUpdated: "last_updated",
1242
+ }),
1243
+ )
1244
+ .pipe(
1245
+ T.ResponsePath("result"),
1246
+ ) as unknown as Schema.Schema<CreateRuleResponse>;
1088
1247
 
1089
1248
  export type CreateRuleError = DefaultErrors;
1090
1249
 
@@ -1231,19 +1390,23 @@ export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1231
1390
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1232
1391
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1233
1392
  lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1234
- }).pipe(
1235
- Schema.encodeKeys({
1236
- action: "action",
1237
- description: "description",
1238
- enabled: "enabled",
1239
- expression: "expression",
1240
- selector: "selector",
1241
- title: "title",
1242
- id: "id",
1243
- createdAt: "created_at",
1244
- lastUpdated: "last_updated",
1245
- }),
1246
- ) as unknown as Schema.Schema<PatchRuleResponse>;
1393
+ })
1394
+ .pipe(
1395
+ Schema.encodeKeys({
1396
+ action: "action",
1397
+ description: "description",
1398
+ enabled: "enabled",
1399
+ expression: "expression",
1400
+ selector: "selector",
1401
+ title: "title",
1402
+ id: "id",
1403
+ createdAt: "created_at",
1404
+ lastUpdated: "last_updated",
1405
+ }),
1406
+ )
1407
+ .pipe(
1408
+ T.ResponsePath("result"),
1409
+ ) as unknown as Schema.Schema<PatchRuleResponse>;
1247
1410
 
1248
1411
  export type PatchRuleError = DefaultErrors;
1249
1412
 
@@ -1277,7 +1440,9 @@ export const DeleteRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1277
1440
  export type DeleteRuleResponse = unknown;
1278
1441
 
1279
1442
  export const DeleteRuleResponse =
1280
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DeleteRuleResponse>;
1443
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
1444
+ T.ResponsePath("result"),
1445
+ ) as unknown as Schema.Schema<DeleteRuleResponse>;
1281
1446
 
1282
1447
  export type DeleteRuleError = DefaultErrors;
1283
1448
 
@@ -1351,83 +1516,120 @@ export const BulkCreateRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1351
1516
  }),
1352
1517
  ) as unknown as Schema.Schema<BulkCreateRulesRequest>;
1353
1518
 
1354
- export type BulkCreateRulesResponse = {
1355
- action: "log" | "block";
1356
- description: string;
1357
- enabled: boolean;
1358
- expression: string;
1359
- selector: {
1360
- exclude?: { operationIds?: string[] | null }[] | null;
1361
- include?: { host?: string[] | null }[] | null;
1362
- };
1363
- title: string;
1364
- id?: string | null;
1365
- createdAt?: string | null;
1366
- lastUpdated?: string | null;
1367
- }[];
1519
+ export interface BulkCreateRulesResponse {
1520
+ result: {
1521
+ action: "log" | "block";
1522
+ description: string;
1523
+ enabled: boolean;
1524
+ expression: string;
1525
+ selector: {
1526
+ exclude?: { operationIds?: string[] | null }[] | null;
1527
+ include?: { host?: string[] | null }[] | null;
1528
+ };
1529
+ title: string;
1530
+ id?: string | null;
1531
+ createdAt?: string | null;
1532
+ lastUpdated?: string | null;
1533
+ }[];
1534
+ }
1368
1535
 
1369
- export const BulkCreateRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1370
- Schema.Struct({
1371
- action: Schema.Literals(["log", "block"]),
1372
- description: Schema.String,
1373
- enabled: Schema.Boolean,
1374
- expression: Schema.String,
1375
- selector: Schema.Struct({
1376
- exclude: Schema.optional(
1377
- Schema.Union([
1378
- Schema.Array(
1379
- Schema.Struct({
1380
- operationIds: Schema.optional(
1381
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1536
+ export const BulkCreateRulesResponse =
1537
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1538
+ result: Schema.Array(
1539
+ Schema.Struct({
1540
+ action: Schema.Literals(["log", "block"]),
1541
+ description: Schema.String,
1542
+ enabled: Schema.Boolean,
1543
+ expression: Schema.String,
1544
+ selector: Schema.Struct({
1545
+ exclude: Schema.optional(
1546
+ Schema.Union([
1547
+ Schema.Array(
1548
+ Schema.Struct({
1549
+ operationIds: Schema.optional(
1550
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1551
+ ),
1552
+ }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
1382
1553
  ),
1383
- }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
1554
+ Schema.Null,
1555
+ ]),
1384
1556
  ),
1385
- Schema.Null,
1386
- ]),
1387
- ),
1388
- include: Schema.optional(
1389
- Schema.Union([
1390
- Schema.Array(
1391
- Schema.Struct({
1392
- host: Schema.optional(
1393
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1557
+ include: Schema.optional(
1558
+ Schema.Union([
1559
+ Schema.Array(
1560
+ Schema.Struct({
1561
+ host: Schema.optional(
1562
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1563
+ ),
1564
+ }),
1394
1565
  ),
1395
- }),
1566
+ Schema.Null,
1567
+ ]),
1396
1568
  ),
1397
- Schema.Null,
1398
- ]),
1569
+ }),
1570
+ title: Schema.String,
1571
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1572
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1573
+ lastUpdated: Schema.optional(
1574
+ Schema.Union([Schema.String, Schema.Null]),
1575
+ ),
1576
+ }).pipe(
1577
+ Schema.encodeKeys({
1578
+ action: "action",
1579
+ description: "description",
1580
+ enabled: "enabled",
1581
+ expression: "expression",
1582
+ selector: "selector",
1583
+ title: "title",
1584
+ id: "id",
1585
+ createdAt: "created_at",
1586
+ lastUpdated: "last_updated",
1587
+ }),
1399
1588
  ),
1400
- }),
1401
- title: Schema.String,
1402
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1403
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1404
- lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1405
- }).pipe(
1406
- Schema.encodeKeys({
1407
- action: "action",
1408
- description: "description",
1409
- enabled: "enabled",
1410
- expression: "expression",
1411
- selector: "selector",
1412
- title: "title",
1413
- id: "id",
1414
- createdAt: "created_at",
1415
- lastUpdated: "last_updated",
1416
- }),
1417
- ),
1418
- ) as unknown as Schema.Schema<BulkCreateRulesResponse>;
1589
+ ),
1590
+ }) as unknown as Schema.Schema<BulkCreateRulesResponse>;
1419
1591
 
1420
1592
  export type BulkCreateRulesError = DefaultErrors;
1421
1593
 
1422
- export const bulkCreateRules: API.OperationMethod<
1594
+ export const bulkCreateRules: API.PaginatedOperationMethod<
1423
1595
  BulkCreateRulesRequest,
1424
1596
  BulkCreateRulesResponse,
1425
1597
  BulkCreateRulesError,
1426
1598
  Credentials | HttpClient.HttpClient
1427
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1599
+ > & {
1600
+ pages: (
1601
+ input: BulkCreateRulesRequest,
1602
+ ) => stream.Stream<
1603
+ BulkCreateRulesResponse,
1604
+ BulkCreateRulesError,
1605
+ Credentials | HttpClient.HttpClient
1606
+ >;
1607
+ items: (input: BulkCreateRulesRequest) => stream.Stream<
1608
+ {
1609
+ action: "log" | "block";
1610
+ description: string;
1611
+ enabled: boolean;
1612
+ expression: string;
1613
+ selector: {
1614
+ exclude?: { operationIds?: string[] | null }[] | null;
1615
+ include?: { host?: string[] | null }[] | null;
1616
+ };
1617
+ title: string;
1618
+ id?: string | null;
1619
+ createdAt?: string | null;
1620
+ lastUpdated?: string | null;
1621
+ },
1622
+ BulkCreateRulesError,
1623
+ Credentials | HttpClient.HttpClient
1624
+ >;
1625
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1428
1626
  input: BulkCreateRulesRequest,
1429
1627
  output: BulkCreateRulesResponse,
1430
1628
  errors: [],
1629
+ pagination: {
1630
+ mode: "single",
1631
+ items: "result",
1632
+ } as const,
1431
1633
  }));
1432
1634
 
1433
1635
  export interface BulkPatchRulesRequest {
@@ -1505,81 +1707,119 @@ export const BulkPatchRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1505
1707
  }),
1506
1708
  ) as unknown as Schema.Schema<BulkPatchRulesRequest>;
1507
1709
 
1508
- export type BulkPatchRulesResponse = {
1509
- action: "log" | "block";
1510
- description: string;
1511
- enabled: boolean;
1512
- expression: string;
1513
- selector: {
1514
- exclude?: { operationIds?: string[] | null }[] | null;
1515
- include?: { host?: string[] | null }[] | null;
1516
- };
1517
- title: string;
1518
- id?: string | null;
1519
- createdAt?: string | null;
1520
- lastUpdated?: string | null;
1521
- }[];
1710
+ export interface BulkPatchRulesResponse {
1711
+ result: {
1712
+ action: "log" | "block";
1713
+ description: string;
1714
+ enabled: boolean;
1715
+ expression: string;
1716
+ selector: {
1717
+ exclude?: { operationIds?: string[] | null }[] | null;
1718
+ include?: { host?: string[] | null }[] | null;
1719
+ };
1720
+ title: string;
1721
+ id?: string | null;
1722
+ createdAt?: string | null;
1723
+ lastUpdated?: string | null;
1724
+ }[];
1725
+ }
1522
1726
 
1523
- export const BulkPatchRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1524
- Schema.Struct({
1525
- action: Schema.Literals(["log", "block"]),
1526
- description: Schema.String,
1527
- enabled: Schema.Boolean,
1528
- expression: Schema.String,
1529
- selector: Schema.Struct({
1530
- exclude: Schema.optional(
1531
- Schema.Union([
1532
- Schema.Array(
1533
- Schema.Struct({
1534
- operationIds: Schema.optional(
1535
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1727
+ export const BulkPatchRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1728
+ {
1729
+ result: Schema.Array(
1730
+ Schema.Struct({
1731
+ action: Schema.Literals(["log", "block"]),
1732
+ description: Schema.String,
1733
+ enabled: Schema.Boolean,
1734
+ expression: Schema.String,
1735
+ selector: Schema.Struct({
1736
+ exclude: Schema.optional(
1737
+ Schema.Union([
1738
+ Schema.Array(
1739
+ Schema.Struct({
1740
+ operationIds: Schema.optional(
1741
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1742
+ ),
1743
+ }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
1536
1744
  ),
1537
- }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
1745
+ Schema.Null,
1746
+ ]),
1538
1747
  ),
1539
- Schema.Null,
1540
- ]),
1541
- ),
1542
- include: Schema.optional(
1543
- Schema.Union([
1544
- Schema.Array(
1545
- Schema.Struct({
1546
- host: Schema.optional(
1547
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1748
+ include: Schema.optional(
1749
+ Schema.Union([
1750
+ Schema.Array(
1751
+ Schema.Struct({
1752
+ host: Schema.optional(
1753
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1754
+ ),
1755
+ }),
1548
1756
  ),
1549
- }),
1757
+ Schema.Null,
1758
+ ]),
1550
1759
  ),
1551
- Schema.Null,
1552
- ]),
1760
+ }),
1761
+ title: Schema.String,
1762
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1763
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1764
+ lastUpdated: Schema.optional(
1765
+ Schema.Union([Schema.String, Schema.Null]),
1766
+ ),
1767
+ }).pipe(
1768
+ Schema.encodeKeys({
1769
+ action: "action",
1770
+ description: "description",
1771
+ enabled: "enabled",
1772
+ expression: "expression",
1773
+ selector: "selector",
1774
+ title: "title",
1775
+ id: "id",
1776
+ createdAt: "created_at",
1777
+ lastUpdated: "last_updated",
1778
+ }),
1553
1779
  ),
1554
- }),
1555
- title: Schema.String,
1556
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1557
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1558
- lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1559
- }).pipe(
1560
- Schema.encodeKeys({
1561
- action: "action",
1562
- description: "description",
1563
- enabled: "enabled",
1564
- expression: "expression",
1565
- selector: "selector",
1566
- title: "title",
1567
- id: "id",
1568
- createdAt: "created_at",
1569
- lastUpdated: "last_updated",
1570
- }),
1571
- ),
1780
+ ),
1781
+ },
1572
1782
  ) as unknown as Schema.Schema<BulkPatchRulesResponse>;
1573
1783
 
1574
1784
  export type BulkPatchRulesError = DefaultErrors;
1575
1785
 
1576
- export const bulkPatchRules: API.OperationMethod<
1786
+ export const bulkPatchRules: API.PaginatedOperationMethod<
1577
1787
  BulkPatchRulesRequest,
1578
1788
  BulkPatchRulesResponse,
1579
1789
  BulkPatchRulesError,
1580
1790
  Credentials | HttpClient.HttpClient
1581
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1791
+ > & {
1792
+ pages: (
1793
+ input: BulkPatchRulesRequest,
1794
+ ) => stream.Stream<
1795
+ BulkPatchRulesResponse,
1796
+ BulkPatchRulesError,
1797
+ Credentials | HttpClient.HttpClient
1798
+ >;
1799
+ items: (input: BulkPatchRulesRequest) => stream.Stream<
1800
+ {
1801
+ action: "log" | "block";
1802
+ description: string;
1803
+ enabled: boolean;
1804
+ expression: string;
1805
+ selector: {
1806
+ exclude?: { operationIds?: string[] | null }[] | null;
1807
+ include?: { host?: string[] | null }[] | null;
1808
+ };
1809
+ title: string;
1810
+ id?: string | null;
1811
+ createdAt?: string | null;
1812
+ lastUpdated?: string | null;
1813
+ },
1814
+ BulkPatchRulesError,
1815
+ Credentials | HttpClient.HttpClient
1816
+ >;
1817
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1582
1818
  input: BulkPatchRulesRequest,
1583
1819
  output: BulkPatchRulesResponse,
1584
1820
  errors: [],
1821
+ pagination: {
1822
+ mode: "single",
1823
+ items: "result",
1824
+ } as const,
1585
1825
  }));