@distilled.cloud/cloudflare 0.2.6 → 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
@@ -4,6 +4,7 @@
4
4
  * Generated from Cloudflare TypeScript SDK.
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service waiting-rooms
6
6
  */
7
+ import * as stream from "effect/Stream";
7
8
  import * as Schema from "effect/Schema";
8
9
  import * as API from "../client/api.js";
9
10
  import * as T from "../traits.js";
@@ -45,7 +46,8 @@ export const GetEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
45
46
  Schema.Literal("visible_managed"),
46
47
  Schema.Null,
47
48
  ])),
48
- }).pipe(Schema.encodeKeys({
49
+ })
50
+ .pipe(Schema.encodeKeys({
49
51
  id: "id",
50
52
  createdOn: "created_on",
51
53
  customPageHtml: "custom_page_html",
@@ -64,7 +66,8 @@ export const GetEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
64
66
  totalActiveUsers: "total_active_users",
65
67
  turnstileAction: "turnstile_action",
66
68
  turnstileMode: "turnstile_mode",
67
- }));
69
+ }))
70
+ .pipe(T.ResponsePath("result"));
68
71
  export const getEvent = API.make(() => ({
69
72
  input: GetEventRequest,
70
73
  output: GetEventResponse,
@@ -77,59 +80,79 @@ export const ListEventsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
77
80
  method: "GET",
78
81
  path: "/zones/{zone_id}/waiting_rooms/{waitingRoomId}/events",
79
82
  }));
80
- export const ListEventsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
81
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
82
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
83
- customPageHtml: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
84
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
85
- disableSessionRenewal: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
86
- eventEndTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
87
- eventStartTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
88
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
89
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
90
- newUsersPerMinute: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
91
- prequeueStartTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
92
- queueingMethod: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
93
- sessionDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
94
- shuffleAtEventStart: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
95
- suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
96
- totalActiveUsers: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
97
- turnstileAction: Schema.optional(Schema.Union([
98
- Schema.Literal("log"),
99
- Schema.Literal("infinite_queue"),
100
- Schema.Null,
101
- ])),
102
- turnstileMode: Schema.optional(Schema.Union([
103
- Schema.Literal("off"),
104
- Schema.Literal("invisible"),
105
- Schema.Literal("visible_non_interactive"),
106
- Schema.Literal("visible_managed"),
107
- Schema.Null,
108
- ])),
109
- }).pipe(Schema.encodeKeys({
110
- id: "id",
111
- createdOn: "created_on",
112
- customPageHtml: "custom_page_html",
113
- description: "description",
114
- disableSessionRenewal: "disable_session_renewal",
115
- eventEndTime: "event_end_time",
116
- eventStartTime: "event_start_time",
117
- modifiedOn: "modified_on",
118
- name: "name",
119
- newUsersPerMinute: "new_users_per_minute",
120
- prequeueStartTime: "prequeue_start_time",
121
- queueingMethod: "queueing_method",
122
- sessionDuration: "session_duration",
123
- shuffleAtEventStart: "shuffle_at_event_start",
124
- suspended: "suspended",
125
- totalActiveUsers: "total_active_users",
126
- turnstileAction: "turnstile_action",
127
- turnstileMode: "turnstile_mode",
128
- })));
129
- export const listEvents = API.make(() => ({
83
+ export const ListEventsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
84
+ result: Schema.Array(Schema.Struct({
85
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
86
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
87
+ customPageHtml: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
88
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
89
+ disableSessionRenewal: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
90
+ eventEndTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
91
+ eventStartTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
92
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
93
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
94
+ newUsersPerMinute: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
95
+ prequeueStartTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
96
+ queueingMethod: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
97
+ sessionDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
98
+ shuffleAtEventStart: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
99
+ suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
100
+ totalActiveUsers: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
101
+ turnstileAction: Schema.optional(Schema.Union([
102
+ Schema.Literal("log"),
103
+ Schema.Literal("infinite_queue"),
104
+ Schema.Null,
105
+ ])),
106
+ turnstileMode: Schema.optional(Schema.Union([
107
+ Schema.Literal("off"),
108
+ Schema.Literal("invisible"),
109
+ Schema.Literal("visible_non_interactive"),
110
+ Schema.Literal("visible_managed"),
111
+ Schema.Null,
112
+ ])),
113
+ }).pipe(Schema.encodeKeys({
114
+ id: "id",
115
+ createdOn: "created_on",
116
+ customPageHtml: "custom_page_html",
117
+ description: "description",
118
+ disableSessionRenewal: "disable_session_renewal",
119
+ eventEndTime: "event_end_time",
120
+ eventStartTime: "event_start_time",
121
+ modifiedOn: "modified_on",
122
+ name: "name",
123
+ newUsersPerMinute: "new_users_per_minute",
124
+ prequeueStartTime: "prequeue_start_time",
125
+ queueingMethod: "queueing_method",
126
+ sessionDuration: "session_duration",
127
+ shuffleAtEventStart: "shuffle_at_event_start",
128
+ suspended: "suspended",
129
+ totalActiveUsers: "total_active_users",
130
+ turnstileAction: "turnstile_action",
131
+ turnstileMode: "turnstile_mode",
132
+ }))),
133
+ resultInfo: Schema.Struct({
134
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
135
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
136
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
137
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
138
+ }).pipe(Schema.encodeKeys({
139
+ count: "count",
140
+ page: "page",
141
+ perPage: "per_page",
142
+ totalCount: "total_count",
143
+ })),
144
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
145
+ export const listEvents = API.makePaginated(() => ({
130
146
  input: ListEventsRequest,
131
147
  output: ListEventsResponse,
132
148
  errors: [],
149
+ pagination: {
150
+ mode: "page",
151
+ inputToken: "page",
152
+ outputToken: "resultInfo.page",
153
+ items: "result",
154
+ pageSize: "perPage",
155
+ },
133
156
  }));
134
157
  export const CreateEventRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
135
158
  waitingRoomId: Schema.String.pipe(T.HttpPath("waitingRoomId")),
@@ -208,7 +231,8 @@ export const CreateEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
208
231
  Schema.Literal("visible_managed"),
209
232
  Schema.Null,
210
233
  ])),
