managed-deepagents 0.5.3-dev.111 → 0.5.3-dev.112
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.
- package/README.md +1 -12
- package/dist/channels/slack/http.d.ts.map +1 -1
- package/dist/channels/slack/http.js +3 -48
- package/dist/channels/slack/http.js.map +1 -1
- package/dist/channels/slack/index.d.ts +2 -3
- package/dist/channels/slack/index.d.ts.map +1 -1
- package/dist/channels/slack/index.js +2 -3
- package/dist/channels/slack/index.js.map +1 -1
- package/dist/connectors/mcp/index.d.ts.map +1 -1
- package/dist/connectors/mcp/index.js +5 -1
- package/dist/connectors/mcp/index.js.map +1 -1
- package/dist/connectors/mcp/load.js +3 -0
- package/dist/connectors/mcp/load.js.map +1 -1
- package/dist/connectors/tool-selection.d.ts +13 -18
- package/dist/connectors/tool-selection.d.ts.map +1 -1
- package/dist/connectors/tool-selection.js +10 -13
- package/dist/connectors/tool-selection.js.map +1 -1
- package/dist/extension.d.ts +5 -5
- package/dist/extension.js +5 -5
- package/dist/identity/credential-resolvers.d.ts +1 -13
- package/dist/identity/credential-resolvers.d.ts.map +1 -1
- package/dist/identity/credential-resolvers.js +1 -32
- package/dist/identity/credential-resolvers.js.map +1 -1
- package/dist/identity/github/credentials-store.d.ts +3 -3
- package/dist/identity/github/credentials-store.js +4 -4
- package/dist/identity/github/credentials-store.js.map +1 -1
- package/dist/identity/github/credentials.d.ts +7 -9
- package/dist/identity/github/credentials.d.ts.map +1 -1
- package/dist/identity/github/credentials.js +4 -22
- package/dist/identity/github/credentials.js.map +1 -1
- package/dist/identity/github/index.d.ts +1 -3
- package/dist/identity/github/index.d.ts.map +1 -1
- package/dist/identity/github/index.js +1 -2
- package/dist/identity/github/index.js.map +1 -1
- package/dist/identity/index.d.ts +1 -8
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js +0 -11
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/options.d.ts +3 -3
- package/dist/identity/options.js +3 -9
- package/dist/identity/options.js.map +1 -1
- package/dist/identity/slack/links.d.ts +1 -2
- package/dist/identity/slack/links.d.ts.map +1 -1
- package/dist/identity/slack/links.js +1 -2
- package/dist/identity/slack/links.js.map +1 -1
- package/dist/identity/types.d.ts +8 -29
- package/dist/identity/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/namespaces.d.ts +5 -177
- package/dist/namespaces.d.ts.map +1 -1
- package/dist/namespaces.js +1 -57
- package/dist/namespaces.js.map +1 -1
- package/dist/runtime/auth.d.ts +1 -1
- package/dist/runtime/auth.js +1 -1
- package/dist/runtime/cors.d.ts +1 -0
- package/dist/runtime/cors.d.ts.map +1 -1
- package/dist/runtime/cors.js +1 -1
- package/dist/runtime/cors.js.map +1 -1
- package/dist/runtime/credentials.d.ts +1 -1
- package/dist/runtime/credentials.js +1 -1
- package/dist/runtime/identity-http.d.ts.map +1 -1
- package/dist/runtime/identity-http.js +0 -69
- package/dist/runtime/identity-http.js.map +1 -1
- package/dist/runtime/index.d.ts +0 -8
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +0 -35
- package/dist/runtime/index.js.map +1 -1
- package/package.json +12 -14
- package/dist/connectors/marketplace/catalog.d.ts +0 -96
- package/dist/connectors/marketplace/catalog.d.ts.map +0 -1
- package/dist/connectors/marketplace/catalog.js +0 -213
- package/dist/connectors/marketplace/catalog.js.map +0 -1
- package/dist/connectors/marketplace/fleet-mcp.d.ts +0 -62
- package/dist/connectors/marketplace/fleet-mcp.d.ts.map +0 -1
- package/dist/connectors/marketplace/fleet-mcp.js +0 -215
- package/dist/connectors/marketplace/fleet-mcp.js.map +0 -1
- package/dist/connectors/marketplace/index.d.ts +0 -31
- package/dist/connectors/marketplace/index.d.ts.map +0 -1
- package/dist/connectors/marketplace/index.js +0 -39
- package/dist/connectors/marketplace/index.js.map +0 -1
- package/dist/connectors/marketplace/load.d.ts +0 -14
- package/dist/connectors/marketplace/load.d.ts.map +0 -1
- package/dist/connectors/marketplace/load.js +0 -206
- package/dist/connectors/marketplace/load.js.map +0 -1
- package/dist/connectors/slack/index.d.ts +0 -24
- package/dist/connectors/slack/index.d.ts.map +0 -1
- package/dist/connectors/slack/index.js +0 -64
- package/dist/connectors/slack/index.js.map +0 -1
- package/dist/connectors/toolserver/catalog.d.ts +0 -326
- package/dist/connectors/toolserver/catalog.d.ts.map +0 -1
- package/dist/connectors/toolserver/catalog.js +0 -415
- package/dist/connectors/toolserver/catalog.js.map +0 -1
- package/dist/connectors/toolserver/connectors.d.ts +0 -698
- package/dist/connectors/toolserver/connectors.d.ts.map +0 -1
- package/dist/connectors/toolserver/connectors.js +0 -13
- package/dist/connectors/toolserver/connectors.js.map +0 -1
- package/dist/connectors/toolserver/index.d.ts +0 -142
- package/dist/connectors/toolserver/index.d.ts.map +0 -1
- package/dist/connectors/toolserver/index.js +0 -105
- package/dist/connectors/toolserver/index.js.map +0 -1
- package/dist/connectors/toolserver/integrations.d.ts +0 -103
- package/dist/connectors/toolserver/integrations.d.ts.map +0 -1
- package/dist/connectors/toolserver/integrations.js +0 -288
- package/dist/connectors/toolserver/integrations.js.map +0 -1
- package/dist/connectors/toolserver/load.d.ts +0 -55
- package/dist/connectors/toolserver/load.d.ts.map +0 -1
- package/dist/connectors/toolserver/load.js +0 -289
- package/dist/connectors/toolserver/load.js.map +0 -1
- package/dist/identity/actor-subject.d.ts +0 -60
- package/dist/identity/actor-subject.d.ts.map +0 -1
- package/dist/identity/actor-subject.js +0 -107
- package/dist/identity/actor-subject.js.map +0 -1
- package/dist/identity/byo-oauth.d.ts +0 -105
- package/dist/identity/byo-oauth.d.ts.map +0 -1
- package/dist/identity/byo-oauth.js +0 -190
- package/dist/identity/byo-oauth.js.map +0 -1
- package/dist/identity/connect-inference.d.ts +0 -37
- package/dist/identity/connect-inference.d.ts.map +0 -1
- package/dist/identity/connect-inference.js +0 -53
- package/dist/identity/connect-inference.js.map +0 -1
- package/dist/identity/connect-paths.d.ts +0 -8
- package/dist/identity/connect-paths.d.ts.map +0 -1
- package/dist/identity/connect-paths.js +0 -11
- package/dist/identity/connect-paths.js.map +0 -1
- package/dist/identity/connect-provider-types.d.ts +0 -97
- package/dist/identity/connect-provider-types.d.ts.map +0 -1
- package/dist/identity/connect-provider-types.js +0 -10
- package/dist/identity/connect-provider-types.js.map +0 -1
- package/dist/identity/connect-provider.d.ts +0 -35
- package/dist/identity/connect-provider.d.ts.map +0 -1
- package/dist/identity/connect-provider.js +0 -148
- package/dist/identity/connect-provider.js.map +0 -1
- package/dist/identity/define-fleet-connect.d.ts +0 -53
- package/dist/identity/define-fleet-connect.d.ts.map +0 -1
- package/dist/identity/define-fleet-connect.js +0 -76
- package/dist/identity/define-fleet-connect.js.map +0 -1
- package/dist/identity/fleet-connect-hint.d.ts +0 -41
- package/dist/identity/fleet-connect-hint.d.ts.map +0 -1
- package/dist/identity/fleet-connect-hint.js +0 -190
- package/dist/identity/fleet-connect-hint.js.map +0 -1
- package/dist/identity/fleet-connect.d.ts +0 -93
- package/dist/identity/fleet-connect.d.ts.map +0 -1
- package/dist/identity/fleet-connect.js +0 -256
- package/dist/identity/fleet-connect.js.map +0 -1
- package/dist/identity/fleet-integration-connect.d.ts +0 -32
- package/dist/identity/fleet-integration-connect.d.ts.map +0 -1
- package/dist/identity/fleet-integration-connect.js +0 -35
- package/dist/identity/fleet-integration-connect.js.map +0 -1
- package/dist/identity/fleet.d.ts +0 -56
- package/dist/identity/fleet.d.ts.map +0 -1
- package/dist/identity/fleet.js +0 -131
- package/dist/identity/fleet.js.map +0 -1
- package/dist/identity/github/connect-http.d.ts +0 -37
- package/dist/identity/github/connect-http.d.ts.map +0 -1
- package/dist/identity/github/connect-http.js +0 -128
- package/dist/identity/github/connect-http.js.map +0 -1
- package/dist/identity/github/oauth.d.ts +0 -47
- package/dist/identity/github/oauth.d.ts.map +0 -1
- package/dist/identity/github/oauth.js +0 -124
- package/dist/identity/github/oauth.js.map +0 -1
- package/dist/identity/google/connect-http.d.ts +0 -37
- package/dist/identity/google/connect-http.d.ts.map +0 -1
- package/dist/identity/google/connect-http.js +0 -42
- package/dist/identity/google/connect-http.js.map +0 -1
- package/dist/identity/google/index.d.ts +0 -7
- package/dist/identity/google/index.d.ts.map +0 -1
- package/dist/identity/google/index.js +0 -6
- package/dist/identity/google/index.js.map +0 -1
- package/dist/identity/google/oauth.d.ts +0 -22
- package/dist/identity/google/oauth.d.ts.map +0 -1
- package/dist/identity/google/oauth.js +0 -48
- package/dist/identity/google/oauth.js.map +0 -1
- package/dist/identity/linkedin/connect-http.d.ts +0 -37
- package/dist/identity/linkedin/connect-http.d.ts.map +0 -1
- package/dist/identity/linkedin/connect-http.js +0 -41
- package/dist/identity/linkedin/connect-http.js.map +0 -1
- package/dist/identity/linkedin/index.d.ts +0 -7
- package/dist/identity/linkedin/index.d.ts.map +0 -1
- package/dist/identity/linkedin/index.js +0 -6
- package/dist/identity/linkedin/index.js.map +0 -1
- package/dist/identity/linkedin/oauth.d.ts +0 -22
- package/dist/identity/linkedin/oauth.d.ts.map +0 -1
- package/dist/identity/linkedin/oauth.js +0 -47
- package/dist/identity/linkedin/oauth.js.map +0 -1
- package/dist/identity/marketplace/connect-hint.d.ts +0 -31
- package/dist/identity/marketplace/connect-hint.d.ts.map +0 -1
- package/dist/identity/marketplace/connect-hint.js +0 -59
- package/dist/identity/marketplace/connect-hint.js.map +0 -1
- package/dist/identity/marketplace/connect.d.ts +0 -51
- package/dist/identity/marketplace/connect.d.ts.map +0 -1
- package/dist/identity/marketplace/connect.js +0 -88
- package/dist/identity/marketplace/connect.js.map +0 -1
- package/dist/identity/marketplace/index.d.ts +0 -9
- package/dist/identity/marketplace/index.d.ts.map +0 -1
- package/dist/identity/marketplace/index.js +0 -9
- package/dist/identity/marketplace/index.js.map +0 -1
- package/dist/identity/microsoft/connect-http.d.ts +0 -38
- package/dist/identity/microsoft/connect-http.d.ts.map +0 -1
- package/dist/identity/microsoft/connect-http.js +0 -42
- package/dist/identity/microsoft/connect-http.js.map +0 -1
- package/dist/identity/microsoft/index.d.ts +0 -7
- package/dist/identity/microsoft/index.d.ts.map +0 -1
- package/dist/identity/microsoft/index.js +0 -6
- package/dist/identity/microsoft/index.js.map +0 -1
- package/dist/identity/microsoft/oauth.d.ts +0 -24
- package/dist/identity/microsoft/oauth.d.ts.map +0 -1
- package/dist/identity/microsoft/oauth.js +0 -65
- package/dist/identity/microsoft/oauth.js.map +0 -1
- package/dist/identity/oauth-env.d.ts +0 -43
- package/dist/identity/oauth-env.d.ts.map +0 -1
- package/dist/identity/oauth-env.js +0 -66
- package/dist/identity/oauth-env.js.map +0 -1
- package/dist/identity/oauth-tickets.d.ts +0 -37
- package/dist/identity/oauth-tickets.d.ts.map +0 -1
- package/dist/identity/oauth-tickets.js +0 -114
- package/dist/identity/oauth-tickets.js.map +0 -1
- package/dist/identity/slack/connect-http.d.ts +0 -35
- package/dist/identity/slack/connect-http.d.ts.map +0 -1
- package/dist/identity/slack/connect-http.js +0 -115
- package/dist/identity/slack/connect-http.js.map +0 -1
- package/dist/identity/slack/index.d.ts +0 -8
- package/dist/identity/slack/index.d.ts.map +0 -1
- package/dist/identity/slack/index.js +0 -7
- package/dist/identity/slack/index.js.map +0 -1
- package/dist/identity/slack/oauth.d.ts +0 -28
- package/dist/identity/slack/oauth.d.ts.map +0 -1
- package/dist/identity/slack/oauth.js +0 -87
- package/dist/identity/slack/oauth.js.map +0 -1
- package/dist/identity/x/connect-http.d.ts +0 -38
- package/dist/identity/x/connect-http.d.ts.map +0 -1
- package/dist/identity/x/connect-http.js +0 -41
- package/dist/identity/x/connect-http.js.map +0 -1
- package/dist/identity/x/index.d.ts +0 -6
- package/dist/identity/x/index.d.ts.map +0 -1
- package/dist/identity/x/index.js +0 -5
- package/dist/identity/x/index.js.map +0 -1
- package/types/index.d.ts +0 -6
- package/types/markdown-md.d.ts +0 -14
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-integration factories on `connectors` for LangSmith tool-server tools.
|
|
3
|
-
*
|
|
4
|
-
* Built from {@link TOOL_SERVER_INTEGRATIONS}. Each property documents the
|
|
5
|
-
* provider, the tool names accepted by `includeTools` / `excludeTools`, and the
|
|
6
|
-
* shared {@link ToolServerConnectorConfig} options. Hover docs live here so IDE
|
|
7
|
-
* autocomplete on `connectors.gmail` (etc.) stays useful.
|
|
8
|
-
*
|
|
9
|
-
* GitHub and Slack are first-class connectors (sandbox / Events / messaging) and
|
|
10
|
-
* are intentionally omitted from this interface — see the `connectors` namespace.
|
|
11
|
-
*/
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=connectors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.js","sourceRoot":"","sources":["../../../src/connectors/toolserver/connectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tool server connectors — the integrations a workspace manages in LangSmith.
|
|
3
|
-
*
|
|
4
|
-
* A workspace connects Gmail, Slack, Linear, … once in LangSmith; declaring the
|
|
5
|
-
* matching connector is how a Managed Deep Agent gets those tools. The provider's
|
|
6
|
-
* tokens stay in LangSmith's vault: MDA calls LangSmith's tool server gateway,
|
|
7
|
-
* which resolves the credential for the subject and forwards to the tool server.
|
|
8
|
-
* The deployment never sees, stores, or refreshes a provider token.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* // connectors/gmail.ts
|
|
13
|
-
* import { connectors } from "managed-deepagents";
|
|
14
|
-
*
|
|
15
|
-
* export const connector = connectors.gmail({
|
|
16
|
-
* includeTools: ["gmail_read_emails", "gmail_draft_email"],
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* ## Whose credentials
|
|
21
|
-
*
|
|
22
|
-
* Nothing here. Which workspace the call runs against, which key authenticates
|
|
23
|
-
* it, and whose connection it resolves are facts about the deployment, not
|
|
24
|
-
* choices the agent's source makes — so they come from the environment
|
|
25
|
-
* (`LANGSMITH_API_KEY`, `LANGSMITH_ENDPOINT`, `LANGSMITH_WORKSPACE_ID`) and the
|
|
26
|
-
* declaration is only ever about which tools the agent gets.
|
|
27
|
-
*
|
|
28
|
-
* The gateway resolves credentials for whoever the call authenticates as, so the
|
|
29
|
-
* subject is the deployment's key rather than the caller of the run: every thread
|
|
30
|
-
* reaches the same connection. A personal key resolves that user's connections,
|
|
31
|
-
* which is what makes `mda dev` work against your own Gmail. A key with no user
|
|
32
|
-
* behind it has no subject yet, and has to borrow an agent's shared connection
|
|
33
|
-
* via `MDA_TOOLSERVER_AGENT_ID` — see the loader for why that is an env var.
|
|
34
|
-
*
|
|
35
|
-
* Per-actor Fleet vault subjects: declaring a Fleet OAuth integration connector
|
|
36
|
-
* (e.g. `connectors.gmail`, `connectors.googleSheets`) on a user-scoped identity
|
|
37
|
-
* deployment mounts Connect-with-X automatically (unioned scopes) and routes
|
|
38
|
-
* toolserver calls with a derived `?agent_id=` at invoke time. Integrations live
|
|
39
|
-
* in {@link ./integrations.ts}.
|
|
40
|
-
*/
|
|
41
|
-
export { FLEET_OAUTH_INTEGRATIONS, GOOGLE_INTEGRATION, GOOGLE_TOOLSERVER_SLUGS, LINKEDIN_INTEGRATION, LINKEDIN_TOOLSERVER_SLUGS, MICROSOFT_INTEGRATION, MICROSOFT_TOOLSERVER_SLUGS, X_INTEGRATION, X_TOOLSERVER_SLUGS, integrationConnectorKinds, integrationById, integrationForSlug, googleConnectorKinds, googleScopesForConnectorKinds, hasIntegrationToolServerConnector, hasGoogleToolServerConnector, hasLinkedInToolServerConnector, hasMicrosoftToolServerConnector, hasXToolServerConnector, isFleetOAuthSlug, isGoogleToolServerSlug, isLinkedInToolServerSlug, isMicrosoftToolServerSlug, isXToolServerSlug, linkedinConnectorKinds, linkedinScopesForConnectorKinds, microsoftConnectorKinds, microsoftScopesForConnectorKinds, xConnectorKinds, xScopesForConnectorKinds, readIntegrationProviderSlug, readGoogleProviderSlug, readLinkedInProviderSlug, readMicrosoftProviderSlug, readXProviderSlug, scopesForIntegrationConnectorKinds, type FleetOAuthIntegration, type GoogleToolServerSlug, type LinkedInToolServerSlug, type MicrosoftToolServerSlug, type XToolServerSlug, } from "./integrations.js";
|
|
42
|
-
import type { ZodRawShape, ZodType } from "zod";
|
|
43
|
-
import type { Connector } from "../../runtime/connector.js";
|
|
44
|
-
import { type ToolSelection, type ToolSelectionConnectorConfig } from "../tool-selection.js";
|
|
45
|
-
import { type ToolServerSlug } from "./catalog.js";
|
|
46
|
-
import type { ToolServerConnectors } from "./connectors.js";
|
|
47
|
-
export { SLACK_SLUG, STANDALONE_TOOL_SERVER_INTEGRATIONS, TOOL_SERVER_INTEGRATIONS, integrationForFactory, } from "./catalog.js";
|
|
48
|
-
export type { ToolServerFactoryName, ToolServerIntegration, ToolServerIntegrationEntry, ToolServerSlug, ToolsForFactory, } from "./catalog.js";
|
|
49
|
-
export type { ToolServerConnectorFactoryFor, ToolServerConnectors, } from "./connectors.js";
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Prefer {@link ToolSelection}. Kept so existing
|
|
52
|
-
* `import type { ToolServerToolSelection } from "managed-deepagents"` keeps
|
|
53
|
-
* compiling after the shared tool-selection rename.
|
|
54
|
-
*/
|
|
55
|
-
export type ToolServerToolSelection<TTool extends string = string> = ToolSelection<TTool>;
|
|
56
|
-
/**
|
|
57
|
-
* Configuration accepted by every `connectors.<integration>` factory.
|
|
58
|
-
*
|
|
59
|
-
* Alias of {@link ToolSelectionConnectorConfig}: which tools the agent gets and
|
|
60
|
-
* how long it waits for one. How to reach LangSmith and whose credentials to
|
|
61
|
-
* use come from the deployment — see the module docs.
|
|
62
|
-
*
|
|
63
|
-
* When `TTool` is a catalog tool-name union (via {@link ToolsForFactory}),
|
|
64
|
-
* `includeTools` / `excludeTools` autocomplete the integration's tools.
|
|
65
|
-
* Omitting both means every tool the integration publishes; an empty
|
|
66
|
-
* `includeTools` selects none.
|
|
67
|
-
*/
|
|
68
|
-
export type ToolServerConnectorConfig<TTool extends string = string> = ToolSelectionConnectorConfig<TTool>;
|
|
69
|
-
/**
|
|
70
|
-
* A declared tool server integration. Branded as a managed {@link Connector}
|
|
71
|
-
* whose `tools` hook loads the integration's tools at runtime, and whose `kind`
|
|
72
|
-
* is the integration's wire slug.
|
|
73
|
-
*/
|
|
74
|
-
export type ToolServerConnector<TTool extends string = string> = Connector & ToolServerConnectorConfig<TTool> & {
|
|
75
|
-
/** The tool server slug this connector loads from. */
|
|
76
|
-
readonly kind: ToolServerSlug;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* A `connectors.<integration>` factory for a LangSmith tool-server integration
|
|
80
|
-
* (e.g. `connectors.gmail`, `connectors.linear`, `connectors.googleSheets`).
|
|
81
|
-
*
|
|
82
|
-
* Prefer the per-factory typings on {@link ToolServerConnectors} for hover docs
|
|
83
|
-
* and tool-name autocomplete. This alias is the shared untyped shape used when
|
|
84
|
-
* iterating the catalog.
|
|
85
|
-
*
|
|
86
|
-
* @param config - Optional tool selection and per-call timeout.
|
|
87
|
-
* @returns A branded connector discovered from `connectors/<name>.ts`.
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* ```ts
|
|
91
|
-
* export const connector = connectors.gmail({
|
|
92
|
-
* includeTools: ["gmail_read_emails", "gmail_draft_email"],
|
|
93
|
-
* });
|
|
94
|
-
* ```
|
|
95
|
-
*
|
|
96
|
-
* @see {@link ToolServerConnectorConfig}
|
|
97
|
-
* @see {@link ToolServerConnectors}
|
|
98
|
-
*/
|
|
99
|
-
export type ToolServerConnectorFactory = (config?: ToolServerConnectorConfig) => ToolServerConnector;
|
|
100
|
-
/**
|
|
101
|
-
* Build the argument schema for one tool server integration.
|
|
102
|
-
*
|
|
103
|
-
* Delegates to {@link toolSelectionConnectorSchema} so marketplace bridges and
|
|
104
|
-
* tool-server factories reject blank/duplicate names and include∩exclude
|
|
105
|
-
* overlap the same way. `extra` adds whatever the integration accepts on top
|
|
106
|
-
* of the shared options.
|
|
107
|
-
*
|
|
108
|
-
* Strict, so an option that does not exist is an error rather than a silently
|
|
109
|
-
* ignored key — which matches the Python model's `extra="forbid"`, and is what
|
|
110
|
-
* tells a project that `apiKey` and friends now come from the environment.
|
|
111
|
-
*
|
|
112
|
-
* The result is cast to the caller's argument types. Zod cannot describe a
|
|
113
|
-
* prefaulted object as "accepts undefined, produces defaults" in one type, so
|
|
114
|
-
* the shape and the declared config interface are kept in step by review.
|
|
115
|
-
*/
|
|
116
|
-
export declare function toolServerConnectorSchema<TArgs, TInput>(extra?: ZodRawShape): ZodType<TArgs, TInput>;
|
|
117
|
-
/**
|
|
118
|
-
* Build the `tools` hook that loads one integration's tools.
|
|
119
|
-
*
|
|
120
|
-
* Shared so every integration reaches the gateway the same way.
|
|
121
|
-
*
|
|
122
|
-
* The hook runs at agent-graph construction, so the loader is imported lazily —
|
|
123
|
-
* an authoring-only install never pulls in the MCP client.
|
|
124
|
-
*/
|
|
125
|
-
export declare function toolServerTools(slug: ToolServerSlug, label: string): (ctx: unknown, self: ToolServerConnectorConfig) => Promise<unknown[]>;
|
|
126
|
-
/**
|
|
127
|
-
* Build the factory for one tool server integration.
|
|
128
|
-
*
|
|
129
|
-
* For the integrations that are only their tools. An integration with more to
|
|
130
|
-
* contribute (e.g. `connectors.slack`) calls `defineExtension` itself with
|
|
131
|
-
* {@link toolServerConnectorSchema} and {@link toolServerTools}.
|
|
132
|
-
*/
|
|
133
|
-
export declare function toolServerConnector(slug: ToolServerSlug, label: string): ToolServerConnectorFactory;
|
|
134
|
-
/**
|
|
135
|
-
* The `connectors` entries for the integrations that have their own factory.
|
|
136
|
-
*
|
|
137
|
-
* Built from the catalog so a new integration is one entry, not an entry plus a
|
|
138
|
-
* namespace line that can be forgotten. Typed as {@link ToolServerConnectors} so
|
|
139
|
-
* hover docs and tool-name unions surface on `connectors.<factory>`.
|
|
140
|
-
*/
|
|
141
|
-
export declare const toolServerConnectors: ToolServerConnectors;
|
|
142
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connectors/toolserver/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,EAClB,yBAAyB,EACzB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,iCAAiC,EACjC,4BAA4B,EAC5B,8BAA8B,EAC9B,+BAA+B,EAC/B,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,+BAA+B,EAC/B,uBAAuB,EACvB,gCAAgC,EAChC,eAAe,EACf,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,kCAAkC,EAClC,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,eAAe,GACrB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAGhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,4BAA4B,EAClC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAA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cAAc,EACpB,KAAK,EAAE,MAAM,GACZ,0BAA0B,CAU5B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,oBAKC,CAAC"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tool server connectors — the integrations a workspace manages in LangSmith.
|
|
3
|
-
*
|
|
4
|
-
* A workspace connects Gmail, Slack, Linear, … once in LangSmith; declaring the
|
|
5
|
-
* matching connector is how a Managed Deep Agent gets those tools. The provider's
|
|
6
|
-
* tokens stay in LangSmith's vault: MDA calls LangSmith's tool server gateway,
|
|
7
|
-
* which resolves the credential for the subject and forwards to the tool server.
|
|
8
|
-
* The deployment never sees, stores, or refreshes a provider token.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* // connectors/gmail.ts
|
|
13
|
-
* import { connectors } from "managed-deepagents";
|
|
14
|
-
*
|
|
15
|
-
* export const connector = connectors.gmail({
|
|
16
|
-
* includeTools: ["gmail_read_emails", "gmail_draft_email"],
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* ## Whose credentials
|
|
21
|
-
*
|
|
22
|
-
* Nothing here. Which workspace the call runs against, which key authenticates
|
|
23
|
-
* it, and whose connection it resolves are facts about the deployment, not
|
|
24
|
-
* choices the agent's source makes — so they come from the environment
|
|
25
|
-
* (`LANGSMITH_API_KEY`, `LANGSMITH_ENDPOINT`, `LANGSMITH_WORKSPACE_ID`) and the
|
|
26
|
-
* declaration is only ever about which tools the agent gets.
|
|
27
|
-
*
|
|
28
|
-
* The gateway resolves credentials for whoever the call authenticates as, so the
|
|
29
|
-
* subject is the deployment's key rather than the caller of the run: every thread
|
|
30
|
-
* reaches the same connection. A personal key resolves that user's connections,
|
|
31
|
-
* which is what makes `mda dev` work against your own Gmail. A key with no user
|
|
32
|
-
* behind it has no subject yet, and has to borrow an agent's shared connection
|
|
33
|
-
* via `MDA_TOOLSERVER_AGENT_ID` — see the loader for why that is an env var.
|
|
34
|
-
*
|
|
35
|
-
* Per-actor Fleet vault subjects: declaring a Fleet OAuth integration connector
|
|
36
|
-
* (e.g. `connectors.gmail`, `connectors.googleSheets`) on a user-scoped identity
|
|
37
|
-
* deployment mounts Connect-with-X automatically (unioned scopes) and routes
|
|
38
|
-
* toolserver calls with a derived `?agent_id=` at invoke time. Integrations live
|
|
39
|
-
* in {@link ./integrations.ts}.
|
|
40
|
-
*/
|
|
41
|
-
export { FLEET_OAUTH_INTEGRATIONS, GOOGLE_INTEGRATION, GOOGLE_TOOLSERVER_SLUGS, LINKEDIN_INTEGRATION, LINKEDIN_TOOLSERVER_SLUGS, MICROSOFT_INTEGRATION, MICROSOFT_TOOLSERVER_SLUGS, X_INTEGRATION, X_TOOLSERVER_SLUGS, integrationConnectorKinds, integrationById, integrationForSlug, googleConnectorKinds, googleScopesForConnectorKinds, hasIntegrationToolServerConnector, hasGoogleToolServerConnector, hasLinkedInToolServerConnector, hasMicrosoftToolServerConnector, hasXToolServerConnector, isFleetOAuthSlug, isGoogleToolServerSlug, isLinkedInToolServerSlug, isMicrosoftToolServerSlug, isXToolServerSlug, linkedinConnectorKinds, linkedinScopesForConnectorKinds, microsoftConnectorKinds, microsoftScopesForConnectorKinds, xConnectorKinds, xScopesForConnectorKinds, readIntegrationProviderSlug, readGoogleProviderSlug, readLinkedInProviderSlug, readMicrosoftProviderSlug, readXProviderSlug, scopesForIntegrationConnectorKinds, } from "./integrations.js";
|
|
42
|
-
import { defineExtension } from "../../extension.js";
|
|
43
|
-
import { toolSelectionConnectorSchema, } from "../tool-selection.js";
|
|
44
|
-
import { STANDALONE_TOOL_SERVER_INTEGRATIONS, } from "./catalog.js";
|
|
45
|
-
export { SLACK_SLUG, STANDALONE_TOOL_SERVER_INTEGRATIONS, TOOL_SERVER_INTEGRATIONS, integrationForFactory, } from "./catalog.js";
|
|
46
|
-
/**
|
|
47
|
-
* Build the argument schema for one tool server integration.
|
|
48
|
-
*
|
|
49
|
-
* Delegates to {@link toolSelectionConnectorSchema} so marketplace bridges and
|
|
50
|
-
* tool-server factories reject blank/duplicate names and include∩exclude
|
|
51
|
-
* overlap the same way. `extra` adds whatever the integration accepts on top
|
|
52
|
-
* of the shared options.
|
|
53
|
-
*
|
|
54
|
-
* Strict, so an option that does not exist is an error rather than a silently
|
|
55
|
-
* ignored key — which matches the Python model's `extra="forbid"`, and is what
|
|
56
|
-
* tells a project that `apiKey` and friends now come from the environment.
|
|
57
|
-
*
|
|
58
|
-
* The result is cast to the caller's argument types. Zod cannot describe a
|
|
59
|
-
* prefaulted object as "accepts undefined, produces defaults" in one type, so
|
|
60
|
-
* the shape and the declared config interface are kept in step by review.
|
|
61
|
-
*/
|
|
62
|
-
export function toolServerConnectorSchema(extra = {}) {
|
|
63
|
-
return toolSelectionConnectorSchema(extra);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Build the `tools` hook that loads one integration's tools.
|
|
67
|
-
*
|
|
68
|
-
* Shared so every integration reaches the gateway the same way.
|
|
69
|
-
*
|
|
70
|
-
* The hook runs at agent-graph construction, so the loader is imported lazily —
|
|
71
|
-
* an authoring-only install never pulls in the MCP client.
|
|
72
|
-
*/
|
|
73
|
-
export function toolServerTools(slug, label) {
|
|
74
|
-
return async (_ctx, self) => {
|
|
75
|
-
const { loadToolServerTools } = await import("./load.js");
|
|
76
|
-
return loadToolServerTools(slug, label, self);
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Build the factory for one tool server integration.
|
|
81
|
-
*
|
|
82
|
-
* For the integrations that are only their tools. An integration with more to
|
|
83
|
-
* contribute (e.g. `connectors.slack`) calls `defineExtension` itself with
|
|
84
|
-
* {@link toolServerConnectorSchema} and {@link toolServerTools}.
|
|
85
|
-
*/
|
|
86
|
-
export function toolServerConnector(slug, label) {
|
|
87
|
-
return defineExtension("connector", {
|
|
88
|
-
kind: slug,
|
|
89
|
-
label,
|
|
90
|
-
args: toolServerConnectorSchema(),
|
|
91
|
-
tools: toolServerTools(slug, label),
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* The `connectors` entries for the integrations that have their own factory.
|
|
96
|
-
*
|
|
97
|
-
* Built from the catalog so a new integration is one entry, not an entry plus a
|
|
98
|
-
* namespace line that can be forgotten. Typed as {@link ToolServerConnectors} so
|
|
99
|
-
* hover docs and tool-name unions surface on `connectors.<factory>`.
|
|
100
|
-
*/
|
|
101
|
-
export const toolServerConnectors = Object.fromEntries(STANDALONE_TOOL_SERVER_INTEGRATIONS.map(({ slug, factory }) => [
|
|
102
|
-
factory,
|
|
103
|
-
toolServerConnector(slug, `connectors.${factory}`),
|
|
104
|
-
]));
|
|
105
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/connectors/toolserver/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,EAClB,yBAAyB,EACzB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,iCAAiC,EACjC,4BAA4B,EAC5B,8BAA8B,EAC9B,+BAA+B,EAC/B,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,+BAA+B,EAC/B,uBAAuB,EACvB,gCAAgC,EAChC,eAAe,EACf,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,kCAAkC,GAMnC,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,eA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leet OAuth integrations for toolserver connectors that store per-actor
|
|
3
|
-
* tokens in the LangSmith vault.
|
|
4
|
-
*
|
|
5
|
-
* Adding an integration here is the main step for a new Fleet provider of the
|
|
6
|
-
* same kind (Google, Microsoft Graph, LinkedIn, X): toolserver load, Connect
|
|
7
|
-
* inference, scopes, and actor-subject enablement all read this catalog.
|
|
8
|
-
*/
|
|
9
|
-
import type { ToolServerSlug } from "./catalog.js";
|
|
10
|
-
/**
|
|
11
|
-
* A group of toolserver slugs that share one LangSmith OAuth provider and one
|
|
12
|
-
* Connect-with-X ceremony.
|
|
13
|
-
*/
|
|
14
|
-
export interface FleetOAuthIntegration {
|
|
15
|
-
/** Stable integration id (actor-subject registry key), e.g. `"google"`. */
|
|
16
|
-
readonly id: string;
|
|
17
|
-
/** Connect path segment / `connect.<id>()` name. */
|
|
18
|
-
readonly connectId: string;
|
|
19
|
-
/** Human label for agent hints ("Google", "Microsoft"). */
|
|
20
|
-
readonly displayName: string;
|
|
21
|
-
/** Default LangSmith OAuth provider slug. */
|
|
22
|
-
readonly defaultProviderSlug: string;
|
|
23
|
-
/** Optional env override for {@link defaultProviderSlug}. */
|
|
24
|
-
readonly providerSlugEnv?: string;
|
|
25
|
-
/** Toolserver wire slugs that belong to this integration. */
|
|
26
|
-
readonly toolServerSlugs: readonly ToolServerSlug[];
|
|
27
|
-
/** Scopes always included when any integration connector is present. */
|
|
28
|
-
readonly profileScopes?: readonly string[];
|
|
29
|
-
/** Extra OAuth scopes per toolserver slug. */
|
|
30
|
-
readonly scopesBySlug: Readonly<Partial<Record<ToolServerSlug, readonly string[]>>>;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Built-in Fleet OAuth integrations.
|
|
34
|
-
*
|
|
35
|
-
* To adopt another provider of the same kind: add a row, wire
|
|
36
|
-
* `connect.<id>()` (usually via {@link createFleetVaultConnectProvider}), and
|
|
37
|
-
* optionally a BYO OAuth adapter. Toolserver subject routing and connect
|
|
38
|
-
* inference pick the integration up automatically.
|
|
39
|
-
*/
|
|
40
|
-
export declare const FLEET_OAUTH_INTEGRATIONS: readonly FleetOAuthIntegration[];
|
|
41
|
-
export declare function integrationById(id: string): FleetOAuthIntegration | undefined;
|
|
42
|
-
export declare function integrationForSlug(slug: string | undefined): FleetOAuthIntegration | undefined;
|
|
43
|
-
export declare function isFleetOAuthSlug(slug: string | undefined): boolean;
|
|
44
|
-
/** Toolserver slugs for `integration` that appear in `kinds`. */
|
|
45
|
-
export declare function integrationConnectorKinds(integration: FleetOAuthIntegration, kinds: readonly (string | undefined)[] | undefined): string[];
|
|
46
|
-
export declare function hasIntegrationToolServerConnector(integration: FleetOAuthIntegration, kinds: readonly (string | undefined)[] | undefined): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Union of OAuth scopes for the given connector kinds in `integration`.
|
|
49
|
-
*
|
|
50
|
-
* Includes {@link FleetOAuthIntegration.profileScopes} when at least one
|
|
51
|
-
* integration connector is present.
|
|
52
|
-
*/
|
|
53
|
-
export declare function scopesForIntegrationConnectorKinds(integration: FleetOAuthIntegration, kinds: readonly (string | undefined)[] | undefined): string[];
|
|
54
|
-
export declare function readIntegrationProviderSlug(integration: FleetOAuthIntegration, env?: NodeJS.ProcessEnv): string;
|
|
55
|
-
/** Google integration convenience — same UUID namespace / slug set as before. */
|
|
56
|
-
export declare const GOOGLE_INTEGRATION: FleetOAuthIntegration;
|
|
57
|
-
export declare const GOOGLE_TOOLSERVER_SLUGS: readonly ("apollo" | "ashby" | "base" | "exa" | "excel" | "gmail" | "google_bigquery" | "google_calendar" | "google_docs" | "google_drive" | "google_meet" | "google_sheets" | "google_slides" | "linear" | "linkedin" | "outlook" | "powerpoint" | "pylon" | "salesforce" | "sharepoint" | "slack" | "tavily" | "teams" | "word" | "x_com")[];
|
|
58
|
-
export type GoogleToolServerSlug = (typeof GOOGLE_TOOLSERVER_SLUGS)[number];
|
|
59
|
-
export declare function isGoogleToolServerSlug(slug: string | undefined): slug is GoogleToolServerSlug;
|
|
60
|
-
export declare function googleConnectorKinds(kinds: readonly (string | undefined)[] | undefined): GoogleToolServerSlug[];
|
|
61
|
-
export declare function googleScopesForConnectorKinds(kinds: readonly (string | undefined)[] | undefined): string[];
|
|
62
|
-
export declare function hasGoogleToolServerConnector(kinds: readonly (string | undefined)[] | undefined): boolean;
|
|
63
|
-
/** Env name for the Google Fleet provider slug. */
|
|
64
|
-
export declare const MDA_GOOGLE_OAUTH_PROVIDER_ENV = "MDA_GOOGLE_OAUTH_PROVIDER";
|
|
65
|
-
export declare const DEFAULT_GOOGLE_PROVIDER_SLUG: string;
|
|
66
|
-
export declare function readGoogleProviderSlug(env?: NodeJS.ProcessEnv): string;
|
|
67
|
-
/** Microsoft Graph integration convenience helpers. */
|
|
68
|
-
export declare const MICROSOFT_INTEGRATION: FleetOAuthIntegration;
|
|
69
|
-
export declare const MICROSOFT_TOOLSERVER_SLUGS: readonly ("apollo" | "ashby" | "base" | "exa" | "excel" | "gmail" | "google_bigquery" | "google_calendar" | "google_docs" | "google_drive" | "google_meet" | "google_sheets" | "google_slides" | "linear" | "linkedin" | "outlook" | "powerpoint" | "pylon" | "salesforce" | "sharepoint" | "slack" | "tavily" | "teams" | "word" | "x_com")[];
|
|
70
|
-
export type MicrosoftToolServerSlug = (typeof MICROSOFT_TOOLSERVER_SLUGS)[number];
|
|
71
|
-
export declare function isMicrosoftToolServerSlug(slug: string | undefined): slug is MicrosoftToolServerSlug;
|
|
72
|
-
export declare function microsoftConnectorKinds(kinds: readonly (string | undefined)[] | undefined): MicrosoftToolServerSlug[];
|
|
73
|
-
export declare function microsoftScopesForConnectorKinds(kinds: readonly (string | undefined)[] | undefined): string[];
|
|
74
|
-
export declare function hasMicrosoftToolServerConnector(kinds: readonly (string | undefined)[] | undefined): boolean;
|
|
75
|
-
/** Env name for the Microsoft Fleet provider slug. */
|
|
76
|
-
export declare const MDA_MICROSOFT_OAUTH_PROVIDER_ENV = "MDA_MICROSOFT_OAUTH_PROVIDER";
|
|
77
|
-
export declare const DEFAULT_MICROSOFT_PROVIDER_SLUG: string;
|
|
78
|
-
export declare function readMicrosoftProviderSlug(env?: NodeJS.ProcessEnv): string;
|
|
79
|
-
/** LinkedIn integration convenience helpers. */
|
|
80
|
-
export declare const LINKEDIN_INTEGRATION: FleetOAuthIntegration;
|
|
81
|
-
export declare const LINKEDIN_TOOLSERVER_SLUGS: readonly ("apollo" | "ashby" | "base" | "exa" | "excel" | "gmail" | "google_bigquery" | "google_calendar" | "google_docs" | "google_drive" | "google_meet" | "google_sheets" | "google_slides" | "linear" | "linkedin" | "outlook" | "powerpoint" | "pylon" | "salesforce" | "sharepoint" | "slack" | "tavily" | "teams" | "word" | "x_com")[];
|
|
82
|
-
export type LinkedInToolServerSlug = (typeof LINKEDIN_TOOLSERVER_SLUGS)[number];
|
|
83
|
-
export declare function isLinkedInToolServerSlug(slug: string | undefined): slug is LinkedInToolServerSlug;
|
|
84
|
-
export declare function linkedinConnectorKinds(kinds: readonly (string | undefined)[] | undefined): LinkedInToolServerSlug[];
|
|
85
|
-
export declare function linkedinScopesForConnectorKinds(kinds: readonly (string | undefined)[] | undefined): string[];
|
|
86
|
-
export declare function hasLinkedInToolServerConnector(kinds: readonly (string | undefined)[] | undefined): boolean;
|
|
87
|
-
/** Env name for the LinkedIn Fleet provider slug. */
|
|
88
|
-
export declare const MDA_LINKEDIN_OAUTH_PROVIDER_ENV = "MDA_LINKEDIN_OAUTH_PROVIDER";
|
|
89
|
-
export declare const DEFAULT_LINKEDIN_PROVIDER_SLUG: string;
|
|
90
|
-
export declare function readLinkedInProviderSlug(env?: NodeJS.ProcessEnv): string;
|
|
91
|
-
/** X (Twitter) integration convenience helpers. */
|
|
92
|
-
export declare const X_INTEGRATION: FleetOAuthIntegration;
|
|
93
|
-
export declare const X_TOOLSERVER_SLUGS: readonly ("apollo" | "ashby" | "base" | "exa" | "excel" | "gmail" | "google_bigquery" | "google_calendar" | "google_docs" | "google_drive" | "google_meet" | "google_sheets" | "google_slides" | "linear" | "linkedin" | "outlook" | "powerpoint" | "pylon" | "salesforce" | "sharepoint" | "slack" | "tavily" | "teams" | "word" | "x_com")[];
|
|
94
|
-
export type XToolServerSlug = (typeof X_TOOLSERVER_SLUGS)[number];
|
|
95
|
-
export declare function isXToolServerSlug(slug: string | undefined): slug is XToolServerSlug;
|
|
96
|
-
export declare function xConnectorKinds(kinds: readonly (string | undefined)[] | undefined): XToolServerSlug[];
|
|
97
|
-
export declare function xScopesForConnectorKinds(kinds: readonly (string | undefined)[] | undefined): string[];
|
|
98
|
-
export declare function hasXToolServerConnector(kinds: readonly (string | undefined)[] | undefined): boolean;
|
|
99
|
-
/** Env name for the X Fleet provider slug. */
|
|
100
|
-
export declare const MDA_X_OAUTH_PROVIDER_ENV = "MDA_X_OAUTH_PROVIDER";
|
|
101
|
-
export declare const DEFAULT_X_PROVIDER_SLUG: string;
|
|
102
|
-
export declare function readXProviderSlug(env?: NodeJS.ProcessEnv): string;
|
|
103
|
-
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/connectors/toolserver/integrations.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,2DAA2D;IAC3D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,6CAA6C;IAC7C,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,6DAA6D;IAC7D,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,6DAA6D;IAC7D,QAAQ,CAAC,eAAe,EAAE,SAAS,cAAc,EAAE,CAAC;IACp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