@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha

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