@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,1741 @@
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
+ import * as stream from "effect/Stream";
8
+ import * as Schema from "effect/Schema";
9
+ import * as API from "../client/api.js";
10
+ import * as T from "../traits.js";
11
+ import {} from "../errors.js";
12
+ import { UploadableSchema } from "../schemas.js";
13
+ export const GetBinaryStorageRequest =
14
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
15
+ hash: Schema.String.pipe(T.HttpPath("hash")),
16
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17
+ }).pipe(T.Http({
18
+ method: "GET",
19
+ path: "/accounts/{account_id}/cloudforce-one/binary/{hash}",
20
+ }));
21
+ export const GetBinaryStorageResponse =
22
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
23
+ export const getBinaryStorage = API.make(() => ({
24
+ input: GetBinaryStorageRequest,
25
+ output: GetBinaryStorageResponse,
26
+ errors: [],
27
+ }));
28
+ export const CreateBinaryStorageRequest =
29
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
31
+ file: UploadableSchema.pipe(T.HttpFormDataFile()),
32
+ }).pipe(T.Http({
33
+ method: "POST",
34
+ path: "/accounts/{account_id}/cloudforce-one/binary",
35
+ contentType: "multipart",
36
+ }));
37
+ export const CreateBinaryStorageResponse =
38
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
39
+ contentType: Schema.String,
40
+ md5: Schema.String,
41
+ sha1: Schema.String,
42
+ sha256: Schema.String,
43
+ }).pipe(Schema.encodeKeys({
44
+ contentType: "content_type",
45
+ md5: "md5",
46
+ sha1: "sha1",
47
+ sha256: "sha256",
48
+ }));
49
+ export const createBinaryStorage = API.make(() => ({
50
+ input: CreateBinaryStorageRequest,
51
+ output: CreateBinaryStorageResponse,
52
+ errors: [],
53
+ }));
54
+ export const GetRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
55
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
56
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
57
+ }).pipe(T.Http({
58
+ method: "GET",
59
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}",
60
+ }));
61
+ export const GetRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
62
+ id: Schema.String,
63
+ content: Schema.String,
64
+ created: Schema.String,
65
+ priority: Schema.String,
66
+ request: Schema.String,
67
+ summary: Schema.String,
68
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
69
+ updated: Schema.String,
70
+ completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
71
+ messageTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
72
+ readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
73
+ status: Schema.optional(Schema.Union([
74
+ Schema.Literals([
75
+ "open",
76
+ "accepted",
77
+ "reported",
78
+ "approved",
79
+ "completed",
80
+ "declined",
81
+ ]),
82
+ Schema.Null,
83
+ ])),
84
+ tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
85
+ })
86
+ .pipe(Schema.encodeKeys({
87
+ id: "id",
88
+ content: "content",
89
+ created: "created",
90
+ priority: "priority",
91
+ request: "request",
92
+ summary: "summary",
93
+ tlp: "tlp",
94
+ updated: "updated",
95
+ completed: "completed",
96
+ messageTokens: "message_tokens",
97
+ readableId: "readable_id",
98
+ status: "status",
99
+ tokens: "tokens",
100
+ }))
101
+ .pipe(T.ResponsePath("result"));
102
+ export const getRequest = API.make(() => ({
103
+ input: GetRequestRequest,
104
+ output: GetRequestResponse,
105
+ errors: [],
106
+ }));
107
+ export const ListRequestsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
108
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
109
+ page: Schema.Number,
110
+ perPage: Schema.Number,
111
+ completedAfter: Schema.optional(Schema.String),
112
+ completedBefore: Schema.optional(Schema.String),
113
+ createdAfter: Schema.optional(Schema.String),
114
+ createdBefore: Schema.optional(Schema.String),
115
+ requestType: Schema.optional(Schema.String),
116
+ sortBy: Schema.optional(Schema.String),
117
+ sortOrder: Schema.optional(Schema.Literals(["asc", "desc"])),
118
+ status: Schema.optional(Schema.Literals([
119
+ "open",
120
+ "accepted",
121
+ "reported",
122
+ "approved",
123
+ "completed",
124
+ "declined",
125
+ ])),
126
+ }).pipe(Schema.encodeKeys({
127
+ page: "page",
128
+ perPage: "per_page",
129
+ completedAfter: "completed_after",
130
+ completedBefore: "completed_before",
131
+ createdAfter: "created_after",
132
+ createdBefore: "created_before",
133
+ requestType: "request_type",
134
+ sortBy: "sort_by",
135
+ sortOrder: "sort_order",
136
+ status: "status",
137
+ }), T.Http({
138
+ method: "POST",
139
+ path: "/accounts/{account_id}/cloudforce-one/requests",
140
+ }));
141
+ export const ListRequestsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
142
+ result: Schema.Array(Schema.Struct({
143
+ id: Schema.String,
144
+ created: Schema.String,
145
+ priority: Schema.Literals(["routine", "high", "urgent"]),
146
+ request: Schema.String,
147
+ summary: Schema.String,
148
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
149
+ updated: Schema.String,
150
+ completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
151
+ messageTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
152
+ readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
153
+ status: Schema.optional(Schema.Union([
154
+ Schema.Literals([
155
+ "open",
156
+ "accepted",
157
+ "reported",
158
+ "approved",
159
+ "completed",
160
+ "declined",
161
+ ]),
162
+ Schema.Null,
163
+ ])),
164
+ tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
165
+ }).pipe(Schema.encodeKeys({
166
+ id: "id",
167
+ created: "created",
168
+ priority: "priority",
169
+ request: "request",
170
+ summary: "summary",
171
+ tlp: "tlp",
172
+ updated: "updated",
173
+ completed: "completed",
174
+ messageTokens: "message_tokens",
175
+ readableId: "readable_id",
176
+ status: "status",
177
+ tokens: "tokens",
178
+ }))),
179
+ });
180
+ export const listRequests = API.makePaginated(() => ({
181
+ input: ListRequestsRequest,
182
+ output: ListRequestsResponse,
183
+ errors: [],
184
+ pagination: {
185
+ mode: "single",
186
+ items: "result",
187
+ },
188
+ }));
189
+ export const CreateRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
190
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
191
+ content: Schema.optional(Schema.String),
192
+ priority: Schema.optional(Schema.String),
193
+ requestType: Schema.optional(Schema.String),
194
+ summary: Schema.optional(Schema.String),
195
+ tlp: Schema.optional(Schema.Literals(["clear", "amber", "amber-strict", "green", "red"])),
196
+ }).pipe(Schema.encodeKeys({
197
+ content: "content",
198
+ priority: "priority",
199
+ requestType: "request_type",
200
+ summary: "summary",
201
+ tlp: "tlp",
202
+ }), T.Http({
203
+ method: "POST",
204
+ path: "/accounts/{account_id}/cloudforce-one/requests/new",
205
+ }));
206
+ export const CreateRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
207
+ id: Schema.String,
208
+ content: Schema.String,
209
+ created: Schema.String,
210
+ priority: Schema.String,
211
+ request: Schema.String,
212
+ summary: Schema.String,
213
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
214
+ updated: Schema.String,
215
+ completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
216
+ messageTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
217
+ readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
218
+ status: Schema.optional(Schema.Union([
219
+ Schema.Literals([
220
+ "open",
221
+ "accepted",
222
+ "reported",
223
+ "approved",
224
+ "completed",
225
+ "declined",
226
+ ]),
227
+ Schema.Null,
228
+ ])),
229
+ tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
230
+ })
231
+ .pipe(Schema.encodeKeys({
232
+ id: "id",
233
+ content: "content",
234
+ created: "created",
235
+ priority: "priority",
236
+ request: "request",
237
+ summary: "summary",
238
+ tlp: "tlp",
239
+ updated: "updated",
240
+ completed: "completed",
241
+ messageTokens: "message_tokens",
242
+ readableId: "readable_id",
243
+ status: "status",
244
+ tokens: "tokens",
245
+ }))
246
+ .pipe(T.ResponsePath("result"));
247
+ export const createRequest = API.make(() => ({
248
+ input: CreateRequestRequest,
249
+ output: CreateRequestResponse,
250
+ errors: [],
251
+ }));
252
+ export const UpdateRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
253
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
254
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
255
+ content: Schema.optional(Schema.String),
256
+ priority: Schema.optional(Schema.String),
257
+ requestType: Schema.optional(Schema.String),
258
+ summary: Schema.optional(Schema.String),
259
+ tlp: Schema.optional(Schema.Literals(["clear", "amber", "amber-strict", "green", "red"])),
260
+ }).pipe(Schema.encodeKeys({
261
+ content: "content",
262
+ priority: "priority",
263
+ requestType: "request_type",
264
+ summary: "summary",
265
+ tlp: "tlp",
266
+ }), T.Http({
267
+ method: "PUT",
268
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}",
269
+ }));
270
+ export const UpdateRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
271
+ id: Schema.String,
272
+ content: Schema.String,
273
+ created: Schema.String,
274
+ priority: Schema.String,
275
+ request: Schema.String,
276
+ summary: Schema.String,
277
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
278
+ updated: Schema.String,
279
+ completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
280
+ messageTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
281
+ readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
282
+ status: Schema.optional(Schema.Union([
283
+ Schema.Literals([
284
+ "open",
285
+ "accepted",
286
+ "reported",
287
+ "approved",
288
+ "completed",
289
+ "declined",
290
+ ]),
291
+ Schema.Null,
292
+ ])),
293
+ tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
294
+ })
295
+ .pipe(Schema.encodeKeys({
296
+ id: "id",
297
+ content: "content",
298
+ created: "created",
299
+ priority: "priority",
300
+ request: "request",
301
+ summary: "summary",
302
+ tlp: "tlp",
303
+ updated: "updated",
304
+ completed: "completed",
305
+ messageTokens: "message_tokens",
306
+ readableId: "readable_id",
307
+ status: "status",
308
+ tokens: "tokens",
309
+ }))
310
+ .pipe(T.ResponsePath("result"));
311
+ export const updateRequest = API.make(() => ({
312
+ input: UpdateRequestRequest,
313
+ output: UpdateRequestResponse,
314
+ errors: [],
315
+ }));
316
+ export const DeleteRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
317
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
318
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
319
+ }).pipe(T.Http({
320
+ method: "DELETE",
321
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}",
322
+ }));
323
+ export const DeleteRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
324
+ errors: Schema.Array(Schema.Struct({
325
+ code: Schema.Number,
326
+ message: Schema.String,
327
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
328
+ source: Schema.optional(Schema.Union([
329
+ Schema.Struct({
330
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
331
+ }),
332
+ Schema.Null,
333
+ ])),
334
+ }).pipe(Schema.encodeKeys({
335
+ code: "code",
336
+ message: "message",
337
+ documentationUrl: "documentation_url",
338
+ source: "source",
339
+ }))),
340
+ messages: Schema.Array(Schema.Struct({
341
+ code: Schema.Number,
342
+ message: Schema.String,
343
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
344
+ source: Schema.optional(Schema.Union([
345
+ Schema.Struct({
346
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
347
+ }),
348
+ Schema.Null,
349
+ ])),
350
+ }).pipe(Schema.encodeKeys({
351
+ code: "code",
352
+ message: "message",
353
+ documentationUrl: "documentation_url",
354
+ source: "source",
355
+ }))),
356
+ success: Schema.Literal(true),
357
+ });
358
+ export const deleteRequest = API.make(() => ({
359
+ input: DeleteRequestRequest,
360
+ output: DeleteRequestResponse,
361
+ errors: [],
362
+ }));
363
+ export const ConstantsRequestRequest =
364
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
365
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
366
+ }).pipe(T.Http({
367
+ method: "GET",
368
+ path: "/accounts/{account_id}/cloudforce-one/requests/constants",
369
+ }));
370
+ export const ConstantsRequestResponse =
371
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
372
+ priority: Schema.optional(Schema.Union([
373
+ Schema.Array(Schema.Literals(["routine", "high", "urgent"])),
374
+ Schema.Null,
375
+ ])),
376
+ status: Schema.optional(Schema.Union([
377
+ Schema.Array(Schema.Literals([
378
+ "open",
379
+ "accepted",
380
+ "reported",
381
+ "approved",
382
+ "completed",
383
+ "declined",
384
+ ])),
385
+ Schema.Null,
386
+ ])),
387
+ tlp: Schema.optional(Schema.Union([
388
+ Schema.Array(Schema.Literals(["clear", "amber", "amber-strict", "green", "red"])),
389
+ Schema.Null,
390
+ ])),
391
+ }).pipe(T.ResponsePath("result"));
392
+ export const constantsRequest = API.make(() => ({
393
+ input: ConstantsRequestRequest,
394
+ output: ConstantsRequestResponse,
395
+ errors: [],
396
+ }));
397
+ export const QuotaRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
398
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
399
+ }).pipe(T.Http({
400
+ method: "GET",
401
+ path: "/accounts/{account_id}/cloudforce-one/requests/quota",
402
+ }));
403
+ export const QuotaRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
404
+ anniversaryDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
405
+ quarterAnniversaryDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
406
+ quota: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
407
+ remaining: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
408
+ })
409
+ .pipe(Schema.encodeKeys({
410
+ anniversaryDate: "anniversary_date",
411
+ quarterAnniversaryDate: "quarter_anniversary_date",
412
+ quota: "quota",
413
+ remaining: "remaining",
414
+ }))
415
+ .pipe(T.ResponsePath("result"));
416
+ export const quotaRequest = API.make(() => ({
417
+ input: QuotaRequestRequest,
418
+ output: QuotaRequestResponse,
419
+ errors: [],
420
+ }));
421
+ export const TypesRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
422
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
423
+ }).pipe(T.Http({
424
+ method: "GET",
425
+ path: "/accounts/{account_id}/cloudforce-one/requests/types",
426
+ }));
427
+ export const TypesRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
428
+ result: Schema.Array(Schema.String),
429
+ });
430
+ export const typesRequest = API.makePaginated(() => ({
431
+ input: TypesRequestRequest,
432
+ output: TypesRequestResponse,
433
+ errors: [],
434
+ pagination: {
435
+ mode: "single",
436
+ items: "result",
437
+ },
438
+ }));
439
+ export const GetRequestAssetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
440
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
441
+ assetId: Schema.String.pipe(T.HttpPath("assetId")),
442
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
443
+ }).pipe(T.Http({
444
+ method: "GET",
445
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset/{assetId}",
446
+ }));
447
+ export const GetRequestAssetResponse =
448
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
449
+ result: Schema.Array(Schema.Struct({
450
+ id: Schema.Number,
451
+ name: Schema.String,
452
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
453
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
454
+ fileType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
455
+ }).pipe(Schema.encodeKeys({
456
+ id: "id",
457
+ name: "name",
458
+ created: "created",
459
+ description: "description",
460
+ fileType: "file_type",
461
+ }))),
462
+ });
463
+ export const getRequestAsset = API.makePaginated(() => ({
464
+ input: GetRequestAssetRequest,
465
+ output: GetRequestAssetResponse,
466
+ errors: [],
467
+ pagination: {
468
+ mode: "single",
469
+ items: "result",
470
+ },
471
+ }));
472
+ export const CreateRequestAssetRequest =
473
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
474
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
475
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
476
+ page: Schema.Number,
477
+ perPage: Schema.Number,
478
+ }).pipe(Schema.encodeKeys({ page: "page", perPage: "per_page" }), T.Http({
479
+ method: "POST",
480
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset",
481
+ }));
482
+ export const CreateRequestAssetResponse =
483
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
484
+ result: Schema.Array(Schema.Struct({
485
+ id: Schema.Number,
486
+ name: Schema.String,
487
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
488
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
489
+ fileType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
490
+ }).pipe(Schema.encodeKeys({
491
+ id: "id",
492
+ name: "name",
493
+ created: "created",
494
+ description: "description",
495
+ fileType: "file_type",
496
+ }))),
497
+ });
498
+ export const createRequestAsset = API.makePaginated(() => ({
499
+ input: CreateRequestAssetRequest,
500
+ output: CreateRequestAssetResponse,
501
+ errors: [],
502
+ pagination: {
503
+ mode: "single",
504
+ items: "result",
505
+ },
506
+ }));
507
+ export const UpdateRequestAssetRequest =
508
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
509
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
510
+ assetId: Schema.String.pipe(T.HttpPath("assetId")),
511
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
512
+ source: Schema.optional(Schema.String),
513
+ }).pipe(T.Http({
514
+ method: "PUT",
515
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset/{assetId}",
516
+ }));
517
+ export const UpdateRequestAssetResponse =
518
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
519
+ id: Schema.Number,
520
+ name: Schema.String,
521
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
522
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
523
+ fileType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
524
+ })
525
+ .pipe(Schema.encodeKeys({
526
+ id: "id",
527
+ name: "name",
528
+ created: "created",
529
+ description: "description",
530
+ fileType: "file_type",
531
+ }))
532
+ .pipe(T.ResponsePath("result"));
533
+ export const updateRequestAsset = API.make(() => ({
534
+ input: UpdateRequestAssetRequest,
535
+ output: UpdateRequestAssetResponse,
536
+ errors: [],
537
+ }));
538
+ export const DeleteRequestAssetRequest =
539
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
540
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
541
+ assetId: Schema.String.pipe(T.HttpPath("assetId")),
542
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
543
+ }).pipe(T.Http({
544
+ method: "DELETE",
545
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset/{assetId}",
546
+ }));
547
+ export const DeleteRequestAssetResponse =
548
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
549
+ errors: Schema.Array(Schema.Struct({
550
+ code: Schema.Number,
551
+ message: Schema.String,
552
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
553
+ source: Schema.optional(Schema.Union([
554
+ Schema.Struct({
555
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
556
+ }),
557
+ Schema.Null,
558
+ ])),
559
+ }).pipe(Schema.encodeKeys({
560
+ code: "code",
561
+ message: "message",
562
+ documentationUrl: "documentation_url",
563
+ source: "source",
564
+ }))),
565
+ messages: Schema.Array(Schema.Struct({
566
+ code: Schema.Number,
567
+ message: Schema.String,
568
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
569
+ source: Schema.optional(Schema.Union([
570
+ Schema.Struct({
571
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
572
+ }),
573
+ Schema.Null,
574
+ ])),
575
+ }).pipe(Schema.encodeKeys({
576
+ code: "code",
577
+ message: "message",
578
+ documentationUrl: "documentation_url",
579
+ source: "source",
580
+ }))),
581
+ success: Schema.Literal(true),
582
+ });
583
+ export const deleteRequestAsset = API.make(() => ({
584
+ input: DeleteRequestAssetRequest,
585
+ output: DeleteRequestAssetResponse,
586
+ errors: [],
587
+ }));
588
+ export const GetRequestMessageRequest =
589
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
590
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
591
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
592
+ page: Schema.Number,
593
+ perPage: Schema.Number,
594
+ after: Schema.optional(Schema.String),
595
+ before: Schema.optional(Schema.String),
596
+ sortBy: Schema.optional(Schema.String),
597
+ sortOrder: Schema.optional(Schema.Literals(["asc", "desc"])),
598
+ }).pipe(Schema.encodeKeys({
599
+ page: "page",
600
+ perPage: "per_page",
601
+ after: "after",
602
+ before: "before",
603
+ sortBy: "sort_by",
604
+ sortOrder: "sort_order",
605
+ }), T.Http({
606
+ method: "POST",
607
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message",
608
+ }));
609
+ export const GetRequestMessageResponse =
610
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
611
+ result: Schema.Array(Schema.Struct({
612
+ code: Schema.Number,
613
+ message: Schema.String,
614
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
615
+ source: Schema.optional(Schema.Union([
616
+ Schema.Struct({
617
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
618
+ }),
619
+ Schema.Null,
620
+ ])),
621
+ }).pipe(Schema.encodeKeys({
622
+ code: "code",
623
+ message: "message",
624
+ documentationUrl: "documentation_url",
625
+ source: "source",
626
+ }))),
627
+ });
628
+ export const getRequestMessage = API.makePaginated(() => ({
629
+ input: GetRequestMessageRequest,
630
+ output: GetRequestMessageResponse,
631
+ errors: [],
632
+ pagination: {
633
+ mode: "single",
634
+ items: "result",
635
+ },
636
+ }));
637
+ export const CreateRequestMessageRequest =
638
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
639
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
640
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
641
+ content: Schema.optional(Schema.String),
642
+ }).pipe(T.Http({
643
+ method: "POST",
644
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message/new",
645
+ }));
646
+ export const CreateRequestMessageResponse =
647
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
648
+ code: Schema.Number,
649
+ message: Schema.String,
650
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
651
+ source: Schema.optional(Schema.Union([
652
+ Schema.Struct({
653
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
654
+ }),
655
+ Schema.Null,
656
+ ])),
657
+ })
658
+ .pipe(Schema.encodeKeys({
659
+ code: "code",
660
+ message: "message",
661
+ documentationUrl: "documentation_url",
662
+ source: "source",
663
+ }))
664
+ .pipe(T.ResponsePath("result"));
665
+ export const createRequestMessage = API.make(() => ({
666
+ input: CreateRequestMessageRequest,
667
+ output: CreateRequestMessageResponse,
668
+ errors: [],
669
+ }));
670
+ export const UpdateRequestMessageRequest =
671
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
672
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
673
+ messageId: Schema.Number.pipe(T.HttpPath("messageId")),
674
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
675
+ content: Schema.optional(Schema.String),
676
+ }).pipe(T.Http({
677
+ method: "PUT",
678
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message/{messageId}",
679
+ }));
680
+ export const UpdateRequestMessageResponse =
681
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
682
+ code: Schema.Number,
683
+ message: Schema.String,
684
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
685
+ source: Schema.optional(Schema.Union([
686
+ Schema.Struct({
687
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
688
+ }),
689
+ Schema.Null,
690
+ ])),
691
+ })
692
+ .pipe(Schema.encodeKeys({
693
+ code: "code",
694
+ message: "message",
695
+ documentationUrl: "documentation_url",
696
+ source: "source",
697
+ }))
698
+ .pipe(T.ResponsePath("result"));
699
+ export const updateRequestMessage = API.make(() => ({
700
+ input: UpdateRequestMessageRequest,
701
+ output: UpdateRequestMessageResponse,
702
+ errors: [],
703
+ }));
704
+ export const DeleteRequestMessageRequest =
705
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
706
+ requestId: Schema.String.pipe(T.HttpPath("requestId")),
707
+ messageId: Schema.Number.pipe(T.HttpPath("messageId")),
708
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
709
+ }).pipe(T.Http({
710
+ method: "DELETE",
711
+ path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message/{messageId}",
712
+ }));
713
+ export const DeleteRequestMessageResponse =
714
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
715
+ errors: Schema.Array(Schema.Struct({
716
+ code: Schema.Number,
717
+ message: Schema.String,
718
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
719
+ source: Schema.optional(Schema.Union([
720
+ Schema.Struct({
721
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
722
+ }),
723
+ Schema.Null,
724
+ ])),
725
+ }).pipe(Schema.encodeKeys({
726
+ code: "code",
727
+ message: "message",
728
+ documentationUrl: "documentation_url",
729
+ source: "source",
730
+ }))),
731
+ messages: Schema.Array(Schema.Struct({
732
+ code: Schema.Number,
733
+ message: Schema.String,
734
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
735
+ source: Schema.optional(Schema.Union([
736
+ Schema.Struct({
737
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
738
+ }),
739
+ Schema.Null,
740
+ ])),
741
+ }).pipe(Schema.encodeKeys({
742
+ code: "code",
743
+ message: "message",
744
+ documentationUrl: "documentation_url",
745
+ source: "source",
746
+ }))),
747
+ success: Schema.Literal(true),
748
+ });
749
+ export const deleteRequestMessage = API.make(() => ({
750
+ input: DeleteRequestMessageRequest,
751
+ output: DeleteRequestMessageResponse,
752
+ errors: [],
753
+ }));
754
+ export const GetRequestPriorityRequest =
755
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
756
+ priorityId: Schema.String.pipe(T.HttpPath("priorityId")),
757
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
758
+ }).pipe(T.Http({
759
+ method: "GET",
760
+ path: "/accounts/{account_id}/cloudforce-one/requests/priority/{priorityId}",
761
+ }));
762
+ export const GetRequestPriorityResponse =
763
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
764
+ export const getRequestPriority = API.make(() => ({
765
+ input: GetRequestPriorityRequest,
766
+ output: GetRequestPriorityResponse,
767
+ errors: [],
768
+ }));
769
+ export const CreateRequestPriorityRequest =
770
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
771
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
772
+ labels: Schema.Array(Schema.String),
773
+ priority: Schema.Number,
774
+ requirement: Schema.String,
775
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
776
+ }).pipe(T.Http({
777
+ method: "POST",
778
+ path: "/accounts/{account_id}/cloudforce-one/requests/priority/new",
779
+ }));
780
+ export const CreateRequestPriorityResponse =
781
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
782
+ id: Schema.String,
783
+ created: Schema.String,
784
+ labels: Schema.Array(Schema.String),
785
+ priority: Schema.Number,
786
+ requirement: Schema.String,
787
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
788
+ updated: Schema.String,
789
+ }).pipe(T.ResponsePath("result"));
790
+ export const createRequestPriority = API.make(() => ({
791
+ input: CreateRequestPriorityRequest,
792
+ output: CreateRequestPriorityResponse,
793
+ errors: [],
794
+ }));
795
+ export const UpdateRequestPriorityRequest =
796
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
797
+ priorityId: Schema.String.pipe(T.HttpPath("priorityId")),
798
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
799
+ labels: Schema.Array(Schema.String),
800
+ priority: Schema.Number,
801
+ requirement: Schema.String,
802
+ tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
803
+ }).pipe(T.Http({
804
+ method: "PUT",
805
+ path: "/accounts/{account_id}/cloudforce-one/requests/priority/{priorityId}",
806
+ }));
807
+ export const UpdateRequestPriorityResponse =
808
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
809
+ export const updateRequestPriority = API.make(() => ({
810
+ input: UpdateRequestPriorityRequest,
811
+ output: UpdateRequestPriorityResponse,
812
+ errors: [],
813
+ }));
814
+ export const DeleteRequestPriorityRequest =
815
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
816
+ priorityId: Schema.String.pipe(T.HttpPath("priorityId")),
817
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
818
+ }).pipe(T.Http({
819
+ method: "DELETE",
820
+ path: "/accounts/{account_id}/cloudforce-one/requests/priority/{priorityId}",
821
+ }));
822
+ export const DeleteRequestPriorityResponse =
823
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
824
+ errors: Schema.Array(Schema.Struct({
825
+ code: Schema.Number,
826
+ message: Schema.String,
827
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
828
+ source: Schema.optional(Schema.Union([
829
+ Schema.Struct({
830
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
831
+ }),
832
+ Schema.Null,
833
+ ])),
834
+ }).pipe(Schema.encodeKeys({
835
+ code: "code",
836
+ message: "message",
837
+ documentationUrl: "documentation_url",
838
+ source: "source",
839
+ }))),
840
+ messages: Schema.Array(Schema.Struct({
841
+ code: Schema.Number,
842
+ message: Schema.String,
843
+ documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
844
+ source: Schema.optional(Schema.Union([
845
+ Schema.Struct({
846
+ pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
847
+ }),
848
+ Schema.Null,
849
+ ])),
850
+ }).pipe(Schema.encodeKeys({
851
+ code: "code",
852
+ message: "message",
853
+ documentationUrl: "documentation_url",
854
+ source: "source",
855
+ }))),
856
+ success: Schema.Literal(true),
857
+ });
858
+ export const deleteRequestPriority = API.make(() => ({
859
+ input: DeleteRequestPriorityRequest,
860
+ output: DeleteRequestPriorityResponse,
861
+ errors: [],
862
+ }));
863
+ export const QuotaRequestPriorityRequest =
864
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
865
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
866
+ }).pipe(T.Http({
867
+ method: "GET",
868
+ path: "/accounts/{account_id}/cloudforce-one/requests/priority/quota",
869
+ }));
870
+ export const QuotaRequestPriorityResponse =
871
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
872
+ export const quotaRequestPriority = API.make(() => ({
873
+ input: QuotaRequestPriorityRequest,
874
+ output: QuotaRequestPriorityResponse,
875
+ errors: [],
876
+ }));
877
+ export const ListScanConfigsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
878
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
879
+ }).pipe(T.Http({
880
+ method: "GET",
881
+ path: "/accounts/{account_id}/cloudforce-one/scans/config",
882
+ }));
883
+ export const ListScanConfigsResponse =
884
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
885
+ result: Schema.Array(Schema.Struct({
886
+ id: Schema.String,
887
+ accountId: Schema.String,
888
+ frequency: Schema.Number,
889
+ ips: Schema.Array(Schema.String),
890
+ ports: Schema.Array(Schema.String),
891
+ }).pipe(Schema.encodeKeys({
892
+ id: "id",
893
+ accountId: "account_id",
894
+ frequency: "frequency",
895
+ ips: "ips",
896
+ ports: "ports",
897
+ }))),
898
+ });
899
+ export const listScanConfigs = API.makePaginated(() => ({
900
+ input: ListScanConfigsRequest,
901
+ output: ListScanConfigsResponse,
902
+ errors: [],
903
+ pagination: {
904
+ mode: "single",
905
+ items: "result",
906
+ },
907
+ }));
908
+ export const CreateScanConfigRequest =
909
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
910
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
911
+ ips: Schema.Array(Schema.String),
912
+ frequency: Schema.optional(Schema.Number),
913
+ ports: Schema.optional(Schema.Array(Schema.String)),
914
+ }).pipe(T.Http({
915
+ method: "POST",
916
+ path: "/accounts/{account_id}/cloudforce-one/scans/config",
917
+ }));
918
+ export const CreateScanConfigResponse =
919
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
920
+ id: Schema.String,
921
+ accountId: Schema.String,
922
+ frequency: Schema.Number,
923
+ ips: Schema.Array(Schema.String),
924
+ ports: Schema.Array(Schema.String),
925
+ })
926
+ .pipe(Schema.encodeKeys({
927
+ id: "id",
928
+ accountId: "account_id",
929
+ frequency: "frequency",
930
+ ips: "ips",
931
+ ports: "ports",
932
+ }))
933
+ .pipe(T.ResponsePath("result"));
934
+ export const createScanConfig = API.make(() => ({
935
+ input: CreateScanConfigRequest,
936
+ output: CreateScanConfigResponse,
937
+ errors: [],
938
+ }));
939
+ export const PatchScanConfigRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
940
+ configId: Schema.String.pipe(T.HttpPath("configId")),
941
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
942
+ frequency: Schema.optional(Schema.Number),
943
+ ips: Schema.optional(Schema.Array(Schema.String)),
944
+ ports: Schema.optional(Schema.Array(Schema.String)),
945
+ }).pipe(T.Http({
946
+ method: "PATCH",
947
+ path: "/accounts/{account_id}/cloudforce-one/scans/config/{configId}",
948
+ }));
949
+ export const PatchScanConfigResponse =
950
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
951
+ id: Schema.String,
952
+ accountId: Schema.String,
953
+ frequency: Schema.Number,
954
+ ips: Schema.Array(Schema.String),
955
+ ports: Schema.Array(Schema.String),
956
+ })
957
+ .pipe(Schema.encodeKeys({
958
+ id: "id",
959
+ accountId: "account_id",
960
+ frequency: "frequency",
961
+ ips: "ips",
962
+ ports: "ports",
963
+ }))
964
+ .pipe(T.ResponsePath("result"));
965
+ export const patchScanConfig = API.make(() => ({
966
+ input: PatchScanConfigRequest,
967
+ output: PatchScanConfigResponse,
968
+ errors: [],
969
+ }));
970
+ export const DeleteScanConfigRequest =
971
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
972
+ configId: Schema.String.pipe(T.HttpPath("configId")),
973
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
974
+ }).pipe(T.Http({
975
+ method: "DELETE",
976
+ path: "/accounts/{account_id}/cloudforce-one/scans/config/{configId}",
977
+ }));
978
+ export const DeleteScanConfigResponse =
979
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
980
+ export const deleteScanConfig = API.make(() => ({
981
+ input: DeleteScanConfigRequest,
982
+ output: DeleteScanConfigResponse,
983
+ errors: [],
984
+ }));
985
+ export const GetScanResultRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
986
+ configId: Schema.String.pipe(T.HttpPath("configId")),
987
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
988
+ }).pipe(T.Http({
989
+ method: "GET",
990
+ path: "/accounts/{account_id}/cloudforce-one/scans/results/{configId}",
991
+ }));
992
+ export const GetScanResultResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
993
+ "1.1.1.1": Schema.Array(Schema.Struct({
994
+ number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
995
+ proto: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
996
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
997
+ })),
998
+ }).pipe(T.ResponsePath("result"));
999
+ export const getScanResult = API.make(() => ({
1000
+ input: GetScanResultRequest,
1001
+ output: GetScanResultResponse,
1002
+ errors: [],
1003
+ }));
1004
+ export const GetThreatEventRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1005
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
1006
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1007
+ }).pipe(T.Http({
1008
+ method: "GET",
1009
+ path: "/accounts/{account_id}/cloudforce-one/events/{eventId}",
1010
+ }));
1011
+ export const GetThreatEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1012
+ attacker: Schema.String,
1013
+ attackerCountry: Schema.String,
1014
+ category: Schema.String,
1015
+ date: Schema.String,
1016
+ event: Schema.String,
1017
+ hasChildren: Schema.Boolean,
1018
+ indicator: Schema.String,
1019
+ indicatorType: Schema.String,
1020
+ indicatorTypeId: Schema.Number,
1021
+ killChain: Schema.Number,
1022
+ mitreAttack: Schema.Array(Schema.String),
1023
+ numReferenced: Schema.Number,
1024
+ numReferences: Schema.Number,
1025
+ rawId: Schema.String,
1026
+ referenced: Schema.Array(Schema.String),
1027
+ referencedIds: Schema.Array(Schema.Number),
1028
+ references: Schema.Array(Schema.String),
1029
+ referencesIds: Schema.Array(Schema.Number),
1030
+ tags: Schema.Array(Schema.String),
1031
+ targetCountry: Schema.String,
1032
+ targetIndustry: Schema.String,
1033
+ tlp: Schema.String,
1034
+ uuid: Schema.String,
1035
+ insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1036
+ releasabilityId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1037
+ });
1038
+ export const getThreatEvent = API.make(() => ({
1039
+ input: GetThreatEventRequest,
1040
+ output: GetThreatEventResponse,
1041
+ errors: [],
1042
+ }));
1043
+ export const ListThreatEventsRequest =
1044
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1045
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1046
+ datasetId: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("datasetId")),
1047
+ forceRefresh: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("forceRefresh")),
1048
+ format: Schema.optional(Schema.Literals(["json", "stix2"])).pipe(T.HttpQuery("format")),
1049
+ order: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("order")),
1050
+ orderBy: Schema.optional(Schema.String).pipe(T.HttpQuery("orderBy")),
1051
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
1052
+ pageSize: Schema.optional(Schema.Number).pipe(T.HttpQuery("pageSize")),
1053
+ search: Schema.optional(Schema.Array(Schema.Struct({
1054
+ field: Schema.optional(Schema.String),
1055
+ op: Schema.optional(Schema.Literals([
1056
+ "equals",
1057
+ "not",
1058
+ "gt",
1059
+ "gte",
1060
+ "lt",
1061
+ "lte",
1062
+ "like",
1063
+ "contains",
1064
+ "startsWith",
1065
+ "endsWith",
1066
+ "in",
1067
+ "find",
1068
+ ])),
1069
+ value: Schema.optional(Schema.Union([
1070
+ Schema.String,
1071
+ Schema.Number,
1072
+ Schema.Array(Schema.Union([Schema.String, Schema.Number])),
1073
+ ])),
1074
+ }))).pipe(T.HttpQuery("search")),
1075
+ }).pipe(T.Http({
1076
+ method: "GET",
1077
+ path: "/accounts/{account_id}/cloudforce-one/events",
1078
+ }));
1079
+ export const ListThreatEventsResponse =
1080
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1081
+ attacker: Schema.String,
1082
+ attackerCountry: Schema.String,
1083
+ category: Schema.String,
1084
+ date: Schema.String,
1085
+ event: Schema.String,
1086
+ hasChildren: Schema.Boolean,
1087
+ indicator: Schema.String,
1088
+ indicatorType: Schema.String,
1089
+ indicatorTypeId: Schema.Number,
1090
+ killChain: Schema.Number,
1091
+ mitreAttack: Schema.Array(Schema.String),
1092
+ numReferenced: Schema.Number,
1093
+ numReferences: Schema.Number,
1094
+ rawId: Schema.String,
1095
+ referenced: Schema.Array(Schema.String),
1096
+ referencedIds: Schema.Array(Schema.Number),
1097
+ references: Schema.Array(Schema.String),
1098
+ referencesIds: Schema.Array(Schema.Number),
1099
+ tags: Schema.Array(Schema.String),
1100
+ targetCountry: Schema.String,
1101
+ targetIndustry: Schema.String,
1102
+ tlp: Schema.String,
1103
+ uuid: Schema.String,
1104
+ insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1105
+ releasabilityId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1106
+ }));
1107
+ export const listThreatEvents = API.make(() => ({
1108
+ input: ListThreatEventsRequest,
1109
+ output: ListThreatEventsResponse,
1110
+ errors: [],
1111
+ }));
1112
+ export const CreateThreatEventRequest =
1113
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1114
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1115
+ category: Schema.String,
1116
+ date: Schema.String,
1117
+ event: Schema.String,
1118
+ raw: Schema.Struct({
1119
+ data: Schema.Union([Schema.Struct({}), Schema.Null]),
1120
+ source: Schema.optional(Schema.String),
1121
+ tlp: Schema.optional(Schema.String),
1122
+ }),
1123
+ tlp: Schema.String,
1124
+ attacker: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1125
+ attackerCountry: Schema.optional(Schema.String),
1126
+ datasetId: Schema.optional(Schema.String),
1127
+ indicator: Schema.optional(Schema.String),
1128
+ indicators: Schema.optional(Schema.Array(Schema.Struct({
1129
+ indicatorType: Schema.String,
1130
+ value: Schema.String,
1131
+ }))),
1132
+ indicatorType: Schema.optional(Schema.String),
1133
+ insight: Schema.optional(Schema.String),
1134
+ tags: Schema.optional(Schema.Array(Schema.String)),
1135
+ targetCountry: Schema.optional(Schema.String),
1136
+ targetIndustry: Schema.optional(Schema.String),
1137
+ uuid: Schema.optional(Schema.String),
1138
+ }).pipe(T.Http({
1139
+ method: "POST",
1140
+ path: "/accounts/{account_id}/cloudforce-one/events/create",
1141
+ }));
1142
+ export const CreateThreatEventResponse =
1143
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1144
+ attacker: Schema.String,
1145
+ attackerCountry: Schema.String,
1146
+ category: Schema.String,
1147
+ date: Schema.String,
1148
+ event: Schema.String,
1149
+ hasChildren: Schema.Boolean,
1150
+ indicator: Schema.String,
1151
+ indicatorType: Schema.String,
1152
+ indicatorTypeId: Schema.Number,
1153
+ killChain: Schema.Number,
1154
+ mitreAttack: Schema.Array(Schema.String),
1155
+ numReferenced: Schema.Number,
1156
+ numReferences: Schema.Number,
1157
+ rawId: Schema.String,
1158
+ referenced: Schema.Array(Schema.String),
1159
+ referencedIds: Schema.Array(Schema.Number),
1160
+ references: Schema.Array(Schema.String),
1161
+ referencesIds: Schema.Array(Schema.Number),
1162
+ tags: Schema.Array(Schema.String),
1163
+ targetCountry: Schema.String,
1164
+ targetIndustry: Schema.String,
1165
+ tlp: Schema.String,
1166
+ uuid: Schema.String,
1167
+ insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1168
+ releasabilityId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1169
+ });
1170
+ export const createThreatEvent = API.make(() => ({
1171
+ input: CreateThreatEventRequest,
1172
+ output: CreateThreatEventResponse,
1173
+ errors: [],
1174
+ }));
1175
+ export const PatchThreatEventRequest =
1176
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1177
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
1178
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1179
+ attacker: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1180
+ attackerCountry: Schema.optional(Schema.String),
1181
+ category: Schema.optional(Schema.String),
1182
+ createdAt: Schema.optional(Schema.String),
1183
+ datasetId: Schema.optional(Schema.String),
1184
+ date: Schema.optional(Schema.String),
1185
+ event: Schema.optional(Schema.String),
1186
+ indicator: Schema.optional(Schema.String),
1187
+ indicatorType: Schema.optional(Schema.String),
1188
+ insight: Schema.optional(Schema.String),
1189
+ raw: Schema.optional(Schema.Struct({
1190
+ data: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1191
+ source: Schema.optional(Schema.String),
1192
+ tlp: Schema.optional(Schema.String),
1193
+ })),
1194
+ targetCountry: Schema.optional(Schema.String),
1195
+ targetIndustry: Schema.optional(Schema.String),
1196
+ tlp: Schema.optional(Schema.String),
1197
+ }).pipe(T.Http({
1198
+ method: "PATCH",
1199
+ path: "/accounts/{account_id}/cloudforce-one/events/{eventId}",
1200
+ }));
1201
+ export const PatchThreatEventResponse =
1202
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1203
+ attacker: Schema.String,
1204
+ attackerCountry: Schema.String,
1205
+ category: Schema.String,
1206
+ date: Schema.String,
1207
+ event: Schema.String,
1208
+ hasChildren: Schema.Boolean,
1209
+ indicator: Schema.String,
1210
+ indicatorType: Schema.String,
1211
+ indicatorTypeId: Schema.Number,
1212
+ killChain: Schema.Number,
1213
+ mitreAttack: Schema.Array(Schema.String),
1214
+ numReferenced: Schema.Number,
1215
+ numReferences: Schema.Number,
1216
+ rawId: Schema.String,
1217
+ referenced: Schema.Array(Schema.String),
1218
+ referencedIds: Schema.Array(Schema.Number),
1219
+ references: Schema.Array(Schema.String),
1220
+ referencesIds: Schema.Array(Schema.Number),
1221
+ tags: Schema.Array(Schema.String),
1222
+ targetCountry: Schema.String,
1223
+ targetIndustry: Schema.String,
1224
+ tlp: Schema.String,
1225
+ uuid: Schema.String,
1226
+ insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1227
+ releasabilityId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1228
+ });
1229
+ export const patchThreatEvent = API.make(() => ({
1230
+ input: PatchThreatEventRequest,
1231
+ output: PatchThreatEventResponse,
1232
+ errors: [],
1233
+ }));
1234
+ export const DeleteThreatEventRequest =
1235
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1236
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
1237
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1238
+ }).pipe(T.Http({
1239
+ method: "DELETE",
1240
+ path: "/accounts/{account_id}/cloudforce-one/events/{eventId}",
1241
+ }));
1242
+ export const DeleteThreatEventResponse =
1243
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1244
+ uuid: Schema.String,
1245
+ });
1246
+ export const deleteThreatEvent = API.make(() => ({
1247
+ input: DeleteThreatEventRequest,
1248
+ output: DeleteThreatEventResponse,
1249
+ errors: [],
1250
+ }));
1251
+ export const BulkCreateThreatEventsRequest =
1252
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1253
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1254
+ data: Schema.Array(Schema.Struct({
1255
+ category: Schema.String,
1256
+ date: Schema.String,
1257
+ event: Schema.String,
1258
+ raw: Schema.Struct({
1259
+ data: Schema.Union([Schema.Struct({}), Schema.Null]),
1260
+ source: Schema.optional(Schema.String),
1261
+ tlp: Schema.optional(Schema.String),
1262
+ }),
1263
+ tlp: Schema.String,
1264
+ accountId: Schema.optional(Schema.Number),
1265
+ attacker: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1266
+ attackerCountry: Schema.optional(Schema.String),
1267
+ datasetId: Schema.optional(Schema.String),
1268
+ indicator: Schema.optional(Schema.String),
1269
+ indicators: Schema.optional(Schema.Array(Schema.Struct({
1270
+ indicatorType: Schema.String,
1271
+ value: Schema.String,
1272
+ }))),
1273
+ indicatorType: Schema.optional(Schema.String),
1274
+ insight: Schema.optional(Schema.String),
1275
+ tags: Schema.optional(Schema.Array(Schema.String)),
1276
+ targetCountry: Schema.optional(Schema.String),
1277
+ targetIndustry: Schema.optional(Schema.String),
1278
+ uuid: Schema.optional(Schema.String),
1279
+ })),
1280
+ datasetId: Schema.String,
1281
+ preserveUuid: Schema.optional(Schema.Boolean),
1282
+ }).pipe(T.Http({
1283
+ method: "POST",
1284
+ path: "/accounts/{account_id}/cloudforce-one/events/create/bulk",
1285
+ }));
1286
+ export const BulkCreateThreatEventsResponse =
1287
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1288
+ createdEventsCount: Schema.Number,
1289
+ createdTagsCount: Schema.Number,
1290
+ errorCount: Schema.Number,
1291
+ queuedIndicatorsCount: Schema.Number,
1292
+ skippedEventsCount: Schema.Number,
1293
+ createBulkEventsRequestId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1294
+ errors: Schema.optional(Schema.Union([
1295
+ Schema.Array(Schema.Struct({
1296
+ error: Schema.String,
1297
+ eventIndex: Schema.Number,
1298
+ })),
1299
+ Schema.Null,
1300
+ ])),
1301
+ });
1302
+ export const bulkCreateThreatEvents = API.make(() => ({
1303
+ input: BulkCreateThreatEventsRequest,
1304
+ output: BulkCreateThreatEventsResponse,
1305
+ errors: [],
1306
+ }));
1307
+ export const ListThreatEventAttackersRequest =
1308
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1309
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1310
+ datasetIds: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("datasetIds")),
1311
+ }).pipe(T.Http({
1312
+ method: "GET",
1313
+ path: "/accounts/{account_id}/cloudforce-one/events/attackers",
1314
+ }));
1315
+ export const ListThreatEventAttackersResponse =
1316
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1317
+ items: Schema.Struct({
1318
+ type: Schema.String,
1319
+ }),
1320
+ type: Schema.String,
1321
+ });
1322
+ export const listThreatEventAttackers = API.make(() => ({
1323
+ input: ListThreatEventAttackersRequest,
1324
+ output: ListThreatEventAttackersResponse,
1325
+ errors: [],
1326
+ }));
1327
+ export const GetThreatEventCategoryRequest =
1328
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1329
+ categoryId: Schema.String.pipe(T.HttpPath("categoryId")),
1330
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1331
+ }).pipe(T.Http({
1332
+ method: "GET",
1333
+ path: "/accounts/{account_id}/cloudforce-one/events/categories/{categoryId}",
1334
+ }));
1335
+ export const GetThreatEventCategoryResponse =
1336
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1337
+ killChain: Schema.Number,
1338
+ name: Schema.String,
1339
+ uuid: Schema.String,
1340
+ mitreAttack: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1341
+ shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1342
+ });
1343
+ export const getThreatEventCategory = API.make(() => ({
1344
+ input: GetThreatEventCategoryRequest,
1345
+ output: GetThreatEventCategoryResponse,
1346
+ errors: [],
1347
+ }));
1348
+ export const ListThreatEventCategoriesRequest =
1349
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1350
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1351
+ datasetIds: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("datasetIds")),
1352
+ }).pipe(T.Http({
1353
+ method: "GET",
1354
+ path: "/accounts/{account_id}/cloudforce-one/events/categories",
1355
+ }));
1356
+ export const ListThreatEventCategoriesResponse =
1357
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1358
+ killChain: Schema.Number,
1359
+ name: Schema.String,
1360
+ uuid: Schema.String,
1361
+ mitreAttack: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1362
+ shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1363
+ }));
1364
+ export const listThreatEventCategories = API.make(() => ({
1365
+ input: ListThreatEventCategoriesRequest,
1366
+ output: ListThreatEventCategoriesResponse,
1367
+ errors: [],
1368
+ }));
1369
+ export const CreateThreatEventCategoryRequest =
1370
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1371
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1372
+ killChain: Schema.Number,
1373
+ name: Schema.String,
1374
+ mitreAttack: Schema.optional(Schema.Array(Schema.String)),
1375
+ shortname: Schema.optional(Schema.String),
1376
+ }).pipe(T.Http({
1377
+ method: "POST",
1378
+ path: "/accounts/{account_id}/cloudforce-one/events/categories/create",
1379
+ }));
1380
+ export const CreateThreatEventCategoryResponse =
1381
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1382
+ killChain: Schema.Number,
1383
+ name: Schema.String,
1384
+ uuid: Schema.String,
1385
+ mitreAttack: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1386
+ shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1387
+ });
1388
+ export const createThreatEventCategory = API.make(() => ({
1389
+ input: CreateThreatEventCategoryRequest,
1390
+ output: CreateThreatEventCategoryResponse,
1391
+ errors: [],
1392
+ }));
1393
+ export const PatchThreatEventCategoryRequest =
1394
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1395
+ categoryId: Schema.String.pipe(T.HttpPath("categoryId")),
1396
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1397
+ killChain: Schema.optional(Schema.Number),
1398
+ mitreAttack: Schema.optional(Schema.Array(Schema.String)),
1399
+ name: Schema.optional(Schema.String),
1400
+ shortname: Schema.optional(Schema.String),
1401
+ }).pipe(T.Http({
1402
+ method: "PATCH",
1403
+ path: "/accounts/{account_id}/cloudforce-one/events/categories/{categoryId}",
1404
+ }));
1405
+ export const PatchThreatEventCategoryResponse =
1406
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1407
+ killChain: Schema.Number,
1408
+ name: Schema.String,
1409
+ uuid: Schema.String,
1410
+ mitreAttack: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1411
+ shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1412
+ });
1413
+ export const patchThreatEventCategory = API.make(() => ({
1414
+ input: PatchThreatEventCategoryRequest,
1415
+ output: PatchThreatEventCategoryResponse,
1416
+ errors: [],
1417
+ }));
1418
+ export const DeleteThreatEventCategoryRequest =
1419
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1420
+ categoryId: Schema.String.pipe(T.HttpPath("categoryId")),
1421
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1422
+ }).pipe(T.Http({
1423
+ method: "DELETE",
1424
+ path: "/accounts/{account_id}/cloudforce-one/events/categories/{categoryId}",
1425
+ }));
1426
+ export const DeleteThreatEventCategoryResponse =
1427
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1428
+ uuid: Schema.String,
1429
+ });
1430
+ export const deleteThreatEventCategory = API.make(() => ({
1431
+ input: DeleteThreatEventCategoryRequest,
1432
+ output: DeleteThreatEventCategoryResponse,
1433
+ errors: [],
1434
+ }));
1435
+ export const ListThreatEventCountriesRequest =
1436
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1437
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1438
+ }).pipe(T.Http({
1439
+ method: "GET",
1440
+ path: "/accounts/{account_id}/cloudforce-one/events/countries",
1441
+ }));
1442
+ export const ListThreatEventCountriesResponse =
1443
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1444
+ result: Schema.Array(Schema.Struct({
1445
+ alpha3: Schema.String,
1446
+ name: Schema.String,
1447
+ })),
1448
+ success: Schema.String,
1449
+ }));
1450
+ export const listThreatEventCountries = API.make(() => ({
1451
+ input: ListThreatEventCountriesRequest,
1452
+ output: ListThreatEventCountriesResponse,
1453
+ errors: [],
1454
+ }));
1455
+ export const GetThreatEventDatasetRequest =
1456
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1457
+ datasetId: Schema.String.pipe(T.HttpPath("datasetId")),
1458
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1459
+ }).pipe(T.Http({
1460
+ method: "GET",
1461
+ path: "/accounts/{account_id}/cloudforce-one/events/dataset/{datasetId}",
1462
+ }));
1463
+ export const GetThreatEventDatasetResponse =
1464
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1465
+ isPublic: Schema.Boolean,
1466
+ name: Schema.String,
1467
+ uuid: Schema.String,
1468
+ });
1469
+ export const getThreatEventDataset = API.make(() => ({
1470
+ input: GetThreatEventDatasetRequest,
1471
+ output: GetThreatEventDatasetResponse,
1472
+ errors: [],
1473
+ }));
1474
+ export const ListThreatEventDatasetsRequest =
1475
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1476
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1477
+ }).pipe(T.Http({
1478
+ method: "GET",
1479
+ path: "/accounts/{account_id}/cloudforce-one/events/dataset",
1480
+ }));
1481
+ export const ListThreatEventDatasetsResponse =
1482
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1483
+ isPublic: Schema.Boolean,
1484
+ name: Schema.String,
1485
+ uuid: Schema.String,
1486
+ }));
1487
+ export const listThreatEventDatasets = API.make(() => ({
1488
+ input: ListThreatEventDatasetsRequest,
1489
+ output: ListThreatEventDatasetsResponse,
1490
+ errors: [],
1491
+ }));
1492
+ export const CreateThreatEventDatasetRequest =
1493
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1494
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1495
+ isPublic: Schema.Boolean,
1496
+ name: Schema.String,
1497
+ }).pipe(T.Http({
1498
+ method: "POST",
1499
+ path: "/accounts/{account_id}/cloudforce-one/events/dataset/create",
1500
+ }));
1501
+ export const CreateThreatEventDatasetResponse =
1502
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1503
+ isPublic: Schema.Boolean,
1504
+ name: Schema.String,
1505
+ uuid: Schema.String,
1506
+ });
1507
+ export const createThreatEventDataset = API.make(() => ({
1508
+ input: CreateThreatEventDatasetRequest,
1509
+ output: CreateThreatEventDatasetResponse,
1510
+ errors: [],
1511
+ }));
1512
+ export const PatchThreatEventDatasetRequest =
1513
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1514
+ datasetId: Schema.String.pipe(T.HttpPath("datasetId")),
1515
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1516
+ isPublic: Schema.Boolean,
1517
+ name: Schema.String,
1518
+ }).pipe(T.Http({
1519
+ method: "PATCH",
1520
+ path: "/accounts/{account_id}/cloudforce-one/events/dataset/{datasetId}",
1521
+ }));
1522
+ export const PatchThreatEventDatasetResponse =
1523
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1524
+ isPublic: Schema.Boolean,
1525
+ name: Schema.String,
1526
+ uuid: Schema.String,
1527
+ });
1528
+ export const patchThreatEventDataset = API.make(() => ({
1529
+ input: PatchThreatEventDatasetRequest,
1530
+ output: PatchThreatEventDatasetResponse,
1531
+ errors: [],
1532
+ }));
1533
+ export const RawThreatEventDatasetRequest =
1534
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1535
+ datasetId: Schema.String.pipe(T.HttpPath("datasetId")),
1536
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
1537
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1538
+ }).pipe(T.Http({
1539
+ method: "GET",
1540
+ path: "/accounts/{account_id}/cloudforce-one/events/raw/{datasetId}/{eventId}",
1541
+ }));
1542
+ export const RawThreatEventDatasetResponse =
1543
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1544
+ id: Schema.String,
1545
+ accountId: Schema.Number,
1546
+ created: Schema.String,
1547
+ data: Schema.Unknown,
1548
+ source: Schema.String,
1549
+ tlp: Schema.String,
1550
+ });
1551
+ export const rawThreatEventDataset = API.make(() => ({
1552
+ input: RawThreatEventDatasetRequest,
1553
+ output: RawThreatEventDatasetResponse,
1554
+ errors: [],
1555
+ }));
1556
+ export const CreateThreatEventEventTagRequest =
1557
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1558
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
1559
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1560
+ tags: Schema.Array(Schema.String),
1561
+ }).pipe(T.Http({
1562
+ method: "POST",
1563
+ path: "/accounts/{account_id}/cloudforce-one/events/event_tag/{eventId}/create",
1564
+ }));
1565
+ export const CreateThreatEventEventTagResponse =
1566
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1567
+ success: Schema.Boolean,
1568
+ }).pipe(T.ResponsePath("result"));
1569
+ export const createThreatEventEventTag = API.make(() => ({
1570
+ input: CreateThreatEventEventTagRequest,
1571
+ output: CreateThreatEventEventTagResponse,
1572
+ errors: [],
1573
+ }));
1574
+ export const DeleteThreatEventEventTagRequest =
1575
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1576
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
1577
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1578
+ }).pipe(T.Http({
1579
+ method: "DELETE",
1580
+ path: "/accounts/{account_id}/cloudforce-one/events/event_tag/{eventId}",
1581
+ }));
1582
+ export const DeleteThreatEventEventTagResponse =
1583
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1584
+ success: Schema.Boolean,
1585
+ }).pipe(T.ResponsePath("result"));
1586
+ export const deleteThreatEventEventTag = API.make(() => ({
1587
+ input: DeleteThreatEventEventTagRequest,
1588
+ output: DeleteThreatEventEventTagResponse,
1589
+ errors: [],
1590
+ }));
1591
+ export const ListThreatEventIndicatorTypesRequest =
1592
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1593
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1594
+ }).pipe(T.Http({
1595
+ method: "GET",
1596
+ path: "/accounts/{account_id}/cloudforce-one/events/indicatorTypes",
1597
+ }));
1598
+ export const ListThreatEventIndicatorTypesResponse =
1599
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1600
+ items: Schema.Struct({
1601
+ type: Schema.String,
1602
+ }),
1603
+ type: Schema.String,
1604
+ });
1605
+ export const listThreatEventIndicatorTypes = API.make(() => ({
1606
+ input: ListThreatEventIndicatorTypesRequest,
1607
+ output: ListThreatEventIndicatorTypesResponse,
1608
+ errors: [],
1609
+ }));
1610
+ export const GetThreatEventRawRequest =
1611
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1612
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
1613
+ rawId: Schema.String.pipe(T.HttpPath("rawId")),
1614
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1615
+ }).pipe(T.Http({
1616
+ method: "GET",
1617
+ path: "/accounts/{account_id}/cloudforce-one/events/{eventId}/raw/{rawId}",
1618
+ }));
1619
+ export const GetThreatEventRawResponse =
1620
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1621
+ id: Schema.String,
1622
+ accountId: Schema.Number,
1623
+ created: Schema.String,
1624
+ data: Schema.Unknown,
1625
+ source: Schema.String,
1626
+ tlp: Schema.String,
1627
+ });
1628
+ export const getThreatEventRaw = API.make(() => ({
1629
+ input: GetThreatEventRawRequest,
1630
+ output: GetThreatEventRawResponse,
1631
+ errors: [],
1632
+ }));
1633
+ export const PatchThreatEventRawRequest =
1634
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1635
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
1636
+ rawId: Schema.String.pipe(T.HttpPath("rawId")),
1637
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1638
+ data: Schema.optional(Schema.Unknown),
1639
+ source: Schema.optional(Schema.String),
1640
+ tlp: Schema.optional(Schema.String),
1641
+ }).pipe(T.Http({
1642
+ method: "PATCH",
1643
+ path: "/accounts/{account_id}/cloudforce-one/events/{eventId}/raw/{rawId}",
1644
+ }));
1645
+ export const PatchThreatEventRawResponse =
1646
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1647
+ id: Schema.String,
1648
+ data: Schema.Unknown,
1649
+ });
1650
+ export const patchThreatEventRaw = API.make(() => ({
1651
+ input: PatchThreatEventRawRequest,
1652
+ output: PatchThreatEventRawResponse,
1653
+ errors: [],
1654
+ }));
1655
+ export const DeleteThreatEventRelateRequest =
1656
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1657
+ eventId: Schema.String.pipe(T.HttpPath("eventId")),
1658
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1659
+ }).pipe(T.Http({
1660
+ method: "DELETE",
1661
+ path: "/accounts/{account_id}/cloudforce-one/events/relate/{eventId}",
1662
+ }));
1663
+ export const DeleteThreatEventRelateResponse =
1664
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1665
+ success: Schema.Boolean,
1666
+ }).pipe(T.ResponsePath("result"));
1667
+ export const deleteThreatEventRelate = API.make(() => ({
1668
+ input: DeleteThreatEventRelateRequest,
1669
+ output: DeleteThreatEventRelateResponse,
1670
+ errors: [],
1671
+ }));
1672
+ export const CreateThreatEventTagRequest =
1673
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1674
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1675
+ value: Schema.String,
1676
+ activeDuration: Schema.optional(Schema.String),
1677
+ actorCategory: Schema.optional(Schema.String),
1678
+ aliasGroupNames: Schema.optional(Schema.Array(Schema.String)),
1679
+ aliasGroupNamesInternal: Schema.optional(Schema.Array(Schema.String)),
1680
+ analyticPriority: Schema.optional(Schema.Number),
1681
+ attributionConfidence: Schema.optional(Schema.String),
1682
+ attributionOrganization: Schema.optional(Schema.String),
1683
+ categoryUuid: Schema.optional(Schema.String),
1684
+ externalReferenceLinks: Schema.optional(Schema.Array(Schema.String)),
1685
+ internalDescription: Schema.optional(Schema.String),
1686
+ motive: Schema.optional(Schema.String),
1687
+ opsecLevel: Schema.optional(Schema.String),
1688
+ originCountryISO: Schema.optional(Schema.String),
1689
+ priority: Schema.optional(Schema.Number),
1690
+ sophisticationLevel: Schema.optional(Schema.String),
1691
+ }).pipe(T.Http({
1692
+ method: "POST",
1693
+ path: "/accounts/{account_id}/cloudforce-one/events/tags/create",
1694
+ }));
1695
+ export const CreateThreatEventTagResponse =
1696
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1697
+ uuid: Schema.String,
1698
+ value: Schema.String,
1699
+ activeDuration: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1700
+ actorCategory: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1701
+ aliasGroupNames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1702
+ aliasGroupNamesInternal: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1703
+ analyticPriority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1704
+ attributionConfidence: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1705
+ attributionOrganization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1706
+ categoryName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1707
+ categoryUuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1708
+ externalReferenceLinks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1709
+ internalDescription: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1710
+ motive: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1711
+ opsecLevel: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1712
+ originCountryISO: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1713
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1714
+ sophisticationLevel: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1715
+ });
1716
+ export const createThreatEventTag = API.make(() => ({
1717
+ input: CreateThreatEventTagRequest,
1718
+ output: CreateThreatEventTagResponse,
1719
+ errors: [],
1720
+ }));
1721
+ export const ListThreatEventTargetIndustriesRequest =
1722
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1723
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1724
+ datasetIds: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("datasetIds")),
1725
+ }).pipe(T.Http({
1726
+ method: "GET",
1727
+ path: "/accounts/{account_id}/cloudforce-one/events/targetIndustries",
1728
+ }));
1729
+ export const ListThreatEventTargetIndustriesResponse =
1730
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1731
+ items: Schema.Struct({
1732
+ type: Schema.String,
1733
+ }),
1734
+ type: Schema.String,
1735
+ });
1736
+ export const listThreatEventTargetIndustries = API.make(() => ({
1737
+ input: ListThreatEventTargetIndustriesRequest,
1738
+ output: ListThreatEventTargetIndustriesResponse,
1739
+ errors: [],
1740
+ }));
1741
+ //# sourceMappingURL=cloudforce-one.js.map