cloudflare 4.4.0 → 4.5.0

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 (675) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/README.md +2 -4
  3. package/core.d.ts +7 -4
  4. package/core.d.ts.map +1 -1
  5. package/core.js +16 -9
  6. package/core.js.map +1 -1
  7. package/core.mjs +16 -9
  8. package/core.mjs.map +1 -1
  9. package/index.d.mts +4 -1
  10. package/index.d.ts +4 -1
  11. package/index.d.ts.map +1 -1
  12. package/index.js +7 -3
  13. package/index.js.map +1 -1
  14. package/index.mjs +7 -3
  15. package/index.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/accounts/tokens/index.d.ts +1 -1
  18. package/resources/accounts/tokens/index.d.ts.map +1 -1
  19. package/resources/accounts/tokens/index.js +1 -2
  20. package/resources/accounts/tokens/index.js.map +1 -1
  21. package/resources/accounts/tokens/index.mjs +1 -1
  22. package/resources/accounts/tokens/index.mjs.map +1 -1
  23. package/resources/accounts/tokens/permission-groups.d.ts +41 -22
  24. package/resources/accounts/tokens/permission-groups.d.ts.map +1 -1
  25. package/resources/accounts/tokens/permission-groups.js +12 -15
  26. package/resources/accounts/tokens/permission-groups.js.map +1 -1
  27. package/resources/accounts/tokens/permission-groups.mjs +11 -13
  28. package/resources/accounts/tokens/permission-groups.mjs.map +1 -1
  29. package/resources/accounts/tokens/tokens.d.ts +8 -19
  30. package/resources/accounts/tokens/tokens.d.ts.map +1 -1
  31. package/resources/accounts/tokens/tokens.js +2 -14
  32. package/resources/accounts/tokens/tokens.js.map +1 -1
  33. package/resources/accounts/tokens/tokens.mjs +3 -15
  34. package/resources/accounts/tokens/tokens.mjs.map +1 -1
  35. package/resources/ai/ai.d.ts +6 -2
  36. package/resources/ai/ai.d.ts.map +1 -1
  37. package/resources/ai-gateway/logs.d.ts +3 -1
  38. package/resources/ai-gateway/logs.d.ts.map +1 -1
  39. package/resources/alerting/available-alerts.d.ts +3 -1
  40. package/resources/alerting/available-alerts.d.ts.map +1 -1
  41. package/resources/alerting/destinations/eligible.d.ts +3 -1
  42. package/resources/alerting/destinations/eligible.d.ts.map +1 -1
  43. package/resources/api-gateway/discovery/operations.d.ts +6 -2
  44. package/resources/api-gateway/discovery/operations.d.ts.map +1 -1
  45. package/resources/api-gateway/operations/schema-validation.d.ts +9 -29
  46. package/resources/api-gateway/operations/schema-validation.d.ts.map +1 -1
  47. package/resources/api-gateway/operations/schema-validation.js +3 -27
  48. package/resources/api-gateway/operations/schema-validation.js.map +1 -1
  49. package/resources/api-gateway/operations/schema-validation.mjs +3 -27
  50. package/resources/api-gateway/operations/schema-validation.mjs.map +1 -1
  51. package/resources/api-gateway/settings/schema-validation.d.ts +3 -22
  52. package/resources/api-gateway/settings/schema-validation.d.ts.map +1 -1
  53. package/resources/api-gateway/settings/schema-validation.js +3 -22
  54. package/resources/api-gateway/settings/schema-validation.js.map +1 -1
  55. package/resources/api-gateway/settings/schema-validation.mjs +3 -22
  56. package/resources/api-gateway/settings/schema-validation.mjs.map +1 -1
  57. package/resources/api-gateway/user-schemas/hosts.d.ts +1 -9
  58. package/resources/api-gateway/user-schemas/hosts.d.ts.map +1 -1
  59. package/resources/api-gateway/user-schemas/hosts.js +1 -9
  60. package/resources/api-gateway/user-schemas/hosts.js.map +1 -1
  61. package/resources/api-gateway/user-schemas/hosts.mjs +1 -9
  62. package/resources/api-gateway/user-schemas/hosts.mjs.map +1 -1
  63. package/resources/api-gateway/user-schemas/operations.d.ts +1 -10
  64. package/resources/api-gateway/user-schemas/operations.d.ts.map +1 -1
  65. package/resources/api-gateway/user-schemas/operations.js +1 -10
  66. package/resources/api-gateway/user-schemas/operations.js.map +1 -1
  67. package/resources/api-gateway/user-schemas/operations.mjs +1 -10
  68. package/resources/api-gateway/user-schemas/operations.mjs.map +1 -1
  69. package/resources/api-gateway/user-schemas/user-schemas.d.ts +5 -42
  70. package/resources/api-gateway/user-schemas/user-schemas.d.ts.map +1 -1
  71. package/resources/api-gateway/user-schemas/user-schemas.js +5 -42
  72. package/resources/api-gateway/user-schemas/user-schemas.js.map +1 -1
  73. package/resources/api-gateway/user-schemas/user-schemas.mjs +5 -42
  74. package/resources/api-gateway/user-schemas/user-schemas.mjs.map +1 -1
  75. package/resources/bot-management.d.ts +36 -24
  76. package/resources/bot-management.d.ts.map +1 -1
  77. package/resources/brand-protection/brand-protection.d.ts +205 -0
  78. package/resources/brand-protection/brand-protection.d.ts.map +1 -0
  79. package/resources/brand-protection/brand-protection.js +85 -0
  80. package/resources/brand-protection/brand-protection.js.map +1 -0
  81. package/resources/brand-protection/brand-protection.mjs +58 -0
  82. package/resources/brand-protection/brand-protection.mjs.map +1 -0
  83. package/resources/brand-protection/index.d.ts +6 -0
  84. package/resources/brand-protection/index.d.ts.map +1 -0
  85. package/resources/brand-protection/index.js +15 -0
  86. package/resources/brand-protection/index.js.map +1 -0
  87. package/resources/brand-protection/index.mjs +7 -0
  88. package/resources/brand-protection/index.mjs.map +1 -0
  89. package/resources/brand-protection/logo-matches.d.ts +4 -0
  90. package/resources/brand-protection/logo-matches.d.ts.map +1 -0
  91. package/resources/brand-protection/logo-matches.js +9 -0
  92. package/resources/brand-protection/logo-matches.js.map +1 -0
  93. package/resources/brand-protection/logo-matches.mjs +5 -0
  94. package/resources/brand-protection/logo-matches.mjs.map +1 -0
  95. package/resources/brand-protection/logos.d.ts +4 -0
  96. package/resources/brand-protection/logos.d.ts.map +1 -0
  97. package/resources/brand-protection/logos.js +9 -0
  98. package/resources/brand-protection/logos.js.map +1 -0
  99. package/resources/brand-protection/logos.mjs +5 -0
  100. package/resources/brand-protection/logos.mjs.map +1 -0
  101. package/resources/brand-protection/matches.d.ts +4 -0
  102. package/resources/brand-protection/matches.d.ts.map +1 -0
  103. package/resources/brand-protection/matches.js +9 -0
  104. package/resources/brand-protection/matches.js.map +1 -0
  105. package/resources/brand-protection/matches.mjs +5 -0
  106. package/resources/brand-protection/matches.mjs.map +1 -0
  107. package/resources/brand-protection/queries.d.ts +4 -0
  108. package/resources/brand-protection/queries.d.ts.map +1 -0
  109. package/resources/brand-protection/queries.js +9 -0
  110. package/resources/brand-protection/queries.js.map +1 -0
  111. package/resources/brand-protection/queries.mjs +5 -0
  112. package/resources/brand-protection/queries.mjs.map +1 -0
  113. package/resources/brand-protection.d.ts +1 -188
  114. package/resources/brand-protection.d.ts.map +1 -1
  115. package/resources/brand-protection.js +15 -39
  116. package/resources/brand-protection.js.map +1 -1
  117. package/resources/brand-protection.mjs +1 -37
  118. package/resources/brand-protection.mjs.map +1 -1
  119. package/resources/browser-rendering/content.d.ts +3 -1
  120. package/resources/browser-rendering/content.d.ts.map +1 -1
  121. package/resources/browser-rendering/json.d.ts +9 -3
  122. package/resources/browser-rendering/json.d.ts.map +1 -1
  123. package/resources/browser-rendering/links.d.ts +3 -1
  124. package/resources/browser-rendering/links.d.ts.map +1 -1
  125. package/resources/browser-rendering/markdown.d.ts +3 -1
  126. package/resources/browser-rendering/markdown.d.ts.map +1 -1
  127. package/resources/browser-rendering/pdf.d.ts +87 -1
  128. package/resources/browser-rendering/pdf.d.ts.map +1 -1
  129. package/resources/browser-rendering/scrape.d.ts +3 -1
  130. package/resources/browser-rendering/scrape.d.ts.map +1 -1
  131. package/resources/browser-rendering/screenshot.d.ts +3 -1
  132. package/resources/browser-rendering/screenshot.d.ts.map +1 -1
  133. package/resources/browser-rendering/snapshot.d.ts +3 -1
  134. package/resources/browser-rendering/snapshot.d.ts.map +1 -1
  135. package/resources/cache/cache.d.ts +3 -1
  136. package/resources/cache/cache.d.ts.map +1 -1
  137. package/resources/cloudforce-one/threat-events/threat-events.d.ts +20 -52
  138. package/resources/cloudforce-one/threat-events/threat-events.d.ts.map +1 -1
  139. package/resources/cloudforce-one/threat-events/threat-events.js +0 -4
  140. package/resources/cloudforce-one/threat-events/threat-events.js.map +1 -1
  141. package/resources/cloudforce-one/threat-events/threat-events.mjs +0 -4
  142. package/resources/cloudforce-one/threat-events/threat-events.mjs.map +1 -1
  143. package/resources/custom-hostnames/certificate-pack/certificates.d.ts +3 -1
  144. package/resources/custom-hostnames/certificate-pack/certificates.d.ts.map +1 -1
  145. package/resources/custom-hostnames/custom-hostnames.d.ts +21 -7
  146. package/resources/custom-hostnames/custom-hostnames.d.ts.map +1 -1
  147. package/resources/dns/records.d.ts +661 -658
  148. package/resources/dns/records.d.ts.map +1 -1
  149. package/resources/dns/records.js +3 -0
  150. package/resources/dns/records.js.map +1 -1
  151. package/resources/dns/records.mjs +3 -0
  152. package/resources/dns/records.mjs.map +1 -1
  153. package/resources/dns-firewall/reverse-dns.d.ts +9 -3
  154. package/resources/dns-firewall/reverse-dns.d.ts.map +1 -1
  155. package/resources/email-security/investigate/investigate.d.ts +8 -0
  156. package/resources/email-security/investigate/investigate.d.ts.map +1 -1
  157. package/resources/email-security/investigate/investigate.js.map +1 -1
  158. package/resources/email-security/investigate/investigate.mjs.map +1 -1
  159. package/resources/email-security/investigate/move.d.ts +10 -10
  160. package/resources/email-security/investigate/move.d.ts.map +1 -1
  161. package/resources/email-security/settings/domains.d.ts +3 -3
  162. package/resources/email-security/settings/domains.d.ts.map +1 -1
  163. package/resources/email-security/settings/trusted-domains.d.ts +5 -5
  164. package/resources/email-security/settings/trusted-domains.d.ts.map +1 -1
  165. package/resources/firewall/lockdowns.d.ts +2 -2
  166. package/resources/firewall/ua-rules.d.ts +171 -6
  167. package/resources/firewall/ua-rules.d.ts.map +1 -1
  168. package/resources/firewall/ua-rules.js.map +1 -1
  169. package/resources/firewall/ua-rules.mjs.map +1 -1
  170. package/resources/firewall/waf/overrides.d.ts +10 -4
  171. package/resources/firewall/waf/overrides.d.ts.map +1 -1
  172. package/resources/healthchecks/healthchecks.d.ts +6 -2
  173. package/resources/healthchecks/healthchecks.d.ts.map +1 -1
  174. package/resources/hyperdrive/configs.d.ts +15 -0
  175. package/resources/hyperdrive/configs.d.ts.map +1 -1
  176. package/resources/hyperdrive/configs.js.map +1 -1
  177. package/resources/hyperdrive/configs.mjs.map +1 -1
  178. package/resources/hyperdrive/hyperdrive.d.ts +5 -0
  179. package/resources/hyperdrive/hyperdrive.d.ts.map +1 -1
  180. package/resources/hyperdrive/hyperdrive.js.map +1 -1
  181. package/resources/hyperdrive/hyperdrive.mjs.map +1 -1
  182. package/resources/images/v1/v1.d.ts +5 -1
  183. package/resources/images/v1/v1.d.ts.map +1 -1
  184. package/resources/images/v1/v1.js.map +1 -1
  185. package/resources/images/v1/v1.mjs.map +1 -1
  186. package/resources/index.d.ts +1 -1
  187. package/resources/index.d.ts.map +1 -1
  188. package/resources/index.js +1 -1
  189. package/resources/index.js.map +1 -1
  190. package/resources/index.mjs +1 -1
  191. package/resources/kv/namespaces/keys.d.ts +44 -52
  192. package/resources/kv/namespaces/keys.d.ts.map +1 -1
  193. package/resources/kv/namespaces/keys.js +3 -4
  194. package/resources/kv/namespaces/keys.js.map +1 -1
  195. package/resources/kv/namespaces/keys.mjs +3 -4
  196. package/resources/kv/namespaces/keys.mjs.map +1 -1
  197. package/resources/kv/namespaces/metadata.d.ts +2 -5
  198. package/resources/kv/namespaces/metadata.d.ts.map +1 -1
  199. package/resources/kv/namespaces/namespaces.d.ts +46 -51
  200. package/resources/kv/namespaces/namespaces.d.ts.map +1 -1
  201. package/resources/kv/namespaces/namespaces.js +4 -5
  202. package/resources/kv/namespaces/namespaces.js.map +1 -1
  203. package/resources/kv/namespaces/namespaces.mjs +4 -5
  204. package/resources/kv/namespaces/namespaces.mjs.map +1 -1
  205. package/resources/kv/namespaces/values.d.ts +10 -12
  206. package/resources/kv/namespaces/values.d.ts.map +1 -1
  207. package/resources/kv/namespaces/values.js +1 -7
  208. package/resources/kv/namespaces/values.js.map +1 -1
  209. package/resources/kv/namespaces/values.mjs +1 -7
  210. package/resources/kv/namespaces/values.mjs.map +1 -1
  211. package/resources/load-balancers/load-balancers.d.ts +60 -20
  212. package/resources/load-balancers/load-balancers.d.ts.map +1 -1
  213. package/resources/load-balancers/monitors/monitors.d.ts +12 -4
  214. package/resources/load-balancers/monitors/monitors.d.ts.map +1 -1
  215. package/resources/load-balancers/monitors/previews.d.ts +6 -2
  216. package/resources/load-balancers/monitors/previews.d.ts.map +1 -1
  217. package/resources/load-balancers/pools/health.d.ts +6 -2
  218. package/resources/load-balancers/pools/health.d.ts.map +1 -1
  219. package/resources/load-balancers/previews.d.ts +6 -2
  220. package/resources/load-balancers/previews.d.ts.map +1 -1
  221. package/resources/logpush/jobs.d.ts +63 -35
  222. package/resources/logpush/jobs.d.ts.map +1 -1
  223. package/resources/logpush/jobs.js +39 -0
  224. package/resources/logpush/jobs.js.map +1 -1
  225. package/resources/logpush/jobs.mjs +39 -0
  226. package/resources/logpush/jobs.mjs.map +1 -1
  227. package/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.d.ts +15 -5
  228. package/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.d.ts.map +1 -1
  229. package/resources/magic-cloud-networking/on-ramps/on-ramps.d.ts +195 -65
  230. package/resources/magic-cloud-networking/on-ramps/on-ramps.d.ts.map +1 -1
  231. package/resources/magic-cloud-networking/resources.d.ts +30 -10
  232. package/resources/magic-cloud-networking/resources.d.ts.map +1 -1
  233. package/resources/magic-transit/connectors/connectors.d.ts +106 -2
  234. package/resources/magic-transit/connectors/connectors.d.ts.map +1 -1
  235. package/resources/magic-transit/connectors/connectors.js +33 -1
  236. package/resources/magic-transit/connectors/connectors.js.map +1 -1
  237. package/resources/magic-transit/connectors/connectors.mjs +33 -1
  238. package/resources/magic-transit/connectors/connectors.mjs.map +1 -1
  239. package/resources/magic-transit/connectors/index.d.ts +1 -1
  240. package/resources/magic-transit/connectors/index.d.ts.map +1 -1
  241. package/resources/magic-transit/connectors/index.js.map +1 -1
  242. package/resources/magic-transit/connectors/index.mjs.map +1 -1
  243. package/resources/magic-transit/index.d.ts +1 -1
  244. package/resources/magic-transit/index.d.ts.map +1 -1
  245. package/resources/magic-transit/index.js.map +1 -1
  246. package/resources/magic-transit/index.mjs.map +1 -1
  247. package/resources/magic-transit/magic-transit.d.ts +2 -2
  248. package/resources/magic-transit/magic-transit.d.ts.map +1 -1
  249. package/resources/magic-transit/magic-transit.js.map +1 -1
  250. package/resources/magic-transit/magic-transit.mjs.map +1 -1
  251. package/resources/magic-transit/sites/lans.d.ts +6 -2
  252. package/resources/magic-transit/sites/lans.d.ts.map +1 -1
  253. package/resources/page-rules.d.ts +12 -4
  254. package/resources/page-rules.d.ts.map +1 -1
  255. package/resources/pages/projects/projects.d.ts +237 -79
  256. package/resources/pages/projects/projects.d.ts.map +1 -1
  257. package/resources/pages/projects/projects.js.map +1 -1
  258. package/resources/pages/projects/projects.mjs.map +1 -1
  259. package/resources/radar/ai/bots/summary.d.ts +3 -1
  260. package/resources/radar/ai/bots/summary.d.ts.map +1 -1
  261. package/resources/radar/ai/inference/summary.d.ts +6 -2
  262. package/resources/radar/ai/inference/summary.d.ts.map +1 -1
  263. package/resources/radar/as112/summary.d.ts +6 -2
  264. package/resources/radar/as112/summary.d.ts.map +1 -1
  265. package/resources/radar/attacks/layer3/summary.d.ts +9 -3
  266. package/resources/radar/attacks/layer3/summary.d.ts.map +1 -1
  267. package/resources/radar/attacks/layer7/summary.d.ts +15 -5
  268. package/resources/radar/attacks/layer7/summary.d.ts.map +1 -1
  269. package/resources/radar/bots/bots.d.ts +588 -0
  270. package/resources/radar/bots/bots.d.ts.map +1 -0
  271. package/resources/radar/bots/bots.js +73 -0
  272. package/resources/radar/bots/bots.js.map +1 -0
  273. package/resources/radar/bots/bots.mjs +46 -0
  274. package/resources/radar/bots/bots.mjs.map +1 -0
  275. package/resources/radar/bots/index.d.ts +3 -0
  276. package/resources/radar/bots/index.d.ts.map +1 -0
  277. package/resources/radar/bots/index.js +9 -0
  278. package/resources/radar/bots/index.js.map +1 -0
  279. package/resources/radar/bots/index.mjs +4 -0
  280. package/resources/radar/bots/index.mjs.map +1 -0
  281. package/resources/radar/bots/web-crawlers.d.ts +258 -0
  282. package/resources/radar/bots/web-crawlers.d.ts.map +1 -0
  283. package/resources/radar/bots/web-crawlers.js +28 -0
  284. package/resources/radar/bots/web-crawlers.js.map +1 -0
  285. package/resources/radar/bots/web-crawlers.mjs +24 -0
  286. package/resources/radar/bots/web-crawlers.mjs.map +1 -0
  287. package/resources/radar/bots.d.ts +2 -0
  288. package/resources/radar/bots.d.ts.map +1 -0
  289. package/resources/radar/bots.js +19 -0
  290. package/resources/radar/bots.js.map +1 -0
  291. package/resources/radar/bots.mjs +3 -0
  292. package/resources/radar/bots.mjs.map +1 -0
  293. package/resources/radar/dns/summary.d.ts +6 -2
  294. package/resources/radar/dns/summary.d.ts.map +1 -1
  295. package/resources/radar/entities/asns.d.ts +0 -12
  296. package/resources/radar/entities/asns.d.ts.map +1 -1
  297. package/resources/radar/index.d.ts +1 -0
  298. package/resources/radar/index.d.ts.map +1 -1
  299. package/resources/radar/index.js +25 -23
  300. package/resources/radar/index.js.map +1 -1
  301. package/resources/radar/index.mjs +1 -0
  302. package/resources/radar/index.mjs.map +1 -1
  303. package/resources/radar/radar.d.ts +4 -0
  304. package/resources/radar/radar.d.ts.map +1 -1
  305. package/resources/radar/radar.js +4 -0
  306. package/resources/radar/radar.js.map +1 -1
  307. package/resources/radar/radar.mjs +4 -0
  308. package/resources/radar/radar.mjs.map +1 -1
  309. package/resources/radar/search.d.ts +3 -3
  310. package/resources/radar/search.d.ts.map +1 -1
  311. package/resources/radar/search.js +1 -1
  312. package/resources/radar/search.mjs +1 -1
  313. package/resources/radar/verified-bots/top.d.ts +2 -9
  314. package/resources/radar/verified-bots/top.d.ts.map +1 -1
  315. package/resources/radar/verified-bots/top.js.map +1 -1
  316. package/resources/radar/verified-bots/top.mjs.map +1 -1
  317. package/resources/rate-limits.d.ts +4 -4
  318. package/resources/request-tracers/traces.d.ts +6 -2
  319. package/resources/request-tracers/traces.d.ts.map +1 -1
  320. package/resources/rules/index.d.ts +1 -1
  321. package/resources/rules/index.d.ts.map +1 -1
  322. package/resources/rules/index.js +2 -1
  323. package/resources/rules/index.js.map +1 -1
  324. package/resources/rules/index.mjs +1 -1
  325. package/resources/rules/index.mjs.map +1 -1
  326. package/resources/rules/lists/bulk-operations.d.ts +17 -38
  327. package/resources/rules/lists/bulk-operations.d.ts.map +1 -1
  328. package/resources/rules/lists/index.d.ts +2 -2
  329. package/resources/rules/lists/index.d.ts.map +1 -1
  330. package/resources/rules/lists/index.js +3 -1
  331. package/resources/rules/lists/index.js.map +1 -1
  332. package/resources/rules/lists/index.mjs +2 -2
  333. package/resources/rules/lists/index.mjs.map +1 -1
  334. package/resources/rules/lists/items.d.ts +114 -159
  335. package/resources/rules/lists/items.d.ts.map +1 -1
  336. package/resources/rules/lists/items.js +20 -15
  337. package/resources/rules/lists/items.js.map +1 -1
  338. package/resources/rules/lists/items.mjs +18 -14
  339. package/resources/rules/lists/items.mjs.map +1 -1
  340. package/resources/rules/lists/lists.d.ts +119 -237
  341. package/resources/rules/lists/lists.d.ts.map +1 -1
  342. package/resources/rules/lists/lists.js +13 -4
  343. package/resources/rules/lists/lists.js.map +1 -1
  344. package/resources/rules/lists/lists.mjs +12 -4
  345. package/resources/rules/lists/lists.mjs.map +1 -1
  346. package/resources/rules/rules.d.ts +2 -2
  347. package/resources/rules/rules.d.ts.map +1 -1
  348. package/resources/rules/rules.js +1 -0
  349. package/resources/rules/rules.js.map +1 -1
  350. package/resources/rules/rules.mjs +2 -1
  351. package/resources/rules/rules.mjs.map +1 -1
  352. package/resources/rulesets/rules.d.ts +36 -12
  353. package/resources/rulesets/rules.d.ts.map +1 -1
  354. package/resources/schema-validation/settings/operations.d.ts +6 -2
  355. package/resources/schema-validation/settings/operations.d.ts.map +1 -1
  356. package/resources/shared.d.ts +13 -3
  357. package/resources/shared.d.ts.map +1 -1
  358. package/resources/spectrum/analytics/events/bytimes.d.ts +9 -3
  359. package/resources/spectrum/analytics/events/bytimes.d.ts.map +1 -1
  360. package/resources/spectrum/analytics/events/summaries.d.ts +9 -3
  361. package/resources/spectrum/analytics/events/summaries.d.ts.map +1 -1
  362. package/resources/url-scanner/scans.d.ts +6 -2
  363. package/resources/url-scanner/scans.d.ts.map +1 -1
  364. package/resources/user/tokens/index.d.ts +1 -1
  365. package/resources/user/tokens/index.d.ts.map +1 -1
  366. package/resources/user/tokens/index.js.map +1 -1
  367. package/resources/user/tokens/index.mjs.map +1 -1
  368. package/resources/user/tokens/permission-groups.d.ts +12 -1
  369. package/resources/user/tokens/permission-groups.d.ts.map +1 -1
  370. package/resources/user/tokens/permission-groups.js +9 -13
  371. package/resources/user/tokens/permission-groups.js.map +1 -1
  372. package/resources/user/tokens/permission-groups.mjs +9 -13
  373. package/resources/user/tokens/permission-groups.mjs.map +1 -1
  374. package/resources/user/tokens/tokens.d.ts +8 -19
  375. package/resources/user/tokens/tokens.d.ts.map +1 -1
  376. package/resources/user/tokens/tokens.js +2 -13
  377. package/resources/user/tokens/tokens.js.map +1 -1
  378. package/resources/user/tokens/tokens.mjs +2 -13
  379. package/resources/user/tokens/tokens.mjs.map +1 -1
  380. package/resources/workers/assets/upload.d.ts +3 -1
  381. package/resources/workers/assets/upload.d.ts.map +1 -1
  382. package/resources/workers/observability/telemetry.d.ts +26 -6
  383. package/resources/workers/observability/telemetry.d.ts.map +1 -1
  384. package/resources/workers/scripts/assets/upload.d.ts +3 -1
  385. package/resources/workers/scripts/assets/upload.d.ts.map +1 -1
  386. package/resources/workers/scripts/scripts.d.ts +10 -2
  387. package/resources/workers/scripts/scripts.d.ts.map +1 -1
  388. package/resources/workers/scripts/scripts.js.map +1 -1
  389. package/resources/workers/scripts/scripts.mjs.map +1 -1
  390. package/resources/workers-for-platforms/dispatch/namespaces/scripts/asset-upload.d.ts +3 -1
  391. package/resources/workers-for-platforms/dispatch/namespaces/scripts/asset-upload.d.ts.map +1 -1
  392. package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts +10 -2
  393. package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts.map +1 -1
  394. package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.js.map +1 -1
  395. package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.mjs.map +1 -1
  396. package/resources/workflows/instances/instances.d.ts +5 -0
  397. package/resources/workflows/instances/instances.d.ts.map +1 -1
  398. package/resources/workflows/instances/instances.js.map +1 -1
  399. package/resources/workflows/instances/instances.mjs.map +1 -1
  400. package/resources/zaraz/config.d.ts +84 -28
  401. package/resources/zaraz/config.d.ts.map +1 -1
  402. package/resources/zaraz/history/configs.d.ts +3 -1
  403. package/resources/zaraz/history/configs.d.ts.map +1 -1
  404. package/resources/zaraz/zaraz.d.ts +18 -6
  405. package/resources/zaraz/zaraz.d.ts.map +1 -1
  406. package/resources/zero-trust/access/applications/applications.d.ts +50 -15
  407. package/resources/zero-trust/access/applications/applications.d.ts.map +1 -1
  408. package/resources/zero-trust/access/applications/applications.js.map +1 -1
  409. package/resources/zero-trust/access/applications/applications.mjs.map +1 -1
  410. package/resources/zero-trust/access/applications/policies.d.ts +46 -2
  411. package/resources/zero-trust/access/applications/policies.d.ts.map +1 -1
  412. package/resources/zero-trust/access/applications/policies.js.map +1 -1
  413. package/resources/zero-trust/access/applications/policies.mjs.map +1 -1
  414. package/resources/zero-trust/access/users/active-sessions.d.ts +9 -3
  415. package/resources/zero-trust/access/users/active-sessions.d.ts.map +1 -1
  416. package/resources/zero-trust/access/users/last-seen-identity.d.ts +6 -2
  417. package/resources/zero-trust/access/users/last-seen-identity.d.ts.map +1 -1
  418. package/resources/zero-trust/devices/devices_.d.ts +1 -1
  419. package/resources/zero-trust/devices/dex-tests.d.ts +1 -1
  420. package/resources/zero-trust/devices/dex-tests.js +1 -1
  421. package/resources/zero-trust/devices/dex-tests.mjs +1 -1
  422. package/resources/zero-trust/devices/override-codes.d.ts +3 -1
  423. package/resources/zero-trust/devices/override-codes.d.ts.map +1 -1
  424. package/resources/zero-trust/devices/registrations.d.ts +4 -4
  425. package/resources/zero-trust/dex/commands/commands.d.ts +3 -1
  426. package/resources/zero-trust/dex/commands/commands.d.ts.map +1 -1
  427. package/resources/zero-trust/dlp/datasets/datasets.d.ts +3 -3
  428. package/resources/zero-trust/dlp/datasets/datasets.d.ts.map +1 -1
  429. package/resources/zero-trust/dlp/datasets/upload.d.ts +1 -1
  430. package/resources/zero-trust/dlp/datasets/upload.d.ts.map +1 -1
  431. package/resources/zero-trust/dlp/datasets/versions/entries.d.ts +1 -1
  432. package/resources/zero-trust/dlp/datasets/versions/entries.d.ts.map +1 -1
  433. package/resources/zero-trust/dlp/datasets/versions/versions.d.ts +1 -1
  434. package/resources/zero-trust/dlp/datasets/versions/versions.d.ts.map +1 -1
  435. package/resources/zero-trust/dlp/dlp.d.ts +2 -2
  436. package/resources/zero-trust/dlp/dlp.d.ts.map +1 -1
  437. package/resources/zero-trust/dlp/dlp.js +2 -2
  438. package/resources/zero-trust/dlp/dlp.js.map +1 -1
  439. package/resources/zero-trust/dlp/dlp.mjs +2 -2
  440. package/resources/zero-trust/dlp/dlp.mjs.map +1 -1
  441. package/resources/zero-trust/dlp/email/rules.d.ts +3 -1
  442. package/resources/zero-trust/dlp/email/rules.d.ts.map +1 -1
  443. package/resources/zero-trust/dlp/entries/custom.d.ts +219 -0
  444. package/resources/zero-trust/dlp/entries/custom.d.ts.map +1 -0
  445. package/resources/zero-trust/dlp/entries/custom.js +68 -0
  446. package/resources/zero-trust/dlp/entries/custom.js.map +1 -0
  447. package/resources/zero-trust/dlp/entries/custom.mjs +64 -0
  448. package/resources/zero-trust/dlp/entries/custom.mjs.map +1 -0
  449. package/resources/zero-trust/dlp/entries/entries.d.ts +413 -0
  450. package/resources/zero-trust/dlp/entries/entries.d.ts.map +1 -0
  451. package/resources/zero-trust/dlp/entries/entries.js +140 -0
  452. package/resources/zero-trust/dlp/entries/entries.js.map +1 -0
  453. package/resources/zero-trust/dlp/entries/entries.mjs +112 -0
  454. package/resources/zero-trust/dlp/entries/entries.mjs.map +1 -0
  455. package/resources/zero-trust/dlp/entries/index.d.ts +5 -0
  456. package/resources/zero-trust/dlp/entries/index.d.ts.map +1 -0
  457. package/resources/zero-trust/dlp/entries/index.js +14 -0
  458. package/resources/zero-trust/dlp/entries/index.js.map +1 -0
  459. package/resources/zero-trust/dlp/entries/index.mjs +6 -0
  460. package/resources/zero-trust/dlp/entries/index.mjs.map +1 -0
  461. package/resources/zero-trust/dlp/entries/integration.d.ts +98 -0
  462. package/resources/zero-trust/dlp/entries/integration.d.ts.map +1 -0
  463. package/resources/zero-trust/dlp/entries/integration.js +65 -0
  464. package/resources/zero-trust/dlp/entries/integration.js.map +1 -0
  465. package/resources/zero-trust/dlp/entries/integration.mjs +61 -0
  466. package/resources/zero-trust/dlp/entries/integration.mjs.map +1 -0
  467. package/resources/zero-trust/dlp/entries/predefined.d.ts +122 -0
  468. package/resources/zero-trust/dlp/entries/predefined.d.ts.map +1 -0
  469. package/resources/zero-trust/dlp/entries/predefined.js +65 -0
  470. package/resources/zero-trust/dlp/entries/predefined.js.map +1 -0
  471. package/resources/zero-trust/dlp/entries/predefined.mjs +61 -0
  472. package/resources/zero-trust/dlp/entries/predefined.mjs.map +1 -0
  473. package/resources/zero-trust/dlp/entries.d.ts +1 -400
  474. package/resources/zero-trust/dlp/entries.d.ts.map +1 -1
  475. package/resources/zero-trust/dlp/entries.js +15 -98
  476. package/resources/zero-trust/dlp/entries.js.map +1 -1
  477. package/resources/zero-trust/dlp/entries.mjs +1 -95
  478. package/resources/zero-trust/dlp/entries.mjs.map +1 -1
  479. package/resources/zero-trust/dlp/index.d.ts +1 -1
  480. package/resources/zero-trust/dlp/index.d.ts.map +1 -1
  481. package/resources/zero-trust/dlp/index.js +6 -6
  482. package/resources/zero-trust/dlp/index.js.map +1 -1
  483. package/resources/zero-trust/dlp/index.mjs +1 -1
  484. package/resources/zero-trust/dlp/profiles/custom.d.ts +15 -5
  485. package/resources/zero-trust/dlp/profiles/custom.d.ts.map +1 -1
  486. package/resources/zero-trust/dlp/profiles/index.d.ts +1 -1
  487. package/resources/zero-trust/dlp/profiles/index.d.ts.map +1 -1
  488. package/resources/zero-trust/dlp/profiles/index.js.map +1 -1
  489. package/resources/zero-trust/dlp/profiles/index.mjs.map +1 -1
  490. package/resources/zero-trust/dlp/profiles/predefined.d.ts +76 -4
  491. package/resources/zero-trust/dlp/profiles/predefined.d.ts.map +1 -1
  492. package/resources/zero-trust/dlp/profiles/predefined.js +36 -0
  493. package/resources/zero-trust/dlp/profiles/predefined.js.map +1 -1
  494. package/resources/zero-trust/dlp/profiles/predefined.mjs +36 -0
  495. package/resources/zero-trust/dlp/profiles/predefined.mjs.map +1 -1
  496. package/resources/zero-trust/dlp/profiles/profiles.d.ts +11 -11
  497. package/resources/zero-trust/dlp/profiles/profiles.d.ts.map +1 -1
  498. package/resources/zero-trust/dlp/profiles/profiles.js.map +1 -1
  499. package/resources/zero-trust/dlp/profiles/profiles.mjs.map +1 -1
  500. package/resources/zero-trust/gateway/configurations/configurations.d.ts +18 -26
  501. package/resources/zero-trust/gateway/configurations/configurations.d.ts.map +1 -1
  502. package/resources/zero-trust/gateway/configurations/configurations.js.map +1 -1
  503. package/resources/zero-trust/gateway/configurations/configurations.mjs.map +1 -1
  504. package/resources/zero-trust/gateway/lists/lists.d.ts +28 -14
  505. package/resources/zero-trust/gateway/lists/lists.d.ts.map +1 -1
  506. package/resources/zero-trust/gateway/lists/lists.js.map +1 -1
  507. package/resources/zero-trust/gateway/lists/lists.mjs.map +1 -1
  508. package/resources/zero-trust/gateway/rules.d.ts +6 -2
  509. package/resources/zero-trust/gateway/rules.d.ts.map +1 -1
  510. package/resources/zero-trust/risk-scoring/behaviours.d.ts +9 -3
  511. package/resources/zero-trust/risk-scoring/behaviours.d.ts.map +1 -1
  512. package/resources/zones/index.d.ts +1 -1
  513. package/resources/zones/index.d.ts.map +1 -1
  514. package/resources/zones/index.js.map +1 -1
  515. package/resources/zones/index.mjs +1 -1
  516. package/resources/zones/index.mjs.map +1 -1
  517. package/resources/zones/subscriptions.d.ts +74 -0
  518. package/resources/zones/subscriptions.d.ts.map +1 -1
  519. package/resources/zones/subscriptions.js +44 -0
  520. package/resources/zones/subscriptions.js.map +1 -1
  521. package/resources/zones/subscriptions.mjs +44 -0
  522. package/resources/zones/subscriptions.mjs.map +1 -1
  523. package/resources/zones/zones.d.ts +2 -2
  524. package/resources/zones/zones.d.ts.map +1 -1
  525. package/resources/zones/zones.js.map +1 -1
  526. package/resources/zones/zones.mjs +1 -1
  527. package/resources/zones/zones.mjs.map +1 -1
  528. package/src/core.ts +17 -8
  529. package/src/index.ts +11 -1
  530. package/src/resources/accounts/tokens/index.ts +0 -1
  531. package/src/resources/accounts/tokens/permission-groups.ts +59 -36
  532. package/src/resources/accounts/tokens/tokens.ts +7 -21
  533. package/src/resources/ai/ai.ts +2 -2
  534. package/src/resources/ai-gateway/logs.ts +1 -1
  535. package/src/resources/alerting/available-alerts.ts +1 -1
  536. package/src/resources/alerting/destinations/eligible.ts +1 -1
  537. package/src/resources/api-gateway/discovery/operations.ts +2 -2
  538. package/src/resources/api-gateway/operations/schema-validation.ts +5 -29
  539. package/src/resources/api-gateway/settings/schema-validation.ts +3 -22
  540. package/src/resources/api-gateway/user-schemas/hosts.ts +1 -9
  541. package/src/resources/api-gateway/user-schemas/operations.ts +1 -10
  542. package/src/resources/api-gateway/user-schemas/user-schemas.ts +5 -42
  543. package/src/resources/bot-management.ts +36 -24
  544. package/src/resources/brand-protection/brand-protection.ts +275 -0
  545. package/src/resources/brand-protection/index.ts +7 -0
  546. package/src/resources/brand-protection/logo-matches.ts +5 -0
  547. package/src/resources/brand-protection/logos.ts +5 -0
  548. package/src/resources/brand-protection/matches.ts +5 -0
  549. package/src/resources/brand-protection/queries.ts +5 -0
  550. package/src/resources/brand-protection.ts +1 -247
  551. package/src/resources/browser-rendering/content.ts +1 -1
  552. package/src/resources/browser-rendering/json.ts +3 -3
  553. package/src/resources/browser-rendering/links.ts +1 -1
  554. package/src/resources/browser-rendering/markdown.ts +1 -1
  555. package/src/resources/browser-rendering/pdf.ts +106 -1
  556. package/src/resources/browser-rendering/scrape.ts +1 -1
  557. package/src/resources/browser-rendering/screenshot.ts +1 -1
  558. package/src/resources/browser-rendering/snapshot.ts +1 -1
  559. package/src/resources/cache/cache.ts +1 -1
  560. package/src/resources/cloudforce-one/threat-events/threat-events.ts +19 -87
  561. package/src/resources/custom-hostnames/certificate-pack/certificates.ts +1 -1
  562. package/src/resources/custom-hostnames/custom-hostnames.ts +7 -7
  563. package/src/resources/dns/records.ts +773 -770
  564. package/src/resources/dns-firewall/reverse-dns.ts +3 -3
  565. package/src/resources/email-security/investigate/investigate.ts +10 -0
  566. package/src/resources/email-security/investigate/move.ts +12 -12
  567. package/src/resources/email-security/settings/domains.ts +3 -3
  568. package/src/resources/email-security/settings/trusted-domains.ts +5 -5
  569. package/src/resources/firewall/lockdowns.ts +2 -2
  570. package/src/resources/firewall/ua-rules.ts +199 -6
  571. package/src/resources/firewall/waf/overrides.ts +4 -4
  572. package/src/resources/healthchecks/healthchecks.ts +2 -2
  573. package/src/resources/hyperdrive/configs.ts +18 -0
  574. package/src/resources/hyperdrive/hyperdrive.ts +6 -0
  575. package/src/resources/images/v1/v1.ts +6 -1
  576. package/src/resources/index.ts +1 -1
  577. package/src/resources/kv/namespaces/keys.ts +38 -52
  578. package/src/resources/kv/namespaces/metadata.ts +2 -5
  579. package/src/resources/kv/namespaces/namespaces.ts +40 -51
  580. package/src/resources/kv/namespaces/values.ts +12 -19
  581. package/src/resources/load-balancers/load-balancers.ts +20 -20
  582. package/src/resources/load-balancers/monitors/monitors.ts +4 -4
  583. package/src/resources/load-balancers/monitors/previews.ts +2 -2
  584. package/src/resources/load-balancers/pools/health.ts +2 -2
  585. package/src/resources/load-balancers/previews.ts +2 -2
  586. package/src/resources/logpush/jobs.ts +63 -35
  587. package/src/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.ts +5 -5
  588. package/src/resources/magic-cloud-networking/on-ramps/on-ramps.ts +65 -65
  589. package/src/resources/magic-cloud-networking/resources.ts +10 -10
  590. package/src/resources/magic-transit/connectors/connectors.ts +167 -1
  591. package/src/resources/magic-transit/connectors/index.ts +4 -0
  592. package/src/resources/magic-transit/index.ts +4 -0
  593. package/src/resources/magic-transit/magic-transit.ts +8 -0
  594. package/src/resources/magic-transit/sites/lans.ts +2 -2
  595. package/src/resources/page-rules.ts +4 -4
  596. package/src/resources/pages/projects/projects.ts +93 -88
  597. package/src/resources/radar/ai/bots/summary.ts +1 -1
  598. package/src/resources/radar/ai/inference/summary.ts +2 -2
  599. package/src/resources/radar/as112/summary.ts +2 -2
  600. package/src/resources/radar/attacks/layer3/summary.ts +3 -3
  601. package/src/resources/radar/attacks/layer7/summary.ts +5 -5
  602. package/src/resources/radar/bots/bots.ts +927 -0
  603. package/src/resources/radar/bots/index.ts +22 -0
  604. package/src/resources/radar/bots/web-crawlers.ts +384 -0
  605. package/src/resources/radar/bots.ts +3 -0
  606. package/src/resources/radar/dns/summary.ts +2 -2
  607. package/src/resources/radar/entities/asns.ts +0 -15
  608. package/src/resources/radar/index.ts +13 -0
  609. package/src/resources/radar/radar.ts +30 -0
  610. package/src/resources/radar/search.ts +3 -3
  611. package/src/resources/radar/verified-bots/top.ts +2 -9
  612. package/src/resources/rate-limits.ts +4 -4
  613. package/src/resources/request-tracers/traces.ts +2 -2
  614. package/src/resources/rules/index.ts +1 -1
  615. package/src/resources/rules/lists/bulk-operations.ts +17 -45
  616. package/src/resources/rules/lists/index.ts +2 -1
  617. package/src/resources/rules/lists/items.ts +128 -181
  618. package/src/resources/rules/lists/lists.ts +141 -286
  619. package/src/resources/rules/rules.ts +3 -2
  620. package/src/resources/rulesets/rules.ts +40 -40
  621. package/src/resources/schema-validation/settings/operations.ts +2 -2
  622. package/src/resources/shared.ts +3 -3
  623. package/src/resources/spectrum/analytics/events/bytimes.ts +3 -3
  624. package/src/resources/spectrum/analytics/events/summaries.ts +3 -3
  625. package/src/resources/url-scanner/scans.ts +2 -2
  626. package/src/resources/user/tokens/index.ts +1 -0
  627. package/src/resources/user/tokens/permission-groups.ts +29 -5
  628. package/src/resources/user/tokens/tokens.ts +9 -18
  629. package/src/resources/workers/assets/upload.ts +1 -1
  630. package/src/resources/workers/observability/telemetry.ts +30 -30
  631. package/src/resources/workers/scripts/assets/upload.ts +1 -1
  632. package/src/resources/workers/scripts/scripts.ts +9 -2
  633. package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/asset-upload.ts +1 -1
  634. package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +9 -2
  635. package/src/resources/workflows/instances/instances.ts +7 -0
  636. package/src/resources/zaraz/config.ts +38 -36
  637. package/src/resources/zaraz/history/configs.ts +1 -1
  638. package/src/resources/zaraz/zaraz.ts +6 -6
  639. package/src/resources/zero-trust/access/applications/applications.ts +21 -15
  640. package/src/resources/zero-trust/access/applications/policies.ts +54 -0
  641. package/src/resources/zero-trust/access/users/active-sessions.ts +3 -3
  642. package/src/resources/zero-trust/access/users/last-seen-identity.ts +2 -2
  643. package/src/resources/zero-trust/devices/devices_.ts +1 -1
  644. package/src/resources/zero-trust/devices/dex-tests.ts +1 -1
  645. package/src/resources/zero-trust/devices/override-codes.ts +1 -1
  646. package/src/resources/zero-trust/devices/registrations.ts +4 -4
  647. package/src/resources/zero-trust/dex/commands/commands.ts +1 -1
  648. package/src/resources/zero-trust/dlp/datasets/datasets.ts +3 -3
  649. package/src/resources/zero-trust/dlp/datasets/upload.ts +1 -1
  650. package/src/resources/zero-trust/dlp/datasets/versions/entries.ts +1 -1
  651. package/src/resources/zero-trust/dlp/datasets/versions/versions.ts +1 -1
  652. package/src/resources/zero-trust/dlp/dlp.ts +15 -15
  653. package/src/resources/zero-trust/dlp/email/rules.ts +1 -1
  654. package/src/resources/zero-trust/dlp/entries/custom.ts +342 -0
  655. package/src/resources/zero-trust/dlp/entries/entries.ts +727 -0
  656. package/src/resources/zero-trust/dlp/entries/index.ts +43 -0
  657. package/src/resources/zero-trust/dlp/entries/integration.ts +165 -0
  658. package/src/resources/zero-trust/dlp/entries/predefined.ts +191 -0
  659. package/src/resources/zero-trust/dlp/entries.ts +1 -658
  660. package/src/resources/zero-trust/dlp/index.ts +1 -1
  661. package/src/resources/zero-trust/dlp/profiles/custom.ts +24 -4
  662. package/src/resources/zero-trust/dlp/profiles/index.ts +3 -0
  663. package/src/resources/zero-trust/dlp/profiles/predefined.ts +115 -3
  664. package/src/resources/zero-trust/dlp/profiles/profiles.ts +15 -9
  665. package/src/resources/zero-trust/gateway/configurations/configurations.ts +22 -30
  666. package/src/resources/zero-trust/gateway/lists/lists.ts +32 -16
  667. package/src/resources/zero-trust/gateway/rules.ts +2 -2
  668. package/src/resources/zero-trust/risk-scoring/behaviours.ts +3 -3
  669. package/src/resources/zones/index.ts +6 -1
  670. package/src/resources/zones/subscriptions.ts +117 -1
  671. package/src/resources/zones/zones.ts +12 -2
  672. package/src/version.ts +1 -1
  673. package/version.d.ts +1 -1
  674. package/version.js +1 -1
  675. package/version.mjs +1 -1
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.BrandProtection = void 0;
28
+ const resource_1 = require("../../resource.js");
29
+ const LogoMatchesAPI = __importStar(require("./logo-matches.js"));
30
+ const logo_matches_1 = require("./logo-matches.js");
31
+ const LogosAPI = __importStar(require("./logos.js"));
32
+ const logos_1 = require("./logos.js");
33
+ const MatchesAPI = __importStar(require("./matches.js"));
34
+ const matches_1 = require("./matches.js");
35
+ const QueriesAPI = __importStar(require("./queries.js"));
36
+ const queries_1 = require("./queries.js");
37
+ class BrandProtection extends resource_1.APIResource {
38
+ constructor() {
39
+ super(...arguments);
40
+ this.queries = new QueriesAPI.Queries(this._client);
41
+ this.matches = new MatchesAPI.Matches(this._client);
42
+ this.logos = new LogosAPI.Logos(this._client);
43
+ this.logoMatches = new LogoMatchesAPI.LogoMatches(this._client);
44
+ }
45
+ /**
46
+ * Submit suspicious URL for scanning.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const submit = await client.brandProtection.submit({
51
+ * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
52
+ * });
53
+ * ```
54
+ */
55
+ submit(params, options) {
56
+ const { account_id, ...body } = params;
57
+ return this._client.post(`/accounts/${account_id}/brand-protection/submit`, {
58
+ body,
59
+ ...options,
60
+ })._thenUnwrap((obj) => obj.result);
61
+ }
62
+ /**
63
+ * Gets phishing details about a URL.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const info = await client.brandProtection.urlInfo({
68
+ * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
69
+ * });
70
+ * ```
71
+ */
72
+ urlInfo(params, options) {
73
+ const { account_id, ...query } = params;
74
+ return this._client.get(`/accounts/${account_id}/brand-protection/url-info`, {
75
+ query,
76
+ ...options,
77
+ })._thenUnwrap((obj) => obj.result);
78
+ }
79
+ }
80
+ exports.BrandProtection = BrandProtection;
81
+ BrandProtection.Queries = queries_1.Queries;
82
+ BrandProtection.Matches = matches_1.Matches;
83
+ BrandProtection.Logos = logos_1.Logos;
84
+ BrandProtection.LogoMatches = logo_matches_1.LogoMatches;
85
+ //# sourceMappingURL=brand-protection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand-protection.js","sourceRoot":"","sources":["../../src/resources/brand-protection/brand-protection.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,kEAAiD;AACjD,oDAA6C;AAC7C,qDAAoC;AACpC,sCAAgC;AAChC,yDAAwC;AACxC,0CAAoC;AACpC,yDAAwC;AACxC,0CAAoC;AAEpC,MAAa,eAAgB,SAAQ,sBAAW;IAAhD;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAyCzF,CAAC;IAvCC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAmC,EAAE,OAA6B;QACvE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,0BAA0B,EAAE;YACnE,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAoC,EAAE,OAA6B;QACzE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,UAAU,4BAA4B,EAAE;YACpE,KAAK;YACL,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AA7CD,0CA6CC;AAiMD,eAAe,CAAC,OAAO,GAAG,iBAAO,CAAC;AAClC,eAAe,CAAC,OAAO,GAAG,iBAAO,CAAC;AAClC,eAAe,CAAC,KAAK,GAAG,aAAK,CAAC;AAC9B,eAAe,CAAC,WAAW,GAAG,0BAAW,CAAC"}
@@ -0,0 +1,58 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ import * as LogoMatchesAPI from "./logo-matches.mjs";
4
+ import { LogoMatches } from "./logo-matches.mjs";
5
+ import * as LogosAPI from "./logos.mjs";
6
+ import { Logos } from "./logos.mjs";
7
+ import * as MatchesAPI from "./matches.mjs";
8
+ import { Matches } from "./matches.mjs";
9
+ import * as QueriesAPI from "./queries.mjs";
10
+ import { Queries } from "./queries.mjs";
11
+ export class BrandProtection extends APIResource {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.queries = new QueriesAPI.Queries(this._client);
15
+ this.matches = new MatchesAPI.Matches(this._client);
16
+ this.logos = new LogosAPI.Logos(this._client);
17
+ this.logoMatches = new LogoMatchesAPI.LogoMatches(this._client);
18
+ }
19
+ /**
20
+ * Submit suspicious URL for scanning.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const submit = await client.brandProtection.submit({
25
+ * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
26
+ * });
27
+ * ```
28
+ */
29
+ submit(params, options) {
30
+ const { account_id, ...body } = params;
31
+ return this._client.post(`/accounts/${account_id}/brand-protection/submit`, {
32
+ body,
33
+ ...options,
34
+ })._thenUnwrap((obj) => obj.result);
35
+ }
36
+ /**
37
+ * Gets phishing details about a URL.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const info = await client.brandProtection.urlInfo({
42
+ * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
43
+ * });
44
+ * ```
45
+ */
46
+ urlInfo(params, options) {
47
+ const { account_id, ...query } = params;
48
+ return this._client.get(`/accounts/${account_id}/brand-protection/url-info`, {
49
+ query,
50
+ ...options,
51
+ })._thenUnwrap((obj) => obj.result);
52
+ }
53
+ }
54
+ BrandProtection.Queries = Queries;
55
+ BrandProtection.Matches = Matches;
56
+ BrandProtection.Logos = Logos;
57
+ BrandProtection.LogoMatches = LogoMatches;
58
+ //# sourceMappingURL=brand-protection.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand-protection.mjs","sourceRoot":"","sources":["../../src/resources/brand-protection/brand-protection.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE;OACT,KAAK,UAAU;OACf,EAAE,OAAO,EAAE;OACX,KAAK,UAAU;OACf,EAAE,OAAO,EAAE;AAElB,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAAhD;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAyCzF,CAAC;IAvCC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAmC,EAAE,OAA6B;QACvE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,0BAA0B,EAAE;YACnE,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAoC,EAAE,OAA6B;QACzE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,UAAU,4BAA4B,EAAE;YACpE,KAAK;YACL,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AAiMD,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;AAClC,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;AAClC,eAAe,CAAC,KAAK,GAAG,KAAK,CAAC;AAC9B,eAAe,CAAC,WAAW,GAAG,WAAW,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { BrandProtection } from "./brand-protection.js";
2
+ export { LogoMatches } from "./logo-matches.js";
3
+ export { Logos } from "./logos.js";
4
+ export { Matches } from "./matches.js";
5
+ export { Queries } from "./queries.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/brand-protection/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Queries = exports.Matches = exports.Logos = exports.LogoMatches = exports.BrandProtection = void 0;
5
+ var brand_protection_1 = require("./brand-protection.js");
6
+ Object.defineProperty(exports, "BrandProtection", { enumerable: true, get: function () { return brand_protection_1.BrandProtection; } });
7
+ var logo_matches_1 = require("./logo-matches.js");
8
+ Object.defineProperty(exports, "LogoMatches", { enumerable: true, get: function () { return logo_matches_1.LogoMatches; } });
9
+ var logos_1 = require("./logos.js");
10
+ Object.defineProperty(exports, "Logos", { enumerable: true, get: function () { return logos_1.Logos; } });
11
+ var matches_1 = require("./matches.js");
12
+ Object.defineProperty(exports, "Matches", { enumerable: true, get: function () { return matches_1.Matches; } });
13
+ var queries_1 = require("./queries.js");
14
+ Object.defineProperty(exports, "Queries", { enumerable: true, get: function () { return queries_1.Queries; } });
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/brand-protection/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,kDAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,oCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,wCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
@@ -0,0 +1,7 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { BrandProtection } from "./brand-protection.mjs";
3
+ export { LogoMatches } from "./logo-matches.mjs";
4
+ export { Logos } from "./logos.mjs";
5
+ export { Matches } from "./matches.mjs";
6
+ export { Queries } from "./queries.mjs";
7
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/brand-protection/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,eAAe,EAAE;OACnB,EAAE,WAAW,EAAE;OACf,EAAE,KAAK,EAAE;OACT,EAAE,OAAO,EAAE;OACX,EAAE,OAAO,EAAE"}
@@ -0,0 +1,4 @@
1
+ import { APIResource } from "../../resource.js";
2
+ export declare class LogoMatches extends APIResource {
3
+ }
4
+ //# sourceMappingURL=logo-matches.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo-matches.d.ts","sourceRoot":"","sources":["../../src/resources/brand-protection/logo-matches.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAAa,WAAY,SAAQ,WAAW;CAAG"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.LogoMatches = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class LogoMatches extends resource_1.APIResource {
7
+ }
8
+ exports.LogoMatches = LogoMatches;
9
+ //# sourceMappingURL=logo-matches.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo-matches.js","sourceRoot":"","sources":["../../src/resources/brand-protection/logo-matches.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,MAAa,WAAY,SAAQ,sBAAW;CAAG;AAA/C,kCAA+C"}
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class LogoMatches extends APIResource {
4
+ }
5
+ //# sourceMappingURL=logo-matches.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo-matches.mjs","sourceRoot":"","sources":["../../src/resources/brand-protection/logo-matches.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,WAAY,SAAQ,WAAW;CAAG"}
@@ -0,0 +1,4 @@
1
+ import { APIResource } from "../../resource.js";
2
+ export declare class Logos extends APIResource {
3
+ }
4
+ //# sourceMappingURL=logos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logos.d.ts","sourceRoot":"","sources":["../../src/resources/brand-protection/logos.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAAa,KAAM,SAAQ,WAAW;CAAG"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Logos = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class Logos extends resource_1.APIResource {
7
+ }
8
+ exports.Logos = Logos;
9
+ //# sourceMappingURL=logos.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logos.js","sourceRoot":"","sources":["../../src/resources/brand-protection/logos.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,MAAa,KAAM,SAAQ,sBAAW;CAAG;AAAzC,sBAAyC"}
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class Logos extends APIResource {
4
+ }
5
+ //# sourceMappingURL=logos.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logos.mjs","sourceRoot":"","sources":["../../src/resources/brand-protection/logos.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,KAAM,SAAQ,WAAW;CAAG"}
@@ -0,0 +1,4 @@
1
+ import { APIResource } from "../../resource.js";
2
+ export declare class Matches extends APIResource {
3
+ }
4
+ //# sourceMappingURL=matches.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matches.d.ts","sourceRoot":"","sources":["../../src/resources/brand-protection/matches.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAAa,OAAQ,SAAQ,WAAW;CAAG"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Matches = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class Matches extends resource_1.APIResource {
7
+ }
8
+ exports.Matches = Matches;
9
+ //# sourceMappingURL=matches.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matches.js","sourceRoot":"","sources":["../../src/resources/brand-protection/matches.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,MAAa,OAAQ,SAAQ,sBAAW;CAAG;AAA3C,0BAA2C"}
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class Matches extends APIResource {
4
+ }
5
+ //# sourceMappingURL=matches.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matches.mjs","sourceRoot":"","sources":["../../src/resources/brand-protection/matches.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;CAAG"}
@@ -0,0 +1,4 @@
1
+ import { APIResource } from "../../resource.js";
2
+ export declare class Queries extends APIResource {
3
+ }
4
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/resources/brand-protection/queries.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAAa,OAAQ,SAAQ,WAAW;CAAG"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Queries = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class Queries extends resource_1.APIResource {
7
+ }
8
+ exports.Queries = Queries;
9
+ //# sourceMappingURL=queries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.js","sourceRoot":"","sources":["../../src/resources/brand-protection/queries.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,MAAa,OAAQ,SAAQ,sBAAW;CAAG;AAA3C,0BAA2C"}
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class Queries extends APIResource {
4
+ }
5
+ //# sourceMappingURL=queries.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.mjs","sourceRoot":"","sources":["../../src/resources/brand-protection/queries.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;CAAG"}
@@ -1,189 +1,2 @@
1
- import { APIResource } from "../resource.js";
2
- import * as Core from "../core.js";
3
- export declare class BrandProtection extends APIResource {
4
- /**
5
- * Submit suspicious URL for scanning.
6
- *
7
- * @example
8
- * ```ts
9
- * const submit = await client.brandProtection.submit({
10
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
11
- * });
12
- * ```
13
- */
14
- submit(params: BrandProtectionSubmitParams, options?: Core.RequestOptions): Core.APIPromise<Submit>;
15
- /**
16
- * Gets phishing details about a URL.
17
- *
18
- * @example
19
- * ```ts
20
- * const info = await client.brandProtection.urlInfo({
21
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
22
- * });
23
- * ```
24
- */
25
- urlInfo(params: BrandProtectionURLInfoParams, options?: Core.RequestOptions): Core.APIPromise<Info>;
26
- }
27
- export interface Info {
28
- /**
29
- * List of categorizations applied to this submission.
30
- */
31
- categorizations?: Array<Info.Categorization>;
32
- /**
33
- * List of model results for completed scans.
34
- */
35
- model_results?: Array<URLInfoModelResults>;
36
- /**
37
- * List of signatures that matched against site content found when crawling the
38
- * URL.
39
- */
40
- rule_matches?: Array<RuleMatch>;
41
- /**
42
- * Status of the most recent scan found.
43
- */
44
- scan_status?: ScanStatus;
45
- /**
46
- * For internal use.
47
- */
48
- screenshot_download_signature?: string;
49
- /**
50
- * For internal use.
51
- */
52
- screenshot_path?: string;
53
- /**
54
- * URL that was submitted.
55
- */
56
- url?: string;
57
- }
58
- export declare namespace Info {
59
- interface Categorization {
60
- /**
61
- * Name of the category applied.
62
- */
63
- category?: string;
64
- /**
65
- * Result of human review for this categorization.
66
- */
67
- verification_status?: string;
68
- }
69
- }
70
- export interface RuleMatch {
71
- /**
72
- * For internal use.
73
- */
74
- banning?: boolean;
75
- /**
76
- * For internal use.
77
- */
78
- blocking?: boolean;
79
- /**
80
- * Description of the signature that matched.
81
- */
82
- description?: string;
83
- /**
84
- * Name of the signature that matched.
85
- */
86
- name?: string;
87
- }
88
- /**
89
- * Status of the most recent scan found.
90
- */
91
- export interface ScanStatus {
92
- /**
93
- * Timestamp of when the submission was processed.
94
- */
95
- last_processed?: string;
96
- /**
97
- * For internal use.
98
- */
99
- scan_complete?: boolean;
100
- /**
101
- * Status code that the crawler received when loading the submitted URL.
102
- */
103
- status_code?: number;
104
- /**
105
- * ID of the most recent submission.
106
- */
107
- submission_id?: number;
108
- }
109
- export interface Submit {
110
- /**
111
- * URLs that were excluded from scanning because their domain is in our no-scan
112
- * list.
113
- */
114
- excluded_urls?: Array<Submit.ExcludedURL>;
115
- /**
116
- * URLs that were skipped because the same URL is currently being scanned.
117
- */
118
- skipped_urls?: Array<Submit.SkippedURL>;
119
- /**
120
- * URLs that were successfully submitted for scanning.
121
- */
122
- submitted_urls?: Array<Submit.SubmittedURL>;
123
- }
124
- export declare namespace Submit {
125
- interface ExcludedURL {
126
- /**
127
- * URL that was excluded.
128
- */
129
- url?: string;
130
- }
131
- interface SkippedURL {
132
- /**
133
- * URL that was skipped.
134
- */
135
- url?: string;
136
- /**
137
- * ID of the submission of that URL that is currently scanning.
138
- */
139
- url_id?: number;
140
- }
141
- interface SubmittedURL {
142
- /**
143
- * URL that was submitted.
144
- */
145
- url?: string;
146
- /**
147
- * ID assigned to this URL submission. Used to retrieve scanning results.
148
- */
149
- url_id?: number;
150
- }
151
- }
152
- export interface URLInfoModelResults {
153
- /**
154
- * Name of the model.
155
- */
156
- model_name?: string;
157
- /**
158
- * This is the score that is outputted by the model for this submission.
159
- */
160
- model_score?: number;
161
- }
162
- export interface BrandProtectionSubmitParams {
163
- /**
164
- * Path param: Identifier.
165
- */
166
- account_id: string;
167
- /**
168
- * Body param: URL(s) to filter submissions results by.
169
- */
170
- url?: string;
171
- }
172
- export interface BrandProtectionURLInfoParams {
173
- /**
174
- * Path param: Identifier.
175
- */
176
- account_id: string;
177
- /**
178
- * Query param: Submission URL(s) to filter submission results by.
179
- */
180
- url?: Array<string>;
181
- /**
182
- * Query param: Submission ID(s) to filter submission results by.
183
- */
184
- url_id?: Array<number>;
185
- }
186
- export declare namespace BrandProtection {
187
- export { type Info as Info, type RuleMatch as RuleMatch, type ScanStatus as ScanStatus, type Submit as Submit, type URLInfoModelResults as URLInfoModelResults, type BrandProtectionSubmitParams as BrandProtectionSubmitParams, type BrandProtectionURLInfoParams as BrandProtectionURLInfoParams, };
188
- }
1
+ export * from "./brand-protection/index.js";
189
2
  //# sourceMappingURL=brand-protection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"brand-protection.d.ts","sourceRoot":"","sources":["../src/resources/brand-protection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;IAUnG;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAM,EAAE,4BAA4B,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CASpG;AAED,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAE7C;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAE3C;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAEhC;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IAEzB;;OAEG;IACH,6BAA6B,CAAC,EAAE,MAAM,CAAC;IAEvC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,yBAAiB,IAAI,CAAC;IACpB,UAAiB,cAAc;QAC7B;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B;CACF;AAED,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IAE1C;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAExC;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;CAC7C;AAED,yBAAiB,MAAM,CAAC;IACtB,UAAiB,WAAW;QAC1B;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,UAAU;QACzB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;IAED,UAAiB,YAAY;QAC3B;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
