@distilled.cloud/cloudflare 0.0.0-john

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. package/README.md +59 -0
  2. package/lib/auth.d.ts +14 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +13 -0
  5. package/lib/auth.js.map +1 -0
  6. package/lib/category.d.ts +2 -0
  7. package/lib/category.d.ts.map +1 -0
  8. package/lib/category.js +2 -0
  9. package/lib/category.js.map +1 -0
  10. package/lib/client/api.d.ts +12 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +292 -0
  13. package/lib/client/api.js.map +1 -0
  14. package/lib/client/index.d.ts +8 -0
  15. package/lib/client/index.d.ts.map +1 -0
  16. package/lib/client/index.js +8 -0
  17. package/lib/client/index.js.map +1 -0
  18. package/lib/credentials.d.ts +68 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +136 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +48 -0
  23. package/lib/errors.d.ts.map +1 -0
  24. package/lib/errors.js +31 -0
  25. package/lib/errors.js.map +1 -0
  26. package/lib/index.d.ts +10 -0
  27. package/lib/index.d.ts.map +1 -0
  28. package/lib/index.js +10 -0
  29. package/lib/index.js.map +1 -0
  30. package/lib/retry.d.ts +14 -0
  31. package/lib/retry.d.ts.map +1 -0
  32. package/lib/retry.js +14 -0
  33. package/lib/retry.js.map +1 -0
  34. package/lib/schemas.d.ts +29 -0
  35. package/lib/schemas.d.ts.map +1 -0
  36. package/lib/schemas.js +34 -0
  37. package/lib/schemas.js.map +1 -0
  38. package/lib/sensitive.d.ts +5 -0
  39. package/lib/sensitive.d.ts.map +1 -0
  40. package/lib/sensitive.js +5 -0
  41. package/lib/sensitive.js.map +1 -0
  42. package/lib/services/abuse-reports.d.ts +296 -0
  43. package/lib/services/abuse-reports.d.ts.map +1 -0
  44. package/lib/services/abuse-reports.js +414 -0
  45. package/lib/services/abuse-reports.js.map +1 -0
  46. package/lib/services/accounts.d.ts +766 -0
  47. package/lib/services/accounts.d.ts.map +1 -0
  48. package/lib/services/accounts.js +860 -0
  49. package/lib/services/accounts.js.map +1 -0
  50. package/lib/services/acm.d.ts +73 -0
  51. package/lib/services/acm.d.ts.map +1 -0
  52. package/lib/services/acm.js +80 -0
  53. package/lib/services/acm.js.map +1 -0
  54. package/lib/services/addressing.d.ts +1321 -0
  55. package/lib/services/addressing.d.ts.map +1 -0
  56. package/lib/services/addressing.js +1863 -0
  57. package/lib/services/addressing.js.map +1 -0
  58. package/lib/services/ai-gateway.d.ts +1137 -0
  59. package/lib/services/ai-gateway.d.ts.map +1 -0
  60. package/lib/services/ai-gateway.js +1830 -0
  61. package/lib/services/ai-gateway.js.map +1 -0
  62. package/lib/services/ai.d.ts +297 -0
  63. package/lib/services/ai.d.ts.map +1 -0
  64. package/lib/services/ai.js +352 -0
  65. package/lib/services/ai.js.map +1 -0
  66. package/lib/services/aisearch.d.ts +1069 -0
  67. package/lib/services/aisearch.d.ts.map +1 -0
  68. package/lib/services/aisearch.js +2542 -0
  69. package/lib/services/aisearch.js.map +1 -0
  70. package/lib/services/alerting.d.ts +855 -0
  71. package/lib/services/alerting.d.ts.map +1 -0
  72. package/lib/services/alerting.js +1445 -0
  73. package/lib/services/alerting.js.map +1 -0
  74. package/lib/services/api-gateway.d.ts +1088 -0
  75. package/lib/services/api-gateway.d.ts.map +1 -0
  76. package/lib/services/api-gateway.js +1655 -0
  77. package/lib/services/api-gateway.js.map +1 -0
  78. package/lib/services/argo.d.ts +101 -0
  79. package/lib/services/argo.d.ts.map +1 -0
  80. package/lib/services/argo.js +113 -0
  81. package/lib/services/argo.js.map +1 -0
  82. package/lib/services/audit-logs.d.ts +46 -0
  83. package/lib/services/audit-logs.d.ts.map +1 -0
  84. package/lib/services/audit-logs.js +37 -0
  85. package/lib/services/audit-logs.js.map +1 -0
  86. package/lib/services/billing.d.ts +62 -0
  87. package/lib/services/billing.d.ts.map +1 -0
  88. package/lib/services/billing.js +102 -0
  89. package/lib/services/billing.js.map +1 -0
  90. package/lib/services/bot-management.d.ts +124 -0
  91. package/lib/services/bot-management.d.ts.map +1 -0
  92. package/lib/services/bot-management.js +262 -0
  93. package/lib/services/bot-management.js.map +1 -0
  94. package/lib/services/botnet-feed.d.ts +65 -0
  95. package/lib/services/botnet-feed.d.ts.map +1 -0
  96. package/lib/services/botnet-feed.js +88 -0
  97. package/lib/services/botnet-feed.js.map +1 -0
  98. package/lib/services/brand-protection.d.ts +194 -0
  99. package/lib/services/brand-protection.d.ts.map +1 -0
  100. package/lib/services/brand-protection.js +221 -0
  101. package/lib/services/brand-protection.js.map +1 -0
  102. package/lib/services/browser-rendering.d.ts +857 -0
  103. package/lib/services/browser-rendering.d.ts.map +1 -0
  104. package/lib/services/browser-rendering.js +1142 -0
  105. package/lib/services/browser-rendering.js.map +1 -0
  106. package/lib/services/cache.d.ts +287 -0
  107. package/lib/services/cache.d.ts.map +1 -0
  108. package/lib/services/cache.js +354 -0
  109. package/lib/services/cache.js.map +1 -0
  110. package/lib/services/calls.d.ts +223 -0
  111. package/lib/services/calls.d.ts.map +1 -0
  112. package/lib/services/calls.js +188 -0
  113. package/lib/services/calls.js.map +1 -0
  114. package/lib/services/certificate-authorities.d.ts +40 -0
  115. package/lib/services/certificate-authorities.d.ts.map +1 -0
  116. package/lib/services/certificate-authorities.js +49 -0
  117. package/lib/services/certificate-authorities.js.map +1 -0
  118. package/lib/services/client-certificates.d.ts +288 -0
  119. package/lib/services/client-certificates.d.ts.map +1 -0
  120. package/lib/services/client-certificates.js +379 -0
  121. package/lib/services/client-certificates.js.map +1 -0
  122. package/lib/services/cloud-connector.d.ts +88 -0
  123. package/lib/services/cloud-connector.d.ts.map +1 -0
  124. package/lib/services/cloud-connector.js +97 -0
  125. package/lib/services/cloud-connector.js.map +1 -0
  126. package/lib/services/cloudforce-one.d.ts +1387 -0
  127. package/lib/services/cloudforce-one.d.ts.map +1 -0
  128. package/lib/services/cloudforce-one.js +1741 -0
  129. package/lib/services/cloudforce-one.js.map +1 -0
  130. package/lib/services/connectivity.d.ts +291 -0
  131. package/lib/services/connectivity.d.ts.map +1 -0
  132. package/lib/services/connectivity.js +404 -0
  133. package/lib/services/connectivity.js.map +1 -0
  134. package/lib/services/content-scanning.d.ts +156 -0
  135. package/lib/services/content-scanning.d.ts.map +1 -0
  136. package/lib/services/content-scanning.js +175 -0
  137. package/lib/services/content-scanning.js.map +1 -0
  138. package/lib/services/custom-certificates.d.ts +240 -0
  139. package/lib/services/custom-certificates.d.ts.map +1 -0
  140. package/lib/services/custom-certificates.js +336 -0
  141. package/lib/services/custom-certificates.js.map +1 -0
  142. package/lib/services/custom-hostnames.d.ts +590 -0
  143. package/lib/services/custom-hostnames.d.ts.map +1 -0
  144. package/lib/services/custom-hostnames.js +1204 -0
  145. package/lib/services/custom-hostnames.js.map +1 -0
  146. package/lib/services/custom-nameservers.d.ts +87 -0
  147. package/lib/services/custom-nameservers.d.ts.map +1 -0
  148. package/lib/services/custom-nameservers.js +95 -0
  149. package/lib/services/custom-nameservers.js.map +1 -0
  150. package/lib/services/custom-pages.d.ts +89 -0
  151. package/lib/services/custom-pages.d.ts.map +1 -0
  152. package/lib/services/custom-pages.js +140 -0
  153. package/lib/services/custom-pages.js.map +1 -0
  154. package/lib/services/d1.d.ts +392 -0
  155. package/lib/services/d1.d.ts.map +1 -0
  156. package/lib/services/d1.js +487 -0
  157. package/lib/services/d1.js.map +1 -0
  158. package/lib/services/dcv-delegation.d.ts +24 -0
  159. package/lib/services/dcv-delegation.d.ts.map +1 -0
  160. package/lib/services/dcv-delegation.js +24 -0
  161. package/lib/services/dcv-delegation.js.map +1 -0
  162. package/lib/services/diagnostics.d.ts +208 -0
  163. package/lib/services/diagnostics.d.ts.map +1 -0
  164. package/lib/services/diagnostics.js +288 -0
  165. package/lib/services/diagnostics.js.map +1 -0
  166. package/lib/services/dns-firewall.d.ts +317 -0
  167. package/lib/services/dns-firewall.d.ts.map +1 -0
  168. package/lib/services/dns-firewall.js +400 -0
  169. package/lib/services/dns-firewall.js.map +1 -0
  170. package/lib/services/dns.d.ts +3065 -0
  171. package/lib/services/dns.d.ts.map +1 -0
  172. package/lib/services/dns.js +4627 -0
  173. package/lib/services/dns.js.map +1 -0
  174. package/lib/services/durable-objects.d.ts +92 -0
  175. package/lib/services/durable-objects.d.ts.map +1 -0
  176. package/lib/services/durable-objects.js +103 -0
  177. package/lib/services/durable-objects.js.map +1 -0
  178. package/lib/services/email-routing.d.ts +598 -0
  179. package/lib/services/email-routing.d.ts.map +1 -0
  180. package/lib/services/email-routing.js +715 -0
  181. package/lib/services/email-routing.js.map +1 -0
  182. package/lib/services/email-security.d.ts +1389 -0
  183. package/lib/services/email-security.d.ts.map +1 -0
  184. package/lib/services/email-security.js +2261 -0
  185. package/lib/services/email-security.js.map +1 -0
  186. package/lib/services/filters.d.ts +197 -0
  187. package/lib/services/filters.d.ts.map +1 -0
  188. package/lib/services/filters.js +168 -0
  189. package/lib/services/filters.js.map +1 -0
  190. package/lib/services/firewall.d.ts +1352 -0
  191. package/lib/services/firewall.d.ts.map +1 -0
  192. package/lib/services/firewall.js +2084 -0
  193. package/lib/services/firewall.js.map +1 -0
  194. package/lib/services/healthchecks.d.ts +507 -0
  195. package/lib/services/healthchecks.d.ts.map +1 -0
  196. package/lib/services/healthchecks.js +867 -0
  197. package/lib/services/healthchecks.js.map +1 -0
  198. package/lib/services/hostnames.d.ts +86 -0
  199. package/lib/services/hostnames.d.ts.map +1 -0
  200. package/lib/services/hostnames.js +111 -0
  201. package/lib/services/hostnames.js.map +1 -0
  202. package/lib/services/hyperdrive.d.ts +203 -0
  203. package/lib/services/hyperdrive.d.ts.map +1 -0
  204. package/lib/services/hyperdrive.js +300 -0
  205. package/lib/services/hyperdrive.js.map +1 -0
  206. package/lib/services/iam.d.ts +657 -0
  207. package/lib/services/iam.d.ts.map +1 -0
  208. package/lib/services/iam.js +843 -0
  209. package/lib/services/iam.js.map +1 -0
  210. package/lib/services/images.d.ts +427 -0
  211. package/lib/services/images.d.ts.map +1 -0
  212. package/lib/services/images.js +444 -0
  213. package/lib/services/images.js.map +1 -0
  214. package/lib/services/intel.d.ts +865 -0
  215. package/lib/services/intel.d.ts.map +1 -0
  216. package/lib/services/intel.js +1266 -0
  217. package/lib/services/intel.js.map +1 -0
  218. package/lib/services/ips.d.ts +28 -0
  219. package/lib/services/ips.d.ts.map +1 -0
  220. package/lib/services/ips.js +39 -0
  221. package/lib/services/ips.js.map +1 -0
  222. package/lib/services/keyless-certificates.d.ts +197 -0
  223. package/lib/services/keyless-certificates.d.ts.map +1 -0
  224. package/lib/services/keyless-certificates.js +229 -0
  225. package/lib/services/keyless-certificates.js.map +1 -0
  226. package/lib/services/kv.d.ts +369 -0
  227. package/lib/services/kv.d.ts.map +1 -0
  228. package/lib/services/kv.js +453 -0
  229. package/lib/services/kv.js.map +1 -0
  230. package/lib/services/leaked-credential-checks.d.ts +129 -0
  231. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  232. package/lib/services/leaked-credential-checks.js +138 -0
  233. package/lib/services/leaked-credential-checks.js.map +1 -0
  234. package/lib/services/load-balancers.d.ts +1973 -0
  235. package/lib/services/load-balancers.d.ts.map +1 -0
  236. package/lib/services/load-balancers.js +3181 -0
  237. package/lib/services/load-balancers.js.map +1 -0
  238. package/lib/services/logpush.d.ts +401 -0
  239. package/lib/services/logpush.d.ts.map +1 -0
  240. package/lib/services/logpush.js +732 -0
  241. package/lib/services/logpush.js.map +1 -0
  242. package/lib/services/logs.d.ts +125 -0
  243. package/lib/services/logs.d.ts.map +1 -0
  244. package/lib/services/logs.js +149 -0
  245. package/lib/services/logs.js.map +1 -0
  246. package/lib/services/magic-cloud-networking.d.ts +1892 -0
  247. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  248. package/lib/services/magic-cloud-networking.js +5291 -0
  249. package/lib/services/magic-cloud-networking.js.map +1 -0
  250. package/lib/services/magic-network-monitoring.d.ts +379 -0
  251. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  252. package/lib/services/magic-network-monitoring.js +557 -0
  253. package/lib/services/magic-network-monitoring.js.map +1 -0
  254. package/lib/services/magic-transit.d.ts +3886 -0
  255. package/lib/services/magic-transit.d.ts.map +1 -0
  256. package/lib/services/magic-transit.js +6284 -0
  257. package/lib/services/magic-transit.js.map +1 -0
  258. package/lib/services/managed-transforms.d.ts +79 -0
  259. package/lib/services/managed-transforms.d.ts.map +1 -0
  260. package/lib/services/managed-transforms.js +111 -0
  261. package/lib/services/managed-transforms.js.map +1 -0
  262. package/lib/services/memberships.d.ts +204 -0
  263. package/lib/services/memberships.d.ts.map +1 -0
  264. package/lib/services/memberships.js +308 -0
  265. package/lib/services/memberships.js.map +1 -0
  266. package/lib/services/mtls-certificates.d.ts +164 -0
  267. package/lib/services/mtls-certificates.d.ts.map +1 -0
  268. package/lib/services/mtls-certificates.js +192 -0
  269. package/lib/services/mtls-certificates.js.map +1 -0
  270. package/lib/services/network-interconnects.d.ts +410 -0
  271. package/lib/services/network-interconnects.d.ts.map +1 -0
  272. package/lib/services/network-interconnects.js +583 -0
  273. package/lib/services/network-interconnects.js.map +1 -0
  274. package/lib/services/organizations.d.ts +232 -0
  275. package/lib/services/organizations.d.ts.map +1 -0
  276. package/lib/services/organizations.js +370 -0
  277. package/lib/services/organizations.js.map +1 -0
  278. package/lib/services/origin-ca-certificates.d.ts +119 -0
  279. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  280. package/lib/services/origin-ca-certificates.js +183 -0
  281. package/lib/services/origin-ca-certificates.js.map +1 -0
  282. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  283. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  284. package/lib/services/origin-post-quantum-encryption.js +64 -0
  285. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  286. package/lib/services/origin-tls-client-auth.d.ts +308 -0
  287. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  288. package/lib/services/origin-tls-client-auth.js +435 -0
  289. package/lib/services/origin-tls-client-auth.js.map +1 -0
  290. package/lib/services/page-rules.d.ts +773 -0
  291. package/lib/services/page-rules.d.ts.map +1 -0
  292. package/lib/services/page-rules.js +1373 -0
  293. package/lib/services/page-rules.js.map +1 -0
  294. package/lib/services/page-shield.d.ts +505 -0
  295. package/lib/services/page-shield.d.ts.map +1 -0
  296. package/lib/services/page-shield.js +520 -0
  297. package/lib/services/page-shield.js.map +1 -0
  298. package/lib/services/pages.d.ts +1949 -0
  299. package/lib/services/pages.d.ts.map +1 -0
  300. package/lib/services/pages.js +3030 -0
  301. package/lib/services/pages.js.map +1 -0
  302. package/lib/services/pipelines.d.ts +1716 -0
  303. package/lib/services/pipelines.d.ts.map +1 -0
  304. package/lib/services/pipelines.js +2991 -0
  305. package/lib/services/pipelines.js.map +1 -0
  306. package/lib/services/queues.d.ts +904 -0
  307. package/lib/services/queues.d.ts.map +1 -0
  308. package/lib/services/queues.js +1250 -0
  309. package/lib/services/queues.js.map +1 -0
  310. package/lib/services/r2-data-catalog.d.ts +341 -0
  311. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  312. package/lib/services/r2-data-catalog.js +513 -0
  313. package/lib/services/r2-data-catalog.js.map +1 -0
  314. package/lib/services/r2.d.ts +1087 -0
  315. package/lib/services/r2.d.ts.map +1 -0
  316. package/lib/services/r2.js +1404 -0
  317. package/lib/services/r2.js.map +1 -0
  318. package/lib/services/radar.d.ts +9365 -0
  319. package/lib/services/radar.d.ts.map +1 -0
  320. package/lib/services/radar.js +20552 -0
  321. package/lib/services/radar.js.map +1 -0
  322. package/lib/services/rate-limits.d.ts +360 -0
  323. package/lib/services/rate-limits.d.ts.map +1 -0
  324. package/lib/services/rate-limits.js +545 -0
  325. package/lib/services/rate-limits.js.map +1 -0
  326. package/lib/services/realtime-kit.d.ts +2728 -0
  327. package/lib/services/realtime-kit.d.ts.map +1 -0
  328. package/lib/services/realtime-kit.js +5402 -0
  329. package/lib/services/realtime-kit.js.map +1 -0
  330. package/lib/services/registrar.d.ts +121 -0
  331. package/lib/services/registrar.d.ts.map +1 -0
  332. package/lib/services/registrar.js +167 -0
  333. package/lib/services/registrar.js.map +1 -0
  334. package/lib/services/request-tracers.d.ts +61 -0
  335. package/lib/services/request-tracers.d.ts.map +1 -0
  336. package/lib/services/request-tracers.js +85 -0
  337. package/lib/services/request-tracers.js.map +1 -0
  338. package/lib/services/resource-sharing.d.ts +622 -0
  339. package/lib/services/resource-sharing.d.ts.map +1 -0
  340. package/lib/services/resource-sharing.js +929 -0
  341. package/lib/services/resource-sharing.js.map +1 -0
  342. package/lib/services/rules.d.ts +346 -0
  343. package/lib/services/rules.d.ts.map +1 -0
  344. package/lib/services/rules.js +431 -0
  345. package/lib/services/rules.js.map +1 -0
  346. package/lib/services/rulesets.d.ts +3345 -0
  347. package/lib/services/rulesets.d.ts.map +1 -0
  348. package/lib/services/rulesets.js +7904 -0
  349. package/lib/services/rulesets.js.map +1 -0
  350. package/lib/services/rum.d.ts +314 -0
  351. package/lib/services/rum.d.ts.map +1 -0
  352. package/lib/services/rum.js +442 -0
  353. package/lib/services/rum.js.map +1 -0
  354. package/lib/services/schema-validation.d.ts +273 -0
  355. package/lib/services/schema-validation.d.ts.map +1 -0
  356. package/lib/services/schema-validation.js +365 -0
  357. package/lib/services/schema-validation.js.map +1 -0
  358. package/lib/services/secrets-store.d.ts +393 -0
  359. package/lib/services/secrets-store.d.ts.map +1 -0
  360. package/lib/services/secrets-store.js +452 -0
  361. package/lib/services/secrets-store.js.map +1 -0
  362. package/lib/services/security-center.d.ts +136 -0
  363. package/lib/services/security-center.d.ts.map +1 -0
  364. package/lib/services/security-center.js +196 -0
  365. package/lib/services/security-center.js.map +1 -0
  366. package/lib/services/security-txt.d.ts +105 -0
  367. package/lib/services/security-txt.d.ts.map +1 -0
  368. package/lib/services/security-txt.js +136 -0
  369. package/lib/services/security-txt.js.map +1 -0
  370. package/lib/services/snippets.d.ts +190 -0
  371. package/lib/services/snippets.d.ts.map +1 -0
  372. package/lib/services/snippets.js +221 -0
  373. package/lib/services/snippets.js.map +1 -0
  374. package/lib/services/spectrum.d.ts +350 -0
  375. package/lib/services/spectrum.d.ts.map +1 -0
  376. package/lib/services/spectrum.js +535 -0
  377. package/lib/services/spectrum.js.map +1 -0
  378. package/lib/services/speed.d.ts +257 -0
  379. package/lib/services/speed.d.ts.map +1 -0
  380. package/lib/services/speed.js +471 -0
  381. package/lib/services/speed.js.map +1 -0
  382. package/lib/services/ssl.d.ts +412 -0
  383. package/lib/services/ssl.d.ts.map +1 -0
  384. package/lib/services/ssl.js +755 -0
  385. package/lib/services/ssl.js.map +1 -0
  386. package/lib/services/stream.d.ts +1110 -0
  387. package/lib/services/stream.d.ts.map +1 -0
  388. package/lib/services/stream.js +1085 -0
  389. package/lib/services/stream.js.map +1 -0
  390. package/lib/services/token-validation.d.ts +662 -0
  391. package/lib/services/token-validation.d.ts.map +1 -0
  392. package/lib/services/token-validation.js +834 -0
  393. package/lib/services/token-validation.js.map +1 -0
  394. package/lib/services/turnstile.d.ts +272 -0
  395. package/lib/services/turnstile.d.ts.map +1 -0
  396. package/lib/services/turnstile.js +339 -0
  397. package/lib/services/turnstile.js.map +1 -0
  398. package/lib/services/url-normalization.d.ts +53 -0
  399. package/lib/services/url-normalization.d.ts.map +1 -0
  400. package/lib/services/url-normalization.js +52 -0
  401. package/lib/services/url-normalization.js.map +1 -0
  402. package/lib/services/url-scanner.d.ts +612 -0
  403. package/lib/services/url-scanner.d.ts.map +1 -0
  404. package/lib/services/url-scanner.js +915 -0
  405. package/lib/services/url-scanner.js.map +1 -0
  406. package/lib/services/user.d.ts +507 -0
  407. package/lib/services/user.d.ts.map +1 -0
  408. package/lib/services/user.js +634 -0
  409. package/lib/services/user.js.map +1 -0
  410. package/lib/services/vectorize.d.ts +297 -0
  411. package/lib/services/vectorize.d.ts.map +1 -0
  412. package/lib/services/vectorize.js +351 -0
  413. package/lib/services/vectorize.js.map +1 -0
  414. package/lib/services/waiting-rooms.d.ts +1149 -0
  415. package/lib/services/waiting-rooms.d.ts.map +1 -0
  416. package/lib/services/waiting-rooms.js +1859 -0
  417. package/lib/services/waiting-rooms.js.map +1 -0
  418. package/lib/services/web3.d.ts +289 -0
  419. package/lib/services/web3.d.ts.map +1 -0
  420. package/lib/services/web3.js +381 -0
  421. package/lib/services/web3.js.map +1 -0
  422. package/lib/services/workers-for-platforms.d.ts +1394 -0
  423. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  424. package/lib/services/workers-for-platforms.js +2121 -0
  425. package/lib/services/workers-for-platforms.js.map +1 -0
  426. package/lib/services/workers.d.ts +3827 -0
  427. package/lib/services/workers.d.ts.map +1 -0
  428. package/lib/services/workers.js +6105 -0
  429. package/lib/services/workers.js.map +1 -0
  430. package/lib/services/workflows.d.ts +442 -0
  431. package/lib/services/workflows.d.ts.map +1 -0
  432. package/lib/services/workflows.js +599 -0
  433. package/lib/services/workflows.js.map +1 -0
  434. package/lib/services/zaraz.d.ts +312 -0
  435. package/lib/services/zaraz.d.ts.map +1 -0
  436. package/lib/services/zaraz.js +305 -0
  437. package/lib/services/zaraz.js.map +1 -0
  438. package/lib/services/zero-trust.d.ts +18235 -0
  439. package/lib/services/zero-trust.d.ts.map +1 -0
  440. package/lib/services/zero-trust.js +30268 -0
  441. package/lib/services/zero-trust.js.map +1 -0
  442. package/lib/services/zones.d.ts +1382 -0
  443. package/lib/services/zones.d.ts.map +1 -0
  444. package/lib/services/zones.js +2477 -0
  445. package/lib/services/zones.js.map +1 -0
  446. package/lib/traits.d.ts +28 -0
  447. package/lib/traits.d.ts.map +1 -0
  448. package/lib/traits.js +26 -0
  449. package/lib/traits.js.map +1 -0
  450. package/package.json +82 -0
  451. package/src/auth.ts +15 -0
  452. package/src/category.ts +1 -0
  453. package/src/client/api.ts +421 -0
  454. package/src/client/index.ts +7 -0
  455. package/src/credentials.ts +271 -0
  456. package/src/errors.ts +73 -0
  457. package/src/index.ts +9 -0
  458. package/src/retry.ts +35 -0
  459. package/src/schemas.ts +51 -0
  460. package/src/sensitive.ts +4 -0
  461. package/src/services/abuse-reports.ts +955 -0
  462. package/src/services/accounts.ts +2152 -0
  463. package/src/services/acm.ts +178 -0
  464. package/src/services/addressing.ts +4262 -0
  465. package/src/services/ai-gateway.ts +3773 -0
  466. package/src/services/ai.ts +901 -0
  467. package/src/services/aisearch.ts +5215 -0
  468. package/src/services/alerting.ts +3303 -0
  469. package/src/services/api-gateway.ts +3890 -0
  470. package/src/services/argo.ts +270 -0
  471. package/src/services/audit-logs.ts +90 -0
  472. package/src/services/billing.ts +176 -0
  473. package/src/services/bot-management.ts +545 -0
  474. package/src/services/botnet-feed.ts +205 -0
  475. package/src/services/brand-protection.ts +575 -0
  476. package/src/services/browser-rendering.ts +2720 -0
  477. package/src/services/cache.ts +877 -0
  478. package/src/services/calls.ts +548 -0
  479. package/src/services/certificate-authorities.ts +114 -0
  480. package/src/services/client-certificates.ts +815 -0
  481. package/src/services/cloud-connector.ts +248 -0
  482. package/src/services/cloudforce-one.ts +4104 -0
  483. package/src/services/connectivity.ts +706 -0
  484. package/src/services/content-scanning.ts +458 -0
  485. package/src/services/custom-certificates.ts +690 -0
  486. package/src/services/custom-hostnames.ts +2641 -0
  487. package/src/services/custom-nameservers.ts +235 -0
  488. package/src/services/custom-pages.ts +311 -0
  489. package/src/services/d1.ts +1208 -0
  490. package/src/services/dcv-delegation.ts +54 -0
  491. package/src/services/diagnostics.ts +677 -0
  492. package/src/services/dns-firewall.ts +904 -0
  493. package/src/services/dns.ts +9277 -0
  494. package/src/services/durable-objects.ts +237 -0
  495. package/src/services/email-routing.ts +1796 -0
  496. package/src/services/email-security.ts +5052 -0
  497. package/src/services/filters.ts +488 -0
  498. package/src/services/firewall.ts +4728 -0
  499. package/src/services/healthchecks.ts +1866 -0
  500. package/src/services/hostnames.ts +254 -0
  501. package/src/services/hyperdrive.ts +595 -0
  502. package/src/services/iam.ts +1969 -0
  503. package/src/services/images.ts +1180 -0
  504. package/src/services/intel.ts +3072 -0
  505. package/src/services/ips.ts +88 -0
  506. package/src/services/keyless-certificates.ts +509 -0
  507. package/src/services/kv.ts +1129 -0
  508. package/src/services/leaked-credential-checks.ts +364 -0
  509. package/src/services/load-balancers.ts +6993 -0
  510. package/src/services/logpush.ts +1695 -0
  511. package/src/services/logs.ts +389 -0
  512. package/src/services/magic-cloud-networking.ts +10747 -0
  513. package/src/services/magic-network-monitoring.ts +1200 -0
  514. package/src/services/magic-transit.ts +13673 -0
  515. package/src/services/managed-transforms.ts +245 -0
  516. package/src/services/memberships.ts +698 -0
  517. package/src/services/mtls-certificates.ts +444 -0
  518. package/src/services/network-interconnects.ts +1253 -0
  519. package/src/services/organizations.ts +738 -0
  520. package/src/services/origin-ca-certificates.ts +369 -0
  521. package/src/services/origin-post-quantum-encryption.ts +136 -0
  522. package/src/services/origin-tls-client-auth.ts +1002 -0
  523. package/src/services/page-rules.ts +2632 -0
  524. package/src/services/page-shield.ts +1371 -0
  525. package/src/services/pages.ts +6167 -0
  526. package/src/services/pipelines.ts +6455 -0
  527. package/src/services/queues.ts +2827 -0
  528. package/src/services/r2-data-catalog.ts +1151 -0
  529. package/src/services/r2.ts +3529 -0
  530. package/src/services/radar.ts +42836 -0
  531. package/src/services/rate-limits.ts +1252 -0
  532. package/src/services/realtime-kit.ts +11080 -0
  533. package/src/services/registrar.ts +390 -0
  534. package/src/services/request-tracers.ts +161 -0
  535. package/src/services/resource-sharing.ts +2082 -0
  536. package/src/services/rules.ts +953 -0
  537. package/src/services/rulesets.ts +15361 -0
  538. package/src/services/rum.ts +994 -0
  539. package/src/services/schema-validation.ts +869 -0
  540. package/src/services/secrets-store.ts +1050 -0
  541. package/src/services/security-center.ts +495 -0
  542. package/src/services/security-txt.ts +317 -0
  543. package/src/services/snippets.ts +562 -0
  544. package/src/services/spectrum.ts +1190 -0
  545. package/src/services/speed.ts +1154 -0
  546. package/src/services/ssl.ts +1714 -0
  547. package/src/services/stream.ts +3008 -0
  548. package/src/services/token-validation.ts +1825 -0
  549. package/src/services/turnstile.ts +725 -0
  550. package/src/services/url-normalization.ts +133 -0
  551. package/src/services/url-scanner.ts +1851 -0
  552. package/src/services/user.ts +1587 -0
  553. package/src/services/vectorize.ts +875 -0
  554. package/src/services/waiting-rooms.ts +4216 -0
  555. package/src/services/web3.ts +899 -0
  556. package/src/services/workers-for-platforms.ts +4134 -0
  557. package/src/services/workers.ts +12298 -0
  558. package/src/services/workflows.ts +1372 -0
  559. package/src/services/zaraz.ts +833 -0
  560. package/src/services/zero-trust.ts +64685 -0
  561. package/src/services/zones.ts +5106 -0
  562. package/src/traits.ts +47 -0
