@distilled.cloud/cloudflare 0.29.0 → 0.30.0

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 (458) hide show
  1. package/lib/services/abuse-reports.d.ts.map +1 -1
  2. package/lib/services/abuse-reports.js +26 -26
  3. package/lib/services/abuse-reports.js.map +1 -1
  4. package/lib/services/accounts.d.ts.map +1 -1
  5. package/lib/services/accounts.js +114 -123
  6. package/lib/services/accounts.js.map +1 -1
  7. package/lib/services/acm.d.ts.map +1 -1
  8. package/lib/services/acm.js +23 -23
  9. package/lib/services/acm.js.map +1 -1
  10. package/lib/services/addressing.d.ts.map +1 -1
  11. package/lib/services/addressing.js +132 -132
  12. package/lib/services/addressing.js.map +1 -1
  13. package/lib/services/ai-gateway.d.ts.map +1 -1
  14. package/lib/services/ai-gateway.js +213 -207
  15. package/lib/services/ai-gateway.js.map +1 -1
  16. package/lib/services/ai-security.d.ts.map +1 -1
  17. package/lib/services/ai-security.js +13 -13
  18. package/lib/services/ai-security.js.map +1 -1
  19. package/lib/services/ai.d.ts.map +1 -1
  20. package/lib/services/ai.js +62 -62
  21. package/lib/services/ai.js.map +1 -1
  22. package/lib/services/aisearch.d.ts.map +1 -1
  23. package/lib/services/aisearch.js +187 -193
  24. package/lib/services/aisearch.js.map +1 -1
  25. package/lib/services/alerting.d.ts.map +1 -1
  26. package/lib/services/alerting.js +78 -78
  27. package/lib/services/alerting.js.map +1 -1
  28. package/lib/services/api-gateway.d.ts.map +1 -1
  29. package/lib/services/api-gateway.js +168 -177
  30. package/lib/services/api-gateway.js.map +1 -1
  31. package/lib/services/argo.js +12 -12
  32. package/lib/services/argo.js.map +1 -1
  33. package/lib/services/audit-logs.d.ts.map +1 -1
  34. package/lib/services/audit-logs.js +9 -9
  35. package/lib/services/audit-logs.js.map +1 -1
  36. package/lib/services/billing.d.ts.map +1 -1
  37. package/lib/services/billing.js +11 -11
  38. package/lib/services/billing.js.map +1 -1
  39. package/lib/services/bot-management.d.ts.map +1 -1
  40. package/lib/services/bot-management.js +18 -30
  41. package/lib/services/bot-management.js.map +1 -1
  42. package/lib/services/botnet-feed.d.ts.map +1 -1
  43. package/lib/services/botnet-feed.js +12 -12
  44. package/lib/services/botnet-feed.js.map +1 -1
  45. package/lib/services/brand-protection.d.ts.map +1 -1
  46. package/lib/services/brand-protection.js +59 -59
  47. package/lib/services/brand-protection.js.map +1 -1
  48. package/lib/services/browser-rendering.d.ts.map +1 -1
  49. package/lib/services/browser-rendering.js +103 -103
  50. package/lib/services/browser-rendering.js.map +1 -1
  51. package/lib/services/cache.d.ts.map +1 -1
  52. package/lib/services/cache.js +72 -72
  53. package/lib/services/cache.js.map +1 -1
  54. package/lib/services/calls.d.ts.map +1 -1
  55. package/lib/services/calls.js +31 -31
  56. package/lib/services/calls.js.map +1 -1
  57. package/lib/services/certificate-authorities.js +6 -6
  58. package/lib/services/certificate-authorities.js.map +1 -1
  59. package/lib/services/client-certificates.js +18 -18
  60. package/lib/services/client-certificates.js.map +1 -1
  61. package/lib/services/cloud-connector.d.ts.map +1 -1
  62. package/lib/services/cloud-connector.js +8 -8
  63. package/lib/services/cloud-connector.js.map +1 -1
  64. package/lib/services/cloudforce-one.d.ts.map +1 -1
  65. package/lib/services/cloudforce-one.js +178 -178
  66. package/lib/services/cloudforce-one.js.map +1 -1
  67. package/lib/services/connectivity.js +25 -25
  68. package/lib/services/connectivity.js.map +1 -1
  69. package/lib/services/containers.js +49 -49
  70. package/lib/services/containers.js.map +1 -1
  71. package/lib/services/content-scanning.d.ts.map +1 -1
  72. package/lib/services/content-scanning.js +29 -29
  73. package/lib/services/content-scanning.js.map +1 -1
  74. package/lib/services/csam-scanner.d.ts.map +1 -1
  75. package/lib/services/csam-scanner.js +8 -8
  76. package/lib/services/csam-scanner.js.map +1 -1
  77. package/lib/services/custom-certificates.d.ts.map +1 -1
  78. package/lib/services/custom-certificates.js +24 -24
  79. package/lib/services/custom-certificates.js.map +1 -1
  80. package/lib/services/custom-csrs.d.ts.map +1 -1
  81. package/lib/services/custom-csrs.js +22 -22
  82. package/lib/services/custom-csrs.js.map +1 -1
  83. package/lib/services/custom-hostnames.d.ts.map +1 -1
  84. package/lib/services/custom-hostnames.js +40 -40
  85. package/lib/services/custom-hostnames.js.map +1 -1
  86. package/lib/services/custom-nameservers.js +11 -11
  87. package/lib/services/custom-nameservers.js.map +1 -1
  88. package/lib/services/custom-pages.d.ts.map +1 -1
  89. package/lib/services/custom-pages.js +43 -43
  90. package/lib/services/custom-pages.js.map +1 -1
  91. package/lib/services/d1.d.ts +4 -4
  92. package/lib/services/d1.d.ts.map +1 -1
  93. package/lib/services/d1.js +69 -51
  94. package/lib/services/d1.js.map +1 -1
  95. package/lib/services/dcv-delegation.js +3 -3
  96. package/lib/services/dcv-delegation.js.map +1 -1
  97. package/lib/services/ddos-protection.js +126 -126
  98. package/lib/services/ddos-protection.js.map +1 -1
  99. package/lib/services/diagnostics.js +27 -27
  100. package/lib/services/diagnostics.js.map +1 -1
  101. package/lib/services/dls.d.ts.map +1 -1
  102. package/lib/services/dls.js +26 -26
  103. package/lib/services/dls.js.map +1 -1
  104. package/lib/services/dns-firewall.d.ts.map +1 -1
  105. package/lib/services/dns-firewall.js +34 -34
  106. package/lib/services/dns-firewall.js.map +1 -1
  107. package/lib/services/dns.d.ts.map +1 -1
  108. package/lib/services/dns.js +268 -268
  109. package/lib/services/dns.js.map +1 -1
  110. package/lib/services/durable-objects.d.ts.map +1 -1
  111. package/lib/services/durable-objects.js +11 -11
  112. package/lib/services/durable-objects.js.map +1 -1
  113. package/lib/services/email-auth.d.ts.map +1 -1
  114. package/lib/services/email-auth.js +13 -13
  115. package/lib/services/email-auth.js.map +1 -1
  116. package/lib/services/email-routing.d.ts.map +1 -1
  117. package/lib/services/email-routing.js +70 -70
  118. package/lib/services/email-routing.js.map +1 -1
  119. package/lib/services/email-security.d.ts.map +1 -1
  120. package/lib/services/email-security.js +195 -195
  121. package/lib/services/email-security.js.map +1 -1
  122. package/lib/services/email-sending.d.ts.map +1 -1
  123. package/lib/services/email-sending.js +28 -28
  124. package/lib/services/email-sending.js.map +1 -1
  125. package/lib/services/filters.d.ts.map +1 -1
  126. package/lib/services/filters.js +25 -25
  127. package/lib/services/filters.js.map +1 -1
  128. package/lib/services/firewall.d.ts.map +1 -1
  129. package/lib/services/firewall.js +149 -149
  130. package/lib/services/firewall.js.map +1 -1
  131. package/lib/services/flagship.d.ts.map +1 -1
  132. package/lib/services/flagship.js +52 -52
  133. package/lib/services/flagship.js.map +1 -1
  134. package/lib/services/fraud.js +8 -8
  135. package/lib/services/fraud.js.map +1 -1
  136. package/lib/services/google-tag-gateway.d.ts.map +1 -1
  137. package/lib/services/google-tag-gateway.js +7 -7
  138. package/lib/services/google-tag-gateway.js.map +1 -1
  139. package/lib/services/healthchecks.d.ts.map +1 -1
  140. package/lib/services/healthchecks.js +31 -31
  141. package/lib/services/healthchecks.js.map +1 -1
  142. package/lib/services/hostnames.d.ts.map +1 -1
  143. package/lib/services/hostnames.js +10 -10
  144. package/lib/services/hostnames.js.map +1 -1
  145. package/lib/services/hyperdrive.d.ts.map +1 -1
  146. package/lib/services/hyperdrive.js +32 -32
  147. package/lib/services/hyperdrive.js.map +1 -1
  148. package/lib/services/iam.d.ts.map +1 -1
  149. package/lib/services/iam.js +113 -113
  150. package/lib/services/iam.js.map +1 -1
  151. package/lib/services/images.d.ts.map +1 -1
  152. package/lib/services/images.js +59 -59
  153. package/lib/services/images.js.map +1 -1
  154. package/lib/services/intel.d.ts.map +1 -1
  155. package/lib/services/intel.js +102 -102
  156. package/lib/services/intel.js.map +1 -1
  157. package/lib/services/ips.js +5 -5
  158. package/lib/services/ips.js.map +1 -1
  159. package/lib/services/keyless-certificates.js +17 -17
  160. package/lib/services/keyless-certificates.js.map +1 -1
  161. package/lib/services/kv.d.ts.map +1 -1
  162. package/lib/services/kv.js +54 -54
  163. package/lib/services/kv.js.map +1 -1
  164. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  165. package/lib/services/leaked-credential-checks.js +22 -22
  166. package/lib/services/leaked-credential-checks.js.map +1 -1
  167. package/lib/services/load-balancers.d.ts.map +1 -1
  168. package/lib/services/load-balancers.js +139 -157
  169. package/lib/services/load-balancers.js.map +1 -1
  170. package/lib/services/logpush.d.ts.map +1 -1
  171. package/lib/services/logpush.js +69 -69
  172. package/lib/services/logpush.js.map +1 -1
  173. package/lib/services/logs.d.ts.map +1 -1
  174. package/lib/services/logs.js +58 -58
  175. package/lib/services/logs.js.map +1 -1
  176. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  177. package/lib/services/magic-cloud-networking.js +138 -168
  178. package/lib/services/magic-cloud-networking.js.map +1 -1
  179. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  180. package/lib/services/magic-network-monitoring.js +47 -65
  181. package/lib/services/magic-network-monitoring.js.map +1 -1
  182. package/lib/services/magic-transit.d.ts.map +1 -1
  183. package/lib/services/magic-transit.js +340 -364
  184. package/lib/services/magic-transit.js.map +1 -1
  185. package/lib/services/managed-transforms.js +11 -11
  186. package/lib/services/managed-transforms.js.map +1 -1
  187. package/lib/services/memberships.d.ts.map +1 -1
  188. package/lib/services/memberships.js +25 -25
  189. package/lib/services/memberships.js.map +1 -1
  190. package/lib/services/moq.d.ts.map +1 -1
  191. package/lib/services/moq.js +23 -23
  192. package/lib/services/moq.js.map +1 -1
  193. package/lib/services/mtls-certificates.d.ts.map +1 -1
  194. package/lib/services/mtls-certificates.js +17 -17
  195. package/lib/services/mtls-certificates.js.map +1 -1
  196. package/lib/services/network-interconnects.d.ts.map +1 -1
  197. package/lib/services/network-interconnects.js +56 -56
  198. package/lib/services/network-interconnects.js.map +1 -1
  199. package/lib/services/organizations.d.ts.map +1 -1
  200. package/lib/services/organizations.js +42 -42
  201. package/lib/services/organizations.js.map +1 -1
  202. package/lib/services/origin-ca-certificates.js +14 -14
  203. package/lib/services/origin-ca-certificates.js.map +1 -1
  204. package/lib/services/origin-post-quantum-encryption.js +6 -6
  205. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  206. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  207. package/lib/services/origin-tls-client-auth.js +52 -52
  208. package/lib/services/origin-tls-client-auth.js.map +1 -1
  209. package/lib/services/origin-tls-compliance-modes.js +12 -12
  210. package/lib/services/origin-tls-compliance-modes.js.map +1 -1
  211. package/lib/services/page-rules.d.ts.map +1 -1
  212. package/lib/services/page-rules.js +62 -62
  213. package/lib/services/page-rules.js.map +1 -1
  214. package/lib/services/page-shield.d.ts.map +1 -1
  215. package/lib/services/page-shield.js +45 -48
  216. package/lib/services/page-shield.js.map +1 -1
  217. package/lib/services/pages.d.ts.map +1 -1
  218. package/lib/services/pages.js +78 -78
  219. package/lib/services/pages.js.map +1 -1
  220. package/lib/services/pipelines.d.ts.map +1 -1
  221. package/lib/services/pipelines.js +102 -102
  222. package/lib/services/pipelines.js.map +1 -1
  223. package/lib/services/queues.d.ts.map +1 -1
  224. package/lib/services/queues.js +100 -103
  225. package/lib/services/queues.js.map +1 -1
  226. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  227. package/lib/services/r2-data-catalog.js +42 -42
  228. package/lib/services/r2-data-catalog.js.map +1 -1
  229. package/lib/services/r2.d.ts.map +1 -1
  230. package/lib/services/r2.js +190 -190
  231. package/lib/services/r2.js.map +1 -1
  232. package/lib/services/radar.d.ts.map +1 -1
  233. package/lib/services/radar.js +991 -1009
  234. package/lib/services/radar.js.map +1 -1
  235. package/lib/services/rate-limits.d.ts.map +1 -1
  236. package/lib/services/rate-limits.js +24 -24
  237. package/lib/services/rate-limits.js.map +1 -1
  238. package/lib/services/realtime-kit.d.ts.map +1 -1
  239. package/lib/services/realtime-kit.js +276 -276
  240. package/lib/services/realtime-kit.js.map +1 -1
  241. package/lib/services/registrar.d.ts.map +1 -1
  242. package/lib/services/registrar.js +28 -28
  243. package/lib/services/registrar.js.map +1 -1
  244. package/lib/services/request-tracers.d.ts.map +1 -1
  245. package/lib/services/request-tracers.js +7 -7
  246. package/lib/services/request-tracers.js.map +1 -1
  247. package/lib/services/resource-sharing.d.ts.map +1 -1
  248. package/lib/services/resource-sharing.js +49 -49
  249. package/lib/services/resource-sharing.js.map +1 -1
  250. package/lib/services/resource-tagging.d.ts.map +1 -1
  251. package/lib/services/resource-tagging.js +56 -56
  252. package/lib/services/resource-tagging.js.map +1 -1
  253. package/lib/services/rules.d.ts.map +1 -1
  254. package/lib/services/rules.js +50 -50
  255. package/lib/services/rules.js.map +1 -1
  256. package/lib/services/rulesets.d.ts +2 -2
  257. package/lib/services/rulesets.d.ts.map +1 -1
  258. package/lib/services/rulesets.js +226 -190
  259. package/lib/services/rulesets.js.map +1 -1
  260. package/lib/services/rum.d.ts.map +1 -1
  261. package/lib/services/rum.js +35 -35
  262. package/lib/services/rum.js.map +1 -1
  263. package/lib/services/schema-validation.d.ts.map +1 -1
  264. package/lib/services/schema-validation.js +43 -46
  265. package/lib/services/schema-validation.js.map +1 -1
  266. package/lib/services/secrets-store.d.ts.map +1 -1
  267. package/lib/services/secrets-store.js +41 -41
  268. package/lib/services/secrets-store.js.map +1 -1
  269. package/lib/services/security-center.d.ts.map +1 -1
  270. package/lib/services/security-center.js +54 -57
  271. package/lib/services/security-center.js.map +1 -1
  272. package/lib/services/security-txt.d.ts.map +1 -1
  273. package/lib/services/security-txt.js +12 -12
  274. package/lib/services/security-txt.js.map +1 -1
  275. package/lib/services/snippets.d.ts.map +1 -1
  276. package/lib/services/snippets.js +31 -31
  277. package/lib/services/snippets.js.map +1 -1
  278. package/lib/services/spectrum.d.ts.map +1 -1
  279. package/lib/services/spectrum.js +35 -35
  280. package/lib/services/spectrum.js.map +1 -1
  281. package/lib/services/speed.d.ts.map +1 -1
  282. package/lib/services/speed.js +41 -41
  283. package/lib/services/speed.js.map +1 -1
  284. package/lib/services/ssl.d.ts.map +1 -1
  285. package/lib/services/ssl.js +48 -48
  286. package/lib/services/ssl.js.map +1 -1
  287. package/lib/services/stream.d.ts.map +1 -1
  288. package/lib/services/stream.js +147 -147
  289. package/lib/services/stream.js.map +1 -1
  290. package/lib/services/tenant-custom-nameservers.js +11 -11
  291. package/lib/services/tenant-custom-nameservers.js.map +1 -1
  292. package/lib/services/tenants.d.ts.map +1 -1
  293. package/lib/services/tenants.js +28 -28
  294. package/lib/services/tenants.js.map +1 -1
  295. package/lib/services/token-validation.d.ts.map +1 -1
  296. package/lib/services/token-validation.js +56 -56
  297. package/lib/services/token-validation.js.map +1 -1
  298. package/lib/services/turnstile.d.ts.map +1 -1
  299. package/lib/services/turnstile.js +27 -54
  300. package/lib/services/turnstile.js.map +1 -1
  301. package/lib/services/url-normalization.js +9 -9
  302. package/lib/services/url-normalization.js.map +1 -1
  303. package/lib/services/url-scanner.d.ts.map +1 -1
  304. package/lib/services/url-scanner.js +120 -120
  305. package/lib/services/url-scanner.js.map +1 -1
  306. package/lib/services/user.d.ts.map +1 -1
  307. package/lib/services/user.js +95 -95
  308. package/lib/services/user.js.map +1 -1
  309. package/lib/services/vectorize.d.ts +10 -10
  310. package/lib/services/vectorize.d.ts.map +1 -1
  311. package/lib/services/vectorize.js +59 -57
  312. package/lib/services/vectorize.js.map +1 -1
  313. package/lib/services/vulnerability-scanner.d.ts.map +1 -1
  314. package/lib/services/vulnerability-scanner.js +95 -95
  315. package/lib/services/vulnerability-scanner.js.map +1 -1
  316. package/lib/services/waiting-rooms.d.ts.map +1 -1
  317. package/lib/services/waiting-rooms.js +81 -81
  318. package/lib/services/waiting-rooms.js.map +1 -1
  319. package/lib/services/web3.d.ts.map +1 -1
  320. package/lib/services/web3.js +39 -39
  321. package/lib/services/web3.js.map +1 -1
  322. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  323. package/lib/services/workers-for-platforms.js +139 -139
  324. package/lib/services/workers-for-platforms.js.map +1 -1
  325. package/lib/services/workers.d.ts.map +1 -1
  326. package/lib/services/workers.js +420 -420
  327. package/lib/services/workers.js.map +1 -1
  328. package/lib/services/workflows.d.ts.map +1 -1
  329. package/lib/services/workflows.js +88 -88
  330. package/lib/services/workflows.js.map +1 -1
  331. package/lib/services/zaraz.d.ts.map +1 -1
  332. package/lib/services/zaraz.js +36 -39
  333. package/lib/services/zaraz.js.map +1 -1
  334. package/lib/services/zero-trust.d.ts.map +1 -1
  335. package/lib/services/zero-trust.js +1765 -1771
  336. package/lib/services/zero-trust.js.map +1 -1
  337. package/lib/services/zones.d.ts.map +1 -1
  338. package/lib/services/zones.js +168 -168
  339. package/lib/services/zones.js.map +1 -1
  340. package/package.json +3 -2
  341. package/src/services/abuse-reports.ts +35 -36
  342. package/src/services/accounts.ts +714 -760
  343. package/src/services/acm.ts +115 -125
  344. package/src/services/addressing.ts +484 -512
  345. package/src/services/ai-gateway.ts +653 -672
  346. package/src/services/ai-security.ts +47 -53
  347. package/src/services/ai.ts +172 -185
  348. package/src/services/aisearch.ts +1814 -1861
  349. package/src/services/alerting.ts +710 -742
  350. package/src/services/api-gateway.ts +481 -508
  351. package/src/services/argo.ts +12 -12
  352. package/src/services/audit-logs.ts +45 -49
  353. package/src/services/billing.ts +121 -136
  354. package/src/services/bot-management.ts +122 -136
  355. package/src/services/botnet-feed.ts +68 -74
  356. package/src/services/brand-protection.ts +275 -294
  357. package/src/services/browser-rendering.ts +758 -769
  358. package/src/services/cache.ts +148 -158
  359. package/src/services/calls.ts +110 -120
  360. package/src/services/certificate-authorities.ts +6 -6
  361. package/src/services/client-certificates.ts +18 -18
  362. package/src/services/cloud-connector.ts +11 -12
  363. package/src/services/cloudforce-one.ts +589 -617
  364. package/src/services/connectivity.ts +25 -25
  365. package/src/services/containers.ts +49 -49
  366. package/src/services/content-scanning.ts +80 -89
  367. package/src/services/csam-scanner.ts +16 -17
  368. package/src/services/custom-certificates.ts +36 -38
  369. package/src/services/custom-csrs.ts +103 -105
  370. package/src/services/custom-hostnames.ts +44 -45
  371. package/src/services/custom-nameservers.ts +11 -11
  372. package/src/services/custom-pages.ts +173 -184
  373. package/src/services/d1.ts +335 -325
  374. package/src/services/dcv-delegation.ts +3 -3
  375. package/src/services/ddos-protection.ts +126 -126
  376. package/src/services/diagnostics.ts +27 -27
  377. package/src/services/dls.ts +82 -86
  378. package/src/services/dns-firewall.ts +65 -69
  379. package/src/services/dns.ts +1080 -1107
  380. package/src/services/durable-objects.ts +36 -38
  381. package/src/services/email-auth.ts +47 -52
  382. package/src/services/email-routing.ts +264 -288
  383. package/src/services/email-security.ts +205 -208
  384. package/src/services/email-sending.ts +94 -99
  385. package/src/services/filters.ts +97 -111
  386. package/src/services/firewall.ts +698 -753
  387. package/src/services/flagship.ts +321 -336
  388. package/src/services/fraud.ts +8 -8
  389. package/src/services/google-tag-gateway.ts +17 -19
  390. package/src/services/healthchecks.ts +269 -286
  391. package/src/services/hostnames.ts +94 -99
  392. package/src/services/hyperdrive.ts +310 -324
  393. package/src/services/iam.ts +205 -212
  394. package/src/services/images.ts +138 -150
  395. package/src/services/intel.ts +248 -261
  396. package/src/services/ips.ts +5 -5
  397. package/src/services/keyless-certificates.ts +17 -17
  398. package/src/services/kv.ts +106 -110
  399. package/src/services/leaked-credential-checks.ts +49 -53
  400. package/src/services/load-balancers.ts +1119 -1212
  401. package/src/services/logpush.ts +298 -313
  402. package/src/services/logs.ts +74 -77
  403. package/src/services/magic-cloud-networking.ts +1219 -1311
  404. package/src/services/magic-network-monitoring.ts +647 -685
  405. package/src/services/magic-transit.ts +1988 -2119
  406. package/src/services/managed-transforms.ts +11 -11
  407. package/src/services/memberships.ts +101 -105
  408. package/src/services/moq.ts +100 -110
  409. package/src/services/mtls-certificates.ts +30 -32
  410. package/src/services/network-interconnects.ts +137 -145
  411. package/src/services/organizations.ts +189 -192
  412. package/src/services/origin-ca-certificates.ts +14 -14
  413. package/src/services/origin-post-quantum-encryption.ts +6 -6
  414. package/src/services/origin-tls-client-auth.ts +219 -236
  415. package/src/services/origin-tls-compliance-modes.ts +12 -12
  416. package/src/services/page-rules.ts +365 -373
  417. package/src/services/page-shield.ts +489 -528
  418. package/src/services/pages.ts +309 -319
  419. package/src/services/pipelines.ts +534 -573
  420. package/src/services/queues.ts +598 -635
  421. package/src/services/r2-data-catalog.ts +59 -60
  422. package/src/services/r2.ts +654 -689
  423. package/src/services/radar.ts +3395 -3487
  424. package/src/services/rate-limits.ts +81 -93
  425. package/src/services/realtime-kit.ts +386 -399
  426. package/src/services/registrar.ts +90 -96
  427. package/src/services/request-tracers.ts +41 -43
  428. package/src/services/resource-sharing.ts +293 -305
  429. package/src/services/resource-tagging.ts +354 -366
  430. package/src/services/rules.ts +272 -292
  431. package/src/services/rulesets.ts +1214 -1116
  432. package/src/services/rum.ts +252 -273
  433. package/src/services/schema-validation.ts +284 -305
  434. package/src/services/secrets-store.ts +130 -138
  435. package/src/services/security-center.ts +64 -69
  436. package/src/services/security-txt.ts +48 -50
  437. package/src/services/snippets.ts +132 -142
  438. package/src/services/spectrum.ts +75 -80
  439. package/src/services/speed.ts +385 -397
  440. package/src/services/ssl.ts +64 -65
  441. package/src/services/stream.ts +658 -718
  442. package/src/services/tenant-custom-nameservers.ts +11 -11
  443. package/src/services/tenants.ts +86 -93
  444. package/src/services/token-validation.ts +145 -151
  445. package/src/services/turnstile.ts +344 -381
  446. package/src/services/url-normalization.ts +9 -9
  447. package/src/services/url-scanner.ts +393 -399
  448. package/src/services/user.ts +479 -503
  449. package/src/services/vectorize.ts +215 -230
  450. package/src/services/vulnerability-scanner.ts +145 -148
  451. package/src/services/waiting-rooms.ts +759 -825
  452. package/src/services/web3.ts +186 -197
  453. package/src/services/workers-for-platforms.ts +408 -432
  454. package/src/services/workers.ts +1175 -1239
  455. package/src/services/workflows.ts +585 -616
  456. package/src/services/zaraz.ts +168 -192
  457. package/src/services/zero-trust.ts +2965 -3074
  458. package/src/services/zones.ts +753 -785