211
- }).pipe(Schema.encodeKeys({
234
+ })
235
+ .pipe(Schema.encodeKeys({
212
236
  id: "id",
213
237
  createdOn: "created_on",
214
238
  customPageHtml: "custom_page_html",
@@ -227,7 +251,8 @@ export const CreateEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
227
251
  totalActiveUsers: "total_active_users",
228
252
  turnstileAction: "turnstile_action",
229
253
  turnstileMode: "turnstile_mode",
230
- }));
254
+ }))
255
+ .pipe(T.ResponsePath("result"));
231
256
  export const createEvent = API.make(() => ({
232
257
  input: CreateEventRequest,
233
258
  output: CreateEventResponse,
@@ -311,7 +336,8 @@ export const UpdateEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
311
336
  Schema.Literal("visible_managed"),
312
337
  Schema.Null,
313
338
  ])),
314
- }).pipe(Schema.encodeKeys({
339
+ })
340
+ .pipe(Schema.encodeKeys({
315
341
  id: "id",
316
342
  createdOn: "created_on",
317
343
  customPageHtml: "custom_page_html",
@@ -330,7 +356,8 @@ export const UpdateEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
330
356
  totalActiveUsers: "total_active_users",
331
357
  turnstileAction: "turnstile_action",
332
358
  turnstileMode: "turnstile_mode",
333
- }));
359
+ }))
360
+ .pipe(T.ResponsePath("result"));
334
361
  export const updateEvent = API.make(() => ({
335
362
  input: UpdateEventRequest,
336
363
  output: UpdateEventResponse,
@@ -414,7 +441,8 @@ export const PatchEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
414
441
  Schema.Literal("visible_managed"),
415
442
  Schema.Null,
416
443
  ])),
417
- }).pipe(Schema.encodeKeys({
444
+ })
445
+ .pipe(Schema.encodeKeys({
418
446
  id: "id",
419
447
  createdOn: "created_on",
420
448
  customPageHtml: "custom_page_html",
@@ -433,7 +461,8 @@ export const PatchEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
433
461
  totalActiveUsers: "total_active_users",
434
462
  turnstileAction: "turnstile_action",
435
463
  turnstileMode: "turnstile_mode",
436
- }));
464
+ }))
465
+ .pipe(T.ResponsePath("result"));
437
466
  export const patchEvent = API.make(() => ({
438
467
  input: PatchEventRequest,
439
468
  output: PatchEventResponse,
@@ -449,7 +478,7 @@ export const DeleteEventRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
449
478
  }));
450
479
  export const DeleteEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
