@mastra/client-js 1.47.0-alpha.3 → 1.47.0-alpha.4
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 +21 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -7
- package/dist/index.js.map +1 -1
- package/dist/resources/a2a.d.ts +5 -1
- package/dist/resources/a2a.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +104 -20
- 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.47.0-alpha.
|
|
6
|
+
version: "1.47.0-alpha.4"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/index.cjs
CHANGED
|
@@ -3948,12 +3948,27 @@ var A2AV1 = class extends BaseResource {
|
|
|
3948
3948
|
}
|
|
3949
3949
|
}));
|
|
3950
3950
|
}
|
|
3951
|
+
async createTaskPushNotificationConfig(params) {
|
|
3952
|
+
const result = await this.rpc("CreateTaskPushNotificationConfig", _mastra_core_a2a_v1.TaskPushNotificationConfig.toJSON(params));
|
|
3953
|
+
return _mastra_core_a2a_v1.TaskPushNotificationConfig.fromJSON(result);
|
|
3954
|
+
}
|
|
3955
|
+
async getTaskPushNotificationConfig(params) {
|
|
3956
|
+
const result = await this.rpc("GetTaskPushNotificationConfig", _mastra_core_a2a_v1.GetTaskPushNotificationConfigRequest.toJSON(params));
|
|
3957
|
+
return _mastra_core_a2a_v1.TaskPushNotificationConfig.fromJSON(result);
|
|
3958
|
+
}
|
|
3959
|
+
async listTaskPushNotificationConfigs(params) {
|
|
3960
|
+
const result = await this.rpc("ListTaskPushNotificationConfigs", _mastra_core_a2a_v1.ListTaskPushNotificationConfigsRequest.toJSON(params));
|
|
3961
|
+
return _mastra_core_a2a_v1.ListTaskPushNotificationConfigsResponse.fromJSON(result);
|
|
3962
|
+
}
|
|
3963
|
+
async deleteTaskPushNotificationConfig(params) {
|
|
3964
|
+
await this.rpc("DeleteTaskPushNotificationConfig", _mastra_core_a2a_v1.DeleteTaskPushNotificationConfigRequest.toJSON(params));
|
|
3965
|
+
}
|
|
3951
3966
|
async getAgentCard() {
|
|
3952
3967
|
const card = await this.request(`/.well-known/${this.agentId}/agent-card.json`, { headers: { "A2A-Version": "1.0" } });
|
|
3953
3968
|
return _mastra_core_a2a_v1.AgentCard.fromJSON(card);
|
|
3954
3969
|
}
|
|
3955
3970
|
async sendMessage(params) {
|
|
3956
|
-
const result = await this.rpc("
|
|
3971
|
+
const result = await this.rpc("SendMessage", _mastra_core_a2a_v1.SendMessageRequest.toJSON(params));
|
|
3957
3972
|
return _mastra_core_a2a_v1.SendMessageResponse.fromJSON(result);
|
|
3958
3973
|
}
|
|
3959
3974
|
async *sendMessageStream(params) {
|
|
@@ -3963,7 +3978,7 @@ var A2AV1 = class extends BaseResource {
|
|
|
3963
3978
|
body: {
|
|
3964
3979
|
jsonrpc: "2.0",
|
|
3965
3980
|
id: crypto.randomUUID(),
|
|
3966
|
-
method: "
|
|
3981
|
+
method: "SendStreamingMessage",
|
|
3967
3982
|
params: _mastra_core_a2a_v1.SendMessageRequest.toJSON(params)
|
|
3968
3983
|
},
|
|
3969
3984
|
stream: true
|
|
@@ -3971,15 +3986,15 @@ var A2AV1 = class extends BaseResource {
|
|
|
3971
3986
|
for await (const event of processA2AStream(await requireResponseBody(response, "message/stream"))) yield _mastra_core_a2a_v1.StreamResponse.fromJSON(event);
|
|
3972
3987
|
}
|
|
3973
3988
|
async getTask(params) {
|
|
3974
|
-
const result = await this.rpc("
|
|
3989
|
+
const result = await this.rpc("GetTask", _mastra_core_a2a_v1.GetTaskRequest.toJSON(params));
|
|
3975
3990
|
return _mastra_core_a2a_v1.Task.fromJSON(result);
|
|
3976
3991
|
}
|
|
3977
3992
|
async listTasks(params) {
|
|
3978
|
-
const result = await this.rpc("
|
|
3993
|
+
const result = await this.rpc("ListTasks", _mastra_core_a2a_v1.ListTasksRequest.toJSON(params));
|
|
3979
3994
|
return _mastra_core_a2a_v1.ListTasksResponse.fromJSON(result);
|
|
3980
3995
|
}
|
|
3981
3996
|
async cancelTask(params) {
|
|
3982
|
-
const result = await this.rpc("
|
|
3997
|
+
const result = await this.rpc("CancelTask", _mastra_core_a2a_v1.CancelTaskRequest.toJSON(params));
|
|
3983
3998
|
return _mastra_core_a2a_v1.Task.fromJSON(result);
|
|
3984
3999
|
}
|
|
3985
4000
|
async *resubscribeTask(params) {
|
|
@@ -3989,7 +4004,7 @@ var A2AV1 = class extends BaseResource {
|
|
|
3989
4004
|
body: {
|
|
3990
4005
|
jsonrpc: "2.0",
|
|
3991
4006
|
id: crypto.randomUUID(),
|
|
3992
|
-
method: "
|
|
4007
|
+
method: "SubscribeToTask",
|
|
3993
4008
|
params: _mastra_core_a2a_v1.SubscribeToTaskRequest.toJSON(params)
|
|
3994
4009
|
},
|
|
3995
4010
|
stream: true
|