managed-deepagents 0.5.0-dev.79 → 0.5.0-dev.81

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 (435) hide show
  1. package/README.md +56 -13
  2. package/dist/channels/assistant-text.js +1 -1
  3. package/dist/channels/assistant-text.js.map +1 -1
  4. package/dist/channels/binding.d.ts.map +1 -1
  5. package/dist/channels/binding.js +3 -1
  6. package/dist/channels/binding.js.map +1 -1
  7. package/dist/channels/index.d.ts +6 -8
  8. package/dist/channels/index.d.ts.map +1 -1
  9. package/dist/channels/index.js +5 -5
  10. package/dist/channels/index.js.map +1 -1
  11. package/dist/channels/manifest.d.ts +36 -3
  12. package/dist/channels/manifest.d.ts.map +1 -1
  13. package/dist/channels/messaging-registry.d.ts +17 -0
  14. package/dist/channels/messaging-registry.d.ts.map +1 -0
  15. package/dist/channels/messaging-registry.js +44 -0
  16. package/dist/channels/messaging-registry.js.map +1 -0
  17. package/dist/channels/registry.d.ts +4 -3
  18. package/dist/channels/registry.d.ts.map +1 -1
  19. package/dist/channels/registry.js +6 -5
  20. package/dist/channels/registry.js.map +1 -1
  21. package/dist/channels/schedule-delivery.d.ts +4 -1
  22. package/dist/channels/schedule-delivery.d.ts.map +1 -1
  23. package/dist/channels/schedule-delivery.js +4 -2
  24. package/dist/channels/schedule-delivery.js.map +1 -1
  25. package/dist/connectors/github/adapter-core.d.ts +15 -0
  26. package/dist/connectors/github/adapter-core.d.ts.map +1 -0
  27. package/dist/connectors/github/adapter-core.js +52 -0
  28. package/dist/connectors/github/adapter-core.js.map +1 -0
  29. package/dist/{channels → connectors}/github/define.d.ts +28 -58
  30. package/dist/connectors/github/define.d.ts.map +1 -0
  31. package/dist/connectors/github/define.js +72 -0
  32. package/dist/connectors/github/define.js.map +1 -0
  33. package/dist/{channels → connectors}/github/http.d.ts +4 -4
  34. package/dist/connectors/github/http.d.ts.map +1 -0
  35. package/dist/{channels → connectors}/github/http.js +24 -25
  36. package/dist/connectors/github/http.js.map +1 -0
  37. package/dist/connectors/github/index.d.ts +59 -16
  38. package/dist/connectors/github/index.d.ts.map +1 -1
  39. package/dist/connectors/github/index.js +159 -73
  40. package/dist/connectors/github/index.js.map +1 -1
  41. package/dist/connectors/github/match.d.ts +20 -0
  42. package/dist/connectors/github/match.d.ts.map +1 -0
  43. package/dist/connectors/github/match.js +41 -0
  44. package/dist/connectors/github/match.js.map +1 -0
  45. package/dist/{channels → connectors}/github/normalize.d.ts +1 -1
  46. package/dist/connectors/github/normalize.d.ts.map +1 -0
  47. package/dist/{channels → connectors}/github/normalize.js +2 -2
  48. package/dist/connectors/github/normalize.js.map +1 -0
  49. package/dist/connectors/github/sandbox.d.ts.map +1 -1
  50. package/dist/connectors/github/sandbox.js +30 -23
  51. package/dist/connectors/github/sandbox.js.map +1 -1
  52. package/dist/connectors/github/source-thread.d.ts.map +1 -0
  53. package/dist/connectors/github/source-thread.js.map +1 -0
  54. package/dist/{channels → connectors}/github/transport.d.ts +7 -1
  55. package/dist/connectors/github/transport.d.ts.map +1 -0
  56. package/dist/{channels → connectors}/github/transport.js +18 -4
  57. package/dist/connectors/github/transport.js.map +1 -0
  58. package/dist/connectors/langsmith/index.d.ts +29 -17
  59. package/dist/connectors/langsmith/index.d.ts.map +1 -1
  60. package/dist/connectors/langsmith/index.js +34 -29
  61. package/dist/connectors/langsmith/index.js.map +1 -1
  62. package/dist/connectors/langsmith/routes.d.ts +4 -15
  63. package/dist/connectors/langsmith/routes.d.ts.map +1 -1
  64. package/dist/connectors/langsmith/routes.js +63 -72
  65. package/dist/connectors/langsmith/routes.js.map +1 -1
  66. package/dist/connectors/marketplace/catalog.d.ts +96 -0
  67. package/dist/connectors/marketplace/catalog.d.ts.map +1 -0
  68. package/dist/connectors/marketplace/catalog.js +213 -0
  69. package/dist/connectors/marketplace/catalog.js.map +1 -0
  70. package/dist/connectors/marketplace/fleet-mcp.d.ts +62 -0
  71. package/dist/connectors/marketplace/fleet-mcp.d.ts.map +1 -0
  72. package/dist/connectors/marketplace/fleet-mcp.js +215 -0
  73. package/dist/connectors/marketplace/fleet-mcp.js.map +1 -0
  74. package/dist/connectors/marketplace/index.d.ts +31 -0
  75. package/dist/connectors/marketplace/index.d.ts.map +1 -0
  76. package/dist/connectors/marketplace/index.js +39 -0
  77. package/dist/connectors/marketplace/index.js.map +1 -0
  78. package/dist/connectors/marketplace/load.d.ts +15 -0
  79. package/dist/connectors/marketplace/load.d.ts.map +1 -0
  80. package/dist/connectors/marketplace/load.js +265 -0
  81. package/dist/connectors/marketplace/load.js.map +1 -0
  82. package/dist/connectors/mcp/index.d.ts +13 -20
  83. package/dist/connectors/mcp/index.d.ts.map +1 -1
  84. package/dist/connectors/mcp/index.js +92 -112
  85. package/dist/connectors/mcp/index.js.map +1 -1
  86. package/dist/connectors/mcp/load.d.ts.map +1 -1
  87. package/dist/connectors/mcp/load.js +16 -40
  88. package/dist/connectors/mcp/load.js.map +1 -1
  89. package/dist/{channels → connectors}/slack/adapter-core.d.ts +1 -1
  90. package/dist/connectors/slack/adapter-core.d.ts.map +1 -0
  91. package/dist/connectors/slack/adapter-core.js.map +1 -0
  92. package/dist/{channels → connectors}/slack/adapter.d.ts +3 -4
  93. package/dist/connectors/slack/adapter.d.ts.map +1 -0
  94. package/dist/{channels → connectors}/slack/adapter.js +1 -1
  95. package/dist/connectors/slack/adapter.js.map +1 -0
  96. package/dist/{channels → connectors}/slack/http.d.ts +6 -40
  97. package/dist/connectors/slack/http.d.ts.map +1 -0
  98. package/dist/{channels → connectors}/slack/http.js +38 -127
  99. package/dist/connectors/slack/http.js.map +1 -0
  100. package/dist/connectors/slack/index.d.ts +108 -0
  101. package/dist/connectors/slack/index.d.ts.map +1 -0
  102. package/dist/connectors/slack/index.js +191 -0
  103. package/dist/connectors/slack/index.js.map +1 -0
  104. package/dist/{channels → connectors}/slack/normalize.d.ts +5 -5
  105. package/dist/connectors/slack/normalize.d.ts.map +1 -0
  106. package/dist/{channels → connectors}/slack/normalize.js +21 -20
  107. package/dist/connectors/slack/normalize.js.map +1 -0
  108. package/dist/connectors/slack/source-thread.d.ts.map +1 -0
  109. package/dist/connectors/slack/source-thread.js.map +1 -0
  110. package/dist/{channels → connectors}/slack/transport.d.ts +1 -1
  111. package/dist/connectors/slack/transport.d.ts.map +1 -0
  112. package/dist/{channels → connectors}/slack/transport.js +4 -3
  113. package/dist/connectors/slack/transport.js.map +1 -0
  114. package/dist/connectors/tool-selection.d.ts +55 -0
  115. package/dist/connectors/tool-selection.d.ts.map +1 -0
  116. package/dist/connectors/tool-selection.js +112 -0
  117. package/dist/connectors/tool-selection.js.map +1 -0
  118. package/dist/connectors/toolserver/catalog.d.ts +332 -0
  119. package/dist/connectors/toolserver/catalog.d.ts.map +1 -0
  120. package/dist/connectors/toolserver/catalog.js +463 -0
  121. package/dist/connectors/toolserver/catalog.js.map +1 -0
  122. package/dist/connectors/toolserver/connectors.d.ts +698 -0
  123. package/dist/connectors/toolserver/connectors.d.ts.map +1 -0
  124. package/dist/connectors/toolserver/connectors.js +13 -0
  125. package/dist/connectors/toolserver/connectors.js.map +1 -0
  126. package/dist/connectors/toolserver/index.d.ts +144 -0
  127. package/dist/connectors/toolserver/index.d.ts.map +1 -0
  128. package/dist/connectors/toolserver/index.js +107 -0
  129. package/dist/connectors/toolserver/index.js.map +1 -0
  130. package/dist/connectors/toolserver/integrations.d.ts +103 -0
  131. package/dist/connectors/toolserver/integrations.d.ts.map +1 -0
  132. package/dist/connectors/toolserver/integrations.js +277 -0
  133. package/dist/connectors/toolserver/integrations.js.map +1 -0
  134. package/dist/connectors/toolserver/load.d.ts +55 -0
  135. package/dist/connectors/toolserver/load.d.ts.map +1 -0
  136. package/dist/connectors/toolserver/load.js +290 -0
  137. package/dist/connectors/toolserver/load.js.map +1 -0
  138. package/dist/extension.d.ts +77 -0
  139. package/dist/extension.d.ts.map +1 -0
  140. package/dist/extension.js +127 -0
  141. package/dist/extension.js.map +1 -0
  142. package/dist/identity/actor-subject.d.ts +60 -0
  143. package/dist/identity/actor-subject.d.ts.map +1 -0
  144. package/dist/identity/actor-subject.js +107 -0
  145. package/dist/identity/actor-subject.js.map +1 -0
  146. package/dist/identity/byo-oauth.d.ts +81 -0
  147. package/dist/identity/byo-oauth.d.ts.map +1 -0
  148. package/dist/identity/byo-oauth.js +145 -0
  149. package/dist/identity/byo-oauth.js.map +1 -0
  150. package/dist/identity/claims.d.ts +18 -0
  151. package/dist/identity/claims.d.ts.map +1 -0
  152. package/dist/identity/claims.js +37 -0
  153. package/dist/identity/claims.js.map +1 -0
  154. package/dist/identity/connect-inference.d.ts +38 -0
  155. package/dist/identity/connect-inference.d.ts.map +1 -0
  156. package/dist/identity/connect-inference.js +55 -0
  157. package/dist/identity/connect-inference.js.map +1 -0
  158. package/dist/identity/connect-provider-types.d.ts +35 -6
  159. package/dist/identity/connect-provider-types.d.ts.map +1 -1
  160. package/dist/identity/connect-provider-types.js +3 -1
  161. package/dist/identity/connect-provider-types.js.map +1 -1
  162. package/dist/identity/connect-provider.d.ts +9 -4
  163. package/dist/identity/connect-provider.d.ts.map +1 -1
  164. package/dist/identity/connect-provider.js +38 -12
  165. package/dist/identity/connect-provider.js.map +1 -1
  166. package/dist/identity/credential-resolvers.d.ts +33 -0
  167. package/dist/identity/credential-resolvers.d.ts.map +1 -0
  168. package/dist/identity/credential-resolvers.js +62 -0
  169. package/dist/identity/credential-resolvers.js.map +1 -0
  170. package/dist/identity/fleet-connect-hint.d.ts +39 -0
  171. package/dist/identity/fleet-connect-hint.d.ts.map +1 -0
  172. package/dist/identity/fleet-connect-hint.js +134 -0
  173. package/dist/identity/fleet-connect-hint.js.map +1 -0
  174. package/dist/identity/fleet-connect.d.ts +92 -0
  175. package/dist/identity/fleet-connect.d.ts.map +1 -0
  176. package/dist/identity/fleet-connect.js +256 -0
  177. package/dist/identity/fleet-connect.js.map +1 -0
  178. package/dist/identity/fleet-integration-connect.d.ts +32 -0
  179. package/dist/identity/fleet-integration-connect.d.ts.map +1 -0
  180. package/dist/identity/fleet-integration-connect.js +35 -0
  181. package/dist/identity/fleet-integration-connect.js.map +1 -0
  182. package/dist/identity/fleet.d.ts +56 -0
  183. package/dist/identity/fleet.d.ts.map +1 -0
  184. package/dist/identity/fleet.js +133 -0
  185. package/dist/identity/fleet.js.map +1 -0
  186. package/dist/identity/github/connect-http.d.ts +9 -4
  187. package/dist/identity/github/connect-http.d.ts.map +1 -1
  188. package/dist/identity/github/connect-http.js +34 -15
  189. package/dist/identity/github/connect-http.js.map +1 -1
  190. package/dist/identity/github/credentials-store.d.ts +10 -10
  191. package/dist/identity/github/credentials-store.d.ts.map +1 -1
  192. package/dist/identity/github/credentials-store.js +40 -43
  193. package/dist/identity/github/credentials-store.js.map +1 -1
  194. package/dist/identity/github/credentials.d.ts +16 -13
  195. package/dist/identity/github/credentials.d.ts.map +1 -1
  196. package/dist/identity/github/credentials.js +43 -23
  197. package/dist/identity/github/credentials.js.map +1 -1
  198. package/dist/identity/github/index.d.ts +2 -3
  199. package/dist/identity/github/index.d.ts.map +1 -1
  200. package/dist/identity/github/index.js +1 -2
  201. package/dist/identity/github/index.js.map +1 -1
  202. package/dist/identity/github/oauth.d.ts +3 -6
  203. package/dist/identity/github/oauth.d.ts.map +1 -1
  204. package/dist/identity/github/oauth.js +9 -48
  205. package/dist/identity/github/oauth.js.map +1 -1
  206. package/dist/identity/google/connect-http.d.ts +38 -0
  207. package/dist/identity/google/connect-http.d.ts.map +1 -0
  208. package/dist/identity/google/connect-http.js +59 -0
  209. package/dist/identity/google/connect-http.js.map +1 -0
  210. package/dist/identity/google/index.d.ts +7 -0
  211. package/dist/identity/google/index.d.ts.map +1 -0
  212. package/dist/identity/google/index.js +6 -0
  213. package/dist/identity/google/index.js.map +1 -0
  214. package/dist/identity/google/oauth.d.ts +22 -0
  215. package/dist/identity/google/oauth.d.ts.map +1 -0
  216. package/dist/identity/google/oauth.js +48 -0
  217. package/dist/identity/google/oauth.js.map +1 -0
  218. package/dist/identity/index.d.ts +51 -29
  219. package/dist/identity/index.d.ts.map +1 -1
  220. package/dist/identity/index.js +122 -131
  221. package/dist/identity/index.js.map +1 -1
  222. package/dist/identity/linkedin/connect-http.d.ts +38 -0
  223. package/dist/identity/linkedin/connect-http.d.ts.map +1 -0
  224. package/dist/identity/linkedin/connect-http.js +59 -0
  225. package/dist/identity/linkedin/connect-http.js.map +1 -0
  226. package/dist/identity/linkedin/index.d.ts +7 -0
  227. package/dist/identity/linkedin/index.d.ts.map +1 -0
  228. package/dist/identity/linkedin/index.js +6 -0
  229. package/dist/identity/linkedin/index.js.map +1 -0
  230. package/dist/identity/linkedin/oauth.d.ts +22 -0
  231. package/dist/identity/linkedin/oauth.d.ts.map +1 -0
  232. package/dist/identity/linkedin/oauth.js +47 -0
  233. package/dist/identity/linkedin/oauth.js.map +1 -0
  234. package/dist/identity/loopback.d.ts +27 -2
  235. package/dist/identity/loopback.d.ts.map +1 -1
  236. package/dist/identity/loopback.js +61 -8
  237. package/dist/identity/loopback.js.map +1 -1
  238. package/dist/identity/marketplace/connect-hint.d.ts +31 -0
  239. package/dist/identity/marketplace/connect-hint.d.ts.map +1 -0
  240. package/dist/identity/marketplace/connect-hint.js +59 -0
  241. package/dist/identity/marketplace/connect-hint.js.map +1 -0
  242. package/dist/identity/marketplace/connect.d.ts +51 -0
  243. package/dist/identity/marketplace/connect.d.ts.map +1 -0
  244. package/dist/identity/marketplace/connect.js +88 -0
  245. package/dist/identity/marketplace/connect.js.map +1 -0
  246. package/dist/identity/marketplace/index.d.ts +9 -0
  247. package/dist/identity/marketplace/index.d.ts.map +1 -0
  248. package/dist/identity/marketplace/index.js +9 -0
  249. package/dist/identity/marketplace/index.js.map +1 -0
  250. package/dist/identity/microsoft/connect-http.d.ts +39 -0
  251. package/dist/identity/microsoft/connect-http.d.ts.map +1 -0
  252. package/dist/identity/microsoft/connect-http.js +60 -0
  253. package/dist/identity/microsoft/connect-http.js.map +1 -0
  254. package/dist/identity/microsoft/index.d.ts +7 -0
  255. package/dist/identity/microsoft/index.d.ts.map +1 -0
  256. package/dist/identity/microsoft/index.js +6 -0
  257. package/dist/identity/microsoft/index.js.map +1 -0
  258. package/dist/identity/microsoft/oauth.d.ts +24 -0
  259. package/dist/identity/microsoft/oauth.d.ts.map +1 -0
  260. package/dist/identity/microsoft/oauth.js +65 -0
  261. package/dist/identity/microsoft/oauth.js.map +1 -0
  262. package/dist/identity/oauth-tickets.d.ts +37 -0
  263. package/dist/identity/oauth-tickets.d.ts.map +1 -0
  264. package/dist/identity/oauth-tickets.js +114 -0
  265. package/dist/identity/oauth-tickets.js.map +1 -0
  266. package/dist/identity/options.d.ts +95 -0
  267. package/dist/identity/options.d.ts.map +1 -0
  268. package/dist/identity/options.js +175 -0
  269. package/dist/identity/options.js.map +1 -0
  270. package/dist/identity/slack/connect-http.d.ts +3 -3
  271. package/dist/identity/slack/connect-http.d.ts.map +1 -1
  272. package/dist/identity/slack/connect-http.js +23 -15
  273. package/dist/identity/slack/connect-http.js.map +1 -1
  274. package/dist/identity/slack/index.d.ts +1 -2
  275. package/dist/identity/slack/index.d.ts.map +1 -1
  276. package/dist/identity/slack/index.js +1 -2
  277. package/dist/identity/slack/index.js.map +1 -1
  278. package/dist/identity/slack/links.d.ts +15 -15
  279. package/dist/identity/slack/links.d.ts.map +1 -1
  280. package/dist/identity/slack/links.js +50 -53
  281. package/dist/identity/slack/links.js.map +1 -1
  282. package/dist/identity/slack/oauth.d.ts +2 -5
  283. package/dist/identity/slack/oauth.d.ts.map +1 -1
  284. package/dist/identity/slack/oauth.js +8 -63
  285. package/dist/identity/slack/oauth.js.map +1 -1
  286. package/dist/identity/supabase.js +9 -9
  287. package/dist/identity/supabase.js.map +1 -1
  288. package/dist/identity/types.d.ts +96 -38
  289. package/dist/identity/types.d.ts.map +1 -1
  290. package/dist/identity/x/connect-http.d.ts +39 -0
  291. package/dist/identity/x/connect-http.d.ts.map +1 -0
  292. package/dist/identity/x/connect-http.js +69 -0
  293. package/dist/identity/x/connect-http.js.map +1 -0
  294. package/dist/identity/x/index.d.ts +6 -0
  295. package/dist/identity/x/index.d.ts.map +1 -0
  296. package/dist/identity/x/index.js +5 -0
  297. package/dist/identity/x/index.js.map +1 -0
  298. package/dist/index.d.ts +14 -21
  299. package/dist/index.d.ts.map +1 -1
  300. package/dist/index.js +3 -12
  301. package/dist/index.js.map +1 -1
  302. package/dist/ingress/index.d.ts +54 -0
  303. package/dist/ingress/index.d.ts.map +1 -0
  304. package/dist/ingress/index.js +128 -0
  305. package/dist/ingress/index.js.map +1 -0
  306. package/dist/namespaces.d.ts +306 -0
  307. package/dist/namespaces.d.ts.map +1 -0
  308. package/dist/namespaces.js +127 -0
  309. package/dist/namespaces.js.map +1 -0
  310. package/dist/runtime/auth.d.ts +18 -14
  311. package/dist/runtime/auth.d.ts.map +1 -1
  312. package/dist/runtime/auth.js +88 -68
  313. package/dist/runtime/auth.js.map +1 -1
  314. package/dist/runtime/backend.d.ts +1 -1
  315. package/dist/runtime/backend.d.ts.map +1 -1
  316. package/dist/runtime/connector.d.ts +66 -23
  317. package/dist/runtime/connector.d.ts.map +1 -1
  318. package/dist/runtime/connector.js +63 -27
  319. package/dist/runtime/connector.js.map +1 -1
  320. package/dist/runtime/cors.d.ts +2 -3
  321. package/dist/runtime/cors.d.ts.map +1 -1
  322. package/dist/runtime/cors.js +2 -7
  323. package/dist/runtime/cors.js.map +1 -1
  324. package/dist/runtime/credentials.d.ts +2 -2
  325. package/dist/runtime/credentials.d.ts.map +1 -1
  326. package/dist/runtime/credentials.js +41 -16
  327. package/dist/runtime/credentials.js.map +1 -1
  328. package/dist/runtime/http.d.ts +47 -0
  329. package/dist/runtime/http.d.ts.map +1 -0
  330. package/dist/runtime/http.js +54 -0
  331. package/dist/runtime/http.js.map +1 -0
  332. package/dist/runtime/identity-http.d.ts +6 -16
  333. package/dist/runtime/identity-http.d.ts.map +1 -1
  334. package/dist/runtime/identity-http.js +112 -54
  335. package/dist/runtime/identity-http.js.map +1 -1
  336. package/dist/runtime/identity-runtime.d.ts +18 -17
  337. package/dist/runtime/identity-runtime.d.ts.map +1 -1
  338. package/dist/runtime/identity-runtime.js +55 -39
  339. package/dist/runtime/identity-runtime.js.map +1 -1
  340. package/dist/runtime/index.d.ts +85 -222
  341. package/dist/runtime/index.d.ts.map +1 -1
  342. package/dist/runtime/index.js +73 -34
  343. package/dist/runtime/index.js.map +1 -1
  344. package/dist/runtime/memory/index.d.ts +1 -0
  345. package/dist/runtime/memory/index.d.ts.map +1 -1
  346. package/dist/runtime/memory/index.js +1 -0
  347. package/dist/runtime/memory/index.js.map +1 -1
  348. package/dist/runtime/memory/lazy-context-backend.d.ts +66 -0
  349. package/dist/runtime/memory/lazy-context-backend.d.ts.map +1 -0
  350. package/dist/runtime/memory/lazy-context-backend.js +154 -0
  351. package/dist/runtime/memory/lazy-context-backend.js.map +1 -0
  352. package/dist/runtime/memory/user-repo.js +3 -3
  353. package/dist/runtime/memory/user-repo.js.map +1 -1
  354. package/dist/runtime/recursion-limit.d.ts +22 -0
  355. package/dist/runtime/recursion-limit.d.ts.map +1 -0
  356. package/dist/runtime/recursion-limit.js +46 -0
  357. package/dist/runtime/recursion-limit.js.map +1 -0
  358. package/dist/runtime/sandbox-manager.d.ts +33 -0
  359. package/dist/runtime/sandbox-manager.d.ts.map +1 -1
  360. package/dist/runtime/sandbox-manager.js +173 -9
  361. package/dist/runtime/sandbox-manager.js.map +1 -1
  362. package/dist/runtime/sandbox-stream-retry.d.ts +16 -0
  363. package/dist/runtime/sandbox-stream-retry.d.ts.map +1 -0
  364. package/dist/runtime/sandbox-stream-retry.js +61 -0
  365. package/dist/runtime/sandbox-stream-retry.js.map +1 -0
  366. package/dist/runtime/setup-script.d.ts.map +1 -1
  367. package/dist/runtime/setup-script.js +4 -2
  368. package/dist/runtime/setup-script.js.map +1 -1
  369. package/dist/runtime/validated-token.d.ts +1 -1
  370. package/dist/runtime/validated-token.d.ts.map +1 -1
  371. package/dist/runtime/validated-token.js +75 -33
  372. package/dist/runtime/validated-token.js.map +1 -1
  373. package/dist/sandbox.d.ts +19 -22
  374. package/dist/sandbox.d.ts.map +1 -1
  375. package/dist/sandbox.js +20 -34
  376. package/dist/sandbox.js.map +1 -1
  377. package/dist/schedules.js +8 -9
  378. package/dist/schedules.js.map +1 -1
  379. package/package.json +19 -28
  380. package/dist/channels/collect.d.ts +0 -26
  381. package/dist/channels/collect.d.ts.map +0 -1
  382. package/dist/channels/collect.js +0 -42
  383. package/dist/channels/collect.js.map +0 -1
  384. package/dist/channels/github/adapter-core.d.ts +0 -6
  385. package/dist/channels/github/adapter-core.d.ts.map +0 -1
  386. package/dist/channels/github/adapter-core.js +0 -27
  387. package/dist/channels/github/adapter-core.js.map +0 -1
  388. package/dist/channels/github/adapter.d.ts +0 -16
  389. package/dist/channels/github/adapter.d.ts.map +0 -1
  390. package/dist/channels/github/adapter.js +0 -52
  391. package/dist/channels/github/adapter.js.map +0 -1
  392. package/dist/channels/github/define.d.ts.map +0 -1
  393. package/dist/channels/github/define.js +0 -166
  394. package/dist/channels/github/define.js.map +0 -1
  395. package/dist/channels/github/http.d.ts.map +0 -1
  396. package/dist/channels/github/http.js.map +0 -1
  397. package/dist/channels/github/index.d.ts +0 -12
  398. package/dist/channels/github/index.d.ts.map +0 -1
  399. package/dist/channels/github/index.js +0 -10
  400. package/dist/channels/github/index.js.map +0 -1
  401. package/dist/channels/github/normalize.d.ts.map +0 -1
  402. package/dist/channels/github/normalize.js.map +0 -1
  403. package/dist/channels/github/source-thread.d.ts.map +0 -1
  404. package/dist/channels/github/source-thread.js.map +0 -1
  405. package/dist/channels/github/transport.d.ts.map +0 -1
  406. package/dist/channels/github/transport.js.map +0 -1
  407. package/dist/channels/plugin.d.ts +0 -61
  408. package/dist/channels/plugin.d.ts.map +0 -1
  409. package/dist/channels/plugin.js +0 -80
  410. package/dist/channels/plugin.js.map +0 -1
  411. package/dist/channels/slack/adapter-core.d.ts.map +0 -1
  412. package/dist/channels/slack/adapter-core.js.map +0 -1
  413. package/dist/channels/slack/adapter.d.ts.map +0 -1
  414. package/dist/channels/slack/adapter.js.map +0 -1
  415. package/dist/channels/slack/define.d.ts +0 -74
  416. package/dist/channels/slack/define.d.ts.map +0 -1
  417. package/dist/channels/slack/define.js +0 -160
  418. package/dist/channels/slack/define.js.map +0 -1
  419. package/dist/channels/slack/http.d.ts.map +0 -1
  420. package/dist/channels/slack/http.js.map +0 -1
  421. package/dist/channels/slack/index.d.ts +0 -18
  422. package/dist/channels/slack/index.d.ts.map +0 -1
  423. package/dist/channels/slack/index.js +0 -13
  424. package/dist/channels/slack/index.js.map +0 -1
  425. package/dist/channels/slack/normalize.d.ts.map +0 -1
  426. package/dist/channels/slack/normalize.js.map +0 -1
  427. package/dist/channels/slack/source-thread.d.ts.map +0 -1
  428. package/dist/channels/slack/source-thread.js.map +0 -1
  429. package/dist/channels/slack/transport.d.ts.map +0 -1
  430. package/dist/channels/slack/transport.js.map +0 -1
  431. /package/dist/{channels → connectors}/github/source-thread.d.ts +0 -0
  432. /package/dist/{channels → connectors}/github/source-thread.js +0 -0
  433. /package/dist/{channels → connectors}/slack/adapter-core.js +0 -0
  434. /package/dist/{channels → connectors}/slack/source-thread.d.ts +0 -0
  435. /package/dist/{channels → connectors}/slack/source-thread.js +0 -0
