@distilled.cloud/cloudflare 0.28.2 → 0.29.1

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 (463) hide show
  1. package/lib/client/api.d.ts +1 -1
  2. package/lib/client/api.d.ts.map +1 -1
  3. package/lib/credentials.d.ts.map +1 -1
  4. package/lib/retry.d.ts.map +1 -1
  5. package/lib/services/abuse-reports.d.ts.map +1 -1
  6. package/lib/services/abuse-reports.js +26 -26
  7. package/lib/services/abuse-reports.js.map +1 -1
  8. package/lib/services/accounts.d.ts.map +1 -1
  9. package/lib/services/accounts.js +114 -123
  10. package/lib/services/accounts.js.map +1 -1
  11. package/lib/services/acm.d.ts.map +1 -1
  12. package/lib/services/acm.js +23 -23
  13. package/lib/services/acm.js.map +1 -1
  14. package/lib/services/addressing.d.ts.map +1 -1
  15. package/lib/services/addressing.js +132 -132
  16. package/lib/services/addressing.js.map +1 -1
  17. package/lib/services/ai-gateway.d.ts.map +1 -1
  18. package/lib/services/ai-gateway.js +213 -207
  19. package/lib/services/ai-gateway.js.map +1 -1
  20. package/lib/services/ai-security.d.ts.map +1 -1
  21. package/lib/services/ai-security.js +13 -13
  22. package/lib/services/ai-security.js.map +1 -1
  23. package/lib/services/ai.d.ts.map +1 -1
  24. package/lib/services/ai.js +62 -62
  25. package/lib/services/ai.js.map +1 -1
  26. package/lib/services/aisearch.d.ts.map +1 -1
  27. package/lib/services/aisearch.js +187 -193
  28. package/lib/services/aisearch.js.map +1 -1
  29. package/lib/services/alerting.d.ts.map +1 -1
  30. package/lib/services/alerting.js +78 -78
  31. package/lib/services/alerting.js.map +1 -1
  32. package/lib/services/api-gateway.d.ts.map +1 -1
  33. package/lib/services/api-gateway.js +168 -177
  34. package/lib/services/api-gateway.js.map +1 -1
  35. package/lib/services/argo.js +12 -12
  36. package/lib/services/argo.js.map +1 -1
  37. package/lib/services/audit-logs.d.ts.map +1 -1
  38. package/lib/services/audit-logs.js +9 -9
  39. package/lib/services/audit-logs.js.map +1 -1
  40. package/lib/services/billing.d.ts.map +1 -1
  41. package/lib/services/billing.js +11 -11
  42. package/lib/services/billing.js.map +1 -1
  43. package/lib/services/bot-management.d.ts.map +1 -1
  44. package/lib/services/bot-management.js +18 -30
  45. package/lib/services/bot-management.js.map +1 -1
  46. package/lib/services/botnet-feed.d.ts.map +1 -1
  47. package/lib/services/botnet-feed.js +12 -12
  48. package/lib/services/botnet-feed.js.map +1 -1
  49. package/lib/services/brand-protection.d.ts.map +1 -1
  50. package/lib/services/brand-protection.js +59 -59
  51. package/lib/services/brand-protection.js.map +1 -1
  52. package/lib/services/browser-rendering.d.ts.map +1 -1
  53. package/lib/services/browser-rendering.js +103 -103
  54. package/lib/services/browser-rendering.js.map +1 -1
  55. package/lib/services/cache.d.ts.map +1 -1
  56. package/lib/services/cache.js +72 -72
  57. package/lib/services/cache.js.map +1 -1
  58. package/lib/services/calls.d.ts.map +1 -1
  59. package/lib/services/calls.js +31 -31
  60. package/lib/services/calls.js.map +1 -1
  61. package/lib/services/certificate-authorities.js +6 -6
  62. package/lib/services/certificate-authorities.js.map +1 -1
  63. package/lib/services/client-certificates.js +18 -18
  64. package/lib/services/client-certificates.js.map +1 -1
  65. package/lib/services/cloud-connector.d.ts.map +1 -1
  66. package/lib/services/cloud-connector.js +8 -8
  67. package/lib/services/cloud-connector.js.map +1 -1
  68. package/lib/services/cloudforce-one.d.ts.map +1 -1
  69. package/lib/services/cloudforce-one.js +178 -178
  70. package/lib/services/cloudforce-one.js.map +1 -1
  71. package/lib/services/connectivity.js +25 -25
  72. package/lib/services/connectivity.js.map +1 -1
  73. package/lib/services/containers.js +49 -49
  74. package/lib/services/containers.js.map +1 -1
  75. package/lib/services/content-scanning.d.ts.map +1 -1
  76. package/lib/services/content-scanning.js +29 -29
  77. package/lib/services/content-scanning.js.map +1 -1
  78. package/lib/services/csam-scanner.d.ts.map +1 -1
  79. package/lib/services/csam-scanner.js +8 -8
  80. package/lib/services/csam-scanner.js.map +1 -1
  81. package/lib/services/custom-certificates.d.ts.map +1 -1
  82. package/lib/services/custom-certificates.js +24 -24
  83. package/lib/services/custom-certificates.js.map +1 -1
  84. package/lib/services/custom-csrs.d.ts.map +1 -1
  85. package/lib/services/custom-csrs.js +22 -22
  86. package/lib/services/custom-csrs.js.map +1 -1
  87. package/lib/services/custom-hostnames.d.ts.map +1 -1
  88. package/lib/services/custom-hostnames.js +40 -40
  89. package/lib/services/custom-hostnames.js.map +1 -1
  90. package/lib/services/custom-nameservers.js +11 -11
  91. package/lib/services/custom-nameservers.js.map +1 -1
  92. package/lib/services/custom-pages.d.ts.map +1 -1
  93. package/lib/services/custom-pages.js +43 -43
  94. package/lib/services/custom-pages.js.map +1 -1
  95. package/lib/services/d1.d.ts +4 -4
  96. package/lib/services/d1.d.ts.map +1 -1
  97. package/lib/services/d1.js +69 -51
  98. package/lib/services/d1.js.map +1 -1
  99. package/lib/services/dcv-delegation.js +3 -3
  100. package/lib/services/dcv-delegation.js.map +1 -1
  101. package/lib/services/ddos-protection.js +126 -126
  102. package/lib/services/ddos-protection.js.map +1 -1
  103. package/lib/services/diagnostics.js +27 -27
  104. package/lib/services/diagnostics.js.map +1 -1
  105. package/lib/services/dls.d.ts.map +1 -1
  106. package/lib/services/dls.js +26 -26
  107. package/lib/services/dls.js.map +1 -1
  108. package/lib/services/dns-firewall.d.ts.map +1 -1
  109. package/lib/services/dns-firewall.js +34 -34
  110. package/lib/services/dns-firewall.js.map +1 -1
  111. package/lib/services/dns.d.ts.map +1 -1
  112. package/lib/services/dns.js +268 -268
  113. package/lib/services/dns.js.map +1 -1
  114. package/lib/services/durable-objects.d.ts.map +1 -1
  115. package/lib/services/durable-objects.js +11 -11
  116. package/lib/services/durable-objects.js.map +1 -1
  117. package/lib/services/email-auth.d.ts.map +1 -1
  118. package/lib/services/email-auth.js +13 -13
  119. package/lib/services/email-auth.js.map +1 -1
  120. package/lib/services/email-routing.d.ts.map +1 -1
  121. package/lib/services/email-routing.js +70 -70
  122. package/lib/services/email-routing.js.map +1 -1
  123. package/lib/services/email-security.d.ts.map +1 -1
  124. package/lib/services/email-security.js +195 -195
  125. package/lib/services/email-security.js.map +1 -1
  126. package/lib/services/email-sending.d.ts.map +1 -1
  127. package/lib/services/email-sending.js +28 -28
  128. package/lib/services/email-sending.js.map +1 -1
  129. package/lib/services/filters.d.ts.map +1 -1
  130. package/lib/services/filters.js +25 -25
  131. package/lib/services/filters.js.map +1 -1
  132. package/lib/services/firewall.d.ts.map +1 -1
  133. package/lib/services/firewall.js +149 -149
  134. package/lib/services/firewall.js.map +1 -1
  135. package/lib/services/flagship.d.ts.map +1 -1
  136. package/lib/services/flagship.js +52 -52
  137. package/lib/services/flagship.js.map +1 -1
  138. package/lib/services/fraud.js +8 -8
  139. package/lib/services/fraud.js.map +1 -1
  140. package/lib/services/google-tag-gateway.d.ts.map +1 -1
  141. package/lib/services/google-tag-gateway.js +7 -7
  142. package/lib/services/google-tag-gateway.js.map +1 -1
  143. package/lib/services/healthchecks.d.ts.map +1 -1
  144. package/lib/services/healthchecks.js +31 -31
  145. package/lib/services/healthchecks.js.map +1 -1
  146. package/lib/services/hostnames.d.ts.map +1 -1
  147. package/lib/services/hostnames.js +10 -10
  148. package/lib/services/hostnames.js.map +1 -1
  149. package/lib/services/hyperdrive.d.ts.map +1 -1
  150. package/lib/services/hyperdrive.js +32 -32
  151. package/lib/services/hyperdrive.js.map +1 -1
  152. package/lib/services/iam.d.ts.map +1 -1
  153. package/lib/services/iam.js +113 -113
  154. package/lib/services/iam.js.map +1 -1
  155. package/lib/services/images.d.ts.map +1 -1
  156. package/lib/services/images.js +59 -59
  157. package/lib/services/images.js.map +1 -1
  158. package/lib/services/intel.d.ts.map +1 -1
  159. package/lib/services/intel.js +102 -102
  160. package/lib/services/intel.js.map +1 -1
  161. package/lib/services/ips.js +5 -5
  162. package/lib/services/ips.js.map +1 -1
  163. package/lib/services/keyless-certificates.js +17 -17
  164. package/lib/services/keyless-certificates.js.map +1 -1
  165. package/lib/services/kv.d.ts.map +1 -1
  166. package/lib/services/kv.js +54 -54
  167. package/lib/services/kv.js.map +1 -1
  168. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  169. package/lib/services/leaked-credential-checks.js +22 -22
  170. package/lib/services/leaked-credential-checks.js.map +1 -1
  171. package/lib/services/load-balancers.d.ts.map +1 -1
  172. package/lib/services/load-balancers.js +139 -157
  173. package/lib/services/load-balancers.js.map +1 -1
  174. package/lib/services/logpush.d.ts.map +1 -1
  175. package/lib/services/logpush.js +69 -69
  176. package/lib/services/logpush.js.map +1 -1
  177. package/lib/services/logs.d.ts.map +1 -1
  178. package/lib/services/logs.js +58 -58
  179. package/lib/services/logs.js.map +1 -1
  180. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  181. package/lib/services/magic-cloud-networking.js +138 -168
  182. package/lib/services/magic-cloud-networking.js.map +1 -1
  183. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  184. package/lib/services/magic-network-monitoring.js +47 -65
  185. package/lib/services/magic-network-monitoring.js.map +1 -1
  186. package/lib/services/magic-transit.d.ts.map +1 -1
  187. package/lib/services/magic-transit.js +340 -364
  188. package/lib/services/magic-transit.js.map +1 -1
  189. package/lib/services/managed-transforms.js +11 -11
  190. package/lib/services/managed-transforms.js.map +1 -1
  191. package/lib/services/memberships.d.ts.map +1 -1
  192. package/lib/services/memberships.js +25 -25
  193. package/lib/services/memberships.js.map +1 -1
  194. package/lib/services/moq.d.ts.map +1 -1
  195. package/lib/services/moq.js +23 -23
  196. package/lib/services/moq.js.map +1 -1
  197. package/lib/services/mtls-certificates.d.ts.map +1 -1
  198. package/lib/services/mtls-certificates.js +17 -17
  199. package/lib/services/mtls-certificates.js.map +1 -1
  200. package/lib/services/network-interconnects.d.ts.map +1 -1
  201. package/lib/services/network-interconnects.js +56 -56
  202. package/lib/services/network-interconnects.js.map +1 -1
  203. package/lib/services/organizations.d.ts.map +1 -1
  204. package/lib/services/organizations.js +42 -42
  205. package/lib/services/organizations.js.map +1 -1
  206. package/lib/services/origin-ca-certificates.js +14 -14
  207. package/lib/services/origin-ca-certificates.js.map +1 -1
  208. package/lib/services/origin-post-quantum-encryption.js +6 -6
  209. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  210. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  211. package/lib/services/origin-tls-client-auth.js +52 -52
  212. package/lib/services/origin-tls-client-auth.js.map +1 -1
  213. package/lib/services/origin-tls-compliance-modes.js +12 -12
  214. package/lib/services/origin-tls-compliance-modes.js.map +1 -1
  215. package/lib/services/page-rules.d.ts.map +1 -1
  216. package/lib/services/page-rules.js +62 -62
  217. package/lib/services/page-rules.js.map +1 -1
  218. package/lib/services/page-shield.d.ts.map +1 -1
  219. package/lib/services/page-shield.js +45 -48
  220. package/lib/services/page-shield.js.map +1 -1
  221. package/lib/services/pages.d.ts.map +1 -1
  222. package/lib/services/pages.js +78 -78
  223. package/lib/services/pages.js.map +1 -1
  224. package/lib/services/pipelines.d.ts.map +1 -1
  225. package/lib/services/pipelines.js +102 -102
  226. package/lib/services/pipelines.js.map +1 -1
  227. package/lib/services/queues.d.ts.map +1 -1
  228. package/lib/services/queues.js +100 -103
  229. package/lib/services/queues.js.map +1 -1
  230. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  231. package/lib/services/r2-data-catalog.js +42 -42
  232. package/lib/services/r2-data-catalog.js.map +1 -1
  233. package/lib/services/r2.d.ts.map +1 -1
  234. package/lib/services/r2.js +190 -190
  235. package/lib/services/r2.js.map +1 -1
  236. package/lib/services/radar.d.ts.map +1 -1
  237. package/lib/services/radar.js +991 -1009
  238. package/lib/services/radar.js.map +1 -1
  239. package/lib/services/rate-limits.d.ts.map +1 -1
  240. package/lib/services/rate-limits.js +24 -24
  241. package/lib/services/rate-limits.js.map +1 -1
  242. package/lib/services/realtime-kit.d.ts.map +1 -1
  243. package/lib/services/realtime-kit.js +276 -276
  244. package/lib/services/realtime-kit.js.map +1 -1
  245. package/lib/services/registrar.d.ts.map +1 -1
  246. package/lib/services/registrar.js +28 -28
  247. package/lib/services/registrar.js.map +1 -1
  248. package/lib/services/request-tracers.d.ts.map +1 -1
  249. package/lib/services/request-tracers.js +7 -7
  250. package/lib/services/request-tracers.js.map +1 -1
  251. package/lib/services/resource-sharing.d.ts.map +1 -1
  252. package/lib/services/resource-sharing.js +49 -49
  253. package/lib/services/resource-sharing.js.map +1 -1
  254. package/lib/services/resource-tagging.d.ts.map +1 -1
  255. package/lib/services/resource-tagging.js +56 -56
  256. package/lib/services/resource-tagging.js.map +1 -1
  257. package/lib/services/rules.d.ts.map +1 -1
  258. package/lib/services/rules.js +50 -50
  259. package/lib/services/rules.js.map +1 -1
  260. package/lib/services/rulesets.d.ts +2 -2
  261. package/lib/services/rulesets.d.ts.map +1 -1
  262. package/lib/services/rulesets.js +226 -190
  263. package/lib/services/rulesets.js.map +1 -1
  264. package/lib/services/rum.d.ts.map +1 -1
  265. package/lib/services/rum.js +35 -35
  266. package/lib/services/rum.js.map +1 -1
  267. package/lib/services/schema-validation.d.ts.map +1 -1
  268. package/lib/services/schema-validation.js +43 -46
  269. package/lib/services/schema-validation.js.map +1 -1
  270. package/lib/services/secrets-store.d.ts.map +1 -1
  271. package/lib/services/secrets-store.js +41 -41
  272. package/lib/services/secrets-store.js.map +1 -1
  273. package/lib/services/security-center.d.ts.map +1 -1
  274. package/lib/services/security-center.js +54 -57
  275. package/lib/services/security-center.js.map +1 -1
  276. package/lib/services/security-txt.d.ts.map +1 -1
  277. package/lib/services/security-txt.js +12 -12
  278. package/lib/services/security-txt.js.map +1 -1
  279. package/lib/services/snippets.d.ts.map +1 -1
  280. package/lib/services/snippets.js +31 -31
  281. package/lib/services/snippets.js.map +1 -1
  282. package/lib/services/spectrum.d.ts.map +1 -1
  283. package/lib/services/spectrum.js +35 -35
  284. package/lib/services/spectrum.js.map +1 -1
  285. package/lib/services/speed.d.ts.map +1 -1
  286. package/lib/services/speed.js +41 -41
  287. package/lib/services/speed.js.map +1 -1
  288. package/lib/services/ssl.d.ts.map +1 -1
  289. package/lib/services/ssl.js +48 -48
  290. package/lib/services/ssl.js.map +1 -1
  291. package/lib/services/stream.d.ts.map +1 -1
  292. package/lib/services/stream.js +147 -147
  293. package/lib/services/stream.js.map +1 -1
  294. package/lib/services/tenant-custom-nameservers.js +11 -11
  295. package/lib/services/tenant-custom-nameservers.js.map +1 -1
  296. package/lib/services/tenants.d.ts.map +1 -1
  297. package/lib/services/tenants.js +28 -28
  298. package/lib/services/tenants.js.map +1 -1
  299. package/lib/services/token-validation.d.ts.map +1 -1
  300. package/lib/services/token-validation.js +56 -56
  301. package/lib/services/token-validation.js.map +1 -1
  302. package/lib/services/turnstile.d.ts.map +1 -1
  303. package/lib/services/turnstile.js +27 -54
  304. package/lib/services/turnstile.js.map +1 -1
  305. package/lib/services/url-normalization.js +9 -9
  306. package/lib/services/url-normalization.js.map +1 -1
  307. package/lib/services/url-scanner.d.ts.map +1 -1
  308. package/lib/services/url-scanner.js +120 -120
  309. package/lib/services/url-scanner.js.map +1 -1
  310. package/lib/services/user.d.ts.map +1 -1
  311. package/lib/services/user.js +95 -95
  312. package/lib/services/user.js.map +1 -1
  313. package/lib/services/vectorize.d.ts +10 -10
  314. package/lib/services/vectorize.d.ts.map +1 -1
  315. package/lib/services/vectorize.js +59 -57
  316. package/lib/services/vectorize.js.map +1 -1
  317. package/lib/services/vulnerability-scanner.d.ts.map +1 -1
  318. package/lib/services/vulnerability-scanner.js +95 -95
  319. package/lib/services/vulnerability-scanner.js.map +1 -1
  320. package/lib/services/waiting-rooms.d.ts.map +1 -1
  321. package/lib/services/waiting-rooms.js +81 -81
  322. package/lib/services/waiting-rooms.js.map +1 -1
  323. package/lib/services/web3.d.ts.map +1 -1
  324. package/lib/services/web3.js +39 -39
  325. package/lib/services/web3.js.map +1 -1
  326. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  327. package/lib/services/workers-for-platforms.js +139 -139
  328. package/lib/services/workers-for-platforms.js.map +1 -1
  329. package/lib/services/workers.d.ts.map +1 -1
  330. package/lib/services/workers.js +420 -420
  331. package/lib/services/workers.js.map +1 -1
  332. package/lib/services/workflows.d.ts.map +1 -1
  333. package/lib/services/workflows.js +88 -88
  334. package/lib/services/workflows.js.map +1 -1
  335. package/lib/services/zaraz.d.ts.map +1 -1
  336. package/lib/services/zaraz.js +36 -39
  337. package/lib/services/zaraz.js.map +1 -1
  338. package/lib/services/zero-trust.d.ts.map +1 -1
  339. package/lib/services/zero-trust.js +1765 -1771
  340. package/lib/services/zero-trust.js.map +1 -1
  341. package/lib/services/zones.d.ts.map +1 -1
  342. package/lib/services/zones.js +168 -168
  343. package/lib/services/zones.js.map +1 -1
  344. package/lib/traits.d.ts.map +1 -1
  345. package/package.json +10 -9
  346. package/src/services/abuse-reports.ts +35 -36
  347. package/src/services/accounts.ts +714 -760
  348. package/src/services/acm.ts +115 -125
  349. package/src/services/addressing.ts +484 -512
  350. package/src/services/ai-gateway.ts +653 -672
  351. package/src/services/ai-security.ts +47 -53
  352. package/src/services/ai.ts +172 -185
  353. package/src/services/aisearch.ts +1814 -1861
  354. package/src/services/alerting.ts +710 -742
  355. package/src/services/api-gateway.ts +481 -508
  356. package/src/services/argo.ts +12 -12
  357. package/src/services/audit-logs.ts +45 -49
  358. package/src/services/billing.ts +121 -136
  359. package/src/services/bot-management.ts +122 -136
  360. package/src/services/botnet-feed.ts +68 -74
  361. package/src/services/brand-protection.ts +275 -294
  362. package/src/services/browser-rendering.ts +758 -769
  363. package/src/services/cache.ts +148 -158
  364. package/src/services/calls.ts +110 -120
  365. package/src/services/certificate-authorities.ts +6 -6
  366. package/src/services/client-certificates.ts +18 -18
  367. package/src/services/cloud-connector.ts +11 -12
  368. package/src/services/cloudforce-one.ts +589 -617
  369. package/src/services/connectivity.ts +25 -25
  370. package/src/services/containers.ts +49 -49
  371. package/src/services/content-scanning.ts +80 -89
  372. package/src/services/csam-scanner.ts +16 -17
  373. package/src/services/custom-certificates.ts +36 -38
  374. package/src/services/custom-csrs.ts +103 -105
  375. package/src/services/custom-hostnames.ts +44 -45
  376. package/src/services/custom-nameservers.ts +11 -11
  377. package/src/services/custom-pages.ts +173 -184
  378. package/src/services/d1.ts +335 -325
  379. package/src/services/dcv-delegation.ts +3 -3
  380. package/src/services/ddos-protection.ts +126 -126
  381. package/src/services/diagnostics.ts +27 -27
  382. package/src/services/dls.ts +82 -86
  383. package/src/services/dns-firewall.ts +65 -69
  384. package/src/services/dns.ts +1080 -1107
  385. package/src/services/durable-objects.ts +36 -38
  386. package/src/services/email-auth.ts +47 -52
  387. package/src/services/email-routing.ts +264 -288
  388. package/src/services/email-security.ts +205 -208
  389. package/src/services/email-sending.ts +94 -99
  390. package/src/services/filters.ts +97 -111
  391. package/src/services/firewall.ts +698 -753
  392. package/src/services/flagship.ts +321 -336
  393. package/src/services/fraud.ts +8 -8
  394. package/src/services/google-tag-gateway.ts +17 -19
  395. package/src/services/healthchecks.ts +269 -286
  396. package/src/services/hostnames.ts +94 -99
  397. package/src/services/hyperdrive.ts +310 -324
  398. package/src/services/iam.ts +205 -212
  399. package/src/services/images.ts +138 -150
  400. package/src/services/intel.ts +248 -261
  401. package/src/services/ips.ts +5 -5
  402. package/src/services/keyless-certificates.ts +17 -17
  403. package/src/services/kv.ts +106 -110
  404. package/src/services/leaked-credential-checks.ts +49 -53
  405. package/src/services/load-balancers.ts +1119 -1212
  406. package/src/services/logpush.ts +298 -313
  407. package/src/services/logs.ts +74 -77
  408. package/src/services/magic-cloud-networking.ts +1219 -1311
  409. package/src/services/magic-network-monitoring.ts +647 -685
  410. package/src/services/magic-transit.ts +1988 -2119
  411. package/src/services/managed-transforms.ts +11 -11
  412. package/src/services/memberships.ts +101 -105
  413. package/src/services/moq.ts +100 -110
  414. package/src/services/mtls-certificates.ts +30 -32
  415. package/src/services/network-interconnects.ts +137 -145
  416. package/src/services/organizations.ts +189 -192
  417. package/src/services/origin-ca-certificates.ts +14 -14
  418. package/src/services/origin-post-quantum-encryption.ts +6 -6
  419. package/src/services/origin-tls-client-auth.ts +219 -236
  420. package/src/services/origin-tls-compliance-modes.ts +12 -12
  421. package/src/services/page-rules.ts +365 -373
  422. package/src/services/page-shield.ts +489 -528
  423. package/src/services/pages.ts +309 -319
  424. package/src/services/pipelines.ts +534 -573
  425. package/src/services/queues.ts +598 -635
  426. package/src/services/r2-data-catalog.ts +59 -60
  427. package/src/services/r2.ts +654 -689
  428. package/src/services/radar.ts +3395 -3487
  429. package/src/services/rate-limits.ts +81 -93
  430. package/src/services/realtime-kit.ts +386 -399
  431. package/src/services/registrar.ts +90 -96
  432. package/src/services/request-tracers.ts +41 -43
  433. package/src/services/resource-sharing.ts +293 -305
  434. package/src/services/resource-tagging.ts +354 -366
  435. package/src/services/rules.ts +272 -292
  436. package/src/services/rulesets.ts +1214 -1116
  437. package/src/services/rum.ts +252 -273
  438. package/src/services/schema-validation.ts +284 -305
  439. package/src/services/secrets-store.ts +130 -138
  440. package/src/services/security-center.ts +64 -69
  441. package/src/services/security-txt.ts +48 -50
  442. package/src/services/snippets.ts +132 -142
  443. package/src/services/spectrum.ts +75 -80
  444. package/src/services/speed.ts +385 -397
  445. package/src/services/ssl.ts +64 -65
  446. package/src/services/stream.ts +658 -718
  447. package/src/services/tenant-custom-nameservers.ts +11 -11
  448. package/src/services/tenants.ts +86 -93
  449. package/src/services/token-validation.ts +145 -151
  450. package/src/services/turnstile.ts +344 -381
  451. package/src/services/url-normalization.ts +9 -9
  452. package/src/services/url-scanner.ts +393 -399
  453. package/src/services/user.ts +479 -503
  454. package/src/services/vectorize.ts +215 -230
  455. package/src/services/vulnerability-scanner.ts +145 -148
  456. package/src/services/waiting-rooms.ts +759 -825
  457. package/src/services/web3.ts +186 -197
  458. package/src/services/workers-for-platforms.ts +408 -432
  459. package/src/services/workers.ts +1175 -1239
  460. package/src/services/workflows.ts +585 -616
  461. package/src/services/zaraz.ts +168 -192
  462. package/src/services/zero-trust.ts +2965 -3074
  463. package/src/services/zones.ts +753 -785