451
480
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
452
- });
481
+ }).pipe(T.ResponsePath("result"));
453
482
  export const deleteEvent = API.make(() => ({
454
483
  input: DeleteEventRequest,
455
484
  output: DeleteEventResponse,
@@ -480,7 +509,8 @@ export const GetEventDetailResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
480
509
  shuffleAtEventStart: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
481
510
  suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
482
511
  totalActiveUsers: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
483
- }).pipe(Schema.encodeKeys({
512
+ })
513
+ .pipe(Schema.encodeKeys({
484
514
  id: "id",
485
515
  createdOn: "created_on",
486
516
  customPageHtml: "custom_page_html",
@@ -497,7 +527,8 @@ export const GetEventDetailResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
497
527
  shuffleAtEventStart: "shuffle_at_event_start",
498
528
  suspended: "suspended",
499
529
  totalActiveUsers: "total_active_users",
500
- }));
530
+ }))
531
+ .pipe(T.ResponsePath("result"));
501
532
  export const getEventDetail = API.make(() => ({
502
533
  input: GetEventDetailRequest,
503
534
  output: GetEventDetailResponse,
@@ -509,7 +540,9 @@ export const PreviewPageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
509
540
  }).pipe(Schema.encodeKeys({ customHtml: "custom_html" }), T.Http({ method: "POST", path: "/zones/{zone_id}/waiting_rooms/preview" }));
510
541
  export const PreviewPageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
511
542
  previewUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
512
- }).pipe(Schema.encodeKeys({ previewUrl: "preview_url" }));
543
+ })
544
+ .pipe(Schema.encodeKeys({ previewUrl: "preview_url" }))
545
+ .pipe(T.ResponsePath("result"));
513
546
  export const previewPage = API.make(() => ({
514
547
  input: PreviewPageRequest,
515
548
  output: PreviewPageResponse,
@@ -522,27 +555,33 @@ export const GetRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
522
555
  method: "GET",
523
556
  path: "/zones/{zone_id}/waiting_rooms/{waitingRoomId}/rules",
524
557
  }));
525
- export const GetRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
526
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
527
- action: Schema.optional(Schema.Union([Schema.Literal("bypass_waiting_room"), Schema.Null])),
528
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
529
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
530
- expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
531
- lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
532
- version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
533
- }).pipe(Schema.encodeKeys({
534
- id: "id",
535
- action: "action",
536
- description: "description",
537
- enabled: "enabled",
538
- expression: "expression",
539
- lastUpdated: "last_updated",
540
- version: "version",
541
- })));
542
- export const getRule = API.make(() => ({
558
+ export const GetRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
559
+ result: Schema.Array(Schema.Struct({
560
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
561
+ action: Schema.optional(Schema.Union([Schema.Literal("bypass_waiting_room"), Schema.Null])),
562
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
563
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
564
+ expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
565
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
566
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
567
+ }).pipe(Schema.encodeKeys({
568
+ id: "id",
569
+ action: "action",
570
+ description: "description",
571
+ enabled: "enabled",
572
+ expression: "expression",
573
+ lastUpdated: "last_updated",
574
+ version: "version",
575
+ }))),
576
+ });
577
+ export const getRule = API.makePaginated(() => ({
543
578
  input: GetRuleRequest,
544
579
  output: GetRuleResponse,
545
580
  errors: [],
581
+ pagination: {
582
+ mode: "single",
583
+ items: "result",
584
+ },
546
585
  }));
547
586
  export const CreateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
548
587
  waitingRoomId: Schema.String.pipe(T.HttpPath("waitingRoomId")),
@@ -557,27 +596,33 @@ export const CreateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
557
596
  method: "POST",
558
597
  path: "/zones/{zone_id}/waiting_rooms/{waitingRoomId}/rules",
559
598
  }));
560
- export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
561
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
562
- action: Schema.optional(Schema.Union([Schema.Literal("bypass_waiting_room"), Schema.Null])),
563
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
564
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
565
- expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
566
- lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
567
- version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
568
- }).pipe(Schema.encodeKeys({
569
- id: "id",
570
- action: "action",
571
- description: "description",
572
- enabled: "enabled",
573
- expression: "expression",
574
- lastUpdated: "last_updated",
575
- version: "version",
576
- })));
577
- export const createRule = API.make(() => ({
599
+ export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
600
+ result: Schema.Array(Schema.Struct({
601
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
602
+ action: Schema.optional(Schema.Union([Schema.Literal("bypass_waiting_room"), Schema.Null])),
603
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
604
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
605
+ expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
606
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
607
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
608
+ }).pipe(Schema.encodeKeys({
609
+ id: "id",
610
+ action: "action",
611
+ description: "description",
612
+ enabled: "enabled",
613
+ expression: "expression",
614
+ lastUpdated: "last_updated",
615
+ version: "version",
616
+ }))),
617
+ });
618
+ export const createRule = API.makePaginated(() => ({
578
619
  input: CreateRuleRequest,
579
620
  output: CreateRuleResponse,
580
621
  errors: [],
622
+ pagination: {
623
+ mode: "single",
624
+ items: "result",
625
+ },
581
626
  }));
582
627
  export const UpdateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
583
628
  waitingRoomId: Schema.String.pipe(T.HttpPath("waitingRoomId")),
@@ -592,27 +637,33 @@ export const UpdateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
592
637
  method: "PUT",
593
638
  path: "/zones/{zone_id}/waiting_rooms/{waitingRoomId}/rules",
594
639
  }));