@@ -55,7 +55,7 @@ function normalizeSupabaseRegions(regions) {
55
55
  const url = entry.url ??
56
56
  (entry.projectRef ? `${supabaseBase(entry.projectRef)}/user` : undefined);
57
57
  if (!url) {
58
- throw new Error(`providers.supabase(...) region "${region}" needs a \`projectRef\` or \`url\`.`);
58
+ throw new Error(`auth.supabase(...) region "${region}" needs a \`projectRef\` or \`url\`.`);
59
59
  }
60
60
  const headers = entry.headers ?? (entry.anonKey ? { apikey: entry.anonKey } : undefined);
61
61
  out[region] = headers ? { url, headers } : { url };
@@ -71,7 +71,7 @@ function normalizeSupabaseRegions(regions) {
71
71
  export function supabaseProvider(options) {
72
72
  const { projectRef, url, introspect, regions, regionHeader = "x-supabase-region", } = options;
73
73
  if (projectRef && url) {
74
- throw new Error("providers.supabase(...) accepts only one of `projectRef` or `url`.");
74
+ throw new Error("auth.supabase(...) accepts only one of `projectRef` or `url`.");
75
75
  }
76
76
  if (introspect) {
77
77
  if (regions) {
@@ -82,7 +82,7 @@ export function supabaseProvider(options) {
82
82
  regions: normalizeSupabaseRegions(regions),
83
83
  headers: { apikey: "${SUPABASE_ANON_KEY}" },
84
84
  },
85
- claims: { actor: "email" },
85
+ claims: { user: "email" },
86
86
  };
87
87
  const issuers = supabaseRegionIssuers(regions);
88
88
  if (issuers.length > 0) {
@@ -99,11 +99,11 @@ export function supabaseProvider(options) {
99
99
  url: `${authBase}/user`,
100
100
  headers: { apikey: "${SUPABASE_ANON_KEY}" },
101
101
  },
102
- claims: { actor: "email" },
102
+ claims: { user: "email" },
103
103
  };
104
104
  }
105
105
  if (!projectRef) {
106
- throw new Error("providers.supabase(...) requires `projectRef`, `url`, or `regions` when introspect is true.");
106
+ throw new Error("auth.supabase(...) requires `projectRef`, `url`, or `regions` when introspect is true.");
107
107
  }
108
108
  const base = supabaseBase(projectRef);
109
109
  return {
@@ -113,7 +113,7 @@ export function supabaseProvider(options) {
113
113
  url: `${base}/user`,
114
114
  headers: { apikey: "${SUPABASE_ANON_KEY}" },
115
115
  },
116
- claims: { actor: "email" },
116
+ claims: { user: "email" },
117
117
  };
118
118
  }
119
119
  if (url) {
@@ -121,11 +121,11 @@ export function supabaseProvider(options) {
121
121
  id: "supabase",
122
122
  discoveryUrl: supabaseAuthV1Base(url),
123
123
  algorithms: ["ES256", "RS256"],
124
- claims: { actor: "email" },
124
+ claims: { user: "email" },
125
125
  };
126
126
  }
127
127
  if (!projectRef) {
128
- throw new Error("providers.supabase(...) without `introspect` requires `projectRef` or `url`.");
128
+ throw new Error("auth.supabase(...) without `introspect` requires `projectRef` or `url`.");
129
129
  }
130
130
  const base = supabaseBase(projectRef);
131
131
  return {
@@ -133,7 +133,7 @@ export function supabaseProvider(options) {
133
133
  issuer: base,
134
134
  jwks: `${base}/.well-known/jwks.json`,
135
135
  algorithms: ["ES256", "RS256"],
136
- claims: { actor: "email" },
136
+ claims: { user: "email" },
137
137
  };
138
138
  }
139
139
  //# sourceMappingURL=supabase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"supabase.js","sourceRoot":"","sources":["../../src/identity/supabase.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAuCH,SAAS,YAAY,CAAC,UAAkB;IACtC,OAAO,WAAW,UAAU,sBAAsB,CAAC;AACrD,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,kBAAkB,CAAC,GAAW;IAC5C,IAAI,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACrC,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QAC9B,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QACjC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,OAAO,GAAG,OAAO,UAAU,CAAC;AAC9B,CAAC;AAED,SAAS,qBAAqB,CAC5B,OAAuC;IAEvC,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3C,IAAI,MAA0B,CAAC;QAC/B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,MAAM,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC;aAAM,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;YAC5B,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC1C,CAAC;aAAM,IA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,OAAO,CAAC;YAC9B,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC1B,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;IACJ,CAAC;IACD,MAAM,IAAI,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IACtC,OAAO;QACL,EAAE,EAAE,UAAU;QACd,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,GAAG,IAAI,wBAAwB;QACrC,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAC9B,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KAC1B,CAAC;AACJ,CAAC"}
@@ -7,7 +7,7 @@
7
7
  import type { IdentityConnectProvider } from "./connect-provider-types.js";
8
8
  export type { IdentityConnectProvider } from "./connect-provider-types.js";
9
9
  /** How MDA learns who is calling on the HTTP ingress path. */
10
- export type HttpIngress = "trusted_backend" | ValidatedTokenIngress;
10
+ export type HttpIngress = "backend" | ValidatedTokenIngress;
11
11
  /**
12
12
  * Browser-direct ingress: MDA verifies the caller's own IdP token server-side
13
13
  * and derives identity from its claims.
@@ -83,18 +83,30 @@ export interface ValidatedTokenProvider {
83
83
  issue: boolean;
84
84
  /** Token lifetime, e.g. "24h". */
85
85
  ttl?: string;
86
- /** Prefix applied to the generated actor id, e.g. "guest:". */
87
- actorPrefix?: string;
86
+ /** Prefix applied to the generated user id, e.g. "guest:". */
87
+ userPrefix?: string;
88
88
  };
89
89
  /** Maps verified token claims → identity envelope fields. */
90
- claims: {
91
- /** Claim used as `runtime.identity.actor.id` (e.g. "sub", "email"). */
92
- actor: string;
93
- /** Claim used as `runtime.identity.tenant.id` (e.g. "org_id"). */
94
- tenant?: string;
95
- /** Claim used as `runtime.identity.actor.email`. */
96
- email?: string;
97
- };
90
+ claims: ClaimMapping;
91
+ }
92
+ /**
93
+ * Which verified token claim supplies each identity envelope field.
94
+ *
95
+ * `user` is required; `defineIdentity` rejects a provider that omits it.
96
+ */
97
+ export interface ClaimMapping {
98
+ /** Claim used as `runtime.identity.user.id` (e.g. "sub", "email"). */
99
+ user?: string;
100
+ /** Claim used as `runtime.identity.organization.id` (e.g. "org_id"). */
101
+ organization?: string;
102
+ /**
103
+ * Claim carrying every group the caller belongs to. Accepts a JSON array, or a
104
+ * comma/space-delimited string. Read by tools for authorization; never an
105
+ * isolation key (see `organization` for that).
106
+ */
107
+ groups?: string;
108
+ /** Claim used as `runtime.identity.user.email`. */
109
+ email?: string;
98
110
  }
