@distilled.cloud/cloudflare 0.0.0-john

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 (562) hide show
  1. package/README.md +59 -0
  2. package/lib/auth.d.ts +14 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +13 -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 +12 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +292 -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 +68 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +136 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +48 -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/sensitive.d.ts +5 -0
  39. package/lib/sensitive.d.ts.map +1 -0
  40. package/lib/sensitive.js +5 -0
  41. package/lib/sensitive.js.map +1 -0
  42. package/lib/services/abuse-reports.d.ts +296 -0
  43. package/lib/services/abuse-reports.d.ts.map +1 -0
  44. package/lib/services/abuse-reports.js +414 -0
  45. package/lib/services/abuse-reports.js.map +1 -0
  46. package/lib/services/accounts.d.ts +766 -0
  47. package/lib/services/accounts.d.ts.map +1 -0
  48. package/lib/services/accounts.js +860 -0
  49. package/lib/services/accounts.js.map +1 -0
  50. package/lib/services/acm.d.ts +73 -0
  51. package/lib/services/acm.d.ts.map +1 -0
  52. package/lib/services/acm.js +80 -0
  53. package/lib/services/acm.js.map +1 -0
  54. package/lib/services/addressing.d.ts +1321 -0
  55. package/lib/services/addressing.d.ts.map +1 -0
  56. package/lib/services/addressing.js +1863 -0
  57. package/lib/services/addressing.js.map +1 -0
  58. package/lib/services/ai-gateway.d.ts +1137 -0
  59. package/lib/services/ai-gateway.d.ts.map +1 -0
  60. package/lib/services/ai-gateway.js +1830 -0
  61. package/lib/services/ai-gateway.js.map +1 -0
  62. package/lib/services/ai.d.ts +297 -0
  63. package/lib/services/ai.d.ts.map +1 -0
  64. package/lib/services/ai.js +352 -0
  65. package/lib/services/ai.js.map +1 -0
  66. package/lib/services/aisearch.d.ts +1069 -0
  67. package/lib/services/aisearch.d.ts.map +1 -0
  68. package/lib/services/aisearch.js +2542 -0
  69. package/lib/services/aisearch.js.map +1 -0
  70. package/lib/services/alerting.d.ts +855 -0
  71. package/lib/services/alerting.d.ts.map +1 -0
  72. package/lib/services/alerting.js +1445 -0
  73. package/lib/services/alerting.js.map +1 -0
  74. package/lib/services/api-gateway.d.ts +1088 -0
  75. package/lib/services/api-gateway.d.ts.map +1 -0
  76. package/lib/services/api-gateway.js +1655 -0
  77. package/lib/services/api-gateway.js.map +1 -0
  78. package/lib/services/argo.d.ts +101 -0
  79. package/lib/services/argo.d.ts.map +1 -0
  80. package/lib/services/argo.js +113 -0
  81. package/lib/services/argo.js.map +1 -0
  82. package/lib/services/audit-logs.d.ts +46 -0
  83. package/lib/services/audit-logs.d.ts.map +1 -0
  84. package/lib/services/audit-logs.js +37 -0
  85. package/lib/services/audit-logs.js.map +1 -0
  86. package/lib/services/billing.d.ts +62 -0
  87. package/lib/services/billing.d.ts.map +1 -0
  88. package/lib/services/billing.js +102 -0
  89. package/lib/services/billing.js.map +1 -0
  90. package/lib/services/bot-management.d.ts +124 -0
  91. package/lib/services/bot-management.d.ts.map +1 -0
  92. package/lib/services/bot-management.js +262 -0
  93. package/lib/services/bot-management.js.map +1 -0
  94. package/lib/services/botnet-feed.d.ts +65 -0
  95. package/lib/services/botnet-feed.d.ts.map +1 -0
  96. package/lib/services/botnet-feed.js +88 -0
  97. package/lib/services/botnet-feed.js.map +1 -0
  98. package/lib/services/brand-protection.d.ts +194 -0
  99. package/lib/services/brand-protection.d.ts.map +1 -0
  100. package/lib/services/brand-protection.js +221 -0
  101. package/lib/services/brand-protection.js.map +1 -0
  102. package/lib/services/browser-rendering.d.ts +857 -0
  103. package/lib/services/browser-rendering.d.ts.map +1 -0
  104. package/lib/services/browser-rendering.js +1142 -0
  105. package/lib/services/browser-rendering.js.map +1 -0
  106. package/lib/services/cache.d.ts +287 -0
  107. package/lib/services/cache.d.ts.map +1 -0
  108. package/lib/services/cache.js +354 -0
  109. package/lib/services/cache.js.map +1 -0
  110. package/lib/services/calls.d.ts +223 -0
  111. package/lib/services/calls.d.ts.map +1 -0
  112. package/lib/services/calls.js +188 -0
  113. package/lib/services/calls.js.map +1 -0
  114. package/lib/services/certificate-authorities.d.ts +40 -0
  115. package/lib/services/certificate-authorities.d.ts.map +1 -0
  116. package/lib/services/certificate-authorities.js +49 -0
  117. package/lib/services/certificate-authorities.js.map +1 -0
  118. package/lib/services/client-certificates.d.ts +288 -0
  119. package/lib/services/client-certificates.d.ts.map +1 -0
  120. package/lib/services/client-certificates.js +379 -0
  121. package/lib/services/client-certificates.js.map +1 -0
  122. package/lib/services/cloud-connector.d.ts +88 -0
  123. package/lib/services/cloud-connector.d.ts.map +1 -0
  124. package/lib/services/cloud-connector.js +97 -0
  125. package/lib/services/cloud-connector.js.map +1 -0
  126. package/lib/services/cloudforce-one.d.ts +1387 -0
  127. package/lib/services/cloudforce-one.d.ts.map +1 -0
  128. package/lib/services/cloudforce-one.js +1741 -0
  129. package/lib/services/cloudforce-one.js.map +1 -0
  130. package/lib/services/connectivity.d.ts +291 -0
  131. package/lib/services/connectivity.d.ts.map +1 -0
  132. package/lib/services/connectivity.js +404 -0
  133. package/lib/services/connectivity.js.map +1 -0
  134. package/lib/services/content-scanning.d.ts +156 -0
  135. package/lib/services/content-scanning.d.ts.map +1 -0
  136. package/lib/services/content-scanning.js +175 -0
  137. package/lib/services/content-scanning.js.map +1 -0
  138. package/lib/services/custom-certificates.d.ts +240 -0
  139. package/lib/services/custom-certificates.d.ts.map +1 -0
  140. package/lib/services/custom-certificates.js +336 -0
  141. package/lib/services/custom-certificates.js.map +1 -0
  142. package/lib/services/custom-hostnames.d.ts +590 -0
  143. package/lib/services/custom-hostnames.d.ts.map +1 -0
  144. package/lib/services/custom-hostnames.js +1204 -0
  145. package/lib/services/custom-hostnames.js.map +1 -0
  146. package/lib/services/custom-nameservers.d.ts +87 -0
  147. package/lib/services/custom-nameservers.d.ts.map +1 -0
  148. package/lib/services/custom-nameservers.js +95 -0
  149. package/lib/services/custom-nameservers.js.map +1 -0
  150. package/lib/services/custom-pages.d.ts +89 -0
  151. package/lib/services/custom-pages.d.ts.map +1 -0
  152. package/lib/services/custom-pages.js +140 -0
  153. package/lib/services/custom-pages.js.map +1 -0
  154. package/lib/services/d1.d.ts +392 -0
  155. package/lib/services/d1.d.ts.map +1 -0
  156. package/lib/services/d1.js +487 -0
  157. package/lib/services/d1.js.map +1 -0
  158. package/lib/services/dcv-delegation.d.ts +24 -0
  159. package/lib/services/dcv-delegation.d.ts.map +1 -0
  160. package/lib/services/dcv-delegation.js +24 -0
  161. package/lib/services/dcv-delegation.js.map +1 -0
  162. package/lib/services/diagnostics.d.ts +208 -0
  163. package/lib/services/diagnostics.d.ts.map +1 -0
  164. package/lib/services/diagnostics.js +288 -0
  165. package/lib/services/diagnostics.js.map +1 -0
  166. package/lib/services/dns-firewall.d.ts +317 -0
  167. package/lib/services/dns-firewall.d.ts.map +1 -0
  168. package/lib/services/dns-firewall.js +400 -0
  169. package/lib/services/dns-firewall.js.map +1 -0
  170. package/lib/services/dns.d.ts +3065 -0
  171. package/lib/services/dns.d.ts.map +1 -0
  172. package/lib/services/dns.js +4627 -0
  173. package/lib/services/dns.js.map +1 -0
  174. package/lib/services/durable-objects.d.ts +92 -0
  175. package/lib/services/durable-objects.d.ts.map +1 -0
  176. package/lib/services/durable-objects.js +103 -0
  177. package/lib/services/durable-objects.js.map +1 -0
  178. package/lib/services/email-routing.d.ts +598 -0
  179. package/lib/services/email-routing.d.ts.map +1 -0
  180. package/lib/services/email-routing.js +715 -0
  181. package/lib/services/email-routing.js.map +1 -0
  182. package/lib/services/email-security.d.ts +1389 -0
  183. package/lib/services/email-security.d.ts.map +1 -0
  184. package/lib/services/email-security.js +2261 -0
  185. package/lib/services/email-security.js.map +1 -0
  186. package/lib/services/filters.d.ts +197 -0
  187. package/lib/services/filters.d.ts.map +1 -0
  188. package/lib/services/filters.js +168 -0
  189. package/lib/services/filters.js.map +1 -0
  190. package/lib/services/firewall.d.ts +1352 -0
  191. package/lib/services/firewall.d.ts.map +1 -0
  192. package/lib/services/firewall.js +2084 -0
  193. package/lib/services/firewall.js.map +1 -0
  194. package/lib/services/healthchecks.d.ts +507 -0
  195. package/lib/services/healthchecks.d.ts.map +1 -0
  196. package/lib/services/healthchecks.js +867 -0
  197. package/lib/services/healthchecks.js.map +1 -0
  198. package/lib/services/hostnames.d.ts +86 -0
  199. package/lib/services/hostnames.d.ts.map +1 -0
  200. package/lib/services/hostnames.js +111 -0
  201. package/lib/services/hostnames.js.map +1 -0
  202. package/lib/services/hyperdrive.d.ts +203 -0
  203. package/lib/services/hyperdrive.d.ts.map +1 -0
  204. package/lib/services/hyperdrive.js +300 -0
  205. package/lib/services/hyperdrive.js.map +1 -0
  206. package/lib/services/iam.d.ts +657 -0
  207. package/lib/services/iam.d.ts.map +1 -0
  208. package/lib/services/iam.js +843 -0
  209. package/lib/services/iam.js.map +1 -0
  210. package/lib/services/images.d.ts +427 -0
  211. package/lib/services/images.d.ts.map +1 -0
  212. package/lib/services/images.js +444 -0
  213. package/lib/services/images.js.map +1 -0
  214. package/lib/services/intel.d.ts +865 -0
  215. package/lib/services/intel.d.ts.map +1 -0
  216. package/lib/services/intel.js +1266 -0
  217. package/lib/services/intel.js.map +1 -0
  218. package/lib/services/ips.d.ts +28 -0
  219. package/lib/services/ips.d.ts.map +1 -0
  220. package/lib/services/ips.js +39 -0
  221. package/lib/services/ips.js.map +1 -0
  222. package/lib/services/keyless-certificates.d.ts +197 -0
  223. package/lib/services/keyless-certificates.d.ts.map +1 -0
  224. package/lib/services/keyless-certificates.js +229 -0
  225. package/lib/services/keyless-certificates.js.map +1 -0
  226. package/lib/services/kv.d.ts +369 -0
  227. package/lib/services/kv.d.ts.map +1 -0
  228. package/lib/services/kv.js +453 -0
  229. package/lib/services/kv.js.map +1 -0
  230. package/lib/services/leaked-credential-checks.d.ts +129 -0
  231. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  232. package/lib/services/leaked-credential-checks.js +138 -0
  233. package/lib/services/leaked-credential-checks.js.map +1 -0
  234. package/lib/services/load-balancers.d.ts +1973 -0
  235. package/lib/services/load-balancers.d.ts.map +1 -0
  236. package/lib/services/load-balancers.js +3181 -0
  237. package/lib/services/load-balancers.js.map +1 -0
  238. package/lib/services/logpush.d.ts +401 -0
  239. package/lib/services/logpush.d.ts.map +1 -0
  240. package/lib/services/logpush.js +732 -0
  241. package/lib/services/logpush.js.map +1 -0
  242. package/lib/services/logs.d.ts +125 -0
  243. package/lib/services/logs.d.ts.map +1 -0
  244. package/lib/services/logs.js +149 -0
  245. package/lib/services/logs.js.map +1 -0
  246. package/lib/services/magic-cloud-networking.d.ts +1892 -0
  247. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  248. package/lib/services/magic-cloud-networking.js +5291 -0
  249. package/lib/services/magic-cloud-networking.js.map +1 -0
  250. package/lib/services/magic-network-monitoring.d.ts +379 -0
  251. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  252. package/lib/services/magic-network-monitoring.js +557 -0
  253. package/lib/services/magic-network-monitoring.js.map +1 -0
  254. package/lib/services/magic-transit.d.ts +3886 -0
  255. package/lib/services/magic-transit.d.ts.map +1 -0
  256. package/lib/services/magic-transit.js +6284 -0
  257. package/lib/services/magic-transit.js.map +1 -0
  258. package/lib/services/managed-transforms.d.ts +79 -0
  259. package/lib/services/managed-transforms.d.ts.map +1 -0
  260. package/lib/services/managed-transforms.js +111 -0
  261. package/lib/services/managed-transforms.js.map +1 -0
  262. package/lib/services/memberships.d.ts +204 -0
  263. package/lib/services/memberships.d.ts.map +1 -0
  264. package/lib/services/memberships.js +308 -0
  265. package/lib/services/memberships.js.map +1 -0
  266. package/lib/services/mtls-certificates.d.ts +164 -0
  267. package/lib/services/mtls-certificates.d.ts.map +1 -0
  268. package/lib/services/mtls-certificates.js +192 -0
  269. package/lib/services/mtls-certificates.js.map +1 -0
  270. package/lib/services/network-interconnects.d.ts +410 -0
  271. package/lib/services/network-interconnects.d.ts.map +1 -0
  272. package/lib/services/network-interconnects.js +583 -0
  273. package/lib/services/network-interconnects.js.map +1 -0
  274. package/lib/services/organizations.d.ts +232 -0
  275. package/lib/services/organizations.d.ts.map +1 -0
  276. package/lib/services/organizations.js +370 -0
  277. package/lib/services/organizations.js.map +1 -0
  278. package/lib/services/origin-ca-certificates.d.ts +119 -0
  279. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  280. package/lib/services/origin-ca-certificates.js +183 -0
  281. package/lib/services/origin-ca-certificates.js.map +1 -0
  282. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  283. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  284. package/lib/services/origin-post-quantum-encryption.js +64 -0
  285. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  286. package/lib/services/origin-tls-client-auth.d.ts +308 -0
  287. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  288. package/lib/services/origin-tls-client-auth.js +435 -0
  289. package/lib/services/origin-tls-client-auth.js.map +1 -0
  290. package/lib/services/page-rules.d.ts +773 -0
  291. package/lib/services/page-rules.d.ts.map +1 -0
  292. package/lib/services/page-rules.js +1373 -0
  293. package/lib/services/page-rules.js.map +1 -0
  294. package/lib/services/page-shield.d.ts +505 -0
  295. package/lib/services/page-shield.d.ts.map +1 -0
  296. package/lib/services/page-shield.js +520 -0
  297. package/lib/services/page-shield.js.map +1 -0
  298. package/lib/services/pages.d.ts +1949 -0
  299. package/lib/services/pages.d.ts.map +1 -0
  300. package/lib/services/pages.js +3030 -0
  301. package/lib/services/pages.js.map +1 -0
  302. package/lib/services/pipelines.d.ts +1716 -0
  303. package/lib/services/pipelines.d.ts.map +1 -0
  304. package/lib/services/pipelines.js +2991 -0
  305. package/lib/services/pipelines.js.map +1 -0
  306. package/lib/services/queues.d.ts +904 -0
  307. package/lib/services/queues.d.ts.map +1 -0
  308. package/lib/services/queues.js +1250 -0
  309. package/lib/services/queues.js.map +1 -0
  310. package/lib/services/r2-data-catalog.d.ts +341 -0
  311. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  312. package/lib/services/r2-data-catalog.js +513 -0
  313. package/lib/services/r2-data-catalog.js.map +1 -0
  314. package/lib/services/r2.d.ts +1087 -0
  315. package/lib/services/r2.d.ts.map +1 -0
  316. package/lib/services/r2.js +1404 -0
  317. package/lib/services/r2.js.map +1 -0
  318. package/lib/services/radar.d.ts +9365 -0
  319. package/lib/services/radar.d.ts.map +1 -0
  320. package/lib/services/radar.js +20552 -0
  321. package/lib/services/radar.js.map +1 -0
  322. package/lib/services/rate-limits.d.ts +360 -0
  323. package/lib/services/rate-limits.d.ts.map +1 -0
  324. package/lib/services/rate-limits.js +545 -0
  325. package/lib/services/rate-limits.js.map +1 -0
  326. package/lib/services/realtime-kit.d.ts +2728 -0
  327. package/lib/services/realtime-kit.d.ts.map +1 -0
  328. package/lib/services/realtime-kit.js +5402 -0
  329. package/lib/services/realtime-kit.js.map +1 -0
  330. package/lib/services/registrar.d.ts +121 -0
  331. package/lib/services/registrar.d.ts.map +1 -0
  332. package/lib/services/registrar.js +167 -0
  333. package/lib/services/registrar.js.map +1 -0
  334. package/lib/services/request-tracers.d.ts +61 -0
  335. package/lib/services/request-tracers.d.ts.map +1 -0
  336. package/lib/services/request-tracers.js +85 -0
  337. package/lib/services/request-tracers.js.map +1 -0
  338. package/lib/services/resource-sharing.d.ts +622 -0
  339. package/lib/services/resource-sharing.d.ts.map +1 -0
  340. package/lib/services/resource-sharing.js +929 -0
  341. package/lib/services/resource-sharing.js.map +1 -0
  342. package/lib/services/rules.d.ts +346 -0
  343. package/lib/services/rules.d.ts.map +1 -0
  344. package/lib/services/rules.js +431 -0
  345. package/lib/services/rules.js.map +1 -0
  346. package/lib/services/rulesets.d.ts +3345 -0
  347. package/lib/services/rulesets.d.ts.map +1 -0
  348. package/lib/services/rulesets.js +7904 -0
  349. package/lib/services/rulesets.js.map +1 -0
  350. package/lib/services/rum.d.ts +314 -0
  351. package/lib/services/rum.d.ts.map +1 -0
  352. package/lib/services/rum.js +442 -0
  353. package/lib/services/rum.js.map +1 -0
  354. package/lib/services/schema-validation.d.ts +273 -0
  355. package/lib/services/schema-validation.d.ts.map +1 -0
  356. package/lib/services/schema-validation.js +365 -0
  357. package/lib/services/schema-validation.js.map +1 -0
  358. package/lib/services/secrets-store.d.ts +393 -0
  359. package/lib/services/secrets-store.d.ts.map +1 -0
  360. package/lib/services/secrets-store.js +452 -0
  361. package/lib/services/secrets-store.js.map +1 -0
  362. package/lib/services/security-center.d.ts +136 -0
  363. package/lib/services/security-center.d.ts.map +1 -0
  364. package/lib/services/security-center.js +196 -0
  365. package/lib/services/security-center.js.map +1 -0
  366. package/lib/services/security-txt.d.ts +105 -0
  367. package/lib/services/security-txt.d.ts.map +1 -0
  368. package/lib/services/security-txt.js +136 -0
  369. package/lib/services/security-txt.js.map +1 -0
  370. package/lib/services/snippets.d.ts +190 -0
  371. package/lib/services/snippets.d.ts.map +1 -0
  372. package/lib/services/snippets.js +221 -0
  373. package/lib/services/snippets.js.map +1 -0
  374. package/lib/services/spectrum.d.ts +350 -0
  375. package/lib/services/spectrum.d.ts.map +1 -0
  376. package/lib/services/spectrum.js +535 -0
  377. package/lib/services/spectrum.js.map +1 -0
  378. package/lib/services/speed.d.ts +257 -0
  379. package/lib/services/speed.d.ts.map +1 -0
  380. package/lib/services/speed.js +471 -0
  381. package/lib/services/speed.js.map +1 -0
  382. package/lib/services/ssl.d.ts +412 -0
  383. package/lib/services/ssl.d.ts.map +1 -0
  384. package/lib/services/ssl.js +755 -0
  385. package/lib/services/ssl.js.map +1 -0
  386. package/lib/services/stream.d.ts +1110 -0
  387. package/lib/services/stream.d.ts.map +1 -0
  388. package/lib/services/stream.js +1085 -0
  389. package/lib/services/stream.js.map +1 -0
  390. package/lib/services/token-validation.d.ts +662 -0
  391. package/lib/services/token-validation.d.ts.map +1 -0
  392. package/lib/services/token-validation.js +834 -0
  393. package/lib/services/token-validation.js.map +1 -0
  394. package/lib/services/turnstile.d.ts +272 -0
  395. package/lib/services/turnstile.d.ts.map +1 -0
  396. package/lib/services/turnstile.js +339 -0
  397. package/lib/services/turnstile.js.map +1 -0
  398. package/lib/services/url-normalization.d.ts +53 -0
  399. package/lib/services/url-normalization.d.ts.map +1 -0
  400. package/lib/services/url-normalization.js +52 -0
  401. package/lib/services/url-normalization.js.map +1 -0
  402. package/lib/services/url-scanner.d.ts +612 -0
  403. package/lib/services/url-scanner.d.ts.map +1 -0
  404. package/lib/services/url-scanner.js +915 -0
  405. package/lib/services/url-scanner.js.map +1 -0
  406. package/lib/services/user.d.ts +507 -0
  407. package/lib/services/user.d.ts.map +1 -0
  408. package/lib/services/user.js +634 -0
  409. package/lib/services/user.js.map +1 -0
  410. package/lib/services/vectorize.d.ts +297 -0
  411. package/lib/services/vectorize.d.ts.map +1 -0
  412. package/lib/services/vectorize.js +351 -0
  413. package/lib/services/vectorize.js.map +1 -0
  414. package/lib/services/waiting-rooms.d.ts +1149 -0
  415. package/lib/services/waiting-rooms.d.ts.map +1 -0
  416. package/lib/services/waiting-rooms.js +1859 -0
  417. package/lib/services/waiting-rooms.js.map +1 -0
  418. package/lib/services/web3.d.ts +289 -0
  419. package/lib/services/web3.d.ts.map +1 -0
  420. package/lib/services/web3.js +381 -0
  421. package/lib/services/web3.js.map +1 -0
  422. package/lib/services/workers-for-platforms.d.ts +1394 -0
  423. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  424. package/lib/services/workers-for-platforms.js +2121 -0
  425. package/lib/services/workers-for-platforms.js.map +1 -0
  426. package/lib/services/workers.d.ts +3827 -0
  427. package/lib/services/workers.d.ts.map +1 -0
  428. package/lib/services/workers.js +6105 -0
  429. package/lib/services/workers.js.map +1 -0
  430. package/lib/services/workflows.d.ts +442 -0
  431. package/lib/services/workflows.d.ts.map +1 -0
  432. package/lib/services/workflows.js +599 -0
  433. package/lib/services/workflows.js.map +1 -0
  434. package/lib/services/zaraz.d.ts +312 -0
  435. package/lib/services/zaraz.d.ts.map +1 -0
  436. package/lib/services/zaraz.js +305 -0
  437. package/lib/services/zaraz.js.map +1 -0
  438. package/lib/services/zero-trust.d.ts +18235 -0
  439. package/lib/services/zero-trust.d.ts.map +1 -0
  440. package/lib/services/zero-trust.js +30268 -0
  441. package/lib/services/zero-trust.js.map +1 -0
  442. package/lib/services/zones.d.ts +1382 -0
  443. package/lib/services/zones.d.ts.map +1 -0
  444. package/lib/services/zones.js +2477 -0
  445. package/lib/services/zones.js.map +1 -0
  446. package/lib/traits.d.ts +28 -0
  447. package/lib/traits.d.ts.map +1 -0
  448. package/lib/traits.js +26 -0
  449. package/lib/traits.js.map +1 -0
  450. package/package.json +82 -0
  451. package/src/auth.ts +15 -0
  452. package/src/category.ts +1 -0
  453. package/src/client/api.ts +421 -0
  454. package/src/client/index.ts +7 -0
  455. package/src/credentials.ts +271 -0
  456. package/src/errors.ts +73 -0
  457. package/src/index.ts +9 -0
  458. package/src/retry.ts +35 -0
  459. package/src/schemas.ts +51 -0
  460. package/src/sensitive.ts +4 -0
  461. package/src/services/abuse-reports.ts +955 -0
  462. package/src/services/accounts.ts +2152 -0
  463. package/src/services/acm.ts +178 -0
  464. package/src/services/addressing.ts +4262 -0
  465. package/src/services/ai-gateway.ts +3773 -0
  466. package/src/services/ai.ts +901 -0
  467. package/src/services/aisearch.ts +5215 -0
  468. package/src/services/alerting.ts +3303 -0
  469. package/src/services/api-gateway.ts +3890 -0
  470. package/src/services/argo.ts +270 -0
  471. package/src/services/audit-logs.ts +90 -0
  472. package/src/services/billing.ts +176 -0
  473. package/src/services/bot-management.ts +545 -0
  474. package/src/services/botnet-feed.ts +205 -0
  475. package/src/services/brand-protection.ts +575 -0
  476. package/src/services/browser-rendering.ts +2720 -0
  477. package/src/services/cache.ts +877 -0
  478. package/src/services/calls.ts +548 -0
  479. package/src/services/certificate-authorities.ts +114 -0
  480. package/src/services/client-certificates.ts +815 -0
  481. package/src/services/cloud-connector.ts +248 -0
  482. package/src/services/cloudforce-one.ts +4104 -0
  483. package/src/services/connectivity.ts +706 -0
  484. package/src/services/content-scanning.ts +458 -0
  485. package/src/services/custom-certificates.ts +690 -0
  486. package/src/services/custom-hostnames.ts +2641 -0
  487. package/src/services/custom-nameservers.ts +235 -0
  488. package/src/services/custom-pages.ts +311 -0
  489. package/src/services/d1.ts +1208 -0
  490. package/src/services/dcv-delegation.ts +54 -0
  491. package/src/services/diagnostics.ts +677 -0
  492. package/src/services/dns-firewall.ts +904 -0
  493. package/src/services/dns.ts +9277 -0
  494. package/src/services/durable-objects.ts +237 -0
  495. package/src/services/email-routing.ts +1796 -0
  496. package/src/services/email-security.ts +5052 -0
  497. package/src/services/filters.ts +488 -0
  498. package/src/services/firewall.ts +4728 -0
  499. package/src/services/healthchecks.ts +1866 -0
  500. package/src/services/hostnames.ts +254 -0
  501. package/src/services/hyperdrive.ts +595 -0
  502. package/src/services/iam.ts +1969 -0
  503. package/src/services/images.ts +1180 -0
  504. package/src/services/intel.ts +3072 -0
  505. package/src/services/ips.ts +88 -0
  506. package/src/services/keyless-certificates.ts +509 -0
  507. package/src/services/kv.ts +1129 -0
  508. package/src/services/leaked-credential-checks.ts +364 -0
  509. package/src/services/load-balancers.ts +6993 -0
  510. package/src/services/logpush.ts +1695 -0
  511. package/src/services/logs.ts +389 -0
  512. package/src/services/magic-cloud-networking.ts +10747 -0
  513. package/src/services/magic-network-monitoring.ts +1200 -0
  514. package/src/services/magic-transit.ts +13673 -0
  515. package/src/services/managed-transforms.ts +245 -0
  516. package/src/services/memberships.ts +698 -0
  517. package/src/services/mtls-certificates.ts +444 -0
  518. package/src/services/network-interconnects.ts +1253 -0
  519. package/src/services/organizations.ts +738 -0
  520. package/src/services/origin-ca-certificates.ts +369 -0
  521. package/src/services/origin-post-quantum-encryption.ts +136 -0
  522. package/src/services/origin-tls-client-auth.ts +1002 -0
  523. package/src/services/page-rules.ts +2632 -0
  524. package/src/services/page-shield.ts +1371 -0
  525. package/src/services/pages.ts +6167 -0
  526. package/src/services/pipelines.ts +6455 -0
  527. package/src/services/queues.ts +2827 -0
  528. package/src/services/r2-data-catalog.ts +1151 -0
  529. package/src/services/r2.ts +3529 -0
  530. package/src/services/radar.ts +42836 -0
  531. package/src/services/rate-limits.ts +1252 -0
  532. package/src/services/realtime-kit.ts +11080 -0
  533. package/src/services/registrar.ts +390 -0
  534. package/src/services/request-tracers.ts +161 -0
  535. package/src/services/resource-sharing.ts +2082 -0
  536. package/src/services/rules.ts +953 -0
  537. package/src/services/rulesets.ts +15361 -0
  538. package/src/services/rum.ts +994 -0
  539. package/src/services/schema-validation.ts +869 -0
  540. package/src/services/secrets-store.ts +1050 -0
  541. package/src/services/security-center.ts +495 -0
  542. package/src/services/security-txt.ts +317 -0
  543. package/src/services/snippets.ts +562 -0
  544. package/src/services/spectrum.ts +1190 -0
  545. package/src/services/speed.ts +1154 -0
  546. package/src/services/ssl.ts +1714 -0
  547. package/src/services/stream.ts +3008 -0
  548. package/src/services/token-validation.ts +1825 -0
  549. package/src/services/turnstile.ts +725 -0
  550. package/src/services/url-normalization.ts +133 -0
  551. package/src/services/url-scanner.ts +1851 -0
  552. package/src/services/user.ts +1587 -0
  553. package/src/services/vectorize.ts +875 -0
  554. package/src/services/waiting-rooms.ts +4216 -0
  555. package/src/services/web3.ts +899 -0
  556. package/src/services/workers-for-platforms.ts +4134 -0
  557. package/src/services/workers.ts +12298 -0
  558. package/src/services/workflows.ts +1372 -0
  559. package/src/services/zaraz.ts +833 -0
  560. package/src/services/zero-trust.ts +64685 -0
  561. package/src/services/zones.ts +5106 -0
  562. package/src/traits.ts +47 -0
