managed-deepagents 0.5.3-dev.110 → 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,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connect-with-Google — thin adapter over {@link defineFleetIntegrationConnect}.
|
|
3
|
-
*
|
|
4
|
-
* Mounted under `/identity/google/*` when listed on `identity.connect`, or
|
|
5
|
-
* inferred from declared Google toolserver connectors on a user-scoped
|
|
6
|
-
* deployment.
|
|
7
|
-
*/
|
|
8
|
-
import { GOOGLE_INTEGRATION } from "../../connectors/toolserver/integrations.js";
|
|
9
|
-
import { defineFleetIntegrationConnect } from "../define-fleet-connect.js";
|
|
10
|
-
import { googleByoOauth } from "./oauth.js";
|
|
11
|
-
const google = defineFleetIntegrationConnect({
|
|
12
|
-
integration: GOOGLE_INTEGRATION,
|
|
13
|
-
byoClient: googleByoOauth,
|
|
14
|
-
fallbackScopes: ["openid", "email", "profile"],
|
|
15
|
-
});
|
|
16
|
-
export const GOOGLE_CONNECT_STATUS_PATH = google.paths.status;
|
|
17
|
-
export const GOOGLE_CONNECT_START_PATH = google.paths.connect;
|
|
18
|
-
export const GOOGLE_CONNECT_CALLBACK_PATH = google.paths.callback;
|
|
19
|
-
export const GOOGLE_CONNECT_LINK_PATH = google.paths.link;
|
|
20
|
-
export const isGoogleActorSubjectEnabled = google.isActorSubjectEnabled;
|
|
21
|
-
export const enableGoogleActorSubject = google.enableActorSubject;
|
|
22
|
-
/**
|
|
23
|
-
* Enable actor-subject mode when Google connectors imply per-user vault subjects.
|
|
24
|
-
*
|
|
25
|
-
* Prefer {@link enableActorSubjectIntegrationsFromConnectors} at compile seams.
|
|
26
|
-
*/
|
|
27
|
-
export const enableGoogleActorSubjectFromConnectors = google.enableActorSubjectFromConnectors;
|
|
28
|
-
export const resetGoogleActorSubjectEnabledForTests = google.resetActorSubjectEnabledForTests;
|
|
29
|
-
export const isGoogleConnectConfigured = google.isConnectConfigured;
|
|
30
|
-
export const googleConnectUrl = google.connectUrl;
|
|
31
|
-
/** Build a Google connect provider. */
|
|
32
|
-
export const createGoogleIdentityConnectProvider = google.createProvider;
|
|
33
|
-
/** Default Google connect provider used as a built-in mount candidate. */
|
|
34
|
-
export const googleIdentityConnectProvider = google.provider;
|
|
35
|
-
/**
|
|
36
|
-
* Opt into Connect-with-Google on `defineIdentity({ connect: […] })`.
|
|
37
|
-
*
|
|
38
|
-
* Usually unnecessary: declaring Google toolserver connectors on a user-scoped
|
|
39
|
-
* identity deployment mounts this provider and derives OAuth scopes automatically.
|
|
40
|
-
*/
|
|
41
|
-
export const connect = google.connect;
|
|
42
|
-
//# sourceMappingURL=connect-http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect-http.js","sourceRoot":"","sources":["../../../src/identity/google/connect-http.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE3E,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,MAAM,GAAG,6BAA6B,CAAC;IAC3C,WAAW,EAAE,kBAAkB;IAC/B,SAAS,EAAE,cAAc;IACzB,cAAc,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;CAC/C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;AAC9D,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;AAC9D,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;AAClE,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;AAE1D,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACxE,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAClE;;;;GAIG;AACH,MAAM,CAAC,MAAM,sCAAsC,GACjD,MAAM,CAAC,gCAAgC,CAAC;AAC1C,MAAM,CAAC,MAAM,sCAAsC,GACjD,MAAM,CAAC,gCAAgC,CAAC;AAC1C,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACpE,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,UAAU,CAAC;AAMlD,uCAAuC;AACvC,MAAM,CAAC,MAAM,mCAAmC,GAAG,MAAM,CAAC,cAAc,CAAC;AAEzE,0EAA0E;AAC1E,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,QAAQ,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Google identity helpers — Connect-with-Google.
|
|
3
|
-
*/
|
|
4
|
-
export { connect, createGoogleIdentityConnectProvider, enableGoogleActorSubject, enableGoogleActorSubjectFromConnectors, googleConnectUrl, googleIdentityConnectProvider, isGoogleActorSubjectEnabled, isGoogleConnectConfigured, resetGoogleActorSubjectEnabledForTests, GOOGLE_CONNECT_CALLBACK_PATH, GOOGLE_CONNECT_LINK_PATH, GOOGLE_CONNECT_START_PATH, GOOGLE_CONNECT_STATUS_PATH, } from "./connect-http.js";
|
|
5
|
-
export type { GoogleIdentityConnectProviderOptions } from "./connect-http.js";
|
|
6
|
-
export { googleOauthTickets } from "./oauth.js";
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/identity/google/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,OAAO,EACP,mCAAmC,EACnC,wBAAwB,EACxB,sCAAsC,EACtC,gBAAgB,EAChB,6BAA6B,EAC7B,2BAA2B,EAC3B,yBAAyB,EACzB,sCAAsC,EACtC,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,oCAAoC,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Google identity helpers — Connect-with-Google.
|
|
3
|
-
*/
|
|
4
|
-
export { connect, createGoogleIdentityConnectProvider, enableGoogleActorSubject, enableGoogleActorSubjectFromConnectors, googleConnectUrl, googleIdentityConnectProvider, isGoogleActorSubjectEnabled, isGoogleConnectConfigured, resetGoogleActorSubjectEnabledForTests, GOOGLE_CONNECT_CALLBACK_PATH, GOOGLE_CONNECT_LINK_PATH, GOOGLE_CONNECT_START_PATH, GOOGLE_CONNECT_STATUS_PATH, } from "./connect-http.js";
|
|
5
|
-
export { googleOauthTickets } from "./oauth.js";
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/identity/google/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,OAAO,EACP,mCAAmC,EACnC,wBAAwB,EACxB,sCAAsC,EACtC,gBAAgB,EAChB,6BAA6B,EAC7B,2BAA2B,EAC3B,yBAAyB,EACzB,sCAAsC,EACtC,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Google BYO OAuth descriptor — optional non-LangSmith Connect-with-Google.
|
|
3
|
-
* The default path uses Fleet auth-sessions instead.
|
|
4
|
-
*/
|
|
5
|
-
import { type ByoOauthConfig, type ByoOauthClient } from "../byo-oauth.js";
|
|
6
|
-
export { MDA_PUBLIC_API_URL_ENV, MDA_PUBLIC_APP_URL_ENV, OAUTH_STATE_SIGNING_KEY_ENV, readOauthStateSigningKey, } from "../byo-oauth.js";
|
|
7
|
-
export type GoogleOauthConfig = ByoOauthConfig;
|
|
8
|
-
/** Google BYO OAuth client (config, authorize, exchange, Fleet adapter). */
|
|
9
|
-
export declare const googleByoOauth: ByoOauthClient;
|
|
10
|
-
export declare const GOOGLE_OAUTH_CLIENT_ID_ENV: string;
|
|
11
|
-
export declare const GOOGLE_OAUTH_CLIENT_SECRET_ENV: string;
|
|
12
|
-
export declare const GOOGLE_OAUTH_SCOPES_ENV: string;
|
|
13
|
-
export declare const GOOGLE_OAUTH_AUTH_URL_ENV: string;
|
|
14
|
-
export declare const GOOGLE_OAUTH_TOKEN_URL_ENV: string;
|
|
15
|
-
export declare const GOOGLE_OAUTH_USERINFO_URL_ENV: string;
|
|
16
|
-
/** Google-bound OAuth state / connect-ticket helpers. */
|
|
17
|
-
export declare const googleOauthTickets: import("../oauth-tickets.js").OauthTickets;
|
|
18
|
-
export declare const resolveGoogleOauthRedirectBase: typeof import("../oauth-env.js").resolveOauthRedirectBase;
|
|
19
|
-
export declare const readGoogleOauthConfig: (env?: NodeJS.ProcessEnv) => ByoOauthConfig | null;
|
|
20
|
-
export declare const buildGoogleAuthorizeUrl: (config: ByoOauthConfig, state: string, redirectUri: string, scopes?: string) => string;
|
|
21
|
-
export declare const exchangeGoogleOauthCode: (config: ByoOauthConfig, code: string, redirectUri: string, fetchImpl?: typeof fetch) => Promise<import("../fleet-connect.js").FleetVaultByoTokenResult>;
|
|
22
|
-
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../src/identity/google/oauth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAQ/C,4EAA4E;AAC5E,eAAO,MAAM,cAAc,EAAE,cAsB3B,CAAC;AAEH,eAAO,MAAM,0BAA0B,QAA8B,CAAC;AACtE,eAAO,MAAM,8BAA8B,QAAkC,CAAC;AAC9E,eAAO,MAAM,uBAAuB,QAA4B,CAAC;AACjE,eAAO,MAAM,yBAAyB,QAA6B,CAAC;AACpE,eAAO,MAAM,0BAA0B,QAA8B,CAAC;AACtE,eAAO,MAAM,6BAA6B,QAAiC,CAAC;AAE5E,yDAAyD;AACzD,eAAO,MAAM,kBAAkB,4CAAyB,CAAC;AAEzD,eAAO,MAAM,8BAA8B,2DACP,CAAC;AAErC,eAAO,MAAM,qBAAqB,oDAA4B,CAAC;AAC/D,eAAO,MAAM,uBAAuB,yFAAmC,CAAC;AACxE,eAAO,MAAM,uBAAuB,0JAA8B,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Google BYO OAuth descriptor — optional non-LangSmith Connect-with-Google.
|
|
3
|
-
* The default path uses Fleet auth-sessions instead.
|
|
4
|
-
*/
|
|
5
|
-
import { createByoOauthClient, } from "../byo-oauth.js";
|
|
6
|
-
export { MDA_PUBLIC_API_URL_ENV, MDA_PUBLIC_APP_URL_ENV, OAUTH_STATE_SIGNING_KEY_ENV, readOauthStateSigningKey, } from "../byo-oauth.js";
|
|
7
|
-
const DEFAULT_AUTH_URL = "https://accounts.google.com/o/oauth2/v2/auth";
|
|
8
|
-
const DEFAULT_TOKEN_URL = "https://oauth2.googleapis.com/token";
|
|
9
|
-
const DEFAULT_USERINFO_URL = "https://www.googleapis.com/oauth2/v3/userinfo";
|
|
10
|
-
/** Profile-only default; connector-derived unions replace this at authorize time. */
|
|
11
|
-
const DEFAULT_SCOPES = ["openid", "email", "profile"].join(" ");
|
|
12
|
-
/** Google BYO OAuth client (config, authorize, exchange, Fleet adapter). */
|
|
13
|
-
export const googleByoOauth = createByoOauthClient({
|
|
14
|
-
providerId: "google",
|
|
15
|
-
displayName: "Google",
|
|
16
|
-
envPrefix: "GOOGLE_OAUTH",
|
|
17
|
-
defaultEndpoints: () => ({
|
|
18
|
-
authUrl: DEFAULT_AUTH_URL,
|
|
19
|
-
tokenUrl: DEFAULT_TOKEN_URL,
|
|
20
|
-
userInfoUrl: DEFAULT_USERINFO_URL,
|
|
21
|
-
defaultScopes: DEFAULT_SCOPES,
|
|
22
|
-
}),
|
|
23
|
-
authorizeParams: { access_type: "offline" },
|
|
24
|
-
parseUserInfo(json) {
|
|
25
|
-
return {
|
|
26
|
-
...(typeof json.email === "string" && json.email
|
|
27
|
-
? { email: json.email }
|
|
28
|
-
: {}),
|
|
29
|
-
...(typeof json.sub === "string" && json.sub
|
|
30
|
-
? { subject: json.sub }
|
|
31
|
-
: {}),
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
subjectMetadataKey: "google_sub",
|
|
35
|
-
});
|
|
36
|
-
export const GOOGLE_OAUTH_CLIENT_ID_ENV = googleByoOauth.env.clientId;
|
|
37
|
-
export const GOOGLE_OAUTH_CLIENT_SECRET_ENV = googleByoOauth.env.clientSecret;
|
|
38
|
-
export const GOOGLE_OAUTH_SCOPES_ENV = googleByoOauth.env.scopes;
|
|
39
|
-
export const GOOGLE_OAUTH_AUTH_URL_ENV = googleByoOauth.env.authUrl;
|
|
40
|
-
export const GOOGLE_OAUTH_TOKEN_URL_ENV = googleByoOauth.env.tokenUrl;
|
|
41
|
-
export const GOOGLE_OAUTH_USERINFO_URL_ENV = googleByoOauth.env.userInfoUrl;
|
|
42
|
-
/** Google-bound OAuth state / connect-ticket helpers. */
|
|
43
|
-
export const googleOauthTickets = googleByoOauth.tickets;
|
|
44
|
-
export const resolveGoogleOauthRedirectBase = googleByoOauth.resolveRedirectBase;
|
|
45
|
-
export const readGoogleOauthConfig = googleByoOauth.readConfig;
|
|
46
|
-
export const buildGoogleAuthorizeUrl = googleByoOauth.buildAuthorizeUrl;
|
|
47
|
-
export const exchangeGoogleOauthCode = googleByoOauth.exchangeCode;
|
|
48
|
-
//# sourceMappingURL=oauth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../../src/identity/google/oauth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,oBAAoB,GAGrB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AAIzB,MAAM,gBAAgB,GAAG,8CAA8C,CAAC;AACxE,MAAM,iBAAiB,GAAG,qCAAqC,CAAC;AAChE,MAAM,oBAAoB,GAAG,+CAA+C,CAAC;AAC7E,qFAAqF;AACrF,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEhE,4EAA4E;AAC5E,MAAM,CAAC,MAAM,cAAc,GAAmB,oBAAoB,CAAC;IACjE,UAAU,EAAE,QAAQ;IACpB,WAAW,EAAE,QAAQ;IACrB,SAAS,EAAE,cAAc;IACzB,gBAAgB,EAAE,GAAG,EAAE,CAAC,CAAC;QACvB,OAAO,EAAE,gBAAgB;QACzB,QAAQ,EAAE,iBAAiB;QAC3B,WAAW,EAAE,oBAAoB;QACjC,aAAa,EAAE,cAAc;KAC9B,CAAC;IACF,eAAe,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE;IAC3C,aAAa,CAAC,IAAI;QAChB,OAAO;YACL,GAAG,CAAC,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK;gBAC9C,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;gBACvB,CAAC,CAAC,EAAE,CAAC;YACP,GAAG,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,IAAI,IAAI,CAAC,GAAG;gBAC1C,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;gBACvB,CAAC,CAAC,EAAE,CAAC;SACR,CAAC;IACJ,CAAC;IACD,kBAAkB,EAAE,YAAY;CACjC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC;AACtE,MAAM,CAAC,MAAM,8BAA8B,GAAG,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC;AAC9E,MAAM,CAAC,MAAM,uBAAuB,GAAG,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC;AACjE,MAAM,CAAC,MAAM,yBAAyB,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC;AACpE,MAAM,CAAC,MAAM,0BAA0B,GAAG,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC;AACtE,MAAM,CAAC,MAAM,6BAA6B,GAAG,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC;AAE5E,yDAAyD;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,CAAC;AAEzD,MAAM,CAAC,MAAM,8BAA8B,GACzC,cAAc,CAAC,mBAAmB,CAAC;AAErC,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC,UAAU,CAAC;AAC/D,MAAM,CAAC,MAAM,uBAAuB,GAAG,cAAc,CAAC,iBAAiB,CAAC;AACxE,MAAM,CAAC,MAAM,uBAAuB,GAAG,cAAc,CAAC,YAAY,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connect-with-LinkedIn — thin adapter over {@link defineFleetIntegrationConnect}.
|
|
3
|
-
*
|
|
4
|
-
* Mounted under `/identity/linkedin/*` when listed on `identity.connect`, or
|
|
5
|
-
* inferred from declared LinkedIn toolserver connectors on a user-scoped
|
|
6
|
-
* deployment.
|
|
7
|
-
*/
|
|
8
|
-
import type { FleetIntegrationConnectProviderOptions } from "../fleet-integration-connect.js";
|
|
9
|
-
export declare const LINKEDIN_CONNECT_STATUS_PATH: string;
|
|
10
|
-
export declare const LINKEDIN_CONNECT_START_PATH: string;
|
|
11
|
-
export declare const LINKEDIN_CONNECT_CALLBACK_PATH: string;
|
|
12
|
-
export declare const LINKEDIN_CONNECT_LINK_PATH: string;
|
|
13
|
-
export declare const isLinkedInActorSubjectEnabled: () => boolean;
|
|
14
|
-
export declare const enableLinkedInActorSubject: () => void;
|
|
15
|
-
/**
|
|
16
|
-
* Enable actor-subject mode when LinkedIn connectors imply per-user vault subjects.
|
|
17
|
-
*
|
|
18
|
-
* Prefer {@link enableActorSubjectIntegrationsFromConnectors} at compile seams.
|
|
19
|
-
*/
|
|
20
|
-
export declare const enableLinkedInActorSubjectFromConnectors: (connectorKinds: readonly (string | undefined)[] | undefined, scope?: import("../connect-provider-types.js").IdentityConnectMountContext["scope"]) => void;
|
|
21
|
-
export declare const resetLinkedInActorSubjectEnabledForTests: () => void;
|
|
22
|
-
export declare const isLinkedInConnectConfigured: (env?: NodeJS.ProcessEnv) => boolean;
|
|
23
|
-
export declare const linkedinConnectUrl: (publicAppUrl: string) => string;
|
|
24
|
-
/** Options for {@link createLinkedInIdentityConnectProvider}. */
|
|
25
|
-
export type LinkedInIdentityConnectProviderOptions = FleetIntegrationConnectProviderOptions;
|
|
26
|
-
/** Build a LinkedIn connect provider. */
|
|
27
|
-
export declare const createLinkedInIdentityConnectProvider: (options?: FleetIntegrationConnectProviderOptions) => import("../connect-provider-types.js").IdentityConnectProvider;
|
|
28
|
-
/** Default LinkedIn connect provider used as a built-in mount candidate. */
|
|
29
|
-
export declare const linkedinIdentityConnectProvider: import("../connect-provider-types.js").IdentityConnectProvider;
|
|
30
|
-
/**
|
|
31
|
-
* Opt into Connect-with-LinkedIn on `defineIdentity({ connect: […] })`.
|
|
32
|
-
*
|
|
33
|
-
* Usually unnecessary: declaring `connectors.linkedin` on a user-scoped
|
|
34
|
-
* identity deployment mounts this provider and derives OAuth scopes automatically.
|
|
35
|
-
*/
|
|
36
|
-
export declare const connect: (options?: FleetIntegrationConnectProviderOptions) => import("../connect-provider-types.js").IdentityConnectProvider;
|
|
37
|
-
//# sourceMappingURL=connect-http.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect-http.d.ts","sourceRoot":"","sources":["../../../src/identity/linkedin/connect-http.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,iCAAiC,CAAC;AAQ9F,eAAO,MAAM,4BAA4B,QAAwB,CAAC;AAClE,eAAO,MAAM,2BAA2B,QAAyB,CAAC;AAClE,eAAO,MAAM,8BAA8B,QAA0B,CAAC;AACtE,eAAO,MAAM,0BAA0B,QAAsB,CAAC;AAE9D,eAAO,MAAM,6BAA6B,eAAiC,CAAC;AAC5E,eAAO,MAAM,0BAA0B,YAA8B,CAAC;AACtE;;;;GAIG;AACH,eAAO,MAAM,wCAAwC,4JACV,CAAC;AAC5C,eAAO,MAAM,wCAAwC,YACV,CAAC;AAC5C,eAAO,MAAM,2BAA2B,sCAA+B,CAAC;AACxE,eAAO,MAAM,kBAAkB,kCAAsB,CAAC;AAEtD,iEAAiE;AACjE,MAAM,MAAM,sCAAsC,GAChD,sCAAsC,CAAC;AAEzC,yCAAyC;AACzC,eAAO,MAAM,qCAAqC,sHAA0B,CAAC;AAE7E,4EAA4E;AAC5E,eAAO,MAAM,+BAA+B,gEAAoB,CAAC;AAEjE;;;;;GAKG;AACH,eAAO,MAAM,OAAO,sHAAmB,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connect-with-LinkedIn — thin adapter over {@link defineFleetIntegrationConnect}.
|
|
3
|
-
*
|
|
4
|
-
* Mounted under `/identity/linkedin/*` when listed on `identity.connect`, or
|
|
5
|
-
* inferred from declared LinkedIn toolserver connectors on a user-scoped
|
|
6
|
-
* deployment.
|
|
7
|
-
*/
|
|
8
|
-
import { LINKEDIN_INTEGRATION } from "../../connectors/toolserver/integrations.js";
|
|
9
|
-
import { defineFleetIntegrationConnect } from "../define-fleet-connect.js";
|
|
10
|
-
import { linkedinByoOauth } from "./oauth.js";
|
|
11
|
-
const linkedin = defineFleetIntegrationConnect({
|
|
12
|
-
integration: LINKEDIN_INTEGRATION,
|
|
13
|
-
byoClient: linkedinByoOauth,
|
|
14
|
-
});
|
|
15
|
-
export const LINKEDIN_CONNECT_STATUS_PATH = linkedin.paths.status;
|
|
16
|
-
export const LINKEDIN_CONNECT_START_PATH = linkedin.paths.connect;
|
|
17
|
-
export const LINKEDIN_CONNECT_CALLBACK_PATH = linkedin.paths.callback;
|
|
18
|
-
export const LINKEDIN_CONNECT_LINK_PATH = linkedin.paths.link;
|
|
19
|
-
export const isLinkedInActorSubjectEnabled = linkedin.isActorSubjectEnabled;
|
|
20
|
-
export const enableLinkedInActorSubject = linkedin.enableActorSubject;
|
|
21
|
-
/**
|
|
22
|
-
* Enable actor-subject mode when LinkedIn connectors imply per-user vault subjects.
|
|
23
|
-
*
|
|
24
|
-
* Prefer {@link enableActorSubjectIntegrationsFromConnectors} at compile seams.
|
|
25
|
-
*/
|
|
26
|
-
export const enableLinkedInActorSubjectFromConnectors = linkedin.enableActorSubjectFromConnectors;
|
|
27
|
-
export const resetLinkedInActorSubjectEnabledForTests = linkedin.resetActorSubjectEnabledForTests;
|
|
28
|
-
export const isLinkedInConnectConfigured = linkedin.isConnectConfigured;
|
|
29
|
-
export const linkedinConnectUrl = linkedin.connectUrl;
|
|
30
|
-
/** Build a LinkedIn connect provider. */
|
|
31
|
-
export const createLinkedInIdentityConnectProvider = linkedin.createProvider;
|
|
32
|
-
/** Default LinkedIn connect provider used as a built-in mount candidate. */
|
|
33
|
-
export const linkedinIdentityConnectProvider = linkedin.provider;
|
|
34
|
-
/**
|
|
35
|
-
* Opt into Connect-with-LinkedIn on `defineIdentity({ connect: […] })`.
|
|
36
|
-
*
|
|
37
|
-
* Usually unnecessary: declaring `connectors.linkedin` on a user-scoped
|
|
38
|
-
* identity deployment mounts this provider and derives OAuth scopes automatically.
|
|
39
|
-
*/
|
|
40
|
-
export const connect = linkedin.connect;
|
|
41
|
-
//# sourceMappingURL=connect-http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect-http.js","sourceRoot":"","sources":["../../../src/identity/linkedin/connect-http.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,QAAQ,GAAG,6BAA6B,CAAC;IAC7C,WAAW,EAAE,oBAAoB;IACjC,SAAS,EAAE,gBAAgB;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC;AAClE,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC;AAClE,MAAM,CAAC,MAAM,8BAA8B,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;AACtE,MAAM,CAAC,MAAM,0BAA0B,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC;AAE9D,MAAM,CAAC,MAAM,6BAA6B,GAAG,QAAQ,CAAC,qBAAqB,CAAC;AAC5E,MAAM,CAAC,MAAM,0BAA0B,GAAG,QAAQ,CAAC,kBAAkB,CAAC;AACtE;;;;GAIG;AACH,MAAM,CAAC,MAAM,wCAAwC,GACnD,QAAQ,CAAC,gCAAgC,CAAC;AAC5C,MAAM,CAAC,MAAM,wCAAwC,GACnD,QAAQ,CAAC,gCAAgC,CAAC;AAC5C,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CAAC,mBAAmB,CAAC;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,UAAU,CAAC;AAMtD,yCAAyC;AACzC,MAAM,CAAC,MAAM,qCAAqC,GAAG,QAAQ,CAAC,cAAc,CAAC;AAE7E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,+BAA+B,GAAG,QAAQ,CAAC,QAAQ,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LinkedIn identity helpers — Connect-with-LinkedIn (Fleet vault).
|
|
3
|
-
*/
|
|
4
|
-
export { connect, createLinkedInIdentityConnectProvider, enableLinkedInActorSubject, enableLinkedInActorSubjectFromConnectors, linkedinConnectUrl, linkedinIdentityConnectProvider, isLinkedInActorSubjectEnabled, isLinkedInConnectConfigured, resetLinkedInActorSubjectEnabledForTests, LINKEDIN_CONNECT_CALLBACK_PATH, LINKEDIN_CONNECT_LINK_PATH, LINKEDIN_CONNECT_START_PATH, LINKEDIN_CONNECT_STATUS_PATH, } from "./connect-http.js";
|
|
5
|
-
export type { LinkedInIdentityConnectProviderOptions } from "./connect-http.js";
|
|
6
|
-
export { linkedinOauthTickets } from "./oauth.js";
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/identity/linkedin/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,OAAO,EACP,qCAAqC,EACrC,0BAA0B,EAC1B,wCAAwC,EACxC,kBAAkB,EAClB,+BAA+B,EAC/B,6BAA6B,EAC7B,2BAA2B,EAC3B,wCAAwC,EACxC,8BAA8B,EAC9B,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,sCAAsC,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LinkedIn identity helpers — Connect-with-LinkedIn (Fleet vault).
|
|
3
|
-
*/
|
|
4
|
-
export { connect, createLinkedInIdentityConnectProvider, enableLinkedInActorSubject, enableLinkedInActorSubjectFromConnectors, linkedinConnectUrl, linkedinIdentityConnectProvider, isLinkedInActorSubjectEnabled, isLinkedInConnectConfigured, resetLinkedInActorSubjectEnabledForTests, LINKEDIN_CONNECT_CALLBACK_PATH, LINKEDIN_CONNECT_LINK_PATH, LINKEDIN_CONNECT_START_PATH, LINKEDIN_CONNECT_STATUS_PATH, } from "./connect-http.js";
|
|
5
|
-
export { linkedinOauthTickets } from "./oauth.js";
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/identity/linkedin/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,OAAO,EACP,qCAAqC,EACrC,0BAA0B,EAC1B,wCAAwC,EACxC,kBAAkB,EAClB,+BAA+B,EAC/B,6BAA6B,EAC7B,2BAA2B,EAC3B,wCAAwC,EACxC,8BAA8B,EAC9B,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LinkedIn BYO OAuth descriptor — optional non-LangSmith Connect-with-LinkedIn.
|
|
3
|
-
* The default path uses Fleet auth-sessions instead.
|
|
4
|
-
*/
|
|
5
|
-
import { type ByoOauthConfig, type ByoOauthClient } from "../byo-oauth.js";
|
|
6
|
-
export { MDA_PUBLIC_API_URL_ENV, MDA_PUBLIC_APP_URL_ENV, OAUTH_STATE_SIGNING_KEY_ENV, readOauthStateSigningKey, } from "../byo-oauth.js";
|
|
7
|
-
export type LinkedInOauthConfig = ByoOauthConfig;
|
|
8
|
-
/** LinkedIn BYO OAuth client (config, authorize, exchange, Fleet adapter). */
|
|
9
|
-
export declare const linkedinByoOauth: ByoOauthClient;
|
|
10
|
-
export declare const LINKEDIN_OAUTH_CLIENT_ID_ENV: string;
|
|
11
|
-
export declare const LINKEDIN_OAUTH_CLIENT_SECRET_ENV: string;
|
|
12
|
-
export declare const LINKEDIN_OAUTH_SCOPES_ENV: string;
|
|
13
|
-
export declare const LINKEDIN_OAUTH_AUTH_URL_ENV: string;
|
|
14
|
-
export declare const LINKEDIN_OAUTH_TOKEN_URL_ENV: string;
|
|
15
|
-
export declare const LINKEDIN_OAUTH_USERINFO_URL_ENV: string;
|
|
16
|
-
/** LinkedIn-bound OAuth state / connect-ticket helpers. */
|
|
17
|
-
export declare const linkedinOauthTickets: import("../oauth-tickets.js").OauthTickets;
|
|
18
|
-
export declare const resolveLinkedInOauthRedirectBase: typeof import("../oauth-env.js").resolveOauthRedirectBase;
|
|
19
|
-
export declare const readLinkedInOauthConfig: (env?: NodeJS.ProcessEnv) => ByoOauthConfig | null;
|
|
20
|
-
export declare const buildLinkedInAuthorizeUrl: (config: ByoOauthConfig, state: string, redirectUri: string, scopes?: string) => string;
|
|
21
|
-
export declare const exchangeLinkedInOauthCode: (config: ByoOauthConfig, code: string, redirectUri: string, fetchImpl?: typeof fetch) => Promise<import("../fleet-connect.js").FleetVaultByoTokenResult>;
|
|
22
|
-
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../src/identity/linkedin/oauth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC;AAUjD,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB,EAAE,cAqB7B,CAAC;AAEH,eAAO,MAAM,4BAA4B,QAAgC,CAAC;AAC1E,eAAO,MAAM,gCAAgC,QACV,CAAC;AACpC,eAAO,MAAM,yBAAyB,QAA8B,CAAC;AACrE,eAAO,MAAM,2BAA2B,QAA+B,CAAC;AACxE,eAAO,MAAM,4BAA4B,QAAgC,CAAC;AAC1E,eAAO,MAAM,+BAA+B,QAAmC,CAAC;AAEhF,2DAA2D;AAC3D,eAAO,MAAM,oBAAoB,4CAA2B,CAAC;AAE7D,eAAO,MAAM,gCAAgC,2DACP,CAAC;AAEvC,eAAO,MAAM,uBAAuB,oDAA8B,CAAC;AACnE,eAAO,MAAM,yBAAyB,yFAAqC,CAAC;AAC5E,eAAO,MAAM,yBAAyB,0JAAgC,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LinkedIn BYO OAuth descriptor — optional non-LangSmith Connect-with-LinkedIn.
|
|
3
|
-
* The default path uses Fleet auth-sessions instead.
|
|
4
|
-
*/
|
|
5
|
-
import { createByoOauthClient, } from "../byo-oauth.js";
|
|
6
|
-
export { MDA_PUBLIC_API_URL_ENV, MDA_PUBLIC_APP_URL_ENV, OAUTH_STATE_SIGNING_KEY_ENV, readOauthStateSigningKey, } from "../byo-oauth.js";
|
|
7
|
-
const DEFAULT_AUTH_URL = "https://www.linkedin.com/oauth/v2/authorization";
|
|
8
|
-
const DEFAULT_TOKEN_URL = "https://www.linkedin.com/oauth/v2/accessToken";
|
|
9
|
-
const DEFAULT_USERINFO_URL = "https://api.linkedin.com/v2/userinfo";
|
|
10
|
-
/** Profile + Share on LinkedIn; connector-derived unions replace this at authorize time. */
|
|
11
|
-
const DEFAULT_SCOPES = ["openid", "profile", "email", "w_member_social"].join(" ");
|
|
12
|
-
/** LinkedIn BYO OAuth client (config, authorize, exchange, Fleet adapter). */
|
|
13
|
-
export const linkedinByoOauth = createByoOauthClient({
|
|
14
|
-
providerId: "linkedin",
|
|
15
|
-
displayName: "LinkedIn",
|
|
16
|
-
envPrefix: "LINKEDIN_OAUTH",
|
|
17
|
-
defaultEndpoints: () => ({
|
|
18
|
-
authUrl: DEFAULT_AUTH_URL,
|
|
19
|
-
tokenUrl: DEFAULT_TOKEN_URL,
|
|
20
|
-
userInfoUrl: DEFAULT_USERINFO_URL,
|
|
21
|
-
defaultScopes: DEFAULT_SCOPES,
|
|
22
|
-
}),
|
|
23
|
-
parseUserInfo(json) {
|
|
24
|
-
return {
|
|
25
|
-
...(typeof json.email === "string" && json.email
|
|
26
|
-
? { email: json.email }
|
|
27
|
-
: {}),
|
|
28
|
-
...(typeof json.sub === "string" && json.sub
|
|
29
|
-
? { subject: json.sub }
|
|
30
|
-
: {}),
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
subjectMetadataKey: "linkedin_sub",
|
|
34
|
-
});
|
|
35
|
-
export const LINKEDIN_OAUTH_CLIENT_ID_ENV = linkedinByoOauth.env.clientId;
|
|
36
|
-
export const LINKEDIN_OAUTH_CLIENT_SECRET_ENV = linkedinByoOauth.env.clientSecret;
|
|
37
|
-
export const LINKEDIN_OAUTH_SCOPES_ENV = linkedinByoOauth.env.scopes;
|
|
38
|
-
export const LINKEDIN_OAUTH_AUTH_URL_ENV = linkedinByoOauth.env.authUrl;
|
|
39
|
-
export const LINKEDIN_OAUTH_TOKEN_URL_ENV = linkedinByoOauth.env.tokenUrl;
|
|
40
|
-
export const LINKEDIN_OAUTH_USERINFO_URL_ENV = linkedinByoOauth.env.userInfoUrl;
|
|
41
|
-
/** LinkedIn-bound OAuth state / connect-ticket helpers. */
|
|
42
|
-
export const linkedinOauthTickets = linkedinByoOauth.tickets;
|
|
43
|
-
export const resolveLinkedInOauthRedirectBase = linkedinByoOauth.resolveRedirectBase;
|
|
44
|
-
export const readLinkedInOauthConfig = linkedinByoOauth.readConfig;
|
|
45
|
-
export const buildLinkedInAuthorizeUrl = linkedinByoOauth.buildAuthorizeUrl;
|
|
46
|
-
export const exchangeLinkedInOauthCode = linkedinByoOauth.exchangeCode;
|
|
47
|
-
//# sourceMappingURL=oauth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../../src/identity/linkedin/oauth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,oBAAoB,GAGrB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AAIzB,MAAM,gBAAgB,GAAG,iDAAiD,CAAC;AAC3E,MAAM,iBAAiB,GAAG,+CAA+C,CAAC;AAC1E,MAAM,oBAAoB,GAAG,sCAAsC,CAAC;AACpE,4FAA4F;AAC5F,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC,IAAI,CAC3E,GAAG,CACJ,CAAC;AAEF,8EAA8E;AAC9E,MAAM,CAAC,MAAM,gBAAgB,GAAmB,oBAAoB,CAAC;IACnE,UAAU,EAAE,UAAU;IACtB,WAAW,EAAE,UAAU;IACvB,SAAS,EAAE,gBAAgB;IAC3B,gBAAgB,EAAE,GAAG,EAAE,CAAC,CAAC;QACvB,OAAO,EAAE,gBAAgB;QACzB,QAAQ,EAAE,iBAAiB;QAC3B,WAAW,EAAE,oBAAoB;QACjC,aAAa,EAAE,cAAc;KAC9B,CAAC;IACF,aAAa,CAAC,IAAI;QAChB,OAAO;YACL,GAAG,CAAC,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK;gBAC9C,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;gBACvB,CAAC,CAAC,EAAE,CAAC;YACP,GAAG,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,IAAI,IAAI,CAAC,GAAG;gBAC1C,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;gBACvB,CAAC,CAAC,EAAE,CAAC;SACR,CAAC;IACJ,CAAC;IACD,kBAAkB,EAAE,cAAc;CACnC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC1E,MAAM,CAAC,MAAM,gCAAgC,GAC3C,gBAAgB,CAAC,GAAG,CAAC,YAAY,CAAC;AACpC,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC;AACrE,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC1E,MAAM,CAAC,MAAM,+BAA+B,GAAG,gBAAgB,CAAC,GAAG,CAAC,WAAW,CAAC;AAEhF,2DAA2D;AAC3D,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,OAAO,CAAC;AAE7D,MAAM,CAAC,MAAM,gCAAgC,GAC3C,gBAAgB,CAAC,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,uBAAuB,GAAG,gBAAgB,CAAC,UAAU,CAAC;AACnE,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,iBAAiB,CAAC;AAC5E,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,YAAY,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connect-hint middleware for Fleet marketplace MCP bridges.
|
|
3
|
-
*
|
|
4
|
-
* Same proactive "not connected yet" system hint as toolserver Fleet OAuth
|
|
5
|
-
* integrations ({@link createFleetConnectHintMiddleware}), but the vault
|
|
6
|
-
* `provider_id` is discovered from the workspace `mcp_servers` row.
|
|
7
|
-
*/
|
|
8
|
-
import type { MarketplaceMcpIntegration } from "../../connectors/marketplace/catalog.js";
|
|
9
|
-
import { resolveMarketplaceMcpServer } from "../../connectors/marketplace/fleet-mcp.js";
|
|
10
|
-
import type { FleetOAuthIntegration } from "../../connectors/toolserver/integrations.js";
|
|
11
|
-
import type { ManagedMiddleware } from "../../runtime/managed-middleware.js";
|
|
12
|
-
import { type FleetConnectHintMiddlewareOptions } from "../fleet-connect-hint.js";
|
|
13
|
-
import { listAgentConnections, type FleetClientOptions } from "../fleet.js";
|
|
14
|
-
/** Adapt a marketplace catalog row to the Fleet Connect / hint integration shape. */
|
|
15
|
-
export declare function marketplaceAsFleetHint(integration: MarketplaceMcpIntegration, providerId?: string): FleetOAuthIntegration;
|
|
16
|
-
export type MarketplaceConnectHintMiddlewareOptions = Omit<FleetConnectHintMiddlewareOptions, "integration" | "providerSlug"> & {
|
|
17
|
-
fleet?: FleetClientOptions & {
|
|
18
|
-
list?: typeof listAgentConnections;
|
|
19
|
-
resolveServer?: typeof resolveMarketplaceMcpServer;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Absolute Connect start URL for a marketplace bridge (with optional ticket).
|
|
24
|
-
*/
|
|
25
|
-
export declare function marketplaceConnectHintUrl(integration: MarketplaceMcpIntegration, env?: NodeJS.ProcessEnv, userId?: string): Promise<string>;
|
|
26
|
-
/**
|
|
27
|
-
* Middleware that injects a system hint when the caller has no vault connection
|
|
28
|
-
* for this marketplace MCP integration.
|
|
29
|
-
*/
|
|
30
|
-
export declare function createMarketplaceConnectHintMiddleware(integration: MarketplaceMcpIntegration, options?: MarketplaceConnectHintMiddlewareOptions): ManagedMiddleware;
|
|
31
|
-
//# sourceMappingURL=connect-hint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect-hint.d.ts","sourceRoot":"","sources":["../../../src/identity/marketplace/connect-hint.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAE7E,OAAO,EAGL,KAAK,iCAAiC,EACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE5E,qFAAqF;AACrF,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,yBAAyB,EACtC,UAAU,SAAK,GACd,qBAAqB,CAYvB;AAED,MAAM,MAAM,uCAAuC,GAAG,IAAI,CACxD,iCAAiC,EACjC,aAAa,GAAG,cAAc,CAC/B,GAAG;IACF,KAAK,CAAC,EAAE,kBAAkB,GAAG;QAC3B,IAAI,CAAC,EAAE,OAAO,oBAAoB,CAAC;QACnC,aAAa,CAAC,EAAE,OAAO,2BAA2B,CAAC;KACpD,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,wBAAsB,yBAAyB,CAC7C,WAAW,EAAE,yBAAyB,EACtC,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED;;;GAGG;AACH,wBAAgB,sCAAsC,CACpD,WAAW,EAAE,yBAAyB,EACtC,OAAO,GAAE,uCAA4C,GACpD,iBAAiB,CAwBnB"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connect-hint middleware for Fleet marketplace MCP bridges.
|
|
3
|
-
*
|
|
4
|
-
* Same proactive "not connected yet" system hint as toolserver Fleet OAuth
|
|
5
|
-
* integrations ({@link createFleetConnectHintMiddleware}), but the vault
|
|
6
|
-
* `provider_id` is discovered from the workspace `mcp_servers` row.
|
|
7
|
-
*/
|
|
8
|
-
import { resolveMarketplaceMcpServer } from "../../connectors/marketplace/fleet-mcp.js";
|
|
9
|
-
import { agentIdFromActor } from "../actor-subject.js";
|
|
10
|
-
import { createFleetConnectHintMiddleware, fleetConnectHintUrl, } from "../fleet-connect-hint.js";
|
|
11
|
-
import { listAgentConnections } from "../fleet.js";
|
|
12
|
-
/** Adapt a marketplace catalog row to the Fleet Connect / hint integration shape. */
|
|
13
|
-
export function marketplaceAsFleetHint(integration, providerId = "") {
|
|
14
|
-
return {
|
|
15
|
-
id: integration.id,
|
|
16
|
-
connectId: integration.connectId,
|
|
17
|
-
displayName: integration.displayName,
|
|
18
|
-
defaultProviderSlug: providerId,
|
|
19
|
-
toolServerSlugs: [],
|
|
20
|
-
scopesBySlug: {},
|
|
21
|
-
...(integration.scopes?.length
|
|
22
|
-
? { profileScopes: [...integration.scopes] }
|
|
23
|
-
: {}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Absolute Connect start URL for a marketplace bridge (with optional ticket).
|
|
28
|
-
*/
|
|
29
|
-
export async function marketplaceConnectHintUrl(integration, env = process.env, userId) {
|
|
30
|
-
return fleetConnectHintUrl(marketplaceAsFleetHint(integration), env, userId);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Middleware that injects a system hint when the caller has no vault connection
|
|
34
|
-
* for this marketplace MCP integration.
|
|
35
|
-
*/
|
|
36
|
-
export function createMarketplaceConnectHintMiddleware(integration, options = {}) {
|
|
37
|
-
const list = options.fleet?.list ?? listAgentConnections;
|
|
38
|
-
const resolve = options.fleet?.resolveServer ?? resolveMarketplaceMcpServer;
|
|
39
|
-
return createFleetConnectHintMiddleware({
|
|
40
|
-
integration: marketplaceAsFleetHint(integration),
|
|
41
|
-
resolvePublicAppUrl: options.resolvePublicAppUrl,
|
|
42
|
-
fleet: options.fleet,
|
|
43
|
-
isConnected: options.isConnected ??
|
|
44
|
-
(async (userId) => {
|
|
45
|
-
const server = await resolve({
|
|
46
|
-
mcpUrl: integration.mcpUrl,
|
|
47
|
-
...(options.fleet ?? {}),
|
|
48
|
-
});
|
|
49
|
-
const providerId = server.oauth_provider_id?.trim();
|
|
50
|
-
if (!providerId) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
const agentId = agentIdFromActor(userId);
|
|
54
|
-
const connections = await list(agentId, options.fleet ?? {});
|
|
55
|
-
return connections.some((c) => c.provider_id === providerId);
|
|
56
|
-
}),
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=connect-hint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect-hint.js","sourceRoot":"","sources":["../../../src/identity/marketplace/connect-hint.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAGxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,gCAAgC,EAChC,mBAAmB,GAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAA2B,MAAM,aAAa,CAAC;AAE5E,qFAAqF;AACrF,MAAM,UAAU,sBAAsB,CACpC,WAAsC,EACtC,UAAU,GAAG,EAAE;IAEf,OAAO;QACL,EAAE,EAAE,WAAW,CAAC,EAAE;QAClB,SAAS,EAAE,WAAW,CAAC,SAAS;QAChC,WAAW,EAAE,WAAW,CAAC,WAAW;QACpC,mBAAmB,EAAE,UAAU;QAC/B,eAAe,EAAE,EAAE;QACnB,YAAY,EAAE,EAAE;QAChB,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM;YAC5B,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,EAAE;YAC5C,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC;AAYD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,WAAsC,EACtC,GAAG,GAAsB,OAAO,CAAC,GAAG,EACpC,MAAe;IAEf,OAAO,mBAAmB,CAAC,sBAAsB,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;AAC/E,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sCAAsC,CACpD,WAAsC,EACtC,OAAO,GAA4C,EAAE;IAErD,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,EAAE,IAAI,IAAI,oBAAoB,CAAC;IACzD,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,EAAE,aAAa,IAAI,2BAA2B,CAAC;IAE5E,OAAO,gCAAgC,CAAC;QACtC,WAAW,EAAE,sBAAsB,CAAC,WAAW,CAAC;QAChD,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;QAChD,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,WAAW,EACT,OAAO,CAAC,WAAW;YACnB,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;gBACxB,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC;oBAC3B,MAAM,EAAE,WAAW,CAAC,MAAM;oBAC1B,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;iBACzB,CAAC,CAAC;gBACH,MAAM,UAAU,GAAG,MAAM,CAAC,iBAAiB,EAAE,IAAI,EAAE,CAAC;gBACpD,IAAI,CAAC,UAAU,EAAE,CAAC;oBAChB,OAAO,KAAK,CAAC;gBACf,CAAC;gBACD,MAAM,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;gBACzC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;gBAC7D,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,UAAU,CAAC,CAAC;YAC/D,CAAC,CAAC;KACL,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connect-with-X for Fleet marketplace MCP integrations.
|
|
3
|
-
*
|
|
4
|
-
* Thin adapter over {@link createFleetVaultConnectProvider}: same actor →
|
|
5
|
-
* agent_id vault lifecycle as Google / Microsoft / LinkedIn, but the OAuth
|
|
6
|
-
* provider slug is discovered at runtime from the workspace `mcp_servers` row.
|
|
7
|
-
*
|
|
8
|
-
* `connect.<id>()` factories and identity-http candidates are derived from
|
|
9
|
-
* {@link MARKETPLACE_MCP_INTEGRATIONS}.
|
|
10
|
-
*/
|
|
11
|
-
import { type MarketplaceMcpIntegration, type MarketplaceMcpIntegrationId } from "../../connectors/marketplace/catalog.js";
|
|
12
|
-
import { resolveMarketplaceMcpServer } from "../../connectors/marketplace/fleet-mcp.js";
|
|
13
|
-
import type { IdentityConnectProvider } from "../connect-provider-types.js";
|
|
14
|
-
import { createFleetAuthSession, deleteAgentConnection, listAgentConnections, type FleetClientOptions } from "../fleet.js";
|
|
15
|
-
export interface MarketplaceConnectProviderOptions {
|
|
16
|
-
/** Injectable Fleet client (tests). */
|
|
17
|
-
fleet?: FleetClientOptions & {
|
|
18
|
-
list?: typeof listAgentConnections;
|
|
19
|
-
delete?: typeof deleteAgentConnection;
|
|
20
|
-
resolveServer?: typeof resolveMarketplaceMcpServer;
|
|
21
|
-
createSession?: typeof createFleetAuthSession;
|
|
22
|
-
};
|
|
23
|
-
/** Override OAuth scopes (default: integration.scopes). */
|
|
24
|
-
scopes?: string[];
|
|
25
|
-
}
|
|
26
|
-
/** `connect.<id>()` factories for every marketplace catalog entry. */
|
|
27
|
-
export type MarketplaceConnect = {
|
|
28
|
-
[Id in MarketplaceMcpIntegrationId]: (options?: MarketplaceConnectProviderOptions) => IdentityConnectProvider;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Build a Connect provider for a marketplace MCP integration.
|
|
32
|
-
*
|
|
33
|
-
* Mounts when declared on `identity.connect`, or when the matching
|
|
34
|
-
* `connectors.<id>` is present on a user-scoped deployment.
|
|
35
|
-
*/
|
|
36
|
-
export declare function createMarketplaceVaultConnectProvider(integration: MarketplaceMcpIntegration, options?: MarketplaceConnectProviderOptions): IdentityConnectProvider;
|
|
37
|
-
/**
|
|
38
|
-
* Default Connect providers for every marketplace catalog entry.
|
|
39
|
-
*
|
|
40
|
-
* Shared between `connect.<id>()` (no options) and identity-http candidates so
|
|
41
|
-
* mount inference and explicit opt-in use the same instances.
|
|
42
|
-
*/
|
|
43
|
-
export declare const marketplaceIdentityConnectProviders: IdentityConnectProvider[];
|
|
44
|
-
/**
|
|
45
|
-
* `connect.<id>()` factories derived from the marketplace catalog.
|
|
46
|
-
*
|
|
47
|
-
* Usually unnecessary: declaring `connectors.<id>` on a user-scoped identity
|
|
48
|
-
* deployment mounts the matching Connect flow automatically.
|
|
49
|
-
*/
|
|
50
|
-
export declare const marketplaceConnect: MarketplaceConnect;
|
|
51
|
-
//# sourceMappingURL=connect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/identity/marketplace/connect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAGL,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EACjC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAExF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAK5E,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAQrB,MAAM,WAAW,iCAAiC;IAChD,uCAAuC;IACvC,KAAK,CAAC,EAAE,kBAAkB,GAAG;QAC3B,IAAI,CAAC,EAAE,OAAO,oBAAoB,CAAC;QACnC,MAAM,CAAC,EAAE,OAAO,qBAAqB,CAAC;QACtC,aAAa,CAAC,EAAE,OAAO,2BAA2B,CAAC;QACnD,aAAa,CAAC,EAAE,OAAO,sBAAsB,CAAC;KAC/C,CAAC;IACF,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,sEAAsE;AACtE,MAAM,MAAM,kBAAkB,GAAG;KAC9B,EAAE,IAAI,2BAA2B,GAAG,CACnC,OAAO,CAAC,EAAE,iCAAiC,KACxC,uBAAuB;CAC7B,CAAC;AAuBF;;;;;GAKG;AACH,wBAAgB,qCAAqC,CACnD,WAAW,EAAE,yBAAyB,EACtC,OAAO,GAAE,iCAAsC,GAC9C,uBAAuB,CAqCzB;AAED;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC,EAAE,uBAAuB,EAGtE,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAUV,CAAC"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connect-with-X for Fleet marketplace MCP integrations.
|
|
3
|
-
*
|
|
4
|
-
* Thin adapter over {@link createFleetVaultConnectProvider}: same actor →
|
|
5
|
-
* agent_id vault lifecycle as Google / Microsoft / LinkedIn, but the OAuth
|
|
6
|
-
* provider slug is discovered at runtime from the workspace `mcp_servers` row.
|
|
7
|
-
*
|
|
8
|
-
* `connect.<id>()` factories and identity-http candidates are derived from
|
|
9
|
-
* {@link MARKETPLACE_MCP_INTEGRATIONS}.
|
|
10
|
-
*/
|
|
11
|
-
import { MARKETPLACE_MCP_INTEGRATIONS, hasMarketplaceConnector, } from "../../connectors/marketplace/catalog.js";
|
|
12
|
-
import { resolveMarketplaceMcpServer } from "../../connectors/marketplace/fleet-mcp.js";
|
|
13
|
-
import { enableActorSubjectIntegration } from "../actor-subject.js";
|
|
14
|
-
import { createFleetVaultConnectProvider, } from "../fleet-connect.js";
|
|
15
|
-
import { createFleetAuthSession, deleteAgentConnection, listAgentConnections, } from "../fleet.js";
|
|
16
|
-
import { MDA_PUBLIC_API_URL_ENV, MDA_PUBLIC_APP_URL_ENV, resolveOauthRedirectBase, } from "../oauth-env.js";
|
|
17
|
-
import { marketplaceAsFleetHint } from "./connect-hint.js";
|
|
18
|
-
function fleetClientOptions(fleet) {
|
|
19
|
-
if (!fleet) {
|
|
20
|
-
return undefined;
|
|
21
|
-
}
|
|
22
|
-
const { list, delete: remove, createSession, resolveServer: _resolveServer, ...rest } = fleet;
|
|
23
|
-
return {
|
|
24
|
-
...rest,
|
|
25
|
-
...(list ? { list } : {}),
|
|
26
|
-
...(remove ? { delete: remove } : {}),
|
|
27
|
-
...(createSession ? { createAuthSession: createSession } : {}),
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Build a Connect provider for a marketplace MCP integration.
|
|
32
|
-
*
|
|
33
|
-
* Mounts when declared on `identity.connect`, or when the matching
|
|
34
|
-
* `connectors.<id>` is present on a user-scoped deployment.
|
|
35
|
-
*/
|
|
36
|
-
export function createMarketplaceVaultConnectProvider(integration, options = {}) {
|
|
37
|
-
const resolveServer = options.fleet?.resolveServer ?? resolveMarketplaceMcpServer;
|
|
38
|
-
const fleet = fleetClientOptions(options.fleet);
|
|
39
|
-
return createFleetVaultConnectProvider({
|
|
40
|
-
integration: marketplaceAsFleetHint(integration),
|
|
41
|
-
...(options.scopes ? { scopes: [...options.scopes] } : {}),
|
|
42
|
-
fallbackScopes: [...(integration.scopes ?? [])],
|
|
43
|
-
resolveRedirectBase: resolveOauthRedirectBase,
|
|
44
|
-
resolvePublicAppUrl() {
|
|
45
|
-
return (process.env[MDA_PUBLIC_APP_URL_ENV]?.replace(/\/$/, "") ||
|
|
46
|
-
process.env[MDA_PUBLIC_API_URL_ENV]?.replace(/\/$/, ""));
|
|
47
|
-
},
|
|
48
|
-
...(fleet ? { fleet } : {}),
|
|
49
|
-
async resolveProviderSlug() {
|
|
50
|
-
const server = await resolveServer({
|
|
51
|
-
mcpUrl: integration.mcpUrl,
|
|
52
|
-
...(fleet ?? {}),
|
|
53
|
-
});
|
|
54
|
-
const providerId = server.oauth_provider_id?.trim();
|
|
55
|
-
if (!providerId) {
|
|
56
|
-
throw new Error(`${integration.displayName} MCP server has no oauth_provider_id`);
|
|
57
|
-
}
|
|
58
|
-
return providerId;
|
|
59
|
-
},
|
|
60
|
-
hasDeclaredConnector: (kinds) => hasMarketplaceConnector(integration.id, kinds),
|
|
61
|
-
notConfiguredError: `${integration.displayName} connect needs LANGSMITH_API_KEY ` +
|
|
62
|
-
`(and a workspace ${integration.displayName} MCP server from Fleet marketplace).`,
|
|
63
|
-
softAuthorizeFailures: true,
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Default Connect providers for every marketplace catalog entry.
|
|
68
|
-
*
|
|
69
|
-
* Shared between `connect.<id>()` (no options) and identity-http candidates so
|
|
70
|
-
* mount inference and explicit opt-in use the same instances.
|
|
71
|
-
*/
|
|
72
|
-
export const marketplaceIdentityConnectProviders = MARKETPLACE_MCP_INTEGRATIONS.map((entry) => createMarketplaceVaultConnectProvider(entry));
|
|
73
|
-
/**
|
|
74
|
-
* `connect.<id>()` factories derived from the marketplace catalog.
|
|
75
|
-
*
|
|
76
|
-
* Usually unnecessary: declaring `connectors.<id>` on a user-scoped identity
|
|
77
|
-
* deployment mounts the matching Connect flow automatically.
|
|
78
|
-
*/
|
|
79
|
-
export const marketplaceConnect = Object.fromEntries(MARKETPLACE_MCP_INTEGRATIONS.map((entry, index) => [
|
|
80
|
-
entry.id,
|
|
81
|
-
(options) => {
|
|
82
|
-
enableActorSubjectIntegration(entry.id);
|
|
83
|
-
return options
|
|
84
|
-
? createMarketplaceVaultConnectProvider(entry, options)
|
|
85
|
-
: marketplaceIdentityConnectProviders[index];
|
|
86
|
-
},
|
|
87
|
-
]));
|
|
88
|
-
//# sourceMappingURL=connect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../src/identity/marketplace/connect.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Marketplace identity helpers — Connect-with-X for Fleet marketplace MCP bridges.
|
|
3
|
-
*
|
|
4
|
-
* One surface covers every catalog entry (Notion, Cloudflare, Neon, …): vault
|
|
5
|
-
* Connect providers, `connect.<id>()` factories, and proactive connect hints.
|
|
6
|
-
*/
|
|
7
|
-
export { createMarketplaceVaultConnectProvider, marketplaceConnect, marketplaceIdentityConnectProviders, type MarketplaceConnect, type MarketplaceConnectProviderOptions, } from "./connect.js";
|
|
8
|
-
export { createMarketplaceConnectHintMiddleware, marketplaceAsFleetHint, marketplaceConnectHintUrl, type MarketplaceConnectHintMiddlewareOptions, } from "./connect-hint.js";
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|