@mastra/client-js 1.52.0-alpha.4 → 1.52.0-alpha.6
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 +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/channels.d.ts +10 -0
- package/dist/resources/channels.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +55 -24
- package/dist/route-types.generated.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-client-js
|
|
|
3
3
|
description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/client-js"
|
|
6
|
-
version: "1.52.0-alpha.
|
|
6
|
+
version: "1.52.0-alpha.6"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/index.cjs
CHANGED
|
@@ -6012,6 +6012,18 @@ var Channels = class extends BaseResource {
|
|
|
6012
6012
|
});
|
|
6013
6013
|
}
|
|
6014
6014
|
/**
|
|
6015
|
+
* Reconciles an agent's installation with platform state — activates a
|
|
6016
|
+
* pending installation whose connect flow completed out-of-band (e.g. a
|
|
6017
|
+
* Discord bot invite finished in another tab). No-op (returns null) on
|
|
6018
|
+
* platforms without reconciliation.
|
|
6019
|
+
* @param platform - Platform identifier (e.g., "discord")
|
|
6020
|
+
* @param agentId - Agent whose installation to reconcile
|
|
6021
|
+
* @returns The (possibly updated) installation, or null
|
|
6022
|
+
*/
|
|
6023
|
+
reconcileInstallation(platform, agentId) {
|
|
6024
|
+
return this.request(`/channels/${platform}/${agentId}/reconcile`, { method: "POST" });
|
|
6025
|
+
}
|
|
6026
|
+
/**
|
|
6015
6027
|
* Disconnects an agent from a channel platform.
|
|
6016
6028
|
* @param platform - Platform identifier (e.g., "slack")
|
|
6017
6029
|
* @param agentId - Agent to disconnect
|