@businessradar/businessradar 0.1.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 (507) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/LICENSE +201 -0
  3. package/README.md +401 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +193 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +193 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +465 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +461 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/pagination.d.mts +53 -0
  37. package/core/pagination.d.mts.map +1 -0
  38. package/core/pagination.d.ts +53 -0
  39. package/core/pagination.d.ts.map +1 -0
  40. package/core/pagination.js +101 -0
  41. package/core/pagination.js.map +1 -0
  42. package/core/pagination.mjs +95 -0
  43. package/core/pagination.mjs.map +1 -0
  44. package/core/resource.d.mts +6 -0
  45. package/core/resource.d.mts.map +1 -0
  46. package/core/resource.d.ts +6 -0
  47. package/core/resource.d.ts.map +1 -0
  48. package/core/resource.js +11 -0
  49. package/core/resource.js.map +1 -0
  50. package/core/resource.mjs +7 -0
  51. package/core/resource.mjs.map +1 -0
  52. package/core/uploads.d.mts +3 -0
  53. package/core/uploads.d.mts.map +1 -0
  54. package/core/uploads.d.ts +3 -0
  55. package/core/uploads.d.ts.map +1 -0
  56. package/core/uploads.js +6 -0
  57. package/core/uploads.js.map +1 -0
  58. package/core/uploads.mjs +2 -0
  59. package/core/uploads.mjs.map +1 -0
  60. package/error.d.mts +2 -0
  61. package/error.d.mts.map +1 -0
  62. package/error.d.ts +2 -0
  63. package/error.d.ts.map +1 -0
  64. package/error.js +6 -0
  65. package/error.js.map +1 -0
  66. package/error.mjs +2 -0
  67. package/error.mjs.map +1 -0
  68. package/index.d.mts +7 -0
  69. package/index.d.mts.map +1 -0
  70. package/index.d.ts +7 -0
  71. package/index.d.ts.map +1 -0
  72. package/index.js +32 -0
  73. package/index.js.map +1 -0
  74. package/index.mjs +8 -0
  75. package/index.mjs.map +1 -0
  76. package/internal/builtin-types.d.mts +73 -0
  77. package/internal/builtin-types.d.mts.map +1 -0
  78. package/internal/builtin-types.d.ts +73 -0
  79. package/internal/builtin-types.d.ts.map +1 -0
  80. package/internal/builtin-types.js +4 -0
  81. package/internal/builtin-types.js.map +1 -0
  82. package/internal/builtin-types.mjs +3 -0
  83. package/internal/builtin-types.mjs.map +1 -0
  84. package/internal/detect-platform.d.mts +15 -0
  85. package/internal/detect-platform.d.mts.map +1 -0
  86. package/internal/detect-platform.d.ts +15 -0
  87. package/internal/detect-platform.d.ts.map +1 -0
  88. package/internal/detect-platform.js +162 -0
  89. package/internal/detect-platform.js.map +1 -0
  90. package/internal/detect-platform.mjs +157 -0
  91. package/internal/detect-platform.mjs.map +1 -0
  92. package/internal/errors.d.mts +3 -0
  93. package/internal/errors.d.mts.map +1 -0
  94. package/internal/errors.d.ts +3 -0
  95. package/internal/errors.d.ts.map +1 -0
  96. package/internal/errors.js +41 -0
  97. package/internal/errors.js.map +1 -0
  98. package/internal/errors.mjs +36 -0
  99. package/internal/errors.mjs.map +1 -0
  100. package/internal/headers.d.mts +20 -0
  101. package/internal/headers.d.mts.map +1 -0
  102. package/internal/headers.d.ts +20 -0
  103. package/internal/headers.d.ts.map +1 -0
  104. package/internal/headers.js +79 -0
  105. package/internal/headers.js.map +1 -0
  106. package/internal/headers.mjs +74 -0
  107. package/internal/headers.mjs.map +1 -0
  108. package/internal/parse.d.mts +12 -0
  109. package/internal/parse.d.mts.map +1 -0
  110. package/internal/parse.d.ts +12 -0
  111. package/internal/parse.d.ts.map +1 -0
  112. package/internal/parse.js +35 -0
  113. package/internal/parse.js.map +1 -0
  114. package/internal/parse.mjs +32 -0
  115. package/internal/parse.mjs.map +1 -0
  116. package/internal/qs/formats.d.mts +7 -0
  117. package/internal/qs/formats.d.mts.map +1 -0
  118. package/internal/qs/formats.d.ts +7 -0
  119. package/internal/qs/formats.d.ts.map +1 -0
  120. package/internal/qs/formats.js +13 -0
  121. package/internal/qs/formats.js.map +1 -0
  122. package/internal/qs/formats.mjs +9 -0
  123. package/internal/qs/formats.mjs.map +1 -0
  124. package/internal/qs/index.d.mts +10 -0
  125. package/internal/qs/index.d.mts.map +1 -0
  126. package/internal/qs/index.d.ts +10 -0
  127. package/internal/qs/index.d.ts.map +1 -0
  128. package/internal/qs/index.js +14 -0
  129. package/internal/qs/index.js.map +1 -0
  130. package/internal/qs/index.mjs +10 -0
  131. package/internal/qs/index.mjs.map +1 -0
  132. package/internal/qs/stringify.d.mts +3 -0
  133. package/internal/qs/stringify.d.mts.map +1 -0
  134. package/internal/qs/stringify.d.ts +3 -0
  135. package/internal/qs/stringify.d.ts.map +1 -0
  136. package/internal/qs/stringify.js +277 -0
  137. package/internal/qs/stringify.js.map +1 -0
  138. package/internal/qs/stringify.mjs +274 -0
  139. package/internal/qs/stringify.mjs.map +1 -0
  140. package/internal/qs/types.d.mts +57 -0
  141. package/internal/qs/types.d.mts.map +1 -0
  142. package/internal/qs/types.d.ts +57 -0
  143. package/internal/qs/types.d.ts.map +1 -0
  144. package/internal/qs/types.js +3 -0
  145. package/internal/qs/types.js.map +1 -0
  146. package/internal/qs/types.mjs +2 -0
  147. package/internal/qs/types.mjs.map +1 -0
  148. package/internal/qs/utils.d.mts +15 -0
  149. package/internal/qs/utils.d.mts.map +1 -0
  150. package/internal/qs/utils.d.ts +15 -0
  151. package/internal/qs/utils.d.ts.map +1 -0
  152. package/internal/qs/utils.js +230 -0
  153. package/internal/qs/utils.js.map +1 -0
  154. package/internal/qs/utils.mjs +217 -0
  155. package/internal/qs/utils.mjs.map +1 -0
  156. package/internal/request-options.d.mts +75 -0
  157. package/internal/request-options.d.mts.map +1 -0
  158. package/internal/request-options.d.ts +75 -0
  159. package/internal/request-options.d.ts.map +1 -0
  160. package/internal/request-options.js +14 -0
  161. package/internal/request-options.js.map +1 -0
  162. package/internal/request-options.mjs +10 -0
  163. package/internal/request-options.mjs.map +1 -0
  164. package/internal/shim-types.d.mts +17 -0
  165. package/internal/shim-types.d.mts.map +1 -0
  166. package/internal/shim-types.d.ts +17 -0
  167. package/internal/shim-types.d.ts.map +1 -0
  168. package/internal/shim-types.js +4 -0
  169. package/internal/shim-types.js.map +1 -0
  170. package/internal/shim-types.mjs +3 -0
  171. package/internal/shim-types.mjs.map +1 -0
  172. package/internal/shims.d.mts +20 -0
  173. package/internal/shims.d.mts.map +1 -0
  174. package/internal/shims.d.ts +20 -0
  175. package/internal/shims.d.ts.map +1 -0
  176. package/internal/shims.js +92 -0
  177. package/internal/shims.js.map +1 -0
  178. package/internal/shims.mjs +85 -0
  179. package/internal/shims.mjs.map +1 -0
  180. package/internal/to-file.d.mts +45 -0
  181. package/internal/to-file.d.mts.map +1 -0
  182. package/internal/to-file.d.ts +45 -0
  183. package/internal/to-file.d.ts.map +1 -0
  184. package/internal/to-file.js +91 -0
  185. package/internal/to-file.js.map +1 -0
  186. package/internal/to-file.mjs +88 -0
  187. package/internal/to-file.mjs.map +1 -0
  188. package/internal/tslib.js +81 -0
  189. package/internal/tslib.mjs +17 -0
  190. package/internal/types.d.mts +69 -0
  191. package/internal/types.d.mts.map +1 -0
  192. package/internal/types.d.ts +69 -0
  193. package/internal/types.d.ts.map +1 -0
  194. package/internal/types.js +4 -0
  195. package/internal/types.js.map +1 -0
  196. package/internal/types.mjs +3 -0
  197. package/internal/types.mjs.map +1 -0
  198. package/internal/uploads.d.mts +42 -0
  199. package/internal/uploads.d.mts.map +1 -0
  200. package/internal/uploads.d.ts +42 -0
  201. package/internal/uploads.d.ts.map +1 -0
  202. package/internal/uploads.js +141 -0
  203. package/internal/uploads.js.map +1 -0
  204. package/internal/uploads.mjs +131 -0
  205. package/internal/uploads.mjs.map +1 -0
  206. package/internal/utils/base64.d.mts +3 -0
  207. package/internal/utils/base64.d.mts.map +1 -0
  208. package/internal/utils/base64.d.ts +3 -0
  209. package/internal/utils/base64.d.ts.map +1 -0
  210. package/internal/utils/base64.js +38 -0
  211. package/internal/utils/base64.js.map +1 -0
  212. package/internal/utils/base64.mjs +33 -0
  213. package/internal/utils/base64.mjs.map +1 -0
  214. package/internal/utils/bytes.d.mts +4 -0
  215. package/internal/utils/bytes.d.mts.map +1 -0
  216. package/internal/utils/bytes.d.ts +4 -0
  217. package/internal/utils/bytes.d.ts.map +1 -0
  218. package/internal/utils/bytes.js +31 -0
  219. package/internal/utils/bytes.js.map +1 -0
  220. package/internal/utils/bytes.mjs +26 -0
  221. package/internal/utils/bytes.mjs.map +1 -0
  222. package/internal/utils/env.d.mts +9 -0
  223. package/internal/utils/env.d.mts.map +1 -0
  224. package/internal/utils/env.d.ts +9 -0
  225. package/internal/utils/env.d.ts.map +1 -0
  226. package/internal/utils/env.js +22 -0
  227. package/internal/utils/env.js.map +1 -0
  228. package/internal/utils/env.mjs +18 -0
  229. package/internal/utils/env.mjs.map +1 -0
  230. package/internal/utils/log.d.mts +37 -0
  231. package/internal/utils/log.d.mts.map +1 -0
  232. package/internal/utils/log.d.ts +37 -0
  233. package/internal/utils/log.d.ts.map +1 -0
  234. package/internal/utils/log.js +85 -0
  235. package/internal/utils/log.js.map +1 -0
  236. package/internal/utils/log.mjs +79 -0
  237. package/internal/utils/log.mjs.map +1 -0
  238. package/internal/utils/path.d.mts +15 -0
  239. package/internal/utils/path.d.mts.map +1 -0
  240. package/internal/utils/path.d.ts +15 -0
  241. package/internal/utils/path.d.ts.map +1 -0
  242. package/internal/utils/path.js +79 -0
  243. package/internal/utils/path.js.map +1 -0
  244. package/internal/utils/path.mjs +74 -0
  245. package/internal/utils/path.mjs.map +1 -0
  246. package/internal/utils/sleep.d.mts +2 -0
  247. package/internal/utils/sleep.d.mts.map +1 -0
  248. package/internal/utils/sleep.d.ts +2 -0
  249. package/internal/utils/sleep.d.ts.map +1 -0
  250. package/internal/utils/sleep.js +7 -0
  251. package/internal/utils/sleep.js.map +1 -0
  252. package/internal/utils/sleep.mjs +3 -0
  253. package/internal/utils/sleep.mjs.map +1 -0
  254. package/internal/utils/uuid.d.mts +5 -0
  255. package/internal/utils/uuid.d.mts.map +1 -0
  256. package/internal/utils/uuid.d.ts +5 -0
  257. package/internal/utils/uuid.d.ts.map +1 -0
  258. package/internal/utils/uuid.js +19 -0
  259. package/internal/utils/uuid.js.map +1 -0
  260. package/internal/utils/uuid.mjs +15 -0
  261. package/internal/utils/uuid.mjs.map +1 -0
  262. package/internal/utils/values.d.mts +18 -0
  263. package/internal/utils/values.d.mts.map +1 -0
  264. package/internal/utils/values.d.ts +18 -0
  265. package/internal/utils/values.d.ts.map +1 -0
  266. package/internal/utils/values.js +112 -0
  267. package/internal/utils/values.js.map +1 -0
  268. package/internal/utils/values.mjs +94 -0
  269. package/internal/utils/values.mjs.map +1 -0
  270. package/internal/utils.d.mts +7 -0
  271. package/internal/utils.d.mts.map +1 -0
  272. package/internal/utils.d.ts +7 -0
  273. package/internal/utils.d.ts.map +1 -0
  274. package/internal/utils.js +11 -0
  275. package/internal/utils.js.map +1 -0
  276. package/internal/utils.mjs +8 -0
  277. package/internal/utils.mjs.map +1 -0
  278. package/package.json +147 -0
  279. package/pagination.d.mts +2 -0
  280. package/pagination.d.mts.map +1 -0
  281. package/pagination.d.ts +2 -0
  282. package/pagination.d.ts.map +1 -0
  283. package/pagination.js +6 -0
  284. package/pagination.js.map +1 -0
  285. package/pagination.mjs +2 -0
  286. package/pagination.mjs.map +1 -0
  287. package/resource.d.mts +2 -0
  288. package/resource.d.mts.map +1 -0
  289. package/resource.d.ts +2 -0
  290. package/resource.d.ts.map +1 -0
  291. package/resource.js +6 -0
  292. package/resource.js.map +1 -0
  293. package/resource.mjs +2 -0
  294. package/resource.mjs.map +1 -0
  295. package/resources/companies.d.mts +1051 -0
  296. package/resources/companies.d.mts.map +1 -0
  297. package/resources/companies.d.ts +1051 -0
  298. package/resources/companies.d.ts.map +1 -0
  299. package/resources/companies.js +47 -0
  300. package/resources/companies.js.map +1 -0
  301. package/resources/companies.mjs +43 -0
  302. package/resources/companies.mjs.map +1 -0
  303. package/resources/compliance.d.mts +156 -0
  304. package/resources/compliance.d.mts.map +1 -0
  305. package/resources/compliance.d.ts +156 -0
  306. package/resources/compliance.d.ts.map +1 -0
  307. package/resources/compliance.js +22 -0
  308. package/resources/compliance.js.map +1 -0
  309. package/resources/compliance.mjs +18 -0
  310. package/resources/compliance.mjs.map +1 -0
  311. package/resources/index.d.mts +6 -0
  312. package/resources/index.d.mts.map +1 -0
  313. package/resources/index.d.ts +6 -0
  314. package/resources/index.d.ts.map +1 -0
  315. package/resources/index.js +15 -0
  316. package/resources/index.js.map +1 -0
  317. package/resources/index.mjs +7 -0
  318. package/resources/index.mjs.map +1 -0
  319. package/resources/news/articles/analytics.d.mts +101 -0
  320. package/resources/news/articles/analytics.d.mts.map +1 -0
  321. package/resources/news/articles/analytics.d.ts +101 -0
  322. package/resources/news/articles/analytics.d.ts.map +1 -0
  323. package/resources/news/articles/analytics.js +15 -0
  324. package/resources/news/articles/analytics.js.map +1 -0
  325. package/resources/news/articles/analytics.mjs +11 -0
  326. package/resources/news/articles/analytics.mjs.map +1 -0
  327. package/resources/news/articles/articles.d.mts +697 -0
  328. package/resources/news/articles/articles.d.mts.map +1 -0
  329. package/resources/news/articles/articles.d.ts +697 -0
  330. package/resources/news/articles/articles.d.ts.map +1 -0
  331. package/resources/news/articles/articles.js +50 -0
  332. package/resources/news/articles/articles.js.map +1 -0
  333. package/resources/news/articles/articles.mjs +45 -0
  334. package/resources/news/articles/articles.mjs.map +1 -0
  335. package/resources/news/articles/export.d.mts +139 -0
  336. package/resources/news/articles/export.d.mts.map +1 -0
  337. package/resources/news/articles/export.d.ts +139 -0
  338. package/resources/news/articles/export.d.ts.map +1 -0
  339. package/resources/news/articles/export.js +28 -0
  340. package/resources/news/articles/export.js.map +1 -0
  341. package/resources/news/articles/export.mjs +24 -0
  342. package/resources/news/articles/export.mjs.map +1 -0
  343. package/resources/news/articles/index.d.mts +4 -0
  344. package/resources/news/articles/index.d.mts.map +1 -0
  345. package/resources/news/articles/index.d.ts +4 -0
  346. package/resources/news/articles/index.d.ts.map +1 -0
  347. package/resources/news/articles/index.js +11 -0
  348. package/resources/news/articles/index.js.map +1 -0
  349. package/resources/news/articles/index.mjs +5 -0
  350. package/resources/news/articles/index.mjs.map +1 -0
  351. package/resources/news/articles.d.mts +2 -0
  352. package/resources/news/articles.d.mts.map +1 -0
  353. package/resources/news/articles.d.ts +2 -0
  354. package/resources/news/articles.d.ts.map +1 -0
  355. package/resources/news/articles.js +6 -0
  356. package/resources/news/articles.js.map +1 -0
  357. package/resources/news/articles.mjs +3 -0
  358. package/resources/news/articles.mjs.map +1 -0
  359. package/resources/news/index.d.mts +3 -0
  360. package/resources/news/index.d.mts.map +1 -0
  361. package/resources/news/index.d.ts +3 -0
  362. package/resources/news/index.d.ts.map +1 -0
  363. package/resources/news/index.js +9 -0
  364. package/resources/news/index.js.map +1 -0
  365. package/resources/news/index.mjs +4 -0
  366. package/resources/news/index.mjs.map +1 -0
  367. package/resources/news/news.d.mts +10 -0
  368. package/resources/news/news.d.mts.map +1 -0
  369. package/resources/news/news.d.ts +10 -0
  370. package/resources/news/news.d.ts.map +1 -0
  371. package/resources/news/news.js +17 -0
  372. package/resources/news/news.js.map +1 -0
  373. package/resources/news/news.mjs +12 -0
  374. package/resources/news/news.mjs.map +1 -0
  375. package/resources/news.d.mts +2 -0
  376. package/resources/news.d.mts.map +1 -0
  377. package/resources/news.d.ts +2 -0
  378. package/resources/news.d.ts.map +1 -0
  379. package/resources/news.js +6 -0
  380. package/resources/news.js.map +1 -0
  381. package/resources/news.mjs +3 -0
  382. package/resources/news.mjs.map +1 -0
  383. package/resources/portfolios/companies.d.mts +367 -0
  384. package/resources/portfolios/companies.d.mts.map +1 -0
  385. package/resources/portfolios/companies.d.ts +367 -0
  386. package/resources/portfolios/companies.d.ts.map +1 -0
  387. package/resources/portfolios/companies.js +34 -0
  388. package/resources/portfolios/companies.js.map +1 -0
  389. package/resources/portfolios/companies.mjs +30 -0
  390. package/resources/portfolios/companies.mjs.map +1 -0
  391. package/resources/portfolios/index.d.mts +3 -0
  392. package/resources/portfolios/index.d.mts.map +1 -0
  393. package/resources/portfolios/index.d.ts +3 -0
  394. package/resources/portfolios/index.d.ts.map +1 -0
  395. package/resources/portfolios/index.js +9 -0
  396. package/resources/portfolios/index.js.map +1 -0
  397. package/resources/portfolios/index.mjs +4 -0
  398. package/resources/portfolios/index.mjs.map +1 -0
  399. package/resources/portfolios/portfolios.d.mts +68 -0
  400. package/resources/portfolios/portfolios.d.mts.map +1 -0
  401. package/resources/portfolios/portfolios.d.ts +68 -0
  402. package/resources/portfolios/portfolios.d.ts.map +1 -0
  403. package/resources/portfolios/portfolios.js +30 -0
  404. package/resources/portfolios/portfolios.js.map +1 -0
  405. package/resources/portfolios/portfolios.mjs +25 -0
  406. package/resources/portfolios/portfolios.mjs.map +1 -0
  407. package/resources/portfolios.d.mts +2 -0
  408. package/resources/portfolios.d.mts.map +1 -0
  409. package/resources/portfolios.d.ts +2 -0
  410. package/resources/portfolios.d.ts.map +1 -0
  411. package/resources/portfolios.js +6 -0
  412. package/resources/portfolios.js.map +1 -0
  413. package/resources/portfolios.mjs +3 -0
  414. package/resources/portfolios.mjs.map +1 -0
  415. package/resources/shared.d.mts +9 -0
  416. package/resources/shared.d.mts.map +1 -0
  417. package/resources/shared.d.ts +9 -0
  418. package/resources/shared.d.ts.map +1 -0
  419. package/resources/shared.js +4 -0
  420. package/resources/shared.js.map +1 -0
  421. package/resources/shared.mjs +3 -0
  422. package/resources/shared.mjs.map +1 -0
  423. package/resources.d.mts +2 -0
  424. package/resources.d.mts.map +1 -0
  425. package/resources.d.ts +2 -0
  426. package/resources.d.ts.map +1 -0
  427. package/resources.js +5 -0
  428. package/resources.js.map +1 -0
  429. package/resources.mjs +2 -0
  430. package/resources.mjs.map +1 -0
  431. package/src/api-promise.ts +2 -0
  432. package/src/client.ts +808 -0
  433. package/src/core/README.md +3 -0
  434. package/src/core/api-promise.ts +92 -0
  435. package/src/core/error.ts +130 -0
  436. package/src/core/pagination.ts +155 -0
  437. package/src/core/resource.ts +11 -0
  438. package/src/core/uploads.ts +2 -0
  439. package/src/error.ts +2 -0
  440. package/src/index.ts +23 -0
  441. package/src/internal/README.md +3 -0
  442. package/src/internal/builtin-types.ts +93 -0
  443. package/src/internal/detect-platform.ts +196 -0
  444. package/src/internal/errors.ts +33 -0
  445. package/src/internal/headers.ts +97 -0
  446. package/src/internal/parse.ts +50 -0
  447. package/src/internal/qs/LICENSE.md +13 -0
  448. package/src/internal/qs/README.md +3 -0
  449. package/src/internal/qs/formats.ts +10 -0
  450. package/src/internal/qs/index.ts +13 -0
  451. package/src/internal/qs/stringify.ts +385 -0
  452. package/src/internal/qs/types.ts +71 -0
  453. package/src/internal/qs/utils.ts +265 -0
  454. package/src/internal/request-options.ts +91 -0
  455. package/src/internal/shim-types.ts +26 -0
  456. package/src/internal/shims.ts +107 -0
  457. package/src/internal/to-file.ts +154 -0
  458. package/src/internal/types.ts +95 -0
  459. package/src/internal/uploads.ts +187 -0
  460. package/src/internal/utils/base64.ts +40 -0
  461. package/src/internal/utils/bytes.ts +32 -0
  462. package/src/internal/utils/env.ts +18 -0
  463. package/src/internal/utils/log.ts +126 -0
  464. package/src/internal/utils/path.ts +88 -0
  465. package/src/internal/utils/sleep.ts +3 -0
  466. package/src/internal/utils/uuid.ts +17 -0
  467. package/src/internal/utils/values.ts +105 -0
  468. package/src/internal/utils.ts +8 -0
  469. package/src/lib/.keep +4 -0
  470. package/src/pagination.ts +2 -0
  471. package/src/resource.ts +2 -0
  472. package/src/resources/companies.ts +2211 -0
  473. package/src/resources/compliance.ts +568 -0
  474. package/src/resources/index.ts +35 -0
  475. package/src/resources/news/articles/analytics.ts +136 -0
  476. package/src/resources/news/articles/articles.ts +1171 -0
  477. package/src/resources/news/articles/export.ts +206 -0
  478. package/src/resources/news/articles/index.ts +29 -0
  479. package/src/resources/news/articles.ts +3 -0
  480. package/src/resources/news/index.ts +18 -0
  481. package/src/resources/news/news.ts +43 -0
  482. package/src/resources/news.ts +3 -0
  483. package/src/resources/portfolios/companies.ts +689 -0
  484. package/src/resources/portfolios/index.ts +18 -0
  485. package/src/resources/portfolios/portfolios.ts +112 -0
  486. package/src/resources/portfolios.ts +3 -0
  487. package/src/resources/shared.ts +10 -0
  488. package/src/resources.ts +1 -0
  489. package/src/tsconfig.json +11 -0
  490. package/src/uploads.ts +2 -0
  491. package/src/version.ts +1 -0
  492. package/uploads.d.mts +2 -0
  493. package/uploads.d.mts.map +1 -0
  494. package/uploads.d.ts +2 -0
  495. package/uploads.d.ts.map +1 -0
  496. package/uploads.js +6 -0
  497. package/uploads.js.map +1 -0
  498. package/uploads.mjs +2 -0
  499. package/uploads.mjs.map +1 -0
  500. package/version.d.mts +2 -0
  501. package/version.d.mts.map +1 -0
  502. package/version.d.ts +2 -0
  503. package/version.d.ts.map +1 -0
  504. package/version.js +5 -0
  505. package/version.js.map +1 -0
  506. package/version.mjs +2 -0
  507. package/version.mjs.map +1 -0
