@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/lib/auth.d.ts +13 -0
  2. package/lib/auth.d.ts.map +1 -0
  3. package/lib/auth.js +12 -0
  4. package/lib/auth.js.map +1 -0
  5. package/lib/category.d.ts +2 -0
  6. package/lib/category.d.ts.map +1 -0
  7. package/lib/category.js +2 -0
  8. package/lib/category.js.map +1 -0
  9. package/lib/client/api.d.ts +14 -0
  10. package/lib/client/api.d.ts.map +1 -0
  11. package/lib/client/api.js +197 -0
  12. package/lib/client/api.js.map +1 -0
  13. package/lib/client/index.d.ts +8 -0
  14. package/lib/client/index.d.ts.map +1 -0
  15. package/lib/client/index.js +8 -0
  16. package/lib/client/index.js.map +1 -0
  17. package/lib/credentials.d.ts +14 -0
  18. package/lib/credentials.d.ts.map +1 -0
  19. package/lib/credentials.js +17 -0
  20. package/lib/credentials.js.map +1 -0
  21. package/lib/errors.d.ts +48 -0
  22. package/lib/errors.d.ts.map +1 -0
  23. package/lib/errors.js +38 -0
  24. package/lib/errors.js.map +1 -0
  25. package/lib/index.d.ts +10 -0
  26. package/lib/index.d.ts.map +1 -0
  27. package/lib/index.js +10 -0
  28. package/lib/index.js.map +1 -0
  29. package/lib/retry.d.ts +14 -0
  30. package/lib/retry.d.ts.map +1 -0
  31. package/lib/retry.js +14 -0
  32. package/lib/retry.js.map +1 -0
  33. package/lib/schemas.d.ts +29 -0
  34. package/lib/schemas.d.ts.map +1 -0
  35. package/lib/schemas.js +34 -0
  36. package/lib/schemas.js.map +1 -0
  37. package/lib/services/abuse-reports.d.ts +224 -0
  38. package/lib/services/abuse-reports.d.ts.map +1 -0
  39. package/lib/services/abuse-reports.js +353 -0
  40. package/lib/services/abuse-reports.js.map +1 -0
  41. package/lib/services/accounts.d.ts +682 -0
  42. package/lib/services/accounts.d.ts.map +1 -0
  43. package/lib/services/accounts.js +805 -0
  44. package/lib/services/accounts.js.map +1 -0
  45. package/lib/services/acm.d.ts +73 -0
  46. package/lib/services/acm.d.ts.map +1 -0
  47. package/lib/services/acm.js +76 -0
  48. package/lib/services/acm.js.map +1 -0
  49. package/lib/services/addressing.d.ts +1208 -0
  50. package/lib/services/addressing.d.ts.map +1 -0
  51. package/lib/services/addressing.js +1776 -0
  52. package/lib/services/addressing.js.map +1 -0
  53. package/lib/services/ai-gateway.d.ts +956 -0
  54. package/lib/services/ai-gateway.d.ts.map +1 -0
  55. package/lib/services/ai-gateway.js +1706 -0
  56. package/lib/services/ai-gateway.js.map +1 -0
  57. package/lib/services/ai.d.ts +243 -0
  58. package/lib/services/ai.d.ts.map +1 -0
  59. package/lib/services/ai.js +299 -0
  60. package/lib/services/ai.js.map +1 -0
  61. package/lib/services/aisearch.d.ts +915 -0
  62. package/lib/services/aisearch.d.ts.map +1 -0
  63. package/lib/services/aisearch.js +2425 -0
  64. package/lib/services/aisearch.js.map +1 -0
  65. package/lib/services/alerting.d.ts +718 -0
  66. package/lib/services/alerting.d.ts.map +1 -0
  67. package/lib/services/alerting.js +1388 -0
  68. package/lib/services/alerting.js.map +1 -0
  69. package/lib/services/api-gateway.d.ts +830 -0
  70. package/lib/services/api-gateway.d.ts.map +1 -0
  71. package/lib/services/api-gateway.js +1548 -0
  72. package/lib/services/api-gateway.js.map +1 -0
  73. package/lib/services/argo.d.ts +101 -0
  74. package/lib/services/argo.d.ts.map +1 -0
  75. package/lib/services/argo.js +105 -0
  76. package/lib/services/argo.js.map +1 -0
  77. package/lib/services/audit-logs.d.ts +46 -0
  78. package/lib/services/audit-logs.d.ts.map +1 -0
  79. package/lib/services/audit-logs.js +37 -0
  80. package/lib/services/audit-logs.js.map +1 -0
  81. package/lib/services/billing.d.ts +62 -0
  82. package/lib/services/billing.d.ts.map +1 -0
  83. package/lib/services/billing.js +100 -0
  84. package/lib/services/billing.js.map +1 -0
  85. package/lib/services/bot-management.d.ts +124 -0
  86. package/lib/services/bot-management.d.ts.map +1 -0
  87. package/lib/services/bot-management.js +262 -0
  88. package/lib/services/bot-management.js.map +1 -0
  89. package/lib/services/botnet-feed.d.ts +65 -0
  90. package/lib/services/botnet-feed.d.ts.map +1 -0
  91. package/lib/services/botnet-feed.js +84 -0
  92. package/lib/services/botnet-feed.js.map +1 -0
  93. package/lib/services/brand-protection.d.ts +188 -0
  94. package/lib/services/brand-protection.d.ts.map +1 -0
  95. package/lib/services/brand-protection.js +214 -0
  96. package/lib/services/brand-protection.js.map +1 -0
  97. package/lib/services/browser-rendering.d.ts +857 -0
  98. package/lib/services/browser-rendering.d.ts.map +1 -0
  99. package/lib/services/browser-rendering.js +1141 -0
  100. package/lib/services/browser-rendering.js.map +1 -0
  101. package/lib/services/cache.d.ts +287 -0
  102. package/lib/services/cache.d.ts.map +1 -0
  103. package/lib/services/cache.js +330 -0
  104. package/lib/services/cache.js.map +1 -0
  105. package/lib/services/calls.d.ts +202 -0
  106. package/lib/services/calls.d.ts.map +1 -0
  107. package/lib/services/calls.js +175 -0
  108. package/lib/services/calls.js.map +1 -0
  109. package/lib/services/certificate-authorities.d.ts +40 -0
  110. package/lib/services/certificate-authorities.d.ts.map +1 -0
  111. package/lib/services/certificate-authorities.js +49 -0
  112. package/lib/services/certificate-authorities.js.map +1 -0
  113. package/lib/services/client-certificates.d.ts +254 -0
  114. package/lib/services/client-certificates.d.ts.map +1 -0
  115. package/lib/services/client-certificates.js +350 -0
  116. package/lib/services/client-certificates.js.map +1 -0
  117. package/lib/services/cloud-connector.d.ts +59 -0
  118. package/lib/services/cloud-connector.d.ts.map +1 -0
  119. package/lib/services/cloud-connector.js +84 -0
  120. package/lib/services/cloud-connector.js.map +1 -0
  121. package/lib/services/cloudforce-one.d.ts +1318 -0
  122. package/lib/services/cloudforce-one.d.ts.map +1 -0
  123. package/lib/services/cloudforce-one.js +1684 -0
  124. package/lib/services/cloudforce-one.js.map +1 -0
  125. package/lib/services/connectivity.d.ts +248 -0
  126. package/lib/services/connectivity.d.ts.map +1 -0
  127. package/lib/services/connectivity.js +377 -0
  128. package/lib/services/connectivity.js.map +1 -0
  129. package/lib/services/content-scanning.d.ts +131 -0
  130. package/lib/services/content-scanning.d.ts.map +1 -0
  131. package/lib/services/content-scanning.js +156 -0
  132. package/lib/services/content-scanning.js.map +1 -0
  133. package/lib/services/custom-certificates.d.ts +211 -0
  134. package/lib/services/custom-certificates.d.ts.map +1 -0
  135. package/lib/services/custom-certificates.js +309 -0
  136. package/lib/services/custom-certificates.js.map +1 -0
  137. package/lib/services/custom-hostnames.d.ts +525 -0
  138. package/lib/services/custom-hostnames.d.ts.map +1 -0
  139. package/lib/services/custom-hostnames.js +1164 -0
  140. package/lib/services/custom-hostnames.js.map +1 -0
  141. package/lib/services/custom-nameservers.d.ts +67 -0
  142. package/lib/services/custom-nameservers.d.ts.map +1 -0
  143. package/lib/services/custom-nameservers.js +80 -0
  144. package/lib/services/custom-nameservers.js.map +1 -0
  145. package/lib/services/custom-pages.d.ts +74 -0
  146. package/lib/services/custom-pages.d.ts.map +1 -0
  147. package/lib/services/custom-pages.js +125 -0
  148. package/lib/services/custom-pages.js.map +1 -0
  149. package/lib/services/d1.d.ts +326 -0
  150. package/lib/services/d1.d.ts.map +1 -0
  151. package/lib/services/d1.js +448 -0
  152. package/lib/services/d1.js.map +1 -0
  153. package/lib/services/dcv-delegation.d.ts +24 -0
  154. package/lib/services/dcv-delegation.d.ts.map +1 -0
  155. package/lib/services/dcv-delegation.js +24 -0
  156. package/lib/services/dcv-delegation.js.map +1 -0
  157. package/lib/services/diagnostics.d.ts +175 -0
  158. package/lib/services/diagnostics.d.ts.map +1 -0
  159. package/lib/services/diagnostics.js +273 -0
  160. package/lib/services/diagnostics.js.map +1 -0
  161. package/lib/services/dns-firewall.d.ts +288 -0
  162. package/lib/services/dns-firewall.d.ts.map +1 -0
  163. package/lib/services/dns-firewall.js +373 -0
  164. package/lib/services/dns-firewall.js.map +1 -0
  165. package/lib/services/dns.d.ts +2946 -0
  166. package/lib/services/dns.d.ts.map +1 -0
  167. package/lib/services/dns.js +4511 -0
  168. package/lib/services/dns.js.map +1 -0
  169. package/lib/services/durable-objects.d.ts +61 -0
  170. package/lib/services/durable-objects.d.ts.map +1 -0
  171. package/lib/services/durable-objects.js +66 -0
  172. package/lib/services/durable-objects.js.map +1 -0
  173. package/lib/services/email-routing.d.ts +542 -0
  174. package/lib/services/email-routing.d.ts.map +1 -0
  175. package/lib/services/email-routing.js +662 -0
  176. package/lib/services/email-routing.js.map +1 -0
  177. package/lib/services/email-security.d.ts +1131 -0
  178. package/lib/services/email-security.d.ts.map +1 -0
  179. package/lib/services/email-security.js +2065 -0
  180. package/lib/services/email-security.js.map +1 -0
  181. package/lib/services/filters.d.ts +157 -0
  182. package/lib/services/filters.d.ts.map +1 -0
  183. package/lib/services/filters.js +135 -0
  184. package/lib/services/filters.js.map +1 -0
  185. package/lib/services/firewall.d.ts +1080 -0
  186. package/lib/services/firewall.d.ts.map +1 -0
  187. package/lib/services/firewall.js +1881 -0
  188. package/lib/services/firewall.js.map +1 -0
  189. package/lib/services/healthchecks.d.ts +464 -0
  190. package/lib/services/healthchecks.d.ts.map +1 -0
  191. package/lib/services/healthchecks.js +838 -0
  192. package/lib/services/healthchecks.js.map +1 -0
  193. package/lib/services/hostnames.d.ts +74 -0
  194. package/lib/services/hostnames.d.ts.map +1 -0
  195. package/lib/services/hostnames.js +100 -0
  196. package/lib/services/hostnames.js.map +1 -0
  197. package/lib/services/hyperdrive.d.ts +203 -0
  198. package/lib/services/hyperdrive.d.ts.map +1 -0
  199. package/lib/services/hyperdrive.js +299 -0
  200. package/lib/services/hyperdrive.js.map +1 -0
  201. package/lib/services/iam.d.ts +554 -0
  202. package/lib/services/iam.d.ts.map +1 -0
  203. package/lib/services/iam.js +743 -0
  204. package/lib/services/iam.js.map +1 -0
  205. package/lib/services/images.d.ts +403 -0
  206. package/lib/services/images.d.ts.map +1 -0
  207. package/lib/services/images.js +417 -0
  208. package/lib/services/images.js.map +1 -0
  209. package/lib/services/intel.d.ts +768 -0
  210. package/lib/services/intel.d.ts.map +1 -0
  211. package/lib/services/intel.js +1179 -0
  212. package/lib/services/intel.js.map +1 -0
  213. package/lib/services/ips.d.ts +28 -0
  214. package/lib/services/ips.d.ts.map +1 -0
  215. package/lib/services/ips.js +39 -0
  216. package/lib/services/ips.js.map +1 -0
  217. package/lib/services/keyless-certificates.d.ts +177 -0
  218. package/lib/services/keyless-certificates.d.ts.map +1 -0
  219. package/lib/services/keyless-certificates.js +216 -0
  220. package/lib/services/keyless-certificates.js.map +1 -0
  221. package/lib/services/kv.d.ts +339 -0
  222. package/lib/services/kv.d.ts.map +1 -0
  223. package/lib/services/kv.js +402 -0
  224. package/lib/services/kv.js.map +1 -0
  225. package/lib/services/leaked-credential-checks.d.ts +119 -0
  226. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  227. package/lib/services/leaked-credential-checks.js +130 -0
  228. package/lib/services/leaked-credential-checks.js.map +1 -0
  229. package/lib/services/load-balancers.d.ts +1767 -0
  230. package/lib/services/load-balancers.d.ts.map +1 -0
  231. package/lib/services/load-balancers.js +3068 -0
  232. package/lib/services/load-balancers.js.map +1 -0
  233. package/lib/services/logpush.d.ts +401 -0
  234. package/lib/services/logpush.d.ts.map +1 -0
  235. package/lib/services/logpush.js +724 -0
  236. package/lib/services/logpush.js.map +1 -0
  237. package/lib/services/logs.d.ts +125 -0
  238. package/lib/services/logs.d.ts.map +1 -0
  239. package/lib/services/logs.js +145 -0
  240. package/lib/services/logs.js.map +1 -0
  241. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  242. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  243. package/lib/services/magic-cloud-networking.js +5205 -0
  244. package/lib/services/magic-cloud-networking.js.map +1 -0
  245. package/lib/services/magic-network-monitoring.d.ts +379 -0
  246. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  247. package/lib/services/magic-network-monitoring.js +535 -0
  248. package/lib/services/magic-network-monitoring.js.map +1 -0
  249. package/lib/services/magic-transit.d.ts +3650 -0
  250. package/lib/services/magic-transit.d.ts.map +1 -0
  251. package/lib/services/magic-transit.js +6120 -0
  252. package/lib/services/magic-transit.js.map +1 -0
  253. package/lib/services/managed-transforms.d.ts +79 -0
  254. package/lib/services/managed-transforms.d.ts.map +1 -0
  255. package/lib/services/managed-transforms.js +107 -0
  256. package/lib/services/managed-transforms.js.map +1 -0
  257. package/lib/services/memberships.d.ts +172 -0
  258. package/lib/services/memberships.d.ts.map +1 -0
  259. package/lib/services/memberships.js +282 -0
  260. package/lib/services/memberships.js.map +1 -0
  261. package/lib/services/mtls-certificates.d.ts +140 -0
  262. package/lib/services/mtls-certificates.d.ts.map +1 -0
  263. package/lib/services/mtls-certificates.js +173 -0
  264. package/lib/services/mtls-certificates.js.map +1 -0
  265. package/lib/services/network-interconnects.d.ts +410 -0
  266. package/lib/services/network-interconnects.d.ts.map +1 -0
  267. package/lib/services/network-interconnects.js +583 -0
  268. package/lib/services/network-interconnects.js.map +1 -0
  269. package/lib/services/organizations.d.ts +201 -0
  270. package/lib/services/organizations.d.ts.map +1 -0
  271. package/lib/services/organizations.js +355 -0
  272. package/lib/services/organizations.js.map +1 -0
  273. package/lib/services/origin-ca-certificates.d.ts +99 -0
  274. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  275. package/lib/services/origin-ca-certificates.js +156 -0
  276. package/lib/services/origin-ca-certificates.js.map +1 -0
  277. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  279. package/lib/services/origin-post-quantum-encryption.js +60 -0
  280. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  281. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  282. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  283. package/lib/services/origin-tls-client-auth.js +401 -0
  284. package/lib/services/origin-tls-client-auth.js.map +1 -0
  285. package/lib/services/page-rules.d.ts +773 -0
  286. package/lib/services/page-rules.d.ts.map +1 -0
  287. package/lib/services/page-rules.js +1365 -0
  288. package/lib/services/page-rules.js.map +1 -0
  289. package/lib/services/page-shield.d.ts +426 -0
  290. package/lib/services/page-shield.d.ts.map +1 -0
  291. package/lib/services/page-shield.js +484 -0
  292. package/lib/services/page-shield.js.map +1 -0
  293. package/lib/services/pages.d.ts +1654 -0
  294. package/lib/services/pages.d.ts.map +1 -0
  295. package/lib/services/pages.js +2954 -0
  296. package/lib/services/pages.js.map +1 -0
  297. package/lib/services/pipelines.d.ts +1461 -0
  298. package/lib/services/pipelines.d.ts.map +1 -0
  299. package/lib/services/pipelines.js +2912 -0
  300. package/lib/services/pipelines.js.map +1 -0
  301. package/lib/services/queues.d.ts +807 -0
  302. package/lib/services/queues.d.ts.map +1 -0
  303. package/lib/services/queues.js +1194 -0
  304. package/lib/services/queues.js.map +1 -0
  305. package/lib/services/r2-data-catalog.d.ts +341 -0
  306. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  307. package/lib/services/r2-data-catalog.js +499 -0
  308. package/lib/services/r2-data-catalog.js.map +1 -0
  309. package/lib/services/r2.d.ts +1041 -0
  310. package/lib/services/r2.d.ts.map +1 -0
  311. package/lib/services/r2.js +1384 -0
  312. package/lib/services/r2.js.map +1 -0
  313. package/lib/services/radar.d.ts +9276 -0
  314. package/lib/services/radar.d.ts.map +1 -0
  315. package/lib/services/radar.js +20491 -0
  316. package/lib/services/radar.js.map +1 -0
  317. package/lib/services/rate-limits.d.ts +315 -0
  318. package/lib/services/rate-limits.d.ts.map +1 -0
  319. package/lib/services/rate-limits.js +521 -0
  320. package/lib/services/rate-limits.js.map +1 -0
  321. package/lib/services/realtime-kit.d.ts +2728 -0
  322. package/lib/services/realtime-kit.d.ts.map +1 -0
  323. package/lib/services/realtime-kit.js +5401 -0
  324. package/lib/services/realtime-kit.js.map +1 -0
  325. package/lib/services/registrar.d.ts +81 -0
  326. package/lib/services/registrar.d.ts.map +1 -0
  327. package/lib/services/registrar.js +154 -0
  328. package/lib/services/registrar.js.map +1 -0
  329. package/lib/services/request-tracers.d.ts +61 -0
  330. package/lib/services/request-tracers.d.ts.map +1 -0
  331. package/lib/services/request-tracers.js +82 -0
  332. package/lib/services/request-tracers.js.map +1 -0
  333. package/lib/services/resource-sharing.d.ts +540 -0
  334. package/lib/services/resource-sharing.d.ts.map +1 -0
  335. package/lib/services/resource-sharing.js +846 -0
  336. package/lib/services/resource-sharing.js.map +1 -0
  337. package/lib/services/rules.d.ts +297 -0
  338. package/lib/services/rules.d.ts.map +1 -0
  339. package/lib/services/rules.js +396 -0
  340. package/lib/services/rules.js.map +1 -0
  341. package/lib/services/rulesets.d.ts +3300 -0
  342. package/lib/services/rulesets.d.ts.map +1 -0
  343. package/lib/services/rulesets.js +7852 -0
  344. package/lib/services/rulesets.js.map +1 -0
  345. package/lib/services/rum.d.ts +289 -0
  346. package/lib/services/rum.d.ts.map +1 -0
  347. package/lib/services/rum.js +409 -0
  348. package/lib/services/rum.js.map +1 -0
  349. package/lib/services/schema-validation.d.ts +240 -0
  350. package/lib/services/schema-validation.d.ts.map +1 -0
  351. package/lib/services/schema-validation.js +306 -0
  352. package/lib/services/schema-validation.js.map +1 -0
  353. package/lib/services/secrets-store.d.ts +321 -0
  354. package/lib/services/secrets-store.d.ts.map +1 -0
  355. package/lib/services/secrets-store.js +385 -0
  356. package/lib/services/secrets-store.js.map +1 -0
  357. package/lib/services/security-center.d.ts +102 -0
  358. package/lib/services/security-center.d.ts.map +1 -0
  359. package/lib/services/security-center.js +170 -0
  360. package/lib/services/security-center.js.map +1 -0
  361. package/lib/services/security-txt.d.ts +105 -0
  362. package/lib/services/security-txt.d.ts.map +1 -0
  363. package/lib/services/security-txt.js +136 -0
  364. package/lib/services/security-txt.js.map +1 -0
  365. package/lib/services/snippets.d.ts +138 -0
  366. package/lib/services/snippets.d.ts.map +1 -0
  367. package/lib/services/snippets.js +178 -0
  368. package/lib/services/snippets.js.map +1 -0
  369. package/lib/services/spectrum.d.ts +316 -0
  370. package/lib/services/spectrum.d.ts.map +1 -0
  371. package/lib/services/spectrum.js +510 -0
  372. package/lib/services/spectrum.js.map +1 -0
  373. package/lib/services/speed.d.ts +227 -0
  374. package/lib/services/speed.d.ts.map +1 -0
  375. package/lib/services/speed.js +444 -0
  376. package/lib/services/speed.js.map +1 -0
  377. package/lib/services/ssl.d.ts +370 -0
  378. package/lib/services/ssl.d.ts.map +1 -0
  379. package/lib/services/ssl.js +732 -0
  380. package/lib/services/ssl.js.map +1 -0
  381. package/lib/services/stream.d.ts +1014 -0
  382. package/lib/services/stream.d.ts.map +1 -0
  383. package/lib/services/stream.js +1049 -0
  384. package/lib/services/stream.js.map +1 -0
  385. package/lib/services/token-validation.d.ts +547 -0
  386. package/lib/services/token-validation.d.ts.map +1 -0
  387. package/lib/services/token-validation.js +768 -0
  388. package/lib/services/token-validation.js.map +1 -0
  389. package/lib/services/turnstile.d.ts +248 -0
  390. package/lib/services/turnstile.d.ts.map +1 -0
  391. package/lib/services/turnstile.js +308 -0
  392. package/lib/services/turnstile.js.map +1 -0
  393. package/lib/services/url-normalization.d.ts +53 -0
  394. package/lib/services/url-normalization.d.ts.map +1 -0
  395. package/lib/services/url-normalization.js +52 -0
  396. package/lib/services/url-normalization.js.map +1 -0
  397. package/lib/services/url-scanner.d.ts +612 -0
  398. package/lib/services/url-scanner.d.ts.map +1 -0
  399. package/lib/services/url-scanner.js +915 -0
  400. package/lib/services/url-scanner.js.map +1 -0
  401. package/lib/services/user.d.ts +441 -0
  402. package/lib/services/user.d.ts.map +1 -0
  403. package/lib/services/user.js +567 -0
  404. package/lib/services/user.js.map +1 -0
  405. package/lib/services/vectorize.d.ts +282 -0
  406. package/lib/services/vectorize.d.ts.map +1 -0
  407. package/lib/services/vectorize.js +340 -0
  408. package/lib/services/vectorize.js.map +1 -0
  409. package/lib/services/waiting-rooms.d.ts +1009 -0
  410. package/lib/services/waiting-rooms.d.ts.map +1 -0
  411. package/lib/services/waiting-rooms.js +1757 -0
  412. package/lib/services/waiting-rooms.js.map +1 -0
  413. package/lib/services/web3.d.ts +274 -0
  414. package/lib/services/web3.d.ts.map +1 -0
  415. package/lib/services/web3.js +362 -0
  416. package/lib/services/web3.js.map +1 -0
  417. package/lib/services/workers-for-platforms.d.ts +1224 -0
  418. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  419. package/lib/services/workers-for-platforms.js +2078 -0
  420. package/lib/services/workers-for-platforms.js.map +1 -0
  421. package/lib/services/workers.d.ts +3498 -0
  422. package/lib/services/workers.d.ts.map +1 -0
  423. package/lib/services/workers.js +5967 -0
  424. package/lib/services/workers.js.map +1 -0
  425. package/lib/services/workflows.d.ts +359 -0
  426. package/lib/services/workflows.d.ts.map +1 -0
  427. package/lib/services/workflows.js +516 -0
  428. package/lib/services/workflows.js.map +1 -0
  429. package/lib/services/zaraz.d.ts +300 -0
  430. package/lib/services/zaraz.d.ts.map +1 -0
  431. package/lib/services/zaraz.js +298 -0
  432. package/lib/services/zaraz.js.map +1 -0
  433. package/lib/services/zero-trust.d.ts +15449 -0
  434. package/lib/services/zero-trust.d.ts.map +1 -0
  435. package/lib/services/zero-trust.js +29194 -0
  436. package/lib/services/zero-trust.js.map +1 -0
  437. package/lib/services/zones.d.ts +1278 -0
  438. package/lib/services/zones.d.ts.map +1 -0
  439. package/lib/services/zones.js +2416 -0
  440. package/lib/services/zones.js.map +1 -0
  441. package/lib/traits.d.ts +28 -0
  442. package/lib/traits.d.ts.map +1 -0
  443. package/lib/traits.js +26 -0
  444. package/lib/traits.js.map +1 -0
  445. package/package.json +67 -5
  446. package/src/auth.ts +14 -0
  447. package/src/category.ts +1 -0
  448. package/src/client/api.ts +269 -0
  449. package/src/client/index.ts +7 -0
  450. package/src/credentials.ts +30 -0
  451. package/src/errors.ts +65 -0
  452. package/src/index.ts +9 -0
  453. package/src/retry.ts +35 -0
  454. package/src/schemas.ts +51 -0
  455. package/src/services/abuse-reports.ts +747 -0
  456. package/src/services/accounts.ts +1947 -0
  457. package/src/services/acm.ts +170 -0
  458. package/src/services/addressing.ts +3947 -0
  459. package/src/services/ai-gateway.ts +3335 -0
  460. package/src/services/ai.ts +727 -0
  461. package/src/services/aisearch.ts +4750 -0
  462. package/src/services/alerting.ts +2947 -0
  463. package/src/services/api-gateway.ts +3391 -0
  464. package/src/services/argo.ts +254 -0
  465. package/src/services/audit-logs.ts +90 -0
  466. package/src/services/billing.ts +172 -0
  467. package/src/services/bot-management.ts +541 -0
  468. package/src/services/botnet-feed.ts +193 -0
  469. package/src/services/brand-protection.ts +553 -0
  470. package/src/services/browser-rendering.ts +2707 -0
  471. package/src/services/cache.ts +827 -0
  472. package/src/services/calls.ts +483 -0
  473. package/src/services/certificate-authorities.ts +110 -0
  474. package/src/services/client-certificates.ts +718 -0
  475. package/src/services/cloud-connector.ts +181 -0
  476. package/src/services/cloudforce-one.ts +3876 -0
  477. package/src/services/connectivity.ts +629 -0
  478. package/src/services/content-scanning.ts +385 -0
  479. package/src/services/custom-certificates.ts +611 -0
  480. package/src/services/custom-hostnames.ts +2453 -0
  481. package/src/services/custom-nameservers.ts +182 -0
  482. package/src/services/custom-pages.ts +264 -0
  483. package/src/services/d1.ts +1034 -0
  484. package/src/services/dcv-delegation.ts +52 -0
  485. package/src/services/diagnostics.ts +603 -0
  486. package/src/services/dns-firewall.ts +823 -0
  487. package/src/services/dns.ts +8897 -0
  488. package/src/services/durable-objects.ts +148 -0
  489. package/src/services/email-routing.ts +1602 -0
  490. package/src/services/email-security.ts +4283 -0
  491. package/src/services/filters.ts +370 -0
  492. package/src/services/firewall.ts +3896 -0
  493. package/src/services/healthchecks.ts +1750 -0
  494. package/src/services/hostnames.ts +218 -0
  495. package/src/services/hyperdrive.ts +592 -0
  496. package/src/services/iam.ts +1668 -0
  497. package/src/services/images.ts +1086 -0
  498. package/src/services/intel.ts +2768 -0
  499. package/src/services/ips.ts +88 -0
  500. package/src/services/keyless-certificates.ts +462 -0
  501. package/src/services/kv.ts +1011 -0
  502. package/src/services/leaked-credential-checks.ts +325 -0
  503. package/src/services/load-balancers.ts +6438 -0
  504. package/src/services/logpush.ts +1667 -0
  505. package/src/services/logs.ts +375 -0
  506. package/src/services/magic-cloud-networking.ts +10020 -0
  507. package/src/services/magic-network-monitoring.ts +1156 -0
  508. package/src/services/magic-transit.ts +13050 -0
  509. package/src/services/managed-transforms.ts +237 -0
  510. package/src/services/memberships.ts +615 -0
  511. package/src/services/mtls-certificates.ts +374 -0
  512. package/src/services/network-interconnects.ts +1253 -0
  513. package/src/services/organizations.ts +674 -0
  514. package/src/services/origin-ca-certificates.ts +303 -0
  515. package/src/services/origin-post-quantum-encryption.ts +128 -0
  516. package/src/services/origin-tls-client-auth.ts +878 -0
  517. package/src/services/page-rules.ts +2612 -0
  518. package/src/services/page-shield.ts +1195 -0
  519. package/src/services/pages.ts +5709 -0
  520. package/src/services/pipelines.ts +6000 -0
  521. package/src/services/queues.ts +2629 -0
  522. package/src/services/r2-data-catalog.ts +1119 -0
  523. package/src/services/r2.ts +3348 -0
  524. package/src/services/radar.ts +42152 -0
  525. package/src/services/rate-limits.ts +1150 -0
  526. package/src/services/realtime-kit.ts +11079 -0
  527. package/src/services/registrar.ts +295 -0
  528. package/src/services/request-tracers.ts +158 -0
  529. package/src/services/resource-sharing.ts +1832 -0
  530. package/src/services/rules.ts +837 -0
  531. package/src/services/rulesets.ts +15144 -0
  532. package/src/services/rum.ts +901 -0
  533. package/src/services/schema-validation.ts +733 -0
  534. package/src/services/secrets-store.ts +860 -0
  535. package/src/services/security-center.ts +397 -0
  536. package/src/services/security-txt.ts +315 -0
  537. package/src/services/snippets.ts +420 -0
  538. package/src/services/spectrum.ts +1103 -0
  539. package/src/services/speed.ts +1056 -0
  540. package/src/services/ssl.ts +1587 -0
  541. package/src/services/stream.ts +2756 -0
  542. package/src/services/token-validation.ts +1585 -0
  543. package/src/services/turnstile.ts +643 -0
  544. package/src/services/url-normalization.ts +129 -0
  545. package/src/services/url-scanner.ts +1851 -0
  546. package/src/services/user.ts +1384 -0
  547. package/src/services/vectorize.ts +816 -0
  548. package/src/services/waiting-rooms.ts +3807 -0
  549. package/src/services/web3.ts +834 -0
  550. package/src/services/workers-for-platforms.ts +3859 -0
  551. package/src/services/workers.ts +11637 -0
  552. package/src/services/workflows.ts +1124 -0
  553. package/src/services/zaraz.ts +797 -0
  554. package/src/services/zero-trust.ts +58933 -0
  555. package/src/services/zones.ts +4875 -0
  556. package/src/traits.ts +47 -0
  557. package/README.md +0 -15
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,1668 @@
1
+ /**
2
+ * Cloudflare IAM API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service iam
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
+ // Errors
17
+ // =============================================================================
18
+
19
+ export class InvalidMember extends Schema.TaggedErrorClass<InvalidMember>()(
20
+ "InvalidMember",
21
+ { code: Schema.Number, message: Schema.String },
22
+ ) {}
23
+ T.applyErrorMatchers(InvalidMember, [{ code: 400 }]);
24
+
25
+ // =============================================================================
26
+ // PermissionGroup
27
+ // =============================================================================
28
+
29
+ export interface GetPermissionGroupRequest {
30
+ permissionGroupId: string;
31
+ /** Account identifier tag. */
32
+ accountId: string;
33
+ }
34
+
35
+ export const GetPermissionGroupRequest =
36
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
37
+ permissionGroupId: Schema.String.pipe(T.HttpPath("permissionGroupId")),
38
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
39
+ }).pipe(
40
+ T.Http({
41
+ method: "GET",
42
+ path: "/accounts/{account_id}/iam/permission_groups/{permissionGroupId}",
43
+ }),
44
+ ) as unknown as Schema.Schema<GetPermissionGroupRequest>;
45
+
46
+ export interface GetPermissionGroupResponse {
47
+ /** Identifier of the permission group. */
48
+ id: string;
49
+ /** Attributes associated to the permission group. */
50
+ meta?: { key?: string | null; value?: string | null } | null;
51
+ /** Name of the permission group. */
52
+ name?: string | null;
53
+ }
54
+
55
+ export const GetPermissionGroupResponse =
56
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
57
+ id: Schema.String,
58
+ meta: Schema.optional(
59
+ Schema.Union([
60
+ Schema.Struct({
61
+ key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
62
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
63
+ }),
64
+ Schema.Null,
65
+ ]),
66
+ ),
67
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
68
+ }) as unknown as Schema.Schema<GetPermissionGroupResponse>;
69
+
70
+ export type GetPermissionGroupError = DefaultErrors;
71
+
72
+ export const getPermissionGroup: API.OperationMethod<
73
+ GetPermissionGroupRequest,
74
+ GetPermissionGroupResponse,
75
+ GetPermissionGroupError,
76
+ Credentials | HttpClient.HttpClient
77
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
78
+ input: GetPermissionGroupRequest,
79
+ output: GetPermissionGroupResponse,
80
+ errors: [],
81
+ }));
82
+
83
+ export interface ListPermissionGroupsRequest {
84
+ /** Path param: Account identifier tag. */
85
+ accountId: string;
86
+ /** Query param: ID of the permission group to be fetched. */
87
+ id?: string;
88
+ /** Query param: Label of the permission group to be fetched. */
89
+ label?: string;
90
+ /** Query param: Name of the permission group to be fetched. */
91
+ name?: string;
92
+ }
93
+
94
+ export const ListPermissionGroupsRequest =
95
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
96
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
97
+ id: Schema.optional(Schema.String).pipe(T.HttpQuery("id")),
98
+ label: Schema.optional(Schema.String).pipe(T.HttpQuery("label")),
99
+ name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
100
+ }).pipe(
101
+ T.Http({
102
+ method: "GET",
103
+ path: "/accounts/{account_id}/iam/permission_groups",
104
+ }),
105
+ ) as unknown as Schema.Schema<ListPermissionGroupsRequest>;
106
+
107
+ export type ListPermissionGroupsResponse = {
108
+ id: string;
109
+ meta?: { key?: string | null; value?: string | null } | null;
110
+ name?: string | null;
111
+ }[];
112
+
113
+ export const ListPermissionGroupsResponse =
114
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
115
+ Schema.Struct({
116
+ id: Schema.String,
117
+ meta: Schema.optional(
118
+ Schema.Union([
119
+ Schema.Struct({
120
+ key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
121
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
122
+ }),
123
+ Schema.Null,
124
+ ]),
125
+ ),
126
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
127
+ }),
128
+ ) as unknown as Schema.Schema<ListPermissionGroupsResponse>;
129
+
130
+ export type ListPermissionGroupsError = DefaultErrors;
131
+
132
+ export const listPermissionGroups: API.OperationMethod<
133
+ ListPermissionGroupsRequest,
134
+ ListPermissionGroupsResponse,
135
+ ListPermissionGroupsError,
136
+ Credentials | HttpClient.HttpClient
137
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
138
+ input: ListPermissionGroupsRequest,
139
+ output: ListPermissionGroupsResponse,
140
+ errors: [],
141
+ }));
142
+
143
+ // =============================================================================
144
+ // ResourceGroup
145
+ // =============================================================================
146
+
147
+ export interface GetResourceGroupRequest {
148
+ resourceGroupId: string;
149
+ /** Account identifier tag. */
150
+ accountId: string;
151
+ }
152
+
153
+ export const GetResourceGroupRequest =
154
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
155
+ resourceGroupId: Schema.String.pipe(T.HttpPath("resourceGroupId")),
156
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
157
+ }).pipe(
158
+ T.Http({
159
+ method: "GET",
160
+ path: "/accounts/{account_id}/iam/resource_groups/{resourceGroupId}",
161
+ }),
162
+ ) as unknown as Schema.Schema<GetResourceGroupRequest>;
163
+
164
+ export interface GetResourceGroupResponse {
165
+ /** Identifier of the resource group. */
166
+ id: string;
167
+ /** The scope associated to the resource group */
168
+ scope: unknown;
169
+ /** Attributes associated to the resource group. */
170
+ meta?: { key?: string | null; value?: string | null } | null;
171
+ /** Name of the resource group. */
172
+ name?: string | null;
173
+ }
174
+
175
+ export const GetResourceGroupResponse =
176
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
177
+ id: Schema.String,
178
+ scope: Schema.Unknown,
179
+ meta: Schema.optional(
180
+ Schema.Union([
181
+ Schema.Struct({
182
+ key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
183
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
184
+ }),
185
+ Schema.Null,
186
+ ]),
187
+ ),
188
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
189
+ }) as unknown as Schema.Schema<GetResourceGroupResponse>;
190
+
191
+ export type GetResourceGroupError = DefaultErrors;
192
+
193
+ export const getResourceGroup: API.OperationMethod<
194
+ GetResourceGroupRequest,
195
+ GetResourceGroupResponse,
196
+ GetResourceGroupError,
197
+ Credentials | HttpClient.HttpClient
198
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
199
+ input: GetResourceGroupRequest,
200
+ output: GetResourceGroupResponse,
201
+ errors: [],
202
+ }));
203
+
204
+ export interface ListResourceGroupsRequest {
205
+ /** Path param: Account identifier tag. */
206
+ accountId: string;
207
+ /** Query param: ID of the resource group to be fetched. */
208
+ id?: string;
209
+ /** Query param: Name of the resource group to be fetched. */
210
+ name?: string;
211
+ }
212
+
213
+ export const ListResourceGroupsRequest =
214
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
215
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
216
+ id: Schema.optional(Schema.String).pipe(T.HttpQuery("id")),
217
+ name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
218
+ }).pipe(
219
+ T.Http({
220
+ method: "GET",
221
+ path: "/accounts/{account_id}/iam/resource_groups",
222
+ }),
223
+ ) as unknown as Schema.Schema<ListResourceGroupsRequest>;
224
+
225
+ export type ListResourceGroupsResponse = {
226
+ id: string;
227
+ scope: unknown;
228
+ meta?: { key?: string | null; value?: string | null } | null;
229
+ name?: string | null;
230
+ }[];
231
+
232
+ export const ListResourceGroupsResponse =
233
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
234
+ Schema.Struct({
235
+ id: Schema.String,
236
+ scope: Schema.Unknown,
237
+ meta: Schema.optional(
238
+ Schema.Union([
239
+ Schema.Struct({
240
+ key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
241
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
242
+ }),
243
+ Schema.Null,
244
+ ]),
245
+ ),
246
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
247
+ }),
248
+ ) as unknown as Schema.Schema<ListResourceGroupsResponse>;
249
+
250
+ export type ListResourceGroupsError = DefaultErrors;
251
+
252
+ export const listResourceGroups: API.OperationMethod<
253
+ ListResourceGroupsRequest,
254
+ ListResourceGroupsResponse,
255
+ ListResourceGroupsError,
256
+ Credentials | HttpClient.HttpClient
257
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
258
+ input: ListResourceGroupsRequest,
259
+ output: ListResourceGroupsResponse,
260
+ errors: [],
261
+ }));
262
+
263
+ export interface CreateResourceGroupRequest {
264
+ /** Path param: Account identifier tag. */
265
+ accountId: string;
266
+ /** Body param: Name of the resource group */
267
+ name: string;
268
+ /** Body param: A scope is a combination of scope objects which provides additional context. */
269
+ scope: { key: string; objects: { key: string }[] };
270
+ }
271
+
272
+ export const CreateResourceGroupRequest =
273
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
274
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
275
+ name: Schema.String,
276
+ scope: Schema.Struct({
277
+ key: Schema.String,
278
+ objects: Schema.Array(
279
+ Schema.Struct({
280
+ key: Schema.String,
281
+ }),
282
+ ),
283
+ }),
284
+ }).pipe(
285
+ T.Http({
286
+ method: "POST",
287
+ path: "/accounts/{account_id}/iam/resource_groups",
288
+ }),
289
+ ) as unknown as Schema.Schema<CreateResourceGroupRequest>;
290
+
291
+ export interface CreateResourceGroupResponse {
292
+ /** Identifier of the resource group. */
293
+ id: string;
294
+ /** The scope associated to the resource group */
295
+ scope: unknown;
296
+ /** Attributes associated to the resource group. */
297
+ meta?: { key?: string | null; value?: string | null } | null;
298
+ /** Name of the resource group. */
299
+ name?: string | null;
300
+ }
301
+
302
+ export const CreateResourceGroupResponse =
303
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
304
+ id: Schema.String,
305
+ scope: Schema.Unknown,
306
+ meta: Schema.optional(
307
+ Schema.Union([
308
+ Schema.Struct({
309
+ key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
310
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
311
+ }),
312
+ Schema.Null,
313
+ ]),
314
+ ),
315
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
316
+ }) as unknown as Schema.Schema<CreateResourceGroupResponse>;
317
+
318
+ export type CreateResourceGroupError = DefaultErrors;
319
+
320
+ export const createResourceGroup: API.OperationMethod<
321
+ CreateResourceGroupRequest,
322
+ CreateResourceGroupResponse,
323
+ CreateResourceGroupError,
324
+ Credentials | HttpClient.HttpClient
325
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
326
+ input: CreateResourceGroupRequest,
327
+ output: CreateResourceGroupResponse,
328
+ errors: [],
329
+ }));
330
+
331
+ export interface UpdateResourceGroupRequest {
332
+ resourceGroupId: string;
333
+ /** Path param: Account identifier tag. */
334
+ accountId: string;
335
+ /** Body param: Name of the resource group */
336
+ name?: string;
337
+ /** Body param: A scope is a combination of scope objects which provides additional context. */
338
+ scope?: { key: string; objects: { key: string }[] };
339
+ }
340
+
341
+ export const UpdateResourceGroupRequest =
342
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
343
+ resourceGroupId: Schema.String.pipe(T.HttpPath("resourceGroupId")),
344
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
345
+ name: Schema.optional(Schema.String),
346
+ scope: Schema.optional(
347
+ Schema.Struct({
348
+ key: Schema.String,
349
+ objects: Schema.Array(
350
+ Schema.Struct({
351
+ key: Schema.String,
352
+ }),
353
+ ),
354
+ }),
355
+ ),
356
+ }).pipe(
357
+ T.Http({
358
+ method: "PUT",
359
+ path: "/accounts/{account_id}/iam/resource_groups/{resourceGroupId}",
360
+ }),
361
+ ) as unknown as Schema.Schema<UpdateResourceGroupRequest>;
362
+
363
+ export interface UpdateResourceGroupResponse {
364
+ /** Identifier of the resource group. */
365
+ id: string;
366
+ /** The scope associated to the resource group */
367
+ scope: unknown;
368
+ /** Attributes associated to the resource group. */
369
+ meta?: { key?: string | null; value?: string | null } | null;
370
+ /** Name of the resource group. */
371
+ name?: string | null;
372
+ }
373
+
374
+ export const UpdateResourceGroupResponse =
375
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
376
+ id: Schema.String,
377
+ scope: Schema.Unknown,
378
+ meta: Schema.optional(
379
+ Schema.Union([
380
+ Schema.Struct({
381
+ key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
382
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
383
+ }),
384
+ Schema.Null,
385
+ ]),
386
+ ),
387
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
388
+ }) as unknown as Schema.Schema<UpdateResourceGroupResponse>;
389
+
390
+ export type UpdateResourceGroupError = DefaultErrors;
391
+
392
+ export const updateResourceGroup: API.OperationMethod<
393
+ UpdateResourceGroupRequest,
394
+ UpdateResourceGroupResponse,
395
+ UpdateResourceGroupError,
396
+ Credentials | HttpClient.HttpClient
397
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
398
+ input: UpdateResourceGroupRequest,
399
+ output: UpdateResourceGroupResponse,
400
+ errors: [],
401
+ }));
402
+
403
+ export interface DeleteResourceGroupRequest {
404
+ resourceGroupId: string;
405
+ /** Account identifier tag. */
406
+ accountId: string;
407
+ }
408
+
409
+ export const DeleteResourceGroupRequest =
410
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
411
+ resourceGroupId: Schema.String.pipe(T.HttpPath("resourceGroupId")),
412
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
413
+ }).pipe(
414
+ T.Http({
415
+ method: "DELETE",
416
+ path: "/accounts/{account_id}/iam/resource_groups/{resourceGroupId}",
417
+ }),
418
+ ) as unknown as Schema.Schema<DeleteResourceGroupRequest>;
419
+
420
+ export interface DeleteResourceGroupResponse {
421
+ /** Identifier */
422
+ id: string;
423
+ }
424
+
425
+ export const DeleteResourceGroupResponse =
426
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
427
+ id: Schema.String,
428
+ }) as unknown as Schema.Schema<DeleteResourceGroupResponse>;
429
+
430
+ export type DeleteResourceGroupError = DefaultErrors;
431
+
432
+ export const deleteResourceGroup: API.OperationMethod<
433
+ DeleteResourceGroupRequest,
434
+ DeleteResourceGroupResponse,
435
+ DeleteResourceGroupError,
436
+ Credentials | HttpClient.HttpClient
437
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
438
+ input: DeleteResourceGroupRequest,
439
+ output: DeleteResourceGroupResponse,
440
+ errors: [],
441
+ }));
442
+
443
+ // =============================================================================
444
+ // Sso
445
+ // =============================================================================
446
+
447
+ export interface GetSsoRequest {
448
+ ssoConnectorId: string;
449
+ /** Account identifier tag. */
450
+ accountId: string;
451
+ }
452
+
453
+ export const GetSsoRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
454
+ ssoConnectorId: Schema.String.pipe(T.HttpPath("ssoConnectorId")),
455
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
456
+ }).pipe(
457
+ T.Http({
458
+ method: "GET",
459
+ path: "/accounts/{account_id}/sso_connectors/{ssoConnectorId}",
460
+ }),
461
+ ) as unknown as Schema.Schema<GetSsoRequest>;
462
+
463
+ export interface GetSsoResponse {
464
+ /** SSO Connector identifier tag. */
465
+ id?: string | null;
466
+ /** Timestamp for the creation of the SSO connector */
467
+ createdOn?: string | null;
468
+ emailDomain?: string | null;
469
+ enabled?: boolean | null;
470
+ /** Timestamp for the last update of the SSO connector */
471
+ updatedOn?: string | null;
472
+ /** Controls the display of FedRAMP language to the user during SSO login */
473
+ useFedrampLanguage?: boolean | null;
474
+ verification?: {
475
+ code?: string | null;
476
+ status?: "awaiting" | "pending" | "failed" | "verified" | null;
477
+ } | null;
478
+ }
479
+
480
+ export const GetSsoResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
481
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
482
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
483
+ emailDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
484
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
485
+ updatedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
486
+ useFedrampLanguage: Schema.optional(
487
+ Schema.Union([Schema.Boolean, Schema.Null]),
488
+ ),
489
+ verification: Schema.optional(
490
+ Schema.Union([
491
+ Schema.Struct({
492
+ code: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
493
+ status: Schema.optional(
494
+ Schema.Union([
495
+ Schema.Literals(["awaiting", "pending", "failed", "verified"]),
496
+ Schema.Null,
497
+ ]),
498
+ ),
499
+ }),
500
+ Schema.Null,
501
+ ]),
502
+ ),
503
+ }).pipe(
504
+ Schema.encodeKeys({
505
+ id: "id",
506
+ createdOn: "created_on",
507
+ emailDomain: "email_domain",
508
+ enabled: "enabled",
509
+ updatedOn: "updated_on",
510
+ useFedrampLanguage: "use_fedramp_language",
511
+ verification: "verification",
512
+ }),
513
+ ) as unknown as Schema.Schema<GetSsoResponse>;
514
+
515
+ export type GetSsoError = DefaultErrors;
516
+
517
+ export const getSso: API.OperationMethod<
518
+ GetSsoRequest,
519
+ GetSsoResponse,
520
+ GetSsoError,
521
+ Credentials | HttpClient.HttpClient
522
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
523
+ input: GetSsoRequest,
524
+ output: GetSsoResponse,
525
+ errors: [],
526
+ }));
527
+
528
+ export interface ListSsosRequest {
529
+ /** Account identifier tag. */
530
+ accountId: string;
531
+ }
532
+
533
+ export const ListSsosRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
534
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
535
+ }).pipe(
536
+ T.Http({ method: "GET", path: "/accounts/{account_id}/sso_connectors" }),
537
+ ) as unknown as Schema.Schema<ListSsosRequest>;
538
+
539
+ export type ListSsosResponse = {
540
+ id?: string | null;
541
+ createdOn?: string | null;
542
+ emailDomain?: string | null;
543
+ enabled?: boolean | null;
544
+ updatedOn?: string | null;
545
+ useFedrampLanguage?: boolean | null;
546
+ verification?: {
547
+ code?: string | null;
548
+ status?: "awaiting" | "pending" | "failed" | "verified" | null;
549
+ } | null;
550
+ }[];
551
+
552
+ export const ListSsosResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
553
+ Schema.Struct({
554
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
555
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
556
+ emailDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
557
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
558
+ updatedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
559
+ useFedrampLanguage: Schema.optional(
560
+ Schema.Union([Schema.Boolean, Schema.Null]),
561
+ ),
562
+ verification: Schema.optional(
563
+ Schema.Union([
564
+ Schema.Struct({
565
+ code: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
566
+ status: Schema.optional(
567
+ Schema.Union([
568
+ Schema.Literals(["awaiting", "pending", "failed", "verified"]),
569
+ Schema.Null,
570
+ ]),
571
+ ),
572
+ }),
573
+ Schema.Null,
574
+ ]),
575
+ ),
576
+ }).pipe(
577
+ Schema.encodeKeys({
578
+ id: "id",
579
+ createdOn: "created_on",
580
+ emailDomain: "email_domain",
581
+ enabled: "enabled",
582
+ updatedOn: "updated_on",
583
+ useFedrampLanguage: "use_fedramp_language",
584
+ verification: "verification",
585
+ }),
586
+ ),
587
+ ) as unknown as Schema.Schema<ListSsosResponse>;
588
+
589
+ export type ListSsosError = DefaultErrors;
590
+
591
+ export const listSsos: API.OperationMethod<
592
+ ListSsosRequest,
593
+ ListSsosResponse,
594
+ ListSsosError,
595
+ Credentials | HttpClient.HttpClient
596
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
597
+ input: ListSsosRequest,
598
+ output: ListSsosResponse,
599
+ errors: [],
600
+ }));
601
+
602
+ export interface CreateSsoRequest {
603
+ /** Path param: Account identifier tag. */
604
+ accountId: string;
605
+ /** Body param: Email domain of the new SSO connector */
606
+ emailDomain: string;
607
+ /** Body param: Begin the verification process after creation */
608
+ beginVerification?: boolean;
609
+ /** Body param: Controls the display of FedRAMP language to the user during SSO login */
610
+ useFedrampLanguage?: boolean;
611
+ }
612
+
613
+ export const CreateSsoRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
614
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
615
+ emailDomain: Schema.String,
616
+ beginVerification: Schema.optional(Schema.Boolean),
617
+ useFedrampLanguage: Schema.optional(Schema.Boolean),
618
+ }).pipe(
619
+ Schema.encodeKeys({
620
+ emailDomain: "email_domain",
621
+ beginVerification: "begin_verification",
622
+ useFedrampLanguage: "use_fedramp_language",
623
+ }),
624
+ T.Http({ method: "POST", path: "/accounts/{account_id}/sso_connectors" }),
625
+ ) as unknown as Schema.Schema<CreateSsoRequest>;
626
+
627
+ export interface CreateSsoResponse {
628
+ /** SSO Connector identifier tag. */
629
+ id?: string | null;
630
+ /** Timestamp for the creation of the SSO connector */
631
+ createdOn?: string | null;
632
+ emailDomain?: string | null;
633
+ enabled?: boolean | null;
634
+ /** Timestamp for the last update of the SSO connector */
635
+ updatedOn?: string | null;
636
+ /** Controls the display of FedRAMP language to the user during SSO login */
637
+ useFedrampLanguage?: boolean | null;
638
+ verification?: {
639
+ code?: string | null;
640
+ status?: "awaiting" | "pending" | "failed" | "verified" | null;
641
+ } | null;
642
+ }
643
+
644
+ export const CreateSsoResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
645
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
646
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
647
+ emailDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
648
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
649
+ updatedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
650
+ useFedrampLanguage: Schema.optional(
651
+ Schema.Union([Schema.Boolean, Schema.Null]),
652
+ ),
653
+ verification: Schema.optional(
654
+ Schema.Union([
655
+ Schema.Struct({
656
+ code: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
657
+ status: Schema.optional(
658
+ Schema.Union([
659
+ Schema.Literals(["awaiting", "pending", "failed", "verified"]),
660
+ Schema.Null,
661
+ ]),
662
+ ),
663
+ }),
664
+ Schema.Null,
665
+ ]),
666
+ ),
667
+ }).pipe(
668
+ Schema.encodeKeys({
669
+ id: "id",
670
+ createdOn: "created_on",
671
+ emailDomain: "email_domain",
672
+ enabled: "enabled",
673
+ updatedOn: "updated_on",
674
+ useFedrampLanguage: "use_fedramp_language",
675
+ verification: "verification",
676
+ }),
677
+ ) as unknown as Schema.Schema<CreateSsoResponse>;
678
+
679
+ export type CreateSsoError = DefaultErrors;
680
+
681
+ export const createSso: API.OperationMethod<
682
+ CreateSsoRequest,
683
+ CreateSsoResponse,
684
+ CreateSsoError,
685
+ Credentials | HttpClient.HttpClient
686
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
687
+ input: CreateSsoRequest,
688
+ output: CreateSsoResponse,
689
+ errors: [],
690
+ }));
691
+
692
+ export interface PatchSsoRequest {
693
+ ssoConnectorId: string;
694
+ /** Path param: Account identifier tag. */
695
+ accountId: string;
696
+ /** Body param: SSO Connector enabled state */
697
+ enabled?: boolean;
698
+ /** Body param: Controls the display of FedRAMP language to the user during SSO login */
699
+ useFedrampLanguage?: boolean;
700
+ }
701
+
702
+ export const PatchSsoRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
703
+ ssoConnectorId: Schema.String.pipe(T.HttpPath("ssoConnectorId")),
704
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
705
+ enabled: Schema.optional(Schema.Boolean),
706
+ useFedrampLanguage: Schema.optional(Schema.Boolean),
707
+ }).pipe(
708
+ Schema.encodeKeys({
709
+ enabled: "enabled",
710
+ useFedrampLanguage: "use_fedramp_language",
711
+ }),
712
+ T.Http({
713
+ method: "PATCH",
714
+ path: "/accounts/{account_id}/sso_connectors/{ssoConnectorId}",
715
+ }),
716
+ ) as unknown as Schema.Schema<PatchSsoRequest>;
717
+
718
+ export interface PatchSsoResponse {
719
+ /** SSO Connector identifier tag. */
720
+ id?: string | null;
721
+ /** Timestamp for the creation of the SSO connector */
722
+ createdOn?: string | null;
723
+ emailDomain?: string | null;
724
+ enabled?: boolean | null;
725
+ /** Timestamp for the last update of the SSO connector */
726
+ updatedOn?: string | null;
727
+ /** Controls the display of FedRAMP language to the user during SSO login */
728
+ useFedrampLanguage?: boolean | null;
729
+ verification?: {
730
+ code?: string | null;
731
+ status?: "awaiting" | "pending" | "failed" | "verified" | null;
732
+ } | null;
733
+ }
734
+
735
+ export const PatchSsoResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
736
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
737
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
738
+ emailDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
739
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
740
+ updatedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
741
+ useFedrampLanguage: Schema.optional(
742
+ Schema.Union([Schema.Boolean, Schema.Null]),
743
+ ),
744
+ verification: Schema.optional(
745
+ Schema.Union([
746
+ Schema.Struct({
747
+ code: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
748
+ status: Schema.optional(
749
+ Schema.Union([
750
+ Schema.Literals(["awaiting", "pending", "failed", "verified"]),
751
+ Schema.Null,
752
+ ]),
753
+ ),
754
+ }),
755
+ Schema.Null,
756
+ ]),
757
+ ),
758
+ }).pipe(
759
+ Schema.encodeKeys({
760
+ id: "id",
761
+ createdOn: "created_on",
762
+ emailDomain: "email_domain",
763
+ enabled: "enabled",
764
+ updatedOn: "updated_on",
765
+ useFedrampLanguage: "use_fedramp_language",
766
+ verification: "verification",
767
+ }),
768
+ ) as unknown as Schema.Schema<PatchSsoResponse>;
769
+
770
+ export type PatchSsoError = DefaultErrors;
771
+
772
+ export const patchSso: API.OperationMethod<
773
+ PatchSsoRequest,
774
+ PatchSsoResponse,
775
+ PatchSsoError,
776
+ Credentials | HttpClient.HttpClient
777
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
778
+ input: PatchSsoRequest,
779
+ output: PatchSsoResponse,
780
+ errors: [],
781
+ }));
782
+
783
+ export interface DeleteSsoRequest {
784
+ ssoConnectorId: string;
785
+ /** Account identifier tag. */
786
+ accountId: string;
787
+ }
788
+
789
+ export const DeleteSsoRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
790
+ ssoConnectorId: Schema.String.pipe(T.HttpPath("ssoConnectorId")),
791
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
792
+ }).pipe(
793
+ T.Http({
794
+ method: "DELETE",
795
+ path: "/accounts/{account_id}/sso_connectors/{ssoConnectorId}",
796
+ }),
797
+ ) as unknown as Schema.Schema<DeleteSsoRequest>;
798
+
799
+ export interface DeleteSsoResponse {
800
+ /** Identifier */
801
+ id: string;
802
+ }
803
+
804
+ export const DeleteSsoResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
805
+ id: Schema.String,
806
+ }) as unknown as Schema.Schema<DeleteSsoResponse>;
807
+
808
+ export type DeleteSsoError = DefaultErrors;
809
+
810
+ export const deleteSso: API.OperationMethod<
811
+ DeleteSsoRequest,
812
+ DeleteSsoResponse,
813
+ DeleteSsoError,
814
+ Credentials | HttpClient.HttpClient
815
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
816
+ input: DeleteSsoRequest,
817
+ output: DeleteSsoResponse,
818
+ errors: [],
819
+ }));
820
+
821
+ // =============================================================================
822
+ // UserGroup
823
+ // =============================================================================
824
+
825
+ export interface GetUserGroupRequest {
826
+ userGroupId: string;
827
+ /** Account identifier tag. */
828
+ accountId: string;
829
+ }
830
+
831
+ export const GetUserGroupRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
832
+ userGroupId: Schema.String.pipe(T.HttpPath("userGroupId")),
833
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
834
+ }).pipe(
835
+ T.Http({
836
+ method: "GET",
837
+ path: "/accounts/{account_id}/iam/user_groups/{userGroupId}",
838
+ }),
839
+ ) as unknown as Schema.Schema<GetUserGroupRequest>;
840
+
841
+ export interface GetUserGroupResponse {
842
+ /** User Group identifier tag. */
843
+ id: string;
844
+ /** Timestamp for the creation of the user group */
845
+ createdOn: string;
846
+ /** Last time the user group was modified. */
847
+ modifiedOn: string;
848
+ /** Name of the user group. */
849
+ name: string;
850
+ /** Policies attached to the User group */
851
+ policies?:
852
+ | {
853
+ id?: string | null;
854
+ access?: "allow" | "deny" | null;
855
+ permissionGroups?: { id: string }[] | null;
856
+ resourceGroups?: { id: string }[] | null;
857
+ }[]
858
+ | null;
859
+ }
860
+
861
+ export const GetUserGroupResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
862
+ id: Schema.String,
863
+ createdOn: Schema.String,
864
+ modifiedOn: Schema.String,
865
+ name: Schema.String,
866
+ policies: Schema.optional(
867
+ Schema.Union([
868
+ Schema.Array(
869
+ Schema.Struct({
870
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
871
+ access: Schema.optional(
872
+ Schema.Union([Schema.Literals(["allow", "deny"]), Schema.Null]),
873
+ ),
874
+ permissionGroups: Schema.optional(
875
+ Schema.Union([
876
+ Schema.Array(
877
+ Schema.Struct({
878
+ id: Schema.String,
879
+ }),
880
+ ),
881
+ Schema.Null,
882
+ ]),
883
+ ),
884
+ resourceGroups: Schema.optional(
885
+ Schema.Union([
886
+ Schema.Array(
887
+ Schema.Struct({
888
+ id: Schema.String,
889
+ }),
890
+ ),
891
+ Schema.Null,
892
+ ]),
893
+ ),
894
+ }).pipe(
895
+ Schema.encodeKeys({
896
+ id: "id",
897
+ access: "access",
898
+ permissionGroups: "permission_groups",
899
+ resourceGroups: "resource_groups",
900
+ }),
901
+ ),
902
+ ),
903
+ Schema.Null,
904
+ ]),
905
+ ),
906
+ }).pipe(
907
+ Schema.encodeKeys({
908
+ id: "id",
909
+ createdOn: "created_on",
910
+ modifiedOn: "modified_on",
911
+ name: "name",
912
+ policies: "policies",
913
+ }),
914
+ ) as unknown as Schema.Schema<GetUserGroupResponse>;
915
+
916
+ export type GetUserGroupError = DefaultErrors;
917
+
918
+ export const getUserGroup: API.OperationMethod<
919
+ GetUserGroupRequest,
920
+ GetUserGroupResponse,
921
+ GetUserGroupError,
922
+ Credentials | HttpClient.HttpClient
923
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
924
+ input: GetUserGroupRequest,
925
+ output: GetUserGroupResponse,
926
+ errors: [],
927
+ }));
928
+
929
+ export interface ListUserGroupsRequest {
930
+ /** Path param: Account identifier tag. */
931
+ accountId: string;
932
+ /** Query param: ID of the user group to be fetched. */
933
+ id?: string;
934
+ /** Query param: The sort order of returned user groups by name. Default sort order is ascending. To switch to descending, set this parameter to "desc" */
935
+ direction?: string;
936
+ /** Query param: A string used for searching for user groups containing that substring. */
937
+ fuzzyName?: string;
938
+ /** Query param: Name of the user group to be fetched. */
939
+ name?: string;
940
+ }
941
+
942
+ export const ListUserGroupsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
943
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
944
+ id: Schema.optional(Schema.String).pipe(T.HttpQuery("id")),
945
+ direction: Schema.optional(Schema.String).pipe(T.HttpQuery("direction")),
946
+ fuzzyName: Schema.optional(Schema.String).pipe(T.HttpQuery("fuzzyName")),
947
+ name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
948
+ }).pipe(
949
+ T.Http({ method: "GET", path: "/accounts/{account_id}/iam/user_groups" }),
950
+ ) as unknown as Schema.Schema<ListUserGroupsRequest>;
951
+
952
+ export type ListUserGroupsResponse = {
953
+ id: string;
954
+ createdOn: string;
955
+ modifiedOn: string;
956
+ name: string;
957
+ policies?:
958
+ | {
959
+ id?: string | null;
960
+ access?: "allow" | "deny" | null;
961
+ permissionGroups?: { id: string }[] | null;
962
+ resourceGroups?: { id: string }[] | null;
963
+ }[]
964
+ | null;
965
+ }[];
966
+
967
+ export const ListUserGroupsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
968
+ Schema.Struct({
969
+ id: Schema.String,
970
+ createdOn: Schema.String,
971
+ modifiedOn: Schema.String,
972
+ name: Schema.String,
973
+ policies: Schema.optional(
974
+ Schema.Union([
975
+ Schema.Array(
976
+ Schema.Struct({
977
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
978
+ access: Schema.optional(
979
+ Schema.Union([Schema.Literals(["allow", "deny"]), Schema.Null]),
980
+ ),
981
+ permissionGroups: Schema.optional(
982
+ Schema.Union([
983
+ Schema.Array(
984
+ Schema.Struct({
985
+ id: Schema.String,
986
+ }),
987
+ ),
988
+ Schema.Null,
989
+ ]),
990
+ ),
991
+ resourceGroups: Schema.optional(
992
+ Schema.Union([
993
+ Schema.Array(
994
+ Schema.Struct({
995
+ id: Schema.String,
996
+ }),
997
+ ),
998
+ Schema.Null,
999
+ ]),
1000
+ ),
1001
+ }).pipe(
1002
+ Schema.encodeKeys({
1003
+ id: "id",
1004
+ access: "access",
1005
+ permissionGroups: "permission_groups",
1006
+ resourceGroups: "resource_groups",
1007
+ }),
1008
+ ),
1009
+ ),
1010
+ Schema.Null,
1011
+ ]),
1012
+ ),
1013
+ }).pipe(
1014
+ Schema.encodeKeys({
1015
+ id: "id",
1016
+ createdOn: "created_on",
1017
+ modifiedOn: "modified_on",
1018
+ name: "name",
1019
+ policies: "policies",
1020
+ }),
1021
+ ),
1022
+ ) as unknown as Schema.Schema<ListUserGroupsResponse>;
1023
+
1024
+ export type ListUserGroupsError = DefaultErrors;
1025
+
1026
+ export const listUserGroups: API.OperationMethod<
1027
+ ListUserGroupsRequest,
1028
+ ListUserGroupsResponse,
1029
+ ListUserGroupsError,
1030
+ Credentials | HttpClient.HttpClient
1031
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1032
+ input: ListUserGroupsRequest,
1033
+ output: ListUserGroupsResponse,
1034
+ errors: [],
1035
+ }));
1036
+
1037
+ export interface CreateUserGroupRequest {
1038
+ /** Path param: Account identifier tag. */
1039
+ accountId: string;
1040
+ /** Body param: Name of the User group. */
1041
+ name: string;
1042
+ /** Body param: Policies attached to the User group */
1043
+ policies: {
1044
+ access: "allow" | "deny";
1045
+ permissionGroups: { id: string }[];
1046
+ resourceGroups: { id: string }[];
1047
+ }[];
1048
+ }
1049
+
1050
+ export const CreateUserGroupRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1051
+ {
1052
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1053
+ name: Schema.String,
1054
+ policies: Schema.Array(
1055
+ Schema.Struct({
1056
+ access: Schema.Literals(["allow", "deny"]),
1057
+ permissionGroups: Schema.Array(
1058
+ Schema.Struct({
1059
+ id: Schema.String,
1060
+ }),
1061
+ ),
1062
+ resourceGroups: Schema.Array(
1063
+ Schema.Struct({
1064
+ id: Schema.String,
1065
+ }),
1066
+ ),
1067
+ }).pipe(
1068
+ Schema.encodeKeys({
1069
+ access: "access",
1070
+ permissionGroups: "permission_groups",
1071
+ resourceGroups: "resource_groups",
1072
+ }),
1073
+ ),
1074
+ ),
1075
+ },
1076
+ ).pipe(
1077
+ T.Http({ method: "POST", path: "/accounts/{account_id}/iam/user_groups" }),
1078
+ ) as unknown as Schema.Schema<CreateUserGroupRequest>;
1079
+
1080
+ export interface CreateUserGroupResponse {
1081
+ /** User Group identifier tag. */
1082
+ id: string;
1083
+ /** Timestamp for the creation of the user group */
1084
+ createdOn: string;
1085
+ /** Last time the user group was modified. */
1086
+ modifiedOn: string;
1087
+ /** Name of the user group. */
1088
+ name: string;
1089
+ /** Policies attached to the User group */
1090
+ policies?:
1091
+ | {
1092
+ id?: string | null;
1093
+ access?: "allow" | "deny" | null;
1094
+ permissionGroups?: { id: string }[] | null;
1095
+ resourceGroups?: { id: string }[] | null;
1096
+ }[]
1097
+ | null;
1098
+ }
1099
+
1100
+ export const CreateUserGroupResponse =
1101
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1102
+ id: Schema.String,
1103
+ createdOn: Schema.String,
1104
+ modifiedOn: Schema.String,
1105
+ name: Schema.String,
1106
+ policies: Schema.optional(
1107
+ Schema.Union([
1108
+ Schema.Array(
1109
+ Schema.Struct({
1110
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1111
+ access: Schema.optional(
1112
+ Schema.Union([Schema.Literals(["allow", "deny"]), Schema.Null]),
1113
+ ),
1114
+ permissionGroups: Schema.optional(
1115
+ Schema.Union([
1116
+ Schema.Array(
1117
+ Schema.Struct({
1118
+ id: Schema.String,
1119
+ }),
1120
+ ),
1121
+ Schema.Null,
1122
+ ]),
1123
+ ),
1124
+ resourceGroups: Schema.optional(
1125
+ Schema.Union([
1126
+ Schema.Array(
1127
+ Schema.Struct({
1128
+ id: Schema.String,
1129
+ }),
1130
+ ),
1131
+ Schema.Null,
1132
+ ]),
1133
+ ),
1134
+ }).pipe(
1135
+ Schema.encodeKeys({
1136
+ id: "id",
1137
+ access: "access",
1138
+ permissionGroups: "permission_groups",
1139
+ resourceGroups: "resource_groups",
1140
+ }),
1141
+ ),
1142
+ ),
1143
+ Schema.Null,
1144
+ ]),
1145
+ ),
1146
+ }).pipe(
1147
+ Schema.encodeKeys({
1148
+ id: "id",
1149
+ createdOn: "created_on",
1150
+ modifiedOn: "modified_on",
1151
+ name: "name",
1152
+ policies: "policies",
1153
+ }),
1154
+ ) as unknown as Schema.Schema<CreateUserGroupResponse>;
1155
+
1156
+ export type CreateUserGroupError = DefaultErrors;
1157
+
1158
+ export const createUserGroup: API.OperationMethod<
1159
+ CreateUserGroupRequest,
1160
+ CreateUserGroupResponse,
1161
+ CreateUserGroupError,
1162
+ Credentials | HttpClient.HttpClient
1163
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1164
+ input: CreateUserGroupRequest,
1165
+ output: CreateUserGroupResponse,
1166
+ errors: [],
1167
+ }));
1168
+
1169
+ export interface UpdateUserGroupRequest {
1170
+ userGroupId: string;
1171
+ /** Path param: Account identifier tag. */
1172
+ accountId: string;
1173
+ /** Body param: Name of the User group. */
1174
+ name?: string;
1175
+ /** Body param: Policies attached to the User group */
1176
+ policies?: {
1177
+ id: string;
1178
+ access: "allow" | "deny";
1179
+ permissionGroups: { id: string }[];
1180
+ resourceGroups: { id: string }[];
1181
+ }[];
1182
+ }
1183
+
1184
+ export const UpdateUserGroupRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1185
+ {
1186
+ userGroupId: Schema.String.pipe(T.HttpPath("userGroupId")),
1187
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1188
+ name: Schema.optional(Schema.String),
1189
+ policies: Schema.optional(
1190
+ Schema.Array(
1191
+ Schema.Struct({
1192
+ id: Schema.String,
1193
+ access: Schema.Literals(["allow", "deny"]),
1194
+ permissionGroups: Schema.Array(
1195
+ Schema.Struct({
1196
+ id: Schema.String,
1197
+ }),
1198
+ ),
1199
+ resourceGroups: Schema.Array(
1200
+ Schema.Struct({
1201
+ id: Schema.String,
1202
+ }),
1203
+ ),
1204
+ }).pipe(
1205
+ Schema.encodeKeys({
1206
+ id: "id",
1207
+ access: "access",
1208
+ permissionGroups: "permission_groups",
1209
+ resourceGroups: "resource_groups",
1210
+ }),
1211
+ ),
1212
+ ),
1213
+ ),
1214
+ },
1215
+ ).pipe(
1216
+ T.Http({
1217
+ method: "PUT",
1218
+ path: "/accounts/{account_id}/iam/user_groups/{userGroupId}",
1219
+ }),
1220
+ ) as unknown as Schema.Schema<UpdateUserGroupRequest>;
1221
+
1222
+ export interface UpdateUserGroupResponse {
1223
+ /** User Group identifier tag. */
1224
+ id: string;
1225
+ /** Timestamp for the creation of the user group */
1226
+ createdOn: string;
1227
+ /** Last time the user group was modified. */
1228
+ modifiedOn: string;
1229
+ /** Name of the user group. */
1230
+ name: string;
1231
+ /** Policies attached to the User group */
1232
+ policies?:
1233
+ | {
1234
+ id?: string | null;
1235
+ access?: "allow" | "deny" | null;
1236
+ permissionGroups?: { id: string }[] | null;
1237
+ resourceGroups?: { id: string }[] | null;
1238
+ }[]
1239
+ | null;
1240
+ }
1241
+
1242
+ export const UpdateUserGroupResponse =
1243
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1244
+ id: Schema.String,
1245
+ createdOn: Schema.String,
1246
+ modifiedOn: Schema.String,
1247
+ name: Schema.String,
1248
+ policies: Schema.optional(
1249
+ Schema.Union([
1250
+ Schema.Array(
1251
+ Schema.Struct({
1252
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1253
+ access: Schema.optional(
1254
+ Schema.Union([Schema.Literals(["allow", "deny"]), Schema.Null]),
1255
+ ),
1256
+ permissionGroups: Schema.optional(
1257
+ Schema.Union([
1258
+ Schema.Array(
1259
+ Schema.Struct({
1260
+ id: Schema.String,
1261
+ }),
1262
+ ),
1263
+ Schema.Null,
1264
+ ]),
1265
+ ),
1266
+ resourceGroups: Schema.optional(
1267
+ Schema.Union([
1268
+ Schema.Array(
1269
+ Schema.Struct({
1270
+ id: Schema.String,
1271
+ }),
1272
+ ),
1273
+ Schema.Null,
1274
+ ]),
1275
+ ),
1276
+ }).pipe(
1277
+ Schema.encodeKeys({
1278
+ id: "id",
1279
+ access: "access",
1280
+ permissionGroups: "permission_groups",
1281
+ resourceGroups: "resource_groups",
1282
+ }),
1283
+ ),
1284
+ ),
1285
+ Schema.Null,
1286
+ ]),
1287
+ ),
1288
+ }).pipe(
1289
+ Schema.encodeKeys({
1290
+ id: "id",
1291
+ createdOn: "created_on",
1292
+ modifiedOn: "modified_on",
1293
+ name: "name",
1294
+ policies: "policies",
1295
+ }),
1296
+ ) as unknown as Schema.Schema<UpdateUserGroupResponse>;
1297
+
1298
+ export type UpdateUserGroupError = DefaultErrors;
1299
+
1300
+ export const updateUserGroup: API.OperationMethod<
1301
+ UpdateUserGroupRequest,
1302
+ UpdateUserGroupResponse,
1303
+ UpdateUserGroupError,
1304
+ Credentials | HttpClient.HttpClient
1305
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1306
+ input: UpdateUserGroupRequest,
1307
+ output: UpdateUserGroupResponse,
1308
+ errors: [],
1309
+ }));
1310
+
1311
+ export interface DeleteUserGroupRequest {
1312
+ userGroupId: string;
1313
+ /** Account identifier tag. */
1314
+ accountId: string;
1315
+ }
1316
+
1317
+ export const DeleteUserGroupRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1318
+ {
1319
+ userGroupId: Schema.String.pipe(T.HttpPath("userGroupId")),
1320
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1321
+ },
1322
+ ).pipe(
1323
+ T.Http({
1324
+ method: "DELETE",
1325
+ path: "/accounts/{account_id}/iam/user_groups/{userGroupId}",
1326
+ }),
1327
+ ) as unknown as Schema.Schema<DeleteUserGroupRequest>;
1328
+
1329
+ export interface DeleteUserGroupResponse {
1330
+ /** Identifier */
1331
+ id: string;
1332
+ }
1333
+
1334
+ export const DeleteUserGroupResponse =
1335
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1336
+ id: Schema.String,
1337
+ }) as unknown as Schema.Schema<DeleteUserGroupResponse>;
1338
+
1339
+ export type DeleteUserGroupError = DefaultErrors;
1340
+
1341
+ export const deleteUserGroup: API.OperationMethod<
1342
+ DeleteUserGroupRequest,
1343
+ DeleteUserGroupResponse,
1344
+ DeleteUserGroupError,
1345
+ Credentials | HttpClient.HttpClient
1346
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1347
+ input: DeleteUserGroupRequest,
1348
+ output: DeleteUserGroupResponse,
1349
+ errors: [],
1350
+ }));
1351
+
1352
+ // =============================================================================
1353
+ // UserGroupMember
1354
+ // =============================================================================
1355
+
1356
+ export interface ListUserGroupMembersRequest {
1357
+ userGroupId: string;
1358
+ /** Path param: Account identifier tag. */
1359
+ accountId: string;
1360
+ }
1361
+
1362
+ export const ListUserGroupMembersRequest =
1363
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1364
+ userGroupId: Schema.String.pipe(T.HttpPath("userGroupId")),
1365
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1366
+ }).pipe(
1367
+ T.Http({
1368
+ method: "GET",
1369
+ path: "/accounts/{account_id}/iam/user_groups/{userGroupId}/members",
1370
+ }),
1371
+ ) as unknown as Schema.Schema<ListUserGroupMembersRequest>;
1372
+
1373
+ export type ListUserGroupMembersResponse = {
1374
+ id: string;
1375
+ email?: string | null;
1376
+ status?: "accepted" | "pending" | null;
1377
+ }[];
1378
+
1379
+ export const ListUserGroupMembersResponse =
1380
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1381
+ Schema.Struct({
1382
+ id: Schema.String,
1383
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1384
+ status: Schema.optional(
1385
+ Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.Null]),
1386
+ ),
1387
+ }),
1388
+ ) as unknown as Schema.Schema<ListUserGroupMembersResponse>;
1389
+
1390
+ export type ListUserGroupMembersError = DefaultErrors;
1391
+
1392
+ export const listUserGroupMembers: API.OperationMethod<
1393
+ ListUserGroupMembersRequest,
1394
+ ListUserGroupMembersResponse,
1395
+ ListUserGroupMembersError,
1396
+ Credentials | HttpClient.HttpClient
1397
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1398
+ input: ListUserGroupMembersRequest,
1399
+ output: ListUserGroupMembersResponse,
1400
+ errors: [],
1401
+ }));
1402
+
1403
+ export interface CreateUserGroupMemberRequest {
1404
+ userGroupId: string;
1405
+ /** Path param: Account identifier tag. */
1406
+ accountId: string;
1407
+ /** Body param: */
1408
+ body: { id: string }[];
1409
+ }
1410
+
1411
+ export const CreateUserGroupMemberRequest =
1412
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1413
+ userGroupId: Schema.String.pipe(T.HttpPath("userGroupId")),
1414
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1415
+ body: Schema.Array(
1416
+ Schema.Struct({
1417
+ id: Schema.String,
1418
+ }),
1419
+ ).pipe(T.HttpBody()),
1420
+ }).pipe(
1421
+ T.Http({
1422
+ method: "POST",
1423
+ path: "/accounts/{account_id}/iam/user_groups/{userGroupId}/members",
1424
+ }),
1425
+ ) as unknown as Schema.Schema<CreateUserGroupMemberRequest>;
1426
+
1427
+ export interface CreateUserGroupMemberResponse {
1428
+ /** Account member identifier. */
1429
+ id: string;
1430
+ /** The contact email address of the user. */
1431
+ email?: string | null;
1432
+ /** The member's status in the account. */
1433
+ status?: "accepted" | "pending" | null;
1434
+ }
1435
+
1436
+ export const CreateUserGroupMemberResponse =
1437
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1438
+ id: Schema.String,
1439
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1440
+ status: Schema.optional(
1441
+ Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.Null]),
1442
+ ),
1443
+ }) as unknown as Schema.Schema<CreateUserGroupMemberResponse>;
1444
+
1445
+ export type CreateUserGroupMemberError = DefaultErrors | InvalidMember;
1446
+
1447
+ export const createUserGroupMember: API.OperationMethod<
1448
+ CreateUserGroupMemberRequest,
1449
+ CreateUserGroupMemberResponse,
1450
+ CreateUserGroupMemberError,
1451
+ Credentials | HttpClient.HttpClient
1452
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1453
+ input: CreateUserGroupMemberRequest,
1454
+ output: CreateUserGroupMemberResponse,
1455
+ errors: [InvalidMember],
1456
+ }));
1457
+
1458
+ export interface UpdateUserGroupMemberRequest {
1459
+ userGroupId: string;
1460
+ /** Path param: Account identifier tag. */
1461
+ accountId: string;
1462
+ /** Body param: Set/Replace members to a user group. */
1463
+ body: { id: string }[];
1464
+ }
1465
+
1466
+ export const UpdateUserGroupMemberRequest =
1467
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1468
+ userGroupId: Schema.String.pipe(T.HttpPath("userGroupId")),
1469
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1470
+ body: Schema.Array(
1471
+ Schema.Struct({
1472
+ id: Schema.String,
1473
+ }),
1474
+ ).pipe(T.HttpBody()),
1475
+ }).pipe(
1476
+ T.Http({
1477
+ method: "PUT",
1478
+ path: "/accounts/{account_id}/iam/user_groups/{userGroupId}/members",
1479
+ }),
1480
+ ) as unknown as Schema.Schema<UpdateUserGroupMemberRequest>;
1481
+
1482
+ export type UpdateUserGroupMemberResponse = {
1483
+ id: string;
1484
+ email?: string | null;
1485
+ status?: "accepted" | "pending" | null;
1486
+ }[];
1487
+
1488
+ export const UpdateUserGroupMemberResponse =
1489
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1490
+ Schema.Struct({
1491
+ id: Schema.String,
1492
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1493
+ status: Schema.optional(
1494
+ Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.Null]),
1495
+ ),
1496
+ }),
1497
+ ) as unknown as Schema.Schema<UpdateUserGroupMemberResponse>;
1498
+
1499
+ export type UpdateUserGroupMemberError = DefaultErrors;
1500
+
1501
+ export const updateUserGroupMember: API.OperationMethod<
1502
+ UpdateUserGroupMemberRequest,
1503
+ UpdateUserGroupMemberResponse,
1504
+ UpdateUserGroupMemberError,
1505
+ Credentials | HttpClient.HttpClient
1506
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1507
+ input: UpdateUserGroupMemberRequest,
1508
+ output: UpdateUserGroupMemberResponse,
1509
+ errors: [],
1510
+ }));
1511
+
1512
+ export interface DeleteUserGroupMemberRequest {
1513
+ userGroupId: string;
1514
+ memberId: string;
1515
+ /** Account identifier tag. */
1516
+ accountId: string;
1517
+ }
1518
+
1519
+ export const DeleteUserGroupMemberRequest =
1520
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1521
+ userGroupId: Schema.String.pipe(T.HttpPath("userGroupId")),
1522
+ memberId: Schema.String.pipe(T.HttpPath("memberId")),
1523
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1524
+ }).pipe(
1525
+ T.Http({
1526
+ method: "DELETE",
1527
+ path: "/accounts/{account_id}/iam/user_groups/{userGroupId}/members/{memberId}",
1528
+ }),
1529
+ ) as unknown as Schema.Schema<DeleteUserGroupMemberRequest>;
1530
+
1531
+ export interface DeleteUserGroupMemberResponse {
1532
+ /** Account member identifier. */
1533
+ id: string;
1534
+ /** The contact email address of the user. */
1535
+ email?: string | null;
1536
+ /** The member's status in the account. */
1537
+ status?: "accepted" | "pending" | null;
1538
+ }
1539
+
1540
+ export const DeleteUserGroupMemberResponse =
1541
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1542
+ id: Schema.String,
1543
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1544
+ status: Schema.optional(
1545
+ Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.Null]),
1546
+ ),
1547
+ }) as unknown as Schema.Schema<DeleteUserGroupMemberResponse>;
1548
+
1549
+ export type DeleteUserGroupMemberError = DefaultErrors | InvalidMember;
1550
+
1551
+ export const deleteUserGroupMember: API.OperationMethod<
1552
+ DeleteUserGroupMemberRequest,
1553
+ DeleteUserGroupMemberResponse,
1554
+ DeleteUserGroupMemberError,
1555
+ Credentials | HttpClient.HttpClient
1556
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1557
+ input: DeleteUserGroupMemberRequest,
1558
+ output: DeleteUserGroupMemberResponse,
1559
+ errors: [InvalidMember],
1560
+ }));
1561
+
1562
+ // =============================================================================
1563
+ // VerificationSso
1564
+ // =============================================================================
1565
+
1566
+ export interface BeginVerificationSsoRequest {
1567
+ ssoConnectorId: string;
1568
+ /** Account identifier tag. */
1569
+ accountId: string;
1570
+ }
1571
+
1572
+ export const BeginVerificationSsoRequest =
1573
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1574
+ ssoConnectorId: Schema.String.pipe(T.HttpPath("ssoConnectorId")),
1575
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1576
+ }).pipe(
1577
+ T.Http({
1578
+ method: "POST",
1579
+ path: "/accounts/{account_id}/sso_connectors/{ssoConnectorId}/begin_verification",
1580
+ }),
1581
+ ) as unknown as Schema.Schema<BeginVerificationSsoRequest>;
1582
+
1583
+ export interface BeginVerificationSsoResponse {
1584
+ errors: {
1585
+ code: number;
1586
+ message: string;
1587
+ documentationUrl?: string | null;
1588
+ source?: { pointer?: string | null } | null;
1589
+ }[];
1590
+ messages: {
1591
+ code: number;
1592
+ message: string;
1593
+ documentationUrl?: string | null;
1594
+ source?: { pointer?: string | null } | null;
1595
+ }[];
1596
+ /** Whether the API call was successful. */
1597
+ success: true;
1598
+ }
1599
+
1600
+ export const BeginVerificationSsoResponse =
1601
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1602
+ errors: Schema.Array(
1603
+ Schema.Struct({
1604
+ code: Schema.Number,
1605
+ message: Schema.String,
1606
+ documentationUrl: Schema.optional(
1607
+ Schema.Union([Schema.String, Schema.Null]),
1608
+ ),
1609
+ source: Schema.optional(
1610
+ Schema.Union([
1611
+ Schema.Struct({
1612
+ pointer: Schema.optional(
1613
+ Schema.Union([Schema.String, Schema.Null]),
1614
+ ),
1615
+ }),
1616
+ Schema.Null,
1617
+ ]),
1618
+ ),
1619
+ }).pipe(
1620
+ Schema.encodeKeys({
1621
+ code: "code",
1622
+ message: "message",
1623
+ documentationUrl: "documentation_url",
1624
+ source: "source",
1625
+ }),
1626
+ ),
1627
+ ),
1628
+ messages: Schema.Array(
1629
+ Schema.Struct({
1630
+ code: Schema.Number,
1631
+ message: Schema.String,
1632
+ documentationUrl: Schema.optional(
1633
+ Schema.Union([Schema.String, Schema.Null]),
1634
+ ),
1635
+ source: Schema.optional(
1636
+ Schema.Union([
1637
+ Schema.Struct({
1638
+ pointer: Schema.optional(
1639
+ Schema.Union([Schema.String, Schema.Null]),
1640
+ ),
1641
+ }),
1642
+ Schema.Null,
1643
+ ]),
1644
+ ),
1645
+ }).pipe(
1646
+ Schema.encodeKeys({
1647
+ code: "code",
1648
+ message: "message",
1649
+ documentationUrl: "documentation_url",
1650
+ source: "source",
1651
+ }),
1652
+ ),
1653
+ ),
1654
+ success: Schema.Literal(true),
1655
+ }) as unknown as Schema.Schema<BeginVerificationSsoResponse>;
1656
+
1657
+ export type BeginVerificationSsoError = DefaultErrors;
1658
+
1659
+ export const beginVerificationSso: API.OperationMethod<
1660
+ BeginVerificationSsoRequest,
1661
+ BeginVerificationSsoResponse,
1662
+ BeginVerificationSsoError,
1663
+ Credentials | HttpClient.HttpClient
1664
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1665
+ input: BeginVerificationSsoRequest,
1666
+ output: BeginVerificationSsoResponse,
1667
+ errors: [],
1668
+ }));