595
- export const UpdateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
596
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
597
- action: Schema.optional(Schema.Union([Schema.Literal("bypass_waiting_room"), Schema.Null])),
598
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
599
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
600
- expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
601
- lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
602
- version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
603
- }).pipe(Schema.encodeKeys({
604
- id: "id",
605
- action: "action",
606
- description: "description",
607
- enabled: "enabled",
608
- expression: "expression",
609
- lastUpdated: "last_updated",
610
- version: "version",
611
- })));
612
- export const updateRule = API.make(() => ({
640
+ export const UpdateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
641
+ result: Schema.Array(Schema.Struct({
642
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
643
+ action: Schema.optional(Schema.Union([Schema.Literal("bypass_waiting_room"), Schema.Null])),
644
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
645
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
646
+ expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
647
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
648
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
649
+ }).pipe(Schema.encodeKeys({
650
+ id: "id",
651
+ action: "action",
652
+ description: "description",
653
+ enabled: "enabled",
654
+ expression: "expression",
655
+ lastUpdated: "last_updated",
656
+ version: "version",
657
+ }))),
658
+ });
659
+ export const updateRule = API.makePaginated(() => ({
613
660
  input: UpdateRuleRequest,
614
661
  output: UpdateRuleResponse,
615
662
  errors: [],
663
+ pagination: {
664
+ mode: "single",
665
+ items: "result",
666
+ },
616
667
  }));
617
668
  export const PatchRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
618
669
  waitingRoomId: Schema.String.pipe(T.HttpPath("waitingRoomId")),
@@ -637,27 +688,33 @@ export const PatchRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
637
688
  method: "PATCH",
638
689
  path: "/zones/{zone_id}/waiting_rooms/{waitingRoomId}/rules/{ruleId}",
639
690
  }));
640
- export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
641
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
642
- action: Schema.optional(Schema.Union([Schema.Literal("bypass_waiting_room"), Schema.Null])),
643
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
644
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
645
- expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
646
- lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
647
- version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
648
- }).pipe(Schema.encodeKeys({
649
- id: "id",
650
- action: "action",
651
- description: "description",
652
- enabled: "enabled",
653
- expression: "expression",
654
- lastUpdated: "last_updated",
655
- version: "version",
656
- })));
657
- export const patchRule = API.make(() => ({
691
+ export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
692
+ result: Schema.Array(Schema.Struct({
693
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
694
+ action: Schema.optional(Schema.Union([Schema.Literal("bypass_waiting_room"), Schema.Null])),
695
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
696
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
697
+ expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
698
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
699
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
700
+ }).pipe(Schema.encodeKeys({
701
+ id: "id",
702
+ action: "action",
703
+ description: "description",
704
+ enabled: "enabled",
705
+ expression: "expression",
706
+ lastUpdated: "last_updated",
707
+ version: "version",
708
+ }))),
709
+ });
710
+ export const patchRule = API.makePaginated(() => ({
658
711
  input: PatchRuleRequest,
659
712
  output: PatchRuleResponse,
660
713
  errors: [],
714
+ pagination: {
715
+ mode: "single",
716
+ items: "result",
717
+ },
661
718
  }));
662
719
  export const DeleteRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
663
720
  waitingRoomId: Schema.String.pipe(T.HttpPath("waitingRoomId")),
@@ -667,36 +724,44 @@ export const DeleteRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
667
724
  method: "DELETE",
668
725
  path: "/zones/{zone_id}/waiting_rooms/{waitingRoomId}/rules/{ruleId}",
669
726
  }));
670
- export const DeleteRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
671
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
672
- action: Schema.optional(Schema.Union([Schema.Literal("bypass_waiting_room"), Schema.Null])),
673
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
674
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
675
- expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
676
- lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
677
- version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
678
- }).pipe(Schema.encodeKeys({
679
- id: "id",
680
- action: "action",
681
- description: "description",
682
- enabled: "enabled",
683
- expression: "expression",
684
- lastUpdated: "last_updated",
685
- version: "version",
686
- })));
687
- export const deleteRule = API.make(() => ({
727
+ export const DeleteRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
728
+ result: Schema.Array(Schema.Struct({
729
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
730
+ action: Schema.optional(Schema.Union([Schema.Literal("bypass_waiting_room"), Schema.Null])),
731
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
732
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
733
+ expression: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
734
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
735
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
736
+ }).pipe(Schema.encodeKeys({
737
+ id: "id",
738
+ action: "action",
739
+ description: "description",
740
+ enabled: "enabled",
741
+ expression: "expression",
742
+ lastUpdated: "last_updated",
743
+ version: "version",
744
+ }))),
745
+ });
746
+ export const deleteRule = API.makePaginated(() => ({
688
747
  input: DeleteRuleRequest,
689
748
  output: DeleteRuleResponse,
690
749
  errors: [],
750
+ pagination: {
751
+ mode: "single",
752
+ items: "result",
753
+ },
691
754
  }));
692
755
  export const GetSettingRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
693
756
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
694
757
  }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/waiting_rooms/settings" }));