@@ -0,0 +1 @@
1
+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AAI,CAAC;CACrC;AAED,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iCAAkC,SAAQ,aAAa;IACtE;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2CAA2C,IAAI,2CAA2C,EAC/F,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
@@ -0,0 +1,47 @@
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.Companies = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
7
+ const path_1 = require("../internal/utils/path.js");
8
+ class Companies extends resource_1.APIResource {
9
+ /**
10
+ * Register new Company to Business Radar.
11
+ */
12
+ create(body = {}, options) {
13
+ return this._client.post('/ext/v3/companies', { body, ...options });
14
+ }
15
+ /**
16
+ * Get Company Information.
17
+ */
18
+ retrieve(externalID, options) {
19
+ return this._client.get((0, path_1.path) `/ext/v3/companies/${externalID}`, options);
20
+ }
21
+ /**
22
+ * Search all companies using Dun and Bradstreet.
23
+ *
24
+ * Companies will contain an optional external_id, which is null if company is not
25
+ * registered in Business Radar.
26
+ *
27
+ * When you pass query and optional country it will search using dun and
28
+ * bradstreet, otherwise using internal search.
29
+ */
30
+ list(query = {}, options) {
31
+ return this._client.getAPIList('/ext/v3/companies', (pagination_1.NextKey), { query, ...options });
32
+ }
33
+ /**
34
+ * List Company Updates.
35
+ */
36
+ listAttributeChanges(query = {}, options) {
37
+ return this._client.getAPIList('/ext/v3/companies/attribute_changes', (pagination_1.NextKey), { query, ...options });
38
+ }
39
+ /**
40
+ * Get Registration Information.
41
+ */
42
+ retrieveRegistration(registrationID, options) {
43
+ return this._client.get((0, path_1.path) `/ext/v3/registrations/${registrationID}`, options);
44
+ }
45
+ }
46
+ exports.Companies = Companies;
47
+ //# sourceMappingURL=companies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companies.js","sourceRoot":"","sources":["../src/resources/companies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAA8E;AAE9E,oDAA8C;AAE9C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,MAAM,CACJ,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,oBAA4B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;OAEG;IACH,oBAAoB,CAClB,QAA8D,EAAE,EAChE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,qCAAqC,EACrC,CAAA,oBAA4C,CAAA,EAC5C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,oBAAoB,CAAC,cAAsB,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AAtDD,8BAsDC"}
@@ -0,0 +1,43 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { NextKey } from "../core/pagination.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
+ export class Companies extends APIResource {
6
+ /**
7
+ * Register new Company to Business Radar.
8
+ */
9
+ create(body = {}, options) {
10
+ return this._client.post('/ext/v3/companies', { body, ...options });
11
+ }
12
+ /**
13
+ * Get Company Information.
14
+ */
15
+ retrieve(externalID, options) {
16
+ return this._client.get(path `/ext/v3/companies/${externalID}`, options);
17
+ }
18
+ /**
19
+ * Search all companies using Dun and Bradstreet.
20
+ *
21
+ * Companies will contain an optional external_id, which is null if company is not
22
+ * registered in Business Radar.
23
+ *
24
+ * When you pass query and optional country it will search using dun and
25
+ * bradstreet, otherwise using internal search.
26
+ */
27
+ list(query = {}, options) {
28
+ return this._client.getAPIList('/ext/v3/companies', (NextKey), { query, ...options });
29
+ }
30
+ /**
31
+ * List Company Updates.
32
+ */
33
+ listAttributeChanges(query = {}, options) {
34
+ return this._client.getAPIList('/ext/v3/companies/attribute_changes', (NextKey), { query, ...options });
35
+ }
36
+ /**
37
+ * Get Registration Information.
38
+ */
39
+ retrieveRegistration(registrationID, options) {
40
+ return this._client.get(path `/ext/v3/registrations/${registrationID}`, options);
41
+ }
42
+ }
43
+ //# sourceMappingURL=companies.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companies.mjs","sourceRoot":"","sources":["../src/resources/companies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,OAAO,EAAmC;OAE5C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,MAAM,CACJ,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,OAA4B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;OAEG;IACH,oBAAoB,CAClB,QAA8D,EAAE,EAChE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,qCAAqC,EACrC,CAAA,OAA4C,CAAA,EAC5C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,oBAAoB,CAAC,cAAsB,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF"}
@@ -0,0 +1,156 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class Compliance extends APIResource {
5
+ /**
6
+ * Create a new compliance check.
7
+ */
8
+ create(body: ComplianceCreateParams, options?: RequestOptions): APIPromise<ComplianceCreateResponse>;
9
+ /**
10
+ * Get compliance check results.
11
+ */
12
+ retrieve(externalID: string, options?: RequestOptions): APIPromise<ComplianceRetrieveResponse>;
13
+ }
14
+ /**
15
+ * - `low` - Low
16
+ * - `medium` - Medium
17
+ * - `high` - High
18
+ */
19
+ export type ComplianceCheckScoreEnum = 'low' | 'medium' | 'high';
20
+ /**
21
+ * Compliance check create serializer.
22
+ */
23
+ export interface ComplianceCreateResponse {
24
+ external_id: string;
25
+ }
26
+ export interface ComplianceRetrieveResponse {
27
+ entities: Array<ComplianceRetrieveResponse.Entity>;
28
+ external_id: string;
29
+ progress: number;
30
+ activity_score?: 'low' | 'medium' | 'high' | '' | null;
31
+ adverse_media_score?: 'low' | 'medium' | 'high' | '' | null;
32
+ compliance_score?: 'low' | 'medium' | 'high' | '' | null;
33
+ country_score?: 'low' | 'medium' | 'high' | '' | null;
34
+ pep_score?: 'low' | 'medium' | 'high' | '' | null;
35
+ sanction_score?: 'low' | 'medium' | 'high' | '' | null;
36
+ /**
37
+ * - `pending` - Pending
38
+ * - `queued` - Queued
39
+ * - `in_progress` - In Progress
40
+ * - `searching_directors` - Searching Directors
41
+ * - `completed` - Completed
42
+ * - `failed` - Failed
43
+ */
44
+ status?: 'pending' | 'queued' | 'in_progress' | 'searching_directors' | 'completed' | 'failed';
45
+ }
46
+ export declare namespace ComplianceRetrieveResponse {
47
+ interface Entity {
48
+ /**
49
+ * - `ubo` - Ultimate Beneficial Owner
50
+ * - `director` - Director
51
+ * - `company` - Company
52
+ * - `manually_added` - Manually added
53
+ */
54
+ entity_role: 'ubo' | 'director' | 'company' | 'manually_added';
55
+ /**
56
+ * - `individual` - Individual
57
+ * - `company` - Company
58
+ */
59
+ entity_type: 'individual' | 'company';
60
+ external_id: string;
61
+ name: string;
62
+ results: Array<Entity.Result>;
63
+ ubo: Entity.Ubo | null;
64
+ country?: string | null;
65
+ }
66
+ namespace Entity {
67
+ /**
68
+ * Compliance entity result serializer.
69
+ */
70
+ interface Result {
71
+ addresses: Array<Result.Address>;
72
+ created_at: string;
73
+ external_id: string;
74
+ name: string;
75
+ /**
76
+ * - `sanction` - Sanction
77
+ * - `pep` - Politically Exposed Person
78
+ * - `adverse_media` - Adverse media
79
+ * - `enforcement` - Enforcement
80
+ * - `govt_owned` - Government owned
81
+ */
82
+ result_type: 'sanction' | 'pep' | 'adverse_media' | 'enforcement' | 'govt_owned';
83
+ sources: Array<Result.Source>;
84
+ tags: Array<Result.Tag>;
85
+ confidence?: number | null;
86
+ formatted_text?: string | null;
87
+ formatted_text_en?: string | null;
88
+ formatted_title?: string | null;
89
+ formatted_title_en?: string | null;
90
+ image?: string | null;
91
+ language?: 'af' | 'ar' | 'az' | 'bg' | 'be' | 'bn' | 'br' | 'bs' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'el' | 'en' | 'eo' | 'es' | 'et' | 'eu' | 'fa' | 'fi' | 'fr' | 'fy' | 'ga' | 'gd' | 'gl' | 'he' | 'hi' | 'hr' | 'hu' | 'hy' | 'ia' | 'id' | 'ig' | 'io' | 'is' | 'it' | 'ja' | 'ka' | 'kk' | 'km' | 'no' | 'kn' | 'ko' | 'ky' | 'lb' | 'lt' | 'lv' | 'mk' | 'ml' | 'mn' | 'mr' | 'my' | 'ne' | 'nl' | 'os' | 'pa' | 'pl' | 'pt' | 'ro' | 'ru' | 'sk' | 'sl' | 'sq' | 'sr' | 'sv' | 'sw' | 'ta' | 'te' | 'tg' | 'th' | 'tk' | 'tr' | 'tt' | 'uk' | 'ur' | 'uz' | 'vi' | 'zh' | '' | null;
92
+ source_date?: string | null;
93
+ source_name?: string | null;
94
+ text?: string | null;
95
+ text_en?: string | null;
96
+ title?: string | null;
97
+ title_en?: string | null;
98
+ url?: string | null;
99
+ }
100
+ namespace Result {
101
+ /**
102
+ * Compliance entity result address serializer.
103
+ */
104
+ interface Address {
105
+ city?: string | null;
106
+ country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
107
+ postal_code?: string | null;
108
+ street?: string | null;
109
+ }
110
+ /**
111
+ * Compliance entity result source serializer.
112
+ */
113
+ interface Source {
114
+ url: string;
115
+ description?: string | null;
116
+ document?: string | null;
117
+ domain?: string | null;
118
+ publication_date?: string | null;
119
+ title?: string | null;
120
+ }
121
+ /**
122
+ * Compliance entity result tag serializer.
123
+ */
124
+ interface Tag {
125
+ tag: string;
126
+ }
127
+ }
128
+ interface Ubo {
129
+ name: string;
130
+ beneficial_ownership_percentage?: number | null;
131
+ birth_date?: string | null;
132
+ degree_of_separation?: number | null;
133
+ direct_ownership_percentage?: number | null;
134
+ implied_beneficial_ownership_percentage?: number | null;
135
+ implied_direct_ownership_percentage?: number | null;
136
+ implied_indirect_ownership_percentage?: number | null;
137
+ indirect_ownership_percentage?: number | null;
138
+ is_beneficiary?: boolean | null;
139
+ is_person_with_significant_control?: boolean | null;
140
+ }
141
+ }
142
+ }
143
+ export interface ComplianceCreateParams {
144
+ company_id: string;
145
+ /**
146
+ * If enabled all found entities UBOs, directors, shareholders will be screened.
147
+ * This can have an high cost impact.
148
+ */
149
+ all_entities_screening_enabled?: boolean;
150
+ directors_screening_enabled?: boolean;
151
+ ownership_screening_threshold?: number;
152
+ }
153
+ export declare namespace Compliance {
154
+ export { type ComplianceCheckScoreEnum as ComplianceCheckScoreEnum, type ComplianceCreateResponse as ComplianceCreateResponse, type ComplianceRetrieveResponse as ComplianceRetrieveResponse, type ComplianceCreateParams as ComplianceCreateParams, };
155
+ }
156
+ //# sourceMappingURL=compliance.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compliance.d.mts","sourceRoot":"","sources":["../src/resources/compliance.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpG;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAG/F;AAED;;;;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AAC;YAExD,mCAAmC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEpD,qCAAqC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEtD,6BAA6B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE9C,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;YAEhC,kCAAkC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;SACrD;KACF;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAEzC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IAEtC,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,156 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class Compliance extends APIResource {
5
+ /**
6
+ * Create a new compliance check.
7
+ */
8
+ create(body: ComplianceCreateParams, options?: RequestOptions): APIPromise<ComplianceCreateResponse>;
9
+ /**
10
+ * Get compliance check results.
11
+ */
12
+ retrieve(externalID: string, options?: RequestOptions): APIPromise<ComplianceRetrieveResponse>;
13
+ }
14
+ /**
15
+ * - `low` - Low
16
+ * - `medium` - Medium
17
+ * - `high` - High
18
+ */
19
+ export type ComplianceCheckScoreEnum = 'low' | 'medium' | 'high';
20
+ /**
21
+ * Compliance check create serializer.
22
+ */
23
+ export interface ComplianceCreateResponse {
24
+ external_id: string;
25
+ }
26
+ export interface ComplianceRetrieveResponse {
27
+ entities: Array<ComplianceRetrieveResponse.Entity>;
28
+ external_id: string;
29
+ progress: number;
30
+ activity_score?: 'low' | 'medium' | 'high' | '' | null;
31
+ adverse_media_score?: 'low' | 'medium' | 'high' | '' | null;
32
+ compliance_score?: 'low' | 'medium' | 'high' | '' | null;
33
+ country_score?: 'low' | 'medium' | 'high' | '' | null;
34
+ pep_score?: 'low' | 'medium' | 'high' | '' | null;
35
+ sanction_score?: 'low' | 'medium' | 'high' | '' | null;
36
+ /**
37
+ * - `pending` - Pending
38
+ * - `queued` - Queued
39
+ * - `in_progress` - In Progress
40
+ * - `searching_directors` - Searching Directors
41
+ * - `completed` - Completed
42
+ * - `failed` - Failed
43
+ */
44
+ status?: 'pending' | 'queued' | 'in_progress' | 'searching_directors' | 'completed' | 'failed';
45
+ }
46
+ export declare namespace ComplianceRetrieveResponse {
47
+ interface Entity {
48
+ /**
49
+ * - `ubo` - Ultimate Beneficial Owner
50
+ * - `director` - Director
51
+ * - `company` - Company
52
+ * - `manually_added` - Manually added
53
+ */
54
+ entity_role: 'ubo' | 'director' | 'company' | 'manually_added';
55
+ /**
56
+ * - `individual` - Individual
57
+ * - `company` - Company
58
+ */
59
+ entity_type: 'individual' | 'company';
60
+ external_id: string;
61
+ name: string;
62
+ results: Array<Entity.Result>;
63
+ ubo: Entity.Ubo | null;
64
+ country?: string | null;
65
+ }
66
+ namespace Entity {
67
+ /**
68
+ * Compliance entity result serializer.
69
+ */
70
+ interface Result {
71
+ addresses: Array<Result.Address>;
72
+ created_at: string;
73
+ external_id: string;
74
+ name: string;
75
+ /**
76
+ * - `sanction` - Sanction
77
+ * - `pep` - Politically Exposed Person
78
+ * - `adverse_media` - Adverse media
79
+ * - `enforcement` - Enforcement
80
+ * - `govt_owned` - Government owned
81
+ */
82
+ result_type: 'sanction' | 'pep' | 'adverse_media' | 'enforcement' | 'govt_owned';
83
+ sources: Array<Result.Source>;
84
+ tags: Array<Result.Tag>;
85
+ confidence?: number | null;
86
+ formatted_text?: string | null;
87
+ formatted_text_en?: string | null;
88
+ formatted_title?: string | null;
89
+ formatted_title_en?: string | null;
90
+ image?: string | null;
91
+ language?: 'af' | 'ar' | 'az' | 'bg' | 'be' | 'bn' | 'br' | 'bs' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'el' | 'en' | 'eo' | 'es' | 'et' | 'eu' | 'fa' | 'fi' | 'fr' | 'fy' | 'ga' | 'gd' | 'gl' | 'he' | 'hi' | 'hr' | 'hu' | 'hy' | 'ia' | 'id' | 'ig' | 'io' | 'is' | 'it' | 'ja' | 'ka' | 'kk' | 'km' | 'no' | 'kn' | 'ko' | 'ky' | 'lb' | 'lt' | 'lv' | 'mk' | 'ml' | 'mn' | 'mr' | 'my' | 'ne' | 'nl' | 'os' | 'pa' | 'pl' | 'pt' | 'ro' | 'ru' | 'sk' | 'sl' | 'sq' | 'sr' | 'sv' | 'sw' | 'ta' | 'te' | 'tg' | 'th' | 'tk' | 'tr' | 'tt' | 'uk' | 'ur' | 'uz' | 'vi' | 'zh' | '' | null;
92
+ source_date?: string | null;
93
+ source_name?: string | null;
94
+ text?: string | null;
95
+ text_en?: string | null;
96
+ title?: string | null;
97
+ title_en?: string | null;
98
+ url?: string | null;
99
+ }
100
+ namespace Result {
101
+ /**
102
+ * Compliance entity result address serializer.
103
+ */
104
+ interface Address {
105
+ city?: string | null;
106
+ country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
107
+ postal_code?: string | null;
108
+ street?: string | null;
109
+ }
110
+ /**
111
+ * Compliance entity result source serializer.
112
+ */
113
+ interface Source {
114
+ url: string;
115
+ description?: string | null;
116
+ document?: string | null;
117
+ domain?: string | null;
118
+ publication_date?: string | null;
119
+ title?: string | null;
120
+ }
121
+ /**
122
+ * Compliance entity result tag serializer.
123
+ */
124
+ interface Tag {
125
+ tag: string;
126
+ }
127
+ }
128
+ interface Ubo {
129
+ name: string;
130
+ beneficial_ownership_percentage?: number | null;
131
+ birth_date?: string | null;
132
+ degree_of_separation?: number | null;
133
+ direct_ownership_percentage?: number | null;
134
+ implied_beneficial_ownership_percentage?: number | null;
135
+ implied_direct_ownership_percentage?: number | null;
136
+ implied_indirect_ownership_percentage?: number | null;
137
+ indirect_ownership_percentage?: number | null;
138
+ is_beneficiary?: boolean | null;
139
+ is_person_with_significant_control?: boolean | null;
140
+ }
141
+ }
142
+ }
143
+ export interface ComplianceCreateParams {
144
+ company_id: string;
145
+ /**
146
+ * If enabled all found entities UBOs, directors, shareholders will be screened.
147
+ * This can have an high cost impact.
148
+ */
149
+ all_entities_screening_enabled?: boolean;
150
+ directors_screening_enabled?: boolean;
151
+ ownership_screening_threshold?: number;
152
+ }
153
+ export declare namespace Compliance {
154
+ export { type ComplianceCheckScoreEnum as ComplianceCheckScoreEnum, type ComplianceCreateResponse as ComplianceCreateResponse, type ComplianceRetrieveResponse as ComplianceRetrieveResponse, type ComplianceCreateParams as ComplianceCreateParams, };
155
+ }
156
+ //# sourceMappingURL=compliance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compliance.d.ts","sourceRoot":"","sources":["../src/resources/compliance.ts"],"names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YACH,UAAiB,GAAG;gBAClB,GAAG,EAAE,MAAM,CAAC;aACb;SACF;QAED,UAAiB,GAAG;YAClB,IAAI,EAAE,MAAM,CAAC;YAEb,+BAA+B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEhD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE3B,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAErC,2BAA2B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE5C,uCAAuC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAExD,mCAAmC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEpD,qCAAqC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEtD,6BAA6B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE9C,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;YAEhC,kCAAkC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;SACrD;KACF;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAEzC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IAEtC,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,22 @@
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.Compliance = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const path_1 = require("../internal/utils/path.js");
7
+ class Compliance extends resource_1.APIResource {
8
+ /**
9
+ * Create a new compliance check.
10
+ */
11
+ create(body, options) {
12
+ return this._client.post('/ext/v3/compliance', { body, ...options });
13
+ }
14
+ /**
15
+ * Get compliance check results.
16
+ */
17
+ retrieve(externalID, options) {
18
+ return this._client.get((0, path_1.path) `/ext/v3/compliance/${externalID}`, options);
19
+ }
20
+ }
21
+ exports.Compliance = Compliance;
22
+ //# sourceMappingURL=compliance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compliance.js","sourceRoot":"","sources":["../src/resources/compliance.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AAdD,gCAcC"}
@@ -0,0 +1,18 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { path } from "../internal/utils/path.mjs";
4
+ export class Compliance extends APIResource {
5
+ /**
6
+ * Create a new compliance check.
7
+ */
8
+ create(body, options) {
9
+ return this._client.post('/ext/v3/compliance', { body, ...options });
10
+ }
11
+ /**
12
+ * Get compliance check results.
13
+ */
14
+ retrieve(externalID, options) {
15
+ return this._client.get(path `/ext/v3/compliance/${externalID}`, options);
16
+ }
17
+ }
18
+ //# sourceMappingURL=compliance.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compliance.mjs","sourceRoot":"","sources":["../src/resources/compliance.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
@@ -0,0 +1,6 @@
1
+ export * from "./shared.mjs";
2
+ export { Companies, type BlankEnum, type CountryEnum, type IndustryCode, type Registration, type RegistrationRequest, type CompanyRetrieveResponse, type CompanyListResponse, type CompanyListAttributeChangesResponse, type CompanyCreateParams, type CompanyListParams, type CompanyListAttributeChangesParams, type CompanyListResponsesNextKey, type CompanyListAttributeChangesResponsesNextKey, } from "./companies.mjs";
3
+ export { Compliance, type ComplianceCheckScoreEnum, type ComplianceCreateResponse, type ComplianceRetrieveResponse, type ComplianceCreateParams, } from "./compliance.mjs";
4
+ export { News } from "./news/news.mjs";
5
+ export { Portfolios, type PermissionEnum, type Portfolio, type PortfolioCreateParams, type PortfolioListParams, type PortfoliosNextKey, } from "./portfolios/portfolios.mjs";
6
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,2BAA2B,EAChC,KAAK,2CAA2C,GACjD;OACM,EACL,UAAU,EACV,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B;OACM,EAAE,IAAI,EAAE;OACR,EACL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB"}
@@ -0,0 +1,6 @@
1
+ export * from "./shared.js";
2
+ export { Companies, type BlankEnum, type CountryEnum, type IndustryCode, type Registration, type RegistrationRequest, type CompanyRetrieveResponse, type CompanyListResponse, type CompanyListAttributeChangesResponse, type CompanyCreateParams, type CompanyListParams, type CompanyListAttributeChangesParams, type CompanyListResponsesNextKey, type CompanyListAttributeChangesResponsesNextKey, } from "./companies.js";
3
+ export { Compliance, type ComplianceCheckScoreEnum, type ComplianceCreateResponse, type ComplianceRetrieveResponse, type ComplianceCreateParams, } from "./compliance.js";
4
+ export { News } from "./news/news.js";
5
+ export { Portfolios, type PermissionEnum, type Portfolio, type PortfolioCreateParams, type PortfolioListParams, type PortfoliosNextKey, } from "./portfolios/portfolios.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,2BAA2B,EAChC,KAAK,2CAA2C,GACjD;OACM,EACL,UAAU,EACV,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B;OACM,EAAE,IAAI,EAAE;OACR,EACL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB"}
@@ -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.Portfolios = exports.News = exports.Compliance = exports.Companies = void 0;
5
+ const tslib_1 = require("../internal/tslib.js");
6
+ tslib_1.__exportStar(require("./shared.js"), exports);
7
+ var companies_1 = require("./companies.js");
8
+ Object.defineProperty(exports, "Companies", { enumerable: true, get: function () { return companies_1.Companies; } });
9
+ var compliance_1 = require("./compliance.js");
10
+ Object.defineProperty(exports, "Compliance", { enumerable: true, get: function () { return compliance_1.Compliance; } });
11
+ var news_1 = require("./news/news.js");
12
+ Object.defineProperty(exports, "News", { enumerable: true, get: function () { return news_1.News; } });
13
+ var portfolios_1 = require("./portfolios/portfolios.js");
14
+ Object.defineProperty(exports, "Portfolios", { enumerable: true, get: function () { return portfolios_1.Portfolios; } });
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,4CAeqB;AAdnB,sGAAA,SAAS,OAAA;AAeX,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,yDAOiC;AAN/B,wGAAA,UAAU,OAAA"}
@@ -0,0 +1,7 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./shared.mjs";
3
+ export { Companies, } from "./companies.mjs";
4
+ export { Compliance, } from "./compliance.mjs";
5
+ export { News } from "./news/news.mjs";
6
+ export { Portfolios, } from "./portfolios/portfolios.mjs";
7
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,SAAS,GAcV;OACM,EACL,UAAU,GAKX;OACM,EAAE,IAAI,EAAE;OACR,EACL,UAAU,GAMX"}