@arbium/enterprise-agent-connect 0.0.0-stage → 0.1.2-dev.d2aa5ca

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 (319) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +264 -2
  3. package/dist/connectors/dell-techdirect/connector.json +39 -0
  4. package/dist/connectors/dell-techdirect/index.d.ts +8 -0
  5. package/dist/connectors/dell-techdirect/index.js +7 -0
  6. package/dist/connectors/dell-techdirect/index.js.map +1 -0
  7. package/dist/connectors/dell-techdirect/tools.d.ts +2 -0
  8. package/dist/connectors/dell-techdirect/tools.js +49 -0
  9. package/dist/connectors/dell-techdirect/tools.js.map +1 -0
  10. package/dist/connectors/dell-techdirect/vendor.d.ts +6 -0
  11. package/dist/connectors/dell-techdirect/vendor.js +57 -0
  12. package/dist/connectors/dell-techdirect/vendor.js.map +1 -0
  13. package/dist/connectors/dynamics-365/connector.json +213 -0
  14. package/dist/connectors/dynamics-365/index.d.ts +11 -0
  15. package/dist/connectors/dynamics-365/index.js +10 -0
  16. package/dist/connectors/dynamics-365/index.js.map +1 -0
  17. package/dist/connectors/dynamics-365/tools.d.ts +35 -0
  18. package/dist/connectors/dynamics-365/tools.js +806 -0
  19. package/dist/connectors/dynamics-365/tools.js.map +1 -0
  20. package/dist/connectors/dynamics-365/vendor.d.ts +9 -0
  21. package/dist/connectors/dynamics-365/vendor.js +110 -0
  22. package/dist/connectors/dynamics-365/vendor.js.map +1 -0
  23. package/dist/connectors/entra/connector.json +85 -0
  24. package/dist/connectors/entra/index.d.ts +2 -0
  25. package/dist/connectors/entra/index.js +4 -0
  26. package/dist/connectors/entra/index.js.map +1 -0
  27. package/dist/connectors/entra/tools.d.ts +14 -0
  28. package/dist/connectors/entra/tools.js +262 -0
  29. package/dist/connectors/entra/tools.js.map +1 -0
  30. package/dist/connectors/fedex/connector.json +118 -0
  31. package/dist/connectors/fedex/index.d.ts +8 -0
  32. package/dist/connectors/fedex/index.js +7 -0
  33. package/dist/connectors/fedex/index.js.map +1 -0
  34. package/dist/connectors/fedex/tools.d.ts +3 -0
  35. package/dist/connectors/fedex/tools.js +152 -0
  36. package/dist/connectors/fedex/tools.js.map +1 -0
  37. package/dist/connectors/fedex/vendor.d.ts +7 -0
  38. package/dist/connectors/fedex/vendor.js +98 -0
  39. package/dist/connectors/fedex/vendor.js.map +1 -0
  40. package/dist/connectors/gong/connector.json +127 -0
  41. package/dist/connectors/gong/index.d.ts +8 -0
  42. package/dist/connectors/gong/index.js +7 -0
  43. package/dist/connectors/gong/index.js.map +1 -0
  44. package/dist/connectors/gong/tools.d.ts +8 -0
  45. package/dist/connectors/gong/tools.js +424 -0
  46. package/dist/connectors/gong/tools.js.map +1 -0
  47. package/dist/connectors/gong/vendor.d.ts +4 -0
  48. package/dist/connectors/gong/vendor.js +97 -0
  49. package/dist/connectors/gong/vendor.js.map +1 -0
  50. package/dist/connectors/http/index.d.ts +38 -0
  51. package/dist/connectors/http/index.js +322 -0
  52. package/dist/connectors/http/index.js.map +1 -0
  53. package/dist/connectors/intune/connector.json +106 -0
  54. package/dist/connectors/intune/index.d.ts +2 -0
  55. package/dist/connectors/intune/index.js +4 -0
  56. package/dist/connectors/intune/index.js.map +1 -0
  57. package/dist/connectors/intune/tools.d.ts +12 -0
  58. package/dist/connectors/intune/tools.js +416 -0
  59. package/dist/connectors/intune/tools.js.map +1 -0
  60. package/dist/connectors/jamf/connector.json +182 -0
  61. package/dist/connectors/jamf/index.d.ts +8 -0
  62. package/dist/connectors/jamf/index.js +7 -0
  63. package/dist/connectors/jamf/index.js.map +1 -0
  64. package/dist/connectors/jamf/tools.d.ts +7 -0
  65. package/dist/connectors/jamf/tools.js +659 -0
  66. package/dist/connectors/jamf/tools.js.map +1 -0
  67. package/dist/connectors/jamf/vendor.d.ts +5 -0
  68. package/dist/connectors/jamf/vendor.js +66 -0
  69. package/dist/connectors/jamf/vendor.js.map +1 -0
  70. package/dist/connectors/jira/connector.json +272 -0
  71. package/dist/connectors/jira/index.d.ts +8 -0
  72. package/dist/connectors/jira/index.js +7 -0
  73. package/dist/connectors/jira/index.js.map +1 -0
  74. package/dist/connectors/jira/jql.d.ts +4 -0
  75. package/dist/connectors/jira/jql.js +67 -0
  76. package/dist/connectors/jira/jql.js.map +1 -0
  77. package/dist/connectors/jira/tools.d.ts +3 -0
  78. package/dist/connectors/jira/tools.js +464 -0
  79. package/dist/connectors/jira/tools.js.map +1 -0
  80. package/dist/connectors/jira/vendor.d.ts +3 -0
  81. package/dist/connectors/jira/vendor.js +94 -0
  82. package/dist/connectors/jira/vendor.js.map +1 -0
  83. package/dist/connectors/microsoft/client.d.ts +58 -0
  84. package/dist/connectors/microsoft/client.js +434 -0
  85. package/dist/connectors/microsoft/client.js.map +1 -0
  86. package/dist/connectors/microsoft/provider.json +118 -0
  87. package/dist/connectors/netsuite/connector.json +315 -0
  88. package/dist/connectors/netsuite/index.d.ts +8 -0
  89. package/dist/connectors/netsuite/index.js +7 -0
  90. package/dist/connectors/netsuite/index.js.map +1 -0
  91. package/dist/connectors/netsuite/tools.d.ts +24 -0
  92. package/dist/connectors/netsuite/tools.js +447 -0
  93. package/dist/connectors/netsuite/tools.js.map +1 -0
  94. package/dist/connectors/netsuite/vendor.d.ts +26 -0
  95. package/dist/connectors/netsuite/vendor.js +248 -0
  96. package/dist/connectors/netsuite/vendor.js.map +1 -0
  97. package/dist/connectors/odata/index.d.ts +36 -0
  98. package/dist/connectors/odata/index.js +460 -0
  99. package/dist/connectors/odata/index.js.map +1 -0
  100. package/dist/connectors/okta/connector.json +193 -0
  101. package/dist/connectors/okta/index.d.ts +8 -0
  102. package/dist/connectors/okta/index.js +7 -0
  103. package/dist/connectors/okta/index.js.map +1 -0
  104. package/dist/connectors/okta/tools.d.ts +6 -0
  105. package/dist/connectors/okta/tools.js +429 -0
  106. package/dist/connectors/okta/tools.js.map +1 -0
  107. package/dist/connectors/okta/vendor.d.ts +14 -0
  108. package/dist/connectors/okta/vendor.js +203 -0
  109. package/dist/connectors/okta/vendor.js.map +1 -0
  110. package/dist/connectors/outlook-calendar/connector.json +136 -0
  111. package/dist/connectors/outlook-calendar/index.d.ts +2 -0
  112. package/dist/connectors/outlook-calendar/index.js +4 -0
  113. package/dist/connectors/outlook-calendar/index.js.map +1 -0
  114. package/dist/connectors/outlook-calendar/tools.d.ts +65 -0
  115. package/dist/connectors/outlook-calendar/tools.js +398 -0
  116. package/dist/connectors/outlook-calendar/tools.js.map +1 -0
  117. package/dist/connectors/outlook-mail/connector.json +154 -0
  118. package/dist/connectors/outlook-mail/index.d.ts +2 -0
  119. package/dist/connectors/outlook-mail/index.js +4 -0
  120. package/dist/connectors/outlook-mail/index.js.map +1 -0
  121. package/dist/connectors/outlook-mail/tools.d.ts +8 -0
  122. package/dist/connectors/outlook-mail/tools.js +236 -0
  123. package/dist/connectors/outlook-mail/tools.js.map +1 -0
  124. package/dist/connectors/salesforce/connector.json +122 -0
  125. package/dist/connectors/salesforce/index.d.ts +8 -0
  126. package/dist/connectors/salesforce/index.js +7 -0
  127. package/dist/connectors/salesforce/index.js.map +1 -0
  128. package/dist/connectors/salesforce/soql.d.ts +3 -0
  129. package/dist/connectors/salesforce/soql.js +60 -0
  130. package/dist/connectors/salesforce/soql.js.map +1 -0
  131. package/dist/connectors/salesforce/tools.d.ts +9 -0
  132. package/dist/connectors/salesforce/tools.js +234 -0
  133. package/dist/connectors/salesforce/tools.js.map +1 -0
  134. package/dist/connectors/salesforce/vendor.d.ts +3 -0
  135. package/dist/connectors/salesforce/vendor.js +107 -0
  136. package/dist/connectors/salesforce/vendor.js.map +1 -0
  137. package/dist/connectors/sap-s4hana/connector.json +263 -0
  138. package/dist/connectors/sap-s4hana/index.d.ts +8 -0
  139. package/dist/connectors/sap-s4hana/index.js +7 -0
  140. package/dist/connectors/sap-s4hana/index.js.map +1 -0
  141. package/dist/connectors/sap-s4hana/tools.d.ts +4 -0
  142. package/dist/connectors/sap-s4hana/tools.js +761 -0
  143. package/dist/connectors/sap-s4hana/tools.js.map +1 -0
  144. package/dist/connectors/sap-s4hana/vendor.d.ts +5 -0
  145. package/dist/connectors/sap-s4hana/vendor.js +176 -0
  146. package/dist/connectors/sap-s4hana/vendor.js.map +1 -0
  147. package/dist/connectors/servicenow/connector.json +228 -0
  148. package/dist/connectors/servicenow/index.d.ts +8 -0
  149. package/dist/connectors/servicenow/index.js +7 -0
  150. package/dist/connectors/servicenow/index.js.map +1 -0
  151. package/dist/connectors/servicenow/tools.d.ts +4 -0
  152. package/dist/connectors/servicenow/tools.js +884 -0
  153. package/dist/connectors/servicenow/tools.js.map +1 -0
  154. package/dist/connectors/servicenow/vendor.d.ts +4 -0
  155. package/dist/connectors/servicenow/vendor.js +109 -0
  156. package/dist/connectors/servicenow/vendor.js.map +1 -0
  157. package/dist/connectors/sharepoint-files/connector.json +194 -0
  158. package/dist/connectors/sharepoint-files/excel.d.ts +16 -0
  159. package/dist/connectors/sharepoint-files/excel.js +300 -0
  160. package/dist/connectors/sharepoint-files/excel.js.map +1 -0
  161. package/dist/connectors/sharepoint-files/index.d.ts +11 -0
  162. package/dist/connectors/sharepoint-files/index.js +12 -0
  163. package/dist/connectors/sharepoint-files/index.js.map +1 -0
  164. package/dist/connectors/sharepoint-files/tools.d.ts +52 -0
  165. package/dist/connectors/sharepoint-files/tools.js +365 -0
  166. package/dist/connectors/sharepoint-files/tools.js.map +1 -0
  167. package/dist/connectors/sharepoint-files/vendor.d.ts +11 -0
  168. package/dist/connectors/sharepoint-files/vendor.js +167 -0
  169. package/dist/connectors/sharepoint-files/vendor.js.map +1 -0
  170. package/dist/connectors/slack/connector.json +148 -0
  171. package/dist/connectors/slack/index.d.ts +8 -0
  172. package/dist/connectors/slack/index.js +7 -0
  173. package/dist/connectors/slack/index.js.map +1 -0
  174. package/dist/connectors/slack/tools.d.ts +3 -0
  175. package/dist/connectors/slack/tools.js +355 -0
  176. package/dist/connectors/slack/tools.js.map +1 -0
  177. package/dist/connectors/slack/vendor.d.ts +17 -0
  178. package/dist/connectors/slack/vendor.js +195 -0
  179. package/dist/connectors/slack/vendor.js.map +1 -0
  180. package/dist/connectors/soap/index.d.ts +19 -0
  181. package/dist/connectors/soap/index.js +248 -0
  182. package/dist/connectors/soap/index.js.map +1 -0
  183. package/dist/connectors/soap/xml.d.ts +12 -0
  184. package/dist/connectors/soap/xml.js +126 -0
  185. package/dist/connectors/soap/xml.js.map +1 -0
  186. package/dist/connectors/sql/engines.d.ts +58 -0
  187. package/dist/connectors/sql/engines.js +292 -0
  188. package/dist/connectors/sql/engines.js.map +1 -0
  189. package/dist/connectors/sql/index.d.ts +19 -0
  190. package/dist/connectors/sql/index.js +212 -0
  191. package/dist/connectors/sql/index.js.map +1 -0
  192. package/dist/connectors/teams/connector.json +298 -0
  193. package/dist/connectors/teams/index.d.ts +2 -0
  194. package/dist/connectors/teams/index.js +5 -0
  195. package/dist/connectors/teams/index.js.map +1 -0
  196. package/dist/connectors/teams/tools.d.ts +2 -0
  197. package/dist/connectors/teams/tools.js +391 -0
  198. package/dist/connectors/teams/tools.js.map +1 -0
  199. package/dist/connectors/workday/connector.json +186 -0
  200. package/dist/connectors/workday/index.d.ts +8 -0
  201. package/dist/connectors/workday/index.js +7 -0
  202. package/dist/connectors/workday/index.js.map +1 -0
  203. package/dist/connectors/workday/tools.d.ts +33 -0
  204. package/dist/connectors/workday/tools.js +410 -0
  205. package/dist/connectors/workday/tools.js.map +1 -0
  206. package/dist/connectors/workday/vendor.d.ts +18 -0
  207. package/dist/connectors/workday/vendor.js +195 -0
  208. package/dist/connectors/workday/vendor.js.map +1 -0
  209. package/dist/packages/connector-kit/src/branding.d.ts +57 -0
  210. package/dist/packages/connector-kit/src/branding.js +102 -0
  211. package/dist/packages/connector-kit/src/branding.js.map +1 -0
  212. package/dist/packages/connector-kit/src/certificate.d.ts +19 -0
  213. package/dist/packages/connector-kit/src/certificate.js +84 -0
  214. package/dist/packages/connector-kit/src/certificate.js.map +1 -0
  215. package/dist/packages/connector-kit/src/common.d.ts +40 -0
  216. package/dist/packages/connector-kit/src/common.js +107 -0
  217. package/dist/packages/connector-kit/src/common.js.map +1 -0
  218. package/dist/packages/connector-kit/src/connector.d.ts +1346 -0
  219. package/dist/packages/connector-kit/src/connector.js +1034 -0
  220. package/dist/packages/connector-kit/src/connector.js.map +1 -0
  221. package/dist/packages/connector-kit/src/index.d.ts +5 -0
  222. package/dist/packages/connector-kit/src/index.js +5 -0
  223. package/dist/packages/connector-kit/src/index.js.map +1 -0
  224. package/dist/packages/connector-kit/src/oauth.d.ts +15 -0
  225. package/dist/packages/connector-kit/src/oauth.js +96 -0
  226. package/dist/packages/connector-kit/src/oauth.js.map +1 -0
  227. package/dist/packages/connector-kit/src/types.d.ts +85 -0
  228. package/dist/packages/connector-kit/src/types.js +20 -0
  229. package/dist/packages/connector-kit/src/types.js.map +1 -0
  230. package/dist/packages/server/migrations/0001_tables.sql +268 -0
  231. package/dist/packages/server/migrations/0002_organizations.sql +72 -0
  232. package/dist/packages/server/migrations/0003_drop_unused.sql +3 -0
  233. package/dist/packages/server/migrations/0004_trigger_runners.sql +15 -0
  234. package/dist/packages/server/migrations/0005_run_runner.sql +3 -0
  235. package/dist/packages/server/migrations/0006_approvals.sql +36 -0
  236. package/dist/packages/server/migrations/0007_app_events.sql +110 -0
  237. package/dist/packages/server/migrations/rollback/to-legacy.sql +90 -0
  238. package/dist/packages/server/src/api.d.ts +3714 -0
  239. package/dist/packages/server/src/api.js +818 -0
  240. package/dist/packages/server/src/api.js.map +1 -0
  241. package/dist/packages/server/src/app.d.ts +23 -0
  242. package/dist/packages/server/src/app.js +467 -0
  243. package/dist/packages/server/src/app.js.map +1 -0
  244. package/dist/packages/server/src/builtin.d.ts +4 -0
  245. package/dist/packages/server/src/builtin.js +42 -0
  246. package/dist/packages/server/src/builtin.js.map +1 -0
  247. package/dist/packages/server/src/consent.d.ts +27 -0
  248. package/dist/packages/server/src/consent.js +36 -0
  249. package/dist/packages/server/src/consent.js.map +1 -0
  250. package/dist/packages/server/src/events/admin.d.ts +156 -0
  251. package/dist/packages/server/src/events/admin.js +255 -0
  252. package/dist/packages/server/src/events/admin.js.map +1 -0
  253. package/dist/packages/server/src/events/deliver.d.ts +43 -0
  254. package/dist/packages/server/src/events/deliver.js +129 -0
  255. package/dist/packages/server/src/events/deliver.js.map +1 -0
  256. package/dist/packages/server/src/events/runtime.d.ts +28 -0
  257. package/dist/packages/server/src/events/runtime.js +397 -0
  258. package/dist/packages/server/src/events/runtime.js.map +1 -0
  259. package/dist/packages/server/src/events/store.d.ts +172 -0
  260. package/dist/packages/server/src/events/store.js +275 -0
  261. package/dist/packages/server/src/events/store.js.map +1 -0
  262. package/dist/packages/server/src/index.d.ts +40 -0
  263. package/dist/packages/server/src/index.js +185 -0
  264. package/dist/packages/server/src/index.js.map +1 -0
  265. package/dist/packages/server/src/migrate.d.ts +11 -0
  266. package/dist/packages/server/src/migrate.js +134 -0
  267. package/dist/packages/server/src/migrate.js.map +1 -0
  268. package/dist/packages/server/src/openapi.d.ts +4 -0
  269. package/dist/packages/server/src/openapi.js +101 -0
  270. package/dist/packages/server/src/openapi.js.map +1 -0
  271. package/dist/packages/server/src/queue.d.ts +10 -0
  272. package/dist/packages/server/src/queue.js +45 -0
  273. package/dist/packages/server/src/queue.js.map +1 -0
  274. package/dist/packages/server/src/secrets.d.ts +19 -0
  275. package/dist/packages/server/src/secrets.js +76 -0
  276. package/dist/packages/server/src/secrets.js.map +1 -0
  277. package/dist/packages/server/src/server.d.ts +1 -0
  278. package/dist/packages/server/src/server.js +82 -0
  279. package/dist/packages/server/src/server.js.map +1 -0
  280. package/dist/packages/server/src/service.d.ts +760 -0
  281. package/dist/packages/server/src/service.js +918 -0
  282. package/dist/packages/server/src/service.js.map +1 -0
  283. package/dist/packages/server/src/store.d.ts +158 -0
  284. package/dist/packages/server/src/store.js +415 -0
  285. package/dist/packages/server/src/store.js.map +1 -0
  286. package/dist/packages/server/src/teams/activity.d.ts +123 -0
  287. package/dist/packages/server/src/teams/activity.js +188 -0
  288. package/dist/packages/server/src/teams/activity.js.map +1 -0
  289. package/dist/packages/server/src/teams/admin.d.ts +335 -0
  290. package/dist/packages/server/src/teams/admin.js +699 -0
  291. package/dist/packages/server/src/teams/admin.js.map +1 -0
  292. package/dist/packages/server/src/teams/approval.d.ts +57 -0
  293. package/dist/packages/server/src/teams/approval.js +118 -0
  294. package/dist/packages/server/src/teams/approval.js.map +1 -0
  295. package/dist/packages/server/src/teams/bot.d.ts +25 -0
  296. package/dist/packages/server/src/teams/bot.js +124 -0
  297. package/dist/packages/server/src/teams/bot.js.map +1 -0
  298. package/dist/packages/server/src/teams/claude.d.ts +46 -0
  299. package/dist/packages/server/src/teams/claude.js +165 -0
  300. package/dist/packages/server/src/teams/claude.js.map +1 -0
  301. package/dist/packages/server/src/teams/jwt.d.ts +17 -0
  302. package/dist/packages/server/src/teams/jwt.js +121 -0
  303. package/dist/packages/server/src/teams/jwt.js.map +1 -0
  304. package/dist/packages/server/src/teams/package.d.ts +79 -0
  305. package/dist/packages/server/src/teams/package.js +319 -0
  306. package/dist/packages/server/src/teams/package.js.map +1 -0
  307. package/dist/packages/server/src/teams/provision.d.ts +84 -0
  308. package/dist/packages/server/src/teams/provision.js +505 -0
  309. package/dist/packages/server/src/teams/provision.js.map +1 -0
  310. package/dist/packages/server/src/teams/runner.d.ts +80 -0
  311. package/dist/packages/server/src/teams/runner.js +187 -0
  312. package/dist/packages/server/src/teams/runner.js.map +1 -0
  313. package/dist/packages/server/src/teams/runtime.d.ts +91 -0
  314. package/dist/packages/server/src/teams/runtime.js +679 -0
  315. package/dist/packages/server/src/teams/runtime.js.map +1 -0
  316. package/dist/packages/server/src/teams/store.d.ts +233 -0
  317. package/dist/packages/server/src/teams/store.js +507 -0
  318. package/dist/packages/server/src/teams/store.js.map +1 -0
  319. package/package.json +68 -4
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,265 @@
1
- # Temporary Holding Version
1
+ # Enterprise Agent Connect
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Connect your company's apps once, then give each AI agent its own key with only the access you
4
+ grant it. Agents reach the apps through one MCP endpoint; every call is checked against the
5
+ agent's grants and written to an audit log. Agents never hold the apps' credentials.
6
+
7
+ - **Built-in apps:** Jira, Microsoft 365 (Outlook mail and calendar, SharePoint files and Excel,
8
+ Teams, Entra ID, Intune, Dynamics 365), Jamf Pro, Okta, Slack, Salesforce, Gong, SAP S/4HANA,
9
+ Oracle NetSuite, ServiceNow, Workday, FedEx, Dell TechDirect.
10
+ - **Your own apps without code:** describe an internal REST API or a SaaS app's in one
11
+ `connector.json`, or draft one from its OpenAPI spec
12
+ ([docs/http-connector.md](docs/http-connector.md)); a SOAP service
13
+ ([docs/soap-connector.md](docs/soap-connector.md)) or an OData service such as SAP S/4HANA,
14
+ Dynamics 365 or SuccessFactors ([docs/odata-connector.md](docs/odata-connector.md)), drafted
15
+ from its WSDL or `$metadata`; or a database (PostgreSQL, SQL Server, MySQL, MariaDB, Oracle)
16
+ as named queries ([docs/sql-connector.md](docs/sql-connector.md)).
17
+ - **Per-agent access:** tick what each agent can do per app, and limit it to values (mailboxes,
18
+ sites, projects, customers). Anything that deletes needs an explicit confirmation.
19
+ - **Agents started by app events:** a Jira issue created or updated starts the agents you choose,
20
+ each within its own limits, by webhook or by polling apps that cannot send one
21
+ ([docs/triggers.md](docs/triggers.md)).
22
+ - **Self-hosted:** one Node service and Postgres. No UI ships; the admin API
23
+ (`packages/server/openapi.json`) and the typed client (`packages/client`) are for building
24
+ your own admin pages.
25
+
26
+ How it is secured: [docs/security.md](docs/security.md). Adding apps:
27
+ [docs/connectors.md](docs/connectors.md).
28
+
29
+ ## Quick start (about 10 minutes)
30
+
31
+ Needs Docker with Compose v2, `openssl` and `curl`. This runs the service, Postgres and a small
32
+ example internal app (an orders API), then gives an agent read access to one customer's orders.
33
+
34
+ ```sh
35
+ cd deploy/docker
36
+ cp .env.example .env
37
+ sed -i.bak "s|^CONNECT_ENCRYPTION_KEY=|CONNECT_ENCRYPTION_KEY=$(openssl rand -base64 32)|; \
38
+ s|^AGENT_CONNECT_ADMIN_TOKEN=|AGENT_CONNECT_ADMIN_TOKEN=$(openssl rand -hex 32)|; \
39
+ s|^POSTGRES_PASSWORD=|POSTGRES_PASSWORD=$(openssl rand -hex 24)|" .env && rm .env.bak
40
+ docker compose -f docker-compose.yml -f docker-compose.example.yml up --build --wait
41
+ ```
42
+
43
+ Keep `CONNECT_ENCRYPTION_KEY`: it seals every stored credential, and nothing saved opens without
44
+ it. The service listens on port 3000 of this machine only and applies its database migrations.
45
+
46
+ **1. Make an organization and connect the example app** (its API key is `example-key`):
47
+
48
+ ```sh
49
+ TOKEN=$(grep ^AGENT_CONNECT_ADMIN_TOKEN .env | cut -d= -f2)
50
+ admin() { curl -s -H "Authorization: Bearer $TOKEN" -H 'content-type: application/json' \
51
+ "http://localhost:3000/agent-connect/admin/v1$@"; }
52
+
53
+ ORG=$(admin /orgs -X POST -d '{"name":"Example Org"}' | sed 's/.*"id":"\([^"]*\)".*/\1/')
54
+ admin /orgs/$ORG/connections/orders -X PUT \
55
+ -d '{"capabilities":["read","notes"],"fields":{"api_key":"example-key"},"connectedBy":"Example Admin"}'
56
+ ```
57
+
58
+ `capabilities` is the most any agent may get from this app; connecting runs the app's check.
59
+
60
+ **2. Make an agent and grant it "Read orders" for customer `acme` only.** The key is shown once:
61
+
62
+ ```sh
63
+ NEW=$(admin /orgs/$ORG/agents -X POST -d '{"name":"demo","createdBy":"Example Admin"}')
64
+ KEY=$(echo "$NEW" | sed 's/.*"key":"\([^"]*\)".*/\1/')
65
+ AGENT=$(echo "$NEW" | sed 's/.*"agent":{[^}]*"id":"\([^"]*\)".*/\1/')
66
+ admin /orgs/$ORG/agents/$AGENT/grants/orders -X PUT \
67
+ -d '{"capabilities":["read"],"limits":{"customers":["acme"]},"by":"Example Admin"}'
68
+ ```
69
+
70
+ **3. Use it from Claude Code:**
71
+
72
+ ```sh
73
+ claude mcp add --transport http orders http://localhost:3000/agent-connect/mcp \
74
+ --header "Authorization: Bearer $KEY"
75
+ ```
76
+
77
+ Ask Claude for acme's orders, then for order 1002 (a different customer's): the first works, the
78
+ second is refused, and both are in the audit log (`admin /orgs/$ORG/audit`). Any MCP client works
79
+ the same way, for example `curl`:
80
+
81
+ ```sh
82
+ curl -s http://localhost:3000/agent-connect/mcp -H "Authorization: Bearer $KEY" \
83
+ -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
84
+ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"orders_get","arguments":{"id":"1001"}}}'
85
+ ```
86
+
87
+ Stop with `docker compose -f docker-compose.yml -f docker-compose.example.yml down` (add `-v` to
88
+ delete the database too).
89
+
90
+ **Going further:** connect a real app from `GET /agent-connect/admin/v1/connectors` (each one
91
+ lists its setup steps, as click paths and as commands), add your own app
92
+ ([docs/http-connector.md](docs/http-connector.md)), or embed the service in your own Node app
93
+ (below).
94
+
95
+ Only `/agent-connect/mcp`, `/agent-connect/teams` and `/agent-connect/events` may be public. The admin API refuses any
96
+ request that carries `X-Forwarded-For`, so never route it through a public load balancer.
97
+
98
+ ## Use it in your code
99
+
100
+ ```sh
101
+ npm install @arbium/enterprise-agent-connect @arbium/enterprise-agent-connect-client
102
+ ```
103
+
104
+ Both packages ship TypeScript types. Every snippet here is run by `scripts/consumer-test.sh`
105
+ (full files: `scripts/consumer/`) against the packed packages, in CI.
106
+
107
+ **Embed the service.** One instance per process, in a module of its own:
108
+
109
+ ```ts
110
+ import { builtinConnectors, createAgentConnect } from "@arbium/enterprise-agent-connect";
111
+
112
+ export const eac = await createAgentConnect({
113
+ database: { url: process.env.DATABASE_URL! }, // or a postgres.js instance
114
+ encryptionKey: process.env.CONNECT_ENCRYPTION_KEY!,
115
+ adminToken: process.env.AGENT_CONNECT_ADMIN_TOKEN!,
116
+ connectors: [...builtinConnectors, orders, inventory], // default: every built-in app
117
+ });
118
+ eac.start(); // the Teams and app event workers; await eac.stop() on shutdown
119
+ ```
120
+
121
+ `connectors` is the list of apps this deployment offers. Leave it out for every built-in app;
122
+ pass `builtinConnectors.filter((c) => ["jira", "fedex"].includes(c.id))` for only some.
123
+
124
+ `eac.fetch` is a plain `(Request) => Promise<Response>` serving `/agent-connect/*`. Mount it at
125
+ that path, before any body parser (Express and plain Node use `@hono/node-server`):
126
+
127
+ ```ts
128
+ // Hono
129
+ app.all("/agent-connect/*", (c) => eac.fetch(c.req.raw));
130
+
131
+ // Express 5
132
+ import { getRequestListener } from "@hono/node-server";
133
+ app.all("/agent-connect/*splat", getRequestListener(eac.fetch));
134
+
135
+ // Next.js: app/agent-connect/[...path]/route.ts (Node runtime)
136
+ const handler = (req: Request) => eac.fetch(req);
137
+ export { handler as GET, handler as POST, handler as PUT, handler as PATCH, handler as DELETE };
138
+
139
+ // Plain Node
140
+ import { serve } from "@hono/node-server";
141
+ serve({ fetch: eac.fetch, port: 3000 });
142
+ ```
143
+
144
+ **The typed admin client.** The admin API refuses requests that came through a load balancer
145
+ (`X-Forwarded-For`), so call it from your server, over the network or in the same process:
146
+
147
+ ```ts
148
+ import { createClient } from "@arbium/enterprise-agent-connect-client";
149
+
150
+ const admin = createClient({ baseUrl: "http://localhost:3000", token: process.env.AGENT_CONNECT_ADMIN_TOKEN! });
151
+ // In the same process as eac, with no network hop:
152
+ // createClient({ baseUrl: "http://agent-connect", token, fetch: (input, init) => eac.fetch(new Request(input, init)) })
153
+
154
+ const org = await admin.organizations.create("Example Org");
155
+ await admin.connect(org.id, "orders", {
156
+ capabilities: ["read"],
157
+ fields: { api_key: "example-key" },
158
+ connectedBy: "Example Admin",
159
+ });
160
+ const { agent, key } = await admin.createAgent(org.id, { name: "demo", createdBy: "Example Admin" });
161
+ await admin.setGrant(org.id, agent.id, "orders", ["read"], { customers: ["acme"] }, "Example Admin");
162
+ const rows = await admin.audit(org.id, { agent: agent.id });
163
+ ```
164
+
165
+ **Your own app, no code.** Pass a connector definition with an `http` block
166
+ ([docs/http-connector.md](docs/http-connector.md)), or a `soap` or `odata` block, straight into
167
+ `connectors`. It is checked like
168
+ a `connector.json`; the type is `ConnectorJson`:
169
+
170
+ ```ts
171
+ import type { ConnectorJson } from "@arbium/enterprise-agent-connect";
172
+
173
+ const orders: ConnectorJson = {
174
+ id: "orders",
175
+ name: "Orders",
176
+ // ...setup steps, fields, capabilities, limits and verify, as in a connector.json
177
+ http: {
178
+ baseUrl: "https://orders.internal.example.com/api",
179
+ auth: { type: "header", header: "X-Api-Key", value: "api_key" },
180
+ tools: [{ name: "orders_get", description: "Read one order by its id.", method: "GET", path: "/orders/{id}",
181
+ params: { id: { type: "string", description: "The order id", in: "path" } } }],
182
+ },
183
+ };
184
+ ```
185
+
186
+ **Your own app, as code.** Build a `ConnectorModule` on the connector kit and give it its
187
+ definition as `connector` ([docs/connectors.md](docs/connectors.md)):
188
+
189
+ ```ts
190
+ import { z } from "zod";
191
+ import { audited, Denied, json, listLimit, type ConnectorModule } from "@arbium/enterprise-agent-connect/kit";
192
+
193
+ const inventory: ConnectorModule = {
194
+ id: "inventory",
195
+ connector: { id: "inventory", /* ...the rest of its connector.json */ },
196
+ create: () => ({
197
+ vendor: { connect: async (fields) => ({ ... }), call: async (connection, request) => ({ ... }) },
198
+ toolset: {
199
+ names: ["inventory_get_stock"],
200
+ register(server, ctx, allowed) {
201
+ if (allowed.has("inventory_get_stock"))
202
+ server.registerTool("inventory_get_stock",
203
+ { description: "How many of one item are in stock.", inputSchema: z.object({ sku: z.string() }) },
204
+ ({ sku }) => audited(ctx, "inventory_get_stock", sku, async (mark) => {
205
+ const skus = listLimit(ctx.limits, "skus");
206
+ if (skus && !skus.includes(sku)) throw new Denied(`This agent may not read ${sku}`);
207
+ const res = await ctx.call({ method: "GET", path: `/stock/${encodeURIComponent(sku)}` });
208
+ mark(res.status);
209
+ return json(res.data);
210
+ }));
211
+ },
212
+ },
213
+ }),
214
+ };
215
+ ```
216
+
217
+ **Connect an agent.** Each agent uses its own key (`key` above) on one MCP endpoint,
218
+ `<your origin>/agent-connect/mcp`:
219
+
220
+ - Claude Code: `claude mcp add --transport http agent-connect https://agents.example.com/agent-connect/mcp --header "Authorization: Bearer $KEY"`
221
+ - The Claude API's MCP connector (beta `mcp-client-2025-11-20`): `mcp_servers: [{ type: "url", url: "https://agents.example.com/agent-connect/mcp", name: "agent-connect", authorization_token: key }]` with `tools: [{ type: "mcp_toolset", mcp_server_name: "agent-connect" }]`. The endpoint must be reachable from the internet.
222
+ - Claude Managed Agents: a vault `static_bearer` credential holding the key, keyed on the same URL.
223
+ - Any MCP client over Streamable HTTP: `Authorization: Bearer <key>`; the quick start's `curl` shows the raw call.
224
+
225
+ ## Kubernetes
226
+
227
+ To offer only some built-in apps, set `BUILTIN_APPS` to their ids, comma-separated (for example
228
+ `jira,servicenow,sap-s4hana`; `GET /agent-connect/admin/v1/connectors` lists every id). Unset, every
229
+ built-in app is offered. Apps you add with `CONNECTOR_DIRS` are always offered.
230
+
231
+ `deploy/helm/agent-connect` is a small chart: one replica (Teams and app event run limits are
232
+ counted in one process), a Service, and an optional Ingress with only the public paths. It needs the image
233
+ (`image.repository`, `image.tag`; releases are `ghcr.io/try-caret/enterprise-agent-connect:<version>`) and a Secret with `DATABASE_URL`, `CONNECT_ENCRYPTION_KEY`
234
+ and `AGENT_CONNECT_ADMIN_TOKEN` (`existingSecret`).
235
+
236
+ ## Layout
237
+
238
+ - `packages/server`: the service (HTTP, admin API, MCP, Teams, app events, store,
239
+ migrations) and its tests
240
+ - `packages/connector-kit`: what a connector builds on (schemas, tool helpers, vendor types)
241
+ - `packages/client`: typed admin API client
242
+ - `connectors/<app>`: one folder per app: `connector.json`, `index.ts`, `tools.ts`, `vendor.ts`
243
+ - `connectors/http`, `connectors/soap`, `connectors/odata`, `connectors/sql`: run any app
244
+ described only in its `connector.json` (docs/http-connector.md, docs/soap-connector.md,
245
+ docs/odata-connector.md, docs/sql-connector.md)
246
+ - `examples/internal-app`: a small internal API and its connector, for the quick start
247
+ - `scripts/openapi-to-connector.ts`: drafts an http connector from an OpenAPI 3.x spec
248
+ - `examples/legacy-apps`: a SOAP and an SAP OData connector, described only in JSON
249
+ - `scripts/wsdl-to-connector.ts`, `scripts/odata-to-connector.ts`: draft a connector from a WSDL
250
+ or an OData `$metadata`
251
+ - `examples/legacy-orders`: a small orders database and its connector
252
+ - `deploy/docker`, `deploy/helm`: image, Compose file and chart
253
+
254
+ ## License
255
+
256
+ [Apache License 2.0](LICENSE).
257
+
258
+ ## Development
259
+
260
+ ```sh
261
+ npm ci
262
+ npm run check
263
+ scripts/test-databases.sh postgres://postgres@localhost:5432 # a scratch Postgres
264
+ TEST_DATABASE_URL=postgres://postgres@localhost:5432/ac_test DATABASE_SSL=disable npm test
265
+ ```
@@ -0,0 +1,39 @@
1
+ {
2
+ "id": "dell-techdirect",
3
+ "name": "Dell TechDirect",
4
+ "description": "Let agents look up warranty coverage for your Dell computers by service tag.",
5
+ "logo": "/brand/registry/dell.svg",
6
+ "identity": "An API key from your company's Dell TechDirect account, approved for the Warranty API.",
7
+ "accountKey": "keyId",
8
+ "connectionKind": "guided",
9
+ "setup": [
10
+ {
11
+ "title": "Request a Warranty API key",
12
+ "body": "Sign in to Dell TechDirect as your company's administrator, open APIs, and request access to the Warranty API. Dell reviews each request, which can take a few days.",
13
+ "link": { "label": "Dell TechDirect", "href": "https://techdirect.dell.com/" }
14
+ },
15
+ {
16
+ "title": "Copy the keys",
17
+ "body": "Once Dell approves the request, open APIs, then API Key Management, and copy the client ID and client secret of the production key."
18
+ }
19
+ ],
20
+ "afterConnect": [],
21
+ "fields": [
22
+ { "id": "client_id", "label": "Client ID", "secret": false },
23
+ { "id": "client_secret", "label": "Client secret", "secret": true }
24
+ ],
25
+ "capabilities": [
26
+ {
27
+ "id": "warranty",
28
+ "label": "Look up warranties",
29
+ "description": "Read the model, ship date and warranty coverage of Dell computers by service tag.",
30
+ "required": true,
31
+ "scopes": ["Warranty API"],
32
+ "permissions": [],
33
+ "tools": ["dell_warranty_lookup"]
34
+ }
35
+ ],
36
+ "limits": [],
37
+ "verify": { "label": "Dell answers", "check": "warranty" },
38
+ "revoke": "In Dell TechDirect, open APIs, then API Key Management, and delete the key."
39
+ }
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ id: string;
3
+ create: () => {
4
+ vendor: import("../../packages/connector-kit/src/types.js").Vendor;
5
+ toolset: import("../../packages/connector-kit/src/common.js").Toolset;
6
+ };
7
+ };
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { dellTools } from "./tools.js";
2
+ import { dellVendor } from "./vendor.js";
3
+ export default {
4
+ id: "dell-techdirect",
5
+ create: () => ({ vendor: dellVendor(), toolset: dellTools }),
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../connectors/dell-techdirect/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,eAAe;IACb,EAAE,EAAE,iBAAiB;IACrB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;CACnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { type Toolset } from "../../packages/connector-kit/src/common.js";
2
+ export declare const dellTools: Toolset;
@@ -0,0 +1,49 @@
1
+ import { z } from "zod";
2
+ import { ENTITLEMENTS_PATH } from "./vendor.js";
3
+ import { vendorError } from "../../packages/connector-kit/src/oauth.js";
4
+ import { audited, Denied, json, VendorFailed, } from "../../packages/connector-kit/src/common.js";
5
+ const SERVICE_TAG = /^[A-Za-z0-9]{5,7}$/;
6
+ export const dellTools = {
7
+ names: ["dell_warranty_lookup"],
8
+ register(server, ctx, allowed) {
9
+ if (allowed.has("dell_warranty_lookup"))
10
+ server.registerTool("dell_warranty_lookup", {
11
+ description: "Look up Dell warranty coverage for up to 100 service tags: the model, ship date and each support entitlement with its start and end dates.",
12
+ inputSchema: z.object({ service_tags: z.array(z.string()).min(1).max(100) }),
13
+ annotations: { readOnlyHint: true, openWorldHint: true },
14
+ }, ({ service_tags }) => audited(ctx, "dell_warranty_lookup", service_tags.join(","), async (mark) => {
15
+ const bad = service_tags.find((t) => !SERVICE_TAG.test(t));
16
+ if (bad)
17
+ throw new Denied(`${bad} is not a Dell service tag`);
18
+ const tags = [...new Set(service_tags.map((t) => t.toUpperCase()))];
19
+ const res = await ctx.call({
20
+ method: "GET",
21
+ path: `${ENTITLEMENTS_PATH}?servicetags=${tags.join(",")}`,
22
+ });
23
+ mark(res.status);
24
+ if (res.status < 200 || res.status >= 300) {
25
+ const detail = vendorError(res.data);
26
+ throw new VendorFailed(res.status, `Dell answered ${res.status}${detail ? `: ${detail}` : ""}`);
27
+ }
28
+ if (!Array.isArray(res.data))
29
+ throw new VendorFailed(res.status, "Dell answered without a list of assets");
30
+ const now = Date.now();
31
+ return json(res.data.map((a) => ({
32
+ serviceTag: a.serviceTag,
33
+ found: !a.invalid,
34
+ product: a.productLineDescription ?? null,
35
+ system: a.systemDescription ?? null,
36
+ shipDate: a.shipDate ?? null,
37
+ countryCode: a.countryCode ?? null,
38
+ entitlements: (a.entitlements ?? []).map((e) => ({
39
+ service: e.serviceLevelDescription ?? null,
40
+ type: e.entitlementType ?? null,
41
+ start: e.startDate ?? null,
42
+ end: e.endDate ?? null,
43
+ active: Date.parse(e.startDate ?? "") <= now && now <= Date.parse(e.endDate ?? ""),
44
+ })),
45
+ })));
46
+ }));
47
+ },
48
+ };
49
+ //# sourceMappingURL=tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../connectors/dell-techdirect/tools.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,6 @@
1
+ import { type Fetch, type Vendor } from "../../packages/connector-kit/src/types.js";
2
+ export declare const DELL_API = "https://apigtwb2c.us.dell.com";
3
+ export declare const DELL_TOKEN_URL = "https://apigtwb2c.us.dell.com/auth/oauth/v2/token";
4
+ export declare const ENTITLEMENTS_PATH = "/PROD/sbil/eapi/v5/asset-entitlements";
5
+ export declare const PROBE_SERVICE_TAG = "0000000";
6
+ export declare function dellVendor(fetchImpl?: Fetch): Vendor;