@@ -74,7 +74,7 @@ interface Action {
74
74
  /** A short string that describes the action that was performed. */
75
75
  type?: string | null;
76
76
  }
77
- const Action = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
77
+ const Action = /*@__PURE__*/ Schema.suspend(() =>
78
78
  Schema.Struct({
79
79
  result: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
80
80
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -91,7 +91,7 @@ interface Actor {
91
91
  /** The type of actor, whether a User, Cloudflare Admin, or an Automated System. */
92
92
  type?: "user" | "admin" | "Cloudflare" | (string & {}) | null;
93
93
  }
94
- const Actor = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
94
+ const Actor = /*@__PURE__*/ Schema.suspend(() =>
95
95
  Schema.Struct({
96
96
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
97
97
  email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -112,7 +112,7 @@ interface Owner {
112
112
  /** Identifier */
113
113
  id?: string | null;
114
114
  }
115
- const Owner = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
115
+ const Owner = /*@__PURE__*/ Schema.suspend(() =>
116
116
  Schema.Struct({
117
117
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
118
118
  }),
@@ -124,7 +124,7 @@ interface Resource {
124
124
  /** A short string that describes the resource that was affected by the action. */
125
125
  type?: string | null;
126
126
  }
127
- const Resource = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
127
+ const Resource = /*@__PURE__*/ Schema.suspend(() =>
128
128
  Schema.Struct({
129
129
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
130
130
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -154,7 +154,7 @@ interface AuditLog {
154
154
  /** A UTC RFC3339 timestamp that specifies when the action being logged occured. */
155
155
  when?: string | null;
156
156
  }
157
- const AuditLog = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
157
+ const AuditLog = /*@__PURE__*/ Schema.suspend(() =>
158
158
  Schema.Struct({
159
159
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
160
160
  action: Schema.optional(Schema.Union([Action, Schema.Null])),
@@ -176,7 +176,7 @@ interface ListAuditLogsResponseResultInfo {
176
176
  totalCount?: number | null;
177
177
  }
178
178
  const ListAuditLogsResponseResultInfo =
179
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
179
+ /*@__PURE__*/ Schema.suspend(() =>
180
180
  Schema.Struct({
181
181
  count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
182
182
  page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -195,7 +195,7 @@ const ListAuditLogsResponseResultInfo =
195
195
  interface Zone {
196
196
  name?: string | null;
197
197
  }
198
- const Zone = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
198
+ const Zone = /*@__PURE__*/ Schema.suspend(() =>
199
199
  Schema.Struct({
200
200
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
201
201
  }),
@@ -219,7 +219,7 @@ interface ListBillingHistoriesResponseResult {
219
219
  zone: { name?: string | null };
220
220
  }
221
221
  const ListBillingHistoriesResponseResult =
222
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
222
+ /*@__PURE__*/ Schema.suspend(() =>
223
223
  Schema.Struct({
224
224
  id: Schema.String,
225
225
  action: Schema.String,
@@ -272,51 +272,50 @@ interface ListInvitesResponseResult {
272
272
  | (string & {})
273
273
  | null;
274
274
  }
275
- const ListInvitesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
276
- () =>
277
- Schema.Struct({
278
- invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
279
- organizationId: Schema.String,
280
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
281
- expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
282
- invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
283
- invitedMemberEmail: Schema.optional(
284
- Schema.Union([Schema.String, Schema.Null]),
285
- ),
286
- invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
287
- organizationIsEnforcingTwofactor: Schema.optional(
288
- Schema.Union([Schema.Boolean, Schema.Null]),
289
- ),
290
- organizationName: Schema.optional(
291
- Schema.Union([Schema.String, Schema.Null]),
292
- ),
293
- roles: Schema.optional(
294
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
295
- ),
296
- status: Schema.optional(
275
+ const ListInvitesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
276
+ Schema.Struct({
277
+ invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
278
+ organizationId: Schema.String,
279
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
280
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
281
+ invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
282
+ invitedMemberEmail: Schema.optional(
283
+ Schema.Union([Schema.String, Schema.Null]),
284
+ ),
285
+ invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
286
+ organizationIsEnforcingTwofactor: Schema.optional(
287
+ Schema.Union([Schema.Boolean, Schema.Null]),
288
+ ),
289
+ organizationName: Schema.optional(
290
+ Schema.Union([Schema.String, Schema.Null]),
291
+ ),
292
+ roles: Schema.optional(
293
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
294
+ ),
295
+ status: Schema.optional(
296
+ Schema.Union([
297
297
  Schema.Union([
298
- Schema.Union([
299
- Schema.Literals(["pending", "accepted", "rejected", "expired"]),
300
- Schema.String,
301
- ]),
302
- Schema.Null,
298
+ Schema.Literals(["pending", "accepted", "rejected", "expired"]),
299
+ Schema.String,
303
300
  ]),
304
- ),
305
- }).pipe(
306
- Schema.encodeKeys({
307
- invitedMemberId: "invited_member_id",
308
- organizationId: "organization_id",
309
- id: "id",
310
- expiresOn: "expires_on",
311
- invitedBy: "invited_by",
312
- invitedMemberEmail: "invited_member_email",
313
- invitedOn: "invited_on",
314
- organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
315
- organizationName: "organization_name",
316
- roles: "roles",
317
- status: "status",
318
- }),
301
+ Schema.Null,
302
+ ]),
319
303
  ),
304
+ }).pipe(
305
+ Schema.encodeKeys({
306
+ invitedMemberId: "invited_member_id",
307
+ organizationId: "organization_id",
308
+ id: "id",
309
+ expiresOn: "expires_on",
310
+ invitedBy: "invited_by",
311
+ invitedMemberEmail: "invited_member_email",
312
+ invitedOn: "invited_on",
313
+ organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
314
+ organizationName: "organization_name",
315
+ roles: "roles",
316
+ status: "status",
317
+ }),
318
+ ),
320
319
  ) as unknown as Schema.Codec<ListInvitesResponseResult>;
321
320
 
322
321
  interface ListOrganizationsResponseResult {
@@ -332,7 +331,7 @@ interface ListOrganizationsResponseResult {
332
331
  status?: "member" | "invited" | (string & {}) | null;
333
332
  }
334
333
  const ListOrganizationsResponseResult =
335
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
334
+ /*@__PURE__*/ Schema.suspend(() =>
336
335
  Schema.Struct({
337
336
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
338
337
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -379,7 +378,7 @@ interface RatePlan {
379
378
  /** The list of sets this rate plan applies to. Returns array of strings. */
380
379
  sets?: string[] | null;
381
380
  }
382
- const RatePlan = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
381
+ const RatePlan = /*@__PURE__*/ Schema.suspend(() =>
383
382
  Schema.Struct({
384
383
  id: Schema.optional(
385
384
  Schema.Union([
@@ -477,7 +476,7 @@ interface Subscription {
477
476
  | (string & {})
478
477
  | null;
479
478
  }
480
- const Subscription = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
479
+ const Subscription = /*@__PURE__*/ Schema.suspend(() =>
481
480
  Schema.Struct({
482
481
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
483
482
  currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -536,7 +535,7 @@ interface Flags {
536
535
  accountMobility: string;
537
536
  subOrgCreation: string;
538
537
  }
539
- const Flags = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
538
+ const Flags = /*@__PURE__*/ Schema.suspend(() =>
540
539
  Schema.Struct({
541
540
  accountCreation: Schema.String,
542
541
  accountDeletion: Schema.String,
@@ -567,7 +566,7 @@ interface Meta {
567
566
  hierarchyTags?: string[] | null;
568
567
  managedBy?: string | null;
569
568
  }
570
- const Meta = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
569
+ const Meta = /*@__PURE__*/ Schema.suspend(() =>
571
570
  Schema.Struct({
572
571
  flags: Schema.optional(Schema.Union([Flags, Schema.Null])),
573
572
  hierarchyTags: Schema.optional(
@@ -587,7 +586,7 @@ interface Parent {
587
586
  id: string;
588
587
  name: string;
589
588
  }
590
- const Parent = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
589
+ const Parent = /*@__PURE__*/ Schema.suspend(() =>
591
590
  Schema.Struct({
592
591
  id: Schema.String,
593
592
  name: Schema.String,
@@ -601,7 +600,7 @@ interface OrganizationProfile {
601
600
  businessPhone: string;
602
601
  externalMetadata: string;
603
602
  }
604
- const OrganizationProfile = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
603
+ const OrganizationProfile = /*@__PURE__*/ Schema.suspend(() =>
605
604
  Schema.Struct({
606
605
  businessAddress: Schema.String,
607
606
  businessEmail: Schema.String,
@@ -643,7 +642,7 @@ interface Organization {
643
642
  externalMetadata: string;
644
643
  } | null;
645
644
  }
646
- const Organization = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
645
+ const Organization = /*@__PURE__*/ Schema.suspend(() =>
647
646
  Schema.Struct({
648
647
  id: Schema.String,
649
648
  createTime: Schema.String,
@@ -669,7 +668,7 @@ interface ConditionRequestIP {
669
668
  /** List of IPv4/IPv6 CIDR addresses. */
670
669
  notIn?: string[] | null;
671
670
  }
672
- const ConditionRequestIP = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
671
+ const ConditionRequestIP = /*@__PURE__*/ Schema.suspend(() =>
673
672
  Schema.Struct({
674
673
  in: Schema.optional(
675
674
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
@@ -684,7 +683,7 @@ interface Condition {
684
683
  /** Client IP restrictions. */
685
684
  requestIp?: { in?: string[] | null; notIn?: string[] | null } | null;
686
685
  }
687
- const Condition = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
686
+ const Condition = /*@__PURE__*/ Schema.suspend(() =>
688
687
  Schema.Struct({
689
688
  requestIp: Schema.optional(Schema.Union([ConditionRequestIP, Schema.Null])),
690
689
  }).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
@@ -694,7 +693,7 @@ interface Meta2 {
694
693
  key?: string | null;
695
694
  value?: string | null;
696
695
  }
697
- const Meta2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
696
+ const Meta2 = /*@__PURE__*/ Schema.suspend(() =>
698
697
  Schema.Struct({
699
698
  key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
700
699
  value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -709,7 +708,7 @@ interface PermissionGroup {
709
708
  /** Name of the permission group. */
710
709
  name?: string | null;
711
710
  }
712
- const PermissionGroup = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
711
+ const PermissionGroup = /*@__PURE__*/ Schema.suspend(() =>
713
712
  Schema.Struct({
714
713
  id: Schema.String,
715
714
  meta: Schema.optional(Schema.Union([Meta2, Schema.Null])),
@@ -731,7 +730,7 @@ interface TokenPolicy {
731
730
  /** A list of resource names that the policy applies to. */
732
731
  resources: Record<string, unknown>;
733
732
  }
734
- const TokenPolicy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
733
+ const TokenPolicy = /*@__PURE__*/ Schema.suspend(() =>
735
734
  Schema.Struct({
736
735
  id: Schema.String,
737
736
  effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
@@ -781,7 +780,7 @@ interface Token {
781
780
  /** Status of the token. */
782
781
  status?: "active" | "disabled" | "expired" | (string & {}) | null;
783
782
  }
784
- const Token = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
783
+ const Token = /*@__PURE__*/ Schema.suspend(() =>
785
784
  Schema.Struct({
786
785
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
787
786
  condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
@@ -825,7 +824,7 @@ interface PermissionGroup2 {
825
824
  /** Attributes associated to the permission group. */
826
825
  meta?: { key?: string | null; value?: string | null } | null;
827
826
  }
828
- const PermissionGroup2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
827
+ const PermissionGroup2 = /*@__PURE__*/ Schema.suspend(() =>
829
828
  Schema.Struct({
830
829
  id: Schema.String,
831
830
  meta: Schema.optional(Schema.Union([Meta2, Schema.Null])),
@@ -843,7 +842,7 @@ interface TokenPolicyParam {
843
842
  /** A list of resource names that the policy applies to. */
844
843
  resources: Record<string, unknown>;
845
844
  }
846
- const TokenPolicyParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
845
+ const TokenPolicyParam = /*@__PURE__*/ Schema.suspend(() =>
847
846
  Schema.Struct({
848
847
  effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
849
848
  permissionGroups: Schema.Array(PermissionGroup2),
@@ -891,7 +890,7 @@ interface ListTokenPermissionGroupsResponseResult {
891
890
  | null;
892
891
  }
893
892
  const ListTokenPermissionGroupsResponseResult =
894
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
893
+ /*@__PURE__*/ Schema.suspend(() =>
895
894
  Schema.Struct({
896
895
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
897
896
  category: Schema.optional(
@@ -961,38 +960,37 @@ export interface ListAuditLogsRequest {
961
960
  zone?: { name?: string };
962
961
  }
963
962
 
964
- export const ListAuditLogsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
965
- () =>
966
- Schema.Struct({
967
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
968
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
969
- id: Schema.optional(Schema.String).pipe(T.HttpQuery("id")),
970
- action: Schema.optional(
971
- Schema.Struct({
972
- type: Schema.optional(Schema.String),
973
- }),
974
- ).pipe(T.HttpQuery("action")),
975
- actor: Schema.optional(
976
- Schema.Struct({
977
- email: Schema.optional(Schema.String),
978
- ip: Schema.optional(Schema.String),
979
- }),
980
- ).pipe(T.HttpQuery("actor")),
981
- before: Schema.optional(Schema.Unknown).pipe(T.HttpQuery("before")),
982
- direction: Schema.optional(
983
- Schema.Union([Schema.Literals(["desc", "asc"]), Schema.String]),
984
- ).pipe(T.HttpQuery("direction")),
985
- export: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("export")),
986
- hideUserLogs: Schema.optional(Schema.Boolean).pipe(
987
- T.HttpQuery("hide_user_logs"),
988
- ),
989
- since: Schema.optional(Schema.Unknown).pipe(T.HttpQuery("since")),
990
- zone: Schema.optional(
991
- Schema.Struct({
992
- name: Schema.optional(Schema.String),
993
- }),
994
- ).pipe(T.HttpQuery("zone")),
995
- }).pipe(T.Http({ method: "GET", path: "/user/audit_logs" })),
963
+ export const ListAuditLogsRequest = /*@__PURE__*/ Schema.suspend(() =>
964
+ Schema.Struct({
965
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
966
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
967
+ id: Schema.optional(Schema.String).pipe(T.HttpQuery("id")),
968
+ action: Schema.optional(
969
+ Schema.Struct({
970
+ type: Schema.optional(Schema.String),
971
+ }),
972
+ ).pipe(T.HttpQuery("action")),
973
+ actor: Schema.optional(
974
+ Schema.Struct({
975
+ email: Schema.optional(Schema.String),
976
+ ip: Schema.optional(Schema.String),
977
+ }),
978
+ ).pipe(T.HttpQuery("actor")),
979
+ before: Schema.optional(Schema.Unknown).pipe(T.HttpQuery("before")),
980
+ direction: Schema.optional(
981
+ Schema.Union([Schema.Literals(["desc", "asc"]), Schema.String]),
982
+ ).pipe(T.HttpQuery("direction")),
983
+ export: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("export")),
984
+ hideUserLogs: Schema.optional(Schema.Boolean).pipe(
985
+ T.HttpQuery("hide_user_logs"),
986
+ ),
987
+ since: Schema.optional(Schema.Unknown).pipe(T.HttpQuery("since")),
988
+ zone: Schema.optional(
989
+ Schema.Struct({
990
+ name: Schema.optional(Schema.String),
991
+ }),
992
+ ).pipe(T.HttpQuery("zone")),
993
+ }).pipe(T.Http({ method: "GET", path: "/user/audit_logs" })),
996
994
  ) as unknown as Schema.Codec<ListAuditLogsRequest>;
997
995
 
998
996
  export interface ListAuditLogsResponse {
@@ -1021,14 +1019,13 @@ export interface ListAuditLogsResponse {
1021
1019
  } | null;
1022
1020
  }
1023
1021
 
1024
- export const ListAuditLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1025
- () =>
1026
- Schema.Struct({
1027
- result: Schema.Array(AuditLog),
1028
- resultInfo: Schema.optional(
1029
- Schema.Union([ListAuditLogsResponseResultInfo, Schema.Null]),
1030
- ),
1031
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
1022
+ export const ListAuditLogsResponse = /*@__PURE__*/ Schema.suspend(() =>
1023
+ Schema.Struct({
1024
+ result: Schema.Array(AuditLog),
1025
+ resultInfo: Schema.optional(
1026
+ Schema.Union([ListAuditLogsResponseResultInfo, Schema.Null]),
1027
+ ),
1028
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
1032
1029
  ) as unknown as Schema.Codec<ListAuditLogsResponse>;
1033
1030
 
1034
1031
  export type ListAuditLogsError = DefaultErrors;
@@ -1038,7 +1035,7 @@ export const listAuditLogs: API.PaginatedOperationMethod<
1038
1035
  ListAuditLogsResponse,
1039
1036
  ListAuditLogsError,
1040
1037
  Credentials | HttpClient.HttpClient
1041
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1038
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1042
1039
  input: ListAuditLogsRequest,
1043
1040
  output: ListAuditLogsResponse,
1044
1041
  errors: [],
@@ -1069,7 +1066,7 @@ export interface ListBillingHistoriesRequest {
1069
1066
  }
1070
1067
 
1071
1068
  export const ListBillingHistoriesRequest =
1072
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1069
+ /*@__PURE__*/ Schema.suspend(() =>
1073
1070
  Schema.Struct({
1074
1071
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
1075
1072
  perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
@@ -1107,7 +1104,7 @@ export interface ListBillingHistoriesResponse {
1107
1104
  }
1108
1105
 
1109
1106
  export const ListBillingHistoriesResponse =
1110
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1107
+ /*@__PURE__*/ Schema.suspend(() =>
1111
1108
  Schema.Struct({
1112
1109
  result: Schema.Array(ListBillingHistoriesResponseResult),
1113
1110
  resultInfo: Schema.optional(
@@ -1123,7 +1120,7 @@ export const listBillingHistories: API.PaginatedOperationMethod<
1123
1120
  ListBillingHistoriesResponse,
1124
1121
  ListBillingHistoriesError,
1125
1122
  Credentials | HttpClient.HttpClient
1126
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1123
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1127
1124
  input: ListBillingHistoriesRequest,
1128
1125
  output: ListBillingHistoriesResponse,
1129
1126
  errors: [],
@@ -1143,7 +1140,7 @@ export const listBillingHistories: API.PaginatedOperationMethod<
1143
1140
  export interface GetBillingProfileRequest {}
1144
1141
 
1145
1142
  export const GetBillingProfileRequest =
1146
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1143
+ /*@__PURE__*/ Schema.suspend(() =>
1147
1144
  Schema.Struct({}).pipe(
1148
1145
  T.Http({ method: "GET", path: "/user/billing/profile" }),
1149
1146
  ),
@@ -1193,7 +1190,7 @@ export interface GetBillingProfileResponse {
1193
1190
  }
1194
1191
 
1195
1192
  export const GetBillingProfileResponse =
1196
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1193
+ /*@__PURE__*/ Schema.suspend(() =>
1197
1194
  Schema.Struct({
1198
1195
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1199
1196
  accountType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1312,7 +1309,7 @@ export const getBillingProfile: API.OperationMethod<
1312
1309
  GetBillingProfileResponse,
1313
1310
  GetBillingProfileError,
1314
1311
  Credentials | HttpClient.HttpClient
1315
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1312
+ > = /*@__PURE__*/ API.make(() => ({
1316
1313
  input: GetBillingProfileRequest,
1317
1314
  output: GetBillingProfileResponse,
1318
1315
  errors: [],
@@ -1326,7 +1323,7 @@ export interface GetInviteRequest {
1326
1323
  inviteId: string;
1327
1324
  }
1328
1325
 
1329
- export const GetInviteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1326
+ export const GetInviteRequest = /*@__PURE__*/ Schema.suspend(() =>
1330
1327
  Schema.Struct({
1331
1328
  inviteId: Schema.String.pipe(T.HttpPath("inviteId")),
1332
1329
  }).pipe(T.Http({ method: "GET", path: "/user/invites/{inviteId}" })),
@@ -1362,54 +1359,52 @@ export interface GetInviteResponse {
1362
1359
  | null;
1363
1360
  }
1364
1361
 
1365
- export const GetInviteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1366
- () =>
1367
- Schema.Struct({
1368
- invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
1369
- organizationId: Schema.String,
1370
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1371
- expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1372
- invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1373
- invitedMemberEmail: Schema.optional(
1374
- Schema.Union([Schema.String, Schema.Null]),
1375
- ),
1376
- invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1377
- organizationIsEnforcingTwofactor: Schema.optional(
1378
- Schema.Union([Schema.Boolean, Schema.Null]),
1379
- ),
1380
- organizationName: Schema.optional(
1381
- Schema.Union([Schema.String, Schema.Null]),
1382
- ),
1383
- roles: Schema.optional(
1384
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1385
- ),
1386
- status: Schema.optional(
1362
+ export const GetInviteResponse = /*@__PURE__*/ Schema.suspend(() =>
1363
+ Schema.Struct({
1364
+ invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
1365
+ organizationId: Schema.String,
1366
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1367
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1368
+ invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1369
+ invitedMemberEmail: Schema.optional(
1370
+ Schema.Union([Schema.String, Schema.Null]),
1371
+ ),
1372
+ invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1373
+ organizationIsEnforcingTwofactor: Schema.optional(
1374
+ Schema.Union([Schema.Boolean, Schema.Null]),
1375
+ ),
1376
+ organizationName: Schema.optional(
1377
+ Schema.Union([Schema.String, Schema.Null]),
1378
+ ),
1379
+ roles: Schema.optional(
1380
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1381
+ ),
1382
+ status: Schema.optional(
1383
+ Schema.Union([
1387
1384
  Schema.Union([
1388
- Schema.Union([
1389
- Schema.Literals(["pending", "accepted", "rejected", "expired"]),
1390
- Schema.String,
1391
- ]),
1392
- Schema.Null,
1385
+ Schema.Literals(["pending", "accepted", "rejected", "expired"]),
1386
+ Schema.String,
1393
1387
  ]),
1394
- ),
1395
- })
1396
- .pipe(
1397
- Schema.encodeKeys({
1398
- invitedMemberId: "invited_member_id",
1399
- organizationId: "organization_id",
1400
- id: "id",
1401
- expiresOn: "expires_on",
1402
- invitedBy: "invited_by",
1403
- invitedMemberEmail: "invited_member_email",
1404
- invitedOn: "invited_on",
1405
- organizationIsEnforcingTwofactor:
1406
- "organization_is_enforcing_twofactor",
1407
- organizationName: "organization_name",
1408
- roles: "roles",
1409
- status: "status",
1410
- }),
1411
- )
1412
- .pipe(T.ResponsePath("result")),
1388
+ Schema.Null,
1389
+ ]),
1390
+ ),
1391
+ })
1392
+ .pipe(
1393
+ Schema.encodeKeys({
1394
+ invitedMemberId: "invited_member_id",
1395
+ organizationId: "organization_id",
1396
+ id: "id",
1397
+ expiresOn: "expires_on",
1398
+ invitedBy: "invited_by",
1399
+ invitedMemberEmail: "invited_member_email",
1400
+ invitedOn: "invited_on",
1401
+ organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
1402
+ organizationName: "organization_name",
1403
+ roles: "roles",
1404
+ status: "status",
1405
+ }),
1406
+ )
1407
+ .pipe(T.ResponsePath("result")),
1413
1408
  ) as unknown as Schema.Codec<GetInviteResponse>;
1414
1409
 
1415
1410
  export type GetInviteError = DefaultErrors;
@@ -1419,7 +1414,7 @@ export const getInvite: API.OperationMethod<
1419
1414
  GetInviteResponse,
1420
1415
  GetInviteError,
1421
1416
  Credentials | HttpClient.HttpClient
1422
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1417
+ > = /*@__PURE__*/ API.make(() => ({
1423
1418
  input: GetInviteRequest,
1424
1419
  output: GetInviteResponse,
1425
1420
  errors: [],
@@ -1427,9 +1422,8 @@ export const getInvite: API.OperationMethod<
1427
1422
 
1428
1423
  export interface ListInvitesRequest {}
1429
1424
 
1430
- export const ListInvitesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1431
- () =>
1432
- Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/invites" })),
1425
+ export const ListInvitesRequest = /*@__PURE__*/ Schema.suspend(() =>
1426
+ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/invites" })),
1433
1427
  ) as unknown as Schema.Codec<ListInvitesRequest>;
1434
1428
 
1435
1429
  export interface ListInvitesResponse {
@@ -1454,11 +1448,10 @@ export interface ListInvitesResponse {
1454
1448
  }[];
1455
1449
  }
1456
1450
 
1457
- export const ListInvitesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1458
- () =>
1459
- Schema.Struct({
1460
- result: Schema.Array(ListInvitesResponseResult),
1461
- }),
1451
+ export const ListInvitesResponse = /*@__PURE__*/ Schema.suspend(() =>
1452
+ Schema.Struct({
1453
+ result: Schema.Array(ListInvitesResponseResult),
1454
+ }),
1462
1455
  ) as unknown as Schema.Codec<ListInvitesResponse>;
1463
1456
 
1464
1457
  export type ListInvitesError = DefaultErrors;
@@ -1468,7 +1461,7 @@ export const listInvites: API.PaginatedOperationMethod<
1468
1461
  ListInvitesResponse,
1469
1462
  ListInvitesError,
1470
1463
  Credentials | HttpClient.HttpClient
1471
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1464
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1472
1465
  input: ListInvitesRequest,
1473
1466
  output: ListInvitesResponse,
1474
1467
  errors: [],
@@ -1484,15 +1477,14 @@ export interface PatchInviteRequest {
1484
1477
  status: "accepted" | "rejected" | (string & {});
1485
1478
  }
1486
1479
 
1487
- export const PatchInviteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1488
- () =>
1489
- Schema.Struct({
1490
- inviteId: Schema.String.pipe(T.HttpPath("inviteId")),
1491
- status: Schema.Union([
1492
- Schema.Literals(["accepted", "rejected"]),
1493
- Schema.String,
1494
- ]),
1495
- }).pipe(T.Http({ method: "PATCH", path: "/user/invites/{inviteId}" })),
1480
+ export const PatchInviteRequest = /*@__PURE__*/ Schema.suspend(() =>
1481
+ Schema.Struct({
1482
+ inviteId: Schema.String.pipe(T.HttpPath("inviteId")),
1483
+ status: Schema.Union([
1484
+ Schema.Literals(["accepted", "rejected"]),
1485
+ Schema.String,
1486
+ ]),
1487
+ }).pipe(T.Http({ method: "PATCH", path: "/user/invites/{inviteId}" })),
1496
1488
  ) as unknown as Schema.Codec<PatchInviteRequest>;
1497
1489
 
1498
1490
  export interface PatchInviteResponse {
@@ -1525,54 +1517,52 @@ export interface PatchInviteResponse {
1525
1517
  | null;
1526
1518
  }
1527
1519
 
1528
- export const PatchInviteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1529
- () =>
1530
- Schema.Struct({
1531
- invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
1532
- organizationId: Schema.String,
1533
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1534
- expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1535
- invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1536
- invitedMemberEmail: Schema.optional(
1537
- Schema.Union([Schema.String, Schema.Null]),
1538
- ),
1539
- invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1540
- organizationIsEnforcingTwofactor: Schema.optional(
1541
- Schema.Union([Schema.Boolean, Schema.Null]),
1542
- ),
1543
- organizationName: Schema.optional(
1544
- Schema.Union([Schema.String, Schema.Null]),
1545
- ),
1546
- roles: Schema.optional(
1547
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1548
- ),
1549
- status: Schema.optional(
1520
+ export const PatchInviteResponse = /*@__PURE__*/ Schema.suspend(() =>
1521
+ Schema.Struct({
1522
+ invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
1523
+ organizationId: Schema.String,
1524
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1525
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1526
+ invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1527
+ invitedMemberEmail: Schema.optional(
1528
+ Schema.Union([Schema.String, Schema.Null]),
1529
+ ),
1530
+ invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1531
+ organizationIsEnforcingTwofactor: Schema.optional(
1532
+ Schema.Union([Schema.Boolean, Schema.Null]),
1533
+ ),
1534
+ organizationName: Schema.optional(
1535
+ Schema.Union([Schema.String, Schema.Null]),
1536
+ ),
1537
+ roles: Schema.optional(
1538
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1539
+ ),
1540
+ status: Schema.optional(
1541
+ Schema.Union([
1550
1542
  Schema.Union([
1551
- Schema.Union([
1552
- Schema.Literals(["pending", "accepted", "rejected", "expired"]),
1553
- Schema.String,
1554
- ]),
1555
- Schema.Null,
1543
+ Schema.Literals(["pending", "accepted", "rejected", "expired"]),
1544
+ Schema.String,
1556
1545
  ]),
1557
- ),
1558
- })
1559
- .pipe(
1560
- Schema.encodeKeys({
1561
- invitedMemberId: "invited_member_id",
1562
- organizationId: "organization_id",
1563
- id: "id",
1564
- expiresOn: "expires_on",
1565
- invitedBy: "invited_by",
1566
- invitedMemberEmail: "invited_member_email",
1567
- invitedOn: "invited_on",
1568
- organizationIsEnforcingTwofactor:
1569
- "organization_is_enforcing_twofactor",
1570
- organizationName: "organization_name",
1571
- roles: "roles",
1572
- status: "status",
1573
- }),
1574
- )
1575
- .pipe(T.ResponsePath("result")),
1546
+ Schema.Null,
1547
+ ]),
1548
+ ),
1549
+ })
1550
+ .pipe(
1551
+ Schema.encodeKeys({
1552
+ invitedMemberId: "invited_member_id",
1553
+ organizationId: "organization_id",
1554
+ id: "id",
1555
+ expiresOn: "expires_on",
1556
+ invitedBy: "invited_by",
1557
+ invitedMemberEmail: "invited_member_email",
1558
+ invitedOn: "invited_on",
1559
+ organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
1560
+ organizationName: "organization_name",
1561
+ roles: "roles",
1562
+ status: "status",
1563
+ }),
1564
+ )
1565
+ .pipe(T.ResponsePath("result")),
1576
1566
  ) as unknown as Schema.Codec<PatchInviteResponse>;
1577
1567
 
1578
1568
  export type PatchInviteError = DefaultErrors;
@@ -1582,7 +1572,7 @@ export const patchInvite: API.OperationMethod<
1582
1572
  PatchInviteResponse,
1583
1573
  PatchInviteError,
1584
1574
  Credentials | HttpClient.HttpClient
1585
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1575
+ > = /*@__PURE__*/ API.make(() => ({
1586
1576
  input: PatchInviteRequest,
1587
1577
  output: PatchInviteResponse,
1588
1578
  errors: [],
@@ -1597,7 +1587,7 @@ export interface GetOrganizationRequest {
1597
1587
  }
1598
1588
 
1599
1589
  export const GetOrganizationRequest =
1600
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1590
+ /*@__PURE__*/ Schema.suspend(() =>
1601
1591
  Schema.Struct({
1602
1592
  organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
1603
1593
  }).pipe(
@@ -1608,7 +1598,7 @@ export const GetOrganizationRequest =
1608
1598
  export type GetOrganizationResponse = unknown;
1609
1599
 
1610
1600
  export const GetOrganizationResponse =
1611
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1601
+ /*@__PURE__*/ Schema.suspend(() =>
1612
1602
  Schema.Unknown.pipe(T.ResponsePath("result")),
1613
1603
  ) as unknown as Schema.Codec<GetOrganizationResponse>;
1614
1604
 
@@ -1619,7 +1609,7 @@ export const getOrganization: API.OperationMethod<
1619
1609
  GetOrganizationResponse,
1620
1610
  GetOrganizationError,
1621
1611
  Credentials | HttpClient.HttpClient
1622
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1612
+ > = /*@__PURE__*/ API.make(() => ({
1623
1613
  input: GetOrganizationRequest,
1624
1614
  output: GetOrganizationResponse,
1625
1615
  errors: [],
@@ -1641,7 +1631,7 @@ export interface ListOrganizationsRequest {
1641
1631
  }
1642
1632
 
1643
1633
  export const ListOrganizationsRequest =
1644
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1634
+ /*@__PURE__*/ Schema.suspend(() =>
1645
1635
  Schema.Struct({
1646
1636
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
1647
1637
  perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
@@ -1681,7 +1671,7 @@ export interface ListOrganizationsResponse {
1681
1671
  }
1682
1672
 
1683
1673
  export const ListOrganizationsResponse =
1684
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1674
+ /*@__PURE__*/ Schema.suspend(() =>
1685
1675
  Schema.Struct({
1686
1676
  result: Schema.Array(ListOrganizationsResponseResult),
1687
1677
  resultInfo: Schema.optional(
@@ -1697,7 +1687,7 @@ export const listOrganizations: API.PaginatedOperationMethod<
1697
1687
  ListOrganizationsResponse,
1698
1688
  ListOrganizationsError,
1699
1689
  Credentials | HttpClient.HttpClient
1700
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1690
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1701
1691
  input: ListOrganizationsRequest,
1702
1692
  output: ListOrganizationsResponse,
1703
1693
  errors: [],
@@ -1715,7 +1705,7 @@ export interface DeleteOrganizationRequest {
1715
1705
  }
1716
1706
 
1717
1707
  export const DeleteOrganizationRequest =
1718
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1708
+ /*@__PURE__*/ Schema.suspend(() =>
1719
1709
  Schema.Struct({
1720
1710
  organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
1721
1711
  }).pipe(
@@ -1732,7 +1722,7 @@ export interface DeleteOrganizationResponse {
1732
1722
  }
1733
1723
 
1734
1724
  export const DeleteOrganizationResponse =
1735
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1725
+ /*@__PURE__*/ Schema.suspend(() =>
1736
1726
  Schema.Struct({
1737
1727
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1738
1728
  }),
@@ -1745,7 +1735,7 @@ export const deleteOrganization: API.OperationMethod<
1745
1735
  DeleteOrganizationResponse,
1746
1736
  DeleteOrganizationError,
1747
1737
  Credentials | HttpClient.HttpClient
1748
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1738
+ > = /*@__PURE__*/ API.make(() => ({
1749
1739
  input: DeleteOrganizationRequest,
1750
1740
  output: DeleteOrganizationResponse,
1751
1741
  errors: [],
@@ -1758,7 +1748,7 @@ export const deleteOrganization: API.OperationMethod<
1758
1748
  export interface GetSubscriptionRequest {}
1759
1749
 
1760
1750
  export const GetSubscriptionRequest =
1761
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1751
+ /*@__PURE__*/ Schema.suspend(() =>
1762
1752
  Schema.Struct({}).pipe(
1763
1753
  T.Http({ method: "GET", path: "/user/subscriptions" }),
1764
1754
  ),
@@ -1813,7 +1803,7 @@ export interface GetSubscriptionResponse {
1813
1803
  }
1814
1804
 
1815
1805
  export const GetSubscriptionResponse =
1816
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1806
+ /*@__PURE__*/ Schema.suspend(() =>
1817
1807
  Schema.Struct({
1818
1808
  result: Schema.Array(Subscription),
1819
1809
  }),
@@ -1826,7 +1816,7 @@ export const getSubscription: API.PaginatedOperationMethod<
1826
1816
  GetSubscriptionResponse,
1827
1817
  GetSubscriptionError,
1828
1818
  Credentials | HttpClient.HttpClient
1829
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1819
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1830
1820
  input: GetSubscriptionRequest,
1831
1821
  output: GetSubscriptionResponse,
1832
1822
  errors: [],
@@ -1864,7 +1854,7 @@ export interface PutSubscriptionRequest {
1864
1854
  }
1865
1855
 
1866
1856
  export const PutSubscriptionRequest =
1867
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1857
+ /*@__PURE__*/ Schema.suspend(() =>
1868
1858
  Schema.Struct({
1869
1859
  identifier: Schema.String.pipe(T.HttpPath("identifier")),
1870
1860
  frequency: Schema.optional(
@@ -1883,7 +1873,7 @@ export const PutSubscriptionRequest =
1883
1873
  export type PutSubscriptionResponse = unknown;
1884
1874
 
1885
1875
  export const PutSubscriptionResponse =
1886
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1876
+ /*@__PURE__*/ Schema.suspend(() =>
1887
1877
  Schema.Unknown.pipe(T.ResponsePath("result")),
1888
1878
  ) as unknown as Schema.Codec<PutSubscriptionResponse>;
1889
1879
 
@@ -1894,7 +1884,7 @@ export const putSubscription: API.OperationMethod<
1894
1884
  PutSubscriptionResponse,
1895
1885
  PutSubscriptionError,
1896
1886
  Credentials | HttpClient.HttpClient
1897
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1887
+ > = /*@__PURE__*/ API.make(() => ({
1898
1888
  input: PutSubscriptionRequest,
1899
1889
  output: PutSubscriptionResponse,
1900
1890
  errors: [],
@@ -1905,7 +1895,7 @@ export interface DeleteSubscriptionRequest {
1905
1895
  }
1906
1896
 
1907
1897
  export const DeleteSubscriptionRequest =
1908
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1898
+ /*@__PURE__*/ Schema.suspend(() =>
1909
1899
  Schema.Struct({
1910
1900
  identifier: Schema.String.pipe(T.HttpPath("identifier")),
1911
1901
  }).pipe(
@@ -1919,7 +1909,7 @@ export interface DeleteSubscriptionResponse {
1919
1909
  }
1920
1910
 
1921
1911
  export const DeleteSubscriptionResponse =
1922
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1912
+ /*@__PURE__*/ Schema.suspend(() =>
1923
1913
  Schema.Struct({
1924
1914
  subscriptionId: Schema.optional(
1925
1915
  Schema.Union([Schema.String, Schema.Null]),
@@ -1934,7 +1924,7 @@ export const deleteSubscription: API.OperationMethod<
1934
1924
  DeleteSubscriptionResponse,
1935
1925
  DeleteSubscriptionError,
1936
1926
  Credentials | HttpClient.HttpClient
1937
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1927
+ > = /*@__PURE__*/ API.make(() => ({
1938
1928
  input: DeleteSubscriptionRequest,
1939
1929
  output: DeleteSubscriptionResponse,
1940
1930
  errors: [],
@@ -1946,9 +1936,8 @@ export const deleteSubscription: API.OperationMethod<
1946
1936
 
1947
1937
  export interface ListTenantsRequest {}
1948
1938
 
1949
- export const ListTenantsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1950
- () =>
1951
- Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/tenants" })),
1939
+ export const ListTenantsRequest = /*@__PURE__*/ Schema.suspend(() =>
1940
+ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/tenants" })),
1952
1941
  ) as unknown as Schema.Codec<ListTenantsRequest>;
1953
1942
 
1954
1943
  export interface ListTenantsResponse {
@@ -1978,11 +1967,10 @@ export interface ListTenantsResponse {
1978
1967
  }[];
1979
1968
  }
1980
1969
 
1981
- export const ListTenantsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1982
- () =>
1983
- Schema.Struct({
1984
- result: Schema.Array(Organization),
1985
- }),
1970
+ export const ListTenantsResponse = /*@__PURE__*/ Schema.suspend(() =>
1971
+ Schema.Struct({
1972
+ result: Schema.Array(Organization),
1973
+ }),
1986
1974
  ) as unknown as Schema.Codec<ListTenantsResponse>;
1987
1975
 
1988
1976
  export type ListTenantsError = DefaultErrors;
@@ -1992,7 +1980,7 @@ export const listTenants: API.PaginatedOperationMethod<
1992
1980
  ListTenantsResponse,
1993
1981
  ListTenantsError,
1994
1982
  Credentials | HttpClient.HttpClient
1995
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1983
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1996
1984
  input: ListTenantsRequest,
1997
1985
  output: ListTenantsResponse,
1998
1986
  errors: [],
@@ -2010,7 +1998,7 @@ export interface GetTokenRequest {
2010
1998
  tokenId: string;
2011
1999
  }
2012
2000
 
2013
- export const GetTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2001
+ export const GetTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
2014
2002
  Schema.Struct({
2015
2003
  tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
2016
2004
  }).pipe(T.Http({ method: "GET", path: "/user/tokens/{tokenId}" })),
@@ -2051,7 +2039,7 @@ export interface GetTokenResponse {
2051
2039
  status?: "active" | "disabled" | "expired" | (string & {}) | null;
2052
2040
  }
2053
2041
 
2054
- export const GetTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2042
+ export const GetTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
2055
2043
  Schema.Struct({
2056
2044
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2057
2045
  condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
@@ -2098,7 +2086,7 @@ export const getToken: API.OperationMethod<
2098
2086
  GetTokenResponse,
2099
2087
  GetTokenError,
2100
2088
  Credentials | HttpClient.HttpClient
2101
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2089
+ > = /*@__PURE__*/ API.make(() => ({
2102
2090
  input: GetTokenRequest,
2103
2091
  output: GetTokenResponse,
2104
2092
  errors: [InvalidRoute, TokenNotFound],
@@ -2111,15 +2099,14 @@ export interface ListTokensRequest {
2111
2099
  direction?: "asc" | "desc" | (string & {});
2112
2100
  }
2113
2101
 
2114
- export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2115
- () =>
2116
- Schema.Struct({
2117
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
2118
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
2119
- direction: Schema.optional(
2120
- Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
2121
- ).pipe(T.HttpQuery("direction")),
2122
- }).pipe(T.Http({ method: "GET", path: "/user/tokens" })),
2102
+ export const ListTokensRequest = /*@__PURE__*/ Schema.suspend(() =>
2103
+ Schema.Struct({
2104
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
2105
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
2106
+ direction: Schema.optional(
2107
+ Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
2108
+ ).pipe(T.HttpQuery("direction")),
2109
+ }).pipe(T.Http({ method: "GET", path: "/user/tokens" })),
2123
2110
  ) as unknown as Schema.Codec<ListTokensRequest>;
2124
2111
 
2125
2112
  export interface ListTokensResponse {
@@ -2156,14 +2143,13 @@ export interface ListTokensResponse {
2156
2143
  } | null;
2157
2144
  }
2158
2145
 
2159
- export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2160
- () =>
2161
- Schema.Struct({
2162
- result: Schema.Array(Token),
2163
- resultInfo: Schema.optional(
2164
- Schema.Union([ListAuditLogsResponseResultInfo, Schema.Null]),
2165
- ),
2166
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
2146
+ export const ListTokensResponse = /*@__PURE__*/ Schema.suspend(() =>
2147
+ Schema.Struct({
2148
+ result: Schema.Array(Token),
2149
+ resultInfo: Schema.optional(
2150
+ Schema.Union([ListAuditLogsResponseResultInfo, Schema.Null]),
2151
+ ),
2152
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
2167
2153
  ) as unknown as Schema.Codec<ListTokensResponse>;
2168
2154
 
2169
2155
  export type ListTokensError = DefaultErrors;
@@ -2173,7 +2159,7 @@ export const listTokens: API.PaginatedOperationMethod<
2173
2159
  ListTokensResponse,
2174
2160
  ListTokensError,
2175
2161
  Credentials | HttpClient.HttpClient
2176
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2162
+ > = /*@__PURE__*/ API.makePaginated(() => ({
2177
2163
  input: ListTokensRequest,
2178
2164
  output: ListTokensResponse,
2179
2165
  errors: [],
@@ -2202,24 +2188,23 @@ export interface CreateTokenRequest {
2202
2188
  notBefore?: string;
2203
2189
  }
2204
2190
 
2205
- export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2206
- () =>
2207
- Schema.Struct({
2208
- name: Schema.String,
2209
- policies: Schema.Array(TokenPolicyParam),
2210
- condition: Schema.optional(Condition),
2211
- expiresOn: Schema.optional(Schema.String),
2212
- notBefore: Schema.optional(Schema.String),
2213
- }).pipe(
2214
- Schema.encodeKeys({
2215
- name: "name",
2216
- policies: "policies",
2217
- condition: "condition",
2218
- expiresOn: "expires_on",
2219
- notBefore: "not_before",
2220
- }),
2221
- T.Http({ method: "POST", path: "/user/tokens" }),
2222
- ),
2191
+ export const CreateTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
2192
+ Schema.Struct({
2193
+ name: Schema.String,
2194
+ policies: Schema.Array(TokenPolicyParam),
2195
+ condition: Schema.optional(Condition),
2196
+ expiresOn: Schema.optional(Schema.String),
2197
+ notBefore: Schema.optional(Schema.String),
2198
+ }).pipe(
2199
+ Schema.encodeKeys({
2200
+ name: "name",
2201
+ policies: "policies",
2202
+ condition: "condition",
2203
+ expiresOn: "expires_on",
2204
+ notBefore: "not_before",
2205
+ }),
2206
+ T.Http({ method: "POST", path: "/user/tokens" }),
2207
+ ),
2223
2208
  ) as unknown as Schema.Codec<CreateTokenRequest>;
2224
2209
 
2225
2210
  export interface CreateTokenResponse {
@@ -2259,47 +2244,46 @@ export interface CreateTokenResponse {
2259
2244
  value?: string | null;
2260
2245
  }
2261
2246
 
2262
- export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2263
- () =>
2264
- Schema.Struct({
2265
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2266
- condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
2267
- expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2268
- issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2269
- lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2270
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2271
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2272
- notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2273
- policies: Schema.optional(
2274
- Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
2275
- ),
2276
- status: Schema.optional(
2247
+ export const CreateTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
2248
+ Schema.Struct({
2249
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2250
+ condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
2251
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2252
+ issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2253
+ lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2254
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2255
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2256
+ notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2257
+ policies: Schema.optional(
2258
+ Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
2259
+ ),
2260
+ status: Schema.optional(
2261
+ Schema.Union([
2277
2262
  Schema.Union([
2278
- Schema.Union([
2279
- Schema.Literals(["active", "disabled", "expired"]),
2280
- Schema.String,
2281
- ]),
2282
- Schema.Null,
2263
+ Schema.Literals(["active", "disabled", "expired"]),
2264
+ Schema.String,
2283
2265
  ]),
2284
- ),
2285
- value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2286
- })
2287
- .pipe(
2288
- Schema.encodeKeys({
2289
- id: "id",
2290
- condition: "condition",
2291
- expiresOn: "expires_on",
2292
- issuedOn: "issued_on",
2293
- lastUsedOn: "last_used_on",
2294
- modifiedOn: "modified_on",
2295
- name: "name",
2296
- notBefore: "not_before",
2297
- policies: "policies",
2298
- status: "status",
2299
- value: "value",
2300
- }),
2301
- )
2302
- .pipe(T.ResponsePath("result")),
2266
+ Schema.Null,
2267
+ ]),
2268
+ ),
2269
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2270
+ })
2271
+ .pipe(
2272
+ Schema.encodeKeys({
2273
+ id: "id",
2274
+ condition: "condition",
2275
+ expiresOn: "expires_on",
2276
+ issuedOn: "issued_on",
2277
+ lastUsedOn: "last_used_on",
2278
+ modifiedOn: "modified_on",
2279
+ name: "name",
2280
+ notBefore: "not_before",
2281
+ policies: "policies",
2282
+ status: "status",
2283
+ value: "value",
2284
+ }),
2285
+ )
2286
+ .pipe(T.ResponsePath("result")),
2303
2287
  ) as unknown as Schema.Codec<CreateTokenResponse>;
2304
2288
 
2305
2289
  export type CreateTokenError =
@@ -2313,7 +2297,7 @@ export const createToken: API.OperationMethod<
2313
2297
  CreateTokenResponse,
2314
2298
  CreateTokenError,
2315
2299
  Credentials | HttpClient.HttpClient
2316
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2300
+ > = /*@__PURE__*/ API.make(() => ({
2317
2301
  input: CreateTokenRequest,
2318
2302
  output: CreateTokenResponse,
2319
2303
  errors: [InvalidRoute, InvalidTokenName, PermissionGroupNotFound],
@@ -2338,32 +2322,31 @@ export interface UpdateTokenRequest {
2338
2322
  status?: "active" | "disabled" | "expired" | (string & {});
2339
2323
  }
2340
2324
 
2341
- export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2342
- () =>
2343
- Schema.Struct({
2344
- tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
2345
- name: Schema.String,
2346
- policies: Schema.Array(TokenPolicyParam),
2347
- condition: Schema.optional(Condition),
2348
- expiresOn: Schema.optional(Schema.String),
2349
- notBefore: Schema.optional(Schema.String),
2350
- status: Schema.optional(
2351
- Schema.Union([
2352
- Schema.Literals(["active", "disabled", "expired"]),
2353
- Schema.String,
2354
- ]),
2355
- ),
2356
- }).pipe(
2357
- Schema.encodeKeys({
2358
- name: "name",
2359
- policies: "policies",
2360
- condition: "condition",
2361
- expiresOn: "expires_on",
2362
- notBefore: "not_before",
2363
- status: "status",
2364
- }),
2365
- T.Http({ method: "PUT", path: "/user/tokens/{tokenId}" }),
2325
+ export const UpdateTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
2326
+ Schema.Struct({
2327
+ tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
2328
+ name: Schema.String,
2329
+ policies: Schema.Array(TokenPolicyParam),
2330
+ condition: Schema.optional(Condition),
2331
+ expiresOn: Schema.optional(Schema.String),
2332
+ notBefore: Schema.optional(Schema.String),
2333
+ status: Schema.optional(
2334
+ Schema.Union([
2335
+ Schema.Literals(["active", "disabled", "expired"]),
2336
+ Schema.String,
2337
+ ]),
2366
2338
  ),
2339
+ }).pipe(
2340
+ Schema.encodeKeys({
2341
+ name: "name",
2342
+ policies: "policies",
2343
+ condition: "condition",
2344
+ expiresOn: "expires_on",
2345
+ notBefore: "not_before",
2346
+ status: "status",
2347
+ }),
2348
+ T.Http({ method: "PUT", path: "/user/tokens/{tokenId}" }),
2349
+ ),
2367
2350
  ) as unknown as Schema.Codec<UpdateTokenRequest>;
2368
2351
 
2369
2352
  export interface UpdateTokenResponse {
@@ -2401,45 +2384,44 @@ export interface UpdateTokenResponse {
2401
2384
  status?: "active" | "disabled" | "expired" | (string & {}) | null;
2402
2385
  }
2403
2386
 
2404
- export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2405
- () =>
2406
- Schema.Struct({
2407
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2408
- condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
2409
- expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2410
- issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2411
- lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2412
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2413
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2414
- notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2415
- policies: Schema.optional(
2416
- Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
2417
- ),
2418
- status: Schema.optional(
2387
+ export const UpdateTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
2388
+ Schema.Struct({
2389
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2390
+ condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
2391
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2392
+ issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2393
+ lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2394
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2395
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2396
+ notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2397
+ policies: Schema.optional(
2398
+ Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
2399
+ ),
2400
+ status: Schema.optional(
2401
+ Schema.Union([
2419
2402
  Schema.Union([
2420
- Schema.Union([
2421
- Schema.Literals(["active", "disabled", "expired"]),
2422
- Schema.String,
2423
- ]),
2424
- Schema.Null,
2403
+ Schema.Literals(["active", "disabled", "expired"]),
2404
+ Schema.String,
2425
2405
  ]),
2426
- ),
2427
- })
2428
- .pipe(
2429
- Schema.encodeKeys({
2430
- id: "id",
2431
- condition: "condition",
2432
- expiresOn: "expires_on",
2433
- issuedOn: "issued_on",
2434
- lastUsedOn: "last_used_on",
2435
- modifiedOn: "modified_on",
2436
- name: "name",
2437
- notBefore: "not_before",
2438
- policies: "policies",
2439
- status: "status",
2440
- }),
2441
- )
2442
- .pipe(T.ResponsePath("result")),
2406
+ Schema.Null,
2407
+ ]),
2408
+ ),
2409
+ })
2410
+ .pipe(
2411
+ Schema.encodeKeys({
2412
+ id: "id",
2413
+ condition: "condition",
2414
+ expiresOn: "expires_on",
2415
+ issuedOn: "issued_on",
2416
+ lastUsedOn: "last_used_on",
2417
+ modifiedOn: "modified_on",
2418
+ name: "name",
2419
+ notBefore: "not_before",
2420
+ policies: "policies",
2421
+ status: "status",
2422
+ }),
2423
+ )
2424
+ .pipe(T.ResponsePath("result")),
2443
2425
  ) as unknown as Schema.Codec<UpdateTokenResponse>;
2444
2426
 
2445
2427
  export type UpdateTokenError =
@@ -2454,7 +2436,7 @@ export const updateToken: API.OperationMethod<
2454
2436
  UpdateTokenResponse,
2455
2437
  UpdateTokenError,
2456
2438
  Credentials | HttpClient.HttpClient
2457
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2439
+ > = /*@__PURE__*/ API.make(() => ({
2458
2440
  input: UpdateTokenRequest,
2459
2441
  output: UpdateTokenResponse,
2460
2442
  errors: [
@@ -2469,11 +2451,10 @@ export interface DeleteTokenRequest {
2469
2451
  tokenId: string;
2470
2452
  }
2471
2453
 
2472
- export const DeleteTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2473
- () =>
2474
- Schema.Struct({
2475
- tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
2476
- }).pipe(T.Http({ method: "DELETE", path: "/user/tokens/{tokenId}" })),
2454
+ export const DeleteTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
2455
+ Schema.Struct({
2456
+ tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
2457
+ }).pipe(T.Http({ method: "DELETE", path: "/user/tokens/{tokenId}" })),
2477
2458
  ) as unknown as Schema.Codec<DeleteTokenRequest>;
2478
2459
 
2479
2460
  export interface DeleteTokenResponse {
@@ -2481,11 +2462,10 @@ export interface DeleteTokenResponse {
2481
2462
  id: string;
2482
2463
  }
2483
2464
 
2484
- export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2485
- () =>
2486
- Schema.Struct({
2487
- id: Schema.String,
2488
- }).pipe(T.ResponsePath("result")),
2465
+ export const DeleteTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
2466
+ Schema.Struct({
2467
+ id: Schema.String,
2468
+ }).pipe(T.ResponsePath("result")),
2489
2469
  ) as unknown as Schema.Codec<DeleteTokenResponse>;
2490
2470
 
2491
2471
  export type DeleteTokenError =
@@ -2499,7 +2479,7 @@ export const deleteToken: API.OperationMethod<
2499
2479
  DeleteTokenResponse,
2500
2480
  DeleteTokenError,
2501
2481
  Credentials | HttpClient.HttpClient
2502
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2482
+ > = /*@__PURE__*/ API.make(() => ({
2503
2483
  input: DeleteTokenRequest,
2504
2484
  output: DeleteTokenResponse,
2505
2485
  errors: [InvalidRoute, MethodNotAllowed, TokenNotFound],
@@ -2507,11 +2487,10 @@ export const deleteToken: API.OperationMethod<
2507
2487
 
2508
2488
  export interface VerifyTokenRequest {}
2509
2489
 
2510
- export const VerifyTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2511
- () =>
2512
- Schema.Struct({}).pipe(
2513
- T.Http({ method: "GET", path: "/user/tokens/verify" }),
2514
- ),
2490
+ export const VerifyTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
2491
+ Schema.Struct({}).pipe(
2492
+ T.Http({ method: "GET", path: "/user/tokens/verify" }),
2493
+ ),
2515
2494
  ) as unknown as Schema.Codec<VerifyTokenRequest>;
2516
2495
 
2517
2496
  export interface VerifyTokenResponse {
@@ -2525,26 +2504,25 @@ export interface VerifyTokenResponse {
2525
2504
  notBefore?: string | null;
2526
2505
  }
2527
2506
 
2528
- export const VerifyTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2529
- () =>
2530
- Schema.Struct({
2531
- id: Schema.String,
2532
- status: Schema.Union([
2533
- Schema.Literals(["active", "disabled", "expired"]),
2534
- Schema.String,
2535
- ]),
2536
- expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2537
- notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2538
- })
2539
- .pipe(
2540
- Schema.encodeKeys({
2541
- id: "id",
2542
- status: "status",
2543
- expiresOn: "expires_on",
2544
- notBefore: "not_before",
2545
- }),
2546
- )
2547
- .pipe(T.ResponsePath("result")),
2507
+ export const VerifyTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
2508
+ Schema.Struct({
2509
+ id: Schema.String,
2510
+ status: Schema.Union([
2511
+ Schema.Literals(["active", "disabled", "expired"]),
2512
+ Schema.String,
2513
+ ]),
2514
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2515
+ notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2516
+ })
2517
+ .pipe(
2518
+ Schema.encodeKeys({
2519
+ id: "id",
2520
+ status: "status",
2521
+ expiresOn: "expires_on",
2522
+ notBefore: "not_before",
2523
+ }),
2524
+ )
2525
+ .pipe(T.ResponsePath("result")),
2548
2526
  ) as unknown as Schema.Codec<VerifyTokenResponse>;
2549
2527
 
2550
2528
  export type VerifyTokenError = DefaultErrors | Forbidden;
@@ -2554,7 +2532,7 @@ export const verifyToken: API.OperationMethod<
2554
2532
  VerifyTokenResponse,
2555
2533
  VerifyTokenError,
2556
2534
  Credentials | HttpClient.HttpClient
2557
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2535
+ > = /*@__PURE__*/ API.make(() => ({
2558
2536
  input: VerifyTokenRequest,
2559
2537
  output: VerifyTokenResponse,
2560
2538
  errors: [Forbidden],
@@ -2572,7 +2550,7 @@ export interface ListTokenPermissionGroupsRequest {
2572
2550
  }
2573
2551
 
2574
2552
  export const ListTokenPermissionGroupsRequest =
2575
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2553
+ /*@__PURE__*/ Schema.suspend(() =>
2576
2554
  Schema.Struct({
2577
2555
  name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
2578
2556
  scope: Schema.optional(Schema.String).pipe(T.HttpQuery("scope")),
@@ -2612,7 +2590,7 @@ export interface ListTokenPermissionGroupsResponse {
2612
2590
  }
2613
2591
 
2614
2592
  export const ListTokenPermissionGroupsResponse =
2615
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2593
+ /*@__PURE__*/ Schema.suspend(() =>
2616
2594
  Schema.Struct({
2617
2595
  result: Schema.Array(ListTokenPermissionGroupsResponseResult),
2618
2596
  }),
@@ -2625,7 +2603,7 @@ export const listTokenPermissionGroups: API.PaginatedOperationMethod<
2625
2603
  ListTokenPermissionGroupsResponse,
2626
2604
  ListTokenPermissionGroupsError,
2627
2605
  Credentials | HttpClient.HttpClient
2628
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2606
+ > = /*@__PURE__*/ API.makePaginated(() => ({
2629
2607
  input: ListTokenPermissionGroupsRequest,
2630
2608
  output: ListTokenPermissionGroupsResponse,
2631
2609
  errors: [],
@@ -2643,17 +2621,16 @@ export interface PutTokenValueRequest {
2643
2621
  tokenId: string;
2644
2622
  }
2645
2623
 
2646
- export const PutTokenValueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2647
- () =>
2648
- Schema.Struct({
2649
- tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
2650
- }).pipe(T.Http({ method: "PUT", path: "/user/tokens/{tokenId}/value" })),
2624
+ export const PutTokenValueRequest = /*@__PURE__*/ Schema.suspend(() =>
2625
+ Schema.Struct({
2626
+ tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
2627
+ }).pipe(T.Http({ method: "PUT", path: "/user/tokens/{tokenId}/value" })),
2651
2628
  ) as unknown as Schema.Codec<PutTokenValueRequest>;
2652
2629
 
2653
2630
  export type PutTokenValueResponse = string;
2654
2631
 
2655
- export const PutTokenValueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2656
- () => Schema.String.pipe(T.ResponsePath("result")),
2632
+ export const PutTokenValueResponse = /*@__PURE__*/ Schema.suspend(() =>
2633
+ Schema.String.pipe(T.ResponsePath("result")),
2657
2634
  ) as unknown as Schema.Codec<PutTokenValueResponse>;
2658
2635
 
2659
2636
  export type PutTokenValueError = DefaultErrors | InvalidRoute | TokenNotFound;
@@ -2663,7 +2640,7 @@ export const putTokenValue: API.OperationMethod<
2663
2640
  PutTokenValueResponse,
2664
2641
  PutTokenValueError,
2665
2642
  Credentials | HttpClient.HttpClient
2666
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2643
+ > = /*@__PURE__*/ API.make(() => ({
2667
2644
  input: PutTokenValueRequest,
2668
2645
  output: PutTokenValueResponse,
2669
2646
  errors: [InvalidRoute, TokenNotFound],
@@ -2675,7 +2652,7 @@ export const putTokenValue: API.OperationMethod<
2675
2652
 
2676
2653
  export interface GetUserRequest {}
2677
2654
 
2678
- export const GetUserRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2655
+ export const GetUserRequest = /*@__PURE__*/ Schema.suspend(() =>
2679
2656
  Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user" })),
2680
2657
  ) as unknown as Schema.Codec<GetUserRequest>;
2681
2658
 
@@ -2719,7 +2696,7 @@ export interface GetUserResponse {
2719
2696
  zipcode?: string | null;
2720
2697
  }
2721
2698
 
2722
- export const GetUserResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2699
+ export const GetUserResponse = /*@__PURE__*/ Schema.suspend(() =>
2723
2700
  Schema.Struct({
2724
2701
  id: Schema.String,
2725
2702
  email: Schema.String,
@@ -2781,7 +2758,7 @@ export const getUser: API.OperationMethod<
2781
2758
  GetUserResponse,
2782
2759
  GetUserError,
2783
2760
  Credentials | HttpClient.HttpClient
2784
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2761
+ > = /*@__PURE__*/ API.make(() => ({
2785
2762
  input: GetUserRequest,
2786
2763
  output: GetUserResponse,
2787
2764
  errors: [],
@@ -2800,7 +2777,7 @@ export interface PatchUserRequest {
2800
2777
  zipcode?: string | null;
2801
2778
  }
2802
2779
 
2803
- export const PatchUserRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2780
+ export const PatchUserRequest = /*@__PURE__*/ Schema.suspend(() =>
2804
2781
  Schema.Struct({
2805
2782
  country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2806
2783
  firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2859,60 +2836,59 @@ export interface PatchUserResponse {
2859
2836
  zipcode?: string | null;
2860
2837
  }
2861
2838
 
2862
- export const PatchUserResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2863
- () =>
2864
- Schema.Struct({
2865
- id: Schema.String,
2866
- email: Schema.String,
2867
- betas: Schema.optional(
2868
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2869
- ),
2870
- country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2871
- firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2872
- hasBusinessZones: Schema.optional(
2873
- Schema.Union([Schema.Boolean, Schema.Null]),
2874
- ),
2875
- hasEnterpriseZones: Schema.optional(
2876
- Schema.Union([Schema.Boolean, Schema.Null]),
2877
- ),
2878
- hasProZones: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2879
- lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2880
- organizations: Schema.optional(
2881
- Schema.Union([
2882
- Schema.Array(ListOrganizationsResponseResult),
2883
- Schema.Null,
2884
- ]),
2885
- ),
2886
- suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2887
- telephone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2888
- twoFactorAuthenticationEnabled: Schema.optional(
2889
- Schema.Union([Schema.Boolean, Schema.Null]),
2890
- ),
2891
- twoFactorAuthenticationLocked: Schema.optional(
2892
- Schema.Union([Schema.Boolean, Schema.Null]),
2893
- ),
2894
- zipcode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2895
- })
2896
- .pipe(
2897
- Schema.encodeKeys({
2898
- id: "id",
2899
- email: "email",
2900
- betas: "betas",
2901
- country: "country",
2902
- firstName: "first_name",
2903
- hasBusinessZones: "has_business_zones",
2904
- hasEnterpriseZones: "has_enterprise_zones",
2905
- hasProZones: "has_pro_zones",
2906
- lastName: "last_name",
2907
- organizations: "organizations",
2908
- suspended: "suspended",
2909
- telephone: "telephone",
2910
- twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
2911
- twoFactorAuthenticationLocked: "two_factor_authentication_locked",
2912
- zipcode: "zipcode",
2913
- }),
2914
- )
2915
- .pipe(T.ResponsePath("result")),
2839
+ export const PatchUserResponse = /*@__PURE__*/ Schema.suspend(() =>
2840
+ Schema.Struct({
2841
+ id: Schema.String,
2842
+ email: Schema.String,
2843
+ betas: Schema.optional(
2844
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2845
+ ),
2846
+ country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2847
+ firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2848
+ hasBusinessZones: Schema.optional(
2849
+ Schema.Union([Schema.Boolean, Schema.Null]),
2850
+ ),
2851
+ hasEnterpriseZones: Schema.optional(
2852
+ Schema.Union([Schema.Boolean, Schema.Null]),
2853
+ ),
2854
+ hasProZones: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2855
+ lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2856
+ organizations: Schema.optional(
2857
+ Schema.Union([
2858
+ Schema.Array(ListOrganizationsResponseResult),
2859
+ Schema.Null,
2860
+ ]),
2861
+ ),
2862
+ suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2863
+ telephone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2864
+ twoFactorAuthenticationEnabled: Schema.optional(
2865
+ Schema.Union([Schema.Boolean, Schema.Null]),
2866
+ ),
2867
+ twoFactorAuthenticationLocked: Schema.optional(
2868
+ Schema.Union([Schema.Boolean, Schema.Null]),
2869
+ ),
2870
+ zipcode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2871
+ })
2872
+ .pipe(
2873
+ Schema.encodeKeys({
2874
+ id: "id",
2875
+ email: "email",
2876
+ betas: "betas",
2877
+ country: "country",
2878
+ firstName: "first_name",
2879
+ hasBusinessZones: "has_business_zones",
2880
+ hasEnterpriseZones: "has_enterprise_zones",
2881
+ hasProZones: "has_pro_zones",
2882
+ lastName: "last_name",
2883
+ organizations: "organizations",
2884
+ suspended: "suspended",
2885
+ telephone: "telephone",
2886
+ twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
2887
+ twoFactorAuthenticationLocked: "two_factor_authentication_locked",
2888
+ zipcode: "zipcode",
2889
+ }),
2890
+ )
2891
+ .pipe(T.ResponsePath("result")),
2916
2892
  ) as unknown as Schema.Codec<PatchUserResponse>;
2917
2893
 
2918
2894
  export type PatchUserError = DefaultErrors;
@@ -2922,7 +2898,7 @@ export const patchUser: API.OperationMethod<
2922
2898
  PatchUserResponse,
2923
2899
  PatchUserError,
2924
2900
  Credentials | HttpClient.HttpClient
2925
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2901
+ > = /*@__PURE__*/ API.make(() => ({
2926
2902
  input: PatchUserRequest,
2927
2903
  output: PatchUserResponse,
2928
2904
  errors: [],