695
758
  export const GetSettingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
696
759
  searchEngineCrawlerBypass: Schema.Boolean,
697
- }).pipe(Schema.encodeKeys({
760
+ })
761
+ .pipe(Schema.encodeKeys({
698
762
  searchEngineCrawlerBypass: "search_engine_crawler_bypass",
699
- }));
763
+ }))
764
+ .pipe(T.ResponsePath("result"));
700
765
  export const getSetting = API.make(() => ({
701
766
  input: GetSettingRequest,
702
767
  output: GetSettingResponse,
@@ -710,9 +775,11 @@ export const PutSettingRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
710
775
  }), T.Http({ method: "PUT", path: "/zones/{zone_id}/waiting_rooms/settings" }));
711
776
  export const PutSettingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
712
777
  searchEngineCrawlerBypass: Schema.Boolean,
713
- }).pipe(Schema.encodeKeys({
778
+ })
779
+ .pipe(Schema.encodeKeys({
714
780
  searchEngineCrawlerBypass: "search_engine_crawler_bypass",
715
- }));
781
+ }))
782
+ .pipe(T.ResponsePath("result"));
716
783
  export const putSetting = API.make(() => ({
717
784
  input: PutSettingRequest,
718
785
  output: PutSettingResponse,
@@ -726,9 +793,11 @@ export const PatchSettingRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
726
793
  }), T.Http({ method: "PATCH", path: "/zones/{zone_id}/waiting_rooms/settings" }));
727
794
  export const PatchSettingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
728
795
  searchEngineCrawlerBypass: Schema.Boolean,
729
- }).pipe(Schema.encodeKeys({
796
+ })
797
+ .pipe(Schema.encodeKeys({
730
798
  searchEngineCrawlerBypass: "search_engine_crawler_bypass",
731
- }));
799
+ }))
800
+ .pipe(T.ResponsePath("result"));
732
801
  export const patchSetting = API.make(() => ({
733
802
  input: PatchSettingRequest,
734
803
  output: PatchSettingResponse,
@@ -755,13 +824,15 @@ export const GetStatusResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
755
824
  ]),
756
825
  Schema.Null,
757
826
  ])),
758
- }).pipe(Schema.encodeKeys({
827
+ })
828
+ .pipe(Schema.encodeKeys({
759
829
  estimatedQueuedUsers: "estimated_queued_users",
760
830
  estimatedTotalActiveUsers: "estimated_total_active_users",
761
831
  eventId: "event_id",
762
832
  maxEstimatedTimeMinutes: "max_estimated_time_minutes",
763
833
  status: "status",
764
- }));
834
+ }))
835
+ .pipe(T.ResponsePath("result"));
765
836
  export const getStatus = API.make(() => ({
766
837
  input: GetStatusRequest,
767
838
  output: GetStatusResponse,
@@ -872,7 +943,8 @@ export const GetWaitingRoomResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
872
943
  ]),
873
944
  Schema.Null,
874
945
  ])),
875
- }).pipe(Schema.encodeKeys({
946
+ })
947
+ .pipe(Schema.encodeKeys({
876
948
  id: "id",
877
949
  additionalRoutes: "additional_routes",
878
950
  cookieAttributes: "cookie_attributes",
@@ -899,7 +971,8 @@ export const GetWaitingRoomResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
899
971
  totalActiveUsers: "total_active_users",
900
972
  turnstileAction: "turnstile_action",
901
973
  turnstileMode: "turnstile_mode",
902
- }));
974
+ }))
975
+ .pipe(T.ResponsePath("result"));
903
976
  export const getWaitingRoom = API.make(() => ({
904
977
  input: GetWaitingRoomRequest,
905
978
  output: GetWaitingRoomResponse,
@@ -911,136 +984,159 @@ export const ListWaitingRoomsRequest =
911
984
  path: "/{accountOrZone}/{accountOrZoneId}/waiting_rooms",
912
985
  }));
913
986
  export const ListWaitingRoomsResponse =