99
111
  /** Which downstream call needs a credential right now. */
100
112
  export interface CredentialTarget {
@@ -113,19 +125,26 @@ export interface CredentialTarget {
113
125
  export interface ResolvedCredential {
114
126
  /** Headers MDA attaches to the downstream call (usually Authorization). */
115
127
  headers: Record<string, string>;
116
- /** ISO expiry; MDA caches per (actor, tenant, target) until then. */
128
+ /** ISO expiry; MDA caches per (user, organization, target) until then. */
117
129
  expiresAt?: string;
118
130
  }
119
131
  /** The frozen identity envelope tools and middleware see. */
120
132
  export interface RuntimeIdentity {
121
- actor: {
122
- type: "user" | "service";
133
+ /** The caller. `kind: "service"` for machine callers (schedules, channels, Studio). */
134
+ user: {
135
+ kind: "person" | "service";
123
136
  id: string;
124
137
  email?: string;
125
138
  };
126
- tenant?: {
139
+ /** The organization this run is scoped to, when the caller presents one. */
140
+ organization?: {
127
141
  id: string;
128
142
  };
143
+ /**
144
+ * Every group the caller's token asserts. For authorization decisions in tools
145
+ * and middleware — isolation is keyed on {@link RuntimeIdentity.organization}.
146
+ */
147
+ groups?: readonly string[];
129
148
  source: {
130
149
  /**
131
150
  * Ingress source. Built-ins include `http`, `schedule`, `cli`, `studio`,
@@ -142,46 +161,87 @@ export type CredentialResolver = (args: {
142
161
  target: CredentialTarget;
143
162
  }) => Promise<ResolvedCredential>;
144
163
  /**
145
- * Provide this (with `scoping.credentials: "custom"`) to mint your own
146
- * downstream credentials per actor: an in-process callback or a hosted
147
- * token-exchange endpoint.
164
+ * Connect-with-X routes a credential resolver depends on.
165
+ *
166
+ * A resolver that reads per-user OAuth tokens needs somewhere for the user to
167
+ * grant them. Declaring the provider here lets `defineIdentity` mount the routes
168
+ * from the resolver, instead of asking authors to repeat themselves on
169
+ * `connect`.
170
+ */
171
+ export interface CredentialConnectRequirements {
172
+ connect?: IdentityConnectProvider[];
173
+ }
174
+ /**
175
+ * Provide this to mint your own downstream credentials per caller: an in-process
176
+ * callback or a hosted token-exchange endpoint. Providing it puts the
177
+ * credentials axis in custom mode.
148
178
  */
149
- export type CredentialResolverConfig = {
179
+ export type CredentialResolverConfig = ({
150
180
  resolve: CredentialResolver;
151
- } | {
181
+ } & CredentialConnectRequirements) | ({
152
182
  endpoint: {
153
183
  url: string;
154
184
  };
155
- };
156
- /** The tenant boundary. */
157
- export type Tenancy = "single" | "multi";
185
+ } & CredentialConnectRequirements);
186
+ /**
187
+ * One resolver per downstream platform, keyed by {@link CredentialTarget.name}.
188
+ *
189
+ * Use this instead of a single resolver when an agent integrates more than one
190
+ * platform. MDA dispatches on the target name, so each entry stays a focused
191
+ * config (and keeps declaring its own Connect-with-X routes) rather than being
192
+ * folded into a hand-written switch.
193
+ */
194
+ export type CredentialResolvers = Record<string, CredentialResolverConfig>;
195
+ /** Whether every caller must present an organization. */
196
+ export type OrganizationRequirement = "optional" | "required";
158
197
  /** Who can open/resume the conversation. */
159
- export type ThreadScope = "actor" | "channel" | "tenant";
198
+ export type ThreadScope = "user" | "conversation" | "organization";
160
199
  /** The durable Store namespace prefix. */
161
- export type MemoryScope = "actor" | "tenant" | "agent" | "none";
162
- /** Whose token downstream calls carry. */
163
- export type CredentialScope = "agent" | "actor" | "none" | "custom";
164
- /** The whole identity config surface. */
200
+ export type MemoryScope = "user" | "organization" | "agent" | "none";
201
+ /**
202
+ * Whose token downstream calls carry.
203
+ *
204
+ * - `"user"` — per-caller Connect / actor-subject vault (toolserver
205
+ * `?agent_id=` derived from the caller).
206
+ * - `"agent"` — shared LangSmith / deployment vault (`MDA_TOOLSERVER_AGENT_ID`
207
+ * or the key's user subject).
208
+ * - `"custom"` — author-supplied resolver/endpoint (`CredentialsProvider`).
209
+ * - `"none"` — no managed credential owner.
210
+ */
211
+ export type CredentialScope = "user" | "agent" | "none" | "custom";
212
+ /**
213
+ * The resolved identity contract the runtime reads.
214
+ *
215
+ * `defineIdentity` derives this from {@link IdentityOptions}; it is not an
216
+ * authoring surface. Its vocabulary matches the authoring vocabulary exactly, so
217
+ * a value you read while debugging is the value you wrote.
218
+ */
165
219
  export interface IdentityConfig {
166
220
  /** How MDA learns who is calling. */
167
221
  ingress: {
168
222
  http: HttpIngress;
169
223
  };
170
- /** The tenant boundary. */
171
- tenancy: Tenancy;
172
- /** The three scoping axes. */
173
- scoping: {
224
+ /** Whether every caller must present an organization. */
225
+ organizations: OrganizationRequirement;
226
+ /** The three isolation axes. */
227
+ scope: {
174
228
  /** Who can open/resume the conversation. */
175
229
  threads?: ThreadScope;
176
230
  /** Durable Store namespace prefix. */
177
231
  memory: MemoryScope;
178
- /** Managed mode, or "custom" when a resolver/endpoint is provided below. */
232
+ /**
233
+ * Whose downstream tokens / Connect ownership apply. `"custom"` when a
234
+ * resolver/endpoint is provided below.
235
+ */
179
236
  credentials?: CredentialScope;
180
237
  };
181
- /** Present when `scoping.credentials` is "custom" (or a resolver is set). */
182
- credentials?: CredentialResolverConfig;
183
238
  /**
184
- * Opt-in Connect-with-X providers (`github.connect()`, `slack.connect()`, ).
239
+ * Present when `scope.credentials` is "custom" (or a resolver is set).
240
+ * Either one resolver for every target, or one per target name.
241
+ */
242
+ credentials?: CredentialResolverConfig | CredentialResolvers;
243
+ /**
244
+ * Opt-in Connect-with-X providers (`connect.github()`, `connect.slack()`, …).
185
245
  * Only listed providers mount `/identity/{id}/…` routes.
186
246
  */
187
247
  connect?: IdentityConnectProvider[];
@@ -191,6 +251,4 @@ export interface IdentityDefinition {
191
251
  readonly kind: "identity";
192
252
  readonly config: IdentityConfig;
193
253
  }
194
- /** The archetype presets that expand to a full {@link IdentityConfig}. */
195
- export type IdentityPresetName = "private-assistant" | "multi-tenant-saas" | "shared-bot" | "internal-tool" | "service";
196
254
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/identity/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,YAAY,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,8DAA8D;AAC9D,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG,qBAAqB,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,iBAAiB,CAAC;IACxB;;;;OAIG;IACH,SAAS,EAAE,sBAAsB,EAAE,CAAC;CACrC;AAED,qDAAqD;AACrD,MAAM,WAAW,sBAAsB;IACrC,kFAAkF;IAClF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wFAAwF;IACxF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE;QACX,uDAAuD;QACvD,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,sFAAsF;QACtF,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB;;;;WAIG;QACH,OAAO,CAAC,EAAE,MAAM,CACd,MAAM,EACN,MAAM,GAAG;YAAE,GA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AAO,CAAC,EAAE,uBAAuB,EAAE,CAAC;CACrC;AAED,iEAAiE;AACjE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;CACjC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Connect-with-X — thin adapter over {@link createFleetVaultConnectProvider}.
3
+ *
4
+ * Mounted under `/identity/x/*` when listed on `identity.connect`, or inferred
5
+ * from `connectors.x` on a user-scoped deployment. OAuth uses Fleet
6
+ * auth-sessions against the reserved `twitter-oauth-provider` slug (PKCE is
7
+ * handled by Host); there is no local BYO client path.
8
+ */
9
+ import type { IdentityConnectMountContext, IdentityConnectProvider } from "../connect-provider-types.js";
10
+ import { type FleetVaultConnectProviderOptions } from "../fleet-connect.js";
11
+ export declare const X_CONNECT_STATUS_PATH: string;
12
+ export declare const X_CONNECT_START_PATH: string;
13
+ export declare const X_CONNECT_CALLBACK_PATH: string;
14
+ export declare const X_CONNECT_LINK_PATH: string;
15
+ export declare function isXActorSubjectEnabled(): boolean;
16
+ export declare function enableXActorSubject(): void;
17
+ /**
18
+ * Enable actor-subject mode when X connectors imply per-user vault subjects.
19
+ *
20
+ * Prefer {@link enableActorSubjectIntegrationsFromConnectors} at compile seams.
21
+ */
22
+ export declare function enableXActorSubjectFromConnectors(connectorKinds: readonly (string | undefined)[] | undefined, scope?: IdentityConnectMountContext["scope"]): void;
23
+ export declare function resetXActorSubjectEnabledForTests(): void;
24
+ export declare function isXConnectConfigured(env?: NodeJS.ProcessEnv): boolean;
25
+ export declare function xConnectUrl(publicAppUrl: string): string;
26
+ /** Options for {@link createXIdentityConnectProvider}. */
27
+ export type XIdentityConnectProviderOptions = Pick<FleetVaultConnectProviderOptions, "providerSlug" | "scopes" | "fleet">;
28
+ /** Build an X connect provider (Fleet auth-sessions / twitter-oauth-provider). */
29
+ export declare function createXIdentityConnectProvider(options?: XIdentityConnectProviderOptions): IdentityConnectProvider;
30
+ /** Default X connect provider used as a built-in mount candidate. */
31
+ export declare const xIdentityConnectProvider: IdentityConnectProvider;
32
+ /**
33
+ * Opt into Connect-with-X on `defineIdentity({ connect: […] })`.
34
+ *
35
+ * Usually unnecessary: declaring `connectors.x` on a user-scoped identity
36
+ * deployment mounts this provider and derives OAuth scopes automatically.
37
+ */
38
+ export declare function connect(options?: XIdentityConnectProviderOptions): IdentityConnectProvider;
39
+ //# sourceMappingURL=connect-http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect-http.d.ts","sourceRoot":"","sources":["../../../src/identity/x/connect-http.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAaH,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAIL,KAAK,gCAAgC,EACtC,MAAM,qBAAqB,CAAC;AAQ7B,eAAO,MAAM,qBAAqB,QAAe,CAAC;AAClD,eAAO,MAAM,oBAAoB,QAAgB,CAAC;AAClD,eAAO,MAAM,uBAAuB,QAAiB,CAAC;AACtD,eAAO,MAAM,mBAAmB,QAAa,CAAC;AAE9C,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAC/C,cAAc,EAAE,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS,EAC3D,KAAK,CAAC,EAAE,2BAA2B,CAAC,OAAO,CAAC,GAC3C,IAAI,CAMN;AAED,wBAAgB,iCAAiC,IAAI,IAAI,CAExD;AAED,wBAAgB,oBAAoB,CAClC,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,OAAO,CAET;AAED,wBAAgB,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,0DAA0D;AAC1D,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAChD,gCAAgC,EAChC,cAAc,GAAG,QAAQ,GAAG,OAAO,CACpC,CAAC;AAEF,kFAAkF;AAClF,wBAAgB,8BAA8B,CAC5C,OAAO,GAAE,+BAAoC,GAC5C,uBAAuB,CAWzB;AAED,qEAAqE;AACrE,eAAO,MAAM,wBAAwB,EAAE,uBACL,CAAC;AAEnC;;;;;GAKG;AACH,wBAAgB,OAAO,CACrB,OAAO,CAAC,EAAE,+BAA+B,GACxC,uBAAuB,CAKzB"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Connect-with-X — thin adapter over {@link createFleetVaultConnectProvider}.
3
+ *
4
+ * Mounted under `/identity/x/*` when listed on `identity.connect`, or inferred
5
+ * from `connectors.x` on a user-scoped deployment. OAuth uses Fleet
6
+ * auth-sessions against the reserved `twitter-oauth-provider` slug (PKCE is
7
+ * handled by Host); there is no local BYO client path.
8
+ */
9
+ import { X_INTEGRATION, readXProviderSlug, } from "../../connectors/toolserver/integrations.js";
10
+ import { enableActorSubjectIntegration, enableActorSubjectIntegrationFromConnectors, isActorSubjectIntegrationEnabled, resetActorSubjectEnabledForTests, } from "../actor-subject.js";
11
+ import { identityConnectPaths } from "../connect-paths.js";
12
+ import { createFleetVaultConnectProvider, fleetConnectUrl, isFleetVaultConnectConfigured, } from "../fleet-connect.js";
13
+ import { MDA_PUBLIC_APP_URL_ENV, resolveSlackOauthRedirectBase, } from "../slack/oauth.js";
14
+ const PATHS = identityConnectPaths("x");
15
+ export const X_CONNECT_STATUS_PATH = PATHS.status;
16
+ export const X_CONNECT_START_PATH = PATHS.connect;
17
+ export const X_CONNECT_CALLBACK_PATH = PATHS.callback;
18
+ export const X_CONNECT_LINK_PATH = PATHS.link;
19
+ export function isXActorSubjectEnabled() {
20
+ return isActorSubjectIntegrationEnabled("x");
21
+ }
22
+ export function enableXActorSubject() {
23
+ enableActorSubjectIntegration("x");
24
+ }
25
+ /**
26
+ * Enable actor-subject mode when X connectors imply per-user vault subjects.
27
+ *
28
+ * Prefer {@link enableActorSubjectIntegrationsFromConnectors} at compile seams.
29
+ */
30
+ export function enableXActorSubjectFromConnectors(connectorKinds, scope) {
31
+ enableActorSubjectIntegrationFromConnectors(X_INTEGRATION, connectorKinds, scope);
32
+ }
33
+ export function resetXActorSubjectEnabledForTests() {
34
+ resetActorSubjectEnabledForTests();
35
+ }
36
+ export function isXConnectConfigured(env = process.env) {
37
+ return isFleetVaultConnectConfigured(undefined, env);
38
+ }
39
+ export function xConnectUrl(publicAppUrl) {
40
+ return fleetConnectUrl(X_INTEGRATION, publicAppUrl);
41
+ }
42
+ /** Build an X connect provider (Fleet auth-sessions / twitter-oauth-provider). */
43
+ export function createXIdentityConnectProvider(options = {}) {
44
+ return createFleetVaultConnectProvider({
45
+ integration: X_INTEGRATION,
46
+ providerSlug: options.providerSlug?.trim() || readXProviderSlug(),
47
+ ...(options.scopes ? { scopes: options.scopes } : {}),
48
+ ...(options.fleet ? { fleet: options.fleet } : {}),
49
+ resolveRedirectBase: resolveSlackOauthRedirectBase,
50
+ resolvePublicAppUrl() {
51
+ return process.env[MDA_PUBLIC_APP_URL_ENV]?.replace(/\/$/, "");
52
+ },
53
+ });
54
+ }
55
+ /** Default X connect provider used as a built-in mount candidate. */
56
+ export const xIdentityConnectProvider = createXIdentityConnectProvider();
57
+ /**
58
+ * Opt into Connect-with-X on `defineIdentity({ connect: […] })`.
59
+ *
60
+ * Usually unnecessary: declaring `connectors.x` on a user-scoped identity
61
+ * deployment mounts this provider and derives OAuth scopes automatically.
62
+ */
63
+ export function connect(options) {
64
+ enableXActorSubject();
65
+ return options
66
+ ? createXIdentityConnectProvider(options)
67
+ : xIdentityConnectProvider;
68
+ }
69
+ //# sourceMappingURL=connect-http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect-http.js","sourceRoot":"","sources":["../../../src/identity/x/connect-http.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,aAAa,EACb,iBAAiB,GAClB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,6BAA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CAC5C,OAAO,GAAoC,EAAE;IAE7C,OAAO,+BAA+B,CAAC;QACrC,WAAW,EAAE,aAAa;QAC1B,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,iBAAiB,EAAE;QACjE,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACrD,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAClD,mBAAmB,EAAE,6BAA6B;QAClD,mBAAmB;YACjB,OAAO,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACjE,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,qEAAqE;AACrE,MAAM,CAAC,MAAM,wBAAwB,GACnC,8BAA8B,EAAE,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,UAAU,OAAO,CACrB,OAAyC;IAEzC,mBAAmB,EAAE,CAAC;IACtB,OAAO,OAAO;QACZ,CAAC,CAAC,8BAA8B,CAAC,OAAO,CAAC;QACzC,CAAC,CAAC,wBAAwB,CAAC;AAC/B,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * X identity helpers — Connect-with-X (Fleet vault / twitter-oauth-provider).
3
+ */
4
+ export { connect, createXIdentityConnectProvider, enableXActorSubject, enableXActorSubjectFromConnectors, xConnectUrl, xIdentityConnectProvider, isXActorSubjectEnabled, isXConnectConfigured, resetXActorSubjectEnabledForTests, X_CONNECT_CALLBACK_PATH, X_CONNECT_LINK_PATH, X_CONNECT_START_PATH, X_CONNECT_STATUS_PATH, } from "./connect-http.js";
5
+ export type { XIdentityConnectProviderOptions } from "./connect-http.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/identity/x/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,OAAO,EACP,8BAA8B,EAC9B,mBAAmB,EACnB,iCAAiC,EACjC,WAAW,EACX,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,iCAAiC,EACjC,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * X identity helpers — Connect-with-X (Fleet vault / twitter-oauth-provider).
3
+ */
4
+ export { connect, createXIdentityConnectProvider, enableXActorSubject, enableXActorSubjectFromConnectors, xConnectUrl, xIdentityConnectProvider, isXActorSubjectEnabled, isXConnectConfigured, resetXActorSubjectEnabledForTests, X_CONNECT_CALLBACK_PATH, X_CONNECT_LINK_PATH, X_CONNECT_START_PATH, X_CONNECT_STATUS_PATH, } from "./connect-http.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/identity/x/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,OAAO,EACP,8BAA8B,EAC9B,mBAAmB,EACnB,iCAAiC,EACjC,WAAW,EACX,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,iCAAiC,EACjC,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,26 +1,19 @@
1
1
  export { defineDeepAgent } from "./define-deep-agent.js";
2
- export { defineMcpServers } from "./connectors/mcp/index.js";
3
- export * as github from "./connectors/github/index.js";
4
- export * as slack from "./identity/slack/index.js";
5
- export * as langsmith from "./connectors/langsmith/index.js";
6
- export type { GitHubCheckoutReuse, GitHubConnector, GitHubConnectorConfig, GitHubRepositoryCheckout, } from "./connectors/github/index.js";
7
- export type { LangSmithCapability, LangSmithCallerSurface, LangSmithCapabilityScope, LangSmithConnector, LangSmithConnectorConfig, LangSmithResource, LangSmithResponseShape, } from "./connectors/langsmith/index.js";
8
2
  export { defineSchedule } from "./schedules.js";
9
- export { defineSandbox } from "./sandbox.js";
10
- export { defineIdentity, providers, validateIdentity, } from "./identity/index.js";
11
- export { defineSlackChannel } from "./channels/slack/index.js";
12
- export { defineGitHubChannel } from "./channels/github/index.js";
13
- export { CHANNEL_ERROR_CODES, ChannelError, createRuntimeChannel, normalizeChannelDestination, } from "./channels/index.js";
14
- export { decodeSlackSourceThreadKey, encodeSlackSourceThreadKey, normalizeSlackEvent, requiredSlackScopes, toChannelManifest, verifySlackRequest, } from "./channels/slack/index.js";
15
- export { toGitHubChannelManifest, verifyGitHubWebhookSignature, normalizeGitHubEvent, } from "./channels/github/index.js";
16
- export type { CredentialResolver, CredentialResolverConfig, CredentialScope, CredentialTarget, DefineIdentity, GitHubActorTokenArgs, GitHubAppJwtArgs, GitHubCredentialsOptions, GitHubTokenSource, HttpIngress, IdentityConfig, IdentityConnectProvider, IdentityDefinition, IdentityPresetName, MemoryScope, ResolvedCredential, RuntimeIdentity, Tenancy, ThreadScope, ValidatedTokenIngress, ValidatedTokenProvider, } from "./identity/index.js";
17
- export type { HttpMcpServerConfig, McpServersConfig, McpServersDefinition, McpToolSelectionConfig, RemoteMcpServerBaseConfig, RemoteMcpServerConfig, SseMcpServerConfig, } from "./connectors/mcp/index.js";
18
- export { CONNECTOR_BRAND, isConnector } from "./runtime/connector.js";
19
- export type { Connector, ConnectorSandboxBackend, ConnectorToolList, HttpContext, SandboxContext, ToolContext, } from "./runtime/connector.js";
20
- export type { ScheduleConfig, ScheduleDefinition, ScheduleDeliveryTarget, ScheduleThreadConfig, } from "./schedules.js";
21
- export type { ChannelAddress, ChannelCapabilities, ChannelDestination, ChannelErrorCode, ChannelEvent, ChannelMessage, ChannelMessageUpdate, PostedChannelMessage, RuntimeChannel, } from "./channels/index.js";
22
- export type { ChannelManifest, SlackChannelConfig, SlackChannelDefinition, SlackChannelTrigger, } from "./channels/slack/index.js";
3
+ export { defineIdentity } from "./identity/index.js";
4
+ export { auth, connect, connectors, credentials, sandboxes, } from "./namespaces.js";
5
+ export type { Connect, Connectors, LangSmithConnectorsNamespace, } from "./namespaces.js";
23
6
  export type { DeepAgentDefinition, DefineDeepAgentConfig, ManagedDeepAgentKey, } from "./types.js";
7
+ export type { ScheduleConfig, ScheduleDefinition, ScheduleDeliveryTarget, ScheduleThreadConfig, } from "./schedules.js";
8
+ export type { ClaimMapping, CredentialConnectRequirements, CredentialResolver, CredentialResolverConfig, CredentialResolvers, CredentialScope, CredentialTarget, GitHubAppJwtArgs, GitHubCredentialsOptions, GitHubTokenSource, GitHubUserTokenArgs, HttpIngress, IdentityAuth, IdentityConfig, IdentityConnectProvider, IdentityDefinition, IdentityOptions, IdentityScope, IdentityScopeOverrides, MemoryScope, OrganizationRequirement, ResolvedCredential, RuntimeIdentity, ThreadScope, ValidatedTokenIngress, ValidatedTokenProvider, } from "./identity/index.js";
9
+ export type { GitHubCheckoutReuse, GitHubConnector, GitHubConnectorConfig, GitHubRepositoryCheckout, } from "./connectors/github/index.js";
10
+ export type { LangSmithCallerSurface, LangSmithCapability, LangSmithCapabilityScope, LangSmithConnector, LangSmithConnectorConfig, LangSmithResource, LangSmithResponseShape, } from "./connectors/langsmith/index.js";
11
+ export type { HttpMcpServerConfig, McpServersConfig, McpServersDefinition, McpToolSelectionConfig, RemoteMcpServerBaseConfig, RemoteMcpServerConfig, SseMcpServerConfig, } from "./connectors/mcp/index.js";
12
+ export type { ToolSelection, ToolSelectionConnectorConfig, } from "./connectors/tool-selection.js";
13
+ export type { ToolServerConnector, ToolServerConnectorConfig, ToolServerConnectorFactory, ToolServerConnectorFactoryFor, ToolServerConnectors, ToolServerFactoryName, ToolServerIntegration, ToolServerIntegrationEntry, ToolServerSlug, ToolServerToolSelection, ToolsForFactory, } from "./connectors/toolserver/index.js";
14
+ export { integrationForFactory } from "./connectors/toolserver/index.js";
15
+ export type { ChannelManifest, RequiredSlackConnectorConfig, SlackAppConfig, SlackChannelFilters, SlackChannelTrigger, SlackConnector, SlackConnectorConfig, SlackConversationPolicy, SlackMentionBehavior, } from "./connectors/slack/index.js";
16
+ export type { GitHubChannelConfig, GitHubChannelDefinition, GitHubChannelHandler, GitHubChannelTrigger, GitHubWebhookPromptEvent, } from "./connectors/github/define.js";
17
+ export type { LangSmithSandboxOptions, SandboxDefinition, SandboxScope, } from "./sandbox.js";
24
18
  export type { ManagedDeepAgentRuntime, ManagedRuntimeExtras, } from "./runtime/managed-tools.js";
25
- export type { DefineSandboxOptions, ManagedSandboxOptionKey, SandboxDefinition, SandboxProviderClass, SandboxProviderOptions, SandboxScope, } from "./sandbox.js";
26
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,SAAS,MAAM,iCAAiC,CAAC;AAC7D,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,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c,EACd,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,GACb,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACL,IAAI,EACJ,OAAO,EACP,UAAU,EACV,WAAW,EACX,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,OAAO,EACP,UAAU,EACV,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACV,YAAY,EACZ,6BAA6B,EAC7B,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,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AAY,EACV,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,4BAA4B,CAAC"}
package/dist/index.js CHANGED
@@ -1,15 +1,6 @@
1
1
  export { defineDeepAgent } from "./define-deep-agent.js";
2
- export { defineMcpServers } from "./connectors/mcp/index.js";
3
- export * as github from "./connectors/github/index.js";
4
- export * as slack from "./identity/slack/index.js";
5
- export * as langsmith from "./connectors/langsmith/index.js";
6
2
  export { defineSchedule } from "./schedules.js";
7
- export { defineSandbox } from "./sandbox.js";
8
- export { defineIdentity, providers, validateIdentity, } from "./identity/index.js";
9
- export { defineSlackChannel } from "./channels/slack/index.js";
10
- export { defineGitHubChannel } from "./channels/github/index.js";
11
- export { CHANNEL_ERROR_CODES, ChannelError, createRuntimeChannel, normalizeChannelDestination, } from "./channels/index.js";
12
- export { decodeSlackSourceThreadKey, encodeSlackSourceThreadKey, normalizeSlackEvent, requiredSlackScopes, toChannelManifest, verifySlackRequest, } from "./channels/slack/index.js";
13
- export { toGitHubChannelManifest, verifyGitHubWebhookSignature, normalizeGitHubEvent, } from "./channels/github/index.js";
14
- export { CONNECTOR_BRAND, isConnector } from "./runtime/connector.js";
3
+ export { defineIdentity } from "./identity/index.js";
4
+ export { auth, connect, connectors, credentials, sandboxes, } from "./namespaces.js";
5
+ export { integrationForFactory } from "./connectors/toolserver/index.js";
15
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,SAAS,MAAM,iCAAiC,CAAC;AAgB7D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,cAAc,EACd,SAAS,EACT,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AAoCpC,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACL,IAAI,EACJ,OAAO,EACP,UAAU,EACV,WAAW,EACX,SAAS,GACV,MAAM,iBAAiB,CAAC;AA0FzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Managed ingress pipeline: verified inbound event → agent run.
3
+ *
4
+ * Providers keep signature verification, event normalization, and reply
5
+ * transport. This module owns the shared pieces: deterministic thread ids,
6
+ * trusted loopback invoke with source-provider stamps, and source-thread
7
+ * existence probes.
8
+ */
9
+ import { type ChannelBinding } from "../channels/binding.js";
10
+ /** Inputs for the source-thread involvement probe (after identity remap). */
11
+ export interface SourceThreadExistsInput {
12
+ sourceThreadKey: string;
13
+ userId: string;
14
+ organizationId?: string;
15
+ }
16
+ export interface InvokeIngressAgentInput {
17
+ userId: string;
18
+ organizationId?: string;
19
+ sourceThreadKey: string;
20
+ binding: ChannelBinding;
21
+ text: string;
22
+ assistantId: string;
23
+ /** Trusted source provider stamped on loopback invoke. */
24
+ sourceProvider?: ChannelBinding["provider"];
25
+ }
26
+ export interface InvokeIngressAgentResult {
27
+ replyText: string;
28
+ runId?: string;
29
+ threadId: string;
30
+ }
31
+ /**
32
+ * Schedule background work after the provider ACK. Defaults to fire-and-forget
33
+ * with error logging; tests pass an inline runner.
34
+ */
35
+ export declare function scheduleIngressWork(work: () => Promise<void>, options: {
36
+ label: string;
37
+ schedule?: (work: () => Promise<void>) => void;
38
+ }): void;
39
+ /**
40
+ * True when an MDA thread already exists for this source-thread key.
41
+ *
42
+ * Call with the **resolved** actor (post identity remap) so ownership matches
43
+ * the thread created on the first run.
44
+ */
45
+ export declare function ingressSourceThreadExists(input: SourceThreadExistsInput): Promise<boolean>;
46
+ /**
47
+ * Invoke the managed graph over a trusted loopback with ingress identity stamped.
48
+ *
49
+ * Only this path may set `x-mda-source-provider` / `x-mda-source-thread-id`.
50
+ */
51
+ export declare function invokeIngressAgent(input: InvokeIngressAgentInput): Promise<InvokeIngressAgentResult>;
52
+ /** Deterministic LangGraph thread id from a provider source-thread key. */
53
+ export declare function stableThreadId(sourceThreadKey: string): string;
54
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ingress/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAehC,6EAA6E;AAC7E,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;CACz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