@@ -170,7 +170,7 @@ interface ManagedBy {
170
170
  /** Name of the parent Organization, if one exists */
171
171
  parentOrgName?: string | null;
172
172
  }
173
- const ManagedBy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
173
+ const ManagedBy = /*@__PURE__*/ Schema.suspend(() =>
174
174
  Schema.Struct({
175
175
  parentOrgId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
176
176
  parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -188,7 +188,7 @@ interface Settings {
188
188
  /** Indicates whether membership in this account requires that Two-Factor Authentication is enabled */
189
189
  enforceTwofactor?: boolean | null;
190
190
  }
191
- const Settings = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
191
+ const Settings = /*@__PURE__*/ Schema.suspend(() =>
192
192
  Schema.Struct({
193
193
  abuseContactEmail: Schema.optional(
194
194
  Schema.Union([Schema.String, Schema.Null]),
@@ -210,7 +210,7 @@ interface Settings2 {
210
210
  /** Indicates whether membership in this account requires that Two-Factor Authentication is enabled */
211
211
  enforceTwofactor?: boolean | null;
212
212
  }
213
- const Settings2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
213
+ const Settings2 = /*@__PURE__*/ Schema.suspend(() =>
214
214
  Schema.Struct({
215
215
  abuseContactEmail: Schema.optional(
216
216
  Schema.Union([Schema.String, Schema.Null]),
@@ -245,28 +245,27 @@ interface ListAccountsResponseResult {
245
245
  enforceTwofactor?: boolean | null;
246
246
  } | null;
247
247
  }
248
- const ListAccountsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
249
- () =>
250
- Schema.Struct({
251
- id: Schema.String,
252
- name: Schema.String,
253
- type: Schema.Union([
254
- Schema.Literals(["standard", "enterprise"]),
255
- Schema.String,
256
- ]),
257
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
258
- managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
259
- settings: Schema.optional(Schema.Union([Settings2, Schema.Null])),
260
- }).pipe(
261
- Schema.encodeKeys({
262
- id: "id",
263
- name: "name",
264
- type: "type",
265
- createdOn: "created_on",
266
- managedBy: "managed_by",
267
- settings: "settings",
268
- }),
269
- ),
248
+ const ListAccountsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
249
+ Schema.Struct({
250
+ id: Schema.String,
251
+ name: Schema.String,
252
+ type: Schema.Union([
253
+ Schema.Literals(["standard", "enterprise"]),
254
+ Schema.String,
255
+ ]),
256
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
257
+ managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
258
+ settings: Schema.optional(Schema.Union([Settings2, Schema.Null])),
259
+ }).pipe(
260
+ Schema.encodeKeys({
261
+ id: "id",
262
+ name: "name",
263
+ type: "type",
264
+ createdOn: "created_on",
265
+ managedBy: "managed_by",
266
+ settings: "settings",
267
+ }),
268
+ ),
270
269
  ) as unknown as Schema.Codec<ListAccountsResponseResult>;
271
270
 
272
271
  interface ListAccountsResponseResultInfo {
@@ -276,7 +275,7 @@ interface ListAccountsResponseResultInfo {
276
275
  totalCount?: number | null;
277
276
  }
278
277
  const ListAccountsResponseResultInfo =
279
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
278
+ /*@__PURE__*/ Schema.suspend(() =>
280
279
  Schema.Struct({
281
280
  count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
282
281
  page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -296,7 +295,7 @@ interface Unit {
296
295
  /** Tenant unit ID */
297
296
  id?: string | null;
298
297
  }
299
- const Unit = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
298
+ const Unit = /*@__PURE__*/ Schema.suspend(() =>
300
299
  Schema.Struct({
301
300
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
302
301
  }),
@@ -308,7 +307,7 @@ interface Account {
308
307
  /** A string that identifies the account name. */
309
308
  name?: string | null;
310
309
  }
311
- const Account = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
310
+ const Account = /*@__PURE__*/ Schema.suspend(() =>
312
311
  Schema.Struct({
313
312
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
314
313
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -325,7 +324,7 @@ interface Action {
325
324
  /** A short string that describes the action that was performed. */
326
325
  type?: string | null;
327
326
  }
328
- const Action = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
327
+ const Action = /*@__PURE__*/ Schema.suspend(() =>
329
328
  Schema.Struct({
330
329
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
331
330
  result: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -362,7 +361,7 @@ interface Actor {
362
361
  | (string & {})
363
362
  | null;
364
363
  }
365
- const Actor = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
364
+ const Actor = /*@__PURE__*/ Schema.suspend(() =>
366
365
  Schema.Struct({
367
366
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
368
367
  context: Schema.optional(
@@ -418,7 +417,7 @@ interface Raw {
418
417
  /** The client's user agent string sent with the request. */
419
418
  userAgent?: string | null;
420
419
  }
421
- const Raw = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
420
+ const Raw = /*@__PURE__*/ Schema.suspend(() =>
422
421
  Schema.Struct({
423
422
  cfRayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
424
423
  method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -448,7 +447,7 @@ interface Resource {
448
447
  /** The type of the resource. */
449
448
  type?: string | null;
450
449
  }
451
- const Resource = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
450
+ const Resource = /*@__PURE__*/ Schema.suspend(() =>
452
451
  Schema.Struct({
453
452
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
454
453
  product: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -514,24 +513,23 @@ interface ListLogAuditsResponseResult {
514
513
  /** Provides details about the zone affected by the action. */
515
514
  zone?: { id?: string | null; name?: string | null } | null;
516
515
  }
517
- const ListLogAuditsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
518
- () =>
519
- Schema.Struct({
520
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
521
- account: Schema.optional(Schema.Union([Account, Schema.Null])),
522
- action: Schema.optional(Schema.Union([Action, Schema.Null])),
523
- actor: Schema.optional(Schema.Union([Actor, Schema.Null])),
524
- raw: Schema.optional(Schema.Union([Raw, Schema.Null])),
525
- resource: Schema.optional(Schema.Union([Resource, Schema.Null])),
526
- zone: Schema.optional(Schema.Union([Account, Schema.Null])),
527
- }),
516
+ const ListLogAuditsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
517
+ Schema.Struct({
518
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
519
+ account: Schema.optional(Schema.Union([Account, Schema.Null])),
520
+ action: Schema.optional(Schema.Union([Action, Schema.Null])),
521
+ actor: Schema.optional(Schema.Union([Actor, Schema.Null])),
522
+ raw: Schema.optional(Schema.Union([Raw, Schema.Null])),
523
+ resource: Schema.optional(Schema.Union([Resource, Schema.Null])),
524
+ zone: Schema.optional(Schema.Union([Account, Schema.Null])),
525
+ }),
528
526
  ) as unknown as Schema.Codec<ListLogAuditsResponseResult>;
529
527
 
530
528
  interface ListLogAuditsResponseResultInfoCursors {
531
529
  after?: string | null;
532
530
  }
533
531
  const ListLogAuditsResponseResultInfoCursors =
534
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
532
+ /*@__PURE__*/ Schema.suspend(() =>
535
533
  Schema.Struct({
536
534
  after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
537
535
  }),
@@ -541,7 +539,7 @@ interface ListLogAuditsResponseResultInfo {
541
539
  cursors?: { after?: string | null } | null;
542
540
  }
543
541
  const ListLogAuditsResponseResultInfo =
544
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
542
+ /*@__PURE__*/ Schema.suspend(() =>
545
543
  Schema.Struct({
546
544
  cursors: Schema.optional(
547
545
  Schema.Union([ListLogAuditsResponseResultInfoCursors, Schema.Null]),
@@ -553,7 +551,7 @@ interface PolicyPermissionGroup {
553
551
  /** Identifier of the group. */
554
552
  id: string;
555
553
  }
556
- const PolicyPermissionGroup = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
554
+ const PolicyPermissionGroup = /*@__PURE__*/ Schema.suspend(() =>
557
555
  Schema.Struct({
558
556
  id: Schema.String,
559
557
  }),
@@ -569,7 +567,7 @@ interface Policy {
569
567
  /** A list of resource groups that the policy applies to. */
570
568
  resourceGroups?: { id: string }[] | null;
571
569
  }
572
- const Policy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
570
+ const Policy = /*@__PURE__*/ Schema.suspend(() =>
573
571
  Schema.Struct({
574
572
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
575
573
  access: Schema.optional(
@@ -598,7 +596,7 @@ interface PermissionGrant {
598
596
  read?: boolean | null;
599
597
  write?: boolean | null;
600
598
  }
601
- const PermissionGrant = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
599
+ const PermissionGrant = /*@__PURE__*/ Schema.suspend(() =>
602
600
  Schema.Struct({
603
601
  read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
604
602
  write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -619,7 +617,7 @@ interface Permissions {
619
617
  zoneSettings?: { read?: boolean | null; write?: boolean | null } | null;
620
618
  zones?: { read?: boolean | null; write?: boolean | null } | null;
621
619
  }
622
- const Permissions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
620
+ const Permissions = /*@__PURE__*/ Schema.suspend(() =>
623
621
  Schema.Struct({
624
622
  analytics: Schema.optional(Schema.Union([PermissionGrant, Schema.Null])),
625
623
  billing: Schema.optional(Schema.Union([PermissionGrant, Schema.Null])),
@@ -673,7 +671,7 @@ interface Role {
673
671
  zones?: { read?: boolean | null; write?: boolean | null } | null;
674
672
  };
675
673
  }
676
- const Role = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
674
+ const Role = /*@__PURE__*/ Schema.suspend(() =>
677
675
  Schema.Struct({
678
676
  id: Schema.String,
679
677
  description: Schema.String,
@@ -694,7 +692,7 @@ interface User {
694
692
  /** Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication. */
695
693
  twoFactorAuthenticationEnabled?: boolean | null;
696
694
  }
697
- const User = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
695
+ const User = /*@__PURE__*/ Schema.suspend(() =>
698
696
  Schema.Struct({
699
697
  email: Schema.String,
700
698
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -767,7 +765,7 @@ interface Member {
767
765
  twoFactorAuthenticationEnabled?: boolean | null;
768
766
  } | null;
769
767
  }
770
- const Member = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
768
+ const Member = /*@__PURE__*/ Schema.suspend(() =>
771
769
  Schema.Struct({
772
770
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
773
771
  email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -793,7 +791,7 @@ interface Policy2 {
793
791
  /** A list of resource groups that the policy applies to. */
794
792
  resourceGroups: { id: string }[];
795
793
  }
796
- const Policy2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
794
+ const Policy2 = /*@__PURE__*/ Schema.suspend(() =>
797
795
  Schema.Struct({
798
796
  access: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
799
797
  permissionGroups: Schema.Array(PolicyPermissionGroup),
@@ -835,7 +833,7 @@ interface RatePlan {
835
833
  /** The list of sets this rate plan applies to. Returns array of strings. */
836
834
  sets?: string[] | null;
837
835
  }
838
- const RatePlan = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
836
+ const RatePlan = /*@__PURE__*/ Schema.suspend(() =>
839
837
  Schema.Struct({
840
838
  id: Schema.optional(
841
839
  Schema.Union([
@@ -933,7 +931,7 @@ interface Subscription {
933
931
  | (string & {})
934
932
  | null;
935
933
  }
936
- const Subscription = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
934
+ const Subscription = /*@__PURE__*/ Schema.suspend(() =>
937
935
  Schema.Struct({
938
936
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
939
937
  currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -991,7 +989,7 @@ interface ConditionRequestIP {
991
989
  /** List of IPv4/IPv6 CIDR addresses. */
992
990
  notIn?: string[] | null;
993
991
  }
994
- const ConditionRequestIP = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
992
+ const ConditionRequestIP = /*@__PURE__*/ Schema.suspend(() =>
995
993
  Schema.Struct({
996
994
  in: Schema.optional(
997
995
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
@@ -1006,7 +1004,7 @@ interface Condition {
1006
1004
  /** Client IP restrictions. */
1007
1005
  requestIp?: { in?: string[] | null; notIn?: string[] | null } | null;
1008
1006
  }
1009
- const Condition = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1007
+ const Condition = /*@__PURE__*/ Schema.suspend(() =>
1010
1008
  Schema.Struct({
1011
1009
  requestIp: Schema.optional(Schema.Union([ConditionRequestIP, Schema.Null])),
1012
1010
  }).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
@@ -1016,7 +1014,7 @@ interface Meta {
1016
1014
  key?: string | null;
1017
1015
  value?: string | null;
1018
1016
  }
1019
- const Meta = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1017
+ const Meta = /*@__PURE__*/ Schema.suspend(() =>
1020
1018
  Schema.Struct({
1021
1019
  key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1022
1020
  value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1031,7 +1029,7 @@ interface PermissionGroup {
1031
1029
  /** Name of the permission group. */
1032
1030
  name?: string | null;
1033
1031
  }
1034
- const PermissionGroup = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1032
+ const PermissionGroup = /*@__PURE__*/ Schema.suspend(() =>
1035
1033
  Schema.Struct({
1036
1034
  id: Schema.String,
1037
1035
  meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
@@ -1053,7 +1051,7 @@ interface TokenPolicy {
1053
1051
  /** A list of resource names that the policy applies to. */
1054
1052
  resources: Record<string, unknown>;
1055
1053
  }
1056
- const TokenPolicy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1054
+ const TokenPolicy = /*@__PURE__*/ Schema.suspend(() =>
1057
1055
  Schema.Struct({
1058
1056
  id: Schema.String,
1059
1057
  effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
@@ -1103,7 +1101,7 @@ interface Token {
1103
1101
  /** Status of the token. */
1104
1102
  status?: "active" | "disabled" | "expired" | (string & {}) | null;
1105
1103
  }
1106
- const Token = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1104
+ const Token = /*@__PURE__*/ Schema.suspend(() =>
1107
1105
  Schema.Struct({
1108
1106
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1109
1107
  condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
@@ -1147,7 +1145,7 @@ interface PermissionGroup2 {
1147
1145
  /** Attributes associated to the permission group. */
1148
1146
  meta?: { key?: string | null; value?: string | null } | null;
1149
1147
  }
1150
- const PermissionGroup2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1148
+ const PermissionGroup2 = /*@__PURE__*/ Schema.suspend(() =>
1151
1149
  Schema.Struct({
1152
1150
  id: Schema.String,
1153
1151
  meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
@@ -1165,7 +1163,7 @@ interface TokenPolicyParam {
1165
1163
  /** A list of resource names that the policy applies to. */
1166
1164
  resources: Record<string, unknown>;
1167
1165
  }
1168
- const TokenPolicyParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1166
+ const TokenPolicyParam = /*@__PURE__*/ Schema.suspend(() =>
1169
1167
  Schema.Struct({
1170
1168
  effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
1171
1169
  permissionGroups: Schema.Array(PermissionGroup2),
@@ -1213,7 +1211,7 @@ interface PermissionGroupGetResponseItem {
1213
1211
  | null;
1214
1212
  }
1215
1213
  const PermissionGroupGetResponseItem =
1216
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1214
+ /*@__PURE__*/ Schema.suspend(() =>
1217
1215
  Schema.Struct({
1218
1216
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1219
1217
  category: Schema.optional(
@@ -1268,11 +1266,10 @@ export interface GetAccountRequest {
1268
1266
  accountId: string;
1269
1267
  }
1270
1268
 
1271
- export const GetAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1272
- () =>
1273
- Schema.Struct({
1274
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1275
- }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}" })),
1269
+ export const GetAccountRequest = /*@__PURE__*/ Schema.suspend(() =>
1270
+ Schema.Struct({
1271
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1272
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}" })),
1276
1273
  ) as unknown as Schema.Codec<GetAccountRequest>;
1277
1274
 
1278
1275
  export interface GetAccountResponse {
@@ -1295,30 +1292,29 @@ export interface GetAccountResponse {
1295
1292
  } | null;
1296
1293
  }
1297
1294
 
1298
- export const GetAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1299
- () =>
1300
- Schema.Struct({
1301
- id: Schema.String,
1302
- name: Schema.String,
1303
- type: Schema.Union([
1304
- Schema.Literals(["standard", "enterprise"]),
1305
- Schema.String,
1306
- ]),
1307
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1308
- managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
1309
- settings: Schema.optional(Schema.Union([Settings, Schema.Null])),
1310
- })
1311
- .pipe(
1312
- Schema.encodeKeys({
1313
- id: "id",
1314
- name: "name",
1315
- type: "type",
1316
- createdOn: "created_on",
1317
- managedBy: "managed_by",
1318
- settings: "settings",
1319
- }),
1320
- )
1321
- .pipe(T.ResponsePath("result")),
1295
+ export const GetAccountResponse = /*@__PURE__*/ Schema.suspend(() =>
1296
+ Schema.Struct({
1297
+ id: Schema.String,
1298
+ name: Schema.String,
1299
+ type: Schema.Union([
1300
+ Schema.Literals(["standard", "enterprise"]),
1301
+ Schema.String,
1302
+ ]),
1303
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1304
+ managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
1305
+ settings: Schema.optional(Schema.Union([Settings, Schema.Null])),
1306
+ })
1307
+ .pipe(
1308
+ Schema.encodeKeys({
1309
+ id: "id",
1310
+ name: "name",
1311
+ type: "type",
1312
+ createdOn: "created_on",
1313
+ managedBy: "managed_by",
1314
+ settings: "settings",
1315
+ }),
1316
+ )
1317
+ .pipe(T.ResponsePath("result")),
1322
1318
  ) as unknown as Schema.Codec<GetAccountResponse>;
1323
1319
 
1324
1320
  export type GetAccountError = DefaultErrors | InvalidRoute;
@@ -1328,7 +1324,7 @@ export const getAccount: API.OperationMethod<
1328
1324
  GetAccountResponse,
1329
1325
  GetAccountError,
1330
1326
  Credentials | HttpClient.HttpClient
1331
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1327
+ > = /*@__PURE__*/ API.make(() => ({
1332
1328
  input: GetAccountRequest,
1333
1329
  output: GetAccountResponse,
1334
1330
  errors: [InvalidRoute],
@@ -1343,16 +1339,15 @@ export interface ListAccountsRequest {
1343
1339
  name?: string;
1344
1340
  }
1345
1341
 
1346
- export const ListAccountsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1347
- () =>
1348
- Schema.Struct({
1349
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
1350
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
1351
- direction: Schema.optional(
1352
- Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
1353
- ).pipe(T.HttpQuery("direction")),
1354
- name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
1355
- }).pipe(T.Http({ method: "GET", path: "/accounts" })),
1342
+ export const ListAccountsRequest = /*@__PURE__*/ Schema.suspend(() =>
1343
+ Schema.Struct({
1344
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
1345
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
1346
+ direction: Schema.optional(
1347
+ Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
1348
+ ).pipe(T.HttpQuery("direction")),
1349
+ name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
1350
+ }).pipe(T.Http({ method: "GET", path: "/accounts" })),
1356
1351
  ) as unknown as Schema.Codec<ListAccountsRequest>;
1357
1352
 
1358
1353
  export interface ListAccountsResponse {
@@ -1378,14 +1373,13 @@ export interface ListAccountsResponse {
1378
1373
  } | null;
1379
1374
  }
1380
1375
 
1381
- export const ListAccountsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1382
- () =>
1383
- Schema.Struct({
1384
- result: Schema.Array(ListAccountsResponseResult),
1385
- resultInfo: Schema.optional(
1386
- Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
1387
- ),
1388
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
1376
+ export const ListAccountsResponse = /*@__PURE__*/ Schema.suspend(() =>
1377
+ Schema.Struct({
1378
+ result: Schema.Array(ListAccountsResponseResult),
1379
+ resultInfo: Schema.optional(
1380
+ Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
1381
+ ),
1382
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
1389
1383
  ) as unknown as Schema.Codec<ListAccountsResponse>;
1390
1384
 
1391
1385
  export type ListAccountsError = DefaultErrors;
@@ -1395,7 +1389,7 @@ export const listAccounts: API.PaginatedOperationMethod<
1395
1389
  ListAccountsResponse,
1396
1390
  ListAccountsError,
1397
1391
  Credentials | HttpClient.HttpClient
1398
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1392
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1399
1393
  input: ListAccountsRequest,
1400
1394
  output: ListAccountsResponse,
1401
1395
  errors: [],
@@ -1416,18 +1410,17 @@ export interface CreateAccountRequest {
1416
1410
  unit?: { id?: string };
1417
1411
  }
1418
1412
 
1419
- export const CreateAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1420
- () =>
1421
- Schema.Struct({
1422
- name: Schema.String,
1423
- type: Schema.optional(
1424
- Schema.Union([
1425
- Schema.Literals(["standard", "enterprise"]),
1426
- Schema.String,
1427
- ]),
1428
- ),
1429
- unit: Schema.optional(Unit),
1430
- }).pipe(T.Http({ method: "POST", path: "/accounts" })),
1413
+ export const CreateAccountRequest = /*@__PURE__*/ Schema.suspend(() =>
1414
+ Schema.Struct({
1415
+ name: Schema.String,
1416
+ type: Schema.optional(
1417
+ Schema.Union([
1418
+ Schema.Literals(["standard", "enterprise"]),
1419
+ Schema.String,
1420
+ ]),
1421
+ ),
1422
+ unit: Schema.optional(Unit),
1423
+ }).pipe(T.Http({ method: "POST", path: "/accounts" })),
1431
1424
  ) as unknown as Schema.Codec<CreateAccountRequest>;
1432
1425
 
1433
1426
  export interface CreateAccountResponse {
@@ -1450,30 +1443,29 @@ export interface CreateAccountResponse {
1450
1443
  } | null;
1451
1444
  }
1452
1445
 
1453
- export const CreateAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1454
- () =>
1455
- Schema.Struct({
1456
- id: Schema.String,
1457
- name: Schema.String,
1458
- type: Schema.Union([
1459
- Schema.Literals(["standard", "enterprise"]),
1460
- Schema.String,
1461
- ]),
1462
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1463
- managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
1464
- settings: Schema.optional(Schema.Union([Settings2, Schema.Null])),
1465
- })
1466
- .pipe(
1467
- Schema.encodeKeys({
1468
- id: "id",
1469
- name: "name",
1470
- type: "type",
1471
- createdOn: "created_on",
1472
- managedBy: "managed_by",
1473
- settings: "settings",
1474
- }),
1475
- )
1476
- .pipe(T.ResponsePath("result")),
1446
+ export const CreateAccountResponse = /*@__PURE__*/ Schema.suspend(() =>
1447
+ Schema.Struct({
1448
+ id: Schema.String,
1449
+ name: Schema.String,
1450
+ type: Schema.Union([
1451
+ Schema.Literals(["standard", "enterprise"]),
1452
+ Schema.String,
1453
+ ]),
1454
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1455
+ managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
1456
+ settings: Schema.optional(Schema.Union([Settings2, Schema.Null])),
1457
+ })
1458
+ .pipe(
1459
+ Schema.encodeKeys({
1460
+ id: "id",
1461
+ name: "name",
1462
+ type: "type",
1463
+ createdOn: "created_on",
1464
+ managedBy: "managed_by",
1465
+ settings: "settings",
1466
+ }),
1467
+ )
1468
+ .pipe(T.ResponsePath("result")),
1477
1469
  ) as unknown as Schema.Codec<CreateAccountResponse>;
1478
1470
 
1479
1471
  export type CreateAccountError =
@@ -1486,7 +1478,7 @@ export const createAccount: API.OperationMethod<
1486
1478
  CreateAccountResponse,
1487
1479
  CreateAccountError,
1488
1480
  Credentials | HttpClient.HttpClient
1489
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1481
+ > = /*@__PURE__*/ API.make(() => ({
1490
1482
  input: CreateAccountRequest,
1491
1483
  output: CreateAccountResponse,
1492
1484
  errors: [AccountCreationForbidden, MissingName],
@@ -1507,30 +1499,29 @@ export interface UpdateAccountRequest {
1507
1499
  settings?: { abuseContactEmail?: string; enforceTwofactor?: boolean };
1508
1500
  }
1509
1501
 
1510
- export const UpdateAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1511
- () =>
1512
- Schema.Struct({
1513
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1514
- id: Schema.String,
1515
- name: Schema.String,
1516
- type: Schema.optional(
1517
- Schema.Union([
1518
- Schema.Literals(["standard", "enterprise"]),
1519
- Schema.String,
1520
- ]),
1521
- ),
1522
- managedBy: Schema.optional(Schema.Unknown),
1523
- settings: Schema.optional(Settings2),
1524
- }).pipe(
1525
- Schema.encodeKeys({
1526
- id: "id",
1527
- name: "name",
1528
- type: "type",
1529
- managedBy: "managed_by",
1530
- settings: "settings",
1531
- }),
1532
- T.Http({ method: "PUT", path: "/accounts/{account_id}" }),
1502
+ export const UpdateAccountRequest = /*@__PURE__*/ Schema.suspend(() =>
1503
+ Schema.Struct({
1504
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1505
+ id: Schema.String,
1506
+ name: Schema.String,
1507
+ type: Schema.optional(
1508
+ Schema.Union([
1509
+ Schema.Literals(["standard", "enterprise"]),
1510
+ Schema.String,
1511
+ ]),
1533
1512
  ),
1513
+ managedBy: Schema.optional(Schema.Unknown),
1514
+ settings: Schema.optional(Settings2),
1515
+ }).pipe(
1516
+ Schema.encodeKeys({
1517
+ id: "id",
1518
+ name: "name",
1519
+ type: "type",
1520
+ managedBy: "managed_by",
1521
+ settings: "settings",
1522
+ }),
1523
+ T.Http({ method: "PUT", path: "/accounts/{account_id}" }),
1524
+ ),
1534
1525
  ) as unknown as Schema.Codec<UpdateAccountRequest>;
1535
1526
 
1536
1527
  export interface UpdateAccountResponse {
@@ -1553,30 +1544,29 @@ export interface UpdateAccountResponse {
1553
1544
  } | null;
1554
1545
  }
1555
1546
 
1556
- export const UpdateAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1557
- () =>
1558
- Schema.Struct({
1559
- id: Schema.String,
1560
- name: Schema.String,
1561
- type: Schema.Union([
1562
- Schema.Literals(["standard", "enterprise"]),
1563
- Schema.String,
1564
- ]),
1565
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1566
- managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
1567
- settings: Schema.optional(Schema.Union([Settings, Schema.Null])),
1568
- })
1569
- .pipe(
1570
- Schema.encodeKeys({
1571
- id: "id",
1572
- name: "name",
1573
- type: "type",
1574
- createdOn: "created_on",
1575
- managedBy: "managed_by",
1576
- settings: "settings",
1577
- }),
1578
- )
1579
- .pipe(T.ResponsePath("result")),
1547
+ export const UpdateAccountResponse = /*@__PURE__*/ Schema.suspend(() =>
1548
+ Schema.Struct({
1549
+ id: Schema.String,
1550
+ name: Schema.String,
1551
+ type: Schema.Union([
1552
+ Schema.Literals(["standard", "enterprise"]),
1553
+ Schema.String,
1554
+ ]),
1555
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1556
+ managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
1557
+ settings: Schema.optional(Schema.Union([Settings, Schema.Null])),
1558
+ })
1559
+ .pipe(
1560
+ Schema.encodeKeys({
1561
+ id: "id",
1562
+ name: "name",
1563
+ type: "type",
1564
+ createdOn: "created_on",
1565
+ managedBy: "managed_by",
1566
+ settings: "settings",
1567
+ }),
1568
+ )
1569
+ .pipe(T.ResponsePath("result")),
1580
1570
  ) as unknown as Schema.Codec<UpdateAccountResponse>;
1581
1571
 
1582
1572
  export type UpdateAccountError =
@@ -1592,7 +1582,7 @@ export const updateAccount: API.OperationMethod<
1592
1582
  UpdateAccountResponse,
1593
1583
  UpdateAccountError,
1594
1584
  Credentials | HttpClient.HttpClient
1595
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1585
+ > = /*@__PURE__*/ API.make(() => ({
1596
1586
  input: UpdateAccountRequest,
1597
1587
  output: UpdateAccountResponse,
1598
1588
  errors: [
@@ -1609,11 +1599,10 @@ export interface DeleteAccountRequest {
1609
1599
  accountId: string;
1610
1600
  }
1611
1601
 
1612
- export const DeleteAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1613
- () =>
1614
- Schema.Struct({
1615
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1616
- }).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}" })),
1602
+ export const DeleteAccountRequest = /*@__PURE__*/ Schema.suspend(() =>
1603
+ Schema.Struct({
1604
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1605
+ }).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}" })),
1617
1606
  ) as unknown as Schema.Codec<DeleteAccountRequest>;
1618
1607
 
1619
1608
  export interface DeleteAccountResponse {
@@ -1621,11 +1610,10 @@ export interface DeleteAccountResponse {
1621
1610
  id: string;
1622
1611
  }
1623
1612
 
1624
- export const DeleteAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1625
- () =>
1626
- Schema.Struct({
1627
- id: Schema.String,
1628
- }).pipe(T.ResponsePath("result")),
1613
+ export const DeleteAccountResponse = /*@__PURE__*/ Schema.suspend(() =>
1614
+ Schema.Struct({
1615
+ id: Schema.String,
1616
+ }).pipe(T.ResponsePath("result")),
1629
1617
  ) as unknown as Schema.Codec<DeleteAccountResponse>;
1630
1618
 
1631
1619
  export type DeleteAccountError =
@@ -1638,7 +1626,7 @@ export const deleteAccount: API.OperationMethod<
1638
1626
  DeleteAccountResponse,
1639
1627
  DeleteAccountError,
1640
1628
  Credentials | HttpClient.HttpClient
1641
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1629
+ > = /*@__PURE__*/ API.make(() => ({
1642
1630
  input: DeleteAccountRequest,
1643
1631
  output: DeleteAccountResponse,
1644
1632
  errors: [InvalidRoute, MethodNotAllowed],
@@ -1727,176 +1715,173 @@ export interface ListLogAuditsRequest {
1727
1715
  zoneName?: { not?: string[] };
1728
1716
  }
1729
1717
 
1730
- export const ListLogAuditsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1731
- () =>
1732
- Schema.Struct({
1733
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1734
- cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
1735
- before: Schema.String.pipe(T.HttpQuery("before")),
1736
- since: Schema.String.pipe(T.HttpQuery("since")),
1737
- id: Schema.optional(
1738
- Schema.Struct({
1739
- not: Schema.optional(Schema.Array(Schema.String)),
1740
- }),
1741
- ).pipe(T.HttpQuery("id")),
1742
- accountName: Schema.optional(
1743
- Schema.Struct({
1744
- not: Schema.optional(Schema.Array(Schema.String)),
1745
- }),
1746
- ).pipe(T.HttpQuery("account_name")),
1747
- actionResult: Schema.optional(
1748
- Schema.Struct({
1749
- not: Schema.optional(
1750
- Schema.Array(
1751
- Schema.Union([
1752
- Schema.Literals(["success", "failure"]),
1753
- Schema.String,
1754
- ]),
1755
- ),
1718
+ export const ListLogAuditsRequest = /*@__PURE__*/ Schema.suspend(() =>
1719
+ Schema.Struct({
1720
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1721
+ cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
1722
+ before: Schema.String.pipe(T.HttpQuery("before")),
1723
+ since: Schema.String.pipe(T.HttpQuery("since")),
1724
+ id: Schema.optional(
1725
+ Schema.Struct({
1726
+ not: Schema.optional(Schema.Array(Schema.String)),
1727
+ }),
1728
+ ).pipe(T.HttpQuery("id")),
1729
+ accountName: Schema.optional(
1730
+ Schema.Struct({
1731
+ not: Schema.optional(Schema.Array(Schema.String)),
1732
+ }),
1733
+ ).pipe(T.HttpQuery("account_name")),
1734
+ actionResult: Schema.optional(
1735
+ Schema.Struct({
1736
+ not: Schema.optional(
1737
+ Schema.Array(
1738
+ Schema.Union([
1739
+ Schema.Literals(["success", "failure"]),
1740
+ Schema.String,
1741
+ ]),
1756
1742
  ),
1757
- }),
1758
- ).pipe(T.HttpQuery("action_result")),
1759
- actionType: Schema.optional(
1760
- Schema.Struct({
1761
- not: Schema.optional(
1762
- Schema.Array(
1763
- Schema.Union([
1764
- Schema.Literals(["create", "delete", "view", "update"]),
1765
- Schema.String,
1766
- ]),
1767
- ),
1743
+ ),
1744
+ }),
1745
+ ).pipe(T.HttpQuery("action_result")),
1746
+ actionType: Schema.optional(
1747
+ Schema.Struct({
1748
+ not: Schema.optional(
1749
+ Schema.Array(
1750
+ Schema.Union([
1751
+ Schema.Literals(["create", "delete", "view", "update"]),
1752
+ Schema.String,
1753
+ ]),
1768
1754
  ),
1769
- }),
1770
- ).pipe(T.HttpQuery("action_type")),
1771
- actorContext: Schema.optional(
1772
- Schema.Struct({
1773
- not: Schema.optional(
1774
- Schema.Array(
1775
- Schema.Union([
1776
- Schema.Literals([
1777
- "api_key",
1778
- "api_token",
1779
- "dash",
1780
- "oauth",
1781
- "origin_ca_key",
1782
- ]),
1783
- Schema.String,
1755
+ ),
1756
+ }),
1757
+ ).pipe(T.HttpQuery("action_type")),
1758
+ actorContext: Schema.optional(
1759
+ Schema.Struct({
1760
+ not: Schema.optional(
1761
+ Schema.Array(
1762
+ Schema.Union([
1763
+ Schema.Literals([
1764
+ "api_key",
1765
+ "api_token",
1766
+ "dash",
1767
+ "oauth",
1768
+ "origin_ca_key",
1784
1769
  ]),
1785
- ),
1770
+ Schema.String,
1771
+ ]),
1786
1772
  ),
1787
- }),
1788
- ).pipe(T.HttpQuery("actor_context")),
1789
- actorEmail: Schema.optional(
1790
- Schema.Struct({
1791
- not: Schema.optional(Schema.Array(Schema.String)),
1792
- }),
1793
- ).pipe(T.HttpQuery("actor_email")),
1794
- actorId: Schema.optional(
1795
- Schema.Struct({
1796
- not: Schema.optional(Schema.Array(Schema.String)),
1797
- }),
1798
- ).pipe(T.HttpQuery("actor_id")),
1799
- actorIpAddress: Schema.optional(
1800
- Schema.Struct({
1801
- not: Schema.optional(Schema.Array(Schema.String)),
1802
- }),
1803
- ).pipe(T.HttpQuery("actor_ip_address")),
1804
- actorTokenId: Schema.optional(
1805
- Schema.Struct({
1806
- not: Schema.optional(Schema.Array(Schema.String)),
1807
- }),
1808
- ).pipe(T.HttpQuery("actor_token_id")),
1809
- actorTokenName: Schema.optional(
1810
- Schema.Struct({
1811
- not: Schema.optional(Schema.Array(Schema.String)),
1812
- }),
1813
- ).pipe(T.HttpQuery("actor_token_name")),
1814
- actorType: Schema.optional(
1815
- Schema.Struct({
1816
- not: Schema.optional(
1817
- Schema.Array(
1818
- Schema.Union([
1819
- Schema.Literals([
1820
- "account",
1821
- "cloudflare_admin",
1822
- "system",
1823
- "user",
1824
- ]),
1825
- Schema.String,
1773
+ ),
1774
+ }),
1775
+ ).pipe(T.HttpQuery("actor_context")),
1776
+ actorEmail: Schema.optional(
1777
+ Schema.Struct({
1778
+ not: Schema.optional(Schema.Array(Schema.String)),
1779
+ }),
1780
+ ).pipe(T.HttpQuery("actor_email")),
1781
+ actorId: Schema.optional(
1782
+ Schema.Struct({
1783
+ not: Schema.optional(Schema.Array(Schema.String)),
1784
+ }),
1785
+ ).pipe(T.HttpQuery("actor_id")),
1786
+ actorIpAddress: Schema.optional(
1787
+ Schema.Struct({
1788
+ not: Schema.optional(Schema.Array(Schema.String)),
1789
+ }),
1790
+ ).pipe(T.HttpQuery("actor_ip_address")),
1791
+ actorTokenId: Schema.optional(
1792
+ Schema.Struct({
1793
+ not: Schema.optional(Schema.Array(Schema.String)),
1794
+ }),
1795
+ ).pipe(T.HttpQuery("actor_token_id")),
1796
+ actorTokenName: Schema.optional(
1797
+ Schema.Struct({
1798
+ not: Schema.optional(Schema.Array(Schema.String)),
1799
+ }),
1800
+ ).pipe(T.HttpQuery("actor_token_name")),
1801
+ actorType: Schema.optional(
1802
+ Schema.Struct({
1803
+ not: Schema.optional(
1804
+ Schema.Array(
1805
+ Schema.Union([
1806
+ Schema.Literals([
1807
+ "account",
1808
+ "cloudflare_admin",
1809
+ "system",
1810
+ "user",
1826
1811
  ]),
1827
- ),
1812
+ Schema.String,
1813
+ ]),
1828
1814
  ),
1829
- }),
1830
- ).pipe(T.HttpQuery("actor_type")),
1831
- auditLogId: Schema.optional(
1832
- Schema.Struct({
1833
- not: Schema.optional(Schema.Array(Schema.String)),
1834
- }),
1835
- ).pipe(T.HttpQuery("audit_log_id")),
1836
- direction: Schema.optional(
1837
- Schema.Union([Schema.Literals(["desc", "asc"]), Schema.String]),
1838
- ).pipe(T.HttpQuery("direction")),
1839
- limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
1840
- rawCfRayId: Schema.optional(
1841
- Schema.Struct({
1842
- not: Schema.optional(Schema.Array(Schema.String)),
1843
- }),
1844
- ).pipe(T.HttpQuery("raw_cf_ray_id")),
1845
- rawMethod: Schema.optional(
1846
- Schema.Struct({
1847
- not: Schema.optional(Schema.Array(Schema.String)),
1848
- }),
1849
- ).pipe(T.HttpQuery("raw_method")),
1850
- rawStatusCode: Schema.optional(
1851
- Schema.Struct({
1852
- not: Schema.optional(Schema.Array(Schema.Number)),
1853
- }),
1854
- ).pipe(T.HttpQuery("raw_status_code")),
1855
- rawUri: Schema.optional(
1856
- Schema.Struct({
1857
- not: Schema.optional(Schema.Array(Schema.String)),
1858
- }),
1859
- ).pipe(T.HttpQuery("raw_uri")),
1860
- resourceId: Schema.optional(
1861
- Schema.Struct({
1862
- not: Schema.optional(Schema.Array(Schema.String)),
1863
- }),
1864
- ).pipe(T.HttpQuery("resource_id")),
1865
- resourceProduct: Schema.optional(
1866
- Schema.Struct({
1867
- not: Schema.optional(Schema.Array(Schema.String)),
1868
- }),
1869
- ).pipe(T.HttpQuery("resource_product")),
1870
- resourceScope: Schema.optional(
1871
- Schema.Struct({
1872
- not: Schema.optional(
1873
- Schema.Array(
1874
- Schema.Union([
1875
- Schema.Literals(["accounts", "user", "zones", "memberships"]),
1876
- Schema.String,
1877
- ]),
1878
- ),
1815
+ ),
1816
+ }),
1817
+ ).pipe(T.HttpQuery("actor_type")),
1818
+ auditLogId: Schema.optional(
1819
+ Schema.Struct({
1820
+ not: Schema.optional(Schema.Array(Schema.String)),
1821
+ }),
1822
+ ).pipe(T.HttpQuery("audit_log_id")),
1823
+ direction: Schema.optional(
1824
+ Schema.Union([Schema.Literals(["desc", "asc"]), Schema.String]),
1825
+ ).pipe(T.HttpQuery("direction")),
1826
+ limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
1827
+ rawCfRayId: Schema.optional(
1828
+ Schema.Struct({
1829
+ not: Schema.optional(Schema.Array(Schema.String)),
1830
+ }),
1831
+ ).pipe(T.HttpQuery("raw_cf_ray_id")),
1832
+ rawMethod: Schema.optional(
1833
+ Schema.Struct({
1834
+ not: Schema.optional(Schema.Array(Schema.String)),
1835
+ }),
1836
+ ).pipe(T.HttpQuery("raw_method")),
1837
+ rawStatusCode: Schema.optional(
1838
+ Schema.Struct({
1839
+ not: Schema.optional(Schema.Array(Schema.Number)),
1840
+ }),
1841
+ ).pipe(T.HttpQuery("raw_status_code")),
1842
+ rawUri: Schema.optional(
1843
+ Schema.Struct({
1844
+ not: Schema.optional(Schema.Array(Schema.String)),
1845
+ }),
1846
+ ).pipe(T.HttpQuery("raw_uri")),
1847
+ resourceId: Schema.optional(
1848
+ Schema.Struct({
1849
+ not: Schema.optional(Schema.Array(Schema.String)),
1850
+ }),
1851
+ ).pipe(T.HttpQuery("resource_id")),
1852
+ resourceProduct: Schema.optional(
1853
+ Schema.Struct({
1854
+ not: Schema.optional(Schema.Array(Schema.String)),
1855
+ }),
1856
+ ).pipe(T.HttpQuery("resource_product")),
1857
+ resourceScope: Schema.optional(
1858
+ Schema.Struct({
1859
+ not: Schema.optional(
1860
+ Schema.Array(
1861
+ Schema.Union([
1862
+ Schema.Literals(["accounts", "user", "zones", "memberships"]),
1863
+ Schema.String,
1864
+ ]),
1879
1865
  ),
1880
- }),
1881
- ).pipe(T.HttpQuery("resource_scope")),
1882
- resourceType: Schema.optional(
1883
- Schema.Struct({
1884
- not: Schema.optional(Schema.Array(Schema.String)),
1885
- }),
1886
- ).pipe(T.HttpQuery("resource_type")),
1887
- zoneId: Schema.optional(
1888
- Schema.Struct({
1889
- not: Schema.optional(Schema.Array(Schema.String)),
1890
- }),
1891
- ).pipe(T.HttpQuery("zone_id")),
1892
- zoneName: Schema.optional(
1893
- Schema.Struct({
1894
- not: Schema.optional(Schema.Array(Schema.String)),
1895
- }),
1896
- ).pipe(T.HttpQuery("zone_name")),
1897
- }).pipe(
1898
- T.Http({ method: "GET", path: "/accounts/{account_id}/logs/audit" }),
1899
- ),
1866
+ ),
1867
+ }),
1868
+ ).pipe(T.HttpQuery("resource_scope")),
1869
+ resourceType: Schema.optional(
1870
+ Schema.Struct({
1871
+ not: Schema.optional(Schema.Array(Schema.String)),
1872
+ }),
1873
+ ).pipe(T.HttpQuery("resource_type")),
1874
+ zoneId: Schema.optional(
1875
+ Schema.Struct({
1876
+ not: Schema.optional(Schema.Array(Schema.String)),
1877
+ }),
1878
+ ).pipe(T.HttpQuery("zone_id")),
1879
+ zoneName: Schema.optional(
1880
+ Schema.Struct({
1881
+ not: Schema.optional(Schema.Array(Schema.String)),
1882
+ }),
1883
+ ).pipe(T.HttpQuery("zone_name")),
1884
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/logs/audit" })),
1900
1885
  ) as unknown as Schema.Codec<ListLogAuditsRequest>;
1901
1886
 
1902
1887
  export interface ListLogAuditsResponse {
@@ -1951,14 +1936,13 @@ export interface ListLogAuditsResponse {
1951
1936
  resultInfo?: { cursors?: { after?: string | null } | null } | null;
1952
1937
  }
1953
1938
 
1954
- export const ListLogAuditsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1955
- () =>
1956
- Schema.Struct({
1957
- result: Schema.Array(ListLogAuditsResponseResult),
1958
- resultInfo: Schema.optional(
1959
- Schema.Union([ListLogAuditsResponseResultInfo, Schema.Null]),
1960
- ),
1961
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
1939
+ export const ListLogAuditsResponse = /*@__PURE__*/ Schema.suspend(() =>
1940
+ Schema.Struct({
1941
+ result: Schema.Array(ListLogAuditsResponseResult),
1942
+ resultInfo: Schema.optional(
1943
+ Schema.Union([ListLogAuditsResponseResultInfo, Schema.Null]),
1944
+ ),
1945
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
1962
1946
  ) as unknown as Schema.Codec<ListLogAuditsResponse>;
1963
1947
 
1964
1948
  export type ListLogAuditsError = DefaultErrors;
@@ -1968,7 +1952,7 @@ export const listLogAudits: API.PaginatedOperationMethod<
1968
1952
  ListLogAuditsResponse,
1969
1953
  ListLogAuditsError,
1970
1954
  Credentials | HttpClient.HttpClient
1971
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1955
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1972
1956
  input: ListLogAuditsRequest,
1973
1957
  output: ListLogAuditsResponse,
1974
1958
  errors: [],
@@ -1990,7 +1974,7 @@ export interface GetMemberRequest {
1990
1974
  accountId: string;
1991
1975
  }
1992
1976
 
1993
- export const GetMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1977
+ export const GetMemberRequest = /*@__PURE__*/ Schema.suspend(() =>
1994
1978
  Schema.Struct({
1995
1979
  memberId: Schema.String.pipe(T.HttpPath("memberId")),
1996
1980
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -2056,26 +2040,22 @@ export interface GetMemberResponse {
2056
2040
  } | null;
2057
2041
  }
2058
2042
 
2059
- export const GetMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2060
- () =>
2061
- Schema.Struct({
2062
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2063
- email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2064
- policies: Schema.optional(
2065
- Schema.Union([Schema.Array(Policy), Schema.Null]),
2066
- ),
2067
- roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
2068
- status: Schema.optional(
2069
- Schema.Union([
2070
- Schema.Union([
2071
- Schema.Literals(["accepted", "pending"]),
2072
- Schema.String,
2073
- ]),
2074
- Schema.Null,
2075
- ]),
2076
- ),
2077
- user: Schema.optional(Schema.Union([User, Schema.Null])),
2078
- }).pipe(T.ResponsePath("result")),
2043
+ export const GetMemberResponse = /*@__PURE__*/ Schema.suspend(() =>
2044
+ Schema.Struct({
2045
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2046
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2047
+ policies: Schema.optional(
2048
+ Schema.Union([Schema.Array(Policy), Schema.Null]),
2049
+ ),
2050
+ roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
2051
+ status: Schema.optional(
2052
+ Schema.Union([
2053
+ Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
2054
+ Schema.Null,
2055
+ ]),
2056
+ ),
2057
+ user: Schema.optional(Schema.Union([User, Schema.Null])),
2058
+ }).pipe(T.ResponsePath("result")),
2079
2059
  ) as unknown as Schema.Codec<GetMemberResponse>;
2080
2060
 
2081
2061
  export type GetMemberError = DefaultErrors | MemberNotFound | InvalidRoute;
@@ -2085,7 +2065,7 @@ export const getMember: API.OperationMethod<
2085
2065
  GetMemberResponse,
2086
2066
  GetMemberError,
2087
2067
  Credentials | HttpClient.HttpClient
2088
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2068
+ > = /*@__PURE__*/ API.make(() => ({
2089
2069
  input: GetMemberRequest,
2090
2070
  output: GetMemberResponse,
2091
2071
  errors: [MemberNotFound, InvalidRoute],
@@ -2109,33 +2089,32 @@ export interface ListMembersRequest {
2109
2089
  status?: "accepted" | "pending" | "rejected" | (string & {});
2110
2090
  }
2111
2091
 
2112
- export const ListMembersRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2113
- () =>
2114
- Schema.Struct({
2115
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
2116
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
2117
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
2118
- direction: Schema.optional(
2119
- Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
2120
- ).pipe(T.HttpQuery("direction")),
2121
- order: Schema.optional(
2122
- Schema.Union([
2123
- Schema.Literals([
2124
- "user.first_name",
2125
- "user.last_name",
2126
- "user.email",
2127
- "status",
2128
- ]),
2129
- Schema.String,
2130
- ]),
2131
- ).pipe(T.HttpQuery("order")),
2132
- status: Schema.optional(
2133
- Schema.Union([
2134
- Schema.Literals(["accepted", "pending", "rejected"]),
2135
- Schema.String,
2092
+ export const ListMembersRequest = /*@__PURE__*/ Schema.suspend(() =>
2093
+ Schema.Struct({
2094
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2095
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
2096
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
2097
+ direction: Schema.optional(
2098
+ Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
2099
+ ).pipe(T.HttpQuery("direction")),
2100
+ order: Schema.optional(
2101
+ Schema.Union([
2102
+ Schema.Literals([
2103
+ "user.first_name",
2104
+ "user.last_name",
2105
+ "user.email",
2106
+ "status",
2136
2107
  ]),
2137
- ).pipe(T.HttpQuery("status")),
2138
- }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/members" })),
2108
+ Schema.String,
2109
+ ]),
2110
+ ).pipe(T.HttpQuery("order")),
2111
+ status: Schema.optional(
2112
+ Schema.Union([
2113
+ Schema.Literals(["accepted", "pending", "rejected"]),
2114
+ Schema.String,
2115
+ ]),
2116
+ ).pipe(T.HttpQuery("status")),
2117
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/members" })),
2139
2118
  ) as unknown as Schema.Codec<ListMembersRequest>;
2140
2119
 
2141
2120
  export interface ListMembersResponse {
@@ -2211,14 +2190,13 @@ export interface ListMembersResponse {
2211
2190
  } | null;
2212
2191
  }
2213
2192
 
2214
- export const ListMembersResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2215
- () =>
2216
- Schema.Struct({
2217
- result: Schema.Union([Schema.Array(Member), Schema.Null]),
2218
- resultInfo: Schema.optional(
2219
- Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
2220
- ),
2221
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
2193
+ export const ListMembersResponse = /*@__PURE__*/ Schema.suspend(() =>
2194
+ Schema.Struct({
2195
+ result: Schema.Union([Schema.Array(Member), Schema.Null]),
2196
+ resultInfo: Schema.optional(
2197
+ Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
2198
+ ),
2199
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
2222
2200
  ) as unknown as Schema.Codec<ListMembersResponse>;
2223
2201
 
2224
2202
  export type ListMembersError = DefaultErrors;
@@ -2228,7 +2206,7 @@ export const listMembers: API.PaginatedOperationMethod<
2228
2206
  ListMembersResponse,
2229
2207
  ListMembersError,
2230
2208
  Credentials | HttpClient.HttpClient
2231
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2209
+ > = /*@__PURE__*/ API.makePaginated(() => ({
2232
2210
  input: ListMembersRequest,
2233
2211
  output: ListMembersResponse,
2234
2212
  errors: [],
@@ -2258,17 +2236,16 @@ export interface CreateMemberRequest {
2258
2236
  }[];
2259
2237
  }
2260
2238
 
2261
- export const CreateMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2262
- () =>
2263
- Schema.Struct({
2264
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
2265
- email: Schema.String,
2266
- roles: Schema.optional(Schema.Array(Schema.String)),
2267
- status: Schema.optional(
2268
- Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
2269
- ),
2270
- policies: Schema.optional(Schema.Array(Policy2)),
2271
- }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/members" })),
2239
+ export const CreateMemberRequest = /*@__PURE__*/ Schema.suspend(() =>
2240
+ Schema.Struct({
2241
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2242
+ email: Schema.String,
2243
+ roles: Schema.optional(Schema.Array(Schema.String)),
2244
+ status: Schema.optional(
2245
+ Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
2246
+ ),
2247
+ policies: Schema.optional(Schema.Array(Policy2)),
2248
+ }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/members" })),
2272
2249
  ) as unknown as Schema.Codec<CreateMemberRequest>;
2273
2250
 
2274
2251
  export interface CreateMemberResponse {
@@ -2325,26 +2302,22 @@ export interface CreateMemberResponse {
2325
2302
  } | null;
2326
2303
  }
2327
2304
 
2328
- export const CreateMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2329
- () =>
2330
- Schema.Struct({
2331
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2332
- email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2333
- policies: Schema.optional(
2334
- Schema.Union([Schema.Array(Policy), Schema.Null]),
2335
- ),
2336
- roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
2337
- status: Schema.optional(
2338
- Schema.Union([
2339
- Schema.Union([
2340
- Schema.Literals(["accepted", "pending"]),
2341
- Schema.String,
2342
- ]),
2343
- Schema.Null,
2344
- ]),
2345
- ),
2346
- user: Schema.optional(Schema.Union([User, Schema.Null])),
2347
- }).pipe(T.ResponsePath("result")),
2305
+ export const CreateMemberResponse = /*@__PURE__*/ Schema.suspend(() =>
2306
+ Schema.Struct({
2307
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2308
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2309
+ policies: Schema.optional(
2310
+ Schema.Union([Schema.Array(Policy), Schema.Null]),
2311
+ ),
2312
+ roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
2313
+ status: Schema.optional(
2314
+ Schema.Union([
2315
+ Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
2316
+ Schema.Null,
2317
+ ]),
2318
+ ),
2319
+ user: Schema.optional(Schema.Union([User, Schema.Null])),
2320
+ }).pipe(T.ResponsePath("result")),
2348
2321
  ) as unknown as Schema.Codec<CreateMemberResponse>;
2349
2322
 
2350
2323
  export type CreateMemberError =
@@ -2358,7 +2331,7 @@ export const createMember: API.OperationMethod<
2358
2331
  CreateMemberResponse,
2359
2332
  CreateMemberError,
2360
2333
  Credentials | HttpClient.HttpClient
2361
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2334
+ > = /*@__PURE__*/ API.make(() => ({
2362
2335
  input: CreateMemberRequest,
2363
2336
  output: CreateMemberResponse,
2364
2337
  errors: [InvalidRoute, ValidationError, AccountMemberAlreadyExists],
@@ -2378,19 +2351,18 @@ export interface UpdateMemberRequest {
2378
2351
  }[];
2379
2352
  }
2380
2353
 
2381
- export const UpdateMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2382
- () =>
2383
- Schema.Struct({
2384
- memberId: Schema.String.pipe(T.HttpPath("memberId")),
2385
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
2386
- roles: Schema.optional(Schema.Array(PolicyPermissionGroup)),
2387
- policies: Schema.optional(Schema.Array(Policy2)),
2388
- }).pipe(
2389
- T.Http({
2390
- method: "PUT",
2391
- path: "/accounts/{account_id}/members/{memberId}",
2392
- }),
2393
- ),
2354
+ export const UpdateMemberRequest = /*@__PURE__*/ Schema.suspend(() =>
2355
+ Schema.Struct({
2356
+ memberId: Schema.String.pipe(T.HttpPath("memberId")),
2357
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2358
+ roles: Schema.optional(Schema.Array(PolicyPermissionGroup)),
2359
+ policies: Schema.optional(Schema.Array(Policy2)),
2360
+ }).pipe(
2361
+ T.Http({
2362
+ method: "PUT",
2363
+ path: "/accounts/{account_id}/members/{memberId}",
2364
+ }),
2365
+ ),
2394
2366
  ) as unknown as Schema.Codec<UpdateMemberRequest>;
2395
2367
 
2396
2368
  export interface UpdateMemberResponse {
@@ -2447,26 +2419,22 @@ export interface UpdateMemberResponse {
2447
2419
  } | null;
2448
2420
  }
2449
2421
 
2450
- export const UpdateMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2451
- () =>
2452
- Schema.Struct({
2453
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2454
- email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2455
- policies: Schema.optional(
2456
- Schema.Union([Schema.Array(Policy), Schema.Null]),
2457
- ),
2458
- roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
2459
- status: Schema.optional(
2460
- Schema.Union([
2461
- Schema.Union([
2462
- Schema.Literals(["accepted", "pending"]),
2463
- Schema.String,
2464
- ]),
2465
- Schema.Null,
2466
- ]),
2467
- ),
2468
- user: Schema.optional(Schema.Union([User, Schema.Null])),
2469
- }).pipe(T.ResponsePath("result")),
2422
+ export const UpdateMemberResponse = /*@__PURE__*/ Schema.suspend(() =>
2423
+ Schema.Struct({
2424
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2425
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2426
+ policies: Schema.optional(
2427
+ Schema.Union([Schema.Array(Policy), Schema.Null]),
2428
+ ),
2429
+ roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
2430
+ status: Schema.optional(
2431
+ Schema.Union([
2432
+ Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
2433
+ Schema.Null,
2434
+ ]),
2435
+ ),
2436
+ user: Schema.optional(Schema.Union([User, Schema.Null])),
2437
+ }).pipe(T.ResponsePath("result")),
2470
2438
  ) as unknown as Schema.Codec<UpdateMemberResponse>;
2471
2439
 
2472
2440
  export type UpdateMemberError =
@@ -2481,7 +2449,7 @@ export const updateMember: API.OperationMethod<
2481
2449
  UpdateMemberResponse,
2482
2450
  UpdateMemberError,
2483
2451
  Credentials | HttpClient.HttpClient
2484
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2452
+ > = /*@__PURE__*/ API.make(() => ({
2485
2453
  input: UpdateMemberRequest,
2486
2454
  output: UpdateMemberResponse,
2487
2455
  errors: [MemberNotFound, InvalidRoute, BadRequest, MethodNotAllowed],
@@ -2493,17 +2461,16 @@ export interface DeleteMemberRequest {
2493
2461
  accountId: string;
2494
2462
  }
2495
2463
 
2496
- export const DeleteMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2497
- () =>
2498
- Schema.Struct({
2499
- memberId: Schema.String.pipe(T.HttpPath("memberId")),
2500
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
2501
- }).pipe(
2502
- T.Http({
2503
- method: "DELETE",
2504
- path: "/accounts/{account_id}/members/{memberId}",
2505
- }),
2506
- ),
2464
+ export const DeleteMemberRequest = /*@__PURE__*/ Schema.suspend(() =>
2465
+ Schema.Struct({
2466
+ memberId: Schema.String.pipe(T.HttpPath("memberId")),
2467
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2468
+ }).pipe(
2469
+ T.Http({
2470
+ method: "DELETE",
2471
+ path: "/accounts/{account_id}/members/{memberId}",
2472
+ }),
2473
+ ),
2507
2474
  ) as unknown as Schema.Codec<DeleteMemberRequest>;
2508
2475
 
2509
2476
  export interface DeleteMemberResponse {
@@ -2511,11 +2478,10 @@ export interface DeleteMemberResponse {
2511
2478
  id: string;
2512
2479
  }
2513
2480
 
2514
- export const DeleteMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2515
- () =>
2516
- Schema.Struct({
2517
- id: Schema.String,
2518
- }).pipe(T.ResponsePath("result")),
2481
+ export const DeleteMemberResponse = /*@__PURE__*/ Schema.suspend(() =>
2482
+ Schema.Struct({
2483
+ id: Schema.String,
2484
+ }).pipe(T.ResponsePath("result")),
2519
2485
  ) as unknown as Schema.Codec<DeleteMemberResponse>;
2520
2486
 
2521
2487
  export type DeleteMemberError = DefaultErrors | MemberNotFound | InvalidRoute;
@@ -2525,7 +2491,7 @@ export const deleteMember: API.OperationMethod<
2525
2491
  DeleteMemberResponse,
2526
2492
  DeleteMemberError,
2527
2493
  Credentials | HttpClient.HttpClient
2528
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2494
+ > = /*@__PURE__*/ API.make(() => ({
2529
2495
  input: DeleteMemberRequest,
2530
2496
  output: DeleteMemberResponse,
2531
2497
  errors: [MemberNotFound, InvalidRoute],
@@ -2541,7 +2507,7 @@ export interface GetRoleRequest {
2541
2507
  accountId: string;
2542
2508
  }
2543
2509
 
2544
- export const GetRoleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2510
+ export const GetRoleRequest = /*@__PURE__*/ Schema.suspend(() =>
2545
2511
  Schema.Struct({
2546
2512
  roleId: Schema.String.pipe(T.HttpPath("roleId")),
2547
2513
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -2573,7 +2539,7 @@ export interface GetRoleResponse {
2573
2539
  };
2574
2540
  }
2575
2541
 
2576
- export const GetRoleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2542
+ export const GetRoleResponse = /*@__PURE__*/ Schema.suspend(() =>
2577
2543
  Schema.Struct({
2578
2544
  id: Schema.String,
2579
2545
  description: Schema.String,
@@ -2589,7 +2555,7 @@ export const getRole: API.OperationMethod<
2589
2555
  GetRoleResponse,
2590
2556
  GetRoleError,
2591
2557
  Credentials | HttpClient.HttpClient
2592
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2558
+ > = /*@__PURE__*/ API.make(() => ({
2593
2559
  input: GetRoleRequest,
2594
2560
  output: GetRoleResponse,
2595
2561
  errors: [InvalidRoute],
@@ -2602,7 +2568,7 @@ export interface ListRolesRequest {
2602
2568
  perPage?: number;
2603
2569
  }
2604
2570
 
2605
- export const ListRolesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2571
+ export const ListRolesRequest = /*@__PURE__*/ Schema.suspend(() =>
2606
2572
  Schema.Struct({
2607
2573
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2608
2574
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
@@ -2646,14 +2612,13 @@ export interface ListRolesResponse {
2646
2612
  } | null;
2647
2613
  }
2648
2614
 
2649
- export const ListRolesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2650
- () =>
2651
- Schema.Struct({
2652
- result: Schema.Union([Schema.Array(Role), Schema.Null]),
2653
- resultInfo: Schema.optional(
2654
- Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
2655
- ),
2656
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
2615
+ export const ListRolesResponse = /*@__PURE__*/ Schema.suspend(() =>
2616
+ Schema.Struct({
2617
+ result: Schema.Union([Schema.Array(Role), Schema.Null]),
2618
+ resultInfo: Schema.optional(
2619
+ Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
2620
+ ),
2621
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
2657
2622
  ) as unknown as Schema.Codec<ListRolesResponse>;
2658
2623
 
2659
2624
  export type ListRolesError = DefaultErrors;
@@ -2663,7 +2628,7 @@ export const listRoles: API.PaginatedOperationMethod<
2663
2628
  ListRolesResponse,
2664
2629
  ListRolesError,
2665
2630
  Credentials | HttpClient.HttpClient
2666
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2631
+ > = /*@__PURE__*/ API.makePaginated(() => ({
2667
2632
  input: ListRolesRequest,
2668
2633
  output: ListRolesResponse,
2669
2634
  errors: [],
@@ -2686,7 +2651,7 @@ export interface GetSubscriptionRequest {
2686
2651
  }
2687
2652
 
2688
2653
  export const GetSubscriptionRequest =
2689
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2654
+ /*@__PURE__*/ Schema.suspend(() =>
2690
2655
  Schema.Struct({
2691
2656
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2692
2657
  }).pipe(
@@ -2743,7 +2708,7 @@ export interface GetSubscriptionResponse {
2743
2708
  }
2744
2709
 
2745
2710
  export const GetSubscriptionResponse =
2746
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2711
+ /*@__PURE__*/ Schema.suspend(() =>
2747
2712
  Schema.Struct({
2748
2713
  result: Schema.Array(Subscription),
2749
2714
  }),
@@ -2756,7 +2721,7 @@ export const getSubscription: API.PaginatedOperationMethod<
2756
2721
  GetSubscriptionResponse,
2757
2722
  GetSubscriptionError,
2758
2723
  Credentials | HttpClient.HttpClient
2759
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2724
+ > = /*@__PURE__*/ API.makePaginated(() => ({
2760
2725
  input: GetSubscriptionRequest,
2761
2726
  output: GetSubscriptionResponse,
2762
2727
  errors: [],
@@ -2795,7 +2760,7 @@ export interface CreateSubscriptionRequest {
2795
2760
  }
2796
2761
 
2797
2762
  export const CreateSubscriptionRequest =
2798
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2763
+ /*@__PURE__*/ Schema.suspend(() =>
2799
2764
  Schema.Struct({
2800
2765
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2801
2766
  frequency: Schema.optional(
@@ -2866,7 +2831,7 @@ export interface CreateSubscriptionResponse {
2866
2831
  }
2867
2832
 
2868
2833
  export const CreateSubscriptionResponse =
2869
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2834
+ /*@__PURE__*/ Schema.suspend(() =>
2870
2835
  Schema.Struct({
2871
2836
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2872
2837
  currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2930,7 +2895,7 @@ export const createSubscription: API.OperationMethod<
2930
2895
  CreateSubscriptionResponse,
2931
2896
  CreateSubscriptionError,
2932
2897
  Credentials | HttpClient.HttpClient
2933
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2898
+ > = /*@__PURE__*/ API.make(() => ({
2934
2899
  input: CreateSubscriptionRequest,
2935
2900
  output: CreateSubscriptionResponse,
2936
2901
  errors: [JsonDecodeFailure, InvalidRoute],
@@ -2966,7 +2931,7 @@ export interface UpdateSubscriptionRequest {
2966
2931
  }
2967
2932
 
2968
2933
  export const UpdateSubscriptionRequest =
2969
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2934
+ /*@__PURE__*/ Schema.suspend(() =>
2970
2935
  Schema.Struct({
2971
2936
  subscriptionIdentifier: Schema.String.pipe(
2972
2937
  T.HttpPath("subscriptionIdentifier"),
@@ -3043,7 +3008,7 @@ export interface UpdateSubscriptionResponse {
3043
3008
  }
3044
3009
 
3045
3010
  export const UpdateSubscriptionResponse =
3046
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
3011
+ /*@__PURE__*/ Schema.suspend(() =>
3047
3012
  Schema.Struct({
3048
3013
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3049
3014
  currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -3108,7 +3073,7 @@ export const updateSubscription: API.OperationMethod<
3108
3073
  UpdateSubscriptionResponse,
3109
3074
  UpdateSubscriptionError,
3110
3075
  Credentials | HttpClient.HttpClient
3111
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3076
+ > = /*@__PURE__*/ API.make(() => ({
3112
3077
  input: UpdateSubscriptionRequest,
3113
3078
  output: UpdateSubscriptionResponse,
3114
3079
  errors: [JsonDecodeFailure, InvalidRoute, EndpointNotFound],
@@ -3121,7 +3086,7 @@ export interface DeleteSubscriptionRequest {
3121
3086
  }
3122
3087
 
3123
3088
  export const DeleteSubscriptionRequest =
3124
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
3089
+ /*@__PURE__*/ Schema.suspend(() =>
3125
3090
  Schema.Struct({
3126
3091
  subscriptionIdentifier: Schema.String.pipe(
3127
3092
  T.HttpPath("subscriptionIdentifier"),
@@ -3141,7 +3106,7 @@ export interface DeleteSubscriptionResponse {
3141
3106
  }
3142
3107
 
3143
3108
  export const DeleteSubscriptionResponse =
3144
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
3109
+ /*@__PURE__*/ Schema.suspend(() =>
3145
3110
  Schema.Struct({
3146
3111
  subscriptionId: Schema.optional(
3147
3112
  Schema.Union([Schema.String, Schema.Null]),
@@ -3161,7 +3126,7 @@ export const deleteSubscription: API.OperationMethod<
3161
3126
  DeleteSubscriptionResponse,
3162
3127
  DeleteSubscriptionError,
3163
3128
  Credentials | HttpClient.HttpClient
3164
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3129
+ > = /*@__PURE__*/ API.make(() => ({
3165
3130
  input: DeleteSubscriptionRequest,
3166
3131
  output: DeleteSubscriptionResponse,
3167
3132
  errors: [InvalidRoute, EndpointNotFound],
@@ -3177,7 +3142,7 @@ export interface GetTokenRequest {
3177
3142
  accountId: string;
3178
3143
  }
3179
3144
 
3180
- export const GetTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
3145
+ export const GetTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
3181
3146
  Schema.Struct({
3182
3147
  tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
3183
3148
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -3221,7 +3186,7 @@ export interface GetTokenResponse {
3221
3186
  status?: "active" | "disabled" | "expired" | (string & {}) | null;
3222
3187
  }
3223
3188
 
3224
- export const GetTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
3189
+ export const GetTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
3225
3190
  Schema.Struct({
3226
3191
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3227
3192
  condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
@@ -3268,7 +3233,7 @@ export const getToken: API.OperationMethod<
3268
3233
  GetTokenResponse,
3269
3234
  GetTokenError,
3270
3235
  Credentials | HttpClient.HttpClient
3271
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3236
+ > = /*@__PURE__*/ API.make(() => ({
3272
3237
  input: GetTokenRequest,
3273
3238
  output: GetTokenResponse,
3274
3239
  errors: [InvalidRoute, TokenNotFound],
@@ -3283,16 +3248,15 @@ export interface ListTokensRequest {
3283
3248
  direction?: "asc" | "desc" | (string & {});
3284
3249
  }
3285
3250
 
3286
- export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3287
- () =>
3288
- Schema.Struct({
3289
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
3290
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
3291
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
3292
- direction: Schema.optional(
3293
- Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
3294
- ).pipe(T.HttpQuery("direction")),
3295
- }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens" })),
3251
+ export const ListTokensRequest = /*@__PURE__*/ Schema.suspend(() =>
3252
+ Schema.Struct({
3253
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3254
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
3255
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
3256
+ direction: Schema.optional(
3257
+ Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
3258
+ ).pipe(T.HttpQuery("direction")),
3259
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens" })),
3296
3260
  ) as unknown as Schema.Codec<ListTokensRequest>;
3297
3261
 
3298
3262
  export interface ListTokensResponse {
@@ -3329,14 +3293,13 @@ export interface ListTokensResponse {
3329
3293
  } | null;
3330
3294
  }
3331
3295
 
3332
- export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3333
- () =>
3334
- Schema.Struct({
3335
- result: Schema.Array(Token),
3336
- resultInfo: Schema.optional(
3337
- Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
3338
- ),
3339
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
3296
+ export const ListTokensResponse = /*@__PURE__*/ Schema.suspend(() =>
3297
+ Schema.Struct({
3298
+ result: Schema.Array(Token),
3299
+ resultInfo: Schema.optional(
3300
+ Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
3301
+ ),
3302
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
3340
3303
  ) as unknown as Schema.Codec<ListTokensResponse>;
3341
3304
 
3342
3305
  export type ListTokensError = DefaultErrors;
@@ -3346,7 +3309,7 @@ export const listTokens: API.PaginatedOperationMethod<
3346
3309
  ListTokensResponse,
3347
3310
  ListTokensError,
3348
3311
  Credentials | HttpClient.HttpClient
3349
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3312
+ > = /*@__PURE__*/ API.makePaginated(() => ({
3350
3313
  input: ListTokensRequest,
3351
3314
  output: ListTokensResponse,
3352
3315
  errors: [],
@@ -3378,25 +3341,24 @@ export interface CreateTokenRequest {
3378
3341
  notBefore?: string;
3379
3342
  }
3380
3343
 
3381
- export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3382
- () =>
3383
- Schema.Struct({
3384
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
3385
- name: Schema.String,
3386
- policies: Schema.Array(TokenPolicyParam),
3387
- condition: Schema.optional(Condition),
3388
- expiresOn: Schema.optional(Schema.String),
3389
- notBefore: Schema.optional(Schema.String),
3390
- }).pipe(
3391
- Schema.encodeKeys({
3392
- name: "name",
3393
- policies: "policies",
3394
- condition: "condition",
3395
- expiresOn: "expires_on",
3396
- notBefore: "not_before",
3397
- }),
3398
- T.Http({ method: "POST", path: "/accounts/{account_id}/tokens" }),
3399
- ),
3344
+ export const CreateTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
3345
+ Schema.Struct({
3346
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3347
+ name: Schema.String,
3348
+ policies: Schema.Array(TokenPolicyParam),
3349
+ condition: Schema.optional(Condition),
3350
+ expiresOn: Schema.optional(Schema.String),
3351
+ notBefore: Schema.optional(Schema.String),
3352
+ }).pipe(
3353
+ Schema.encodeKeys({
3354
+ name: "name",
3355
+ policies: "policies",
3356
+ condition: "condition",
3357
+ expiresOn: "expires_on",
3358
+ notBefore: "not_before",
3359
+ }),
3360
+ T.Http({ method: "POST", path: "/accounts/{account_id}/tokens" }),
3361
+ ),
3400
3362
  ) as unknown as Schema.Codec<CreateTokenRequest>;
3401
3363
 
3402
3364
  export interface CreateTokenResponse {
@@ -3436,47 +3398,46 @@ export interface CreateTokenResponse {
3436
3398
  value?: string | null;
3437
3399
  }
3438
3400
 
3439
- export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3440
- () =>
3441
- Schema.Struct({
3442
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3443
- condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
3444
- expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3445
- issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3446
- lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3447
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3448
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3449
- notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3450
- policies: Schema.optional(
3451
- Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
3452
- ),
3453
- status: Schema.optional(
3401
+ export const CreateTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
3402
+ Schema.Struct({
3403
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3404
+ condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
3405
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3406
+ issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3407
+ lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3408
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3409
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3410
+ notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3411
+ policies: Schema.optional(
3412
+ Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
3413
+ ),
3414
+ status: Schema.optional(
3415
+ Schema.Union([
3454
3416
  Schema.Union([
3455
- Schema.Union([
3456
- Schema.Literals(["active", "disabled", "expired"]),
3457
- Schema.String,
3458
- ]),
3459
- Schema.Null,
3417
+ Schema.Literals(["active", "disabled", "expired"]),
3418
+ Schema.String,
3460
3419
  ]),
3461
- ),
3462
- value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3463
- })
3464
- .pipe(
3465
- Schema.encodeKeys({
3466
- id: "id",
3467
- condition: "condition",
3468
- expiresOn: "expires_on",
3469
- issuedOn: "issued_on",
3470
- lastUsedOn: "last_used_on",
3471
- modifiedOn: "modified_on",
3472
- name: "name",
3473
- notBefore: "not_before",
3474
- policies: "policies",
3475
- status: "status",
3476
- value: "value",
3477
- }),
3478
- )
3479
- .pipe(T.ResponsePath("result")),
3420
+ Schema.Null,
3421
+ ]),
3422
+ ),
3423
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3424
+ })
3425
+ .pipe(
3426
+ Schema.encodeKeys({
3427
+ id: "id",
3428
+ condition: "condition",
3429
+ expiresOn: "expires_on",
3430
+ issuedOn: "issued_on",
3431
+ lastUsedOn: "last_used_on",
3432
+ modifiedOn: "modified_on",
3433
+ name: "name",
3434
+ notBefore: "not_before",
3435
+ policies: "policies",
3436
+ status: "status",
3437
+ value: "value",
3438
+ }),
3439
+ )
3440
+ .pipe(T.ResponsePath("result")),
3480
3441
  ) as unknown as Schema.Codec<CreateTokenResponse>;
3481
3442
 
3482
3443
  export type CreateTokenError =
@@ -3490,7 +3451,7 @@ export const createToken: API.OperationMethod<
3490
3451
  CreateTokenResponse,
3491
3452
  CreateTokenError,
3492
3453
  Credentials | HttpClient.HttpClient
3493
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3454
+ > = /*@__PURE__*/ API.make(() => ({
3494
3455
  input: CreateTokenRequest,
3495
3456
  output: CreateTokenResponse,
3496
3457
  errors: [InvalidRoute, InvalidTokenName, PermissionGroupNotFound],
@@ -3518,36 +3479,35 @@ export interface UpdateTokenRequest {
3518
3479
  status?: "active" | "disabled" | "expired" | (string & {});
3519
3480
  }
3520
3481
 
3521
- export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3522
- () =>
3523
- Schema.Struct({
3524
- tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
3525
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
3526
- name: Schema.String,
3527
- policies: Schema.Array(TokenPolicyParam),
3528
- condition: Schema.optional(Condition),
3529
- expiresOn: Schema.optional(Schema.String),
3530
- notBefore: Schema.optional(Schema.String),
3531
- status: Schema.optional(
3532
- Schema.Union([
3533
- Schema.Literals(["active", "disabled", "expired"]),
3534
- Schema.String,
3535
- ]),
3536
- ),
3537
- }).pipe(
3538
- Schema.encodeKeys({
3539
- name: "name",
3540
- policies: "policies",
3541
- condition: "condition",
3542
- expiresOn: "expires_on",
3543
- notBefore: "not_before",
3544
- status: "status",
3545
- }),
3546
- T.Http({
3547
- method: "PUT",
3548
- path: "/accounts/{account_id}/tokens/{tokenId}",
3549
- }),
3482
+ export const UpdateTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
3483
+ Schema.Struct({
3484
+ tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
3485
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3486
+ name: Schema.String,
3487
+ policies: Schema.Array(TokenPolicyParam),
3488
+ condition: Schema.optional(Condition),
3489
+ expiresOn: Schema.optional(Schema.String),
3490
+ notBefore: Schema.optional(Schema.String),
3491
+ status: Schema.optional(
3492
+ Schema.Union([
3493
+ Schema.Literals(["active", "disabled", "expired"]),
3494
+ Schema.String,
3495
+ ]),
3550
3496
  ),
3497
+ }).pipe(
3498
+ Schema.encodeKeys({
3499
+ name: "name",
3500
+ policies: "policies",
3501
+ condition: "condition",
3502
+ expiresOn: "expires_on",
3503
+ notBefore: "not_before",
3504
+ status: "status",
3505
+ }),
3506
+ T.Http({
3507
+ method: "PUT",
3508
+ path: "/accounts/{account_id}/tokens/{tokenId}",
3509
+ }),
3510
+ ),
3551
3511
  ) as unknown as Schema.Codec<UpdateTokenRequest>;
3552
3512
 
3553
3513
  export interface UpdateTokenResponse {
@@ -3585,45 +3545,44 @@ export interface UpdateTokenResponse {
3585
3545
  status?: "active" | "disabled" | "expired" | (string & {}) | null;
3586
3546
  }
3587
3547
 
3588
- export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3589
- () =>
3590
- Schema.Struct({
3591
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3592
- condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
3593
- expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3594
- issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3595
- lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3596
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3597
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3598
- notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3599
- policies: Schema.optional(
3600
- Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
3601
- ),
3602
- status: Schema.optional(
3548
+ export const UpdateTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
3549
+ Schema.Struct({
3550
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3551
+ condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
3552
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3553
+ issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3554
+ lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3555
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3556
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3557
+ notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3558
+ policies: Schema.optional(
3559
+ Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
3560
+ ),
3561
+ status: Schema.optional(
3562
+ Schema.Union([
3603
3563
  Schema.Union([
3604
- Schema.Union([
3605
- Schema.Literals(["active", "disabled", "expired"]),
3606
- Schema.String,
3607
- ]),
3608
- Schema.Null,
3564
+ Schema.Literals(["active", "disabled", "expired"]),
3565
+ Schema.String,
3609
3566
  ]),
3610
- ),
3611
- })
3612
- .pipe(
3613
- Schema.encodeKeys({
3614
- id: "id",
3615
- condition: "condition",
3616
- expiresOn: "expires_on",
3617
- issuedOn: "issued_on",
3618
- lastUsedOn: "last_used_on",
3619
- modifiedOn: "modified_on",
3620
- name: "name",
3621
- notBefore: "not_before",
3622
- policies: "policies",
3623
- status: "status",
3624
- }),
3625
- )
3626
- .pipe(T.ResponsePath("result")),
3567
+ Schema.Null,
3568
+ ]),
3569
+ ),
3570
+ })
3571
+ .pipe(
3572
+ Schema.encodeKeys({
3573
+ id: "id",
3574
+ condition: "condition",
3575
+ expiresOn: "expires_on",
3576
+ issuedOn: "issued_on",
3577
+ lastUsedOn: "last_used_on",
3578
+ modifiedOn: "modified_on",
3579
+ name: "name",
3580
+ notBefore: "not_before",
3581
+ policies: "policies",
3582
+ status: "status",
3583
+ }),
3584
+ )
3585
+ .pipe(T.ResponsePath("result")),
3627
3586
  ) as unknown as Schema.Codec<UpdateTokenResponse>;
3628
3587
 
3629
3588
  export type UpdateTokenError =
@@ -3638,7 +3597,7 @@ export const updateToken: API.OperationMethod<
3638
3597
  UpdateTokenResponse,
3639
3598
  UpdateTokenError,
3640
3599
  Credentials | HttpClient.HttpClient
3641
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3600
+ > = /*@__PURE__*/ API.make(() => ({
3642
3601
  input: UpdateTokenRequest,
3643
3602
  output: UpdateTokenResponse,
3644
3603
  errors: [
@@ -3655,17 +3614,16 @@ export interface DeleteTokenRequest {
3655
3614
  accountId: string;
3656
3615
  }
3657
3616
 
3658
- export const DeleteTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3659
- () =>
3660
- Schema.Struct({
3661
- tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
3662
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
3663
- }).pipe(
3664
- T.Http({
3665
- method: "DELETE",
3666
- path: "/accounts/{account_id}/tokens/{tokenId}",
3667
- }),
3668
- ),
3617
+ export const DeleteTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
3618
+ Schema.Struct({
3619
+ tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
3620
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3621
+ }).pipe(
3622
+ T.Http({
3623
+ method: "DELETE",
3624
+ path: "/accounts/{account_id}/tokens/{tokenId}",
3625
+ }),
3626
+ ),
3669
3627
  ) as unknown as Schema.Codec<DeleteTokenRequest>;
3670
3628
 
3671
3629
  export interface DeleteTokenResponse {
@@ -3673,11 +3631,10 @@ export interface DeleteTokenResponse {
3673
3631
  id: string;
3674
3632
  }
3675
3633
 
3676
- export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3677
- () =>
3678
- Schema.Struct({
3679
- id: Schema.String,
3680
- }).pipe(T.ResponsePath("result")),
3634
+ export const DeleteTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
3635
+ Schema.Struct({
3636
+ id: Schema.String,
3637
+ }).pipe(T.ResponsePath("result")),
3681
3638
  ) as unknown as Schema.Codec<DeleteTokenResponse>;
3682
3639
 
3683
3640
  export type DeleteTokenError =
@@ -3692,7 +3649,7 @@ export const deleteToken: API.OperationMethod<
3692
3649
  DeleteTokenResponse,
3693
3650
  DeleteTokenError,
3694
3651
  Credentials | HttpClient.HttpClient
3695
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3652
+ > = /*@__PURE__*/ API.make(() => ({
3696
3653
  input: DeleteTokenRequest,
3697
3654
  output: DeleteTokenResponse,
3698
3655
  errors: [
@@ -3708,13 +3665,12 @@ export interface VerifyTokenRequest {
3708
3665
  accountId: string;
3709
3666
  }
3710
3667
 
3711
- export const VerifyTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3712
- () =>
3713
- Schema.Struct({
3714
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
3715
- }).pipe(
3716
- T.Http({ method: "GET", path: "/accounts/{account_id}/tokens/verify" }),
3717
- ),
3668
+ export const VerifyTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
3669
+ Schema.Struct({
3670
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3671
+ }).pipe(
3672
+ T.Http({ method: "GET", path: "/accounts/{account_id}/tokens/verify" }),
3673
+ ),
3718
3674
  ) as unknown as Schema.Codec<VerifyTokenRequest>;
3719
3675
 
3720
3676
  export interface VerifyTokenResponse {
@@ -3728,26 +3684,25 @@ export interface VerifyTokenResponse {
3728
3684
  notBefore?: string | null;
3729
3685
  }
3730
3686
 
3731
- export const VerifyTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3732
- () =>
3733
- Schema.Struct({
3734
- id: Schema.String,
3735
- status: Schema.Union([
3736
- Schema.Literals(["active", "disabled", "expired"]),
3737
- Schema.String,
3738
- ]),
3739
- expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3740
- notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3741
- })
3742
- .pipe(
3743
- Schema.encodeKeys({
3744
- id: "id",
3745
- status: "status",
3746
- expiresOn: "expires_on",
3747
- notBefore: "not_before",
3748
- }),
3749
- )
3750
- .pipe(T.ResponsePath("result")),
3687
+ export const VerifyTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
3688
+ Schema.Struct({
3689
+ id: Schema.String,
3690
+ status: Schema.Union([
3691
+ Schema.Literals(["active", "disabled", "expired"]),
3692
+ Schema.String,
3693
+ ]),
3694
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3695
+ notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3696
+ })
3697
+ .pipe(
3698
+ Schema.encodeKeys({
3699
+ id: "id",
3700
+ status: "status",
3701
+ expiresOn: "expires_on",
3702
+ notBefore: "not_before",
3703
+ }),
3704
+ )
3705
+ .pipe(T.ResponsePath("result")),
3751
3706
  ) as unknown as Schema.Codec<VerifyTokenResponse>;
3752
3707
 
3753
3708
  export type VerifyTokenError =
@@ -3760,7 +3715,7 @@ export const verifyToken: API.OperationMethod<
3760
3715
  VerifyTokenResponse,
3761
3716
  VerifyTokenError,
3762
3717
  Credentials | HttpClient.HttpClient
3763
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3718
+ > = /*@__PURE__*/ API.make(() => ({
3764
3719
  input: VerifyTokenRequest,
3765
3720
  output: VerifyTokenResponse,
3766
3721
  errors: [MissingAuthenticationToken, InvalidRoute],
@@ -3780,7 +3735,7 @@ export interface GetTokenPermissionGroupRequest {
3780
3735
  }
3781
3736
 
3782
3737
  export const GetTokenPermissionGroupRequest =
3783
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
3738
+ /*@__PURE__*/ Schema.suspend(() =>
3784
3739
  Schema.Struct({
3785
3740
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3786
3741
  name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
@@ -3824,7 +3779,7 @@ export type GetTokenPermissionGroupResponse = {
3824
3779
  }[];
3825
3780
 
3826
3781
  export const GetTokenPermissionGroupResponse =
3827
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
3782
+ /*@__PURE__*/ Schema.suspend(() =>
3828
3783
  Schema.Array(PermissionGroupGetResponseItem).pipe(T.ResponsePath("result")),
3829
3784
  ) as unknown as Schema.Codec<GetTokenPermissionGroupResponse>;
3830
3785
 
@@ -3835,7 +3790,7 @@ export const getTokenPermissionGroup: API.OperationMethod<
3835
3790
  GetTokenPermissionGroupResponse,
3836
3791
  GetTokenPermissionGroupError,
3837
3792
  Credentials | HttpClient.HttpClient
3838
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3793
+ > = /*@__PURE__*/ API.make(() => ({
3839
3794
  input: GetTokenPermissionGroupRequest,
3840
3795
  output: GetTokenPermissionGroupResponse,
3841
3796
  errors: [InvalidRoute],
@@ -3851,7 +3806,7 @@ export interface ListTokenPermissionGroupsRequest {
3851
3806
  }
3852
3807
 
3853
3808
  export const ListTokenPermissionGroupsRequest =
3854
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
3809
+ /*@__PURE__*/ Schema.suspend(() =>
3855
3810
  Schema.Struct({
3856
3811
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3857
3812
  name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
@@ -3897,7 +3852,7 @@ export interface ListTokenPermissionGroupsResponse {
3897
3852
  }
3898
3853
 
3899
3854
  export const ListTokenPermissionGroupsResponse =
3900
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
3855
+ /*@__PURE__*/ Schema.suspend(() =>
3901
3856
  Schema.Struct({
3902
3857
  result: Schema.Array(PermissionGroupGetResponseItem),
3903
3858
  }),
@@ -3910,7 +3865,7 @@ export const listTokenPermissionGroups: API.PaginatedOperationMethod<
3910
3865
  ListTokenPermissionGroupsResponse,
3911
3866
  ListTokenPermissionGroupsError,
3912
3867
  Credentials | HttpClient.HttpClient
3913
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3868
+ > = /*@__PURE__*/ API.makePaginated(() => ({
3914
3869
  input: ListTokenPermissionGroupsRequest,
3915
3870
  output: ListTokenPermissionGroupsResponse,
3916
3871
  errors: [],
@@ -3932,24 +3887,23 @@ export interface PutTokenValueRequest {
3932
3887
  body: unknown;
3933
3888
  }
3934
3889
 
3935
- export const PutTokenValueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3936
- () =>
3937
- Schema.Struct({
3938
- tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
3939
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
3940
- body: Schema.Unknown.pipe(T.HttpBody()),
3941
- }).pipe(
3942
- T.Http({
3943
- method: "PUT",
3944
- path: "/accounts/{account_id}/tokens/{tokenId}/value",
3945
- }),
3946
- ),
3890
+ export const PutTokenValueRequest = /*@__PURE__*/ Schema.suspend(() =>
3891
+ Schema.Struct({
3892
+ tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
3893
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3894
+ body: Schema.Unknown.pipe(T.HttpBody()),
3895
+ }).pipe(
3896
+ T.Http({
3897
+ method: "PUT",
3898
+ path: "/accounts/{account_id}/tokens/{tokenId}/value",
3899
+ }),
3900
+ ),
3947
3901
  ) as unknown as Schema.Codec<PutTokenValueRequest>;
3948
3902
 
3949
3903
  export type PutTokenValueResponse = string;
3950
3904
 
3951
- export const PutTokenValueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
3952
- () => Schema.String.pipe(T.ResponsePath("result")),
3905
+ export const PutTokenValueResponse = /*@__PURE__*/ Schema.suspend(() =>
3906
+ Schema.String.pipe(T.ResponsePath("result")),
3953
3907
  ) as unknown as Schema.Codec<PutTokenValueResponse>;
3954
3908
 
3955
3909
  export type PutTokenValueError = DefaultErrors | InvalidRoute | TokenNotFound;
@@ -3959,7 +3913,7 @@ export const putTokenValue: API.OperationMethod<
3959
3913
  PutTokenValueResponse,
3960
3914
  PutTokenValueError,
3961
3915
  Credentials | HttpClient.HttpClient
3962
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3916
+ > = /*@__PURE__*/ API.make(() => ({
3963
3917
  input: PutTokenValueRequest,
3964
3918
  output: PutTokenValueResponse,
3965
3919
  errors: [InvalidRoute, TokenNotFound],