@@ -0,0 +1,1825 @@
1
+ /**
2
+ * Cloudflare TOKEN-VALIDATION API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service token-validation
6
+ */
7
+
8
+ import * as stream from "effect/Stream";
9
+ import * as Schema from "effect/Schema";
10
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
11
+ import * as API from "../client/api.ts";
12
+ import * as T from "../traits.ts";
13
+ import type { Credentials } from "../credentials.ts";
14
+ import { type DefaultErrors } from "../errors.ts";
15
+
16
+ // =============================================================================
17
+ // Configuration
18
+ // =============================================================================
19
+
20
+ export interface GetConfigurationRequest {
21
+ configId: string;
22
+ /** Identifier. */
23
+ zoneId: string;
24
+ }
25
+
26
+ export const GetConfigurationRequest =
27
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
28
+ configId: Schema.String.pipe(T.HttpPath("configId")),
29
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
30
+ }).pipe(
31
+ T.Http({
32
+ method: "GET",
33
+ path: "/zones/{zone_id}/token_validation/config/{configId}",
34
+ }),
35
+ ) as unknown as Schema.Schema<GetConfigurationRequest>;
36
+
37
+ export interface GetConfigurationResponse {
38
+ /** UUID. */
39
+ id: string;
40
+ createdAt: string;
41
+ credentials: {
42
+ keys: (
43
+ | {
44
+ alg: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512";
45
+ e: string;
46
+ kid: string;
47
+ kty: "RSA";
48
+ n: string;
49
+ }
50
+ | {
51
+ alg: "ES256";
52
+ crv: "P-256";
53
+ kid: string;
54
+ kty: "EC";
55
+ x: string;
56
+ y: string;
57
+ }
58
+ | {
59
+ alg: "ES384";
60
+ crv: "P-384";
61
+ kid: string;
62
+ kty: "EC";
63
+ x: string;
64
+ y: string;
65
+ }
66
+ )[];
67
+ };
68
+ description: string;
69
+ lastUpdated: string;
70
+ title: string;
71
+ tokenSources: string[];
72
+ tokenType: "JWT";
73
+ }
74
+
75
+ export const GetConfigurationResponse =
76
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
77
+ id: Schema.String,
78
+ createdAt: Schema.String,
79
+ credentials: Schema.Struct({
80
+ keys: Schema.Array(
81
+ Schema.Union([
82
+ Schema.Struct({
83
+ alg: Schema.Literals([
84
+ "RS256",
85
+ "RS384",
86
+ "RS512",
87
+ "PS256",
88
+ "PS384",
89
+ "PS512",
90
+ ]),
91
+ e: Schema.String,
92
+ kid: Schema.String,
93
+ kty: Schema.Literal("RSA"),
94
+ n: Schema.String,
95
+ }),
96
+ Schema.Struct({
97
+ alg: Schema.Literal("ES256"),
98
+ crv: Schema.Literal("P-256"),
99
+ kid: Schema.String,
100
+ kty: Schema.Literal("EC"),
101
+ x: Schema.String,
102
+ y: Schema.String,
103
+ }),
104
+ Schema.Struct({
105
+ alg: Schema.Literal("ES384"),
106
+ crv: Schema.Literal("P-384"),
107
+ kid: Schema.String,
108
+ kty: Schema.Literal("EC"),
109
+ x: Schema.String,
110
+ y: Schema.String,
111
+ }),
112
+ ]),
113
+ ),
114
+ }),
115
+ description: Schema.String,
116
+ lastUpdated: Schema.String,
117
+ title: Schema.String,
118
+ tokenSources: Schema.Array(Schema.String),
119
+ tokenType: Schema.Literal("JWT"),
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>;
136
+
137
+ export type GetConfigurationError = DefaultErrors;
138
+
139
+ export const getConfiguration: API.OperationMethod<
140
+ GetConfigurationRequest,
141
+ GetConfigurationResponse,
142
+ GetConfigurationError,
143
+ Credentials | HttpClient.HttpClient
144
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
145
+ input: GetConfigurationRequest,
146
+ output: GetConfigurationResponse,
147
+ errors: [],
148
+ }));
149
+
150
+ export interface ListConfigurationsRequest {
151
+ /** Path param: Identifier. */
152
+ zoneId: string;
153
+ }
154
+
155
+ export const ListConfigurationsRequest =
156
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
157
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
158
+ }).pipe(
159
+ T.Http({ method: "GET", path: "/zones/{zone_id}/token_validation/config" }),
160
+ ) as unknown as Schema.Schema<ListConfigurationsRequest>;
161
+
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;
204
+ };
205
+ }
206
+
207
+ export const ListConfigurationsResponse =
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])),
272
+ }).pipe(
273
+ Schema.encodeKeys({
274
+ count: "count",
275
+ page: "page",
276
+ perPage: "per_page",
277
+ totalCount: "total_count",
278
+ }),
279
+ ),
280
+ }).pipe(
281
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
282
+ ) as unknown as Schema.Schema<ListConfigurationsResponse>;
283
+
284
+ export type ListConfigurationsError = DefaultErrors;
285
+
286
+ export const listConfigurations: API.PaginatedOperationMethod<
287
+ ListConfigurationsRequest,
288
+ ListConfigurationsResponse,
289
+ ListConfigurationsError,
290
+ Credentials | HttpClient.HttpClient
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(() => ({
340
+ input: ListConfigurationsRequest,
341
+ output: ListConfigurationsResponse,
342
+ errors: [],
343
+ pagination: {
344
+ mode: "page",
345
+ inputToken: "page",
346
+ outputToken: "resultInfo.page",
347
+ items: "result",
348
+ pageSize: "perPage",
349
+ } as const,
350
+ }));
351
+
352
+ export interface CreateConfigurationRequest {
353
+ /** Path param: Identifier. */
354
+ zoneId: string;
355
+ /** Body param: */
356
+ credentials: {
357
+ keys: (
358
+ | {
359
+ alg: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512";
360
+ e: string;
361
+ kid: string;
362
+ kty: "RSA";
363
+ n: string;
364
+ }
365
+ | {
366
+ alg: "ES256";
367
+ crv: "P-256";
368
+ kid: string;
369
+ kty: "EC";
370
+ x: string;
371
+ y: string;
372
+ }
373
+ | {
374
+ alg: "ES384";
375
+ crv: "P-384";
376
+ kid: string;
377
+ kty: "EC";
378
+ x: string;
379
+ y: string;
380
+ }
381
+ )[];
382
+ };
383
+ /** Body param: */
384
+ description: string;
385
+ /** Body param: */
386
+ title: string;
387
+ /** Body param: */
388
+ tokenSources: string[];
389
+ /** Body param: */
390
+ tokenType: "JWT";
391
+ }
392
+
393
+ export const CreateConfigurationRequest =
394
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
395
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
396
+ credentials: Schema.Struct({
397
+ keys: Schema.Array(
398
+ Schema.Union([
399
+ Schema.Struct({
400
+ alg: Schema.Literals([
401
+ "RS256",
402
+ "RS384",
403
+ "RS512",
404
+ "PS256",
405
+ "PS384",
406
+ "PS512",
407
+ ]),
408
+ e: Schema.String,
409
+ kid: Schema.String,
410
+ kty: Schema.Literal("RSA"),
411
+ n: Schema.String,
412
+ }),
413
+ Schema.Struct({
414
+ alg: Schema.Literal("ES256"),
415
+ crv: Schema.Literal("P-256"),
416
+ kid: Schema.String,
417
+ kty: Schema.Literal("EC"),
418
+ x: Schema.String,
419
+ y: Schema.String,
420
+ }),
421
+ Schema.Struct({
422
+ alg: Schema.Literal("ES384"),
423
+ crv: Schema.Literal("P-384"),
424
+ kid: Schema.String,
425
+ kty: Schema.Literal("EC"),
426
+ x: Schema.String,
427
+ y: Schema.String,
428
+ }),
429
+ ]),
430
+ ),
431
+ }),
432
+ description: Schema.String,
433
+ title: Schema.String,
434
+ tokenSources: Schema.Array(Schema.String),
435
+ tokenType: Schema.Literal("JWT"),
436
+ }).pipe(
437
+ Schema.encodeKeys({
438
+ credentials: "credentials",
439
+ description: "description",
440
+ title: "title",
441
+ tokenSources: "token_sources",
442
+ tokenType: "token_type",
443
+ }),
444
+ T.Http({
445
+ method: "POST",
446
+ path: "/zones/{zone_id}/token_validation/config",
447
+ }),
448
+ ) as unknown as Schema.Schema<CreateConfigurationRequest>;
449
+
450
+ export interface CreateConfigurationResponse {
451
+ /** UUID. */
452
+ id: string;
453
+ createdAt: string;
454
+ credentials: {
455
+ keys: (
456
+ | {
457
+ alg: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512";
458
+ e: string;
459
+ kid: string;
460
+ kty: "RSA";
461
+ n: string;
462
+ }
463
+ | {
464
+ alg: "ES256";
465
+ crv: "P-256";
466
+ kid: string;
467
+ kty: "EC";
468
+ x: string;
469
+ y: string;
470
+ }
471
+ | {
472
+ alg: "ES384";
473
+ crv: "P-384";
474
+ kid: string;
475
+ kty: "EC";
476
+ x: string;
477
+ y: string;
478
+ }
479
+ )[];
480
+ };
481
+ description: string;
482
+ lastUpdated: string;
483
+ title: string;
484
+ tokenSources: string[];
485
+ tokenType: "JWT";
486
+ }
487
+
488
+ export const CreateConfigurationResponse =
489
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
490
+ id: Schema.String,
491
+ createdAt: Schema.String,
492
+ credentials: Schema.Struct({
493
+ keys: Schema.Array(
494
+ Schema.Union([
495
+ Schema.Struct({
496
+ alg: Schema.Literals([
497
+ "RS256",
498
+ "RS384",
499
+ "RS512",
500
+ "PS256",
501
+ "PS384",
502
+ "PS512",
503
+ ]),
504
+ e: Schema.String,
505
+ kid: Schema.String,
506
+ kty: Schema.Literal("RSA"),
507
+ n: Schema.String,
508
+ }),
509
+ Schema.Struct({
510
+ alg: Schema.Literal("ES256"),
511
+ crv: Schema.Literal("P-256"),
512
+ kid: Schema.String,
513
+ kty: Schema.Literal("EC"),
514
+ x: Schema.String,
515
+ y: Schema.String,
516
+ }),
517
+ Schema.Struct({
518
+ alg: Schema.Literal("ES384"),
519
+ crv: Schema.Literal("P-384"),
520
+ kid: Schema.String,
521
+ kty: Schema.Literal("EC"),
522
+ x: Schema.String,
523
+ y: Schema.String,
524
+ }),
525
+ ]),
526
+ ),
527
+ }),
528
+ description: Schema.String,
529
+ lastUpdated: Schema.String,
530
+ title: Schema.String,
531
+ tokenSources: Schema.Array(Schema.String),
532
+ tokenType: Schema.Literal("JWT"),
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>;
549
+
550
+ export type CreateConfigurationError = DefaultErrors;
551
+
552
+ export const createConfiguration: API.OperationMethod<
553
+ CreateConfigurationRequest,
554
+ CreateConfigurationResponse,
555
+ CreateConfigurationError,
556
+ Credentials | HttpClient.HttpClient
557
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
558
+ input: CreateConfigurationRequest,
559
+ output: CreateConfigurationResponse,
560
+ errors: [],
561
+ }));
562
+
563
+ export interface PatchConfigurationRequest {
564
+ configId: string;
565
+ /** Path param: Identifier. */
566
+ zoneId: string;
567
+ /** Body param: */
568
+ description?: string;
569
+ /** Body param: */
570
+ title?: string;
571
+ /** Body param: */
572
+ tokenSources?: string[];
573
+ }
574
+
575
+ export const PatchConfigurationRequest =
576
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
577
+ configId: Schema.String.pipe(T.HttpPath("configId")),
578
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
579
+ description: Schema.optional(Schema.String),
580
+ title: Schema.optional(Schema.String),
581
+ tokenSources: Schema.optional(Schema.Array(Schema.String)),
582
+ }).pipe(
583
+ Schema.encodeKeys({
584
+ description: "description",
585
+ title: "title",
586
+ tokenSources: "token_sources",
587
+ }),
588
+ T.Http({
589
+ method: "PATCH",
590
+ path: "/zones/{zone_id}/token_validation/config/{configId}",
591
+ }),
592
+ ) as unknown as Schema.Schema<PatchConfigurationRequest>;
593
+
594
+ export interface PatchConfigurationResponse {
595
+ description?: string | null;
596
+ title?: string | null;
597
+ tokenSources?: string[] | null;
598
+ }
599
+
600
+ export const PatchConfigurationResponse =
601
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
602
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
603
+ title: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
604
+ tokenSources: Schema.optional(
605
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
606
+ ),
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>;
618
+
619
+ export type PatchConfigurationError = DefaultErrors;
620
+
621
+ export const patchConfiguration: API.OperationMethod<
622
+ PatchConfigurationRequest,
623
+ PatchConfigurationResponse,
624
+ PatchConfigurationError,
625
+ Credentials | HttpClient.HttpClient
626
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
627
+ input: PatchConfigurationRequest,
628
+ output: PatchConfigurationResponse,
629
+ errors: [],
630
+ }));
631
+
632
+ export interface DeleteConfigurationRequest {
633
+ configId: string;
634
+ /** Identifier. */
635
+ zoneId: string;
636
+ }
637
+
638
+ export const DeleteConfigurationRequest =
639
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
640
+ configId: Schema.String.pipe(T.HttpPath("configId")),
641
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
642
+ }).pipe(
643
+ T.Http({
644
+ method: "DELETE",
645
+ path: "/zones/{zone_id}/token_validation/config/{configId}",
646
+ }),
647
+ ) as unknown as Schema.Schema<DeleteConfigurationRequest>;
648
+
649
+ export interface DeleteConfigurationResponse {
650
+ /** UUID. */
651
+ id?: string | null;
652
+ }
653
+
654
+ export const DeleteConfigurationResponse =
655
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
656
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
657
+ }).pipe(
658
+ T.ResponsePath("result"),
659
+ ) as unknown as Schema.Schema<DeleteConfigurationResponse>;
660
+
661
+ export type DeleteConfigurationError = DefaultErrors;
662
+
663
+ export const deleteConfiguration: API.OperationMethod<
664
+ DeleteConfigurationRequest,
665
+ DeleteConfigurationResponse,
666
+ DeleteConfigurationError,
667
+ Credentials | HttpClient.HttpClient
668
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
669
+ input: DeleteConfigurationRequest,
670
+ output: DeleteConfigurationResponse,
671
+ errors: [],
672
+ }));
673
+
674
+ // =============================================================================
675
+ // ConfigurationCredential
676
+ // =============================================================================
677
+
678
+ export interface PutConfigurationCredentialRequest {
679
+ configId: string;
680
+ /** Path param: Identifier. */
681
+ zoneId: string;
682
+ /** Body param: */
683
+ keys: (
684
+ | {
685
+ alg: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512";
686
+ e: string;
687
+ kid: string;
688
+ kty: "RSA";
689
+ n: string;
690
+ }
691
+ | {
692
+ alg: "ES256";
693
+ crv: "P-256";
694
+ kid: string;
695
+ kty: "EC";
696
+ x: string;
697
+ y: string;
698
+ }
699
+ | {
700
+ alg: "ES384";
701
+ crv: "P-384";
702
+ kid: string;
703
+ kty: "EC";
704
+ x: string;
705
+ y: string;
706
+ }
707
+ )[];
708
+ }
709
+
710
+ export const PutConfigurationCredentialRequest =
711
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
712
+ configId: Schema.String.pipe(T.HttpPath("configId")),
713
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
714
+ keys: Schema.Array(
715
+ Schema.Union([
716
+ Schema.Struct({
717
+ alg: Schema.Literals([
718
+ "RS256",
719
+ "RS384",
720
+ "RS512",
721
+ "PS256",
722
+ "PS384",
723
+ "PS512",
724
+ ]),
725
+ e: Schema.String,
726
+ kid: Schema.String,
727
+ kty: Schema.Literal("RSA"),
728
+ n: Schema.String,
729
+ }),
730
+ Schema.Struct({
731
+ alg: Schema.Literal("ES256"),
732
+ crv: Schema.Literal("P-256"),
733
+ kid: Schema.String,
734
+ kty: Schema.Literal("EC"),
735
+ x: Schema.String,
736
+ y: Schema.String,
737
+ }),
738
+ Schema.Struct({
739
+ alg: Schema.Literal("ES384"),
740
+ crv: Schema.Literal("P-384"),
741
+ kid: Schema.String,
742
+ kty: Schema.Literal("EC"),
743
+ x: Schema.String,
744
+ y: Schema.String,
745
+ }),
746
+ ]),
747
+ ),
748
+ }).pipe(
749
+ T.Http({
750
+ method: "PUT",
751
+ path: "/zones/{zone_id}/token_validation/config/{configId}/credentials",
752
+ }),
753
+ ) as unknown as Schema.Schema<PutConfigurationCredentialRequest>;
754
+
755
+ export interface PutConfigurationCredentialResponse {
756
+ errors: unknown;
757
+ keys: (
758
+ | {
759
+ alg: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512";
760
+ e: string;
761
+ kid: string;
762
+ kty: "RSA";
763
+ n: string;
764
+ }
765
+ | {
766
+ alg: "ES256";
767
+ crv: "P-256";
768
+ kid: string;
769
+ kty: "EC";
770
+ x: string;
771
+ y: string;
772
+ }
773
+ | {
774
+ alg: "ES384";
775
+ crv: "P-384";
776
+ kid: string;
777
+ kty: "EC";
778
+ x: string;
779
+ y: string;
780
+ }
781
+ )[];
782
+ messages: unknown;
783
+ /** Whether the API call was successful. */
784
+ success: true;
785
+ }
786
+
787
+ export const PutConfigurationCredentialResponse =
788
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
789
+ errors: Schema.Unknown,
790
+ keys: Schema.Array(
791
+ Schema.Union([
792
+ Schema.Struct({
793
+ alg: Schema.Literals([
794
+ "RS256",
795
+ "RS384",
796
+ "RS512",
797
+ "PS256",
798
+ "PS384",
799
+ "PS512",
800
+ ]),
801
+ e: Schema.String,
802
+ kid: Schema.String,
803
+ kty: Schema.Literal("RSA"),
804
+ n: Schema.String,
805
+ }),
806
+ Schema.Struct({
807
+ alg: Schema.Literal("ES256"),
808
+ crv: Schema.Literal("P-256"),
809
+ kid: Schema.String,
810
+ kty: Schema.Literal("EC"),
811
+ x: Schema.String,
812
+ y: Schema.String,
813
+ }),
814
+ Schema.Struct({
815
+ alg: Schema.Literal("ES384"),
816
+ crv: Schema.Literal("P-384"),
817
+ kid: Schema.String,
818
+ kty: Schema.Literal("EC"),
819
+ x: Schema.String,
820
+ y: Schema.String,
821
+ }),
822
+ ]),
823
+ ),
824
+ messages: Schema.Unknown,
825
+ success: Schema.Literal(true),
826
+ }) as unknown as Schema.Schema<PutConfigurationCredentialResponse>;
827
+
828
+ export type PutConfigurationCredentialError = DefaultErrors;
829
+
830
+ export const putConfigurationCredential: API.OperationMethod<
831
+ PutConfigurationCredentialRequest,
832
+ PutConfigurationCredentialResponse,
833
+ PutConfigurationCredentialError,
834
+ Credentials | HttpClient.HttpClient
835
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
836
+ input: PutConfigurationCredentialRequest,
837
+ output: PutConfigurationCredentialResponse,
838
+ errors: [],
839
+ }));
840
+
841
+ // =============================================================================
842
+ // Rule
843
+ // =============================================================================
844
+
845
+ export interface GetRuleRequest {
846
+ ruleId: string;
847
+ /** Identifier. */
848
+ zoneId: string;
849
+ }
850
+
851
+ export const GetRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
852
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
853
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
854
+ }).pipe(
855
+ T.Http({
856
+ method: "GET",
857
+ path: "/zones/{zone_id}/token_validation/rules/{ruleId}",
858
+ }),
859
+ ) as unknown as Schema.Schema<GetRuleRequest>;
860
+
861
+ export interface GetRuleResponse {
862
+ /** Action to take on requests that match operations included in `selector` and fail `expression`. */
863
+ action: "log" | "block";
864
+ /** A human-readable description that gives more details than `title`. */
865
+ description: string;
866
+ /** Toggle rule on or off. */
867
+ enabled: boolean;
868
+ /** Rule expression. Requests that fail to match this expression will be subject to `action`. For details on expressions, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/j */
869
+ expression: string;
870
+ /** Select operations covered by this rule. For details on selectors, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/jwt-validation/). */
871
+ selector: {
872
+ exclude?: { operationIds?: string[] | null }[] | null;
873
+ include?: { host?: string[] | null }[] | null;
874
+ };
875
+ /** A human-readable name for the rule. */
876
+ title: string;
877
+ /** UUID. */
878
+ id?: string | null;
879
+ createdAt?: string | null;
880
+ lastUpdated?: string | null;
881
+ }
882
+
883
+ export const GetRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
884
+ action: Schema.Literals(["log", "block"]),
885
+ description: Schema.String,
886
+ enabled: Schema.Boolean,
887
+ expression: Schema.String,
888
+ selector: Schema.Struct({
889
+ exclude: Schema.optional(
890
+ Schema.Union([
891
+ Schema.Array(
892
+ Schema.Struct({
893
+ operationIds: Schema.optional(
894
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
895
+ ),
896
+ }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
897
+ ),
898
+ Schema.Null,
899
+ ]),
900
+ ),
901
+ include: Schema.optional(
902
+ Schema.Union([
903
+ Schema.Array(
904
+ Schema.Struct({
905
+ host: Schema.optional(
906
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
907
+ ),
908
+ }),
909
+ ),
910
+ Schema.Null,
911
+ ]),
912
+ ),
913
+ }),
914
+ title: Schema.String,
915
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
916
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
917
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
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>;
933
+
934
+ export type GetRuleError = DefaultErrors;
935
+
936
+ export const getRule: API.OperationMethod<
937
+ GetRuleRequest,
938
+ GetRuleResponse,
939
+ GetRuleError,
940
+ Credentials | HttpClient.HttpClient
941
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
942
+ input: GetRuleRequest,
943
+ output: GetRuleResponse,
944
+ errors: [],
945
+ }));
946
+
947
+ export interface ListRulesRequest {
948
+ /** Path param: Identifier. */
949
+ zoneId: string;
950
+ /** Query param: Select rules with these IDs. */
951
+ id?: string;
952
+ /** Query param: Action to take on requests that match operations included in `selector` and fail `expression`. */
953
+ action?: "log" | "block";
954
+ /** Query param: Toggle rule on or off. */
955
+ enabled?: boolean;
956
+ /** Query param: Select rules with this host in `include`. */
957
+ host?: string;
958
+ /** Query param: Select rules with this host in `include`. */
959
+ hostname?: string;
960
+ /** Query param: Select rules with these IDs. */
961
+ ruleId?: string;
962
+ /** Query param: Select rules using any of these token configurations. */
963
+ tokenConfiguration?: string[];
964
+ }
965
+
966
+ export const ListRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
967
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
968
+ id: Schema.optional(Schema.String).pipe(T.HttpQuery("id")),
969
+ action: Schema.optional(Schema.Literals(["log", "block"])).pipe(
970
+ T.HttpQuery("action"),
971
+ ),
972
+ enabled: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("enabled")),
973
+ host: Schema.optional(Schema.String).pipe(T.HttpQuery("host")),
974
+ hostname: Schema.optional(Schema.String).pipe(T.HttpQuery("hostname")),
975
+ ruleId: Schema.optional(Schema.String).pipe(T.HttpQuery("rule_id")),
976
+ tokenConfiguration: Schema.optional(Schema.Array(Schema.String)).pipe(
977
+ T.HttpQuery("token_configuration"),
978
+ ),
979
+ }).pipe(
980
+ T.Http({ method: "GET", path: "/zones/{zone_id}/token_validation/rules" }),
981
+ ) as unknown as Schema.Schema<ListRulesRequest>;
982
+
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;
1003
+ };
1004
+ }
1005
+
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])),
1062
+ }).pipe(
1063
+ Schema.encodeKeys({
1064
+ count: "count",
1065
+ page: "page",
1066
+ perPage: "per_page",
1067
+ totalCount: "total_count",
1068
+ }),
1069
+ ),
1070
+ }).pipe(
1071
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
1072
+ ) as unknown as Schema.Schema<ListRulesResponse>;
1073
+
1074
+ export type ListRulesError = DefaultErrors;
1075
+
1076
+ export const listRules: API.PaginatedOperationMethod<
1077
+ ListRulesRequest,
1078
+ ListRulesResponse,
1079
+ ListRulesError,
1080
+ Credentials | HttpClient.HttpClient
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(() => ({
1108
+ input: ListRulesRequest,
1109
+ output: ListRulesResponse,
1110
+ errors: [],
1111
+ pagination: {
1112
+ mode: "page",
1113
+ inputToken: "page",
1114
+ outputToken: "resultInfo.page",
1115
+ items: "result",
1116
+ pageSize: "perPage",
1117
+ } as const,
1118
+ }));
1119
+
1120
+ export interface CreateRuleRequest {
1121
+ /** Path param: Identifier. */
1122
+ zoneId: string;
1123
+ /** Body param: Action to take on requests that match operations included in `selector` and fail `expression`. */
1124
+ action: "log" | "block";
1125
+ /** Body param: A human-readable description that gives more details than `title`. */
1126
+ description: string;
1127
+ /** Body param: Toggle rule on or off. */
1128
+ enabled: boolean;
1129
+ /** Body param: Rule expression. Requests that fail to match this expression will be subject to `action`. For details on expressions, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shiel */
1130
+ expression: string;
1131
+ /** Body param: Select operations covered by this rule. For details on selectors, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/jwt-validation/). */
1132
+ selector: {
1133
+ exclude?: { operationIds?: string[] }[] | null;
1134
+ include?: { host?: string[] }[] | null;
1135
+ };
1136
+ /** Body param: A human-readable name for the rule. */
1137
+ title: string;
1138
+ }
1139
+
1140
+ export const CreateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1141
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1142
+ action: Schema.Literals(["log", "block"]),
1143
+ description: Schema.String,
1144
+ enabled: Schema.Boolean,
1145
+ expression: Schema.String,
1146
+ selector: Schema.Struct({
1147
+ exclude: Schema.optional(
1148
+ Schema.Union([
1149
+ Schema.Array(
1150
+ Schema.Struct({
1151
+ operationIds: Schema.optional(Schema.Array(Schema.String)),
1152
+ }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
1153
+ ),
1154
+ Schema.Null,
1155
+ ]),
1156
+ ),
1157
+ include: Schema.optional(
1158
+ Schema.Union([
1159
+ Schema.Array(
1160
+ Schema.Struct({
1161
+ host: Schema.optional(Schema.Array(Schema.String)),
1162
+ }),
1163
+ ),
1164
+ Schema.Null,
1165
+ ]),
1166
+ ),
1167
+ }),
1168
+ title: Schema.String,
1169
+ }).pipe(
1170
+ T.Http({ method: "POST", path: "/zones/{zone_id}/token_validation/rules" }),
1171
+ ) as unknown as Schema.Schema<CreateRuleRequest>;
1172
+
1173
+ export interface CreateRuleResponse {
1174
+ /** Action to take on requests that match operations included in `selector` and fail `expression`. */
1175
+ action: "log" | "block";
1176
+ /** A human-readable description that gives more details than `title`. */
1177
+ description: string;
1178
+ /** Toggle rule on or off. */
1179
+ enabled: boolean;
1180
+ /** Rule expression. Requests that fail to match this expression will be subject to `action`. For details on expressions, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/j */
1181
+ expression: string;
1182
+ /** Select operations covered by this rule. For details on selectors, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/jwt-validation/). */
1183
+ selector: {
1184
+ exclude?: { operationIds?: string[] | null }[] | null;
1185
+ include?: { host?: string[] | null }[] | null;
1186
+ };
1187
+ /** A human-readable name for the rule. */
1188
+ title: string;
1189
+ /** UUID. */
1190
+ id?: string | null;
1191
+ createdAt?: string | null;
1192
+ lastUpdated?: string | null;
1193
+ }
1194
+
1195
+ export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1196
+ action: Schema.Literals(["log", "block"]),
1197
+ description: Schema.String,
1198
+ enabled: Schema.Boolean,
1199
+ expression: Schema.String,
1200
+ selector: Schema.Struct({
1201
+ exclude: Schema.optional(
1202
+ Schema.Union([
1203
+ Schema.Array(
1204
+ Schema.Struct({
1205
+ operationIds: Schema.optional(
1206
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1207
+ ),
1208
+ }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
1209
+ ),
1210
+ Schema.Null,
1211
+ ]),
1212
+ ),
1213
+ include: Schema.optional(
1214
+ Schema.Union([
1215
+ Schema.Array(
1216
+ Schema.Struct({
1217
+ host: Schema.optional(
1218
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1219
+ ),
1220
+ }),
1221
+ ),
1222
+ Schema.Null,
1223
+ ]),
1224
+ ),
1225
+ }),
1226
+ title: Schema.String,
1227
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1228
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1229
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
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>;
1247
+
1248
+ export type CreateRuleError = DefaultErrors;
1249
+
1250
+ export const createRule: API.OperationMethod<
1251
+ CreateRuleRequest,
1252
+ CreateRuleResponse,
1253
+ CreateRuleError,
1254
+ Credentials | HttpClient.HttpClient
1255
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1256
+ input: CreateRuleRequest,
1257
+ output: CreateRuleResponse,
1258
+ errors: [],
1259
+ }));
1260
+
1261
+ export interface PatchRuleRequest {
1262
+ ruleId: string;
1263
+ /** Path param: Identifier. */
1264
+ zoneId: string;
1265
+ /** Body param: Action to take on requests that match operations included in `selector` and fail `expression`. */
1266
+ action?: "log" | "block";
1267
+ /** Body param: A human-readable description that gives more details than `title`. */
1268
+ description?: string;
1269
+ /** Body param: Toggle rule on or off. */
1270
+ enabled?: boolean;
1271
+ /** Body param: Rule expression. Requests that fail to match this expression will be subject to `action`. For details on expressions, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shiel */
1272
+ expression?: string;
1273
+ /** Body param: Update rule order among zone rules. */
1274
+ position?: { index: number } | { before?: string } | { after?: string };
1275
+ /** Body param: Select operations covered by this rule. For details on selectors, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/jwt-validation/). */
1276
+ selector?: {
1277
+ exclude?: { operationIds?: string[] }[] | null;
1278
+ include?: { host?: string[] }[] | null;
1279
+ };
1280
+ /** Body param: A human-readable name for the rule. */
1281
+ title?: string;
1282
+ }
1283
+
1284
+ export const PatchRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1285
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
1286
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1287
+ action: Schema.optional(Schema.Literals(["log", "block"])),
1288
+ description: Schema.optional(Schema.String),
1289
+ enabled: Schema.optional(Schema.Boolean),
1290
+ expression: Schema.optional(Schema.String),
1291
+ position: Schema.optional(
1292
+ Schema.Union([
1293
+ Schema.Struct({
1294
+ index: Schema.Number,
1295
+ }),
1296
+ Schema.Struct({
1297
+ before: Schema.optional(Schema.String),
1298
+ }),
1299
+ Schema.Struct({
1300
+ after: Schema.optional(Schema.String),
1301
+ }),
1302
+ ]),
1303
+ ),
1304
+ selector: Schema.optional(
1305
+ Schema.Struct({
1306
+ exclude: Schema.optional(
1307
+ Schema.Union([
1308
+ Schema.Array(
1309
+ Schema.Struct({
1310
+ operationIds: Schema.optional(Schema.Array(Schema.String)),
1311
+ }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
1312
+ ),
1313
+ Schema.Null,
1314
+ ]),
1315
+ ),
1316
+ include: Schema.optional(
1317
+ Schema.Union([
1318
+ Schema.Array(
1319
+ Schema.Struct({
1320
+ host: Schema.optional(Schema.Array(Schema.String)),
1321
+ }),
1322
+ ),
1323
+ Schema.Null,
1324
+ ]),
1325
+ ),
1326
+ }),
1327
+ ),
1328
+ title: Schema.optional(Schema.String),
1329
+ }).pipe(
1330
+ T.Http({
1331
+ method: "PATCH",
1332
+ path: "/zones/{zone_id}/token_validation/rules/{ruleId}",
1333
+ }),
1334
+ ) as unknown as Schema.Schema<PatchRuleRequest>;
1335
+
1336
+ export interface PatchRuleResponse {
1337
+ /** Action to take on requests that match operations included in `selector` and fail `expression`. */
1338
+ action: "log" | "block";
1339
+ /** A human-readable description that gives more details than `title`. */
1340
+ description: string;
1341
+ /** Toggle rule on or off. */
1342
+ enabled: boolean;
1343
+ /** Rule expression. Requests that fail to match this expression will be subject to `action`. For details on expressions, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/j */
1344
+ expression: string;
1345
+ /** Select operations covered by this rule. For details on selectors, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/jwt-validation/). */
1346
+ selector: {
1347
+ exclude?: { operationIds?: string[] | null }[] | null;
1348
+ include?: { host?: string[] | null }[] | null;
1349
+ };
1350
+ /** A human-readable name for the rule. */
1351
+ title: string;
1352
+ /** UUID. */
1353
+ id?: string | null;
1354
+ createdAt?: string | null;
1355
+ lastUpdated?: string | null;
1356
+ }
1357
+
1358
+ export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1359
+ action: Schema.Literals(["log", "block"]),
1360
+ description: Schema.String,
1361
+ enabled: Schema.Boolean,
1362
+ expression: Schema.String,
1363
+ selector: Schema.Struct({
1364
+ exclude: Schema.optional(
1365
+ Schema.Union([
1366
+ Schema.Array(
1367
+ Schema.Struct({
1368
+ operationIds: Schema.optional(
1369
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1370
+ ),
1371
+ }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
1372
+ ),
1373
+ Schema.Null,
1374
+ ]),
1375
+ ),
1376
+ include: Schema.optional(
1377
+ Schema.Union([
1378
+ Schema.Array(
1379
+ Schema.Struct({
1380
+ host: Schema.optional(
1381
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1382
+ ),
1383
+ }),
1384
+ ),
1385
+ Schema.Null,
1386
+ ]),
1387
+ ),
1388
+ }),
1389
+ title: Schema.String,
1390
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1391
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1392
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
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>;
1410
+
1411
+ export type PatchRuleError = DefaultErrors;
1412
+
1413
+ export const patchRule: API.OperationMethod<
1414
+ PatchRuleRequest,
1415
+ PatchRuleResponse,
1416
+ PatchRuleError,
1417
+ Credentials | HttpClient.HttpClient
1418
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1419
+ input: PatchRuleRequest,
1420
+ output: PatchRuleResponse,
1421
+ errors: [],
1422
+ }));
1423
+
1424
+ export interface DeleteRuleRequest {
1425
+ ruleId: string;
1426
+ /** Identifier. */
1427
+ zoneId: string;
1428
+ }
1429
+
1430
+ export const DeleteRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1431
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
1432
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1433
+ }).pipe(
1434
+ T.Http({
1435
+ method: "DELETE",
1436
+ path: "/zones/{zone_id}/token_validation/rules/{ruleId}",
1437
+ }),
1438
+ ) as unknown as Schema.Schema<DeleteRuleRequest>;
1439
+
1440
+ export type DeleteRuleResponse = unknown;
1441
+
1442
+ export const DeleteRuleResponse =
1443
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
1444
+ T.ResponsePath("result"),
1445
+ ) as unknown as Schema.Schema<DeleteRuleResponse>;
1446
+
1447
+ export type DeleteRuleError = DefaultErrors;
1448
+
1449
+ export const deleteRule: API.OperationMethod<
1450
+ DeleteRuleRequest,
1451
+ DeleteRuleResponse,
1452
+ DeleteRuleError,
1453
+ Credentials | HttpClient.HttpClient
1454
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1455
+ input: DeleteRuleRequest,
1456
+ output: DeleteRuleResponse,
1457
+ errors: [],
1458
+ }));
1459
+
1460
+ export interface BulkCreateRulesRequest {
1461
+ /** Path param: Identifier. */
1462
+ zoneId: string;
1463
+ /** Body param: */
1464
+ body: {
1465
+ action: "log" | "block";
1466
+ description: string;
1467
+ enabled: boolean;
1468
+ expression: string;
1469
+ selector: {
1470
+ exclude?: { operationIds?: string[] }[] | null;
1471
+ include?: { host?: string[] }[] | null;
1472
+ };
1473
+ title: string;
1474
+ }[];
1475
+ }
1476
+
1477
+ export const BulkCreateRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1478
+ {
1479
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1480
+ body: Schema.Array(
1481
+ Schema.Struct({
1482
+ action: Schema.Literals(["log", "block"]),
1483
+ description: Schema.String,
1484
+ enabled: Schema.Boolean,
1485
+ expression: Schema.String,
1486
+ selector: Schema.Struct({
1487
+ exclude: Schema.optional(
1488
+ Schema.Union([
1489
+ Schema.Array(
1490
+ Schema.Struct({
1491
+ operationIds: Schema.optional(Schema.Array(Schema.String)),
1492
+ }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
1493
+ ),
1494
+ Schema.Null,
1495
+ ]),
1496
+ ),
1497
+ include: Schema.optional(
1498
+ Schema.Union([
1499
+ Schema.Array(
1500
+ Schema.Struct({
1501
+ host: Schema.optional(Schema.Array(Schema.String)),
1502
+ }),
1503
+ ),
1504
+ Schema.Null,
1505
+ ]),
1506
+ ),
1507
+ }),
1508
+ title: Schema.String,
1509
+ }),
1510
+ ).pipe(T.HttpBody()),
1511
+ },
1512
+ ).pipe(
1513
+ T.Http({
1514
+ method: "POST",
1515
+ path: "/zones/{zone_id}/token_validation/rules/bulk",
1516
+ }),
1517
+ ) as unknown as Schema.Schema<BulkCreateRulesRequest>;
1518
+
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
+ }
1535
+
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" })),
1553
+ ),
1554
+ Schema.Null,
1555
+ ]),
1556
+ ),
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
+ }),
1565
+ ),
1566
+ Schema.Null,
1567
+ ]),
1568
+ ),
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
+ }),
1588
+ ),
1589
+ ),
1590
+ }) as unknown as Schema.Schema<BulkCreateRulesResponse>;
1591
+
1592
+ export type BulkCreateRulesError = DefaultErrors;
1593
+
1594
+ export const bulkCreateRules: API.PaginatedOperationMethod<
1595
+ BulkCreateRulesRequest,
1596
+ BulkCreateRulesResponse,
1597
+ BulkCreateRulesError,
1598
+ Credentials | HttpClient.HttpClient
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(() => ({
1626
+ input: BulkCreateRulesRequest,
1627
+ output: BulkCreateRulesResponse,
1628
+ errors: [],
1629
+ pagination: {
1630
+ mode: "single",
1631
+ items: "result",
1632
+ } as const,
1633
+ }));
1634
+
1635
+ export interface BulkPatchRulesRequest {
1636
+ /** Path param: Identifier. */
1637
+ zoneId: string;
1638
+ /** Body param: */
1639
+ body: {
1640
+ id: string;
1641
+ action?: "log" | "block";
1642
+ description?: string;
1643
+ enabled?: boolean;
1644
+ expression?: string;
1645
+ position?: { index: number } | { before?: string } | { after?: string };
1646
+ selector?: {
1647
+ exclude?: { operationIds?: string[] }[] | null;
1648
+ include?: { host?: string[] }[] | null;
1649
+ };
1650
+ title?: string;
1651
+ }[];
1652
+ }
1653
+
1654
+ export const BulkPatchRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1655
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1656
+ body: Schema.Array(
1657
+ Schema.Struct({
1658
+ id: Schema.String,
1659
+ action: Schema.optional(Schema.Literals(["log", "block"])),
1660
+ description: Schema.optional(Schema.String),
1661
+ enabled: Schema.optional(Schema.Boolean),
1662
+ expression: Schema.optional(Schema.String),
1663
+ position: Schema.optional(
1664
+ Schema.Union([
1665
+ Schema.Struct({
1666
+ index: Schema.Number,
1667
+ }),
1668
+ Schema.Struct({
1669
+ before: Schema.optional(Schema.String),
1670
+ }),
1671
+ Schema.Struct({
1672
+ after: Schema.optional(Schema.String),
1673
+ }),
1674
+ ]),
1675
+ ),
1676
+ selector: Schema.optional(
1677
+ Schema.Struct({
1678
+ exclude: Schema.optional(
1679
+ Schema.Union([
1680
+ Schema.Array(
1681
+ Schema.Struct({
1682
+ operationIds: Schema.optional(Schema.Array(Schema.String)),
1683
+ }).pipe(Schema.encodeKeys({ operationIds: "operation_ids" })),
1684
+ ),
1685
+ Schema.Null,
1686
+ ]),
1687
+ ),
1688
+ include: Schema.optional(
1689
+ Schema.Union([
1690
+ Schema.Array(
1691
+ Schema.Struct({
1692
+ host: Schema.optional(Schema.Array(Schema.String)),
1693
+ }),
1694
+ ),
1695
+ Schema.Null,
1696
+ ]),
1697
+ ),
1698
+ }),
1699
+ ),
1700
+ title: Schema.optional(Schema.String),
1701
+ }),
1702
+ ).pipe(T.HttpBody()),
1703
+ }).pipe(
1704
+ T.Http({
1705
+ method: "PATCH",
1706
+ path: "/zones/{zone_id}/token_validation/rules/bulk",
1707
+ }),
1708
+ ) as unknown as Schema.Schema<BulkPatchRulesRequest>;
1709
+
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
+ }
1726
+
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" })),
1744
+ ),
1745
+ Schema.Null,
1746
+ ]),
1747
+ ),
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
+ }),
1756
+ ),
1757
+ Schema.Null,
1758
+ ]),
1759
+ ),
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
+ }),
1779
+ ),
1780
+ ),
1781
+ },
1782
+ ) as unknown as Schema.Schema<BulkPatchRulesResponse>;
1783
+
1784
+ export type BulkPatchRulesError = DefaultErrors;
1785
+
1786
+ export const bulkPatchRules: API.PaginatedOperationMethod<
1787
+ BulkPatchRulesRequest,
1788
+ BulkPatchRulesResponse,
1789
+ BulkPatchRulesError,
1790
+ Credentials | HttpClient.HttpClient
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(() => ({
1818
+ input: BulkPatchRulesRequest,
1819
+ output: BulkPatchRulesResponse,
1820
+ errors: [],
1821
+ pagination: {
1822
+ mode: "single",
1823
+ items: "result",
1824
+ } as const,
1825
+ }));