@orq-ai/node 4.0.0-rc.51 → 4.0.0-rc.52
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/README.md +3 -4
- package/bin/mcp-server.js +1125 -606
- package/bin/mcp-server.js.map +50 -51
- package/docs/sdks/agents/README.md +80 -80
- package/examples/package-lock.json +1 -1
- package/funcs/agentsInvoke.d.ts +1 -1
- package/funcs/agentsInvoke.d.ts.map +1 -1
- package/funcs/agentsInvoke.js +1 -1
- package/funcs/agentsInvoke.js.map +1 -1
- package/funcs/agentsListTasks.d.ts +1 -1
- package/funcs/agentsListTasks.d.ts.map +1 -1
- package/funcs/agentsListTasks.js +1 -1
- package/funcs/agentsListTasks.js.map +1 -1
- package/funcs/agentsRetrieveTask.d.ts +1 -1
- package/funcs/agentsRetrieveTask.d.ts.map +1 -1
- package/funcs/agentsRetrieveTask.js +1 -1
- package/funcs/agentsRetrieveTask.js.map +1 -1
- package/funcs/agentsRun.d.ts +1 -1
- package/funcs/agentsRun.d.ts.map +1 -1
- package/funcs/agentsRun.js +1 -1
- package/funcs/agentsRun.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +2 -2
- package/mcp-server/server.js.map +1 -1
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.d.ts +25 -25
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +41 -41
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +6 -6
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -9
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagenttask.d.ts +682 -108
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +635 -155
- package/models/operations/getagenttask.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/invokeagent.d.ts +143 -123
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +143 -146
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +680 -118
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +612 -144
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listchunks.d.ts +6 -6
- package/models/operations/listchunks.d.ts.map +1 -1
- package/models/operations/listchunks.js +9 -9
- package/models/operations/listchunks.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.d.ts +6 -6
- package/models/operations/listdatasources.d.ts.map +1 -1
- package/models/operations/listdatasources.js +12 -11
- package/models/operations/listdatasources.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +112 -98
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +120 -121
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +18 -12
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +13 -13
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +12 -12
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +15 -15
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +11 -8
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +13 -11
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/agents.d.ts +10 -10
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +9 -9
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsInvoke.ts +4 -4
- package/src/funcs/agentsListTasks.ts +4 -4
- package/src/funcs/agentsRetrieveTask.ts +8 -8
- package/src/funcs/agentsRun.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +76 -76
- package/src/models/operations/deploymentinvoke.ts +17 -24
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagenttask.ts +1873 -428
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/invokeagent.ts +319 -299
- package/src/models/operations/listagenttasks.ts +2029 -540
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listchunks.ts +14 -14
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +15 -22
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +264 -220
- package/src/models/operations/streamagent.ts +28 -22
- package/src/models/operations/streamrunagent.ts +24 -24
- package/src/models/operations/updateagent.ts +25 -18
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/agents.ts +20 -20
- package/models/errors/getagenttask.d.ts +0 -29
- package/models/errors/getagenttask.d.ts.map +0 -1
- package/models/errors/getagenttask.js +0 -74
- package/models/errors/getagenttask.js.map +0 -1
- package/src/models/errors/getagenttask.ts +0 -67
|
@@ -36,45 +36,86 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
39
|
+
exports.ListAgentTasksPartsAgentsResponseDataPart$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$inboundSchema = exports.ListAgentTasksPartsAgentsResponseFilePart$outboundSchema = exports.ListAgentTasksPartsAgentsResponseFilePart$inboundSchema = exports.ListAgentTasksPartsAgentsResponseFile$outboundSchema = exports.ListAgentTasksPartsAgentsResponseFile$inboundSchema = exports.ListAgentTasksFileAgentsResponseBinaryFormat$outboundSchema = exports.ListAgentTasksFileAgentsResponseBinaryFormat$inboundSchema = exports.ListAgentTasksFileAgentsResponseFileInURIFormat$outboundSchema = exports.ListAgentTasksFileAgentsResponseFileInURIFormat$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$inboundSchema = exports.ListAgentTasksPartsToolCallPart$outboundSchema = exports.ListAgentTasksPartsToolCallPart$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$inboundSchema = exports.ListAgentTasksPartsAgentsToolResultPart$outboundSchema = exports.ListAgentTasksPartsAgentsToolResultPart$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$inboundSchema = exports.ListAgentTasksAgentsExtendedMessageRole$outboundSchema = exports.ListAgentTasksAgentsExtendedMessageRole$inboundSchema = exports.ListAgentTasksAgentsResponseKind$outboundSchema = exports.ListAgentTasksAgentsResponseKind$inboundSchema = exports.ListAgentTasksTaskState$outboundSchema = exports.ListAgentTasksTaskState$inboundSchema = exports.ListAgentTasksKind$outboundSchema = exports.ListAgentTasksKind$inboundSchema = exports.ListAgentTasksRequest$outboundSchema = exports.ListAgentTasksRequest$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind = exports.ListAgentTasksPartsKind = exports.ListAgentTasksPartsAgentsKind = exports.ListAgentTasksPartsAgentsResponseKind = exports.ListAgentTasksPartsAgentsResponse200Kind = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind = exports.ListAgentTasksExtendedMessageRole = exports.ListAgentTasksAgentsKind = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind = exports.ListAgentTasksAgentsExtendedMessageRole = exports.ListAgentTasksAgentsResponseKind = exports.ListAgentTasksTaskState = exports.ListAgentTasksKind = void 0;
|
|
40
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$inboundSchema = exports.ListAgentTasksPartsDataPart$outboundSchema = exports.ListAgentTasksPartsDataPart$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$inboundSchema = exports.ListAgentTasksExtendedA2AMessage$outboundSchema = exports.ListAgentTasksExtendedA2AMessage$inboundSchema = exports.ListAgentTasksParts$outboundSchema = exports.ListAgentTasksParts$inboundSchema = exports.ListAgentTasksPartsTextPart$outboundSchema = exports.ListAgentTasksPartsTextPart$inboundSchema = exports.ListAgentTasksPartsKind$outboundSchema = exports.ListAgentTasksPartsKind$inboundSchema = exports.ListAgentTasksPartsAgentsDataPart$outboundSchema = exports.ListAgentTasksPartsAgentsDataPart$inboundSchema = exports.ListAgentTasksPartsAgentsKind$outboundSchema = exports.ListAgentTasksPartsAgentsKind$inboundSchema = exports.ListAgentTasksPartsFilePart$outboundSchema = exports.ListAgentTasksPartsFilePart$inboundSchema = exports.ListAgentTasksPartsFile$outboundSchema = exports.ListAgentTasksPartsFile$inboundSchema = exports.ListAgentTasksFileBinaryFormat$outboundSchema = exports.ListAgentTasksFileBinaryFormat$inboundSchema = exports.ListAgentTasksFileFileInURIFormat$outboundSchema = exports.ListAgentTasksFileFileInURIFormat$inboundSchema = exports.ListAgentTasksPartsAgentsResponseKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponseKind$inboundSchema = exports.PartsToolCallPart$outboundSchema = exports.PartsToolCallPart$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200Kind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200Kind$inboundSchema = exports.ListAgentTasksPartsToolResultPart$outboundSchema = exports.ListAgentTasksPartsToolResultPart$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema = exports.ListAgentTasksExtendedMessageRole$outboundSchema = exports.ListAgentTasksExtendedMessageRole$inboundSchema = exports.ListAgentTasksAgentsKind$outboundSchema = exports.ListAgentTasksAgentsKind$inboundSchema = exports.ListAgentTasksTaskStatus$outboundSchema = exports.ListAgentTasksTaskStatus$inboundSchema = exports.ListAgentTasksTaskStatusMessage$outboundSchema = exports.ListAgentTasksTaskStatusMessage$inboundSchema = exports.ListAgentTasksAgentsResponseParts$outboundSchema = exports.ListAgentTasksAgentsResponseParts$inboundSchema = exports.ListAgentTasksPartsAgentsResponseTextPart$outboundSchema = exports.ListAgentTasksPartsAgentsResponseTextPart$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$inboundSchema = exports.ListAgentTasksPartsAgentsResponseDataPart$outboundSchema = void 0;
|
|
41
|
+
exports.ListAgentTasksAgentTasksListResponse$outboundSchema = exports.ListAgentTasksAgentTasksListResponse$inboundSchema = exports.ExtendedTaskResponse$outboundSchema = exports.ExtendedTaskResponse$inboundSchema = exports.ListAgentTasksTaskArtifact$outboundSchema = exports.ListAgentTasksTaskArtifact$inboundSchema = exports.ListAgentTasksAgentsParts$outboundSchema = exports.ListAgentTasksAgentsParts$inboundSchema = exports.ListAgentTasksPartsAgentsTextPart$outboundSchema = exports.ListAgentTasksPartsAgentsTextPart$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$inboundSchema = exports.ListAgentTasksPartsAgentsFilePart$outboundSchema = exports.ListAgentTasksPartsAgentsFilePart$inboundSchema = exports.ListAgentTasksPartsAgentsFile$outboundSchema = exports.ListAgentTasksPartsAgentsFile$inboundSchema = exports.ListAgentTasksFileAgentsBinaryFormat$outboundSchema = exports.ListAgentTasksFileAgentsBinaryFormat$inboundSchema = exports.ListAgentTasksFileAgentsFileInURIFormat$outboundSchema = exports.ListAgentTasksFileAgentsFileInURIFormat$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$outboundSchema = void 0;
|
|
41
42
|
exports.listAgentTasksRequestToJSON = listAgentTasksRequestToJSON;
|
|
42
43
|
exports.listAgentTasksRequestFromJSON = listAgentTasksRequestFromJSON;
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
44
|
+
exports.listAgentTasksPartsAgentsToolResultPartToJSON = listAgentTasksPartsAgentsToolResultPartToJSON;
|
|
45
|
+
exports.listAgentTasksPartsAgentsToolResultPartFromJSON = listAgentTasksPartsAgentsToolResultPartFromJSON;
|
|
46
|
+
exports.listAgentTasksPartsToolCallPartToJSON = listAgentTasksPartsToolCallPartToJSON;
|
|
47
|
+
exports.listAgentTasksPartsToolCallPartFromJSON = listAgentTasksPartsToolCallPartFromJSON;
|
|
48
|
+
exports.listAgentTasksFileAgentsResponseFileInURIFormatToJSON = listAgentTasksFileAgentsResponseFileInURIFormatToJSON;
|
|
49
|
+
exports.listAgentTasksFileAgentsResponseFileInURIFormatFromJSON = listAgentTasksFileAgentsResponseFileInURIFormatFromJSON;
|
|
50
|
+
exports.listAgentTasksFileAgentsResponseBinaryFormatToJSON = listAgentTasksFileAgentsResponseBinaryFormatToJSON;
|
|
51
|
+
exports.listAgentTasksFileAgentsResponseBinaryFormatFromJSON = listAgentTasksFileAgentsResponseBinaryFormatFromJSON;
|
|
52
|
+
exports.listAgentTasksPartsAgentsResponseFileToJSON = listAgentTasksPartsAgentsResponseFileToJSON;
|
|
53
|
+
exports.listAgentTasksPartsAgentsResponseFileFromJSON = listAgentTasksPartsAgentsResponseFileFromJSON;
|
|
54
|
+
exports.listAgentTasksPartsAgentsResponseFilePartToJSON = listAgentTasksPartsAgentsResponseFilePartToJSON;
|
|
55
|
+
exports.listAgentTasksPartsAgentsResponseFilePartFromJSON = listAgentTasksPartsAgentsResponseFilePartFromJSON;
|
|
56
|
+
exports.listAgentTasksPartsAgentsResponseDataPartToJSON = listAgentTasksPartsAgentsResponseDataPartToJSON;
|
|
57
|
+
exports.listAgentTasksPartsAgentsResponseDataPartFromJSON = listAgentTasksPartsAgentsResponseDataPartFromJSON;
|
|
58
|
+
exports.listAgentTasksPartsAgentsResponseTextPartToJSON = listAgentTasksPartsAgentsResponseTextPartToJSON;
|
|
59
|
+
exports.listAgentTasksPartsAgentsResponseTextPartFromJSON = listAgentTasksPartsAgentsResponseTextPartFromJSON;
|
|
60
|
+
exports.listAgentTasksAgentsResponsePartsToJSON = listAgentTasksAgentsResponsePartsToJSON;
|
|
61
|
+
exports.listAgentTasksAgentsResponsePartsFromJSON = listAgentTasksAgentsResponsePartsFromJSON;
|
|
62
|
+
exports.listAgentTasksTaskStatusMessageToJSON = listAgentTasksTaskStatusMessageToJSON;
|
|
63
|
+
exports.listAgentTasksTaskStatusMessageFromJSON = listAgentTasksTaskStatusMessageFromJSON;
|
|
64
|
+
exports.listAgentTasksTaskStatusToJSON = listAgentTasksTaskStatusToJSON;
|
|
65
|
+
exports.listAgentTasksTaskStatusFromJSON = listAgentTasksTaskStatusFromJSON;
|
|
66
|
+
exports.listAgentTasksPartsToolResultPartToJSON = listAgentTasksPartsToolResultPartToJSON;
|
|
67
|
+
exports.listAgentTasksPartsToolResultPartFromJSON = listAgentTasksPartsToolResultPartFromJSON;
|
|
68
|
+
exports.partsToolCallPartToJSON = partsToolCallPartToJSON;
|
|
69
|
+
exports.partsToolCallPartFromJSON = partsToolCallPartFromJSON;
|
|
49
70
|
exports.listAgentTasksFileFileInURIFormatToJSON = listAgentTasksFileFileInURIFormatToJSON;
|
|
50
71
|
exports.listAgentTasksFileFileInURIFormatFromJSON = listAgentTasksFileFileInURIFormatFromJSON;
|
|
51
72
|
exports.listAgentTasksFileBinaryFormatToJSON = listAgentTasksFileBinaryFormatToJSON;
|
|
52
73
|
exports.listAgentTasksFileBinaryFormatFromJSON = listAgentTasksFileBinaryFormatFromJSON;
|
|
53
74
|
exports.listAgentTasksPartsFileToJSON = listAgentTasksPartsFileToJSON;
|
|
54
75
|
exports.listAgentTasksPartsFileFromJSON = listAgentTasksPartsFileFromJSON;
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
76
|
+
exports.listAgentTasksPartsFilePartToJSON = listAgentTasksPartsFilePartToJSON;
|
|
77
|
+
exports.listAgentTasksPartsFilePartFromJSON = listAgentTasksPartsFilePartFromJSON;
|
|
78
|
+
exports.listAgentTasksPartsAgentsDataPartToJSON = listAgentTasksPartsAgentsDataPartToJSON;
|
|
79
|
+
exports.listAgentTasksPartsAgentsDataPartFromJSON = listAgentTasksPartsAgentsDataPartFromJSON;
|
|
80
|
+
exports.listAgentTasksPartsTextPartToJSON = listAgentTasksPartsTextPartToJSON;
|
|
81
|
+
exports.listAgentTasksPartsTextPartFromJSON = listAgentTasksPartsTextPartFromJSON;
|
|
61
82
|
exports.listAgentTasksPartsToJSON = listAgentTasksPartsToJSON;
|
|
62
83
|
exports.listAgentTasksPartsFromJSON = listAgentTasksPartsFromJSON;
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
84
|
+
exports.listAgentTasksExtendedA2AMessageToJSON = listAgentTasksExtendedA2AMessageToJSON;
|
|
85
|
+
exports.listAgentTasksExtendedA2AMessageFromJSON = listAgentTasksExtendedA2AMessageFromJSON;
|
|
86
|
+
exports.listAgentTasksPartsDataPartToJSON = listAgentTasksPartsDataPartToJSON;
|
|
87
|
+
exports.listAgentTasksPartsDataPartFromJSON = listAgentTasksPartsDataPartFromJSON;
|
|
88
|
+
exports.listAgentTasksFileAgentsFileInURIFormatToJSON = listAgentTasksFileAgentsFileInURIFormatToJSON;
|
|
89
|
+
exports.listAgentTasksFileAgentsFileInURIFormatFromJSON = listAgentTasksFileAgentsFileInURIFormatFromJSON;
|
|
90
|
+
exports.listAgentTasksFileAgentsBinaryFormatToJSON = listAgentTasksFileAgentsBinaryFormatToJSON;
|
|
91
|
+
exports.listAgentTasksFileAgentsBinaryFormatFromJSON = listAgentTasksFileAgentsBinaryFormatFromJSON;
|
|
92
|
+
exports.listAgentTasksPartsAgentsFileToJSON = listAgentTasksPartsAgentsFileToJSON;
|
|
93
|
+
exports.listAgentTasksPartsAgentsFileFromJSON = listAgentTasksPartsAgentsFileFromJSON;
|
|
94
|
+
exports.listAgentTasksPartsAgentsFilePartToJSON = listAgentTasksPartsAgentsFilePartToJSON;
|
|
95
|
+
exports.listAgentTasksPartsAgentsFilePartFromJSON = listAgentTasksPartsAgentsFilePartFromJSON;
|
|
96
|
+
exports.listAgentTasksPartsAgentsTextPartToJSON = listAgentTasksPartsAgentsTextPartToJSON;
|
|
97
|
+
exports.listAgentTasksPartsAgentsTextPartFromJSON = listAgentTasksPartsAgentsTextPartFromJSON;
|
|
98
|
+
exports.listAgentTasksAgentsPartsToJSON = listAgentTasksAgentsPartsToJSON;
|
|
99
|
+
exports.listAgentTasksAgentsPartsFromJSON = listAgentTasksAgentsPartsFromJSON;
|
|
100
|
+
exports.listAgentTasksTaskArtifactToJSON = listAgentTasksTaskArtifactToJSON;
|
|
101
|
+
exports.listAgentTasksTaskArtifactFromJSON = listAgentTasksTaskArtifactFromJSON;
|
|
102
|
+
exports.extendedTaskResponseToJSON = extendedTaskResponseToJSON;
|
|
103
|
+
exports.extendedTaskResponseFromJSON = extendedTaskResponseFromJSON;
|
|
104
|
+
exports.listAgentTasksAgentTasksListResponseToJSON = listAgentTasksAgentTasksListResponseToJSON;
|
|
105
|
+
exports.listAgentTasksAgentTasksListResponseFromJSON = listAgentTasksAgentTasksListResponseFromJSON;
|
|
71
106
|
const z = __importStar(require("zod/v3"));
|
|
72
107
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
73
108
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
74
109
|
/**
|
|
75
|
-
*
|
|
110
|
+
* A2A entity type
|
|
76
111
|
*/
|
|
77
|
-
exports.
|
|
112
|
+
exports.ListAgentTasksKind = {
|
|
113
|
+
Task: "task",
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
|
|
117
|
+
*/
|
|
118
|
+
exports.ListAgentTasksTaskState = {
|
|
78
119
|
Submitted: "submitted",
|
|
79
120
|
Working: "working",
|
|
80
121
|
InputRequired: "input-required",
|
|
@@ -84,16 +125,40 @@ exports.Status = {
|
|
|
84
125
|
Canceled: "canceled",
|
|
85
126
|
Rejected: "rejected",
|
|
86
127
|
};
|
|
87
|
-
exports.
|
|
88
|
-
|
|
128
|
+
exports.ListAgentTasksAgentsResponseKind = {
|
|
129
|
+
Message: "message",
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
133
|
+
*/
|
|
134
|
+
exports.ListAgentTasksAgentsExtendedMessageRole = {
|
|
135
|
+
User: "user",
|
|
136
|
+
Agent: "agent",
|
|
137
|
+
Tool: "tool",
|
|
138
|
+
System: "system",
|
|
139
|
+
};
|
|
140
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind = {
|
|
141
|
+
ToolResult: "tool_result",
|
|
142
|
+
};
|
|
143
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind = {
|
|
144
|
+
ToolCall: "tool_call",
|
|
145
|
+
};
|
|
146
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind = {
|
|
147
|
+
File: "file",
|
|
148
|
+
};
|
|
149
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind = {
|
|
150
|
+
Data: "data",
|
|
151
|
+
};
|
|
152
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind = {
|
|
153
|
+
Text: "text",
|
|
89
154
|
};
|
|
90
155
|
exports.ListAgentTasksAgentsKind = {
|
|
91
156
|
Message: "message",
|
|
92
157
|
};
|
|
93
158
|
/**
|
|
94
|
-
*
|
|
159
|
+
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
95
160
|
*/
|
|
96
|
-
exports.
|
|
161
|
+
exports.ListAgentTasksExtendedMessageRole = {
|
|
97
162
|
User: "user",
|
|
98
163
|
Agent: "agent",
|
|
99
164
|
Tool: "tool",
|
|
@@ -114,21 +179,22 @@ exports.ListAgentTasksPartsAgentsKind = {
|
|
|
114
179
|
exports.ListAgentTasksPartsKind = {
|
|
115
180
|
Text: "text",
|
|
116
181
|
};
|
|
117
|
-
exports.
|
|
118
|
-
|
|
182
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind = {
|
|
183
|
+
Data: "data",
|
|
184
|
+
};
|
|
185
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind = {
|
|
186
|
+
File: "file",
|
|
187
|
+
};
|
|
188
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind = {
|
|
189
|
+
Text: "text",
|
|
119
190
|
};
|
|
120
|
-
/** @internal */
|
|
121
|
-
exports.Status$inboundSchema = z
|
|
122
|
-
.nativeEnum(exports.Status);
|
|
123
|
-
/** @internal */
|
|
124
|
-
exports.Status$outboundSchema = exports.Status$inboundSchema;
|
|
125
191
|
/** @internal */
|
|
126
192
|
exports.ListAgentTasksRequest$inboundSchema = z.object({
|
|
127
193
|
agent_key: z.string(),
|
|
128
194
|
limit: z.number().default(10),
|
|
129
195
|
starting_after: z.string().optional(),
|
|
130
196
|
ending_before: z.string().optional(),
|
|
131
|
-
status:
|
|
197
|
+
status: z.string().optional(),
|
|
132
198
|
}).transform((v) => {
|
|
133
199
|
return (0, primitives_js_1.remap)(v, {
|
|
134
200
|
"agent_key": "agentKey",
|
|
@@ -142,7 +208,7 @@ exports.ListAgentTasksRequest$outboundSchema = z.object({
|
|
|
142
208
|
limit: z.number().default(10),
|
|
143
209
|
startingAfter: z.string().optional(),
|
|
144
210
|
endingBefore: z.string().optional(),
|
|
145
|
-
status:
|
|
211
|
+
status: z.string().optional(),
|
|
146
212
|
}).transform((v) => {
|
|
147
213
|
return (0, primitives_js_1.remap)(v, {
|
|
148
214
|
agentKey: "agent_key",
|
|
@@ -161,37 +227,296 @@ exports.ListAgentTasksKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksKi
|
|
|
161
227
|
/** @internal */
|
|
162
228
|
exports.ListAgentTasksKind$outboundSchema = exports.ListAgentTasksKind$inboundSchema;
|
|
163
229
|
/** @internal */
|
|
164
|
-
exports.
|
|
165
|
-
|
|
230
|
+
exports.ListAgentTasksTaskState$inboundSchema = z.nativeEnum(exports.ListAgentTasksTaskState);
|
|
231
|
+
/** @internal */
|
|
232
|
+
exports.ListAgentTasksTaskState$outboundSchema = exports.ListAgentTasksTaskState$inboundSchema;
|
|
233
|
+
/** @internal */
|
|
234
|
+
exports.ListAgentTasksAgentsResponseKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksAgentsResponseKind);
|
|
235
|
+
/** @internal */
|
|
236
|
+
exports.ListAgentTasksAgentsResponseKind$outboundSchema = exports.ListAgentTasksAgentsResponseKind$inboundSchema;
|
|
237
|
+
/** @internal */
|
|
238
|
+
exports.ListAgentTasksAgentsExtendedMessageRole$inboundSchema = z
|
|
239
|
+
.nativeEnum(exports.ListAgentTasksAgentsExtendedMessageRole);
|
|
240
|
+
/** @internal */
|
|
241
|
+
exports.ListAgentTasksAgentsExtendedMessageRole$outboundSchema = exports.ListAgentTasksAgentsExtendedMessageRole$inboundSchema;
|
|
242
|
+
/** @internal */
|
|
243
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind);
|
|
244
|
+
/** @internal */
|
|
245
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$inboundSchema;
|
|
246
|
+
/** @internal */
|
|
247
|
+
exports.ListAgentTasksPartsAgentsToolResultPart$inboundSchema = z.object({
|
|
248
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$inboundSchema,
|
|
249
|
+
tool_call_id: z.string(),
|
|
250
|
+
result: z.any().optional(),
|
|
251
|
+
metadata: z.record(z.any()).optional(),
|
|
252
|
+
}).transform((v) => {
|
|
253
|
+
return (0, primitives_js_1.remap)(v, {
|
|
254
|
+
"tool_call_id": "toolCallId",
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
/** @internal */
|
|
258
|
+
exports.ListAgentTasksPartsAgentsToolResultPart$outboundSchema = z.object({
|
|
259
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$outboundSchema,
|
|
260
|
+
toolCallId: z.string(),
|
|
261
|
+
result: z.any().optional(),
|
|
262
|
+
metadata: z.record(z.any()).optional(),
|
|
263
|
+
}).transform((v) => {
|
|
264
|
+
return (0, primitives_js_1.remap)(v, {
|
|
265
|
+
toolCallId: "tool_call_id",
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
function listAgentTasksPartsAgentsToolResultPartToJSON(listAgentTasksPartsAgentsToolResultPart) {
|
|
269
|
+
return JSON.stringify(exports.ListAgentTasksPartsAgentsToolResultPart$outboundSchema.parse(listAgentTasksPartsAgentsToolResultPart));
|
|
270
|
+
}
|
|
271
|
+
function listAgentTasksPartsAgentsToolResultPartFromJSON(jsonString) {
|
|
272
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsAgentsToolResultPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsAgentsToolResultPart' from JSON`);
|
|
273
|
+
}
|
|
274
|
+
/** @internal */
|
|
275
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind);
|
|
276
|
+
/** @internal */
|
|
277
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$inboundSchema;
|
|
278
|
+
/** @internal */
|
|
279
|
+
exports.ListAgentTasksPartsToolCallPart$inboundSchema = z.object({
|
|
280
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$inboundSchema,
|
|
281
|
+
tool_name: z.string(),
|
|
282
|
+
tool_call_id: z.string(),
|
|
283
|
+
arguments: z.record(z.any()),
|
|
284
|
+
metadata: z.record(z.any()).optional(),
|
|
285
|
+
}).transform((v) => {
|
|
286
|
+
return (0, primitives_js_1.remap)(v, {
|
|
287
|
+
"tool_name": "toolName",
|
|
288
|
+
"tool_call_id": "toolCallId",
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
/** @internal */
|
|
292
|
+
exports.ListAgentTasksPartsToolCallPart$outboundSchema = z.object({
|
|
293
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$outboundSchema,
|
|
294
|
+
toolName: z.string(),
|
|
295
|
+
toolCallId: z.string(),
|
|
296
|
+
arguments: z.record(z.any()),
|
|
297
|
+
metadata: z.record(z.any()).optional(),
|
|
298
|
+
}).transform((v) => {
|
|
299
|
+
return (0, primitives_js_1.remap)(v, {
|
|
300
|
+
toolName: "tool_name",
|
|
301
|
+
toolCallId: "tool_call_id",
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
function listAgentTasksPartsToolCallPartToJSON(listAgentTasksPartsToolCallPart) {
|
|
305
|
+
return JSON.stringify(exports.ListAgentTasksPartsToolCallPart$outboundSchema.parse(listAgentTasksPartsToolCallPart));
|
|
306
|
+
}
|
|
307
|
+
function listAgentTasksPartsToolCallPartFromJSON(jsonString) {
|
|
308
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsToolCallPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsToolCallPart' from JSON`);
|
|
309
|
+
}
|
|
310
|
+
/** @internal */
|
|
311
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind);
|
|
312
|
+
/** @internal */
|
|
313
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$inboundSchema;
|
|
314
|
+
/** @internal */
|
|
315
|
+
exports.ListAgentTasksFileAgentsResponseFileInURIFormat$inboundSchema = z.object({
|
|
316
|
+
uri: z.string(),
|
|
317
|
+
mimeType: z.string().optional(),
|
|
318
|
+
name: z.string().optional(),
|
|
319
|
+
});
|
|
320
|
+
/** @internal */
|
|
321
|
+
exports.ListAgentTasksFileAgentsResponseFileInURIFormat$outboundSchema = z.object({
|
|
322
|
+
uri: z.string(),
|
|
323
|
+
mimeType: z.string().optional(),
|
|
324
|
+
name: z.string().optional(),
|
|
325
|
+
});
|
|
326
|
+
function listAgentTasksFileAgentsResponseFileInURIFormatToJSON(listAgentTasksFileAgentsResponseFileInURIFormat) {
|
|
327
|
+
return JSON.stringify(exports.ListAgentTasksFileAgentsResponseFileInURIFormat$outboundSchema.parse(listAgentTasksFileAgentsResponseFileInURIFormat));
|
|
328
|
+
}
|
|
329
|
+
function listAgentTasksFileAgentsResponseFileInURIFormatFromJSON(jsonString) {
|
|
330
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFileAgentsResponseFileInURIFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFileAgentsResponseFileInURIFormat' from JSON`);
|
|
331
|
+
}
|
|
332
|
+
/** @internal */
|
|
333
|
+
exports.ListAgentTasksFileAgentsResponseBinaryFormat$inboundSchema = z.object({
|
|
334
|
+
bytes: z.string(),
|
|
335
|
+
mimeType: z.string().optional(),
|
|
336
|
+
name: z.string().optional(),
|
|
337
|
+
});
|
|
338
|
+
/** @internal */
|
|
339
|
+
exports.ListAgentTasksFileAgentsResponseBinaryFormat$outboundSchema = z.object({
|
|
340
|
+
bytes: z.string(),
|
|
341
|
+
mimeType: z.string().optional(),
|
|
342
|
+
name: z.string().optional(),
|
|
343
|
+
});
|
|
344
|
+
function listAgentTasksFileAgentsResponseBinaryFormatToJSON(listAgentTasksFileAgentsResponseBinaryFormat) {
|
|
345
|
+
return JSON.stringify(exports.ListAgentTasksFileAgentsResponseBinaryFormat$outboundSchema.parse(listAgentTasksFileAgentsResponseBinaryFormat));
|
|
346
|
+
}
|
|
347
|
+
function listAgentTasksFileAgentsResponseBinaryFormatFromJSON(jsonString) {
|
|
348
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFileAgentsResponseBinaryFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFileAgentsResponseBinaryFormat' from JSON`);
|
|
349
|
+
}
|
|
350
|
+
/** @internal */
|
|
351
|
+
exports.ListAgentTasksPartsAgentsResponseFile$inboundSchema = z.union([
|
|
352
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsResponseBinaryFormat$inboundSchema),
|
|
353
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsResponseFileInURIFormat$inboundSchema),
|
|
354
|
+
]);
|
|
355
|
+
/** @internal */
|
|
356
|
+
exports.ListAgentTasksPartsAgentsResponseFile$outboundSchema = z.union([
|
|
357
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsResponseBinaryFormat$outboundSchema),
|
|
358
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsResponseFileInURIFormat$outboundSchema),
|
|
359
|
+
]);
|
|
360
|
+
function listAgentTasksPartsAgentsResponseFileToJSON(listAgentTasksPartsAgentsResponseFile) {
|
|
361
|
+
return JSON.stringify(exports.ListAgentTasksPartsAgentsResponseFile$outboundSchema.parse(listAgentTasksPartsAgentsResponseFile));
|
|
362
|
+
}
|
|
363
|
+
function listAgentTasksPartsAgentsResponseFileFromJSON(jsonString) {
|
|
364
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsAgentsResponseFile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsAgentsResponseFile' from JSON`);
|
|
365
|
+
}
|
|
366
|
+
/** @internal */
|
|
367
|
+
exports.ListAgentTasksPartsAgentsResponseFilePart$inboundSchema = z.object({
|
|
368
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$inboundSchema,
|
|
369
|
+
file: z.union([
|
|
370
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsResponseBinaryFormat$inboundSchema),
|
|
371
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsResponseFileInURIFormat$inboundSchema),
|
|
372
|
+
]),
|
|
373
|
+
metadata: z.record(z.any()).optional(),
|
|
374
|
+
});
|
|
375
|
+
/** @internal */
|
|
376
|
+
exports.ListAgentTasksPartsAgentsResponseFilePart$outboundSchema = z.object({
|
|
377
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$outboundSchema,
|
|
378
|
+
file: z.union([
|
|
379
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsResponseBinaryFormat$outboundSchema),
|
|
380
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsResponseFileInURIFormat$outboundSchema),
|
|
381
|
+
]),
|
|
382
|
+
metadata: z.record(z.any()).optional(),
|
|
383
|
+
});
|
|
384
|
+
function listAgentTasksPartsAgentsResponseFilePartToJSON(listAgentTasksPartsAgentsResponseFilePart) {
|
|
385
|
+
return JSON.stringify(exports.ListAgentTasksPartsAgentsResponseFilePart$outboundSchema.parse(listAgentTasksPartsAgentsResponseFilePart));
|
|
386
|
+
}
|
|
387
|
+
function listAgentTasksPartsAgentsResponseFilePartFromJSON(jsonString) {
|
|
388
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsAgentsResponseFilePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsAgentsResponseFilePart' from JSON`);
|
|
389
|
+
}
|
|
390
|
+
/** @internal */
|
|
391
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind);
|
|
392
|
+
/** @internal */
|
|
393
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$inboundSchema;
|
|
394
|
+
/** @internal */
|
|
395
|
+
exports.ListAgentTasksPartsAgentsResponseDataPart$inboundSchema = z.object({
|
|
396
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$inboundSchema,
|
|
397
|
+
data: z.record(z.any()),
|
|
398
|
+
metadata: z.record(z.any()).optional(),
|
|
399
|
+
});
|
|
400
|
+
/** @internal */
|
|
401
|
+
exports.ListAgentTasksPartsAgentsResponseDataPart$outboundSchema = z.object({
|
|
402
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$outboundSchema,
|
|
403
|
+
data: z.record(z.any()),
|
|
404
|
+
metadata: z.record(z.any()).optional(),
|
|
405
|
+
});
|
|
406
|
+
function listAgentTasksPartsAgentsResponseDataPartToJSON(listAgentTasksPartsAgentsResponseDataPart) {
|
|
407
|
+
return JSON.stringify(exports.ListAgentTasksPartsAgentsResponseDataPart$outboundSchema.parse(listAgentTasksPartsAgentsResponseDataPart));
|
|
408
|
+
}
|
|
409
|
+
function listAgentTasksPartsAgentsResponseDataPartFromJSON(jsonString) {
|
|
410
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsAgentsResponseDataPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsAgentsResponseDataPart' from JSON`);
|
|
411
|
+
}
|
|
412
|
+
/** @internal */
|
|
413
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind);
|
|
414
|
+
/** @internal */
|
|
415
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$inboundSchema;
|
|
416
|
+
/** @internal */
|
|
417
|
+
exports.ListAgentTasksPartsAgentsResponseTextPart$inboundSchema = z.object({
|
|
418
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$inboundSchema,
|
|
419
|
+
text: z.string(),
|
|
420
|
+
});
|
|
421
|
+
/** @internal */
|
|
422
|
+
exports.ListAgentTasksPartsAgentsResponseTextPart$outboundSchema = z.object({
|
|
423
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$outboundSchema,
|
|
424
|
+
text: z.string(),
|
|
425
|
+
});
|
|
426
|
+
function listAgentTasksPartsAgentsResponseTextPartToJSON(listAgentTasksPartsAgentsResponseTextPart) {
|
|
427
|
+
return JSON.stringify(exports.ListAgentTasksPartsAgentsResponseTextPart$outboundSchema.parse(listAgentTasksPartsAgentsResponseTextPart));
|
|
428
|
+
}
|
|
429
|
+
function listAgentTasksPartsAgentsResponseTextPartFromJSON(jsonString) {
|
|
430
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsAgentsResponseTextPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsAgentsResponseTextPart' from JSON`);
|
|
431
|
+
}
|
|
432
|
+
/** @internal */
|
|
433
|
+
exports.ListAgentTasksAgentsResponseParts$inboundSchema = z.union([
|
|
434
|
+
z.lazy(() => exports.ListAgentTasksPartsToolCallPart$inboundSchema),
|
|
435
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseTextPart$inboundSchema),
|
|
436
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseDataPart$inboundSchema),
|
|
437
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseFilePart$inboundSchema),
|
|
438
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsToolResultPart$inboundSchema),
|
|
439
|
+
]);
|
|
440
|
+
/** @internal */
|
|
441
|
+
exports.ListAgentTasksAgentsResponseParts$outboundSchema = z.union([
|
|
442
|
+
z.lazy(() => exports.ListAgentTasksPartsToolCallPart$outboundSchema),
|
|
443
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseTextPart$outboundSchema),
|
|
444
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseDataPart$outboundSchema),
|
|
445
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseFilePart$outboundSchema),
|
|
446
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsToolResultPart$outboundSchema),
|
|
447
|
+
]);
|
|
448
|
+
function listAgentTasksAgentsResponsePartsToJSON(listAgentTasksAgentsResponseParts) {
|
|
449
|
+
return JSON.stringify(exports.ListAgentTasksAgentsResponseParts$outboundSchema.parse(listAgentTasksAgentsResponseParts));
|
|
450
|
+
}
|
|
451
|
+
function listAgentTasksAgentsResponsePartsFromJSON(jsonString) {
|
|
452
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksAgentsResponseParts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksAgentsResponseParts' from JSON`);
|
|
453
|
+
}
|
|
454
|
+
/** @internal */
|
|
455
|
+
exports.ListAgentTasksTaskStatusMessage$inboundSchema = z.object({
|
|
456
|
+
kind: exports.ListAgentTasksAgentsResponseKind$inboundSchema,
|
|
457
|
+
messageId: z.string(),
|
|
458
|
+
role: exports.ListAgentTasksAgentsExtendedMessageRole$inboundSchema,
|
|
459
|
+
parts: z.array(z.union([
|
|
460
|
+
z.lazy(() => exports.ListAgentTasksPartsToolCallPart$inboundSchema),
|
|
461
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseTextPart$inboundSchema),
|
|
462
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseDataPart$inboundSchema),
|
|
463
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseFilePart$inboundSchema),
|
|
464
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsToolResultPart$inboundSchema),
|
|
465
|
+
])),
|
|
466
|
+
});
|
|
467
|
+
/** @internal */
|
|
468
|
+
exports.ListAgentTasksTaskStatusMessage$outboundSchema = z.object({
|
|
469
|
+
kind: exports.ListAgentTasksAgentsResponseKind$outboundSchema,
|
|
470
|
+
messageId: z.string(),
|
|
471
|
+
role: exports.ListAgentTasksAgentsExtendedMessageRole$outboundSchema,
|
|
472
|
+
parts: z.array(z.union([
|
|
473
|
+
z.lazy(() => exports.ListAgentTasksPartsToolCallPart$outboundSchema),
|
|
474
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseTextPart$outboundSchema),
|
|
475
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseDataPart$outboundSchema),
|
|
476
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsResponseFilePart$outboundSchema),
|
|
477
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsToolResultPart$outboundSchema),
|
|
478
|
+
])),
|
|
479
|
+
});
|
|
480
|
+
function listAgentTasksTaskStatusMessageToJSON(listAgentTasksTaskStatusMessage) {
|
|
481
|
+
return JSON.stringify(exports.ListAgentTasksTaskStatusMessage$outboundSchema.parse(listAgentTasksTaskStatusMessage));
|
|
482
|
+
}
|
|
483
|
+
function listAgentTasksTaskStatusMessageFromJSON(jsonString) {
|
|
484
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksTaskStatusMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksTaskStatusMessage' from JSON`);
|
|
485
|
+
}
|
|
486
|
+
/** @internal */
|
|
487
|
+
exports.ListAgentTasksTaskStatus$inboundSchema = z.object({
|
|
488
|
+
state: exports.ListAgentTasksTaskState$inboundSchema,
|
|
166
489
|
timestamp: z.string().optional(),
|
|
167
|
-
message: z.
|
|
490
|
+
message: z.lazy(() => exports.ListAgentTasksTaskStatusMessage$inboundSchema)
|
|
491
|
+
.optional(),
|
|
168
492
|
});
|
|
169
493
|
/** @internal */
|
|
170
|
-
exports.
|
|
171
|
-
state:
|
|
494
|
+
exports.ListAgentTasksTaskStatus$outboundSchema = z.object({
|
|
495
|
+
state: exports.ListAgentTasksTaskState$outboundSchema,
|
|
172
496
|
timestamp: z.string().optional(),
|
|
173
|
-
message: z.
|
|
497
|
+
message: z.lazy(() => exports.ListAgentTasksTaskStatusMessage$outboundSchema)
|
|
498
|
+
.optional(),
|
|
174
499
|
});
|
|
175
|
-
function
|
|
176
|
-
return JSON.stringify(exports.
|
|
500
|
+
function listAgentTasksTaskStatusToJSON(listAgentTasksTaskStatus) {
|
|
501
|
+
return JSON.stringify(exports.ListAgentTasksTaskStatus$outboundSchema.parse(listAgentTasksTaskStatus));
|
|
177
502
|
}
|
|
178
|
-
function
|
|
179
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
503
|
+
function listAgentTasksTaskStatusFromJSON(jsonString) {
|
|
504
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksTaskStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksTaskStatus' from JSON`);
|
|
180
505
|
}
|
|
181
506
|
/** @internal */
|
|
182
507
|
exports.ListAgentTasksAgentsKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksAgentsKind);
|
|
183
508
|
/** @internal */
|
|
184
509
|
exports.ListAgentTasksAgentsKind$outboundSchema = exports.ListAgentTasksAgentsKind$inboundSchema;
|
|
185
510
|
/** @internal */
|
|
186
|
-
exports.
|
|
511
|
+
exports.ListAgentTasksExtendedMessageRole$inboundSchema = z.nativeEnum(exports.ListAgentTasksExtendedMessageRole);
|
|
187
512
|
/** @internal */
|
|
188
|
-
exports.
|
|
513
|
+
exports.ListAgentTasksExtendedMessageRole$outboundSchema = exports.ListAgentTasksExtendedMessageRole$inboundSchema;
|
|
189
514
|
/** @internal */
|
|
190
515
|
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind);
|
|
191
516
|
/** @internal */
|
|
192
517
|
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema;
|
|
193
518
|
/** @internal */
|
|
194
|
-
exports.
|
|
519
|
+
exports.ListAgentTasksPartsToolResultPart$inboundSchema = z.object({
|
|
195
520
|
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema,
|
|
196
521
|
tool_call_id: z.string(),
|
|
197
522
|
result: z.any().optional(),
|
|
@@ -202,7 +527,7 @@ exports.ListAgentTasksParts5$inboundSchema = z.object({
|
|
|
202
527
|
});
|
|
203
528
|
});
|
|
204
529
|
/** @internal */
|
|
205
|
-
exports.
|
|
530
|
+
exports.ListAgentTasksPartsToolResultPart$outboundSchema = z.object({
|
|
206
531
|
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$outboundSchema,
|
|
207
532
|
toolCallId: z.string(),
|
|
208
533
|
result: z.any().optional(),
|
|
@@ -212,11 +537,11 @@ exports.ListAgentTasksParts5$outboundSchema = z.object({
|
|
|
212
537
|
toolCallId: "tool_call_id",
|
|
213
538
|
});
|
|
214
539
|
});
|
|
215
|
-
function
|
|
216
|
-
return JSON.stringify(exports.
|
|
540
|
+
function listAgentTasksPartsToolResultPartToJSON(listAgentTasksPartsToolResultPart) {
|
|
541
|
+
return JSON.stringify(exports.ListAgentTasksPartsToolResultPart$outboundSchema.parse(listAgentTasksPartsToolResultPart));
|
|
217
542
|
}
|
|
218
|
-
function
|
|
219
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
543
|
+
function listAgentTasksPartsToolResultPartFromJSON(jsonString) {
|
|
544
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsToolResultPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsToolResultPart' from JSON`);
|
|
220
545
|
}
|
|
221
546
|
/** @internal */
|
|
222
547
|
exports.ListAgentTasksPartsAgentsResponse200Kind$inboundSchema = z
|
|
@@ -224,7 +549,7 @@ exports.ListAgentTasksPartsAgentsResponse200Kind$inboundSchema = z
|
|
|
224
549
|
/** @internal */
|
|
225
550
|
exports.ListAgentTasksPartsAgentsResponse200Kind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200Kind$inboundSchema;
|
|
226
551
|
/** @internal */
|
|
227
|
-
exports.
|
|
552
|
+
exports.PartsToolCallPart$inboundSchema = z.object({
|
|
228
553
|
kind: exports.ListAgentTasksPartsAgentsResponse200Kind$inboundSchema,
|
|
229
554
|
tool_name: z.string(),
|
|
230
555
|
tool_call_id: z.string(),
|
|
@@ -237,7 +562,7 @@ exports.ListAgentTasksParts4$inboundSchema = z.object({
|
|
|
237
562
|
});
|
|
238
563
|
});
|
|
239
564
|
/** @internal */
|
|
240
|
-
exports.
|
|
565
|
+
exports.PartsToolCallPart$outboundSchema = z.object({
|
|
241
566
|
kind: exports.ListAgentTasksPartsAgentsResponse200Kind$outboundSchema,
|
|
242
567
|
toolName: z.string(),
|
|
243
568
|
toolCallId: z.string(),
|
|
@@ -249,11 +574,11 @@ exports.ListAgentTasksParts4$outboundSchema = z.object({
|
|
|
249
574
|
toolCallId: "tool_call_id",
|
|
250
575
|
});
|
|
251
576
|
});
|
|
252
|
-
function
|
|
253
|
-
return JSON.stringify(exports.
|
|
577
|
+
function partsToolCallPartToJSON(partsToolCallPart) {
|
|
578
|
+
return JSON.stringify(exports.PartsToolCallPart$outboundSchema.parse(partsToolCallPart));
|
|
254
579
|
}
|
|
255
|
-
function
|
|
256
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
580
|
+
function partsToolCallPartFromJSON(jsonString) {
|
|
581
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PartsToolCallPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PartsToolCallPart' from JSON`);
|
|
257
582
|
}
|
|
258
583
|
/** @internal */
|
|
259
584
|
exports.ListAgentTasksPartsAgentsResponseKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponseKind);
|
|
@@ -312,7 +637,7 @@ function listAgentTasksPartsFileFromJSON(jsonString) {
|
|
|
312
637
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsFile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsFile' from JSON`);
|
|
313
638
|
}
|
|
314
639
|
/** @internal */
|
|
315
|
-
exports.
|
|
640
|
+
exports.ListAgentTasksPartsFilePart$inboundSchema = z.object({
|
|
316
641
|
kind: exports.ListAgentTasksPartsAgentsResponseKind$inboundSchema,
|
|
317
642
|
file: z.union([
|
|
318
643
|
z.lazy(() => exports.ListAgentTasksFileBinaryFormat$inboundSchema),
|
|
@@ -321,7 +646,7 @@ exports.ListAgentTasksParts3$inboundSchema = z.object({
|
|
|
321
646
|
metadata: z.record(z.any()).optional(),
|
|
322
647
|
});
|
|
323
648
|
/** @internal */
|
|
324
|
-
exports.
|
|
649
|
+
exports.ListAgentTasksPartsFilePart$outboundSchema = z.object({
|
|
325
650
|
kind: exports.ListAgentTasksPartsAgentsResponseKind$outboundSchema,
|
|
326
651
|
file: z.union([
|
|
327
652
|
z.lazy(() => exports.ListAgentTasksFileBinaryFormat$outboundSchema),
|
|
@@ -329,69 +654,69 @@ exports.ListAgentTasksParts3$outboundSchema = z.object({
|
|
|
329
654
|
]),
|
|
330
655
|
metadata: z.record(z.any()).optional(),
|
|
331
656
|
});
|
|
332
|
-
function
|
|
333
|
-
return JSON.stringify(exports.
|
|
657
|
+
function listAgentTasksPartsFilePartToJSON(listAgentTasksPartsFilePart) {
|
|
658
|
+
return JSON.stringify(exports.ListAgentTasksPartsFilePart$outboundSchema.parse(listAgentTasksPartsFilePart));
|
|
334
659
|
}
|
|
335
|
-
function
|
|
336
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
660
|
+
function listAgentTasksPartsFilePartFromJSON(jsonString) {
|
|
661
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsFilePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsFilePart' from JSON`);
|
|
337
662
|
}
|
|
338
663
|
/** @internal */
|
|
339
664
|
exports.ListAgentTasksPartsAgentsKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsKind);
|
|
340
665
|
/** @internal */
|
|
341
666
|
exports.ListAgentTasksPartsAgentsKind$outboundSchema = exports.ListAgentTasksPartsAgentsKind$inboundSchema;
|
|
342
667
|
/** @internal */
|
|
343
|
-
exports.
|
|
668
|
+
exports.ListAgentTasksPartsAgentsDataPart$inboundSchema = z.object({
|
|
344
669
|
kind: exports.ListAgentTasksPartsAgentsKind$inboundSchema,
|
|
345
670
|
data: z.record(z.any()),
|
|
346
671
|
metadata: z.record(z.any()).optional(),
|
|
347
672
|
});
|
|
348
673
|
/** @internal */
|
|
349
|
-
exports.
|
|
674
|
+
exports.ListAgentTasksPartsAgentsDataPart$outboundSchema = z.object({
|
|
350
675
|
kind: exports.ListAgentTasksPartsAgentsKind$outboundSchema,
|
|
351
676
|
data: z.record(z.any()),
|
|
352
677
|
metadata: z.record(z.any()).optional(),
|
|
353
678
|
});
|
|
354
|
-
function
|
|
355
|
-
return JSON.stringify(exports.
|
|
679
|
+
function listAgentTasksPartsAgentsDataPartToJSON(listAgentTasksPartsAgentsDataPart) {
|
|
680
|
+
return JSON.stringify(exports.ListAgentTasksPartsAgentsDataPart$outboundSchema.parse(listAgentTasksPartsAgentsDataPart));
|
|
356
681
|
}
|
|
357
|
-
function
|
|
358
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
682
|
+
function listAgentTasksPartsAgentsDataPartFromJSON(jsonString) {
|
|
683
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsAgentsDataPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsAgentsDataPart' from JSON`);
|
|
359
684
|
}
|
|
360
685
|
/** @internal */
|
|
361
686
|
exports.ListAgentTasksPartsKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsKind);
|
|
362
687
|
/** @internal */
|
|
363
688
|
exports.ListAgentTasksPartsKind$outboundSchema = exports.ListAgentTasksPartsKind$inboundSchema;
|
|
364
689
|
/** @internal */
|
|
365
|
-
exports.
|
|
690
|
+
exports.ListAgentTasksPartsTextPart$inboundSchema = z.object({
|
|
366
691
|
kind: exports.ListAgentTasksPartsKind$inboundSchema,
|
|
367
692
|
text: z.string(),
|
|
368
693
|
});
|
|
369
694
|
/** @internal */
|
|
370
|
-
exports.
|
|
695
|
+
exports.ListAgentTasksPartsTextPart$outboundSchema = z.object({
|
|
371
696
|
kind: exports.ListAgentTasksPartsKind$outboundSchema,
|
|
372
697
|
text: z.string(),
|
|
373
698
|
});
|
|
374
|
-
function
|
|
375
|
-
return JSON.stringify(exports.
|
|
699
|
+
function listAgentTasksPartsTextPartToJSON(listAgentTasksPartsTextPart) {
|
|
700
|
+
return JSON.stringify(exports.ListAgentTasksPartsTextPart$outboundSchema.parse(listAgentTasksPartsTextPart));
|
|
376
701
|
}
|
|
377
|
-
function
|
|
378
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
702
|
+
function listAgentTasksPartsTextPartFromJSON(jsonString) {
|
|
703
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsTextPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsTextPart' from JSON`);
|
|
379
704
|
}
|
|
380
705
|
/** @internal */
|
|
381
706
|
exports.ListAgentTasksParts$inboundSchema = z.union([
|
|
382
|
-
z.lazy(() => exports.
|
|
383
|
-
z.lazy(() => exports.
|
|
384
|
-
z.lazy(() => exports.
|
|
385
|
-
z.lazy(() => exports.
|
|
386
|
-
z.lazy(() => exports.
|
|
707
|
+
z.lazy(() => exports.PartsToolCallPart$inboundSchema),
|
|
708
|
+
z.lazy(() => exports.ListAgentTasksPartsTextPart$inboundSchema),
|
|
709
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsDataPart$inboundSchema),
|
|
710
|
+
z.lazy(() => exports.ListAgentTasksPartsFilePart$inboundSchema),
|
|
711
|
+
z.lazy(() => exports.ListAgentTasksPartsToolResultPart$inboundSchema),
|
|
387
712
|
]);
|
|
388
713
|
/** @internal */
|
|
389
714
|
exports.ListAgentTasksParts$outboundSchema = z.union([
|
|
390
|
-
z.lazy(() => exports.
|
|
391
|
-
z.lazy(() => exports.
|
|
392
|
-
z.lazy(() => exports.
|
|
393
|
-
z.lazy(() => exports.
|
|
394
|
-
z.lazy(() => exports.
|
|
715
|
+
z.lazy(() => exports.PartsToolCallPart$outboundSchema),
|
|
716
|
+
z.lazy(() => exports.ListAgentTasksPartsTextPart$outboundSchema),
|
|
717
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsDataPart$outboundSchema),
|
|
718
|
+
z.lazy(() => exports.ListAgentTasksPartsFilePart$outboundSchema),
|
|
719
|
+
z.lazy(() => exports.ListAgentTasksPartsToolResultPart$outboundSchema),
|
|
395
720
|
]);
|
|
396
721
|
function listAgentTasksPartsToJSON(listAgentTasksParts) {
|
|
397
722
|
return JSON.stringify(exports.ListAgentTasksParts$outboundSchema.parse(listAgentTasksParts));
|
|
@@ -400,103 +725,246 @@ function listAgentTasksPartsFromJSON(jsonString) {
|
|
|
400
725
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksParts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksParts' from JSON`);
|
|
401
726
|
}
|
|
402
727
|
/** @internal */
|
|
403
|
-
exports.
|
|
728
|
+
exports.ListAgentTasksExtendedA2AMessage$inboundSchema = z.object({
|
|
404
729
|
kind: exports.ListAgentTasksAgentsKind$inboundSchema,
|
|
405
730
|
messageId: z.string(),
|
|
406
|
-
role: exports.
|
|
731
|
+
role: exports.ListAgentTasksExtendedMessageRole$inboundSchema,
|
|
407
732
|
parts: z.array(z.union([
|
|
408
|
-
z.lazy(() => exports.
|
|
409
|
-
z.lazy(() => exports.
|
|
410
|
-
z.lazy(() => exports.
|
|
411
|
-
z.lazy(() => exports.
|
|
412
|
-
z.lazy(() => exports.
|
|
733
|
+
z.lazy(() => exports.PartsToolCallPart$inboundSchema),
|
|
734
|
+
z.lazy(() => exports.ListAgentTasksPartsTextPart$inboundSchema),
|
|
735
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsDataPart$inboundSchema),
|
|
736
|
+
z.lazy(() => exports.ListAgentTasksPartsFilePart$inboundSchema),
|
|
737
|
+
z.lazy(() => exports.ListAgentTasksPartsToolResultPart$inboundSchema),
|
|
413
738
|
])),
|
|
414
739
|
taskId: z.string().optional(),
|
|
415
740
|
contextId: z.string().optional(),
|
|
416
741
|
metadata: z.record(z.any()).optional(),
|
|
417
742
|
});
|
|
418
743
|
/** @internal */
|
|
419
|
-
exports.
|
|
744
|
+
exports.ListAgentTasksExtendedA2AMessage$outboundSchema = z.object({
|
|
420
745
|
kind: exports.ListAgentTasksAgentsKind$outboundSchema,
|
|
421
746
|
messageId: z.string(),
|
|
422
|
-
role: exports.
|
|
747
|
+
role: exports.ListAgentTasksExtendedMessageRole$outboundSchema,
|
|
423
748
|
parts: z.array(z.union([
|
|
424
|
-
z.lazy(() => exports.
|
|
425
|
-
z.lazy(() => exports.
|
|
426
|
-
z.lazy(() => exports.
|
|
427
|
-
z.lazy(() => exports.
|
|
428
|
-
z.lazy(() => exports.
|
|
749
|
+
z.lazy(() => exports.PartsToolCallPart$outboundSchema),
|
|
750
|
+
z.lazy(() => exports.ListAgentTasksPartsTextPart$outboundSchema),
|
|
751
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsDataPart$outboundSchema),
|
|
752
|
+
z.lazy(() => exports.ListAgentTasksPartsFilePart$outboundSchema),
|
|
753
|
+
z.lazy(() => exports.ListAgentTasksPartsToolResultPart$outboundSchema),
|
|
429
754
|
])),
|
|
430
755
|
taskId: z.string().optional(),
|
|
431
756
|
contextId: z.string().optional(),
|
|
432
757
|
metadata: z.record(z.any()).optional(),
|
|
433
758
|
});
|
|
434
|
-
function
|
|
435
|
-
return JSON.stringify(exports.
|
|
759
|
+
function listAgentTasksExtendedA2AMessageToJSON(listAgentTasksExtendedA2AMessage) {
|
|
760
|
+
return JSON.stringify(exports.ListAgentTasksExtendedA2AMessage$outboundSchema.parse(listAgentTasksExtendedA2AMessage));
|
|
436
761
|
}
|
|
437
|
-
function
|
|
438
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
762
|
+
function listAgentTasksExtendedA2AMessageFromJSON(jsonString) {
|
|
763
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksExtendedA2AMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksExtendedA2AMessage' from JSON`);
|
|
439
764
|
}
|
|
440
765
|
/** @internal */
|
|
441
|
-
exports.
|
|
766
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind);
|
|
442
767
|
/** @internal */
|
|
443
|
-
exports.
|
|
768
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$inboundSchema;
|
|
444
769
|
/** @internal */
|
|
445
|
-
exports.
|
|
446
|
-
kind: exports.
|
|
770
|
+
exports.ListAgentTasksPartsDataPart$inboundSchema = z.object({
|
|
771
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$inboundSchema,
|
|
772
|
+
data: z.record(z.any()),
|
|
773
|
+
metadata: z.record(z.any()).optional(),
|
|
774
|
+
});
|
|
775
|
+
/** @internal */
|
|
776
|
+
exports.ListAgentTasksPartsDataPart$outboundSchema = z.object({
|
|
777
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$outboundSchema,
|
|
778
|
+
data: z.record(z.any()),
|
|
779
|
+
metadata: z.record(z.any()).optional(),
|
|
780
|
+
});
|
|
781
|
+
function listAgentTasksPartsDataPartToJSON(listAgentTasksPartsDataPart) {
|
|
782
|
+
return JSON.stringify(exports.ListAgentTasksPartsDataPart$outboundSchema.parse(listAgentTasksPartsDataPart));
|
|
783
|
+
}
|
|
784
|
+
function listAgentTasksPartsDataPartFromJSON(jsonString) {
|
|
785
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsDataPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsDataPart' from JSON`);
|
|
786
|
+
}
|
|
787
|
+
/** @internal */
|
|
788
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind);
|
|
789
|
+
/** @internal */
|
|
790
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$inboundSchema;
|
|
791
|
+
/** @internal */
|
|
792
|
+
exports.ListAgentTasksFileAgentsFileInURIFormat$inboundSchema = z.object({
|
|
793
|
+
uri: z.string(),
|
|
794
|
+
mimeType: z.string().optional(),
|
|
795
|
+
name: z.string().optional(),
|
|
796
|
+
});
|
|
797
|
+
/** @internal */
|
|
798
|
+
exports.ListAgentTasksFileAgentsFileInURIFormat$outboundSchema = z.object({
|
|
799
|
+
uri: z.string(),
|
|
800
|
+
mimeType: z.string().optional(),
|
|
801
|
+
name: z.string().optional(),
|
|
802
|
+
});
|
|
803
|
+
function listAgentTasksFileAgentsFileInURIFormatToJSON(listAgentTasksFileAgentsFileInURIFormat) {
|
|
804
|
+
return JSON.stringify(exports.ListAgentTasksFileAgentsFileInURIFormat$outboundSchema.parse(listAgentTasksFileAgentsFileInURIFormat));
|
|
805
|
+
}
|
|
806
|
+
function listAgentTasksFileAgentsFileInURIFormatFromJSON(jsonString) {
|
|
807
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFileAgentsFileInURIFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFileAgentsFileInURIFormat' from JSON`);
|
|
808
|
+
}
|
|
809
|
+
/** @internal */
|
|
810
|
+
exports.ListAgentTasksFileAgentsBinaryFormat$inboundSchema = z.object({
|
|
811
|
+
bytes: z.string(),
|
|
812
|
+
mimeType: z.string().optional(),
|
|
813
|
+
name: z.string().optional(),
|
|
814
|
+
});
|
|
815
|
+
/** @internal */
|
|
816
|
+
exports.ListAgentTasksFileAgentsBinaryFormat$outboundSchema = z.object({
|
|
817
|
+
bytes: z.string(),
|
|
818
|
+
mimeType: z.string().optional(),
|
|
819
|
+
name: z.string().optional(),
|
|
820
|
+
});
|
|
821
|
+
function listAgentTasksFileAgentsBinaryFormatToJSON(listAgentTasksFileAgentsBinaryFormat) {
|
|
822
|
+
return JSON.stringify(exports.ListAgentTasksFileAgentsBinaryFormat$outboundSchema.parse(listAgentTasksFileAgentsBinaryFormat));
|
|
823
|
+
}
|
|
824
|
+
function listAgentTasksFileAgentsBinaryFormatFromJSON(jsonString) {
|
|
825
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFileAgentsBinaryFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFileAgentsBinaryFormat' from JSON`);
|
|
826
|
+
}
|
|
827
|
+
/** @internal */
|
|
828
|
+
exports.ListAgentTasksPartsAgentsFile$inboundSchema = z.union([
|
|
829
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsBinaryFormat$inboundSchema),
|
|
830
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsFileInURIFormat$inboundSchema),
|
|
831
|
+
]);
|
|
832
|
+
/** @internal */
|
|
833
|
+
exports.ListAgentTasksPartsAgentsFile$outboundSchema = z.union([
|
|
834
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsBinaryFormat$outboundSchema),
|
|
835
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsFileInURIFormat$outboundSchema),
|
|
836
|
+
]);
|
|
837
|
+
function listAgentTasksPartsAgentsFileToJSON(listAgentTasksPartsAgentsFile) {
|
|
838
|
+
return JSON.stringify(exports.ListAgentTasksPartsAgentsFile$outboundSchema.parse(listAgentTasksPartsAgentsFile));
|
|
839
|
+
}
|
|
840
|
+
function listAgentTasksPartsAgentsFileFromJSON(jsonString) {
|
|
841
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsAgentsFile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsAgentsFile' from JSON`);
|
|
842
|
+
}
|
|
843
|
+
/** @internal */
|
|
844
|
+
exports.ListAgentTasksPartsAgentsFilePart$inboundSchema = z.object({
|
|
845
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$inboundSchema,
|
|
846
|
+
file: z.union([
|
|
847
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsBinaryFormat$inboundSchema),
|
|
848
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsFileInURIFormat$inboundSchema),
|
|
849
|
+
]),
|
|
850
|
+
metadata: z.record(z.any()).optional(),
|
|
851
|
+
});
|
|
852
|
+
/** @internal */
|
|
853
|
+
exports.ListAgentTasksPartsAgentsFilePart$outboundSchema = z.object({
|
|
854
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$outboundSchema,
|
|
855
|
+
file: z.union([
|
|
856
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsBinaryFormat$outboundSchema),
|
|
857
|
+
z.lazy(() => exports.ListAgentTasksFileAgentsFileInURIFormat$outboundSchema),
|
|
858
|
+
]),
|
|
859
|
+
metadata: z.record(z.any()).optional(),
|
|
860
|
+
});
|
|
861
|
+
function listAgentTasksPartsAgentsFilePartToJSON(listAgentTasksPartsAgentsFilePart) {
|
|
862
|
+
return JSON.stringify(exports.ListAgentTasksPartsAgentsFilePart$outboundSchema.parse(listAgentTasksPartsAgentsFilePart));
|
|
863
|
+
}
|
|
864
|
+
function listAgentTasksPartsAgentsFilePartFromJSON(jsonString) {
|
|
865
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsAgentsFilePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsAgentsFilePart' from JSON`);
|
|
866
|
+
}
|
|
867
|
+
/** @internal */
|
|
868
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind);
|
|
869
|
+
/** @internal */
|
|
870
|
+
exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$inboundSchema;
|
|
871
|
+
/** @internal */
|
|
872
|
+
exports.ListAgentTasksPartsAgentsTextPart$inboundSchema = z.object({
|
|
873
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$inboundSchema,
|
|
874
|
+
text: z.string(),
|
|
875
|
+
});
|
|
876
|
+
/** @internal */
|
|
877
|
+
exports.ListAgentTasksPartsAgentsTextPart$outboundSchema = z.object({
|
|
878
|
+
kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$outboundSchema,
|
|
879
|
+
text: z.string(),
|
|
880
|
+
});
|
|
881
|
+
function listAgentTasksPartsAgentsTextPartToJSON(listAgentTasksPartsAgentsTextPart) {
|
|
882
|
+
return JSON.stringify(exports.ListAgentTasksPartsAgentsTextPart$outboundSchema.parse(listAgentTasksPartsAgentsTextPart));
|
|
883
|
+
}
|
|
884
|
+
function listAgentTasksPartsAgentsTextPartFromJSON(jsonString) {
|
|
885
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsAgentsTextPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsAgentsTextPart' from JSON`);
|
|
886
|
+
}
|
|
887
|
+
/** @internal */
|
|
888
|
+
exports.ListAgentTasksAgentsParts$inboundSchema = z.union([
|
|
889
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsTextPart$inboundSchema),
|
|
890
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsFilePart$inboundSchema),
|
|
891
|
+
z.lazy(() => exports.ListAgentTasksPartsDataPart$inboundSchema),
|
|
892
|
+
]);
|
|
893
|
+
/** @internal */
|
|
894
|
+
exports.ListAgentTasksAgentsParts$outboundSchema = z.union([
|
|
895
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsTextPart$outboundSchema),
|
|
896
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsFilePart$outboundSchema),
|
|
897
|
+
z.lazy(() => exports.ListAgentTasksPartsDataPart$outboundSchema),
|
|
898
|
+
]);
|
|
899
|
+
function listAgentTasksAgentsPartsToJSON(listAgentTasksAgentsParts) {
|
|
900
|
+
return JSON.stringify(exports.ListAgentTasksAgentsParts$outboundSchema.parse(listAgentTasksAgentsParts));
|
|
901
|
+
}
|
|
902
|
+
function listAgentTasksAgentsPartsFromJSON(jsonString) {
|
|
903
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksAgentsParts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksAgentsParts' from JSON`);
|
|
904
|
+
}
|
|
905
|
+
/** @internal */
|
|
906
|
+
exports.ListAgentTasksTaskArtifact$inboundSchema = z.object({
|
|
447
907
|
artifactId: z.string(),
|
|
448
908
|
name: z.string(),
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
909
|
+
description: z.string().optional(),
|
|
910
|
+
parts: z.array(z.union([
|
|
911
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsTextPart$inboundSchema),
|
|
912
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsFilePart$inboundSchema),
|
|
913
|
+
z.lazy(() => exports.ListAgentTasksPartsDataPart$inboundSchema),
|
|
914
|
+
])),
|
|
915
|
+
extensions: z.array(z.string()).optional(),
|
|
916
|
+
metadata: z.record(z.any()).optional(),
|
|
452
917
|
});
|
|
453
918
|
/** @internal */
|
|
454
|
-
exports.
|
|
455
|
-
kind: exports.ListAgentTasksAgentsResponseKind$outboundSchema,
|
|
919
|
+
exports.ListAgentTasksTaskArtifact$outboundSchema = z.object({
|
|
456
920
|
artifactId: z.string(),
|
|
457
921
|
name: z.string(),
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
922
|
+
description: z.string().optional(),
|
|
923
|
+
parts: z.array(z.union([
|
|
924
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsTextPart$outboundSchema),
|
|
925
|
+
z.lazy(() => exports.ListAgentTasksPartsAgentsFilePart$outboundSchema),
|
|
926
|
+
z.lazy(() => exports.ListAgentTasksPartsDataPart$outboundSchema),
|
|
927
|
+
])),
|
|
928
|
+
extensions: z.array(z.string()).optional(),
|
|
929
|
+
metadata: z.record(z.any()).optional(),
|
|
461
930
|
});
|
|
462
|
-
function
|
|
463
|
-
return JSON.stringify(exports.
|
|
931
|
+
function listAgentTasksTaskArtifactToJSON(listAgentTasksTaskArtifact) {
|
|
932
|
+
return JSON.stringify(exports.ListAgentTasksTaskArtifact$outboundSchema.parse(listAgentTasksTaskArtifact));
|
|
464
933
|
}
|
|
465
|
-
function
|
|
466
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
934
|
+
function listAgentTasksTaskArtifactFromJSON(jsonString) {
|
|
935
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksTaskArtifact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksTaskArtifact' from JSON`);
|
|
467
936
|
}
|
|
468
937
|
/** @internal */
|
|
469
|
-
exports.
|
|
470
|
-
.object({
|
|
938
|
+
exports.ExtendedTaskResponse$inboundSchema = z.object({
|
|
471
939
|
id: z.string(),
|
|
472
940
|
contextId: z.string(),
|
|
473
941
|
kind: exports.ListAgentTasksKind$inboundSchema,
|
|
474
|
-
status: z.lazy(() => exports.
|
|
475
|
-
history: z.array(z.lazy(() => exports.
|
|
476
|
-
artifacts: z.array(z.lazy(() => exports.
|
|
942
|
+
status: z.lazy(() => exports.ListAgentTasksTaskStatus$inboundSchema),
|
|
943
|
+
history: z.array(z.lazy(() => exports.ListAgentTasksExtendedA2AMessage$inboundSchema)),
|
|
944
|
+
artifacts: z.array(z.lazy(() => exports.ListAgentTasksTaskArtifact$inboundSchema))
|
|
477
945
|
.optional(),
|
|
478
946
|
metadata: z.record(z.any()).optional(),
|
|
479
947
|
});
|
|
480
948
|
/** @internal */
|
|
481
|
-
exports.
|
|
949
|
+
exports.ExtendedTaskResponse$outboundSchema = z.object({
|
|
482
950
|
id: z.string(),
|
|
483
951
|
contextId: z.string(),
|
|
484
952
|
kind: exports.ListAgentTasksKind$outboundSchema,
|
|
485
|
-
status: z.lazy(() => exports.
|
|
486
|
-
history: z.array(z.lazy(() => exports.
|
|
487
|
-
artifacts: z.array(z.lazy(() => exports.
|
|
953
|
+
status: z.lazy(() => exports.ListAgentTasksTaskStatus$outboundSchema),
|
|
954
|
+
history: z.array(z.lazy(() => exports.ListAgentTasksExtendedA2AMessage$outboundSchema)),
|
|
955
|
+
artifacts: z.array(z.lazy(() => exports.ListAgentTasksTaskArtifact$outboundSchema))
|
|
488
956
|
.optional(),
|
|
489
957
|
metadata: z.record(z.any()).optional(),
|
|
490
958
|
});
|
|
491
|
-
function
|
|
492
|
-
return JSON.stringify(exports.
|
|
959
|
+
function extendedTaskResponseToJSON(extendedTaskResponse) {
|
|
960
|
+
return JSON.stringify(exports.ExtendedTaskResponse$outboundSchema.parse(extendedTaskResponse));
|
|
493
961
|
}
|
|
494
|
-
function
|
|
495
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
962
|
+
function extendedTaskResponseFromJSON(jsonString) {
|
|
963
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ExtendedTaskResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExtendedTaskResponse' from JSON`);
|
|
496
964
|
}
|
|
497
965
|
/** @internal */
|
|
498
|
-
exports.
|
|
499
|
-
tasks: z.array(z.lazy(() => exports.
|
|
966
|
+
exports.ListAgentTasksAgentTasksListResponse$inboundSchema = z.object({
|
|
967
|
+
tasks: z.array(z.lazy(() => exports.ExtendedTaskResponse$inboundSchema)),
|
|
500
968
|
overall_total: z.number(),
|
|
501
969
|
}).transform((v) => {
|
|
502
970
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -504,18 +972,18 @@ exports.ListAgentTasksResponseBody$inboundSchema = z.object({
|
|
|
504
972
|
});
|
|
505
973
|
});
|
|
506
974
|
/** @internal */
|
|
507
|
-
exports.
|
|
508
|
-
tasks: z.array(z.lazy(() => exports.
|
|
975
|
+
exports.ListAgentTasksAgentTasksListResponse$outboundSchema = z.object({
|
|
976
|
+
tasks: z.array(z.lazy(() => exports.ExtendedTaskResponse$outboundSchema)),
|
|
509
977
|
overallTotal: z.number(),
|
|
510
978
|
}).transform((v) => {
|
|
511
979
|
return (0, primitives_js_1.remap)(v, {
|
|
512
980
|
overallTotal: "overall_total",
|
|
513
981
|
});
|
|
514
982
|
});
|
|
515
|
-
function
|
|
516
|
-
return JSON.stringify(exports.
|
|
983
|
+
function listAgentTasksAgentTasksListResponseToJSON(listAgentTasksAgentTasksListResponse) {
|
|
984
|
+
return JSON.stringify(exports.ListAgentTasksAgentTasksListResponse$outboundSchema.parse(listAgentTasksAgentTasksListResponse));
|
|
517
985
|
}
|
|
518
|
-
function
|
|
519
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
986
|
+
function listAgentTasksAgentTasksListResponseFromJSON(jsonString) {
|
|
987
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksAgentTasksListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksAgentTasksListResponse' from JSON`);
|
|
520
988
|
}
|
|
521
989
|
//# sourceMappingURL=listagenttasks.js.map
|