attio-mcp 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 (644) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/LICENSE +236 -0
  3. package/README.md +105 -0
  4. package/dist/api/attio-client.d.ts +25 -0
  5. package/dist/api/attio-client.d.ts.map +1 -0
  6. package/dist/api/attio-client.js +64 -0
  7. package/dist/api/attio-client.js.map +1 -0
  8. package/dist/api/attribute-types.d.ts +119 -0
  9. package/dist/api/attribute-types.d.ts.map +1 -0
  10. package/dist/api/attribute-types.js +320 -0
  11. package/dist/api/attribute-types.js.map +1 -0
  12. package/dist/api/client.d.ts +3 -0
  13. package/dist/api/client.d.ts.map +1 -0
  14. package/dist/api/client.js +61 -0
  15. package/dist/api/client.js.map +1 -0
  16. package/dist/api/operations/batch.d.ts +55 -0
  17. package/dist/api/operations/batch.d.ts.map +1 -0
  18. package/dist/api/operations/batch.js +176 -0
  19. package/dist/api/operations/batch.js.map +1 -0
  20. package/dist/api/operations/crud.d.ts +61 -0
  21. package/dist/api/operations/crud.d.ts.map +1 -0
  22. package/dist/api/operations/crud.js +192 -0
  23. package/dist/api/operations/crud.js.map +1 -0
  24. package/dist/api/operations/index.d.ts +14 -0
  25. package/dist/api/operations/index.d.ts.map +1 -0
  26. package/dist/api/operations/index.js +18 -0
  27. package/dist/api/operations/index.js.map +1 -0
  28. package/dist/api/operations/lists.d.ts +66 -0
  29. package/dist/api/operations/lists.d.ts.map +1 -0
  30. package/dist/api/operations/lists.js +300 -0
  31. package/dist/api/operations/lists.js.map +1 -0
  32. package/dist/api/operations/notes.d.ts +29 -0
  33. package/dist/api/operations/notes.d.ts.map +1 -0
  34. package/dist/api/operations/notes.js +63 -0
  35. package/dist/api/operations/notes.js.map +1 -0
  36. package/dist/api/operations/retry.d.ts +48 -0
  37. package/dist/api/operations/retry.d.ts.map +1 -0
  38. package/dist/api/operations/retry.js +98 -0
  39. package/dist/api/operations/retry.js.map +1 -0
  40. package/dist/api/operations/search.d.ts +37 -0
  41. package/dist/api/operations/search.d.ts.map +1 -0
  42. package/dist/api/operations/search.js +186 -0
  43. package/dist/api/operations/search.js.map +1 -0
  44. package/dist/api/operations/tasks.d.ts +20 -0
  45. package/dist/api/operations/tasks.d.ts.map +1 -0
  46. package/dist/api/operations/tasks.js +87 -0
  47. package/dist/api/operations/tasks.js.map +1 -0
  48. package/dist/api/operations/types.d.ts +61 -0
  49. package/dist/api/operations/types.d.ts.map +1 -0
  50. package/dist/api/operations/types.js +10 -0
  51. package/dist/api/operations/types.js.map +1 -0
  52. package/dist/cli/commands/attributes.d.ts +34 -0
  53. package/dist/cli/commands/attributes.d.ts.map +1 -0
  54. package/dist/cli/commands/attributes.js +171 -0
  55. package/dist/cli/commands/attributes.js.map +1 -0
  56. package/dist/cli/discover.d.ts +3 -0
  57. package/dist/cli/discover.d.ts.map +1 -0
  58. package/dist/cli/discover.js +72 -0
  59. package/dist/cli/discover.js.map +1 -0
  60. package/dist/errors/api-errors.d.ts +191 -0
  61. package/dist/errors/api-errors.d.ts.map +1 -0
  62. package/dist/errors/api-errors.js +305 -0
  63. package/dist/errors/api-errors.js.map +1 -0
  64. package/dist/errors/company-errors.d.ts +40 -0
  65. package/dist/errors/company-errors.d.ts.map +1 -0
  66. package/dist/errors/company-errors.js +62 -0
  67. package/dist/errors/company-errors.js.map +1 -0
  68. package/dist/errors/value-match-error.d.ts +15 -0
  69. package/dist/errors/value-match-error.d.ts.map +1 -0
  70. package/dist/errors/value-match-error.js +40 -0
  71. package/dist/errors/value-match-error.js.map +1 -0
  72. package/dist/handlers/error-interceptor.d.ts +6 -0
  73. package/dist/handlers/error-interceptor.d.ts.map +1 -0
  74. package/dist/handlers/error-interceptor.js +17 -0
  75. package/dist/handlers/error-interceptor.js.map +1 -0
  76. package/dist/handlers/rate-limited-handler.d.ts +17 -0
  77. package/dist/handlers/rate-limited-handler.d.ts.map +1 -0
  78. package/dist/handlers/rate-limited-handler.js +126 -0
  79. package/dist/handlers/rate-limited-handler.js.map +1 -0
  80. package/dist/handlers/resources.d.ts +11 -0
  81. package/dist/handlers/resources.d.ts.map +1 -0
  82. package/dist/handlers/resources.js +109 -0
  83. package/dist/handlers/resources.js.map +1 -0
  84. package/dist/handlers/tool-configs/companies/attributes.d.ts +85 -0
  85. package/dist/handlers/tool-configs/companies/attributes.d.ts.map +1 -0
  86. package/dist/handlers/tool-configs/companies/attributes.js +203 -0
  87. package/dist/handlers/tool-configs/companies/attributes.js.map +1 -0
  88. package/dist/handlers/tool-configs/companies/batch.d.ts +145 -0
  89. package/dist/handlers/tool-configs/companies/batch.d.ts.map +1 -0
  90. package/dist/handlers/tool-configs/companies/batch.js +249 -0
  91. package/dist/handlers/tool-configs/companies/batch.js.map +1 -0
  92. package/dist/handlers/tool-configs/companies/crud.d.ts +103 -0
  93. package/dist/handlers/tool-configs/companies/crud.d.ts.map +1 -0
  94. package/dist/handlers/tool-configs/companies/crud.js +157 -0
  95. package/dist/handlers/tool-configs/companies/crud.js.map +1 -0
  96. package/dist/handlers/tool-configs/companies/definitions.d.ts +5 -0
  97. package/dist/handlers/tool-configs/companies/definitions.d.ts.map +1 -0
  98. package/dist/handlers/tool-configs/companies/definitions.js +9 -0
  99. package/dist/handlers/tool-configs/companies/definitions.js.map +1 -0
  100. package/dist/handlers/tool-configs/companies/formatters.d.ts +42 -0
  101. package/dist/handlers/tool-configs/companies/formatters.d.ts.map +1 -0
  102. package/dist/handlers/tool-configs/companies/formatters.js +324 -0
  103. package/dist/handlers/tool-configs/companies/formatters.js.map +1 -0
  104. package/dist/handlers/tool-configs/companies/index.d.ts +642 -0
  105. package/dist/handlers/tool-configs/companies/index.d.ts.map +1 -0
  106. package/dist/handlers/tool-configs/companies/index.js +86 -0
  107. package/dist/handlers/tool-configs/companies/index.js.map +1 -0
  108. package/dist/handlers/tool-configs/companies/notes.d.ts +61 -0
  109. package/dist/handlers/tool-configs/companies/notes.d.ts.map +1 -0
  110. package/dist/handlers/tool-configs/companies/notes.js +109 -0
  111. package/dist/handlers/tool-configs/companies/notes.js.map +1 -0
  112. package/dist/handlers/tool-configs/companies/relationships.d.ts +137 -0
  113. package/dist/handlers/tool-configs/companies/relationships.d.ts.map +1 -0
  114. package/dist/handlers/tool-configs/companies/relationships.js +163 -0
  115. package/dist/handlers/tool-configs/companies/relationships.js.map +1 -0
  116. package/dist/handlers/tool-configs/companies/search.d.ts +101 -0
  117. package/dist/handlers/tool-configs/companies/search.d.ts.map +1 -0
  118. package/dist/handlers/tool-configs/companies/search.js +163 -0
  119. package/dist/handlers/tool-configs/companies/search.js.map +1 -0
  120. package/dist/handlers/tool-configs/companies/types.d.ts +6 -0
  121. package/dist/handlers/tool-configs/companies/types.d.ts.map +1 -0
  122. package/dist/handlers/tool-configs/companies/types.js +2 -0
  123. package/dist/handlers/tool-configs/companies/types.js.map +1 -0
  124. package/dist/handlers/tool-configs/index.d.ts +12 -0
  125. package/dist/handlers/tool-configs/index.d.ts.map +1 -0
  126. package/dist/handlers/tool-configs/index.js +12 -0
  127. package/dist/handlers/tool-configs/index.js.map +1 -0
  128. package/dist/handlers/tool-configs/lists.d.ts +459 -0
  129. package/dist/handlers/tool-configs/lists.d.ts.map +1 -0
  130. package/dist/handlers/tool-configs/lists.js +597 -0
  131. package/dist/handlers/tool-configs/lists.js.map +1 -0
  132. package/dist/handlers/tool-configs/paginated-people.d.ts +197 -0
  133. package/dist/handlers/tool-configs/paginated-people.d.ts.map +1 -0
  134. package/dist/handlers/tool-configs/paginated-people.js +256 -0
  135. package/dist/handlers/tool-configs/paginated-people.js.map +1 -0
  136. package/dist/handlers/tool-configs/people/activity-search.d.ts +98 -0
  137. package/dist/handlers/tool-configs/people/activity-search.d.ts.map +1 -0
  138. package/dist/handlers/tool-configs/people/activity-search.js +113 -0
  139. package/dist/handlers/tool-configs/people/activity-search.js.map +1 -0
  140. package/dist/handlers/tool-configs/people/advanced-search.d.ts +62 -0
  141. package/dist/handlers/tool-configs/people/advanced-search.d.ts.map +1 -0
  142. package/dist/handlers/tool-configs/people/advanced-search.js +74 -0
  143. package/dist/handlers/tool-configs/people/advanced-search.js.map +1 -0
  144. package/dist/handlers/tool-configs/people/crud.d.ts +63 -0
  145. package/dist/handlers/tool-configs/people/crud.d.ts.map +1 -0
  146. package/dist/handlers/tool-configs/people/crud.js +71 -0
  147. package/dist/handlers/tool-configs/people/crud.js.map +1 -0
  148. package/dist/handlers/tool-configs/people/date-search.d.ts +42 -0
  149. package/dist/handlers/tool-configs/people/date-search.d.ts.map +1 -0
  150. package/dist/handlers/tool-configs/people/date-search.js +93 -0
  151. package/dist/handlers/tool-configs/people/date-search.js.map +1 -0
  152. package/dist/handlers/tool-configs/people/formatters.d.ts +19 -0
  153. package/dist/handlers/tool-configs/people/formatters.d.ts.map +1 -0
  154. package/dist/handlers/tool-configs/people/formatters.js +98 -0
  155. package/dist/handlers/tool-configs/people/formatters.js.map +1 -0
  156. package/dist/handlers/tool-configs/people/index.d.ts +407 -0
  157. package/dist/handlers/tool-configs/people/index.d.ts.map +1 -0
  158. package/dist/handlers/tool-configs/people/index.js +30 -0
  159. package/dist/handlers/tool-configs/people/index.js.map +1 -0
  160. package/dist/handlers/tool-configs/people/notes.d.ts +38 -0
  161. package/dist/handlers/tool-configs/people/notes.d.ts.map +1 -0
  162. package/dist/handlers/tool-configs/people/notes.js +57 -0
  163. package/dist/handlers/tool-configs/people/notes.js.map +1 -0
  164. package/dist/handlers/tool-configs/people/relationships.d.ts +112 -0
  165. package/dist/handlers/tool-configs/people/relationships.d.ts.map +1 -0
  166. package/dist/handlers/tool-configs/people/relationships.js +173 -0
  167. package/dist/handlers/tool-configs/people/relationships.js.map +1 -0
  168. package/dist/handlers/tool-configs/people/search.d.ts +53 -0
  169. package/dist/handlers/tool-configs/people/search.d.ts.map +1 -0
  170. package/dist/handlers/tool-configs/people/search.js +61 -0
  171. package/dist/handlers/tool-configs/people/search.js.map +1 -0
  172. package/dist/handlers/tool-configs/people-fix-complete.d.ts +6 -0
  173. package/dist/handlers/tool-configs/people-fix-complete.d.ts.map +1 -0
  174. package/dist/handlers/tool-configs/people-fix-complete.js +76 -0
  175. package/dist/handlers/tool-configs/people-fix-complete.js.map +1 -0
  176. package/dist/handlers/tool-configs/people-fixed.d.ts +12 -0
  177. package/dist/handlers/tool-configs/people-fixed.d.ts.map +1 -0
  178. package/dist/handlers/tool-configs/people-fixed.js +58 -0
  179. package/dist/handlers/tool-configs/people-fixed.js.map +1 -0
  180. package/dist/handlers/tool-configs/people-types.d.ts +32 -0
  181. package/dist/handlers/tool-configs/people-types.d.ts.map +1 -0
  182. package/dist/handlers/tool-configs/people-types.js +5 -0
  183. package/dist/handlers/tool-configs/people-types.js.map +1 -0
  184. package/dist/handlers/tool-configs/people.d.ts +599 -0
  185. package/dist/handlers/tool-configs/people.d.ts.map +1 -0
  186. package/dist/handlers/tool-configs/people.js +817 -0
  187. package/dist/handlers/tool-configs/people.js.map +1 -0
  188. package/dist/handlers/tool-configs/prompts.d.ts +69 -0
  189. package/dist/handlers/tool-configs/prompts.d.ts.map +1 -0
  190. package/dist/handlers/tool-configs/prompts.js +90 -0
  191. package/dist/handlers/tool-configs/prompts.js.map +1 -0
  192. package/dist/handlers/tool-configs/rate-limited-people.d.ts +203 -0
  193. package/dist/handlers/tool-configs/rate-limited-people.d.ts.map +1 -0
  194. package/dist/handlers/tool-configs/rate-limited-people.js +44 -0
  195. package/dist/handlers/tool-configs/rate-limited-people.js.map +1 -0
  196. package/dist/handlers/tool-configs/records/index.d.ts +282 -0
  197. package/dist/handlers/tool-configs/records/index.d.ts.map +1 -0
  198. package/dist/handlers/tool-configs/records/index.js +277 -0
  199. package/dist/handlers/tool-configs/records/index.js.map +1 -0
  200. package/dist/handlers/tool-configs/records.d.ts +282 -0
  201. package/dist/handlers/tool-configs/records.d.ts.map +1 -0
  202. package/dist/handlers/tool-configs/records.js +277 -0
  203. package/dist/handlers/tool-configs/records.js.map +1 -0
  204. package/dist/handlers/tool-configs/resource-specific-tools.d.ts +15 -0
  205. package/dist/handlers/tool-configs/resource-specific-tools.d.ts.map +1 -0
  206. package/dist/handlers/tool-configs/resource-specific-tools.js +33 -0
  207. package/dist/handlers/tool-configs/resource-specific-tools.js.map +1 -0
  208. package/dist/handlers/tool-configs/tasks.d.ts +127 -0
  209. package/dist/handlers/tool-configs/tasks.d.ts.map +1 -0
  210. package/dist/handlers/tool-configs/tasks.js +95 -0
  211. package/dist/handlers/tool-configs/tasks.js.map +1 -0
  212. package/dist/handlers/tool-types.d.ts +47 -0
  213. package/dist/handlers/tool-types.d.ts.map +1 -0
  214. package/dist/handlers/tool-types.js +2 -0
  215. package/dist/handlers/tool-types.js.map +1 -0
  216. package/dist/handlers/tools/config-verifier.d.ts +27 -0
  217. package/dist/handlers/tools/config-verifier.d.ts.map +1 -0
  218. package/dist/handlers/tools/config-verifier.js +108 -0
  219. package/dist/handlers/tools/config-verifier.js.map +1 -0
  220. package/dist/handlers/tools/dispatcher/core.d.ts +12 -0
  221. package/dist/handlers/tools/dispatcher/core.d.ts.map +1 -0
  222. package/dist/handlers/tools/dispatcher/core.js +276 -0
  223. package/dist/handlers/tools/dispatcher/core.js.map +1 -0
  224. package/dist/handlers/tools/dispatcher/formatting.d.ts +17 -0
  225. package/dist/handlers/tools/dispatcher/formatting.d.ts.map +1 -0
  226. package/dist/handlers/tools/dispatcher/formatting.js +25 -0
  227. package/dist/handlers/tools/dispatcher/formatting.js.map +1 -0
  228. package/dist/handlers/tools/dispatcher/logging.d.ts +63 -0
  229. package/dist/handlers/tools/dispatcher/logging.d.ts.map +1 -0
  230. package/dist/handlers/tools/dispatcher/logging.js +108 -0
  231. package/dist/handlers/tools/dispatcher/logging.js.map +1 -0
  232. package/dist/handlers/tools/dispatcher/operations/batch.d.ts +29 -0
  233. package/dist/handlers/tools/dispatcher/operations/batch.d.ts.map +1 -0
  234. package/dist/handlers/tools/dispatcher/operations/batch.js +137 -0
  235. package/dist/handlers/tools/dispatcher/operations/batch.js.map +1 -0
  236. package/dist/handlers/tools/dispatcher/operations/crud.d.ts +25 -0
  237. package/dist/handlers/tools/dispatcher/operations/crud.d.ts.map +1 -0
  238. package/dist/handlers/tools/dispatcher/operations/crud.js +110 -0
  239. package/dist/handlers/tools/dispatcher/operations/crud.js.map +1 -0
  240. package/dist/handlers/tools/dispatcher/operations/details.d.ts +13 -0
  241. package/dist/handlers/tools/dispatcher/operations/details.d.ts.map +1 -0
  242. package/dist/handlers/tools/dispatcher/operations/details.js +52 -0
  243. package/dist/handlers/tools/dispatcher/operations/details.js.map +1 -0
  244. package/dist/handlers/tools/dispatcher/operations/info.d.ts +25 -0
  245. package/dist/handlers/tools/dispatcher/operations/info.d.ts.map +1 -0
  246. package/dist/handlers/tools/dispatcher/operations/info.js +82 -0
  247. package/dist/handlers/tools/dispatcher/operations/info.js.map +1 -0
  248. package/dist/handlers/tools/dispatcher/operations/lists.d.ts +62 -0
  249. package/dist/handlers/tools/dispatcher/operations/lists.d.ts.map +1 -0
  250. package/dist/handlers/tools/dispatcher/operations/lists.js +283 -0
  251. package/dist/handlers/tools/dispatcher/operations/lists.js.map +1 -0
  252. package/dist/handlers/tools/dispatcher/operations/notes.d.ts +17 -0
  253. package/dist/handlers/tools/dispatcher/operations/notes.d.ts.map +1 -0
  254. package/dist/handlers/tools/dispatcher/operations/notes.js +102 -0
  255. package/dist/handlers/tools/dispatcher/operations/notes.js.map +1 -0
  256. package/dist/handlers/tools/dispatcher/operations/search.d.ts +43 -0
  257. package/dist/handlers/tools/dispatcher/operations/search.d.ts.map +1 -0
  258. package/dist/handlers/tools/dispatcher/operations/search.js +190 -0
  259. package/dist/handlers/tools/dispatcher/operations/search.js.map +1 -0
  260. package/dist/handlers/tools/dispatcher/validation.d.ts +27 -0
  261. package/dist/handlers/tools/dispatcher/validation.d.ts.map +1 -0
  262. package/dist/handlers/tools/dispatcher/validation.js +47 -0
  263. package/dist/handlers/tools/dispatcher/validation.js.map +1 -0
  264. package/dist/handlers/tools/dispatcher.d.ts +11 -0
  265. package/dist/handlers/tools/dispatcher.d.ts.map +1 -0
  266. package/dist/handlers/tools/dispatcher.js +15 -0
  267. package/dist/handlers/tools/dispatcher.js.map +1 -0
  268. package/dist/handlers/tools/error-types.d.ts +33 -0
  269. package/dist/handlers/tools/error-types.d.ts.map +1 -0
  270. package/dist/handlers/tools/error-types.js +21 -0
  271. package/dist/handlers/tools/error-types.js.map +1 -0
  272. package/dist/handlers/tools/formatters.d.ts +43 -0
  273. package/dist/handlers/tools/formatters.d.ts.map +1 -0
  274. package/dist/handlers/tools/formatters.js +170 -0
  275. package/dist/handlers/tools/formatters.js.map +1 -0
  276. package/dist/handlers/tools/index.d.ts +15 -0
  277. package/dist/handlers/tools/index.d.ts.map +1 -0
  278. package/dist/handlers/tools/index.js +34 -0
  279. package/dist/handlers/tools/index.js.map +1 -0
  280. package/dist/handlers/tools/registry.d.ts +1874 -0
  281. package/dist/handlers/tools/registry.d.ts.map +1 -0
  282. package/dist/handlers/tools/registry.js +103 -0
  283. package/dist/handlers/tools/registry.js.map +1 -0
  284. package/dist/health/http-server.d.ts +24 -0
  285. package/dist/health/http-server.d.ts.map +1 -0
  286. package/dist/health/http-server.js +106 -0
  287. package/dist/health/http-server.js.map +1 -0
  288. package/dist/index.d.ts +3 -0
  289. package/dist/index.d.ts.map +1 -0
  290. package/dist/index.js +238 -0
  291. package/dist/index.js.map +1 -0
  292. package/dist/objects/base-operations.d.ts +41 -0
  293. package/dist/objects/base-operations.d.ts.map +1 -0
  294. package/dist/objects/base-operations.js +116 -0
  295. package/dist/objects/base-operations.js.map +1 -0
  296. package/dist/objects/batch-companies.d.ts +112 -0
  297. package/dist/objects/batch-companies.d.ts.map +1 -0
  298. package/dist/objects/batch-companies.js +347 -0
  299. package/dist/objects/batch-companies.js.map +1 -0
  300. package/dist/objects/companies/attributes.d.ts +83 -0
  301. package/dist/objects/companies/attributes.d.ts.map +1 -0
  302. package/dist/objects/companies/attributes.js +426 -0
  303. package/dist/objects/companies/attributes.js.map +1 -0
  304. package/dist/objects/companies/basic.d.ts +117 -0
  305. package/dist/objects/companies/basic.d.ts.map +1 -0
  306. package/dist/objects/companies/basic.js +367 -0
  307. package/dist/objects/companies/basic.js.map +1 -0
  308. package/dist/objects/companies/batch.d.ts +6 -0
  309. package/dist/objects/companies/batch.d.ts.map +1 -0
  310. package/dist/objects/companies/batch.js +6 -0
  311. package/dist/objects/companies/batch.js.map +1 -0
  312. package/dist/objects/companies/index.d.ts +13 -0
  313. package/dist/objects/companies/index.d.ts.map +1 -0
  314. package/dist/objects/companies/index.js +17 -0
  315. package/dist/objects/companies/index.js.map +1 -0
  316. package/dist/objects/companies/notes.d.ts +26 -0
  317. package/dist/objects/companies/notes.d.ts.map +1 -0
  318. package/dist/objects/companies/notes.js +199 -0
  319. package/dist/objects/companies/notes.js.map +1 -0
  320. package/dist/objects/companies/relationships.d.ts +41 -0
  321. package/dist/objects/companies/relationships.d.ts.map +1 -0
  322. package/dist/objects/companies/relationships.js +142 -0
  323. package/dist/objects/companies/relationships.js.map +1 -0
  324. package/dist/objects/companies/search.d.ts +158 -0
  325. package/dist/objects/companies/search.d.ts.map +1 -0
  326. package/dist/objects/companies/search.js +463 -0
  327. package/dist/objects/companies/search.js.map +1 -0
  328. package/dist/objects/companies/types.d.ts +27 -0
  329. package/dist/objects/companies/types.d.ts.map +1 -0
  330. package/dist/objects/companies/types.js +3 -0
  331. package/dist/objects/companies/types.js.map +1 -0
  332. package/dist/objects/lists.d.ts +148 -0
  333. package/dist/objects/lists.d.ts.map +1 -0
  334. package/dist/objects/lists.js +586 -0
  335. package/dist/objects/lists.js.map +1 -0
  336. package/dist/objects/paginated-people.d.ts +50 -0
  337. package/dist/objects/paginated-people.d.ts.map +1 -0
  338. package/dist/objects/paginated-people.js +171 -0
  339. package/dist/objects/paginated-people.js.map +1 -0
  340. package/dist/objects/people/basic.d.ts +90 -0
  341. package/dist/objects/people/basic.d.ts.map +1 -0
  342. package/dist/objects/people/basic.js +157 -0
  343. package/dist/objects/people/basic.js.map +1 -0
  344. package/dist/objects/people/batch.d.ts +24 -0
  345. package/dist/objects/people/batch.d.ts.map +1 -0
  346. package/dist/objects/people/batch.js +145 -0
  347. package/dist/objects/people/batch.js.map +1 -0
  348. package/dist/objects/people/index.d.ts +11 -0
  349. package/dist/objects/people/index.d.ts.map +1 -0
  350. package/dist/objects/people/index.js +17 -0
  351. package/dist/objects/people/index.js.map +1 -0
  352. package/dist/objects/people/notes.d.ts +20 -0
  353. package/dist/objects/people/notes.d.ts.map +1 -0
  354. package/dist/objects/people/notes.js +60 -0
  355. package/dist/objects/people/notes.js.map +1 -0
  356. package/dist/objects/people/relationships.d.ts +23 -0
  357. package/dist/objects/people/relationships.d.ts.map +1 -0
  358. package/dist/objects/people/relationships.js +116 -0
  359. package/dist/objects/people/relationships.js.map +1 -0
  360. package/dist/objects/people/search.d.ts +83 -0
  361. package/dist/objects/people/search.d.ts.map +1 -0
  362. package/dist/objects/people/search.js +286 -0
  363. package/dist/objects/people/search.js.map +1 -0
  364. package/dist/objects/people/types.d.ts +37 -0
  365. package/dist/objects/people/types.d.ts.map +1 -0
  366. package/dist/objects/people/types.js +71 -0
  367. package/dist/objects/people/types.js.map +1 -0
  368. package/dist/objects/people-write.d.ts +71 -0
  369. package/dist/objects/people-write.d.ts.map +1 -0
  370. package/dist/objects/people-write.js +261 -0
  371. package/dist/objects/people-write.js.map +1 -0
  372. package/dist/objects/records/formatters.d.ts +20 -0
  373. package/dist/objects/records/formatters.d.ts.map +1 -0
  374. package/dist/objects/records/formatters.js +47 -0
  375. package/dist/objects/records/formatters.js.map +1 -0
  376. package/dist/objects/records/index.d.ts +74 -0
  377. package/dist/objects/records/index.d.ts.map +1 -0
  378. package/dist/objects/records/index.js +374 -0
  379. package/dist/objects/records/index.js.map +1 -0
  380. package/dist/objects/records.d.ts +88 -0
  381. package/dist/objects/records.d.ts.map +1 -0
  382. package/dist/objects/records.js +432 -0
  383. package/dist/objects/records.js.map +1 -0
  384. package/dist/objects/tasks.d.ts +19 -0
  385. package/dist/objects/tasks.d.ts.map +1 -0
  386. package/dist/objects/tasks.js +23 -0
  387. package/dist/objects/tasks.js.map +1 -0
  388. package/dist/prompts/error-handler.d.ts +28 -0
  389. package/dist/prompts/error-handler.d.ts.map +1 -0
  390. package/dist/prompts/error-handler.js +47 -0
  391. package/dist/prompts/error-handler.js.map +1 -0
  392. package/dist/prompts/handlers.d.ts +49 -0
  393. package/dist/prompts/handlers.d.ts.map +1 -0
  394. package/dist/prompts/handlers.js +353 -0
  395. package/dist/prompts/handlers.js.map +1 -0
  396. package/dist/prompts/index.d.ts +11 -0
  397. package/dist/prompts/index.d.ts.map +1 -0
  398. package/dist/prompts/index.js +15 -0
  399. package/dist/prompts/index.js.map +1 -0
  400. package/dist/prompts/templates/companies.d.ts +10 -0
  401. package/dist/prompts/templates/companies.d.ts.map +1 -0
  402. package/dist/prompts/templates/companies.js +128 -0
  403. package/dist/prompts/templates/companies.js.map +1 -0
  404. package/dist/prompts/templates/index.d.ts +42 -0
  405. package/dist/prompts/templates/index.d.ts.map +1 -0
  406. package/dist/prompts/templates/index.js +58 -0
  407. package/dist/prompts/templates/index.js.map +1 -0
  408. package/dist/prompts/templates/lists.d.ts +10 -0
  409. package/dist/prompts/templates/lists.d.ts.map +1 -0
  410. package/dist/prompts/templates/lists.js +127 -0
  411. package/dist/prompts/templates/lists.js.map +1 -0
  412. package/dist/prompts/templates/notes.d.ts +10 -0
  413. package/dist/prompts/templates/notes.d.ts.map +1 -0
  414. package/dist/prompts/templates/notes.js +119 -0
  415. package/dist/prompts/templates/notes.js.map +1 -0
  416. package/dist/prompts/templates/people.d.ts +10 -0
  417. package/dist/prompts/templates/people.d.ts.map +1 -0
  418. package/dist/prompts/templates/people.js +127 -0
  419. package/dist/prompts/templates/people.js.map +1 -0
  420. package/dist/prompts/types.d.ts +52 -0
  421. package/dist/prompts/types.d.ts.map +1 -0
  422. package/dist/prompts/types.js +5 -0
  423. package/dist/prompts/types.js.map +1 -0
  424. package/dist/types/attio.d.ts +424 -0
  425. package/dist/types/attio.d.ts.map +1 -0
  426. package/dist/types/attio.js +116 -0
  427. package/dist/types/attio.js.map +1 -0
  428. package/dist/types/company-types.d.ts +52 -0
  429. package/dist/types/company-types.d.ts.map +1 -0
  430. package/dist/types/company-types.js +5 -0
  431. package/dist/types/company-types.js.map +1 -0
  432. package/dist/types/tool-types.d.ts +262 -0
  433. package/dist/types/tool-types.d.ts.map +1 -0
  434. package/dist/types/tool-types.js +6 -0
  435. package/dist/types/tool-types.js.map +1 -0
  436. package/dist/utils/api-fallback.d.ts +39 -0
  437. package/dist/utils/api-fallback.d.ts.map +1 -0
  438. package/dist/utils/api-fallback.js +94 -0
  439. package/dist/utils/api-fallback.js.map +1 -0
  440. package/dist/utils/attribute-mapping/attribute-mappers.d.ts +39 -0
  441. package/dist/utils/attribute-mapping/attribute-mappers.d.ts.map +1 -0
  442. package/dist/utils/attribute-mapping/attribute-mappers.js +394 -0
  443. package/dist/utils/attribute-mapping/attribute-mappers.js.map +1 -0
  444. package/dist/utils/attribute-mapping/filter-translator.d.ts +9 -0
  445. package/dist/utils/attribute-mapping/filter-translator.d.ts.map +1 -0
  446. package/dist/utils/attribute-mapping/filter-translator.js +104 -0
  447. package/dist/utils/attribute-mapping/filter-translator.js.map +1 -0
  448. package/dist/utils/attribute-mapping/index.d.ts +10 -0
  449. package/dist/utils/attribute-mapping/index.d.ts.map +1 -0
  450. package/dist/utils/attribute-mapping/index.js +12 -0
  451. package/dist/utils/attribute-mapping/index.js.map +1 -0
  452. package/dist/utils/attribute-mapping/legacy-maps.d.ts +11 -0
  453. package/dist/utils/attribute-mapping/legacy-maps.d.ts.map +1 -0
  454. package/dist/utils/attribute-mapping/legacy-maps.js +54 -0
  455. package/dist/utils/attribute-mapping/legacy-maps.js.map +1 -0
  456. package/dist/utils/attribute-mapping/mapping-utils.d.ts +90 -0
  457. package/dist/utils/attribute-mapping/mapping-utils.d.ts.map +1 -0
  458. package/dist/utils/attribute-mapping/mapping-utils.js +145 -0
  459. package/dist/utils/attribute-mapping/mapping-utils.js.map +1 -0
  460. package/dist/utils/auto-discovery.d.ts +22 -0
  461. package/dist/utils/auto-discovery.d.ts.map +1 -0
  462. package/dist/utils/auto-discovery.js +143 -0
  463. package/dist/utils/auto-discovery.js.map +1 -0
  464. package/dist/utils/cli-colors.d.ts +36 -0
  465. package/dist/utils/cli-colors.d.ts.map +1 -0
  466. package/dist/utils/cli-colors.js +35 -0
  467. package/dist/utils/cli-colors.js.map +1 -0
  468. package/dist/utils/config-loader.d.ts +41 -0
  469. package/dist/utils/config-loader.d.ts.map +1 -0
  470. package/dist/utils/config-loader.js +167 -0
  471. package/dist/utils/config-loader.js.map +1 -0
  472. package/dist/utils/config-migration.d.ts +140 -0
  473. package/dist/utils/config-migration.d.ts.map +1 -0
  474. package/dist/utils/config-migration.js +310 -0
  475. package/dist/utils/config-migration.js.map +1 -0
  476. package/dist/utils/date-utils.d.ts +63 -0
  477. package/dist/utils/date-utils.d.ts.map +1 -0
  478. package/dist/utils/date-utils.js +329 -0
  479. package/dist/utils/date-utils.js.map +1 -0
  480. package/dist/utils/debug-b2b-segment.d.ts +2 -0
  481. package/dist/utils/debug-b2b-segment.d.ts.map +1 -0
  482. package/dist/utils/debug-b2b-segment.js +67 -0
  483. package/dist/utils/debug-b2b-segment.js.map +1 -0
  484. package/dist/utils/domain-utils.d.ts +46 -0
  485. package/dist/utils/domain-utils.d.ts.map +1 -0
  486. package/dist/utils/domain-utils.js +143 -0
  487. package/dist/utils/domain-utils.js.map +1 -0
  488. package/dist/utils/dynamic-import.d.ts +33 -0
  489. package/dist/utils/dynamic-import.d.ts.map +1 -0
  490. package/dist/utils/dynamic-import.js +41 -0
  491. package/dist/utils/dynamic-import.js.map +1 -0
  492. package/dist/utils/error-enhancer.d.ts +23 -0
  493. package/dist/utils/error-enhancer.d.ts.map +1 -0
  494. package/dist/utils/error-enhancer.js +188 -0
  495. package/dist/utils/error-enhancer.js.map +1 -0
  496. package/dist/utils/error-handler.d.ts +89 -0
  497. package/dist/utils/error-handler.d.ts.map +1 -0
  498. package/dist/utils/error-handler.js +336 -0
  499. package/dist/utils/error-handler.js.map +1 -0
  500. package/dist/utils/filters/builders/activity.d.ts +13 -0
  501. package/dist/utils/filters/builders/activity.d.ts.map +1 -0
  502. package/dist/utils/filters/builders/activity.js +65 -0
  503. package/dist/utils/filters/builders/activity.js.map +1 -0
  504. package/dist/utils/filters/builders/basic.d.ts +13 -0
  505. package/dist/utils/filters/builders/basic.d.ts.map +1 -0
  506. package/dist/utils/filters/builders/basic.js +36 -0
  507. package/dist/utils/filters/builders/basic.js.map +1 -0
  508. package/dist/utils/filters/builders/complex.d.ts +31 -0
  509. package/dist/utils/filters/builders/complex.d.ts.map +1 -0
  510. package/dist/utils/filters/builders/complex.js +92 -0
  511. package/dist/utils/filters/builders/complex.js.map +1 -0
  512. package/dist/utils/filters/builders/date.d.ts +17 -0
  513. package/dist/utils/filters/builders/date.d.ts.map +1 -0
  514. package/dist/utils/filters/builders/date.js +51 -0
  515. package/dist/utils/filters/builders/date.js.map +1 -0
  516. package/dist/utils/filters/builders/index.d.ts +8 -0
  517. package/dist/utils/filters/builders/index.d.ts.map +1 -0
  518. package/dist/utils/filters/builders/index.js +8 -0
  519. package/dist/utils/filters/builders/index.js.map +1 -0
  520. package/dist/utils/filters/builders/numeric.d.ts +17 -0
  521. package/dist/utils/filters/builders/numeric.d.ts.map +1 -0
  522. package/dist/utils/filters/builders/numeric.js +61 -0
  523. package/dist/utils/filters/builders/numeric.js.map +1 -0
  524. package/dist/utils/filters/builders/text.d.ts +17 -0
  525. package/dist/utils/filters/builders/text.d.ts.map +1 -0
  526. package/dist/utils/filters/builders/text.js +47 -0
  527. package/dist/utils/filters/builders/text.js.map +1 -0
  528. package/dist/utils/filters/builders/types.d.ts +2 -0
  529. package/dist/utils/filters/builders/types.d.ts.map +1 -0
  530. package/dist/utils/filters/builders/types.js +2 -0
  531. package/dist/utils/filters/builders/types.js.map +1 -0
  532. package/dist/utils/filters/builders.d.ts +2 -0
  533. package/dist/utils/filters/builders.d.ts.map +1 -0
  534. package/dist/utils/filters/builders.js +2 -0
  535. package/dist/utils/filters/builders.js.map +1 -0
  536. package/dist/utils/filters/cache.d.ts +80 -0
  537. package/dist/utils/filters/cache.d.ts.map +1 -0
  538. package/dist/utils/filters/cache.js +212 -0
  539. package/dist/utils/filters/cache.js.map +1 -0
  540. package/dist/utils/filters/index.d.ts +51 -0
  541. package/dist/utils/filters/index.d.ts.map +1 -0
  542. package/dist/utils/filters/index.js +67 -0
  543. package/dist/utils/filters/index.js.map +1 -0
  544. package/dist/utils/filters/operators.d.ts +65 -0
  545. package/dist/utils/filters/operators.d.ts.map +1 -0
  546. package/dist/utils/filters/operators.js +214 -0
  547. package/dist/utils/filters/operators.js.map +1 -0
  548. package/dist/utils/filters/relationship.d.ts +81 -0
  549. package/dist/utils/filters/relationship.d.ts.map +1 -0
  550. package/dist/utils/filters/relationship.js +393 -0
  551. package/dist/utils/filters/relationship.js.map +1 -0
  552. package/dist/utils/filters/translators.d.ts +120 -0
  553. package/dist/utils/filters/translators.d.ts.map +1 -0
  554. package/dist/utils/filters/translators.js +397 -0
  555. package/dist/utils/filters/translators.js.map +1 -0
  556. package/dist/utils/filters/types.d.ts +77 -0
  557. package/dist/utils/filters/types.d.ts.map +1 -0
  558. package/dist/utils/filters/types.js +85 -0
  559. package/dist/utils/filters/types.js.map +1 -0
  560. package/dist/utils/filters/utils.d.ts +86 -0
  561. package/dist/utils/filters/utils.d.ts.map +1 -0
  562. package/dist/utils/filters/utils.js +142 -0
  563. package/dist/utils/filters/utils.js.map +1 -0
  564. package/dist/utils/filters/validation-utils.d.ts +123 -0
  565. package/dist/utils/filters/validation-utils.d.ts.map +1 -0
  566. package/dist/utils/filters/validation-utils.js +282 -0
  567. package/dist/utils/filters/validation-utils.js.map +1 -0
  568. package/dist/utils/filters/validators.d.ts +73 -0
  569. package/dist/utils/filters/validators.d.ts.map +1 -0
  570. package/dist/utils/filters/validators.js +311 -0
  571. package/dist/utils/filters/validators.js.map +1 -0
  572. package/dist/utils/json-serializer.d.ts +68 -0
  573. package/dist/utils/json-serializer.d.ts.map +1 -0
  574. package/dist/utils/json-serializer.js +235 -0
  575. package/dist/utils/json-serializer.js.map +1 -0
  576. package/dist/utils/logger.d.ts +226 -0
  577. package/dist/utils/logger.d.ts.map +1 -0
  578. package/dist/utils/logger.js +323 -0
  579. package/dist/utils/logger.js.map +1 -0
  580. package/dist/utils/numeric-utils.d.ts +27 -0
  581. package/dist/utils/numeric-utils.d.ts.map +1 -0
  582. package/dist/utils/numeric-utils.js +83 -0
  583. package/dist/utils/numeric-utils.js.map +1 -0
  584. package/dist/utils/pagination.d.ts +85 -0
  585. package/dist/utils/pagination.d.ts.map +1 -0
  586. package/dist/utils/pagination.js +169 -0
  587. package/dist/utils/pagination.js.map +1 -0
  588. package/dist/utils/person-lookup.d.ts +35 -0
  589. package/dist/utils/person-lookup.d.ts.map +1 -0
  590. package/dist/utils/person-lookup.js +67 -0
  591. package/dist/utils/person-lookup.js.map +1 -0
  592. package/dist/utils/rate-limiter.d.ts +82 -0
  593. package/dist/utils/rate-limiter.d.ts.map +1 -0
  594. package/dist/utils/rate-limiter.js +159 -0
  595. package/dist/utils/rate-limiter.js.map +1 -0
  596. package/dist/utils/record-utils.d.ts +74 -0
  597. package/dist/utils/record-utils.d.ts.map +1 -0
  598. package/dist/utils/record-utils.js +312 -0
  599. package/dist/utils/record-utils.js.map +1 -0
  600. package/dist/utils/relationship-utils.d.ts +61 -0
  601. package/dist/utils/relationship-utils.d.ts.map +1 -0
  602. package/dist/utils/relationship-utils.js +242 -0
  603. package/dist/utils/relationship-utils.js.map +1 -0
  604. package/dist/utils/response-formatter.d.ts +121 -0
  605. package/dist/utils/response-formatter.d.ts.map +1 -0
  606. package/dist/utils/response-formatter.js +188 -0
  607. package/dist/utils/response-formatter.js.map +1 -0
  608. package/dist/utils/uri-parser.d.ts +18 -0
  609. package/dist/utils/uri-parser.d.ts.map +1 -0
  610. package/dist/utils/uri-parser.js +31 -0
  611. package/dist/utils/uri-parser.js.map +1 -0
  612. package/dist/utils/validation.d.ts +59 -0
  613. package/dist/utils/validation.d.ts.map +1 -0
  614. package/dist/utils/validation.js +264 -0
  615. package/dist/utils/validation.js.map +1 -0
  616. package/dist/utils/value-matcher.d.ts +58 -0
  617. package/dist/utils/value-matcher.d.ts.map +1 -0
  618. package/dist/utils/value-matcher.js +131 -0
  619. package/dist/utils/value-matcher.js.map +1 -0
  620. package/dist/validators/attribute-validator.d.ts +59 -0
  621. package/dist/validators/attribute-validator.d.ts.map +1 -0
  622. package/dist/validators/attribute-validator.js +531 -0
  623. package/dist/validators/attribute-validator.js.map +1 -0
  624. package/dist/validators/company/field_detector.d.ts +5 -0
  625. package/dist/validators/company/field_detector.d.ts.map +1 -0
  626. package/dist/validators/company/field_detector.js +95 -0
  627. package/dist/validators/company/field_detector.js.map +1 -0
  628. package/dist/validators/company/index.d.ts +26 -0
  629. package/dist/validators/company/index.d.ts.map +1 -0
  630. package/dist/validators/company/index.js +433 -0
  631. package/dist/validators/company/index.js.map +1 -0
  632. package/dist/validators/company/type_cache.d.ts +14 -0
  633. package/dist/validators/company/type_cache.d.ts.map +1 -0
  634. package/dist/validators/company/type_cache.js +28 -0
  635. package/dist/validators/company/type_cache.js.map +1 -0
  636. package/dist/validators/company/types.d.ts +8 -0
  637. package/dist/validators/company/types.d.ts.map +1 -0
  638. package/dist/validators/company/types.js +2 -0
  639. package/dist/validators/company/types.js.map +1 -0
  640. package/dist/validators/company-validator.d.ts +2 -0
  641. package/dist/validators/company-validator.d.ts.map +1 -0
  642. package/dist/validators/company-validator.js +2 -0
  643. package/dist/validators/company-validator.js.map +1 -0
  644. package/package.json +167 -0
