@openhands/extensions 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/deprecation-check.yml +25 -0
- package/.release-please-manifest.json +1 -1
- package/integrations/README.md +25 -0
- package/integrations/catalog/atlassian.json +13 -0
- package/integrations/catalog/github.json +20 -0
- package/integrations/catalog/microsoft-outlook.json +13 -0
- package/integrations/catalog/microsoft-teams.json +13 -0
- package/integrations/catalog/notion.json +13 -0
- package/integrations/catalog/onedrive.json +13 -0
- package/integrations/catalog/sharepoint.json +13 -0
- package/integrations/catalog/slack.json +14 -0
- package/integrations/catalog/vanta.json +55 -0
- package/integrations/catalog-index.js +69 -67
- package/integrations/catalog.schema.json +70 -3
- package/integrations/index.d.ts +49 -3
- package/package.json +1 -1
- package/pyproject.toml +6 -1
- package/python/openhands_extensions/__init__.py +38 -0
- package/python/openhands_extensions/_version.py +2 -2
- package/python/openhands_extensions/deprecation.py +159 -0
- package/python/openhands_extensions/integration_models.py +233 -0
- package/python/openhands_extensions/integrations.py +59 -4
- package/scripts/check_deprecations.py +488 -0
- package/tests/test_catalog_schema.py +58 -0
- package/tests/test_deprecations.py +136 -0
- package/tests/test_integration_catalog_in_sync.py +118 -7
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Deprecation deadlines
|
|
2
|
+
|
|
3
|
+
# release-please opens its release PR with the OpenHands GitHub App token, so
|
|
4
|
+
# this pull_request workflow also runs against the generated version bump.
|
|
5
|
+
on:
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: ["**"]
|
|
8
|
+
push:
|
|
9
|
+
branches: ["main", "master"]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
check:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout repository
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Install uv
|
|
19
|
+
uses: astral-sh/setup-uv@v7
|
|
20
|
+
with:
|
|
21
|
+
enable-cache: true
|
|
22
|
+
python-version: "3.12"
|
|
23
|
+
|
|
24
|
+
- name: Verify deprecation deadlines
|
|
25
|
+
run: uv run python scripts/check_deprecations.py
|
package/integrations/README.md
CHANGED
|
@@ -18,6 +18,31 @@ integrations so clients can consume one source of truth.
|
|
|
18
18
|
Each integration carries its OAuth/MCP connection data directly. Do not add a
|
|
19
19
|
separate provider catalog or per-language provider data.
|
|
20
20
|
|
|
21
|
+
Every entry must include `docsUrl`. Marketplace input fields must explicitly
|
|
22
|
+
declare both their `type` and whether they are `required`, rather than relying
|
|
23
|
+
on client defaults. When connection metadata includes an `identityMapping`, it
|
|
24
|
+
must also identify the external principal. These requirements keep catalogs
|
|
25
|
+
actionable and prevent clients from guessing security- or UX-relevant defaults.
|
|
26
|
+
|
|
27
|
+
Connection options may also carry an optional `connectionModel`. This metadata
|
|
28
|
+
lets consumers distinguish the authenticated principal from the external
|
|
29
|
+
resource the credential can reach:
|
|
30
|
+
|
|
31
|
+
- `principalType` describes who or what authenticated.
|
|
32
|
+
- `credentialScope` describes the provider boundary enforced by the credential.
|
|
33
|
+
- `resourceType` and `resourceCardinality` describe whether the grant represents
|
|
34
|
+
one workspace/site/tenant or can enumerate several.
|
|
35
|
+
- `selectionMode` tells clients whether the resource is known during auth,
|
|
36
|
+
selected immediately after auth, or supplied at runtime.
|
|
37
|
+
- `identityMapping` contains constrained dot paths for identity values returned
|
|
38
|
+
by OAuth, access-token claims, or a provider identity endpoint.
|
|
39
|
+
- `resourceDiscovery` describes a read-only endpoint used to enumerate resources
|
|
40
|
+
when one grant covers several of them.
|
|
41
|
+
|
|
42
|
+
These fields are descriptive; they never broaden the scopes enforced by the
|
|
43
|
+
provider credential. Consumers must not claim resource-level isolation when a
|
|
44
|
+
provider token is only account- or tenant-scoped.
|
|
45
|
+
|
|
21
46
|
Consumers should use the read functions exported by the package:
|
|
22
47
|
|
|
23
48
|
```js
|
|
@@ -24,6 +24,19 @@
|
|
|
24
24
|
{
|
|
25
25
|
"id": "oauth",
|
|
26
26
|
"provider": "mcp",
|
|
27
|
+
"connectionModel": {
|
|
28
|
+
"principalType": "user",
|
|
29
|
+
"credentialScope": "account",
|
|
30
|
+
"resourceType": "site",
|
|
31
|
+
"resourceCardinality": "many",
|
|
32
|
+
"selectionMode": "post_auth",
|
|
33
|
+
"resourceDiscovery": {
|
|
34
|
+
"endpoint": "https://api.atlassian.com/oauth/token/accessible-resources",
|
|
35
|
+
"externalResourceIdPath": "id",
|
|
36
|
+
"resourceNamePath": "name",
|
|
37
|
+
"resourceUrlPath": "url"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
27
40
|
"transport": {
|
|
28
41
|
"kind": "shttp",
|
|
29
42
|
"url": "https://mcp.atlassian.com/v1/mcp"
|
|
@@ -14,6 +14,26 @@
|
|
|
14
14
|
{
|
|
15
15
|
"id": "oauth",
|
|
16
16
|
"provider": "mcp",
|
|
17
|
+
"connectionModel": {
|
|
18
|
+
"principalType": "user",
|
|
19
|
+
"credentialScope": "account",
|
|
20
|
+
"resourceType": "organization",
|
|
21
|
+
"resourceCardinality": "many",
|
|
22
|
+
"selectionMode": "post_auth",
|
|
23
|
+
"identityMapping": {
|
|
24
|
+
"source": "identity_api",
|
|
25
|
+
"endpoint": "https://api.github.com/user",
|
|
26
|
+
"externalPrincipalIdPath": "id",
|
|
27
|
+
"resourceNamePath": "login",
|
|
28
|
+
"resourceUrlPath": "html_url"
|
|
29
|
+
},
|
|
30
|
+
"resourceDiscovery": {
|
|
31
|
+
"endpoint": "https://api.github.com/user/orgs",
|
|
32
|
+
"externalResourceIdPath": "id",
|
|
33
|
+
"resourceNamePath": "login",
|
|
34
|
+
"resourceUrlPath": "html_url"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
17
37
|
"auth": {
|
|
18
38
|
"strategy": "oauth2",
|
|
19
39
|
"oauth": {
|
|
@@ -14,6 +14,19 @@
|
|
|
14
14
|
{
|
|
15
15
|
"id": "oauth",
|
|
16
16
|
"provider": "http",
|
|
17
|
+
"connectionModel": {
|
|
18
|
+
"principalType": "user",
|
|
19
|
+
"credentialScope": "tenant",
|
|
20
|
+
"resourceType": "tenant",
|
|
21
|
+
"resourceCardinality": "one",
|
|
22
|
+
"selectionMode": "automatic",
|
|
23
|
+
"identityMapping": {
|
|
24
|
+
"source": "access_token_claims",
|
|
25
|
+
"externalPrincipalIdPath": "oid",
|
|
26
|
+
"externalTenantIdPath": "tid",
|
|
27
|
+
"externalResourceIdPath": "tid"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
17
30
|
"auth": {
|
|
18
31
|
"strategy": "oauth2",
|
|
19
32
|
"oauth": {
|
|
@@ -14,6 +14,19 @@
|
|
|
14
14
|
{
|
|
15
15
|
"id": "oauth",
|
|
16
16
|
"provider": "http",
|
|
17
|
+
"connectionModel": {
|
|
18
|
+
"principalType": "user",
|
|
19
|
+
"credentialScope": "tenant",
|
|
20
|
+
"resourceType": "tenant",
|
|
21
|
+
"resourceCardinality": "one",
|
|
22
|
+
"selectionMode": "automatic",
|
|
23
|
+
"identityMapping": {
|
|
24
|
+
"source": "access_token_claims",
|
|
25
|
+
"externalPrincipalIdPath": "oid",
|
|
26
|
+
"externalTenantIdPath": "tid",
|
|
27
|
+
"externalResourceIdPath": "tid"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
17
30
|
"auth": {
|
|
18
31
|
"strategy": "oauth2",
|
|
19
32
|
"oauth": {
|
|
@@ -13,6 +13,19 @@
|
|
|
13
13
|
{
|
|
14
14
|
"id": "oauth",
|
|
15
15
|
"provider": "http",
|
|
16
|
+
"connectionModel": {
|
|
17
|
+
"principalType": "user",
|
|
18
|
+
"credentialScope": "resource",
|
|
19
|
+
"resourceType": "workspace",
|
|
20
|
+
"resourceCardinality": "one",
|
|
21
|
+
"selectionMode": "automatic",
|
|
22
|
+
"identityMapping": {
|
|
23
|
+
"source": "oauth_token_response",
|
|
24
|
+
"externalPrincipalIdPath": "owner.user.id",
|
|
25
|
+
"externalResourceIdPath": "workspace_id",
|
|
26
|
+
"resourceNamePath": "workspace_name"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
16
29
|
"auth": {
|
|
17
30
|
"strategy": "oauth2",
|
|
18
31
|
"oauth": {
|
|
@@ -14,6 +14,19 @@
|
|
|
14
14
|
{
|
|
15
15
|
"id": "oauth",
|
|
16
16
|
"provider": "http",
|
|
17
|
+
"connectionModel": {
|
|
18
|
+
"principalType": "user",
|
|
19
|
+
"credentialScope": "tenant",
|
|
20
|
+
"resourceType": "tenant",
|
|
21
|
+
"resourceCardinality": "one",
|
|
22
|
+
"selectionMode": "automatic",
|
|
23
|
+
"identityMapping": {
|
|
24
|
+
"source": "access_token_claims",
|
|
25
|
+
"externalPrincipalIdPath": "oid",
|
|
26
|
+
"externalTenantIdPath": "tid",
|
|
27
|
+
"externalResourceIdPath": "tid"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
17
30
|
"auth": {
|
|
18
31
|
"strategy": "oauth2",
|
|
19
32
|
"oauth": {
|
|
@@ -14,6 +14,19 @@
|
|
|
14
14
|
{
|
|
15
15
|
"id": "oauth",
|
|
16
16
|
"provider": "http",
|
|
17
|
+
"connectionModel": {
|
|
18
|
+
"principalType": "user",
|
|
19
|
+
"credentialScope": "tenant",
|
|
20
|
+
"resourceType": "tenant",
|
|
21
|
+
"resourceCardinality": "one",
|
|
22
|
+
"selectionMode": "automatic",
|
|
23
|
+
"identityMapping": {
|
|
24
|
+
"source": "access_token_claims",
|
|
25
|
+
"externalPrincipalIdPath": "oid",
|
|
26
|
+
"externalTenantIdPath": "tid",
|
|
27
|
+
"externalResourceIdPath": "tid"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
17
30
|
"auth": {
|
|
18
31
|
"strategy": "oauth2",
|
|
19
32
|
"oauth": {
|
|
@@ -14,6 +14,20 @@
|
|
|
14
14
|
{
|
|
15
15
|
"id": "oauth",
|
|
16
16
|
"provider": "mcp",
|
|
17
|
+
"connectionModel": {
|
|
18
|
+
"principalType": "user",
|
|
19
|
+
"credentialScope": "resource",
|
|
20
|
+
"resourceType": "workspace",
|
|
21
|
+
"resourceCardinality": "one",
|
|
22
|
+
"selectionMode": "automatic",
|
|
23
|
+
"identityMapping": {
|
|
24
|
+
"source": "oauth_token_response",
|
|
25
|
+
"externalPrincipalIdPath": "authed_user.id",
|
|
26
|
+
"externalTenantIdPath": "enterprise.id",
|
|
27
|
+
"externalResourceIdPath": "team.id",
|
|
28
|
+
"resourceNamePath": "team.name"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
17
31
|
"auth": {
|
|
18
32
|
"strategy": "oauth2",
|
|
19
33
|
"oauth": {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "vanta",
|
|
3
|
+
"name": "Vanta",
|
|
4
|
+
"description": "Query Vanta compliance controls, tests, evidence, risks, and vulnerabilities from the agent.",
|
|
5
|
+
"categories": [
|
|
6
|
+
"Security",
|
|
7
|
+
"Compliance"
|
|
8
|
+
],
|
|
9
|
+
"appUrl": "https://www.vanta.com",
|
|
10
|
+
"docsUrl": "https://developer.vanta.com/docs/vanta-mcp",
|
|
11
|
+
"notes": "Vanta's hosted remote MCP server (beta, requires a Vanta Admin role). Regional endpoints: US https://mcp.vanta.com/mcp, EU https://mcp.eu.vanta.com/mcp, AUS https://mcp.aus.vanta.com/mcp. Authentication is OAuth only - no API keys.",
|
|
12
|
+
"popularityRank": 64,
|
|
13
|
+
"connectionOptions": [
|
|
14
|
+
{
|
|
15
|
+
"id": "oauth",
|
|
16
|
+
"provider": "mcp",
|
|
17
|
+
"auth": {
|
|
18
|
+
"strategy": "oauth2",
|
|
19
|
+
"oauth": {
|
|
20
|
+
"authorizationUrl": "https://app.vanta.com/oauth/authorize",
|
|
21
|
+
"tokenUrl": "https://api.vanta.com/oauth/token",
|
|
22
|
+
"registrationUrl": "https://api.vanta.com/oauth/register",
|
|
23
|
+
"scopes": [
|
|
24
|
+
"mcp-api.all:read"
|
|
25
|
+
],
|
|
26
|
+
"optionalScopes": [
|
|
27
|
+
"mcp-api.all:write"
|
|
28
|
+
],
|
|
29
|
+
"pkce": true,
|
|
30
|
+
"clientAuthentication": "none",
|
|
31
|
+
"additionalAuthorizationParams": {
|
|
32
|
+
"resource": "https://mcp.vanta.com"
|
|
33
|
+
},
|
|
34
|
+
"additionalTokenParams": {
|
|
35
|
+
"resource": "https://mcp.vanta.com"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"transport": {
|
|
40
|
+
"kind": "shttp",
|
|
41
|
+
"url": "https://mcp.vanta.com/mcp"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"iconBg": "#003D2B",
|
|
46
|
+
"keywords": [
|
|
47
|
+
"compliance",
|
|
48
|
+
"soc2",
|
|
49
|
+
"security",
|
|
50
|
+
"audit",
|
|
51
|
+
"risk",
|
|
52
|
+
"vanta"
|
|
53
|
+
],
|
|
54
|
+
"installHint": "Connect via the OAuth MCP option. After connecting, complete the OAuth flow in your browser as a Vanta Admin. EU tenants should use https://mcp.eu.vanta.com/mcp and AUS tenants https://mcp.aus.vanta.com/mcp as the transport URL. The legacy local server @vantasdk/vanta-mcp-server is deprecated - prefer the hosted remote server."
|
|
55
|
+
}
|
|
@@ -8,73 +8,74 @@ import entry2 from "./catalog/tavily.json" with { type: "json" };
|
|
|
8
8
|
import entry3 from "./catalog/atlassian.json" with { type: "json" };
|
|
9
9
|
import entry4 from "./catalog/linear.json" with { type: "json" };
|
|
10
10
|
import entry5 from "./catalog/notion.json" with { type: "json" };
|
|
11
|
-
import entry6 from "./catalog/
|
|
12
|
-
import entry7 from "./catalog/
|
|
13
|
-
import entry8 from "./catalog/
|
|
14
|
-
import entry9 from "./catalog/
|
|
15
|
-
import entry10 from "./catalog/
|
|
16
|
-
import entry11 from "./catalog/
|
|
17
|
-
import entry12 from "./catalog/
|
|
18
|
-
import entry13 from "./catalog/
|
|
19
|
-
import entry14 from "./catalog/
|
|
20
|
-
import entry15 from "./catalog/
|
|
21
|
-
import entry16 from "./catalog/
|
|
22
|
-
import entry17 from "./catalog/
|
|
23
|
-
import entry18 from "./catalog/
|
|
24
|
-
import entry19 from "./catalog/
|
|
25
|
-
import entry20 from "./catalog/
|
|
26
|
-
import entry21 from "./catalog/
|
|
27
|
-
import entry22 from "./catalog/
|
|
28
|
-
import entry23 from "./catalog/
|
|
29
|
-
import entry24 from "./catalog/
|
|
30
|
-
import entry25 from "./catalog/
|
|
31
|
-
import entry26 from "./catalog/
|
|
32
|
-
import entry27 from "./catalog/
|
|
33
|
-
import entry28 from "./catalog/
|
|
34
|
-
import entry29 from "./catalog/
|
|
35
|
-
import entry30 from "./catalog/microsoft-
|
|
36
|
-
import entry31 from "./catalog/
|
|
37
|
-
import entry32 from "./catalog/
|
|
38
|
-
import entry33 from "./catalog/
|
|
39
|
-
import entry34 from "./catalog/
|
|
40
|
-
import entry35 from "./catalog/
|
|
41
|
-
import entry36 from "./catalog/
|
|
42
|
-
import entry37 from "./catalog/
|
|
43
|
-
import entry38 from "./catalog/
|
|
44
|
-
import entry39 from "./catalog/
|
|
45
|
-
import entry40 from "./catalog/
|
|
46
|
-
import entry41 from "./catalog/google-
|
|
47
|
-
import entry42 from "./catalog/
|
|
48
|
-
import entry43 from "./catalog/
|
|
49
|
-
import entry44 from "./catalog/
|
|
50
|
-
import entry45 from "./catalog/
|
|
51
|
-
import entry46 from "./catalog/
|
|
52
|
-
import entry47 from "./catalog/
|
|
53
|
-
import entry48 from "./catalog/
|
|
54
|
-
import entry49 from "./catalog/cloudflare-
|
|
55
|
-
import entry50 from "./catalog/cloudflare-
|
|
56
|
-
import entry51 from "./catalog/cloudflare-
|
|
57
|
-
import entry52 from "./catalog/cloudflare-
|
|
58
|
-
import entry53 from "./catalog/
|
|
59
|
-
import entry54 from "./catalog/
|
|
60
|
-
import entry55 from "./catalog/
|
|
61
|
-
import entry56 from "./catalog/
|
|
62
|
-
import entry57 from "./catalog/
|
|
63
|
-
import entry58 from "./catalog/
|
|
64
|
-
import entry59 from "./catalog/
|
|
65
|
-
import entry60 from "./catalog/
|
|
66
|
-
import entry61 from "./catalog/
|
|
67
|
-
import entry62 from "./catalog/
|
|
68
|
-
import entry63 from "./catalog/
|
|
69
|
-
import entry64 from "./catalog/
|
|
70
|
-
import entry65 from "./catalog/
|
|
71
|
-
import entry66 from "./catalog/
|
|
72
|
-
import entry67 from "./catalog/
|
|
73
|
-
import entry68 from "./catalog/
|
|
74
|
-
import entry69 from "./catalog/
|
|
75
|
-
import entry70 from "./catalog/
|
|
76
|
-
import entry71 from "./catalog/
|
|
77
|
-
import entry72 from "./catalog/
|
|
11
|
+
import entry6 from "./catalog/vanta.json" with { type: "json" };
|
|
12
|
+
import entry7 from "./catalog/ordinal.json" with { type: "json" };
|
|
13
|
+
import entry8 from "./catalog/elevenlabs.json" with { type: "json" };
|
|
14
|
+
import entry9 from "./catalog/bitbucket.json" with { type: "json" };
|
|
15
|
+
import entry10 from "./catalog/xero.json" with { type: "json" };
|
|
16
|
+
import entry11 from "./catalog/quickbooks.json" with { type: "json" };
|
|
17
|
+
import entry12 from "./catalog/okta.json" with { type: "json" };
|
|
18
|
+
import entry13 from "./catalog/netlify.json" with { type: "json" };
|
|
19
|
+
import entry14 from "./catalog/vercel.json" with { type: "json" };
|
|
20
|
+
import entry15 from "./catalog/supabase.json" with { type: "json" };
|
|
21
|
+
import entry16 from "./catalog/posthog.json" with { type: "json" };
|
|
22
|
+
import entry17 from "./catalog/sentry.json" with { type: "json" };
|
|
23
|
+
import entry18 from "./catalog/datadog.json" with { type: "json" };
|
|
24
|
+
import entry19 from "./catalog/canva.json" with { type: "json" };
|
|
25
|
+
import entry20 from "./catalog/miro.json" with { type: "json" };
|
|
26
|
+
import entry21 from "./catalog/webflow.json" with { type: "json" };
|
|
27
|
+
import entry22 from "./catalog/zoom.json" with { type: "json" };
|
|
28
|
+
import entry23 from "./catalog/discord.json" with { type: "json" };
|
|
29
|
+
import entry24 from "./catalog/stripe.json" with { type: "json" };
|
|
30
|
+
import entry25 from "./catalog/intercom.json" with { type: "json" };
|
|
31
|
+
import entry26 from "./catalog/hubspot.json" with { type: "json" };
|
|
32
|
+
import entry27 from "./catalog/salesforce.json" with { type: "json" };
|
|
33
|
+
import entry28 from "./catalog/sharepoint.json" with { type: "json" };
|
|
34
|
+
import entry29 from "./catalog/onedrive.json" with { type: "json" };
|
|
35
|
+
import entry30 from "./catalog/microsoft-teams.json" with { type: "json" };
|
|
36
|
+
import entry31 from "./catalog/microsoft-outlook.json" with { type: "json" };
|
|
37
|
+
import entry32 from "./catalog/box.json" with { type: "json" };
|
|
38
|
+
import entry33 from "./catalog/airtable.json" with { type: "json" };
|
|
39
|
+
import entry34 from "./catalog/monday.json" with { type: "json" };
|
|
40
|
+
import entry35 from "./catalog/trello.json" with { type: "json" };
|
|
41
|
+
import entry36 from "./catalog/asana.json" with { type: "json" };
|
|
42
|
+
import entry37 from "./catalog/confluence.json" with { type: "json" };
|
|
43
|
+
import entry38 from "./catalog/jira.json" with { type: "json" };
|
|
44
|
+
import entry39 from "./catalog/google-calendar.json" with { type: "json" };
|
|
45
|
+
import entry40 from "./catalog/gmail.json" with { type: "json" };
|
|
46
|
+
import entry41 from "./catalog/google-sheets.json" with { type: "json" };
|
|
47
|
+
import entry42 from "./catalog/google-drive.json" with { type: "json" };
|
|
48
|
+
import entry43 from "./catalog/figma.json" with { type: "json" };
|
|
49
|
+
import entry44 from "./catalog/google-docs.json" with { type: "json" };
|
|
50
|
+
import entry45 from "./catalog/apify.json" with { type: "json" };
|
|
51
|
+
import entry46 from "./catalog/brave-search.json" with { type: "json" };
|
|
52
|
+
import entry47 from "./catalog/browser-mcp.json" with { type: "json" };
|
|
53
|
+
import entry48 from "./catalog/clickhouse.json" with { type: "json" };
|
|
54
|
+
import entry49 from "./catalog/cloudflare-bindings.json" with { type: "json" };
|
|
55
|
+
import entry50 from "./catalog/cloudflare-browser-rendering.json" with { type: "json" };
|
|
56
|
+
import entry51 from "./catalog/cloudflare-builds.json" with { type: "json" };
|
|
57
|
+
import entry52 from "./catalog/cloudflare-docs.json" with { type: "json" };
|
|
58
|
+
import entry53 from "./catalog/cloudflare-observability.json" with { type: "json" };
|
|
59
|
+
import entry54 from "./catalog/deepwiki.json" with { type: "json" };
|
|
60
|
+
import entry55 from "./catalog/everything.json" with { type: "json" };
|
|
61
|
+
import entry56 from "./catalog/exa.json" with { type: "json" };
|
|
62
|
+
import entry57 from "./catalog/fetch.json" with { type: "json" };
|
|
63
|
+
import entry58 from "./catalog/filesystem.json" with { type: "json" };
|
|
64
|
+
import entry59 from "./catalog/firecrawl.json" with { type: "json" };
|
|
65
|
+
import entry60 from "./catalog/git.json" with { type: "json" };
|
|
66
|
+
import entry61 from "./catalog/huggingface.json" with { type: "json" };
|
|
67
|
+
import entry62 from "./catalog/kagi.json" with { type: "json" };
|
|
68
|
+
import entry63 from "./catalog/memory.json" with { type: "json" };
|
|
69
|
+
import entry64 from "./catalog/mongodb.json" with { type: "json" };
|
|
70
|
+
import entry65 from "./catalog/neon.json" with { type: "json" };
|
|
71
|
+
import entry66 from "./catalog/obsidian.json" with { type: "json" };
|
|
72
|
+
import entry67 from "./catalog/paypal.json" with { type: "json" };
|
|
73
|
+
import entry68 from "./catalog/playwright.json" with { type: "json" };
|
|
74
|
+
import entry69 from "./catalog/redis.json" with { type: "json" };
|
|
75
|
+
import entry70 from "./catalog/resend.json" with { type: "json" };
|
|
76
|
+
import entry71 from "./catalog/sequential-thinking.json" with { type: "json" };
|
|
77
|
+
import entry72 from "./catalog/superhuman-mail.json" with { type: "json" };
|
|
78
|
+
import entry73 from "./catalog/time.json" with { type: "json" };
|
|
78
79
|
|
|
79
80
|
export const INTEGRATION_CATALOG_ENTRIES = [
|
|
80
81
|
entry0,
|
|
@@ -150,4 +151,5 @@ export const INTEGRATION_CATALOG_ENTRIES = [
|
|
|
150
151
|
entry70,
|
|
151
152
|
entry71,
|
|
152
153
|
entry72,
|
|
154
|
+
entry73,
|
|
153
155
|
];
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Strict schema for integrations/catalog/*.json. Mirrors integrations/index.d.ts and encodes the cross-field connectability rules the catalog contract depends on.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
|
-
"required": ["id", "name", "description", "connectionOptions"],
|
|
8
|
+
"required": ["id", "name", "description", "docsUrl", "connectionOptions"],
|
|
9
9
|
"properties": {
|
|
10
10
|
"id": { "type": "string", "minLength": 1 },
|
|
11
11
|
"name": { "type": "string", "minLength": 1 },
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"marketplaceField": {
|
|
40
40
|
"type": "object",
|
|
41
41
|
"additionalProperties": false,
|
|
42
|
-
"required": ["key", "label"],
|
|
42
|
+
"required": ["key", "label", "type", "required"],
|
|
43
43
|
"properties": {
|
|
44
44
|
"key": { "type": "string", "minLength": 1 },
|
|
45
45
|
"label": { "type": "string", "minLength": 1 },
|
|
@@ -91,6 +91,72 @@
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
+
"identityPath": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"pattern": "^[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*$",
|
|
97
|
+
"minLength": 1
|
|
98
|
+
},
|
|
99
|
+
"identityMapping": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"required": ["source", "externalPrincipalIdPath"],
|
|
103
|
+
"properties": {
|
|
104
|
+
"source": {
|
|
105
|
+
"enum": ["oauth_token_response", "access_token_claims", "identity_api"]
|
|
106
|
+
},
|
|
107
|
+
"endpoint": { "type": "string", "pattern": "^https://", "minLength": 8 },
|
|
108
|
+
"externalPrincipalIdPath": { "$ref": "#/$defs/identityPath" },
|
|
109
|
+
"externalTenantIdPath": { "$ref": "#/$defs/identityPath" },
|
|
110
|
+
"externalResourceIdPath": { "$ref": "#/$defs/identityPath" },
|
|
111
|
+
"resourceNamePath": { "$ref": "#/$defs/identityPath" },
|
|
112
|
+
"resourceUrlPath": { "$ref": "#/$defs/identityPath" }
|
|
113
|
+
},
|
|
114
|
+
"allOf": [
|
|
115
|
+
{
|
|
116
|
+
"if": { "properties": { "source": { "const": "identity_api" } } },
|
|
117
|
+
"then": { "required": ["endpoint"] },
|
|
118
|
+
"else": { "not": { "required": ["endpoint"] } }
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"resourceDiscovery": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"additionalProperties": false,
|
|
125
|
+
"required": ["endpoint", "externalResourceIdPath"],
|
|
126
|
+
"properties": {
|
|
127
|
+
"endpoint": { "type": "string", "pattern": "^https://", "minLength": 8 },
|
|
128
|
+
"itemsPath": { "$ref": "#/$defs/identityPath" },
|
|
129
|
+
"externalResourceIdPath": { "$ref": "#/$defs/identityPath" },
|
|
130
|
+
"resourceNamePath": { "$ref": "#/$defs/identityPath" },
|
|
131
|
+
"resourceUrlPath": { "$ref": "#/$defs/identityPath" }
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"connectionModel": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"required": [
|
|
138
|
+
"principalType",
|
|
139
|
+
"credentialScope",
|
|
140
|
+
"resourceType",
|
|
141
|
+
"resourceCardinality",
|
|
142
|
+
"selectionMode"
|
|
143
|
+
],
|
|
144
|
+
"properties": {
|
|
145
|
+
"principalType": { "enum": ["user", "bot", "service_account", "application"] },
|
|
146
|
+
"credentialScope": { "enum": ["account", "tenant", "organization", "resource"] },
|
|
147
|
+
"resourceType": { "type": "string", "minLength": 1 },
|
|
148
|
+
"resourceCardinality": { "enum": ["one", "many"] },
|
|
149
|
+
"selectionMode": { "enum": ["automatic", "post_auth", "runtime"] },
|
|
150
|
+
"identityMapping": { "$ref": "#/$defs/identityMapping" },
|
|
151
|
+
"resourceDiscovery": { "$ref": "#/$defs/resourceDiscovery" }
|
|
152
|
+
},
|
|
153
|
+
"allOf": [
|
|
154
|
+
{
|
|
155
|
+
"if": { "properties": { "selectionMode": { "const": "post_auth" } } },
|
|
156
|
+
"then": { "required": ["resourceDiscovery"] }
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
},
|
|
94
160
|
"authConfig": {
|
|
95
161
|
"type": "object",
|
|
96
162
|
"additionalProperties": false,
|
|
@@ -186,7 +252,8 @@
|
|
|
186
252
|
"provider": { "enum": ["mcp", "http"] },
|
|
187
253
|
"transport": { "$ref": "#/$defs/transport" },
|
|
188
254
|
"http": { "$ref": "#/$defs/httpConfig" },
|
|
189
|
-
"auth": { "$ref": "#/$defs/authConfig" }
|
|
255
|
+
"auth": { "$ref": "#/$defs/authConfig" },
|
|
256
|
+
"connectionModel": { "$ref": "#/$defs/connectionModel" }
|
|
190
257
|
},
|
|
191
258
|
"allOf": [
|
|
192
259
|
{
|
package/integrations/index.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ export type MarketplaceFieldType = "text" | "password";
|
|
|
3
3
|
export interface MarketplaceField {
|
|
4
4
|
key: string;
|
|
5
5
|
label: string;
|
|
6
|
-
type
|
|
6
|
+
type: MarketplaceFieldType;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
helperText?: string;
|
|
9
9
|
helperLink?: string;
|
|
10
|
-
required
|
|
10
|
+
required: boolean;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export type IntegrationTransport =
|
|
@@ -95,12 +95,58 @@ export interface IntegrationHttpConfig {
|
|
|
95
95
|
openApiUrl?: string;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
export type IntegrationPrincipalType =
|
|
99
|
+
| "user"
|
|
100
|
+
| "bot"
|
|
101
|
+
| "service_account"
|
|
102
|
+
| "application";
|
|
103
|
+
|
|
104
|
+
export type IntegrationCredentialScope =
|
|
105
|
+
| "account"
|
|
106
|
+
| "tenant"
|
|
107
|
+
| "organization"
|
|
108
|
+
| "resource";
|
|
109
|
+
|
|
110
|
+
export type IntegrationIdentitySource =
|
|
111
|
+
| "oauth_token_response"
|
|
112
|
+
| "access_token_claims"
|
|
113
|
+
| "identity_api";
|
|
114
|
+
|
|
115
|
+
export interface IntegrationIdentityMapping {
|
|
116
|
+
source: IntegrationIdentitySource;
|
|
117
|
+
endpoint?: string;
|
|
118
|
+
externalPrincipalIdPath: string;
|
|
119
|
+
externalTenantIdPath?: string;
|
|
120
|
+
externalResourceIdPath?: string;
|
|
121
|
+
resourceNamePath?: string;
|
|
122
|
+
resourceUrlPath?: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface IntegrationResourceDiscovery {
|
|
126
|
+
endpoint: string;
|
|
127
|
+
itemsPath?: string;
|
|
128
|
+
externalResourceIdPath: string;
|
|
129
|
+
resourceNamePath?: string;
|
|
130
|
+
resourceUrlPath?: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface IntegrationConnectionModel {
|
|
134
|
+
principalType: IntegrationPrincipalType;
|
|
135
|
+
credentialScope: IntegrationCredentialScope;
|
|
136
|
+
resourceType: string;
|
|
137
|
+
resourceCardinality: "one" | "many";
|
|
138
|
+
selectionMode: "automatic" | "post_auth" | "runtime";
|
|
139
|
+
identityMapping?: IntegrationIdentityMapping;
|
|
140
|
+
resourceDiscovery?: IntegrationResourceDiscovery;
|
|
141
|
+
}
|
|
142
|
+
|
|
98
143
|
export interface IntegrationConnectionOption {
|
|
99
144
|
id: "oauth" | "api" | "none" | string;
|
|
100
145
|
provider: IntegrationProvider;
|
|
101
146
|
transport?: IntegrationTransport;
|
|
102
147
|
http?: IntegrationHttpConfig;
|
|
103
148
|
auth: IntegrationAuthConfig;
|
|
149
|
+
connectionModel?: IntegrationConnectionModel;
|
|
104
150
|
}
|
|
105
151
|
|
|
106
152
|
|
|
@@ -110,7 +156,7 @@ export interface IntegrationCatalogEntry {
|
|
|
110
156
|
description: string;
|
|
111
157
|
categories?: string[];
|
|
112
158
|
appUrl?: string;
|
|
113
|
-
docsUrl
|
|
159
|
+
docsUrl: string;
|
|
114
160
|
notes?: string;
|
|
115
161
|
iconBg?: string;
|
|
116
162
|
iconColor?: string;
|