914
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
915
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
916
- additionalRoutes: Schema.optional(Schema.Union([
917
- Schema.Array(Schema.Struct({
918
- host: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
919
- path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
920
- })),
921
- Schema.Null,
922
- ])),
923
- cookieAttributes: Schema.optional(Schema.Union([
924
- Schema.Struct({
925
- samesite: Schema.optional(Schema.Union([
926
- Schema.Literals(["auto", "lax", "none", "strict"]),
927
- Schema.Null,
928
- ])),
929
- secure: Schema.optional(Schema.Union([
930
- Schema.Literals(["auto", "always", "never"]),
931
- Schema.Null,
932
- ])),
933
- }),
934
- Schema.Null,
935
- ])),
936
- cookieSuffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
937
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
938
- customPageHtml: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
939
- defaultTemplateLanguage: Schema.optional(Schema.Union([
940
- Schema.Literals([
941
- "en-US",
942
- "es-ES",
943
- "de-DE",
944
- "fr-FR",
945
- "it-IT",
946
- "ja-JP",
947
- "ko-KR",
948
- "pt-BR",
949
- "zh-CN",
950
- "zh-TW",
951
- "nl-NL",
952
- "pl-PL",
953
- "id-ID",
954
- "tr-TR",
955
- "ar-EG",
956
- "ru-RU",
957
- "fa-IR",
958
- "bg-BG",
959
- "hr-HR",
960
- "cs-CZ",
961
- "da-DK",
962
- "fi-FI",
963
- "lt-LT",
964
- "ms-MY",
965
- "nb-NO",
966
- "ro-RO",
967
- "el-GR",
968
- "he-IL",
969
- "hi-IN",
970
- "hu-HU",
971
- "sr-BA",
972
- "sk-SK",
973
- "sl-SI",
974
- "sv-SE",
975
- "tl-PH",
976
- "th-TH",
977
- "uk-UA",
978
- "vi-VN",
979
- ]),
980
- Schema.Null,
981
- ])),
982
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
983
- disableSessionRenewal: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
984
- enabledOriginCommands: Schema.optional(Schema.Union([Schema.Array(Schema.Literal("revoke")), Schema.Null])),
985
- host: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
986
- jsonResponseEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
987
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
988
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
989
- newUsersPerMinute: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
990
- nextEventPrequeueStartTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
991
- nextEventStartTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
992
- path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
993
- queueAll: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
994
- queueingMethod: Schema.optional(Schema.Union([
995
- Schema.Literals(["fifo", "random", "passthrough", "reject"]),
996
- Schema.Null,
997
- ])),
998
- queueingStatusCode: Schema.optional(Schema.Union([Schema.Literals(["200", "202", "429"]), Schema.Null])),
999
- sessionDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1000
- suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1001
- totalActiveUsers: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1002
- turnstileAction: Schema.optional(Schema.Union([Schema.Literals(["log", "infinite_queue"]), Schema.Null])),
1003
- turnstileMode: Schema.optional(Schema.Union([
1004
- Schema.Literals([
1005
- "off",
1006
- "invisible",
1007
- "visible_non_interactive",
1008
- "visible_managed",
1009
- ]),
1010
- Schema.Null,
1011
- ])),
1012
- }).pipe(Schema.encodeKeys({
1013
- id: "id",
1014
- additionalRoutes: "additional_routes",
1015
- cookieAttributes: "cookie_attributes",
1016
- cookieSuffix: "cookie_suffix",
1017
- createdOn: "created_on",
1018
- customPageHtml: "custom_page_html",
1019
- defaultTemplateLanguage: "default_template_language",
1020
- description: "description",
1021
- disableSessionRenewal: "disable_session_renewal",
1022
- enabledOriginCommands: "enabled_origin_commands",
1023
- host: "host",
1024
- jsonResponseEnabled: "json_response_enabled",
1025
- modifiedOn: "modified_on",
1026
- name: "name",
1027
- newUsersPerMinute: "new_users_per_minute",
1028
- nextEventPrequeueStartTime: "next_event_prequeue_start_time",
1029
- nextEventStartTime: "next_event_start_time",
1030
- path: "path",
1031
- queueAll: "queue_all",
1032
- queueingMethod: "queueing_method",
1033
- queueingStatusCode: "queueing_status_code",
1034
- sessionDuration: "session_duration",
1035
- suspended: "suspended",
1036
- totalActiveUsers: "total_active_users",
1037
- turnstileAction: "turnstile_action",
1038
- turnstileMode: "turnstile_mode",
1039
- })));
1040
- export const listWaitingRooms = API.make(() => ({
987
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
988
+ result: Schema.Array(Schema.Struct({
989
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
990
+ additionalRoutes: Schema.optional(Schema.Union([
991
+ Schema.Array(Schema.Struct({
992
+ host: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
993
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
994
+ })),
995
+ Schema.Null,
996
+ ])),
997
+ cookieAttributes: Schema.optional(Schema.Union([
998
+ Schema.Struct({
999
+ samesite: Schema.optional(Schema.Union([
1000
+ Schema.Literals(["auto", "lax", "none", "strict"]),
1001
+ Schema.Null,
1002
+ ])),
1003
+ secure: Schema.optional(Schema.Union([
1004
+ Schema.Literals(["auto", "always", "never"]),
1005
+ Schema.Null,
1006
+ ])),
1007
+ }),
1008
+ Schema.Null,
1009
+ ])),
1010
+ cookieSuffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1011
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1012
+ customPageHtml: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1013
+ defaultTemplateLanguage: Schema.optional(Schema.Union([
1014
+ Schema.Literals([
1015
+ "en-US",
1016
+ "es-ES",
1017
+ "de-DE",
1018
+ "fr-FR",
1019
+ "it-IT",
1020
+ "ja-JP",
1021
+ "ko-KR",
1022
+ "pt-BR",
1023
+ "zh-CN",
1024
+ "zh-TW",
1025
+ "nl-NL",
1026
+ "pl-PL",
1027
+ "id-ID",
1028
+ "tr-TR",
1029
+ "ar-EG",
1030
+ "ru-RU",
1031
+ "fa-IR",
1032
+ "bg-BG",
1033
+ "hr-HR",
1034
+ "cs-CZ",
1035
+ "da-DK",
1036
+ "fi-FI",
1037
+ "lt-LT",
1038
+ "ms-MY",
1039
+ "nb-NO",
1040
+ "ro-RO",
1041
+ "el-GR",
1042
+ "he-IL",
1043
+ "hi-IN",
1044
+ "hu-HU",
1045
+ "sr-BA",
1046
+ "sk-SK",
1047
+ "sl-SI",
1048
+ "sv-SE",
1049
+ "tl-PH",
1050
+ "th-TH",
1051
+ "uk-UA",
1052
+ "vi-VN",
1053
+ ]),
1054
+ Schema.Null,
1055
+ ])),
1056
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1057
+ disableSessionRenewal: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1058
+ enabledOriginCommands: Schema.optional(Schema.Union([Schema.Array(Schema.Literal("revoke")), Schema.Null])),
1059
+ host: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1060
+ jsonResponseEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1061
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1062
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1063
+ newUsersPerMinute: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1064
+ nextEventPrequeueStartTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1065
+ nextEventStartTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1066
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1067
+ queueAll: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1068
+ queueingMethod: Schema.optional(Schema.Union([
1069
+ Schema.Literals(["fifo", "random", "passthrough", "reject"]),
1070
+ Schema.Null,
1071
+ ])),
1072
+ queueingStatusCode: Schema.optional(Schema.Union([Schema.Literals(["200", "202", "429"]), Schema.Null])),
1073
+ sessionDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1074
+ suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1075
+ totalActiveUsers: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1076
+ turnstileAction: Schema.optional(Schema.Union([
1077
+ Schema.Literals(["log", "infinite_queue"]),
1078
+ Schema.Null,
1079
+ ])),
1080
+ turnstileMode: Schema.optional(Schema.Union([
1081
+ Schema.Literals([
1082
+ "off",
1083
+ "invisible",
1084
+ "visible_non_interactive",
1085
+ "visible_managed",
1086
+ ]),
1087
+ Schema.Null,
1088
+ ])),
1089
+ }).pipe(Schema.encodeKeys({
1090
+ id: "id",
1091
+ additionalRoutes: "additional_routes",
1092
+ cookieAttributes: "cookie_attributes",
1093
+ cookieSuffix: "cookie_suffix",
1094
+ createdOn: "created_on",
1095
+ customPageHtml: "custom_page_html",
1096
+ defaultTemplateLanguage: "default_template_language",
1097
+ description: "description",
1098
+ disableSessionRenewal: "disable_session_renewal",
1099
+ enabledOriginCommands: "enabled_origin_commands",
1100
+ host: "host",
1101
+ jsonResponseEnabled: "json_response_enabled",
1102
+ modifiedOn: "modified_on",
1103
+ name: "name",
1104
+ newUsersPerMinute: "new_users_per_minute",
1105
+ nextEventPrequeueStartTime: "next_event_prequeue_start_time",
1106
+ nextEventStartTime: "next_event_start_time",
1107
+ path: "path",
1108
+ queueAll: "queue_all",
1109
+ queueingMethod: "queueing_method",
1110
+ queueingStatusCode: "queueing_status_code",
1111
+ sessionDuration: "session_duration",
1112
+ suspended: "suspended",
1113
+ totalActiveUsers: "total_active_users",
1114
+ turnstileAction: "turnstile_action",
1115
+ turnstileMode: "turnstile_mode",
1116
+ }))),
1117
+ resultInfo: Schema.Struct({
1118
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1119
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1120
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1121
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1122
+ }).pipe(Schema.encodeKeys({
1123
+ count: "count",
1124
+ page: "page",
1125
+ perPage: "per_page",
1126
+ totalCount: "total_count",
1127
+ })),
1128
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1129
+ export const listWaitingRooms = API.makePaginated(() => ({
1041
1130
  input: ListWaitingRoomsRequest,
1042
1131
  output: ListWaitingRoomsResponse,
1043
1132
  errors: [],
1133
+ pagination: {
1134
+ mode: "page",
1135
+ inputToken: "page",
1136
+ outputToken: "resultInfo.page",
1137
+ items: "result",
1138
+ pageSize: "perPage",
1139
+ },
1044
1140
  }));
1045
1141
  export const CreateWaitingRoomRequest =
1046
1142
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1238,7 +1334,8 @@ export const CreateWaitingRoomResponse =
1238
1334
  ]),
1239
1335
  Schema.Null,
1240
1336
  ])),
