@mastra/client-js 1.22.0-alpha.4 → 1.22.0-alpha.5
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/CHANGELOG.md +35 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-editor-overview.md +70 -8
- package/dist/index.cjs +23 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/stored-agent.d.ts +5 -1
- package/dist/resources/stored-agent.d.ts.map +1 -1
- package/dist/resources/tool-provider.d.ts +7 -1
- package/dist/resources/tool-provider.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +2415 -258
- package/dist/route-types.generated.d.ts.map +1 -1
- package/dist/types.d.ts +11 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -4705,6 +4705,15 @@ var StoredAgent = class extends BaseResource {
|
|
|
4705
4705
|
}
|
|
4706
4706
|
);
|
|
4707
4707
|
}
|
|
4708
|
+
/**
|
|
4709
|
+
* Exports deterministic JSON for this agent without mutating storage.
|
|
4710
|
+
*/
|
|
4711
|
+
export(params) {
|
|
4712
|
+
return this.request(`/stored/agents/${encodeURIComponent(this.storedAgentId)}/export`, {
|
|
4713
|
+
method: "POST",
|
|
4714
|
+
body: params
|
|
4715
|
+
});
|
|
4716
|
+
}
|
|
4708
4717
|
/**
|
|
4709
4718
|
* Deletes the stored agent
|
|
4710
4719
|
* @param requestContext - Optional request context to pass as query parameter
|
|
@@ -5365,6 +5374,20 @@ var ToolProvider = class extends BaseResource {
|
|
|
5365
5374
|
}
|
|
5366
5375
|
);
|
|
5367
5376
|
}
|
|
5377
|
+
/**
|
|
5378
|
+
* Updates the persisted display label on a connection row. Pass `label: null`
|
|
5379
|
+
* (or an empty string) to clear the existing label. Only the connection owner
|
|
5380
|
+
* or an admin may rename, unless the row is `scope: 'shared'`.
|
|
5381
|
+
*/
|
|
5382
|
+
updateConnection(connectionId, params) {
|
|
5383
|
+
return this.request(
|
|
5384
|
+
`/tool-providers/${encodeURIComponent(this.providerId)}/connections/${encodeURIComponent(connectionId)}`,
|
|
5385
|
+
{
|
|
5386
|
+
method: "PATCH",
|
|
5387
|
+
body: params
|
|
5388
|
+
}
|
|
5389
|
+
);
|
|
5390
|
+
}
|
|
5368
5391
|
/**
|
|
5369
5392
|
* Lists the agents that currently pin a given connection. Used by the
|
|
5370
5393
|
* picker to warn the user before disconnecting a shared account.
|