1
+ {"version":3,"file":"brand-protection.d.ts","sourceRoot":"","sources":["../src/resources/brand-protection.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC"}
@@ -1,43 +1,19 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.BrandProtection = void 0;
5
- const resource_1 = require("../resource.js");
6
- class BrandProtection extends resource_1.APIResource {
7
- /**
8
- * Submit suspicious URL for scanning.
9
- *
10
- * @example
11
- * ```ts
12
- * const submit = await client.brandProtection.submit({
13
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
14
- * });
15
- * ```
16
- */
17
- submit(params, options) {
18
- const { account_id, ...body } = params;
19
- return this._client.post(`/accounts/${account_id}/brand-protection/submit`, {
20
- body,
21
- ...options,
22
- })._thenUnwrap((obj) => obj.result);
23
- }
24
- /**
25
- * Gets phishing details about a URL.
26
- *
27
- * @example
28
- * ```ts
29
- * const info = await client.brandProtection.urlInfo({
30
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
31
- * });
32
- * ```
33
- */
34
- urlInfo(params, options) {
35
- const { account_id, ...query } = params;
36
- return this._client.get(`/accounts/${account_id}/brand-protection/url-info`, {
37
- query,
38
- ...options,
39
- })._thenUnwrap((obj) => obj.result);
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
40
8
  }
41
- }
42
- exports.BrandProtection = BrandProtection;
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./brand-protection/index.js"), exports);
43
19
  //# sourceMappingURL=brand-protection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"brand-protection.js","sourceRoot":"","sources":["../src/resources/brand-protection.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAmC,EAAE,OAA6B;QACvE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,0BAA0B,EAAE;YACnE,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAoC,EAAE,OAA6B;QACzE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,UAAU,4BAA4B,EAAE;YACpE,KAAK;YACL,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AAxCD,0CAwCC"}
1
+ {"version":3,"file":"brand-protection.js","sourceRoot":"","sources":["../src/resources/brand-protection.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,8DAAyC"}
@@ -1,39 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../resource.mjs";
3
- export class BrandProtection extends APIResource {
4
- /**
5
- * Submit suspicious URL for scanning.
6
- *
7
- * @example
8
- * ```ts
9
- * const submit = await client.brandProtection.submit({
10
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
11
- * });
12
- * ```
13
- */
14
- submit(params, options) {
15
- const { account_id, ...body } = params;
16
- return this._client.post(`/accounts/${account_id}/brand-protection/submit`, {
17
- body,
18
- ...options,
19
- })._thenUnwrap((obj) => obj.result);
20
- }
21
- /**
22
- * Gets phishing details about a URL.
23
- *
24
- * @example
25
- * ```ts
26
- * const info = await client.brandProtection.urlInfo({
27
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
28
- * });
29
- * ```
30
- */
31
- urlInfo(params, options) {
32
- const { account_id, ...query } = params;
33
- return this._client.get(`/accounts/${account_id}/brand-protection/url-info`, {
34
- query,
35
- ...options,
36
- })._thenUnwrap((obj) => obj.result);
37
- }
38
- }
2
+ export * from "./brand-protection/index.mjs";
39
3
  //# sourceMappingURL=brand-protection.mjs.map