1241
- }).pipe(Schema.encodeKeys({
1337
+ })
1338
+ .pipe(Schema.encodeKeys({
1242
1339
  id: "id",
1243
1340
  additionalRoutes: "additional_routes",
1244
1341
  cookieAttributes: "cookie_attributes",
@@ -1265,7 +1362,8 @@ export const CreateWaitingRoomResponse =
1265
1362
  totalActiveUsers: "total_active_users",
1266
1363
  turnstileAction: "turnstile_action",
1267
1364
  turnstileMode: "turnstile_mode",
1268
- }));
1365
+ }))
1366
+ .pipe(T.ResponsePath("result"));
1269
1367
  export const createWaitingRoom = API.make(() => ({
1270
1368
  input: CreateWaitingRoomRequest,
1271
1369
  output: CreateWaitingRoomResponse,
@@ -1471,7 +1569,8 @@ export const UpdateWaitingRoomResponse =
1471
1569
  ]),
1472
1570
  Schema.Null,
1473
1571
  ])),
1474
- }).pipe(Schema.encodeKeys({
1572
+ })
1573
+ .pipe(Schema.encodeKeys({
1475
1574
  id: "id",
1476
1575
  additionalRoutes: "additional_routes",
1477
1576
  cookieAttributes: "cookie_attributes",
@@ -1498,7 +1597,8 @@ export const UpdateWaitingRoomResponse =
1498
1597
  totalActiveUsers: "total_active_users",
1499
1598
  turnstileAction: "turnstile_action",
1500
1599
  turnstileMode: "turnstile_mode",
1501
- }));
1600
+ }))
1601
+ .pipe(T.ResponsePath("result"));
1502
1602
  export const updateWaitingRoom = API.make(() => ({
1503
1603
  input: UpdateWaitingRoomRequest,
1504
1604
  output: UpdateWaitingRoomResponse,
@@ -1704,7 +1804,8 @@ export const PatchWaitingRoomResponse =
1704
1804
  ]),
1705
1805
  Schema.Null,
1706
1806
  ])),
