@mastra/connect 1.3.2-alpha.1 → 1.3.2-alpha.2
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/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-connect
|
|
|
3
3
|
description: Documentation for @mastra/connect. Use when working with @mastra/connect APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/connect"
|
|
6
|
-
version: "1.3.2-alpha.
|
|
6
|
+
version: "1.3.2-alpha.2"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -42,7 +42,7 @@ Most applications should prefer [`tools()`](https://mastra.ai/reference/connect/
|
|
|
42
42
|
|
|
43
43
|
**connectionId** (`string`): ID of the connection to fetch credentials for.
|
|
44
44
|
|
|
45
|
-
**options** (`{ client?: ConnectClientOptions }`): Optional platform client overrides (accessToken, orgId, baseUrl, fetch
|
|
45
|
+
**options** (`{ client?: ConnectClientOptions; resourceId?: string }`): Optional platform client overrides (accessToken, orgId, baseUrl, fetch; see ConnectClientOptions in tools()) and the end-user resourceId. Pass resourceId when the connection is scoped to an end user. The value is trimmed and must be 1-256 characters, otherwise invalid_options is thrown before any request is sent. The value is sent as the x-mastra-resource-id header, takes precedence over client.resourceId, and the platform returns not found for a resource-scoped connection when it's missing or doesn't match.
|
|
46
46
|
|
|
47
47
|
## Credential handling
|
|
48
48
|
|
|
@@ -56,6 +56,7 @@ Throws `MastraConnectError` with a `code` property:
|
|
|
56
56
|
|
|
57
57
|
| Code | When |
|
|
58
58
|
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
59
|
+
| `invalid_options` | An option is invalid, for example an empty `resourceId` or one longer than 256 characters after trimming |
|
|
59
60
|
| `missing_access_token` | No platform token configured |
|
|
60
61
|
| `connection_not_found` | The connection doesn't exist or isn't accessible |
|
|
61
62
|
| `unsupported_credential_type` | The connection's credential type can't be returned |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/connect",
|
|
3
|
-
"version": "1.3.2-alpha.
|
|
3
|
+
"version": "1.3.2-alpha.2",
|
|
4
4
|
"description": "Use Mastra platform integration connections as agent toolsets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"@internal/ai-sdk-v5": "0.0.95",
|
|
60
60
|
"@internal/lint": "0.0.148",
|
|
61
61
|
"@internal/types-builder": "0.0.123",
|
|
62
|
-
"@mastra/core": "1.83.0-alpha.
|
|
62
|
+
"@mastra/core": "1.83.0-alpha.3"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@mastra/discord": "^1.3.3",
|
|
66
66
|
"@mastra/mcp": "^2.9.0-alpha.1",
|
|
67
|
-
"@mastra/slack": "^1.
|
|
67
|
+
"@mastra/slack": "^1.9.0-alpha.0",
|
|
68
68
|
"@mastra/teams": "^0.1.5-alpha.0",
|
|
69
69
|
"@mastra/telegram": "^0.2.5"
|
|
70
70
|
},
|