@distilled.cloud/cloudflare 0.0.0 → 0.2.3

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 (560) hide show
  1. package/README.md +41 -7
  2. package/lib/auth.d.ts +13 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +12 -0
  5. package/lib/auth.js.map +1 -0
  6. package/lib/category.d.ts +2 -0
  7. package/lib/category.d.ts.map +1 -0
  8. package/lib/category.js +2 -0
  9. package/lib/category.js.map +1 -0
  10. package/lib/client/api.d.ts +14 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +245 -0
  13. package/lib/client/api.js.map +1 -0
  14. package/lib/client/index.d.ts +8 -0
  15. package/lib/client/index.d.ts.map +1 -0
  16. package/lib/client/index.js +8 -0
  17. package/lib/client/index.js.map +1 -0
  18. package/lib/credentials.d.ts +14 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +17 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +37 -0
  23. package/lib/errors.d.ts.map +1 -0
  24. package/lib/errors.js +31 -0
  25. package/lib/errors.js.map +1 -0
  26. package/lib/index.d.ts +10 -0
  27. package/lib/index.d.ts.map +1 -0
  28. package/lib/index.js +10 -0
  29. package/lib/index.js.map +1 -0
  30. package/lib/retry.d.ts +14 -0
  31. package/lib/retry.d.ts.map +1 -0
  32. package/lib/retry.js +14 -0
  33. package/lib/retry.js.map +1 -0
  34. package/lib/schemas.d.ts +29 -0
  35. package/lib/schemas.d.ts.map +1 -0
  36. package/lib/schemas.js +34 -0
  37. package/lib/schemas.js.map +1 -0
  38. package/lib/services/abuse-reports.d.ts +224 -0
  39. package/lib/services/abuse-reports.d.ts.map +1 -0
  40. package/lib/services/abuse-reports.js +353 -0
  41. package/lib/services/abuse-reports.js.map +1 -0
  42. package/lib/services/accounts.d.ts +682 -0
  43. package/lib/services/accounts.d.ts.map +1 -0
  44. package/lib/services/accounts.js +805 -0
  45. package/lib/services/accounts.js.map +1 -0
  46. package/lib/services/acm.d.ts +73 -0
  47. package/lib/services/acm.d.ts.map +1 -0
  48. package/lib/services/acm.js +76 -0
  49. package/lib/services/acm.js.map +1 -0
  50. package/lib/services/addressing.d.ts +1208 -0
  51. package/lib/services/addressing.d.ts.map +1 -0
  52. package/lib/services/addressing.js +1776 -0
  53. package/lib/services/addressing.js.map +1 -0
  54. package/lib/services/ai-gateway.d.ts +956 -0
  55. package/lib/services/ai-gateway.d.ts.map +1 -0
  56. package/lib/services/ai-gateway.js +1706 -0
  57. package/lib/services/ai-gateway.js.map +1 -0
  58. package/lib/services/ai.d.ts +243 -0
  59. package/lib/services/ai.d.ts.map +1 -0
  60. package/lib/services/ai.js +299 -0
  61. package/lib/services/ai.js.map +1 -0
  62. package/lib/services/aisearch.d.ts +915 -0
  63. package/lib/services/aisearch.d.ts.map +1 -0
  64. package/lib/services/aisearch.js +2425 -0
  65. package/lib/services/aisearch.js.map +1 -0
  66. package/lib/services/alerting.d.ts +718 -0
  67. package/lib/services/alerting.d.ts.map +1 -0
  68. package/lib/services/alerting.js +1388 -0
  69. package/lib/services/alerting.js.map +1 -0
  70. package/lib/services/api-gateway.d.ts +830 -0
  71. package/lib/services/api-gateway.d.ts.map +1 -0
  72. package/lib/services/api-gateway.js +1548 -0
  73. package/lib/services/api-gateway.js.map +1 -0
  74. package/lib/services/argo.d.ts +101 -0
  75. package/lib/services/argo.d.ts.map +1 -0
  76. package/lib/services/argo.js +105 -0
  77. package/lib/services/argo.js.map +1 -0
  78. package/lib/services/audit-logs.d.ts +46 -0
  79. package/lib/services/audit-logs.d.ts.map +1 -0
  80. package/lib/services/audit-logs.js +37 -0
  81. package/lib/services/audit-logs.js.map +1 -0
  82. package/lib/services/billing.d.ts +62 -0
  83. package/lib/services/billing.d.ts.map +1 -0
  84. package/lib/services/billing.js +100 -0
  85. package/lib/services/billing.js.map +1 -0
  86. package/lib/services/bot-management.d.ts +124 -0
  87. package/lib/services/bot-management.d.ts.map +1 -0
  88. package/lib/services/bot-management.js +262 -0
  89. package/lib/services/bot-management.js.map +1 -0
  90. package/lib/services/botnet-feed.d.ts +65 -0
  91. package/lib/services/botnet-feed.d.ts.map +1 -0
  92. package/lib/services/botnet-feed.js +84 -0
  93. package/lib/services/botnet-feed.js.map +1 -0
  94. package/lib/services/brand-protection.d.ts +188 -0
  95. package/lib/services/brand-protection.d.ts.map +1 -0
  96. package/lib/services/brand-protection.js +214 -0
  97. package/lib/services/brand-protection.js.map +1 -0
  98. package/lib/services/browser-rendering.d.ts +857 -0
  99. package/lib/services/browser-rendering.d.ts.map +1 -0
  100. package/lib/services/browser-rendering.js +1141 -0
  101. package/lib/services/browser-rendering.js.map +1 -0
  102. package/lib/services/cache.d.ts +287 -0
  103. package/lib/services/cache.d.ts.map +1 -0
  104. package/lib/services/cache.js +330 -0
  105. package/lib/services/cache.js.map +1 -0
  106. package/lib/services/calls.d.ts +202 -0
  107. package/lib/services/calls.d.ts.map +1 -0
  108. package/lib/services/calls.js +175 -0
  109. package/lib/services/calls.js.map +1 -0
  110. package/lib/services/certificate-authorities.d.ts +40 -0
  111. package/lib/services/certificate-authorities.d.ts.map +1 -0
  112. package/lib/services/certificate-authorities.js +49 -0
  113. package/lib/services/certificate-authorities.js.map +1 -0
  114. package/lib/services/client-certificates.d.ts +254 -0
  115. package/lib/services/client-certificates.d.ts.map +1 -0
  116. package/lib/services/client-certificates.js +350 -0
  117. package/lib/services/client-certificates.js.map +1 -0
  118. package/lib/services/cloud-connector.d.ts +59 -0
  119. package/lib/services/cloud-connector.d.ts.map +1 -0
  120. package/lib/services/cloud-connector.js +84 -0
  121. package/lib/services/cloud-connector.js.map +1 -0
  122. package/lib/services/cloudforce-one.d.ts +1318 -0
  123. package/lib/services/cloudforce-one.d.ts.map +1 -0
  124. package/lib/services/cloudforce-one.js +1684 -0
  125. package/lib/services/cloudforce-one.js.map +1 -0
  126. package/lib/services/connectivity.d.ts +248 -0
  127. package/lib/services/connectivity.d.ts.map +1 -0
  128. package/lib/services/connectivity.js +377 -0
  129. package/lib/services/connectivity.js.map +1 -0
  130. package/lib/services/content-scanning.d.ts +131 -0
  131. package/lib/services/content-scanning.d.ts.map +1 -0
  132. package/lib/services/content-scanning.js +156 -0
  133. package/lib/services/content-scanning.js.map +1 -0
  134. package/lib/services/custom-certificates.d.ts +211 -0
  135. package/lib/services/custom-certificates.d.ts.map +1 -0
  136. package/lib/services/custom-certificates.js +309 -0
  137. package/lib/services/custom-certificates.js.map +1 -0
  138. package/lib/services/custom-hostnames.d.ts +525 -0
  139. package/lib/services/custom-hostnames.d.ts.map +1 -0
  140. package/lib/services/custom-hostnames.js +1164 -0
  141. package/lib/services/custom-hostnames.js.map +1 -0
  142. package/lib/services/custom-nameservers.d.ts +67 -0
  143. package/lib/services/custom-nameservers.d.ts.map +1 -0
  144. package/lib/services/custom-nameservers.js +80 -0
  145. package/lib/services/custom-nameservers.js.map +1 -0
  146. package/lib/services/custom-pages.d.ts +74 -0
  147. package/lib/services/custom-pages.d.ts.map +1 -0
  148. package/lib/services/custom-pages.js +125 -0
  149. package/lib/services/custom-pages.js.map +1 -0
  150. package/lib/services/d1.d.ts +326 -0
  151. package/lib/services/d1.d.ts.map +1 -0
  152. package/lib/services/d1.js +448 -0
  153. package/lib/services/d1.js.map +1 -0
  154. package/lib/services/dcv-delegation.d.ts +24 -0
  155. package/lib/services/dcv-delegation.d.ts.map +1 -0
  156. package/lib/services/dcv-delegation.js +24 -0
  157. package/lib/services/dcv-delegation.js.map +1 -0
  158. package/lib/services/diagnostics.d.ts +175 -0
  159. package/lib/services/diagnostics.d.ts.map +1 -0
  160. package/lib/services/diagnostics.js +273 -0
  161. package/lib/services/diagnostics.js.map +1 -0
  162. package/lib/services/dns-firewall.d.ts +288 -0
  163. package/lib/services/dns-firewall.d.ts.map +1 -0
  164. package/lib/services/dns-firewall.js +373 -0
  165. package/lib/services/dns-firewall.js.map +1 -0
  166. package/lib/services/dns.d.ts +2946 -0
  167. package/lib/services/dns.d.ts.map +1 -0
  168. package/lib/services/dns.js +4511 -0
  169. package/lib/services/dns.js.map +1 -0
  170. package/lib/services/durable-objects.d.ts +61 -0
  171. package/lib/services/durable-objects.d.ts.map +1 -0
  172. package/lib/services/durable-objects.js +66 -0
  173. package/lib/services/durable-objects.js.map +1 -0
  174. package/lib/services/email-routing.d.ts +542 -0
  175. package/lib/services/email-routing.d.ts.map +1 -0
  176. package/lib/services/email-routing.js +662 -0
  177. package/lib/services/email-routing.js.map +1 -0
  178. package/lib/services/email-security.d.ts +1131 -0
  179. package/lib/services/email-security.d.ts.map +1 -0
  180. package/lib/services/email-security.js +2065 -0
  181. package/lib/services/email-security.js.map +1 -0
  182. package/lib/services/filters.d.ts +157 -0
  183. package/lib/services/filters.d.ts.map +1 -0
  184. package/lib/services/filters.js +135 -0
  185. package/lib/services/filters.js.map +1 -0
  186. package/lib/services/firewall.d.ts +1080 -0
  187. package/lib/services/firewall.d.ts.map +1 -0
  188. package/lib/services/firewall.js +1881 -0
  189. package/lib/services/firewall.js.map +1 -0
  190. package/lib/services/healthchecks.d.ts +464 -0
  191. package/lib/services/healthchecks.d.ts.map +1 -0
  192. package/lib/services/healthchecks.js +838 -0
  193. package/lib/services/healthchecks.js.map +1 -0
  194. package/lib/services/hostnames.d.ts +74 -0
  195. package/lib/services/hostnames.d.ts.map +1 -0
  196. package/lib/services/hostnames.js +100 -0
  197. package/lib/services/hostnames.js.map +1 -0
  198. package/lib/services/hyperdrive.d.ts +203 -0
  199. package/lib/services/hyperdrive.d.ts.map +1 -0
  200. package/lib/services/hyperdrive.js +299 -0
  201. package/lib/services/hyperdrive.js.map +1 -0
  202. package/lib/services/iam.d.ts +554 -0
  203. package/lib/services/iam.d.ts.map +1 -0
  204. package/lib/services/iam.js +743 -0
  205. package/lib/services/iam.js.map +1 -0
  206. package/lib/services/images.d.ts +403 -0
  207. package/lib/services/images.d.ts.map +1 -0
  208. package/lib/services/images.js +417 -0
  209. package/lib/services/images.js.map +1 -0
  210. package/lib/services/intel.d.ts +768 -0
  211. package/lib/services/intel.d.ts.map +1 -0
  212. package/lib/services/intel.js +1179 -0
  213. package/lib/services/intel.js.map +1 -0
  214. package/lib/services/ips.d.ts +28 -0
  215. package/lib/services/ips.d.ts.map +1 -0
  216. package/lib/services/ips.js +39 -0
  217. package/lib/services/ips.js.map +1 -0
  218. package/lib/services/keyless-certificates.d.ts +177 -0
  219. package/lib/services/keyless-certificates.d.ts.map +1 -0
  220. package/lib/services/keyless-certificates.js +216 -0
  221. package/lib/services/keyless-certificates.js.map +1 -0
  222. package/lib/services/kv.d.ts +339 -0
  223. package/lib/services/kv.d.ts.map +1 -0
  224. package/lib/services/kv.js +402 -0
  225. package/lib/services/kv.js.map +1 -0
  226. package/lib/services/leaked-credential-checks.d.ts +119 -0
  227. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  228. package/lib/services/leaked-credential-checks.js +130 -0
  229. package/lib/services/leaked-credential-checks.js.map +1 -0
  230. package/lib/services/load-balancers.d.ts +1767 -0
  231. package/lib/services/load-balancers.d.ts.map +1 -0
  232. package/lib/services/load-balancers.js +3068 -0
  233. package/lib/services/load-balancers.js.map +1 -0
  234. package/lib/services/logpush.d.ts +401 -0
  235. package/lib/services/logpush.d.ts.map +1 -0
  236. package/lib/services/logpush.js +724 -0
  237. package/lib/services/logpush.js.map +1 -0
  238. package/lib/services/logs.d.ts +125 -0
  239. package/lib/services/logs.d.ts.map +1 -0
  240. package/lib/services/logs.js +145 -0
  241. package/lib/services/logs.js.map +1 -0
  242. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  243. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  244. package/lib/services/magic-cloud-networking.js +5205 -0
  245. package/lib/services/magic-cloud-networking.js.map +1 -0
  246. package/lib/services/magic-network-monitoring.d.ts +379 -0
  247. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  248. package/lib/services/magic-network-monitoring.js +535 -0
  249. package/lib/services/magic-network-monitoring.js.map +1 -0
  250. package/lib/services/magic-transit.d.ts +3650 -0
  251. package/lib/services/magic-transit.d.ts.map +1 -0
  252. package/lib/services/magic-transit.js +6120 -0
  253. package/lib/services/magic-transit.js.map +1 -0
  254. package/lib/services/managed-transforms.d.ts +79 -0
  255. package/lib/services/managed-transforms.d.ts.map +1 -0
  256. package/lib/services/managed-transforms.js +107 -0
  257. package/lib/services/managed-transforms.js.map +1 -0
  258. package/lib/services/memberships.d.ts +172 -0
  259. package/lib/services/memberships.d.ts.map +1 -0
  260. package/lib/services/memberships.js +282 -0
  261. package/lib/services/memberships.js.map +1 -0
  262. package/lib/services/mtls-certificates.d.ts +140 -0
  263. package/lib/services/mtls-certificates.d.ts.map +1 -0
  264. package/lib/services/mtls-certificates.js +173 -0
  265. package/lib/services/mtls-certificates.js.map +1 -0
  266. package/lib/services/network-interconnects.d.ts +410 -0
  267. package/lib/services/network-interconnects.d.ts.map +1 -0
  268. package/lib/services/network-interconnects.js +583 -0
  269. package/lib/services/network-interconnects.js.map +1 -0
  270. package/lib/services/organizations.d.ts +201 -0
  271. package/lib/services/organizations.d.ts.map +1 -0
  272. package/lib/services/organizations.js +355 -0
  273. package/lib/services/organizations.js.map +1 -0
  274. package/lib/services/origin-ca-certificates.d.ts +99 -0
  275. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  276. package/lib/services/origin-ca-certificates.js +156 -0
  277. package/lib/services/origin-ca-certificates.js.map +1 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  279. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  280. package/lib/services/origin-post-quantum-encryption.js +60 -0
  281. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  282. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  283. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  284. package/lib/services/origin-tls-client-auth.js +401 -0
  285. package/lib/services/origin-tls-client-auth.js.map +1 -0
  286. package/lib/services/page-rules.d.ts +773 -0
  287. package/lib/services/page-rules.d.ts.map +1 -0
  288. package/lib/services/page-rules.js +1365 -0
  289. package/lib/services/page-rules.js.map +1 -0
  290. package/lib/services/page-shield.d.ts +426 -0
  291. package/lib/services/page-shield.d.ts.map +1 -0
  292. package/lib/services/page-shield.js +484 -0
  293. package/lib/services/page-shield.js.map +1 -0
  294. package/lib/services/pages.d.ts +1654 -0
  295. package/lib/services/pages.d.ts.map +1 -0
  296. package/lib/services/pages.js +2954 -0
  297. package/lib/services/pages.js.map +1 -0
  298. package/lib/services/pipelines.d.ts +1461 -0
  299. package/lib/services/pipelines.d.ts.map +1 -0
  300. package/lib/services/pipelines.js +2912 -0
  301. package/lib/services/pipelines.js.map +1 -0
  302. package/lib/services/queues.d.ts +807 -0
  303. package/lib/services/queues.d.ts.map +1 -0
  304. package/lib/services/queues.js +1194 -0
  305. package/lib/services/queues.js.map +1 -0
  306. package/lib/services/r2-data-catalog.d.ts +341 -0
  307. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  308. package/lib/services/r2-data-catalog.js +499 -0
  309. package/lib/services/r2-data-catalog.js.map +1 -0
  310. package/lib/services/r2.d.ts +1041 -0
  311. package/lib/services/r2.d.ts.map +1 -0
  312. package/lib/services/r2.js +1384 -0
  313. package/lib/services/r2.js.map +1 -0
  314. package/lib/services/radar.d.ts +9276 -0
  315. package/lib/services/radar.d.ts.map +1 -0
  316. package/lib/services/radar.js +20491 -0
  317. package/lib/services/radar.js.map +1 -0
  318. package/lib/services/rate-limits.d.ts +315 -0
  319. package/lib/services/rate-limits.d.ts.map +1 -0
  320. package/lib/services/rate-limits.js +521 -0
  321. package/lib/services/rate-limits.js.map +1 -0
  322. package/lib/services/realtime-kit.d.ts +2728 -0
  323. package/lib/services/realtime-kit.d.ts.map +1 -0
  324. package/lib/services/realtime-kit.js +5401 -0
  325. package/lib/services/realtime-kit.js.map +1 -0
  326. package/lib/services/registrar.d.ts +81 -0
  327. package/lib/services/registrar.d.ts.map +1 -0
  328. package/lib/services/registrar.js +154 -0
  329. package/lib/services/registrar.js.map +1 -0
  330. package/lib/services/request-tracers.d.ts +61 -0
  331. package/lib/services/request-tracers.d.ts.map +1 -0
  332. package/lib/services/request-tracers.js +82 -0
  333. package/lib/services/request-tracers.js.map +1 -0
  334. package/lib/services/resource-sharing.d.ts +540 -0
  335. package/lib/services/resource-sharing.d.ts.map +1 -0
  336. package/lib/services/resource-sharing.js +846 -0
  337. package/lib/services/resource-sharing.js.map +1 -0
  338. package/lib/services/rules.d.ts +297 -0
  339. package/lib/services/rules.d.ts.map +1 -0
  340. package/lib/services/rules.js +396 -0
  341. package/lib/services/rules.js.map +1 -0
  342. package/lib/services/rulesets.d.ts +3300 -0
  343. package/lib/services/rulesets.d.ts.map +1 -0
  344. package/lib/services/rulesets.js +7852 -0
  345. package/lib/services/rulesets.js.map +1 -0
  346. package/lib/services/rum.d.ts +289 -0
  347. package/lib/services/rum.d.ts.map +1 -0
  348. package/lib/services/rum.js +409 -0
  349. package/lib/services/rum.js.map +1 -0
  350. package/lib/services/schema-validation.d.ts +240 -0
  351. package/lib/services/schema-validation.d.ts.map +1 -0
  352. package/lib/services/schema-validation.js +306 -0
  353. package/lib/services/schema-validation.js.map +1 -0
  354. package/lib/services/secrets-store.d.ts +321 -0
  355. package/lib/services/secrets-store.d.ts.map +1 -0
  356. package/lib/services/secrets-store.js +385 -0
  357. package/lib/services/secrets-store.js.map +1 -0
  358. package/lib/services/security-center.d.ts +102 -0
  359. package/lib/services/security-center.d.ts.map +1 -0
  360. package/lib/services/security-center.js +170 -0
  361. package/lib/services/security-center.js.map +1 -0
  362. package/lib/services/security-txt.d.ts +105 -0
  363. package/lib/services/security-txt.d.ts.map +1 -0
  364. package/lib/services/security-txt.js +136 -0
  365. package/lib/services/security-txt.js.map +1 -0
  366. package/lib/services/snippets.d.ts +138 -0
  367. package/lib/services/snippets.d.ts.map +1 -0
  368. package/lib/services/snippets.js +178 -0
  369. package/lib/services/snippets.js.map +1 -0
  370. package/lib/services/spectrum.d.ts +316 -0
  371. package/lib/services/spectrum.d.ts.map +1 -0
  372. package/lib/services/spectrum.js +510 -0
  373. package/lib/services/spectrum.js.map +1 -0
  374. package/lib/services/speed.d.ts +227 -0
  375. package/lib/services/speed.d.ts.map +1 -0
  376. package/lib/services/speed.js +444 -0
  377. package/lib/services/speed.js.map +1 -0
  378. package/lib/services/ssl.d.ts +370 -0
  379. package/lib/services/ssl.d.ts.map +1 -0
  380. package/lib/services/ssl.js +732 -0
  381. package/lib/services/ssl.js.map +1 -0
  382. package/lib/services/stream.d.ts +1014 -0
  383. package/lib/services/stream.d.ts.map +1 -0
  384. package/lib/services/stream.js +1049 -0
  385. package/lib/services/stream.js.map +1 -0
  386. package/lib/services/token-validation.d.ts +547 -0
  387. package/lib/services/token-validation.d.ts.map +1 -0
  388. package/lib/services/token-validation.js +768 -0
  389. package/lib/services/token-validation.js.map +1 -0
  390. package/lib/services/turnstile.d.ts +248 -0
  391. package/lib/services/turnstile.d.ts.map +1 -0
  392. package/lib/services/turnstile.js +308 -0
  393. package/lib/services/turnstile.js.map +1 -0
  394. package/lib/services/url-normalization.d.ts +53 -0
  395. package/lib/services/url-normalization.d.ts.map +1 -0
  396. package/lib/services/url-normalization.js +52 -0
  397. package/lib/services/url-normalization.js.map +1 -0
  398. package/lib/services/url-scanner.d.ts +612 -0
  399. package/lib/services/url-scanner.d.ts.map +1 -0
  400. package/lib/services/url-scanner.js +915 -0
  401. package/lib/services/url-scanner.js.map +1 -0
  402. package/lib/services/user.d.ts +441 -0
  403. package/lib/services/user.d.ts.map +1 -0
  404. package/lib/services/user.js +567 -0
  405. package/lib/services/user.js.map +1 -0
  406. package/lib/services/vectorize.d.ts +282 -0
  407. package/lib/services/vectorize.d.ts.map +1 -0
  408. package/lib/services/vectorize.js +340 -0
  409. package/lib/services/vectorize.js.map +1 -0
  410. package/lib/services/waiting-rooms.d.ts +1009 -0
  411. package/lib/services/waiting-rooms.d.ts.map +1 -0
  412. package/lib/services/waiting-rooms.js +1757 -0
  413. package/lib/services/waiting-rooms.js.map +1 -0
  414. package/lib/services/web3.d.ts +274 -0
  415. package/lib/services/web3.d.ts.map +1 -0
  416. package/lib/services/web3.js +362 -0
  417. package/lib/services/web3.js.map +1 -0
  418. package/lib/services/workers-for-platforms.d.ts +1224 -0
  419. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  420. package/lib/services/workers-for-platforms.js +2078 -0
  421. package/lib/services/workers-for-platforms.js.map +1 -0
  422. package/lib/services/workers.d.ts +3498 -0
  423. package/lib/services/workers.d.ts.map +1 -0
  424. package/lib/services/workers.js +5967 -0
  425. package/lib/services/workers.js.map +1 -0
  426. package/lib/services/workflows.d.ts +359 -0
  427. package/lib/services/workflows.d.ts.map +1 -0
  428. package/lib/services/workflows.js +516 -0
  429. package/lib/services/workflows.js.map +1 -0
  430. package/lib/services/zaraz.d.ts +300 -0
  431. package/lib/services/zaraz.d.ts.map +1 -0
  432. package/lib/services/zaraz.js +298 -0
  433. package/lib/services/zaraz.js.map +1 -0
  434. package/lib/services/zero-trust.d.ts +15449 -0
  435. package/lib/services/zero-trust.d.ts.map +1 -0
  436. package/lib/services/zero-trust.js +29194 -0
  437. package/lib/services/zero-trust.js.map +1 -0
  438. package/lib/services/zones.d.ts +1278 -0
  439. package/lib/services/zones.d.ts.map +1 -0
  440. package/lib/services/zones.js +2416 -0
  441. package/lib/services/zones.js.map +1 -0
  442. package/lib/traits.d.ts +28 -0
  443. package/lib/traits.d.ts.map +1 -0
  444. package/lib/traits.js +26 -0
  445. package/lib/traits.js.map +1 -0
  446. package/package.json +68 -5
  447. package/src/auth.ts +14 -0
  448. package/src/category.ts +1 -0
  449. package/src/client/api.ts +329 -0
  450. package/src/client/index.ts +7 -0
  451. package/src/credentials.ts +30 -0
  452. package/src/errors.ts +57 -0
  453. package/src/index.ts +9 -0
  454. package/src/retry.ts +35 -0
  455. package/src/schemas.ts +51 -0
  456. package/src/services/abuse-reports.ts +747 -0
  457. package/src/services/accounts.ts +1947 -0
  458. package/src/services/acm.ts +170 -0
  459. package/src/services/addressing.ts +3947 -0
  460. package/src/services/ai-gateway.ts +3335 -0
  461. package/src/services/ai.ts +727 -0
  462. package/src/services/aisearch.ts +4750 -0
  463. package/src/services/alerting.ts +2947 -0
  464. package/src/services/api-gateway.ts +3391 -0
  465. package/src/services/argo.ts +254 -0
  466. package/src/services/audit-logs.ts +90 -0
  467. package/src/services/billing.ts +172 -0
  468. package/src/services/bot-management.ts +541 -0
  469. package/src/services/botnet-feed.ts +193 -0
  470. package/src/services/brand-protection.ts +553 -0
  471. package/src/services/browser-rendering.ts +2707 -0
  472. package/src/services/cache.ts +827 -0
  473. package/src/services/calls.ts +483 -0
  474. package/src/services/certificate-authorities.ts +110 -0
  475. package/src/services/client-certificates.ts +718 -0
  476. package/src/services/cloud-connector.ts +181 -0
  477. package/src/services/cloudforce-one.ts +3876 -0
  478. package/src/services/connectivity.ts +629 -0
  479. package/src/services/content-scanning.ts +385 -0
  480. package/src/services/custom-certificates.ts +611 -0
  481. package/src/services/custom-hostnames.ts +2453 -0
  482. package/src/services/custom-nameservers.ts +182 -0
  483. package/src/services/custom-pages.ts +264 -0
  484. package/src/services/d1.ts +1034 -0
  485. package/src/services/dcv-delegation.ts +52 -0
  486. package/src/services/diagnostics.ts +603 -0
  487. package/src/services/dns-firewall.ts +823 -0
  488. package/src/services/dns.ts +8897 -0
  489. package/src/services/durable-objects.ts +148 -0
  490. package/src/services/email-routing.ts +1602 -0
  491. package/src/services/email-security.ts +4283 -0
  492. package/src/services/filters.ts +370 -0
  493. package/src/services/firewall.ts +3896 -0
  494. package/src/services/healthchecks.ts +1750 -0
  495. package/src/services/hostnames.ts +218 -0
  496. package/src/services/hyperdrive.ts +592 -0
  497. package/src/services/iam.ts +1668 -0
  498. package/src/services/images.ts +1086 -0
  499. package/src/services/intel.ts +2768 -0
  500. package/src/services/ips.ts +88 -0
  501. package/src/services/keyless-certificates.ts +462 -0
  502. package/src/services/kv.ts +1011 -0
  503. package/src/services/leaked-credential-checks.ts +325 -0
  504. package/src/services/load-balancers.ts +6438 -0
  505. package/src/services/logpush.ts +1667 -0
  506. package/src/services/logs.ts +375 -0
  507. package/src/services/magic-cloud-networking.ts +10020 -0
  508. package/src/services/magic-network-monitoring.ts +1156 -0
  509. package/src/services/magic-transit.ts +13050 -0
  510. package/src/services/managed-transforms.ts +237 -0
  511. package/src/services/memberships.ts +615 -0
  512. package/src/services/mtls-certificates.ts +374 -0
  513. package/src/services/network-interconnects.ts +1253 -0
  514. package/src/services/organizations.ts +674 -0
  515. package/src/services/origin-ca-certificates.ts +303 -0
  516. package/src/services/origin-post-quantum-encryption.ts +128 -0
  517. package/src/services/origin-tls-client-auth.ts +878 -0
  518. package/src/services/page-rules.ts +2612 -0
  519. package/src/services/page-shield.ts +1195 -0
  520. package/src/services/pages.ts +5709 -0
  521. package/src/services/pipelines.ts +6000 -0
  522. package/src/services/queues.ts +2629 -0
  523. package/src/services/r2-data-catalog.ts +1119 -0
  524. package/src/services/r2.ts +3348 -0
  525. package/src/services/radar.ts +42152 -0
  526. package/src/services/rate-limits.ts +1150 -0
  527. package/src/services/realtime-kit.ts +11079 -0
  528. package/src/services/registrar.ts +295 -0
  529. package/src/services/request-tracers.ts +158 -0
  530. package/src/services/resource-sharing.ts +1832 -0
  531. package/src/services/rules.ts +837 -0
  532. package/src/services/rulesets.ts +15144 -0
  533. package/src/services/rum.ts +901 -0
  534. package/src/services/schema-validation.ts +733 -0
  535. package/src/services/secrets-store.ts +860 -0
  536. package/src/services/security-center.ts +397 -0
  537. package/src/services/security-txt.ts +315 -0
  538. package/src/services/snippets.ts +420 -0
  539. package/src/services/spectrum.ts +1103 -0
  540. package/src/services/speed.ts +1056 -0
  541. package/src/services/ssl.ts +1587 -0
  542. package/src/services/stream.ts +2756 -0
  543. package/src/services/token-validation.ts +1585 -0
  544. package/src/services/turnstile.ts +643 -0
  545. package/src/services/url-normalization.ts +129 -0
  546. package/src/services/url-scanner.ts +1851 -0
  547. package/src/services/user.ts +1384 -0
  548. package/src/services/vectorize.ts +816 -0
  549. package/src/services/waiting-rooms.ts +3807 -0
  550. package/src/services/web3.ts +834 -0
  551. package/src/services/workers-for-platforms.ts +3859 -0
  552. package/src/services/workers.ts +11637 -0
  553. package/src/services/workflows.ts +1124 -0
  554. package/src/services/zaraz.ts +797 -0
  555. package/src/services/zero-trust.ts +58929 -0
  556. package/src/services/zones.ts +4875 -0
  557. package/src/traits.ts +47 -0
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,1384 @@
1
+ /**
2
+ * Cloudflare USER API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service user
6
+ */
7
+
8
+ import * as Schema from "effect/Schema";
9
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
10
+ import * as API from "../client/api.ts";
11
+ import * as T from "../traits";
12
+ import type { Credentials } from "../credentials";
13
+ import { type DefaultErrors } from "../errors";
14
+
15
+ // =============================================================================
16
+ // AuditLog
17
+ // =============================================================================
18
+
19
+ export interface ListAuditLogsRequest {}
20
+
21
+ export const ListAuditLogsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
22
+ {},
23
+ ).pipe(
24
+ T.Http({ method: "GET", path: "/user/audit_logs" }),
25
+ ) as unknown as Schema.Schema<ListAuditLogsRequest>;
26
+
27
+ export type ListAuditLogsResponse = unknown;
28
+
29
+ export const ListAuditLogsResponse =
30
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<ListAuditLogsResponse>;
31
+
32
+ export type ListAuditLogsError = DefaultErrors;
33
+
34
+ export const listAuditLogs: API.OperationMethod<
35
+ ListAuditLogsRequest,
36
+ ListAuditLogsResponse,
37
+ ListAuditLogsError,
38
+ Credentials | HttpClient.HttpClient
39
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
40
+ input: ListAuditLogsRequest,
41
+ output: ListAuditLogsResponse,
42
+ errors: [],
43
+ }));
44
+
45
+ // =============================================================================
46
+ // BillingHistory
47
+ // =============================================================================
48
+
49
+ export interface ListBillingHistoriesRequest {}
50
+
51
+ export const ListBillingHistoriesRequest =
52
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
53
+ T.Http({ method: "GET", path: "/user/billing/history" }),
54
+ ) as unknown as Schema.Schema<ListBillingHistoriesRequest>;
55
+
56
+ export type ListBillingHistoriesResponse = {
57
+ id: string;
58
+ action: string;
59
+ amount: number;
60
+ currency: string;
61
+ description: string;
62
+ occurredAt: string;
63
+ type: string;
64
+ zone: { name?: string | null };
65
+ }[];
66
+
67
+ export const ListBillingHistoriesResponse =
68
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
69
+ Schema.Struct({
70
+ id: Schema.String,
71
+ action: Schema.String,
72
+ amount: Schema.Number,
73
+ currency: Schema.String,
74
+ description: Schema.String,
75
+ occurredAt: Schema.String,
76
+ type: Schema.String,
77
+ zone: Schema.Struct({
78
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
79
+ }),
80
+ }).pipe(
81
+ Schema.encodeKeys({
82
+ id: "id",
83
+ action: "action",
84
+ amount: "amount",
85
+ currency: "currency",
86
+ description: "description",
87
+ occurredAt: "occurred_at",
88
+ type: "type",
89
+ zone: "zone",
90
+ }),
91
+ ),
92
+ ) as unknown as Schema.Schema<ListBillingHistoriesResponse>;
93
+
94
+ export type ListBillingHistoriesError = DefaultErrors;
95
+
96
+ export const listBillingHistories: API.OperationMethod<
97
+ ListBillingHistoriesRequest,
98
+ ListBillingHistoriesResponse,
99
+ ListBillingHistoriesError,
100
+ Credentials | HttpClient.HttpClient
101
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
102
+ input: ListBillingHistoriesRequest,
103
+ output: ListBillingHistoriesResponse,
104
+ errors: [],
105
+ }));
106
+
107
+ // =============================================================================
108
+ // BillingProfile
109
+ // =============================================================================
110
+
111
+ export interface GetBillingProfileRequest {}
112
+
113
+ export const GetBillingProfileRequest =
114
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
115
+ T.Http({ method: "GET", path: "/user/billing/profile" }),
116
+ ) as unknown as Schema.Schema<GetBillingProfileRequest>;
117
+
118
+ export interface GetBillingProfileResponse {
119
+ /** Billing item identifier tag. */
120
+ id?: string | null;
121
+ accountType?: string | null;
122
+ address?: string | null;
123
+ address2?: string | null;
124
+ balance?: string | null;
125
+ cardExpiryMonth?: number | null;
126
+ cardExpiryYear?: number | null;
127
+ cardNumber?: string | null;
128
+ city?: string | null;
129
+ company?: string | null;
130
+ country?: string | null;
131
+ createdOn?: string | null;
132
+ deviceData?: string | null;
133
+ editedOn?: string | null;
134
+ enterpriseBillingEmail?: string | null;
135
+ enterprisePrimaryEmail?: string | null;
136
+ firstName?: string | null;
137
+ isPartner?: boolean | null;
138
+ lastName?: string | null;
139
+ nextBillDate?: string | null;
140
+ paymentAddress?: string | null;
141
+ paymentAddress2?: string | null;
142
+ paymentCity?: string | null;
143
+ paymentCountry?: string | null;
144
+ paymentEmail?: string | null;
145
+ paymentFirstName?: string | null;
146
+ paymentGateway?: string | null;
147
+ paymentLastName?: string | null;
148
+ paymentNonce?: string | null;
149
+ paymentState?: string | null;
150
+ paymentZipcode?: string | null;
151
+ primaryEmail?: string | null;
152
+ state?: string | null;
153
+ taxIdType?: string | null;
154
+ telephone?: string | null;
155
+ useLegacy?: boolean | null;
156
+ validationCode?: string | null;
157
+ vat?: string | null;
158
+ zipcode?: string | null;
159
+ }
160
+
161
+ export const GetBillingProfileResponse =
162
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
163
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
164
+ accountType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
165
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
166
+ address2: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
167
+ balance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
168
+ cardExpiryMonth: Schema.optional(
169
+ Schema.Union([Schema.Number, Schema.Null]),
170
+ ),
171
+ cardExpiryYear: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
172
+ cardNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
173
+ city: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
174
+ company: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
175
+ country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
176
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
177
+ deviceData: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
178
+ editedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
179
+ enterpriseBillingEmail: Schema.optional(
180
+ Schema.Union([Schema.String, Schema.Null]),
181
+ ),
182
+ enterprisePrimaryEmail: Schema.optional(
183
+ Schema.Union([Schema.String, Schema.Null]),
184
+ ),
185
+ firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
186
+ isPartner: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
187
+ lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
188
+ nextBillDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
189
+ paymentAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
190
+ paymentAddress2: Schema.optional(
191
+ Schema.Union([Schema.String, Schema.Null]),
192
+ ),
193
+ paymentCity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
194
+ paymentCountry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
195
+ paymentEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
196
+ paymentFirstName: Schema.optional(
197
+ Schema.Union([Schema.String, Schema.Null]),
198
+ ),
199
+ paymentGateway: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
200
+ paymentLastName: Schema.optional(
201
+ Schema.Union([Schema.String, Schema.Null]),
202
+ ),
203
+ paymentNonce: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
204
+ paymentState: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
205
+ paymentZipcode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
206
+ primaryEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
207
+ state: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
208
+ taxIdType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
209
+ telephone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
210
+ useLegacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
211
+ validationCode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
212
+ vat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
213
+ zipcode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
214
+ }).pipe(
215
+ Schema.encodeKeys({
216
+ id: "id",
217
+ accountType: "account_type",
218
+ address: "address",
219
+ address2: "address2",
220
+ balance: "balance",
221
+ cardExpiryMonth: "card_expiry_month",
222
+ cardExpiryYear: "card_expiry_year",
223
+ cardNumber: "card_number",
224
+ city: "city",
225
+ company: "company",
226
+ country: "country",
227
+ createdOn: "created_on",
228
+ deviceData: "device_data",
229
+ editedOn: "edited_on",
230
+ enterpriseBillingEmail: "enterprise_billing_email",
231
+ enterprisePrimaryEmail: "enterprise_primary_email",
232
+ firstName: "first_name",
233
+ isPartner: "is_partner",
234
+ lastName: "last_name",
235
+ nextBillDate: "next_bill_date",
236
+ paymentAddress: "payment_address",
237
+ paymentAddress2: "payment_address2",
238
+ paymentCity: "payment_city",
239
+ paymentCountry: "payment_country",
240
+ paymentEmail: "payment_email",
241
+ paymentFirstName: "payment_first_name",
242
+ paymentGateway: "payment_gateway",
243
+ paymentLastName: "payment_last_name",
244
+ paymentNonce: "payment_nonce",
245
+ paymentState: "payment_state",
246
+ paymentZipcode: "payment_zipcode",
247
+ primaryEmail: "primary_email",
248
+ state: "state",
249
+ taxIdType: "tax_id_type",
250
+ telephone: "telephone",
251
+ useLegacy: "use_legacy",
252
+ validationCode: "validation_code",
253
+ vat: "vat",
254
+ zipcode: "zipcode",
255
+ }),
256
+ ) as unknown as Schema.Schema<GetBillingProfileResponse>;
257
+
258
+ export type GetBillingProfileError = DefaultErrors;
259
+
260
+ export const getBillingProfile: API.OperationMethod<
261
+ GetBillingProfileRequest,
262
+ GetBillingProfileResponse,
263
+ GetBillingProfileError,
264
+ Credentials | HttpClient.HttpClient
265
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
266
+ input: GetBillingProfileRequest,
267
+ output: GetBillingProfileResponse,
268
+ errors: [],
269
+ }));
270
+
271
+ // =============================================================================
272
+ // Invite
273
+ // =============================================================================
274
+
275
+ export interface GetInviteRequest {
276
+ inviteId: string;
277
+ }
278
+
279
+ export const GetInviteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
280
+ inviteId: Schema.String.pipe(T.HttpPath("inviteId")),
281
+ }).pipe(
282
+ T.Http({ method: "GET", path: "/user/invites/{inviteId}" }),
283
+ ) as unknown as Schema.Schema<GetInviteRequest>;
284
+
285
+ export interface GetInviteResponse {
286
+ /** ID of the user to add to the organization. */
287
+ invitedMemberId: string | null;
288
+ /** ID of the organization the user will be added to. */
289
+ organizationId: string;
290
+ /** Invite identifier tag. */
291
+ id?: string | null;
292
+ /** When the invite is no longer active. */
293
+ expiresOn?: string | null;
294
+ /** The email address of the user who created the invite. */
295
+ invitedBy?: string | null;
296
+ /** Email address of the user to add to the organization. */
297
+ invitedMemberEmail?: string | null;
298
+ /** When the invite was sent. */
299
+ invitedOn?: string | null;
300
+ organizationIsEnforcingTwofactor?: boolean | null;
301
+ /** Organization name. */
302
+ organizationName?: string | null;
303
+ /** List of role names the membership has for this account. */
304
+ roles?: string[] | null;
305
+ /** Current status of the invitation. */
306
+ status?: "pending" | "accepted" | "rejected" | "expired" | null;
307
+ }
308
+
309
+ export const GetInviteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
310
+ invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
311
+ organizationId: Schema.String,
312
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
313
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
314
+ invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
315
+ invitedMemberEmail: Schema.optional(
316
+ Schema.Union([Schema.String, Schema.Null]),
317
+ ),
318
+ invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
319
+ organizationIsEnforcingTwofactor: Schema.optional(
320
+ Schema.Union([Schema.Boolean, Schema.Null]),
321
+ ),
322
+ organizationName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
323
+ roles: Schema.optional(
324
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
325
+ ),
326
+ status: Schema.optional(
327
+ Schema.Union([
328
+ Schema.Literals(["pending", "accepted", "rejected", "expired"]),
329
+ Schema.Null,
330
+ ]),
331
+ ),
332
+ }).pipe(
333
+ Schema.encodeKeys({
334
+ invitedMemberId: "invited_member_id",
335
+ organizationId: "organization_id",
336
+ id: "id",
337
+ expiresOn: "expires_on",
338
+ invitedBy: "invited_by",
339
+ invitedMemberEmail: "invited_member_email",
340
+ invitedOn: "invited_on",
341
+ organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
342
+ organizationName: "organization_name",
343
+ roles: "roles",
344
+ status: "status",
345
+ }),
346
+ ) as unknown as Schema.Schema<GetInviteResponse>;
347
+
348
+ export type GetInviteError = DefaultErrors;
349
+
350
+ export const getInvite: API.OperationMethod<
351
+ GetInviteRequest,
352
+ GetInviteResponse,
353
+ GetInviteError,
354
+ Credentials | HttpClient.HttpClient
355
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
356
+ input: GetInviteRequest,
357
+ output: GetInviteResponse,
358
+ errors: [],
359
+ }));
360
+
361
+ export interface ListInvitesRequest {}
362
+
363
+ export const ListInvitesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
364
+ {},
365
+ ).pipe(
366
+ T.Http({ method: "GET", path: "/user/invites" }),
367
+ ) as unknown as Schema.Schema<ListInvitesRequest>;
368
+
369
+ export type ListInvitesResponse = {
370
+ invitedMemberId: string | null;
371
+ organizationId: string;
372
+ id?: string | null;
373
+ expiresOn?: string | null;
374
+ invitedBy?: string | null;
375
+ invitedMemberEmail?: string | null;
376
+ invitedOn?: string | null;
377
+ organizationIsEnforcingTwofactor?: boolean | null;
378
+ organizationName?: string | null;
379
+ roles?: string[] | null;
380
+ status?: "pending" | "accepted" | "rejected" | "expired" | null;
381
+ }[];
382
+
383
+ export const ListInvitesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
384
+ Schema.Struct({
385
+ invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
386
+ organizationId: Schema.String,
387
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
388
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
389
+ invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
390
+ invitedMemberEmail: Schema.optional(
391
+ Schema.Union([Schema.String, Schema.Null]),
392
+ ),
393
+ invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
394
+ organizationIsEnforcingTwofactor: Schema.optional(
395
+ Schema.Union([Schema.Boolean, Schema.Null]),
396
+ ),
397
+ organizationName: Schema.optional(
398
+ Schema.Union([Schema.String, Schema.Null]),
399
+ ),
400
+ roles: Schema.optional(
401
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
402
+ ),
403
+ status: Schema.optional(
404
+ Schema.Union([
405
+ Schema.Literals(["pending", "accepted", "rejected", "expired"]),
406
+ Schema.Null,
407
+ ]),
408
+ ),
409
+ }).pipe(
410
+ Schema.encodeKeys({
411
+ invitedMemberId: "invited_member_id",
412
+ organizationId: "organization_id",
413
+ id: "id",
414
+ expiresOn: "expires_on",
415
+ invitedBy: "invited_by",
416
+ invitedMemberEmail: "invited_member_email",
417
+ invitedOn: "invited_on",
418
+ organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
419
+ organizationName: "organization_name",
420
+ roles: "roles",
421
+ status: "status",
422
+ }),
423
+ ),
424
+ ) as unknown as Schema.Schema<ListInvitesResponse>;
425
+
426
+ export type ListInvitesError = DefaultErrors;
427
+
428
+ export const listInvites: API.OperationMethod<
429
+ ListInvitesRequest,
430
+ ListInvitesResponse,
431
+ ListInvitesError,
432
+ Credentials | HttpClient.HttpClient
433
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
434
+ input: ListInvitesRequest,
435
+ output: ListInvitesResponse,
436
+ errors: [],
437
+ }));
438
+
439
+ export interface PatchInviteRequest {
440
+ inviteId: string;
441
+ /** Status of your response to the invitation (rejected or accepted). */
442
+ status: "accepted" | "rejected";
443
+ }
444
+
445
+ export const PatchInviteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
446
+ inviteId: Schema.String.pipe(T.HttpPath("inviteId")),
447
+ status: Schema.Literals(["accepted", "rejected"]),
448
+ }).pipe(
449
+ T.Http({ method: "PATCH", path: "/user/invites/{inviteId}" }),
450
+ ) as unknown as Schema.Schema<PatchInviteRequest>;
451
+
452
+ export interface PatchInviteResponse {
453
+ /** ID of the user to add to the organization. */
454
+ invitedMemberId: string | null;
455
+ /** ID of the organization the user will be added to. */
456
+ organizationId: string;
457
+ /** Invite identifier tag. */
458
+ id?: string | null;
459
+ /** When the invite is no longer active. */
460
+ expiresOn?: string | null;
461
+ /** The email address of the user who created the invite. */
462
+ invitedBy?: string | null;
463
+ /** Email address of the user to add to the organization. */
464
+ invitedMemberEmail?: string | null;
465
+ /** When the invite was sent. */
466
+ invitedOn?: string | null;
467
+ organizationIsEnforcingTwofactor?: boolean | null;
468
+ /** Organization name. */
469
+ organizationName?: string | null;
470
+ /** List of role names the membership has for this account. */
471
+ roles?: string[] | null;
472
+ /** Current status of the invitation. */
473
+ status?: "pending" | "accepted" | "rejected" | "expired" | null;
474
+ }
475
+
476
+ export const PatchInviteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
477
+ invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
478
+ organizationId: Schema.String,
479
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
480
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
481
+ invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
482
+ invitedMemberEmail: Schema.optional(
483
+ Schema.Union([Schema.String, Schema.Null]),
484
+ ),
485
+ invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
486
+ organizationIsEnforcingTwofactor: Schema.optional(
487
+ Schema.Union([Schema.Boolean, Schema.Null]),
488
+ ),
489
+ organizationName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
490
+ roles: Schema.optional(
491
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
492
+ ),
493
+ status: Schema.optional(
494
+ Schema.Union([
495
+ Schema.Literals(["pending", "accepted", "rejected", "expired"]),
496
+ Schema.Null,
497
+ ]),
498
+ ),
499
+ }).pipe(
500
+ Schema.encodeKeys({
501
+ invitedMemberId: "invited_member_id",
502
+ organizationId: "organization_id",
503
+ id: "id",
504
+ expiresOn: "expires_on",
505
+ invitedBy: "invited_by",
506
+ invitedMemberEmail: "invited_member_email",
507
+ invitedOn: "invited_on",
508
+ organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
509
+ organizationName: "organization_name",
510
+ roles: "roles",
511
+ status: "status",
512
+ }),
513
+ ) as unknown as Schema.Schema<PatchInviteResponse>;
514
+
515
+ export type PatchInviteError = DefaultErrors;
516
+
517
+ export const patchInvite: API.OperationMethod<
518
+ PatchInviteRequest,
519
+ PatchInviteResponse,
520
+ PatchInviteError,
521
+ Credentials | HttpClient.HttpClient
522
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
523
+ input: PatchInviteRequest,
524
+ output: PatchInviteResponse,
525
+ errors: [],
526
+ }));
527
+
528
+ // =============================================================================
529
+ // Organization
530
+ // =============================================================================
531
+
532
+ export interface GetOrganizationRequest {
533
+ organizationId: string;
534
+ }
535
+
536
+ export const GetOrganizationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
537
+ {
538
+ organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
539
+ },
540
+ ).pipe(
541
+ T.Http({ method: "GET", path: "/user/organizations/{organizationId}" }),
542
+ ) as unknown as Schema.Schema<GetOrganizationRequest>;
543
+
544
+ export type GetOrganizationResponse = unknown;
545
+
546
+ export const GetOrganizationResponse =
547
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetOrganizationResponse>;
548
+
549
+ export type GetOrganizationError = DefaultErrors;
550
+
551
+ export const getOrganization: API.OperationMethod<
552
+ GetOrganizationRequest,
553
+ GetOrganizationResponse,
554
+ GetOrganizationError,
555
+ Credentials | HttpClient.HttpClient
556
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
557
+ input: GetOrganizationRequest,
558
+ output: GetOrganizationResponse,
559
+ errors: [],
560
+ }));
561
+
562
+ export interface ListOrganizationsRequest {}
563
+
564
+ export const ListOrganizationsRequest =
565
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
566
+ T.Http({ method: "GET", path: "/user/organizations" }),
567
+ ) as unknown as Schema.Schema<ListOrganizationsRequest>;
568
+
569
+ export type ListOrganizationsResponse = {
570
+ id?: string | null;
571
+ name?: string | null;
572
+ permissions?: string[] | null;
573
+ roles?: string[] | null;
574
+ status?: "member" | "invited" | null;
575
+ }[];
576
+
577
+ export const ListOrganizationsResponse =
578
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
579
+ Schema.Struct({
580
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
581
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
582
+ permissions: Schema.optional(
583
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
584
+ ),
585
+ roles: Schema.optional(
586
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
587
+ ),
588
+ status: Schema.optional(
589
+ Schema.Union([Schema.Literals(["member", "invited"]), Schema.Null]),
590
+ ),
591
+ }),
592
+ ) as unknown as Schema.Schema<ListOrganizationsResponse>;
593
+
594
+ export type ListOrganizationsError = DefaultErrors;
595
+
596
+ export const listOrganizations: API.OperationMethod<
597
+ ListOrganizationsRequest,
598
+ ListOrganizationsResponse,
599
+ ListOrganizationsError,
600
+ Credentials | HttpClient.HttpClient
601
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
602
+ input: ListOrganizationsRequest,
603
+ output: ListOrganizationsResponse,
604
+ errors: [],
605
+ }));
606
+
607
+ export interface DeleteOrganizationRequest {
608
+ organizationId: string;
609
+ }
610
+
611
+ export const DeleteOrganizationRequest =
612
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
613
+ organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
614
+ }).pipe(
615
+ T.Http({ method: "DELETE", path: "/user/organizations/{organizationId}" }),
616
+ ) as unknown as Schema.Schema<DeleteOrganizationRequest>;
617
+
618
+ export interface DeleteOrganizationResponse {
619
+ /** Identifier */
620
+ id?: string | null;
621
+ }
622
+
623
+ export const DeleteOrganizationResponse =
624
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
625
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
626
+ }) as unknown as Schema.Schema<DeleteOrganizationResponse>;
627
+
628
+ export type DeleteOrganizationError = DefaultErrors;
629
+
630
+ export const deleteOrganization: API.OperationMethod<
631
+ DeleteOrganizationRequest,
632
+ DeleteOrganizationResponse,
633
+ DeleteOrganizationError,
634
+ Credentials | HttpClient.HttpClient
635
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
636
+ input: DeleteOrganizationRequest,
637
+ output: DeleteOrganizationResponse,
638
+ errors: [],
639
+ }));
640
+
641
+ // =============================================================================
642
+ // Subscription
643
+ // =============================================================================
644
+
645
+ export interface GetSubscriptionRequest {}
646
+
647
+ export const GetSubscriptionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
648
+ {},
649
+ ).pipe(
650
+ T.Http({ method: "GET", path: "/user/subscriptions" }),
651
+ ) as unknown as Schema.Schema<GetSubscriptionRequest>;
652
+
653
+ export type GetSubscriptionResponse = unknown;
654
+
655
+ export const GetSubscriptionResponse =
656
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetSubscriptionResponse>;
657
+
658
+ export type GetSubscriptionError = DefaultErrors;
659
+
660
+ export const getSubscription: API.OperationMethod<
661
+ GetSubscriptionRequest,
662
+ GetSubscriptionResponse,
663
+ GetSubscriptionError,
664
+ Credentials | HttpClient.HttpClient
665
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
666
+ input: GetSubscriptionRequest,
667
+ output: GetSubscriptionResponse,
668
+ errors: [],
669
+ }));
670
+
671
+ export interface PutSubscriptionRequest {
672
+ identifier: string;
673
+ /** How often the subscription is renewed automatically. */
674
+ frequency?: "weekly" | "monthly" | "quarterly" | "yearly";
675
+ /** The rate plan applied to the subscription. */
676
+ ratePlan?: unknown;
677
+ }
678
+
679
+ export const PutSubscriptionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
680
+ {
681
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
682
+ frequency: Schema.optional(
683
+ Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
684
+ ),
685
+ ratePlan: Schema.optional(Schema.Unknown),
686
+ },
687
+ ).pipe(
688
+ Schema.encodeKeys({ frequency: "frequency", ratePlan: "rate_plan" }),
689
+ T.Http({ method: "PUT", path: "/user/subscriptions/{identifier}" }),
690
+ ) as unknown as Schema.Schema<PutSubscriptionRequest>;
691
+
692
+ export type PutSubscriptionResponse = string | null;
693
+
694
+ export const PutSubscriptionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union(
695
+ [Schema.String, Schema.Null],
696
+ ) as unknown as Schema.Schema<PutSubscriptionResponse>;
697
+
698
+ export type PutSubscriptionError = DefaultErrors;
699
+
700
+ export const putSubscription: API.OperationMethod<
701
+ PutSubscriptionRequest,
702
+ PutSubscriptionResponse,
703
+ PutSubscriptionError,
704
+ Credentials | HttpClient.HttpClient
705
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
706
+ input: PutSubscriptionRequest,
707
+ output: PutSubscriptionResponse,
708
+ errors: [],
709
+ }));
710
+
711
+ export interface DeleteSubscriptionRequest {
712
+ identifier: string;
713
+ }
714
+
715
+ export const DeleteSubscriptionRequest =
716
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
717
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
718
+ }).pipe(
719
+ T.Http({ method: "DELETE", path: "/user/subscriptions/{identifier}" }),
720
+ ) as unknown as Schema.Schema<DeleteSubscriptionRequest>;
721
+
722
+ export interface DeleteSubscriptionResponse {
723
+ /** Subscription identifier tag. */
724
+ subscriptionId?: string | null;
725
+ }
726
+
727
+ export const DeleteSubscriptionResponse =
728
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
729
+ subscriptionId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
730
+ }).pipe(
731
+ Schema.encodeKeys({ subscriptionId: "subscription_id" }),
732
+ ) as unknown as Schema.Schema<DeleteSubscriptionResponse>;
733
+
734
+ export type DeleteSubscriptionError = DefaultErrors;
735
+
736
+ export const deleteSubscription: API.OperationMethod<
737
+ DeleteSubscriptionRequest,
738
+ DeleteSubscriptionResponse,
739
+ DeleteSubscriptionError,
740
+ Credentials | HttpClient.HttpClient
741
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
742
+ input: DeleteSubscriptionRequest,
743
+ output: DeleteSubscriptionResponse,
744
+ errors: [],
745
+ }));
746
+
747
+ // =============================================================================
748
+ // Token
749
+ // =============================================================================
750
+
751
+ export interface GetTokenRequest {
752
+ tokenId: string;
753
+ }
754
+
755
+ export const GetTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
756
+ tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
757
+ }).pipe(
758
+ T.Http({ method: "GET", path: "/user/tokens/{tokenId}" }),
759
+ ) as unknown as Schema.Schema<GetTokenRequest>;
760
+
761
+ export type GetTokenResponse = unknown;
762
+
763
+ export const GetTokenResponse =
764
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetTokenResponse>;
765
+
766
+ export type GetTokenError = DefaultErrors;
767
+
768
+ export const getToken: API.OperationMethod<
769
+ GetTokenRequest,
770
+ GetTokenResponse,
771
+ GetTokenError,
772
+ Credentials | HttpClient.HttpClient
773
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
774
+ input: GetTokenRequest,
775
+ output: GetTokenResponse,
776
+ errors: [],
777
+ }));
778
+
779
+ export interface ListTokensRequest {}
780
+
781
+ export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
782
+ {},
783
+ ).pipe(
784
+ T.Http({ method: "GET", path: "/user/tokens" }),
785
+ ) as unknown as Schema.Schema<ListTokensRequest>;
786
+
787
+ export type ListTokensResponse = unknown;
788
+
789
+ export const ListTokensResponse =
790
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<ListTokensResponse>;
791
+
792
+ export type ListTokensError = DefaultErrors;
793
+
794
+ export const listTokens: API.OperationMethod<
795
+ ListTokensRequest,
796
+ ListTokensResponse,
797
+ ListTokensError,
798
+ Credentials | HttpClient.HttpClient
799
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
800
+ input: ListTokensRequest,
801
+ output: ListTokensResponse,
802
+ errors: [],
803
+ }));
804
+
805
+ export interface CreateTokenRequest {
806
+ /** Token name. */
807
+ name: string;
808
+ /** List of access policies assigned to the token. */
809
+ policies: unknown[];
810
+ condition?: { requestIp?: { in?: string[]; notIn?: string[] } };
811
+ /** The expiration time on or after which the JWT MUST NOT be accepted for processing. */
812
+ expiresOn?: string;
813
+ /** The time before which the token MUST NOT be accepted for processing. */
814
+ notBefore?: string;
815
+ }
816
+
817
+ export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
818
+ name: Schema.String,
819
+ policies: Schema.Array(Schema.Unknown),
820
+ condition: Schema.optional(
821
+ Schema.Struct({
822
+ requestIp: Schema.optional(
823
+ Schema.Struct({
824
+ in: Schema.optional(Schema.Array(Schema.String)),
825
+ notIn: Schema.optional(Schema.Array(Schema.String)),
826
+ }).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
827
+ ),
828
+ }).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
829
+ ),
830
+ expiresOn: Schema.optional(Schema.String),
831
+ notBefore: Schema.optional(Schema.String),
832
+ }).pipe(
833
+ Schema.encodeKeys({
834
+ name: "name",
835
+ policies: "policies",
836
+ condition: "condition",
837
+ expiresOn: "expires_on",
838
+ notBefore: "not_before",
839
+ }),
840
+ T.Http({ method: "POST", path: "/user/tokens" }),
841
+ ) as unknown as Schema.Schema<CreateTokenRequest>;
842
+
843
+ export interface CreateTokenResponse {
844
+ /** Token identifier tag. */
845
+ id?: string | null;
846
+ condition?: {
847
+ requestIp?: { in?: string[] | null; notIn?: string[] | null } | null;
848
+ } | null;
849
+ /** The expiration time on or after which the JWT MUST NOT be accepted for processing. */
850
+ expiresOn?: string | null;
851
+ /** The time on which the token was created. */
852
+ issuedOn?: string | null;
853
+ /** Last time the token was used. */
854
+ lastUsedOn?: string | null;
855
+ /** Last time the token was modified. */
856
+ modifiedOn?: string | null;
857
+ /** Token name. */
858
+ name?: string | null;
859
+ /** The time before which the token MUST NOT be accepted for processing. */
860
+ notBefore?: string | null;
861
+ /** List of access policies assigned to the token. */
862
+ policies?: unknown[] | null;
863
+ /** Status of the token. */
864
+ status?: "active" | "disabled" | "expired" | null;
865
+ /** The token value. */
866
+ value?: string | null;
867
+ }
868
+
869
+ export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
870
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
871
+ condition: Schema.optional(
872
+ Schema.Union([
873
+ Schema.Struct({
874
+ requestIp: Schema.optional(
875
+ Schema.Union([
876
+ Schema.Struct({
877
+ in: Schema.optional(
878
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
879
+ ),
880
+ notIn: Schema.optional(
881
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
882
+ ),
883
+ }).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
884
+ Schema.Null,
885
+ ]),
886
+ ),
887
+ }).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
888
+ Schema.Null,
889
+ ]),
890
+ ),
891
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
892
+ issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
893
+ lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
894
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
895
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
896
+ notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
897
+ policies: Schema.optional(
898
+ Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
899
+ ),
900
+ status: Schema.optional(
901
+ Schema.Union([
902
+ Schema.Literals(["active", "disabled", "expired"]),
903
+ Schema.Null,
904
+ ]),
905
+ ),
906
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
907
+ }).pipe(
908
+ Schema.encodeKeys({
909
+ id: "id",
910
+ condition: "condition",
911
+ expiresOn: "expires_on",
912
+ issuedOn: "issued_on",
913
+ lastUsedOn: "last_used_on",
914
+ modifiedOn: "modified_on",
915
+ name: "name",
916
+ notBefore: "not_before",
917
+ policies: "policies",
918
+ status: "status",
919
+ value: "value",
920
+ }),
921
+ ) as unknown as Schema.Schema<CreateTokenResponse>;
922
+
923
+ export type CreateTokenError = DefaultErrors;
924
+
925
+ export const createToken: API.OperationMethod<
926
+ CreateTokenRequest,
927
+ CreateTokenResponse,
928
+ CreateTokenError,
929
+ Credentials | HttpClient.HttpClient
930
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
931
+ input: CreateTokenRequest,
932
+ output: CreateTokenResponse,
933
+ errors: [],
934
+ }));
935
+
936
+ export interface UpdateTokenRequest {
937
+ tokenId: string;
938
+ /** Token name. */
939
+ name: string;
940
+ /** List of access policies assigned to the token. */
941
+ policies: unknown[];
942
+ condition?: { requestIp?: { in?: string[]; notIn?: string[] } };
943
+ /** The expiration time on or after which the JWT MUST NOT be accepted for processing. */
944
+ expiresOn?: string;
945
+ /** The time before which the token MUST NOT be accepted for processing. */
946
+ notBefore?: string;
947
+ /** Status of the token. */
948
+ status?: "active" | "disabled" | "expired";
949
+ }
950
+
951
+ export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
952
+ tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
953
+ name: Schema.String,
954
+ policies: Schema.Array(Schema.Unknown),
955
+ condition: Schema.optional(
956
+ Schema.Struct({
957
+ requestIp: Schema.optional(
958
+ Schema.Struct({
959
+ in: Schema.optional(Schema.Array(Schema.String)),
960
+ notIn: Schema.optional(Schema.Array(Schema.String)),
961
+ }).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
962
+ ),
963
+ }).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
964
+ ),
965
+ expiresOn: Schema.optional(Schema.String),
966
+ notBefore: Schema.optional(Schema.String),
967
+ status: Schema.optional(Schema.Literals(["active", "disabled", "expired"])),
968
+ }).pipe(
969
+ Schema.encodeKeys({
970
+ name: "name",
971
+ policies: "policies",
972
+ condition: "condition",
973
+ expiresOn: "expires_on",
974
+ notBefore: "not_before",
975
+ status: "status",
976
+ }),
977
+ T.Http({ method: "PUT", path: "/user/tokens/{tokenId}" }),
978
+ ) as unknown as Schema.Schema<UpdateTokenRequest>;
979
+
980
+ export type UpdateTokenResponse = unknown;
981
+
982
+ export const UpdateTokenResponse =
983
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<UpdateTokenResponse>;
984
+
985
+ export type UpdateTokenError = DefaultErrors;
986
+
987
+ export const updateToken: API.OperationMethod<
988
+ UpdateTokenRequest,
989
+ UpdateTokenResponse,
990
+ UpdateTokenError,
991
+ Credentials | HttpClient.HttpClient
992
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
993
+ input: UpdateTokenRequest,
994
+ output: UpdateTokenResponse,
995
+ errors: [],
996
+ }));
997
+
998
+ export interface DeleteTokenRequest {
999
+ tokenId: string;
1000
+ }
1001
+
1002
+ export const DeleteTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1003
+ tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
1004
+ }).pipe(
1005
+ T.Http({ method: "DELETE", path: "/user/tokens/{tokenId}" }),
1006
+ ) as unknown as Schema.Schema<DeleteTokenRequest>;
1007
+
1008
+ export interface DeleteTokenResponse {
1009
+ /** Identifier */
1010
+ id: string;
1011
+ }
1012
+
1013
+ export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1014
+ id: Schema.String,
1015
+ }) as unknown as Schema.Schema<DeleteTokenResponse>;
1016
+
1017
+ export type DeleteTokenError = DefaultErrors;
1018
+
1019
+ export const deleteToken: API.OperationMethod<
1020
+ DeleteTokenRequest,
1021
+ DeleteTokenResponse,
1022
+ DeleteTokenError,
1023
+ Credentials | HttpClient.HttpClient
1024
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1025
+ input: DeleteTokenRequest,
1026
+ output: DeleteTokenResponse,
1027
+ errors: [],
1028
+ }));
1029
+
1030
+ export interface VerifyTokenRequest {}
1031
+
1032
+ export const VerifyTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1033
+ {},
1034
+ ).pipe(
1035
+ T.Http({ method: "GET", path: "/user/tokens/verify" }),
1036
+ ) as unknown as Schema.Schema<VerifyTokenRequest>;
1037
+
1038
+ export interface VerifyTokenResponse {
1039
+ /** Token identifier tag. */
1040
+ id: string;
1041
+ /** Status of the token. */
1042
+ status: "active" | "disabled" | "expired";
1043
+ /** The expiration time on or after which the JWT MUST NOT be accepted for processing. */
1044
+ expiresOn?: string | null;
1045
+ /** The time before which the token MUST NOT be accepted for processing. */
1046
+ notBefore?: string | null;
1047
+ }
1048
+
1049
+ export const VerifyTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1050
+ id: Schema.String,
1051
+ status: Schema.Literals(["active", "disabled", "expired"]),
1052
+ expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1053
+ notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1054
+ }).pipe(
1055
+ Schema.encodeKeys({
1056
+ id: "id",
1057
+ status: "status",
1058
+ expiresOn: "expires_on",
1059
+ notBefore: "not_before",
1060
+ }),
1061
+ ) as unknown as Schema.Schema<VerifyTokenResponse>;
1062
+
1063
+ export type VerifyTokenError = DefaultErrors;
1064
+
1065
+ export const verifyToken: API.OperationMethod<
1066
+ VerifyTokenRequest,
1067
+ VerifyTokenResponse,
1068
+ VerifyTokenError,
1069
+ Credentials | HttpClient.HttpClient
1070
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1071
+ input: VerifyTokenRequest,
1072
+ output: VerifyTokenResponse,
1073
+ errors: [],
1074
+ }));
1075
+
1076
+ // =============================================================================
1077
+ // TokenPermissionGroup
1078
+ // =============================================================================
1079
+
1080
+ export interface ListTokenPermissionGroupsRequest {}
1081
+
1082
+ export const ListTokenPermissionGroupsRequest =
1083
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
1084
+ T.Http({ method: "GET", path: "/user/tokens/permission_groups" }),
1085
+ ) as unknown as Schema.Schema<ListTokenPermissionGroupsRequest>;
1086
+
1087
+ export type ListTokenPermissionGroupsResponse = {
1088
+ id?: string | null;
1089
+ name?: string | null;
1090
+ scopes?:
1091
+ | (
1092
+ | "com.cloudflare.api.account"
1093
+ | "com.cloudflare.api.account.zone"
1094
+ | "com.cloudflare.api.user"
1095
+ | "com.cloudflare.edge.r2.bucket"
1096
+ )[]
1097
+ | null;
1098
+ }[];
1099
+
1100
+ export const ListTokenPermissionGroupsResponse =
1101
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1102
+ Schema.Struct({
1103
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1104
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1105
+ scopes: Schema.optional(
1106
+ Schema.Union([
1107
+ Schema.Array(
1108
+ Schema.Literals([
1109
+ "com.cloudflare.api.account",
1110
+ "com.cloudflare.api.account.zone",
1111
+ "com.cloudflare.api.user",
1112
+ "com.cloudflare.edge.r2.bucket",
1113
+ ]),
1114
+ ),
1115
+ Schema.Null,
1116
+ ]),
1117
+ ),
1118
+ }),
1119
+ ) as unknown as Schema.Schema<ListTokenPermissionGroupsResponse>;
1120
+
1121
+ export type ListTokenPermissionGroupsError = DefaultErrors;
1122
+
1123
+ export const listTokenPermissionGroups: API.OperationMethod<
1124
+ ListTokenPermissionGroupsRequest,
1125
+ ListTokenPermissionGroupsResponse,
1126
+ ListTokenPermissionGroupsError,
1127
+ Credentials | HttpClient.HttpClient
1128
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1129
+ input: ListTokenPermissionGroupsRequest,
1130
+ output: ListTokenPermissionGroupsResponse,
1131
+ errors: [],
1132
+ }));
1133
+
1134
+ // =============================================================================
1135
+ // TokenValue
1136
+ // =============================================================================
1137
+
1138
+ export interface PutTokenValueRequest {
1139
+ tokenId: string;
1140
+ }
1141
+
1142
+ export const PutTokenValueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1143
+ tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
1144
+ }).pipe(
1145
+ T.Http({ method: "PUT", path: "/user/tokens/{tokenId}/value" }),
1146
+ ) as unknown as Schema.Schema<PutTokenValueRequest>;
1147
+
1148
+ export type PutTokenValueResponse = unknown;
1149
+
1150
+ export const PutTokenValueResponse =
1151
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<PutTokenValueResponse>;
1152
+
1153
+ export type PutTokenValueError = DefaultErrors;
1154
+
1155
+ export const putTokenValue: API.OperationMethod<
1156
+ PutTokenValueRequest,
1157
+ PutTokenValueResponse,
1158
+ PutTokenValueError,
1159
+ Credentials | HttpClient.HttpClient
1160
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1161
+ input: PutTokenValueRequest,
1162
+ output: PutTokenValueResponse,
1163
+ errors: [],
1164
+ }));
1165
+
1166
+ // =============================================================================
1167
+ // User
1168
+ // =============================================================================
1169
+
1170
+ export interface GetUserRequest {}
1171
+
1172
+ export const GetUserRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1173
+ {},
1174
+ ).pipe(
1175
+ T.Http({ method: "GET", path: "/user" }),
1176
+ ) as unknown as Schema.Schema<GetUserRequest>;
1177
+
1178
+ export interface GetUserResponse {
1179
+ /** Identifier of the user. */
1180
+ id?: string | null;
1181
+ /** Lists the betas that the user is participating in. */
1182
+ betas?: string[] | null;
1183
+ /** The country in which the user lives. */
1184
+ country?: string | null;
1185
+ /** User's first name */
1186
+ firstName?: string | null;
1187
+ /** Indicates whether user has any business zones */
1188
+ hasBusinessZones?: boolean | null;
1189
+ /** Indicates whether user has any enterprise zones */
1190
+ hasEnterpriseZones?: boolean | null;
1191
+ /** Indicates whether user has any pro zones */
1192
+ hasProZones?: boolean | null;
1193
+ /** User's last name */
1194
+ lastName?: string | null;
1195
+ organizations?: unknown[] | null;
1196
+ /** Indicates whether user has been suspended */
1197
+ suspended?: boolean | null;
1198
+ /** User's telephone number */
1199
+ telephone?: string | null;
1200
+ /** Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication. */
1201
+ twoFactorAuthenticationEnabled?: boolean | null;
1202
+ /** Indicates whether two-factor authentication is required by one of the accounts that the user is a member of. */
1203
+ twoFactorAuthenticationLocked?: boolean | null;
1204
+ /** The zipcode or postal code where the user lives. */
1205
+ zipcode?: string | null;
1206
+ }
1207
+
1208
+ export const GetUserResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1209
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1210
+ betas: Schema.optional(
1211
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1212
+ ),
1213
+ country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1214
+ firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1215
+ hasBusinessZones: Schema.optional(
1216
+ Schema.Union([Schema.Boolean, Schema.Null]),
1217
+ ),
1218
+ hasEnterpriseZones: Schema.optional(
1219
+ Schema.Union([Schema.Boolean, Schema.Null]),
1220
+ ),
1221
+ hasProZones: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1222
+ lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1223
+ organizations: Schema.optional(
1224
+ Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
1225
+ ),
1226
+ suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1227
+ telephone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1228
+ twoFactorAuthenticationEnabled: Schema.optional(
1229
+ Schema.Union([Schema.Boolean, Schema.Null]),
1230
+ ),
1231
+ twoFactorAuthenticationLocked: Schema.optional(
1232
+ Schema.Union([Schema.Boolean, Schema.Null]),
1233
+ ),
1234
+ zipcode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1235
+ }).pipe(
1236
+ Schema.encodeKeys({
1237
+ id: "id",
1238
+ betas: "betas",
1239
+ country: "country",
1240
+ firstName: "first_name",
1241
+ hasBusinessZones: "has_business_zones",
1242
+ hasEnterpriseZones: "has_enterprise_zones",
1243
+ hasProZones: "has_pro_zones",
1244
+ lastName: "last_name",
1245
+ organizations: "organizations",
1246
+ suspended: "suspended",
1247
+ telephone: "telephone",
1248
+ twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
1249
+ twoFactorAuthenticationLocked: "two_factor_authentication_locked",
1250
+ zipcode: "zipcode",
1251
+ }),
1252
+ ) as unknown as Schema.Schema<GetUserResponse>;
1253
+
1254
+ export type GetUserError = DefaultErrors;
1255
+
1256
+ export const getUser: API.OperationMethod<
1257
+ GetUserRequest,
1258
+ GetUserResponse,
1259
+ GetUserError,
1260
+ Credentials | HttpClient.HttpClient
1261
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1262
+ input: GetUserRequest,
1263
+ output: GetUserResponse,
1264
+ errors: [],
1265
+ }));
1266
+
1267
+ export interface PatchUserRequest {
1268
+ /** The country in which the user lives. */
1269
+ country?: string | null;
1270
+ /** User's first name */
1271
+ firstName?: string | null;
1272
+ /** User's last name */
1273
+ lastName?: string | null;
1274
+ /** User's telephone number */
1275
+ telephone?: string | null;
1276
+ /** The zipcode or postal code where the user lives. */
1277
+ zipcode?: string | null;
1278
+ }
1279
+
1280
+ export const PatchUserRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1281
+ country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1282
+ firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1283
+ lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1284
+ telephone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1285
+ zipcode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1286
+ }).pipe(
1287
+ Schema.encodeKeys({
1288
+ country: "country",
1289
+ firstName: "first_name",
1290
+ lastName: "last_name",
1291
+ telephone: "telephone",
1292
+ zipcode: "zipcode",
1293
+ }),
1294
+ T.Http({ method: "PATCH", path: "/user" }),
1295
+ ) as unknown as Schema.Schema<PatchUserRequest>;
1296
+
1297
+ export interface PatchUserResponse {
1298
+ /** Identifier of the user. */
1299
+ id?: string | null;
1300
+ /** Lists the betas that the user is participating in. */
1301
+ betas?: string[] | null;
1302
+ /** The country in which the user lives. */
1303
+ country?: string | null;
1304
+ /** User's first name */
1305
+ firstName?: string | null;
1306
+ /** Indicates whether user has any business zones */
1307
+ hasBusinessZones?: boolean | null;
1308
+ /** Indicates whether user has any enterprise zones */
1309
+ hasEnterpriseZones?: boolean | null;
1310
+ /** Indicates whether user has any pro zones */
1311
+ hasProZones?: boolean | null;
1312
+ /** User's last name */
1313
+ lastName?: string | null;
1314
+ organizations?: unknown[] | null;
1315
+ /** Indicates whether user has been suspended */
1316
+ suspended?: boolean | null;
1317
+ /** User's telephone number */
1318
+ telephone?: string | null;
1319
+ /** Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication. */
1320
+ twoFactorAuthenticationEnabled?: boolean | null;
1321
+ /** Indicates whether two-factor authentication is required by one of the accounts that the user is a member of. */
1322
+ twoFactorAuthenticationLocked?: boolean | null;
1323
+ /** The zipcode or postal code where the user lives. */
1324
+ zipcode?: string | null;
1325
+ }
1326
+
1327
+ export const PatchUserResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1328
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1329
+ betas: Schema.optional(
1330
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1331
+ ),
1332
+ country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1333
+ firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1334
+ hasBusinessZones: Schema.optional(
1335
+ Schema.Union([Schema.Boolean, Schema.Null]),
1336
+ ),
1337
+ hasEnterpriseZones: Schema.optional(
1338
+ Schema.Union([Schema.Boolean, Schema.Null]),
1339
+ ),
1340
+ hasProZones: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1341
+ lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1342
+ organizations: Schema.optional(
1343
+ Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
1344
+ ),
1345
+ suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1346
+ telephone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1347
+ twoFactorAuthenticationEnabled: Schema.optional(
1348
+ Schema.Union([Schema.Boolean, Schema.Null]),
1349
+ ),
1350
+ twoFactorAuthenticationLocked: Schema.optional(
1351
+ Schema.Union([Schema.Boolean, Schema.Null]),
1352
+ ),
1353
+ zipcode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1354
+ }).pipe(
1355
+ Schema.encodeKeys({
1356
+ id: "id",
1357
+ betas: "betas",
1358
+ country: "country",
1359
+ firstName: "first_name",
1360
+ hasBusinessZones: "has_business_zones",
1361
+ hasEnterpriseZones: "has_enterprise_zones",
1362
+ hasProZones: "has_pro_zones",
1363
+ lastName: "last_name",
1364
+ organizations: "organizations",
1365
+ suspended: "suspended",
1366
+ telephone: "telephone",
1367
+ twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
1368
+ twoFactorAuthenticationLocked: "two_factor_authentication_locked",
1369
+ zipcode: "zipcode",
1370
+ }),
1371
+ ) as unknown as Schema.Schema<PatchUserResponse>;
1372
+
1373
+ export type PatchUserError = DefaultErrors;
1374
+
1375
+ export const patchUser: API.OperationMethod<
1376
+ PatchUserRequest,
1377
+ PatchUserResponse,
1378
+ PatchUserError,
1379
+ Credentials | HttpClient.HttpClient
1380
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1381
+ input: PatchUserRequest,
1382
+ output: PatchUserResponse,
1383
+ errors: [],
1384
+ }));