@@ -0,0 +1,424 @@
1
+ /**
2
+ * Common type definitions for Attio API responses and entities
3
+ */
4
+ import { RetryConfig } from '../api/operations/index.js';
5
+ /**
6
+ * Base interface for Attio record values
7
+ */
8
+ export interface AttioValue<T> {
9
+ value: T;
10
+ [key: string]: unknown;
11
+ }
12
+ /**
13
+ * Valid filter condition types for Attio API
14
+ */
15
+ export declare enum FilterConditionType {
16
+ EQUALS = "equals",
17
+ NOT_EQUALS = "not_equals",
18
+ CONTAINS = "contains",
19
+ NOT_CONTAINS = "not_contains",
20
+ STARTS_WITH = "starts_with",
21
+ ENDS_WITH = "ends_with",
22
+ GREATER_THAN = "greater_than",
23
+ LESS_THAN = "less_than",
24
+ GREATER_THAN_OR_EQUALS = "greater_than_or_equals",
25
+ LESS_THAN_OR_EQUALS = "less_than_or_equals",
26
+ BEFORE = "before",
27
+ AFTER = "after",
28
+ BETWEEN = "between",
29
+ IS_EMPTY = "is_empty",
30
+ IS_NOT_EMPTY = "is_not_empty",
31
+ IS_SET = "is_set",
32
+ IS_NOT_SET = "is_not_set"
33
+ }
34
+ /**
35
+ * Type guard to check if a string is a valid filter condition
36
+ *
37
+ * This function validates that a given string represents a valid filter condition
38
+ * type as defined in the FilterConditionType enum. It provides type safety when
39
+ * working with filter conditions from external input.
40
+ *
41
+ * @param condition - The string condition to check
42
+ * @returns True if the condition is a valid FilterConditionType, false otherwise
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ * const userCondition = "equals";
47
+ *
48
+ * if (isValidFilterCondition(userCondition)) {
49
+ * // TypeScript knows userCondition is a FilterConditionType here
50
+ * // Safe to use in filter operations
51
+ * } else {
52
+ * // Handle invalid condition
53
+ * throw new FilterValidationError(`Invalid filter condition: ${userCondition}`);
54
+ * }
55
+ * ```
56
+ */
57
+ export declare function isValidFilterCondition(condition: string): condition is FilterConditionType;
58
+ /**
59
+ * Time units for relative date expressions
60
+ */
61
+ export declare enum RelativeDateUnit {
62
+ DAY = "day",
63
+ WEEK = "week",
64
+ MONTH = "month",
65
+ QUARTER = "quarter",
66
+ YEAR = "year"
67
+ }
68
+ /**
69
+ * Supported date range preset values
70
+ */
71
+ export declare enum DateRangePreset {
72
+ TODAY = "today",
73
+ YESTERDAY = "yesterday",
74
+ THIS_WEEK = "this_week",
75
+ LAST_WEEK = "last_week",
76
+ THIS_MONTH = "this_month",
77
+ LAST_MONTH = "last_month",
78
+ THIS_QUARTER = "this_quarter",
79
+ LAST_QUARTER = "last_quarter",
80
+ THIS_YEAR = "this_year",
81
+ LAST_YEAR = "last_year"
82
+ }
83
+ /**
84
+ * Representation of a relative date (e.g., "last 7 days")
85
+ */
86
+ export interface RelativeDate {
87
+ unit: RelativeDateUnit;
88
+ value: number;
89
+ direction: 'past' | 'future';
90
+ }
91
+ /**
92
+ * Date range specification for filtering
93
+ */
94
+ export interface DateRange {
95
+ start?: string | RelativeDate;
96
+ end?: string | RelativeDate;
97
+ preset?: string;
98
+ }
99
+ /**
100
+ * Numeric range specification for filtering
101
+ */
102
+ export interface NumericRange {
103
+ min?: number;
104
+ max?: number;
105
+ equals?: number;
106
+ }
107
+ /**
108
+ * Interaction types for activity filtering
109
+ */
110
+ export declare enum InteractionType {
111
+ ANY = "any",
112
+ EMAIL = "email",
113
+ CALENDAR = "calendar",
114
+ PHONE = "phone",
115
+ MEETING = "meeting",
116
+ CUSTOM = "custom"
117
+ }
118
+ /**
119
+ * Activity history related filtering options
120
+ */
121
+ export interface ActivityFilter {
122
+ dateRange: DateRange;
123
+ interactionType?: InteractionType;
124
+ }
125
+ /**
126
+ * Base interface for Attio records (common between people and companies)
127
+ */
128
+ export interface AttioRecord {
129
+ id: {
130
+ record_id: string;
131
+ [key: string]: unknown;
132
+ };
133
+ values: {
134
+ name?: Array<AttioValue<string>>;
135
+ email?: Array<AttioValue<string>>;
136
+ phone?: Array<AttioValue<string>>;
137
+ industry?: Array<AttioValue<string>>;
138
+ website?: Array<AttioValue<string>>;
139
+ [key: string]: unknown;
140
+ };
141
+ [key: string]: unknown;
142
+ }
143
+ /**
144
+ * Interface for a batch request item
145
+ */
146
+ export interface BatchRequestItem<T> {
147
+ params: T;
148
+ id?: string;
149
+ }
150
+ /**
151
+ * Interface for a batch operation result item
152
+ */
153
+ export interface BatchItemResult<R> {
154
+ id?: string;
155
+ success: boolean;
156
+ data?: R;
157
+ error?: unknown;
158
+ }
159
+ /**
160
+ * Interface for a batch operation response
161
+ */
162
+ export interface BatchResponse<R> {
163
+ results: BatchItemResult<R>[];
164
+ summary: {
165
+ total: number;
166
+ succeeded: number;
167
+ failed: number;
168
+ };
169
+ }
170
+ /**
171
+ * Configuration options for batch operations
172
+ */
173
+ export interface BatchConfig {
174
+ maxBatchSize: number;
175
+ continueOnError: boolean;
176
+ retryConfig?: RetryConfig;
177
+ }
178
+ /**
179
+ * Note record type
180
+ */
181
+ export interface AttioNote {
182
+ id: {
183
+ note_id: string;
184
+ [key: string]: unknown;
185
+ };
186
+ title: string;
187
+ content: string;
188
+ format: string;
189
+ parent_object: string;
190
+ parent_record_id: string;
191
+ created_at: string;
192
+ updated_at: string;
193
+ [key: string]: unknown;
194
+ }
195
+ /**
196
+ * List record type
197
+ */
198
+ export interface AttioList {
199
+ id: {
200
+ list_id: string;
201
+ [key: string]: unknown;
202
+ };
203
+ title: string;
204
+ name?: string;
205
+ description?: string;
206
+ object_slug: string;
207
+ workspace_id: string;
208
+ created_at: string;
209
+ updated_at: string;
210
+ entry_count?: number;
211
+ [key: string]: unknown;
212
+ }
213
+ /**
214
+ * List entry record type
215
+ */
216
+ export interface AttioListEntry {
217
+ id?: {
218
+ entry_id?: string;
219
+ [key: string]: unknown;
220
+ };
221
+ list_id?: string;
222
+ record_id?: string;
223
+ parent_record_id?: string;
224
+ reference_id?: string;
225
+ object_id?: string;
226
+ created_at?: string;
227
+ updated_at?: string;
228
+ record?: {
229
+ id?: {
230
+ record_id?: string;
231
+ [key: string]: unknown;
232
+ };
233
+ record_id?: string;
234
+ reference_id?: string;
235
+ values?: Record<string, any>;
236
+ object_slug?: string;
237
+ uri?: string;
238
+ [key: string]: unknown;
239
+ };
240
+ values?: Record<string, any>;
241
+ [key: string]: unknown;
242
+ }
243
+ /**
244
+ * Task record type
245
+ */
246
+ export interface AttioTask {
247
+ id: {
248
+ task_id: string;
249
+ [key: string]: unknown;
250
+ };
251
+ content: string;
252
+ status: string;
253
+ assignee?: {
254
+ id: string;
255
+ type: string;
256
+ name?: string;
257
+ email?: string;
258
+ avatar_url?: string;
259
+ [key: string]: unknown;
260
+ };
261
+ due_date?: string;
262
+ linked_records?: Array<{
263
+ id: string;
264
+ object_id?: string;
265
+ object_slug?: string;
266
+ title?: string;
267
+ [key: string]: unknown;
268
+ }>;
269
+ created_at: string;
270
+ updated_at: string;
271
+ [key: string]: unknown;
272
+ }
273
+ /**
274
+ * Resource type enum for better type safety
275
+ */
276
+ export declare enum ResourceType {
277
+ PEOPLE = "people",
278
+ COMPANIES = "companies",
279
+ LISTS = "lists",
280
+ RECORDS = "records",
281
+ TASKS = "tasks"
282
+ }
283
+ /**
284
+ * Relationship types in Attio
285
+ * Defines the types of relationships between different record types
286
+ */
287
+ export declare enum RelationshipType {
288
+ WORKS_AT = "works_at",// Person to Company relationship
289
+ EMPLOYS = "employs",// Company to Person relationship
290
+ BELONGS_TO_LIST = "in_list",// Any record to List relationship
291
+ HAS_NOTE = "has_note"
292
+ }
293
+ /**
294
+ * API error response shape
295
+ */
296
+ export interface AttioErrorResponse {
297
+ status?: number;
298
+ data?: unknown;
299
+ headers?: Record<string, string>;
300
+ error?: string;
301
+ message?: string;
302
+ details?: unknown;
303
+ [key: string]: unknown;
304
+ }
305
+ /**
306
+ * API response containing a list of records
307
+ */
308
+ export interface AttioListResponse<T> {
309
+ data: T[];
310
+ pagination?: {
311
+ total_count: number;
312
+ next_cursor?: string;
313
+ [key: string]: unknown;
314
+ };
315
+ has_more?: boolean;
316
+ next_cursor?: string;
317
+ [key: string]: unknown;
318
+ }
319
+ /**
320
+ * API response containing a single record
321
+ */
322
+ export interface AttioSingleResponse<T> {
323
+ data: T;
324
+ [key: string]: unknown;
325
+ }
326
+ export interface Person extends AttioRecord {
327
+ values: {
328
+ name?: Array<{
329
+ value: string;
330
+ }>;
331
+ email?: Array<{
332
+ value: string;
333
+ }>;
334
+ phone?: Array<{
335
+ value: string;
336
+ }>;
337
+ [key: string]: unknown;
338
+ };
339
+ }
340
+ /**
341
+ * Attributes for creating a person via MCP tools
342
+ */
343
+ export interface PersonCreateAttributes {
344
+ name?: string;
345
+ email_addresses?: string[];
346
+ phone_numbers?: string[];
347
+ job_title?: string;
348
+ company?: string;
349
+ [key: string]: unknown;
350
+ }
351
+ export interface Company extends AttioRecord {
352
+ values: {
353
+ name?: Array<{
354
+ value: string;
355
+ }>;
356
+ website?: Array<{
357
+ value: string;
358
+ }>;
359
+ industry?: Array<{
360
+ value: string;
361
+ }>;
362
+ [key: string]: unknown;
363
+ };
364
+ }
365
+ /**
366
+ * Record attribute types
367
+ */
368
+ export interface RecordAttributes {
369
+ [key: string]: unknown;
370
+ }
371
+ /**
372
+ * Parameters for creating a record
373
+ */
374
+ export interface RecordCreateParams {
375
+ objectSlug: string;
376
+ objectId?: string;
377
+ attributes: RecordAttributes;
378
+ }
379
+ /**
380
+ * Parameters for updating a record
381
+ */
382
+ export interface RecordUpdateParams {
383
+ objectSlug: string;
384
+ objectId?: string;
385
+ recordId: string;
386
+ attributes: RecordAttributes;
387
+ }
388
+ /**
389
+ * Parameters for listing records
390
+ */
391
+ export interface RecordListParams {
392
+ objectSlug: string;
393
+ objectId?: string;
394
+ page?: number;
395
+ pageSize?: number;
396
+ query?: string;
397
+ attributes?: string[];
398
+ sort?: string;
399
+ direction?: 'asc' | 'desc';
400
+ }
401
+ /**
402
+ * Record item for batch operations
403
+ */
404
+ export interface BatchRecordItem {
405
+ id?: string;
406
+ attributes: RecordAttributes;
407
+ }
408
+ /**
409
+ * Parameters for batch creating records
410
+ */
411
+ export interface RecordBatchCreateParams {
412
+ objectSlug: string;
413
+ objectId?: string;
414
+ records: Omit<BatchRecordItem, 'id'>[];
415
+ }
416
+ /**
417
+ * Parameters for batch updating records
418
+ */
419
+ export interface RecordBatchUpdateParams {
420
+ objectSlug: string;
421
+ objectId?: string;
422
+ records: BatchRecordItem[];
423
+ }
424
+ //# sourceMappingURL=attio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attio.d.ts","sourceRoot":"","sources":["../../src/types/attio.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC;IACT,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAE7B,MAAM,WAAW;IACjB,UAAU,eAAe;IAGzB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IAGvB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,sBAAsB,2BAA2B;IACjD,mBAAmB,wBAAwB;IAG3C,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;IAGnB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,GAChB,SAAS,IAAI,mBAAmB,CAIlC;AAED;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED;;GAEG;AACH,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED;;GAEG;AACH,MAAM,W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C,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,EAAE,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B"}
@@ -0,0 +1,116 @@
1
+ /**
2
+ * Valid filter condition types for Attio API
3
+ */
4
+ export var FilterConditionType;
5
+ (function (FilterConditionType) {
6
+ // Equality conditions
7
+ FilterConditionType["EQUALS"] = "equals";
8
+ FilterConditionType["NOT_EQUALS"] = "not_equals";
9
+ // String conditions
10
+ FilterConditionType["CONTAINS"] = "contains";
11
+ FilterConditionType["NOT_CONTAINS"] = "not_contains";
12
+ FilterConditionType["STARTS_WITH"] = "starts_with";
13
+ FilterConditionType["ENDS_WITH"] = "ends_with";
14
+ // Numeric/Date conditions
15
+ FilterConditionType["GREATER_THAN"] = "greater_than";
16
+ FilterConditionType["LESS_THAN"] = "less_than";
17
+ FilterConditionType["GREATER_THAN_OR_EQUALS"] = "greater_than_or_equals";
18
+ FilterConditionType["LESS_THAN_OR_EQUALS"] = "less_than_or_equals";
19
+ // Date range specific conditions
20
+ FilterConditionType["BEFORE"] = "before";
21
+ FilterConditionType["AFTER"] = "after";
22
+ FilterConditionType["BETWEEN"] = "between";
23
+ // Existence conditions
24
+ FilterConditionType["IS_EMPTY"] = "is_empty";
25
+ FilterConditionType["IS_NOT_EMPTY"] = "is_not_empty";
26
+ FilterConditionType["IS_SET"] = "is_set";
27
+ FilterConditionType["IS_NOT_SET"] = "is_not_set";
28
+ })(FilterConditionType || (FilterConditionType = {}));
29
+ /**
30
+ * Type guard to check if a string is a valid filter condition
31
+ *
32
+ * This function validates that a given string represents a valid filter condition
33
+ * type as defined in the FilterConditionType enum. It provides type safety when
34
+ * working with filter conditions from external input.
35
+ *
36
+ * @param condition - The string condition to check
37
+ * @returns True if the condition is a valid FilterConditionType, false otherwise
38
+ *
39
+ * @example
40
+ * ```typescript
41
+ * const userCondition = "equals";
42
+ *
43
+ * if (isValidFilterCondition(userCondition)) {
44
+ * // TypeScript knows userCondition is a FilterConditionType here
45
+ * // Safe to use in filter operations
46
+ * } else {
47
+ * // Handle invalid condition
48
+ * throw new FilterValidationError(`Invalid filter condition: ${userCondition}`);
49
+ * }
50
+ * ```
51
+ */
52
+ export function isValidFilterCondition(condition) {
53
+ return Object.values(FilterConditionType).includes(condition);
54
+ }
55
+ /**
56
+ * Time units for relative date expressions
57
+ */
58
+ export var RelativeDateUnit;
59
+ (function (RelativeDateUnit) {
60
+ RelativeDateUnit["DAY"] = "day";
61
+ RelativeDateUnit["WEEK"] = "week";
62
+ RelativeDateUnit["MONTH"] = "month";
63
+ RelativeDateUnit["QUARTER"] = "quarter";
64
+ RelativeDateUnit["YEAR"] = "year";
65
+ })(RelativeDateUnit || (RelativeDateUnit = {}));
66
+ /**
67
+ * Supported date range preset values
68
+ */
69
+ export var DateRangePreset;
70
+ (function (DateRangePreset) {
71
+ DateRangePreset["TODAY"] = "today";
72
+ DateRangePreset["YESTERDAY"] = "yesterday";
73
+ DateRangePreset["THIS_WEEK"] = "this_week";
74
+ DateRangePreset["LAST_WEEK"] = "last_week";
75
+ DateRangePreset["THIS_MONTH"] = "this_month";
76
+ DateRangePreset["LAST_MONTH"] = "last_month";
77
+ DateRangePreset["THIS_QUARTER"] = "this_quarter";
78
+ DateRangePreset["LAST_QUARTER"] = "last_quarter";
79
+ DateRangePreset["THIS_YEAR"] = "this_year";
80
+ DateRangePreset["LAST_YEAR"] = "last_year";
81
+ })(DateRangePreset || (DateRangePreset = {}));
82
+ /**
83
+ * Interaction types for activity filtering
84
+ */
85
+ export var InteractionType;
86
+ (function (InteractionType) {
87
+ InteractionType["ANY"] = "any";
88
+ InteractionType["EMAIL"] = "email";
89
+ InteractionType["CALENDAR"] = "calendar";
90
+ InteractionType["PHONE"] = "phone";
91
+ InteractionType["MEETING"] = "meeting";
92
+ InteractionType["CUSTOM"] = "custom";
93
+ })(InteractionType || (InteractionType = {}));
94
+ /**
95
+ * Resource type enum for better type safety
96
+ */
97
+ export var ResourceType;
98
+ (function (ResourceType) {
99
+ ResourceType["PEOPLE"] = "people";
100
+ ResourceType["COMPANIES"] = "companies";
101
+ ResourceType["LISTS"] = "lists";
102
+ ResourceType["RECORDS"] = "records";
103
+ ResourceType["TASKS"] = "tasks";
104
+ })(ResourceType || (ResourceType = {}));
105
+ /**
106
+ * Relationship types in Attio
107
+ * Defines the types of relationships between different record types
108
+ */
109
+ export var RelationshipType;
110
+ (function (RelationshipType) {
111
+ RelationshipType["WORKS_AT"] = "works_at";
112
+ RelationshipType["EMPLOYS"] = "employs";
113
+ RelationshipType["BELONGS_TO_LIST"] = "in_list";
114
+ RelationshipType["HAS_NOTE"] = "has_note";
115
+ })(RelationshipType || (RelationshipType = {}));
116
+ //# sourceMappingURL=attio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attio.js","sourceRoot":"","sources":["../../src/types/attio.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,MAAM,CAAN,IAAY,mBA2BX;AA3BD,WAAY,mBAAmB;IAC7B,sBAAsB;IACtB,wCAAiB,CAAA;IACjB,gDAAyB,CAAA;IAEzB,oBAAoB;IACpB,4CAAqB,CAAA;IACrB,oDAA6B,CAAA;IAC7B,kDAA2B,CAAA;IA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e,KAAf,eAAe,QAO1B;AAyKD;;GAEG;AACH,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,uCAAuB,CAAA;IACvB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,+BAAe,CAAA;AACjB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,+CAA2B,CAAA;IAC3B,yCAAqB,CAAA;AACvB,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Type definitions for company operations
3
+ */
4
+ /**
5
+ * Input type for creating a company
6
+ */
7
+ export interface CompanyCreateInput {
8
+ name: string;
9
+ website?: string;
10
+ industry?: string;
11
+ description?: string;
12
+ domain?: string;
13
+ size?: string;
14
+ linkedin_url?: string;
15
+ location?: {
16
+ street?: string;
17
+ city?: string;
18
+ state?: string;
19
+ postal_code?: string;
20
+ country?: string;
21
+ };
22
+ [key: string]: unknown;
23
+ }
24
+ /**
25
+ * Input type for updating a company
26
+ */
27
+ export interface CompanyUpdateInput {
28
+ name?: string;
29
+ website?: string;
30
+ industry?: string;
31
+ description?: string;
32
+ domain?: string;
33
+ size?: string;
34
+ linkedin_url?: string;
35
+ location?: {
36
+ street?: string;
37
+ city?: string;
38
+ state?: string;
39
+ postal_code?: string;
40
+ country?: string;
41
+ };
42
+ [key: string]: unknown;
43
+ }
44
+ /**
45
+ * Type for a company attribute update
46
+ */
47
+ export interface CompanyAttributeUpdate {
48
+ companyId: string;
49
+ attributeName: string;
50
+ attributeValue: string | number | boolean | object | null;
51
+ }
52
+ //# sourceMappingURL=company-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"company-types.d.ts","sourceRoot":"","sources":["../../src/types/company-types.ts"],"names":[],"mappings":"AAAA;;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M,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;CAC3D"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Type definitions for company operations
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=company-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"company-types.js","sourceRoot":"","sources":["../../src/types/company-types.ts"],"names":[],"mappings":"AAAA;;GAEG"}