@@ -0,0 +1,4104 @@
1
+ /**
2
+ * Cloudflare CLOUDFORCE-ONE API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service cloudforce-one
6
+ */
7
+
8
+ import * as stream from "effect/Stream";
9
+ import * as Schema from "effect/Schema";
10
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
11
+ import * as API from "../client/api.ts";
12
+ import * as T from "../traits.ts";
13
+ import type { Credentials } from "../credentials.ts";
14
+ import { type DefaultErrors } from "../errors.ts";
15
+ import { UploadableSchema } from "../schemas.ts";
16
+
17
+ // =============================================================================
18
+ // BinaryStorage
19
+ // =============================================================================
20
+
21
+ export interface GetBinaryStorageRequest {
22
+ hash: string;
23
+ /** Account ID. */
24
+ accountId: string;
25
+ }
26
+
27
+ export const GetBinaryStorageRequest =
28
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
29
+ hash: Schema.String.pipe(T.HttpPath("hash")),
30
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
31
+ }).pipe(
32
+ T.Http({
33
+ method: "GET",
34
+ path: "/accounts/{account_id}/cloudforce-one/binary/{hash}",
35
+ }),
36
+ ) as unknown as Schema.Schema<GetBinaryStorageRequest>;
37
+
38
+ export type GetBinaryStorageResponse = unknown;
39
+
40
+ export const GetBinaryStorageResponse =
41
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetBinaryStorageResponse>;
42
+
43
+ export type GetBinaryStorageError = DefaultErrors;
44
+
45
+ export const getBinaryStorage: API.OperationMethod<
46
+ GetBinaryStorageRequest,
47
+ GetBinaryStorageResponse,
48
+ GetBinaryStorageError,
49
+ Credentials | HttpClient.HttpClient
50
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
51
+ input: GetBinaryStorageRequest,
52
+ output: GetBinaryStorageResponse,
53
+ errors: [],
54
+ }));
55
+
56
+ export interface CreateBinaryStorageRequest {
57
+ /** Path param: Account ID. */
58
+ accountId: string;
59
+ /** Body param: The binary file content to upload. */
60
+ file: File | Blob;
61
+ }
62
+
63
+ export const CreateBinaryStorageRequest =
64
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
65
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
66
+ file: UploadableSchema.pipe(T.HttpFormDataFile()),
67
+ }).pipe(
68
+ T.Http({
69
+ method: "POST",
70
+ path: "/accounts/{account_id}/cloudforce-one/binary",
71
+ contentType: "multipart",
72
+ }),
73
+ ) as unknown as Schema.Schema<CreateBinaryStorageRequest>;
74
+
75
+ export interface CreateBinaryStorageResponse {
76
+ contentType: string;
77
+ md5: string;
78
+ sha1: string;
79
+ sha256: string;
80
+ }
81
+
82
+ export const CreateBinaryStorageResponse =
83
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
84
+ contentType: Schema.String,
85
+ md5: Schema.String,
86
+ sha1: Schema.String,
87
+ sha256: Schema.String,
88
+ }).pipe(
89
+ Schema.encodeKeys({
90
+ contentType: "content_type",
91
+ md5: "md5",
92
+ sha1: "sha1",
93
+ sha256: "sha256",
94
+ }),
95
+ ) as unknown as Schema.Schema<CreateBinaryStorageResponse>;
96
+
97
+ export type CreateBinaryStorageError = DefaultErrors;
98
+
99
+ export const createBinaryStorage: API.OperationMethod<
100
+ CreateBinaryStorageRequest,
101
+ CreateBinaryStorageResponse,
102
+ CreateBinaryStorageError,
103
+ Credentials | HttpClient.HttpClient
104
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
105
+ input: CreateBinaryStorageRequest,
106
+ output: CreateBinaryStorageResponse,
107
+ errors: [],
108
+ }));
109
+
110
+ // =============================================================================
111
+ // Request
112
+ // =============================================================================
113
+
114
+ export interface GetRequestRequest {
115
+ requestId: string;
116
+ /** Identifier. */
117
+ accountId: string;
118
+ }
119
+
120
+ export const GetRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
121
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
122
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
123
+ }).pipe(
124
+ T.Http({
125
+ method: "GET",
126
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}",
127
+ }),
128
+ ) as unknown as Schema.Schema<GetRequestRequest>;
129
+
130
+ export interface GetRequestResponse {
131
+ /** UUID. */
132
+ id: string;
133
+ /** Request content. */
134
+ content: string;
135
+ created: string;
136
+ priority: string;
137
+ /** Requested information from request. */
138
+ request: string;
139
+ /** Brief description of the request. */
140
+ summary: string;
141
+ /** The CISA defined Traffic Light Protocol (TLP). */
142
+ tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
143
+ updated: string;
144
+ completed?: string | null;
145
+ /** Tokens for the request messages. */
146
+ messageTokens?: number | null;
147
+ /** Readable Request ID. */
148
+ readableId?: string | null;
149
+ /** Request Status. */
150
+ status?:
151
+ | "open"
152
+ | "accepted"
153
+ | "reported"
154
+ | "approved"
155
+ | "completed"
156
+ | "declined"
157
+ | null;
158
+ /** Tokens for the request. */
159
+ tokens?: number | null;
160
+ }
161
+
162
+ export const GetRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
163
+ id: Schema.String,
164
+ content: Schema.String,
165
+ created: Schema.String,
166
+ priority: Schema.String,
167
+ request: Schema.String,
168
+ summary: Schema.String,
169
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
170
+ updated: Schema.String,
171
+ completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
172
+ messageTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
173
+ readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
174
+ status: Schema.optional(
175
+ Schema.Union([
176
+ Schema.Literals([
177
+ "open",
178
+ "accepted",
179
+ "reported",
180
+ "approved",
181
+ "completed",
182
+ "declined",
183
+ ]),
184
+ Schema.Null,
185
+ ]),
186
+ ),
187
+ tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
188
+ })
189
+ .pipe(
190
+ Schema.encodeKeys({
191
+ id: "id",
192
+ content: "content",
193
+ created: "created",
194
+ priority: "priority",
195
+ request: "request",
196
+ summary: "summary",
197
+ tlp: "tlp",
198
+ updated: "updated",
199
+ completed: "completed",
200
+ messageTokens: "message_tokens",
201
+ readableId: "readable_id",
202
+ status: "status",
203
+ tokens: "tokens",
204
+ }),
205
+ )
206
+ .pipe(
207
+ T.ResponsePath("result"),
208
+ ) as unknown as Schema.Schema<GetRequestResponse>;
209
+
210
+ export type GetRequestError = DefaultErrors;
211
+
212
+ export const getRequest: API.OperationMethod<
213
+ GetRequestRequest,
214
+ GetRequestResponse,
215
+ GetRequestError,
216
+ Credentials | HttpClient.HttpClient
217
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
218
+ input: GetRequestRequest,
219
+ output: GetRequestResponse,
220
+ errors: [],
221
+ }));
222
+
223
+ export interface ListRequestsRequest {
224
+ /** Path param: Identifier. */
225
+ accountId: string;
226
+ /** Body param: Page number of results. */
227
+ page: number;
228
+ /** Body param: Number of results per page. */
229
+ perPage: number;
230
+ /** Body param: Retrieve requests completed after this time. */
231
+ completedAfter?: string;
232
+ /** Body param: Retrieve requests completed before this time. */
233
+ completedBefore?: string;
234
+ /** Body param: Retrieve requests created after this time. */
235
+ createdAfter?: string;
236
+ /** Body param: Retrieve requests created before this time. */
237
+ createdBefore?: string;
238
+ /** Body param: Requested information from request. */
239
+ requestType?: string;
240
+ /** Body param: Field to sort results by. */
241
+ sortBy?: string;
242
+ /** Body param: Sort order (asc or desc). */
243
+ sortOrder?: "asc" | "desc";
244
+ /** Body param: Request Status. */
245
+ status?:
246
+ | "open"
247
+ | "accepted"
248
+ | "reported"
249
+ | "approved"
250
+ | "completed"
251
+ | "declined";
252
+ }
253
+
254
+ export const ListRequestsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
255
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
256
+ page: Schema.Number,
257
+ perPage: Schema.Number,
258
+ completedAfter: Schema.optional(Schema.String),
259
+ completedBefore: Schema.optional(Schema.String),
260
+ createdAfter: Schema.optional(Schema.String),
261
+ createdBefore: Schema.optional(Schema.String),
262
+ requestType: Schema.optional(Schema.String),
263
+ sortBy: Schema.optional(Schema.String),
264
+ sortOrder: Schema.optional(Schema.Literals(["asc", "desc"])),
265
+ status: Schema.optional(
266
+ Schema.Literals([
267
+ "open",
268
+ "accepted",
269
+ "reported",
270
+ "approved",
271
+ "completed",
272
+ "declined",
273
+ ]),
274
+ ),
275
+ }).pipe(
276
+ Schema.encodeKeys({
277
+ page: "page",
278
+ perPage: "per_page",
279
+ completedAfter: "completed_after",
280
+ completedBefore: "completed_before",
281
+ createdAfter: "created_after",
282
+ createdBefore: "created_before",
283
+ requestType: "request_type",
284
+ sortBy: "sort_by",
285
+ sortOrder: "sort_order",
286
+ status: "status",
287
+ }),
288
+ T.Http({
289
+ method: "POST",
290
+ path: "/accounts/{account_id}/cloudforce-one/requests",
291
+ }),
292
+ ) as unknown as Schema.Schema<ListRequestsRequest>;
293
+
294
+ export interface ListRequestsResponse {
295
+ result: {
296
+ id: string;
297
+ created: string;
298
+ priority: "routine" | "high" | "urgent";
299
+ request: string;
300
+ summary: string;
301
+ tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
302
+ updated: string;
303
+ completed?: string | null;
304
+ messageTokens?: number | null;
305
+ readableId?: string | null;
306
+ status?:
307
+ | "open"
308
+ | "accepted"
309
+ | "reported"
310
+ | "approved"
311
+ | "completed"
312
+ | "declined"
313
+ | null;
314
+ tokens?: number | null;
315
+ }[];
316
+ }
317
+
318
+ export const ListRequestsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
319
+ result: Schema.Array(
320
+ Schema.Struct({
321
+ id: Schema.String,
322
+ created: Schema.String,
323
+ priority: Schema.Literals(["routine", "high", "urgent"]),
324
+ request: Schema.String,
325
+ summary: Schema.String,
326
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
327
+ updated: Schema.String,
328
+ completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
329
+ messageTokens: Schema.optional(
330
+ Schema.Union([Schema.Number, Schema.Null]),
331
+ ),
332
+ readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
333
+ status: Schema.optional(
334
+ Schema.Union([
335
+ Schema.Literals([
336
+ "open",
337
+ "accepted",
338
+ "reported",
339
+ "approved",
340
+ "completed",
341
+ "declined",
342
+ ]),
343
+ Schema.Null,
344
+ ]),
345
+ ),
346
+ tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
347
+ }).pipe(
348
+ Schema.encodeKeys({
349
+ id: "id",
350
+ created: "created",
351
+ priority: "priority",
352
+ request: "request",
353
+ summary: "summary",
354
+ tlp: "tlp",
355
+ updated: "updated",
356
+ completed: "completed",
357
+ messageTokens: "message_tokens",
358
+ readableId: "readable_id",
359
+ status: "status",
360
+ tokens: "tokens",
361
+ }),
362
+ ),
363
+ ),
364
+ }) as unknown as Schema.Schema<ListRequestsResponse>;
365
+
366
+ export type ListRequestsError = DefaultErrors;
367
+
368
+ export const listRequests: API.PaginatedOperationMethod<
369
+ ListRequestsRequest,
370
+ ListRequestsResponse,
371
+ ListRequestsError,
372
+ Credentials | HttpClient.HttpClient
373
+ > & {
374
+ pages: (
375
+ input: ListRequestsRequest,
376
+ ) => stream.Stream<
377
+ ListRequestsResponse,
378
+ ListRequestsError,
379
+ Credentials | HttpClient.HttpClient
380
+ >;
381
+ items: (input: ListRequestsRequest) => stream.Stream<
382
+ {
383
+ id: string;
384
+ created: string;
385
+ priority: "routine" | "high" | "urgent";
386
+ request: string;
387
+ summary: string;
388
+ tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
389
+ updated: string;
390
+ completed?: string | null;
391
+ messageTokens?: number | null;
392
+ readableId?: string | null;
393
+ status?:
394
+ | "open"
395
+ | "accepted"
396
+ | "reported"
397
+ | "approved"
398
+ | "completed"
399
+ | "declined"
400
+ | null;
401
+ tokens?: number | null;
402
+ },
403
+ ListRequestsError,
404
+ Credentials | HttpClient.HttpClient
405
+ >;
406
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
407
+ input: ListRequestsRequest,
408
+ output: ListRequestsResponse,
409
+ errors: [],
410
+ pagination: {
411
+ mode: "single",
412
+ items: "result",
413
+ } as const,
414
+ }));
415
+
416
+ export interface CreateRequestRequest {
417
+ /** Path param: Identifier. */
418
+ accountId: string;
419
+ /** Body param: Request content. */
420
+ content?: string;
421
+ /** Body param: Priority for analyzing the request. */
422
+ priority?: string;
423
+ /** Body param: Requested information from request. */
424
+ requestType?: string;
425
+ /** Body param: Brief description of the request. */
426
+ summary?: string;
427
+ /** Body param: The CISA defined Traffic Light Protocol (TLP). */
428
+ tlp?: "clear" | "amber" | "amber-strict" | "green" | "red";
429
+ }
430
+
431
+ export const CreateRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
432
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
433
+ content: Schema.optional(Schema.String),
434
+ priority: Schema.optional(Schema.String),
435
+ requestType: Schema.optional(Schema.String),
436
+ summary: Schema.optional(Schema.String),
437
+ tlp: Schema.optional(
438
+ Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
439
+ ),
440
+ }).pipe(
441
+ Schema.encodeKeys({
442
+ content: "content",
443
+ priority: "priority",
444
+ requestType: "request_type",
445
+ summary: "summary",
446
+ tlp: "tlp",
447
+ }),
448
+ T.Http({
449
+ method: "POST",
450
+ path: "/accounts/{account_id}/cloudforce-one/requests/new",
451
+ }),
452
+ ) as unknown as Schema.Schema<CreateRequestRequest>;
453
+
454
+ export interface CreateRequestResponse {
455
+ /** UUID. */
456
+ id: string;
457
+ /** Request content. */
458
+ content: string;
459
+ created: string;
460
+ priority: string;
461
+ /** Requested information from request. */
462
+ request: string;
463
+ /** Brief description of the request. */
464
+ summary: string;
465
+ /** The CISA defined Traffic Light Protocol (TLP). */
466
+ tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
467
+ updated: string;
468
+ completed?: string | null;
469
+ /** Tokens for the request messages. */
470
+ messageTokens?: number | null;
471
+ /** Readable Request ID. */
472
+ readableId?: string | null;
473
+ /** Request Status. */
474
+ status?:
475
+ | "open"
476
+ | "accepted"
477
+ | "reported"
478
+ | "approved"
479
+ | "completed"
480
+ | "declined"
481
+ | null;
482
+ /** Tokens for the request. */
483
+ tokens?: number | null;
484
+ }
485
+
486
+ export const CreateRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
487
+ id: Schema.String,
488
+ content: Schema.String,
489
+ created: Schema.String,
490
+ priority: Schema.String,
491
+ request: Schema.String,
492
+ summary: Schema.String,
493
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
494
+ updated: Schema.String,
495
+ completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
496
+ messageTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
497
+ readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
498
+ status: Schema.optional(
499
+ Schema.Union([
500
+ Schema.Literals([
501
+ "open",
502
+ "accepted",
503
+ "reported",
504
+ "approved",
505
+ "completed",
506
+ "declined",
507
+ ]),
508
+ Schema.Null,
509
+ ]),
510
+ ),
511
+ tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
512
+ })
513
+ .pipe(
514
+ Schema.encodeKeys({
515
+ id: "id",
516
+ content: "content",
517
+ created: "created",
518
+ priority: "priority",
519
+ request: "request",
520
+ summary: "summary",
521
+ tlp: "tlp",
522
+ updated: "updated",
523
+ completed: "completed",
524
+ messageTokens: "message_tokens",
525
+ readableId: "readable_id",
526
+ status: "status",
527
+ tokens: "tokens",
528
+ }),
529
+ )
530
+ .pipe(
531
+ T.ResponsePath("result"),
532
+ ) as unknown as Schema.Schema<CreateRequestResponse>;
533
+
534
+ export type CreateRequestError = DefaultErrors;
535
+
536
+ export const createRequest: API.OperationMethod<
537
+ CreateRequestRequest,
538
+ CreateRequestResponse,
539
+ CreateRequestError,
540
+ Credentials | HttpClient.HttpClient
541
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
542
+ input: CreateRequestRequest,
543
+ output: CreateRequestResponse,
544
+ errors: [],
545
+ }));
546
+
547
+ export interface UpdateRequestRequest {
548
+ requestId: string;
549
+ /** Path param: Identifier. */
550
+ accountId: string;
551
+ /** Body param: Request content. */
552
+ content?: string;
553
+ /** Body param: Priority for analyzing the request. */
554
+ priority?: string;
555
+ /** Body param: Requested information from request. */
556
+ requestType?: string;
557
+ /** Body param: Brief description of the request. */
558
+ summary?: string;
559
+ /** Body param: The CISA defined Traffic Light Protocol (TLP). */
560
+ tlp?: "clear" | "amber" | "amber-strict" | "green" | "red";
561
+ }
562
+
563
+ export const UpdateRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
564
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
565
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
566
+ content: Schema.optional(Schema.String),
567
+ priority: Schema.optional(Schema.String),
568
+ requestType: Schema.optional(Schema.String),
569
+ summary: Schema.optional(Schema.String),
570
+ tlp: Schema.optional(
571
+ Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
572
+ ),
573
+ }).pipe(
574
+ Schema.encodeKeys({
575
+ content: "content",
576
+ priority: "priority",
577
+ requestType: "request_type",
578
+ summary: "summary",
579
+ tlp: "tlp",
580
+ }),
581
+ T.Http({
582
+ method: "PUT",
583
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}",
584
+ }),
585
+ ) as unknown as Schema.Schema<UpdateRequestRequest>;
586
+
587
+ export interface UpdateRequestResponse {
588
+ /** UUID. */
589
+ id: string;
590
+ /** Request content. */
591
+ content: string;
592
+ created: string;
593
+ priority: string;
594
+ /** Requested information from request. */
595
+ request: string;
596
+ /** Brief description of the request. */
597
+ summary: string;
598
+ /** The CISA defined Traffic Light Protocol (TLP). */
599
+ tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
600
+ updated: string;
601
+ completed?: string | null;
602
+ /** Tokens for the request messages. */
603
+ messageTokens?: number | null;
604
+ /** Readable Request ID. */
605
+ readableId?: string | null;
606
+ /** Request Status. */
607
+ status?:
608
+ | "open"
609
+ | "accepted"
610
+ | "reported"
611
+ | "approved"
612
+ | "completed"
613
+ | "declined"
614
+ | null;
615
+ /** Tokens for the request. */
616
+ tokens?: number | null;
617
+ }
618
+
619
+ export const UpdateRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
620
+ id: Schema.String,
621
+ content: Schema.String,
622
+ created: Schema.String,
623
+ priority: Schema.String,
624
+ request: Schema.String,
625
+ summary: Schema.String,
626
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
627
+ updated: Schema.String,
628
+ completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
629
+ messageTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
630
+ readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
631
+ status: Schema.optional(
632
+ Schema.Union([
633
+ Schema.Literals([
634
+ "open",
635
+ "accepted",
636
+ "reported",
637
+ "approved",
638
+ "completed",
639
+ "declined",
640
+ ]),
641
+ Schema.Null,
642
+ ]),
643
+ ),
644
+ tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
645
+ })
646
+ .pipe(
647
+ Schema.encodeKeys({
648
+ id: "id",
649
+ content: "content",
650
+ created: "created",
651
+ priority: "priority",
652
+ request: "request",
653
+ summary: "summary",
654
+ tlp: "tlp",
655
+ updated: "updated",
656
+ completed: "completed",
657
+ messageTokens: "message_tokens",
658
+ readableId: "readable_id",
659
+ status: "status",
660
+ tokens: "tokens",
661
+ }),
662
+ )
663
+ .pipe(
664
+ T.ResponsePath("result"),
665
+ ) as unknown as Schema.Schema<UpdateRequestResponse>;
666
+
667
+ export type UpdateRequestError = DefaultErrors;
668
+
669
+ export const updateRequest: API.OperationMethod<
670
+ UpdateRequestRequest,
671
+ UpdateRequestResponse,
672
+ UpdateRequestError,
673
+ Credentials | HttpClient.HttpClient
674
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
675
+ input: UpdateRequestRequest,
676
+ output: UpdateRequestResponse,
677
+ errors: [],
678
+ }));
679
+
680
+ export interface DeleteRequestRequest {
681
+ requestId: string;
682
+ /** Identifier. */
683
+ accountId: string;
684
+ }
685
+
686
+ export const DeleteRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
687
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
688
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
689
+ }).pipe(
690
+ T.Http({
691
+ method: "DELETE",
692
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}",
693
+ }),
694
+ ) as unknown as Schema.Schema<DeleteRequestRequest>;
695
+
696
+ export interface DeleteRequestResponse {
697
+ errors: {
698
+ code: number;
699
+ message: string;
700
+ documentationUrl?: string | null;
701
+ source?: { pointer?: string | null } | null;
702
+ }[];
703
+ messages: {
704
+ code: number;
705
+ message: string;
706
+ documentationUrl?: string | null;
707
+ source?: { pointer?: string | null } | null;
708
+ }[];
709
+ /** Whether the API call was successful. */
710
+ success: true;
711
+ }
712
+
713
+ export const DeleteRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
714
+ errors: Schema.Array(
715
+ Schema.Struct({
716
+ code: Schema.Number,
717
+ message: Schema.String,
718
+ documentationUrl: Schema.optional(
719
+ Schema.Union([Schema.String, Schema.Null]),
720
+ ),
721
+ source: Schema.optional(
722
+ Schema.Union([
723
+ Schema.Struct({
724
+ pointer: Schema.optional(
725
+ Schema.Union([Schema.String, Schema.Null]),
726
+ ),
727
+ }),
728
+ Schema.Null,
729
+ ]),
730
+ ),
731
+ }).pipe(
732
+ Schema.encodeKeys({
733
+ code: "code",
734
+ message: "message",
735
+ documentationUrl: "documentation_url",
736
+ source: "source",
737
+ }),
738
+ ),
739
+ ),
740
+ messages: Schema.Array(
741
+ Schema.Struct({
742
+ code: Schema.Number,
743
+ message: Schema.String,
744
+ documentationUrl: Schema.optional(
745
+ Schema.Union([Schema.String, Schema.Null]),
746
+ ),
747
+ source: Schema.optional(
748
+ Schema.Union([
749
+ Schema.Struct({
750
+ pointer: Schema.optional(
751
+ Schema.Union([Schema.String, Schema.Null]),
752
+ ),
753
+ }),
754
+ Schema.Null,
755
+ ]),
756
+ ),
757
+ }).pipe(
758
+ Schema.encodeKeys({
759
+ code: "code",
760
+ message: "message",
761
+ documentationUrl: "documentation_url",
762
+ source: "source",
763
+ }),
764
+ ),
765
+ ),
766
+ success: Schema.Literal(true),
767
+ }) as unknown as Schema.Schema<DeleteRequestResponse>;
768
+
769
+ export type DeleteRequestError = DefaultErrors;
770
+
771
+ export const deleteRequest: API.OperationMethod<
772
+ DeleteRequestRequest,
773
+ DeleteRequestResponse,
774
+ DeleteRequestError,
775
+ Credentials | HttpClient.HttpClient
776
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
777
+ input: DeleteRequestRequest,
778
+ output: DeleteRequestResponse,
779
+ errors: [],
780
+ }));
781
+
782
+ export interface ConstantsRequestRequest {
783
+ /** Identifier. */
784
+ accountId: string;
785
+ }
786
+
787
+ export const ConstantsRequestRequest =
788
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
789
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
790
+ }).pipe(
791
+ T.Http({
792
+ method: "GET",
793
+ path: "/accounts/{account_id}/cloudforce-one/requests/constants",
794
+ }),
795
+ ) as unknown as Schema.Schema<ConstantsRequestRequest>;
796
+
797
+ export interface ConstantsRequestResponse {
798
+ priority?: ("routine" | "high" | "urgent")[] | null;
799
+ status?:
800
+ | (
801
+ | "open"
802
+ | "accepted"
803
+ | "reported"
804
+ | "approved"
805
+ | "completed"
806
+ | "declined"
807
+ )[]
808
+ | null;
809
+ tlp?: ("clear" | "amber" | "amber-strict" | "green" | "red")[] | null;
810
+ }
811
+
812
+ export const ConstantsRequestResponse =
813
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
814
+ priority: Schema.optional(
815
+ Schema.Union([
816
+ Schema.Array(Schema.Literals(["routine", "high", "urgent"])),
817
+ Schema.Null,
818
+ ]),
819
+ ),
820
+ status: Schema.optional(
821
+ Schema.Union([
822
+ Schema.Array(
823
+ Schema.Literals([
824
+ "open",
825
+ "accepted",
826
+ "reported",
827
+ "approved",
828
+ "completed",
829
+ "declined",
830
+ ]),
831
+ ),
832
+ Schema.Null,
833
+ ]),
834
+ ),
835
+ tlp: Schema.optional(
836
+ Schema.Union([
837
+ Schema.Array(
838
+ Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
839
+ ),
840
+ Schema.Null,
841
+ ]),
842
+ ),
843
+ }).pipe(
844
+ T.ResponsePath("result"),
845
+ ) as unknown as Schema.Schema<ConstantsRequestResponse>;
846
+
847
+ export type ConstantsRequestError = DefaultErrors;
848
+
849
+ export const constantsRequest: API.OperationMethod<
850
+ ConstantsRequestRequest,
851
+ ConstantsRequestResponse,
852
+ ConstantsRequestError,
853
+ Credentials | HttpClient.HttpClient
854
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
855
+ input: ConstantsRequestRequest,
856
+ output: ConstantsRequestResponse,
857
+ errors: [],
858
+ }));
859
+
860
+ export interface QuotaRequestRequest {
861
+ /** Identifier. */
862
+ accountId: string;
863
+ }
864
+
865
+ export const QuotaRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
866
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
867
+ }).pipe(
868
+ T.Http({
869
+ method: "GET",
870
+ path: "/accounts/{account_id}/cloudforce-one/requests/quota",
871
+ }),
872
+ ) as unknown as Schema.Schema<QuotaRequestRequest>;
873
+
874
+ export interface QuotaRequestResponse {
875
+ /** Anniversary date is when annual quota limit is refreshed. */
876
+ anniversaryDate?: string | null;
877
+ /** Quarter anniversary date is when quota limit is refreshed each quarter. */
878
+ quarterAnniversaryDate?: string | null;
879
+ /** Tokens for the quarter. */
880
+ quota?: number | null;
881
+ /** Tokens remaining for the quarter. */
882
+ remaining?: number | null;
883
+ }
884
+
885
+ export const QuotaRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
886
+ anniversaryDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
887
+ quarterAnniversaryDate: Schema.optional(
888
+ Schema.Union([Schema.String, Schema.Null]),
889
+ ),
890
+ quota: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
891
+ remaining: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
892
+ })
893
+ .pipe(
894
+ Schema.encodeKeys({
895
+ anniversaryDate: "anniversary_date",
896
+ quarterAnniversaryDate: "quarter_anniversary_date",
897
+ quota: "quota",
898
+ remaining: "remaining",
899
+ }),
900
+ )
901
+ .pipe(
902
+ T.ResponsePath("result"),
903
+ ) as unknown as Schema.Schema<QuotaRequestResponse>;
904
+
905
+ export type QuotaRequestError = DefaultErrors;
906
+
907
+ export const quotaRequest: API.OperationMethod<
908
+ QuotaRequestRequest,
909
+ QuotaRequestResponse,
910
+ QuotaRequestError,
911
+ Credentials | HttpClient.HttpClient
912
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
913
+ input: QuotaRequestRequest,
914
+ output: QuotaRequestResponse,
915
+ errors: [],
916
+ }));
917
+
918
+ export interface TypesRequestRequest {
919
+ /** Identifier. */
920
+ accountId: string;
921
+ }
922
+
923
+ export const TypesRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
924
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
925
+ }).pipe(
926
+ T.Http({
927
+ method: "GET",
928
+ path: "/accounts/{account_id}/cloudforce-one/requests/types",
929
+ }),
930
+ ) as unknown as Schema.Schema<TypesRequestRequest>;
931
+
932
+ export interface TypesRequestResponse {
933
+ result: string[];
934
+ }
935
+
936
+ export const TypesRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
937
+ result: Schema.Array(Schema.String),
938
+ }) as unknown as Schema.Schema<TypesRequestResponse>;
939
+
940
+ export type TypesRequestError = DefaultErrors;
941
+
942
+ export const typesRequest: API.PaginatedOperationMethod<
943
+ TypesRequestRequest,
944
+ TypesRequestResponse,
945
+ TypesRequestError,
946
+ Credentials | HttpClient.HttpClient
947
+ > & {
948
+ pages: (
949
+ input: TypesRequestRequest,
950
+ ) => stream.Stream<
951
+ TypesRequestResponse,
952
+ TypesRequestError,
953
+ Credentials | HttpClient.HttpClient
954
+ >;
955
+ items: (
956
+ input: TypesRequestRequest,
957
+ ) => stream.Stream<
958
+ string,
959
+ TypesRequestError,
960
+ Credentials | HttpClient.HttpClient
961
+ >;
962
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
963
+ input: TypesRequestRequest,
964
+ output: TypesRequestResponse,
965
+ errors: [],
966
+ pagination: {
967
+ mode: "single",
968
+ items: "result",
969
+ } as const,
970
+ }));
971
+
972
+ // =============================================================================
973
+ // RequestAsset
974
+ // =============================================================================
975
+
976
+ export interface GetRequestAssetRequest {
977
+ requestId: string;
978
+ assetId: string;
979
+ /** Identifier. */
980
+ accountId: string;
981
+ }
982
+
983
+ export const GetRequestAssetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
984
+ {
985
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
986
+ assetId: Schema.String.pipe(T.HttpPath("assetId")),
987
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
988
+ },
989
+ ).pipe(
990
+ T.Http({
991
+ method: "GET",
992
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset/{assetId}",
993
+ }),
994
+ ) as unknown as Schema.Schema<GetRequestAssetRequest>;
995
+
996
+ export interface GetRequestAssetResponse {
997
+ result: {
998
+ id: number;
999
+ name: string;
1000
+ created?: string | null;
1001
+ description?: string | null;
1002
+ fileType?: string | null;
1003
+ }[];
1004
+ }
1005
+
1006
+ export const GetRequestAssetResponse =
1007
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1008
+ result: Schema.Array(
1009
+ Schema.Struct({
1010
+ id: Schema.Number,
1011
+ name: Schema.String,
1012
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1013
+ description: Schema.optional(
1014
+ Schema.Union([Schema.String, Schema.Null]),
1015
+ ),
1016
+ fileType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1017
+ }).pipe(
1018
+ Schema.encodeKeys({
1019
+ id: "id",
1020
+ name: "name",
1021
+ created: "created",
1022
+ description: "description",
1023
+ fileType: "file_type",
1024
+ }),
1025
+ ),
1026
+ ),
1027
+ }) as unknown as Schema.Schema<GetRequestAssetResponse>;
1028
+
1029
+ export type GetRequestAssetError = DefaultErrors;
1030
+
1031
+ export const getRequestAsset: API.PaginatedOperationMethod<
1032
+ GetRequestAssetRequest,
1033
+ GetRequestAssetResponse,
1034
+ GetRequestAssetError,
1035
+ Credentials | HttpClient.HttpClient
1036
+ > & {
1037
+ pages: (
1038
+ input: GetRequestAssetRequest,
1039
+ ) => stream.Stream<
1040
+ GetRequestAssetResponse,
1041
+ GetRequestAssetError,
1042
+ Credentials | HttpClient.HttpClient
1043
+ >;
1044
+ items: (input: GetRequestAssetRequest) => stream.Stream<
1045
+ {
1046
+ id: number;
1047
+ name: string;
1048
+ created?: string | null;
1049
+ description?: string | null;
1050
+ fileType?: string | null;
1051
+ },
1052
+ GetRequestAssetError,
1053
+ Credentials | HttpClient.HttpClient
1054
+ >;
1055
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1056
+ input: GetRequestAssetRequest,
1057
+ output: GetRequestAssetResponse,
1058
+ errors: [],
1059
+ pagination: {
1060
+ mode: "single",
1061
+ items: "result",
1062
+ } as const,
1063
+ }));
1064
+
1065
+ export interface CreateRequestAssetRequest {
1066
+ requestId: string;
1067
+ /** Path param: Identifier. */
1068
+ accountId: string;
1069
+ /** Body param: Page number of results. */
1070
+ page: number;
1071
+ /** Body param: Number of results per page. */
1072
+ perPage: number;
1073
+ }
1074
+
1075
+ export const CreateRequestAssetRequest =
1076
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1077
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
1078
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1079
+ page: Schema.Number,
1080
+ perPage: Schema.Number,
1081
+ }).pipe(
1082
+ Schema.encodeKeys({ page: "page", perPage: "per_page" }),
1083
+ T.Http({
1084
+ method: "POST",
1085
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset",
1086
+ }),
1087
+ ) as unknown as Schema.Schema<CreateRequestAssetRequest>;
1088
+
1089
+ export interface CreateRequestAssetResponse {
1090
+ result: {
1091
+ id: number;
1092
+ name: string;
1093
+ created?: string | null;
1094
+ description?: string | null;
1095
+ fileType?: string | null;
1096
+ }[];
1097
+ }
1098
+
1099
+ export const CreateRequestAssetResponse =
1100
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1101
+ result: Schema.Array(
1102
+ Schema.Struct({
1103
+ id: Schema.Number,
1104
+ name: Schema.String,
1105
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1106
+ description: Schema.optional(
1107
+ Schema.Union([Schema.String, Schema.Null]),
1108
+ ),
1109
+ fileType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1110
+ }).pipe(
1111
+ Schema.encodeKeys({
1112
+ id: "id",
1113
+ name: "name",
1114
+ created: "created",
1115
+ description: "description",
1116
+ fileType: "file_type",
1117
+ }),
1118
+ ),
1119
+ ),
1120
+ }) as unknown as Schema.Schema<CreateRequestAssetResponse>;
1121
+
1122
+ export type CreateRequestAssetError = DefaultErrors;
1123
+
1124
+ export const createRequestAsset: API.PaginatedOperationMethod<
1125
+ CreateRequestAssetRequest,
1126
+ CreateRequestAssetResponse,
1127
+ CreateRequestAssetError,
1128
+ Credentials | HttpClient.HttpClient
1129
+ > & {
1130
+ pages: (
1131
+ input: CreateRequestAssetRequest,
1132
+ ) => stream.Stream<
1133
+ CreateRequestAssetResponse,
1134
+ CreateRequestAssetError,
1135
+ Credentials | HttpClient.HttpClient
1136
+ >;
1137
+ items: (input: CreateRequestAssetRequest) => stream.Stream<
1138
+ {
1139
+ id: number;
1140
+ name: string;
1141
+ created?: string | null;
1142
+ description?: string | null;
1143
+ fileType?: string | null;
1144
+ },
1145
+ CreateRequestAssetError,
1146
+ Credentials | HttpClient.HttpClient
1147
+ >;
1148
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1149
+ input: CreateRequestAssetRequest,
1150
+ output: CreateRequestAssetResponse,
1151
+ errors: [],
1152
+ pagination: {
1153
+ mode: "single",
1154
+ items: "result",
1155
+ } as const,
1156
+ }));
1157
+
1158
+ export interface UpdateRequestAssetRequest {
1159
+ requestId: string;
1160
+ assetId: string;
1161
+ /** Path param: Identifier. */
1162
+ accountId: string;
1163
+ /** Body param: Asset file to upload. */
1164
+ source?: string;
1165
+ }
1166
+
1167
+ export const UpdateRequestAssetRequest =
1168
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1169
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
1170
+ assetId: Schema.String.pipe(T.HttpPath("assetId")),
1171
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1172
+ source: Schema.optional(Schema.String),
1173
+ }).pipe(
1174
+ T.Http({
1175
+ method: "PUT",
1176
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset/{assetId}",
1177
+ }),
1178
+ ) as unknown as Schema.Schema<UpdateRequestAssetRequest>;
1179
+
1180
+ export interface UpdateRequestAssetResponse {
1181
+ /** Asset ID. */
1182
+ id: number;
1183
+ /** Asset name. */
1184
+ name: string;
1185
+ /** Defines the asset creation time. */
1186
+ created?: string | null;
1187
+ /** Asset description. */
1188
+ description?: string | null;
1189
+ /** Asset file type. */
1190
+ fileType?: string | null;
1191
+ }
1192
+
1193
+ export const UpdateRequestAssetResponse =
1194
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1195
+ id: Schema.Number,
1196
+ name: Schema.String,
1197
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1198
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1199
+ fileType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1200
+ })
1201
+ .pipe(
1202
+ Schema.encodeKeys({
1203
+ id: "id",
1204
+ name: "name",
1205
+ created: "created",
1206
+ description: "description",
1207
+ fileType: "file_type",
1208
+ }),
1209
+ )
1210
+ .pipe(
1211
+ T.ResponsePath("result"),
1212
+ ) as unknown as Schema.Schema<UpdateRequestAssetResponse>;
1213
+
1214
+ export type UpdateRequestAssetError = DefaultErrors;
1215
+
1216
+ export const updateRequestAsset: API.OperationMethod<
1217
+ UpdateRequestAssetRequest,
1218
+ UpdateRequestAssetResponse,
1219
+ UpdateRequestAssetError,
1220
+ Credentials | HttpClient.HttpClient
1221
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1222
+ input: UpdateRequestAssetRequest,
1223
+ output: UpdateRequestAssetResponse,
1224
+ errors: [],
1225
+ }));
1226
+
1227
+ export interface DeleteRequestAssetRequest {
1228
+ requestId: string;
1229
+ assetId: string;
1230
+ /** Identifier. */
1231
+ accountId: string;
1232
+ }
1233
+
1234
+ export const DeleteRequestAssetRequest =
1235
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1236
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
1237
+ assetId: Schema.String.pipe(T.HttpPath("assetId")),
1238
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1239
+ }).pipe(
1240
+ T.Http({
1241
+ method: "DELETE",
1242
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset/{assetId}",
1243
+ }),
1244
+ ) as unknown as Schema.Schema<DeleteRequestAssetRequest>;
1245
+
1246
+ export interface DeleteRequestAssetResponse {
1247
+ errors: {
1248
+ code: number;
1249
+ message: string;
1250
+ documentationUrl?: string | null;
1251
+ source?: { pointer?: string | null } | null;
1252
+ }[];
1253
+ messages: {
1254
+ code: number;
1255
+ message: string;
1256
+ documentationUrl?: string | null;
1257
+ source?: { pointer?: string | null } | null;
1258
+ }[];
1259
+ /** Whether the API call was successful. */
1260
+ success: true;
1261
+ }
1262
+
1263
+ export const DeleteRequestAssetResponse =
1264
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1265
+ errors: Schema.Array(
1266
+ Schema.Struct({
1267
+ code: Schema.Number,
1268
+ message: Schema.String,
1269
+ documentationUrl: Schema.optional(
1270
+ Schema.Union([Schema.String, Schema.Null]),
1271
+ ),
1272
+ source: Schema.optional(
1273
+ Schema.Union([
1274
+ Schema.Struct({
1275
+ pointer: Schema.optional(
1276
+ Schema.Union([Schema.String, Schema.Null]),
1277
+ ),
1278
+ }),
1279
+ Schema.Null,
1280
+ ]),
1281
+ ),
1282
+ }).pipe(
1283
+ Schema.encodeKeys({
1284
+ code: "code",
1285
+ message: "message",
1286
+ documentationUrl: "documentation_url",
1287
+ source: "source",
1288
+ }),
1289
+ ),
1290
+ ),
1291
+ messages: Schema.Array(
1292
+ Schema.Struct({
1293
+ code: Schema.Number,
1294
+ message: Schema.String,
1295
+ documentationUrl: Schema.optional(
1296
+ Schema.Union([Schema.String, Schema.Null]),
1297
+ ),
1298
+ source: Schema.optional(
1299
+ Schema.Union([
1300
+ Schema.Struct({
1301
+ pointer: Schema.optional(
1302
+ Schema.Union([Schema.String, Schema.Null]),
1303
+ ),
1304
+ }),
1305
+ Schema.Null,
1306
+ ]),
1307
+ ),
1308
+ }).pipe(
1309
+ Schema.encodeKeys({
1310
+ code: "code",
1311
+ message: "message",
1312
+ documentationUrl: "documentation_url",
1313
+ source: "source",
1314
+ }),
1315
+ ),
1316
+ ),
1317
+ success: Schema.Literal(true),
1318
+ }) as unknown as Schema.Schema<DeleteRequestAssetResponse>;
1319
+
1320
+ export type DeleteRequestAssetError = DefaultErrors;
1321
+
1322
+ export const deleteRequestAsset: API.OperationMethod<
1323
+ DeleteRequestAssetRequest,
1324
+ DeleteRequestAssetResponse,
1325
+ DeleteRequestAssetError,
1326
+ Credentials | HttpClient.HttpClient
1327
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1328
+ input: DeleteRequestAssetRequest,
1329
+ output: DeleteRequestAssetResponse,
1330
+ errors: [],
1331
+ }));
1332
+
1333
+ // =============================================================================
1334
+ // RequestMessage
1335
+ // =============================================================================
1336
+
1337
+ export interface GetRequestMessageRequest {
1338
+ requestId: string;
1339
+ /** Path param: Identifier. */
1340
+ accountId: string;
1341
+ /** Body param: Page number of results. */
1342
+ page: number;
1343
+ /** Body param: Number of results per page. */
1344
+ perPage: number;
1345
+ /** Body param: Retrieve mes ges created after this time. */
1346
+ after?: string;
1347
+ /** Body param: Retrieve messages created before this time. */
1348
+ before?: string;
1349
+ /** Body param: Field to sort results by. */
1350
+ sortBy?: string;
1351
+ /** Body param: Sort order (asc or desc). */
1352
+ sortOrder?: "asc" | "desc";
1353
+ }
1354
+
1355
+ export const GetRequestMessageRequest =
1356
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1357
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
1358
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1359
+ page: Schema.Number,
1360
+ perPage: Schema.Number,
1361
+ after: Schema.optional(Schema.String),
1362
+ before: Schema.optional(Schema.String),
1363
+ sortBy: Schema.optional(Schema.String),
1364
+ sortOrder: Schema.optional(Schema.Literals(["asc", "desc"])),
1365
+ }).pipe(
1366
+ Schema.encodeKeys({
1367
+ page: "page",
1368
+ perPage: "per_page",
1369
+ after: "after",
1370
+ before: "before",
1371
+ sortBy: "sort_by",
1372
+ sortOrder: "sort_order",
1373
+ }),
1374
+ T.Http({
1375
+ method: "POST",
1376
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message",
1377
+ }),
1378
+ ) as unknown as Schema.Schema<GetRequestMessageRequest>;
1379
+
1380
+ export interface GetRequestMessageResponse {
1381
+ result: {
1382
+ code: number;
1383
+ message: string;
1384
+ documentationUrl?: string | null;
1385
+ source?: { pointer?: string | null } | null;
1386
+ }[];
1387
+ }
1388
+
1389
+ export const GetRequestMessageResponse =
1390
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1391
+ result: Schema.Array(
1392
+ Schema.Struct({
1393
+ code: Schema.Number,
1394
+ message: Schema.String,
1395
+ documentationUrl: Schema.optional(
1396
+ Schema.Union([Schema.String, Schema.Null]),
1397
+ ),
1398
+ source: Schema.optional(
1399
+ Schema.Union([
1400
+ Schema.Struct({
1401
+ pointer: Schema.optional(
1402
+ Schema.Union([Schema.String, Schema.Null]),
1403
+ ),
1404
+ }),
1405
+ Schema.Null,
1406
+ ]),
1407
+ ),
1408
+ }).pipe(
1409
+ Schema.encodeKeys({
1410
+ code: "code",
1411
+ message: "message",
1412
+ documentationUrl: "documentation_url",
1413
+ source: "source",
1414
+ }),
1415
+ ),
1416
+ ),
1417
+ }) as unknown as Schema.Schema<GetRequestMessageResponse>;
1418
+
1419
+ export type GetRequestMessageError = DefaultErrors;
1420
+
1421
+ export const getRequestMessage: API.PaginatedOperationMethod<
1422
+ GetRequestMessageRequest,
1423
+ GetRequestMessageResponse,
1424
+ GetRequestMessageError,
1425
+ Credentials | HttpClient.HttpClient
1426
+ > & {
1427
+ pages: (
1428
+ input: GetRequestMessageRequest,
1429
+ ) => stream.Stream<
1430
+ GetRequestMessageResponse,
1431
+ GetRequestMessageError,
1432
+ Credentials | HttpClient.HttpClient
1433
+ >;
1434
+ items: (input: GetRequestMessageRequest) => stream.Stream<
1435
+ {
1436
+ code: number;
1437
+ message: string;
1438
+ documentationUrl?: string | null;
1439
+ source?: { pointer?: string | null } | null;
1440
+ },
1441
+ GetRequestMessageError,
1442
+ Credentials | HttpClient.HttpClient
1443
+ >;
1444
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1445
+ input: GetRequestMessageRequest,
1446
+ output: GetRequestMessageResponse,
1447
+ errors: [],
1448
+ pagination: {
1449
+ mode: "single",
1450
+ items: "result",
1451
+ } as const,
1452
+ }));
1453
+
1454
+ export interface CreateRequestMessageRequest {
1455
+ requestId: string;
1456
+ /** Path param: Identifier. */
1457
+ accountId: string;
1458
+ /** Body param: Content of message. */
1459
+ content?: string;
1460
+ }
1461
+
1462
+ export const CreateRequestMessageRequest =
1463
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1464
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
1465
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1466
+ content: Schema.optional(Schema.String),
1467
+ }).pipe(
1468
+ T.Http({
1469
+ method: "POST",
1470
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message/new",
1471
+ }),
1472
+ ) as unknown as Schema.Schema<CreateRequestMessageRequest>;
1473
+
1474
+ export interface CreateRequestMessageResponse {
1475
+ code: number;
1476
+ message: string;
1477
+ documentationUrl?: string | null;
1478
+ source?: { pointer?: string | null } | null;
1479
+ }
1480
+
1481
+ export const CreateRequestMessageResponse =
1482
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1483
+ code: Schema.Number,
1484
+ message: Schema.String,
1485
+ documentationUrl: Schema.optional(
1486
+ Schema.Union([Schema.String, Schema.Null]),
1487
+ ),
1488
+ source: Schema.optional(
1489
+ Schema.Union([
1490
+ Schema.Struct({
1491
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1492
+ }),
1493
+ Schema.Null,
1494
+ ]),
1495
+ ),
1496
+ })
1497
+ .pipe(
1498
+ Schema.encodeKeys({
1499
+ code: "code",
1500
+ message: "message",
1501
+ documentationUrl: "documentation_url",
1502
+ source: "source",
1503
+ }),
1504
+ )
1505
+ .pipe(
1506
+ T.ResponsePath("result"),
1507
+ ) as unknown as Schema.Schema<CreateRequestMessageResponse>;
1508
+
1509
+ export type CreateRequestMessageError = DefaultErrors;
1510
+
1511
+ export const createRequestMessage: API.OperationMethod<
1512
+ CreateRequestMessageRequest,
1513
+ CreateRequestMessageResponse,
1514
+ CreateRequestMessageError,
1515
+ Credentials | HttpClient.HttpClient
1516
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1517
+ input: CreateRequestMessageRequest,
1518
+ output: CreateRequestMessageResponse,
1519
+ errors: [],
1520
+ }));
1521
+
1522
+ export interface UpdateRequestMessageRequest {
1523
+ requestId: string;
1524
+ messageId: number;
1525
+ /** Path param: Identifier. */
1526
+ accountId: string;
1527
+ /** Body param: Content of message. */
1528
+ content?: string;
1529
+ }
1530
+
1531
+ export const UpdateRequestMessageRequest =
1532
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1533
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
1534
+ messageId: Schema.Number.pipe(T.HttpPath("messageId")),
1535
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1536
+ content: Schema.optional(Schema.String),
1537
+ }).pipe(
1538
+ T.Http({
1539
+ method: "PUT",
1540
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message/{messageId}",
1541
+ }),
1542
+ ) as unknown as Schema.Schema<UpdateRequestMessageRequest>;
1543
+
1544
+ export interface UpdateRequestMessageResponse {
1545
+ code: number;
1546
+ message: string;
1547
+ documentationUrl?: string | null;
1548
+ source?: { pointer?: string | null } | null;
1549
+ }
1550
+
1551
+ export const UpdateRequestMessageResponse =
1552
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1553
+ code: Schema.Number,
1554
+ message: Schema.String,
1555
+ documentationUrl: Schema.optional(
1556
+ Schema.Union([Schema.String, Schema.Null]),
1557
+ ),
1558
+ source: Schema.optional(
1559
+ Schema.Union([
1560
+ Schema.Struct({
1561
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1562
+ }),
1563
+ Schema.Null,
1564
+ ]),
1565
+ ),
1566
+ })
1567
+ .pipe(
1568
+ Schema.encodeKeys({
1569
+ code: "code",
1570
+ message: "message",
1571
+ documentationUrl: "documentation_url",
1572
+ source: "source",
1573
+ }),
1574
+ )
1575
+ .pipe(
1576
+ T.ResponsePath("result"),
1577
+ ) as unknown as Schema.Schema<UpdateRequestMessageResponse>;
1578
+
1579
+ export type UpdateRequestMessageError = DefaultErrors;
1580
+
1581
+ export const updateRequestMessage: API.OperationMethod<
1582
+ UpdateRequestMessageRequest,
1583
+ UpdateRequestMessageResponse,
1584
+ UpdateRequestMessageError,
1585
+ Credentials | HttpClient.HttpClient
1586
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1587
+ input: UpdateRequestMessageRequest,
1588
+ output: UpdateRequestMessageResponse,
1589
+ errors: [],
1590
+ }));
1591
+
1592
+ export interface DeleteRequestMessageRequest {
1593
+ requestId: string;
1594
+ messageId: number;
1595
+ /** Identifier. */
1596
+ accountId: string;
1597
+ }
1598
+
1599
+ export const DeleteRequestMessageRequest =
1600
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1601
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
1602
+ messageId: Schema.Number.pipe(T.HttpPath("messageId")),
1603
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1604
+ }).pipe(
1605
+ T.Http({
1606
+ method: "DELETE",
1607
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message/{messageId}",
1608
+ }),
1609
+ ) as unknown as Schema.Schema<DeleteRequestMessageRequest>;
1610
+
1611
+ export interface DeleteRequestMessageResponse {
1612
+ errors: {
1613
+ code: number;
1614
+ message: string;
1615
+ documentationUrl?: string | null;
1616
+ source?: { pointer?: string | null } | null;
1617
+ }[];
1618
+ messages: {
1619
+ code: number;
1620
+ message: string;
1621
+ documentationUrl?: string | null;
1622
+ source?: { pointer?: string | null } | null;
1623
+ }[];
1624
+ /** Whether the API call was successful. */
1625
+ success: true;
1626
+ }
1627
+
1628
+ export const DeleteRequestMessageResponse =
1629
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1630
+ errors: Schema.Array(
1631
+ Schema.Struct({
1632
+ code: Schema.Number,
1633
+ message: Schema.String,
1634
+ documentationUrl: Schema.optional(
1635
+ Schema.Union([Schema.String, Schema.Null]),
1636
+ ),
1637
+ source: Schema.optional(
1638
+ Schema.Union([
1639
+ Schema.Struct({
1640
+ pointer: Schema.optional(
1641
+ Schema.Union([Schema.String, Schema.Null]),
1642
+ ),
1643
+ }),
1644
+ Schema.Null,
1645
+ ]),
1646
+ ),
1647
+ }).pipe(
1648
+ Schema.encodeKeys({
1649
+ code: "code",
1650
+ message: "message",
1651
+ documentationUrl: "documentation_url",
1652
+ source: "source",
1653
+ }),
1654
+ ),
1655
+ ),
1656
+ messages: Schema.Array(
1657
+ Schema.Struct({
1658
+ code: Schema.Number,
1659
+ message: Schema.String,
1660
+ documentationUrl: Schema.optional(
1661
+ Schema.Union([Schema.String, Schema.Null]),
1662
+ ),
1663
+ source: Schema.optional(
1664
+ Schema.Union([
1665
+ Schema.Struct({
1666
+ pointer: Schema.optional(
1667
+ Schema.Union([Schema.String, Schema.Null]),
1668
+ ),
1669
+ }),
1670
+ Schema.Null,
1671
+ ]),
1672
+ ),
1673
+ }).pipe(
1674
+ Schema.encodeKeys({
1675
+ code: "code",
1676
+ message: "message",
1677
+ documentationUrl: "documentation_url",
1678
+ source: "source",
1679
+ }),
1680
+ ),
1681
+ ),
1682
+ success: Schema.Literal(true),
1683
+ }) as unknown as Schema.Schema<DeleteRequestMessageResponse>;
1684
+
1685
+ export type DeleteRequestMessageError = DefaultErrors;
1686
+
1687
+ export const deleteRequestMessage: API.OperationMethod<
1688
+ DeleteRequestMessageRequest,
1689
+ DeleteRequestMessageResponse,
1690
+ DeleteRequestMessageError,
1691
+ Credentials | HttpClient.HttpClient
1692
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1693
+ input: DeleteRequestMessageRequest,
1694
+ output: DeleteRequestMessageResponse,
1695
+ errors: [],
1696
+ }));
1697
+
1698
+ // =============================================================================
1699
+ // RequestPriority
1700
+ // =============================================================================
1701
+
1702
+ export interface GetRequestPriorityRequest {
1703
+ priorityId: string;
1704
+ /** Identifier. */
1705
+ accountId: string;
1706
+ }
1707
+
1708
+ export const GetRequestPriorityRequest =
1709
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1710
+ priorityId: Schema.String.pipe(T.HttpPath("priorityId")),
1711
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1712
+ }).pipe(
1713
+ T.Http({
1714
+ method: "GET",
1715
+ path: "/accounts/{account_id}/cloudforce-one/requests/priority/{priorityId}",
1716
+ }),
1717
+ ) as unknown as Schema.Schema<GetRequestPriorityRequest>;
1718
+
1719
+ export type GetRequestPriorityResponse = unknown;
1720
+
1721
+ export const GetRequestPriorityResponse =
1722
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetRequestPriorityResponse>;
1723
+
1724
+ export type GetRequestPriorityError = DefaultErrors;
1725
+
1726
+ export const getRequestPriority: API.OperationMethod<
1727
+ GetRequestPriorityRequest,
1728
+ GetRequestPriorityResponse,
1729
+ GetRequestPriorityError,
1730
+ Credentials | HttpClient.HttpClient
1731
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1732
+ input: GetRequestPriorityRequest,
1733
+ output: GetRequestPriorityResponse,
1734
+ errors: [],
1735
+ }));
1736
+
1737
+ export interface CreateRequestPriorityRequest {
1738
+ /** Path param: Identifier. */
1739
+ accountId: string;
1740
+ /** Body param: List of labels. */
1741
+ labels: string[];
1742
+ /** Body param: Priority. */
1743
+ priority: number;
1744
+ /** Body param: Requirement. */
1745
+ requirement: string;
1746
+ /** Body param: The CISA defined Traffic Light Protocol (TLP). */
1747
+ tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
1748
+ }
1749
+
1750
+ export const CreateRequestPriorityRequest =
1751
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1752
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1753
+ labels: Schema.Array(Schema.String),
1754
+ priority: Schema.Number,
1755
+ requirement: Schema.String,
1756
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
1757
+ }).pipe(
1758
+ T.Http({
1759
+ method: "POST",
1760
+ path: "/accounts/{account_id}/cloudforce-one/requests/priority/new",
1761
+ }),
1762
+ ) as unknown as Schema.Schema<CreateRequestPriorityRequest>;
1763
+
1764
+ export interface CreateRequestPriorityResponse {
1765
+ /** UUID. */
1766
+ id: string;
1767
+ /** Priority creation time. */
1768
+ created: string;
1769
+ /** List of labels. */
1770
+ labels: string[];
1771
+ /** Priority. */
1772
+ priority: number;
1773
+ /** Requirement. */
1774
+ requirement: string;
1775
+ /** The CISA defined Traffic Light Protocol (TLP). */
1776
+ tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
1777
+ /** Priority last updated time. */
1778
+ updated: string;
1779
+ }
1780
+
1781
+ export const CreateRequestPriorityResponse =
1782
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1783
+ id: Schema.String,
1784
+ created: Schema.String,
1785
+ labels: Schema.Array(Schema.String),
1786
+ priority: Schema.Number,
1787
+ requirement: Schema.String,
1788
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
1789
+ updated: Schema.String,
1790
+ }).pipe(
1791
+ T.ResponsePath("result"),
1792
+ ) as unknown as Schema.Schema<CreateRequestPriorityResponse>;
1793
+
1794
+ export type CreateRequestPriorityError = DefaultErrors;
1795
+
1796
+ export const createRequestPriority: API.OperationMethod<
1797
+ CreateRequestPriorityRequest,
1798
+ CreateRequestPriorityResponse,
1799
+ CreateRequestPriorityError,
1800
+ Credentials | HttpClient.HttpClient
1801
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1802
+ input: CreateRequestPriorityRequest,
1803
+ output: CreateRequestPriorityResponse,
1804
+ errors: [],
1805
+ }));
1806
+
1807
+ export interface UpdateRequestPriorityRequest {
1808
+ priorityId: string;
1809
+ /** Path param: Identifier. */
1810
+ accountId: string;
1811
+ /** Body param: List of labels. */
1812
+ labels: string[];
1813
+ /** Body param: Priority. */
1814
+ priority: number;
1815
+ /** Body param: Requirement. */
1816
+ requirement: string;
1817
+ /** Body param: The CISA defined Traffic Light Protocol (TLP). */
1818
+ tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
1819
+ }
1820
+
1821
+ export const UpdateRequestPriorityRequest =
1822
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1823
+ priorityId: Schema.String.pipe(T.HttpPath("priorityId")),
1824
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1825
+ labels: Schema.Array(Schema.String),
1826
+ priority: Schema.Number,
1827
+ requirement: Schema.String,
1828
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
1829
+ }).pipe(
1830
+ T.Http({
1831
+ method: "PUT",
1832
+ path: "/accounts/{account_id}/cloudforce-one/requests/priority/{priorityId}",
1833
+ }),
1834
+ ) as unknown as Schema.Schema<UpdateRequestPriorityRequest>;
1835
+
1836
+ export type UpdateRequestPriorityResponse = unknown;
1837
+
1838
+ export const UpdateRequestPriorityResponse =
1839
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<UpdateRequestPriorityResponse>;
1840
+
1841
+ export type UpdateRequestPriorityError = DefaultErrors;
1842
+
1843
+ export const updateRequestPriority: API.OperationMethod<
1844
+ UpdateRequestPriorityRequest,
1845
+ UpdateRequestPriorityResponse,
1846
+ UpdateRequestPriorityError,
1847
+ Credentials | HttpClient.HttpClient
1848
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1849
+ input: UpdateRequestPriorityRequest,
1850
+ output: UpdateRequestPriorityResponse,
1851
+ errors: [],
1852
+ }));
1853
+
1854
+ export interface DeleteRequestPriorityRequest {
1855
+ priorityId: string;
1856
+ /** Identifier. */
1857
+ accountId: string;
1858
+ }
1859
+
1860
+ export const DeleteRequestPriorityRequest =
1861
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1862
+ priorityId: Schema.String.pipe(T.HttpPath("priorityId")),
1863
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1864
+ }).pipe(
1865
+ T.Http({
1866
+ method: "DELETE",
1867
+ path: "/accounts/{account_id}/cloudforce-one/requests/priority/{priorityId}",
1868
+ }),
1869
+ ) as unknown as Schema.Schema<DeleteRequestPriorityRequest>;
1870
+
1871
+ export interface DeleteRequestPriorityResponse {
1872
+ errors: {
1873
+ code: number;
1874
+ message: string;
1875
+ documentationUrl?: string | null;
1876
+ source?: { pointer?: string | null } | null;
1877
+ }[];
1878
+ messages: {
1879
+ code: number;
1880
+ message: string;
1881
+ documentationUrl?: string | null;
1882
+ source?: { pointer?: string | null } | null;
1883
+ }[];
1884
+ /** Whether the API call was successful. */
1885
+ success: true;
1886
+ }
1887
+
1888
+ export const DeleteRequestPriorityResponse =
1889
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1890
+ errors: Schema.Array(
1891
+ Schema.Struct({
1892
+ code: Schema.Number,
1893
+ message: Schema.String,
1894
+ documentationUrl: Schema.optional(
1895
+ Schema.Union([Schema.String, Schema.Null]),
1896
+ ),
1897
+ source: Schema.optional(
1898
+ Schema.Union([
1899
+ Schema.Struct({
1900
+ pointer: Schema.optional(
1901
+ Schema.Union([Schema.String, Schema.Null]),
1902
+ ),
1903
+ }),
1904
+ Schema.Null,
1905
+ ]),
1906
+ ),
1907
+ }).pipe(
1908
+ Schema.encodeKeys({
1909
+ code: "code",
1910
+ message: "message",
1911
+ documentationUrl: "documentation_url",
1912
+ source: "source",
1913
+ }),
1914
+ ),
1915
+ ),
1916
+ messages: Schema.Array(
1917
+ Schema.Struct({
1918
+ code: Schema.Number,
1919
+ message: Schema.String,
1920
+ documentationUrl: Schema.optional(
1921
+ Schema.Union([Schema.String, Schema.Null]),
1922
+ ),
1923
+ source: Schema.optional(
1924
+ Schema.Union([
1925
+ Schema.Struct({
1926
+ pointer: Schema.optional(
1927
+ Schema.Union([Schema.String, Schema.Null]),
1928
+ ),
1929
+ }),
1930
+ Schema.Null,
1931
+ ]),
1932
+ ),
1933
+ }).pipe(
1934
+ Schema.encodeKeys({
1935
+ code: "code",
1936
+ message: "message",
1937
+ documentationUrl: "documentation_url",
1938
+ source: "source",
1939
+ }),
1940
+ ),
1941
+ ),
1942
+ success: Schema.Literal(true),
1943
+ }) as unknown as Schema.Schema<DeleteRequestPriorityResponse>;
1944
+
1945
+ export type DeleteRequestPriorityError = DefaultErrors;
1946
+
1947
+ export const deleteRequestPriority: API.OperationMethod<
1948
+ DeleteRequestPriorityRequest,
1949
+ DeleteRequestPriorityResponse,
1950
+ DeleteRequestPriorityError,
1951
+ Credentials | HttpClient.HttpClient
1952
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1953
+ input: DeleteRequestPriorityRequest,
1954
+ output: DeleteRequestPriorityResponse,
1955
+ errors: [],
1956
+ }));
1957
+
1958
+ export interface QuotaRequestPriorityRequest {
1959
+ /** Identifier. */
1960
+ accountId: string;
1961
+ }
1962
+
1963
+ export const QuotaRequestPriorityRequest =
1964
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1965
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1966
+ }).pipe(
1967
+ T.Http({
1968
+ method: "GET",
1969
+ path: "/accounts/{account_id}/cloudforce-one/requests/priority/quota",
1970
+ }),
1971
+ ) as unknown as Schema.Schema<QuotaRequestPriorityRequest>;
1972
+
1973
+ export type QuotaRequestPriorityResponse = unknown;
1974
+
1975
+ export const QuotaRequestPriorityResponse =
1976
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<QuotaRequestPriorityResponse>;
1977
+
1978
+ export type QuotaRequestPriorityError = DefaultErrors;
1979
+
1980
+ export const quotaRequestPriority: API.OperationMethod<
1981
+ QuotaRequestPriorityRequest,
1982
+ QuotaRequestPriorityResponse,
1983
+ QuotaRequestPriorityError,
1984
+ Credentials | HttpClient.HttpClient
1985
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1986
+ input: QuotaRequestPriorityRequest,
1987
+ output: QuotaRequestPriorityResponse,
1988
+ errors: [],
1989
+ }));
1990
+
1991
+ // =============================================================================
1992
+ // ScanConfig
1993
+ // =============================================================================
1994
+
1995
+ export interface ListScanConfigsRequest {
1996
+ /** Defines the Account ID. */
1997
+ accountId: string;
1998
+ }
1999
+
2000
+ export const ListScanConfigsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2001
+ {
2002
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2003
+ },
2004
+ ).pipe(
2005
+ T.Http({
2006
+ method: "GET",
2007
+ path: "/accounts/{account_id}/cloudforce-one/scans/config",
2008
+ }),
2009
+ ) as unknown as Schema.Schema<ListScanConfigsRequest>;
2010
+
2011
+ export interface ListScanConfigsResponse {
2012
+ result: {
2013
+ id: string;
2014
+ accountId: string;
2015
+ frequency: number;
2016
+ ips: string[];
2017
+ ports: string[];
2018
+ }[];
2019
+ }
2020
+
2021
+ export const ListScanConfigsResponse =
2022
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2023
+ result: Schema.Array(
2024
+ Schema.Struct({
2025
+ id: Schema.String,
2026
+ accountId: Schema.String,
2027
+ frequency: Schema.Number,
2028
+ ips: Schema.Array(Schema.String),
2029
+ ports: Schema.Array(Schema.String),
2030
+ }).pipe(
2031
+ Schema.encodeKeys({
2032
+ id: "id",
2033
+ accountId: "account_id",
2034
+ frequency: "frequency",
2035
+ ips: "ips",
2036
+ ports: "ports",
2037
+ }),
2038
+ ),
2039
+ ),
2040
+ }) as unknown as Schema.Schema<ListScanConfigsResponse>;
2041
+
2042
+ export type ListScanConfigsError = DefaultErrors;
2043
+
2044
+ export const listScanConfigs: API.PaginatedOperationMethod<
2045
+ ListScanConfigsRequest,
2046
+ ListScanConfigsResponse,
2047
+ ListScanConfigsError,
2048
+ Credentials | HttpClient.HttpClient
2049
+ > & {
2050
+ pages: (
2051
+ input: ListScanConfigsRequest,
2052
+ ) => stream.Stream<
2053
+ ListScanConfigsResponse,
2054
+ ListScanConfigsError,
2055
+ Credentials | HttpClient.HttpClient
2056
+ >;
2057
+ items: (input: ListScanConfigsRequest) => stream.Stream<
2058
+ {
2059
+ id: string;
2060
+ accountId: string;
2061
+ frequency: number;
2062
+ ips: string[];
2063
+ ports: string[];
2064
+ },
2065
+ ListScanConfigsError,
2066
+ Credentials | HttpClient.HttpClient
2067
+ >;
2068
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2069
+ input: ListScanConfigsRequest,
2070
+ output: ListScanConfigsResponse,
2071
+ errors: [],
2072
+ pagination: {
2073
+ mode: "single",
2074
+ items: "result",
2075
+ } as const,
2076
+ }));
2077
+
2078
+ export interface CreateScanConfigRequest {
2079
+ /** Path param: Defines the Account ID. */
2080
+ accountId: string;
2081
+ /** Body param: Defines a list of IP addresses or CIDR blocks to scan. The maximum number of total IP addresses allowed is 5000. */
2082
+ ips: string[];
2083
+ /** Body param: Defines the number of days between each scan (0 = One-off scan). */
2084
+ frequency?: number;
2085
+ /** Body param: Defines a list of ports to scan. Valid values are:"default", "all", or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). "default" scans the 100 most commonly open */
2086
+ ports?: string[];
2087
+ }
2088
+
2089
+ export const CreateScanConfigRequest =
2090
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2091
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2092
+ ips: Schema.Array(Schema.String),
2093
+ frequency: Schema.optional(Schema.Number),
2094
+ ports: Schema.optional(Schema.Array(Schema.String)),
2095
+ }).pipe(
2096
+ T.Http({
2097
+ method: "POST",
2098
+ path: "/accounts/{account_id}/cloudforce-one/scans/config",
2099
+ }),
2100
+ ) as unknown as Schema.Schema<CreateScanConfigRequest>;
2101
+
2102
+ export interface CreateScanConfigResponse {
2103
+ /** Defines the Config ID. */
2104
+ id: string;
2105
+ accountId: string;
2106
+ /** Defines the number of days between each scan (0 = One-off scan). */
2107
+ frequency: number;
2108
+ /** Defines a list of IP addresses or CIDR blocks to scan. The maximum number of total IP addresses allowed is 5000. */
2109
+ ips: string[];
2110
+ /** Defines a list of ports to scan. Valid values are:"default", "all", or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). "default" scans the 100 most commonly open ports. */
2111
+ ports: string[];
2112
+ }
2113
+
2114
+ export const CreateScanConfigResponse =
2115
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2116
+ id: Schema.String,
2117
+ accountId: Schema.String,
2118
+ frequency: Schema.Number,
2119
+ ips: Schema.Array(Schema.String),
2120
+ ports: Schema.Array(Schema.String),
2121
+ })
2122
+ .pipe(
2123
+ Schema.encodeKeys({
2124
+ id: "id",
2125
+ accountId: "account_id",
2126
+ frequency: "frequency",
2127
+ ips: "ips",
2128
+ ports: "ports",
2129
+ }),
2130
+ )
2131
+ .pipe(
2132
+ T.ResponsePath("result"),
2133
+ ) as unknown as Schema.Schema<CreateScanConfigResponse>;
2134
+
2135
+ export type CreateScanConfigError = DefaultErrors;
2136
+
2137
+ export const createScanConfig: API.OperationMethod<
2138
+ CreateScanConfigRequest,
2139
+ CreateScanConfigResponse,
2140
+ CreateScanConfigError,
2141
+ Credentials | HttpClient.HttpClient
2142
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2143
+ input: CreateScanConfigRequest,
2144
+ output: CreateScanConfigResponse,
2145
+ errors: [],
2146
+ }));
2147
+
2148
+ export interface PatchScanConfigRequest {
2149
+ configId: string;
2150
+ /** Path param: Defines the Account ID. */
2151
+ accountId: string;
2152
+ /** Body param: Defines the number of days between each scan (0 = One-off scan). */
2153
+ frequency?: number;
2154
+ /** Body param: Defines a list of IP addresses or CIDR blocks to scan. The maximum number of total IP addresses allowed is 5000. */
2155
+ ips?: string[];
2156
+ /** Body param: Defines a list of ports to scan. Valid values are:"default", "all", or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). "default" scans the 100 most commonly open */
2157
+ ports?: string[];
2158
+ }
2159
+
2160
+ export const PatchScanConfigRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2161
+ {
2162
+ configId: Schema.String.pipe(T.HttpPath("configId")),
2163
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2164
+ frequency: Schema.optional(Schema.Number),
2165
+ ips: Schema.optional(Schema.Array(Schema.String)),
2166
+ ports: Schema.optional(Schema.Array(Schema.String)),
2167
+ },
2168
+ ).pipe(
2169
+ T.Http({
2170
+ method: "PATCH",
2171
+ path: "/accounts/{account_id}/cloudforce-one/scans/config/{configId}",
2172
+ }),
2173
+ ) as unknown as Schema.Schema<PatchScanConfigRequest>;
2174
+
2175
+ export interface PatchScanConfigResponse {
2176
+ /** Defines the Config ID. */
2177
+ id: string;
2178
+ accountId: string;
2179
+ /** Defines the number of days between each scan (0 = One-off scan). */
2180
+ frequency: number;
2181
+ /** Defines a list of IP addresses or CIDR blocks to scan. The maximum number of total IP addresses allowed is 5000. */
2182
+ ips: string[];
2183
+ /** Defines a list of ports to scan. Valid values are:"default", "all", or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). "default" scans the 100 most commonly open ports. */
2184
+ ports: string[];
2185
+ }
2186
+
2187
+ export const PatchScanConfigResponse =
2188
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2189
+ id: Schema.String,
2190
+ accountId: Schema.String,
2191
+ frequency: Schema.Number,
2192
+ ips: Schema.Array(Schema.String),
2193
+ ports: Schema.Array(Schema.String),
2194
+ })
2195
+ .pipe(
2196
+ Schema.encodeKeys({
2197
+ id: "id",
2198
+ accountId: "account_id",
2199
+ frequency: "frequency",
2200
+ ips: "ips",
2201
+ ports: "ports",
2202
+ }),
2203
+ )
2204
+ .pipe(
2205
+ T.ResponsePath("result"),
2206
+ ) as unknown as Schema.Schema<PatchScanConfigResponse>;
2207
+
2208
+ export type PatchScanConfigError = DefaultErrors;
2209
+
2210
+ export const patchScanConfig: API.OperationMethod<
2211
+ PatchScanConfigRequest,
2212
+ PatchScanConfigResponse,
2213
+ PatchScanConfigError,
2214
+ Credentials | HttpClient.HttpClient
2215
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2216
+ input: PatchScanConfigRequest,
2217
+ output: PatchScanConfigResponse,
2218
+ errors: [],
2219
+ }));
2220
+
2221
+ export interface DeleteScanConfigRequest {
2222
+ configId: string;
2223
+ /** Defines the Account ID. */
2224
+ accountId: string;
2225
+ }
2226
+
2227
+ export const DeleteScanConfigRequest =
2228
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2229
+ configId: Schema.String.pipe(T.HttpPath("configId")),
2230
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2231
+ }).pipe(
2232
+ T.Http({
2233
+ method: "DELETE",
2234
+ path: "/accounts/{account_id}/cloudforce-one/scans/config/{configId}",
2235
+ }),
2236
+ ) as unknown as Schema.Schema<DeleteScanConfigRequest>;
2237
+
2238
+ export type DeleteScanConfigResponse = unknown;
2239
+
2240
+ export const DeleteScanConfigResponse =
2241
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
2242
+ T.ResponsePath("result"),
2243
+ ) as unknown as Schema.Schema<DeleteScanConfigResponse>;
2244
+
2245
+ export type DeleteScanConfigError = DefaultErrors;
2246
+
2247
+ export const deleteScanConfig: API.OperationMethod<
2248
+ DeleteScanConfigRequest,
2249
+ DeleteScanConfigResponse,
2250
+ DeleteScanConfigError,
2251
+ Credentials | HttpClient.HttpClient
2252
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2253
+ input: DeleteScanConfigRequest,
2254
+ output: DeleteScanConfigResponse,
2255
+ errors: [],
2256
+ }));
2257
+
2258
+ // =============================================================================
2259
+ // ScanResult
2260
+ // =============================================================================
2261
+
2262
+ export interface GetScanResultRequest {
2263
+ configId: string;
2264
+ /** Defines the Account ID. */
2265
+ accountId: string;
2266
+ }
2267
+
2268
+ export const GetScanResultRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2269
+ configId: Schema.String.pipe(T.HttpPath("configId")),
2270
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2271
+ }).pipe(
2272
+ T.Http({
2273
+ method: "GET",
2274
+ path: "/accounts/{account_id}/cloudforce-one/scans/results/{configId}",
2275
+ }),
2276
+ ) as unknown as Schema.Schema<GetScanResultRequest>;
2277
+
2278
+ export interface GetScanResultResponse {
2279
+ "1.1.1.1": {
2280
+ number?: number | null;
2281
+ proto?: string | null;
2282
+ status?: string | null;
2283
+ }[];
2284
+ }
2285
+
2286
+ export const GetScanResultResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2287
+ "1.1.1.1": Schema.Array(
2288
+ Schema.Struct({
2289
+ number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2290
+ proto: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2291
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2292
+ }),
2293
+ ),
2294
+ }).pipe(
2295
+ T.ResponsePath("result"),
2296
+ ) as unknown as Schema.Schema<GetScanResultResponse>;
2297
+
2298
+ export type GetScanResultError = DefaultErrors;
2299
+
2300
+ export const getScanResult: API.OperationMethod<
2301
+ GetScanResultRequest,
2302
+ GetScanResultResponse,
2303
+ GetScanResultError,
2304
+ Credentials | HttpClient.HttpClient
2305
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2306
+ input: GetScanResultRequest,
2307
+ output: GetScanResultResponse,
2308
+ errors: [],
2309
+ }));
2310
+
2311
+ // =============================================================================
2312
+ // ThreatEvent
2313
+ // =============================================================================
2314
+
2315
+ export interface GetThreatEventRequest {
2316
+ eventId: string;
2317
+ /** Account ID. */
2318
+ accountId: string;
2319
+ }
2320
+
2321
+ export const GetThreatEventRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2322
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
2323
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2324
+ }).pipe(
2325
+ T.Http({
2326
+ method: "GET",
2327
+ path: "/accounts/{account_id}/cloudforce-one/events/{eventId}",
2328
+ }),
2329
+ ) as unknown as Schema.Schema<GetThreatEventRequest>;
2330
+
2331
+ export interface GetThreatEventResponse {
2332
+ attacker: string;
2333
+ attackerCountry: string;
2334
+ category: string;
2335
+ date: string;
2336
+ event: string;
2337
+ hasChildren: boolean;
2338
+ indicator: string;
2339
+ indicatorType: string;
2340
+ indicatorTypeId: number;
2341
+ killChain: number;
2342
+ mitreAttack: string[];
2343
+ numReferenced: number;
2344
+ numReferences: number;
2345
+ rawId: string;
2346
+ referenced: string[];
2347
+ referencedIds: number[];
2348
+ references: string[];
2349
+ referencesIds: number[];
2350
+ tags: string[];
2351
+ targetCountry: string;
2352
+ targetIndustry: string;
2353
+ tlp: string;
2354
+ uuid: string;
2355
+ insight?: string | null;
2356
+ releasabilityId?: string | null;
2357
+ }
2358
+
2359
+ export const GetThreatEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2360
+ {
2361
+ attacker: Schema.String,
2362
+ attackerCountry: Schema.String,
2363
+ category: Schema.String,
2364
+ date: Schema.String,
2365
+ event: Schema.String,
2366
+ hasChildren: Schema.Boolean,
2367
+ indicator: Schema.String,
2368
+ indicatorType: Schema.String,
2369
+ indicatorTypeId: Schema.Number,
2370
+ killChain: Schema.Number,
2371
+ mitreAttack: Schema.Array(Schema.String),
2372
+ numReferenced: Schema.Number,
2373
+ numReferences: Schema.Number,
2374
+ rawId: Schema.String,
2375
+ referenced: Schema.Array(Schema.String),
2376
+ referencedIds: Schema.Array(Schema.Number),
2377
+ references: Schema.Array(Schema.String),
2378
+ referencesIds: Schema.Array(Schema.Number),
2379
+ tags: Schema.Array(Schema.String),
2380
+ targetCountry: Schema.String,
2381
+ targetIndustry: Schema.String,
2382
+ tlp: Schema.String,
2383
+ uuid: Schema.String,
2384
+ insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2385
+ releasabilityId: Schema.optional(
2386
+ Schema.Union([Schema.String, Schema.Null]),
2387
+ ),
2388
+ },
2389
+ ) as unknown as Schema.Schema<GetThreatEventResponse>;
2390
+
2391
+ export type GetThreatEventError = DefaultErrors;
2392
+
2393
+ export const getThreatEvent: API.OperationMethod<
2394
+ GetThreatEventRequest,
2395
+ GetThreatEventResponse,
2396
+ GetThreatEventError,
2397
+ Credentials | HttpClient.HttpClient
2398
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2399
+ input: GetThreatEventRequest,
2400
+ output: GetThreatEventResponse,
2401
+ errors: [],
2402
+ }));
2403
+
2404
+ export interface ListThreatEventsRequest {
2405
+ /** Path param: Account ID. */
2406
+ accountId: string;
2407
+ /** Query param: */
2408
+ datasetId?: string[];
2409
+ /** Query param: */
2410
+ forceRefresh?: boolean;
2411
+ /** Query param: */
2412
+ format?: "json" | "stix2";
2413
+ /** Query param: */
2414
+ order?: "asc" | "desc";
2415
+ /** Query param: */
2416
+ orderBy?: string;
2417
+ /** Query param: */
2418
+ page?: number;
2419
+ /** Query param: */
2420
+ pageSize?: number;
2421
+ /** Query param: */
2422
+ search?: {
2423
+ field?: string;
2424
+ op?:
2425
+ | "equals"
2426
+ | "not"
2427
+ | "gt"
2428
+ | "gte"
2429
+ | "lt"
2430
+ | "lte"
2431
+ | "like"
2432
+ | "contains"
2433
+ | "startsWith"
2434
+ | "endsWith"
2435
+ | "in"
2436
+ | "find";
2437
+ value?: string | number | (string | number)[];
2438
+ }[];
2439
+ }
2440
+
2441
+ export const ListThreatEventsRequest =
2442
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2443
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2444
+ datasetId: Schema.optional(Schema.Array(Schema.String)).pipe(
2445
+ T.HttpQuery("datasetId"),
2446
+ ),
2447
+ forceRefresh: Schema.optional(Schema.Boolean).pipe(
2448
+ T.HttpQuery("forceRefresh"),
2449
+ ),
2450
+ format: Schema.optional(Schema.Literals(["json", "stix2"])).pipe(
2451
+ T.HttpQuery("format"),
2452
+ ),
2453
+ order: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
2454
+ T.HttpQuery("order"),
2455
+ ),
2456
+ orderBy: Schema.optional(Schema.String).pipe(T.HttpQuery("orderBy")),
2457
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
2458
+ pageSize: Schema.optional(Schema.Number).pipe(T.HttpQuery("pageSize")),
2459
+ search: Schema.optional(
2460
+ Schema.Array(
2461
+ Schema.Struct({
2462
+ field: Schema.optional(Schema.String),
2463
+ op: Schema.optional(
2464
+ Schema.Literals([
2465
+ "equals",
2466
+ "not",
2467
+ "gt",
2468
+ "gte",
2469
+ "lt",
2470
+ "lte",
2471
+ "like",
2472
+ "contains",
2473
+ "startsWith",
2474
+ "endsWith",
2475
+ "in",
2476
+ "find",
2477
+ ]),
2478
+ ),
2479
+ value: Schema.optional(
2480
+ Schema.Union([
2481
+ Schema.String,
2482
+ Schema.Number,
2483
+ Schema.Array(Schema.Union([Schema.String, Schema.Number])),
2484
+ ]),
2485
+ ),
2486
+ }),
2487
+ ),
2488
+ ).pipe(T.HttpQuery("search")),
2489
+ }).pipe(
2490
+ T.Http({
2491
+ method: "GET",
2492
+ path: "/accounts/{account_id}/cloudforce-one/events",
2493
+ }),
2494
+ ) as unknown as Schema.Schema<ListThreatEventsRequest>;
2495
+
2496
+ export type ListThreatEventsResponse = {
2497
+ attacker: string;
2498
+ attackerCountry: string;
2499
+ category: string;
2500
+ date: string;
2501
+ event: string;
2502
+ hasChildren: boolean;
2503
+ indicator: string;
2504
+ indicatorType: string;
2505
+ indicatorTypeId: number;
2506
+ killChain: number;
2507
+ mitreAttack: string[];
2508
+ numReferenced: number;
2509
+ numReferences: number;
2510
+ rawId: string;
2511
+ referenced: string[];
2512
+ referencedIds: number[];
2513
+ references: string[];
2514
+ referencesIds: number[];
2515
+ tags: string[];
2516
+ targetCountry: string;
2517
+ targetIndustry: string;
2518
+ tlp: string;
2519
+ uuid: string;
2520
+ insight?: string | null;
2521
+ releasabilityId?: string | null;
2522
+ }[];
2523
+
2524
+ export const ListThreatEventsResponse =
2525
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2526
+ Schema.Struct({
2527
+ attacker: Schema.String,
2528
+ attackerCountry: Schema.String,
2529
+ category: Schema.String,
2530
+ date: Schema.String,
2531
+ event: Schema.String,
2532
+ hasChildren: Schema.Boolean,
2533
+ indicator: Schema.String,
2534
+ indicatorType: Schema.String,
2535
+ indicatorTypeId: Schema.Number,
2536
+ killChain: Schema.Number,
2537
+ mitreAttack: Schema.Array(Schema.String),
2538
+ numReferenced: Schema.Number,
2539
+ numReferences: Schema.Number,
2540
+ rawId: Schema.String,
2541
+ referenced: Schema.Array(Schema.String),
2542
+ referencedIds: Schema.Array(Schema.Number),
2543
+ references: Schema.Array(Schema.String),
2544
+ referencesIds: Schema.Array(Schema.Number),
2545
+ tags: Schema.Array(Schema.String),
2546
+ targetCountry: Schema.String,
2547
+ targetIndustry: Schema.String,
2548
+ tlp: Schema.String,
2549
+ uuid: Schema.String,
2550
+ insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2551
+ releasabilityId: Schema.optional(
2552
+ Schema.Union([Schema.String, Schema.Null]),
2553
+ ),
2554
+ }),
2555
+ ) as unknown as Schema.Schema<ListThreatEventsResponse>;
2556
+
2557
+ export type ListThreatEventsError = DefaultErrors;
2558
+
2559
+ export const listThreatEvents: API.OperationMethod<
2560
+ ListThreatEventsRequest,
2561
+ ListThreatEventsResponse,
2562
+ ListThreatEventsError,
2563
+ Credentials | HttpClient.HttpClient
2564
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2565
+ input: ListThreatEventsRequest,
2566
+ output: ListThreatEventsResponse,
2567
+ errors: [],
2568
+ }));
2569
+
2570
+ export interface CreateThreatEventRequest {
2571
+ /** Path param: Account ID. */
2572
+ accountId: string;
2573
+ /** Body param: */
2574
+ category: string;
2575
+ /** Body param: */
2576
+ date: string;
2577
+ /** Body param: */
2578
+ event: string;
2579
+ /** Body param: */
2580
+ raw: { data: Record<string, unknown> | null; source?: string; tlp?: string };
2581
+ /** Body param: */
2582
+ tlp: string;
2583
+ /** Body param: */
2584
+ attacker?: string | null;
2585
+ /** Body param: */
2586
+ attackerCountry?: string;
2587
+ /** Body param: */
2588
+ datasetId?: string;
2589
+ /** Body param: */
2590
+ indicator?: string;
2591
+ /** Body param: Array of indicators for this event. Supports multiple indicators per event for complex scenarios. */
2592
+ indicators?: { indicatorType: string; value: string }[];
2593
+ /** Body param: */
2594
+ indicatorType?: string;
2595
+ /** Body param: */
2596
+ insight?: string;
2597
+ /** Body param: */
2598
+ tags?: string[];
2599
+ /** Body param: */
2600
+ targetCountry?: string;
2601
+ /** Body param: */
2602
+ targetIndustry?: string;
2603
+ /** Body param: Optional UUID for the event. Only used when preserveUuid=true in bulk create. Must be a valid UUID format. */
2604
+ uuid?: string;
2605
+ }
2606
+
2607
+ export const CreateThreatEventRequest =
2608
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2609
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2610
+ category: Schema.String,
2611
+ date: Schema.String,
2612
+ event: Schema.String,
2613
+ raw: Schema.Struct({
2614
+ data: Schema.Union([Schema.Struct({}), Schema.Null]),
2615
+ source: Schema.optional(Schema.String),
2616
+ tlp: Schema.optional(Schema.String),
2617
+ }),
2618
+ tlp: Schema.String,
2619
+ attacker: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2620
+ attackerCountry: Schema.optional(Schema.String),
2621
+ datasetId: Schema.optional(Schema.String),
2622
+ indicator: Schema.optional(Schema.String),
2623
+ indicators: Schema.optional(
2624
+ Schema.Array(
2625
+ Schema.Struct({
2626
+ indicatorType: Schema.String,
2627
+ value: Schema.String,
2628
+ }),
2629
+ ),
2630
+ ),
2631
+ indicatorType: Schema.optional(Schema.String),
2632
+ insight: Schema.optional(Schema.String),
2633
+ tags: Schema.optional(Schema.Array(Schema.String)),
2634
+ targetCountry: Schema.optional(Schema.String),
2635
+ targetIndustry: Schema.optional(Schema.String),
2636
+ uuid: Schema.optional(Schema.String),
2637
+ }).pipe(
2638
+ T.Http({
2639
+ method: "POST",
2640
+ path: "/accounts/{account_id}/cloudforce-one/events/create",
2641
+ }),
2642
+ ) as unknown as Schema.Schema<CreateThreatEventRequest>;
2643
+
2644
+ export interface CreateThreatEventResponse {
2645
+ attacker: string;
2646
+ attackerCountry: string;
2647
+ category: string;
2648
+ date: string;
2649
+ event: string;
2650
+ hasChildren: boolean;
2651
+ indicator: string;
2652
+ indicatorType: string;
2653
+ indicatorTypeId: number;
2654
+ killChain: number;
2655
+ mitreAttack: string[];
2656
+ numReferenced: number;
2657
+ numReferences: number;
2658
+ rawId: string;
2659
+ referenced: string[];
2660
+ referencedIds: number[];
2661
+ references: string[];
2662
+ referencesIds: number[];
2663
+ tags: string[];
2664
+ targetCountry: string;
2665
+ targetIndustry: string;
2666
+ tlp: string;
2667
+ uuid: string;
2668
+ insight?: string | null;
2669
+ releasabilityId?: string | null;
2670
+ }
2671
+
2672
+ export const CreateThreatEventResponse =
2673
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2674
+ attacker: Schema.String,
2675
+ attackerCountry: Schema.String,
2676
+ category: Schema.String,
2677
+ date: Schema.String,
2678
+ event: Schema.String,
2679
+ hasChildren: Schema.Boolean,
2680
+ indicator: Schema.String,
2681
+ indicatorType: Schema.String,
2682
+ indicatorTypeId: Schema.Number,
2683
+ killChain: Schema.Number,
2684
+ mitreAttack: Schema.Array(Schema.String),
2685
+ numReferenced: Schema.Number,
2686
+ numReferences: Schema.Number,
2687
+ rawId: Schema.String,
2688
+ referenced: Schema.Array(Schema.String),
2689
+ referencedIds: Schema.Array(Schema.Number),
2690
+ references: Schema.Array(Schema.String),
2691
+ referencesIds: Schema.Array(Schema.Number),
2692
+ tags: Schema.Array(Schema.String),
2693
+ targetCountry: Schema.String,
2694
+ targetIndustry: Schema.String,
2695
+ tlp: Schema.String,
2696
+ uuid: Schema.String,
2697
+ insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2698
+ releasabilityId: Schema.optional(
2699
+ Schema.Union([Schema.String, Schema.Null]),
2700
+ ),
2701
+ }) as unknown as Schema.Schema<CreateThreatEventResponse>;
2702
+
2703
+ export type CreateThreatEventError = DefaultErrors;
2704
+
2705
+ export const createThreatEvent: API.OperationMethod<
2706
+ CreateThreatEventRequest,
2707
+ CreateThreatEventResponse,
2708
+ CreateThreatEventError,
2709
+ Credentials | HttpClient.HttpClient
2710
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2711
+ input: CreateThreatEventRequest,
2712
+ output: CreateThreatEventResponse,
2713
+ errors: [],
2714
+ }));
2715
+
2716
+ export interface PatchThreatEventRequest {
2717
+ eventId: string;
2718
+ /** Path param: Account ID. */
2719
+ accountId: string;
2720
+ /** Body param: */
2721
+ attacker?: string | null;
2722
+ /** Body param: */
2723
+ attackerCountry?: string;
2724
+ /** Body param: */
2725
+ category?: string;
2726
+ /** Body param: */
2727
+ createdAt?: string;
2728
+ /** Body param: */
2729
+ datasetId?: string;
2730
+ /** Body param: */
2731
+ date?: string;
2732
+ /** Body param: */
2733
+ event?: string;
2734
+ /** Body param: */
2735
+ indicator?: string;
2736
+ /** Body param: */
2737
+ indicatorType?: string;
2738
+ /** Body param: */
2739
+ insight?: string;
2740
+ /** Body param: */
2741
+ raw?: {
2742
+ data?: Record<string, unknown> | null;
2743
+ source?: string;
2744
+ tlp?: string;
2745
+ };
2746
+ /** Body param: */
2747
+ targetCountry?: string;
2748
+ /** Body param: */
2749
+ targetIndustry?: string;
2750
+ /** Body param: */
2751
+ tlp?: string;
2752
+ }
2753
+
2754
+ export const PatchThreatEventRequest =
2755
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2756
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
2757
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2758
+ attacker: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2759
+ attackerCountry: Schema.optional(Schema.String),
2760
+ category: Schema.optional(Schema.String),
2761
+ createdAt: Schema.optional(Schema.String),
2762
+ datasetId: Schema.optional(Schema.String),
2763
+ date: Schema.optional(Schema.String),
2764
+ event: Schema.optional(Schema.String),
2765
+ indicator: Schema.optional(Schema.String),
2766
+ indicatorType: Schema.optional(Schema.String),
2767
+ insight: Schema.optional(Schema.String),
2768
+ raw: Schema.optional(
2769
+ Schema.Struct({
2770
+ data: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2771
+ source: Schema.optional(Schema.String),
2772
+ tlp: Schema.optional(Schema.String),
2773
+ }),
2774
+ ),
2775
+ targetCountry: Schema.optional(Schema.String),
2776
+ targetIndustry: Schema.optional(Schema.String),
2777
+ tlp: Schema.optional(Schema.String),
2778
+ }).pipe(
2779
+ T.Http({
2780
+ method: "PATCH",
2781
+ path: "/accounts/{account_id}/cloudforce-one/events/{eventId}",
2782
+ }),
2783
+ ) as unknown as Schema.Schema<PatchThreatEventRequest>;
2784
+
2785
+ export interface PatchThreatEventResponse {
2786
+ attacker: string;
2787
+ attackerCountry: string;
2788
+ category: string;
2789
+ date: string;
2790
+ event: string;
2791
+ hasChildren: boolean;
2792
+ indicator: string;
2793
+ indicatorType: string;
2794
+ indicatorTypeId: number;
2795
+ killChain: number;
2796
+ mitreAttack: string[];
2797
+ numReferenced: number;
2798
+ numReferences: number;
2799
+ rawId: string;
2800
+ referenced: string[];
2801
+ referencedIds: number[];
2802
+ references: string[];
2803
+ referencesIds: number[];
2804
+ tags: string[];
2805
+ targetCountry: string;
2806
+ targetIndustry: string;
2807
+ tlp: string;
2808
+ uuid: string;
2809
+ insight?: string | null;
2810
+ releasabilityId?: string | null;
2811
+ }
2812
+
2813
+ export const PatchThreatEventResponse =
2814
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2815
+ attacker: Schema.String,
2816
+ attackerCountry: Schema.String,
2817
+ category: Schema.String,
2818
+ date: Schema.String,
2819
+ event: Schema.String,
2820
+ hasChildren: Schema.Boolean,
2821
+ indicator: Schema.String,
2822
+ indicatorType: Schema.String,
2823
+ indicatorTypeId: Schema.Number,
2824
+ killChain: Schema.Number,
2825
+ mitreAttack: Schema.Array(Schema.String),
2826
+ numReferenced: Schema.Number,
2827
+ numReferences: Schema.Number,
2828
+ rawId: Schema.String,
2829
+ referenced: Schema.Array(Schema.String),
2830
+ referencedIds: Schema.Array(Schema.Number),
2831
+ references: Schema.Array(Schema.String),
2832
+ referencesIds: Schema.Array(Schema.Number),
2833
+ tags: Schema.Array(Schema.String),
2834
+ targetCountry: Schema.String,
2835
+ targetIndustry: Schema.String,
2836
+ tlp: Schema.String,
2837
+ uuid: Schema.String,
2838
+ insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2839
+ releasabilityId: Schema.optional(
2840
+ Schema.Union([Schema.String, Schema.Null]),
2841
+ ),
2842
+ }) as unknown as Schema.Schema<PatchThreatEventResponse>;
2843
+
2844
+ export type PatchThreatEventError = DefaultErrors;
2845
+
2846
+ export const patchThreatEvent: API.OperationMethod<
2847
+ PatchThreatEventRequest,
2848
+ PatchThreatEventResponse,
2849
+ PatchThreatEventError,
2850
+ Credentials | HttpClient.HttpClient
2851
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2852
+ input: PatchThreatEventRequest,
2853
+ output: PatchThreatEventResponse,
2854
+ errors: [],
2855
+ }));
2856
+
2857
+ export interface DeleteThreatEventRequest {
2858
+ eventId: string;
2859
+ /** Account ID. */
2860
+ accountId: string;
2861
+ }
2862
+
2863
+ export const DeleteThreatEventRequest =
2864
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2865
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
2866
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2867
+ }).pipe(
2868
+ T.Http({
2869
+ method: "DELETE",
2870
+ path: "/accounts/{account_id}/cloudforce-one/events/{eventId}",
2871
+ }),
2872
+ ) as unknown as Schema.Schema<DeleteThreatEventRequest>;
2873
+
2874
+ export interface DeleteThreatEventResponse {
2875
+ uuid: string;
2876
+ }
2877
+
2878
+ export const DeleteThreatEventResponse =
2879
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2880
+ uuid: Schema.String,
2881
+ }) as unknown as Schema.Schema<DeleteThreatEventResponse>;
2882
+
2883
+ export type DeleteThreatEventError = DefaultErrors;
2884
+
2885
+ export const deleteThreatEvent: API.OperationMethod<
2886
+ DeleteThreatEventRequest,
2887
+ DeleteThreatEventResponse,
2888
+ DeleteThreatEventError,
2889
+ Credentials | HttpClient.HttpClient
2890
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2891
+ input: DeleteThreatEventRequest,
2892
+ output: DeleteThreatEventResponse,
2893
+ errors: [],
2894
+ }));
2895
+
2896
+ export interface BulkCreateThreatEventsRequest {
2897
+ /** Path param: Account ID. */
2898
+ accountId: string;
2899
+ /** Body param: */
2900
+ data: {
2901
+ category: string;
2902
+ date: string;
2903
+ event: string;
2904
+ raw: {
2905
+ data: Record<string, unknown> | null;
2906
+ source?: string;
2907
+ tlp?: string;
2908
+ };
2909
+ tlp: string;
2910
+ accountId?: number;
2911
+ attacker?: string | null;
2912
+ attackerCountry?: string;
2913
+ datasetId?: string;
2914
+ indicator?: string;
2915
+ indicators?: { indicatorType: string; value: string }[];
2916
+ indicatorType?: string;
2917
+ insight?: string;
2918
+ tags?: string[];
2919
+ targetCountry?: string;
2920
+ targetIndustry?: string;
2921
+ uuid?: string;
2922
+ }[];
2923
+ /** Body param: */
2924
+ datasetId: string;
2925
+ /** Body param: When true, use provided UUIDs from event data instead of generating new ones. Used for migration scenarios where original UUIDs must be preserved. Duplicate UUIDs will be skipped. */
2926
+ preserveUuid?: boolean;
2927
+ }
2928
+
2929
+ export const BulkCreateThreatEventsRequest =
2930
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2931
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2932
+ data: Schema.Array(
2933
+ Schema.Struct({
2934
+ category: Schema.String,
2935
+ date: Schema.String,
2936
+ event: Schema.String,
2937
+ raw: Schema.Struct({
2938
+ data: Schema.Union([Schema.Struct({}), Schema.Null]),
2939
+ source: Schema.optional(Schema.String),
2940
+ tlp: Schema.optional(Schema.String),
2941
+ }),
2942
+ tlp: Schema.String,
2943
+ accountId: Schema.optional(Schema.Number),
2944
+ attacker: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2945
+ attackerCountry: Schema.optional(Schema.String),
2946
+ datasetId: Schema.optional(Schema.String),
2947
+ indicator: Schema.optional(Schema.String),
2948
+ indicators: Schema.optional(
2949
+ Schema.Array(
2950
+ Schema.Struct({
2951
+ indicatorType: Schema.String,
2952
+ value: Schema.String,
2953
+ }),
2954
+ ),
2955
+ ),
2956
+ indicatorType: Schema.optional(Schema.String),
2957
+ insight: Schema.optional(Schema.String),
2958
+ tags: Schema.optional(Schema.Array(Schema.String)),
2959
+ targetCountry: Schema.optional(Schema.String),
2960
+ targetIndustry: Schema.optional(Schema.String),
2961
+ uuid: Schema.optional(Schema.String),
2962
+ }),
2963
+ ),
2964
+ datasetId: Schema.String,
2965
+ preserveUuid: Schema.optional(Schema.Boolean),
2966
+ }).pipe(
2967
+ T.Http({
2968
+ method: "POST",
2969
+ path: "/accounts/{account_id}/cloudforce-one/events/create/bulk",
2970
+ }),
2971
+ ) as unknown as Schema.Schema<BulkCreateThreatEventsRequest>;
2972
+
2973
+ export interface BulkCreateThreatEventsResponse {
2974
+ /** Number of events created */
2975
+ createdEventsCount: number;
2976
+ /** Number of new tags created in SoT */
2977
+ createdTagsCount: number;
2978
+ /** Number of errors encountered */
2979
+ errorCount: number;
2980
+ /** Number of indicators queued for async processing */
2981
+ queuedIndicatorsCount: number;
2982
+ /** Number of events skipped due to duplicate UUID (only when preserveUuid=true) */
2983
+ skippedEventsCount: number;
2984
+ /** Correlation ID for async indicator processing */
2985
+ createBulkEventsRequestId?: string | null;
2986
+ /** Array of error details */
2987
+ errors?: { error: string; eventIndex: number }[] | null;
2988
+ }
2989
+
2990
+ export const BulkCreateThreatEventsResponse =
2991
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2992
+ createdEventsCount: Schema.Number,
2993
+ createdTagsCount: Schema.Number,
2994
+ errorCount: Schema.Number,
2995
+ queuedIndicatorsCount: Schema.Number,
2996
+ skippedEventsCount: Schema.Number,
2997
+ createBulkEventsRequestId: Schema.optional(
2998
+ Schema.Union([Schema.String, Schema.Null]),
2999
+ ),
3000
+ errors: Schema.optional(
3001
+ Schema.Union([
3002
+ Schema.Array(
3003
+ Schema.Struct({
3004
+ error: Schema.String,
3005
+ eventIndex: Schema.Number,
3006
+ }),
3007
+ ),
3008
+ Schema.Null,
3009
+ ]),
3010
+ ),
3011
+ }) as unknown as Schema.Schema<BulkCreateThreatEventsResponse>;
3012
+
3013
+ export type BulkCreateThreatEventsError = DefaultErrors;
3014
+
3015
+ export const bulkCreateThreatEvents: API.OperationMethod<
3016
+ BulkCreateThreatEventsRequest,
3017
+ BulkCreateThreatEventsResponse,
3018
+ BulkCreateThreatEventsError,
3019
+ Credentials | HttpClient.HttpClient
3020
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3021
+ input: BulkCreateThreatEventsRequest,
3022
+ output: BulkCreateThreatEventsResponse,
3023
+ errors: [],
3024
+ }));
3025
+
3026
+ // =============================================================================
3027
+ // ThreatEventAttacker
3028
+ // =============================================================================
3029
+
3030
+ export interface ListThreatEventAttackersRequest {
3031
+ /** Path param: Account ID. */
3032
+ accountId: string;
3033
+ /** Query param: Array of dataset IDs to query attackers from. If not provided, uses the default dataset. */
3034
+ datasetIds?: string[];
3035
+ }
3036
+
3037
+ export const ListThreatEventAttackersRequest =
3038
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3039
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3040
+ datasetIds: Schema.optional(Schema.Array(Schema.String)).pipe(
3041
+ T.HttpQuery("datasetIds"),
3042
+ ),
3043
+ }).pipe(
3044
+ T.Http({
3045
+ method: "GET",
3046
+ path: "/accounts/{account_id}/cloudforce-one/events/attackers",
3047
+ }),
3048
+ ) as unknown as Schema.Schema<ListThreatEventAttackersRequest>;
3049
+
3050
+ export interface ListThreatEventAttackersResponse {
3051
+ items: { type: string };
3052
+ type: string;
3053
+ }
3054
+
3055
+ export const ListThreatEventAttackersResponse =
3056
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3057
+ items: Schema.Struct({
3058
+ type: Schema.String,
3059
+ }),
3060
+ type: Schema.String,
3061
+ }) as unknown as Schema.Schema<ListThreatEventAttackersResponse>;
3062
+
3063
+ export type ListThreatEventAttackersError = DefaultErrors;
3064
+
3065
+ export const listThreatEventAttackers: API.OperationMethod<
3066
+ ListThreatEventAttackersRequest,
3067
+ ListThreatEventAttackersResponse,
3068
+ ListThreatEventAttackersError,
3069
+ Credentials | HttpClient.HttpClient
3070
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3071
+ input: ListThreatEventAttackersRequest,
3072
+ output: ListThreatEventAttackersResponse,
3073
+ errors: [],
3074
+ }));
3075
+
3076
+ // =============================================================================
3077
+ // ThreatEventCategory
3078
+ // =============================================================================
3079
+
3080
+ export interface GetThreatEventCategoryRequest {
3081
+ categoryId: string;
3082
+ /** Account ID. */
3083
+ accountId: string;
3084
+ }
3085
+
3086
+ export const GetThreatEventCategoryRequest =
3087
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3088
+ categoryId: Schema.String.pipe(T.HttpPath("categoryId")),
3089
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3090
+ }).pipe(
3091
+ T.Http({
3092
+ method: "GET",
3093
+ path: "/accounts/{account_id}/cloudforce-one/events/categories/{categoryId}",
3094
+ }),
3095
+ ) as unknown as Schema.Schema<GetThreatEventCategoryRequest>;
3096
+
3097
+ export interface GetThreatEventCategoryResponse {
3098
+ killChain: number;
3099
+ name: string;
3100
+ uuid: string;
3101
+ mitreAttack?: string[] | null;
3102
+ shortname?: string | null;
3103
+ }
3104
+
3105
+ export const GetThreatEventCategoryResponse =
3106
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3107
+ killChain: Schema.Number,
3108
+ name: Schema.String,
3109
+ uuid: Schema.String,
3110
+ mitreAttack: Schema.optional(
3111
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3112
+ ),
3113
+ shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3114
+ }) as unknown as Schema.Schema<GetThreatEventCategoryResponse>;
3115
+
3116
+ export type GetThreatEventCategoryError = DefaultErrors;
3117
+
3118
+ export const getThreatEventCategory: API.OperationMethod<
3119
+ GetThreatEventCategoryRequest,
3120
+ GetThreatEventCategoryResponse,
3121
+ GetThreatEventCategoryError,
3122
+ Credentials | HttpClient.HttpClient
3123
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3124
+ input: GetThreatEventCategoryRequest,
3125
+ output: GetThreatEventCategoryResponse,
3126
+ errors: [],
3127
+ }));
3128
+
3129
+ export interface ListThreatEventCategoriesRequest {
3130
+ /** Path param: Account ID. */
3131
+ accountId: string;
3132
+ /** Query param: Array of dataset IDs to query categories from. If not provided, uses the default dataset. */
3133
+ datasetIds?: string[];
3134
+ }
3135
+
3136
+ export const ListThreatEventCategoriesRequest =
3137
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3138
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3139
+ datasetIds: Schema.optional(Schema.Array(Schema.String)).pipe(
3140
+ T.HttpQuery("datasetIds"),
3141
+ ),
3142
+ }).pipe(
3143
+ T.Http({
3144
+ method: "GET",
3145
+ path: "/accounts/{account_id}/cloudforce-one/events/categories",
3146
+ }),
3147
+ ) as unknown as Schema.Schema<ListThreatEventCategoriesRequest>;
3148
+
3149
+ export type ListThreatEventCategoriesResponse = {
3150
+ killChain: number;
3151
+ name: string;
3152
+ uuid: string;
3153
+ mitreAttack?: string[] | null;
3154
+ shortname?: string | null;
3155
+ }[];
3156
+
3157
+ export const ListThreatEventCategoriesResponse =
3158
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
3159
+ Schema.Struct({
3160
+ killChain: Schema.Number,
3161
+ name: Schema.String,
3162
+ uuid: Schema.String,
3163
+ mitreAttack: Schema.optional(
3164
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3165
+ ),
3166
+ shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3167
+ }),
3168
+ ) as unknown as Schema.Schema<ListThreatEventCategoriesResponse>;
3169
+
3170
+ export type ListThreatEventCategoriesError = DefaultErrors;
3171
+
3172
+ export const listThreatEventCategories: API.OperationMethod<
3173
+ ListThreatEventCategoriesRequest,
3174
+ ListThreatEventCategoriesResponse,
3175
+ ListThreatEventCategoriesError,
3176
+ Credentials | HttpClient.HttpClient
3177
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3178
+ input: ListThreatEventCategoriesRequest,
3179
+ output: ListThreatEventCategoriesResponse,
3180
+ errors: [],
3181
+ }));
3182
+
3183
+ export interface CreateThreatEventCategoryRequest {
3184
+ /** Path param: Account ID. */
3185
+ accountId: string;
3186
+ /** Body param: */
3187
+ killChain: number;
3188
+ /** Body param: */
3189
+ name: string;
3190
+ /** Body param: */
3191
+ mitreAttack?: string[];
3192
+ /** Body param: */
3193
+ shortname?: string;
3194
+ }
3195
+
3196
+ export const CreateThreatEventCategoryRequest =
3197
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3198
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3199
+ killChain: Schema.Number,
3200
+ name: Schema.String,
3201
+ mitreAttack: Schema.optional(Schema.Array(Schema.String)),
3202
+ shortname: Schema.optional(Schema.String),
3203
+ }).pipe(
3204
+ T.Http({
3205
+ method: "POST",
3206
+ path: "/accounts/{account_id}/cloudforce-one/events/categories/create",
3207
+ }),
3208
+ ) as unknown as Schema.Schema<CreateThreatEventCategoryRequest>;
3209
+
3210
+ export interface CreateThreatEventCategoryResponse {
3211
+ killChain: number;
3212
+ name: string;
3213
+ uuid: string;
3214
+ mitreAttack?: string[] | null;
3215
+ shortname?: string | null;
3216
+ }
3217
+
3218
+ export const CreateThreatEventCategoryResponse =
3219
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3220
+ killChain: Schema.Number,
3221
+ name: Schema.String,
3222
+ uuid: Schema.String,
3223
+ mitreAttack: Schema.optional(
3224
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3225
+ ),
3226
+ shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3227
+ }) as unknown as Schema.Schema<CreateThreatEventCategoryResponse>;
3228
+
3229
+ export type CreateThreatEventCategoryError = DefaultErrors;
3230
+
3231
+ export const createThreatEventCategory: API.OperationMethod<
3232
+ CreateThreatEventCategoryRequest,
3233
+ CreateThreatEventCategoryResponse,
3234
+ CreateThreatEventCategoryError,
3235
+ Credentials | HttpClient.HttpClient
3236
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3237
+ input: CreateThreatEventCategoryRequest,
3238
+ output: CreateThreatEventCategoryResponse,
3239
+ errors: [],
3240
+ }));
3241
+
3242
+ export interface PatchThreatEventCategoryRequest {
3243
+ categoryId: string;
3244
+ /** Path param: Account ID. */
3245
+ accountId: string;
3246
+ /** Body param: */
3247
+ killChain?: number;
3248
+ /** Body param: */
3249
+ mitreAttack?: string[];
3250
+ /** Body param: */
3251
+ name?: string;
3252
+ /** Body param: */
3253
+ shortname?: string;
3254
+ }
3255
+
3256
+ export const PatchThreatEventCategoryRequest =
3257
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3258
+ categoryId: Schema.String.pipe(T.HttpPath("categoryId")),
3259
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3260
+ killChain: Schema.optional(Schema.Number),
3261
+ mitreAttack: Schema.optional(Schema.Array(Schema.String)),
3262
+ name: Schema.optional(Schema.String),
3263
+ shortname: Schema.optional(Schema.String),
3264
+ }).pipe(
3265
+ T.Http({
3266
+ method: "PATCH",
3267
+ path: "/accounts/{account_id}/cloudforce-one/events/categories/{categoryId}",
3268
+ }),
3269
+ ) as unknown as Schema.Schema<PatchThreatEventCategoryRequest>;
3270
+
3271
+ export interface PatchThreatEventCategoryResponse {
3272
+ killChain: number;
3273
+ name: string;
3274
+ uuid: string;
3275
+ mitreAttack?: string[] | null;
3276
+ shortname?: string | null;
3277
+ }
3278
+
3279
+ export const PatchThreatEventCategoryResponse =
3280
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3281
+ killChain: Schema.Number,
3282
+ name: Schema.String,
3283
+ uuid: Schema.String,
3284
+ mitreAttack: Schema.optional(
3285
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3286
+ ),
3287
+ shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3288
+ }) as unknown as Schema.Schema<PatchThreatEventCategoryResponse>;
3289
+
3290
+ export type PatchThreatEventCategoryError = DefaultErrors;
3291
+
3292
+ export const patchThreatEventCategory: API.OperationMethod<
3293
+ PatchThreatEventCategoryRequest,
3294
+ PatchThreatEventCategoryResponse,
3295
+ PatchThreatEventCategoryError,
3296
+ Credentials | HttpClient.HttpClient
3297
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3298
+ input: PatchThreatEventCategoryRequest,
3299
+ output: PatchThreatEventCategoryResponse,
3300
+ errors: [],
3301
+ }));
3302
+
3303
+ export interface DeleteThreatEventCategoryRequest {
3304
+ categoryId: string;
3305
+ /** Account ID. */
3306
+ accountId: string;
3307
+ }
3308
+
3309
+ export const DeleteThreatEventCategoryRequest =
3310
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3311
+ categoryId: Schema.String.pipe(T.HttpPath("categoryId")),
3312
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3313
+ }).pipe(
3314
+ T.Http({
3315
+ method: "DELETE",
3316
+ path: "/accounts/{account_id}/cloudforce-one/events/categories/{categoryId}",
3317
+ }),
3318
+ ) as unknown as Schema.Schema<DeleteThreatEventCategoryRequest>;
3319
+
3320
+ export interface DeleteThreatEventCategoryResponse {
3321
+ uuid: string;
3322
+ }
3323
+
3324
+ export const DeleteThreatEventCategoryResponse =
3325
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3326
+ uuid: Schema.String,
3327
+ }) as unknown as Schema.Schema<DeleteThreatEventCategoryResponse>;
3328
+
3329
+ export type DeleteThreatEventCategoryError = DefaultErrors;
3330
+
3331
+ export const deleteThreatEventCategory: API.OperationMethod<
3332
+ DeleteThreatEventCategoryRequest,
3333
+ DeleteThreatEventCategoryResponse,
3334
+ DeleteThreatEventCategoryError,
3335
+ Credentials | HttpClient.HttpClient
3336
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3337
+ input: DeleteThreatEventCategoryRequest,
3338
+ output: DeleteThreatEventCategoryResponse,
3339
+ errors: [],
3340
+ }));
3341
+
3342
+ // =============================================================================
3343
+ // ThreatEventCountry
3344
+ // =============================================================================
3345
+
3346
+ export interface ListThreatEventCountriesRequest {
3347
+ /** Account ID. */
3348
+ accountId: string;
3349
+ }
3350
+
3351
+ export const ListThreatEventCountriesRequest =
3352
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3353
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3354
+ }).pipe(
3355
+ T.Http({
3356
+ method: "GET",
3357
+ path: "/accounts/{account_id}/cloudforce-one/events/countries",
3358
+ }),
3359
+ ) as unknown as Schema.Schema<ListThreatEventCountriesRequest>;
3360
+
3361
+ export type ListThreatEventCountriesResponse = {
3362
+ result: { alpha3: string; name: string }[];
3363
+ success: string;
3364
+ }[];
3365
+
3366
+ export const ListThreatEventCountriesResponse =
3367
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
3368
+ Schema.Struct({
3369
+ result: Schema.Array(
3370
+ Schema.Struct({
3371
+ alpha3: Schema.String,
3372
+ name: Schema.String,
3373
+ }),
3374
+ ),
3375
+ success: Schema.String,
3376
+ }),
3377
+ ) as unknown as Schema.Schema<ListThreatEventCountriesResponse>;
3378
+
3379
+ export type ListThreatEventCountriesError = DefaultErrors;
3380
+
3381
+ export const listThreatEventCountries: API.OperationMethod<
3382
+ ListThreatEventCountriesRequest,
3383
+ ListThreatEventCountriesResponse,
3384
+ ListThreatEventCountriesError,
3385
+ Credentials | HttpClient.HttpClient
3386
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3387
+ input: ListThreatEventCountriesRequest,
3388
+ output: ListThreatEventCountriesResponse,
3389
+ errors: [],
3390
+ }));
3391
+
3392
+ // =============================================================================
3393
+ // ThreatEventDataset
3394
+ // =============================================================================
3395
+
3396
+ export interface GetThreatEventDatasetRequest {
3397
+ datasetId: string;
3398
+ /** Account ID. */
3399
+ accountId: string;
3400
+ }
3401
+
3402
+ export const GetThreatEventDatasetRequest =
3403
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3404
+ datasetId: Schema.String.pipe(T.HttpPath("datasetId")),
3405
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3406
+ }).pipe(
3407
+ T.Http({
3408
+ method: "GET",
3409
+ path: "/accounts/{account_id}/cloudforce-one/events/dataset/{datasetId}",
3410
+ }),
3411
+ ) as unknown as Schema.Schema<GetThreatEventDatasetRequest>;
3412
+
3413
+ export interface GetThreatEventDatasetResponse {
3414
+ isPublic: boolean;
3415
+ name: string;
3416
+ uuid: string;
3417
+ }
3418
+
3419
+ export const GetThreatEventDatasetResponse =
3420
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3421
+ isPublic: Schema.Boolean,
3422
+ name: Schema.String,
3423
+ uuid: Schema.String,
3424
+ }) as unknown as Schema.Schema<GetThreatEventDatasetResponse>;
3425
+
3426
+ export type GetThreatEventDatasetError = DefaultErrors;
3427
+
3428
+ export const getThreatEventDataset: API.OperationMethod<
3429
+ GetThreatEventDatasetRequest,
3430
+ GetThreatEventDatasetResponse,
3431
+ GetThreatEventDatasetError,
3432
+ Credentials | HttpClient.HttpClient
3433
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3434
+ input: GetThreatEventDatasetRequest,
3435
+ output: GetThreatEventDatasetResponse,
3436
+ errors: [],
3437
+ }));
3438
+
3439
+ export interface ListThreatEventDatasetsRequest {
3440
+ /** Account ID. */
3441
+ accountId: string;
3442
+ }
3443
+
3444
+ export const ListThreatEventDatasetsRequest =
3445
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3446
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3447
+ }).pipe(
3448
+ T.Http({
3449
+ method: "GET",
3450
+ path: "/accounts/{account_id}/cloudforce-one/events/dataset",
3451
+ }),
3452
+ ) as unknown as Schema.Schema<ListThreatEventDatasetsRequest>;
3453
+
3454
+ export type ListThreatEventDatasetsResponse = {
3455
+ isPublic: boolean;
3456
+ name: string;
3457
+ uuid: string;
3458
+ }[];
3459
+
3460
+ export const ListThreatEventDatasetsResponse =
3461
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
3462
+ Schema.Struct({
3463
+ isPublic: Schema.Boolean,
3464
+ name: Schema.String,
3465
+ uuid: Schema.String,
3466
+ }),
3467
+ ) as unknown as Schema.Schema<ListThreatEventDatasetsResponse>;
3468
+
3469
+ export type ListThreatEventDatasetsError = DefaultErrors;
3470
+
3471
+ export const listThreatEventDatasets: API.OperationMethod<
3472
+ ListThreatEventDatasetsRequest,
3473
+ ListThreatEventDatasetsResponse,
3474
+ ListThreatEventDatasetsError,
3475
+ Credentials | HttpClient.HttpClient
3476
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3477
+ input: ListThreatEventDatasetsRequest,
3478
+ output: ListThreatEventDatasetsResponse,
3479
+ errors: [],
3480
+ }));
3481
+
3482
+ export interface CreateThreatEventDatasetRequest {
3483
+ /** Path param: Account ID. */
3484
+ accountId: string;
3485
+ /** Body param: If true, then anyone can search the dataset. If false, then its limited to the account. */
3486
+ isPublic: boolean;
3487
+ /** Body param: Used to describe the dataset within the account context. */
3488
+ name: string;
3489
+ }
3490
+
3491
+ export const CreateThreatEventDatasetRequest =
3492
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3493
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3494
+ isPublic: Schema.Boolean,
3495
+ name: Schema.String,
3496
+ }).pipe(
3497
+ T.Http({
3498
+ method: "POST",
3499
+ path: "/accounts/{account_id}/cloudforce-one/events/dataset/create",
3500
+ }),
3501
+ ) as unknown as Schema.Schema<CreateThreatEventDatasetRequest>;
3502
+
3503
+ export interface CreateThreatEventDatasetResponse {
3504
+ isPublic: boolean;
3505
+ name: string;
3506
+ uuid: string;
3507
+ }
3508
+
3509
+ export const CreateThreatEventDatasetResponse =
3510
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3511
+ isPublic: Schema.Boolean,
3512
+ name: Schema.String,
3513
+ uuid: Schema.String,
3514
+ }) as unknown as Schema.Schema<CreateThreatEventDatasetResponse>;
3515
+
3516
+ export type CreateThreatEventDatasetError = DefaultErrors;
3517
+
3518
+ export const createThreatEventDataset: API.OperationMethod<
3519
+ CreateThreatEventDatasetRequest,
3520
+ CreateThreatEventDatasetResponse,
3521
+ CreateThreatEventDatasetError,
3522
+ Credentials | HttpClient.HttpClient
3523
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3524
+ input: CreateThreatEventDatasetRequest,
3525
+ output: CreateThreatEventDatasetResponse,
3526
+ errors: [],
3527
+ }));
3528
+
3529
+ export interface PatchThreatEventDatasetRequest {
3530
+ datasetId: string;
3531
+ /** Path param: Account ID. */
3532
+ accountId: string;
3533
+ /** Body param: If true, then anyone can search the dataset. If false, then its limited to the account. */
3534
+ isPublic: boolean;
3535
+ /** Body param: Used to describe the dataset within the account context. */
3536
+ name: string;
3537
+ }
3538
+
3539
+ export const PatchThreatEventDatasetRequest =
3540
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3541
+ datasetId: Schema.String.pipe(T.HttpPath("datasetId")),
3542
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3543
+ isPublic: Schema.Boolean,
3544
+ name: Schema.String,
3545
+ }).pipe(
3546
+ T.Http({
3547
+ method: "PATCH",
3548
+ path: "/accounts/{account_id}/cloudforce-one/events/dataset/{datasetId}",
3549
+ }),
3550
+ ) as unknown as Schema.Schema<PatchThreatEventDatasetRequest>;
3551
+
3552
+ export interface PatchThreatEventDatasetResponse {
3553
+ isPublic: boolean;
3554
+ name: string;
3555
+ uuid: string;
3556
+ }
3557
+
3558
+ export const PatchThreatEventDatasetResponse =
3559
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3560
+ isPublic: Schema.Boolean,
3561
+ name: Schema.String,
3562
+ uuid: Schema.String,
3563
+ }) as unknown as Schema.Schema<PatchThreatEventDatasetResponse>;
3564
+
3565
+ export type PatchThreatEventDatasetError = DefaultErrors;
3566
+
3567
+ export const patchThreatEventDataset: API.OperationMethod<
3568
+ PatchThreatEventDatasetRequest,
3569
+ PatchThreatEventDatasetResponse,
3570
+ PatchThreatEventDatasetError,
3571
+ Credentials | HttpClient.HttpClient
3572
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3573
+ input: PatchThreatEventDatasetRequest,
3574
+ output: PatchThreatEventDatasetResponse,
3575
+ errors: [],
3576
+ }));
3577
+
3578
+ export interface RawThreatEventDatasetRequest {
3579
+ datasetId: string;
3580
+ eventId: string;
3581
+ /** Account ID. */
3582
+ accountId: string;
3583
+ }
3584
+
3585
+ export const RawThreatEventDatasetRequest =
3586
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3587
+ datasetId: Schema.String.pipe(T.HttpPath("datasetId")),
3588
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
3589
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3590
+ }).pipe(
3591
+ T.Http({
3592
+ method: "GET",
3593
+ path: "/accounts/{account_id}/cloudforce-one/events/raw/{datasetId}/{eventId}",
3594
+ }),
3595
+ ) as unknown as Schema.Schema<RawThreatEventDatasetRequest>;
3596
+
3597
+ export interface RawThreatEventDatasetResponse {
3598
+ id: string;
3599
+ accountId: number;
3600
+ created: string;
3601
+ data: unknown;
3602
+ source: string;
3603
+ tlp: string;
3604
+ }
3605
+
3606
+ export const RawThreatEventDatasetResponse =
3607
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3608
+ id: Schema.String,
3609
+ accountId: Schema.Number,
3610
+ created: Schema.String,
3611
+ data: Schema.Unknown,
3612
+ source: Schema.String,
3613
+ tlp: Schema.String,
3614
+ }) as unknown as Schema.Schema<RawThreatEventDatasetResponse>;
3615
+
3616
+ export type RawThreatEventDatasetError = DefaultErrors;
3617
+
3618
+ export const rawThreatEventDataset: API.OperationMethod<
3619
+ RawThreatEventDatasetRequest,
3620
+ RawThreatEventDatasetResponse,
3621
+ RawThreatEventDatasetError,
3622
+ Credentials | HttpClient.HttpClient
3623
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3624
+ input: RawThreatEventDatasetRequest,
3625
+ output: RawThreatEventDatasetResponse,
3626
+ errors: [],
3627
+ }));
3628
+
3629
+ // =============================================================================
3630
+ // ThreatEventEventTag
3631
+ // =============================================================================
3632
+
3633
+ export interface CreateThreatEventEventTagRequest {
3634
+ eventId: string;
3635
+ /** Path param: Account ID. */
3636
+ accountId: string;
3637
+ /** Body param: */
3638
+ tags: string[];
3639
+ }
3640
+
3641
+ export const CreateThreatEventEventTagRequest =
3642
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3643
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
3644
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3645
+ tags: Schema.Array(Schema.String),
3646
+ }).pipe(
3647
+ T.Http({
3648
+ method: "POST",
3649
+ path: "/accounts/{account_id}/cloudforce-one/events/event_tag/{eventId}/create",
3650
+ }),
3651
+ ) as unknown as Schema.Schema<CreateThreatEventEventTagRequest>;
3652
+
3653
+ export interface CreateThreatEventEventTagResponse {
3654
+ success: boolean;
3655
+ }
3656
+
3657
+ export const CreateThreatEventEventTagResponse =
3658
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3659
+ success: Schema.Boolean,
3660
+ }).pipe(
3661
+ T.ResponsePath("result"),
3662
+ ) as unknown as Schema.Schema<CreateThreatEventEventTagResponse>;
3663
+
3664
+ export type CreateThreatEventEventTagError = DefaultErrors;
3665
+
3666
+ export const createThreatEventEventTag: API.OperationMethod<
3667
+ CreateThreatEventEventTagRequest,
3668
+ CreateThreatEventEventTagResponse,
3669
+ CreateThreatEventEventTagError,
3670
+ Credentials | HttpClient.HttpClient
3671
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3672
+ input: CreateThreatEventEventTagRequest,
3673
+ output: CreateThreatEventEventTagResponse,
3674
+ errors: [],
3675
+ }));
3676
+
3677
+ export interface DeleteThreatEventEventTagRequest {
3678
+ eventId: string;
3679
+ /** Account ID. */
3680
+ accountId: string;
3681
+ }
3682
+
3683
+ export const DeleteThreatEventEventTagRequest =
3684
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3685
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
3686
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3687
+ }).pipe(
3688
+ T.Http({
3689
+ method: "DELETE",
3690
+ path: "/accounts/{account_id}/cloudforce-one/events/event_tag/{eventId}",
3691
+ }),
3692
+ ) as unknown as Schema.Schema<DeleteThreatEventEventTagRequest>;
3693
+
3694
+ export interface DeleteThreatEventEventTagResponse {
3695
+ success: boolean;
3696
+ }
3697
+
3698
+ export const DeleteThreatEventEventTagResponse =
3699
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3700
+ success: Schema.Boolean,
3701
+ }).pipe(
3702
+ T.ResponsePath("result"),
3703
+ ) as unknown as Schema.Schema<DeleteThreatEventEventTagResponse>;
3704
+
3705
+ export type DeleteThreatEventEventTagError = DefaultErrors;
3706
+
3707
+ export const deleteThreatEventEventTag: API.OperationMethod<
3708
+ DeleteThreatEventEventTagRequest,
3709
+ DeleteThreatEventEventTagResponse,
3710
+ DeleteThreatEventEventTagError,
3711
+ Credentials | HttpClient.HttpClient
3712
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3713
+ input: DeleteThreatEventEventTagRequest,
3714
+ output: DeleteThreatEventEventTagResponse,
3715
+ errors: [],
3716
+ }));
3717
+
3718
+ // =============================================================================
3719
+ // ThreatEventIndicatorType
3720
+ // =============================================================================
3721
+
3722
+ export interface ListThreatEventIndicatorTypesRequest {
3723
+ /** Account ID. */
3724
+ accountId: string;
3725
+ }
3726
+
3727
+ export const ListThreatEventIndicatorTypesRequest =
3728
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3729
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3730
+ }).pipe(
3731
+ T.Http({
3732
+ method: "GET",
3733
+ path: "/accounts/{account_id}/cloudforce-one/events/indicatorTypes",
3734
+ }),
3735
+ ) as unknown as Schema.Schema<ListThreatEventIndicatorTypesRequest>;
3736
+
3737
+ export interface ListThreatEventIndicatorTypesResponse {
3738
+ items: { type: string };
3739
+ type: string;
3740
+ }
3741
+
3742
+ export const ListThreatEventIndicatorTypesResponse =
3743
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3744
+ items: Schema.Struct({
3745
+ type: Schema.String,
3746
+ }),
3747
+ type: Schema.String,
3748
+ }) as unknown as Schema.Schema<ListThreatEventIndicatorTypesResponse>;
3749
+
3750
+ export type ListThreatEventIndicatorTypesError = DefaultErrors;
3751
+
3752
+ export const listThreatEventIndicatorTypes: API.OperationMethod<
3753
+ ListThreatEventIndicatorTypesRequest,
3754
+ ListThreatEventIndicatorTypesResponse,
3755
+ ListThreatEventIndicatorTypesError,
3756
+ Credentials | HttpClient.HttpClient
3757
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3758
+ input: ListThreatEventIndicatorTypesRequest,
3759
+ output: ListThreatEventIndicatorTypesResponse,
3760
+ errors: [],
3761
+ }));
3762
+
3763
+ // =============================================================================
3764
+ // ThreatEventRaw
3765
+ // =============================================================================
3766
+
3767
+ export interface GetThreatEventRawRequest {
3768
+ eventId: string;
3769
+ rawId: string;
3770
+ /** Account ID. */
3771
+ accountId: string;
3772
+ }
3773
+
3774
+ export const GetThreatEventRawRequest =
3775
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3776
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
3777
+ rawId: Schema.String.pipe(T.HttpPath("rawId")),
3778
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3779
+ }).pipe(
3780
+ T.Http({
3781
+ method: "GET",
3782
+ path: "/accounts/{account_id}/cloudforce-one/events/{eventId}/raw/{rawId}",
3783
+ }),
3784
+ ) as unknown as Schema.Schema<GetThreatEventRawRequest>;
3785
+
3786
+ export interface GetThreatEventRawResponse {
3787
+ id: string;
3788
+ accountId: number;
3789
+ created: string;
3790
+ data: unknown;
3791
+ source: string;
3792
+ tlp: string;
3793
+ }
3794
+
3795
+ export const GetThreatEventRawResponse =
3796
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3797
+ id: Schema.String,
3798
+ accountId: Schema.Number,
3799
+ created: Schema.String,
3800
+ data: Schema.Unknown,
3801
+ source: Schema.String,
3802
+ tlp: Schema.String,
3803
+ }) as unknown as Schema.Schema<GetThreatEventRawResponse>;
3804
+
3805
+ export type GetThreatEventRawError = DefaultErrors;
3806
+
3807
+ export const getThreatEventRaw: API.OperationMethod<
3808
+ GetThreatEventRawRequest,
3809
+ GetThreatEventRawResponse,
3810
+ GetThreatEventRawError,
3811
+ Credentials | HttpClient.HttpClient
3812
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3813
+ input: GetThreatEventRawRequest,
3814
+ output: GetThreatEventRawResponse,
3815
+ errors: [],
3816
+ }));
3817
+
3818
+ export interface PatchThreatEventRawRequest {
3819
+ eventId: string;
3820
+ rawId: string;
3821
+ /** Path param: Account ID. */
3822
+ accountId: string;
3823
+ /** Body param: */
3824
+ data?: unknown;
3825
+ /** Body param: */
3826
+ source?: string;
3827
+ /** Body param: */
3828
+ tlp?: string;
3829
+ }
3830
+
3831
+ export const PatchThreatEventRawRequest =
3832
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3833
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
3834
+ rawId: Schema.String.pipe(T.HttpPath("rawId")),
3835
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3836
+ data: Schema.optional(Schema.Unknown),
3837
+ source: Schema.optional(Schema.String),
3838
+ tlp: Schema.optional(Schema.String),
3839
+ }).pipe(
3840
+ T.Http({
3841
+ method: "PATCH",
3842
+ path: "/accounts/{account_id}/cloudforce-one/events/{eventId}/raw/{rawId}",
3843
+ }),
3844
+ ) as unknown as Schema.Schema<PatchThreatEventRawRequest>;
3845
+
3846
+ export interface PatchThreatEventRawResponse {
3847
+ id: string;
3848
+ data: unknown;
3849
+ }
3850
+
3851
+ export const PatchThreatEventRawResponse =
3852
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3853
+ id: Schema.String,
3854
+ data: Schema.Unknown,
3855
+ }) as unknown as Schema.Schema<PatchThreatEventRawResponse>;
3856
+
3857
+ export type PatchThreatEventRawError = DefaultErrors;
3858
+
3859
+ export const patchThreatEventRaw: API.OperationMethod<
3860
+ PatchThreatEventRawRequest,
3861
+ PatchThreatEventRawResponse,
3862
+ PatchThreatEventRawError,
3863
+ Credentials | HttpClient.HttpClient
3864
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3865
+ input: PatchThreatEventRawRequest,
3866
+ output: PatchThreatEventRawResponse,
3867
+ errors: [],
3868
+ }));
3869
+
3870
+ // =============================================================================
3871
+ // ThreatEventRelate
3872
+ // =============================================================================
3873
+
3874
+ export interface DeleteThreatEventRelateRequest {
3875
+ eventId: string;
3876
+ /** Account ID. */
3877
+ accountId: string;
3878
+ }
3879
+
3880
+ export const DeleteThreatEventRelateRequest =
3881
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3882
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
3883
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3884
+ }).pipe(
3885
+ T.Http({
3886
+ method: "DELETE",
3887
+ path: "/accounts/{account_id}/cloudforce-one/events/relate/{eventId}",
3888
+ }),
3889
+ ) as unknown as Schema.Schema<DeleteThreatEventRelateRequest>;
3890
+
3891
+ export interface DeleteThreatEventRelateResponse {
3892
+ success: boolean;
3893
+ }
3894
+
3895
+ export const DeleteThreatEventRelateResponse =
3896
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3897
+ success: Schema.Boolean,
3898
+ }).pipe(
3899
+ T.ResponsePath("result"),
3900
+ ) as unknown as Schema.Schema<DeleteThreatEventRelateResponse>;
3901
+
3902
+ export type DeleteThreatEventRelateError = DefaultErrors;
3903
+
3904
+ export const deleteThreatEventRelate: API.OperationMethod<
3905
+ DeleteThreatEventRelateRequest,
3906
+ DeleteThreatEventRelateResponse,
3907
+ DeleteThreatEventRelateError,
3908
+ Credentials | HttpClient.HttpClient
3909
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3910
+ input: DeleteThreatEventRelateRequest,
3911
+ output: DeleteThreatEventRelateResponse,
3912
+ errors: [],
3913
+ }));
3914
+
3915
+ // =============================================================================
3916
+ // ThreatEventTag
3917
+ // =============================================================================
3918
+
3919
+ export interface CreateThreatEventTagRequest {
3920
+ /** Path param: Account ID. */
3921
+ accountId: string;
3922
+ /** Body param: */
3923
+ value: string;
3924
+ /** Body param: */
3925
+ activeDuration?: string;
3926
+ /** Body param: */
3927
+ actorCategory?: string;
3928
+ /** Body param: */
3929
+ aliasGroupNames?: string[];
3930
+ /** Body param: */
3931
+ aliasGroupNamesInternal?: string[];
3932
+ /** Body param: */
3933
+ analyticPriority?: number;
3934
+ /** Body param: */
3935
+ attributionConfidence?: string;
3936
+ /** Body param: */
3937
+ attributionOrganization?: string;
3938
+ /** Body param: */
3939
+ categoryUuid?: string;
3940
+ /** Body param: */
3941
+ externalReferenceLinks?: string[];
3942
+ /** Body param: */
3943
+ internalDescription?: string;
3944
+ /** Body param: */
3945
+ motive?: string;
3946
+ /** Body param: */
3947
+ opsecLevel?: string;
3948
+ /** Body param: */
3949
+ originCountryISO?: string;
3950
+ /** Body param: */
3951
+ priority?: number;
3952
+ /** Body param: */
3953
+ sophisticationLevel?: string;
3954
+ }
3955
+
3956
+ export const CreateThreatEventTagRequest =
3957
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3958
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3959
+ value: Schema.String,
3960
+ activeDuration: Schema.optional(Schema.String),
3961
+ actorCategory: Schema.optional(Schema.String),
3962
+ aliasGroupNames: Schema.optional(Schema.Array(Schema.String)),
3963
+ aliasGroupNamesInternal: Schema.optional(Schema.Array(Schema.String)),
3964
+ analyticPriority: Schema.optional(Schema.Number),
3965
+ attributionConfidence: Schema.optional(Schema.String),
3966
+ attributionOrganization: Schema.optional(Schema.String),
3967
+ categoryUuid: Schema.optional(Schema.String),
3968
+ externalReferenceLinks: Schema.optional(Schema.Array(Schema.String)),
3969
+ internalDescription: Schema.optional(Schema.String),
3970
+ motive: Schema.optional(Schema.String),
3971
+ opsecLevel: Schema.optional(Schema.String),
3972
+ originCountryISO: Schema.optional(Schema.String),
3973
+ priority: Schema.optional(Schema.Number),
3974
+ sophisticationLevel: Schema.optional(Schema.String),
3975
+ }).pipe(
3976
+ T.Http({
3977
+ method: "POST",
3978
+ path: "/accounts/{account_id}/cloudforce-one/events/tags/create",
3979
+ }),
3980
+ ) as unknown as Schema.Schema<CreateThreatEventTagRequest>;
3981
+
3982
+ export interface CreateThreatEventTagResponse {
3983
+ uuid: string;
3984
+ value: string;
3985
+ activeDuration?: string | null;
3986
+ actorCategory?: string | null;
3987
+ aliasGroupNames?: string[] | null;
3988
+ aliasGroupNamesInternal?: string[] | null;
3989
+ analyticPriority?: number | null;
3990
+ attributionConfidence?: string | null;
3991
+ attributionOrganization?: string | null;
3992
+ categoryName?: string | null;
3993
+ categoryUuid?: string | null;
3994
+ externalReferenceLinks?: string[] | null;
3995
+ internalDescription?: string | null;
3996
+ motive?: string | null;
3997
+ opsecLevel?: string | null;
3998
+ originCountryISO?: string | null;
3999
+ priority?: number | null;
4000
+ sophisticationLevel?: string | null;
4001
+ }
4002
+
4003
+ export const CreateThreatEventTagResponse =
4004
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4005
+ uuid: Schema.String,
4006
+ value: Schema.String,
4007
+ activeDuration: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4008
+ actorCategory: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4009
+ aliasGroupNames: Schema.optional(
4010
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4011
+ ),
4012
+ aliasGroupNamesInternal: Schema.optional(
4013
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4014
+ ),
4015
+ analyticPriority: Schema.optional(
4016
+ Schema.Union([Schema.Number, Schema.Null]),
4017
+ ),
4018
+ attributionConfidence: Schema.optional(
4019
+ Schema.Union([Schema.String, Schema.Null]),
4020
+ ),
4021
+ attributionOrganization: Schema.optional(
4022
+ Schema.Union([Schema.String, Schema.Null]),
4023
+ ),
4024
+ categoryName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4025
+ categoryUuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4026
+ externalReferenceLinks: Schema.optional(
4027
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4028
+ ),
4029
+ internalDescription: Schema.optional(
4030
+ Schema.Union([Schema.String, Schema.Null]),
4031
+ ),
4032
+ motive: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4033
+ opsecLevel: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4034
+ originCountryISO: Schema.optional(
4035
+ Schema.Union([Schema.String, Schema.Null]),
4036
+ ),
4037
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4038
+ sophisticationLevel: Schema.optional(
4039
+ Schema.Union([Schema.String, Schema.Null]),
4040
+ ),
4041
+ }) as unknown as Schema.Schema<CreateThreatEventTagResponse>;
4042
+
4043
+ export type CreateThreatEventTagError = DefaultErrors;
4044
+
4045
+ export const createThreatEventTag: API.OperationMethod<
4046
+ CreateThreatEventTagRequest,
4047
+ CreateThreatEventTagResponse,
4048
+ CreateThreatEventTagError,
4049
+ Credentials | HttpClient.HttpClient
4050
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4051
+ input: CreateThreatEventTagRequest,
4052
+ output: CreateThreatEventTagResponse,
4053
+ errors: [],
4054
+ }));
4055
+
4056
+ // =============================================================================
4057
+ // ThreatEventTargetIndustry
4058
+ // =============================================================================
4059
+
4060
+ export interface ListThreatEventTargetIndustriesRequest {
4061
+ /** Path param: Account ID. */
4062
+ accountId: string;
4063
+ /** Query param: Array of dataset IDs to query target industries from. If not provided, uses the default dataset. */
4064
+ datasetIds?: string[];
4065
+ }
4066
+
4067
+ export const ListThreatEventTargetIndustriesRequest =
4068
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4069
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
4070
+ datasetIds: Schema.optional(Schema.Array(Schema.String)).pipe(
4071
+ T.HttpQuery("datasetIds"),
4072
+ ),
4073
+ }).pipe(
4074
+ T.Http({
4075
+ method: "GET",
4076
+ path: "/accounts/{account_id}/cloudforce-one/events/targetIndustries",
4077
+ }),
4078
+ ) as unknown as Schema.Schema<ListThreatEventTargetIndustriesRequest>;
4079
+
4080
+ export interface ListThreatEventTargetIndustriesResponse {
4081
+ items: { type: string };
4082
+ type: string;
4083
+ }
4084
+
4085
+ export const ListThreatEventTargetIndustriesResponse =
4086
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4087
+ items: Schema.Struct({
4088
+ type: Schema.String,
4089
+ }),
4090
+ type: Schema.String,
4091
+ }) as unknown as Schema.Schema<ListThreatEventTargetIndustriesResponse>;
4092
+
4093
+ export type ListThreatEventTargetIndustriesError = DefaultErrors;
4094
+
4095
+ export const listThreatEventTargetIndustries: API.OperationMethod<
4096
+ ListThreatEventTargetIndustriesRequest,
4097
+ ListThreatEventTargetIndustriesResponse,
4098
+ ListThreatEventTargetIndustriesError,
4099
+ Credentials | HttpClient.HttpClient
4100
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4101
+ input: ListThreatEventTargetIndustriesRequest,
4102
+ output: ListThreatEventTargetIndustriesResponse,
4103
+ errors: [],
4104
+ }));