1707
- }).pipe(Schema.encodeKeys({
1807
+ })
1808
+ .pipe(Schema.encodeKeys({
1708
1809
  id: "id",
1709
1810
  additionalRoutes: "additional_routes",
1710
1811
  cookieAttributes: "cookie_attributes",
@@ -1731,7 +1832,8 @@ export const PatchWaitingRoomResponse =
1731
1832
  totalActiveUsers: "total_active_users",
1732
1833
  turnstileAction: "turnstile_action",
1733
1834
  turnstileMode: "turnstile_mode",
1734
- }));
1835
+ }))
1836
+ .pipe(T.ResponsePath("result"));
1735
1837
  export const patchWaitingRoom = API.make(() => ({
1736
1838
  input: PatchWaitingRoomRequest,
1737
1839
  output: PatchWaitingRoomResponse,
@@ -1748,7 +1850,7 @@ export const DeleteWaitingRoomRequest =
1748
1850
  export const DeleteWaitingRoomResponse =
1749
1851
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1750
1852
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1751
- });
1853
+ }).pipe(T.ResponsePath("result"));
1752
1854
  export const deleteWaitingRoom = API.make(() => ({
1753
1855
  input: DeleteWaitingRoomRequest,
1754
1856
  output: DeleteWaitingRoomResponse,